2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.62 for emacs 24.0.50.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be more Bourne compatible
14 DUALCASE
=1; export DUALCASE
# for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
18 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
23 case `(set -o) 2>/dev/null` in
24 *posix
*) set -o posix
;;
33 # Avoid depending upon Character Ranges.
34 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits
='0123456789'
38 as_cr_alnum
=$as_cr_Letters$as_cr_digits
43 # Printing a long string crashes Solaris 7 /usr/bin/printf.
44 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
53 as_echo_n='/usr
/ucb
/echo -n'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
66 as_echo_n='sh
-c $as_echo_n_body as_echo
'
69 as_echo='sh
-c $as_echo_body as_echo
'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 # Support unset when possible.
82 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
90 # We need space, tab and new line, in precisely that order. Quoting is
91 # there to prevent editors from complaining about space-tab.
92 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
93 # splitting by setting IFS to empty value.)
96 # Find who we are. Look in the path if we contain no directory separator.
98 *[\\/]* ) as_myself=$0 ;;
99 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
103 test -z "$as_dir" && as_dir=.
104 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
110 # We did not find ourselves, most probably we were run as `sh COMMAND'
111 # in which case we are not to be found in the path.
112 if test "x$as_myself" = x
; then
115 if test ! -f "$as_myself"; then
116 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117 { (exit 1); exit 1; }
120 # Work around bugs in pre-3.0 UWIN ksh.
121 for as_var
in ENV MAIL MAILPATH
122 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
134 # Required to use basename.
135 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
136 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
142 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
149 # Name of the executable.
150 as_me
=`$as_basename -- "$0" ||
151 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
152 X"$0" : 'X\(//\)$' \| \
153 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
155 sed '/^.*\/\([^/][^/]*\)\/*$/{
173 if test "x$CONFIG_SHELL" = x
; then
174 if (eval ":") 2>/dev
/null
; then
180 if test $as_have_required = yes && (eval ":
190 as_func_ret_success () {
193 as_func_ret_failure () {
198 if as_func_success; then
202 echo as_func_success failed.
205 if as_func_failure; then
207 echo as_func_failure succeeded.
210 if as_func_ret_success; then
214 echo as_func_ret_success failed.
217 if as_func_ret_failure; then
219 echo as_func_ret_failure succeeded.
222 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
226 echo positional parameters were not saved.
229 test \$exitcode = 0) || { (exit 1); exit 1; }
234 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
235 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
236 ") 2> /dev
/null
; then
240 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
241 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
244 test -z "$as_dir" && as_dir
=.
247 for as_base
in sh bash ksh sh5
; do
248 as_candidate_shells
="$as_candidate_shells $as_dir/$as_base"
255 for as_shell
in $as_candidate_shells $SHELL; do
256 # Try only shells that exist, to save several forks.
257 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
258 { ("$as_shell") 2> /dev
/null
<<\_ASEOF
259 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
262 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
263 # is contrary to our usage. Disable this feature.
264 alias -g '${1+"$@"}'='"$@"'
267 case `(set -o) 2>/dev/null` in
268 *posix
*) set -o posix
;;
277 CONFIG_SHELL
=$as_shell
279 if { "$as_shell" 2> /dev
/null
<<\_ASEOF
280 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
283 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
284 # is contrary to our usage. Disable this feature.
285 alias -g '${1+"$@"}'='"$@"'
288 case `(set -o) 2>/dev/null` in
289 *posix
*) set -o posix
;;
305 as_func_ret_success
() {
308 as_func_ret_failure
() {
313 if as_func_success
; then
317 echo as_func_success failed.
320 if as_func_failure
; then
322 echo as_func_failure succeeded.
325 if as_func_ret_success
; then
329 echo as_func_ret_success failed.
332 if as_func_ret_failure
; then
334 echo as_func_ret_failure succeeded.
337 if ( set x
; as_func_ret_success y
&& test x
= "$1" ); then
341 echo positional parameters were not saved.
344 test $exitcode = 0) ||
{ (exit 1); exit 1; }
349 test "x$as_lineno_1" != "x$as_lineno_2" &&
350 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") ||
{ (exit 1); exit 1; }
361 if test "x$CONFIG_SHELL" != x
; then
362 for as_var
in BASH_ENV ENV
363 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
366 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
370 if test $as_have_required = no
; then
371 echo This
script requires a shell
more modern than all the
372 echo shells that I found on your system. Please
install a
373 echo modern shell
, or manually run the
script under such a
374 echo shell
if you
do have one.
375 { (exit 1); exit 1; }
385 (eval "as_func_return () {
394 as_func_ret_success () {
397 as_func_ret_failure () {
402 if as_func_success; then
406 echo as_func_success failed.
409 if as_func_failure; then
411 echo as_func_failure succeeded.
414 if as_func_ret_success; then
418 echo as_func_ret_success failed.
421 if as_func_ret_failure; then
423 echo as_func_ret_failure succeeded.
426 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
430 echo positional parameters were not saved.
433 test \$exitcode = 0") ||
{
434 echo No shell found that supports shell functions.
435 echo Please tell bug-autoconf@gnu.org about your system
,
436 echo including any error possibly output before this message.
437 echo This can
help us improve future autoconf versions.
438 echo Configuration will now proceed without shell functions.
445 test "x$as_lineno_1" != "x$as_lineno_2" &&
446 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
448 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
449 # uniformly replaced by the line number. The first 'sed' inserts a
450 # line-number line after each line using $LINENO; the second 'sed'
451 # does the real work. The second script uses 'N' to pair each
452 # line-number line with the line containing $LINENO, and appends
453 # trailing '-' during substitution so that $LINENO is not a special
455 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
456 # scripts with optimization help from Paolo Bonzini. Blame Lee
457 # E. McMahon (1931-1989) for sed's syntax. :-)
469 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
473 chmod +x
"$as_me.lineno" ||
474 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
475 { (exit 1); exit 1; }; }
477 # Don't try to exec as it changes $[0], causing all sort of problems
478 # (the dirname of $[0] is not the place where we might find the
479 # original and so on. Autoconf is especially sensitive to this).
481 # Exit status is that of the last command.
486 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
492 ECHO_C
= ECHO_N
= ECHO_T
=
496 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
502 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
503 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
509 rm -f conf$$ conf$$.exe conf$$.
file
510 if test -d conf$$.dir
; then
511 rm -f conf$$.dir
/conf$$.
file
514 mkdir conf$$.dir
2>/dev
/null
516 if (echo >conf$$.
file) 2>/dev
/null
; then
517 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
519 # ... but there are two gotchas:
520 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
521 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
522 # In both cases, we have to default to `cp -p'.
523 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
525 elif ln conf$$.
file conf$$
2>/dev
/null
; then
533 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
534 rmdir conf$$.dir
2>/dev
/null
536 if mkdir
-p .
2>/dev
/null
; then
539 test -d .
/-p && rmdir .
/-p
543 if test -x / >/dev
/null
2>&1; then
546 if ls -dL / >/dev
/null
2>&1; then
553 if test -d "$1"; then
559 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
560 ???[sx]*):;;*)false;;esac;fi
564 as_executable_p
=$as_test_x
566 # Sed expression to map a string onto a valid CPP name.
567 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
569 # Sed expression to map a string onto a valid variable name.
570 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
574 exec 7<&0 </dev
/null
6>&1
577 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
578 # so uname gets run too.
579 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
584 ac_default_prefix
=/usr
/local
586 ac_config_libobj_dir
=.
592 SHELL
=${CONFIG_SHELL-/bin/sh}
594 # Identity of this package.
596 PACKAGE_TARNAME
='emacs'
597 PACKAGE_VERSION
='24.0.50'
598 PACKAGE_STRING
='emacs 24.0.50'
601 ac_unique_file
="src/lisp.h"
602 # Factoring default headers for most tests.
603 ac_includes_default
="\
605 #ifdef HAVE_SYS_TYPES_H
606 # include <sys/types.h>
608 #ifdef HAVE_SYS_STAT_H
609 # include <sys/stat.h>
615 # ifdef HAVE_STDLIB_H
620 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
625 #ifdef HAVE_STRINGS_H
626 # include <strings.h>
628 #ifdef HAVE_INTTYPES_H
629 # include <inttypes.h>
638 ac_config_libobj_dir
=src
650 program_transform_name
761 x_default_search_path
780 GNUSTEP_SYSTEM_HEADERS
781 GNUSTEP_SYSTEM_LIBRARIES
783 LIB_SRC_EXTRA_INSTALLABLES
788 enable_option_checking
808 with_toolkit_scroll_bars
821 enable_ns_self_contained
823 enable_maintainer_mode
831 ac_precious_vars
='build_alias
843 # Initialize some variables set by options.
845 ac_init_version
=false
846 ac_unrecognized_opts
=
848 # The variables have the same names as the options, with
849 # dashes changed to underlines.
857 program_transform_name
=s
,x
,x
,
865 # Installation directory options.
866 # These are left unexpanded so users can "make install exec_prefix=/foo"
867 # and all the variables that are supposed to be based on exec_prefix
868 # by default will actually change.
869 # Use braces instead of parens because sh, perl, etc. also accept them.
870 # (The list follows the same order as the GNU Coding Standards.)
871 bindir
='${exec_prefix}/bin'
872 sbindir
='${exec_prefix}/sbin'
873 libexecdir
='${exec_prefix}/libexec'
874 datarootdir
='${prefix}/share'
875 datadir
='${datarootdir}'
876 sysconfdir
='${prefix}/etc'
877 sharedstatedir
='${prefix}/com'
878 localstatedir
='${prefix}/var'
879 includedir
='${prefix}/include'
880 oldincludedir
='/usr/include'
881 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
882 infodir
='${datarootdir}/info'
887 libdir
='${exec_prefix}/lib'
888 localedir
='${datarootdir}/locale'
889 mandir
='${datarootdir}/man'
895 # If the previous option needs an argument, assign it.
896 if test -n "$ac_prev"; then
897 eval $ac_prev=\
$ac_option
903 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
907 # Accept the important Cygnus configure options, so we can diagnose typos.
909 case $ac_dashdash$ac_option in
913 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
915 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
918 -build |
--build |
--buil |
--bui |
--bu)
919 ac_prev
=build_alias
;;
920 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
921 build_alias
=$ac_optarg ;;
923 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
924 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
925 ac_prev
=cache_file
;;
926 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
927 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
928 cache_file
=$ac_optarg ;;
931 cache_file
=config.cache
;;
933 -datadir |
--datadir |
--datadi |
--datad)
935 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
936 datadir
=$ac_optarg ;;
938 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
939 |
--dataroo |
--dataro |
--datar)
940 ac_prev
=datarootdir
;;
941 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
942 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
943 datarootdir
=$ac_optarg ;;
945 -disable-* |
--disable-*)
946 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
947 # Reject names that are not valid shell variable names.
948 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
949 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
950 { (exit 1); exit 1; }; }
951 ac_useropt_orig
=$ac_useropt
952 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
953 case $ac_user_opts in
957 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
958 ac_unrecognized_sep
=', ';;
960 eval enable_
$ac_useropt=no
;;
962 -docdir |
--docdir |
--docdi |
--doc |
--do)
964 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
967 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
969 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
972 -enable-* |
--enable-*)
973 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
974 # Reject names that are not valid shell variable names.
975 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
976 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
977 { (exit 1); exit 1; }; }
978 ac_useropt_orig
=$ac_useropt
979 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
980 case $ac_user_opts in
984 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
985 ac_unrecognized_sep
=', ';;
987 eval enable_
$ac_useropt=\
$ac_optarg ;;
989 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
990 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
991 |
--exec |
--exe |
--ex)
992 ac_prev
=exec_prefix
;;
993 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
994 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
995 |
--exec=* |
--exe=* |
--ex=*)
996 exec_prefix
=$ac_optarg ;;
998 -gas |
--gas |
--ga |
--g)
999 # Obsolete; use --with-gas.
1002 -help |
--help |
--hel |
--he |
-h)
1003 ac_init_help
=long
;;
1004 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1005 ac_init_help
=recursive
;;
1006 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1007 ac_init_help
=short
;;
1009 -host |
--host |
--hos |
--ho)
1010 ac_prev
=host_alias
;;
1011 -host=* |
--host=* |
--hos=* |
--ho=*)
1012 host_alias
=$ac_optarg ;;
1014 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1016 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1018 htmldir
=$ac_optarg ;;
1020 -includedir |
--includedir |
--includedi |
--included |
--include \
1021 |
--includ |
--inclu |
--incl |
--inc)
1022 ac_prev
=includedir
;;
1023 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1024 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1025 includedir
=$ac_optarg ;;
1027 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1029 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1030 infodir
=$ac_optarg ;;
1032 -libdir |
--libdir |
--libdi |
--libd)
1034 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1035 libdir
=$ac_optarg ;;
1037 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1038 |
--libexe |
--libex |
--libe)
1039 ac_prev
=libexecdir
;;
1040 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1041 |
--libexe=* |
--libex=* |
--libe=*)
1042 libexecdir
=$ac_optarg ;;
1044 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1045 ac_prev
=localedir
;;
1046 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1047 localedir
=$ac_optarg ;;
1049 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1050 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1051 ac_prev
=localstatedir
;;
1052 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1053 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1054 localstatedir
=$ac_optarg ;;
1056 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1058 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1059 mandir
=$ac_optarg ;;
1061 -nfp |
--nfp |
--nf)
1062 # Obsolete; use --without-fp.
1065 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1066 |
--no-cr |
--no-c |
-n)
1069 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1070 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1073 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1074 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1075 |
--oldin |
--oldi |
--old |
--ol |
--o)
1076 ac_prev
=oldincludedir
;;
1077 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1078 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1079 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1080 oldincludedir
=$ac_optarg ;;
1082 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1084 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1085 prefix
=$ac_optarg ;;
1087 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1088 |
--program-pre |
--program-pr |
--program-p)
1089 ac_prev
=program_prefix
;;
1090 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1091 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1092 program_prefix
=$ac_optarg ;;
1094 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1095 |
--program-suf |
--program-su |
--program-s)
1096 ac_prev
=program_suffix
;;
1097 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1098 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1099 program_suffix
=$ac_optarg ;;
1101 -program-transform-name |
--program-transform-name \
1102 |
--program-transform-nam |
--program-transform-na \
1103 |
--program-transform-n |
--program-transform- \
1104 |
--program-transform |
--program-transfor \
1105 |
--program-transfo |
--program-transf \
1106 |
--program-trans |
--program-tran \
1107 |
--progr-tra |
--program-tr |
--program-t)
1108 ac_prev
=program_transform_name
;;
1109 -program-transform-name=* |
--program-transform-name=* \
1110 |
--program-transform-nam=* |
--program-transform-na=* \
1111 |
--program-transform-n=* |
--program-transform-=* \
1112 |
--program-transform=* |
--program-transfor=* \
1113 |
--program-transfo=* |
--program-transf=* \
1114 |
--program-trans=* |
--program-tran=* \
1115 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1116 program_transform_name
=$ac_optarg ;;
1118 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1120 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1121 pdfdir
=$ac_optarg ;;
1123 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1125 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1128 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1129 |
-silent |
--silent |
--silen |
--sile |
--sil)
1132 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1134 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1136 sbindir
=$ac_optarg ;;
1138 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1139 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1140 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1142 ac_prev
=sharedstatedir
;;
1143 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1144 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1145 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1147 sharedstatedir
=$ac_optarg ;;
1149 -site |
--site |
--sit)
1151 -site=* |
--site=* |
--sit=*)
1154 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1156 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1157 srcdir
=$ac_optarg ;;
1159 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1160 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1161 ac_prev
=sysconfdir
;;
1162 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1163 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1164 sysconfdir
=$ac_optarg ;;
1166 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1167 ac_prev
=target_alias
;;
1168 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1169 target_alias
=$ac_optarg ;;
1171 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1174 -version |
--version |
--versio |
--versi |
--vers |
-V)
1175 ac_init_version
=: ;;
1178 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1179 # Reject names that are not valid shell variable names.
1180 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1181 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1182 { (exit 1); exit 1; }; }
1183 ac_useropt_orig
=$ac_useropt
1184 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1185 case $ac_user_opts in
1189 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1190 ac_unrecognized_sep
=', ';;
1192 eval with_
$ac_useropt=\
$ac_optarg ;;
1194 -without-* |
--without-*)
1195 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1196 # Reject names that are not valid shell variable names.
1197 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1198 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1199 { (exit 1); exit 1; }; }
1200 ac_useropt_orig
=$ac_useropt
1201 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1202 case $ac_user_opts in
1206 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1207 ac_unrecognized_sep
=', ';;
1209 eval with_
$ac_useropt=no
;;
1212 # Obsolete; use --with-x.
1215 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1216 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1217 ac_prev
=x_includes
;;
1218 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1219 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1220 x_includes
=$ac_optarg ;;
1222 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1223 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1224 ac_prev
=x_libraries
;;
1225 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1226 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1227 x_libraries
=$ac_optarg ;;
1229 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1230 Try \`$0 --help' for more information." >&2
1231 { (exit 1); exit 1; }; }
1235 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1236 # Reject names that are not valid shell variable names.
1237 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1238 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1239 { (exit 1); exit 1; }; }
1240 eval $ac_envvar=\
$ac_optarg
1241 export $ac_envvar ;;
1244 # FIXME: should be removed in autoconf 3.0.
1245 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1246 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1247 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1248 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1254 if test -n "$ac_prev"; then
1255 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1256 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1257 { (exit 1); exit 1; }; }
1260 if test -n "$ac_unrecognized_opts"; then
1261 case $enable_option_checking in
1263 fatal
) { $as_echo "$as_me: error: Unrecognized options: $ac_unrecognized_opts" >&2
1264 { (exit 1); exit 1; }; } ;;
1265 *) $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2 ;;
1269 # Check all directory arguments for consistency.
1270 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1271 datadir sysconfdir sharedstatedir localstatedir includedir \
1272 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1273 libdir localedir mandir
1275 eval ac_val
=\$
$ac_var
1276 # Remove trailing slashes.
1279 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1280 eval $ac_var=\
$ac_val;;
1282 # Be sure to have absolute directory names.
1284 [\\/$
]* | ?
:[\\/]* ) continue;;
1285 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1287 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1288 { (exit 1); exit 1; }; }
1291 # There might be people who depend on the old broken behavior: `$host'
1292 # used to hold the argument of --host etc.
1293 # FIXME: To remove some day.
1296 target
=$target_alias
1298 # FIXME: To remove some day.
1299 if test "x$host_alias" != x
; then
1300 if test "x$build_alias" = x
; then
1301 cross_compiling
=maybe
1302 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1303 If a cross compiler is detected then cross compile mode will be used." >&2
1304 elif test "x$build_alias" != "x$host_alias"; then
1310 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1312 test "$silent" = yes && exec 6>/dev
/null
1315 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1316 ac_ls_di
=`ls -di .` &&
1317 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1318 { $as_echo "$as_me: error: Working directory cannot be determined" >&2
1319 { (exit 1); exit 1; }; }
1320 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1321 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1322 { (exit 1); exit 1; }; }
1325 # Find the source files, if location was not specified.
1326 if test -z "$srcdir"; then
1327 ac_srcdir_defaulted
=yes
1328 # Try the directory containing this script, then the parent directory.
1329 ac_confdir
=`$as_dirname -- "$as_myself" ||
1330 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1331 X"$as_myself" : 'X\(//\)[^/]' \| \
1332 X"$as_myself" : 'X\(//\)$' \| \
1333 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1334 $as_echo X"$as_myself" |
1335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1353 if test ! -r "$srcdir/$ac_unique_file"; then
1357 ac_srcdir_defaulted
=no
1359 if test ! -r "$srcdir/$ac_unique_file"; then
1360 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1361 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1362 { (exit 1); exit 1; }; }
1364 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1366 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1367 { (exit 1); exit 1; }; }
1369 # When building in place, set srcdir=.
1370 if test "$ac_abs_confdir" = "$ac_pwd"; then
1373 # Remove unnecessary trailing slashes from srcdir.
1374 # Double slashes in file names in object file debugging info
1375 # mess up M-x gdb in Emacs.
1377 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1379 for ac_var
in $ac_precious_vars; do
1380 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1381 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1382 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1383 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1387 # Report the --help message.
1389 if test "$ac_init_help" = "long"; then
1390 # Omit some internal or obsolete options to make the list less imposing.
1391 # This message is too long to be a string in the A/UX 3.1 sh.
1393 \`configure' configures emacs 24.0.50 to adapt to many kinds of systems.
1395 Usage: $0 [OPTION]... [VAR=VALUE]...
1397 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1398 VAR=VALUE. See below for descriptions of some of the useful variables.
1400 Defaults for the options are specified in brackets.
1403 -h, --help display this help and exit
1404 --help=short display options specific to this package
1405 --help=recursive display the short help of all the included packages
1406 -V, --version display version information and exit
1407 -q, --quiet, --silent do not print \`checking...' messages
1408 --cache-file=FILE cache test results in FILE [disabled]
1409 -C, --config-cache alias for \`--cache-file=config.cache'
1410 -n, --no-create do not create output files
1411 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1413 Installation directories:
1414 --prefix=PREFIX install architecture-independent files in PREFIX
1415 [$ac_default_prefix]
1416 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1419 By default, \`make install' will install all the files in
1420 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1421 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1422 for instance \`--prefix=\$HOME'.
1424 For better control, use the options below.
1426 Fine tuning of the installation directories:
1427 --bindir=DIR user executables [EPREFIX/bin]
1428 --sbindir=DIR system admin executables [EPREFIX/sbin]
1429 --libexecdir=DIR program executables [EPREFIX/libexec]
1430 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1431 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1432 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1433 --libdir=DIR object code libraries [EPREFIX/lib]
1434 --includedir=DIR C header files [PREFIX/include]
1435 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1436 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1437 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1438 --infodir=DIR info documentation [DATAROOTDIR/info]
1439 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1440 --mandir=DIR man documentation [DATAROOTDIR/man]
1441 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1442 --htmldir=DIR html documentation [DOCDIR]
1443 --dvidir=DIR dvi documentation [DOCDIR]
1444 --pdfdir=DIR pdf documentation [DOCDIR]
1445 --psdir=DIR ps documentation [DOCDIR]
1451 --program-prefix=PREFIX prepend PREFIX to installed program names
1452 --program-suffix=SUFFIX append SUFFIX to installed program names
1453 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1456 --x-includes=DIR X include files are
in DIR
1457 --x-libraries=DIR X library files are
in DIR
1460 --build=BUILD configure
for building on BUILD
[guessed
]
1461 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1465 if test -n "$ac_init_help"; then
1466 case $ac_init_help in
1467 short | recursive
) echo "Configuration of emacs 24.0.50:";;
1472 --disable-option-checking ignore unrecognized
--enable/--with options
1473 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1474 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1475 --disable-ns-self-contained
1476 disable self contained build under NeXTstep
1477 --enable-asserts compile code with asserts enabled
1478 --enable-maintainer-mode
1479 enable make rules and dependencies not useful
(and
1480 sometimes confusing
) to the casual installer
1481 --enable-locallisppath=PATH
1482 directories Emacs should search
for lisp files
1483 specific to this site
1484 --enable-checking[=LIST
]
1485 enable expensive run-time checks. With LIST
, enable
1486 only specific categories of checks. Categories are
:
1487 all
,yes,no. Flags are
: stringbytes
, stringoverrun
,
1488 stringfreelist
, xmallocoverrun
, conslist
1489 --enable-profiling build emacs with profiling support. This might not
1490 work on all platforms
1491 --enable-autodepend automatically generate dependencies to .h-files.
1492 Requires GNU Make and Gcc. Enabled
if GNU Make and
1494 --disable-largefile omit support
for large files
1497 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1498 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1499 --without-pop don
't support POP mail retrieval with movemail
1500 --with-kerberos support Kerberos-authenticated POP
1501 --with-kerberos5 support Kerberos version 5 authenticated POP
1502 --with-hesiod support Hesiod to get the POP server host
1503 --with-mmdf support MMDF mailboxes
1504 --with-mail-unlink unlink, rather than empty, mail spool after reading
1505 --with-mailhost=HOSTNAME
1506 string giving default POP mail host
1507 --without-sound don't compile with sound support
1508 --without-sync-input process async input synchronously
1509 --with-x-toolkit=KIT use an X toolkit
(KIT one of
: yes or gtk
, lucid or
1511 --without-xpm don
't compile with XPM image support
1512 --without-jpeg don't compile with JPEG image support
1513 --without-tiff don
't compile with TIFF image support
1514 --without-gif don't compile with GIF image support
1515 --without-png don
't compile with PNG image support
1516 --without-rsvg don't compile with SVG image support
1517 --without-xft don
't use XFT for anti aliased fonts
1518 --without-libotf don't use libotf
for OpenType font support
1519 --without-m17n-flt don
't use m17n-flt for text shaping
1520 --without-toolkit-scroll-bars
1521 don't use Motif or Xaw3d scroll bars
1522 --without-xaw3d don
't use Xaw3d
1523 --without-xim don't use X11 XIM
1524 --with-ns use nextstep
(Cocoa or GNUstep
) windowing system
1525 --without-gpm don
't use -lgpm for mouse support on a GNU/Linux
1527 --without-dbus don't compile with D-Bus support
1528 --without-gconf don
't compile with GConf support
1529 --without-selinux don't compile with SELinux support
1530 --without-makeinfo don
't require makeinfo for building manuals
1532 --with-pkg-config-prog=PATH
1533 path to pkg-config for finding GTK and librsvg
1534 --with-gnustep-conf=PATH
1535 path to GNUstep.conf; default $GNUSTEP_CONFIG_FILE,
1536 or /etc/GNUstep/GNUstep.conf
1537 --with-x use the X Window System
1539 Some influential environment variables:
1540 CC C compiler command
1541 CFLAGS C compiler flags
1542 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1543 nonstandard directory <lib dir>
1544 LIBS libraries to pass to the linker, e.g. -l<library>
1545 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1546 you have headers in a nonstandard directory <include dir>
1548 XMKMF Path to xmkmf, Makefile generator for X Window System
1550 Use these variables to override the choices made by `configure' or to
help
1551 it to
find libraries and programs with nonstandard names
/locations.
1557 if test "$ac_init_help" = "recursive"; then
1558 # If there are subdirs, report their specific --help.
1559 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1560 test -d "$ac_dir" ||
1561 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1566 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1568 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1569 # A ".." for each directory in $ac_dir_suffix.
1570 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1571 case $ac_top_builddir_sub in
1572 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1573 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1576 ac_abs_top_builddir
=$ac_pwd
1577 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1578 # for backward compatibility:
1579 ac_top_builddir
=$ac_top_build_prefix
1582 .
) # We are building in place.
1584 ac_top_srcdir
=$ac_top_builddir_sub
1585 ac_abs_top_srcdir
=$ac_pwd ;;
1586 [\\/]* | ?
:[\\/]* ) # Absolute name.
1587 ac_srcdir
=$srcdir$ac_dir_suffix;
1588 ac_top_srcdir
=$srcdir
1589 ac_abs_top_srcdir
=$srcdir ;;
1591 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1592 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1593 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1595 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1597 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1598 # Check for guested configure.
1599 if test -f "$ac_srcdir/configure.gnu"; then
1601 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1602 elif test -f "$ac_srcdir/configure"; then
1604 $SHELL "$ac_srcdir/configure" --help=recursive
1606 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1608 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1612 test -n "$ac_init_help" && exit $ac_status
1613 if $ac_init_version; then
1615 emacs configure
24.0.50
1616 generated by GNU Autoconf
2.62
1618 Copyright
(C
) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1619 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation
, Inc.
1620 This configure
script is free software
; the Free Software Foundation
1621 gives unlimited permission to copy
, distribute and modify it.
1625 cat >config.log
<<_ACEOF
1626 This file contains any messages produced by compilers while
1627 running configure, to aid debugging if configure makes a mistake.
1629 It was created by emacs $as_me 24.0.50, which was
1630 generated by GNU Autoconf 2.62. Invocation command line was
1642 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1643 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1644 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1645 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1646 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1648 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1649 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1651 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1652 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1653 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1654 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1655 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1656 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1657 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1661 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1665 test -z "$as_dir" && as_dir
=.
1666 $as_echo "PATH: $as_dir"
1682 # Keep a trace of the command line.
1683 # Strip out --no-create and --no-recursion so they do not pile up.
1684 # Strip out --silent because we don't want to record it for future runs.
1685 # Also quote any args containing shell meta-characters.
1686 # Make two passes to allow for proper duplicate-argument suppression.
1690 ac_must_keep_next
=false
1696 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
1697 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1698 |
-silent |
--silent |
--silen |
--sile |
--sil)
1701 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1704 1) ac_configure_args0
="$ac_configure_args0 '$ac_arg'" ;;
1706 ac_configure_args1
="$ac_configure_args1 '$ac_arg'"
1707 if test $ac_must_keep_next = true
; then
1708 ac_must_keep_next
=false
# Got value, back to normal.
1711 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
1712 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
1713 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
1714 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
1715 case "$ac_configure_args0 " in
1716 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1719 -* ) ac_must_keep_next
=true
;;
1722 ac_configure_args
="$ac_configure_args '$ac_arg'"
1727 $as_unset ac_configure_args0 ||
test "${ac_configure_args0+set}" != set ||
{ ac_configure_args0
=; export ac_configure_args0
; }
1728 $as_unset ac_configure_args1 ||
test "${ac_configure_args1+set}" != set ||
{ ac_configure_args1
=; export ac_configure_args1
; }
1730 # When interrupted or exit'd, cleanup temporary files, and complete
1731 # config.log. We remove comments because anyway the quotes in there
1732 # would cause problems or look ugly.
1733 # WARNING: Use '\'' to represent an apostrophe within the trap.
1734 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1735 trap 'exit_status=$?
1736 # Save into config.log some information that might help in debugging.
1741 ## ---------------- ##
1742 ## Cache variables. ##
1743 ## ---------------- ##
1746 # The following way of writing the cache mishandles newlines in values,
1748 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1749 eval ac_val=\$$ac_var
1753 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1754 $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1757 _ | IFS | as_nl) ;; #(
1758 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1759 *) $as_unset $ac_var ;;
1764 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1765 *${as_nl}ac_space=\ *)
1767 "s/'\''/'\''\\\\'\'''\''/g;
1768 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1771 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1779 ## ----------------- ##
1780 ## Output variables. ##
1781 ## ----------------- ##
1784 for ac_var in $ac_subst_vars
1786 eval ac_val=\$$ac_var
1788 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1790 $as_echo "$ac_var='\''$ac_val'\''"
1794 if test -n "$ac_subst_files"; then
1796 ## ------------------- ##
1797 ## File substitutions. ##
1798 ## ------------------- ##
1801 for ac_var
in $ac_subst_files
1803 eval ac_val
=\$
$ac_var
1805 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1807 $as_echo "$ac_var='\''$ac_val'\''"
1812 if test -s confdefs.h; then
1822 test "$ac_signal" != 0 &&
1823 $as_echo "$as_me: caught signal $ac_signal"
1824 $as_echo "$as_me: exit $exit_status"
1826 rm -f core *.core core.conftest.* &&
1827 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1830 for ac_signal
in 1 2 13 15; do
1831 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1835 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1836 rm -f -r conftest
* confdefs.h
1838 # Predefined preprocessor variables.
1840 cat >>confdefs.h
<<_ACEOF
1841 #define PACKAGE_NAME "$PACKAGE_NAME"
1845 cat >>confdefs.h
<<_ACEOF
1846 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1850 cat >>confdefs.h
<<_ACEOF
1851 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1855 cat >>confdefs.h
<<_ACEOF
1856 #define PACKAGE_STRING "$PACKAGE_STRING"
1860 cat >>confdefs.h
<<_ACEOF
1861 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1865 # Let the site file select an alternate cache file if it wants to.
1866 # Prefer an explicitly selected file to automatically selected ones.
1869 if test -n "$CONFIG_SITE"; then
1870 ac_site_file1
=$CONFIG_SITE
1871 elif test "x$prefix" != xNONE
; then
1872 ac_site_file1
=$prefix/share
/config.site
1873 ac_site_file2
=$prefix/etc
/config.site
1875 ac_site_file1
=$ac_default_prefix/share
/config.site
1876 ac_site_file2
=$ac_default_prefix/etc
/config.site
1878 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
1880 test "x$ac_site_file" = xNONE
&& continue
1881 if test -r "$ac_site_file"; then
1882 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1883 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1884 sed 's/^/| /' "$ac_site_file" >&5
1889 if test -r "$cache_file"; then
1890 # Some versions of bash will fail to source /dev/null (special
1891 # files actually), so we avoid doing that.
1892 if test -f "$cache_file"; then
1893 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1894 $as_echo "$as_me: loading cache $cache_file" >&6;}
1896 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
1897 *) .
"./$cache_file";;
1901 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1902 $as_echo "$as_me: creating cache $cache_file" >&6;}
1906 ac_header_list
="$ac_header_list sys/time.h"
1907 ac_header_list
="$ac_header_list unistd.h"
1908 ac_func_list
="$ac_func_list alarm"
1909 # Check that the precious variables saved in the cache have kept the same
1911 ac_cache_corrupted
=false
1912 for ac_var
in $ac_precious_vars; do
1913 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
1914 eval ac_new_set
=\
$ac_env_${ac_var}_set
1915 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
1916 eval ac_new_val
=\
$ac_env_${ac_var}_value
1917 case $ac_old_set,$ac_new_set in
1919 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1920 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1921 ac_cache_corrupted
=: ;;
1923 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1924 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1925 ac_cache_corrupted
=: ;;
1928 if test "x$ac_old_val" != "x$ac_new_val"; then
1929 # differences in whitespace do not lead to failure.
1930 ac_old_val_w
=`echo x $ac_old_val`
1931 ac_new_val_w
=`echo x $ac_new_val`
1932 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1933 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1934 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1935 ac_cache_corrupted
=:
1937 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1938 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1939 eval $ac_var=\
$ac_old_val
1941 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1942 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1943 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1944 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1947 # Pass precious variables to config.status.
1948 if test "$ac_new_set" = set; then
1950 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1951 *) ac_arg
=$ac_var=$ac_new_val ;;
1953 case " $ac_configure_args " in
1954 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1955 *) ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
1959 if $ac_cache_corrupted; then
1960 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1961 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1962 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1963 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1964 { (exit 1); exit 1; }; }
1992 ac_cpp
='$CPP $CPPFLAGS'
1993 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1994 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1995 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1998 ac_config_headers
="$ac_config_headers src/config.h:src/config.in"
2002 test "$program_prefix" != NONE
&&
2003 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
2004 # Use a double $ so make ignores it.
2005 test "$program_suffix" != NONE
&&
2006 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
2007 # Double any \ or $.
2008 # By default was `s,x,x', remove it if useless.
2009 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
2010 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
2013 lispdir
='${datadir}/emacs/${version}/lisp'
2014 locallisppath
='${datadir}/emacs/${version}/site-lisp:'\
2015 '${datadir}/emacs/site-lisp'
2016 lisppath
='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
2017 etcdir
='${datadir}/emacs/${version}/etc'
2018 archlibdir
='${libexecdir}/emacs/${version}/${configuration}'
2019 docdir
='${datadir}/emacs/${version}/etc'
2020 gamedir
='${localstatedir}/games/emacs'
2027 # Check whether --with-pop was given.
2028 if test "${with_pop+set}" = set; then
2034 if test "$with_pop" = yes; then
2035 cat >>confdefs.h
<<\_ACEOF
2036 #define MAIL_USE_POP 1
2043 # Check whether --with-kerberos was given.
2044 if test "${with_kerberos+set}" = set; then
2045 withval
=$with_kerberos;
2050 if test "$with_kerberos" != no
; then
2051 cat >>confdefs.h
<<\_ACEOF
2059 # Check whether --with-kerberos5 was given.
2060 if test "${with_kerberos5+set}" = set; then
2061 withval
=$with_kerberos5;
2066 if test "${with_kerberos5}" != no
; then
2067 if test "${with_kerberos}" = no
; then
2069 cat >>confdefs.h
<<\_ACEOF
2075 cat >>confdefs.h
<<\_ACEOF
2082 # Check whether --with-hesiod was given.
2083 if test "${with_hesiod+set}" = set; then
2084 withval
=$with_hesiod;
2089 if test "$with_hesiod" != no
; then
2091 cat >>confdefs.h
<<\_ACEOF
2098 # Check whether --with-mmdf was given.
2099 if test "${with_mmdf+set}" = set; then
2105 if test "$with_mmdf" != no
; then
2107 cat >>confdefs.h
<<\_ACEOF
2108 #define MAIL_USE_MMDF 1
2114 # Check whether --with-mail-unlink was given.
2115 if test "${with_mail_unlink+set}" = set; then
2116 withval
=$with_mail_unlink;
2121 if test "$with_mail_unlink" != no
; then
2123 cat >>confdefs.h
<<\_ACEOF
2124 #define MAIL_UNLINK_SPOOL 1
2130 # Check whether --with-mailhost was given.
2131 if test "${with_mailhost+set}" = set; then
2132 withval
=$with_mailhost;
2133 cat >>confdefs.h
<<_ACEOF
2134 #define MAILHOST "$withval"
2141 # Check whether --with-sound was given.
2142 if test "${with_sound+set}" = set; then
2143 withval
=$with_sound;
2150 # Check whether --with-sync-input was given.
2151 if test "${with_sync_input+set}" = set; then
2152 withval
=$with_sync_input;
2157 if test "$with_sync_input" = yes; then
2159 cat >>confdefs.h
<<\_ACEOF
2160 #define SYNC_INPUT 1
2166 # Check whether --with-x-toolkit was given.
2167 if test "${with_x_toolkit+set}" = set; then
2168 withval
=$with_x_toolkit; case "${withval}" in
2169 y | ye |
yes ) val
=gtk
;;
2171 l | lu | luc | luci | lucid
) val
=lucid
;;
2172 a |
at | ath | athe | athen | athena
) val
=athena
;;
2173 m | mo | mot | moti | motif
) val
=motif
;;
2174 g | gt | gtk
) val
=gtk
;;
2176 { { $as_echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid;
2177 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
2178 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&5
2179 $as_echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid;
2180 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
2181 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&2;}
2182 { (exit 1); exit 1; }; }
2191 # Check whether --with-xpm was given.
2192 if test "${with_xpm+set}" = set; then
2199 # Check whether --with-jpeg was given.
2200 if test "${with_jpeg+set}" = set; then
2207 # Check whether --with-tiff was given.
2208 if test "${with_tiff+set}" = set; then
2215 # Check whether --with-gif was given.
2216 if test "${with_gif+set}" = set; then
2223 # Check whether --with-png was given.
2224 if test "${with_png+set}" = set; then
2231 # Check whether --with-rsvg was given.
2232 if test "${with_rsvg+set}" = set; then
2240 # Check whether --with-xft was given.
2241 if test "${with_xft+set}" = set; then
2248 # Check whether --with-libotf was given.
2249 if test "${with_libotf+set}" = set; then
2250 withval
=$with_libotf;
2256 # Check whether --with-m17n-flt was given.
2257 if test "${with_m17n_flt+set}" = set; then
2258 withval
=$with_m17n_flt;
2265 # Check whether --with-toolkit-scroll-bars was given.
2266 if test "${with_toolkit_scroll_bars+set}" = set; then
2267 withval
=$with_toolkit_scroll_bars;
2269 with_toolkit_scroll_bars
=yes
2273 # Check whether --with-xaw3d was given.
2274 if test "${with_xaw3d+set}" = set; then
2275 withval
=$with_xaw3d;
2281 # Check whether --with-xim was given.
2282 if test "${with_xim+set}" = set; then
2289 # Check whether --with-ns was given.
2290 if test "${with_ns+set}" = set; then
2298 # Check whether --with-gpm was given.
2299 if test "${with_gpm+set}" = set; then
2306 # Check whether --with-dbus was given.
2307 if test "${with_dbus+set}" = set; then
2314 # Check whether --with-gconf was given.
2315 if test "${with_gconf+set}" = set; then
2316 withval
=$with_gconf;
2322 # Check whether --with-selinux was given.
2323 if test "${with_selinux+set}" = set; then
2324 withval
=$with_selinux;
2330 ## For the times when you want to build Emacs but don't have
2331 ## a suitable makeinfo, and can live without the manuals.
2333 # Check whether --with-makeinfo was given.
2334 if test "${with_makeinfo+set}" = set; then
2335 withval
=$with_makeinfo;
2342 # Check whether --with-gtk was given.
2343 if test "${with_gtk+set}" = set; then
2344 withval
=$with_gtk; { { $as_echo "$as_me:$LINENO: error: --with-gtk has been removed. Use --with-x-toolkit to
2345 specify a toolkit." >&5
2346 $as_echo "$as_me: error: --with-gtk has been removed. Use --with-x-toolkit to
2347 specify a toolkit." >&2;}
2348 { (exit 1); exit 1; }; }
2353 # Check whether --with-gcc was given.
2354 if test "${with_gcc+set}" = set; then
2355 withval
=$with_gcc; { { $as_echo "$as_me:$LINENO: error: --with-gcc has been removed. Set the \`CC' environment
2356 variable to specify a compiler." >&5
2357 $as_echo "$as_me: error: --with-gcc has been removed. Set the \`CC' environment
2358 variable to specify a compiler." >&2;}
2359 { (exit 1); exit 1; }; }
2364 # Check whether --with-pkg-config-prog was given.
2365 if test "${with_pkg_config_prog+set}" = set; then
2366 withval
=$with_pkg_config_prog;
2369 if test "X${with_pkg_config_prog}" != X
; then
2370 if test "${with_pkg_config_prog}" != yes; then
2371 PKG_CONFIG
="${with_pkg_config_prog}"
2376 # Check whether --with-gnustep-conf was given.
2377 if test "${with_gnustep_conf+set}" = set; then
2378 withval
=$with_gnustep_conf;
2381 test "X${with_gnustep_conf}" != X
&& test "${with_gnustep_conf}" != yes && \
2382 GNUSTEP_CONFIG_FILE
="${with_gnustep_conf}"
2383 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
2384 GNUSTEP_CONFIG_FILE
=/etc
/GNUstep
/GNUstep.conf
2386 # Check whether --enable-ns-self-contained was given.
2387 if test "${enable_ns_self_contained+set}" = set; then
2388 enableval
=$enable_ns_self_contained; EN_NS_SELF_CONTAINED
=$enableval
2390 EN_NS_SELF_CONTAINED
=yes
2394 # Check whether --enable-asserts was given.
2395 if test "${enable_asserts+set}" = set; then
2396 enableval
=$enable_asserts; USE_XASSERTS
=$enableval
2402 # Check whether --enable-maintainer-mode was given.
2403 if test "${enable_maintainer_mode+set}" = set; then
2404 enableval
=$enable_maintainer_mode; USE_MAINTAINER_MODE
=$enableval
2406 USE_MAINTAINER_MODE
=no
2409 if test $USE_MAINTAINER_MODE = yes; then
2416 # Check whether --enable-locallisppath was given.
2417 if test "${enable_locallisppath+set}" = set; then
2418 enableval
=$enable_locallisppath; if test "${enableval}" = "no"; then
2420 elif test "${enableval}" != "yes"; then
2421 locallisppath
=${enableval}
2426 # Check whether --enable-checking was given.
2427 if test "${enable_checking+set}" = set; then
2428 enableval
=$enable_checking; ac_checking_flags
="${enableval}"
2431 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
2432 for check
in $ac_checking_flags
2435 # these set all the flags to specific states
2436 yes) ac_enable_checking
=1 ;;
2437 no
) ac_enable_checking
= ;
2438 ac_gc_check_stringbytes
= ;
2439 ac_gc_check_string_overrun
= ;
2440 ac_gc_check_string_free_list
= ;
2441 ac_xmalloc_overrun
= ;
2442 ac_gc_check_cons_list
= ;;
2443 all
) ac_enable_checking
=1 ;
2444 ac_gc_check_stringbytes
=1 ;
2445 ac_gc_check_string_overrun
=1 ;
2446 ac_gc_check_string_free_list
=1 ;
2447 ac_xmalloc_overrun
=1 ;
2448 ac_gc_check_cons_list
=1 ;;
2449 # these enable particular checks
2450 stringbytes
) ac_gc_check_stringbytes
=1 ;;
2451 stringoverrun
) ac_gc_check_string_overrun
=1 ;;
2452 stringfreelist
) ac_gc_check_string_free_list
=1 ;;
2453 xmallocoverrun
) ac_xmalloc_overrun
=1 ;;
2454 conslist
) ac_gc_check_cons_list
=1 ;;
2455 *) { { $as_echo "$as_me:$LINENO: error: unknown check category $check" >&5
2456 $as_echo "$as_me: error: unknown check category $check" >&2;}
2457 { (exit 1); exit 1; }; } ;;
2462 if test x
$ac_enable_checking != x
; then
2464 cat >>confdefs.h
<<\_ACEOF
2465 #define ENABLE_CHECKING 1
2469 if test x
$ac_gc_check_stringbytes != x
; then
2471 cat >>confdefs.h
<<\_ACEOF
2472 #define GC_CHECK_STRING_BYTES 1
2476 if test x
$ac_gc_check_stringoverrun != x
; then
2478 cat >>confdefs.h
<<\_ACEOF
2479 #define GC_CHECK_STRING_OVERRUN 1
2483 if test x
$ac_gc_check_string_free_list != x
; then
2485 cat >>confdefs.h
<<\_ACEOF
2486 #define GC_CHECK_STRING_FREE_LIST 1
2490 if test x
$ac_xmalloc_overrun != x
; then
2492 cat >>confdefs.h
<<\_ACEOF
2493 #define XMALLOC_OVERRUN_CHECK 1
2497 if test x
$ac_gc_check_cons_list != x
; then
2499 cat >>confdefs.h
<<\_ACEOF
2500 #define GC_CHECK_CONS_LIST 1
2505 # Check whether --enable-profiling was given.
2506 if test "${enable_profiling+set}" = set; then
2507 enableval
=$enable_profiling; ac_enable_profiling
="${enableval}"
2510 if test x
$ac_enable_profiling != x
; then
2511 PROFILING_CFLAGS
="-DPROFILING=1 -pg"
2512 PROFILING_LDFLAGS
="-pg"
2518 # Check whether --enable-autodepend was given.
2519 if test "${enable_autodepend+set}" = set; then
2520 enableval
=$enable_autodepend; ac_enable_autodepend
="${enableval}"
2522 ac_enable_autodepend
=yes
2526 #### Make srcdir absolute, if it isn't already. It's important to
2527 #### avoid running the path through pwd unnecessarily, since pwd can
2528 #### give you automounter prefixes, which can go away. We do all this
2529 #### so Emacs can find its files when run uninstalled.
2530 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
2535 ## We may be able to use the $PWD environment variable to make this
2536 ## absolute. But sometimes PWD is inaccurate.
2537 ## Note: we used to use ${PWD} at the end instead of `pwd`,
2538 ## but that tested only for a well-formed and valid PWD,
2539 ## it did not object when PWD was well-formed and valid but just wrong.
2540 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
2544 srcdir
="`(cd ${srcdir}; pwd)`"
2547 * ) srcdir
="`(cd ${srcdir}; pwd)`" ;;
2550 #### Check if the source directory already has a configured system in it.
2551 if test `pwd` != `(cd ${srcdir} && pwd)` \
2552 && test -f "${srcdir}/src/config.h" ; then
2553 { $as_echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
2554 as a build directory right now; it has been configured in its own
2555 right. To configure in another directory as well, you MUST
2556 use GNU make. If you do not have GNU make, then you must
2557 now do \`make distclean' in ${srcdir},
2558 and then run $0 again." >&5
2559 $as_echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
2560 as a build directory right now; it has been configured in its own
2561 right. To configure in another directory as well, you MUST
2562 use GNU make. If you do not have GNU make, then you must
2563 now do \`make distclean' in ${srcdir},
2564 and then run $0 again." >&2;}
2567 #### Given the configuration name, set machfile and opsysfile to the
2568 #### names of the m/*.h and s/*.h files we should use.
2570 ### Canonicalize the configuration name.
2573 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2574 if test -f "$ac_dir/install-sh"; then
2576 ac_install_sh
="$ac_aux_dir/install-sh -c"
2578 elif test -f "$ac_dir/install.sh"; then
2580 ac_install_sh
="$ac_aux_dir/install.sh -c"
2582 elif test -f "$ac_dir/shtool"; then
2584 ac_install_sh
="$ac_aux_dir/shtool install -c"
2588 if test -z "$ac_aux_dir"; then
2589 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2590 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2591 { (exit 1); exit 1; }; }
2594 # These three variables are undocumented and unsupported,
2595 # and are intended to be withdrawn in a future Autoconf release.
2596 # They can cause serious problems if a builder's source tree is in a directory
2597 # whose full name contains unusual characters.
2598 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2599 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2600 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2603 # Make sure we can run config.sub.
2604 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2605 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2606 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2607 { (exit 1); exit 1; }; }
2609 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2610 $as_echo_n "checking build system type... " >&6; }
2611 if test "${ac_cv_build+set}" = set; then
2612 $as_echo_n "(cached) " >&6
2614 ac_build_alias
=$build_alias
2615 test "x$ac_build_alias" = x
&&
2616 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2617 test "x$ac_build_alias" = x
&&
2618 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2619 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2620 { (exit 1); exit 1; }; }
2621 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2622 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2623 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2624 { (exit 1); exit 1; }; }
2627 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2628 $as_echo "$ac_cv_build" >&6; }
2629 case $ac_cv_build in
2631 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2632 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2633 { (exit 1); exit 1; }; };;
2636 ac_save_IFS
=$IFS; IFS
='-'
2642 # Remember, the first character of IFS is used to create $*,
2643 # except with old shells:
2646 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2649 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2650 $as_echo_n "checking host system type... " >&6; }
2651 if test "${ac_cv_host+set}" = set; then
2652 $as_echo_n "(cached) " >&6
2654 if test "x$host_alias" = x
; then
2655 ac_cv_host
=$ac_cv_build
2657 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2658 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2659 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2660 { (exit 1); exit 1; }; }
2664 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2665 $as_echo "$ac_cv_host" >&6; }
2668 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2669 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2670 { (exit 1); exit 1; }; };;
2673 ac_save_IFS
=$IFS; IFS
='-'
2679 # Remember, the first character of IFS is used to create $*,
2680 # except with old shells:
2683 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2687 configuration
=${host_alias-${build_alias-$host}}
2691 ### If you add support for a new configuration, add code to this
2692 ### switch statement to recognize your configuration name and select
2693 ### the appropriate operating system and machine description files.
2695 ### You would hope that you could choose an m/*.h file pretty much
2696 ### based on the machine portion of the configuration name, and an s-
2697 ### file based on the operating system portion. However, it turns out
2698 ### that each m/*.h file is pretty manufacturer-specific - for
2699 ### example mips.h is MIPS
2700 ### So we basically have to have a special case for each
2701 ### configuration name.
2703 ### As far as handling version numbers on operating systems is
2704 ### concerned, make sure things will fail in a fixable way. If
2705 ### /etc/MACHINES doesn't say anything about version numbers, be
2706 ### prepared to handle anything reasonably. If version numbers
2707 ### matter, be sure /etc/MACHINES says something about it.
2709 ### Eric Raymond says we should accept strings like "sysvr4" to mean
2710 ### "System V Release 4"; he writes, "The old convention encouraged
2711 ### confusion between `system' and `release' levels'."
2713 machine
='' opsys
='' unported
=no
2714 case "${canonical}" in
2719 case "${canonical}" in
2720 alpha
*-*-freebsd*) machine
=alpha
;;
2721 arm
*-*-freebsd*) machine
=arm
;;
2722 ia64-
*-freebsd*) machine
=ia64
;;
2723 sparc-
*-freebsd*) machine
=sparc
;;
2724 sparc64-
*-freebsd*) machine
=sparc
;;
2725 powerpc-
*-freebsd*) machine
=macppc
;;
2726 i
[3456]86-*-freebsd*) machine
=intel386
;;
2727 amd64-
*-freebsd*|x86_64-
*-freebsd*) machine
=amdx86-64
;;
2731 ## FreeBSD kernel + glibc based userland
2734 case "${canonical}" in
2735 alpha
*-*-kfreebsd*) machine
=alpha
;;
2736 ia64-
*-kfreebsd*) machine
=ia64
;;
2737 sparc-
*-kfreebsd*) machine
=sparc
;;
2738 sparc64-
*-kfreebsd*) machine
=sparc
;;
2739 powerpc-
*-kfreebsd*) machine
=macppc
;;
2740 i
[3456]86-*-kfreebsd*) machine
=intel386
;;
2741 amd64-
*-kfreebsd*|x86_64-
*-kfreebsd*) machine
=amdx86-64
;;
2748 if test -f /usr
/lib
/crti.o
; then
2750 cat >>confdefs.h
<<\_ACEOF
2751 #define HAVE_CRTIN /**/
2756 case "${canonical}" in
2757 alpha
*-*-netbsd*) machine
=alpha
;;
2758 i
[3456]86-*-netbsd*) machine
=intel386
;;
2759 mips-
*-netbsd*) machine
=mips
;;
2760 mipsel-
*-netbsd*) machine
=mips
;;
2761 mipseb-
*-netbsd*) machine
=mips
;;
2762 powerpc-
*-netbsd*) machine
=macppc
;;
2763 sparc
*-*-netbsd*) machine
=sparc
;;
2764 vax-
*-netbsd*) machine
=vax
;;
2765 arm-
*-netbsd*) machine
=arm
;;
2766 x86_64-
*-netbsd*) machine
=amdx86-64
;;
2767 hppa-
*-netbsd*) machine
=hp800
;;
2768 m68k-
*-netbsd*) machine
=m68k
;;
2775 case "${canonical}" in
2776 alpha
*-*-openbsd*) machine
=alpha
;;
2777 arm-
*-openbsd*) machine
=arm
;;
2778 i386-
*-openbsd*) machine
=intel386
;;
2779 powerpc-
*-openbsd*) machine
=macppc
;;
2780 sparc
*-*-openbsd*) machine
=sparc
;;
2781 vax-
*-openbsd*) machine
=vax
;;
2782 x86_64-
*-openbsd*) machine
=amdx86-64
;;
2783 hppa-
*-openbsd*) machine
=hp800
;;
2787 alpha
*-*-linux-gnu* )
2788 machine
=alpha opsys
=gnu-linux
2792 machine
=arm opsys
=gnu-linux
2795 ## Apple Darwin / Mac OS X
2797 case "${canonical}" in
2798 i
[3456]86-* ) machine
=intel386
;;
2799 powerpc-
* ) machine
=macppc
;;
2800 x86_64-
* ) machine
=amdx86-64
;;
2804 # Define CPP as follows to make autoconf work correctly.
2805 CPP
="${CC-cc} -E -no-cpp-precomp"
2806 # Use fink packages if available.
2807 if test -d /sw
/include
&& test -d /sw
/lib
; then
2808 GCC_TEST_OPTIONS
="-I/sw/include -L/sw/lib"
2809 CPP
="${CPP} ${GCC_TEST_OPTIONS}"
2810 NON_GCC_TEST_OPTIONS
=${GCC_TEST_OPTIONS}
2814 ## HP 9000 series 700 and 800, running HP/UX
2815 hppa
*-hp-hpux10.2
* )
2816 machine
=hp800 opsys
=hpux10-20
2818 hppa
*-hp-hpux1[1-9]* )
2819 machine
=hp800 opsys
=hpux11
2820 CFLAGS
="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
2823 hppa
*-*-linux-gnu* )
2824 machine
=hp800 opsys
=gnu-linux
2829 machine
=ibms390 opsys
=gnu-linux
2831 s390x-
*-linux-gnu* )
2832 machine
=ibms390x opsys
=gnu-linux
2834 rs6000-ibm-aix4.2
* | powerpc-ibm-aix4.2
* )
2835 machine
=ibmrs6000 opsys
=aix4-2
2837 rs6000-ibm-aix4.3
* | powerpc-ibm-aix4.3
* )
2838 machine
=ibmrs6000 opsys
=aix4-2
2840 rs6000-ibm-aix5
* | powerpc-ibm-aix5
* )
2841 machine
=ibmrs6000 opsys
=aix4-2
2843 rs6000-ibm-aix6
* | powerpc-ibm-aix6
* )
2844 machine
=ibmrs6000 opsys
=aix4-2
2847 ## Macintosh PowerPC
2848 powerpc
*-*-linux-gnu* )
2849 machine
=macppc opsys
=gnu-linux
2852 ## Silicon Graphics machines
2855 machine
=iris4d opsys
=irix6-5
2856 # Without defining _LANGUAGE_C, things get masked out in the headers
2857 # so that, for instance, grepping for `free' in stdlib.h fails and
2858 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2859 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2860 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
2864 sparc-
*-linux-gnu* | sparc64-
*-linux-gnu* )
2865 machine
=sparc opsys
=gnu-linux
2869 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* \
2870 | x86_64-
*-solaris2* | x86_64-
*-sunos5*)
2871 case "${canonical}" in
2872 i
[3456]86-*-* ) machine
=intel386
;;
2873 amd64-
*-*|x86_64-
*-*) machine
=amdx86-64
;;
2874 sparc
* ) machine
=sparc
;;
2877 case "${canonical}" in
2878 *-sunos5.6
* |
*-solaris2.6
* )
2880 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2883 *-sunos5.
[7-9]* |
*-solaris2.
[7-9]* )
2885 emacs_check_sunpro_c
=yes
2886 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2888 *-sunos5* |
*-solaris* )
2890 emacs_check_sunpro_c
=yes
2891 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2894 ## Watch out for a compiler that we know will not work.
2895 case "${canonical}" in
2896 *-solaris* |
*-sunos5* )
2897 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
2898 ## /usr/ucb/cc doesn't work;
2899 ## we should find some other compiler that does work.
2909 machine
=ia64 opsys
=gnu-linux
2912 ## Intel 386 machines where we don't care about the manufacturer
2915 case "${canonical}" in
2916 *-cygwin ) opsys
=cygwin
;;
2917 *-darwin* ) opsys
=darwin
2918 CPP
="${CC-cc} -E -no-cpp-precomp"
2920 *-linux-gnu* ) opsys
=gnu-linux
;;
2921 *-sysv4.2uw
* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2922 *-sysv5uw* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2923 *-sysv5OpenUNIX* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2924 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2928 ## m68k Linux-based GNU system
2930 machine
=m68k opsys
=gnu-linux
2933 ## Mips Linux-based GNU system
2934 mips-
*-linux-gnu* | mipsel-
*-linux-gnu* \
2935 | mips64-
*-linux-gnu* | mips64el-
*-linux-gnu* )
2936 machine
=mips opsys
=gnu-linux
2939 ## AMD x86-64 Linux-based GNU system
2940 x86_64-
*-linux-gnu* )
2941 machine
=amdx86-64 opsys
=gnu-linux
2944 ## Tensilica Xtensa Linux-based GNU system
2945 xtensa
*-*-linux-gnu* )
2946 machine
=xtensa opsys
=gnu-linux
2949 ## SuperH Linux-based GNU system
2950 sh
[34]*-*-linux-gnu* )
2951 machine
=sh3 opsys
=gnu-linux
2959 ### If the code above didn't choose an operating system, just choose
2960 ### an operating system based on the configuration name. You really
2961 ### only want to use this when you have no idea what the right
2962 ### operating system is; if you know what operating systems a machine
2963 ### runs, it's cleaner to make it explicit in the case statement
2965 if test x
"${opsys}" = x
; then
2966 case "${canonical}" in
2967 *-gnu* ) opsys
=gnu
;;
2976 if test $unported = yes; then
2977 { { $as_echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
2978 Check \`etc/MACHINES' for recognized configuration names." >&5
2979 $as_echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2980 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2981 { (exit 1); exit 1; }; }
2984 machfile
="m/${machine}.h"
2985 opsysfile
="s/${opsys}.h"
2988 #### Choose a compiler.
2989 test -n "$CC" && cc_specified
=yes
2991 # Save the value of CFLAGS that the user specified.
2992 SPECIFIED_CFLAGS
="$CFLAGS"
2995 ac_cpp
='$CPP $CPPFLAGS'
2996 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2997 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2998 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2999 if test -n "$ac_tool_prefix"; then
3000 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3001 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3002 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3003 $as_echo_n "checking for $ac_word... " >&6; }
3004 if test "${ac_cv_prog_CC+set}" = set; then
3005 $as_echo_n "(cached) " >&6
3007 if test -n "$CC"; then
3008 ac_cv_prog_CC
="$CC" # Let the user override the test.
3010 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3014 test -z "$as_dir" && as_dir
=.
3015 for ac_exec_ext
in '' $ac_executable_extensions; do
3016 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3017 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3018 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3028 if test -n "$CC"; then
3029 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3030 $as_echo "$CC" >&6; }
3032 { $as_echo "$as_me:$LINENO: result: no" >&5
3033 $as_echo "no" >&6; }
3038 if test -z "$ac_cv_prog_CC"; then
3040 # Extract the first word of "gcc", so it can be a program name with args.
3041 set dummy gcc
; ac_word
=$2
3042 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3043 $as_echo_n "checking for $ac_word... " >&6; }
3044 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3045 $as_echo_n "(cached) " >&6
3047 if test -n "$ac_ct_CC"; then
3048 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3050 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3054 test -z "$as_dir" && as_dir
=.
3055 for ac_exec_ext
in '' $ac_executable_extensions; do
3056 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3057 ac_cv_prog_ac_ct_CC
="gcc"
3058 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3067 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3068 if test -n "$ac_ct_CC"; then
3069 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3070 $as_echo "$ac_ct_CC" >&6; }
3072 { $as_echo "$as_me:$LINENO: result: no" >&5
3073 $as_echo "no" >&6; }
3076 if test "x$ac_ct_CC" = x
; then
3079 case $cross_compiling:$ac_tool_warned in
3081 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3082 whose name does not start with the host triplet. If you think this
3083 configuration is useful to you, please write to autoconf@gnu.org." >&5
3084 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3085 whose name does not start with the host triplet. If you think this
3086 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3087 ac_tool_warned
=yes ;;
3095 if test -z "$CC"; then
3096 if test -n "$ac_tool_prefix"; then
3097 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3098 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3099 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3100 $as_echo_n "checking for $ac_word... " >&6; }
3101 if test "${ac_cv_prog_CC+set}" = set; then
3102 $as_echo_n "(cached) " >&6
3104 if test -n "$CC"; then
3105 ac_cv_prog_CC
="$CC" # Let the user override the test.
3107 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3111 test -z "$as_dir" && as_dir
=.
3112 for ac_exec_ext
in '' $ac_executable_extensions; do
3113 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3114 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3115 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3125 if test -n "$CC"; then
3126 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3127 $as_echo "$CC" >&6; }
3129 { $as_echo "$as_me:$LINENO: result: no" >&5
3130 $as_echo "no" >&6; }
3136 if test -z "$CC"; then
3137 # Extract the first word of "cc", so it can be a program name with args.
3138 set dummy cc
; ac_word
=$2
3139 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3140 $as_echo_n "checking for $ac_word... " >&6; }
3141 if test "${ac_cv_prog_CC+set}" = set; then
3142 $as_echo_n "(cached) " >&6
3144 if test -n "$CC"; then
3145 ac_cv_prog_CC
="$CC" # Let the user override the test.
3148 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3152 test -z "$as_dir" && as_dir
=.
3153 for ac_exec_ext
in '' $ac_executable_extensions; do
3154 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3155 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3156 ac_prog_rejected
=yes
3160 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3167 if test $ac_prog_rejected = yes; then
3168 # We found a bogon in the path, so make sure we never use it.
3169 set dummy
$ac_cv_prog_CC
3171 if test $# != 0; then
3172 # We chose a different compiler from the bogus one.
3173 # However, it has the same basename, so the bogon will be chosen
3174 # first if we set CC to just the basename; use the full file name.
3176 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3182 if test -n "$CC"; then
3183 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3184 $as_echo "$CC" >&6; }
3186 { $as_echo "$as_me:$LINENO: result: no" >&5
3187 $as_echo "no" >&6; }
3192 if test -z "$CC"; then
3193 if test -n "$ac_tool_prefix"; then
3194 for ac_prog
in cl.exe
3196 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3197 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3198 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3199 $as_echo_n "checking for $ac_word... " >&6; }
3200 if test "${ac_cv_prog_CC+set}" = set; then
3201 $as_echo_n "(cached) " >&6
3203 if test -n "$CC"; then
3204 ac_cv_prog_CC
="$CC" # Let the user override the test.
3206 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3210 test -z "$as_dir" && as_dir
=.
3211 for ac_exec_ext
in '' $ac_executable_extensions; do
3212 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3213 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3214 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3224 if test -n "$CC"; then
3225 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3226 $as_echo "$CC" >&6; }
3228 { $as_echo "$as_me:$LINENO: result: no" >&5
3229 $as_echo "no" >&6; }
3233 test -n "$CC" && break
3236 if test -z "$CC"; then
3238 for ac_prog
in cl.exe
3240 # Extract the first word of "$ac_prog", so it can be a program name with args.
3241 set dummy
$ac_prog; ac_word
=$2
3242 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3243 $as_echo_n "checking for $ac_word... " >&6; }
3244 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3245 $as_echo_n "(cached) " >&6
3247 if test -n "$ac_ct_CC"; then
3248 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3250 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3254 test -z "$as_dir" && as_dir
=.
3255 for ac_exec_ext
in '' $ac_executable_extensions; do
3256 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3257 ac_cv_prog_ac_ct_CC
="$ac_prog"
3258 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3267 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3268 if test -n "$ac_ct_CC"; then
3269 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3270 $as_echo "$ac_ct_CC" >&6; }
3272 { $as_echo "$as_me:$LINENO: result: no" >&5
3273 $as_echo "no" >&6; }
3277 test -n "$ac_ct_CC" && break
3280 if test "x$ac_ct_CC" = x
; then
3283 case $cross_compiling:$ac_tool_warned in
3285 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3286 whose name does not start with the host triplet. If you think this
3287 configuration is useful to you, please write to autoconf@gnu.org." >&5
3288 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3289 whose name does not start with the host triplet. If you think this
3290 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3291 ac_tool_warned
=yes ;;
3300 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3301 See \`config.log' for more details." >&5
3302 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3303 See \`config.log' for more details." >&2;}
3304 { (exit 1); exit 1; }; }
3306 # Provide some information about the compiler.
3307 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3310 { (ac_try
="$ac_compiler --version >&5"
3312 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3313 *) ac_try_echo=$ac_try;;
3315 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3316 $as_echo "$ac_try_echo") >&5
3317 (eval "$ac_compiler --version >&5") 2>&5
3319 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3320 (exit $ac_status); }
3321 { (ac_try="$ac_compiler -v >&5"
3323 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3324 *) ac_try_echo
=$ac_try;;
3326 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
3327 $as_echo "$ac_try_echo") >&5
3328 (eval "$ac_compiler -v >&5") 2>&5
3330 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3331 (exit $ac_status); }
3332 { (ac_try
="$ac_compiler -V >&5"
3334 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3335 *) ac_try_echo=$ac_try;;
3337 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3338 $as_echo "$ac_try_echo") >&5
3339 (eval "$ac_compiler -V >&5") 2>&5
3341 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3342 (exit $ac_status); }
3344 cat >conftest.$ac_ext <<_ACEOF
3347 cat confdefs.h >>conftest.$ac_ext
3348 cat >>conftest.$ac_ext <<_ACEOF
3349 /* end confdefs.h. */
3359 ac_clean_files_save=$ac_clean_files
3360 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3361 # Try to create an executable without -o first, disregard a.out.
3362 # It will help us diagnose broken compilers, and finding out an intuition
3364 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3365 $as_echo_n "checking for C compiler default output file name... " >&6; }
3366 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3368 # The possible output files:
3369 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3372 for ac_file in $ac_files
3375 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3376 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3381 if { (ac_try="$ac_link_default"
3383 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3384 *) ac_try_echo
=$ac_try;;
3386 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
3387 $as_echo "$ac_try_echo") >&5
3388 (eval "$ac_link_default") 2>&5
3390 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3391 (exit $ac_status); }; then
3392 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3393 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3394 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3395 # so that the user can short-circuit this test for compilers unknown to
3397 for ac_file
in $ac_files ''
3399 test -f "$ac_file" ||
continue
3401 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3404 # We found the default executable, but exeext='' is most
3408 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3410 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3412 # We set ac_cv_exeext here because the later test for it is not
3413 # safe: cross compilers may not add the suffix if given an `-o'
3414 # argument, so we may need to know it at that point already.
3415 # Even if this section looks crufty: it has the advantage of
3422 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3428 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3429 $as_echo "$ac_file" >&6; }
3430 if test -z "$ac_file"; then
3431 $as_echo "$as_me: failed program was:" >&5
3432 sed 's/^/| /' conftest.
$ac_ext >&5
3434 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3435 See \`config.log' for more details." >&5
3436 $as_echo "$as_me: error: C compiler cannot create executables
3437 See \`config.log' for more details." >&2;}
3438 { (exit 77); exit 77; }; }
3441 ac_exeext
=$ac_cv_exeext
3443 # Check that the compiler produces executables we can run. If not, either
3444 # the compiler is broken, or we cross compile.
3445 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3446 $as_echo_n "checking whether the C compiler works... " >&6; }
3447 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3448 # If not cross compiling, check that we can run a simple program.
3449 if test "$cross_compiling" != yes; then
3450 if { ac_try
='./$ac_file'
3451 { (case "(($ac_try" in
3452 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3453 *) ac_try_echo=$ac_try;;
3455 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3456 $as_echo "$ac_try_echo") >&5
3457 (eval "$ac_try") 2>&5
3459 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3460 (exit $ac_status); }; }; then
3463 if test "$cross_compiling" = maybe; then
3466 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3467 If you meant to cross compile, use \`--host'.
3468 See \`config.log' for more details.
" >&5
3469 $as_echo "$as_me: error
: cannot run C compiled programs.
3470 If you meant to cross compile
, use \
`--host'.
3471 See \`config.log
' for more details." >&2;}
3472 { (exit 1); exit 1; }; }
3476 { $as_echo "$as_me:$LINENO: result: yes" >&5
3477 $as_echo "yes" >&6; }
3479 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3480 ac_clean_files=$ac_clean_files_save
3481 # Check that the compiler produces executables we can run. If not, either
3482 # the compiler is broken, or we cross compile.
3483 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3484 $as_echo_n "checking whether we are cross compiling... " >&6; }
3485 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3486 $as_echo "$cross_compiling" >&6; }
3488 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3489 $as_echo_n "checking for suffix of executables... " >&6; }
3490 if { (ac_try="$ac_link"
3492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3493 *) ac_try_echo=$ac_try;;
3495 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3496 $as_echo "$ac_try_echo") >&5
3497 (eval "$ac_link") 2>&5
3499 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3500 (exit $ac_status); }; then
3501 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3502 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3503 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3505 for ac_file
in conftest.exe conftest conftest.
*; do
3506 test -f "$ac_file" ||
continue
3508 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3509 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3515 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3516 See \`config.log' for more details." >&5
3517 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3518 See \`config.log' for more details." >&2;}
3519 { (exit 1); exit 1; }; }
3522 rm -f conftest
$ac_cv_exeext
3523 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3524 $as_echo "$ac_cv_exeext" >&6; }
3526 rm -f conftest.
$ac_ext
3527 EXEEXT
=$ac_cv_exeext
3529 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3530 $as_echo_n "checking for suffix of object files... " >&6; }
3531 if test "${ac_cv_objext+set}" = set; then
3532 $as_echo_n "(cached) " >&6
3534 cat >conftest.
$ac_ext <<_ACEOF
3537 cat confdefs.h
>>conftest.
$ac_ext
3538 cat >>conftest.
$ac_ext <<_ACEOF
3539 /* end confdefs.h. */
3549 rm -f conftest.o conftest.obj
3550 if { (ac_try
="$ac_compile"
3552 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3553 *) ac_try_echo=$ac_try;;
3555 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3556 $as_echo "$ac_try_echo") >&5
3557 (eval "$ac_compile") 2>&5
3559 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3560 (exit $ac_status); }; then
3561 for ac_file in conftest.o conftest.obj conftest.*; do
3562 test -f "$ac_file" || continue;
3564 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3565 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3570 $as_echo "$as_me: failed program was:" >&5
3571 sed 's/^/| /' conftest.$ac_ext >&5
3573 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3574 See \`config.log
' for more details." >&5
3575 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3576 See \`config.log' for more details.
" >&2;}
3577 { (exit 1); exit 1; }; }
3580 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3582 { $as_echo "$as_me:$LINENO: result
: $ac_cv_objext" >&5
3583 $as_echo "$ac_cv_objext" >&6; }
3584 OBJEXT=$ac_cv_objext
3586 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler
" >&5
3587 $as_echo_n "checking whether we are using the GNU C compiler...
" >&6; }
3588 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3589 $as_echo_n "(cached
) " >&6
3591 cat >conftest.$ac_ext <<_ACEOF
3594 cat confdefs.h >>conftest.$ac_ext
3595 cat >>conftest.$ac_ext <<_ACEOF
3596 /* end confdefs.h. */
3609 rm -f conftest.$ac_objext
3610 if { (ac_try="$ac_compile"
3612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3613 *) ac_try_echo=$ac_try;;
3615 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
3616 $as_echo "$ac_try_echo") >&5
3617 (eval "$ac_compile") 2>conftest.er1
3619 grep -v '^ *+' conftest.er1 >conftest.err
3621 cat conftest.err >&5
3622 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3623 (exit $ac_status); } && {
3624 test -z "$ac_c_werror_flag" ||
3625 test ! -s conftest.err
3626 } && test -s conftest.$ac_objext; then
3629 $as_echo "$as_me: failed program was
:" >&5
3630 sed 's/^/| /' conftest.$ac_ext >&5
3635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3636 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3639 { $as_echo "$as_me:$LINENO: result
: $ac_cv_c_compiler_gnu" >&5
3640 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3641 if test $ac_compiler_gnu = yes; then
3646 ac_test_CFLAGS=${CFLAGS+set}
3647 ac_save_CFLAGS=$CFLAGS
3648 { $as_echo "$as_me:$LINENO: checking whether
$CC accepts
-g" >&5
3649 $as_echo_n "checking whether
$CC accepts
-g...
" >&6; }
3650 if test "${ac_cv_prog_cc_g+set}" = set; then
3651 $as_echo_n "(cached
) " >&6
3653 ac_save_c_werror_flag=$ac_c_werror_flag
3654 ac_c_werror_flag=yes
3657 cat >conftest.$ac_ext <<_ACEOF
3660 cat confdefs.h >>conftest.$ac_ext
3661 cat >>conftest.$ac_ext <<_ACEOF
3662 /* end confdefs.h. */
3672 rm -f conftest.$ac_objext
3673 if { (ac_try="$ac_compile"
3675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3676 *) ac_try_echo=$ac_try;;
3678 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
3679 $as_echo "$ac_try_echo") >&5
3680 (eval "$ac_compile") 2>conftest.er1
3682 grep -v '^ *+' conftest.er1 >conftest.err
3684 cat conftest.err >&5
3685 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3686 (exit $ac_status); } && {
3687 test -z "$ac_c_werror_flag" ||
3688 test ! -s conftest.err
3689 } && test -s conftest.$ac_objext; then
3692 $as_echo "$as_me: failed program was
:" >&5
3693 sed 's/^/| /' conftest.$ac_ext >&5
3696 cat >conftest.$ac_ext <<_ACEOF
3699 cat confdefs.h >>conftest.$ac_ext
3700 cat >>conftest.$ac_ext <<_ACEOF
3701 /* end confdefs.h. */
3711 rm -f conftest.$ac_objext
3712 if { (ac_try="$ac_compile"
3714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3715 *) ac_try_echo=$ac_try;;
3717 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
3718 $as_echo "$ac_try_echo") >&5
3719 (eval "$ac_compile") 2>conftest.er1
3721 grep -v '^ *+' conftest.er1 >conftest.err
3723 cat conftest.err >&5
3724 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3725 (exit $ac_status); } && {
3726 test -z "$ac_c_werror_flag" ||
3727 test ! -s conftest.err
3728 } && test -s conftest.$ac_objext; then
3731 $as_echo "$as_me: failed program was
:" >&5
3732 sed 's/^/| /' conftest.$ac_ext >&5
3734 ac_c_werror_flag=$ac_save_c_werror_flag
3736 cat >conftest.$ac_ext <<_ACEOF
3739 cat confdefs.h >>conftest.$ac_ext
3740 cat >>conftest.$ac_ext <<_ACEOF
3741 /* end confdefs.h. */
3751 rm -f conftest.$ac_objext
3752 if { (ac_try="$ac_compile"
3754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3755 *) ac_try_echo=$ac_try;;
3757 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
3758 $as_echo "$ac_try_echo") >&5
3759 (eval "$ac_compile") 2>conftest.er1
3761 grep -v '^ *+' conftest.er1 >conftest.err
3763 cat conftest.err >&5
3764 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3765 (exit $ac_status); } && {
3766 test -z "$ac_c_werror_flag" ||
3767 test ! -s conftest.err
3768 } && test -s conftest.$ac_objext; then
3771 $as_echo "$as_me: failed program was
:" >&5
3772 sed 's/^/| /' conftest.$ac_ext >&5
3777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3784 ac_c_werror_flag=$ac_save_c_werror_flag
3786 { $as_echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_g" >&5
3787 $as_echo "$ac_cv_prog_cc_g" >&6; }
3788 if test "$ac_test_CFLAGS" = set; then
3789 CFLAGS=$ac_save_CFLAGS
3790 elif test $ac_cv_prog_cc_g = yes; then
3791 if test "$GCC" = yes; then
3797 if test "$GCC" = yes; then
3803 { $as_echo "$as_me:$LINENO: checking
for $CC option to accept ISO C89
" >&5
3804 $as_echo_n "checking
for $CC option to accept ISO C89...
" >&6; }
3805 if test "${ac_cv_prog_cc_c89+set}" = set; then
3806 $as_echo_n "(cached
) " >&6
3808 ac_cv_prog_cc_c89=no
3810 cat >conftest.$ac_ext <<_ACEOF
3813 cat confdefs.h >>conftest.$ac_ext
3814 cat >>conftest.$ac_ext <<_ACEOF
3815 /* end confdefs.h. */
3818 #include <sys/types.h>
3819 #include <sys/stat.h>
3820 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3821 struct buf { int x; };
3822 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3823 static char *e (p, i)
3829 static char *f (char * (*g) (char **, int), char **p, ...)
3834 s = g (p, va_arg (v,int));
3839 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3840 function prototypes and stuff, but not '\xHH' hex character constants.
3841 These don't provoke an error unfortunately, instead are silently treated
3842 as 'x'. The following induces an error, until -std is added to get
3843 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3844 array size at least. It's necessary to write '\x00'==0 to get something
3845 that's true only with -std. */
3846 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3848 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3849 inside strings and character constants. */
3851 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3853 int test (int i, double x);
3854 struct s1 {int (*f) (int a);};
3855 struct s2 {int (*f) (double a);};
3856 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3862 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3867 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3868 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3870 CC="$ac_save_CC $ac_arg"
3871 rm -f conftest.$ac_objext
3872 if { (ac_try="$ac_compile"
3874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3875 *) ac_try_echo=$ac_try;;
3877 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
3878 $as_echo "$ac_try_echo") >&5
3879 (eval "$ac_compile") 2>conftest.er1
3881 grep -v '^ *+' conftest.er1 >conftest.err
3883 cat conftest.err >&5
3884 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3885 (exit $ac_status); } && {
3886 test -z "$ac_c_werror_flag" ||
3887 test ! -s conftest.err
3888 } && test -s conftest.$ac_objext; then
3889 ac_cv_prog_cc_c89=$ac_arg
3891 $as_echo "$as_me: failed program was
:" >&5
3892 sed 's/^/| /' conftest.$ac_ext >&5
3897 rm -f core conftest.err conftest.$ac_objext
3898 test "x
$ac_cv_prog_cc_c89" != "xno
" && break
3900 rm -f conftest.$ac_ext
3905 case "x
$ac_cv_prog_cc_c89" in
3907 { $as_echo "$as_me:$LINENO: result
: none needed
" >&5
3908 $as_echo "none needed
" >&6; } ;;
3910 { $as_echo "$as_me:$LINENO: result
: unsupported
" >&5
3911 $as_echo "unsupported
" >&6; } ;;
3913 CC="$CC $ac_cv_prog_cc_c89"
3914 { $as_echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_c89" >&5
3915 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3920 ac_cpp='$CPP $CPPFLAGS'
3921 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3922 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3923 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3926 # On Suns, sometimes $CPP names a directory.
3927 if test -n "$CPP" && test -d "$CPP"; then
3931 ## If not using gcc, and on Solaris, and no CPP specified, see if
3932 ## using a Sun compiler, which needs -Xs to prevent whitespace.
3933 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
3934 test x"$CPP" = x; then
3935 { $as_echo "$as_me:$LINENO: checking whether we are using a Sun C compiler
" >&5
3936 $as_echo_n "checking whether we are using a Sun C compiler...
" >&6; }
3938 if test "${emacs_cv_sunpro_c+set}" = set; then
3939 $as_echo_n "(cached
) " >&6
3941 cat >conftest.$ac_ext <<_ACEOF
3944 cat confdefs.h >>conftest.$ac_ext
3945 cat >>conftest.$ac_ext <<_ACEOF
3946 /* end confdefs.h. */
3959 rm -f conftest.$ac_objext conftest$ac_exeext
3960 if { (ac_try="$ac_link"
3962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3963 *) ac_try_echo=$ac_try;;
3965 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
3966 $as_echo "$ac_try_echo") >&5
3967 (eval "$ac_link") 2>conftest.er1
3969 grep -v '^ *+' conftest.er1 >conftest.err
3971 cat conftest.err >&5
3972 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3973 (exit $ac_status); } && {
3974 test -z "$ac_c_werror_flag" ||
3975 test ! -s conftest.err
3976 } && test -s conftest$ac_exeext && {
3977 test "$cross_compiling" = yes ||
3978 $as_test_x conftest$ac_exeext
3980 emacs_cv_sunpro_c=yes
3982 $as_echo "$as_me: failed program was
:" >&5
3983 sed 's/^/| /' conftest.$ac_ext >&5
3985 emacs_cv_sunpro_c=no
3988 rm -rf conftest.dSYM
3989 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3990 conftest$ac_exeext conftest.$ac_ext
3993 { $as_echo "$as_me:$LINENO: result
: $emacs_cv_sunpro_c" >&5
3994 $as_echo "$emacs_cv_sunpro_c" >&6; }
3996 if test x"$emacs_cv_sunpro_c" = xyes; then
3997 NON_GNU_CPP="$CC -E -Xs"
4001 #### Some systems specify a CPP to use unless we are using GCC.
4002 #### Now that we know whether we are using GCC, we can decide whether
4003 #### to use that one.
4004 if test "x
$NON_GNU_CPP" != x && test x$GCC != xyes && test "x
$CPP" = x
4009 #### Some systems specify a CC to use unless we are using GCC.
4010 #### Now that we know whether we are using GCC, we can decide whether
4011 #### to use that one.
4012 if test "x
$NON_GNU_CC" != x && test x$GCC != xyes &&
4013 test x$cc_specified != xyes
4018 if test x$GCC = xyes && test "x
$GCC_TEST_OPTIONS" != x
4020 CC="$CC $GCC_TEST_OPTIONS"
4023 if test x$GCC = x && test "x
$NON_GCC_TEST_OPTIONS" != x
4025 CC="$CC $NON_GCC_TEST_OPTIONS"
4029 ac_cpp='$CPP $CPPFLAGS'
4030 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4031 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4032 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4033 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor
" >&5
4034 $as_echo_n "checking how to run the C preprocessor...
" >&6; }
4035 # On Suns, sometimes $CPP names a directory.
4036 if test -n "$CPP" && test -d "$CPP"; then
4039 if test -z "$CPP"; then
4040 if test "${ac_cv_prog_CPP+set}" = set; then
4041 $as_echo_n "(cached
) " >&6
4043 # Double quotes because CPP needs to be expanded
4044 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib
/cpp
"
4047 for ac_c_preproc_warn_flag in '' yes
4049 # Use a header file that comes with gcc, so configuring glibc
4050 # with a fresh cross-compiler works.
4051 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4052 # <limits.h> exists even on freestanding compilers.
4053 # On the NeXT, cc -E runs the code through the compiler's parser,
4054 # not just through cpp. "Syntax error
" is here to catch this case.
4055 cat >conftest.$ac_ext <<_ACEOF
4058 cat confdefs.h >>conftest.$ac_ext
4059 cat >>conftest.$ac_ext <<_ACEOF
4060 /* end confdefs.h. */
4062 # include <limits.h>
4064 # include <assert.h>
4068 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4071 *) ac_try_echo=$ac_try;;
4073 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
4074 $as_echo "$ac_try_echo") >&5
4075 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4077 grep -v '^ *+' conftest.er1 >conftest.err
4079 cat conftest.err >&5
4080 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4081 (exit $ac_status); } >/dev/null && {
4082 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4083 test ! -s conftest.err
4087 $as_echo "$as_me: failed program was
:" >&5
4088 sed 's/^/| /' conftest.$ac_ext >&5
4090 # Broken: fails on valid input.
4094 rm -f conftest.err conftest.$ac_ext
4096 # OK, works on sane cases. Now check whether nonexistent headers
4097 # can be detected and how.
4098 cat >conftest.$ac_ext <<_ACEOF
4101 cat confdefs.h >>conftest.$ac_ext
4102 cat >>conftest.$ac_ext <<_ACEOF
4103 /* end confdefs.h. */
4104 #include <ac_nonexistent.h>
4106 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4109 *) ac_try_echo=$ac_try;;
4111 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
4112 $as_echo "$ac_try_echo") >&5
4113 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4115 grep -v '^ *+' conftest.er1 >conftest.err
4117 cat conftest.err >&5
4118 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4119 (exit $ac_status); } >/dev/null && {
4120 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4121 test ! -s conftest.err
4123 # Broken: success on invalid input.
4126 $as_echo "$as_me: failed program was
:" >&5
4127 sed 's/^/| /' conftest.$ac_ext >&5
4129 # Passes both tests.
4134 rm -f conftest.err conftest.$ac_ext
4137 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4138 rm -f conftest.err conftest.$ac_ext
4139 if $ac_preproc_ok; then
4151 { $as_echo "$as_me:$LINENO: result
: $CPP" >&5
4152 $as_echo "$CPP" >&6; }
4154 for ac_c_preproc_warn_flag in '' yes
4156 # Use a header file that comes with gcc, so configuring glibc
4157 # with a fresh cross-compiler works.
4158 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4159 # <limits.h> exists even on freestanding compilers.
4160 # On the NeXT, cc -E runs the code through the compiler's parser,
4161 # not just through cpp. "Syntax error
" is here to catch this case.
4162 cat >conftest.$ac_ext <<_ACEOF
4165 cat confdefs.h >>conftest.$ac_ext
4166 cat >>conftest.$ac_ext <<_ACEOF
4167 /* end confdefs.h. */
4169 # include <limits.h>
4171 # include <assert.h>
4175 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4178 *) ac_try_echo=$ac_try;;
4180 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
4181 $as_echo "$ac_try_echo") >&5
4182 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4184 grep -v '^ *+' conftest.er1 >conftest.err
4186 cat conftest.err >&5
4187 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4188 (exit $ac_status); } >/dev/null && {
4189 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4190 test ! -s conftest.err
4194 $as_echo "$as_me: failed program was
:" >&5
4195 sed 's/^/| /' conftest.$ac_ext >&5
4197 # Broken: fails on valid input.
4201 rm -f conftest.err conftest.$ac_ext
4203 # OK, works on sane cases. Now check whether nonexistent headers
4204 # can be detected and how.
4205 cat >conftest.$ac_ext <<_ACEOF
4208 cat confdefs.h >>conftest.$ac_ext
4209 cat >>conftest.$ac_ext <<_ACEOF
4210 /* end confdefs.h. */
4211 #include <ac_nonexistent.h>
4213 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4216 *) ac_try_echo=$ac_try;;
4218 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
4219 $as_echo "$ac_try_echo") >&5
4220 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4222 grep -v '^ *+' conftest.er1 >conftest.err
4224 cat conftest.err >&5
4225 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4226 (exit $ac_status); } >/dev/null && {
4227 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4228 test ! -s conftest.err
4230 # Broken: success on invalid input.
4233 $as_echo "$as_me: failed program was
:" >&5
4234 sed 's/^/| /' conftest.$ac_ext >&5
4236 # Passes both tests.
4241 rm -f conftest.err conftest.$ac_ext
4244 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4245 rm -f conftest.err conftest.$ac_ext
4246 if $ac_preproc_ok; then
4249 { { $as_echo "$as_me:$LINENO: error
: C preprocessor
\"$CPP\" fails sanity check
4250 See \
`config.log' for more details." >&5
4251 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4252 See \`config.log
' for more details." >&2;}
4253 { (exit 1); exit 1; }; }
4257 ac_cpp='$CPP $CPPFLAGS'
4258 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
4259 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
4260 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4263 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4264 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4265 if test "${ac_cv_path_GREP+set}" = set; then
4266 $as_echo_n "(cached) " >&6
4268 if test -z "$GREP"; then
4269 ac_path_GREP_found=false
4270 # Loop through the user's path and
test for each of PROGNAME-LIST
4271 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4272 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4275 test -z "$as_dir" && as_dir
=.
4276 for ac_prog
in grep ggrep
; do
4277 for ac_exec_ext
in '' $ac_executable_extensions; do
4278 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4279 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
4280 # Check for GNU ac_path_GREP and select it if it is found.
4281 # Check for GNU $ac_path_GREP
4282 case `"$ac_path_GREP" --version 2>&1` in
4284 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4287 $as_echo_n 0123456789 >"conftest.in"
4290 cat "conftest.in" "conftest.in" >"conftest.tmp"
4291 mv "conftest.tmp" "conftest.in"
4292 cp "conftest.in" "conftest.nl"
4293 $as_echo 'GREP' >> "conftest.nl"
4294 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4295 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4296 ac_count
=`expr $ac_count + 1`
4297 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4298 # Best one so far, save it but keep looking for a better one
4299 ac_cv_path_GREP
="$ac_path_GREP"
4300 ac_path_GREP_max
=$ac_count
4302 # 10*(2^10) chars as input seems more than enough
4303 test $ac_count -gt 10 && break
4305 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4308 $ac_path_GREP_found && break 3
4313 if test -z "$ac_cv_path_GREP"; then
4314 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4315 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4316 { (exit 1); exit 1; }; }
4319 ac_cv_path_GREP
=$GREP
4323 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4324 $as_echo "$ac_cv_path_GREP" >&6; }
4325 GREP
="$ac_cv_path_GREP"
4328 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
4329 $as_echo_n "checking for egrep... " >&6; }
4330 if test "${ac_cv_path_EGREP+set}" = set; then
4331 $as_echo_n "(cached) " >&6
4333 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4334 then ac_cv_path_EGREP
="$GREP -E"
4336 if test -z "$EGREP"; then
4337 ac_path_EGREP_found
=false
4338 # Loop through the user's path and test for each of PROGNAME-LIST
4339 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4340 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4343 test -z "$as_dir" && as_dir
=.
4344 for ac_prog
in egrep; do
4345 for ac_exec_ext
in '' $ac_executable_extensions; do
4346 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4347 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
4348 # Check for GNU ac_path_EGREP and select it if it is found.
4349 # Check for GNU $ac_path_EGREP
4350 case `"$ac_path_EGREP" --version 2>&1` in
4352 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4355 $as_echo_n 0123456789 >"conftest.in"
4358 cat "conftest.in" "conftest.in" >"conftest.tmp"
4359 mv "conftest.tmp" "conftest.in"
4360 cp "conftest.in" "conftest.nl"
4361 $as_echo 'EGREP' >> "conftest.nl"
4362 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4363 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4364 ac_count
=`expr $ac_count + 1`
4365 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4366 # Best one so far, save it but keep looking for a better one
4367 ac_cv_path_EGREP
="$ac_path_EGREP"
4368 ac_path_EGREP_max
=$ac_count
4370 # 10*(2^10) chars as input seems more than enough
4371 test $ac_count -gt 10 && break
4373 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4376 $ac_path_EGREP_found && break 3
4381 if test -z "$ac_cv_path_EGREP"; then
4382 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4383 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4384 { (exit 1); exit 1; }; }
4387 ac_cv_path_EGREP
=$EGREP
4392 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4393 $as_echo "$ac_cv_path_EGREP" >&6; }
4394 EGREP
="$ac_cv_path_EGREP"
4397 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4398 $as_echo_n "checking for ANSI C header files... " >&6; }
4399 if test "${ac_cv_header_stdc+set}" = set; then
4400 $as_echo_n "(cached) " >&6
4402 cat >conftest.
$ac_ext <<_ACEOF
4405 cat confdefs.h
>>conftest.
$ac_ext
4406 cat >>conftest.
$ac_ext <<_ACEOF
4407 /* end confdefs.h. */
4421 rm -f conftest.
$ac_objext
4422 if { (ac_try
="$ac_compile"
4424 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4425 *) ac_try_echo=$ac_try;;
4427 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4428 $as_echo "$ac_try_echo") >&5
4429 (eval "$ac_compile") 2>conftest.er1
4431 grep -v '^ *+' conftest.er1 >conftest.err
4433 cat conftest.err >&5
4434 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4435 (exit $ac_status); } && {
4436 test -z "$ac_c_werror_flag" ||
4437 test ! -s conftest.err
4438 } && test -s conftest.$ac_objext; then
4439 ac_cv_header_stdc=yes
4441 $as_echo "$as_me: failed program was:" >&5
4442 sed 's/^/| /' conftest.$ac_ext >&5
4444 ac_cv_header_stdc=no
4447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4449 if test $ac_cv_header_stdc = yes; then
4450 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4451 cat >conftest.$ac_ext <<_ACEOF
4454 cat confdefs.h >>conftest.$ac_ext
4455 cat >>conftest.$ac_ext <<_ACEOF
4456 /* end confdefs.h. */
4460 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4461 $EGREP "memchr" >/dev/null 2>&1; then
4464 ac_cv_header_stdc=no
4470 if test $ac_cv_header_stdc = yes; then
4471 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4472 cat >conftest.$ac_ext <<_ACEOF
4475 cat confdefs.h >>conftest.$ac_ext
4476 cat >>conftest.$ac_ext <<_ACEOF
4477 /* end confdefs.h. */
4481 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4482 $EGREP "free" >/dev/null 2>&1; then
4485 ac_cv_header_stdc=no
4491 if test $ac_cv_header_stdc = yes; then
4492 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4493 if test "$cross_compiling" = yes; then
4496 cat >conftest.$ac_ext <<_ACEOF
4499 cat confdefs.h >>conftest.$ac_ext
4500 cat >>conftest.$ac_ext <<_ACEOF
4501 /* end confdefs.h. */
4504 #if ((' ' & 0x0FF) == 0x020)
4505 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4506 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4508 # define ISLOWER(c) \
4509 (('a' <= (c) && (c) <= 'i') \
4510 || ('j' <= (c) && (c) <= 'r') \
4511 || ('s' <= (c) && (c) <= 'z'))
4512 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4515 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4520 for (i = 0; i < 256; i++)
4521 if (XOR (islower (i), ISLOWER (i))
4522 || toupper (i) != TOUPPER (i))
4527 rm -f conftest$ac_exeext
4528 if { (ac_try="$ac_link"
4530 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4531 *) ac_try_echo
=$ac_try;;
4533 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4534 $as_echo "$ac_try_echo") >&5
4535 (eval "$ac_link") 2>&5
4537 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4538 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4539 { (case "(($ac_try" in
4540 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4541 *) ac_try_echo=$ac_try;;
4543 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4544 $as_echo "$ac_try_echo") >&5
4545 (eval "$ac_try") 2>&5
4547 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4548 (exit $ac_status); }; }; then
4551 $as_echo "$as_me: program exited with status $ac_status" >&5
4552 $as_echo "$as_me: failed program was:" >&5
4553 sed 's/^/| /' conftest.$ac_ext >&5
4556 ac_cv_header_stdc=no
4558 rm -rf conftest.dSYM
4559 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4565 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4566 $as_echo "$ac_cv_header_stdc" >&6; }
4567 if test $ac_cv_header_stdc = yes; then
4569 cat >>confdefs.h <<\_ACEOF
4570 #define STDC_HEADERS 1
4575 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4585 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4586 inttypes.h stdint.h unistd.h
4588 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
4589 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4590 $as_echo_n "checking for $ac_header... " >&6; }
4591 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4592 $as_echo_n "(cached) " >&6
4594 cat >conftest.$ac_ext <<_ACEOF
4597 cat confdefs.h >>conftest.$ac_ext
4598 cat >>conftest.$ac_ext <<_ACEOF
4599 /* end confdefs.h. */
4600 $ac_includes_default
4602 #include <$ac_header>
4604 rm -f conftest.$ac_objext
4605 if { (ac_try="$ac_compile"
4607 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4608 *) ac_try_echo
=$ac_try;;
4610 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4611 $as_echo "$ac_try_echo") >&5
4612 (eval "$ac_compile") 2>conftest.er1
4614 grep -v '^ *+' conftest.er1
>conftest.err
4616 cat conftest.err
>&5
4617 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4618 (exit $ac_status); } && {
4619 test -z "$ac_c_werror_flag" ||
4620 test ! -s conftest.err
4621 } && test -s conftest.
$ac_objext; then
4622 eval "$as_ac_Header=yes"
4624 $as_echo "$as_me: failed program was:" >&5
4625 sed 's/^/| /' conftest.
$ac_ext >&5
4627 eval "$as_ac_Header=no"
4630 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4632 ac_res
=`eval 'as_val=${'$as_ac_Header'}
4633 $as_echo "$as_val"'`
4634 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4635 $as_echo "$ac_res" >&6; }
4636 if test `eval 'as_val=${'$as_ac_Header'}
4637 $as_echo "$as_val"'` = yes; then
4638 cat >>confdefs.h
<<_ACEOF
4639 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4648 if test "${ac_cv_header_minix_config_h+set}" = set; then
4649 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4650 $as_echo_n "checking for minix/config.h... " >&6; }
4651 if test "${ac_cv_header_minix_config_h+set}" = set; then
4652 $as_echo_n "(cached) " >&6
4654 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4655 $as_echo "$ac_cv_header_minix_config_h" >&6; }
4657 # Is the header compilable?
4658 { $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4659 $as_echo_n "checking minix/config.h usability... " >&6; }
4660 cat >conftest.
$ac_ext <<_ACEOF
4663 cat confdefs.h
>>conftest.
$ac_ext
4664 cat >>conftest.
$ac_ext <<_ACEOF
4665 /* end confdefs.h. */
4666 $ac_includes_default
4667 #include <minix/config.h>
4669 rm -f conftest.
$ac_objext
4670 if { (ac_try
="$ac_compile"
4672 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4673 *) ac_try_echo=$ac_try;;
4675 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4676 $as_echo "$ac_try_echo") >&5
4677 (eval "$ac_compile") 2>conftest.er1
4679 grep -v '^ *+' conftest.er1 >conftest.err
4681 cat conftest.err >&5
4682 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4683 (exit $ac_status); } && {
4684 test -z "$ac_c_werror_flag" ||
4685 test ! -s conftest.err
4686 } && test -s conftest.$ac_objext; then
4687 ac_header_compiler=yes
4689 $as_echo "$as_me: failed program was:" >&5
4690 sed 's/^/| /' conftest.$ac_ext >&5
4692 ac_header_compiler=no
4695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4696 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4697 $as_echo "$ac_header_compiler" >&6; }
4699 # Is the header present?
4700 { $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4701 $as_echo_n "checking minix/config.h presence... " >&6; }
4702 cat >conftest.$ac_ext <<_ACEOF
4705 cat confdefs.h >>conftest.$ac_ext
4706 cat >>conftest.$ac_ext <<_ACEOF
4707 /* end confdefs.h. */
4708 #include <minix/config.h>
4710 if { (ac_try="$ac_cpp conftest.$ac_ext"
4712 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4713 *) ac_try_echo
=$ac_try;;
4715 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4716 $as_echo "$ac_try_echo") >&5
4717 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4719 grep -v '^ *+' conftest.er1
>conftest.err
4721 cat conftest.err
>&5
4722 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4723 (exit $ac_status); } >/dev
/null
&& {
4724 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4725 test ! -s conftest.err
4727 ac_header_preproc
=yes
4729 $as_echo "$as_me: failed program was:" >&5
4730 sed 's/^/| /' conftest.
$ac_ext >&5
4732 ac_header_preproc
=no
4735 rm -f conftest.err conftest.
$ac_ext
4736 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4737 $as_echo "$ac_header_preproc" >&6; }
4739 # So? What about this header?
4740 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4742 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4743 $as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4744 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4745 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4746 ac_header_preproc
=yes
4749 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4750 $as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4751 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
4752 $as_echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
4753 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4754 $as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4755 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
4756 $as_echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
4757 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4758 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4759 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4760 $as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4764 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4765 $as_echo_n "checking for minix/config.h... " >&6; }
4766 if test "${ac_cv_header_minix_config_h+set}" = set; then
4767 $as_echo_n "(cached) " >&6
4769 ac_cv_header_minix_config_h
=$ac_header_preproc
4771 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4772 $as_echo "$ac_cv_header_minix_config_h" >&6; }
4775 if test $ac_cv_header_minix_config_h = yes; then
4782 if test "$MINIX" = yes; then
4784 cat >>confdefs.h
<<\_ACEOF
4785 #define _POSIX_SOURCE 1
4789 cat >>confdefs.h
<<\_ACEOF
4790 #define _POSIX_1_SOURCE 2
4794 cat >>confdefs.h
<<\_ACEOF
4802 { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4803 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4804 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
4805 $as_echo_n "(cached) " >&6
4807 cat >conftest.
$ac_ext <<_ACEOF
4810 cat confdefs.h
>>conftest.
$ac_ext
4811 cat >>conftest.
$ac_ext <<_ACEOF
4812 /* end confdefs.h. */
4814 # define __EXTENSIONS__ 1
4815 $ac_includes_default
4824 rm -f conftest.
$ac_objext
4825 if { (ac_try
="$ac_compile"
4827 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4828 *) ac_try_echo=$ac_try;;
4830 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4831 $as_echo "$ac_try_echo") >&5
4832 (eval "$ac_compile") 2>conftest.er1
4834 grep -v '^ *+' conftest.er1 >conftest.err
4836 cat conftest.err >&5
4837 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4838 (exit $ac_status); } && {
4839 test -z "$ac_c_werror_flag" ||
4840 test ! -s conftest.err
4841 } && test -s conftest.$ac_objext; then
4842 ac_cv_safe_to_define___extensions__=yes
4844 $as_echo "$as_me: failed program was:" >&5
4845 sed 's/^/| /' conftest.$ac_ext >&5
4847 ac_cv_safe_to_define___extensions__=no
4850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4852 { $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4853 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4854 test $ac_cv_safe_to_define___extensions__ = yes &&
4855 cat >>confdefs.h <<\_ACEOF
4856 #define __EXTENSIONS__ 1
4859 cat >>confdefs.h <<\_ACEOF
4860 #define _ALL_SOURCE 1
4863 cat >>confdefs.h <<\_ACEOF
4864 #define _GNU_SOURCE 1
4867 cat >>confdefs.h <<\_ACEOF
4868 #define _POSIX_PTHREAD_SEMANTICS 1
4871 cat >>confdefs.h <<\_ACEOF
4872 #define _TANDEM_SOURCE 1
4877 ### Use -Wno-pointer-sign if the compiler supports it
4878 { $as_echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
4879 $as_echo_n "checking whether gcc understands -Wno-pointer-sign... " >&6; }
4880 SAVE_CFLAGS="$CFLAGS"
4881 CFLAGS="$CFLAGS -Wno-pointer-sign"
4882 cat >conftest.$ac_ext <<_ACEOF
4885 cat confdefs.h >>conftest.$ac_ext
4886 cat >>conftest.$ac_ext <<_ACEOF
4887 /* end confdefs.h. */
4897 rm -f conftest.$ac_objext
4898 if { (ac_try="$ac_compile"
4900 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4901 *) ac_try_echo
=$ac_try;;
4903 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4904 $as_echo "$ac_try_echo") >&5
4905 (eval "$ac_compile") 2>conftest.er1
4907 grep -v '^ *+' conftest.er1
>conftest.err
4909 cat conftest.err
>&5
4910 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4911 (exit $ac_status); } && {
4912 test -z "$ac_c_werror_flag" ||
4913 test ! -s conftest.err
4914 } && test -s conftest.
$ac_objext; then
4917 $as_echo "$as_me: failed program was:" >&5
4918 sed 's/^/| /' conftest.
$ac_ext >&5
4923 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4924 if test $has_option = yes; then
4925 C_WARNINGS_SWITCH
="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4927 { $as_echo "$as_me:$LINENO: result: $has_option" >&5
4928 $as_echo "$has_option" >&6; }
4929 CFLAGS
="$SAVE_CFLAGS"
4933 ### Use -Wdeclaration-after-statement if the compiler supports it
4934 { $as_echo "$as_me:$LINENO: checking whether gcc understands -Wdeclaration-after-statement" >&5
4935 $as_echo_n "checking whether gcc understands -Wdeclaration-after-statement... " >&6; }
4936 SAVE_CFLAGS
="$CFLAGS"
4937 CFLAGS
="$CFLAGS -Wdeclaration-after-statement"
4938 cat >conftest.
$ac_ext <<_ACEOF
4941 cat confdefs.h
>>conftest.
$ac_ext
4942 cat >>conftest.
$ac_ext <<_ACEOF
4943 /* end confdefs.h. */
4953 rm -f conftest.
$ac_objext
4954 if { (ac_try
="$ac_compile"
4956 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4957 *) ac_try_echo=$ac_try;;
4959 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4960 $as_echo "$ac_try_echo") >&5
4961 (eval "$ac_compile") 2>conftest.er1
4963 grep -v '^ *+' conftest.er1 >conftest.err
4965 cat conftest.err >&5
4966 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4967 (exit $ac_status); } && {
4968 test -z "$ac_c_werror_flag" ||
4969 test ! -s conftest.err
4970 } && test -s conftest.$ac_objext; then
4973 $as_echo "$as_me: failed program was:" >&5
4974 sed 's/^/| /' conftest.$ac_ext >&5
4979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4980 if test $has_option = yes; then
4981 C_WARNINGS_SWITCH="-Wdeclaration-after-statement $C_WARNINGS_SWITCH"
4983 { $as_echo "$as_me:$LINENO: result: $has_option" >&5
4984 $as_echo "$has_option" >&6; }
4985 CFLAGS="$SAVE_CFLAGS"
4989 #### Some other nice autoconf tests.
4991 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
4992 $as_echo_n "checking whether ln -s works... " >&6; }
4994 if test "$LN_S" = "ln -s"; then
4995 { $as_echo "$as_me:$LINENO: result: yes" >&5
4996 $as_echo "yes" >&6; }
4998 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4999 $as_echo "no, using $LN_S" >&6; }
5003 ac_cpp='$CPP $CPPFLAGS'
5004 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5005 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5006 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5007 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5008 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5009 # On Suns, sometimes $CPP names a directory.
5010 if test -n "$CPP" && test -d "$CPP"; then
5013 if test -z "$CPP"; then
5014 if test "${ac_cv_prog_CPP+set}" = set; then
5015 $as_echo_n "(cached) " >&6
5017 # Double quotes because CPP needs to be expanded
5018 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5021 for ac_c_preproc_warn_flag in '' yes
5023 # Use a header file that comes with gcc, so configuring glibc
5024 # with a fresh cross-compiler works.
5025 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5026 # <limits.h> exists even on freestanding compilers.
5027 # On the NeXT, cc -E runs the code through the compiler's parser,
5028 # not just through cpp. "Syntax error" is here to catch this case.
5029 cat >conftest.$ac_ext <<_ACEOF
5032 cat confdefs.h >>conftest.$ac_ext
5033 cat >>conftest.$ac_ext <<_ACEOF
5034 /* end confdefs.h. */
5036 # include <limits.h>
5038 # include <assert.h>
5042 if { (ac_try="$ac_cpp conftest.$ac_ext"
5044 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5045 *) ac_try_echo
=$ac_try;;
5047 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
5048 $as_echo "$ac_try_echo") >&5
5049 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5051 grep -v '^ *+' conftest.er1
>conftest.err
5053 cat conftest.err
>&5
5054 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5055 (exit $ac_status); } >/dev
/null
&& {
5056 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5057 test ! -s conftest.err
5061 $as_echo "$as_me: failed program was:" >&5
5062 sed 's/^/| /' conftest.
$ac_ext >&5
5064 # Broken: fails on valid input.
5068 rm -f conftest.err conftest.
$ac_ext
5070 # OK, works on sane cases. Now check whether nonexistent headers
5071 # can be detected and how.
5072 cat >conftest.
$ac_ext <<_ACEOF
5075 cat confdefs.h
>>conftest.
$ac_ext
5076 cat >>conftest.
$ac_ext <<_ACEOF
5077 /* end confdefs.h. */
5078 #include <ac_nonexistent.h>
5080 if { (ac_try
="$ac_cpp conftest.$ac_ext"
5082 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5083 *) ac_try_echo=$ac_try;;
5085 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5086 $as_echo "$ac_try_echo") >&5
5087 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5089 grep -v '^ *+' conftest.er1 >conftest.err
5091 cat conftest.err >&5
5092 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5093 (exit $ac_status); } >/dev/null && {
5094 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5095 test ! -s conftest.err
5097 # Broken: success on invalid input.
5100 $as_echo "$as_me: failed program was:" >&5
5101 sed 's/^/| /' conftest.$ac_ext >&5
5103 # Passes both tests.
5108 rm -f conftest.err conftest.$ac_ext
5111 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5112 rm -f conftest.err conftest.
$ac_ext
5113 if $ac_preproc_ok; then
5125 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
5126 $as_echo "$CPP" >&6; }
5128 for ac_c_preproc_warn_flag
in '' yes
5130 # Use a header file that comes with gcc, so configuring glibc
5131 # with a fresh cross-compiler works.
5132 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5133 # <limits.h> exists even on freestanding compilers.
5134 # On the NeXT, cc -E runs the code through the compiler's parser,
5135 # not just through cpp. "Syntax error" is here to catch this case.
5136 cat >conftest.
$ac_ext <<_ACEOF
5139 cat confdefs.h
>>conftest.
$ac_ext
5140 cat >>conftest.
$ac_ext <<_ACEOF
5141 /* end confdefs.h. */
5143 # include <limits.h>
5145 # include <assert.h>
5149 if { (ac_try
="$ac_cpp conftest.$ac_ext"
5151 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5152 *) ac_try_echo=$ac_try;;
5154 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5155 $as_echo "$ac_try_echo") >&5
5156 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5158 grep -v '^ *+' conftest.er1 >conftest.err
5160 cat conftest.err >&5
5161 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5162 (exit $ac_status); } >/dev/null && {
5163 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5164 test ! -s conftest.err
5168 $as_echo "$as_me: failed program was:" >&5
5169 sed 's/^/| /' conftest.$ac_ext >&5
5171 # Broken: fails on valid input.
5175 rm -f conftest.err conftest.$ac_ext
5177 # OK, works on sane cases. Now check whether nonexistent headers
5178 # can be detected and how.
5179 cat >conftest.$ac_ext <<_ACEOF
5182 cat confdefs.h >>conftest.$ac_ext
5183 cat >>conftest.$ac_ext <<_ACEOF
5184 /* end confdefs.h. */
5185 #include <ac_nonexistent.h>
5187 if { (ac_try="$ac_cpp conftest.$ac_ext"
5189 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5190 *) ac_try_echo
=$ac_try;;
5192 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
5193 $as_echo "$ac_try_echo") >&5
5194 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5196 grep -v '^ *+' conftest.er1
>conftest.err
5198 cat conftest.err
>&5
5199 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5200 (exit $ac_status); } >/dev
/null
&& {
5201 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5202 test ! -s conftest.err
5204 # Broken: success on invalid input.
5207 $as_echo "$as_me: failed program was:" >&5
5208 sed 's/^/| /' conftest.
$ac_ext >&5
5210 # Passes both tests.
5215 rm -f conftest.err conftest.
$ac_ext
5218 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5219 rm -f conftest.err conftest.
$ac_ext
5220 if $ac_preproc_ok; then
5223 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5224 See \`config.log' for more details." >&5
5225 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5226 See \`config.log' for more details." >&2;}
5227 { (exit 1); exit 1; }; }
5231 ac_cpp
='$CPP $CPPFLAGS'
5232 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5233 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5234 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5236 # Find a good install program. We prefer a C program (faster),
5237 # so one script is as good as another. But avoid the broken or
5238 # incompatible versions:
5239 # SysV /etc/install, /usr/sbin/install
5240 # SunOS /usr/etc/install
5241 # IRIX /sbin/install
5243 # AmigaOS /C/install, which installs bootblocks on floppy discs
5244 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5245 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5246 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5247 # OS/2's system install, which has a completely different semantic
5248 # ./install, which can be erroneously created by make from ./install.sh.
5249 # Reject install programs that cannot install multiple files.
5250 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5251 $as_echo_n "checking for a BSD-compatible install... " >&6; }
5252 if test -z "$INSTALL"; then
5253 if test "${ac_cv_path_install+set}" = set; then
5254 $as_echo_n "(cached) " >&6
5256 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5260 test -z "$as_dir" && as_dir
=.
5261 # Account for people who put trailing slashes in PATH elements.
5263 .
/ | .
// |
/cC
/* | \
5264 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
5265 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
5268 # OSF1 and SCO ODT 3.0 have their own names for install.
5269 # Don't use installbsd from OSF since it installs stuff as root
5271 for ac_prog
in ginstall scoinst
install; do
5272 for ac_exec_ext
in '' $ac_executable_extensions; do
5273 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5274 if test $ac_prog = install &&
5275 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
5276 # AIX install. It has an incompatible calling convention.
5278 elif test $ac_prog = install &&
5279 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
5280 # program-specific install script used by HP pwplus--don't use.
5283 rm -rf conftest.one conftest.two conftest.dir
5284 echo one
> conftest.one
5285 echo two
> conftest.two
5287 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
5288 test -s conftest.one
&& test -s conftest.two
&&
5289 test -s conftest.dir
/conftest.one
&&
5290 test -s conftest.dir
/conftest.two
5292 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
5305 rm -rf conftest.one conftest.two conftest.dir
5308 if test "${ac_cv_path_install+set}" = set; then
5309 INSTALL
=$ac_cv_path_install
5311 # As a last resort, use the slow shell script. Don't cache a
5312 # value for INSTALL within a source directory, because that will
5313 # break other packages using the cache if that directory is
5314 # removed, or if the value is a relative name.
5315 INSTALL
=$ac_install_sh
5318 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
5319 $as_echo "$INSTALL" >&6; }
5321 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5322 # It thinks the first close brace ends the variable substitution.
5323 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
5325 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
5327 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
5329 if test "x$RANLIB" = x
; then
5330 if test -n "$ac_tool_prefix"; then
5331 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5332 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
5333 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5334 $as_echo_n "checking for $ac_word... " >&6; }
5335 if test "${ac_cv_prog_RANLIB+set}" = set; then
5336 $as_echo_n "(cached) " >&6
5338 if test -n "$RANLIB"; then
5339 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
5341 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5345 test -z "$as_dir" && as_dir
=.
5346 for ac_exec_ext
in '' $ac_executable_extensions; do
5347 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5348 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
5349 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5358 RANLIB
=$ac_cv_prog_RANLIB
5359 if test -n "$RANLIB"; then
5360 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5361 $as_echo "$RANLIB" >&6; }
5363 { $as_echo "$as_me:$LINENO: result: no" >&5
5364 $as_echo "no" >&6; }
5369 if test -z "$ac_cv_prog_RANLIB"; then
5370 ac_ct_RANLIB
=$RANLIB
5371 # Extract the first word of "ranlib", so it can be a program name with args.
5372 set dummy ranlib
; ac_word
=$2
5373 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5374 $as_echo_n "checking for $ac_word... " >&6; }
5375 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5376 $as_echo_n "(cached) " >&6
5378 if test -n "$ac_ct_RANLIB"; then
5379 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
5381 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5385 test -z "$as_dir" && as_dir
=.
5386 for ac_exec_ext
in '' $ac_executable_extensions; do
5387 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5388 ac_cv_prog_ac_ct_RANLIB
="ranlib"
5389 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5398 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
5399 if test -n "$ac_ct_RANLIB"; then
5400 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5401 $as_echo "$ac_ct_RANLIB" >&6; }
5403 { $as_echo "$as_me:$LINENO: result: no" >&5
5404 $as_echo "no" >&6; }
5407 if test "x$ac_ct_RANLIB" = x
; then
5410 case $cross_compiling:$ac_tool_warned in
5412 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5413 whose name does not start with the host triplet. If you think this
5414 configuration is useful to you, please write to autoconf@gnu.org." >&5
5415 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5416 whose name does not start with the host triplet. If you think this
5417 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5418 ac_tool_warned
=yes ;;
5420 RANLIB
=$ac_ct_RANLIB
5423 RANLIB
="$ac_cv_prog_RANLIB"
5427 # Extract the first word of "install-info", so it can be a program name with args.
5428 set dummy install-info
; ac_word
=$2
5429 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5430 $as_echo_n "checking for $ac_word... " >&6; }
5431 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5432 $as_echo_n "(cached) " >&6
5434 case $INSTALL_INFO in
5436 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5439 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5443 test -z "$as_dir" && as_dir
=.
5444 for ac_exec_ext
in '' $ac_executable_extensions; do
5445 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5446 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5447 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5457 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5458 if test -n "$INSTALL_INFO"; then
5459 { $as_echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5460 $as_echo "$INSTALL_INFO" >&6; }
5462 { $as_echo "$as_me:$LINENO: result: no" >&5
5463 $as_echo "no" >&6; }
5467 # Extract the first word of "install-info", so it can be a program name with args.
5468 set dummy install-info
; ac_word
=$2
5469 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5470 $as_echo_n "checking for $ac_word... " >&6; }
5471 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5472 $as_echo_n "(cached) " >&6
5474 case $INSTALL_INFO in
5476 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5479 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5480 for as_dir
in /usr
/sbin
5483 test -z "$as_dir" && as_dir
=.
5484 for ac_exec_ext
in '' $ac_executable_extensions; do
5485 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5486 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5487 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5497 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5498 if test -n "$INSTALL_INFO"; then
5499 { $as_echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5500 $as_echo "$INSTALL_INFO" >&6; }
5502 { $as_echo "$as_me:$LINENO: result: no" >&5
5503 $as_echo "no" >&6; }
5507 # Extract the first word of "install-info", so it can be a program name with args.
5508 set dummy install-info
; ac_word
=$2
5509 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5510 $as_echo_n "checking for $ac_word... " >&6; }
5511 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5512 $as_echo_n "(cached) " >&6
5514 case $INSTALL_INFO in
5516 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5519 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5523 test -z "$as_dir" && as_dir
=.
5524 for ac_exec_ext
in '' $ac_executable_extensions; do
5525 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5526 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5527 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5534 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO
=":"
5538 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5539 if test -n "$INSTALL_INFO"; then
5540 { $as_echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5541 $as_echo "$INSTALL_INFO" >&6; }
5543 { $as_echo "$as_me:$LINENO: result: no" >&5
5544 $as_echo "no" >&6; }
5548 # Extract the first word of "gzip", so it can be a program name with args.
5549 set dummy
gzip; ac_word
=$2
5550 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5551 $as_echo_n "checking for $ac_word... " >&6; }
5552 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
5553 $as_echo_n "(cached) " >&6
5557 ac_cv_path_GZIP_PROG
="$GZIP_PROG" # Let the user override the test with a path.
5560 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5564 test -z "$as_dir" && as_dir
=.
5565 for ac_exec_ext
in '' $ac_executable_extensions; do
5566 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5567 ac_cv_path_GZIP_PROG
="$as_dir/$ac_word$ac_exec_ext"
5568 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5578 GZIP_PROG
=$ac_cv_path_GZIP_PROG
5579 if test -n "$GZIP_PROG"; then
5580 { $as_echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
5581 $as_echo "$GZIP_PROG" >&6; }
5583 { $as_echo "$as_me:$LINENO: result: no" >&5
5584 $as_echo "no" >&6; }
5590 ## Need makeinfo >= 4.6 (?) to build the manuals.
5591 # Extract the first word of "makeinfo", so it can be a program name with args.
5592 set dummy makeinfo
; ac_word
=$2
5593 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5594 $as_echo_n "checking for $ac_word... " >&6; }
5595 if test "${ac_cv_path_MAKEINFO+set}" = set; then
5596 $as_echo_n "(cached) " >&6
5600 ac_cv_path_MAKEINFO
="$MAKEINFO" # Let the user override the test with a path.
5603 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5607 test -z "$as_dir" && as_dir
=.
5608 for ac_exec_ext
in '' $ac_executable_extensions; do
5609 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5610 ac_cv_path_MAKEINFO
="$as_dir/$ac_word$ac_exec_ext"
5611 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5618 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO
="no"
5622 MAKEINFO
=$ac_cv_path_MAKEINFO
5623 if test -n "$MAKEINFO"; then
5624 { $as_echo "$as_me:$LINENO: result: $MAKEINFO" >&5
5625 $as_echo "$MAKEINFO" >&6; }
5627 { $as_echo "$as_me:$LINENO: result: no" >&5
5628 $as_echo "no" >&6; }
5632 if test "$MAKEINFO" != "no" && \
5633 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
5637 ## Makeinfo is unusual. For a released Emacs, the manuals are
5638 ## pre-built, and not deleted by the normal clean rules. makeinfo is
5639 ## therefore in the category of "special tools" not normally required, which
5640 ## configure does not have to check for (eg autoconf itself).
5641 ## In a Bazaar checkout on the other hand, the manuals are not included.
5642 ## So makeinfo is a requirement to build from Bazaar, and configure
5643 ## should test for it as it does for any other build requirement.
5644 ## We use the presence of $srcdir/info/emacs to distinguish a release,
5645 ## with pre-built manuals, from a Bazaar checkout.
5646 if test "$MAKEINFO" = "no"; then
5647 if test "x${with_makeinfo}" = "xno"; then
5649 elif ! test -e $srcdir/info
/emacs
; then
5650 { { $as_echo "$as_me:$LINENO: error: You do not seem to have makeinfo >= 4.6, and your
5651 source tree does not seem to have pre-built manuals in the \`info' directory.
5652 Either install a suitable version of makeinfo, or re-run configure
5653 with the \`--without-makeinfo' option to build without the manuals. " >&5
5654 $as_echo "$as_me: error: You do not seem to have makeinfo >= 4.6, and your
5655 source tree does not seem to have pre-built manuals in the \`info' directory.
5656 Either install a suitable version of makeinfo, or re-run configure
5657 with the \`--without-makeinfo' option to build without the manuals. " >&2;}
5658 { (exit 1); exit 1; }; }
5663 if test x
$GCC = xyes
&& test "x$GCC_LINK_TEST_OPTIONS" != x
5665 ac_link
="$ac_link $GCC_LINK_TEST_OPTIONS"
5668 if test x
$GCC = x
&& test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5670 ac_link
="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5674 late_LDFLAGS
=$LDFLAGS
5675 if test "$GCC" = yes; then
5676 LDFLAGS
="$LDFLAGS -Wl,-znocombreloc"
5678 LDFLAGS
="$LDFLAGS -znocombreloc"
5681 { $as_echo "$as_me:$LINENO: checking for -znocombreloc" >&5
5682 $as_echo_n "checking for -znocombreloc... " >&6; }
5683 cat >conftest.
$ac_ext <<_ACEOF
5686 rm -f conftest.
$ac_objext conftest
$ac_exeext
5687 if { (ac_try
="$ac_link"
5689 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5690 *) ac_try_echo=$ac_try;;
5692 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5693 $as_echo "$ac_try_echo") >&5
5694 (eval "$ac_link") 2>conftest.er1
5696 grep -v '^ *+' conftest.er1 >conftest.err
5698 cat conftest.err >&5
5699 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5700 (exit $ac_status); } && {
5701 test -z "$ac_c_werror_flag" ||
5702 test ! -s conftest.err
5703 } && test -s conftest$ac_exeext && {
5704 test "$cross_compiling" = yes ||
5705 $as_test_x conftest$ac_exeext
5707 { $as_echo "$as_me:$LINENO: result: yes" >&5
5708 $as_echo "yes" >&6; }
5710 $as_echo "$as_me: failed program was:" >&5
5711 sed 's/^/| /' conftest.$ac_ext >&5
5713 LDFLAGS=$late_LDFLAGS
5714 { $as_echo "$as_me:$LINENO: result: no" >&5
5715 $as_echo "no" >&6; }
5718 rm -rf conftest.dSYM
5719 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5720 conftest$ac_exeext conftest.$ac_ext
5722 #### Extract some information from the operating system and machine files.
5724 { $as_echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
5725 - which libraries the lib-src programs will want, and
5726 - whether the GNU malloc routines are usable..." >&5
5727 $as_echo "$as_me: checking the machine- and system-dependent files to find out
5728 - which libraries the lib-src programs will want, and
5729 - whether the GNU malloc routines are usable..." >&6;}
5731 ### First figure out CFLAGS (which we use for running the compiler here)
5732 ### and REAL_CFLAGS (which we use for real compilation).
5733 ### The two are the same except on a few systems, where they are made
5734 ### different to work around various lossages. For example,
5735 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5736 ### as implying static linking.
5738 ### If the CFLAGS env var is specified, we use that value
5739 ### instead of the default.
5741 ### It's not important that this name contain the PID; you can't run
5742 ### two configures in the same directory and have anything work
5744 tempcname="conftest.c"
5747 #include "'${srcdir}'/src/'${opsysfile}'"
5748 #include "'${srcdir}'/src/'${machfile}'"
5749 #ifndef LIBS_MACHINE
5750 #define LIBS_MACHINE
5755 #ifndef C_SWITCH_SYSTEM
5756 #define C_SWITCH_SYSTEM
5758 #ifndef C_SWITCH_MACHINE
5759 #define C_SWITCH_MACHINE
5761 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
5762 configure___ c_switch_system=C_SWITCH_SYSTEM
5763 configure___ c_switch_machine=C_SWITCH_MACHINE
5766 #define LIB_X11_LIB -lX11
5769 configure___ LIBX=LIB_X11_LIB
5772 configure___ unexec=UNEXEC
5774 configure___ unexec=unexec.o
5777 #ifdef SYSTEM_MALLOC
5778 configure___ system_malloc=yes
5780 configure___ system_malloc=no
5783 #ifdef USE_MMAP_FOR_BUFFERS
5784 configure___ use_mmap_for_buffers=yes
5786 configure___ use_mmap_for_buffers=no
5789 #ifndef C_OPTIMIZE_SWITCH
5791 #define C_OPTIMIZE_SWITCH -O2
5793 #define C_OPTIMIZE_SWITCH -O
5797 #ifndef C_WARNINGS_SWITCH
5798 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5801 #ifndef LD_SWITCH_MACHINE
5802 #define LD_SWITCH_MACHINE
5805 #ifndef LD_SWITCH_SYSTEM
5806 #define LD_SWITCH_SYSTEM
5809 #ifndef LD_SWITCH_X_SITE_AUX
5810 #define LD_SWITCH_X_SITE_AUX
5813 configure___ ld_switch_system=LD_SWITCH_SYSTEM
5814 configure___ ld_switch_machine=LD_SWITCH_MACHINE
5816 #ifdef THIS_IS_CONFIGURE
5818 /* Get the CFLAGS for tests in configure. */
5820 configure___ CFLAGS=C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
5822 configure___ CFLAGS='${SPECIFIED_CFLAGS}'
5825 #else /* not THIS_IS_CONFIGURE */
5827 /* Get the CFLAGS for real compilation. */
5829 configure___ REAL_CFLAGS=C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH ${PROFILING_CFLAGS} '${SPECIFIED_CFLAGS}'
5831 configure___ REAL_CFLAGS='${SPECIFIED_CFLAGS}'
5834 #endif /* not THIS_IS_CONFIGURE */
5837 LDFLAGS="${LDFLAGS} ${PROFILING_LDFLAGS}"
5839 # The value of CPP is a quoted variable reference, so we need to do this
5840 # to get its actual value...
5841 CPP=`eval "echo $CPP"`
5842 eval `${CPP} -Isrc ${tempcname} \
5843 |
sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5844 if test "x$SPECIFIED_CFLAGS" = x; then
5845 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5846 |
sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5848 REAL_CFLAGS="$CFLAGS"
5852 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
5854 ### Make sure subsequent tests use flags consistent with the build flags.
5856 if test x"${OVERRIDE_CPPFLAGS}" != x; then
5857 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
5859 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
5864 # Check whether --enable-largefile was given.
5865 if test "${enable_largefile+set}" = set; then
5866 enableval=$enable_largefile;
5869 if test "$enable_largefile" != no; then
5871 { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5872 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5873 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5874 $as_echo_n "(cached) " >&6
5876 ac_cv_sys_largefile_CC=no
5877 if test "$GCC" != yes; then
5880 # IRIX 6.2 and later do not support large files by default,
5881 # so use the C compiler's -n32 option if that helps.
5882 cat >conftest.$ac_ext <<_ACEOF
5885 cat confdefs.h >>conftest.$ac_ext
5886 cat >>conftest.$ac_ext <<_ACEOF
5887 /* end confdefs.h. */
5888 #include <sys/types.h>
5889 /* Check that off_t can represent 2**63 - 1 correctly.
5890 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5891 since some C++ compilers masquerading as C compilers
5892 incorrectly reject 9223372036854775807. */
5893 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5894 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5895 && LARGE_OFF_T % 2147483647 == 1)
5905 rm -f conftest.$ac_objext
5906 if { (ac_try="$ac_compile"
5908 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5909 *) ac_try_echo
=$ac_try;;
5911 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
5912 $as_echo "$ac_try_echo") >&5
5913 (eval "$ac_compile") 2>conftest.er1
5915 grep -v '^ *+' conftest.er1
>conftest.err
5917 cat conftest.err
>&5
5918 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5919 (exit $ac_status); } && {
5920 test -z "$ac_c_werror_flag" ||
5921 test ! -s conftest.err
5922 } && test -s conftest.
$ac_objext; then
5925 $as_echo "$as_me: failed program was:" >&5
5926 sed 's/^/| /' conftest.
$ac_ext >&5
5931 rm -f core conftest.err conftest.
$ac_objext
5933 rm -f conftest.
$ac_objext
5934 if { (ac_try
="$ac_compile"
5936 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5937 *) ac_try_echo=$ac_try;;
5939 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5940 $as_echo "$ac_try_echo") >&5
5941 (eval "$ac_compile") 2>conftest.er1
5943 grep -v '^ *+' conftest.er1 >conftest.err
5945 cat conftest.err >&5
5946 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5947 (exit $ac_status); } && {
5948 test -z "$ac_c_werror_flag" ||
5949 test ! -s conftest.err
5950 } && test -s conftest.$ac_objext; then
5951 ac_cv_sys_largefile_CC=' -n32'; break
5953 $as_echo "$as_me: failed program was:" >&5
5954 sed 's/^/| /' conftest.$ac_ext >&5
5959 rm -f core conftest.err conftest.$ac_objext
5963 rm -f conftest.$ac_ext
5966 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5967 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5968 if test "$ac_cv_sys_largefile_CC" != no; then
5969 CC=$CC$ac_cv_sys_largefile_CC
5972 { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5973 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5974 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5975 $as_echo_n "(cached) " >&6
5978 cat >conftest.$ac_ext <<_ACEOF
5981 cat confdefs.h >>conftest.$ac_ext
5982 cat >>conftest.$ac_ext <<_ACEOF
5983 /* end confdefs.h. */
5984 #include <sys/types.h>
5985 /* Check that off_t can represent 2**63 - 1 correctly.
5986 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5987 since some C++ compilers masquerading as C compilers
5988 incorrectly reject 9223372036854775807. */
5989 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5990 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5991 && LARGE_OFF_T % 2147483647 == 1)
6001 rm -f conftest.$ac_objext
6002 if { (ac_try="$ac_compile"
6004 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6005 *) ac_try_echo
=$ac_try;;
6007 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6008 $as_echo "$ac_try_echo") >&5
6009 (eval "$ac_compile") 2>conftest.er1
6011 grep -v '^ *+' conftest.er1
>conftest.err
6013 cat conftest.err
>&5
6014 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6015 (exit $ac_status); } && {
6016 test -z "$ac_c_werror_flag" ||
6017 test ! -s conftest.err
6018 } && test -s conftest.
$ac_objext; then
6019 ac_cv_sys_file_offset_bits
=no
; break
6021 $as_echo "$as_me: failed program was:" >&5
6022 sed 's/^/| /' conftest.
$ac_ext >&5
6027 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6028 cat >conftest.
$ac_ext <<_ACEOF
6031 cat confdefs.h
>>conftest.
$ac_ext
6032 cat >>conftest.
$ac_ext <<_ACEOF
6033 /* end confdefs.h. */
6034 #define _FILE_OFFSET_BITS 64
6035 #include <sys/types.h>
6036 /* Check that off_t can represent 2**63 - 1 correctly.
6037 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6038 since some C++ compilers masquerading as C compilers
6039 incorrectly reject 9223372036854775807. */
6040 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6041 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6042 && LARGE_OFF_T % 2147483647 == 1)
6052 rm -f conftest.
$ac_objext
6053 if { (ac_try
="$ac_compile"
6055 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6056 *) ac_try_echo=$ac_try;;
6058 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6059 $as_echo "$ac_try_echo") >&5
6060 (eval "$ac_compile") 2>conftest.er1
6062 grep -v '^ *+' conftest.er1 >conftest.err
6064 cat conftest.err >&5
6065 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6066 (exit $ac_status); } && {
6067 test -z "$ac_c_werror_flag" ||
6068 test ! -s conftest.err
6069 } && test -s conftest.$ac_objext; then
6070 ac_cv_sys_file_offset_bits=64; break
6072 $as_echo "$as_me: failed program was:" >&5
6073 sed 's/^/| /' conftest.$ac_ext >&5
6078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6079 ac_cv_sys_file_offset_bits=unknown
6083 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
6084 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6085 case $ac_cv_sys_file_offset_bits in #(
6088 cat >>confdefs.h <<_ACEOF
6089 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6094 if test $ac_cv_sys_file_offset_bits = unknown; then
6095 { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
6096 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6097 if test "${ac_cv_sys_large_files+set}" = set; then
6098 $as_echo_n "(cached) " >&6
6101 cat >conftest.$ac_ext <<_ACEOF
6104 cat confdefs.h >>conftest.$ac_ext
6105 cat >>conftest.$ac_ext <<_ACEOF
6106 /* end confdefs.h. */
6107 #include <sys/types.h>
6108 /* Check that off_t can represent 2**63 - 1 correctly.
6109 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6110 since some C++ compilers masquerading as C compilers
6111 incorrectly reject 9223372036854775807. */
6112 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6113 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6114 && LARGE_OFF_T % 2147483647 == 1)
6124 rm -f conftest.$ac_objext
6125 if { (ac_try="$ac_compile"
6127 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6128 *) ac_try_echo
=$ac_try;;
6130 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6131 $as_echo "$ac_try_echo") >&5
6132 (eval "$ac_compile") 2>conftest.er1
6134 grep -v '^ *+' conftest.er1
>conftest.err
6136 cat conftest.err
>&5
6137 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6138 (exit $ac_status); } && {
6139 test -z "$ac_c_werror_flag" ||
6140 test ! -s conftest.err
6141 } && test -s conftest.
$ac_objext; then
6142 ac_cv_sys_large_files
=no
; break
6144 $as_echo "$as_me: failed program was:" >&5
6145 sed 's/^/| /' conftest.
$ac_ext >&5
6150 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6151 cat >conftest.
$ac_ext <<_ACEOF
6154 cat confdefs.h
>>conftest.
$ac_ext
6155 cat >>conftest.
$ac_ext <<_ACEOF
6156 /* end confdefs.h. */
6157 #define _LARGE_FILES 1
6158 #include <sys/types.h>
6159 /* Check that off_t can represent 2**63 - 1 correctly.
6160 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6161 since some C++ compilers masquerading as C compilers
6162 incorrectly reject 9223372036854775807. */
6163 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6164 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6165 && LARGE_OFF_T % 2147483647 == 1)
6175 rm -f conftest.
$ac_objext
6176 if { (ac_try
="$ac_compile"
6178 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6179 *) ac_try_echo=$ac_try;;
6181 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6182 $as_echo "$ac_try_echo") >&5
6183 (eval "$ac_compile") 2>conftest.er1
6185 grep -v '^ *+' conftest.er1 >conftest.err
6187 cat conftest.err >&5
6188 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6189 (exit $ac_status); } && {
6190 test -z "$ac_c_werror_flag" ||
6191 test ! -s conftest.err
6192 } && test -s conftest.$ac_objext; then
6193 ac_cv_sys_large_files=1; break
6195 $as_echo "$as_me: failed program was:" >&5
6196 sed 's/^/| /' conftest.$ac_ext >&5
6201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6202 ac_cv_sys_large_files=unknown
6206 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
6207 $as_echo "$ac_cv_sys_large_files" >&6; }
6208 case $ac_cv_sys_large_files in #(
6211 cat >>confdefs.h <<_ACEOF
6212 #define _LARGE_FILES $ac_cv_sys_large_files
6222 ### The standard library on x86-64 and s390x GNU/Linux distributions can
6223 ### be located in either /usr/lib64 or /usr/lib.
6224 ### In some rare cases, /usr/lib64 exists but does not contain the
6225 ### relevant files (bug#1287). Hence test for crtn.o.
6226 case "${canonical}" in
6227 x86_64-*-linux-gnu* | s390x-*-linux-gnu* )
6228 if test -e /usr/lib64/crtn.o; then
6230 cat >>confdefs.h <<\_ACEOF
6231 #define HAVE_LIB64_DIR 1
6240 if test "${with_sound}" != "no"; then
6241 # Sound support for GNU/Linux and the free BSDs.
6245 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
6247 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
6248 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6249 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6250 $as_echo_n "checking for $ac_header... " >&6; }
6251 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6252 $as_echo_n "(cached) " >&6
6254 ac_res=`eval 'as_val=${'$as_ac_Header'}
6255 $as_echo "$as_val"'`
6256 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6257 $as_echo "$ac_res" >&6; }
6259 # Is the header compilable?
6260 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6261 $as_echo_n "checking $ac_header usability... " >&6; }
6262 cat >conftest.$ac_ext <<_ACEOF
6265 cat confdefs.h >>conftest.$ac_ext
6266 cat >>conftest.$ac_ext <<_ACEOF
6267 /* end confdefs.h. */
6268 $ac_includes_default
6269 #include <$ac_header>
6271 rm -f conftest.$ac_objext
6272 if { (ac_try="$ac_compile"
6274 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6275 *) ac_try_echo
=$ac_try;;
6277 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6278 $as_echo "$ac_try_echo") >&5
6279 (eval "$ac_compile") 2>conftest.er1
6281 grep -v '^ *+' conftest.er1
>conftest.err
6283 cat conftest.err
>&5
6284 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6285 (exit $ac_status); } && {
6286 test -z "$ac_c_werror_flag" ||
6287 test ! -s conftest.err
6288 } && test -s conftest.
$ac_objext; then
6289 ac_header_compiler
=yes
6291 $as_echo "$as_me: failed program was:" >&5
6292 sed 's/^/| /' conftest.
$ac_ext >&5
6294 ac_header_compiler
=no
6297 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6298 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6299 $as_echo "$ac_header_compiler" >&6; }
6301 # Is the header present?
6302 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6303 $as_echo_n "checking $ac_header presence... " >&6; }
6304 cat >conftest.
$ac_ext <<_ACEOF
6307 cat confdefs.h
>>conftest.
$ac_ext
6308 cat >>conftest.
$ac_ext <<_ACEOF
6309 /* end confdefs.h. */
6310 #include <$ac_header>
6312 if { (ac_try
="$ac_cpp conftest.$ac_ext"
6314 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6315 *) ac_try_echo=$ac_try;;
6317 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6318 $as_echo "$ac_try_echo") >&5
6319 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6321 grep -v '^ *+' conftest.er1 >conftest.err
6323 cat conftest.err >&5
6324 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6325 (exit $ac_status); } >/dev/null && {
6326 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6327 test ! -s conftest.err
6329 ac_header_preproc=yes
6331 $as_echo "$as_me: failed program was:" >&5
6332 sed 's/^/| /' conftest.$ac_ext >&5
6334 ac_header_preproc=no
6337 rm -f conftest.err conftest.$ac_ext
6338 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6339 $as_echo "$ac_header_preproc" >&6; }
6341 # So? What about this header?
6342 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6344 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6345 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6346 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6347 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6348 ac_header_preproc=yes
6351 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6352 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6353 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6354 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6355 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6356 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6357 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6358 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6359 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6360 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6361 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6362 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6366 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6367 $as_echo_n "checking for $ac_header... " >&6; }
6368 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6369 $as_echo_n "(cached) " >&6
6371 eval "$as_ac_Header=\$ac_header_preproc"
6373 ac_res=`eval 'as_val=${'$as_ac_Header'}
6374 $as_echo "$as_val"'`
6375 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6376 $as_echo "$ac_res" >&6; }
6379 if test `eval 'as_val=${'$as_ac_Header'}
6380 $as_echo "$as_val"'` = yes; then
6381 cat >>confdefs.h <<_ACEOF
6382 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
6389 # Emulation library used on NetBSD.
6390 { $as_echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
6391 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
6392 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
6393 $as_echo_n "(cached) " >&6
6395 ac_check_lib_save_LIBS=$LIBS
6396 LIBS="-lossaudio $LIBS"
6397 cat >conftest.$ac_ext <<_ACEOF
6400 cat confdefs.h >>conftest.$ac_ext
6401 cat >>conftest.$ac_ext <<_ACEOF
6402 /* end confdefs.h. */
6404 /* Override any GCC internal prototype to avoid an error.
6405 Use char because int might match the return type of a GCC
6406 builtin and then its argument prototype would still apply. */
6414 return _oss_ioctl ();
6419 rm -f conftest.$ac_objext conftest$ac_exeext
6420 if { (ac_try="$ac_link"
6422 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6423 *) ac_try_echo
=$ac_try;;
6425 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6426 $as_echo "$ac_try_echo") >&5
6427 (eval "$ac_link") 2>conftest.er1
6429 grep -v '^ *+' conftest.er1
>conftest.err
6431 cat conftest.err
>&5
6432 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6433 (exit $ac_status); } && {
6434 test -z "$ac_c_werror_flag" ||
6435 test ! -s conftest.err
6436 } && test -s conftest
$ac_exeext && {
6437 test "$cross_compiling" = yes ||
6438 $as_test_x conftest
$ac_exeext
6440 ac_cv_lib_ossaudio__oss_ioctl
=yes
6442 $as_echo "$as_me: failed program was:" >&5
6443 sed 's/^/| /' conftest.
$ac_ext >&5
6445 ac_cv_lib_ossaudio__oss_ioctl
=no
6448 rm -rf conftest.dSYM
6449 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6450 conftest
$ac_exeext conftest.
$ac_ext
6451 LIBS
=$ac_check_lib_save_LIBS
6453 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6454 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6455 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
6464 ALSA_MODULES
="alsa >= $ALSA_REQUIRED"
6468 # Extract the first word of "pkg-config", so it can be a program name with args.
6469 set dummy pkg-config
; ac_word
=$2
6470 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6471 $as_echo_n "checking for $ac_word... " >&6; }
6472 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6473 $as_echo_n "(cached) " >&6
6477 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
6480 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6484 test -z "$as_dir" && as_dir
=.
6485 for ac_exec_ext
in '' $ac_executable_extensions; do
6486 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6487 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
6488 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6495 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
6499 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
6500 if test -n "$PKG_CONFIG"; then
6501 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6502 $as_echo "$PKG_CONFIG" >&6; }
6504 { $as_echo "$as_me:$LINENO: result: no" >&5
6505 $as_echo "no" >&6; }
6510 if test "$PKG_CONFIG" = "no" ; then
6513 PKG_CONFIG_MIN_VERSION
=0.9.0
6514 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6515 { $as_echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
6516 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
6518 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6519 { $as_echo "$as_me:$LINENO: result: yes" >&5
6520 $as_echo "yes" >&6; }
6523 { $as_echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
6524 $as_echo_n "checking ALSA_CFLAGS... " >&6; }
6525 ALSA_CFLAGS
=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6526 { $as_echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
6527 $as_echo "$ALSA_CFLAGS" >&6; }
6529 { $as_echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
6530 $as_echo_n "checking ALSA_LIBS... " >&6; }
6531 ALSA_LIBS
=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6532 { $as_echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
6533 $as_echo "$ALSA_LIBS" >&6; }
6535 { $as_echo "$as_me:$LINENO: result: no" >&5
6536 $as_echo "no" >&6; }
6539 ## If we have a custom action on failure, don't print errors, but
6540 ## do set a variable so people can do so.
6541 ALSA_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6548 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6549 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6553 if test $succeeded = yes; then
6559 if test $HAVE_ALSA = yes; then
6560 SAVE_CFLAGS
="$CFLAGS"
6561 SAVE_LDFLAGS
="$LDFLAGS"
6562 CFLAGS
="$ALSA_CFLAGS $CFLAGS"
6563 LDFLAGS
="$ALSA_LIBS $LDFLAGS"
6564 cat >conftest.
$ac_ext <<_ACEOF
6567 cat confdefs.h
>>conftest.
$ac_ext
6568 cat >>conftest.
$ac_ext <<_ACEOF
6569 /* end confdefs.h. */
6570 #include <asoundlib.h>
6574 snd_lib_error_set_handler (0);
6579 rm -f conftest.
$ac_objext
6580 if { (ac_try
="$ac_compile"
6582 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6583 *) ac_try_echo=$ac_try;;
6585 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6586 $as_echo "$ac_try_echo") >&5
6587 (eval "$ac_compile") 2>conftest.er1
6589 grep -v '^ *+' conftest.er1 >conftest.err
6591 cat conftest.err >&5
6592 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6593 (exit $ac_status); } && {
6594 test -z "$ac_c_werror_flag" ||
6595 test ! -s conftest.err
6596 } && test -s conftest.$ac_objext; then
6597 emacs_alsa_normal=yes
6599 $as_echo "$as_me: failed program was:" >&5
6600 sed 's/^/| /' conftest.$ac_ext >&5
6602 emacs_alsa_normal=no
6605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6606 if test "$emacs_alsa_normal" != yes; then
6607 cat >conftest.$ac_ext <<_ACEOF
6610 cat confdefs.h >>conftest.$ac_ext
6611 cat >>conftest.$ac_ext <<_ACEOF
6612 /* end confdefs.h. */
6613 #include <alsa/asoundlib.h>
6617 snd_lib_error_set_handler (0);
6622 rm -f conftest.$ac_objext
6623 if { (ac_try="$ac_compile"
6625 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6626 *) ac_try_echo
=$ac_try;;
6628 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6629 $as_echo "$ac_try_echo") >&5
6630 (eval "$ac_compile") 2>conftest.er1
6632 grep -v '^ *+' conftest.er1
>conftest.err
6634 cat conftest.err
>&5
6635 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6636 (exit $ac_status); } && {
6637 test -z "$ac_c_werror_flag" ||
6638 test ! -s conftest.err
6639 } && test -s conftest.
$ac_objext; then
6640 emacs_alsa_subdir
=yes
6642 $as_echo "$as_me: failed program was:" >&5
6643 sed 's/^/| /' conftest.
$ac_ext >&5
6645 emacs_alsa_subdir
=no
6648 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6649 if test "$emacs_alsa_subdir" != yes; then
6650 { { $as_echo "$as_me:$LINENO: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&5
6651 $as_echo "$as_me: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&2;}
6652 { (exit 1); exit 1; }; }
6654 ALSA_CFLAGS
="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6657 CFLAGS
="$SAVE_CFLAGS"
6658 LDFLAGS
="$SAVE_LDFLAGS"
6659 LIBSOUND
="$LIBSOUND $ALSA_LIBS"
6660 CFLAGS_SOUND
="$CFLAGS_SOUND $ALSA_CFLAGS"
6662 cat >>confdefs.h
<<\_ACEOF
6695 for ac_header
in sys
/select.h sys
/timeb.h sys
/time.h unistd.h utime.h \
6696 linux
/version.h sys
/systeminfo.h termios.h limits.h string.h stdlib.h \
6697 stdio_ext.h fcntl.h
strings.h coff.h pty.h sys
/mman.h \
6698 sys
/param.h sys
/vlimit.h sys
/resource.h locale.h sys
/_mbstate_t.h \
6699 sys
/utsname.h
pwd.h utmp.h
6701 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6702 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6703 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6704 $as_echo_n "checking for $ac_header... " >&6; }
6705 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6706 $as_echo_n "(cached) " >&6
6708 ac_res
=`eval 'as_val=${'$as_ac_Header'}
6709 $as_echo "$as_val"'`
6710 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6711 $as_echo "$ac_res" >&6; }
6713 # Is the header compilable?
6714 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6715 $as_echo_n "checking $ac_header usability... " >&6; }
6716 cat >conftest.
$ac_ext <<_ACEOF
6719 cat confdefs.h
>>conftest.
$ac_ext
6720 cat >>conftest.
$ac_ext <<_ACEOF
6721 /* end confdefs.h. */
6722 $ac_includes_default
6723 #include <$ac_header>
6725 rm -f conftest.
$ac_objext
6726 if { (ac_try
="$ac_compile"
6728 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6729 *) ac_try_echo=$ac_try;;
6731 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6732 $as_echo "$ac_try_echo") >&5
6733 (eval "$ac_compile") 2>conftest.er1
6735 grep -v '^ *+' conftest.er1 >conftest.err
6737 cat conftest.err >&5
6738 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6739 (exit $ac_status); } && {
6740 test -z "$ac_c_werror_flag" ||
6741 test ! -s conftest.err
6742 } && test -s conftest.$ac_objext; then
6743 ac_header_compiler=yes
6745 $as_echo "$as_me: failed program was:" >&5
6746 sed 's/^/| /' conftest.$ac_ext >&5
6748 ac_header_compiler=no
6751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6752 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6753 $as_echo "$ac_header_compiler" >&6; }
6755 # Is the header present?
6756 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6757 $as_echo_n "checking $ac_header presence... " >&6; }
6758 cat >conftest.$ac_ext <<_ACEOF
6761 cat confdefs.h >>conftest.$ac_ext
6762 cat >>conftest.$ac_ext <<_ACEOF
6763 /* end confdefs.h. */
6764 #include <$ac_header>
6766 if { (ac_try="$ac_cpp conftest.$ac_ext"
6768 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6769 *) ac_try_echo
=$ac_try;;
6771 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6772 $as_echo "$ac_try_echo") >&5
6773 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6775 grep -v '^ *+' conftest.er1
>conftest.err
6777 cat conftest.err
>&5
6778 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6779 (exit $ac_status); } >/dev
/null
&& {
6780 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6781 test ! -s conftest.err
6783 ac_header_preproc
=yes
6785 $as_echo "$as_me: failed program was:" >&5
6786 sed 's/^/| /' conftest.
$ac_ext >&5
6788 ac_header_preproc
=no
6791 rm -f conftest.err conftest.
$ac_ext
6792 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6793 $as_echo "$ac_header_preproc" >&6; }
6795 # So? What about this header?
6796 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6798 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6799 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6800 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6801 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6802 ac_header_preproc
=yes
6805 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6806 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6807 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6808 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6809 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6810 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6811 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6812 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6813 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6814 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6815 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6816 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6820 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6821 $as_echo_n "checking for $ac_header... " >&6; }
6822 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6823 $as_echo_n "(cached) " >&6
6825 eval "$as_ac_Header=\$ac_header_preproc"
6827 ac_res
=`eval 'as_val=${'$as_ac_Header'}
6828 $as_echo "$as_val"'`
6829 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6830 $as_echo "$ac_res" >&6; }
6833 if test `eval 'as_val=${'$as_ac_Header'}
6834 $as_echo "$as_val"'` = yes; then
6835 cat >>confdefs.h
<<_ACEOF
6836 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6844 { $as_echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
6845 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
6846 cat >conftest.
$ac_ext <<_ACEOF
6849 cat confdefs.h
>>conftest.
$ac_ext
6850 cat >>conftest.
$ac_ext <<_ACEOF
6851 /* end confdefs.h. */
6852 #include <sys/personality.h>
6856 personality (PER_LINUX32)
6861 rm -f conftest.
$ac_objext
6862 if { (ac_try
="$ac_compile"
6864 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6865 *) ac_try_echo=$ac_try;;
6867 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6868 $as_echo "$ac_try_echo") >&5
6869 (eval "$ac_compile") 2>conftest.er1
6871 grep -v '^ *+' conftest.er1 >conftest.err
6873 cat conftest.err >&5
6874 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6875 (exit $ac_status); } && {
6876 test -z "$ac_c_werror_flag" ||
6877 test ! -s conftest.err
6878 } && test -s conftest.$ac_objext; then
6879 emacs_cv_personality_linux32=yes
6881 $as_echo "$as_me: failed program was:" >&5
6882 sed 's/^/| /' conftest.$ac_ext >&5
6884 emacs_cv_personality_linux32=no
6887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6888 { $as_echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
6889 $as_echo "$emacs_cv_personality_linux32" >&6; }
6891 if test $emacs_cv_personality_linux32 = yes; then
6893 cat >>confdefs.h <<\_ACEOF
6894 #define HAVE_PERSONALITY_LINUX32 1
6900 for ac_header in term.h
6902 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
6903 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6904 $as_echo_n "checking for $ac_header... " >&6; }
6905 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6906 $as_echo_n "(cached) " >&6
6908 cat >conftest.$ac_ext <<_ACEOF
6911 cat confdefs.h >>conftest.$ac_ext
6912 cat >>conftest.$ac_ext <<_ACEOF
6913 /* end confdefs.h. */
6914 #include <$ac_header>
6916 if { (ac_try="$ac_cpp conftest.$ac_ext"
6918 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6919 *) ac_try_echo
=$ac_try;;
6921 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6922 $as_echo "$ac_try_echo") >&5
6923 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6925 grep -v '^ *+' conftest.er1
>conftest.err
6927 cat conftest.err
>&5
6928 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6929 (exit $ac_status); } >/dev
/null
&& {
6930 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6931 test ! -s conftest.err
6933 eval "$as_ac_Header=yes"
6935 $as_echo "$as_me: failed program was:" >&5
6936 sed 's/^/| /' conftest.
$ac_ext >&5
6938 eval "$as_ac_Header=no"
6941 rm -f conftest.err conftest.
$ac_ext
6943 ac_res
=`eval 'as_val=${'$as_ac_Header'}
6944 $as_echo "$as_val"'`
6945 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6946 $as_echo "$ac_res" >&6; }
6947 if test `eval 'as_val=${'$as_ac_Header'}
6948 $as_echo "$as_val"'` = yes; then
6949 cat >>confdefs.h
<<_ACEOF
6950 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6957 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6958 $as_echo_n "checking for ANSI C header files... " >&6; }
6959 if test "${ac_cv_header_stdc+set}" = set; then
6960 $as_echo_n "(cached) " >&6
6962 cat >conftest.
$ac_ext <<_ACEOF
6965 cat confdefs.h
>>conftest.
$ac_ext
6966 cat >>conftest.
$ac_ext <<_ACEOF
6967 /* end confdefs.h. */
6981 rm -f conftest.
$ac_objext
6982 if { (ac_try
="$ac_compile"
6984 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6985 *) ac_try_echo=$ac_try;;
6987 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6988 $as_echo "$ac_try_echo") >&5
6989 (eval "$ac_compile") 2>conftest.er1
6991 grep -v '^ *+' conftest.er1 >conftest.err
6993 cat conftest.err >&5
6994 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6995 (exit $ac_status); } && {
6996 test -z "$ac_c_werror_flag" ||
6997 test ! -s conftest.err
6998 } && test -s conftest.$ac_objext; then
6999 ac_cv_header_stdc=yes
7001 $as_echo "$as_me: failed program was:" >&5
7002 sed 's/^/| /' conftest.$ac_ext >&5
7004 ac_cv_header_stdc=no
7007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7009 if test $ac_cv_header_stdc = yes; then
7010 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7011 cat >conftest.$ac_ext <<_ACEOF
7014 cat confdefs.h >>conftest.$ac_ext
7015 cat >>conftest.$ac_ext <<_ACEOF
7016 /* end confdefs.h. */
7020 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7021 $EGREP "memchr" >/dev/null 2>&1; then
7024 ac_cv_header_stdc=no
7030 if test $ac_cv_header_stdc = yes; then
7031 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7032 cat >conftest.$ac_ext <<_ACEOF
7035 cat confdefs.h >>conftest.$ac_ext
7036 cat >>conftest.$ac_ext <<_ACEOF
7037 /* end confdefs.h. */
7041 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7042 $EGREP "free" >/dev/null 2>&1; then
7045 ac_cv_header_stdc=no
7051 if test $ac_cv_header_stdc = yes; then
7052 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7053 if test "$cross_compiling" = yes; then
7056 cat >conftest.$ac_ext <<_ACEOF
7059 cat confdefs.h >>conftest.$ac_ext
7060 cat >>conftest.$ac_ext <<_ACEOF
7061 /* end confdefs.h. */
7064 #if ((' ' & 0x0FF) == 0x020)
7065 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7066 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7068 # define ISLOWER(c) \
7069 (('a' <= (c) && (c) <= 'i') \
7070 || ('j' <= (c) && (c) <= 'r') \
7071 || ('s' <= (c) && (c) <= 'z'))
7072 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7075 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7080 for (i = 0; i < 256; i++)
7081 if (XOR (islower (i), ISLOWER (i))
7082 || toupper (i) != TOUPPER (i))
7087 rm -f conftest$ac_exeext
7088 if { (ac_try="$ac_link"
7090 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7091 *) ac_try_echo
=$ac_try;;
7093 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7094 $as_echo "$ac_try_echo") >&5
7095 (eval "$ac_link") 2>&5
7097 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7098 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7099 { (case "(($ac_try" in
7100 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7101 *) ac_try_echo=$ac_try;;
7103 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7104 $as_echo "$ac_try_echo") >&5
7105 (eval "$ac_try") 2>&5
7107 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7108 (exit $ac_status); }; }; then
7111 $as_echo "$as_me: program exited with status $ac_status" >&5
7112 $as_echo "$as_me: failed program was:" >&5
7113 sed 's/^/| /' conftest.$ac_ext >&5
7116 ac_cv_header_stdc=no
7118 rm -rf conftest.dSYM
7119 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7125 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7126 $as_echo "$ac_cv_header_stdc" >&6; }
7127 if test $ac_cv_header_stdc = yes; then
7129 cat >>confdefs.h <<\_ACEOF
7130 #define STDC_HEADERS 1
7135 { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
7136 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
7137 if test "${ac_cv_header_time+set}" = set; then
7138 $as_echo_n "(cached) " >&6
7140 cat >conftest.$ac_ext <<_ACEOF
7143 cat confdefs.h >>conftest.$ac_ext
7144 cat >>conftest.$ac_ext <<_ACEOF
7145 /* end confdefs.h. */
7146 #include <sys/types.h>
7147 #include <sys/time.h>
7153 if ((struct tm *) 0)
7159 rm -f conftest.$ac_objext
7160 if { (ac_try="$ac_compile"
7162 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7163 *) ac_try_echo
=$ac_try;;
7165 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7166 $as_echo "$ac_try_echo") >&5
7167 (eval "$ac_compile") 2>conftest.er1
7169 grep -v '^ *+' conftest.er1
>conftest.err
7171 cat conftest.err
>&5
7172 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7173 (exit $ac_status); } && {
7174 test -z "$ac_c_werror_flag" ||
7175 test ! -s conftest.err
7176 } && test -s conftest.
$ac_objext; then
7177 ac_cv_header_time
=yes
7179 $as_echo "$as_me: failed program was:" >&5
7180 sed 's/^/| /' conftest.
$ac_ext >&5
7182 ac_cv_header_time
=no
7185 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7187 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7188 $as_echo "$ac_cv_header_time" >&6; }
7189 if test $ac_cv_header_time = yes; then
7191 cat >>confdefs.h
<<\_ACEOF
7192 #define TIME_WITH_SYS_TIME 1
7197 { $as_echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
7198 $as_echo_n "checking whether sys_siglist is declared... " >&6; }
7199 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
7200 $as_echo_n "(cached) " >&6
7202 cat >conftest.
$ac_ext <<_ACEOF
7205 cat confdefs.h
>>conftest.
$ac_ext
7206 cat >>conftest.
$ac_ext <<_ACEOF
7207 /* end confdefs.h. */
7208 $ac_includes_default
7220 rm -f conftest.
$ac_objext
7221 if { (ac_try
="$ac_compile"
7223 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7224 *) ac_try_echo=$ac_try;;
7226 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7227 $as_echo "$ac_try_echo") >&5
7228 (eval "$ac_compile") 2>conftest.er1
7230 grep -v '^ *+' conftest.er1 >conftest.err
7232 cat conftest.err >&5
7233 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7234 (exit $ac_status); } && {
7235 test -z "$ac_c_werror_flag" ||
7236 test ! -s conftest.err
7237 } && test -s conftest.$ac_objext; then
7238 ac_cv_have_decl_sys_siglist=yes
7240 $as_echo "$as_me: failed program was:" >&5
7241 sed 's/^/| /' conftest.$ac_ext >&5
7243 ac_cv_have_decl_sys_siglist=no
7246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7248 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
7249 $as_echo "$ac_cv_have_decl_sys_siglist" >&6; }
7250 if test $ac_cv_have_decl_sys_siglist = yes; then
7252 cat >>confdefs.h <<_ACEOF
7253 #define HAVE_DECL_SYS_SIGLIST 1
7258 cat >>confdefs.h <<_ACEOF
7259 #define HAVE_DECL_SYS_SIGLIST 0
7266 if test $ac_cv_have_decl_sys_siglist != yes; then
7267 # For Tru64, at least:
7268 { $as_echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
7269 $as_echo_n "checking whether __sys_siglist is declared... " >&6; }
7270 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
7271 $as_echo_n "(cached) " >&6
7273 cat >conftest.$ac_ext <<_ACEOF
7276 cat confdefs.h >>conftest.$ac_ext
7277 cat >>conftest.$ac_ext <<_ACEOF
7278 /* end confdefs.h. */
7279 $ac_includes_default
7283 #ifndef __sys_siglist
7284 (void) __sys_siglist;
7291 rm -f conftest.$ac_objext
7292 if { (ac_try="$ac_compile"
7294 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7295 *) ac_try_echo
=$ac_try;;
7297 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7298 $as_echo "$ac_try_echo") >&5
7299 (eval "$ac_compile") 2>conftest.er1
7301 grep -v '^ *+' conftest.er1
>conftest.err
7303 cat conftest.err
>&5
7304 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7305 (exit $ac_status); } && {
7306 test -z "$ac_c_werror_flag" ||
7307 test ! -s conftest.err
7308 } && test -s conftest.
$ac_objext; then
7309 ac_cv_have_decl___sys_siglist
=yes
7311 $as_echo "$as_me: failed program was:" >&5
7312 sed 's/^/| /' conftest.
$ac_ext >&5
7314 ac_cv_have_decl___sys_siglist
=no
7317 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7319 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
7320 $as_echo "$ac_cv_have_decl___sys_siglist" >&6; }
7321 if test $ac_cv_have_decl___sys_siglist = yes; then
7323 cat >>confdefs.h
<<_ACEOF
7324 #define HAVE_DECL___SYS_SIGLIST 1
7329 cat >>confdefs.h
<<_ACEOF
7330 #define HAVE_DECL___SYS_SIGLIST 0
7337 if test $ac_cv_have_decl___sys_siglist = yes; then
7339 cat >>confdefs.h
<<\_ACEOF
7340 #define sys_siglist __sys_siglist
7345 { $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7346 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
7347 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7348 $as_echo_n "(cached) " >&6
7350 cat >conftest.
$ac_ext <<_ACEOF
7353 cat confdefs.h
>>conftest.
$ac_ext
7354 cat >>conftest.
$ac_ext <<_ACEOF
7355 /* end confdefs.h. */
7356 #include <sys/types.h>
7357 #include <sys/wait.h>
7359 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7362 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7370 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7375 rm -f conftest.
$ac_objext
7376 if { (ac_try
="$ac_compile"
7378 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7379 *) ac_try_echo=$ac_try;;
7381 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7382 $as_echo "$ac_try_echo") >&5
7383 (eval "$ac_compile") 2>conftest.er1
7385 grep -v '^ *+' conftest.er1 >conftest.err
7387 cat conftest.err >&5
7388 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7389 (exit $ac_status); } && {
7390 test -z "$ac_c_werror_flag" ||
7391 test ! -s conftest.err
7392 } && test -s conftest.$ac_objext; then
7393 ac_cv_header_sys_wait_h=yes
7395 $as_echo "$as_me: failed program was:" >&5
7396 sed 's/^/| /' conftest.$ac_ext >&5
7398 ac_cv_header_sys_wait_h=no
7401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7403 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7404 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
7405 if test $ac_cv_header_sys_wait_h = yes; then
7407 cat >>confdefs.h <<\_ACEOF
7408 #define HAVE_SYS_WAIT_H 1
7414 { $as_echo "$as_me:$LINENO: checking for struct utimbuf" >&5
7415 $as_echo_n "checking for struct utimbuf... " >&6; }
7416 if test "${emacs_cv_struct_utimbuf+set}" = set; then
7417 $as_echo_n "(cached) " >&6
7419 cat >conftest.$ac_ext <<_ACEOF
7422 cat confdefs.h >>conftest.$ac_ext
7423 cat >>conftest.$ac_ext <<_ACEOF
7424 /* end confdefs.h. */
7425 #ifdef TIME_WITH_SYS_TIME
7426 #include <sys/time.h>
7429 #ifdef HAVE_SYS_TIME_H
7430 #include <sys/time.h>
7441 static struct utimbuf x; x.actime = x.modtime;
7446 rm -f conftest.$ac_objext
7447 if { (ac_try="$ac_compile"
7449 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7450 *) ac_try_echo
=$ac_try;;
7452 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7453 $as_echo "$ac_try_echo") >&5
7454 (eval "$ac_compile") 2>conftest.er1
7456 grep -v '^ *+' conftest.er1
>conftest.err
7458 cat conftest.err
>&5
7459 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7460 (exit $ac_status); } && {
7461 test -z "$ac_c_werror_flag" ||
7462 test ! -s conftest.err
7463 } && test -s conftest.
$ac_objext; then
7464 emacs_cv_struct_utimbuf
=yes
7466 $as_echo "$as_me: failed program was:" >&5
7467 sed 's/^/| /' conftest.
$ac_ext >&5
7469 emacs_cv_struct_utimbuf
=no
7472 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7474 { $as_echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
7475 $as_echo "$emacs_cv_struct_utimbuf" >&6; }
7476 if test $emacs_cv_struct_utimbuf = yes; then
7478 cat >>confdefs.h
<<\_ACEOF
7479 #define HAVE_STRUCT_UTIMBUF 1
7484 { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7485 $as_echo_n "checking return type of signal handlers... " >&6; }
7486 if test "${ac_cv_type_signal+set}" = set; then
7487 $as_echo_n "(cached) " >&6
7489 cat >conftest.
$ac_ext <<_ACEOF
7492 cat confdefs.h
>>conftest.
$ac_ext
7493 cat >>conftest.
$ac_ext <<_ACEOF
7494 /* end confdefs.h. */
7495 #include <sys/types.h>
7501 return *(signal (0, 0)) (0) == 1;
7506 rm -f conftest.
$ac_objext
7507 if { (ac_try
="$ac_compile"
7509 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7510 *) ac_try_echo=$ac_try;;
7512 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7513 $as_echo "$ac_try_echo") >&5
7514 (eval "$ac_compile") 2>conftest.er1
7516 grep -v '^ *+' conftest.er1 >conftest.err
7518 cat conftest.err >&5
7519 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7520 (exit $ac_status); } && {
7521 test -z "$ac_c_werror_flag" ||
7522 test ! -s conftest.err
7523 } && test -s conftest.$ac_objext; then
7524 ac_cv_type_signal=int
7526 $as_echo "$as_me: failed program was:" >&5
7527 sed 's/^/| /' conftest.$ac_ext >&5
7529 ac_cv_type_signal=void
7532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7534 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7535 $as_echo "$ac_cv_type_signal" >&6; }
7537 cat >>confdefs.h <<_ACEOF
7538 #define RETSIGTYPE $ac_cv_type_signal
7543 { $as_echo "$as_me:$LINENO: checking for speed_t" >&5
7544 $as_echo_n "checking for speed_t... " >&6; }
7545 if test "${emacs_cv_speed_t+set}" = set; then
7546 $as_echo_n "(cached) " >&6
7548 cat >conftest.$ac_ext <<_ACEOF
7551 cat confdefs.h >>conftest.$ac_ext
7552 cat >>conftest.$ac_ext <<_ACEOF
7553 /* end confdefs.h. */
7554 #include <termios.h>
7563 rm -f conftest.$ac_objext
7564 if { (ac_try="$ac_compile"
7566 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7567 *) ac_try_echo
=$ac_try;;
7569 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7570 $as_echo "$ac_try_echo") >&5
7571 (eval "$ac_compile") 2>conftest.er1
7573 grep -v '^ *+' conftest.er1
>conftest.err
7575 cat conftest.err
>&5
7576 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7577 (exit $ac_status); } && {
7578 test -z "$ac_c_werror_flag" ||
7579 test ! -s conftest.err
7580 } && test -s conftest.
$ac_objext; then
7581 emacs_cv_speed_t
=yes
7583 $as_echo "$as_me: failed program was:" >&5
7584 sed 's/^/| /' conftest.
$ac_ext >&5
7589 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7591 { $as_echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
7592 $as_echo "$emacs_cv_speed_t" >&6; }
7593 if test $emacs_cv_speed_t = yes; then
7595 cat >>confdefs.h
<<\_ACEOF
7596 #define HAVE_SPEED_T 1
7601 { $as_echo "$as_me:$LINENO: checking for struct timeval" >&5
7602 $as_echo_n "checking for struct timeval... " >&6; }
7603 if test "${emacs_cv_struct_timeval+set}" = set; then
7604 $as_echo_n "(cached) " >&6
7606 cat >conftest.
$ac_ext <<_ACEOF
7609 cat confdefs.h
>>conftest.
$ac_ext
7610 cat >>conftest.
$ac_ext <<_ACEOF
7611 /* end confdefs.h. */
7612 #ifdef TIME_WITH_SYS_TIME
7613 #include <sys/time.h>
7616 #ifdef HAVE_SYS_TIME_H
7617 #include <sys/time.h>
7625 static struct timeval x; x.tv_sec = x.tv_usec;
7630 rm -f conftest.
$ac_objext
7631 if { (ac_try
="$ac_compile"
7633 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7634 *) ac_try_echo=$ac_try;;
7636 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7637 $as_echo "$ac_try_echo") >&5
7638 (eval "$ac_compile") 2>conftest.er1
7640 grep -v '^ *+' conftest.er1 >conftest.err
7642 cat conftest.err >&5
7643 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7644 (exit $ac_status); } && {
7645 test -z "$ac_c_werror_flag" ||
7646 test ! -s conftest.err
7647 } && test -s conftest.$ac_objext; then
7648 emacs_cv_struct_timeval=yes
7650 $as_echo "$as_me: failed program was:" >&5
7651 sed 's/^/| /' conftest.$ac_ext >&5
7653 emacs_cv_struct_timeval=no
7656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7658 { $as_echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
7659 $as_echo "$emacs_cv_struct_timeval" >&6; }
7660 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7661 if test $emacs_cv_struct_timeval = yes; then
7663 cat >>confdefs.h <<\_ACEOF
7664 #define HAVE_TIMEVAL 1
7669 { $as_echo "$as_me:$LINENO: checking for struct exception" >&5
7670 $as_echo_n "checking for struct exception... " >&6; }
7671 if test "${emacs_cv_struct_exception+set}" = set; then
7672 $as_echo_n "(cached) " >&6
7674 cat >conftest.$ac_ext <<_ACEOF
7677 cat confdefs.h >>conftest.$ac_ext
7678 cat >>conftest.$ac_ext <<_ACEOF
7679 /* end confdefs.h. */
7684 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7689 rm -f conftest.$ac_objext
7690 if { (ac_try="$ac_compile"
7692 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7693 *) ac_try_echo
=$ac_try;;
7695 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7696 $as_echo "$ac_try_echo") >&5
7697 (eval "$ac_compile") 2>conftest.er1
7699 grep -v '^ *+' conftest.er1
>conftest.err
7701 cat conftest.err
>&5
7702 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7703 (exit $ac_status); } && {
7704 test -z "$ac_c_werror_flag" ||
7705 test ! -s conftest.err
7706 } && test -s conftest.
$ac_objext; then
7707 emacs_cv_struct_exception
=yes
7709 $as_echo "$as_me: failed program was:" >&5
7710 sed 's/^/| /' conftest.
$ac_ext >&5
7712 emacs_cv_struct_exception
=no
7715 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7717 { $as_echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
7718 $as_echo "$emacs_cv_struct_exception" >&6; }
7719 HAVE_EXCEPTION
=$emacs_cv_struct_exception
7720 if test $emacs_cv_struct_exception != yes; then
7722 cat >>confdefs.h
<<\_ACEOF
7723 #define NO_MATHERR 1
7729 for ac_header
in sys
/socket.h
7731 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7732 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7733 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7734 $as_echo_n "checking for $ac_header... " >&6; }
7735 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7736 $as_echo_n "(cached) " >&6
7738 ac_res
=`eval 'as_val=${'$as_ac_Header'}
7739 $as_echo "$as_val"'`
7740 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7741 $as_echo "$ac_res" >&6; }
7743 # Is the header compilable?
7744 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
7745 $as_echo_n "checking $ac_header usability... " >&6; }
7746 cat >conftest.
$ac_ext <<_ACEOF
7749 cat confdefs.h
>>conftest.
$ac_ext
7750 cat >>conftest.
$ac_ext <<_ACEOF
7751 /* end confdefs.h. */
7752 $ac_includes_default
7753 #include <$ac_header>
7755 rm -f conftest.
$ac_objext
7756 if { (ac_try
="$ac_compile"
7758 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7759 *) ac_try_echo=$ac_try;;
7761 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7762 $as_echo "$ac_try_echo") >&5
7763 (eval "$ac_compile") 2>conftest.er1
7765 grep -v '^ *+' conftest.er1 >conftest.err
7767 cat conftest.err >&5
7768 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7769 (exit $ac_status); } && {
7770 test -z "$ac_c_werror_flag" ||
7771 test ! -s conftest.err
7772 } && test -s conftest.$ac_objext; then
7773 ac_header_compiler=yes
7775 $as_echo "$as_me: failed program was:" >&5
7776 sed 's/^/| /' conftest.$ac_ext >&5
7778 ac_header_compiler=no
7781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7782 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7783 $as_echo "$ac_header_compiler" >&6; }
7785 # Is the header present?
7786 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
7787 $as_echo_n "checking $ac_header presence... " >&6; }
7788 cat >conftest.$ac_ext <<_ACEOF
7791 cat confdefs.h >>conftest.$ac_ext
7792 cat >>conftest.$ac_ext <<_ACEOF
7793 /* end confdefs.h. */
7794 #include <$ac_header>
7796 if { (ac_try="$ac_cpp conftest.$ac_ext"
7798 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7799 *) ac_try_echo
=$ac_try;;
7801 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7802 $as_echo "$ac_try_echo") >&5
7803 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7805 grep -v '^ *+' conftest.er1
>conftest.err
7807 cat conftest.err
>&5
7808 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7809 (exit $ac_status); } >/dev
/null
&& {
7810 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7811 test ! -s conftest.err
7813 ac_header_preproc
=yes
7815 $as_echo "$as_me: failed program was:" >&5
7816 sed 's/^/| /' conftest.
$ac_ext >&5
7818 ac_header_preproc
=no
7821 rm -f conftest.err conftest.
$ac_ext
7822 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7823 $as_echo "$ac_header_preproc" >&6; }
7825 # So? What about this header?
7826 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7828 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7829 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7830 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7831 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7832 ac_header_preproc
=yes
7835 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7836 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7837 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7838 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7839 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7840 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7841 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7842 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7843 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7844 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7845 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7846 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
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 eval "$as_ac_Header=\$ac_header_preproc"
7857 ac_res
=`eval 'as_val=${'$as_ac_Header'}
7858 $as_echo "$as_val"'`
7859 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7860 $as_echo "$ac_res" >&6; }
7863 if test `eval 'as_val=${'$as_ac_Header'}
7864 $as_echo "$as_val"'` = yes; then
7865 cat >>confdefs.h
<<_ACEOF
7866 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7874 for ac_header
in net
/if.h
7876 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7877 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7878 $as_echo_n "checking for $ac_header... " >&6; }
7879 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7880 $as_echo_n "(cached) " >&6
7882 cat >conftest.
$ac_ext <<_ACEOF
7885 cat confdefs.h
>>conftest.
$ac_ext
7886 cat >>conftest.
$ac_ext <<_ACEOF
7887 /* end confdefs.h. */
7888 $ac_includes_default
7889 #if HAVE_SYS_SOCKET_H
7890 #include <sys/socket.h>
7893 #include <$ac_header>
7895 rm -f conftest.
$ac_objext
7896 if { (ac_try
="$ac_compile"
7898 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7899 *) ac_try_echo=$ac_try;;
7901 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7902 $as_echo "$ac_try_echo") >&5
7903 (eval "$ac_compile") 2>conftest.er1
7905 grep -v '^ *+' conftest.er1 >conftest.err
7907 cat conftest.err >&5
7908 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7909 (exit $ac_status); } && {
7910 test -z "$ac_c_werror_flag" ||
7911 test ! -s conftest.err
7912 } && test -s conftest.$ac_objext; then
7913 eval "$as_ac_Header=yes"
7915 $as_echo "$as_me: failed program was:" >&5
7916 sed 's/^/| /' conftest.$ac_ext >&5
7918 eval "$as_ac_Header=no"
7921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7923 ac_res=`eval 'as_val=${'$as_ac_Header'}
7924 $as_echo "$as_val"'`
7925 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7926 $as_echo "$ac_res" >&6; }
7927 if test `eval 'as_val=${'$as_ac_Header'}
7928 $as_echo "$as_val"'` = yes; then
7929 cat >>confdefs.h <<_ACEOF
7930 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
7938 { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7939 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
7940 if test "${ac_cv_struct_tm+set}" = set; then
7941 $as_echo_n "(cached) " >&6
7943 cat >conftest.$ac_ext <<_ACEOF
7946 cat confdefs.h >>conftest.$ac_ext
7947 cat >>conftest.$ac_ext <<_ACEOF
7948 /* end confdefs.h. */
7949 #include <sys/types.h>
7956 int *p = &tm.tm_sec;
7962 rm -f conftest.$ac_objext
7963 if { (ac_try="$ac_compile"
7965 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7966 *) ac_try_echo
=$ac_try;;
7968 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7969 $as_echo "$ac_try_echo") >&5
7970 (eval "$ac_compile") 2>conftest.er1
7972 grep -v '^ *+' conftest.er1
>conftest.err
7974 cat conftest.err
>&5
7975 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7976 (exit $ac_status); } && {
7977 test -z "$ac_c_werror_flag" ||
7978 test ! -s conftest.err
7979 } && test -s conftest.
$ac_objext; then
7980 ac_cv_struct_tm
=time.h
7982 $as_echo "$as_me: failed program was:" >&5
7983 sed 's/^/| /' conftest.
$ac_ext >&5
7985 ac_cv_struct_tm
=sys
/time.h
7988 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7990 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7991 $as_echo "$ac_cv_struct_tm" >&6; }
7992 if test $ac_cv_struct_tm = sys
/time.h
; then
7994 cat >>confdefs.h
<<\_ACEOF
7995 #define TM_IN_SYS_TIME 1
8000 { $as_echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
8001 $as_echo_n "checking for struct tm.tm_zone... " >&6; }
8002 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
8003 $as_echo_n "(cached) " >&6
8005 cat >conftest.
$ac_ext <<_ACEOF
8008 cat confdefs.h
>>conftest.
$ac_ext
8009 cat >>conftest.
$ac_ext <<_ACEOF
8010 /* end confdefs.h. */
8011 #include <sys/types.h>
8012 #include <$ac_cv_struct_tm>
8018 static struct tm ac_aggr;
8019 if (ac_aggr.tm_zone)
8025 rm -f conftest.
$ac_objext
8026 if { (ac_try
="$ac_compile"
8028 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8029 *) ac_try_echo=$ac_try;;
8031 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8032 $as_echo "$ac_try_echo") >&5
8033 (eval "$ac_compile") 2>conftest.er1
8035 grep -v '^ *+' conftest.er1 >conftest.err
8037 cat conftest.err >&5
8038 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8039 (exit $ac_status); } && {
8040 test -z "$ac_c_werror_flag" ||
8041 test ! -s conftest.err
8042 } && test -s conftest.$ac_objext; then
8043 ac_cv_member_struct_tm_tm_zone=yes
8045 $as_echo "$as_me: failed program was:" >&5
8046 sed 's/^/| /' conftest.$ac_ext >&5
8048 cat >conftest.$ac_ext <<_ACEOF
8051 cat confdefs.h >>conftest.$ac_ext
8052 cat >>conftest.$ac_ext <<_ACEOF
8053 /* end confdefs.h. */
8054 #include <sys/types.h>
8055 #include <$ac_cv_struct_tm>
8061 static struct tm ac_aggr;
8062 if (sizeof ac_aggr.tm_zone)
8068 rm -f conftest.$ac_objext
8069 if { (ac_try="$ac_compile"
8071 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8072 *) ac_try_echo
=$ac_try;;
8074 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8075 $as_echo "$ac_try_echo") >&5
8076 (eval "$ac_compile") 2>conftest.er1
8078 grep -v '^ *+' conftest.er1
>conftest.err
8080 cat conftest.err
>&5
8081 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8082 (exit $ac_status); } && {
8083 test -z "$ac_c_werror_flag" ||
8084 test ! -s conftest.err
8085 } && test -s conftest.
$ac_objext; then
8086 ac_cv_member_struct_tm_tm_zone
=yes
8088 $as_echo "$as_me: failed program was:" >&5
8089 sed 's/^/| /' conftest.
$ac_ext >&5
8091 ac_cv_member_struct_tm_tm_zone
=no
8094 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8097 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8099 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
8100 $as_echo "$ac_cv_member_struct_tm_tm_zone" >&6; }
8101 if test $ac_cv_member_struct_tm_tm_zone = yes; then
8103 cat >>confdefs.h
<<_ACEOF
8104 #define HAVE_STRUCT_TM_TM_ZONE 1
8110 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
8112 cat >>confdefs.h
<<\_ACEOF
8113 #define HAVE_TM_ZONE 1
8117 { $as_echo "$as_me:$LINENO: checking whether tzname is declared" >&5
8118 $as_echo_n "checking whether tzname is declared... " >&6; }
8119 if test "${ac_cv_have_decl_tzname+set}" = set; then
8120 $as_echo_n "(cached) " >&6
8122 cat >conftest.
$ac_ext <<_ACEOF
8125 cat confdefs.h
>>conftest.
$ac_ext
8126 cat >>conftest.
$ac_ext <<_ACEOF
8127 /* end confdefs.h. */
8141 rm -f conftest.
$ac_objext
8142 if { (ac_try
="$ac_compile"
8144 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8145 *) ac_try_echo=$ac_try;;
8147 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8148 $as_echo "$ac_try_echo") >&5
8149 (eval "$ac_compile") 2>conftest.er1
8151 grep -v '^ *+' conftest.er1 >conftest.err
8153 cat conftest.err >&5
8154 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8155 (exit $ac_status); } && {
8156 test -z "$ac_c_werror_flag" ||
8157 test ! -s conftest.err
8158 } && test -s conftest.$ac_objext; then
8159 ac_cv_have_decl_tzname=yes
8161 $as_echo "$as_me: failed program was:" >&5
8162 sed 's/^/| /' conftest.$ac_ext >&5
8164 ac_cv_have_decl_tzname=no
8167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8169 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
8170 $as_echo "$ac_cv_have_decl_tzname" >&6; }
8171 if test $ac_cv_have_decl_tzname = yes; then
8173 cat >>confdefs.h <<_ACEOF
8174 #define HAVE_DECL_TZNAME 1
8179 cat >>confdefs.h <<_ACEOF
8180 #define HAVE_DECL_TZNAME 0
8187 { $as_echo "$as_me:$LINENO: checking for tzname" >&5
8188 $as_echo_n "checking for tzname... " >&6; }
8189 if test "${ac_cv_var_tzname+set}" = set; then
8190 $as_echo_n "(cached) " >&6
8192 cat >conftest.$ac_ext <<_ACEOF
8195 cat confdefs.h >>conftest.$ac_ext
8196 cat >>conftest.$ac_ext <<_ACEOF
8197 /* end confdefs.h. */
8199 #if !HAVE_DECL_TZNAME
8200 extern char *tzname[];
8206 return tzname[0][0];
8211 rm -f conftest.$ac_objext conftest$ac_exeext
8212 if { (ac_try="$ac_link"
8214 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8215 *) ac_try_echo
=$ac_try;;
8217 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8218 $as_echo "$ac_try_echo") >&5
8219 (eval "$ac_link") 2>conftest.er1
8221 grep -v '^ *+' conftest.er1
>conftest.err
8223 cat conftest.err
>&5
8224 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8225 (exit $ac_status); } && {
8226 test -z "$ac_c_werror_flag" ||
8227 test ! -s conftest.err
8228 } && test -s conftest
$ac_exeext && {
8229 test "$cross_compiling" = yes ||
8230 $as_test_x conftest
$ac_exeext
8232 ac_cv_var_tzname
=yes
8234 $as_echo "$as_me: failed program was:" >&5
8235 sed 's/^/| /' conftest.
$ac_ext >&5
8240 rm -rf conftest.dSYM
8241 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
8242 conftest
$ac_exeext conftest.
$ac_ext
8244 { $as_echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
8245 $as_echo "$ac_cv_var_tzname" >&6; }
8246 if test $ac_cv_var_tzname = yes; then
8248 cat >>confdefs.h
<<\_ACEOF
8249 #define HAVE_TZNAME 1
8255 { $as_echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
8256 $as_echo_n "checking for struct tm.tm_gmtoff... " >&6; }
8257 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
8258 $as_echo_n "(cached) " >&6
8260 cat >conftest.
$ac_ext <<_ACEOF
8263 cat confdefs.h
>>conftest.
$ac_ext
8264 cat >>conftest.
$ac_ext <<_ACEOF
8265 /* end confdefs.h. */
8271 static struct tm ac_aggr;
8272 if (ac_aggr.tm_gmtoff)
8278 rm -f conftest.
$ac_objext
8279 if { (ac_try
="$ac_compile"
8281 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8282 *) ac_try_echo=$ac_try;;
8284 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8285 $as_echo "$ac_try_echo") >&5
8286 (eval "$ac_compile") 2>conftest.er1
8288 grep -v '^ *+' conftest.er1 >conftest.err
8290 cat conftest.err >&5
8291 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8292 (exit $ac_status); } && {
8293 test -z "$ac_c_werror_flag" ||
8294 test ! -s conftest.err
8295 } && test -s conftest.$ac_objext; then
8296 ac_cv_member_struct_tm_tm_gmtoff=yes
8298 $as_echo "$as_me: failed program was:" >&5
8299 sed 's/^/| /' conftest.$ac_ext >&5
8301 cat >conftest.$ac_ext <<_ACEOF
8304 cat confdefs.h >>conftest.$ac_ext
8305 cat >>conftest.$ac_ext <<_ACEOF
8306 /* end confdefs.h. */
8312 static struct tm ac_aggr;
8313 if (sizeof ac_aggr.tm_gmtoff)
8319 rm -f conftest.$ac_objext
8320 if { (ac_try="$ac_compile"
8322 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8323 *) ac_try_echo
=$ac_try;;
8325 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8326 $as_echo "$ac_try_echo") >&5
8327 (eval "$ac_compile") 2>conftest.er1
8329 grep -v '^ *+' conftest.er1
>conftest.err
8331 cat conftest.err
>&5
8332 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8333 (exit $ac_status); } && {
8334 test -z "$ac_c_werror_flag" ||
8335 test ! -s conftest.err
8336 } && test -s conftest.
$ac_objext; then
8337 ac_cv_member_struct_tm_tm_gmtoff
=yes
8339 $as_echo "$as_me: failed program was:" >&5
8340 sed 's/^/| /' conftest.
$ac_ext >&5
8342 ac_cv_member_struct_tm_tm_gmtoff
=no
8345 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8348 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8350 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
8351 $as_echo "$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
8352 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
8354 cat >>confdefs.h
<<\_ACEOF
8355 #define HAVE_TM_GMTOFF 1
8360 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
8361 $as_echo_n "checking for struct ifreq.ifr_flags... " >&6; }
8362 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
8363 $as_echo_n "(cached) " >&6
8365 cat >conftest.
$ac_ext <<_ACEOF
8368 cat confdefs.h
>>conftest.
$ac_ext
8369 cat >>conftest.
$ac_ext <<_ACEOF
8370 /* end confdefs.h. */
8371 $ac_includes_default
8372 #if HAVE_SYS_SOCKET_H
8373 #include <sys/socket.h>
8382 static struct ifreq ac_aggr;
8383 if (ac_aggr.ifr_flags)
8389 rm -f conftest.
$ac_objext
8390 if { (ac_try
="$ac_compile"
8392 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8393 *) ac_try_echo=$ac_try;;
8395 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8396 $as_echo "$ac_try_echo") >&5
8397 (eval "$ac_compile") 2>conftest.er1
8399 grep -v '^ *+' conftest.er1 >conftest.err
8401 cat conftest.err >&5
8402 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8403 (exit $ac_status); } && {
8404 test -z "$ac_c_werror_flag" ||
8405 test ! -s conftest.err
8406 } && test -s conftest.$ac_objext; then
8407 ac_cv_member_struct_ifreq_ifr_flags=yes
8409 $as_echo "$as_me: failed program was:" >&5
8410 sed 's/^/| /' conftest.$ac_ext >&5
8412 cat >conftest.$ac_ext <<_ACEOF
8415 cat confdefs.h >>conftest.$ac_ext
8416 cat >>conftest.$ac_ext <<_ACEOF
8417 /* end confdefs.h. */
8418 $ac_includes_default
8419 #if HAVE_SYS_SOCKET_H
8420 #include <sys/socket.h>
8429 static struct ifreq ac_aggr;
8430 if (sizeof ac_aggr.ifr_flags)
8436 rm -f conftest.$ac_objext
8437 if { (ac_try="$ac_compile"
8439 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8440 *) ac_try_echo
=$ac_try;;
8442 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8443 $as_echo "$ac_try_echo") >&5
8444 (eval "$ac_compile") 2>conftest.er1
8446 grep -v '^ *+' conftest.er1
>conftest.err
8448 cat conftest.err
>&5
8449 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8450 (exit $ac_status); } && {
8451 test -z "$ac_c_werror_flag" ||
8452 test ! -s conftest.err
8453 } && test -s conftest.
$ac_objext; then
8454 ac_cv_member_struct_ifreq_ifr_flags
=yes
8456 $as_echo "$as_me: failed program was:" >&5
8457 sed 's/^/| /' conftest.
$ac_ext >&5
8459 ac_cv_member_struct_ifreq_ifr_flags
=no
8462 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8465 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8467 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
8468 $as_echo "$ac_cv_member_struct_ifreq_ifr_flags" >&6; }
8469 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
8471 cat >>confdefs.h
<<_ACEOF
8472 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8477 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
8478 $as_echo_n "checking for struct ifreq.ifr_hwaddr... " >&6; }
8479 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
8480 $as_echo_n "(cached) " >&6
8482 cat >conftest.
$ac_ext <<_ACEOF
8485 cat confdefs.h
>>conftest.
$ac_ext
8486 cat >>conftest.
$ac_ext <<_ACEOF
8487 /* end confdefs.h. */
8488 $ac_includes_default
8489 #if HAVE_SYS_SOCKET_H
8490 #include <sys/socket.h>
8499 static struct ifreq ac_aggr;
8500 if (ac_aggr.ifr_hwaddr)
8506 rm -f conftest.
$ac_objext
8507 if { (ac_try
="$ac_compile"
8509 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8510 *) ac_try_echo=$ac_try;;
8512 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8513 $as_echo "$ac_try_echo") >&5
8514 (eval "$ac_compile") 2>conftest.er1
8516 grep -v '^ *+' conftest.er1 >conftest.err
8518 cat conftest.err >&5
8519 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8520 (exit $ac_status); } && {
8521 test -z "$ac_c_werror_flag" ||
8522 test ! -s conftest.err
8523 } && test -s conftest.$ac_objext; then
8524 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8526 $as_echo "$as_me: failed program was:" >&5
8527 sed 's/^/| /' conftest.$ac_ext >&5
8529 cat >conftest.$ac_ext <<_ACEOF
8532 cat confdefs.h >>conftest.$ac_ext
8533 cat >>conftest.$ac_ext <<_ACEOF
8534 /* end confdefs.h. */
8535 $ac_includes_default
8536 #if HAVE_SYS_SOCKET_H
8537 #include <sys/socket.h>
8546 static struct ifreq ac_aggr;
8547 if (sizeof ac_aggr.ifr_hwaddr)
8553 rm -f conftest.$ac_objext
8554 if { (ac_try="$ac_compile"
8556 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8557 *) ac_try_echo
=$ac_try;;
8559 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8560 $as_echo "$ac_try_echo") >&5
8561 (eval "$ac_compile") 2>conftest.er1
8563 grep -v '^ *+' conftest.er1
>conftest.err
8565 cat conftest.err
>&5
8566 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8567 (exit $ac_status); } && {
8568 test -z "$ac_c_werror_flag" ||
8569 test ! -s conftest.err
8570 } && test -s conftest.
$ac_objext; then
8571 ac_cv_member_struct_ifreq_ifr_hwaddr
=yes
8573 $as_echo "$as_me: failed program was:" >&5
8574 sed 's/^/| /' conftest.
$ac_ext >&5
8576 ac_cv_member_struct_ifreq_ifr_hwaddr
=no
8579 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8582 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8584 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
8585 $as_echo "$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; }
8586 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
8588 cat >>confdefs.h
<<_ACEOF
8589 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8594 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
8595 $as_echo_n "checking for struct ifreq.ifr_netmask... " >&6; }
8596 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
8597 $as_echo_n "(cached) " >&6
8599 cat >conftest.
$ac_ext <<_ACEOF
8602 cat confdefs.h
>>conftest.
$ac_ext
8603 cat >>conftest.
$ac_ext <<_ACEOF
8604 /* end confdefs.h. */
8605 $ac_includes_default
8606 #if HAVE_SYS_SOCKET_H
8607 #include <sys/socket.h>
8616 static struct ifreq ac_aggr;
8617 if (ac_aggr.ifr_netmask)
8623 rm -f conftest.
$ac_objext
8624 if { (ac_try
="$ac_compile"
8626 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8627 *) ac_try_echo=$ac_try;;
8629 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8630 $as_echo "$ac_try_echo") >&5
8631 (eval "$ac_compile") 2>conftest.er1
8633 grep -v '^ *+' conftest.er1 >conftest.err
8635 cat conftest.err >&5
8636 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8637 (exit $ac_status); } && {
8638 test -z "$ac_c_werror_flag" ||
8639 test ! -s conftest.err
8640 } && test -s conftest.$ac_objext; then
8641 ac_cv_member_struct_ifreq_ifr_netmask=yes
8643 $as_echo "$as_me: failed program was:" >&5
8644 sed 's/^/| /' conftest.$ac_ext >&5
8646 cat >conftest.$ac_ext <<_ACEOF
8649 cat confdefs.h >>conftest.$ac_ext
8650 cat >>conftest.$ac_ext <<_ACEOF
8651 /* end confdefs.h. */
8652 $ac_includes_default
8653 #if HAVE_SYS_SOCKET_H
8654 #include <sys/socket.h>
8663 static struct ifreq ac_aggr;
8664 if (sizeof ac_aggr.ifr_netmask)
8670 rm -f conftest.$ac_objext
8671 if { (ac_try="$ac_compile"
8673 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8674 *) ac_try_echo
=$ac_try;;
8676 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8677 $as_echo "$ac_try_echo") >&5
8678 (eval "$ac_compile") 2>conftest.er1
8680 grep -v '^ *+' conftest.er1
>conftest.err
8682 cat conftest.err
>&5
8683 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8684 (exit $ac_status); } && {
8685 test -z "$ac_c_werror_flag" ||
8686 test ! -s conftest.err
8687 } && test -s conftest.
$ac_objext; then
8688 ac_cv_member_struct_ifreq_ifr_netmask
=yes
8690 $as_echo "$as_me: failed program was:" >&5
8691 sed 's/^/| /' conftest.
$ac_ext >&5
8693 ac_cv_member_struct_ifreq_ifr_netmask
=no
8696 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8699 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8701 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
8702 $as_echo "$ac_cv_member_struct_ifreq_ifr_netmask" >&6; }
8703 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
8705 cat >>confdefs.h
<<_ACEOF
8706 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8711 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
8712 $as_echo_n "checking for struct ifreq.ifr_broadaddr... " >&6; }
8713 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
8714 $as_echo_n "(cached) " >&6
8716 cat >conftest.
$ac_ext <<_ACEOF
8719 cat confdefs.h
>>conftest.
$ac_ext
8720 cat >>conftest.
$ac_ext <<_ACEOF
8721 /* end confdefs.h. */
8722 $ac_includes_default
8723 #if HAVE_SYS_SOCKET_H
8724 #include <sys/socket.h>
8733 static struct ifreq ac_aggr;
8734 if (ac_aggr.ifr_broadaddr)
8740 rm -f conftest.
$ac_objext
8741 if { (ac_try
="$ac_compile"
8743 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8744 *) ac_try_echo=$ac_try;;
8746 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8747 $as_echo "$ac_try_echo") >&5
8748 (eval "$ac_compile") 2>conftest.er1
8750 grep -v '^ *+' conftest.er1 >conftest.err
8752 cat conftest.err >&5
8753 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8754 (exit $ac_status); } && {
8755 test -z "$ac_c_werror_flag" ||
8756 test ! -s conftest.err
8757 } && test -s conftest.$ac_objext; then
8758 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8760 $as_echo "$as_me: failed program was:" >&5
8761 sed 's/^/| /' conftest.$ac_ext >&5
8763 cat >conftest.$ac_ext <<_ACEOF
8766 cat confdefs.h >>conftest.$ac_ext
8767 cat >>conftest.$ac_ext <<_ACEOF
8768 /* end confdefs.h. */
8769 $ac_includes_default
8770 #if HAVE_SYS_SOCKET_H
8771 #include <sys/socket.h>
8780 static struct ifreq ac_aggr;
8781 if (sizeof ac_aggr.ifr_broadaddr)
8787 rm -f conftest.$ac_objext
8788 if { (ac_try="$ac_compile"
8790 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8791 *) ac_try_echo
=$ac_try;;
8793 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8794 $as_echo "$ac_try_echo") >&5
8795 (eval "$ac_compile") 2>conftest.er1
8797 grep -v '^ *+' conftest.er1
>conftest.err
8799 cat conftest.err
>&5
8800 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8801 (exit $ac_status); } && {
8802 test -z "$ac_c_werror_flag" ||
8803 test ! -s conftest.err
8804 } && test -s conftest.
$ac_objext; then
8805 ac_cv_member_struct_ifreq_ifr_broadaddr
=yes
8807 $as_echo "$as_me: failed program was:" >&5
8808 sed 's/^/| /' conftest.
$ac_ext >&5
8810 ac_cv_member_struct_ifreq_ifr_broadaddr
=no
8813 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8816 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8818 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
8819 $as_echo "$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; }
8820 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
8822 cat >>confdefs.h
<<_ACEOF
8823 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8828 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
8829 $as_echo_n "checking for struct ifreq.ifr_addr... " >&6; }
8830 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
8831 $as_echo_n "(cached) " >&6
8833 cat >conftest.
$ac_ext <<_ACEOF
8836 cat confdefs.h
>>conftest.
$ac_ext
8837 cat >>conftest.
$ac_ext <<_ACEOF
8838 /* end confdefs.h. */
8839 $ac_includes_default
8840 #if HAVE_SYS_SOCKET_H
8841 #include <sys/socket.h>
8850 static struct ifreq ac_aggr;
8851 if (ac_aggr.ifr_addr)
8857 rm -f conftest.
$ac_objext
8858 if { (ac_try
="$ac_compile"
8860 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8861 *) ac_try_echo=$ac_try;;
8863 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8864 $as_echo "$ac_try_echo") >&5
8865 (eval "$ac_compile") 2>conftest.er1
8867 grep -v '^ *+' conftest.er1 >conftest.err
8869 cat conftest.err >&5
8870 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8871 (exit $ac_status); } && {
8872 test -z "$ac_c_werror_flag" ||
8873 test ! -s conftest.err
8874 } && test -s conftest.$ac_objext; then
8875 ac_cv_member_struct_ifreq_ifr_addr=yes
8877 $as_echo "$as_me: failed program was:" >&5
8878 sed 's/^/| /' conftest.$ac_ext >&5
8880 cat >conftest.$ac_ext <<_ACEOF
8883 cat confdefs.h >>conftest.$ac_ext
8884 cat >>conftest.$ac_ext <<_ACEOF
8885 /* end confdefs.h. */
8886 $ac_includes_default
8887 #if HAVE_SYS_SOCKET_H
8888 #include <sys/socket.h>
8897 static struct ifreq ac_aggr;
8898 if (sizeof ac_aggr.ifr_addr)
8904 rm -f conftest.$ac_objext
8905 if { (ac_try="$ac_compile"
8907 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8908 *) ac_try_echo
=$ac_try;;
8910 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8911 $as_echo "$ac_try_echo") >&5
8912 (eval "$ac_compile") 2>conftest.er1
8914 grep -v '^ *+' conftest.er1
>conftest.err
8916 cat conftest.err
>&5
8917 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8918 (exit $ac_status); } && {
8919 test -z "$ac_c_werror_flag" ||
8920 test ! -s conftest.err
8921 } && test -s conftest.
$ac_objext; then
8922 ac_cv_member_struct_ifreq_ifr_addr
=yes
8924 $as_echo "$as_me: failed program was:" >&5
8925 sed 's/^/| /' conftest.
$ac_ext >&5
8927 ac_cv_member_struct_ifreq_ifr_addr
=no
8930 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8933 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8935 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
8936 $as_echo "$ac_cv_member_struct_ifreq_ifr_addr" >&6; }
8937 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
8939 cat >>confdefs.h
<<_ACEOF
8940 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8948 { $as_echo "$as_me:$LINENO: checking for function prototypes" >&5
8949 $as_echo_n "checking for function prototypes... " >&6; }
8950 if test "$ac_cv_prog_cc_c89" != no
; then
8951 { $as_echo "$as_me:$LINENO: result: yes" >&5
8952 $as_echo "yes" >&6; }
8954 cat >>confdefs.h
<<\_ACEOF
8955 #define PROTOTYPES 1
8959 cat >>confdefs.h
<<\_ACEOF
8960 #define __PROTOTYPES 1
8964 { $as_echo "$as_me:$LINENO: result: no" >&5
8965 $as_echo "no" >&6; }
8968 { $as_echo "$as_me:$LINENO: checking for working volatile" >&5
8969 $as_echo_n "checking for working volatile... " >&6; }
8970 if test "${ac_cv_c_volatile+set}" = set; then
8971 $as_echo_n "(cached) " >&6
8973 cat >conftest.
$ac_ext <<_ACEOF
8976 cat confdefs.h
>>conftest.
$ac_ext
8977 cat >>conftest.
$ac_ext <<_ACEOF
8978 /* end confdefs.h. */
8985 int * volatile y = (int *) 0;
8991 rm -f conftest.
$ac_objext
8992 if { (ac_try
="$ac_compile"
8994 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8995 *) ac_try_echo=$ac_try;;
8997 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8998 $as_echo "$ac_try_echo") >&5
8999 (eval "$ac_compile") 2>conftest.er1
9001 grep -v '^ *+' conftest.er1 >conftest.err
9003 cat conftest.err >&5
9004 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9005 (exit $ac_status); } && {
9006 test -z "$ac_c_werror_flag" ||
9007 test ! -s conftest.err
9008 } && test -s conftest.$ac_objext; then
9009 ac_cv_c_volatile=yes
9011 $as_echo "$as_me: failed program was:" >&5
9012 sed 's/^/| /' conftest.$ac_ext >&5
9017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9019 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
9020 $as_echo "$ac_cv_c_volatile" >&6; }
9021 if test $ac_cv_c_volatile = no; then
9023 cat >>confdefs.h <<\_ACEOF
9024 #define volatile /**/
9029 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9030 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
9031 if test "${ac_cv_c_const+set}" = set; then
9032 $as_echo_n "(cached) " >&6
9034 cat >conftest.$ac_ext <<_ACEOF
9037 cat confdefs.h >>conftest.$ac_ext
9038 cat >>conftest.$ac_ext <<_ACEOF
9039 /* end confdefs.h. */
9044 /* FIXME: Include the comments suggested by Paul. */
9046 /* Ultrix mips cc rejects this. */
9047 typedef int charset[2];
9049 /* SunOS 4.1.1 cc rejects this. */
9050 char const *const *pcpcc;
9052 /* NEC SVR4.0.2 mips cc rejects this. */
9053 struct point {int x, y;};
9054 static struct point const zero = {0,0};
9055 /* AIX XL C 1.02.0.0 rejects this.
9056 It does not let you subtract one const X* pointer from another in
9057 an arm of an if-expression whose if-part is not a constant
9059 const char *g = "string";
9060 pcpcc = &g + (g ? g-g : 0);
9061 /* HPUX 7.0 cc rejects these. */
9063 ppc = (char**) pcpcc;
9064 pcpcc = (char const *const *) ppc;
9065 { /* SCO 3.2v4 cc rejects this. */
9067 char const *s = 0 ? (char *) 0 : (char const *) 0;
9072 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9074 const int *foo = &x[0];
9077 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9078 typedef const int *iptr;
9082 { /* AIX XL C 1.02.0.0 rejects this saying
9083 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9084 struct s { int j; const int *ap[3]; };
9085 struct s *b; b->j = 5;
9087 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9091 return !cs[0] && !zero.x;
9098 rm -f conftest.$ac_objext
9099 if { (ac_try="$ac_compile"
9101 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9102 *) ac_try_echo
=$ac_try;;
9104 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
9105 $as_echo "$ac_try_echo") >&5
9106 (eval "$ac_compile") 2>conftest.er1
9108 grep -v '^ *+' conftest.er1
>conftest.err
9110 cat conftest.err
>&5
9111 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9112 (exit $ac_status); } && {
9113 test -z "$ac_c_werror_flag" ||
9114 test ! -s conftest.err
9115 } && test -s conftest.
$ac_objext; then
9118 $as_echo "$as_me: failed program was:" >&5
9119 sed 's/^/| /' conftest.
$ac_ext >&5
9124 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9126 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9127 $as_echo "$ac_cv_c_const" >&6; }
9128 if test $ac_cv_c_const = no
; then
9130 cat >>confdefs.h
<<\_ACEOF
9136 { $as_echo "$as_me:$LINENO: checking for void * support" >&5
9137 $as_echo_n "checking for void * support... " >&6; }
9138 if test "${emacs_cv_void_star+set}" = set; then
9139 $as_echo_n "(cached) " >&6
9141 cat >conftest.
$ac_ext <<_ACEOF
9144 cat confdefs.h
>>conftest.
$ac_ext
9145 cat >>conftest.
$ac_ext <<_ACEOF
9146 /* end confdefs.h. */
9156 rm -f conftest.
$ac_objext
9157 if { (ac_try
="$ac_compile"
9159 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9160 *) ac_try_echo=$ac_try;;
9162 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9163 $as_echo "$ac_try_echo") >&5
9164 (eval "$ac_compile") 2>conftest.er1
9166 grep -v '^ *+' conftest.er1 >conftest.err
9168 cat conftest.err >&5
9169 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9170 (exit $ac_status); } && {
9171 test -z "$ac_c_werror_flag" ||
9172 test ! -s conftest.err
9173 } && test -s conftest.$ac_objext; then
9174 emacs_cv_void_star=yes
9176 $as_echo "$as_me: failed program was:" >&5
9177 sed 's/^/| /' conftest.$ac_ext >&5
9179 emacs_cv_void_star=no
9182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9184 { $as_echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
9185 $as_echo "$emacs_cv_void_star" >&6; }
9186 if test $emacs_cv_void_star = yes; then
9187 cat >>confdefs.h <<\_ACEOF
9188 #define POINTER_TYPE void
9192 cat >>confdefs.h <<\_ACEOF
9193 #define POINTER_TYPE char
9202 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9203 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
9205 ac_make=`$as_echo "$2" |
sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
9206 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
9207 $as_echo_n "(cached) " >&6
9209 cat >conftest.make <<\_ACEOF
9212 @echo '@@@%%%=$(MAKE)=@@@%%%'
9214 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9215 case `${MAKE-make} -f conftest.
make 2>/dev
/null
` in
9217 eval ac_cv_prog_make_${ac_make}_set=yes;;
9219 eval ac_cv_prog_make_${ac_make}_set=no;;
9223 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
9224 { $as_echo "$as_me:$LINENO: result: yes" >&5
9225 $as_echo "yes" >&6; }
9228 { $as_echo "$as_me:$LINENO: result: no" >&5
9229 $as_echo "no" >&6; }
9230 SET_MAKE="MAKE=${MAKE-make}"
9234 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
9235 { $as_echo "$as_me:$LINENO: checking whether we are using GNU Make" >&5
9236 $as_echo_n "checking whether we are using GNU Make... " >&6; }
9238 testval=`make --version 2>/dev
/null |
grep 'GNU Make'`
9239 if test "x$testval" != x; then
9242 ac_enable_autodepend=no
9244 { $as_echo "$as_me:$LINENO: result: $HAVE_GNU_MAKE" >&5
9245 $as_echo "$HAVE_GNU_MAKE" >&6; }
9246 if test $HAVE_GNU_MAKE = yes; then
9247 { $as_echo "$as_me:$LINENO: checking whether gcc understands -MMD -MF" >&5
9248 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
9249 SAVE_CFLAGS="$CFLAGS"
9250 CFLAGS="$CFLAGS -MMD -MF deps.d"
9251 cat >conftest.$ac_ext <<_ACEOF
9254 cat confdefs.h >>conftest.$ac_ext
9255 cat >>conftest.$ac_ext <<_ACEOF
9256 /* end confdefs.h. */
9266 rm -f conftest.$ac_objext
9267 if { (ac_try="$ac_compile"
9269 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9270 *) ac_try_echo
=$ac_try;;
9272 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
9273 $as_echo "$ac_try_echo") >&5
9274 (eval "$ac_compile") 2>conftest.er1
9276 grep -v '^ *+' conftest.er1
>conftest.err
9278 cat conftest.err
>&5
9279 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9280 (exit $ac_status); } && {
9281 test -z "$ac_c_werror_flag" ||
9282 test ! -s conftest.err
9283 } && test -s conftest.
$ac_objext; then
9286 $as_echo "$as_me: failed program was:" >&5
9287 sed 's/^/| /' conftest.
$ac_ext >&5
9289 ac_enable_autodepend
=no
9292 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9293 CFLAGS
="$SAVE_CFLAGS"
9294 test -f deps.d || ac_enable_autodepend
=no
9296 { $as_echo "$as_me:$LINENO: result: $ac_enable_autodepend" >&5
9297 $as_echo "$ac_enable_autodepend" >&6; }
9299 if test $ac_enable_autodepend = yes; then
9301 cat >>confdefs.h
<<\_ACEOF
9302 #define AUTO_DEPEND 1
9308 { $as_echo "$as_me:$LINENO: checking for long file names" >&5
9309 $as_echo_n "checking for long file names... " >&6; }
9310 if test "${ac_cv_sys_long_file_names+set}" = set; then
9311 $as_echo_n "(cached) " >&6
9313 ac_cv_sys_long_file_names
=yes
9314 # Test for long file names in all the places we know might matter:
9315 # . the current directory, where building will happen
9316 # $prefix/lib where we will be installing things
9317 # $exec_prefix/lib likewise
9318 # $TMPDIR if set, where it might want to write temporary files
9319 # /tmp where it might want to write temporary files
9322 for ac_dir
in .
"$TMPDIR" /tmp
/var
/tmp
/usr
/tmp
"$prefix/lib" "$exec_prefix/lib"; do
9323 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
9324 # in the usual case where exec_prefix is '${prefix}'.
9326 . |
/* | ?
:[\\/]*) ;; #(
9329 test -w "$ac_dir/." ||
continue # It is less confusing to not echo anything here.
9330 ac_xdir
=$ac_dir/cf$$
9331 (umask 077 && mkdir
"$ac_xdir" 2>/dev
/null
) ||
continue
9332 ac_tf1
=$ac_xdir/conftest9012345
9333 ac_tf2
=$ac_xdir/conftest9012346
9334 touch "$ac_tf1" 2>/dev
/null
&& test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9335 ac_cv_sys_long_file_names
=no
9336 rm -f -r "$ac_xdir" 2>/dev
/null
9337 test $ac_cv_sys_long_file_names = no
&& break
9340 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
9341 $as_echo "$ac_cv_sys_long_file_names" >&6; }
9342 if test $ac_cv_sys_long_file_names = yes; then
9344 cat >>confdefs.h
<<\_ACEOF
9345 #define HAVE_LONG_FILE_NAMES 1
9351 #### Choose a window system.
9353 { $as_echo "$as_me:$LINENO: checking for X" >&5
9354 $as_echo_n "checking for X... " >&6; }
9357 # Check whether --with-x was given.
9358 if test "${with_x+set}" = set; then
9362 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9363 if test "x$with_x" = xno
; then
9364 # The user explicitly disabled X.
9367 case $x_includes,$x_libraries in #(
9368 *\'*) { { $as_echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
9369 $as_echo "$as_me: error: Cannot use X directory names containing '" >&2;}
9370 { (exit 1); exit 1; }; };; #(
9371 *,NONE | NONE
,*) if test "${ac_cv_have_x+set}" = set; then
9372 $as_echo_n "(cached) " >&6
9374 # One or both of the vars are not set, and there is no cached value.
9375 ac_x_includes
=no ac_x_libraries
=no
9376 rm -f -r conftest.dir
9377 if mkdir conftest.dir
; then
9379 cat >Imakefile
<<'_ACEOF'
9381 @echo incroot='${INCROOT}'
9383 @echo usrlibdir='${USRLIBDIR}'
9385 @echo libdir='${LIBDIR}'
9387 if (export CC
; ${XMKMF-xmkmf}) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
9388 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9389 for ac_var
in incroot usrlibdir libdir
; do
9390 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
9392 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9393 for ac_extension
in a so sl dylib la dll
; do
9394 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9395 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9396 ac_im_usrlibdir
=$ac_im_libdir; break
9399 # Screen out bogus values from the imake configuration. They are
9400 # bogus both because they are the default anyway, and because
9401 # using them would break gcc on systems where it needs fixed includes.
9402 case $ac_im_incroot in
9403 /usr
/include
) ac_x_includes
= ;;
9404 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
9406 case $ac_im_usrlibdir in
9408 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
9412 rm -f -r conftest.dir
9415 # Standard set of common directories for X headers.
9416 # Check X11 before X11Rn because it is often a symlink to the current release.
9428 /usr/local/X11/include
9429 /usr/local/X11R6/include
9430 /usr/local/X11R5/include
9431 /usr/local/X11R4/include
9433 /usr/local/include/X11
9434 /usr/local/include/X11R6
9435 /usr/local/include/X11R5
9436 /usr/local/include/X11R4
9440 /usr/XFree86/include/X11
9444 /usr/unsupported/include
9446 /usr/local/x11r5/include
9447 /usr/lpp/Xamples/include
9449 /usr/openwin/include
9450 /usr/openwin/share/include'
9452 if test "$ac_x_includes" = no
; then
9453 # Guess where to find include files, by looking for Xlib.h.
9454 # First, try using that file with no special directory specified.
9455 cat >conftest.
$ac_ext <<_ACEOF
9458 cat confdefs.h
>>conftest.
$ac_ext
9459 cat >>conftest.
$ac_ext <<_ACEOF
9460 /* end confdefs.h. */
9461 #include <X11/Xlib.h>
9463 if { (ac_try
="$ac_cpp conftest.$ac_ext"
9465 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9466 *) ac_try_echo=$ac_try;;
9468 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9469 $as_echo "$ac_try_echo") >&5
9470 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9472 grep -v '^ *+' conftest.er1 >conftest.err
9474 cat conftest.err >&5
9475 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9476 (exit $ac_status); } >/dev/null && {
9477 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9478 test ! -s conftest.err
9480 # We can compile using X headers with no special include directory.
9483 $as_echo "$as_me: failed program was:" >&5
9484 sed 's/^/| /' conftest.$ac_ext >&5
9486 for ac_dir in $ac_x_header_dirs; do
9487 if test -r "$ac_dir/X11/Xlib.h"; then
9488 ac_x_includes=$ac_dir
9494 rm -f conftest.err conftest.$ac_ext
9495 fi # $ac_x_includes = no
9497 if test "$ac_x_libraries" = no; then
9498 # Check for the libraries.
9499 # See if we find them without any special options.
9500 # Don't add to $LIBS permanently.
9503 cat >conftest.$ac_ext <<_ACEOF
9506 cat confdefs.h >>conftest.$ac_ext
9507 cat >>conftest.$ac_ext <<_ACEOF
9508 /* end confdefs.h. */
9509 #include <X11/Xlib.h>
9518 rm -f conftest.$ac_objext conftest$ac_exeext
9519 if { (ac_try="$ac_link"
9521 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9522 *) ac_try_echo
=$ac_try;;
9524 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
9525 $as_echo "$ac_try_echo") >&5
9526 (eval "$ac_link") 2>conftest.er1
9528 grep -v '^ *+' conftest.er1
>conftest.err
9530 cat conftest.err
>&5
9531 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9532 (exit $ac_status); } && {
9533 test -z "$ac_c_werror_flag" ||
9534 test ! -s conftest.err
9535 } && test -s conftest
$ac_exeext && {
9536 test "$cross_compiling" = yes ||
9537 $as_test_x conftest
$ac_exeext
9540 # We can link X programs with no special library path.
9543 $as_echo "$as_me: failed program was:" >&5
9544 sed 's/^/| /' conftest.
$ac_ext >&5
9547 for ac_dir
in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9549 # Don't even attempt the hair of trying to link an X program!
9550 for ac_extension
in a so sl dylib la dll
; do
9551 if test -r "$ac_dir/libX11.$ac_extension"; then
9552 ac_x_libraries
=$ac_dir
9559 rm -rf conftest.dSYM
9560 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9561 conftest
$ac_exeext conftest.
$ac_ext
9562 fi # $ac_x_libraries = no
9564 case $ac_x_includes,$ac_x_libraries in #(
9566 # Didn't find X, or a directory has "'" in its name.
9567 ac_cv_have_x
="have_x=no";; #(
9569 # Record where we found X for the cache.
9570 ac_cv_have_x
="have_x=yes\
9571 ac_x_includes='$ac_x_includes'\
9572 ac_x_libraries='$ac_x_libraries'"
9578 eval "$ac_cv_have_x"
9581 if test "$have_x" != yes; then
9582 { $as_echo "$as_me:$LINENO: result: $have_x" >&5
9583 $as_echo "$have_x" >&6; }
9586 # If each of the values was on the command line, it overrides each guess.
9587 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
9588 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
9589 # Update the cache value to reflect the command line values.
9590 ac_cv_have_x
="have_x=yes\
9591 ac_x_includes='$x_includes'\
9592 ac_x_libraries='$x_libraries'"
9593 { $as_echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9594 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
9597 if test "$no_x" = yes; then
9603 ## Workaround for bug in autoconf <= 2.62.
9604 ## http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01551.html
9605 ## No need to do anything special for these standard directories.
9606 ## This is an experiment, take it out if it causes problems.
9607 if test -n "${x_libraries}" && test x
"${x_libraries}" != xNONE
; then
9609 x_libraries
=`echo :${x_libraries}: | sed -e 's|:/usr/lib64:|:|g' -e 's|:/lib64:|:|g' -e 's|^:||' -e 's|:$||'`
9613 if test "${x_libraries}" != NONE
; then
9614 if test -n "${x_libraries}"; then
9615 LD_SWITCH_X_SITE
=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
9616 LD_SWITCH_X_SITE_AUX
=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
9618 x_default_search_path
=""
9619 x_search_path
=${x_libraries}
9620 if test -z "${x_search_path}"; then
9621 x_search_path
=/usr
/lib
9623 for x_library
in `echo ${x_search_path}: | \
9624 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
9626 ${x_library}/X11/%L/%T/%N%C%S:\
9627 ${x_library}/X11/%l/%T/%N%C%S:\
9628 ${x_library}/X11/%T/%N%C%S:\
9629 ${x_library}/X11/%L/%T/%N%S:\
9630 ${x_library}/X11/%l/%T/%N%S:\
9631 ${x_library}/X11/%T/%N%S"
9632 if test x
"${x_default_search_path}" = x
; then
9633 x_default_search_path
=${x_search_path}
9635 x_default_search_path
="${x_search_path}:${x_default_search_path}"
9639 if test "${x_includes}" != NONE
&& test -n "${x_includes}"; then
9640 C_SWITCH_X_SITE
=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
9643 if test x
"${x_includes}" = x
; then
9644 bitmapdir
=/usr
/include
/X11
/bitmaps
9646 # accumulate include directories that have X11 bitmap subdirectories
9648 for bmd
in `echo ${x_includes} | sed -e "s/:/ /g"`; do
9649 if test -d "${bmd}/X11/bitmaps"; then
9650 bmd_acc
="${bmd_acc}:${bmd}/X11/bitmaps"
9652 if test -d "${bmd}/bitmaps"; then
9653 bmd_acc
="${bmd_acc}:${bmd}/bitmaps"
9656 if test ${bmd_acc} != "dummyval"; then
9657 bitmapdir
=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9664 tmp_CPPFLAGS
="$CPPFLAGS"
9665 tmp_CFLAGS
="$CFLAGS"
9666 CPPFLAGS
="$CPPFLAGS -x objective-c"
9667 CFLAGS
="$CFLAGS -x objective-c"
9668 if test "${with_ns}" != no
; then
9669 if test "${opsys}" = darwin
; then
9671 ns_appdir
=`pwd`/nextstep
/Emacs.app
9672 ns_appbindir
=`pwd`/nextstep
/Emacs.app
/Contents
/MacOS
9673 ns_appresdir
=`pwd`/nextstep
/Emacs.app
/Contents
/Resources
9674 ns_appsrc
=${srcdir}/nextstep
/Cocoa
/Emacs.base
9675 elif test -f $GNUSTEP_CONFIG_FILE; then
9677 ns_appdir
=`pwd`/nextstep
/Emacs.app
9678 ns_appbindir
=`pwd`/nextstep
/Emacs.app
9679 ns_appresdir
=`pwd`/nextstep
/Emacs.app
/Resources
9680 ns_appsrc
=${srcdir}/nextstep
/GNUstep
/Emacs.base
9681 GNUSTEP_MAKEFILES
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_MAKEFILES)"
9682 GNUSTEP_SYSTEM_HEADERS
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
9683 GNUSTEP_SYSTEM_LIBRARIES
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
9684 CPPFLAGS
="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9685 CFLAGS
="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9686 REAL_CFLAGS
="$REAL_CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9687 LDFLAGS
="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES}"
9689 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9690 { $as_echo "$as_me:$LINENO: checking for AppKit/AppKit.h" >&5
9691 $as_echo_n "checking for AppKit/AppKit.h... " >&6; }
9692 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9693 $as_echo_n "(cached) " >&6
9695 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_AppKit_AppKit_h" >&5
9696 $as_echo "$ac_cv_header_AppKit_AppKit_h" >&6; }
9698 # Is the header compilable?
9699 { $as_echo "$as_me:$LINENO: checking AppKit/AppKit.h usability" >&5
9700 $as_echo_n "checking AppKit/AppKit.h usability... " >&6; }
9701 cat >conftest.
$ac_ext <<_ACEOF
9704 cat confdefs.h
>>conftest.
$ac_ext
9705 cat >>conftest.
$ac_ext <<_ACEOF
9706 /* end confdefs.h. */
9707 $ac_includes_default
9708 #include <AppKit/AppKit.h>
9710 rm -f conftest.
$ac_objext
9711 if { (ac_try
="$ac_compile"
9713 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9714 *) ac_try_echo=$ac_try;;
9716 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9717 $as_echo "$ac_try_echo") >&5
9718 (eval "$ac_compile") 2>conftest.er1
9720 grep -v '^ *+' conftest.er1 >conftest.err
9722 cat conftest.err >&5
9723 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9724 (exit $ac_status); } && {
9725 test -z "$ac_c_werror_flag" ||
9726 test ! -s conftest.err
9727 } && test -s conftest.$ac_objext; then
9728 ac_header_compiler=yes
9730 $as_echo "$as_me: failed program was:" >&5
9731 sed 's/^/| /' conftest.$ac_ext >&5
9733 ac_header_compiler=no
9736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9737 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9738 $as_echo "$ac_header_compiler" >&6; }
9740 # Is the header present?
9741 { $as_echo "$as_me:$LINENO: checking AppKit/AppKit.h presence" >&5
9742 $as_echo_n "checking AppKit/AppKit.h presence... " >&6; }
9743 cat >conftest.$ac_ext <<_ACEOF
9746 cat confdefs.h >>conftest.$ac_ext
9747 cat >>conftest.$ac_ext <<_ACEOF
9748 /* end confdefs.h. */
9749 #include <AppKit/AppKit.h>
9751 if { (ac_try="$ac_cpp conftest.$ac_ext"
9753 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9754 *) ac_try_echo
=$ac_try;;
9756 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
9757 $as_echo "$ac_try_echo") >&5
9758 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9760 grep -v '^ *+' conftest.er1
>conftest.err
9762 cat conftest.err
>&5
9763 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9764 (exit $ac_status); } >/dev
/null
&& {
9765 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9766 test ! -s conftest.err
9768 ac_header_preproc
=yes
9770 $as_echo "$as_me: failed program was:" >&5
9771 sed 's/^/| /' conftest.
$ac_ext >&5
9773 ac_header_preproc
=no
9776 rm -f conftest.err conftest.
$ac_ext
9777 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9778 $as_echo "$ac_header_preproc" >&6; }
9780 # So? What about this header?
9781 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9783 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: accepted by the compiler, rejected by the preprocessor!" >&5
9784 $as_echo "$as_me: WARNING: AppKit/AppKit.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9785 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: proceeding with the compiler's result" >&5
9786 $as_echo "$as_me: WARNING: AppKit/AppKit.h: proceeding with the compiler's result" >&2;}
9787 ac_header_preproc
=yes
9790 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: present but cannot be compiled" >&5
9791 $as_echo "$as_me: WARNING: AppKit/AppKit.h: present but cannot be compiled" >&2;}
9792 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: check for missing prerequisite headers?" >&5
9793 $as_echo "$as_me: WARNING: AppKit/AppKit.h: check for missing prerequisite headers?" >&2;}
9794 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: see the Autoconf documentation" >&5
9795 $as_echo "$as_me: WARNING: AppKit/AppKit.h: see the Autoconf documentation" >&2;}
9796 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: section \"Present But Cannot Be Compiled\"" >&5
9797 $as_echo "$as_me: WARNING: AppKit/AppKit.h: section \"Present But Cannot Be Compiled\"" >&2;}
9798 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: proceeding with the preprocessor's result" >&5
9799 $as_echo "$as_me: WARNING: AppKit/AppKit.h: proceeding with the preprocessor's result" >&2;}
9800 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: in the future, the compiler will take precedence" >&5
9801 $as_echo "$as_me: WARNING: AppKit/AppKit.h: in the future, the compiler will take precedence" >&2;}
9805 { $as_echo "$as_me:$LINENO: checking for AppKit/AppKit.h" >&5
9806 $as_echo_n "checking for AppKit/AppKit.h... " >&6; }
9807 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9808 $as_echo_n "(cached) " >&6
9810 ac_cv_header_AppKit_AppKit_h
=$ac_header_preproc
9812 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_AppKit_AppKit_h" >&5
9813 $as_echo "$ac_cv_header_AppKit_AppKit_h" >&6; }
9816 if test $ac_cv_header_AppKit_AppKit_h = yes; then
9819 { { $as_echo "$as_me:$LINENO: error: \`--with-ns' was specified, but the include
9820 files are missing or cannot be compiled." >&5
9821 $as_echo "$as_me: error: \`--with-ns' was specified, but the include
9822 files are missing or cannot be compiled." >&2;}
9823 { (exit 1); exit 1; }; }
9827 NS_HAVE_NSINTEGER
=yes
9828 cat >conftest.
$ac_ext <<_ACEOF
9831 cat confdefs.h
>>conftest.
$ac_ext
9832 cat >>conftest.
$ac_ext <<_ACEOF
9833 /* end confdefs.h. */
9834 #include <Foundation/NSObjCRuntime.h>
9843 rm -f conftest.
$ac_objext
9844 if { (ac_try
="$ac_compile"
9846 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9847 *) ac_try_echo=$ac_try;;
9849 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9850 $as_echo "$ac_try_echo") >&5
9851 (eval "$ac_compile") 2>conftest.er1
9853 grep -v '^ *+' conftest.er1 >conftest.err
9855 cat conftest.err >&5
9856 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9857 (exit $ac_status); } && {
9858 test -z "$ac_c_werror_flag" ||
9859 test ! -s conftest.err
9860 } && test -s conftest.$ac_objext; then
9861 ns_have_nsinteger=yes
9863 $as_echo "$as_me: failed program was:" >&5
9864 sed 's/^/| /' conftest.$ac_ext >&5
9866 ns_have_nsinteger=no
9869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9870 if test $ns_have_nsinteger = no; then
9871 NS_HAVE_NSINTEGER=no
9874 if test "${HAVE_NS}" = yes; then
9875 window_system=nextstep
9877 # set up packaging dirs
9878 exec_prefix=${ns_appbindir}
9879 libexecdir=${ns_appbindir}/libexec
9880 if test "${EN_NS_SELF_CONTAINED}" = yes; then
9881 prefix=${ns_appresdir}
9884 CFLAGS="$tmp_CFLAGS"
9885 CPPFLAGS="$tmp_CPPFLAGS"
9887 case "${window_system}" in
9891 case "${with_x_toolkit}" in
9892 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9893 motif ) USE_X_TOOLKIT=MOTIF ;;
9895 USE_X_TOOLKIT=none ;;
9896 no ) USE_X_TOOLKIT=none ;;
9897 * ) USE_X_TOOLKIT=maybe ;;
9907 if test "$window_system" = none && test "X$with_x" != "Xno"; then
9908 # Extract the first word of "X", so it can be a program name with args.
9909 set dummy X; ac_word=$2
9910 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9911 $as_echo_n "checking for $ac_word... " >&6; }
9912 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then
9913 $as_echo_n "(cached) " >&6
9915 if test -n "$HAVE_XSERVER"; then
9916 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
9918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9922 test -z "$as_dir" && as_dir=.
9923 for ac_exec_ext in '' $ac_executable_extensions; do
9924 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9925 ac_cv_prog_HAVE_XSERVER="true"
9926 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9933 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
9936 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
9937 if test -n "$HAVE_XSERVER"; then
9938 { $as_echo "$as_me:$LINENO: result: $HAVE_XSERVER" >&5
9939 $as_echo "$HAVE_XSERVER" >&6; }
9941 { $as_echo "$as_me:$LINENO: result: no" >&5
9942 $as_echo "no" >&6; }
9946 if test "$HAVE_XSERVER" = true ||
9947 test -n "$DISPLAY" ||
9948 test "`echo /usr
/lib
/libX11.
*`" != "/usr/lib/libX11.*"; then
9949 { { $as_echo "$as_me:$LINENO: error: You seem to be running X, but no X development libraries
9950 were found. You should install the relevant development files for X
9951 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9952 sure you have development files for image handling, i.e.
9953 tiff, gif, jpeg, png and xpm.
9954 If you are sure you want Emacs compiled without X window support, pass
9957 $as_echo "$as_me: error: You seem to be running X, but no X development libraries
9958 were found. You should install the relevant development files for X
9959 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9960 sure you have development files for image handling, i.e.
9961 tiff, gif, jpeg, png and xpm.
9962 If you are sure you want Emacs compiled without X window support, pass
9964 to configure." >&2;}
9965 { (exit 1); exit 1; }; }
9969 ### If we're using X11, we should use the X menu package.
9972 yes ) HAVE_MENUS=yes ;;
9975 # Do the opsystem or machine files prohibit the use of the GNU malloc?
9976 # Assume not, until told otherwise.
9979 { $as_echo "$as_me:$LINENO: checking for malloc_get_state" >&5
9980 $as_echo_n "checking for malloc_get_state... " >&6; }
9981 if test "${ac_cv_func_malloc_get_state+set}" = set; then
9982 $as_echo_n "(cached) " >&6
9984 cat >conftest.$ac_ext <<_ACEOF
9987 cat confdefs.h >>conftest.$ac_ext
9988 cat >>conftest.$ac_ext <<_ACEOF
9989 /* end confdefs.h. */
9990 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
9991 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9992 #define malloc_get_state innocuous_malloc_get_state
9994 /* System header to define __stub macros and hopefully few prototypes,
9995 which can conflict with char malloc_get_state (); below.
9996 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9997 <limits.h> exists even on freestanding compilers. */
10000 # include <limits.h>
10002 # include <assert.h>
10005 #undef malloc_get_state
10007 /* Override any GCC internal prototype to avoid an error.
10008 Use char because int might match the return type of a GCC
10009 builtin and then its argument prototype would still apply. */
10013 char malloc_get_state ();
10014 /* The GNU C library defines this for functions which it implements
10015 to always fail with ENOSYS. Some functions are actually named
10016 something starting with __ and the normal name is an alias. */
10017 #if defined __stub_malloc_get_state || defined __stub___malloc_get_state
10024 return malloc_get_state ();
10029 rm -f conftest.$ac_objext conftest$ac_exeext
10030 if { (ac_try="$ac_link"
10031 case "(($ac_try" in
10032 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10033 *) ac_try_echo
=$ac_try;;
10035 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10036 $as_echo "$ac_try_echo") >&5
10037 (eval "$ac_link") 2>conftest.er1
10039 grep -v '^ *+' conftest.er1
>conftest.err
10041 cat conftest.err
>&5
10042 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10043 (exit $ac_status); } && {
10044 test -z "$ac_c_werror_flag" ||
10045 test ! -s conftest.err
10046 } && test -s conftest
$ac_exeext && {
10047 test "$cross_compiling" = yes ||
10048 $as_test_x conftest
$ac_exeext
10050 ac_cv_func_malloc_get_state
=yes
10052 $as_echo "$as_me: failed program was:" >&5
10053 sed 's/^/| /' conftest.
$ac_ext >&5
10055 ac_cv_func_malloc_get_state
=no
10058 rm -rf conftest.dSYM
10059 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10060 conftest
$ac_exeext conftest.
$ac_ext
10062 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
10063 $as_echo "$ac_cv_func_malloc_get_state" >&6; }
10064 if test $ac_cv_func_malloc_get_state = yes; then
10070 { $as_echo "$as_me:$LINENO: checking for malloc_set_state" >&5
10071 $as_echo_n "checking for malloc_set_state... " >&6; }
10072 if test "${ac_cv_func_malloc_set_state+set}" = set; then
10073 $as_echo_n "(cached) " >&6
10075 cat >conftest.
$ac_ext <<_ACEOF
10078 cat confdefs.h
>>conftest.
$ac_ext
10079 cat >>conftest.
$ac_ext <<_ACEOF
10080 /* end confdefs.h. */
10081 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
10082 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10083 #define malloc_set_state innocuous_malloc_set_state
10085 /* System header to define __stub macros and hopefully few prototypes,
10086 which can conflict with char malloc_set_state (); below.
10087 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10088 <limits.h> exists even on freestanding compilers. */
10091 # include <limits.h>
10093 # include <assert.h>
10096 #undef malloc_set_state
10098 /* Override any GCC internal prototype to avoid an error.
10099 Use char because int might match the return type of a GCC
10100 builtin and then its argument prototype would still apply. */
10104 char malloc_set_state ();
10105 /* The GNU C library defines this for functions which it implements
10106 to always fail with ENOSYS. Some functions are actually named
10107 something starting with __ and the normal name is an alias. */
10108 #if defined __stub_malloc_set_state || defined __stub___malloc_set_state
10115 return malloc_set_state ();
10120 rm -f conftest.
$ac_objext conftest
$ac_exeext
10121 if { (ac_try
="$ac_link"
10122 case "(($ac_try" in
10123 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10124 *) ac_try_echo=$ac_try;;
10126 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10127 $as_echo "$ac_try_echo") >&5
10128 (eval "$ac_link") 2>conftest.er1
10130 grep -v '^ *+' conftest.er1 >conftest.err
10132 cat conftest.err >&5
10133 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10134 (exit $ac_status); } && {
10135 test -z "$ac_c_werror_flag" ||
10136 test ! -s conftest.err
10137 } && test -s conftest$ac_exeext && {
10138 test "$cross_compiling" = yes ||
10139 $as_test_x conftest$ac_exeext
10141 ac_cv_func_malloc_set_state=yes
10143 $as_echo "$as_me: failed program was:" >&5
10144 sed 's/^/| /' conftest.$ac_ext >&5
10146 ac_cv_func_malloc_set_state=no
10149 rm -rf conftest.dSYM
10150 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10151 conftest$ac_exeext conftest.$ac_ext
10153 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
10154 $as_echo "$ac_cv_func_malloc_set_state" >&6; }
10155 if test $ac_cv_func_malloc_set_state = yes; then
10161 { $as_echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
10162 $as_echo_n "checking whether __after_morecore_hook exists... " >&6; }
10163 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
10164 $as_echo_n "(cached) " >&6
10166 cat >conftest.$ac_ext <<_ACEOF
10169 cat confdefs.h >>conftest.$ac_ext
10170 cat >>conftest.$ac_ext <<_ACEOF
10171 /* end confdefs.h. */
10172 extern void (* __after_morecore_hook)();
10176 __after_morecore_hook = 0
10181 rm -f conftest.$ac_objext conftest$ac_exeext
10182 if { (ac_try="$ac_link"
10183 case "(($ac_try" in
10184 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10185 *) ac_try_echo
=$ac_try;;
10187 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10188 $as_echo "$ac_try_echo") >&5
10189 (eval "$ac_link") 2>conftest.er1
10191 grep -v '^ *+' conftest.er1
>conftest.err
10193 cat conftest.err
>&5
10194 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10195 (exit $ac_status); } && {
10196 test -z "$ac_c_werror_flag" ||
10197 test ! -s conftest.err
10198 } && test -s conftest
$ac_exeext && {
10199 test "$cross_compiling" = yes ||
10200 $as_test_x conftest
$ac_exeext
10202 emacs_cv_var___after_morecore_hook
=yes
10204 $as_echo "$as_me: failed program was:" >&5
10205 sed 's/^/| /' conftest.
$ac_ext >&5
10207 emacs_cv_var___after_morecore_hook
=no
10210 rm -rf conftest.dSYM
10211 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10212 conftest
$ac_exeext conftest.
$ac_ext
10214 { $as_echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
10215 $as_echo "$emacs_cv_var___after_morecore_hook" >&6; }
10216 if test $emacs_cv_var___after_morecore_hook = no
; then
10219 if test "${system_malloc}" = "yes"; then
10221 GNU_MALLOC_reason
="
10222 (The GNU allocators don't work with this system configuration.)"
10224 if test "$doug_lea_malloc" = "yes" ; then
10225 if test "$GNU_MALLOC" = yes ; then
10226 GNU_MALLOC_reason
="
10227 (Using Doug Lea's new malloc from the GNU C Library.)"
10230 cat >>confdefs.h
<<\_ACEOF
10231 #define DOUG_LEA_MALLOC 1
10236 if test x
"${REL_ALLOC}" = x
; then
10237 REL_ALLOC
=${GNU_MALLOC}
10243 for ac_header
in stdlib.h unistd.h
10245 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10246 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10247 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10248 $as_echo_n "checking for $ac_header... " >&6; }
10249 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10250 $as_echo_n "(cached) " >&6
10252 ac_res
=`eval 'as_val=${'$as_ac_Header'}
10253 $as_echo "$as_val"'`
10254 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10255 $as_echo "$ac_res" >&6; }
10257 # Is the header compilable?
10258 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10259 $as_echo_n "checking $ac_header usability... " >&6; }
10260 cat >conftest.
$ac_ext <<_ACEOF
10263 cat confdefs.h
>>conftest.
$ac_ext
10264 cat >>conftest.
$ac_ext <<_ACEOF
10265 /* end confdefs.h. */
10266 $ac_includes_default
10267 #include <$ac_header>
10269 rm -f conftest.
$ac_objext
10270 if { (ac_try
="$ac_compile"
10271 case "(($ac_try" in
10272 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10273 *) ac_try_echo=$ac_try;;
10275 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10276 $as_echo "$ac_try_echo") >&5
10277 (eval "$ac_compile") 2>conftest.er1
10279 grep -v '^ *+' conftest.er1 >conftest.err
10281 cat conftest.err >&5
10282 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10283 (exit $ac_status); } && {
10284 test -z "$ac_c_werror_flag" ||
10285 test ! -s conftest.err
10286 } && test -s conftest.$ac_objext; then
10287 ac_header_compiler=yes
10289 $as_echo "$as_me: failed program was:" >&5
10290 sed 's/^/| /' conftest.$ac_ext >&5
10292 ac_header_compiler=no
10295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10296 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10297 $as_echo "$ac_header_compiler" >&6; }
10299 # Is the header present?
10300 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10301 $as_echo_n "checking $ac_header presence... " >&6; }
10302 cat >conftest.$ac_ext <<_ACEOF
10305 cat confdefs.h >>conftest.$ac_ext
10306 cat >>conftest.$ac_ext <<_ACEOF
10307 /* end confdefs.h. */
10308 #include <$ac_header>
10310 if { (ac_try="$ac_cpp conftest.$ac_ext"
10311 case "(($ac_try" in
10312 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10313 *) ac_try_echo
=$ac_try;;
10315 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10316 $as_echo "$ac_try_echo") >&5
10317 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10319 grep -v '^ *+' conftest.er1
>conftest.err
10321 cat conftest.err
>&5
10322 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10323 (exit $ac_status); } >/dev
/null
&& {
10324 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10325 test ! -s conftest.err
10327 ac_header_preproc
=yes
10329 $as_echo "$as_me: failed program was:" >&5
10330 sed 's/^/| /' conftest.
$ac_ext >&5
10332 ac_header_preproc
=no
10335 rm -f conftest.err conftest.
$ac_ext
10336 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10337 $as_echo "$ac_header_preproc" >&6; }
10339 # So? What about this header?
10340 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10342 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10343 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10344 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10345 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10346 ac_header_preproc
=yes
10349 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10350 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10351 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10352 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10353 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10354 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10355 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10356 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10357 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10358 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10359 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10360 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10364 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10365 $as_echo_n "checking for $ac_header... " >&6; }
10366 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10367 $as_echo_n "(cached) " >&6
10369 eval "$as_ac_Header=\$ac_header_preproc"
10371 ac_res
=`eval 'as_val=${'$as_ac_Header'}
10372 $as_echo "$as_val"'`
10373 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10374 $as_echo "$ac_res" >&6; }
10377 if test `eval 'as_val=${'$as_ac_Header'}
10378 $as_echo "$as_val"'` = yes; then
10379 cat >>confdefs.h
<<_ACEOF
10380 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10388 for ac_func
in getpagesize
10390 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10391 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
10392 $as_echo_n "checking for $ac_func... " >&6; }
10393 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10394 $as_echo_n "(cached) " >&6
10396 cat >conftest.
$ac_ext <<_ACEOF
10399 cat confdefs.h
>>conftest.
$ac_ext
10400 cat >>conftest.
$ac_ext <<_ACEOF
10401 /* end confdefs.h. */
10402 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10403 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10404 #define $ac_func innocuous_$ac_func
10406 /* System header to define __stub macros and hopefully few prototypes,
10407 which can conflict with char $ac_func (); below.
10408 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10409 <limits.h> exists even on freestanding compilers. */
10412 # include <limits.h>
10414 # include <assert.h>
10419 /* Override any GCC internal prototype to avoid an error.
10420 Use char because int might match the return type of a GCC
10421 builtin and then its argument prototype would still apply. */
10426 /* The GNU C library defines this for functions which it implements
10427 to always fail with ENOSYS. Some functions are actually named
10428 something starting with __ and the normal name is an alias. */
10429 #if defined __stub_$ac_func || defined __stub___$ac_func
10436 return $ac_func ();
10441 rm -f conftest.
$ac_objext conftest
$ac_exeext
10442 if { (ac_try
="$ac_link"
10443 case "(($ac_try" in
10444 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10445 *) ac_try_echo=$ac_try;;
10447 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10448 $as_echo "$ac_try_echo") >&5
10449 (eval "$ac_link") 2>conftest.er1
10451 grep -v '^ *+' conftest.er1 >conftest.err
10453 cat conftest.err >&5
10454 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10455 (exit $ac_status); } && {
10456 test -z "$ac_c_werror_flag" ||
10457 test ! -s conftest.err
10458 } && test -s conftest$ac_exeext && {
10459 test "$cross_compiling" = yes ||
10460 $as_test_x conftest$ac_exeext
10462 eval "$as_ac_var=yes"
10464 $as_echo "$as_me: failed program was:" >&5
10465 sed 's/^/| /' conftest.$ac_ext >&5
10467 eval "$as_ac_var=no"
10470 rm -rf conftest.dSYM
10471 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10472 conftest$ac_exeext conftest.$ac_ext
10474 ac_res=`eval 'as_val=${'$as_ac_var'}
10475 $as_echo "$as_val"'`
10476 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10477 $as_echo "$ac_res" >&6; }
10478 if test `eval 'as_val=${'$as_ac_var'}
10479 $as_echo "$as_val"'` = yes; then
10480 cat >>confdefs.h <<_ACEOF
10481 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
10487 { $as_echo "$as_me:$LINENO: checking for working mmap" >&5
10488 $as_echo_n "checking for working mmap... " >&6; }
10489 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
10490 $as_echo_n "(cached) " >&6
10492 if test "$cross_compiling" = yes; then
10493 ac_cv_func_mmap_fixed_mapped=no
10495 cat >conftest.$ac_ext <<_ACEOF
10498 cat confdefs.h >>conftest.$ac_ext
10499 cat >>conftest.$ac_ext <<_ACEOF
10500 /* end confdefs.h. */
10501 $ac_includes_default
10502 /* malloc might have been renamed as rpl_malloc. */
10505 /* Thanks to Mike Haertel and Jim Avera for this test.
10506 Here is a matrix of mmap possibilities:
10507 mmap private not fixed
10508 mmap private fixed at somewhere currently unmapped
10509 mmap private fixed at somewhere already mapped
10510 mmap shared not fixed
10511 mmap shared fixed at somewhere currently unmapped
10512 mmap shared fixed at somewhere already mapped
10513 For private mappings, we should verify that changes cannot be read()
10514 back from the file, nor mmap's back from the file at a different
10515 address. (There have been systems where private was not correctly
10516 implemented like the infamous i386 svr4.0, and systems where the
10517 VM page cache was not coherent with the file system buffer cache
10518 like early versions of FreeBSD and possibly contemporary NetBSD.)
10519 For shared mappings, we should conversely verify that changes get
10520 propagated back to all the places they're supposed to be.
10522 Grep wants private fixed already mapped.
10523 The main things grep needs to know about mmap are:
10524 * does it exist and is it safe to write into the mmap'd area
10525 * how to use it (BSD variants) */
10528 #include <sys/mman.h>
10530 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10534 /* This mess was copied from the GNU getpagesize.h. */
10535 #ifndef HAVE_GETPAGESIZE
10536 /* Assume that all systems that can run configure have sys/param.h. */
10537 # ifndef HAVE_SYS_PARAM_H
10538 # define HAVE_SYS_PARAM_H 1
10541 # ifdef _SC_PAGESIZE
10542 # define getpagesize() sysconf(_SC_PAGESIZE)
10543 # else /* no _SC_PAGESIZE */
10544 # ifdef HAVE_SYS_PARAM_H
10545 # include <sys/param.h>
10546 # ifdef EXEC_PAGESIZE
10547 # define getpagesize() EXEC_PAGESIZE
10548 # else /* no EXEC_PAGESIZE */
10550 # define getpagesize() NBPG * CLSIZE
10553 # endif /* no CLSIZE */
10554 # else /* no NBPG */
10556 # define getpagesize() NBPC
10557 # else /* no NBPC */
10559 # define getpagesize() PAGESIZE
10560 # endif /* PAGESIZE */
10561 # endif /* no NBPC */
10562 # endif /* no NBPG */
10563 # endif /* no EXEC_PAGESIZE */
10564 # else /* no HAVE_SYS_PARAM_H */
10565 # define getpagesize() 8192 /* punt totally */
10566 # endif /* no HAVE_SYS_PARAM_H */
10567 # endif /* no _SC_PAGESIZE */
10569 #endif /* no HAVE_GETPAGESIZE */
10574 char *data, *data2, *data3;
10578 pagesize = getpagesize ();
10580 /* First, make a file with some known garbage in it. */
10581 data = (char *) malloc (pagesize);
10584 for (i = 0; i < pagesize; ++i)
10585 *(data + i) = rand ();
10587 fd = creat ("conftest.mmap", 0600);
10590 if (write (fd, data, pagesize) != pagesize)
10594 /* Next, try to mmap the file at a fixed address which already has
10595 something else allocated at it. If we can, also make sure that
10596 we see the same garbage. */
10597 fd = open ("conftest.mmap", O_RDWR);
10600 data2 = (char *) malloc (2 * pagesize);
10603 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10604 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10605 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10607 for (i = 0; i < pagesize; ++i)
10608 if (*(data + i) != *(data2 + i))
10611 /* Finally, make sure that changes to the mapped area do not
10612 percolate back to the file as seen by read(). (This is a bug on
10613 some variants of i386 svr4.0.) */
10614 for (i = 0; i < pagesize; ++i)
10615 *(data2 + i) = *(data2 + i) + 1;
10616 data3 = (char *) malloc (pagesize);
10619 if (read (fd, data3, pagesize) != pagesize)
10621 for (i = 0; i < pagesize; ++i)
10622 if (*(data + i) != *(data3 + i))
10628 rm -f conftest$ac_exeext
10629 if { (ac_try="$ac_link"
10630 case "(($ac_try" in
10631 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10632 *) ac_try_echo
=$ac_try;;
10634 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10635 $as_echo "$ac_try_echo") >&5
10636 (eval "$ac_link") 2>&5
10638 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10639 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10640 { (case "(($ac_try" in
10641 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10642 *) ac_try_echo=$ac_try;;
10644 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10645 $as_echo "$ac_try_echo") >&5
10646 (eval "$ac_try") 2>&5
10648 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10649 (exit $ac_status); }; }; then
10650 ac_cv_func_mmap_fixed_mapped=yes
10652 $as_echo "$as_me: program exited with status $ac_status" >&5
10653 $as_echo "$as_me: failed program was:" >&5
10654 sed 's/^/| /' conftest.$ac_ext >&5
10656 ( exit $ac_status )
10657 ac_cv_func_mmap_fixed_mapped=no
10659 rm -rf conftest.dSYM
10660 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10665 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10666 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
10667 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10669 cat >>confdefs.h <<\_ACEOF
10670 #define HAVE_MMAP 1
10674 rm -f conftest.mmap
10676 if test $use_mmap_for_buffers = yes; then
10680 LIBS="$libsrc_libs $LIBS"
10683 { $as_echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
10684 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
10685 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
10686 $as_echo_n "(cached) " >&6
10688 ac_check_lib_save_LIBS=$LIBS
10689 LIBS="-ldnet $LIBS"
10690 cat >conftest.$ac_ext <<_ACEOF
10693 cat confdefs.h >>conftest.$ac_ext
10694 cat >>conftest.$ac_ext <<_ACEOF
10695 /* end confdefs.h. */
10697 /* Override any GCC internal prototype to avoid an error.
10698 Use char because int might match the return type of a GCC
10699 builtin and then its argument prototype would still apply. */
10707 return dnet_ntoa ();
10712 rm -f conftest.$ac_objext conftest$ac_exeext
10713 if { (ac_try="$ac_link"
10714 case "(($ac_try" in
10715 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10716 *) ac_try_echo
=$ac_try;;
10718 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10719 $as_echo "$ac_try_echo") >&5
10720 (eval "$ac_link") 2>conftest.er1
10722 grep -v '^ *+' conftest.er1
>conftest.err
10724 cat conftest.err
>&5
10725 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10726 (exit $ac_status); } && {
10727 test -z "$ac_c_werror_flag" ||
10728 test ! -s conftest.err
10729 } && test -s conftest
$ac_exeext && {
10730 test "$cross_compiling" = yes ||
10731 $as_test_x conftest
$ac_exeext
10733 ac_cv_lib_dnet_dnet_ntoa
=yes
10735 $as_echo "$as_me: failed program was:" >&5
10736 sed 's/^/| /' conftest.
$ac_ext >&5
10738 ac_cv_lib_dnet_dnet_ntoa
=no
10741 rm -rf conftest.dSYM
10742 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10743 conftest
$ac_exeext conftest.
$ac_ext
10744 LIBS
=$ac_check_lib_save_LIBS
10746 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10747 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10748 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
10749 cat >>confdefs.h
<<_ACEOF
10750 #define HAVE_LIBDNET 1
10753 LIBS
="-ldnet $LIBS"
10758 { $as_echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
10759 $as_echo_n "checking for main in -lXbsd... " >&6; }
10760 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
10761 $as_echo_n "(cached) " >&6
10763 ac_check_lib_save_LIBS
=$LIBS
10764 LIBS
="-lXbsd $LIBS"
10765 cat >conftest.
$ac_ext <<_ACEOF
10768 cat confdefs.h
>>conftest.
$ac_ext
10769 cat >>conftest.
$ac_ext <<_ACEOF
10770 /* end confdefs.h. */
10781 rm -f conftest.
$ac_objext conftest
$ac_exeext
10782 if { (ac_try
="$ac_link"
10783 case "(($ac_try" in
10784 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10785 *) ac_try_echo=$ac_try;;
10787 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10788 $as_echo "$ac_try_echo") >&5
10789 (eval "$ac_link") 2>conftest.er1
10791 grep -v '^ *+' conftest.er1 >conftest.err
10793 cat conftest.err >&5
10794 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10795 (exit $ac_status); } && {
10796 test -z "$ac_c_werror_flag" ||
10797 test ! -s conftest.err
10798 } && test -s conftest$ac_exeext && {
10799 test "$cross_compiling" = yes ||
10800 $as_test_x conftest$ac_exeext
10802 ac_cv_lib_Xbsd_main=yes
10804 $as_echo "$as_me: failed program was:" >&5
10805 sed 's/^/| /' conftest.$ac_ext >&5
10807 ac_cv_lib_Xbsd_main=no
10810 rm -rf conftest.dSYM
10811 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10812 conftest$ac_exeext conftest.$ac_ext
10813 LIBS=$ac_check_lib_save_LIBS
10815 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
10816 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
10817 if test $ac_cv_lib_Xbsd_main = yes; then
10818 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
10823 { $as_echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
10824 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
10825 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
10826 $as_echo_n "(cached) " >&6
10828 ac_check_lib_save_LIBS=$LIBS
10829 LIBS="-lpthreads $LIBS"
10830 cat >conftest.$ac_ext <<_ACEOF
10833 cat confdefs.h >>conftest.$ac_ext
10834 cat >>conftest.$ac_ext <<_ACEOF
10835 /* end confdefs.h. */
10837 /* Override any GCC internal prototype to avoid an error.
10838 Use char because int might match the return type of a GCC
10839 builtin and then its argument prototype would still apply. */
10847 return cma_open ();
10852 rm -f conftest.$ac_objext conftest$ac_exeext
10853 if { (ac_try="$ac_link"
10854 case "(($ac_try" in
10855 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10856 *) ac_try_echo
=$ac_try;;
10858 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10859 $as_echo "$ac_try_echo") >&5
10860 (eval "$ac_link") 2>conftest.er1
10862 grep -v '^ *+' conftest.er1
>conftest.err
10864 cat conftest.err
>&5
10865 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10866 (exit $ac_status); } && {
10867 test -z "$ac_c_werror_flag" ||
10868 test ! -s conftest.err
10869 } && test -s conftest
$ac_exeext && {
10870 test "$cross_compiling" = yes ||
10871 $as_test_x conftest
$ac_exeext
10873 ac_cv_lib_pthreads_cma_open
=yes
10875 $as_echo "$as_me: failed program was:" >&5
10876 sed 's/^/| /' conftest.
$ac_ext >&5
10878 ac_cv_lib_pthreads_cma_open
=no
10881 rm -rf conftest.dSYM
10882 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10883 conftest
$ac_exeext conftest.
$ac_ext
10884 LIBS
=$ac_check_lib_save_LIBS
10886 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
10887 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
10888 if test $ac_cv_lib_pthreads_cma_open = yes; then
10889 cat >>confdefs.h
<<_ACEOF
10890 #define HAVE_LIBPTHREADS 1
10893 LIBS
="-lpthreads $LIBS"
10901 { $as_echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
10902 $as_echo_n "checking for -bbigtoc option... " >&6; }
10903 if test "${gdb_cv_bigtoc+set}" = set; then
10904 $as_echo_n "(cached) " >&6
10908 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
10909 *) gdb_cv_bigtoc
=-bbigtoc ;;
10912 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
10913 cat >conftest.
$ac_ext <<_ACEOF
10916 cat confdefs.h
>>conftest.
$ac_ext
10917 cat >>conftest.
$ac_ext <<_ACEOF
10918 /* end confdefs.h. */
10928 rm -f conftest.
$ac_objext conftest
$ac_exeext
10929 if { (ac_try
="$ac_link"
10930 case "(($ac_try" in
10931 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10932 *) ac_try_echo=$ac_try;;
10934 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10935 $as_echo "$ac_try_echo") >&5
10936 (eval "$ac_link") 2>conftest.er1
10938 grep -v '^ *+' conftest.er1 >conftest.err
10940 cat conftest.err >&5
10941 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10942 (exit $ac_status); } && {
10943 test -z "$ac_c_werror_flag" ||
10944 test ! -s conftest.err
10945 } && test -s conftest$ac_exeext && {
10946 test "$cross_compiling" = yes ||
10947 $as_test_x conftest$ac_exeext
10951 $as_echo "$as_me: failed program was:" >&5
10952 sed 's/^/| /' conftest.$ac_ext >&5
10957 rm -rf conftest.dSYM
10958 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10959 conftest$ac_exeext conftest.$ac_ext
10962 { $as_echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
10963 $as_echo "$gdb_cv_bigtoc" >&6; }
10967 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10968 # used for the tests that follow. We set them back to REAL_CFLAGS and
10969 # REAL_CPPFLAGS later on.
10971 REAL_CPPFLAGS="$CPPFLAGS"
10973 if test "${HAVE_X11}" = "yes"; then
10974 DEFS="$C_SWITCH_X_SITE $DEFS"
10975 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
10977 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
10978 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
10980 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10981 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
10982 # but it's more convenient here to set LD_RUN_PATH
10983 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
10984 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
10985 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10989 if test "${opsys}" = "gnu-linux"; then
10990 { $as_echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
10991 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
10992 cat >conftest.$ac_ext <<_ACEOF
10995 cat confdefs.h >>conftest.$ac_ext
10996 cat >>conftest.$ac_ext <<_ACEOF
10997 /* end confdefs.h. */
11002 XOpenDisplay ("foo");
11007 rm -f conftest.$ac_objext conftest$ac_exeext
11008 if { (ac_try="$ac_link"
11009 case "(($ac_try" in
11010 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11011 *) ac_try_echo
=$ac_try;;
11013 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11014 $as_echo "$ac_try_echo") >&5
11015 (eval "$ac_link") 2>conftest.er1
11017 grep -v '^ *+' conftest.er1
>conftest.err
11019 cat conftest.err
>&5
11020 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11021 (exit $ac_status); } && {
11022 test -z "$ac_c_werror_flag" ||
11023 test ! -s conftest.err
11024 } && test -s conftest
$ac_exeext && {
11025 test "$cross_compiling" = yes ||
11026 $as_test_x conftest
$ac_exeext
11028 xlinux_first_failure
=no
11030 $as_echo "$as_me: failed program was:" >&5
11031 sed 's/^/| /' conftest.
$ac_ext >&5
11033 xlinux_first_failure
=yes
11036 rm -rf conftest.dSYM
11037 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11038 conftest
$ac_exeext conftest.
$ac_ext
11039 if test "${xlinux_first_failure}" = "yes"; then
11040 OLD_LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE"
11041 OLD_C_SWITCH_X_SITE
="$C_SWITCH_X_SITE"
11042 OLD_CPPFLAGS
="$CPPFLAGS"
11044 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -b i486-linuxaout"
11045 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE -b i486-linuxaout"
11046 CPPFLAGS
="$CPPFLAGS -b i486-linuxaout"
11047 LIBS
="$LIBS -b i486-linuxaout"
11048 cat >conftest.
$ac_ext <<_ACEOF
11051 cat confdefs.h
>>conftest.
$ac_ext
11052 cat >>conftest.
$ac_ext <<_ACEOF
11053 /* end confdefs.h. */
11058 XOpenDisplay ("foo");
11063 rm -f conftest.
$ac_objext conftest
$ac_exeext
11064 if { (ac_try
="$ac_link"
11065 case "(($ac_try" in
11066 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11067 *) ac_try_echo=$ac_try;;
11069 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11070 $as_echo "$ac_try_echo") >&5
11071 (eval "$ac_link") 2>conftest.er1
11073 grep -v '^ *+' conftest.er1 >conftest.err
11075 cat conftest.err >&5
11076 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11077 (exit $ac_status); } && {
11078 test -z "$ac_c_werror_flag" ||
11079 test ! -s conftest.err
11080 } && test -s conftest$ac_exeext && {
11081 test "$cross_compiling" = yes ||
11082 $as_test_x conftest$ac_exeext
11084 xlinux_second_failure=no
11086 $as_echo "$as_me: failed program was:" >&5
11087 sed 's/^/| /' conftest.$ac_ext >&5
11089 xlinux_second_failure=yes
11092 rm -rf conftest.dSYM
11093 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11094 conftest$ac_exeext conftest.$ac_ext
11095 if test "${xlinux_second_failure}" = "yes"; then
11096 # If we get the same failure with -b, there is no use adding -b.
11097 # So take it out. This plays safe.
11098 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
11099 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
11100 CPPFLAGS="$OLD_CPPFLAGS"
11102 { $as_echo "$as_me:$LINENO: result: no" >&5
11103 $as_echo "no" >&6; }
11105 { $as_echo "$as_me:$LINENO: result: yes" >&5
11106 $as_echo "yes" >&6; }
11109 { $as_echo "$as_me:$LINENO: result: no" >&5
11110 $as_echo "no" >&6; }
11114 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
11115 # header files included from there.
11116 { $as_echo "$as_me:$LINENO: checking for Xkb" >&5
11117 $as_echo_n "checking for Xkb... " >&6; }
11118 cat >conftest.$ac_ext <<_ACEOF
11121 cat confdefs.h >>conftest.$ac_ext
11122 cat >>conftest.$ac_ext <<_ACEOF
11123 /* end confdefs.h. */
11124 #include <X11/Xlib.h>
11125 #include <X11/XKBlib.h>
11129 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
11134 rm -f conftest.$ac_objext conftest$ac_exeext
11135 if { (ac_try="$ac_link"
11136 case "(($ac_try" in
11137 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11138 *) ac_try_echo
=$ac_try;;
11140 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11141 $as_echo "$ac_try_echo") >&5
11142 (eval "$ac_link") 2>conftest.er1
11144 grep -v '^ *+' conftest.er1
>conftest.err
11146 cat conftest.err
>&5
11147 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11148 (exit $ac_status); } && {
11149 test -z "$ac_c_werror_flag" ||
11150 test ! -s conftest.err
11151 } && test -s conftest
$ac_exeext && {
11152 test "$cross_compiling" = yes ||
11153 $as_test_x conftest
$ac_exeext
11157 $as_echo "$as_me: failed program was:" >&5
11158 sed 's/^/| /' conftest.
$ac_ext >&5
11163 rm -rf conftest.dSYM
11164 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11165 conftest
$ac_exeext conftest.
$ac_ext
11166 { $as_echo "$as_me:$LINENO: result: $emacs_xkb" >&5
11167 $as_echo "$emacs_xkb" >&6; }
11168 if test $emacs_xkb = yes; then
11170 cat >>confdefs.h
<<\_ACEOF
11171 #define HAVE_XKBGETKEYBOARD 1
11180 for ac_func
in XrmSetDatabase XScreenResourceString \
11181 XScreenNumberOfScreen XSetWMProtocols
11183 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11184 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11185 $as_echo_n "checking for $ac_func... " >&6; }
11186 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11187 $as_echo_n "(cached) " >&6
11189 cat >conftest.
$ac_ext <<_ACEOF
11192 cat confdefs.h
>>conftest.
$ac_ext
11193 cat >>conftest.
$ac_ext <<_ACEOF
11194 /* end confdefs.h. */
11195 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11196 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11197 #define $ac_func innocuous_$ac_func
11199 /* System header to define __stub macros and hopefully few prototypes,
11200 which can conflict with char $ac_func (); below.
11201 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11202 <limits.h> exists even on freestanding compilers. */
11205 # include <limits.h>
11207 # include <assert.h>
11212 /* Override any GCC internal prototype to avoid an error.
11213 Use char because int might match the return type of a GCC
11214 builtin and then its argument prototype would still apply. */
11219 /* The GNU C library defines this for functions which it implements
11220 to always fail with ENOSYS. Some functions are actually named
11221 something starting with __ and the normal name is an alias. */
11222 #if defined __stub_$ac_func || defined __stub___$ac_func
11229 return $ac_func ();
11234 rm -f conftest.
$ac_objext conftest
$ac_exeext
11235 if { (ac_try
="$ac_link"
11236 case "(($ac_try" in
11237 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11238 *) ac_try_echo=$ac_try;;
11240 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11241 $as_echo "$ac_try_echo") >&5
11242 (eval "$ac_link") 2>conftest.er1
11244 grep -v '^ *+' conftest.er1 >conftest.err
11246 cat conftest.err >&5
11247 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11248 (exit $ac_status); } && {
11249 test -z "$ac_c_werror_flag" ||
11250 test ! -s conftest.err
11251 } && test -s conftest$ac_exeext && {
11252 test "$cross_compiling" = yes ||
11253 $as_test_x conftest$ac_exeext
11255 eval "$as_ac_var=yes"
11257 $as_echo "$as_me: failed program was:" >&5
11258 sed 's/^/| /' conftest.$ac_ext >&5
11260 eval "$as_ac_var=no"
11263 rm -rf conftest.dSYM
11264 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11265 conftest$ac_exeext conftest.$ac_ext
11267 ac_res=`eval 'as_val=${'$as_ac_var'}
11268 $as_echo "$as_val"'`
11269 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11270 $as_echo "$ac_res" >&6; }
11271 if test `eval 'as_val=${'$as_ac_var'}
11272 $as_echo "$as_val"'` = yes; then
11273 cat >>confdefs.h <<_ACEOF
11274 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
11282 if test "${window_system}" = "x11"; then
11283 { $as_echo "$as_me:$LINENO: checking X11 version 6" >&5
11284 $as_echo_n "checking X11 version 6... " >&6; }
11285 if test "${emacs_cv_x11_version_6+set}" = set; then
11286 $as_echo_n "(cached) " >&6
11288 cat >conftest.$ac_ext <<_ACEOF
11291 cat confdefs.h >>conftest.$ac_ext
11292 cat >>conftest.$ac_ext <<_ACEOF
11293 /* end confdefs.h. */
11294 #include <X11/Xlib.h>
11298 #if XlibSpecificationRelease < 6
11306 rm -f conftest.$ac_objext conftest$ac_exeext
11307 if { (ac_try="$ac_link"
11308 case "(($ac_try" in
11309 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11310 *) ac_try_echo
=$ac_try;;
11312 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11313 $as_echo "$ac_try_echo") >&5
11314 (eval "$ac_link") 2>conftest.er1
11316 grep -v '^ *+' conftest.er1
>conftest.err
11318 cat conftest.err
>&5
11319 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11320 (exit $ac_status); } && {
11321 test -z "$ac_c_werror_flag" ||
11322 test ! -s conftest.err
11323 } && test -s conftest
$ac_exeext && {
11324 test "$cross_compiling" = yes ||
11325 $as_test_x conftest
$ac_exeext
11327 emacs_cv_x11_version_6
=yes
11329 $as_echo "$as_me: failed program was:" >&5
11330 sed 's/^/| /' conftest.
$ac_ext >&5
11332 emacs_cv_x11_version_6
=no
11335 rm -rf conftest.dSYM
11336 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11337 conftest
$ac_exeext conftest.
$ac_ext
11340 if test $emacs_cv_x11_version_6 = yes; then
11341 { $as_echo "$as_me:$LINENO: result: 6 or newer" >&5
11342 $as_echo "6 or newer" >&6; }
11344 cat >>confdefs.h
<<\_ACEOF
11345 #define HAVE_X11R6 1
11349 { $as_echo "$as_me:$LINENO: result: before 6" >&5
11350 $as_echo "before 6" >&6; }
11355 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
11357 if test "${HAVE_X11}" = "yes" ||
test "${NS_IMPL_GNUSTEP}" = "yes"; then
11358 if test "${with_rsvg}" != "no"; then
11359 RSVG_REQUIRED
=2.11.0
11360 RSVG_MODULE
="librsvg-2.0 >= $RSVG_REQUIRED"
11365 # Extract the first word of "pkg-config", so it can be a program name with args.
11366 set dummy pkg-config
; ac_word
=$2
11367 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11368 $as_echo_n "checking for $ac_word... " >&6; }
11369 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11370 $as_echo_n "(cached) " >&6
11372 case $PKG_CONFIG in
11374 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
11377 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11378 for as_dir
in $PATH
11381 test -z "$as_dir" && as_dir
=.
11382 for ac_exec_ext
in '' $ac_executable_extensions; do
11383 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11384 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
11385 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11392 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
11396 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
11397 if test -n "$PKG_CONFIG"; then
11398 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11399 $as_echo "$PKG_CONFIG" >&6; }
11401 { $as_echo "$as_me:$LINENO: result: no" >&5
11402 $as_echo "no" >&6; }
11407 if test "$PKG_CONFIG" = "no" ; then
11410 PKG_CONFIG_MIN_VERSION
=0.9.0
11411 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11412 { $as_echo "$as_me:$LINENO: checking for $RSVG_MODULE" >&5
11413 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
11415 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
11416 { $as_echo "$as_me:$LINENO: result: yes" >&5
11417 $as_echo "yes" >&6; }
11420 { $as_echo "$as_me:$LINENO: checking RSVG_CFLAGS" >&5
11421 $as_echo_n "checking RSVG_CFLAGS... " >&6; }
11422 RSVG_CFLAGS
=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
11423 { $as_echo "$as_me:$LINENO: result: $RSVG_CFLAGS" >&5
11424 $as_echo "$RSVG_CFLAGS" >&6; }
11426 { $as_echo "$as_me:$LINENO: checking RSVG_LIBS" >&5
11427 $as_echo_n "checking RSVG_LIBS... " >&6; }
11428 RSVG_LIBS
=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
11429 { $as_echo "$as_me:$LINENO: result: $RSVG_LIBS" >&5
11430 $as_echo "$RSVG_LIBS" >&6; }
11432 { $as_echo "$as_me:$LINENO: result: no" >&5
11433 $as_echo "no" >&6; }
11436 ## If we have a custom action on failure, don't print errors, but
11437 ## do set a variable so people can do so.
11438 RSVG_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
11445 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11446 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11450 if test $succeeded = yes; then
11459 if test ".${RSVG_CFLAGS}" != "."; then
11462 cat >>confdefs.h
<<\_ACEOF
11463 #define HAVE_RSVG 1
11466 CFLAGS
="$CFLAGS $RSVG_CFLAGS"
11467 LIBS
="$RSVG_LIBS $LIBS"
11474 if test "${with_gtk}" = "yes" ||
test "$USE_X_TOOLKIT" = "maybe"; then
11477 GTK_MODULES
="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
11482 # Extract the first word of "pkg-config", so it can be a program name with args.
11483 set dummy pkg-config
; ac_word
=$2
11484 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11485 $as_echo_n "checking for $ac_word... " >&6; }
11486 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11487 $as_echo_n "(cached) " >&6
11489 case $PKG_CONFIG in
11491 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
11494 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11495 for as_dir
in $PATH
11498 test -z "$as_dir" && as_dir
=.
11499 for ac_exec_ext
in '' $ac_executable_extensions; do
11500 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11501 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
11502 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11509 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
11513 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
11514 if test -n "$PKG_CONFIG"; then
11515 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11516 $as_echo "$PKG_CONFIG" >&6; }
11518 { $as_echo "$as_me:$LINENO: result: no" >&5
11519 $as_echo "no" >&6; }
11524 if test "$PKG_CONFIG" = "no" ; then
11527 PKG_CONFIG_MIN_VERSION
=0.9.0
11528 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11529 { $as_echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
11530 $as_echo_n "checking for $GTK_MODULES... " >&6; }
11532 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
11533 { $as_echo "$as_me:$LINENO: result: yes" >&5
11534 $as_echo "yes" >&6; }
11537 { $as_echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
11538 $as_echo_n "checking GTK_CFLAGS... " >&6; }
11539 GTK_CFLAGS
=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
11540 { $as_echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
11541 $as_echo "$GTK_CFLAGS" >&6; }
11543 { $as_echo "$as_me:$LINENO: checking GTK_LIBS" >&5
11544 $as_echo_n "checking GTK_LIBS... " >&6; }
11545 GTK_LIBS
=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
11546 { $as_echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
11547 $as_echo "$GTK_LIBS" >&6; }
11549 { $as_echo "$as_me:$LINENO: result: no" >&5
11550 $as_echo "no" >&6; }
11553 ## If we have a custom action on failure, don't print errors, but
11554 ## do set a variable so people can do so.
11555 GTK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
11562 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11563 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11567 if test $succeeded = yes; then
11573 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
11574 { { $as_echo "$as_me:$LINENO: error: $GTK_PKG_ERRORS" >&5
11575 $as_echo "$as_me: error: $GTK_PKG_ERRORS" >&2;}
11576 { (exit 1); exit 1; }; }
11581 if test x
"$pkg_check_gtk" = xyes
; then
11585 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $GTK_CFLAGS"
11586 CFLAGS
="$CFLAGS $GTK_CFLAGS"
11587 LIBS
="$GTK_LIBS $LIBS"
11590 for ac_func
in gtk_main
11592 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11593 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11594 $as_echo_n "checking for $ac_func... " >&6; }
11595 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11596 $as_echo_n "(cached) " >&6
11598 cat >conftest.
$ac_ext <<_ACEOF
11601 cat confdefs.h
>>conftest.
$ac_ext
11602 cat >>conftest.
$ac_ext <<_ACEOF
11603 /* end confdefs.h. */
11604 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11605 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11606 #define $ac_func innocuous_$ac_func
11608 /* System header to define __stub macros and hopefully few prototypes,
11609 which can conflict with char $ac_func (); below.
11610 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11611 <limits.h> exists even on freestanding compilers. */
11614 # include <limits.h>
11616 # include <assert.h>
11621 /* Override any GCC internal prototype to avoid an error.
11622 Use char because int might match the return type of a GCC
11623 builtin and then its argument prototype would still apply. */
11628 /* The GNU C library defines this for functions which it implements
11629 to always fail with ENOSYS. Some functions are actually named
11630 something starting with __ and the normal name is an alias. */
11631 #if defined __stub_$ac_func || defined __stub___$ac_func
11638 return $ac_func ();
11643 rm -f conftest.
$ac_objext conftest
$ac_exeext
11644 if { (ac_try
="$ac_link"
11645 case "(($ac_try" in
11646 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11647 *) ac_try_echo=$ac_try;;
11649 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11650 $as_echo "$ac_try_echo") >&5
11651 (eval "$ac_link") 2>conftest.er1
11653 grep -v '^ *+' conftest.er1 >conftest.err
11655 cat conftest.err >&5
11656 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11657 (exit $ac_status); } && {
11658 test -z "$ac_c_werror_flag" ||
11659 test ! -s conftest.err
11660 } && test -s conftest$ac_exeext && {
11661 test "$cross_compiling" = yes ||
11662 $as_test_x conftest$ac_exeext
11664 eval "$as_ac_var=yes"
11666 $as_echo "$as_me: failed program was:" >&5
11667 sed 's/^/| /' conftest.$ac_ext >&5
11669 eval "$as_ac_var=no"
11672 rm -rf conftest.dSYM
11673 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11674 conftest$ac_exeext conftest.$ac_ext
11676 ac_res=`eval 'as_val=${'$as_ac_var'}
11677 $as_echo "$as_val"'`
11678 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11679 $as_echo "$ac_res" >&6; }
11680 if test `eval 'as_val=${'$as_ac_var'}
11681 $as_echo "$as_val"'` = yes; then
11682 cat >>confdefs.h <<_ACEOF
11683 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
11689 if test "${GTK_COMPILES}" != "yes"; then
11690 if test "$USE_X_TOOLKIT" != "maybe"; then
11691 { { $as_echo "$as_me:$LINENO: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&5
11692 $as_echo "$as_me: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&2;}
11693 { (exit 1); exit 1; }; };
11698 cat >>confdefs.h <<\_ACEOF
11703 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then
11706 { $as_echo "$as_me:$LINENO: WARNING: Your version of Gtk+ will have problems with
11707 closing open displays. This is no problem if you just use
11708 one display, but if you use more than one and close one of them
11709 Emacs may crash." >&5
11710 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
11711 closing open displays. This is no problem if you just use
11712 one display, but if you use more than one and close one of them
11713 Emacs may crash." >&2;}
11721 if test "${HAVE_GTK}" = "yes"; then
11723 if test "$with_toolkit_scroll_bars" != no; then
11724 with_toolkit_scroll_bars=yes
11727 HAVE_GTK_MULTIDISPLAY=no
11729 for ac_func in gdk_display_open
11731 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
11732 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11733 $as_echo_n "checking for $ac_func... " >&6; }
11734 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11735 $as_echo_n "(cached) " >&6
11737 cat >conftest.$ac_ext <<_ACEOF
11740 cat confdefs.h >>conftest.$ac_ext
11741 cat >>conftest.$ac_ext <<_ACEOF
11742 /* end confdefs.h. */
11743 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11744 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11745 #define $ac_func innocuous_$ac_func
11747 /* System header to define __stub macros and hopefully few prototypes,
11748 which can conflict with char $ac_func (); below.
11749 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11750 <limits.h> exists even on freestanding compilers. */
11753 # include <limits.h>
11755 # include <assert.h>
11760 /* Override any GCC internal prototype to avoid an error.
11761 Use char because int might match the return type of a GCC
11762 builtin and then its argument prototype would still apply. */
11767 /* The GNU C library defines this for functions which it implements
11768 to always fail with ENOSYS. Some functions are actually named
11769 something starting with __ and the normal name is an alias. */
11770 #if defined __stub_$ac_func || defined __stub___$ac_func
11777 return $ac_func ();
11782 rm -f conftest.$ac_objext conftest$ac_exeext
11783 if { (ac_try="$ac_link"
11784 case "(($ac_try" in
11785 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11786 *) ac_try_echo
=$ac_try;;
11788 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11789 $as_echo "$ac_try_echo") >&5
11790 (eval "$ac_link") 2>conftest.er1
11792 grep -v '^ *+' conftest.er1
>conftest.err
11794 cat conftest.err
>&5
11795 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11796 (exit $ac_status); } && {
11797 test -z "$ac_c_werror_flag" ||
11798 test ! -s conftest.err
11799 } && test -s conftest
$ac_exeext && {
11800 test "$cross_compiling" = yes ||
11801 $as_test_x conftest
$ac_exeext
11803 eval "$as_ac_var=yes"
11805 $as_echo "$as_me: failed program was:" >&5
11806 sed 's/^/| /' conftest.
$ac_ext >&5
11808 eval "$as_ac_var=no"
11811 rm -rf conftest.dSYM
11812 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11813 conftest
$ac_exeext conftest.
$ac_ext
11815 ac_res
=`eval 'as_val=${'$as_ac_var'}
11816 $as_echo "$as_val"'`
11817 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11818 $as_echo "$ac_res" >&6; }
11819 if test `eval 'as_val=${'$as_ac_var'}
11820 $as_echo "$as_val"'` = yes; then
11821 cat >>confdefs.h
<<_ACEOF
11822 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11824 HAVE_GTK_MULTIDISPLAY
=yes
11828 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
11830 cat >>confdefs.h
<<\_ACEOF
11831 #define HAVE_GTK_MULTIDISPLAY 1
11836 HAVE_GTK_FILE_SELECTION
=no
11837 { $as_echo "$as_me:$LINENO: checking whether GTK_TYPE_FILE_SELECTION is declared" >&5
11838 $as_echo_n "checking whether GTK_TYPE_FILE_SELECTION is declared... " >&6; }
11839 if test "${ac_cv_have_decl_GTK_TYPE_FILE_SELECTION+set}" = set; then
11840 $as_echo_n "(cached) " >&6
11842 cat >conftest.
$ac_ext <<_ACEOF
11845 cat confdefs.h
>>conftest.
$ac_ext
11846 cat >>conftest.
$ac_ext <<_ACEOF
11847 /* end confdefs.h. */
11848 $ac_includes_default
11849 #include <gtk/gtk.h>
11854 #ifndef GTK_TYPE_FILE_SELECTION
11855 (void) GTK_TYPE_FILE_SELECTION;
11862 rm -f conftest.
$ac_objext
11863 if { (ac_try
="$ac_compile"
11864 case "(($ac_try" in
11865 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11866 *) ac_try_echo=$ac_try;;
11868 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11869 $as_echo "$ac_try_echo") >&5
11870 (eval "$ac_compile") 2>conftest.er1
11872 grep -v '^ *+' conftest.er1 >conftest.err
11874 cat conftest.err >&5
11875 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11876 (exit $ac_status); } && {
11877 test -z "$ac_c_werror_flag" ||
11878 test ! -s conftest.err
11879 } && test -s conftest.$ac_objext; then
11880 ac_cv_have_decl_GTK_TYPE_FILE_SELECTION=yes
11882 $as_echo "$as_me: failed program was:" >&5
11883 sed 's/^/| /' conftest.$ac_ext >&5
11885 ac_cv_have_decl_GTK_TYPE_FILE_SELECTION=no
11888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11890 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" >&5
11891 $as_echo "$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" >&6; }
11892 if test $ac_cv_have_decl_GTK_TYPE_FILE_SELECTION = yes; then
11893 HAVE_GTK_FILE_SELECTION=yes
11895 HAVE_GTK_FILE_SELECTION=no
11898 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
11900 for ac_func in gtk_file_selection_new
11902 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
11903 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11904 $as_echo_n "checking for $ac_func... " >&6; }
11905 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11906 $as_echo_n "(cached) " >&6
11908 cat >conftest.$ac_ext <<_ACEOF
11911 cat confdefs.h >>conftest.$ac_ext
11912 cat >>conftest.$ac_ext <<_ACEOF
11913 /* end confdefs.h. */
11914 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11915 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11916 #define $ac_func innocuous_$ac_func
11918 /* System header to define __stub macros and hopefully few prototypes,
11919 which can conflict with char $ac_func (); below.
11920 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11921 <limits.h> exists even on freestanding compilers. */
11924 # include <limits.h>
11926 # include <assert.h>
11931 /* Override any GCC internal prototype to avoid an error.
11932 Use char because int might match the return type of a GCC
11933 builtin and then its argument prototype would still apply. */
11938 /* The GNU C library defines this for functions which it implements
11939 to always fail with ENOSYS. Some functions are actually named
11940 something starting with __ and the normal name is an alias. */
11941 #if defined __stub_$ac_func || defined __stub___$ac_func
11948 return $ac_func ();
11953 rm -f conftest.$ac_objext conftest$ac_exeext
11954 if { (ac_try="$ac_link"
11955 case "(($ac_try" in
11956 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11957 *) ac_try_echo
=$ac_try;;
11959 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11960 $as_echo "$ac_try_echo") >&5
11961 (eval "$ac_link") 2>conftest.er1
11963 grep -v '^ *+' conftest.er1
>conftest.err
11965 cat conftest.err
>&5
11966 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11967 (exit $ac_status); } && {
11968 test -z "$ac_c_werror_flag" ||
11969 test ! -s conftest.err
11970 } && test -s conftest
$ac_exeext && {
11971 test "$cross_compiling" = yes ||
11972 $as_test_x conftest
$ac_exeext
11974 eval "$as_ac_var=yes"
11976 $as_echo "$as_me: failed program was:" >&5
11977 sed 's/^/| /' conftest.
$ac_ext >&5
11979 eval "$as_ac_var=no"
11982 rm -rf conftest.dSYM
11983 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11984 conftest
$ac_exeext conftest.
$ac_ext
11986 ac_res
=`eval 'as_val=${'$as_ac_var'}
11987 $as_echo "$as_val"'`
11988 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11989 $as_echo "$ac_res" >&6; }
11990 if test `eval 'as_val=${'$as_ac_var'}
11991 $as_echo "$as_val"'` = yes; then
11992 cat >>confdefs.h
<<_ACEOF
11993 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11995 HAVE_GTK_FILE_SELECTION
=yes
11997 HAVE_GTK_FILE_SELECTION
=no
12003 HAVE_GTK_FILE_CHOOSER
=no
12004 { $as_echo "$as_me:$LINENO: checking whether GTK_TYPE_FILE_CHOOSER is declared" >&5
12005 $as_echo_n "checking whether GTK_TYPE_FILE_CHOOSER is declared... " >&6; }
12006 if test "${ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER+set}" = set; then
12007 $as_echo_n "(cached) " >&6
12009 cat >conftest.
$ac_ext <<_ACEOF
12012 cat confdefs.h
>>conftest.
$ac_ext
12013 cat >>conftest.
$ac_ext <<_ACEOF
12014 /* end confdefs.h. */
12015 $ac_includes_default
12016 #include <gtk/gtk.h>
12021 #ifndef GTK_TYPE_FILE_CHOOSER
12022 (void) GTK_TYPE_FILE_CHOOSER;
12029 rm -f conftest.
$ac_objext
12030 if { (ac_try
="$ac_compile"
12031 case "(($ac_try" in
12032 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12033 *) ac_try_echo=$ac_try;;
12035 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12036 $as_echo "$ac_try_echo") >&5
12037 (eval "$ac_compile") 2>conftest.er1
12039 grep -v '^ *+' conftest.er1 >conftest.err
12041 cat conftest.err >&5
12042 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12043 (exit $ac_status); } && {
12044 test -z "$ac_c_werror_flag" ||
12045 test ! -s conftest.err
12046 } && test -s conftest.$ac_objext; then
12047 ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER=yes
12049 $as_echo "$as_me: failed program was:" >&5
12050 sed 's/^/| /' conftest.$ac_ext >&5
12052 ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER=no
12055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12057 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER" >&5
12058 $as_echo "$ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER" >&6; }
12059 if test $ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER = yes; then
12060 HAVE_GTK_FILE_CHOOSER=yes
12062 HAVE_GTK_FILE_CHOOSER=no
12065 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
12067 for ac_func in gtk_file_chooser_dialog_new
12069 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
12070 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12071 $as_echo_n "checking for $ac_func... " >&6; }
12072 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12073 $as_echo_n "(cached) " >&6
12075 cat >conftest.$ac_ext <<_ACEOF
12078 cat confdefs.h >>conftest.$ac_ext
12079 cat >>conftest.$ac_ext <<_ACEOF
12080 /* end confdefs.h. */
12081 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12082 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12083 #define $ac_func innocuous_$ac_func
12085 /* System header to define __stub macros and hopefully few prototypes,
12086 which can conflict with char $ac_func (); below.
12087 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12088 <limits.h> exists even on freestanding compilers. */
12091 # include <limits.h>
12093 # include <assert.h>
12098 /* Override any GCC internal prototype to avoid an error.
12099 Use char because int might match the return type of a GCC
12100 builtin and then its argument prototype would still apply. */
12105 /* The GNU C library defines this for functions which it implements
12106 to always fail with ENOSYS. Some functions are actually named
12107 something starting with __ and the normal name is an alias. */
12108 #if defined __stub_$ac_func || defined __stub___$ac_func
12115 return $ac_func ();
12120 rm -f conftest.$ac_objext conftest$ac_exeext
12121 if { (ac_try="$ac_link"
12122 case "(($ac_try" in
12123 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12124 *) ac_try_echo
=$ac_try;;
12126 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12127 $as_echo "$ac_try_echo") >&5
12128 (eval "$ac_link") 2>conftest.er1
12130 grep -v '^ *+' conftest.er1
>conftest.err
12132 cat conftest.err
>&5
12133 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12134 (exit $ac_status); } && {
12135 test -z "$ac_c_werror_flag" ||
12136 test ! -s conftest.err
12137 } && test -s conftest
$ac_exeext && {
12138 test "$cross_compiling" = yes ||
12139 $as_test_x conftest
$ac_exeext
12141 eval "$as_ac_var=yes"
12143 $as_echo "$as_me: failed program was:" >&5
12144 sed 's/^/| /' conftest.
$ac_ext >&5
12146 eval "$as_ac_var=no"
12149 rm -rf conftest.dSYM
12150 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12151 conftest
$ac_exeext conftest.
$ac_ext
12153 ac_res
=`eval 'as_val=${'$as_ac_var'}
12154 $as_echo "$as_val"'`
12155 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12156 $as_echo "$ac_res" >&6; }
12157 if test `eval 'as_val=${'$as_ac_var'}
12158 $as_echo "$as_val"'` = yes; then
12159 cat >>confdefs.h
<<_ACEOF
12160 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12162 HAVE_GTK_FILE_CHOOSER
=yes
12164 HAVE_GTK_FILE_CHOOSER
=no
12170 if test "$HAVE_GTK_FILE_SELECTION" = yes \
12171 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
12173 cat >>confdefs.h
<<\_ACEOF
12174 #define HAVE_GTK_FILE_BOTH 1
12179 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
12180 HAVE_GTK_AND_PTHREAD
=no
12182 for ac_header
in pthread.h
12184 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12185 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12186 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12187 $as_echo_n "checking for $ac_header... " >&6; }
12188 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12189 $as_echo_n "(cached) " >&6
12191 ac_res
=`eval 'as_val=${'$as_ac_Header'}
12192 $as_echo "$as_val"'`
12193 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12194 $as_echo "$ac_res" >&6; }
12196 # Is the header compilable?
12197 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12198 $as_echo_n "checking $ac_header usability... " >&6; }
12199 cat >conftest.
$ac_ext <<_ACEOF
12202 cat confdefs.h
>>conftest.
$ac_ext
12203 cat >>conftest.
$ac_ext <<_ACEOF
12204 /* end confdefs.h. */
12205 $ac_includes_default
12206 #include <$ac_header>
12208 rm -f conftest.
$ac_objext
12209 if { (ac_try
="$ac_compile"
12210 case "(($ac_try" in
12211 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12212 *) ac_try_echo=$ac_try;;
12214 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12215 $as_echo "$ac_try_echo") >&5
12216 (eval "$ac_compile") 2>conftest.er1
12218 grep -v '^ *+' conftest.er1 >conftest.err
12220 cat conftest.err >&5
12221 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12222 (exit $ac_status); } && {
12223 test -z "$ac_c_werror_flag" ||
12224 test ! -s conftest.err
12225 } && test -s conftest.$ac_objext; then
12226 ac_header_compiler=yes
12228 $as_echo "$as_me: failed program was:" >&5
12229 sed 's/^/| /' conftest.$ac_ext >&5
12231 ac_header_compiler=no
12234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12235 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12236 $as_echo "$ac_header_compiler" >&6; }
12238 # Is the header present?
12239 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12240 $as_echo_n "checking $ac_header presence... " >&6; }
12241 cat >conftest.$ac_ext <<_ACEOF
12244 cat confdefs.h >>conftest.$ac_ext
12245 cat >>conftest.$ac_ext <<_ACEOF
12246 /* end confdefs.h. */
12247 #include <$ac_header>
12249 if { (ac_try="$ac_cpp conftest.$ac_ext"
12250 case "(($ac_try" in
12251 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12252 *) ac_try_echo
=$ac_try;;
12254 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12255 $as_echo "$ac_try_echo") >&5
12256 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12258 grep -v '^ *+' conftest.er1
>conftest.err
12260 cat conftest.err
>&5
12261 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12262 (exit $ac_status); } >/dev
/null
&& {
12263 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12264 test ! -s conftest.err
12266 ac_header_preproc
=yes
12268 $as_echo "$as_me: failed program was:" >&5
12269 sed 's/^/| /' conftest.
$ac_ext >&5
12271 ac_header_preproc
=no
12274 rm -f conftest.err conftest.
$ac_ext
12275 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12276 $as_echo "$ac_header_preproc" >&6; }
12278 # So? What about this header?
12279 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12281 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12282 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12283 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12284 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12285 ac_header_preproc
=yes
12288 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12289 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12290 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12291 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12292 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12293 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12294 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12295 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12296 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12297 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12298 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12299 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12303 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12304 $as_echo_n "checking for $ac_header... " >&6; }
12305 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12306 $as_echo_n "(cached) " >&6
12308 eval "$as_ac_Header=\$ac_header_preproc"
12310 ac_res
=`eval 'as_val=${'$as_ac_Header'}
12311 $as_echo "$as_val"'`
12312 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12313 $as_echo "$ac_res" >&6; }
12316 if test `eval 'as_val=${'$as_ac_Header'}
12317 $as_echo "$as_val"'` = yes; then
12318 cat >>confdefs.h
<<_ACEOF
12319 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12326 if test "$ac_cv_header_pthread_h"; then
12327 { $as_echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
12328 $as_echo_n "checking for pthread_self in -lpthread... " >&6; }
12329 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
12330 $as_echo_n "(cached) " >&6
12332 ac_check_lib_save_LIBS
=$LIBS
12333 LIBS
="-lpthread $LIBS"
12334 cat >conftest.
$ac_ext <<_ACEOF
12337 cat confdefs.h
>>conftest.
$ac_ext
12338 cat >>conftest.
$ac_ext <<_ACEOF
12339 /* end confdefs.h. */
12341 /* Override any GCC internal prototype to avoid an error.
12342 Use char because int might match the return type of a GCC
12343 builtin and then its argument prototype would still apply. */
12347 char pthread_self ();
12351 return pthread_self ();
12356 rm -f conftest.
$ac_objext conftest
$ac_exeext
12357 if { (ac_try
="$ac_link"
12358 case "(($ac_try" in
12359 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12360 *) ac_try_echo=$ac_try;;
12362 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12363 $as_echo "$ac_try_echo") >&5
12364 (eval "$ac_link") 2>conftest.er1
12366 grep -v '^ *+' conftest.er1 >conftest.err
12368 cat conftest.err >&5
12369 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12370 (exit $ac_status); } && {
12371 test -z "$ac_c_werror_flag" ||
12372 test ! -s conftest.err
12373 } && test -s conftest$ac_exeext && {
12374 test "$cross_compiling" = yes ||
12375 $as_test_x conftest$ac_exeext
12377 ac_cv_lib_pthread_pthread_self=yes
12379 $as_echo "$as_me: failed program was:" >&5
12380 sed 's/^/| /' conftest.$ac_ext >&5
12382 ac_cv_lib_pthread_pthread_self=no
12385 rm -rf conftest.dSYM
12386 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12387 conftest$ac_exeext conftest.$ac_ext
12388 LIBS=$ac_check_lib_save_LIBS
12390 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
12391 $as_echo "$ac_cv_lib_pthread_pthread_self" >&6; }
12392 if test $ac_cv_lib_pthread_pthread_self = yes; then
12393 HAVE_GTK_AND_PTHREAD=yes
12397 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
12398 case "${canonical}" in
12400 *) GTK_LIBS="$GTK_LIBS -lpthread" ;;
12403 cat >>confdefs.h <<\_ACEOF
12404 #define HAVE_GTK_AND_PTHREAD 1
12412 if test "${with_dbus}" = "yes"; then
12416 # Extract the first word of "pkg-config", so it can be a program name with args.
12417 set dummy pkg-config; ac_word=$2
12418 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12419 $as_echo_n "checking for $ac_word... " >&6; }
12420 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12421 $as_echo_n "(cached) " >&6
12423 case $PKG_CONFIG in
12425 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12429 for as_dir in $PATH
12432 test -z "$as_dir" && as_dir=.
12433 for ac_exec_ext in '' $ac_executable_extensions; do
12434 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12435 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12436 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12443 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12447 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12448 if test -n "$PKG_CONFIG"; then
12449 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12450 $as_echo "$PKG_CONFIG" >&6; }
12452 { $as_echo "$as_me:$LINENO: result: no" >&5
12453 $as_echo "no" >&6; }
12458 if test "$PKG_CONFIG" = "no" ; then
12461 PKG_CONFIG_MIN_VERSION=0.9.0
12462 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12463 { $as_echo "$as_me:$LINENO: checking for dbus-1 >= 1.0" >&5
12464 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
12466 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
12467 { $as_echo "$as_me:$LINENO: result: yes" >&5
12468 $as_echo "yes" >&6; }
12471 { $as_echo "$as_me:$LINENO: checking DBUS_CFLAGS" >&5
12472 $as_echo_n "checking DBUS_CFLAGS... " >&6; }
12473 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|
sed -e 's,///*,/,g'`
12474 { $as_echo "$as_me:$LINENO: result: $DBUS_CFLAGS" >&5
12475 $as_echo "$DBUS_CFLAGS" >&6; }
12477 { $as_echo "$as_me:$LINENO: checking DBUS_LIBS" >&5
12478 $as_echo_n "checking DBUS_LIBS... " >&6; }
12479 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|
sed -e 's,///*,/,g'`
12480 { $as_echo "$as_me:$LINENO: result: $DBUS_LIBS" >&5
12481 $as_echo "$DBUS_LIBS" >&6; }
12483 { $as_echo "$as_me:$LINENO: result: no" >&5
12484 $as_echo "no" >&6; }
12487 ## If we have a custom action on failure, don't print errors, but
12488 ## do set a variable so people can do so.
12489 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
12496 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12497 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12501 if test $succeeded = yes; then
12507 if test "$HAVE_DBUS" = yes; then
12508 LIBS="$LIBS $DBUS_LIBS"
12510 cat >>confdefs.h <<\_ACEOF
12511 #define HAVE_DBUS 1
12515 for ac_func in dbus_watch_get_unix_fd
12517 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
12518 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12519 $as_echo_n "checking for $ac_func... " >&6; }
12520 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12521 $as_echo_n "(cached) " >&6
12523 cat >conftest.$ac_ext <<_ACEOF
12526 cat confdefs.h >>conftest.$ac_ext
12527 cat >>conftest.$ac_ext <<_ACEOF
12528 /* end confdefs.h. */
12529 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12530 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12531 #define $ac_func innocuous_$ac_func
12533 /* System header to define __stub macros and hopefully few prototypes,
12534 which can conflict with char $ac_func (); below.
12535 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12536 <limits.h> exists even on freestanding compilers. */
12539 # include <limits.h>
12541 # include <assert.h>
12546 /* Override any GCC internal prototype to avoid an error.
12547 Use char because int might match the return type of a GCC
12548 builtin and then its argument prototype would still apply. */
12553 /* The GNU C library defines this for functions which it implements
12554 to always fail with ENOSYS. Some functions are actually named
12555 something starting with __ and the normal name is an alias. */
12556 #if defined __stub_$ac_func || defined __stub___$ac_func
12563 return $ac_func ();
12568 rm -f conftest.$ac_objext conftest$ac_exeext
12569 if { (ac_try="$ac_link"
12570 case "(($ac_try" in
12571 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12572 *) ac_try_echo
=$ac_try;;
12574 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12575 $as_echo "$ac_try_echo") >&5
12576 (eval "$ac_link") 2>conftest.er1
12578 grep -v '^ *+' conftest.er1
>conftest.err
12580 cat conftest.err
>&5
12581 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12582 (exit $ac_status); } && {
12583 test -z "$ac_c_werror_flag" ||
12584 test ! -s conftest.err
12585 } && test -s conftest
$ac_exeext && {
12586 test "$cross_compiling" = yes ||
12587 $as_test_x conftest
$ac_exeext
12589 eval "$as_ac_var=yes"
12591 $as_echo "$as_me: failed program was:" >&5
12592 sed 's/^/| /' conftest.
$ac_ext >&5
12594 eval "$as_ac_var=no"
12597 rm -rf conftest.dSYM
12598 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12599 conftest
$ac_exeext conftest.
$ac_ext
12601 ac_res
=`eval 'as_val=${'$as_ac_var'}
12602 $as_echo "$as_val"'`
12603 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12604 $as_echo "$ac_res" >&6; }
12605 if test `eval 'as_val=${'$as_ac_var'}
12606 $as_echo "$as_val"'` = yes; then
12607 cat >>confdefs.h
<<_ACEOF
12608 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12618 if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
12622 # Extract the first word of "pkg-config", so it can be a program name with args.
12623 set dummy pkg-config
; ac_word
=$2
12624 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12625 $as_echo_n "checking for $ac_word... " >&6; }
12626 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12627 $as_echo_n "(cached) " >&6
12629 case $PKG_CONFIG in
12631 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
12634 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12635 for as_dir
in $PATH
12638 test -z "$as_dir" && as_dir
=.
12639 for ac_exec_ext
in '' $ac_executable_extensions; do
12640 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12641 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
12642 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12649 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
12653 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
12654 if test -n "$PKG_CONFIG"; then
12655 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12656 $as_echo "$PKG_CONFIG" >&6; }
12658 { $as_echo "$as_me:$LINENO: result: no" >&5
12659 $as_echo "no" >&6; }
12664 if test "$PKG_CONFIG" = "no" ; then
12667 PKG_CONFIG_MIN_VERSION
=0.9.0
12668 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12669 { $as_echo "$as_me:$LINENO: checking for gconf-2.0 >= 2.13" >&5
12670 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
12672 if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5; then
12673 { $as_echo "$as_me:$LINENO: result: yes" >&5
12674 $as_echo "yes" >&6; }
12677 { $as_echo "$as_me:$LINENO: checking GCONF_CFLAGS" >&5
12678 $as_echo_n "checking GCONF_CFLAGS... " >&6; }
12679 GCONF_CFLAGS
=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
12680 { $as_echo "$as_me:$LINENO: result: $GCONF_CFLAGS" >&5
12681 $as_echo "$GCONF_CFLAGS" >&6; }
12683 { $as_echo "$as_me:$LINENO: checking GCONF_LIBS" >&5
12684 $as_echo_n "checking GCONF_LIBS... " >&6; }
12685 GCONF_LIBS
=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
12686 { $as_echo "$as_me:$LINENO: result: $GCONF_LIBS" >&5
12687 $as_echo "$GCONF_LIBS" >&6; }
12689 { $as_echo "$as_me:$LINENO: result: no" >&5
12690 $as_echo "no" >&6; }
12693 ## If we have a custom action on failure, don't print errors, but
12694 ## do set a variable so people can do so.
12695 GCONF_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "gconf-2.0 >= 2.13"`
12702 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12703 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12707 if test $succeeded = yes; then
12713 if test "$HAVE_GCONF" = yes; then
12715 cat >>confdefs.h
<<\_ACEOF
12716 #define HAVE_GCONF 1
12724 if test "${with_selinux}" = "yes"; then
12725 { $as_echo "$as_me:$LINENO: checking for lgetfilecon in -lselinux" >&5
12726 $as_echo_n "checking for lgetfilecon in -lselinux... " >&6; }
12727 if test "${ac_cv_lib_selinux_lgetfilecon+set}" = set; then
12728 $as_echo_n "(cached) " >&6
12730 ac_check_lib_save_LIBS
=$LIBS
12731 LIBS
="-lselinux $LIBS"
12732 cat >conftest.
$ac_ext <<_ACEOF
12735 cat confdefs.h
>>conftest.
$ac_ext
12736 cat >>conftest.
$ac_ext <<_ACEOF
12737 /* end confdefs.h. */
12739 /* Override any GCC internal prototype to avoid an error.
12740 Use char because int might match the return type of a GCC
12741 builtin and then its argument prototype would still apply. */
12745 char lgetfilecon ();
12749 return lgetfilecon ();
12754 rm -f conftest.
$ac_objext conftest
$ac_exeext
12755 if { (ac_try
="$ac_link"
12756 case "(($ac_try" in
12757 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12758 *) ac_try_echo=$ac_try;;
12760 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12761 $as_echo "$ac_try_echo") >&5
12762 (eval "$ac_link") 2>conftest.er1
12764 grep -v '^ *+' conftest.er1 >conftest.err
12766 cat conftest.err >&5
12767 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12768 (exit $ac_status); } && {
12769 test -z "$ac_c_werror_flag" ||
12770 test ! -s conftest.err
12771 } && test -s conftest$ac_exeext && {
12772 test "$cross_compiling" = yes ||
12773 $as_test_x conftest$ac_exeext
12775 ac_cv_lib_selinux_lgetfilecon=yes
12777 $as_echo "$as_me: failed program was:" >&5
12778 sed 's/^/| /' conftest.$ac_ext >&5
12780 ac_cv_lib_selinux_lgetfilecon=no
12783 rm -rf conftest.dSYM
12784 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12785 conftest$ac_exeext conftest.$ac_ext
12786 LIBS=$ac_check_lib_save_LIBS
12788 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_lgetfilecon" >&5
12789 $as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; }
12790 if test $ac_cv_lib_selinux_lgetfilecon = yes; then
12791 HAVE_LIBSELINUX=yes
12796 if test "$HAVE_LIBSELINUX" = yes; then
12798 cat >>confdefs.h <<\_ACEOF
12799 #define HAVE_LIBSELINUX 1
12802 LIBSELINUX_LIBS=-lselinux
12808 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
12809 if test "$with_xaw3d" != no; then
12810 { $as_echo "$as_me:$LINENO: checking for xaw3d" >&5
12811 $as_echo_n "checking for xaw3d... " >&6; }
12812 if test "${emacs_cv_xaw3d+set}" = set; then
12813 $as_echo_n "(cached) " >&6
12815 cat >conftest.$ac_ext <<_ACEOF
12818 cat confdefs.h >>conftest.$ac_ext
12819 cat >>conftest.$ac_ext <<_ACEOF
12820 /* end confdefs.h. */
12822 #include <X11/Intrinsic.h>
12823 #include <X11/Xaw3d/Simple.h>
12832 rm -f conftest.$ac_objext conftest$ac_exeext
12833 if { (ac_try="$ac_link"
12834 case "(($ac_try" in
12835 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12836 *) ac_try_echo
=$ac_try;;
12838 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12839 $as_echo "$ac_try_echo") >&5
12840 (eval "$ac_link") 2>conftest.er1
12842 grep -v '^ *+' conftest.er1
>conftest.err
12844 cat conftest.err
>&5
12845 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12846 (exit $ac_status); } && {
12847 test -z "$ac_c_werror_flag" ||
12848 test ! -s conftest.err
12849 } && test -s conftest
$ac_exeext && {
12850 test "$cross_compiling" = yes ||
12851 $as_test_x conftest
$ac_exeext
12855 $as_echo "$as_me: failed program was:" >&5
12856 sed 's/^/| /' conftest.
$ac_ext >&5
12861 rm -rf conftest.dSYM
12862 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12863 conftest
$ac_exeext conftest.
$ac_ext
12869 if test $emacs_cv_xaw3d = yes; then
12870 { $as_echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
12871 $as_echo "yes; using Lucid toolkit" >&6; }
12872 USE_X_TOOLKIT
=LUCID
12875 cat >>confdefs.h
<<\_ACEOF
12876 #define HAVE_XAW3D 1
12880 { $as_echo "$as_me:$LINENO: result: no" >&5
12881 $as_echo "no" >&6; }
12882 { $as_echo "$as_me:$LINENO: checking for libXaw" >&5
12883 $as_echo_n "checking for libXaw... " >&6; }
12884 if test "${emacs_cv_xaw+set}" = set; then
12885 $as_echo_n "(cached) " >&6
12887 cat >conftest.
$ac_ext <<_ACEOF
12890 cat confdefs.h
>>conftest.
$ac_ext
12891 cat >>conftest.
$ac_ext <<_ACEOF
12892 /* end confdefs.h. */
12894 #include <X11/Intrinsic.h>
12895 #include <X11/Xaw/Simple.h>
12904 rm -f conftest.
$ac_objext conftest
$ac_exeext
12905 if { (ac_try
="$ac_link"
12906 case "(($ac_try" in
12907 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12908 *) ac_try_echo=$ac_try;;
12910 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12911 $as_echo "$ac_try_echo") >&5
12912 (eval "$ac_link") 2>conftest.er1
12914 grep -v '^ *+' conftest.er1 >conftest.err
12916 cat conftest.err >&5
12917 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12918 (exit $ac_status); } && {
12919 test -z "$ac_c_werror_flag" ||
12920 test ! -s conftest.err
12921 } && test -s conftest$ac_exeext && {
12922 test "$cross_compiling" = yes ||
12923 $as_test_x conftest$ac_exeext
12927 $as_echo "$as_me: failed program was:" >&5
12928 sed 's/^/| /' conftest.$ac_ext >&5
12933 rm -rf conftest.dSYM
12934 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12935 conftest$ac_exeext conftest.$ac_ext
12938 if test $emacs_cv_xaw = yes; then
12939 { $as_echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
12940 $as_echo "yes; using Lucid toolkit" >&6; }
12941 USE_X_TOOLKIT=LUCID
12942 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
12943 { { $as_echo "$as_me:$LINENO: error: Lucid toolkit requires X11/Xaw include files" >&5
12944 $as_echo "$as_me: error: Lucid toolkit requires X11/Xaw include files" >&2;}
12945 { (exit 1); exit 1; }; }
12947 { $as_echo "$as_me:$LINENO: result: no; do not use toolkit by default" >&5
12948 $as_echo "no; do not use toolkit by default" >&6; }
12954 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
12956 if test "${USE_X_TOOLKIT}" != "none"; then
12957 { $as_echo "$as_me:$LINENO: checking X11 toolkit version" >&5
12958 $as_echo_n "checking X11 toolkit version... " >&6; }
12959 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
12960 $as_echo_n "(cached) " >&6
12962 cat >conftest.$ac_ext <<_ACEOF
12965 cat confdefs.h >>conftest.$ac_ext
12966 cat >>conftest.$ac_ext <<_ACEOF
12967 /* end confdefs.h. */
12968 #include <X11/Intrinsic.h>
12972 #if XtSpecificationRelease < 6
12980 rm -f conftest.$ac_objext conftest$ac_exeext
12981 if { (ac_try="$ac_link"
12982 case "(($ac_try" in
12983 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12984 *) ac_try_echo
=$ac_try;;
12986 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12987 $as_echo "$ac_try_echo") >&5
12988 (eval "$ac_link") 2>conftest.er1
12990 grep -v '^ *+' conftest.er1
>conftest.err
12992 cat conftest.err
>&5
12993 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12994 (exit $ac_status); } && {
12995 test -z "$ac_c_werror_flag" ||
12996 test ! -s conftest.err
12997 } && test -s conftest
$ac_exeext && {
12998 test "$cross_compiling" = yes ||
12999 $as_test_x conftest
$ac_exeext
13001 emacs_cv_x11_toolkit_version_6
=yes
13003 $as_echo "$as_me: failed program was:" >&5
13004 sed 's/^/| /' conftest.
$ac_ext >&5
13006 emacs_cv_x11_toolkit_version_6
=no
13009 rm -rf conftest.dSYM
13010 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
13011 conftest
$ac_exeext conftest.
$ac_ext
13014 HAVE_X11XTR6
=$emacs_cv_x11_toolkit_version_6
13015 if test $emacs_cv_x11_toolkit_version_6 = yes; then
13016 { $as_echo "$as_me:$LINENO: result: 6 or newer" >&5
13017 $as_echo "6 or newer" >&6; }
13019 cat >>confdefs.h
<<\_ACEOF
13020 #define HAVE_X11XTR6 1
13024 { $as_echo "$as_me:$LINENO: result: before 6" >&5
13025 $as_echo "before 6" >&6; }
13029 if test x
$HAVE_X11XTR6 = xyes
; then
13030 LIBS
="-lXt -lSM -lICE $LIBS"
13035 { $as_echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
13036 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
13037 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
13038 $as_echo_n "(cached) " >&6
13040 ac_check_lib_save_LIBS
=$LIBS
13042 cat >conftest.
$ac_ext <<_ACEOF
13045 cat confdefs.h
>>conftest.
$ac_ext
13046 cat >>conftest.
$ac_ext <<_ACEOF
13047 /* end confdefs.h. */
13049 /* Override any GCC internal prototype to avoid an error.
13050 Use char because int might match the return type of a GCC
13051 builtin and then its argument prototype would still apply. */
13055 char XmuConvertStandardSelection ();
13059 return XmuConvertStandardSelection ();
13064 rm -f conftest.
$ac_objext conftest
$ac_exeext
13065 if { (ac_try
="$ac_link"
13066 case "(($ac_try" in
13067 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13068 *) ac_try_echo=$ac_try;;
13070 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13071 $as_echo "$ac_try_echo") >&5
13072 (eval "$ac_link") 2>conftest.er1
13074 grep -v '^ *+' conftest.er1 >conftest.err
13076 cat conftest.err >&5
13077 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13078 (exit $ac_status); } && {
13079 test -z "$ac_c_werror_flag" ||
13080 test ! -s conftest.err
13081 } && test -s conftest$ac_exeext && {
13082 test "$cross_compiling" = yes ||
13083 $as_test_x conftest$ac_exeext
13085 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
13087 $as_echo "$as_me: failed program was:" >&5
13088 sed 's/^/| /' conftest.$ac_ext >&5
13090 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
13093 rm -rf conftest.dSYM
13094 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13095 conftest$ac_exeext conftest.$ac_ext
13096 LIBS=$ac_check_lib_save_LIBS
13098 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
13099 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
13100 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
13101 cat >>confdefs.h <<_ACEOF
13102 #define HAVE_LIBXMU 1
13109 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
13112 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
13113 if test "${HAVE_X11}" = "yes"; then
13114 if test "${USE_X_TOOLKIT}" != "none"; then
13116 { $as_echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
13117 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
13118 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
13119 $as_echo_n "(cached) " >&6
13121 ac_check_lib_save_LIBS=$LIBS
13122 LIBS="-lXext $LIBS"
13123 cat >conftest.$ac_ext <<_ACEOF
13126 cat confdefs.h >>conftest.$ac_ext
13127 cat >>conftest.$ac_ext <<_ACEOF
13128 /* end confdefs.h. */
13130 /* Override any GCC internal prototype to avoid an error.
13131 Use char because int might match the return type of a GCC
13132 builtin and then its argument prototype would still apply. */
13136 char XShapeQueryExtension ();
13140 return XShapeQueryExtension ();
13145 rm -f conftest.$ac_objext conftest$ac_exeext
13146 if { (ac_try="$ac_link"
13147 case "(($ac_try" in
13148 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13149 *) ac_try_echo
=$ac_try;;
13151 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
13152 $as_echo "$ac_try_echo") >&5
13153 (eval "$ac_link") 2>conftest.er1
13155 grep -v '^ *+' conftest.er1
>conftest.err
13157 cat conftest.err
>&5
13158 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13159 (exit $ac_status); } && {
13160 test -z "$ac_c_werror_flag" ||
13161 test ! -s conftest.err
13162 } && test -s conftest
$ac_exeext && {
13163 test "$cross_compiling" = yes ||
13164 $as_test_x conftest
$ac_exeext
13166 ac_cv_lib_Xext_XShapeQueryExtension
=yes
13168 $as_echo "$as_me: failed program was:" >&5
13169 sed 's/^/| /' conftest.
$ac_ext >&5
13171 ac_cv_lib_Xext_XShapeQueryExtension
=no
13174 rm -rf conftest.dSYM
13175 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
13176 conftest
$ac_exeext conftest.
$ac_ext
13177 LIBS
=$ac_check_lib_save_LIBS
13179 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
13180 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
13181 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
13182 cat >>confdefs.h
<<_ACEOF
13183 #define HAVE_LIBXEXT 1
13186 LIBS
="-lXext $LIBS"
13193 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
13194 { $as_echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
13195 $as_echo_n "checking for Motif version 2.1... " >&6; }
13196 if test "${emacs_cv_motif_version_2_1+set}" = set; then
13197 $as_echo_n "(cached) " >&6
13199 cat >conftest.
$ac_ext <<_ACEOF
13202 cat confdefs.h
>>conftest.
$ac_ext
13203 cat >>conftest.
$ac_ext <<_ACEOF
13204 /* end confdefs.h. */
13209 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
13212 Motif version prior to 2.1.
13218 rm -f conftest.
$ac_objext
13219 if { (ac_try
="$ac_compile"
13220 case "(($ac_try" in
13221 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13222 *) ac_try_echo=$ac_try;;
13224 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13225 $as_echo "$ac_try_echo") >&5
13226 (eval "$ac_compile") 2>conftest.er1
13228 grep -v '^ *+' conftest.er1 >conftest.err
13230 cat conftest.err >&5
13231 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13232 (exit $ac_status); } && {
13233 test -z "$ac_c_werror_flag" ||
13234 test ! -s conftest.err
13235 } && test -s conftest.$ac_objext; then
13236 emacs_cv_motif_version_2_1=yes
13238 $as_echo "$as_me: failed program was:" >&5
13239 sed 's/^/| /' conftest.$ac_ext >&5
13241 emacs_cv_motif_version_2_1=no
13244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13246 { $as_echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
13247 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
13248 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
13249 if test $emacs_cv_motif_version_2_1 = yes; then
13252 cat >>confdefs.h <<\_ACEOF
13253 #define HAVE_MOTIF_2_1 1
13256 { $as_echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
13257 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
13258 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
13259 $as_echo_n "(cached) " >&6
13261 ac_check_lib_save_LIBS=$LIBS
13263 cat >conftest.$ac_ext <<_ACEOF
13266 cat confdefs.h >>conftest.$ac_ext
13267 cat >>conftest.$ac_ext <<_ACEOF
13268 /* end confdefs.h. */
13270 /* Override any GCC internal prototype to avoid an error.
13271 Use char because int might match the return type of a GCC
13272 builtin and then its argument prototype would still apply. */
13276 char XpCreateContext ();
13280 return XpCreateContext ();
13285 rm -f conftest.$ac_objext conftest$ac_exeext
13286 if { (ac_try="$ac_link"
13287 case "(($ac_try" in
13288 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13289 *) ac_try_echo
=$ac_try;;
13291 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
13292 $as_echo "$ac_try_echo") >&5
13293 (eval "$ac_link") 2>conftest.er1
13295 grep -v '^ *+' conftest.er1
>conftest.err
13297 cat conftest.err
>&5
13298 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13299 (exit $ac_status); } && {
13300 test -z "$ac_c_werror_flag" ||
13301 test ! -s conftest.err
13302 } && test -s conftest
$ac_exeext && {
13303 test "$cross_compiling" = yes ||
13304 $as_test_x conftest
$ac_exeext
13306 ac_cv_lib_Xp_XpCreateContext
=yes
13308 $as_echo "$as_me: failed program was:" >&5
13309 sed 's/^/| /' conftest.
$ac_ext >&5
13311 ac_cv_lib_Xp_XpCreateContext
=no
13314 rm -rf conftest.dSYM
13315 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
13316 conftest
$ac_exeext conftest.
$ac_ext
13317 LIBS
=$ac_check_lib_save_LIBS
13319 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
13320 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
13321 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
13325 if test ${HAVE_LIBXP} = yes; then
13327 cat >>confdefs.h
<<\_ACEOF
13328 #define HAVE_LIBXP 1
13333 { $as_echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
13334 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
13335 if test "${emacs_cv_lesstif+set}" = set; then
13336 $as_echo_n "(cached) " >&6
13338 # We put this in CFLAGS temporarily to precede other -I options
13339 # that might be in CFLAGS temporarily.
13340 # We put this in CPPFLAGS where it precedes the other -I options.
13341 OLD_CPPFLAGS
=$CPPFLAGS
13343 CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
13344 CFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
13345 cat >conftest.
$ac_ext <<_ACEOF
13348 cat confdefs.h
>>conftest.
$ac_ext
13349 cat >>conftest.
$ac_ext <<_ACEOF
13350 /* end confdefs.h. */
13351 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
13360 rm -f conftest.
$ac_objext
13361 if { (ac_try
="$ac_compile"
13362 case "(($ac_try" in
13363 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13364 *) ac_try_echo=$ac_try;;
13366 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13367 $as_echo "$ac_try_echo") >&5
13368 (eval "$ac_compile") 2>conftest.er1
13370 grep -v '^ *+' conftest.er1 >conftest.err
13372 cat conftest.err >&5
13373 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13374 (exit $ac_status); } && {
13375 test -z "$ac_c_werror_flag" ||
13376 test ! -s conftest.err
13377 } && test -s conftest.$ac_objext; then
13378 emacs_cv_lesstif=yes
13380 $as_echo "$as_me: failed program was:" >&5
13381 sed 's/^/| /' conftest.$ac_ext >&5
13383 emacs_cv_lesstif=no
13386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13388 { $as_echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
13389 $as_echo "$emacs_cv_lesstif" >&6; }
13390 if test $emacs_cv_lesstif = yes; then
13391 # Make sure this -I option remains in CPPFLAGS after it is set
13392 # back to REAL_CPPFLAGS.
13393 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
13394 # have those other -I options anyway. Ultimately, having this
13395 # directory ultimately in CPPFLAGS will be enough.
13396 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
13397 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
13400 CPPFLAGS=$OLD_CPPFLAGS
13407 USE_TOOLKIT_SCROLL_BARS=no
13408 if test "${with_toolkit_scroll_bars}" != "no"; then
13409 if test "${USE_X_TOOLKIT}" != "none"; then
13410 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
13411 cat >>confdefs.h <<\_ACEOF
13412 #define USE_TOOLKIT_SCROLL_BARS 1
13416 USE_TOOLKIT_SCROLL_BARS=yes
13417 elif test "${HAVE_XAW3D}" = "yes"; then
13418 cat >>confdefs.h <<\_ACEOF
13419 #define USE_TOOLKIT_SCROLL_BARS 1
13422 USE_TOOLKIT_SCROLL_BARS=yes
13424 elif test "${HAVE_GTK}" = "yes"; then
13425 cat >>confdefs.h <<\_ACEOF
13426 #define USE_TOOLKIT_SCROLL_BARS 1
13429 USE_TOOLKIT_SCROLL_BARS=yes
13430 elif test "${HAVE_NS}" = "yes"; then
13431 cat >>confdefs.h <<\_ACEOF
13432 #define USE_TOOLKIT_SCROLL_BARS 1
13435 USE_TOOLKIT_SCROLL_BARS=yes
13439 cat >conftest.$ac_ext <<_ACEOF
13442 cat confdefs.h >>conftest.$ac_ext
13443 cat >>conftest.$ac_ext <<_ACEOF
13444 /* end confdefs.h. */
13446 #include <X11/Xlib.h>
13447 #include <X11/Xresource.h>
13456 rm -f conftest.$ac_objext
13457 if { (ac_try="$ac_compile"
13458 case "(($ac_try" in
13459 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13460 *) ac_try_echo
=$ac_try;;
13462 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
13463 $as_echo "$ac_try_echo") >&5
13464 (eval "$ac_compile") 2>conftest.er1
13466 grep -v '^ *+' conftest.er1
>conftest.err
13468 cat conftest.err
>&5
13469 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13470 (exit $ac_status); } && {
13471 test -z "$ac_c_werror_flag" ||
13472 test ! -s conftest.err
13473 } && test -s conftest.
$ac_objext; then
13476 cat >>confdefs.h
<<\_ACEOF
13481 $as_echo "$as_me: failed program was:" >&5
13482 sed 's/^/| /' conftest.
$ac_ext >&5
13487 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13490 if test "${with_xim}" != "no"; then
13492 cat >>confdefs.h
<<\_ACEOF
13499 if test "${HAVE_XIM}" != "no"; then
13500 late_CFLAGS
=$CFLAGS
13501 if test "$GCC" = yes; then
13502 CFLAGS
="$CFLAGS --pedantic-errors"
13504 cat >conftest.
$ac_ext <<_ACEOF
13507 cat confdefs.h
>>conftest.
$ac_ext
13508 cat >>conftest.
$ac_ext <<_ACEOF
13509 /* end confdefs.h. */
13511 #include <X11/Xlib.h>
13512 #include <X11/Xresource.h>
13521 XPointer *client_data;
13523 /* If we're not using GCC, it's probably not XFree86, and this is
13524 probably right, but we can't use something like --pedantic-errors. */
13525 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
13526 char*, XIMProc, XPointer*);
13528 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
13534 rm -f conftest.
$ac_objext
13535 if { (ac_try
="$ac_compile"
13536 case "(($ac_try" in
13537 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13538 *) ac_try_echo=$ac_try;;
13540 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13541 $as_echo "$ac_try_echo") >&5
13542 (eval "$ac_compile") 2>conftest.er1
13544 grep -v '^ *+' conftest.er1 >conftest.err
13546 cat conftest.err >&5
13547 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13548 (exit $ac_status); } && {
13549 test -z "$ac_c_werror_flag" ||
13550 test ! -s conftest.err
13551 } && test -s conftest.$ac_objext; then
13552 emacs_cv_arg6_star=yes
13554 $as_echo "$as_me: failed program was:" >&5
13555 sed 's/^/| /' conftest.$ac_ext >&5
13560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13562 if test "$emacs_cv_arg6_star" = yes; then
13563 cat >>confdefs.h <<\_ACEOF
13564 #define XRegisterIMInstantiateCallback_arg6 XPointer*
13568 cat >>confdefs.h <<\_ACEOF
13569 #define XRegisterIMInstantiateCallback_arg6 XPointer
13573 CFLAGS=$late_CFLAGS
13576 ### Start of font-backend (under any platform) section.
13577 # (nothing here yet -- this is a placeholder)
13578 ### End of font-backend (under any platform) section.
13580 ### Start of font-backend (under X11) section.
13581 if test "${HAVE_X11}" = "yes"; then
13585 # Extract the first word of "pkg-config", so it can be a program name with args.
13586 set dummy pkg-config; ac_word=$2
13587 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13588 $as_echo_n "checking for $ac_word... " >&6; }
13589 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13590 $as_echo_n "(cached) " >&6
13592 case $PKG_CONFIG in
13594 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13598 for as_dir in $PATH
13601 test -z "$as_dir" && as_dir=.
13602 for ac_exec_ext in '' $ac_executable_extensions; do
13603 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13604 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13605 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13612 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13616 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13617 if test -n "$PKG_CONFIG"; then
13618 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13619 $as_echo "$PKG_CONFIG" >&6; }
13621 { $as_echo "$as_me:$LINENO: result: no" >&5
13622 $as_echo "no" >&6; }
13627 if test "$PKG_CONFIG" = "no" ; then
13630 PKG_CONFIG_MIN_VERSION=0.9.0
13631 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13632 { $as_echo "$as_me:$LINENO: checking for fontconfig >= 2.2.0" >&5
13633 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
13635 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5; then
13636 { $as_echo "$as_me:$LINENO: result: yes" >&5
13637 $as_echo "yes" >&6; }
13640 { $as_echo "$as_me:$LINENO: checking FONTCONFIG_CFLAGS" >&5
13641 $as_echo_n "checking FONTCONFIG_CFLAGS... " >&6; }
13642 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0"|
sed -e 's,///*,/,g'`
13643 { $as_echo "$as_me:$LINENO: result: $FONTCONFIG_CFLAGS" >&5
13644 $as_echo "$FONTCONFIG_CFLAGS" >&6; }
13646 { $as_echo "$as_me:$LINENO: checking FONTCONFIG_LIBS" >&5
13647 $as_echo_n "checking FONTCONFIG_LIBS... " >&6; }
13648 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.2.0"|
sed -e 's,///*,/,g'`
13649 { $as_echo "$as_me:$LINENO: result: $FONTCONFIG_LIBS" >&5
13650 $as_echo "$FONTCONFIG_LIBS" >&6; }
13652 { $as_echo "$as_me:$LINENO: result: no" >&5
13653 $as_echo "no" >&6; }
13654 FONTCONFIG_CFLAGS=""
13656 ## If we have a custom action on failure, don't print errors, but
13657 ## do set a variable so people can do so.
13658 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.2.0"`
13665 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13666 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13670 if test $succeeded = yes; then
13677 ## Use -lXft if available, unless `--with-xft=no
'.
13679 if test "${HAVE_FC}" = "no" || test "x${with_x}" = "xno"; then
13682 if test "x${with_xft}" != "xno"; then
13687 # Extract the first word of "pkg-config", so it can be a program name with args.
13688 set dummy pkg-config; ac_word=$2
13689 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13690 $as_echo_n "checking for $ac_word... " >&6; }
13691 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13692 $as_echo_n "(cached) " >&6
13694 case $PKG_CONFIG in
13696 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13700 for as_dir in $PATH
13703 test -z "$as_dir" && as_dir=.
13704 for ac_exec_ext in '' $ac_executable_extensions; do
13705 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13706 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13707 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13714 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13718 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13719 if test -n "$PKG_CONFIG"; then
13720 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13721 $as_echo "$PKG_CONFIG" >&6; }
13723 { $as_echo "$as_me:$LINENO: result: no" >&5
13724 $as_echo "no" >&6; }
13729 if test "$PKG_CONFIG" = "no" ; then
13732 PKG_CONFIG_MIN_VERSION=0.9.0
13733 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13734 { $as_echo "$as_me:$LINENO: checking for xft >= 0.13.0" >&5
13735 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
13737 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
13738 { $as_echo "$as_me:$LINENO: result: yes" >&5
13739 $as_echo "yes" >&6; }
13742 { $as_echo "$as_me:$LINENO: checking XFT_CFLAGS" >&5
13743 $as_echo_n "checking XFT_CFLAGS... " >&6; }
13744 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's
,///*,/,g
'`
13745 { $as_echo "$as_me:$LINENO: result: $XFT_CFLAGS" >&5
13746 $as_echo "$XFT_CFLAGS" >&6; }
13748 { $as_echo "$as_me:$LINENO: checking XFT_LIBS" >&5
13749 $as_echo_n "checking XFT_LIBS... " >&6; }
13750 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's
,///*,/,g
'`
13751 { $as_echo "$as_me:$LINENO: result: $XFT_LIBS" >&5
13752 $as_echo "$XFT_LIBS" >&6; }
13754 { $as_echo "$as_me:$LINENO: result: no" >&5
13755 $as_echo "no" >&6; }
13758 ## If we have a custom action on failure, don't print errors
, but
13759 ## do set a variable so people can do so.
13760 XFT_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
13767 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13768 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13772 if test $succeeded = yes; then
13778 ## Because xftfont.c uses XRenderQueryExtension, we also
13779 ## need to link to -lXrender.
13781 { $as_echo "$as_me:$LINENO: checking for XRenderQueryExtension in -lXrender" >&5
13782 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
13783 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then
13784 $as_echo_n "(cached) " >&6
13786 ac_check_lib_save_LIBS
=$LIBS
13787 LIBS
="-lXrender $LIBS"
13788 cat >conftest.
$ac_ext <<_ACEOF
13791 cat confdefs.h
>>conftest.
$ac_ext
13792 cat >>conftest.
$ac_ext <<_ACEOF
13793 /* end confdefs.h. */
13795 /* Override any GCC internal prototype to avoid an error.
13796 Use char because int might match the return type of a GCC
13797 builtin and then its argument prototype would still apply. */
13801 char XRenderQueryExtension ();
13805 return XRenderQueryExtension ();
13810 rm -f conftest.
$ac_objext conftest
$ac_exeext
13811 if { (ac_try
="$ac_link"
13812 case "(($ac_try" in
13813 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13814 *) ac_try_echo=$ac_try;;
13816 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13817 $as_echo "$ac_try_echo") >&5
13818 (eval "$ac_link") 2>conftest.er1
13820 grep -v '^ *+' conftest.er1 >conftest.err
13822 cat conftest.err >&5
13823 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13824 (exit $ac_status); } && {
13825 test -z "$ac_c_werror_flag" ||
13826 test ! -s conftest.err
13827 } && test -s conftest$ac_exeext && {
13828 test "$cross_compiling" = yes ||
13829 $as_test_x conftest$ac_exeext
13831 ac_cv_lib_Xrender_XRenderQueryExtension=yes
13833 $as_echo "$as_me: failed program was:" >&5
13834 sed 's/^/| /' conftest.$ac_ext >&5
13836 ac_cv_lib_Xrender_XRenderQueryExtension=no
13839 rm -rf conftest.dSYM
13840 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13841 conftest$ac_exeext conftest.$ac_ext
13842 LIBS=$ac_check_lib_save_LIBS
13844 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
13845 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
13846 if test $ac_cv_lib_Xrender_XRenderQueryExtension = yes; then
13850 if test "$HAVE_XFT" != no && test "$HAVE_XRENDER" != no; then
13851 OLD_CPPFLAGS="$CPPFLAGS"
13852 OLD_CFLAGS="$CFLAGS"
13854 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
13855 CFLAGS="$CFLAGS $XFT_CFLAGS"
13856 XFT_LIBS="-lXrender $XFT_LIBS"
13857 LIBS="$XFT_LIBS $LIBS"
13858 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
13859 { $as_echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
13860 $as_echo_n "checking for X11/Xft/Xft.h... " >&6; }
13861 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
13862 $as_echo_n "(cached) " >&6
13864 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
13865 $as_echo "$ac_cv_header_X11_Xft_Xft_h" >&6; }
13867 # Is the header compilable?
13868 { $as_echo "$as_me:$LINENO: checking X11/Xft/Xft.h usability" >&5
13869 $as_echo_n "checking X11/Xft/Xft.h usability... " >&6; }
13870 cat >conftest.$ac_ext <<_ACEOF
13873 cat confdefs.h >>conftest.$ac_ext
13874 cat >>conftest.$ac_ext <<_ACEOF
13875 /* end confdefs.h. */
13876 $ac_includes_default
13877 #include <X11/Xft/Xft.h>
13879 rm -f conftest.$ac_objext
13880 if { (ac_try="$ac_compile"
13881 case "(($ac_try" in
13882 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13883 *) ac_try_echo
=$ac_try;;
13885 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
13886 $as_echo "$ac_try_echo") >&5
13887 (eval "$ac_compile") 2>conftest.er1
13889 grep -v '^ *+' conftest.er1
>conftest.err
13891 cat conftest.err
>&5
13892 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13893 (exit $ac_status); } && {
13894 test -z "$ac_c_werror_flag" ||
13895 test ! -s conftest.err
13896 } && test -s conftest.
$ac_objext; then
13897 ac_header_compiler
=yes
13899 $as_echo "$as_me: failed program was:" >&5
13900 sed 's/^/| /' conftest.
$ac_ext >&5
13902 ac_header_compiler
=no
13905 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13906 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13907 $as_echo "$ac_header_compiler" >&6; }
13909 # Is the header present?
13910 { $as_echo "$as_me:$LINENO: checking X11/Xft/Xft.h presence" >&5
13911 $as_echo_n "checking X11/Xft/Xft.h presence... " >&6; }
13912 cat >conftest.
$ac_ext <<_ACEOF
13915 cat confdefs.h
>>conftest.
$ac_ext
13916 cat >>conftest.
$ac_ext <<_ACEOF
13917 /* end confdefs.h. */
13918 #include <X11/Xft/Xft.h>
13920 if { (ac_try
="$ac_cpp conftest.$ac_ext"
13921 case "(($ac_try" in
13922 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13923 *) ac_try_echo=$ac_try;;
13925 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13926 $as_echo "$ac_try_echo") >&5
13927 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13929 grep -v '^ *+' conftest.er1 >conftest.err
13931 cat conftest.err >&5
13932 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13933 (exit $ac_status); } >/dev/null && {
13934 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13935 test ! -s conftest.err
13937 ac_header_preproc=yes
13939 $as_echo "$as_me: failed program was:" >&5
13940 sed 's/^/| /' conftest.$ac_ext >&5
13942 ac_header_preproc=no
13945 rm -f conftest.err conftest.$ac_ext
13946 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13947 $as_echo "$ac_header_preproc" >&6; }
13949 # So? What about this header?
13950 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13952 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&5
13953 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13954 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&5
13955 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&2;}
13956 ac_header_preproc=yes
13959 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&5
13960 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&2;}
13961 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&5
13962 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&2;}
13963 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&5
13964 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&2;}
13965 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&5
13966 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&2;}
13967 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&5
13968 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&2;}
13969 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&5
13970 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&2;}
13974 { $as_echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
13975 $as_echo_n "checking for X11/Xft/Xft.h... " >&6; }
13976 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
13977 $as_echo_n "(cached) " >&6
13979 ac_cv_header_X11_Xft_Xft_h=$ac_header_preproc
13981 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
13982 $as_echo "$ac_cv_header_X11_Xft_Xft_h" >&6; }
13985 if test $ac_cv_header_X11_Xft_Xft_h = yes; then
13986 { $as_echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5
13987 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
13988 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then
13989 $as_echo_n "(cached) " >&6
13991 ac_check_lib_save_LIBS=$LIBS
13992 LIBS="-lXft $XFT_LIBS $LIBS"
13993 cat >conftest.$ac_ext <<_ACEOF
13996 cat confdefs.h >>conftest.$ac_ext
13997 cat >>conftest.$ac_ext <<_ACEOF
13998 /* end confdefs.h. */
14000 /* Override any GCC internal prototype to avoid an error.
14001 Use char because int might match the return type of a GCC
14002 builtin and then its argument prototype would still apply. */
14006 char XftFontOpen ();
14010 return XftFontOpen ();
14015 rm -f conftest.$ac_objext conftest$ac_exeext
14016 if { (ac_try="$ac_link"
14017 case "(($ac_try" in
14018 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14019 *) ac_try_echo
=$ac_try;;
14021 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
14022 $as_echo "$ac_try_echo") >&5
14023 (eval "$ac_link") 2>conftest.er1
14025 grep -v '^ *+' conftest.er1
>conftest.err
14027 cat conftest.err
>&5
14028 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14029 (exit $ac_status); } && {
14030 test -z "$ac_c_werror_flag" ||
14031 test ! -s conftest.err
14032 } && test -s conftest
$ac_exeext && {
14033 test "$cross_compiling" = yes ||
14034 $as_test_x conftest
$ac_exeext
14036 ac_cv_lib_Xft_XftFontOpen
=yes
14038 $as_echo "$as_me: failed program was:" >&5
14039 sed 's/^/| /' conftest.
$ac_ext >&5
14041 ac_cv_lib_Xft_XftFontOpen
=no
14044 rm -rf conftest.dSYM
14045 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14046 conftest
$ac_exeext conftest.
$ac_ext
14047 LIBS
=$ac_check_lib_save_LIBS
14049 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftFontOpen" >&5
14050 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
14051 if test $ac_cv_lib_Xft_XftFontOpen = yes; then
14059 if test "${HAVE_XFT}" = "yes"; then
14061 cat >>confdefs.h
<<\_ACEOF
14066 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $XFT_CFLAGS"
14068 CPPFLAGS
="$OLD_CPPFLAGS"
14069 CFLAGS
="$OLD_CFLAGS"
14071 fi # "${HAVE_XFT}" = "yes"
14072 fi # "$HAVE_XFT" != no
14073 fi # "x${with_xft}" != "xno"
14075 if test "$HAVE_XFT" != "yes"; then
14081 ## We used to allow building with FreeType and without Xft.
14082 ## However, the ftx font backend driver is not in good shape.
14083 if test "${HAVE_XFT}" = "yes"; then
14090 if test "${HAVE_FREETYPE}" = "yes"; then
14092 cat >>confdefs.h
<<\_ACEOF
14093 #define HAVE_FREETYPE 1
14096 if test "${with_libotf}" != "no"; then
14100 # Extract the first word of "pkg-config", so it can be a program name with args.
14101 set dummy pkg-config
; ac_word
=$2
14102 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14103 $as_echo_n "checking for $ac_word... " >&6; }
14104 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
14105 $as_echo_n "(cached) " >&6
14107 case $PKG_CONFIG in
14109 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
14112 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14113 for as_dir
in $PATH
14116 test -z "$as_dir" && as_dir
=.
14117 for ac_exec_ext
in '' $ac_executable_extensions; do
14118 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14119 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
14120 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14127 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
14131 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
14132 if test -n "$PKG_CONFIG"; then
14133 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
14134 $as_echo "$PKG_CONFIG" >&6; }
14136 { $as_echo "$as_me:$LINENO: result: no" >&5
14137 $as_echo "no" >&6; }
14142 if test "$PKG_CONFIG" = "no" ; then
14145 PKG_CONFIG_MIN_VERSION
=0.9.0
14146 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14147 { $as_echo "$as_me:$LINENO: checking for libotf" >&5
14148 $as_echo_n "checking for libotf... " >&6; }
14150 if $PKG_CONFIG --exists "libotf" 2>&5; then
14151 { $as_echo "$as_me:$LINENO: result: yes" >&5
14152 $as_echo "yes" >&6; }
14155 { $as_echo "$as_me:$LINENO: checking LIBOTF_CFLAGS" >&5
14156 $as_echo_n "checking LIBOTF_CFLAGS... " >&6; }
14157 LIBOTF_CFLAGS
=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
14158 { $as_echo "$as_me:$LINENO: result: $LIBOTF_CFLAGS" >&5
14159 $as_echo "$LIBOTF_CFLAGS" >&6; }
14161 { $as_echo "$as_me:$LINENO: checking LIBOTF_LIBS" >&5
14162 $as_echo_n "checking LIBOTF_LIBS... " >&6; }
14163 LIBOTF_LIBS
=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
14164 { $as_echo "$as_me:$LINENO: result: $LIBOTF_LIBS" >&5
14165 $as_echo "$LIBOTF_LIBS" >&6; }
14167 { $as_echo "$as_me:$LINENO: result: no" >&5
14168 $as_echo "no" >&6; }
14171 ## If we have a custom action on failure, don't print errors, but
14172 ## do set a variable so people can do so.
14173 LIBOTF_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
14180 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14181 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14185 if test $succeeded = yes; then
14191 if test "$HAVE_LIBOTF" = "yes"; then
14193 cat >>confdefs.h
<<\_ACEOF
14194 #define HAVE_LIBOTF 1
14197 { $as_echo "$as_me:$LINENO: checking for OTF_get_variation_glyphs in -lotf" >&5
14198 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
14199 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then
14200 $as_echo_n "(cached) " >&6
14202 ac_check_lib_save_LIBS
=$LIBS
14204 cat >conftest.
$ac_ext <<_ACEOF
14207 cat confdefs.h
>>conftest.
$ac_ext
14208 cat >>conftest.
$ac_ext <<_ACEOF
14209 /* end confdefs.h. */
14211 /* Override any GCC internal prototype to avoid an error.
14212 Use char because int might match the return type of a GCC
14213 builtin and then its argument prototype would still apply. */
14217 char OTF_get_variation_glyphs ();
14221 return OTF_get_variation_glyphs ();
14226 rm -f conftest.
$ac_objext conftest
$ac_exeext
14227 if { (ac_try
="$ac_link"
14228 case "(($ac_try" in
14229 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14230 *) ac_try_echo=$ac_try;;
14232 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14233 $as_echo "$ac_try_echo") >&5
14234 (eval "$ac_link") 2>conftest.er1
14236 grep -v '^ *+' conftest.er1 >conftest.err
14238 cat conftest.err >&5
14239 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14240 (exit $ac_status); } && {
14241 test -z "$ac_c_werror_flag" ||
14242 test ! -s conftest.err
14243 } && test -s conftest$ac_exeext && {
14244 test "$cross_compiling" = yes ||
14245 $as_test_x conftest$ac_exeext
14247 ac_cv_lib_otf_OTF_get_variation_glyphs=yes
14249 $as_echo "$as_me: failed program was:" >&5
14250 sed 's/^/| /' conftest.$ac_ext >&5
14252 ac_cv_lib_otf_OTF_get_variation_glyphs=no
14255 rm -rf conftest.dSYM
14256 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14257 conftest$ac_exeext conftest.$ac_ext
14258 LIBS=$ac_check_lib_save_LIBS
14260 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
14261 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
14262 if test $ac_cv_lib_otf_OTF_get_variation_glyphs = yes; then
14263 HAVE_OTF_GET_VARIATION_GLYPHS=yes
14265 HAVE_OTF_GET_VARIATION_GLYPHS=no
14268 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
14270 cat >>confdefs.h <<\_ACEOF
14271 #define HAVE_OTF_GET_VARIATION_GLYPHS 1
14280 if test "${HAVE_LIBOTF}" = yes; then
14281 if test "${with_m17n_flt}" != "no"; then
14285 # Extract the first word of "pkg-config", so it can be a program name with args.
14286 set dummy pkg-config; ac_word=$2
14287 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14288 $as_echo_n "checking for $ac_word... " >&6; }
14289 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
14290 $as_echo_n "(cached) " >&6
14292 case $PKG_CONFIG in
14294 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14298 for as_dir in $PATH
14301 test -z "$as_dir" && as_dir=.
14302 for ac_exec_ext in '' $ac_executable_extensions; do
14303 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14304 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14305 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14312 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
14316 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
14317 if test -n "$PKG_CONFIG"; then
14318 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
14319 $as_echo "$PKG_CONFIG" >&6; }
14321 { $as_echo "$as_me:$LINENO: result: no" >&5
14322 $as_echo "no" >&6; }
14327 if test "$PKG_CONFIG" = "no" ; then
14330 PKG_CONFIG_MIN_VERSION=0.9.0
14331 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14332 { $as_echo "$as_me:$LINENO: checking for m17n-flt" >&5
14333 $as_echo_n "checking for m17n-flt... " >&6; }
14335 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
14336 { $as_echo "$as_me:$LINENO: result: yes" >&5
14337 $as_echo "yes" >&6; }
14340 { $as_echo "$as_me:$LINENO: checking M17N_FLT_CFLAGS" >&5
14341 $as_echo_n "checking M17N_FLT_CFLAGS... " >&6; }
14342 M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt"|
sed -e 's,///*,/,g'`
14343 { $as_echo "$as_me:$LINENO: result: $M17N_FLT_CFLAGS" >&5
14344 $as_echo "$M17N_FLT_CFLAGS" >&6; }
14346 { $as_echo "$as_me:$LINENO: checking M17N_FLT_LIBS" >&5
14347 $as_echo_n "checking M17N_FLT_LIBS... " >&6; }
14348 M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt"|
sed -e 's,///*,/,g'`
14349 { $as_echo "$as_me:$LINENO: result: $M17N_FLT_LIBS" >&5
14350 $as_echo "$M17N_FLT_LIBS" >&6; }
14352 { $as_echo "$as_me:$LINENO: result: no" >&5
14353 $as_echo "no" >&6; }
14356 ## If we have a custom action on failure, don't print errors, but
14357 ## do set a variable so people can do so.
14358 M17N_FLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
14365 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14366 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14370 if test $succeeded = yes; then
14376 if test "$HAVE_M17N_FLT" = "yes"; then
14378 cat >>confdefs.h <<\_ACEOF
14379 #define HAVE_M17N_FLT 1
14391 ### End of font-backend (under X11) section.
14402 ### Use -lXpm if available, unless `--with-xpm=no
'.
14405 if test "${HAVE_X11}" = "yes"; then
14406 if test "${with_xpm}" != "no"; then
14407 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
14408 { $as_echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
14409 $as_echo_n "checking for X11/xpm.h... " >&6; }
14410 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
14411 $as_echo_n "(cached) " >&6
14413 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
14414 $as_echo "$ac_cv_header_X11_xpm_h" >&6; }
14416 # Is the header compilable?
14417 { $as_echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
14418 $as_echo_n "checking X11/xpm.h usability... " >&6; }
14419 cat >conftest.$ac_ext <<_ACEOF
14422 cat confdefs.h >>conftest.$ac_ext
14423 cat >>conftest.$ac_ext <<_ACEOF
14424 /* end confdefs.h. */
14425 $ac_includes_default
14426 #include <X11/xpm.h>
14428 rm -f conftest.$ac_objext
14429 if { (ac_try="$ac_compile"
14430 case "(($ac_try" in
14431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14432 *) ac_try_echo=$ac_try;;
14434 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14435 $as_echo "$ac_try_echo") >&5
14436 (eval "$ac_compile") 2>conftest.er1
14438 grep -v '^
*+' conftest.er1 >conftest.err
14440 cat conftest.err >&5
14441 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14442 (exit $ac_status); } && {
14443 test -z "$ac_c_werror_flag" ||
14444 test ! -s conftest.err
14445 } && test -s conftest.$ac_objext; then
14446 ac_header_compiler=yes
14448 $as_echo "$as_me: failed program was:" >&5
14449 sed 's
/^
/|
/' conftest.$ac_ext >&5
14451 ac_header_compiler=no
14454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14455 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14456 $as_echo "$ac_header_compiler" >&6; }
14458 # Is the header present?
14459 { $as_echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
14460 $as_echo_n "checking X11/xpm.h presence... " >&6; }
14461 cat >conftest.$ac_ext <<_ACEOF
14464 cat confdefs.h >>conftest.$ac_ext
14465 cat >>conftest.$ac_ext <<_ACEOF
14466 /* end confdefs.h. */
14467 #include <X11/xpm.h>
14469 if { (ac_try="$ac_cpp conftest.$ac_ext"
14470 case "(($ac_try" in
14471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14472 *) ac_try_echo=$ac_try;;
14474 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14475 $as_echo "$ac_try_echo") >&5
14476 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14478 grep -v '^
*+' conftest.er1 >conftest.err
14480 cat conftest.err >&5
14481 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14482 (exit $ac_status); } >/dev/null && {
14483 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14484 test ! -s conftest.err
14486 ac_header_preproc=yes
14488 $as_echo "$as_me: failed program was:" >&5
14489 sed 's
/^
/|
/' conftest.$ac_ext >&5
14491 ac_header_preproc=no
14494 rm -f conftest.err conftest.$ac_ext
14495 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14496 $as_echo "$ac_header_preproc" >&6; }
14498 # So? What about this header?
14499 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14501 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
14502 $as_echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14503 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result
" >&5
14504 $as_echo "$as_me: WARNING
: X11
/xpm.h
: proceeding with the compiler
's result" >&2;}
14505 ac_header_preproc=yes
14508 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
14509 $as_echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
14510 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
14511 $as_echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
14512 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
14513 $as_echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
14514 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
14515 $as_echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
14516 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result
" >&5
14517 $as_echo "$as_me: WARNING
: X11
/xpm.h
: proceeding with the preprocessor
's result" >&2;}
14518 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
14519 $as_echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
14523 { $as_echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
14524 $as_echo_n "checking for X11/xpm.h... " >&6; }
14525 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
14526 $as_echo_n "(cached) " >&6
14528 ac_cv_header_X11_xpm_h=$ac_header_preproc
14530 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
14531 $as_echo "$ac_cv_header_X11_xpm_h" >&6; }
14534 if test $ac_cv_header_X11_xpm_h = yes; then
14535 { $as_echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
14536 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
14537 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
14538 $as_echo_n "(cached) " >&6
14540 ac_check_lib_save_LIBS=$LIBS
14541 LIBS="-lXpm -lX11 $LIBS"
14542 cat >conftest.$ac_ext <<_ACEOF
14545 cat confdefs.h >>conftest.$ac_ext
14546 cat >>conftest.$ac_ext <<_ACEOF
14547 /* end confdefs.h. */
14549 /* Override any GCC internal prototype to avoid an error.
14550 Use char because int might match the return type of a GCC
14551 builtin and then its argument prototype would still apply. */
14555 char XpmReadFileToPixmap ();
14559 return XpmReadFileToPixmap ();
14564 rm -f conftest.$ac_objext conftest$ac_exeext
14565 if { (ac_try="$ac_link"
14566 case "(($ac_try" in
14567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14568 *) ac_try_echo=$ac_try;;
14570 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14571 $as_echo "$ac_try_echo") >&5
14572 (eval "$ac_link") 2>conftest.er1
14574 grep -v '^
*+' conftest.er1 >conftest.err
14576 cat conftest.err >&5
14577 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14578 (exit $ac_status); } && {
14579 test -z "$ac_c_werror_flag" ||
14580 test ! -s conftest.err
14581 } && test -s conftest$ac_exeext && {
14582 test "$cross_compiling" = yes ||
14583 $as_test_x conftest$ac_exeext
14585 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
14587 $as_echo "$as_me: failed program was:" >&5
14588 sed 's
/^
/|
/' conftest.$ac_ext >&5
14590 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
14593 rm -rf conftest.dSYM
14594 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14595 conftest$ac_exeext conftest.$ac_ext
14596 LIBS=$ac_check_lib_save_LIBS
14598 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
14599 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
14600 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
14607 if test "${HAVE_XPM}" = "yes"; then
14608 { $as_echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
14609 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
14610 cat >conftest.$ac_ext <<_ACEOF
14613 cat confdefs.h >>conftest.$ac_ext
14614 cat >>conftest.$ac_ext <<_ACEOF
14615 /* end confdefs.h. */
14616 #include "X11/xpm.h"
14617 #ifndef XpmReturnAllocPixels
14618 no_return_alloc_pixels
14622 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14623 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
14631 if test "${HAVE_XPM}" = "yes"; then
14632 { $as_echo "$as_me:$LINENO: result: yes" >&5
14633 $as_echo "yes" >&6; }
14635 { $as_echo "$as_me:$LINENO: result: no" >&5
14636 $as_echo "no" >&6; }
14641 if test "${HAVE_XPM}" = "yes"; then
14643 cat >>confdefs.h <<\_ACEOF
14652 ### Use -ljpeg if available, unless `--with-jpeg=no'.
14655 if test "${HAVE_X11}" = "yes"; then
14656 if test "${with_jpeg}" != "no"; then
14657 if test "${ac_cv_header_jerror_h+set}" = set; then
14658 { $as_echo "$as_me:$LINENO: checking for jerror.h" >&5
14659 $as_echo_n "checking for jerror.h... " >&6; }
14660 if test "${ac_cv_header_jerror_h+set}" = set; then
14661 $as_echo_n "(cached) " >&6
14663 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
14664 $as_echo "$ac_cv_header_jerror_h" >&6; }
14666 # Is the header compilable?
14667 { $as_echo "$as_me:$LINENO: checking jerror.h usability" >&5
14668 $as_echo_n "checking jerror.h usability... " >&6; }
14669 cat >conftest.
$ac_ext <<_ACEOF
14672 cat confdefs.h
>>conftest.
$ac_ext
14673 cat >>conftest.
$ac_ext <<_ACEOF
14674 /* end confdefs.h. */
14675 $ac_includes_default
14676 #include <jerror.h>
14678 rm -f conftest.
$ac_objext
14679 if { (ac_try
="$ac_compile"
14680 case "(($ac_try" in
14681 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14682 *) ac_try_echo=$ac_try;;
14684 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14685 $as_echo "$ac_try_echo") >&5
14686 (eval "$ac_compile") 2>conftest.er1
14688 grep -v '^ *+' conftest.er1 >conftest.err
14690 cat conftest.err >&5
14691 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14692 (exit $ac_status); } && {
14693 test -z "$ac_c_werror_flag" ||
14694 test ! -s conftest.err
14695 } && test -s conftest.$ac_objext; then
14696 ac_header_compiler=yes
14698 $as_echo "$as_me: failed program was:" >&5
14699 sed 's/^/| /' conftest.$ac_ext >&5
14701 ac_header_compiler=no
14704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14705 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14706 $as_echo "$ac_header_compiler" >&6; }
14708 # Is the header present?
14709 { $as_echo "$as_me:$LINENO: checking jerror.h presence" >&5
14710 $as_echo_n "checking jerror.h presence... " >&6; }
14711 cat >conftest.$ac_ext <<_ACEOF
14714 cat confdefs.h >>conftest.$ac_ext
14715 cat >>conftest.$ac_ext <<_ACEOF
14716 /* end confdefs.h. */
14717 #include <jerror.h>
14719 if { (ac_try="$ac_cpp conftest.$ac_ext"
14720 case "(($ac_try" in
14721 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14722 *) ac_try_echo
=$ac_try;;
14724 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
14725 $as_echo "$ac_try_echo") >&5
14726 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14728 grep -v '^ *+' conftest.er1
>conftest.err
14730 cat conftest.err
>&5
14731 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14732 (exit $ac_status); } >/dev
/null
&& {
14733 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14734 test ! -s conftest.err
14736 ac_header_preproc
=yes
14738 $as_echo "$as_me: failed program was:" >&5
14739 sed 's/^/| /' conftest.
$ac_ext >&5
14741 ac_header_preproc
=no
14744 rm -f conftest.err conftest.
$ac_ext
14745 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14746 $as_echo "$ac_header_preproc" >&6; }
14748 # So? What about this header?
14749 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14751 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
14752 $as_echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14753 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
14754 $as_echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
14755 ac_header_preproc
=yes
14758 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
14759 $as_echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
14760 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
14761 $as_echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
14762 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
14763 $as_echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
14764 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
14765 $as_echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
14766 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
14767 $as_echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
14768 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
14769 $as_echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
14773 { $as_echo "$as_me:$LINENO: checking for jerror.h" >&5
14774 $as_echo_n "checking for jerror.h... " >&6; }
14775 if test "${ac_cv_header_jerror_h+set}" = set; then
14776 $as_echo_n "(cached) " >&6
14778 ac_cv_header_jerror_h
=$ac_header_preproc
14780 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
14781 $as_echo "$ac_cv_header_jerror_h" >&6; }
14784 if test $ac_cv_header_jerror_h = yes; then
14785 { $as_echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
14786 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
14787 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
14788 $as_echo_n "(cached) " >&6
14790 ac_check_lib_save_LIBS
=$LIBS
14791 LIBS
="-ljpeg $LIBS"
14792 cat >conftest.
$ac_ext <<_ACEOF
14795 cat confdefs.h
>>conftest.
$ac_ext
14796 cat >>conftest.
$ac_ext <<_ACEOF
14797 /* end confdefs.h. */
14799 /* Override any GCC internal prototype to avoid an error.
14800 Use char because int might match the return type of a GCC
14801 builtin and then its argument prototype would still apply. */
14805 char jpeg_destroy_compress ();
14809 return jpeg_destroy_compress ();
14814 rm -f conftest.
$ac_objext conftest
$ac_exeext
14815 if { (ac_try
="$ac_link"
14816 case "(($ac_try" in
14817 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14818 *) ac_try_echo=$ac_try;;
14820 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14821 $as_echo "$ac_try_echo") >&5
14822 (eval "$ac_link") 2>conftest.er1
14824 grep -v '^ *+' conftest.er1 >conftest.err
14826 cat conftest.err >&5
14827 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14828 (exit $ac_status); } && {
14829 test -z "$ac_c_werror_flag" ||
14830 test ! -s conftest.err
14831 } && test -s conftest$ac_exeext && {
14832 test "$cross_compiling" = yes ||
14833 $as_test_x conftest$ac_exeext
14835 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
14837 $as_echo "$as_me: failed program was:" >&5
14838 sed 's/^/| /' conftest.$ac_ext >&5
14840 ac_cv_lib_jpeg_jpeg_destroy_compress=no
14843 rm -rf conftest.dSYM
14844 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14845 conftest$ac_exeext conftest.$ac_ext
14846 LIBS=$ac_check_lib_save_LIBS
14848 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
14849 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
14850 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
14860 if test "${HAVE_JPEG}" = "yes"; then
14861 cat >>confdefs.h <<\_ACEOF
14862 #define HAVE_JPEG 1
14865 cat >conftest.$ac_ext <<_ACEOF
14868 cat confdefs.h >>conftest.$ac_ext
14869 cat >>conftest.$ac_ext <<_ACEOF
14870 /* end confdefs.h. */
14871 #include <jpeglib.h>
14872 version=JPEG_LIB_VERSION
14875 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14876 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
14877 cat >>confdefs.h <<\_ACEOF
14878 #define HAVE_JPEG 1
14882 { $as_echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
14883 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
14889 if test "${HAVE_JPEG}" = "yes"; then
14895 ### Use -lpng if available, unless `--with-png=no
'.
14898 if test "${HAVE_X11}" = "yes"; then
14899 if test "${with_png}" != "no"; then
14900 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
14901 # in /usr/include/libpng.
14904 for ac_header in png.h libpng/png.h
14906 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14907 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14908 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14909 $as_echo_n "checking for $ac_header... " >&6; }
14910 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14911 $as_echo_n "(cached) " >&6
14913 ac_res=`eval 'as_val
=${'$as_ac_Header'}
14914 $as_echo "$as_val"'`
14915 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14916 $as_echo "$ac_res" >&6; }
14918 # Is the header compilable?
14919 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14920 $as_echo_n "checking $ac_header usability... " >&6; }
14921 cat >conftest.$ac_ext <<_ACEOF
14924 cat confdefs.h >>conftest.$ac_ext
14925 cat >>conftest.$ac_ext <<_ACEOF
14926 /* end confdefs.h. */
14927 $ac_includes_default
14928 #include <$ac_header>
14930 rm -f conftest.$ac_objext
14931 if { (ac_try="$ac_compile"
14932 case "(($ac_try" in
14933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14934 *) ac_try_echo=$ac_try;;
14936 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14937 $as_echo "$ac_try_echo") >&5
14938 (eval "$ac_compile") 2>conftest.er1
14940 grep -v '^
*+' conftest.er1 >conftest.err
14942 cat conftest.err >&5
14943 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14944 (exit $ac_status); } && {
14945 test -z "$ac_c_werror_flag" ||
14946 test ! -s conftest.err
14947 } && test -s conftest.$ac_objext; then
14948 ac_header_compiler=yes
14950 $as_echo "$as_me: failed program was:" >&5
14951 sed 's
/^
/|
/' conftest.$ac_ext >&5
14953 ac_header_compiler=no
14956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14957 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14958 $as_echo "$ac_header_compiler" >&6; }
14960 # Is the header present?
14961 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14962 $as_echo_n "checking $ac_header presence... " >&6; }
14963 cat >conftest.$ac_ext <<_ACEOF
14966 cat confdefs.h >>conftest.$ac_ext
14967 cat >>conftest.$ac_ext <<_ACEOF
14968 /* end confdefs.h. */
14969 #include <$ac_header>
14971 if { (ac_try="$ac_cpp conftest.$ac_ext"
14972 case "(($ac_try" in
14973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14974 *) ac_try_echo=$ac_try;;
14976 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14977 $as_echo "$ac_try_echo") >&5
14978 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14980 grep -v '^
*+' conftest.er1 >conftest.err
14982 cat conftest.err >&5
14983 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14984 (exit $ac_status); } >/dev/null && {
14985 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14986 test ! -s conftest.err
14988 ac_header_preproc=yes
14990 $as_echo "$as_me: failed program was:" >&5
14991 sed 's
/^
/|
/' conftest.$ac_ext >&5
14993 ac_header_preproc=no
14996 rm -f conftest.err conftest.$ac_ext
14997 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14998 $as_echo "$ac_header_preproc" >&6; }
15000 # So? What about this header?
15001 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15003 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15004 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15005 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result
" >&5
15006 $as_echo "$as_me: WARNING
: $ac_header: proceeding with the compiler
's result" >&2;}
15007 ac_header_preproc=yes
15010 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15011 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15012 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15013 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15014 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15015 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15016 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15017 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15018 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result
" >&5
15019 $as_echo "$as_me: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&2;}
15020 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15021 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15025 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15026 $as_echo_n "checking for $ac_header... " >&6; }
15027 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15028 $as_echo_n "(cached) " >&6
15030 eval "$as_ac_Header=\$ac_header_preproc"
15032 ac_res=`eval 'as_val
=${'$as_ac_Header'}
15033 $as_echo "$as_val"'`
15034 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15035 $as_echo "$ac_res" >&6; }
15038 if test `eval 'as_val
=${'$as_ac_Header'}
15039 $as_echo "$as_val"'` = yes; then
15040 cat >>confdefs.h <<_ACEOF
15041 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15048 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
15049 { $as_echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
15050 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
15051 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
15052 $as_echo_n "(cached) " >&6
15054 ac_check_lib_save_LIBS=$LIBS
15055 LIBS="-lpng -lz -lm $LIBS"
15056 cat >conftest.$ac_ext <<_ACEOF
15059 cat confdefs.h >>conftest.$ac_ext
15060 cat >>conftest.$ac_ext <<_ACEOF
15061 /* end confdefs.h. */
15063 /* Override any GCC internal prototype to avoid an error.
15064 Use char because int might match the return type of a GCC
15065 builtin and then its argument prototype would still apply. */
15069 char png_get_channels ();
15073 return png_get_channels ();
15078 rm -f conftest.$ac_objext conftest$ac_exeext
15079 if { (ac_try="$ac_link"
15080 case "(($ac_try" in
15081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15082 *) ac_try_echo=$ac_try;;
15084 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15085 $as_echo "$ac_try_echo") >&5
15086 (eval "$ac_link") 2>conftest.er1
15088 grep -v '^
*+' conftest.er1 >conftest.err
15090 cat conftest.err >&5
15091 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15092 (exit $ac_status); } && {
15093 test -z "$ac_c_werror_flag" ||
15094 test ! -s conftest.err
15095 } && test -s conftest$ac_exeext && {
15096 test "$cross_compiling" = yes ||
15097 $as_test_x conftest$ac_exeext
15099 ac_cv_lib_png_png_get_channels=yes
15101 $as_echo "$as_me: failed program was:" >&5
15102 sed 's
/^
/|
/' conftest.$ac_ext >&5
15104 ac_cv_lib_png_png_get_channels=no
15107 rm -rf conftest.dSYM
15108 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15109 conftest$ac_exeext conftest.$ac_ext
15110 LIBS=$ac_check_lib_save_LIBS
15112 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
15113 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
15114 if test $ac_cv_lib_png_png_get_channels = yes; then
15121 if test "${HAVE_PNG}" = "yes"; then
15123 cat >>confdefs.h <<\_ACEOF
15127 LIBPNG="-lpng -lz -lm"
15132 ### Use -ltiff if available, unless `--with-tiff=no'.
15135 if test "${HAVE_X11}" = "yes"; then
15136 if test "${with_tiff}" != "no"; then
15137 if test "${ac_cv_header_tiffio_h+set}" = set; then
15138 { $as_echo "$as_me:$LINENO: checking for tiffio.h" >&5
15139 $as_echo_n "checking for tiffio.h... " >&6; }
15140 if test "${ac_cv_header_tiffio_h+set}" = set; then
15141 $as_echo_n "(cached) " >&6
15143 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
15144 $as_echo "$ac_cv_header_tiffio_h" >&6; }
15146 # Is the header compilable?
15147 { $as_echo "$as_me:$LINENO: checking tiffio.h usability" >&5
15148 $as_echo_n "checking tiffio.h usability... " >&6; }
15149 cat >conftest.
$ac_ext <<_ACEOF
15152 cat confdefs.h
>>conftest.
$ac_ext
15153 cat >>conftest.
$ac_ext <<_ACEOF
15154 /* end confdefs.h. */
15155 $ac_includes_default
15156 #include <tiffio.h>
15158 rm -f conftest.
$ac_objext
15159 if { (ac_try
="$ac_compile"
15160 case "(($ac_try" in
15161 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15162 *) ac_try_echo=$ac_try;;
15164 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15165 $as_echo "$ac_try_echo") >&5
15166 (eval "$ac_compile") 2>conftest.er1
15168 grep -v '^ *+' conftest.er1 >conftest.err
15170 cat conftest.err >&5
15171 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15172 (exit $ac_status); } && {
15173 test -z "$ac_c_werror_flag" ||
15174 test ! -s conftest.err
15175 } && test -s conftest.$ac_objext; then
15176 ac_header_compiler=yes
15178 $as_echo "$as_me: failed program was:" >&5
15179 sed 's/^/| /' conftest.$ac_ext >&5
15181 ac_header_compiler=no
15184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15185 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15186 $as_echo "$ac_header_compiler" >&6; }
15188 # Is the header present?
15189 { $as_echo "$as_me:$LINENO: checking tiffio.h presence" >&5
15190 $as_echo_n "checking tiffio.h presence... " >&6; }
15191 cat >conftest.$ac_ext <<_ACEOF
15194 cat confdefs.h >>conftest.$ac_ext
15195 cat >>conftest.$ac_ext <<_ACEOF
15196 /* end confdefs.h. */
15197 #include <tiffio.h>
15199 if { (ac_try="$ac_cpp conftest.$ac_ext"
15200 case "(($ac_try" in
15201 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15202 *) ac_try_echo
=$ac_try;;
15204 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
15205 $as_echo "$ac_try_echo") >&5
15206 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15208 grep -v '^ *+' conftest.er1
>conftest.err
15210 cat conftest.err
>&5
15211 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15212 (exit $ac_status); } >/dev
/null
&& {
15213 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15214 test ! -s conftest.err
15216 ac_header_preproc
=yes
15218 $as_echo "$as_me: failed program was:" >&5
15219 sed 's/^/| /' conftest.
$ac_ext >&5
15221 ac_header_preproc
=no
15224 rm -f conftest.err conftest.
$ac_ext
15225 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15226 $as_echo "$ac_header_preproc" >&6; }
15228 # So? What about this header?
15229 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15231 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
15232 $as_echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15233 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
15234 $as_echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
15235 ac_header_preproc
=yes
15238 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
15239 $as_echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
15240 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
15241 $as_echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
15242 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
15243 $as_echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
15244 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
15245 $as_echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
15246 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
15247 $as_echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
15248 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
15249 $as_echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
15253 { $as_echo "$as_me:$LINENO: checking for tiffio.h" >&5
15254 $as_echo_n "checking for tiffio.h... " >&6; }
15255 if test "${ac_cv_header_tiffio_h+set}" = set; then
15256 $as_echo_n "(cached) " >&6
15258 ac_cv_header_tiffio_h
=$ac_header_preproc
15260 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
15261 $as_echo "$ac_cv_header_tiffio_h" >&6; }
15264 if test $ac_cv_header_tiffio_h = yes; then
15266 # At least one tiff package requires the jpeg library.
15267 if test "${HAVE_JPEG}" = yes; then tifflibs
="-ljpeg $tifflibs"; fi
15268 { $as_echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
15269 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
15270 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
15271 $as_echo_n "(cached) " >&6
15273 ac_check_lib_save_LIBS
=$LIBS
15274 LIBS
="-ltiff $tifflibs $LIBS"
15275 cat >conftest.
$ac_ext <<_ACEOF
15278 cat confdefs.h
>>conftest.
$ac_ext
15279 cat >>conftest.
$ac_ext <<_ACEOF
15280 /* end confdefs.h. */
15282 /* Override any GCC internal prototype to avoid an error.
15283 Use char because int might match the return type of a GCC
15284 builtin and then its argument prototype would still apply. */
15288 char TIFFGetVersion ();
15292 return TIFFGetVersion ();
15297 rm -f conftest.
$ac_objext conftest
$ac_exeext
15298 if { (ac_try
="$ac_link"
15299 case "(($ac_try" in
15300 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15301 *) ac_try_echo=$ac_try;;
15303 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15304 $as_echo "$ac_try_echo") >&5
15305 (eval "$ac_link") 2>conftest.er1
15307 grep -v '^ *+' conftest.er1 >conftest.err
15309 cat conftest.err >&5
15310 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15311 (exit $ac_status); } && {
15312 test -z "$ac_c_werror_flag" ||
15313 test ! -s conftest.err
15314 } && test -s conftest$ac_exeext && {
15315 test "$cross_compiling" = yes ||
15316 $as_test_x conftest$ac_exeext
15318 ac_cv_lib_tiff_TIFFGetVersion=yes
15320 $as_echo "$as_me: failed program was:" >&5
15321 sed 's/^/| /' conftest.$ac_ext >&5
15323 ac_cv_lib_tiff_TIFFGetVersion=no
15326 rm -rf conftest.dSYM
15327 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15328 conftest$ac_exeext conftest.$ac_ext
15329 LIBS=$ac_check_lib_save_LIBS
15331 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
15332 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
15333 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
15342 if test "${HAVE_TIFF}" = "yes"; then
15344 cat >>confdefs.h <<\_ACEOF
15345 #define HAVE_TIFF 1
15353 ### Use -lgif or -lungif if available, unless `--with-gif=no
'.
15356 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
15357 if test "${ac_cv_header_gif_lib_h+set}" = set; then
15358 { $as_echo "$as_me:$LINENO: checking for gif_lib.h" >&5
15359 $as_echo_n "checking for gif_lib.h... " >&6; }
15360 if test "${ac_cv_header_gif_lib_h+set}" = set; then
15361 $as_echo_n "(cached) " >&6
15363 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
15364 $as_echo "$ac_cv_header_gif_lib_h" >&6; }
15366 # Is the header compilable?
15367 { $as_echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
15368 $as_echo_n "checking gif_lib.h usability... " >&6; }
15369 cat >conftest.$ac_ext <<_ACEOF
15372 cat confdefs.h >>conftest.$ac_ext
15373 cat >>conftest.$ac_ext <<_ACEOF
15374 /* end confdefs.h. */
15375 $ac_includes_default
15376 #include <gif_lib.h>
15378 rm -f conftest.$ac_objext
15379 if { (ac_try="$ac_compile"
15380 case "(($ac_try" in
15381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15382 *) ac_try_echo=$ac_try;;
15384 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15385 $as_echo "$ac_try_echo") >&5
15386 (eval "$ac_compile") 2>conftest.er1
15388 grep -v '^
*+' conftest.er1 >conftest.err
15390 cat conftest.err >&5
15391 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15392 (exit $ac_status); } && {
15393 test -z "$ac_c_werror_flag" ||
15394 test ! -s conftest.err
15395 } && test -s conftest.$ac_objext; then
15396 ac_header_compiler=yes
15398 $as_echo "$as_me: failed program was:" >&5
15399 sed 's
/^
/|
/' conftest.$ac_ext >&5
15401 ac_header_compiler=no
15404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15405 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15406 $as_echo "$ac_header_compiler" >&6; }
15408 # Is the header present?
15409 { $as_echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
15410 $as_echo_n "checking gif_lib.h presence... " >&6; }
15411 cat >conftest.$ac_ext <<_ACEOF
15414 cat confdefs.h >>conftest.$ac_ext
15415 cat >>conftest.$ac_ext <<_ACEOF
15416 /* end confdefs.h. */
15417 #include <gif_lib.h>
15419 if { (ac_try="$ac_cpp conftest.$ac_ext"
15420 case "(($ac_try" in
15421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15422 *) ac_try_echo=$ac_try;;
15424 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15425 $as_echo "$ac_try_echo") >&5
15426 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15428 grep -v '^
*+' conftest.er1 >conftest.err
15430 cat conftest.err >&5
15431 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15432 (exit $ac_status); } >/dev/null && {
15433 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15434 test ! -s conftest.err
15436 ac_header_preproc=yes
15438 $as_echo "$as_me: failed program was:" >&5
15439 sed 's
/^
/|
/' conftest.$ac_ext >&5
15441 ac_header_preproc=no
15444 rm -f conftest.err conftest.$ac_ext
15445 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15446 $as_echo "$ac_header_preproc" >&6; }
15448 # So? What about this header?
15449 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15451 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
15452 $as_echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15453 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result
" >&5
15454 $as_echo "$as_me: WARNING
: gif_lib.h
: proceeding with the compiler
's result" >&2;}
15455 ac_header_preproc=yes
15458 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
15459 $as_echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
15460 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
15461 $as_echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
15462 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
15463 $as_echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
15464 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
15465 $as_echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
15466 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result
" >&5
15467 $as_echo "$as_me: WARNING
: gif_lib.h
: proceeding with the preprocessor
's result" >&2;}
15468 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
15469 $as_echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
15473 { $as_echo "$as_me:$LINENO: checking for gif_lib.h" >&5
15474 $as_echo_n "checking for gif_lib.h... " >&6; }
15475 if test "${ac_cv_header_gif_lib_h+set}" = set; then
15476 $as_echo_n "(cached) " >&6
15478 ac_cv_header_gif_lib_h=$ac_header_preproc
15480 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
15481 $as_echo "$ac_cv_header_gif_lib_h" >&6; }
15484 if test $ac_cv_header_gif_lib_h = yes; then
15485 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
15486 # Earlier versions can crash Emacs.
15487 { $as_echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lgif" >&5
15488 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
15489 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then
15490 $as_echo_n "(cached) " >&6
15492 ac_check_lib_save_LIBS=$LIBS
15494 cat >conftest.$ac_ext <<_ACEOF
15497 cat confdefs.h >>conftest.$ac_ext
15498 cat >>conftest.$ac_ext <<_ACEOF
15499 /* end confdefs.h. */
15501 /* Override any GCC internal prototype to avoid an error.
15502 Use char because int might match the return type of a GCC
15503 builtin and then its argument prototype would still apply. */
15507 char EGifPutExtensionLast ();
15511 return EGifPutExtensionLast ();
15516 rm -f conftest.$ac_objext conftest$ac_exeext
15517 if { (ac_try="$ac_link"
15518 case "(($ac_try" in
15519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15520 *) ac_try_echo=$ac_try;;
15522 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15523 $as_echo "$ac_try_echo") >&5
15524 (eval "$ac_link") 2>conftest.er1
15526 grep -v '^
*+' conftest.er1 >conftest.err
15528 cat conftest.err >&5
15529 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15530 (exit $ac_status); } && {
15531 test -z "$ac_c_werror_flag" ||
15532 test ! -s conftest.err
15533 } && test -s conftest$ac_exeext && {
15534 test "$cross_compiling" = yes ||
15535 $as_test_x conftest$ac_exeext
15537 ac_cv_lib_gif_EGifPutExtensionLast=yes
15539 $as_echo "$as_me: failed program was:" >&5
15540 sed 's
/^
/|
/' conftest.$ac_ext >&5
15542 ac_cv_lib_gif_EGifPutExtensionLast=no
15545 rm -rf conftest.dSYM
15546 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15547 conftest$ac_exeext conftest.$ac_ext
15548 LIBS=$ac_check_lib_save_LIBS
15550 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
15551 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
15552 if test $ac_cv_lib_gif_EGifPutExtensionLast = yes; then
15562 if test "$HAVE_GIF" = yes; then
15564 elif test "$HAVE_GIF" = maybe; then
15565 # If gif_lib.h but no libgif, try libungif.
15566 { $as_echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
15567 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
15568 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
15569 $as_echo_n "(cached) " >&6
15571 ac_check_lib_save_LIBS=$LIBS
15572 LIBS="-lungif $LIBS"
15573 cat >conftest.$ac_ext <<_ACEOF
15576 cat confdefs.h >>conftest.$ac_ext
15577 cat >>conftest.$ac_ext <<_ACEOF
15578 /* end confdefs.h. */
15580 /* Override any GCC internal prototype to avoid an error.
15581 Use char because int might match the return type of a GCC
15582 builtin and then its argument prototype would still apply. */
15586 char EGifPutExtensionLast ();
15590 return EGifPutExtensionLast ();
15595 rm -f conftest.$ac_objext conftest$ac_exeext
15596 if { (ac_try="$ac_link"
15597 case "(($ac_try" in
15598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15599 *) ac_try_echo=$ac_try;;
15601 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15602 $as_echo "$ac_try_echo") >&5
15603 (eval "$ac_link") 2>conftest.er1
15605 grep -v '^
*+' conftest.er1 >conftest.err
15607 cat conftest.err >&5
15608 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15609 (exit $ac_status); } && {
15610 test -z "$ac_c_werror_flag" ||
15611 test ! -s conftest.err
15612 } && test -s conftest$ac_exeext && {
15613 test "$cross_compiling" = yes ||
15614 $as_test_x conftest$ac_exeext
15616 ac_cv_lib_ungif_EGifPutExtensionLast=yes
15618 $as_echo "$as_me: failed program was:" >&5
15619 sed 's
/^
/|
/' conftest.$ac_ext >&5
15621 ac_cv_lib_ungif_EGifPutExtensionLast=no
15624 rm -rf conftest.dSYM
15625 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15626 conftest$ac_exeext conftest.$ac_ext
15627 LIBS=$ac_check_lib_save_LIBS
15629 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
15630 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
15631 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
15637 test "$HAVE_GIF" = yes && LIBGIF=-lungif
15640 if test "${HAVE_GIF}" = "yes"; then
15642 cat >>confdefs.h <<\_ACEOF
15650 if test "${HAVE_X11}" = "yes"; then
15653 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
15654 MISSING="libXpm" && WITH_NO="--with-xpm=no"
15655 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
15656 MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no"
15657 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
15658 MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no"
15659 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
15660 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
15661 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
15662 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
15664 if test "X${MISSING}" != X; then
15665 { { $as_echo "$as_me:$LINENO: error: The following required libraries were not found:
15667 Maybe some development libraries/packages are missing?
15668 If you don't want to link with them give
15670 as options to configure
" >&5
15671 $as_echo "$as_me: error
: The following required libraries were not found
:
15673 Maybe some development libraries
/packages are missing?
15674 If you don
't want to link with them give
15676 as options to configure" >&2;}
15677 { (exit 1); exit 1; }; }
15681 ### Use -lgpm if available, unless `--with-gpm=no'.
15684 if test "${with_gpm}" != "no"; then
15685 if test "${ac_cv_header_gpm_h+set}" = set; then
15686 { $as_echo "$as_me:$LINENO: checking for gpm.h" >&5
15687 $as_echo_n "checking for gpm.h... " >&6; }
15688 if test "${ac_cv_header_gpm_h+set}" = set; then
15689 $as_echo_n "(cached) " >&6
15691 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
15692 $as_echo "$ac_cv_header_gpm_h" >&6; }
15694 # Is the header compilable?
15695 { $as_echo "$as_me:$LINENO: checking gpm.h usability" >&5
15696 $as_echo_n "checking gpm.h usability... " >&6; }
15697 cat >conftest.
$ac_ext <<_ACEOF
15700 cat confdefs.h
>>conftest.
$ac_ext
15701 cat >>conftest.
$ac_ext <<_ACEOF
15702 /* end confdefs.h. */
15703 $ac_includes_default
15706 rm -f conftest.
$ac_objext
15707 if { (ac_try
="$ac_compile"
15708 case "(($ac_try" in
15709 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15710 *) ac_try_echo=$ac_try;;
15712 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15713 $as_echo "$ac_try_echo") >&5
15714 (eval "$ac_compile") 2>conftest.er1
15716 grep -v '^ *+' conftest.er1 >conftest.err
15718 cat conftest.err >&5
15719 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15720 (exit $ac_status); } && {
15721 test -z "$ac_c_werror_flag" ||
15722 test ! -s conftest.err
15723 } && test -s conftest.$ac_objext; then
15724 ac_header_compiler=yes
15726 $as_echo "$as_me: failed program was:" >&5
15727 sed 's/^/| /' conftest.$ac_ext >&5
15729 ac_header_compiler=no
15732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15733 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15734 $as_echo "$ac_header_compiler" >&6; }
15736 # Is the header present?
15737 { $as_echo "$as_me:$LINENO: checking gpm.h presence" >&5
15738 $as_echo_n "checking gpm.h presence... " >&6; }
15739 cat >conftest.$ac_ext <<_ACEOF
15742 cat confdefs.h >>conftest.$ac_ext
15743 cat >>conftest.$ac_ext <<_ACEOF
15744 /* end confdefs.h. */
15747 if { (ac_try="$ac_cpp conftest.$ac_ext"
15748 case "(($ac_try" in
15749 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15750 *) ac_try_echo
=$ac_try;;
15752 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
15753 $as_echo "$ac_try_echo") >&5
15754 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15756 grep -v '^ *+' conftest.er1
>conftest.err
15758 cat conftest.err
>&5
15759 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15760 (exit $ac_status); } >/dev
/null
&& {
15761 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15762 test ! -s conftest.err
15764 ac_header_preproc
=yes
15766 $as_echo "$as_me: failed program was:" >&5
15767 sed 's/^/| /' conftest.
$ac_ext >&5
15769 ac_header_preproc
=no
15772 rm -f conftest.err conftest.
$ac_ext
15773 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15774 $as_echo "$ac_header_preproc" >&6; }
15776 # So? What about this header?
15777 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15779 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
15780 $as_echo "$as_me: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15781 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the compiler's result" >&5
15782 $as_echo "$as_me: WARNING: gpm.h: proceeding with the compiler's result" >&2;}
15783 ac_header_preproc
=yes
15786 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: present but cannot be compiled" >&5
15787 $as_echo "$as_me: WARNING: gpm.h: present but cannot be compiled" >&2;}
15788 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: check for missing prerequisite headers?" >&5
15789 $as_echo "$as_me: WARNING: gpm.h: check for missing prerequisite headers?" >&2;}
15790 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: see the Autoconf documentation" >&5
15791 $as_echo "$as_me: WARNING: gpm.h: see the Autoconf documentation" >&2;}
15792 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&5
15793 $as_echo "$as_me: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
15794 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the preprocessor's result" >&5
15795 $as_echo "$as_me: WARNING: gpm.h: proceeding with the preprocessor's result" >&2;}
15796 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: in the future, the compiler will take precedence" >&5
15797 $as_echo "$as_me: WARNING: gpm.h: in the future, the compiler will take precedence" >&2;}
15801 { $as_echo "$as_me:$LINENO: checking for gpm.h" >&5
15802 $as_echo_n "checking for gpm.h... " >&6; }
15803 if test "${ac_cv_header_gpm_h+set}" = set; then
15804 $as_echo_n "(cached) " >&6
15806 ac_cv_header_gpm_h
=$ac_header_preproc
15808 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
15809 $as_echo "$ac_cv_header_gpm_h" >&6; }
15812 if test $ac_cv_header_gpm_h = yes; then
15813 { $as_echo "$as_me:$LINENO: checking for Gpm_Open in -lgpm" >&5
15814 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
15815 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
15816 $as_echo_n "(cached) " >&6
15818 ac_check_lib_save_LIBS
=$LIBS
15820 cat >conftest.
$ac_ext <<_ACEOF
15823 cat confdefs.h
>>conftest.
$ac_ext
15824 cat >>conftest.
$ac_ext <<_ACEOF
15825 /* end confdefs.h. */
15827 /* Override any GCC internal prototype to avoid an error.
15828 Use char because int might match the return type of a GCC
15829 builtin and then its argument prototype would still apply. */
15837 return Gpm_Open ();
15842 rm -f conftest.
$ac_objext conftest
$ac_exeext
15843 if { (ac_try
="$ac_link"
15844 case "(($ac_try" in
15845 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15846 *) ac_try_echo=$ac_try;;
15848 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15849 $as_echo "$ac_try_echo") >&5
15850 (eval "$ac_link") 2>conftest.er1
15852 grep -v '^ *+' conftest.er1 >conftest.err
15854 cat conftest.err >&5
15855 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15856 (exit $ac_status); } && {
15857 test -z "$ac_c_werror_flag" ||
15858 test ! -s conftest.err
15859 } && test -s conftest$ac_exeext && {
15860 test "$cross_compiling" = yes ||
15861 $as_test_x conftest$ac_exeext
15863 ac_cv_lib_gpm_Gpm_Open=yes
15865 $as_echo "$as_me: failed program was:" >&5
15866 sed 's/^/| /' conftest.$ac_ext >&5
15868 ac_cv_lib_gpm_Gpm_Open=no
15871 rm -rf conftest.dSYM
15872 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15873 conftest$ac_exeext conftest.$ac_ext
15874 LIBS=$ac_check_lib_save_LIBS
15876 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gpm_Gpm_Open" >&5
15877 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
15878 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
15886 if test "${HAVE_GPM}" = "yes"; then
15888 cat >>confdefs.h <<\_ACEOF
15897 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
15898 { $as_echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
15899 $as_echo_n "checking for malloc/malloc.h... " >&6; }
15900 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
15901 $as_echo_n "(cached) " >&6
15903 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
15904 $as_echo "$ac_cv_header_malloc_malloc_h" >&6; }
15906 # Is the header compilable?
15907 { $as_echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
15908 $as_echo_n "checking malloc/malloc.h usability... " >&6; }
15909 cat >conftest.$ac_ext <<_ACEOF
15912 cat confdefs.h >>conftest.$ac_ext
15913 cat >>conftest.$ac_ext <<_ACEOF
15914 /* end confdefs.h. */
15915 $ac_includes_default
15916 #include <malloc/malloc.h>
15918 rm -f conftest.$ac_objext
15919 if { (ac_try="$ac_compile"
15920 case "(($ac_try" in
15921 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15922 *) ac_try_echo
=$ac_try;;
15924 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
15925 $as_echo "$ac_try_echo") >&5
15926 (eval "$ac_compile") 2>conftest.er1
15928 grep -v '^ *+' conftest.er1
>conftest.err
15930 cat conftest.err
>&5
15931 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15932 (exit $ac_status); } && {
15933 test -z "$ac_c_werror_flag" ||
15934 test ! -s conftest.err
15935 } && test -s conftest.
$ac_objext; then
15936 ac_header_compiler
=yes
15938 $as_echo "$as_me: failed program was:" >&5
15939 sed 's/^/| /' conftest.
$ac_ext >&5
15941 ac_header_compiler
=no
15944 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15945 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15946 $as_echo "$ac_header_compiler" >&6; }
15948 # Is the header present?
15949 { $as_echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
15950 $as_echo_n "checking malloc/malloc.h presence... " >&6; }
15951 cat >conftest.
$ac_ext <<_ACEOF
15954 cat confdefs.h
>>conftest.
$ac_ext
15955 cat >>conftest.
$ac_ext <<_ACEOF
15956 /* end confdefs.h. */
15957 #include <malloc/malloc.h>
15959 if { (ac_try
="$ac_cpp conftest.$ac_ext"
15960 case "(($ac_try" in
15961 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15962 *) ac_try_echo=$ac_try;;
15964 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15965 $as_echo "$ac_try_echo") >&5
15966 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15968 grep -v '^ *+' conftest.er1 >conftest.err
15970 cat conftest.err >&5
15971 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15972 (exit $ac_status); } >/dev/null && {
15973 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15974 test ! -s conftest.err
15976 ac_header_preproc=yes
15978 $as_echo "$as_me: failed program was:" >&5
15979 sed 's/^/| /' conftest.$ac_ext >&5
15981 ac_header_preproc=no
15984 rm -f conftest.err conftest.$ac_ext
15985 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15986 $as_echo "$ac_header_preproc" >&6; }
15988 # So? What about this header?
15989 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15991 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
15992 $as_echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15993 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
15994 $as_echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
15995 ac_header_preproc=yes
15998 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
15999 $as_echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
16000 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
16001 $as_echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
16002 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
16003 $as_echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
16004 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
16005 $as_echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
16006 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
16007 $as_echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
16008 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
16009 $as_echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
16013 { $as_echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
16014 $as_echo_n "checking for malloc/malloc.h... " >&6; }
16015 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
16016 $as_echo_n "(cached) " >&6
16018 ac_cv_header_malloc_malloc_h=$ac_header_preproc
16020 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
16021 $as_echo "$ac_cv_header_malloc_malloc_h" >&6; }
16024 if test $ac_cv_header_malloc_malloc_h = yes; then
16026 cat >>confdefs.h <<\_ACEOF
16027 #define HAVE_MALLOC_MALLOC_H 1
16034 ### Use NeXTstep API to implement GUI.
16035 if test "${HAVE_NS}" = "yes"; then
16037 cat >>confdefs.h <<\_ACEOF
16041 if test "${NS_IMPL_COCOA}" = "yes"; then
16043 cat >>confdefs.h <<\_ACEOF
16044 #define NS_IMPL_COCOA 1
16049 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
16051 cat >>confdefs.h <<\_ACEOF
16052 #define NS_IMPL_GNUSTEP 1
16055 GNU_OBJC_CFLAGS="-fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE"
16057 if test "${NS_HAVE_NSINTEGER}" = "yes"; then
16059 cat >>confdefs.h <<\_ACEOF
16060 #define NS_HAVE_NSINTEGER 1
16064 # We also have mouse menus.
16070 ### Use session management (-lSM -lICE) if available
16072 if test "${HAVE_X11}" = "yes"; then
16073 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
16074 { $as_echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
16075 $as_echo_n "checking for X11/SM/SMlib.h... " >&6; }
16076 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
16077 $as_echo_n "(cached) " >&6
16079 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
16080 $as_echo "$ac_cv_header_X11_SM_SMlib_h" >&6; }
16082 # Is the header compilable?
16083 { $as_echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
16084 $as_echo_n "checking X11/SM/SMlib.h usability... " >&6; }
16085 cat >conftest.$ac_ext <<_ACEOF
16088 cat confdefs.h >>conftest.$ac_ext
16089 cat >>conftest.$ac_ext <<_ACEOF
16090 /* end confdefs.h. */
16091 $ac_includes_default
16092 #include <X11/SM/SMlib.h>
16094 rm -f conftest.$ac_objext
16095 if { (ac_try="$ac_compile"
16096 case "(($ac_try" in
16097 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16098 *) ac_try_echo
=$ac_try;;
16100 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
16101 $as_echo "$ac_try_echo") >&5
16102 (eval "$ac_compile") 2>conftest.er1
16104 grep -v '^ *+' conftest.er1
>conftest.err
16106 cat conftest.err
>&5
16107 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16108 (exit $ac_status); } && {
16109 test -z "$ac_c_werror_flag" ||
16110 test ! -s conftest.err
16111 } && test -s conftest.
$ac_objext; then
16112 ac_header_compiler
=yes
16114 $as_echo "$as_me: failed program was:" >&5
16115 sed 's/^/| /' conftest.
$ac_ext >&5
16117 ac_header_compiler
=no
16120 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16121 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16122 $as_echo "$ac_header_compiler" >&6; }
16124 # Is the header present?
16125 { $as_echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
16126 $as_echo_n "checking X11/SM/SMlib.h presence... " >&6; }
16127 cat >conftest.
$ac_ext <<_ACEOF
16130 cat confdefs.h
>>conftest.
$ac_ext
16131 cat >>conftest.
$ac_ext <<_ACEOF
16132 /* end confdefs.h. */
16133 #include <X11/SM/SMlib.h>
16135 if { (ac_try
="$ac_cpp conftest.$ac_ext"
16136 case "(($ac_try" in
16137 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16138 *) ac_try_echo=$ac_try;;
16140 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16141 $as_echo "$ac_try_echo") >&5
16142 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16144 grep -v '^ *+' conftest.er1 >conftest.err
16146 cat conftest.err >&5
16147 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16148 (exit $ac_status); } >/dev/null && {
16149 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16150 test ! -s conftest.err
16152 ac_header_preproc=yes
16154 $as_echo "$as_me: failed program was:" >&5
16155 sed 's/^/| /' conftest.$ac_ext >&5
16157 ac_header_preproc=no
16160 rm -f conftest.err conftest.$ac_ext
16161 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16162 $as_echo "$ac_header_preproc" >&6; }
16164 # So? What about this header?
16165 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16167 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
16168 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16169 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
16170 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
16171 ac_header_preproc=yes
16174 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
16175 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
16176 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
16177 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
16178 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
16179 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
16180 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
16181 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
16182 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
16183 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
16184 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
16185 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
16189 { $as_echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
16190 $as_echo_n "checking for X11/SM/SMlib.h... " >&6; }
16191 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
16192 $as_echo_n "(cached) " >&6
16194 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
16196 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
16197 $as_echo "$ac_cv_header_X11_SM_SMlib_h" >&6; }
16200 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
16201 { $as_echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
16202 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
16203 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
16204 $as_echo_n "(cached) " >&6
16206 ac_check_lib_save_LIBS=$LIBS
16207 LIBS="-lSM -lICE $LIBS"
16208 cat >conftest.$ac_ext <<_ACEOF
16211 cat confdefs.h >>conftest.$ac_ext
16212 cat >>conftest.$ac_ext <<_ACEOF
16213 /* end confdefs.h. */
16215 /* Override any GCC internal prototype to avoid an error.
16216 Use char because int might match the return type of a GCC
16217 builtin and then its argument prototype would still apply. */
16221 char SmcOpenConnection ();
16225 return SmcOpenConnection ();
16230 rm -f conftest.$ac_objext conftest$ac_exeext
16231 if { (ac_try="$ac_link"
16232 case "(($ac_try" in
16233 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16234 *) ac_try_echo
=$ac_try;;
16236 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
16237 $as_echo "$ac_try_echo") >&5
16238 (eval "$ac_link") 2>conftest.er1
16240 grep -v '^ *+' conftest.er1
>conftest.err
16242 cat conftest.err
>&5
16243 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16244 (exit $ac_status); } && {
16245 test -z "$ac_c_werror_flag" ||
16246 test ! -s conftest.err
16247 } && test -s conftest
$ac_exeext && {
16248 test "$cross_compiling" = yes ||
16249 $as_test_x conftest
$ac_exeext
16251 ac_cv_lib_SM_SmcOpenConnection
=yes
16253 $as_echo "$as_me: failed program was:" >&5
16254 sed 's/^/| /' conftest.
$ac_ext >&5
16256 ac_cv_lib_SM_SmcOpenConnection
=no
16259 rm -rf conftest.dSYM
16260 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
16261 conftest
$ac_exeext conftest.
$ac_ext
16262 LIBS
=$ac_check_lib_save_LIBS
16264 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
16265 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
16266 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
16274 if test "${HAVE_X_SM}" = "yes"; then
16276 cat >>confdefs.h
<<\_ACEOF
16277 #define HAVE_X_SM 1
16282 *) LIBS
="-lSM -lICE $LIBS" ;;
16287 # If netdb.h doesn't declare h_errno, we must declare it by hand.
16288 { $as_echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
16289 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
16290 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
16291 $as_echo_n "(cached) " >&6
16293 cat >conftest.
$ac_ext <<_ACEOF
16296 cat confdefs.h
>>conftest.
$ac_ext
16297 cat >>conftest.
$ac_ext <<_ACEOF
16298 /* end confdefs.h. */
16308 rm -f conftest.
$ac_objext conftest
$ac_exeext
16309 if { (ac_try
="$ac_link"
16310 case "(($ac_try" in
16311 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16312 *) ac_try_echo=$ac_try;;
16314 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16315 $as_echo "$ac_try_echo") >&5
16316 (eval "$ac_link") 2>conftest.er1
16318 grep -v '^ *+' conftest.er1 >conftest.err
16320 cat conftest.err >&5
16321 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16322 (exit $ac_status); } && {
16323 test -z "$ac_c_werror_flag" ||
16324 test ! -s conftest.err
16325 } && test -s conftest$ac_exeext && {
16326 test "$cross_compiling" = yes ||
16327 $as_test_x conftest$ac_exeext
16329 emacs_cv_netdb_declares_h_errno=yes
16331 $as_echo "$as_me: failed program was:" >&5
16332 sed 's/^/| /' conftest.$ac_ext >&5
16334 emacs_cv_netdb_declares_h_errno=no
16337 rm -rf conftest.dSYM
16338 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16339 conftest$ac_exeext conftest.$ac_ext
16341 { $as_echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
16342 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
16343 if test $emacs_cv_netdb_declares_h_errno = yes; then
16345 cat >>confdefs.h <<\_ACEOF
16346 #define HAVE_H_ERRNO 1
16351 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
16352 # for constant arguments. Useless!
16353 { $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
16354 $as_echo_n "checking for working alloca.h... " >&6; }
16355 if test "${ac_cv_working_alloca_h+set}" = set; then
16356 $as_echo_n "(cached) " >&6
16358 cat >conftest.$ac_ext <<_ACEOF
16361 cat confdefs.h >>conftest.$ac_ext
16362 cat >>conftest.$ac_ext <<_ACEOF
16363 /* end confdefs.h. */
16364 #include <alloca.h>
16368 char *p = (char *) alloca (2 * sizeof (int));
16374 rm -f conftest.$ac_objext conftest$ac_exeext
16375 if { (ac_try="$ac_link"
16376 case "(($ac_try" in
16377 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16378 *) ac_try_echo
=$ac_try;;
16380 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
16381 $as_echo "$ac_try_echo") >&5
16382 (eval "$ac_link") 2>conftest.er1
16384 grep -v '^ *+' conftest.er1
>conftest.err
16386 cat conftest.err
>&5
16387 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16388 (exit $ac_status); } && {
16389 test -z "$ac_c_werror_flag" ||
16390 test ! -s conftest.err
16391 } && test -s conftest
$ac_exeext && {
16392 test "$cross_compiling" = yes ||
16393 $as_test_x conftest
$ac_exeext
16395 ac_cv_working_alloca_h
=yes
16397 $as_echo "$as_me: failed program was:" >&5
16398 sed 's/^/| /' conftest.
$ac_ext >&5
16400 ac_cv_working_alloca_h
=no
16403 rm -rf conftest.dSYM
16404 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
16405 conftest
$ac_exeext conftest.
$ac_ext
16407 { $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
16408 $as_echo "$ac_cv_working_alloca_h" >&6; }
16409 if test $ac_cv_working_alloca_h = yes; then
16411 cat >>confdefs.h
<<\_ACEOF
16412 #define HAVE_ALLOCA_H 1
16417 { $as_echo "$as_me:$LINENO: checking for alloca" >&5
16418 $as_echo_n "checking for alloca... " >&6; }
16419 if test "${ac_cv_func_alloca_works+set}" = set; then
16420 $as_echo_n "(cached) " >&6
16422 cat >conftest.
$ac_ext <<_ACEOF
16425 cat confdefs.h
>>conftest.
$ac_ext
16426 cat >>conftest.
$ac_ext <<_ACEOF
16427 /* end confdefs.h. */
16429 # define alloca __builtin_alloca
16432 # include <malloc.h>
16433 # define alloca _alloca
16435 # ifdef HAVE_ALLOCA_H
16436 # include <alloca.h>
16441 # ifndef alloca /* predefined by HP cc +Olibcalls */
16452 char *p = (char *) alloca (1);
16458 rm -f conftest.
$ac_objext conftest
$ac_exeext
16459 if { (ac_try
="$ac_link"
16460 case "(($ac_try" in
16461 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16462 *) ac_try_echo=$ac_try;;
16464 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16465 $as_echo "$ac_try_echo") >&5
16466 (eval "$ac_link") 2>conftest.er1
16468 grep -v '^ *+' conftest.er1 >conftest.err
16470 cat conftest.err >&5
16471 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16472 (exit $ac_status); } && {
16473 test -z "$ac_c_werror_flag" ||
16474 test ! -s conftest.err
16475 } && test -s conftest$ac_exeext && {
16476 test "$cross_compiling" = yes ||
16477 $as_test_x conftest$ac_exeext
16479 ac_cv_func_alloca_works=yes
16481 $as_echo "$as_me: failed program was:" >&5
16482 sed 's/^/| /' conftest.$ac_ext >&5
16484 ac_cv_func_alloca_works=no
16487 rm -rf conftest.dSYM
16488 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16489 conftest$ac_exeext conftest.$ac_ext
16491 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
16492 $as_echo "$ac_cv_func_alloca_works" >&6; }
16494 if test $ac_cv_func_alloca_works = yes; then
16496 cat >>confdefs.h <<\_ACEOF
16497 #define HAVE_ALLOCA 1
16501 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
16502 # that cause trouble. Some versions do not even contain alloca or
16503 # contain a buggy version. If you still want to use their alloca,
16504 # use ar to extract alloca.o from them instead of compiling alloca.c.
16506 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
16508 cat >>confdefs.h <<\_ACEOF
16513 { $as_echo "$as_me:$LINENO: checking whether \`alloca.c
' needs Cray hooks" >&5
16514 $as_echo_n "checking whether \`alloca.c' needs Cray hooks...
" >&6; }
16515 if test "${ac_cv_os_cray+set}" = set; then
16516 $as_echo_n "(cached
) " >&6
16518 cat >conftest.$ac_ext <<_ACEOF
16521 cat confdefs.h >>conftest.$ac_ext
16522 cat >>conftest.$ac_ext <<_ACEOF
16523 /* end confdefs.h. */
16524 #if defined CRAY && ! defined CRAY2
16531 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
16532 $EGREP "webecray
" >/dev/null 2>&1; then
16540 { $as_echo "$as_me:$LINENO: result
: $ac_cv_os_cray" >&5
16541 $as_echo "$ac_cv_os_cray" >&6; }
16542 if test $ac_cv_os_cray = yes; then
16543 for ac_func in _getb67 GETB67 getb67; do
16544 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
16545 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
16546 $as_echo_n "checking
for $ac_func...
" >&6; }
16547 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
16548 $as_echo_n "(cached
) " >&6
16550 cat >conftest.$ac_ext <<_ACEOF
16553 cat confdefs.h >>conftest.$ac_ext
16554 cat >>conftest.$ac_ext <<_ACEOF
16555 /* end confdefs.h. */
16556 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16557 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16558 #define $ac_func innocuous_$ac_func
16560 /* System header to define __stub macros and hopefully few prototypes,
16561 which can conflict with char $ac_func (); below.
16562 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16563 <limits.h> exists even on freestanding compilers. */
16566 # include <limits.h>
16568 # include <assert.h>
16573 /* Override any GCC internal prototype to avoid an error.
16574 Use char because int might match the return type of a GCC
16575 builtin and then its argument prototype would still apply. */
16580 /* The GNU C library defines this for functions which it implements
16581 to always fail with ENOSYS. Some functions are actually named
16582 something starting with __ and the normal name is an alias. */
16583 #if defined __stub_$ac_func || defined __stub___$ac_func
16590 return $ac_func ();
16595 rm -f conftest.$ac_objext conftest$ac_exeext
16596 if { (ac_try="$ac_link"
16597 case "(($ac_try" in
16598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16599 *) ac_try_echo=$ac_try;;
16601 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
16602 $as_echo "$ac_try_echo") >&5
16603 (eval "$ac_link") 2>conftest.er1
16605 grep -v '^ *+' conftest.er1 >conftest.err
16607 cat conftest.err >&5
16608 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16609 (exit $ac_status); } && {
16610 test -z "$ac_c_werror_flag" ||
16611 test ! -s conftest.err
16612 } && test -s conftest$ac_exeext && {
16613 test "$cross_compiling" = yes ||
16614 $as_test_x conftest$ac_exeext
16616 eval "$as_ac_var=yes"
16618 $as_echo "$as_me: failed program was
:" >&5
16619 sed 's/^/| /' conftest.$ac_ext >&5
16621 eval "$as_ac_var=no
"
16624 rm -rf conftest.dSYM
16625 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16626 conftest$ac_exeext conftest.$ac_ext
16628 ac_res=`eval 'as_val=${'$as_ac_var'}
16629 $as_echo "$as_val"'`
16630 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
16631 $as_echo "$ac_res" >&6; }
16632 if test `eval 'as_val=${'$as_ac_var'}
16633 $as_echo "$as_val"'` = yes; then
16635 cat >>confdefs.h <<_ACEOF
16636 #define CRAY_STACKSEG_END $ac_func
16645 { $as_echo "$as_me:$LINENO: checking stack direction
for C alloca
" >&5
16646 $as_echo_n "checking stack direction
for C alloca...
" >&6; }
16647 if test "${ac_cv_c_stack_direction+set}" = set; then
16648 $as_echo_n "(cached
) " >&6
16650 if test "$cross_compiling" = yes; then
16651 ac_cv_c_stack_direction=0
16653 cat >conftest.$ac_ext <<_ACEOF
16656 cat confdefs.h >>conftest.$ac_ext
16657 cat >>conftest.$ac_ext <<_ACEOF
16658 /* end confdefs.h. */
16659 $ac_includes_default
16661 find_stack_direction ()
16663 static char *addr = 0;
16668 return find_stack_direction ();
16671 return (&dummy > addr) ? 1 : -1;
16677 return find_stack_direction () < 0;
16680 rm -f conftest$ac_exeext
16681 if { (ac_try="$ac_link"
16682 case "(($ac_try" in
16683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16684 *) ac_try_echo=$ac_try;;
16686 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
16687 $as_echo "$ac_try_echo") >&5
16688 (eval "$ac_link") 2>&5
16690 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16691 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16692 { (case "(($ac_try" in
16693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16694 *) ac_try_echo=$ac_try;;
16696 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
16697 $as_echo "$ac_try_echo") >&5
16698 (eval "$ac_try") 2>&5
16700 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16701 (exit $ac_status); }; }; then
16702 ac_cv_c_stack_direction=1
16704 $as_echo "$as_me: program exited with status
$ac_status" >&5
16705 $as_echo "$as_me: failed program was
:" >&5
16706 sed 's/^/| /' conftest.$ac_ext >&5
16708 ( exit $ac_status )
16709 ac_cv_c_stack_direction=-1
16711 rm -rf conftest.dSYM
16712 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16717 { $as_echo "$as_me:$LINENO: result
: $ac_cv_c_stack_direction" >&5
16718 $as_echo "$ac_cv_c_stack_direction" >&6; }
16720 cat >>confdefs.h <<_ACEOF
16721 #define STACK_DIRECTION $ac_cv_c_stack_direction
16728 if test x"$ac_cv_func_alloca_works" != xyes; then
16729 { { $as_echo "$as_me:$LINENO: error
: a system implementation of alloca is required
" >&5
16730 $as_echo "$as_me: error
: a system implementation of alloca is required
" >&2;}
16731 { (exit 1); exit 1; }; }
16734 # fmod, logb, and frexp are found in -lm on most systems.
16735 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
16737 { $as_echo "$as_me:$LINENO: checking
for sqrt
in -lm" >&5
16738 $as_echo_n "checking
for sqrt
in -lm...
" >&6; }
16739 if test "${ac_cv_lib_m_sqrt+set}" = set; then
16740 $as_echo_n "(cached
) " >&6
16742 ac_check_lib_save_LIBS=$LIBS
16744 cat >conftest.$ac_ext <<_ACEOF
16747 cat confdefs.h >>conftest.$ac_ext
16748 cat >>conftest.$ac_ext <<_ACEOF
16749 /* end confdefs.h. */
16751 /* Override any GCC internal prototype to avoid an error.
16752 Use char because int might match the return type of a GCC
16753 builtin and then its argument prototype would still apply. */
16766 rm -f conftest.$ac_objext conftest$ac_exeext
16767 if { (ac_try="$ac_link"
16768 case "(($ac_try" in
16769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16770 *) ac_try_echo=$ac_try;;
16772 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
16773 $as_echo "$ac_try_echo") >&5
16774 (eval "$ac_link") 2>conftest.er1
16776 grep -v '^ *+' conftest.er1 >conftest.err
16778 cat conftest.err >&5
16779 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16780 (exit $ac_status); } && {
16781 test -z "$ac_c_werror_flag" ||
16782 test ! -s conftest.err
16783 } && test -s conftest$ac_exeext && {
16784 test "$cross_compiling" = yes ||
16785 $as_test_x conftest$ac_exeext
16787 ac_cv_lib_m_sqrt=yes
16789 $as_echo "$as_me: failed program was
:" >&5
16790 sed 's/^/| /' conftest.$ac_ext >&5
16792 ac_cv_lib_m_sqrt=no
16795 rm -rf conftest.dSYM
16796 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16797 conftest$ac_exeext conftest.$ac_ext
16798 LIBS=$ac_check_lib_save_LIBS
16800 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_m_sqrt" >&5
16801 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
16802 if test $ac_cv_lib_m_sqrt = yes; then
16803 cat >>confdefs.h <<_ACEOF
16804 #define HAVE_LIBM 1
16812 # Check for mail-locking functions in a "mail" library. Probably this should
16813 # have the same check as for liblockfile below.
16814 { $as_echo "$as_me:$LINENO: checking
for maillock
in -lmail" >&5
16815 $as_echo_n "checking
for maillock
in -lmail...
" >&6; }
16816 if test "${ac_cv_lib_mail_maillock+set}" = set; then
16817 $as_echo_n "(cached
) " >&6
16819 ac_check_lib_save_LIBS=$LIBS
16820 LIBS="-lmail $LIBS"
16821 cat >conftest.$ac_ext <<_ACEOF
16824 cat confdefs.h >>conftest.$ac_ext
16825 cat >>conftest.$ac_ext <<_ACEOF
16826 /* end confdefs.h. */
16828 /* Override any GCC internal prototype to avoid an error.
16829 Use char because int might match the return type of a GCC
16830 builtin and then its argument prototype would still apply. */
16838 return maillock ();
16843 rm -f conftest.$ac_objext conftest$ac_exeext
16844 if { (ac_try="$ac_link"
16845 case "(($ac_try" in
16846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16847 *) ac_try_echo=$ac_try;;
16849 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
16850 $as_echo "$ac_try_echo") >&5
16851 (eval "$ac_link") 2>conftest.er1
16853 grep -v '^ *+' conftest.er1 >conftest.err
16855 cat conftest.err >&5
16856 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16857 (exit $ac_status); } && {
16858 test -z "$ac_c_werror_flag" ||
16859 test ! -s conftest.err
16860 } && test -s conftest$ac_exeext && {
16861 test "$cross_compiling" = yes ||
16862 $as_test_x conftest$ac_exeext
16864 ac_cv_lib_mail_maillock=yes
16866 $as_echo "$as_me: failed program was
:" >&5
16867 sed 's/^/| /' conftest.$ac_ext >&5
16869 ac_cv_lib_mail_maillock=no
16872 rm -rf conftest.dSYM
16873 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16874 conftest$ac_exeext conftest.$ac_ext
16875 LIBS=$ac_check_lib_save_LIBS
16877 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_mail_maillock" >&5
16878 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
16879 if test $ac_cv_lib_mail_maillock = yes; then
16885 if test $have_mail = yes; then
16887 LIBS="$LIBS_MAIL $LIBS"
16889 cat >>confdefs.h <<\_ACEOF
16890 #define HAVE_LIBMAIL 1
16896 { $as_echo "$as_me:$LINENO: checking
for maillock
in -llockfile" >&5
16897 $as_echo_n "checking
for maillock
in -llockfile...
" >&6; }
16898 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
16899 $as_echo_n "(cached
) " >&6
16901 ac_check_lib_save_LIBS=$LIBS
16902 LIBS="-llockfile $LIBS"
16903 cat >conftest.$ac_ext <<_ACEOF
16906 cat confdefs.h >>conftest.$ac_ext
16907 cat >>conftest.$ac_ext <<_ACEOF
16908 /* end confdefs.h. */
16910 /* Override any GCC internal prototype to avoid an error.
16911 Use char because int might match the return type of a GCC
16912 builtin and then its argument prototype would still apply. */
16920 return maillock ();
16925 rm -f conftest.$ac_objext conftest$ac_exeext
16926 if { (ac_try="$ac_link"
16927 case "(($ac_try" in
16928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16929 *) ac_try_echo=$ac_try;;
16931 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
16932 $as_echo "$ac_try_echo") >&5
16933 (eval "$ac_link") 2>conftest.er1
16935 grep -v '^ *+' conftest.er1 >conftest.err
16937 cat conftest.err >&5
16938 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16939 (exit $ac_status); } && {
16940 test -z "$ac_c_werror_flag" ||
16941 test ! -s conftest.err
16942 } && test -s conftest$ac_exeext && {
16943 test "$cross_compiling" = yes ||
16944 $as_test_x conftest$ac_exeext
16946 ac_cv_lib_lockfile_maillock=yes
16948 $as_echo "$as_me: failed program was
:" >&5
16949 sed 's/^/| /' conftest.$ac_ext >&5
16951 ac_cv_lib_lockfile_maillock=no
16954 rm -rf conftest.dSYM
16955 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16956 conftest$ac_exeext conftest.$ac_ext
16957 LIBS=$ac_check_lib_save_LIBS
16959 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_lockfile_maillock" >&5
16960 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
16961 if test $ac_cv_lib_lockfile_maillock = yes; then
16967 if test $have_lockfile = yes; then
16968 LIBS_MAIL=-llockfile
16969 LIBS="$LIBS_MAIL $LIBS"
16971 cat >>confdefs.h <<\_ACEOF
16972 #define HAVE_LIBLOCKFILE 1
16976 # If we have the shared liblockfile, assume we must use it for mail
16977 # locking (e.g. Debian). If we couldn't link against liblockfile
16978 # (no liblockfile.a installed), ensure that we don't need to.
16979 # Extract the first word of "liblockfile.so
", so it can be a program name with args.
16980 set dummy liblockfile.so; ac_word=$2
16981 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
16982 $as_echo_n "checking
for $ac_word...
" >&6; }
16983 if test "${ac_cv_prog_liblockfile+set}" = set; then
16984 $as_echo_n "(cached
) " >&6
16986 if test -n "$liblockfile"; then
16987 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
16989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16990 as_dummy="/usr
/lib
:/lib
:/usr
/local
/lib
:$LD_LIBRARY_PATH"
16991 for as_dir in $as_dummy
16994 test -z "$as_dir" && as_dir=.
16995 for ac_exec_ext in '' $ac_executable_extensions; do
16996 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16997 ac_cv_prog_liblockfile="yes"
16998 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
17005 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no
"
17008 liblockfile=$ac_cv_prog_liblockfile
17009 if test -n "$liblockfile"; then
17010 { $as_echo "$as_me:$LINENO: result
: $liblockfile" >&5
17011 $as_echo "$liblockfile" >&6; }
17013 { $as_echo "$as_me:$LINENO: result
: no
" >&5
17014 $as_echo "no
" >&6; }
17018 if test $ac_cv_prog_liblockfile = yes; then
17019 { { $as_echo "$as_me:$LINENO: error
: Shared liblockfile found but can
't link against it.
17020 This probably means that movemail could lose mail.
17021 There may be a \`development' package to
install containing liblockfile.
" >&5
17022 $as_echo "$as_me: error
: Shared liblockfile found but can
't link against it.
17023 This probably means that movemail could lose mail.
17024 There may be a \`development' package to
install containing liblockfile.
" >&2;}
17025 { (exit 1); exit 1; }; }
17029 for ac_func in touchlock
17031 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
17032 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
17033 $as_echo_n "checking
for $ac_func...
" >&6; }
17034 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
17035 $as_echo_n "(cached
) " >&6
17037 cat >conftest.$ac_ext <<_ACEOF
17040 cat confdefs.h >>conftest.$ac_ext
17041 cat >>conftest.$ac_ext <<_ACEOF
17042 /* end confdefs.h. */
17043 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17044 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17045 #define $ac_func innocuous_$ac_func
17047 /* System header to define __stub macros and hopefully few prototypes,
17048 which can conflict with char $ac_func (); below.
17049 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17050 <limits.h> exists even on freestanding compilers. */
17053 # include <limits.h>
17055 # include <assert.h>
17060 /* Override any GCC internal prototype to avoid an error.
17061 Use char because int might match the return type of a GCC
17062 builtin and then its argument prototype would still apply. */
17067 /* The GNU C library defines this for functions which it implements
17068 to always fail with ENOSYS. Some functions are actually named
17069 something starting with __ and the normal name is an alias. */
17070 #if defined __stub_$ac_func || defined __stub___$ac_func
17077 return $ac_func ();
17082 rm -f conftest.$ac_objext conftest$ac_exeext
17083 if { (ac_try="$ac_link"
17084 case "(($ac_try" in
17085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17086 *) ac_try_echo=$ac_try;;
17088 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
17089 $as_echo "$ac_try_echo") >&5
17090 (eval "$ac_link") 2>conftest.er1
17092 grep -v '^ *+' conftest.er1 >conftest.err
17094 cat conftest.err >&5
17095 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17096 (exit $ac_status); } && {
17097 test -z "$ac_c_werror_flag" ||
17098 test ! -s conftest.err
17099 } && test -s conftest$ac_exeext && {
17100 test "$cross_compiling" = yes ||
17101 $as_test_x conftest$ac_exeext
17103 eval "$as_ac_var=yes"
17105 $as_echo "$as_me: failed program was
:" >&5
17106 sed 's/^/| /' conftest.$ac_ext >&5
17108 eval "$as_ac_var=no
"
17111 rm -rf conftest.dSYM
17112 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17113 conftest$ac_exeext conftest.$ac_ext
17115 ac_res=`eval 'as_val=${'$as_ac_var'}
17116 $as_echo "$as_val"'`
17117 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
17118 $as_echo "$ac_res" >&6; }
17119 if test `eval 'as_val=${'$as_ac_var'}
17120 $as_echo "$as_val"'` = yes; then
17121 cat >>confdefs.h <<_ACEOF
17122 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
17129 for ac_header in maillock.h
17131 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
17132 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17133 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
17134 $as_echo_n "checking
for $ac_header...
" >&6; }
17135 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17136 $as_echo_n "(cached
) " >&6
17138 ac_res=`eval 'as_val=${'$as_ac_Header'}
17139 $as_echo "$as_val"'`
17140 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
17141 $as_echo "$ac_res" >&6; }
17143 # Is the header compilable?
17144 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
17145 $as_echo_n "checking
$ac_header usability...
" >&6; }
17146 cat >conftest.$ac_ext <<_ACEOF
17149 cat confdefs.h >>conftest.$ac_ext
17150 cat >>conftest.$ac_ext <<_ACEOF
17151 /* end confdefs.h. */
17152 $ac_includes_default
17153 #include <$ac_header>
17155 rm -f conftest.$ac_objext
17156 if { (ac_try="$ac_compile"
17157 case "(($ac_try" in
17158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17159 *) ac_try_echo=$ac_try;;
17161 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
17162 $as_echo "$ac_try_echo") >&5
17163 (eval "$ac_compile") 2>conftest.er1
17165 grep -v '^ *+' conftest.er1 >conftest.err
17167 cat conftest.err >&5
17168 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17169 (exit $ac_status); } && {
17170 test -z "$ac_c_werror_flag" ||
17171 test ! -s conftest.err
17172 } && test -s conftest.$ac_objext; then
17173 ac_header_compiler=yes
17175 $as_echo "$as_me: failed program was
:" >&5
17176 sed 's/^/| /' conftest.$ac_ext >&5
17178 ac_header_compiler=no
17181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17182 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17183 $as_echo "$ac_header_compiler" >&6; }
17185 # Is the header present?
17186 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
17187 $as_echo_n "checking
$ac_header presence...
" >&6; }
17188 cat >conftest.$ac_ext <<_ACEOF
17191 cat confdefs.h >>conftest.$ac_ext
17192 cat >>conftest.$ac_ext <<_ACEOF
17193 /* end confdefs.h. */
17194 #include <$ac_header>
17196 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17197 case "(($ac_try" in
17198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17199 *) ac_try_echo=$ac_try;;
17201 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
17202 $as_echo "$ac_try_echo") >&5
17203 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17205 grep -v '^ *+' conftest.er1 >conftest.err
17207 cat conftest.err >&5
17208 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17209 (exit $ac_status); } >/dev/null && {
17210 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17211 test ! -s conftest.err
17213 ac_header_preproc=yes
17215 $as_echo "$as_me: failed program was
:" >&5
17216 sed 's/^/| /' conftest.$ac_ext >&5
17218 ac_header_preproc=no
17221 rm -f conftest.err conftest.$ac_ext
17222 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17223 $as_echo "$ac_header_preproc" >&6; }
17225 # So? What about this header?
17226 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17228 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
17229 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17230 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
17231 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
17232 ac_header_preproc=yes
17235 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
17236 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
17237 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
17238 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
17239 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
17240 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
17241 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
17242 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
17243 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
17244 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
17245 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
17246 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
17250 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
17251 $as_echo_n "checking
for $ac_header...
" >&6; }
17252 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17253 $as_echo_n "(cached
) " >&6
17255 eval "$as_ac_Header=\
$ac_header_preproc"
17257 ac_res=`eval 'as_val=${'$as_ac_Header'}
17258 $as_echo "$as_val"'`
17259 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
17260 $as_echo "$ac_res" >&6; }
17263 if test `eval 'as_val=${'$as_ac_Header'}
17264 $as_echo "$as_val"'` = yes; then
17265 cat >>confdefs.h <<_ACEOF
17266 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
17346 for ac_func in gethostname getdomainname dup2 \
17347 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
17348 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime setsid \
17349 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
17350 utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \
17351 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
17352 sendto recvfrom getsockopt setsockopt getsockname getpeername \
17353 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
17354 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign \
17355 cfmakeraw cfsetspeed
17357 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
17358 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
17359 $as_echo_n "checking
for $ac_func...
" >&6; }
17360 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
17361 $as_echo_n "(cached
) " >&6
17363 cat >conftest.$ac_ext <<_ACEOF
17366 cat confdefs.h >>conftest.$ac_ext
17367 cat >>conftest.$ac_ext <<_ACEOF
17368 /* end confdefs.h. */
17369 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17370 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17371 #define $ac_func innocuous_$ac_func
17373 /* System header to define __stub macros and hopefully few prototypes,
17374 which can conflict with char $ac_func (); below.
17375 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17376 <limits.h> exists even on freestanding compilers. */
17379 # include <limits.h>
17381 # include <assert.h>
17386 /* Override any GCC internal prototype to avoid an error.
17387 Use char because int might match the return type of a GCC
17388 builtin and then its argument prototype would still apply. */
17393 /* The GNU C library defines this for functions which it implements
17394 to always fail with ENOSYS. Some functions are actually named
17395 something starting with __ and the normal name is an alias. */
17396 #if defined __stub_$ac_func || defined __stub___$ac_func
17403 return $ac_func ();
17408 rm -f conftest.$ac_objext conftest$ac_exeext
17409 if { (ac_try="$ac_link"
17410 case "(($ac_try" in
17411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17412 *) ac_try_echo=$ac_try;;
17414 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
17415 $as_echo "$ac_try_echo") >&5
17416 (eval "$ac_link") 2>conftest.er1
17418 grep -v '^ *+' conftest.er1 >conftest.err
17420 cat conftest.err >&5
17421 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17422 (exit $ac_status); } && {
17423 test -z "$ac_c_werror_flag" ||
17424 test ! -s conftest.err
17425 } && test -s conftest$ac_exeext && {
17426 test "$cross_compiling" = yes ||
17427 $as_test_x conftest$ac_exeext
17429 eval "$as_ac_var=yes"
17431 $as_echo "$as_me: failed program was
:" >&5
17432 sed 's/^/| /' conftest.$ac_ext >&5
17434 eval "$as_ac_var=no
"
17437 rm -rf conftest.dSYM
17438 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17439 conftest$ac_exeext conftest.$ac_ext
17441 ac_res=`eval 'as_val=${'$as_ac_var'}
17442 $as_echo "$as_val"'`
17443 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
17444 $as_echo "$ac_res" >&6; }
17445 if test `eval 'as_val=${'$as_ac_var'}
17446 $as_echo "$as_val"'` = yes; then
17447 cat >>confdefs.h <<_ACEOF
17448 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
17456 for ac_header in sys/un.h
17458 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
17459 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17460 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
17461 $as_echo_n "checking
for $ac_header...
" >&6; }
17462 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17463 $as_echo_n "(cached
) " >&6
17465 ac_res=`eval 'as_val=${'$as_ac_Header'}
17466 $as_echo "$as_val"'`
17467 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
17468 $as_echo "$ac_res" >&6; }
17470 # Is the header compilable?
17471 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
17472 $as_echo_n "checking
$ac_header usability...
" >&6; }
17473 cat >conftest.$ac_ext <<_ACEOF
17476 cat confdefs.h >>conftest.$ac_ext
17477 cat >>conftest.$ac_ext <<_ACEOF
17478 /* end confdefs.h. */
17479 $ac_includes_default
17480 #include <$ac_header>
17482 rm -f conftest.$ac_objext
17483 if { (ac_try="$ac_compile"
17484 case "(($ac_try" in
17485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17486 *) ac_try_echo=$ac_try;;
17488 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
17489 $as_echo "$ac_try_echo") >&5
17490 (eval "$ac_compile") 2>conftest.er1
17492 grep -v '^ *+' conftest.er1 >conftest.err
17494 cat conftest.err >&5
17495 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17496 (exit $ac_status); } && {
17497 test -z "$ac_c_werror_flag" ||
17498 test ! -s conftest.err
17499 } && test -s conftest.$ac_objext; then
17500 ac_header_compiler=yes
17502 $as_echo "$as_me: failed program was
:" >&5
17503 sed 's/^/| /' conftest.$ac_ext >&5
17505 ac_header_compiler=no
17508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17509 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17510 $as_echo "$ac_header_compiler" >&6; }
17512 # Is the header present?
17513 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
17514 $as_echo_n "checking
$ac_header presence...
" >&6; }
17515 cat >conftest.$ac_ext <<_ACEOF
17518 cat confdefs.h >>conftest.$ac_ext
17519 cat >>conftest.$ac_ext <<_ACEOF
17520 /* end confdefs.h. */
17521 #include <$ac_header>
17523 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17524 case "(($ac_try" in
17525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17526 *) ac_try_echo=$ac_try;;
17528 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
17529 $as_echo "$ac_try_echo") >&5
17530 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17532 grep -v '^ *+' conftest.er1 >conftest.err
17534 cat conftest.err >&5
17535 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17536 (exit $ac_status); } >/dev/null && {
17537 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17538 test ! -s conftest.err
17540 ac_header_preproc=yes
17542 $as_echo "$as_me: failed program was
:" >&5
17543 sed 's/^/| /' conftest.$ac_ext >&5
17545 ac_header_preproc=no
17548 rm -f conftest.err conftest.$ac_ext
17549 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17550 $as_echo "$ac_header_preproc" >&6; }
17552 # So? What about this header?
17553 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17555 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
17556 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17557 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
17558 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
17559 ac_header_preproc=yes
17562 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
17563 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
17564 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
17565 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
17566 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
17567 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
17568 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
17569 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
17570 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
17571 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
17572 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
17573 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
17577 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
17578 $as_echo_n "checking
for $ac_header...
" >&6; }
17579 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17580 $as_echo_n "(cached
) " >&6
17582 eval "$as_ac_Header=\
$ac_header_preproc"
17584 ac_res=`eval 'as_val=${'$as_ac_Header'}
17585 $as_echo "$as_val"'`
17586 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
17587 $as_echo "$ac_res" >&6; }
17590 if test `eval 'as_val=${'$as_ac_Header'}
17591 $as_echo "$as_val"'` = yes; then
17592 cat >>confdefs.h <<_ACEOF
17593 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
17605 for ac_header in $ac_header_list
17607 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
17608 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17609 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
17610 $as_echo_n "checking
for $ac_header...
" >&6; }
17611 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17612 $as_echo_n "(cached
) " >&6
17614 ac_res=`eval 'as_val=${'$as_ac_Header'}
17615 $as_echo "$as_val"'`
17616 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
17617 $as_echo "$ac_res" >&6; }
17619 # Is the header compilable?
17620 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
17621 $as_echo_n "checking
$ac_header usability...
" >&6; }
17622 cat >conftest.$ac_ext <<_ACEOF
17625 cat confdefs.h >>conftest.$ac_ext
17626 cat >>conftest.$ac_ext <<_ACEOF
17627 /* end confdefs.h. */
17628 $ac_includes_default
17629 #include <$ac_header>
17631 rm -f conftest.$ac_objext
17632 if { (ac_try="$ac_compile"
17633 case "(($ac_try" in
17634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17635 *) ac_try_echo=$ac_try;;
17637 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
17638 $as_echo "$ac_try_echo") >&5
17639 (eval "$ac_compile") 2>conftest.er1
17641 grep -v '^ *+' conftest.er1 >conftest.err
17643 cat conftest.err >&5
17644 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17645 (exit $ac_status); } && {
17646 test -z "$ac_c_werror_flag" ||
17647 test ! -s conftest.err
17648 } && test -s conftest.$ac_objext; then
17649 ac_header_compiler=yes
17651 $as_echo "$as_me: failed program was
:" >&5
17652 sed 's/^/| /' conftest.$ac_ext >&5
17654 ac_header_compiler=no
17657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17658 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17659 $as_echo "$ac_header_compiler" >&6; }
17661 # Is the header present?
17662 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
17663 $as_echo_n "checking
$ac_header presence...
" >&6; }
17664 cat >conftest.$ac_ext <<_ACEOF
17667 cat confdefs.h >>conftest.$ac_ext
17668 cat >>conftest.$ac_ext <<_ACEOF
17669 /* end confdefs.h. */
17670 #include <$ac_header>
17672 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17673 case "(($ac_try" in
17674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17675 *) ac_try_echo=$ac_try;;
17677 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
17678 $as_echo "$ac_try_echo") >&5
17679 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17681 grep -v '^ *+' conftest.er1 >conftest.err
17683 cat conftest.err >&5
17684 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17685 (exit $ac_status); } >/dev/null && {
17686 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17687 test ! -s conftest.err
17689 ac_header_preproc=yes
17691 $as_echo "$as_me: failed program was
:" >&5
17692 sed 's/^/| /' conftest.$ac_ext >&5
17694 ac_header_preproc=no
17697 rm -f conftest.err conftest.$ac_ext
17698 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17699 $as_echo "$ac_header_preproc" >&6; }
17701 # So? What about this header?
17702 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17704 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
17705 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17706 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
17707 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
17708 ac_header_preproc=yes
17711 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
17712 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
17713 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
17714 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
17715 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
17716 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
17717 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
17718 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
17719 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
17720 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
17721 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
17722 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
17726 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
17727 $as_echo_n "checking
for $ac_header...
" >&6; }
17728 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17729 $as_echo_n "(cached
) " >&6
17731 eval "$as_ac_Header=\
$ac_header_preproc"
17733 ac_res=`eval 'as_val=${'$as_ac_Header'}
17734 $as_echo "$as_val"'`
17735 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
17736 $as_echo "$ac_res" >&6; }
17739 if test `eval 'as_val=${'$as_ac_Header'}
17740 $as_echo "$as_val"'` = yes; then
17741 cat >>confdefs.h <<_ACEOF
17742 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
17757 for ac_func in $ac_func_list
17759 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
17760 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
17761 $as_echo_n "checking
for $ac_func...
" >&6; }
17762 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
17763 $as_echo_n "(cached
) " >&6
17765 cat >conftest.$ac_ext <<_ACEOF
17768 cat confdefs.h >>conftest.$ac_ext
17769 cat >>conftest.$ac_ext <<_ACEOF
17770 /* end confdefs.h. */
17771 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17772 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17773 #define $ac_func innocuous_$ac_func
17775 /* System header to define __stub macros and hopefully few prototypes,
17776 which can conflict with char $ac_func (); below.
17777 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17778 <limits.h> exists even on freestanding compilers. */
17781 # include <limits.h>
17783 # include <assert.h>
17788 /* Override any GCC internal prototype to avoid an error.
17789 Use char because int might match the return type of a GCC
17790 builtin and then its argument prototype would still apply. */
17795 /* The GNU C library defines this for functions which it implements
17796 to always fail with ENOSYS. Some functions are actually named
17797 something starting with __ and the normal name is an alias. */
17798 #if defined __stub_$ac_func || defined __stub___$ac_func
17805 return $ac_func ();
17810 rm -f conftest.$ac_objext conftest$ac_exeext
17811 if { (ac_try="$ac_link"
17812 case "(($ac_try" in
17813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17814 *) ac_try_echo=$ac_try;;
17816 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
17817 $as_echo "$ac_try_echo") >&5
17818 (eval "$ac_link") 2>conftest.er1
17820 grep -v '^ *+' conftest.er1 >conftest.err
17822 cat conftest.err >&5
17823 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17824 (exit $ac_status); } && {
17825 test -z "$ac_c_werror_flag" ||
17826 test ! -s conftest.err
17827 } && test -s conftest$ac_exeext && {
17828 test "$cross_compiling" = yes ||
17829 $as_test_x conftest$ac_exeext
17831 eval "$as_ac_var=yes"
17833 $as_echo "$as_me: failed program was
:" >&5
17834 sed 's/^/| /' conftest.$ac_ext >&5
17836 eval "$as_ac_var=no
"
17839 rm -rf conftest.dSYM
17840 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17841 conftest$ac_exeext conftest.$ac_ext
17843 ac_res=`eval 'as_val=${'$as_ac_var'}
17844 $as_echo "$as_val"'`
17845 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
17846 $as_echo "$ac_res" >&6; }
17847 if test `eval 'as_val=${'$as_ac_var'}
17848 $as_echo "$as_val"'` = yes; then
17849 cat >>confdefs.h <<_ACEOF
17850 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
17872 { $as_echo "$as_me:$LINENO: checking
for working mktime
" >&5
17873 $as_echo_n "checking
for working mktime...
" >&6; }
17874 if test "${ac_cv_func_working_mktime+set}" = set; then
17875 $as_echo_n "(cached
) " >&6
17877 if test "$cross_compiling" = yes; then
17878 ac_cv_func_working_mktime=no
17880 cat >conftest.$ac_ext <<_ACEOF
17883 cat confdefs.h >>conftest.$ac_ext
17884 cat >>conftest.$ac_ext <<_ACEOF
17885 /* end confdefs.h. */
17886 /* Test program from Paul Eggert and Tony Leneis. */
17887 #ifdef TIME_WITH_SYS_TIME
17888 # include <sys/time.h>
17891 # ifdef HAVE_SYS_TIME_H
17892 # include <sys/time.h>
17898 #include <limits.h>
17899 #include <stdlib.h>
17901 #ifdef HAVE_UNISTD_H
17902 # include <unistd.h>
17906 # define alarm(X) /* empty */
17909 /* Work around redefinition to rpl_putenv by other config tests. */
17912 static time_t time_t_max;
17913 static time_t time_t_min;
17915 /* Values we'll use to set the TZ environment variable. */
17916 static char *tz_strings[] = {
17917 (char *) 0, "TZ
=GMT0
", "TZ
=JST-9
",
17918 "TZ
=EST
+3EDT
+2,M10.1
.0/00:00:00,M2.3
.0/00:00:00"
17920 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
17922 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
17923 Based on a problem report from Andreas Jaeger. */
17925 spring_forward_gap ()
17927 /* glibc (up to about 1998-10-07) failed this test. */
17930 /* Use the portable POSIX.1 specification "TZ
=PST8PDT
,M4.1
.0,M10.5
.0"
17931 instead of "TZ
=America
/Vancouver
" in order to detect the bug even
17932 on systems that don't support the Olson extension, or don't have the
17933 full zoneinfo tables installed. */
17934 putenv ("TZ
=PST8PDT
,M4.1
.0,M10.5
.0");
17943 return mktime (&tm) != (time_t) -1;
17951 return ! (lt = localtime (&now)) || mktime (lt) == now;
17958 return (mktime_test1 (now)
17959 && mktime_test1 ((time_t) (time_t_max - now))
17960 && mktime_test1 ((time_t) (time_t_min + now)));
17966 /* Based on code from Ariel Faigon. */
17976 return tm.tm_mon == 2 && tm.tm_mday == 31;
17985 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
17986 now = mktime (&tm);
17987 if (now != (time_t) -1)
17989 struct tm *lt = localtime (&now);
17991 && lt->tm_year == tm.tm_year
17992 && lt->tm_mon == tm.tm_mon
17993 && lt->tm_mday == tm.tm_mday
17994 && lt->tm_hour == tm.tm_hour
17995 && lt->tm_min == tm.tm_min
17996 && lt->tm_sec == tm.tm_sec
17997 && lt->tm_yday == tm.tm_yday
17998 && lt->tm_wday == tm.tm_wday
17999 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
18000 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
18009 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
18010 ignoring leap seconds. */
18011 unsigned long int answer = 2527315200UL;
18015 tm.tm_year = 2050 - 1900;
18018 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
18021 /* Use the portable POSIX.1 specification "TZ
=PST8PDT
,M4.1
.0,M10.5
.0"
18022 instead of "TZ
=America
/Vancouver
" in order to detect the bug even
18023 on systems that don't support the Olson extension, or don't have the
18024 full zoneinfo tables installed. */
18025 putenv ("TZ
=PST8PDT
,M4.1
.0,M10.5
.0");
18029 /* Check that the result is either a failure, or close enough
18030 to the correct answer that we can assume the discrepancy is
18031 due to leap seconds. */
18032 return (t == (time_t) -1
18033 || (0 < t && answer - 120 <= t && t <= answer + 120));
18042 /* This test makes some buggy mktime implementations loop.
18043 Give up after 60 seconds; a mktime slower than that
18044 isn't worth using anyway. */
18049 t = (time_t_max << 1) + 1;
18050 if (t <= time_t_max)
18054 time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
18056 delta = time_t_max / 997; /* a suitable prime number */
18057 for (i = 0; i < N_STRINGS; i++)
18060 putenv (tz_strings[i]);
18062 for (t = 0; t <= time_t_max - delta; t += delta)
18063 if (! mktime_test (t))
18065 if (! (mktime_test ((time_t) 1)
18066 && mktime_test ((time_t) (60 * 60))
18067 && mktime_test ((time_t) (60 * 60 * 24))))
18070 for (j = 1; ; j <<= 1)
18071 if (! bigtime_test (j))
18073 else if (INT_MAX / 2 < j)
18075 if (! bigtime_test (INT_MAX))
18078 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
18081 rm -f conftest$ac_exeext
18082 if { (ac_try="$ac_link"
18083 case "(($ac_try" in
18084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18085 *) ac_try_echo=$ac_try;;
18087 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18088 $as_echo "$ac_try_echo") >&5
18089 (eval "$ac_link") 2>&5
18091 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18092 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18093 { (case "(($ac_try" in
18094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18095 *) ac_try_echo=$ac_try;;
18097 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18098 $as_echo "$ac_try_echo") >&5
18099 (eval "$ac_try") 2>&5
18101 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18102 (exit $ac_status); }; }; then
18103 ac_cv_func_working_mktime=yes
18105 $as_echo "$as_me: program exited with status
$ac_status" >&5
18106 $as_echo "$as_me: failed program was
:" >&5
18107 sed 's/^/| /' conftest.$ac_ext >&5
18109 ( exit $ac_status )
18110 ac_cv_func_working_mktime=no
18112 rm -rf conftest.dSYM
18113 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18118 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func_working_mktime" >&5
18119 $as_echo "$ac_cv_func_working_mktime" >&6; }
18120 if test $ac_cv_func_working_mktime = no; then
18121 case " $LIBOBJS " in
18122 *" mktime.
$ac_objext "* ) ;;
18123 *) LIBOBJS="$LIBOBJS mktime.
$ac_objext"
18129 if test "$ac_cv_func_working_mktime" = no; then
18131 cat >>confdefs.h <<\_ACEOF
18132 #define BROKEN_MKTIME 1
18137 ac_have_func=no # yes means we've found a way to get the load average.
18139 # Make sure getloadavg.c is where it belongs, at configure-time.
18140 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c
" ||
18141 { { $as_echo "$as_me:$LINENO: error
: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing
" >&5
18142 $as_echo "$as_me: error
: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing
" >&2;}
18143 { (exit 1); exit 1; }; }
18147 # Check for getloadavg, but be sure not to touch the cache variable.
18148 ({ $as_echo "$as_me:$LINENO: checking
for getloadavg
" >&5
18149 $as_echo_n "checking
for getloadavg...
" >&6; }
18150 if test "${ac_cv_func_getloadavg+set}" = set; then
18151 $as_echo_n "(cached
) " >&6
18153 cat >conftest.$ac_ext <<_ACEOF
18156 cat confdefs.h >>conftest.$ac_ext
18157 cat >>conftest.$ac_ext <<_ACEOF
18158 /* end confdefs.h. */
18159 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
18160 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18161 #define getloadavg innocuous_getloadavg
18163 /* System header to define __stub macros and hopefully few prototypes,
18164 which can conflict with char getloadavg (); below.
18165 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18166 <limits.h> exists even on freestanding compilers. */
18169 # include <limits.h>
18171 # include <assert.h>
18176 /* Override any GCC internal prototype to avoid an error.
18177 Use char because int might match the return type of a GCC
18178 builtin and then its argument prototype would still apply. */
18182 char getloadavg ();
18183 /* The GNU C library defines this for functions which it implements
18184 to always fail with ENOSYS. Some functions are actually named
18185 something starting with __ and the normal name is an alias. */
18186 #if defined __stub_getloadavg || defined __stub___getloadavg
18193 return getloadavg ();
18198 rm -f conftest.$ac_objext conftest$ac_exeext
18199 if { (ac_try="$ac_link"
18200 case "(($ac_try" in
18201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18202 *) ac_try_echo=$ac_try;;
18204 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18205 $as_echo "$ac_try_echo") >&5
18206 (eval "$ac_link") 2>conftest.er1
18208 grep -v '^ *+' conftest.er1 >conftest.err
18210 cat conftest.err >&5
18211 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18212 (exit $ac_status); } && {
18213 test -z "$ac_c_werror_flag" ||
18214 test ! -s conftest.err
18215 } && test -s conftest$ac_exeext && {
18216 test "$cross_compiling" = yes ||
18217 $as_test_x conftest$ac_exeext
18219 ac_cv_func_getloadavg=yes
18221 $as_echo "$as_me: failed program was
:" >&5
18222 sed 's/^/| /' conftest.$ac_ext >&5
18224 ac_cv_func_getloadavg=no
18227 rm -rf conftest.dSYM
18228 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18229 conftest$ac_exeext conftest.$ac_ext
18231 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func_getloadavg" >&5
18232 $as_echo "$ac_cv_func_getloadavg" >&6; }
18233 if test $ac_cv_func_getloadavg = yes; then
18238 ) && ac_have_func=yes
18240 # On HPUX9, an unprivileged user can get load averages through this function.
18242 for ac_func in pstat_getdynamic
18244 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
18245 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
18246 $as_echo_n "checking
for $ac_func...
" >&6; }
18247 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
18248 $as_echo_n "(cached
) " >&6
18250 cat >conftest.$ac_ext <<_ACEOF
18253 cat confdefs.h >>conftest.$ac_ext
18254 cat >>conftest.$ac_ext <<_ACEOF
18255 /* end confdefs.h. */
18256 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18257 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18258 #define $ac_func innocuous_$ac_func
18260 /* System header to define __stub macros and hopefully few prototypes,
18261 which can conflict with char $ac_func (); below.
18262 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18263 <limits.h> exists even on freestanding compilers. */
18266 # include <limits.h>
18268 # include <assert.h>
18273 /* Override any GCC internal prototype to avoid an error.
18274 Use char because int might match the return type of a GCC
18275 builtin and then its argument prototype would still apply. */
18280 /* The GNU C library defines this for functions which it implements
18281 to always fail with ENOSYS. Some functions are actually named
18282 something starting with __ and the normal name is an alias. */
18283 #if defined __stub_$ac_func || defined __stub___$ac_func
18290 return $ac_func ();
18295 rm -f conftest.$ac_objext conftest$ac_exeext
18296 if { (ac_try="$ac_link"
18297 case "(($ac_try" in
18298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18299 *) ac_try_echo=$ac_try;;
18301 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18302 $as_echo "$ac_try_echo") >&5
18303 (eval "$ac_link") 2>conftest.er1
18305 grep -v '^ *+' conftest.er1 >conftest.err
18307 cat conftest.err >&5
18308 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18309 (exit $ac_status); } && {
18310 test -z "$ac_c_werror_flag" ||
18311 test ! -s conftest.err
18312 } && test -s conftest$ac_exeext && {
18313 test "$cross_compiling" = yes ||
18314 $as_test_x conftest$ac_exeext
18316 eval "$as_ac_var=yes"
18318 $as_echo "$as_me: failed program was
:" >&5
18319 sed 's/^/| /' conftest.$ac_ext >&5
18321 eval "$as_ac_var=no
"
18324 rm -rf conftest.dSYM
18325 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18326 conftest$ac_exeext conftest.$ac_ext
18328 ac_res=`eval 'as_val=${'$as_ac_var'}
18329 $as_echo "$as_val"'`
18330 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
18331 $as_echo "$ac_res" >&6; }
18332 if test `eval 'as_val=${'$as_ac_var'}
18333 $as_echo "$as_val"'` = yes; then
18334 cat >>confdefs.h <<_ACEOF
18335 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
18342 # Solaris has libkstat which does not require root.
18344 { $as_echo "$as_me:$LINENO: checking
for kstat_open
in -lkstat" >&5
18345 $as_echo_n "checking
for kstat_open
in -lkstat...
" >&6; }
18346 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
18347 $as_echo_n "(cached
) " >&6
18349 ac_check_lib_save_LIBS=$LIBS
18350 LIBS="-lkstat $LIBS"
18351 cat >conftest.$ac_ext <<_ACEOF
18354 cat confdefs.h >>conftest.$ac_ext
18355 cat >>conftest.$ac_ext <<_ACEOF
18356 /* end confdefs.h. */
18358 /* Override any GCC internal prototype to avoid an error.
18359 Use char because int might match the return type of a GCC
18360 builtin and then its argument prototype would still apply. */
18364 char kstat_open ();
18368 return kstat_open ();
18373 rm -f conftest.$ac_objext conftest$ac_exeext
18374 if { (ac_try="$ac_link"
18375 case "(($ac_try" in
18376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18377 *) ac_try_echo=$ac_try;;
18379 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18380 $as_echo "$ac_try_echo") >&5
18381 (eval "$ac_link") 2>conftest.er1
18383 grep -v '^ *+' conftest.er1 >conftest.err
18385 cat conftest.err >&5
18386 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18387 (exit $ac_status); } && {
18388 test -z "$ac_c_werror_flag" ||
18389 test ! -s conftest.err
18390 } && test -s conftest$ac_exeext && {
18391 test "$cross_compiling" = yes ||
18392 $as_test_x conftest$ac_exeext
18394 ac_cv_lib_kstat_kstat_open=yes
18396 $as_echo "$as_me: failed program was
:" >&5
18397 sed 's/^/| /' conftest.$ac_ext >&5
18399 ac_cv_lib_kstat_kstat_open=no
18402 rm -rf conftest.dSYM
18403 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18404 conftest$ac_exeext conftest.$ac_ext
18405 LIBS=$ac_check_lib_save_LIBS
18407 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_kstat_kstat_open" >&5
18408 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
18409 if test $ac_cv_lib_kstat_kstat_open = yes; then
18410 cat >>confdefs.h <<_ACEOF
18411 #define HAVE_LIBKSTAT 1
18414 LIBS="-lkstat $LIBS"
18418 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
18420 # Some systems with -lutil have (and need) -lkvm as well, some do not.
18421 # On Solaris, -lkvm requires nlist from -lelf, so check that first
18422 # to get the right answer into the cache.
18423 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
18424 if test $ac_have_func = no; then
18425 { $as_echo "$as_me:$LINENO: checking
for elf_begin
in -lelf" >&5
18426 $as_echo_n "checking
for elf_begin
in -lelf...
" >&6; }
18427 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
18428 $as_echo_n "(cached
) " >&6
18430 ac_check_lib_save_LIBS=$LIBS
18432 cat >conftest.$ac_ext <<_ACEOF
18435 cat confdefs.h >>conftest.$ac_ext
18436 cat >>conftest.$ac_ext <<_ACEOF
18437 /* end confdefs.h. */
18439 /* Override any GCC internal prototype to avoid an error.
18440 Use char because int might match the return type of a GCC
18441 builtin and then its argument prototype would still apply. */
18449 return elf_begin ();
18454 rm -f conftest.$ac_objext conftest$ac_exeext
18455 if { (ac_try="$ac_link"
18456 case "(($ac_try" in
18457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18458 *) ac_try_echo=$ac_try;;
18460 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18461 $as_echo "$ac_try_echo") >&5
18462 (eval "$ac_link") 2>conftest.er1
18464 grep -v '^ *+' conftest.er1 >conftest.err
18466 cat conftest.err >&5
18467 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18468 (exit $ac_status); } && {
18469 test -z "$ac_c_werror_flag" ||
18470 test ! -s conftest.err
18471 } && test -s conftest$ac_exeext && {
18472 test "$cross_compiling" = yes ||
18473 $as_test_x conftest$ac_exeext
18475 ac_cv_lib_elf_elf_begin=yes
18477 $as_echo "$as_me: failed program was
:" >&5
18478 sed 's/^/| /' conftest.$ac_ext >&5
18480 ac_cv_lib_elf_elf_begin=no
18483 rm -rf conftest.dSYM
18484 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18485 conftest$ac_exeext conftest.$ac_ext
18486 LIBS=$ac_check_lib_save_LIBS
18488 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_elf_elf_begin" >&5
18489 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
18490 if test $ac_cv_lib_elf_elf_begin = yes; then
18495 if test $ac_have_func = no; then
18496 { $as_echo "$as_me:$LINENO: checking
for kvm_open
in -lkvm" >&5
18497 $as_echo_n "checking
for kvm_open
in -lkvm...
" >&6; }
18498 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
18499 $as_echo_n "(cached
) " >&6
18501 ac_check_lib_save_LIBS=$LIBS
18503 cat >conftest.$ac_ext <<_ACEOF
18506 cat confdefs.h >>conftest.$ac_ext
18507 cat >>conftest.$ac_ext <<_ACEOF
18508 /* end confdefs.h. */
18510 /* Override any GCC internal prototype to avoid an error.
18511 Use char because int might match the return type of a GCC
18512 builtin and then its argument prototype would still apply. */
18520 return kvm_open ();
18525 rm -f conftest.$ac_objext conftest$ac_exeext
18526 if { (ac_try="$ac_link"
18527 case "(($ac_try" in
18528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18529 *) ac_try_echo=$ac_try;;
18531 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18532 $as_echo "$ac_try_echo") >&5
18533 (eval "$ac_link") 2>conftest.er1
18535 grep -v '^ *+' conftest.er1 >conftest.err
18537 cat conftest.err >&5
18538 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18539 (exit $ac_status); } && {
18540 test -z "$ac_c_werror_flag" ||
18541 test ! -s conftest.err
18542 } && test -s conftest$ac_exeext && {
18543 test "$cross_compiling" = yes ||
18544 $as_test_x conftest$ac_exeext
18546 ac_cv_lib_kvm_kvm_open=yes
18548 $as_echo "$as_me: failed program was
:" >&5
18549 sed 's/^/| /' conftest.$ac_ext >&5
18551 ac_cv_lib_kvm_kvm_open=no
18554 rm -rf conftest.dSYM
18555 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18556 conftest$ac_exeext conftest.$ac_ext
18557 LIBS=$ac_check_lib_save_LIBS
18559 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_kvm_kvm_open" >&5
18560 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
18561 if test $ac_cv_lib_kvm_kvm_open = yes; then
18565 # Check for the 4.4BSD definition of getloadavg.
18566 { $as_echo "$as_me:$LINENO: checking
for getloadavg
in -lutil" >&5
18567 $as_echo_n "checking
for getloadavg
in -lutil...
" >&6; }
18568 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
18569 $as_echo_n "(cached
) " >&6
18571 ac_check_lib_save_LIBS=$LIBS
18572 LIBS="-lutil $LIBS"
18573 cat >conftest.$ac_ext <<_ACEOF
18576 cat confdefs.h >>conftest.$ac_ext
18577 cat >>conftest.$ac_ext <<_ACEOF
18578 /* end confdefs.h. */
18580 /* Override any GCC internal prototype to avoid an error.
18581 Use char because int might match the return type of a GCC
18582 builtin and then its argument prototype would still apply. */
18586 char getloadavg ();
18590 return getloadavg ();
18595 rm -f conftest.$ac_objext conftest$ac_exeext
18596 if { (ac_try="$ac_link"
18597 case "(($ac_try" in
18598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18599 *) ac_try_echo=$ac_try;;
18601 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18602 $as_echo "$ac_try_echo") >&5
18603 (eval "$ac_link") 2>conftest.er1
18605 grep -v '^ *+' conftest.er1 >conftest.err
18607 cat conftest.err >&5
18608 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18609 (exit $ac_status); } && {
18610 test -z "$ac_c_werror_flag" ||
18611 test ! -s conftest.err
18612 } && test -s conftest$ac_exeext && {
18613 test "$cross_compiling" = yes ||
18614 $as_test_x conftest$ac_exeext
18616 ac_cv_lib_util_getloadavg=yes
18618 $as_echo "$as_me: failed program was
:" >&5
18619 sed 's/^/| /' conftest.$ac_ext >&5
18621 ac_cv_lib_util_getloadavg=no
18624 rm -rf conftest.dSYM
18625 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18626 conftest$ac_exeext conftest.$ac_ext
18627 LIBS=$ac_check_lib_save_LIBS
18629 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_util_getloadavg" >&5
18630 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
18631 if test $ac_cv_lib_util_getloadavg = yes; then
18632 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
18637 if test $ac_have_func = no; then
18638 # There is a commonly available library for RS/6000 AIX.
18639 # Since it is not a standard part of AIX, it might be installed locally.
18640 ac_getloadavg_LIBS=$LIBS
18641 LIBS="-L/usr
/local
/lib
$LIBS"
18642 { $as_echo "$as_me:$LINENO: checking
for getloadavg
in -lgetloadavg" >&5
18643 $as_echo_n "checking
for getloadavg
in -lgetloadavg...
" >&6; }
18644 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
18645 $as_echo_n "(cached
) " >&6
18647 ac_check_lib_save_LIBS=$LIBS
18648 LIBS="-lgetloadavg $LIBS"
18649 cat >conftest.$ac_ext <<_ACEOF
18652 cat confdefs.h >>conftest.$ac_ext
18653 cat >>conftest.$ac_ext <<_ACEOF
18654 /* end confdefs.h. */
18656 /* Override any GCC internal prototype to avoid an error.
18657 Use char because int might match the return type of a GCC
18658 builtin and then its argument prototype would still apply. */
18662 char getloadavg ();
18666 return getloadavg ();
18671 rm -f conftest.$ac_objext conftest$ac_exeext
18672 if { (ac_try="$ac_link"
18673 case "(($ac_try" in
18674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18675 *) ac_try_echo=$ac_try;;
18677 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18678 $as_echo "$ac_try_echo") >&5
18679 (eval "$ac_link") 2>conftest.er1
18681 grep -v '^ *+' conftest.er1 >conftest.err
18683 cat conftest.err >&5
18684 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18685 (exit $ac_status); } && {
18686 test -z "$ac_c_werror_flag" ||
18687 test ! -s conftest.err
18688 } && test -s conftest$ac_exeext && {
18689 test "$cross_compiling" = yes ||
18690 $as_test_x conftest$ac_exeext
18692 ac_cv_lib_getloadavg_getloadavg=yes
18694 $as_echo "$as_me: failed program was
:" >&5
18695 sed 's/^/| /' conftest.$ac_ext >&5
18697 ac_cv_lib_getloadavg_getloadavg=no
18700 rm -rf conftest.dSYM
18701 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18702 conftest$ac_exeext conftest.$ac_ext
18703 LIBS=$ac_check_lib_save_LIBS
18705 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_getloadavg_getloadavg" >&5
18706 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
18707 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
18708 LIBS="-lgetloadavg $LIBS"
18710 LIBS=$ac_getloadavg_LIBS
18715 # Make sure it is really in the library, if we think we found it,
18716 # otherwise set up the replacement function.
18718 for ac_func in getloadavg
18720 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
18721 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
18722 $as_echo_n "checking
for $ac_func...
" >&6; }
18723 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
18724 $as_echo_n "(cached
) " >&6
18726 cat >conftest.$ac_ext <<_ACEOF
18729 cat confdefs.h >>conftest.$ac_ext
18730 cat >>conftest.$ac_ext <<_ACEOF
18731 /* end confdefs.h. */
18732 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18733 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18734 #define $ac_func innocuous_$ac_func
18736 /* System header to define __stub macros and hopefully few prototypes,
18737 which can conflict with char $ac_func (); below.
18738 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18739 <limits.h> exists even on freestanding compilers. */
18742 # include <limits.h>
18744 # include <assert.h>
18749 /* Override any GCC internal prototype to avoid an error.
18750 Use char because int might match the return type of a GCC
18751 builtin and then its argument prototype would still apply. */
18756 /* The GNU C library defines this for functions which it implements
18757 to always fail with ENOSYS. Some functions are actually named
18758 something starting with __ and the normal name is an alias. */
18759 #if defined __stub_$ac_func || defined __stub___$ac_func
18766 return $ac_func ();
18771 rm -f conftest.$ac_objext conftest$ac_exeext
18772 if { (ac_try="$ac_link"
18773 case "(($ac_try" in
18774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18775 *) ac_try_echo=$ac_try;;
18777 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18778 $as_echo "$ac_try_echo") >&5
18779 (eval "$ac_link") 2>conftest.er1
18781 grep -v '^ *+' conftest.er1 >conftest.err
18783 cat conftest.err >&5
18784 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18785 (exit $ac_status); } && {
18786 test -z "$ac_c_werror_flag" ||
18787 test ! -s conftest.err
18788 } && test -s conftest$ac_exeext && {
18789 test "$cross_compiling" = yes ||
18790 $as_test_x conftest$ac_exeext
18792 eval "$as_ac_var=yes"
18794 $as_echo "$as_me: failed program was
:" >&5
18795 sed 's/^/| /' conftest.$ac_ext >&5
18797 eval "$as_ac_var=no
"
18800 rm -rf conftest.dSYM
18801 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18802 conftest$ac_exeext conftest.$ac_ext
18804 ac_res=`eval 'as_val=${'$as_ac_var'}
18805 $as_echo "$as_val"'`
18806 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
18807 $as_echo "$ac_res" >&6; }
18808 if test `eval 'as_val=${'$as_ac_var'}
18809 $as_echo "$as_val"'` = yes; then
18810 cat >>confdefs.h <<_ACEOF
18811 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
18815 case " $LIBOBJS " in
18816 *" getloadavg.
$ac_objext "* ) ;;
18817 *) LIBOBJS="$LIBOBJS getloadavg.
$ac_objext"
18822 cat >>confdefs.h <<\_ACEOF
18823 #define C_GETLOADAVG 1
18826 # Figure out what our getloadavg.c needs.
18828 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
18829 { $as_echo "$as_me:$LINENO: checking
for sys
/dg_sys_info.h
" >&5
18830 $as_echo_n "checking
for sys
/dg_sys_info.h...
" >&6; }
18831 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
18832 $as_echo_n "(cached
) " >&6
18834 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_sys_dg_sys_info_h" >&5
18835 $as_echo "$ac_cv_header_sys_dg_sys_info_h" >&6; }
18837 # Is the header compilable?
18838 { $as_echo "$as_me:$LINENO: checking sys
/dg_sys_info.h usability
" >&5
18839 $as_echo_n "checking sys
/dg_sys_info.h usability...
" >&6; }
18840 cat >conftest.$ac_ext <<_ACEOF
18843 cat confdefs.h >>conftest.$ac_ext
18844 cat >>conftest.$ac_ext <<_ACEOF
18845 /* end confdefs.h. */
18846 $ac_includes_default
18847 #include <sys/dg_sys_info.h>
18849 rm -f conftest.$ac_objext
18850 if { (ac_try="$ac_compile"
18851 case "(($ac_try" in
18852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18853 *) ac_try_echo=$ac_try;;
18855 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18856 $as_echo "$ac_try_echo") >&5
18857 (eval "$ac_compile") 2>conftest.er1
18859 grep -v '^ *+' conftest.er1 >conftest.err
18861 cat conftest.err >&5
18862 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18863 (exit $ac_status); } && {
18864 test -z "$ac_c_werror_flag" ||
18865 test ! -s conftest.err
18866 } && test -s conftest.$ac_objext; then
18867 ac_header_compiler=yes
18869 $as_echo "$as_me: failed program was
:" >&5
18870 sed 's/^/| /' conftest.$ac_ext >&5
18872 ac_header_compiler=no
18875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18876 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
18877 $as_echo "$ac_header_compiler" >&6; }
18879 # Is the header present?
18880 { $as_echo "$as_me:$LINENO: checking sys
/dg_sys_info.h presence
" >&5
18881 $as_echo_n "checking sys
/dg_sys_info.h presence...
" >&6; }
18882 cat >conftest.$ac_ext <<_ACEOF
18885 cat confdefs.h >>conftest.$ac_ext
18886 cat >>conftest.$ac_ext <<_ACEOF
18887 /* end confdefs.h. */
18888 #include <sys/dg_sys_info.h>
18890 if { (ac_try="$ac_cpp conftest.
$ac_ext"
18891 case "(($ac_try" in
18892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18893 *) ac_try_echo=$ac_try;;
18895 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18896 $as_echo "$ac_try_echo") >&5
18897 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
18899 grep -v '^ *+' conftest.er1 >conftest.err
18901 cat conftest.err >&5
18902 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18903 (exit $ac_status); } >/dev/null && {
18904 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18905 test ! -s conftest.err
18907 ac_header_preproc=yes
18909 $as_echo "$as_me: failed program was
:" >&5
18910 sed 's/^/| /' conftest.$ac_ext >&5
18912 ac_header_preproc=no
18915 rm -f conftest.err conftest.$ac_ext
18916 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
18917 $as_echo "$ac_header_preproc" >&6; }
18919 # So? What about this header?
18920 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18922 { $as_echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
18923 $as_echo "$as_me: WARNING
: sys
/dg_sys_info.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
18924 { $as_echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: proceeding with the compiler
's result" >&5
18925 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result
" >&2;}
18926 ac_header_preproc=yes
18929 { $as_echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: present but cannot be compiled
" >&5
18930 $as_echo "$as_me: WARNING
: sys
/dg_sys_info.h
: present but cannot be compiled
" >&2;}
18931 { $as_echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: check
for missing prerequisite headers?
" >&5
18932 $as_echo "$as_me: WARNING
: sys
/dg_sys_info.h
: check
for missing prerequisite headers?
" >&2;}
18933 { $as_echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: see the Autoconf documentation
" >&5
18934 $as_echo "$as_me: WARNING
: sys
/dg_sys_info.h
: see the Autoconf documentation
" >&2;}
18935 { $as_echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: section
\"Present But Cannot Be Compiled
\"" >&5
18936 $as_echo "$as_me: WARNING
: sys
/dg_sys_info.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
18937 { $as_echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: proceeding with the preprocessor
's result" >&5
18938 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result
" >&2;}
18939 { $as_echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: in the future
, the compiler will take precedence
" >&5
18940 $as_echo "$as_me: WARNING
: sys
/dg_sys_info.h
: in the future
, the compiler will take precedence
" >&2;}
18944 { $as_echo "$as_me:$LINENO: checking
for sys
/dg_sys_info.h
" >&5
18945 $as_echo_n "checking
for sys
/dg_sys_info.h...
" >&6; }
18946 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
18947 $as_echo_n "(cached
) " >&6
18949 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
18951 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_sys_dg_sys_info_h" >&5
18952 $as_echo "$ac_cv_header_sys_dg_sys_info_h" >&6; }
18955 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
18958 cat >>confdefs.h <<\_ACEOF
18963 { $as_echo "$as_me:$LINENO: checking
for dg_sys_info
in -ldgc" >&5
18964 $as_echo_n "checking
for dg_sys_info
in -ldgc...
" >&6; }
18965 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
18966 $as_echo_n "(cached
) " >&6
18968 ac_check_lib_save_LIBS=$LIBS
18970 cat >conftest.$ac_ext <<_ACEOF
18973 cat confdefs.h >>conftest.$ac_ext
18974 cat >>conftest.$ac_ext <<_ACEOF
18975 /* end confdefs.h. */
18977 /* Override any GCC internal prototype to avoid an error.
18978 Use char because int might match the return type of a GCC
18979 builtin and then its argument prototype would still apply. */
18983 char dg_sys_info ();
18987 return dg_sys_info ();
18992 rm -f conftest.$ac_objext conftest$ac_exeext
18993 if { (ac_try="$ac_link"
18994 case "(($ac_try" in
18995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18996 *) ac_try_echo=$ac_try;;
18998 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18999 $as_echo "$ac_try_echo") >&5
19000 (eval "$ac_link") 2>conftest.er1
19002 grep -v '^ *+' conftest.er1 >conftest.err
19004 cat conftest.err >&5
19005 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19006 (exit $ac_status); } && {
19007 test -z "$ac_c_werror_flag" ||
19008 test ! -s conftest.err
19009 } && test -s conftest$ac_exeext && {
19010 test "$cross_compiling" = yes ||
19011 $as_test_x conftest$ac_exeext
19013 ac_cv_lib_dgc_dg_sys_info=yes
19015 $as_echo "$as_me: failed program was
:" >&5
19016 sed 's/^/| /' conftest.$ac_ext >&5
19018 ac_cv_lib_dgc_dg_sys_info=no
19021 rm -rf conftest.dSYM
19022 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19023 conftest$ac_exeext conftest.$ac_ext
19024 LIBS=$ac_check_lib_save_LIBS
19026 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_dgc_dg_sys_info" >&5
19027 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
19028 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
19029 cat >>confdefs.h <<_ACEOF
19030 #define HAVE_LIBDGC 1
19041 if test "${ac_cv_header_locale_h+set}" = set; then
19042 { $as_echo "$as_me:$LINENO: checking
for locale.h
" >&5
19043 $as_echo_n "checking
for locale.h...
" >&6; }
19044 if test "${ac_cv_header_locale_h+set}" = set; then
19045 $as_echo_n "(cached
) " >&6
19047 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_locale_h" >&5
19048 $as_echo "$ac_cv_header_locale_h" >&6; }
19050 # Is the header compilable?
19051 { $as_echo "$as_me:$LINENO: checking locale.h usability
" >&5
19052 $as_echo_n "checking locale.h usability...
" >&6; }
19053 cat >conftest.$ac_ext <<_ACEOF
19056 cat confdefs.h >>conftest.$ac_ext
19057 cat >>conftest.$ac_ext <<_ACEOF
19058 /* end confdefs.h. */
19059 $ac_includes_default
19060 #include <locale.h>
19062 rm -f conftest.$ac_objext
19063 if { (ac_try="$ac_compile"
19064 case "(($ac_try" in
19065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19066 *) ac_try_echo=$ac_try;;
19068 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19069 $as_echo "$ac_try_echo") >&5
19070 (eval "$ac_compile") 2>conftest.er1
19072 grep -v '^ *+' conftest.er1 >conftest.err
19074 cat conftest.err >&5
19075 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19076 (exit $ac_status); } && {
19077 test -z "$ac_c_werror_flag" ||
19078 test ! -s conftest.err
19079 } && test -s conftest.$ac_objext; then
19080 ac_header_compiler=yes
19082 $as_echo "$as_me: failed program was
:" >&5
19083 sed 's/^/| /' conftest.$ac_ext >&5
19085 ac_header_compiler=no
19088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19089 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
19090 $as_echo "$ac_header_compiler" >&6; }
19092 # Is the header present?
19093 { $as_echo "$as_me:$LINENO: checking locale.h presence
" >&5
19094 $as_echo_n "checking locale.h presence...
" >&6; }
19095 cat >conftest.$ac_ext <<_ACEOF
19098 cat confdefs.h >>conftest.$ac_ext
19099 cat >>conftest.$ac_ext <<_ACEOF
19100 /* end confdefs.h. */
19101 #include <locale.h>
19103 if { (ac_try="$ac_cpp conftest.
$ac_ext"
19104 case "(($ac_try" in
19105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19106 *) ac_try_echo=$ac_try;;
19108 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19109 $as_echo "$ac_try_echo") >&5
19110 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
19112 grep -v '^ *+' conftest.er1 >conftest.err
19114 cat conftest.err >&5
19115 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19116 (exit $ac_status); } >/dev/null && {
19117 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19118 test ! -s conftest.err
19120 ac_header_preproc=yes
19122 $as_echo "$as_me: failed program was
:" >&5
19123 sed 's/^/| /' conftest.$ac_ext >&5
19125 ac_header_preproc=no
19128 rm -f conftest.err conftest.$ac_ext
19129 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
19130 $as_echo "$ac_header_preproc" >&6; }
19132 # So? What about this header?
19133 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19135 { $as_echo "$as_me:$LINENO: WARNING
: locale.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
19136 $as_echo "$as_me: WARNING
: locale.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
19137 { $as_echo "$as_me:$LINENO: WARNING
: locale.h
: proceeding with the compiler
's result" >&5
19138 $as_echo "$as_me: WARNING: locale.h: proceeding with the compiler's result
" >&2;}
19139 ac_header_preproc=yes
19142 { $as_echo "$as_me:$LINENO: WARNING
: locale.h
: present but cannot be compiled
" >&5
19143 $as_echo "$as_me: WARNING
: locale.h
: present but cannot be compiled
" >&2;}
19144 { $as_echo "$as_me:$LINENO: WARNING
: locale.h
: check
for missing prerequisite headers?
" >&5
19145 $as_echo "$as_me: WARNING
: locale.h
: check
for missing prerequisite headers?
" >&2;}
19146 { $as_echo "$as_me:$LINENO: WARNING
: locale.h
: see the Autoconf documentation
" >&5
19147 $as_echo "$as_me: WARNING
: locale.h
: see the Autoconf documentation
" >&2;}
19148 { $as_echo "$as_me:$LINENO: WARNING
: locale.h
: section
\"Present But Cannot Be Compiled
\"" >&5
19149 $as_echo "$as_me: WARNING
: locale.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
19150 { $as_echo "$as_me:$LINENO: WARNING
: locale.h
: proceeding with the preprocessor
's result" >&5
19151 $as_echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result
" >&2;}
19152 { $as_echo "$as_me:$LINENO: WARNING
: locale.h
: in the future
, the compiler will take precedence
" >&5
19153 $as_echo "$as_me: WARNING
: locale.h
: in the future
, the compiler will take precedence
" >&2;}
19157 { $as_echo "$as_me:$LINENO: checking
for locale.h
" >&5
19158 $as_echo_n "checking
for locale.h...
" >&6; }
19159 if test "${ac_cv_header_locale_h+set}" = set; then
19160 $as_echo_n "(cached
) " >&6
19162 ac_cv_header_locale_h=$ac_header_preproc
19164 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_locale_h" >&5
19165 $as_echo "$ac_cv_header_locale_h" >&6; }
19171 for ac_func in setlocale
19173 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
19174 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
19175 $as_echo_n "checking
for $ac_func...
" >&6; }
19176 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
19177 $as_echo_n "(cached
) " >&6
19179 cat >conftest.$ac_ext <<_ACEOF
19182 cat confdefs.h >>conftest.$ac_ext
19183 cat >>conftest.$ac_ext <<_ACEOF
19184 /* end confdefs.h. */
19185 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19186 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19187 #define $ac_func innocuous_$ac_func
19189 /* System header to define __stub macros and hopefully few prototypes,
19190 which can conflict with char $ac_func (); below.
19191 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19192 <limits.h> exists even on freestanding compilers. */
19195 # include <limits.h>
19197 # include <assert.h>
19202 /* Override any GCC internal prototype to avoid an error.
19203 Use char because int might match the return type of a GCC
19204 builtin and then its argument prototype would still apply. */
19209 /* The GNU C library defines this for functions which it implements
19210 to always fail with ENOSYS. Some functions are actually named
19211 something starting with __ and the normal name is an alias. */
19212 #if defined __stub_$ac_func || defined __stub___$ac_func
19219 return $ac_func ();
19224 rm -f conftest.$ac_objext conftest$ac_exeext
19225 if { (ac_try="$ac_link"
19226 case "(($ac_try" in
19227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19228 *) ac_try_echo=$ac_try;;
19230 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19231 $as_echo "$ac_try_echo") >&5
19232 (eval "$ac_link") 2>conftest.er1
19234 grep -v '^ *+' conftest.er1 >conftest.err
19236 cat conftest.err >&5
19237 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19238 (exit $ac_status); } && {
19239 test -z "$ac_c_werror_flag" ||
19240 test ! -s conftest.err
19241 } && test -s conftest$ac_exeext && {
19242 test "$cross_compiling" = yes ||
19243 $as_test_x conftest$ac_exeext
19245 eval "$as_ac_var=yes"
19247 $as_echo "$as_me: failed program was
:" >&5
19248 sed 's/^/| /' conftest.$ac_ext >&5
19250 eval "$as_ac_var=no
"
19253 rm -rf conftest.dSYM
19254 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19255 conftest$ac_exeext conftest.$ac_ext
19257 ac_res=`eval 'as_val=${'$as_ac_var'}
19258 $as_echo "$as_val"'`
19259 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
19260 $as_echo "$ac_res" >&6; }
19261 if test `eval 'as_val=${'$as_ac_var'}
19262 $as_echo "$as_val"'` = yes; then
19263 cat >>confdefs.h <<_ACEOF
19264 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
19271 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
19272 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
19273 # Irix 4.0.5F has the header but not the library.
19274 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
19277 cat >>confdefs.h <<\_ACEOF
19283 if test $ac_have_func = no; then
19284 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
19285 { $as_echo "$as_me:$LINENO: checking
for inq_stats
/cpustats.h
" >&5
19286 $as_echo_n "checking
for inq_stats
/cpustats.h...
" >&6; }
19287 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
19288 $as_echo_n "(cached
) " >&6
19290 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_inq_stats_cpustats_h" >&5
19291 $as_echo "$ac_cv_header_inq_stats_cpustats_h" >&6; }
19293 # Is the header compilable?
19294 { $as_echo "$as_me:$LINENO: checking inq_stats
/cpustats.h usability
" >&5
19295 $as_echo_n "checking inq_stats
/cpustats.h usability...
" >&6; }
19296 cat >conftest.$ac_ext <<_ACEOF
19299 cat confdefs.h >>conftest.$ac_ext
19300 cat >>conftest.$ac_ext <<_ACEOF
19301 /* end confdefs.h. */
19302 $ac_includes_default
19303 #include <inq_stats/cpustats.h>
19305 rm -f conftest.$ac_objext
19306 if { (ac_try="$ac_compile"
19307 case "(($ac_try" in
19308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19309 *) ac_try_echo=$ac_try;;
19311 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19312 $as_echo "$ac_try_echo") >&5
19313 (eval "$ac_compile") 2>conftest.er1
19315 grep -v '^ *+' conftest.er1 >conftest.err
19317 cat conftest.err >&5
19318 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19319 (exit $ac_status); } && {
19320 test -z "$ac_c_werror_flag" ||
19321 test ! -s conftest.err
19322 } && test -s conftest.$ac_objext; then
19323 ac_header_compiler=yes
19325 $as_echo "$as_me: failed program was
:" >&5
19326 sed 's/^/| /' conftest.$ac_ext >&5
19328 ac_header_compiler=no
19331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19332 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
19333 $as_echo "$ac_header_compiler" >&6; }
19335 # Is the header present?
19336 { $as_echo "$as_me:$LINENO: checking inq_stats
/cpustats.h presence
" >&5
19337 $as_echo_n "checking inq_stats
/cpustats.h presence...
" >&6; }
19338 cat >conftest.$ac_ext <<_ACEOF
19341 cat confdefs.h >>conftest.$ac_ext
19342 cat >>conftest.$ac_ext <<_ACEOF
19343 /* end confdefs.h. */
19344 #include <inq_stats/cpustats.h>
19346 if { (ac_try="$ac_cpp conftest.
$ac_ext"
19347 case "(($ac_try" in
19348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19349 *) ac_try_echo=$ac_try;;
19351 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19352 $as_echo "$ac_try_echo") >&5
19353 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
19355 grep -v '^ *+' conftest.er1 >conftest.err
19357 cat conftest.err >&5
19358 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19359 (exit $ac_status); } >/dev/null && {
19360 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19361 test ! -s conftest.err
19363 ac_header_preproc=yes
19365 $as_echo "$as_me: failed program was
:" >&5
19366 sed 's/^/| /' conftest.$ac_ext >&5
19368 ac_header_preproc=no
19371 rm -f conftest.err conftest.$ac_ext
19372 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
19373 $as_echo "$ac_header_preproc" >&6; }
19375 # So? What about this header?
19376 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19378 { $as_echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
19379 $as_echo "$as_me: WARNING
: inq_stats
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
19380 { $as_echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: proceeding with the compiler
's result" >&5
19381 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result
" >&2;}
19382 ac_header_preproc=yes
19385 { $as_echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: present but cannot be compiled
" >&5
19386 $as_echo "$as_me: WARNING
: inq_stats
/cpustats.h
: present but cannot be compiled
" >&2;}
19387 { $as_echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: check
for missing prerequisite headers?
" >&5
19388 $as_echo "$as_me: WARNING
: inq_stats
/cpustats.h
: check
for missing prerequisite headers?
" >&2;}
19389 { $as_echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: see the Autoconf documentation
" >&5
19390 $as_echo "$as_me: WARNING
: inq_stats
/cpustats.h
: see the Autoconf documentation
" >&2;}
19391 { $as_echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&5
19392 $as_echo "$as_me: WARNING
: inq_stats
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
19393 { $as_echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: proceeding with the preprocessor
's result" >&5
19394 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result
" >&2;}
19395 { $as_echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: in the future
, the compiler will take precedence
" >&5
19396 $as_echo "$as_me: WARNING
: inq_stats
/cpustats.h
: in the future
, the compiler will take precedence
" >&2;}
19400 { $as_echo "$as_me:$LINENO: checking
for inq_stats
/cpustats.h
" >&5
19401 $as_echo_n "checking
for inq_stats
/cpustats.h...
" >&6; }
19402 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
19403 $as_echo_n "(cached
) " >&6
19405 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
19407 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_inq_stats_cpustats_h" >&5
19408 $as_echo "$ac_cv_header_inq_stats_cpustats_h" >&6; }
19411 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
19414 cat >>confdefs.h <<\_ACEOF
19419 cat >>confdefs.h <<\_ACEOF
19428 if test $ac_have_func = no; then
19429 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
19430 { $as_echo "$as_me:$LINENO: checking
for sys
/cpustats.h
" >&5
19431 $as_echo_n "checking
for sys
/cpustats.h...
" >&6; }
19432 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
19433 $as_echo_n "(cached
) " >&6
19435 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_sys_cpustats_h" >&5
19436 $as_echo "$ac_cv_header_sys_cpustats_h" >&6; }
19438 # Is the header compilable?
19439 { $as_echo "$as_me:$LINENO: checking sys
/cpustats.h usability
" >&5
19440 $as_echo_n "checking sys
/cpustats.h usability...
" >&6; }
19441 cat >conftest.$ac_ext <<_ACEOF
19444 cat confdefs.h >>conftest.$ac_ext
19445 cat >>conftest.$ac_ext <<_ACEOF
19446 /* end confdefs.h. */
19447 $ac_includes_default
19448 #include <sys/cpustats.h>
19450 rm -f conftest.$ac_objext
19451 if { (ac_try="$ac_compile"
19452 case "(($ac_try" in
19453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19454 *) ac_try_echo=$ac_try;;
19456 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19457 $as_echo "$ac_try_echo") >&5
19458 (eval "$ac_compile") 2>conftest.er1
19460 grep -v '^ *+' conftest.er1 >conftest.err
19462 cat conftest.err >&5
19463 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19464 (exit $ac_status); } && {
19465 test -z "$ac_c_werror_flag" ||
19466 test ! -s conftest.err
19467 } && test -s conftest.$ac_objext; then
19468 ac_header_compiler=yes
19470 $as_echo "$as_me: failed program was
:" >&5
19471 sed 's/^/| /' conftest.$ac_ext >&5
19473 ac_header_compiler=no
19476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19477 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
19478 $as_echo "$ac_header_compiler" >&6; }
19480 # Is the header present?
19481 { $as_echo "$as_me:$LINENO: checking sys
/cpustats.h presence
" >&5
19482 $as_echo_n "checking sys
/cpustats.h presence...
" >&6; }
19483 cat >conftest.$ac_ext <<_ACEOF
19486 cat confdefs.h >>conftest.$ac_ext
19487 cat >>conftest.$ac_ext <<_ACEOF
19488 /* end confdefs.h. */
19489 #include <sys/cpustats.h>
19491 if { (ac_try="$ac_cpp conftest.
$ac_ext"
19492 case "(($ac_try" in
19493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19494 *) ac_try_echo=$ac_try;;
19496 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19497 $as_echo "$ac_try_echo") >&5
19498 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
19500 grep -v '^ *+' conftest.er1 >conftest.err
19502 cat conftest.err >&5
19503 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19504 (exit $ac_status); } >/dev/null && {
19505 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19506 test ! -s conftest.err
19508 ac_header_preproc=yes
19510 $as_echo "$as_me: failed program was
:" >&5
19511 sed 's/^/| /' conftest.$ac_ext >&5
19513 ac_header_preproc=no
19516 rm -f conftest.err conftest.$ac_ext
19517 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
19518 $as_echo "$ac_header_preproc" >&6; }
19520 # So? What about this header?
19521 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19523 { $as_echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
19524 $as_echo "$as_me: WARNING
: sys
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
19525 { $as_echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: proceeding with the compiler
's result" >&5
19526 $as_echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result
" >&2;}
19527 ac_header_preproc=yes
19530 { $as_echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: present but cannot be compiled
" >&5
19531 $as_echo "$as_me: WARNING
: sys
/cpustats.h
: present but cannot be compiled
" >&2;}
19532 { $as_echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: check
for missing prerequisite headers?
" >&5
19533 $as_echo "$as_me: WARNING
: sys
/cpustats.h
: check
for missing prerequisite headers?
" >&2;}
19534 { $as_echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: see the Autoconf documentation
" >&5
19535 $as_echo "$as_me: WARNING
: sys
/cpustats.h
: see the Autoconf documentation
" >&2;}
19536 { $as_echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&5
19537 $as_echo "$as_me: WARNING
: sys
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
19538 { $as_echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: proceeding with the preprocessor
's result" >&5
19539 $as_echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result
" >&2;}
19540 { $as_echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: in the future
, the compiler will take precedence
" >&5
19541 $as_echo "$as_me: WARNING
: sys
/cpustats.h
: in the future
, the compiler will take precedence
" >&2;}
19545 { $as_echo "$as_me:$LINENO: checking
for sys
/cpustats.h
" >&5
19546 $as_echo_n "checking
for sys
/cpustats.h...
" >&6; }
19547 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
19548 $as_echo_n "(cached
) " >&6
19550 ac_cv_header_sys_cpustats_h=$ac_header_preproc
19552 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_sys_cpustats_h" >&5
19553 $as_echo "$ac_cv_header_sys_cpustats_h" >&6; }
19556 if test $ac_cv_header_sys_cpustats_h = yes; then
19557 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
19566 if test $ac_have_func = no; then
19568 for ac_header in mach/mach.h
19570 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
19571 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
19572 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
19573 $as_echo_n "checking
for $ac_header...
" >&6; }
19574 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
19575 $as_echo_n "(cached
) " >&6
19577 ac_res=`eval 'as_val=${'$as_ac_Header'}
19578 $as_echo "$as_val"'`
19579 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
19580 $as_echo "$ac_res" >&6; }
19582 # Is the header compilable?
19583 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
19584 $as_echo_n "checking
$ac_header usability...
" >&6; }
19585 cat >conftest.$ac_ext <<_ACEOF
19588 cat confdefs.h >>conftest.$ac_ext
19589 cat >>conftest.$ac_ext <<_ACEOF
19590 /* end confdefs.h. */
19591 $ac_includes_default
19592 #include <$ac_header>
19594 rm -f conftest.$ac_objext
19595 if { (ac_try="$ac_compile"
19596 case "(($ac_try" in
19597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19598 *) ac_try_echo=$ac_try;;
19600 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19601 $as_echo "$ac_try_echo") >&5
19602 (eval "$ac_compile") 2>conftest.er1
19604 grep -v '^ *+' conftest.er1 >conftest.err
19606 cat conftest.err >&5
19607 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19608 (exit $ac_status); } && {
19609 test -z "$ac_c_werror_flag" ||
19610 test ! -s conftest.err
19611 } && test -s conftest.$ac_objext; then
19612 ac_header_compiler=yes
19614 $as_echo "$as_me: failed program was
:" >&5
19615 sed 's/^/| /' conftest.$ac_ext >&5
19617 ac_header_compiler=no
19620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19621 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
19622 $as_echo "$ac_header_compiler" >&6; }
19624 # Is the header present?
19625 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
19626 $as_echo_n "checking
$ac_header presence...
" >&6; }
19627 cat >conftest.$ac_ext <<_ACEOF
19630 cat confdefs.h >>conftest.$ac_ext
19631 cat >>conftest.$ac_ext <<_ACEOF
19632 /* end confdefs.h. */
19633 #include <$ac_header>
19635 if { (ac_try="$ac_cpp conftest.
$ac_ext"
19636 case "(($ac_try" in
19637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19638 *) ac_try_echo=$ac_try;;
19640 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19641 $as_echo "$ac_try_echo") >&5
19642 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
19644 grep -v '^ *+' conftest.er1 >conftest.err
19646 cat conftest.err >&5
19647 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19648 (exit $ac_status); } >/dev/null && {
19649 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19650 test ! -s conftest.err
19652 ac_header_preproc=yes
19654 $as_echo "$as_me: failed program was
:" >&5
19655 sed 's/^/| /' conftest.$ac_ext >&5
19657 ac_header_preproc=no
19660 rm -f conftest.err conftest.$ac_ext
19661 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
19662 $as_echo "$ac_header_preproc" >&6; }
19664 # So? What about this header?
19665 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19667 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
19668 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
19669 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
19670 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
19671 ac_header_preproc=yes
19674 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
19675 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
19676 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
19677 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
19678 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
19679 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
19680 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
19681 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
19682 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
19683 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
19684 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
19685 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
19689 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
19690 $as_echo_n "checking
for $ac_header...
" >&6; }
19691 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
19692 $as_echo_n "(cached
) " >&6
19694 eval "$as_ac_Header=\
$ac_header_preproc"
19696 ac_res=`eval 'as_val=${'$as_ac_Header'}
19697 $as_echo "$as_val"'`
19698 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
19699 $as_echo "$ac_res" >&6; }
19702 if test `eval 'as_val=${'$as_ac_Header'}
19703 $as_echo "$as_val"'` = yes; then
19704 cat >>confdefs.h <<_ACEOF
19705 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
19715 for ac_header in nlist.h
19717 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
19718 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
19719 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
19720 $as_echo_n "checking
for $ac_header...
" >&6; }
19721 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
19722 $as_echo_n "(cached
) " >&6
19724 ac_res=`eval 'as_val=${'$as_ac_Header'}
19725 $as_echo "$as_val"'`
19726 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
19727 $as_echo "$ac_res" >&6; }
19729 # Is the header compilable?
19730 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
19731 $as_echo_n "checking
$ac_header usability...
" >&6; }
19732 cat >conftest.$ac_ext <<_ACEOF
19735 cat confdefs.h >>conftest.$ac_ext
19736 cat >>conftest.$ac_ext <<_ACEOF
19737 /* end confdefs.h. */
19738 $ac_includes_default
19739 #include <$ac_header>
19741 rm -f conftest.$ac_objext
19742 if { (ac_try="$ac_compile"
19743 case "(($ac_try" in
19744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19745 *) ac_try_echo=$ac_try;;
19747 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19748 $as_echo "$ac_try_echo") >&5
19749 (eval "$ac_compile") 2>conftest.er1
19751 grep -v '^ *+' conftest.er1 >conftest.err
19753 cat conftest.err >&5
19754 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19755 (exit $ac_status); } && {
19756 test -z "$ac_c_werror_flag" ||
19757 test ! -s conftest.err
19758 } && test -s conftest.$ac_objext; then
19759 ac_header_compiler=yes
19761 $as_echo "$as_me: failed program was
:" >&5
19762 sed 's/^/| /' conftest.$ac_ext >&5
19764 ac_header_compiler=no
19767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19768 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
19769 $as_echo "$ac_header_compiler" >&6; }
19771 # Is the header present?
19772 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
19773 $as_echo_n "checking
$ac_header presence...
" >&6; }
19774 cat >conftest.$ac_ext <<_ACEOF
19777 cat confdefs.h >>conftest.$ac_ext
19778 cat >>conftest.$ac_ext <<_ACEOF
19779 /* end confdefs.h. */
19780 #include <$ac_header>
19782 if { (ac_try="$ac_cpp conftest.
$ac_ext"
19783 case "(($ac_try" in
19784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19785 *) ac_try_echo=$ac_try;;
19787 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19788 $as_echo "$ac_try_echo") >&5
19789 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
19791 grep -v '^ *+' conftest.er1 >conftest.err
19793 cat conftest.err >&5
19794 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19795 (exit $ac_status); } >/dev/null && {
19796 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19797 test ! -s conftest.err
19799 ac_header_preproc=yes
19801 $as_echo "$as_me: failed program was
:" >&5
19802 sed 's/^/| /' conftest.$ac_ext >&5
19804 ac_header_preproc=no
19807 rm -f conftest.err conftest.$ac_ext
19808 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
19809 $as_echo "$ac_header_preproc" >&6; }
19811 # So? What about this header?
19812 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19814 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
19815 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
19816 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
19817 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
19818 ac_header_preproc=yes
19821 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
19822 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
19823 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
19824 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
19825 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
19826 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
19827 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
19828 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
19829 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
19830 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
19831 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
19832 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
19836 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
19837 $as_echo_n "checking
for $ac_header...
" >&6; }
19838 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
19839 $as_echo_n "(cached
) " >&6
19841 eval "$as_ac_Header=\
$ac_header_preproc"
19843 ac_res=`eval 'as_val=${'$as_ac_Header'}
19844 $as_echo "$as_val"'`
19845 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
19846 $as_echo "$ac_res" >&6; }
19849 if test `eval 'as_val=${'$as_ac_Header'}
19850 $as_echo "$as_val"'` = yes; then
19851 cat >>confdefs.h <<_ACEOF
19852 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
19854 { $as_echo "$as_me:$LINENO: checking
for struct nlist.n_un.n_name
" >&5
19855 $as_echo_n "checking
for struct nlist.n_un.n_name...
" >&6; }
19856 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
19857 $as_echo_n "(cached
) " >&6
19859 cat >conftest.$ac_ext <<_ACEOF
19862 cat confdefs.h >>conftest.$ac_ext
19863 cat >>conftest.$ac_ext <<_ACEOF
19864 /* end confdefs.h. */
19870 static struct nlist ac_aggr;
19871 if (ac_aggr.n_un.n_name)
19877 rm -f conftest.$ac_objext
19878 if { (ac_try="$ac_compile"
19879 case "(($ac_try" in
19880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19881 *) ac_try_echo=$ac_try;;
19883 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19884 $as_echo "$ac_try_echo") >&5
19885 (eval "$ac_compile") 2>conftest.er1
19887 grep -v '^ *+' conftest.er1 >conftest.err
19889 cat conftest.err >&5
19890 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19891 (exit $ac_status); } && {
19892 test -z "$ac_c_werror_flag" ||
19893 test ! -s conftest.err
19894 } && test -s conftest.$ac_objext; then
19895 ac_cv_member_struct_nlist_n_un_n_name=yes
19897 $as_echo "$as_me: failed program was
:" >&5
19898 sed 's/^/| /' conftest.$ac_ext >&5
19900 cat >conftest.$ac_ext <<_ACEOF
19903 cat confdefs.h >>conftest.$ac_ext
19904 cat >>conftest.$ac_ext <<_ACEOF
19905 /* end confdefs.h. */
19911 static struct nlist ac_aggr;
19912 if (sizeof ac_aggr.n_un.n_name)
19918 rm -f conftest.$ac_objext
19919 if { (ac_try="$ac_compile"
19920 case "(($ac_try" in
19921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19922 *) ac_try_echo=$ac_try;;
19924 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19925 $as_echo "$ac_try_echo") >&5
19926 (eval "$ac_compile") 2>conftest.er1
19928 grep -v '^ *+' conftest.er1 >conftest.err
19930 cat conftest.err >&5
19931 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19932 (exit $ac_status); } && {
19933 test -z "$ac_c_werror_flag" ||
19934 test ! -s conftest.err
19935 } && test -s conftest.$ac_objext; then
19936 ac_cv_member_struct_nlist_n_un_n_name=yes
19938 $as_echo "$as_me: failed program was
:" >&5
19939 sed 's/^/| /' conftest.$ac_ext >&5
19941 ac_cv_member_struct_nlist_n_un_n_name=no
19944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19949 { $as_echo "$as_me:$LINENO: result
: $ac_cv_member_struct_nlist_n_un_n_name" >&5
19950 $as_echo "$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
19951 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
19953 cat >>confdefs.h <<_ACEOF
19954 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
19958 cat >>confdefs.h <<\_ACEOF
19959 #define NLIST_NAME_UNION 1
19973 # Some definitions of getloadavg require that the program be installed setgid.
19974 { $as_echo "$as_me:$LINENO: checking whether getloadavg requires setgid
" >&5
19975 $as_echo_n "checking whether getloadavg requires setgid...
" >&6; }
19976 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
19977 $as_echo_n "(cached
) " >&6
19979 cat >conftest.$ac_ext <<_ACEOF
19982 cat confdefs.h >>conftest.$ac_ext
19983 cat >>conftest.$ac_ext <<_ACEOF
19984 /* end confdefs.h. */
19985 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c
"
19986 #ifdef LDAV_PRIVILEGED
19987 Yowza Am I SETGID yet
19990 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
19991 $EGREP "Yowza Am I SETGID yet
" >/dev/null 2>&1; then
19992 ac_cv_func_getloadavg_setgid=yes
19994 ac_cv_func_getloadavg_setgid=no
19999 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func_getloadavg_setgid" >&5
20000 $as_echo "$ac_cv_func_getloadavg_setgid" >&6; }
20001 if test $ac_cv_func_getloadavg_setgid = yes; then
20004 cat >>confdefs.h <<\_ACEOF
20005 #define GETLOADAVG_PRIVILEGED 1
20012 if test $ac_cv_func_getloadavg_setgid = yes; then
20013 { $as_echo "$as_me:$LINENO: checking group of
/dev
/kmem
" >&5
20014 $as_echo_n "checking group of
/dev
/kmem...
" >&6; }
20015 if test "${ac_cv_group_kmem+set}" = set; then
20016 $as_echo_n "(cached
) " >&6
20018 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
20019 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
20020 # If we got an error (system does not support symlinks), try without -L.
20021 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
20022 ac_cv_group_kmem=`$as_echo "$ac_ls_output" \
20023 | sed -ne 's/[ ][ ]*/ /g;
20024 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
20028 { $as_echo "$as_me:$LINENO: result
: $ac_cv_group_kmem" >&5
20029 $as_echo "$ac_cv_group_kmem" >&6; }
20030 KMEM_GROUP=$ac_cv_group_kmem
20032 if test "x
$ac_save_LIBS" = x; then
20033 GETLOADAVG_LIBS=$LIBS
20035 GETLOADAVG_LIBS=`$as_echo "$LIBS" | sed "s|
$ac_save_LIBS||
"`
20041 { $as_echo "$as_me:$LINENO: checking
for _LARGEFILE_SOURCE value needed
for large files
" >&5
20042 $as_echo_n "checking
for _LARGEFILE_SOURCE value needed
for large files...
" >&6; }
20043 if test "${ac_cv_sys_largefile_source+set}" = set; then
20044 $as_echo_n "(cached
) " >&6
20047 cat >conftest.$ac_ext <<_ACEOF
20050 cat confdefs.h >>conftest.$ac_ext
20051 cat >>conftest.$ac_ext <<_ACEOF
20052 /* end confdefs.h. */
20053 #include <sys/types.h> /* for off_t */
20058 int (*fp) (FILE *, off_t, int) = fseeko;
20059 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
20064 rm -f conftest.$ac_objext conftest$ac_exeext
20065 if { (ac_try="$ac_link"
20066 case "(($ac_try" in
20067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20068 *) ac_try_echo=$ac_try;;
20070 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20071 $as_echo "$ac_try_echo") >&5
20072 (eval "$ac_link") 2>conftest.er1
20074 grep -v '^ *+' conftest.er1 >conftest.err
20076 cat conftest.err >&5
20077 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20078 (exit $ac_status); } && {
20079 test -z "$ac_c_werror_flag" ||
20080 test ! -s conftest.err
20081 } && test -s conftest$ac_exeext && {
20082 test "$cross_compiling" = yes ||
20083 $as_test_x conftest$ac_exeext
20085 ac_cv_sys_largefile_source=no; break
20087 $as_echo "$as_me: failed program was
:" >&5
20088 sed 's/^/| /' conftest.$ac_ext >&5
20093 rm -rf conftest.dSYM
20094 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20095 conftest$ac_exeext conftest.$ac_ext
20096 cat >conftest.$ac_ext <<_ACEOF
20099 cat confdefs.h >>conftest.$ac_ext
20100 cat >>conftest.$ac_ext <<_ACEOF
20101 /* end confdefs.h. */
20102 #define _LARGEFILE_SOURCE 1
20103 #include <sys/types.h> /* for off_t */
20108 int (*fp) (FILE *, off_t, int) = fseeko;
20109 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
20114 rm -f conftest.$ac_objext conftest$ac_exeext
20115 if { (ac_try="$ac_link"
20116 case "(($ac_try" in
20117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20118 *) ac_try_echo=$ac_try;;
20120 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20121 $as_echo "$ac_try_echo") >&5
20122 (eval "$ac_link") 2>conftest.er1
20124 grep -v '^ *+' conftest.er1 >conftest.err
20126 cat conftest.err >&5
20127 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20128 (exit $ac_status); } && {
20129 test -z "$ac_c_werror_flag" ||
20130 test ! -s conftest.err
20131 } && test -s conftest$ac_exeext && {
20132 test "$cross_compiling" = yes ||
20133 $as_test_x conftest$ac_exeext
20135 ac_cv_sys_largefile_source=1; break
20137 $as_echo "$as_me: failed program was
:" >&5
20138 sed 's/^/| /' conftest.$ac_ext >&5
20143 rm -rf conftest.dSYM
20144 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20145 conftest$ac_exeext conftest.$ac_ext
20146 ac_cv_sys_largefile_source=unknown
20150 { $as_echo "$as_me:$LINENO: result
: $ac_cv_sys_largefile_source" >&5
20151 $as_echo "$ac_cv_sys_largefile_source" >&6; }
20152 case $ac_cv_sys_largefile_source in #(
20155 cat >>confdefs.h <<_ACEOF
20156 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
20162 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
20163 # in glibc 2.1.3, but that breaks too many other things.
20164 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
20165 if test $ac_cv_sys_largefile_source != unknown; then
20167 cat >>confdefs.h <<\_ACEOF
20168 #define HAVE_FSEEKO 1
20174 # Configure getopt.
20175 # getopt.m4 serial 10
20177 # The getopt module assume you want GNU getopt, with getopt_long etc,
20178 # rather than vanilla POSIX getopt. This means your your code should
20179 # always include <getopt.h> for the getopt prototypes.
20191 # Prerequisites of lib/getopt*.
20198 for ac_header in getopt.h
20200 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20201 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20202 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
20203 $as_echo_n "checking
for $ac_header...
" >&6; }
20204 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20205 $as_echo_n "(cached
) " >&6
20207 ac_res=`eval 'as_val=${'$as_ac_Header'}
20208 $as_echo "$as_val"'`
20209 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
20210 $as_echo "$ac_res" >&6; }
20212 # Is the header compilable?
20213 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20214 $as_echo_n "checking
$ac_header usability...
" >&6; }
20215 cat >conftest.$ac_ext <<_ACEOF
20218 cat confdefs.h >>conftest.$ac_ext
20219 cat >>conftest.$ac_ext <<_ACEOF
20220 /* end confdefs.h. */
20221 $ac_includes_default
20222 #include <$ac_header>
20224 rm -f conftest.$ac_objext
20225 if { (ac_try="$ac_compile"
20226 case "(($ac_try" in
20227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20228 *) ac_try_echo=$ac_try;;
20230 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20231 $as_echo "$ac_try_echo") >&5
20232 (eval "$ac_compile") 2>conftest.er1
20234 grep -v '^ *+' conftest.er1 >conftest.err
20236 cat conftest.err >&5
20237 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20238 (exit $ac_status); } && {
20239 test -z "$ac_c_werror_flag" ||
20240 test ! -s conftest.err
20241 } && test -s conftest.$ac_objext; then
20242 ac_header_compiler=yes
20244 $as_echo "$as_me: failed program was
:" >&5
20245 sed 's/^/| /' conftest.$ac_ext >&5
20247 ac_header_compiler=no
20250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20251 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20252 $as_echo "$ac_header_compiler" >&6; }
20254 # Is the header present?
20255 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20256 $as_echo_n "checking
$ac_header presence...
" >&6; }
20257 cat >conftest.$ac_ext <<_ACEOF
20260 cat confdefs.h >>conftest.$ac_ext
20261 cat >>conftest.$ac_ext <<_ACEOF
20262 /* end confdefs.h. */
20263 #include <$ac_header>
20265 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20266 case "(($ac_try" in
20267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20268 *) ac_try_echo=$ac_try;;
20270 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20271 $as_echo "$ac_try_echo") >&5
20272 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20274 grep -v '^ *+' conftest.er1 >conftest.err
20276 cat conftest.err >&5
20277 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20278 (exit $ac_status); } >/dev/null && {
20279 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20280 test ! -s conftest.err
20282 ac_header_preproc=yes
20284 $as_echo "$as_me: failed program was
:" >&5
20285 sed 's/^/| /' conftest.$ac_ext >&5
20287 ac_header_preproc=no
20290 rm -f conftest.err conftest.$ac_ext
20291 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20292 $as_echo "$ac_header_preproc" >&6; }
20294 # So? What about this header?
20295 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20297 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
20298 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20299 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
20300 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
20301 ac_header_preproc=yes
20304 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
20305 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
20306 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
20307 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
20308 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
20309 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
20310 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
20311 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
20312 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
20313 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
20314 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
20315 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
20319 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
20320 $as_echo_n "checking
for $ac_header...
" >&6; }
20321 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20322 $as_echo_n "(cached
) " >&6
20324 eval "$as_ac_Header=\
$ac_header_preproc"
20326 ac_res=`eval 'as_val=${'$as_ac_Header'}
20327 $as_echo "$as_val"'`
20328 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
20329 $as_echo "$ac_res" >&6; }
20332 if test `eval 'as_val=${'$as_ac_Header'}
20333 $as_echo "$as_val"'` = yes; then
20334 cat >>confdefs.h <<_ACEOF
20335 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
20344 if test -z "$GETOPT_H"; then
20346 for ac_func in getopt_long_only
20348 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
20349 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
20350 $as_echo_n "checking
for $ac_func...
" >&6; }
20351 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
20352 $as_echo_n "(cached
) " >&6
20354 cat >conftest.$ac_ext <<_ACEOF
20357 cat confdefs.h >>conftest.$ac_ext
20358 cat >>conftest.$ac_ext <<_ACEOF
20359 /* end confdefs.h. */
20360 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20361 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20362 #define $ac_func innocuous_$ac_func
20364 /* System header to define __stub macros and hopefully few prototypes,
20365 which can conflict with char $ac_func (); below.
20366 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20367 <limits.h> exists even on freestanding compilers. */
20370 # include <limits.h>
20372 # include <assert.h>
20377 /* Override any GCC internal prototype to avoid an error.
20378 Use char because int might match the return type of a GCC
20379 builtin and then its argument prototype would still apply. */
20384 /* The GNU C library defines this for functions which it implements
20385 to always fail with ENOSYS. Some functions are actually named
20386 something starting with __ and the normal name is an alias. */
20387 #if defined __stub_$ac_func || defined __stub___$ac_func
20394 return $ac_func ();
20399 rm -f conftest.$ac_objext conftest$ac_exeext
20400 if { (ac_try="$ac_link"
20401 case "(($ac_try" in
20402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20403 *) ac_try_echo=$ac_try;;
20405 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20406 $as_echo "$ac_try_echo") >&5
20407 (eval "$ac_link") 2>conftest.er1
20409 grep -v '^ *+' conftest.er1 >conftest.err
20411 cat conftest.err >&5
20412 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20413 (exit $ac_status); } && {
20414 test -z "$ac_c_werror_flag" ||
20415 test ! -s conftest.err
20416 } && test -s conftest$ac_exeext && {
20417 test "$cross_compiling" = yes ||
20418 $as_test_x conftest$ac_exeext
20420 eval "$as_ac_var=yes"
20422 $as_echo "$as_me: failed program was
:" >&5
20423 sed 's/^/| /' conftest.$ac_ext >&5
20425 eval "$as_ac_var=no
"
20428 rm -rf conftest.dSYM
20429 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20430 conftest$ac_exeext conftest.$ac_ext
20432 ac_res=`eval 'as_val=${'$as_ac_var'}
20433 $as_echo "$as_val"'`
20434 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
20435 $as_echo "$ac_res" >&6; }
20436 if test `eval 'as_val=${'$as_ac_var'}
20437 $as_echo "$as_val"'` = yes; then
20438 cat >>confdefs.h <<_ACEOF
20439 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
20449 if test -z "$GETOPT_H"; then
20450 { $as_echo "$as_me:$LINENO: checking whether optreset is declared
" >&5
20451 $as_echo_n "checking whether optreset is declared...
" >&6; }
20452 if test "${ac_cv_have_decl_optreset+set}" = set; then
20453 $as_echo_n "(cached
) " >&6
20455 cat >conftest.$ac_ext <<_ACEOF
20458 cat confdefs.h >>conftest.$ac_ext
20459 cat >>conftest.$ac_ext <<_ACEOF
20460 /* end confdefs.h. */
20461 #include <getopt.h>
20474 rm -f conftest.$ac_objext
20475 if { (ac_try="$ac_compile"
20476 case "(($ac_try" in
20477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20478 *) ac_try_echo=$ac_try;;
20480 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20481 $as_echo "$ac_try_echo") >&5
20482 (eval "$ac_compile") 2>conftest.er1
20484 grep -v '^ *+' conftest.er1 >conftest.err
20486 cat conftest.err >&5
20487 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20488 (exit $ac_status); } && {
20489 test -z "$ac_c_werror_flag" ||
20490 test ! -s conftest.err
20491 } && test -s conftest.$ac_objext; then
20492 ac_cv_have_decl_optreset=yes
20494 $as_echo "$as_me: failed program was
:" >&5
20495 sed 's/^/| /' conftest.$ac_ext >&5
20497 ac_cv_have_decl_optreset=no
20500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20502 { $as_echo "$as_me:$LINENO: result
: $ac_cv_have_decl_optreset" >&5
20503 $as_echo "$ac_cv_have_decl_optreset" >&6; }
20504 if test $ac_cv_have_decl_optreset = yes; then
20510 if test -z "$GETOPT_H"; then
20511 { $as_echo "$as_me:$LINENO: checking
for working GNU getopt
function" >&5
20512 $as_echo_n "checking
for working GNU getopt
function...
" >&6; }
20513 if test "${gl_cv_func_gnu_getopt+set}" = set; then
20514 $as_echo_n "(cached
) " >&6
20516 if test "$cross_compiling" = yes; then
20517 { $as_echo "$as_me:$LINENO: checking whether getopt_clip is declared
" >&5
20518 $as_echo_n "checking whether getopt_clip is declared...
" >&6; }
20519 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
20520 $as_echo_n "(cached
) " >&6
20522 cat >conftest.$ac_ext <<_ACEOF
20525 cat confdefs.h >>conftest.$ac_ext
20526 cat >>conftest.$ac_ext <<_ACEOF
20527 /* end confdefs.h. */
20528 #include <getopt.h>
20533 #ifndef getopt_clip
20534 (void) getopt_clip;
20541 rm -f conftest.$ac_objext
20542 if { (ac_try="$ac_compile"
20543 case "(($ac_try" in
20544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20545 *) ac_try_echo=$ac_try;;
20547 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20548 $as_echo "$ac_try_echo") >&5
20549 (eval "$ac_compile") 2>conftest.er1
20551 grep -v '^ *+' conftest.er1 >conftest.err
20553 cat conftest.err >&5
20554 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20555 (exit $ac_status); } && {
20556 test -z "$ac_c_werror_flag" ||
20557 test ! -s conftest.err
20558 } && test -s conftest.$ac_objext; then
20559 ac_cv_have_decl_getopt_clip=yes
20561 $as_echo "$as_me: failed program was
:" >&5
20562 sed 's/^/| /' conftest.$ac_ext >&5
20564 ac_cv_have_decl_getopt_clip=no
20567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20569 { $as_echo "$as_me:$LINENO: result
: $ac_cv_have_decl_getopt_clip" >&5
20570 $as_echo "$ac_cv_have_decl_getopt_clip" >&6; }
20571 if test $ac_cv_have_decl_getopt_clip = yes; then
20572 gl_cv_func_gnu_getopt=no
20574 gl_cv_func_gnu_getopt=yes
20578 cat >conftest.$ac_ext <<_ACEOF
20581 cat confdefs.h >>conftest.$ac_ext
20582 cat >>conftest.$ac_ext <<_ACEOF
20583 /* end confdefs.h. */
20584 #include <getopt.h>
20590 myargv[0] = "conftest
";
20593 return getopt (2, myargv, "+a
") != '?';
20599 rm -f conftest$ac_exeext
20600 if { (ac_try="$ac_link"
20601 case "(($ac_try" in
20602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20603 *) ac_try_echo=$ac_try;;
20605 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20606 $as_echo "$ac_try_echo") >&5
20607 (eval "$ac_link") 2>&5
20609 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20610 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20611 { (case "(($ac_try" in
20612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20613 *) ac_try_echo=$ac_try;;
20615 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20616 $as_echo "$ac_try_echo") >&5
20617 (eval "$ac_try") 2>&5
20619 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20620 (exit $ac_status); }; }; then
20621 gl_cv_func_gnu_getopt=yes
20623 $as_echo "$as_me: program exited with status
$ac_status" >&5
20624 $as_echo "$as_me: failed program was
:" >&5
20625 sed 's/^/| /' conftest.$ac_ext >&5
20627 ( exit $ac_status )
20628 gl_cv_func_gnu_getopt=no
20630 rm -rf conftest.dSYM
20631 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20636 { $as_echo "$as_me:$LINENO: result
: $gl_cv_func_gnu_getopt" >&5
20637 $as_echo "$gl_cv_func_gnu_getopt" >&6; }
20638 if test "$gl_cv_func_gnu_getopt" = "no
"; then
20645 if test -n "$GETOPT_H"; then
20650 cat >>confdefs.h <<\_ACEOF
20651 #define __GETOPT_PREFIX rpl_
20657 GETOPTOBJS='getopt.o getopt1.o'
20664 { $as_echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments
" >&5
20665 $as_echo_n "checking whether getpgrp requires zero arguments...
" >&6; }
20666 if test "${ac_cv_func_getpgrp_void+set}" = set; then
20667 $as_echo_n "(cached
) " >&6
20669 # Use it with a single arg.
20670 cat >conftest.$ac_ext <<_ACEOF
20673 cat confdefs.h >>conftest.$ac_ext
20674 cat >>conftest.$ac_ext <<_ACEOF
20675 /* end confdefs.h. */
20676 $ac_includes_default
20685 rm -f conftest.$ac_objext
20686 if { (ac_try="$ac_compile"
20687 case "(($ac_try" in
20688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20689 *) ac_try_echo=$ac_try;;
20691 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20692 $as_echo "$ac_try_echo") >&5
20693 (eval "$ac_compile") 2>conftest.er1
20695 grep -v '^ *+' conftest.er1 >conftest.err
20697 cat conftest.err >&5
20698 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20699 (exit $ac_status); } && {
20700 test -z "$ac_c_werror_flag" ||
20701 test ! -s conftest.err
20702 } && test -s conftest.$ac_objext; then
20703 ac_cv_func_getpgrp_void=no
20705 $as_echo "$as_me: failed program was
:" >&5
20706 sed 's/^/| /' conftest.$ac_ext >&5
20708 ac_cv_func_getpgrp_void=yes
20711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20714 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func_getpgrp_void" >&5
20715 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
20716 if test $ac_cv_func_getpgrp_void = yes; then
20718 cat >>confdefs.h <<\_ACEOF
20719 #define GETPGRP_VOID 1
20726 for ac_func in strftime
20728 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
20729 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
20730 $as_echo_n "checking
for $ac_func...
" >&6; }
20731 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
20732 $as_echo_n "(cached
) " >&6
20734 cat >conftest.$ac_ext <<_ACEOF
20737 cat confdefs.h >>conftest.$ac_ext
20738 cat >>conftest.$ac_ext <<_ACEOF
20739 /* end confdefs.h. */
20740 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20741 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20742 #define $ac_func innocuous_$ac_func
20744 /* System header to define __stub macros and hopefully few prototypes,
20745 which can conflict with char $ac_func (); below.
20746 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20747 <limits.h> exists even on freestanding compilers. */
20750 # include <limits.h>
20752 # include <assert.h>
20757 /* Override any GCC internal prototype to avoid an error.
20758 Use char because int might match the return type of a GCC
20759 builtin and then its argument prototype would still apply. */
20764 /* The GNU C library defines this for functions which it implements
20765 to always fail with ENOSYS. Some functions are actually named
20766 something starting with __ and the normal name is an alias. */
20767 #if defined __stub_$ac_func || defined __stub___$ac_func
20774 return $ac_func ();
20779 rm -f conftest.$ac_objext conftest$ac_exeext
20780 if { (ac_try="$ac_link"
20781 case "(($ac_try" in
20782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20783 *) ac_try_echo=$ac_try;;
20785 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20786 $as_echo "$ac_try_echo") >&5
20787 (eval "$ac_link") 2>conftest.er1
20789 grep -v '^ *+' conftest.er1 >conftest.err
20791 cat conftest.err >&5
20792 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20793 (exit $ac_status); } && {
20794 test -z "$ac_c_werror_flag" ||
20795 test ! -s conftest.err
20796 } && test -s conftest$ac_exeext && {
20797 test "$cross_compiling" = yes ||
20798 $as_test_x conftest$ac_exeext
20800 eval "$as_ac_var=yes"
20802 $as_echo "$as_me: failed program was
:" >&5
20803 sed 's/^/| /' conftest.$ac_ext >&5
20805 eval "$as_ac_var=no
"
20808 rm -rf conftest.dSYM
20809 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20810 conftest$ac_exeext conftest.$ac_ext
20812 ac_res=`eval 'as_val=${'$as_ac_var'}
20813 $as_echo "$as_val"'`
20814 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
20815 $as_echo "$ac_res" >&6; }
20816 if test `eval 'as_val=${'$as_ac_var'}
20817 $as_echo "$as_val"'` = yes; then
20818 cat >>confdefs.h <<_ACEOF
20819 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
20823 # strftime is in -lintl on SCO UNIX.
20824 { $as_echo "$as_me:$LINENO: checking
for strftime
in -lintl" >&5
20825 $as_echo_n "checking
for strftime
in -lintl...
" >&6; }
20826 if test "${ac_cv_lib_intl_strftime+set}" = set; then
20827 $as_echo_n "(cached
) " >&6
20829 ac_check_lib_save_LIBS=$LIBS
20830 LIBS="-lintl $LIBS"
20831 cat >conftest.$ac_ext <<_ACEOF
20834 cat confdefs.h >>conftest.$ac_ext
20835 cat >>conftest.$ac_ext <<_ACEOF
20836 /* end confdefs.h. */
20838 /* Override any GCC internal prototype to avoid an error.
20839 Use char because int might match the return type of a GCC
20840 builtin and then its argument prototype would still apply. */
20848 return strftime ();
20853 rm -f conftest.$ac_objext conftest$ac_exeext
20854 if { (ac_try="$ac_link"
20855 case "(($ac_try" in
20856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20857 *) ac_try_echo=$ac_try;;
20859 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20860 $as_echo "$ac_try_echo") >&5
20861 (eval "$ac_link") 2>conftest.er1
20863 grep -v '^ *+' conftest.er1 >conftest.err
20865 cat conftest.err >&5
20866 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20867 (exit $ac_status); } && {
20868 test -z "$ac_c_werror_flag" ||
20869 test ! -s conftest.err
20870 } && test -s conftest$ac_exeext && {
20871 test "$cross_compiling" = yes ||
20872 $as_test_x conftest$ac_exeext
20874 ac_cv_lib_intl_strftime=yes
20876 $as_echo "$as_me: failed program was
:" >&5
20877 sed 's/^/| /' conftest.$ac_ext >&5
20879 ac_cv_lib_intl_strftime=no
20882 rm -rf conftest.dSYM
20883 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20884 conftest$ac_exeext conftest.$ac_ext
20885 LIBS=$ac_check_lib_save_LIBS
20887 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_intl_strftime" >&5
20888 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
20889 if test $ac_cv_lib_intl_strftime = yes; then
20890 cat >>confdefs.h <<\_ACEOF
20891 #define HAVE_STRFTIME 1
20894 LIBS="-lintl $LIBS"
20903 for ac_func in grantpt
20905 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
20906 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
20907 $as_echo_n "checking
for $ac_func...
" >&6; }
20908 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
20909 $as_echo_n "(cached
) " >&6
20911 cat >conftest.$ac_ext <<_ACEOF
20914 cat confdefs.h >>conftest.$ac_ext
20915 cat >>conftest.$ac_ext <<_ACEOF
20916 /* end confdefs.h. */
20917 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20918 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20919 #define $ac_func innocuous_$ac_func
20921 /* System header to define __stub macros and hopefully few prototypes,
20922 which can conflict with char $ac_func (); below.
20923 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20924 <limits.h> exists even on freestanding compilers. */
20927 # include <limits.h>
20929 # include <assert.h>
20934 /* Override any GCC internal prototype to avoid an error.
20935 Use char because int might match the return type of a GCC
20936 builtin and then its argument prototype would still apply. */
20941 /* The GNU C library defines this for functions which it implements
20942 to always fail with ENOSYS. Some functions are actually named
20943 something starting with __ and the normal name is an alias. */
20944 #if defined __stub_$ac_func || defined __stub___$ac_func
20951 return $ac_func ();
20956 rm -f conftest.$ac_objext conftest$ac_exeext
20957 if { (ac_try="$ac_link"
20958 case "(($ac_try" in
20959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20960 *) ac_try_echo=$ac_try;;
20962 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20963 $as_echo "$ac_try_echo") >&5
20964 (eval "$ac_link") 2>conftest.er1
20966 grep -v '^ *+' conftest.er1 >conftest.err
20968 cat conftest.err >&5
20969 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20970 (exit $ac_status); } && {
20971 test -z "$ac_c_werror_flag" ||
20972 test ! -s conftest.err
20973 } && test -s conftest$ac_exeext && {
20974 test "$cross_compiling" = yes ||
20975 $as_test_x conftest$ac_exeext
20977 eval "$as_ac_var=yes"
20979 $as_echo "$as_me: failed program was
:" >&5
20980 sed 's/^/| /' conftest.$ac_ext >&5
20982 eval "$as_ac_var=no
"
20985 rm -rf conftest.dSYM
20986 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20987 conftest$ac_exeext conftest.$ac_ext
20989 ac_res=`eval 'as_val=${'$as_ac_var'}
20990 $as_echo "$as_val"'`
20991 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
20992 $as_echo "$ac_res" >&6; }
20993 if test `eval 'as_val=${'$as_ac_var'}
20994 $as_echo "$as_val"'` = yes; then
20995 cat >>confdefs.h <<_ACEOF
20996 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
21003 # PTY-related GNU extensions.
21005 for ac_func in getpt
21007 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
21008 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
21009 $as_echo_n "checking
for $ac_func...
" >&6; }
21010 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
21011 $as_echo_n "(cached
) " >&6
21013 cat >conftest.$ac_ext <<_ACEOF
21016 cat confdefs.h >>conftest.$ac_ext
21017 cat >>conftest.$ac_ext <<_ACEOF
21018 /* end confdefs.h. */
21019 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21020 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21021 #define $ac_func innocuous_$ac_func
21023 /* System header to define __stub macros and hopefully few prototypes,
21024 which can conflict with char $ac_func (); below.
21025 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21026 <limits.h> exists even on freestanding compilers. */
21029 # include <limits.h>
21031 # include <assert.h>
21036 /* Override any GCC internal prototype to avoid an error.
21037 Use char because int might match the return type of a GCC
21038 builtin and then its argument prototype would still apply. */
21043 /* The GNU C library defines this for functions which it implements
21044 to always fail with ENOSYS. Some functions are actually named
21045 something starting with __ and the normal name is an alias. */
21046 #if defined __stub_$ac_func || defined __stub___$ac_func
21053 return $ac_func ();
21058 rm -f conftest.$ac_objext conftest$ac_exeext
21059 if { (ac_try="$ac_link"
21060 case "(($ac_try" in
21061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21062 *) ac_try_echo=$ac_try;;
21064 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21065 $as_echo "$ac_try_echo") >&5
21066 (eval "$ac_link") 2>conftest.er1
21068 grep -v '^ *+' conftest.er1 >conftest.err
21070 cat conftest.err >&5
21071 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21072 (exit $ac_status); } && {
21073 test -z "$ac_c_werror_flag" ||
21074 test ! -s conftest.err
21075 } && test -s conftest$ac_exeext && {
21076 test "$cross_compiling" = yes ||
21077 $as_test_x conftest$ac_exeext
21079 eval "$as_ac_var=yes"
21081 $as_echo "$as_me: failed program was
:" >&5
21082 sed 's/^/| /' conftest.$ac_ext >&5
21084 eval "$as_ac_var=no
"
21087 rm -rf conftest.dSYM
21088 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21089 conftest$ac_exeext conftest.$ac_ext
21091 ac_res=`eval 'as_val=${'$as_ac_var'}
21092 $as_echo "$as_val"'`
21093 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
21094 $as_echo "$ac_res" >&6; }
21095 if test `eval 'as_val=${'$as_ac_var'}
21096 $as_echo "$as_val"'` = yes; then
21097 cat >>confdefs.h <<_ACEOF
21098 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
21105 # Check this now, so that we will NOT find the above functions in ncurses.
21106 # That is because we have not set up to link ncurses in lib-src.
21107 # It's better to believe a function is not available
21108 # than to expect to find it in ncurses.
21109 # Also we need tputs and frieds to be able to build at all.
21110 have_tputs_et_al=true
21111 { $as_echo "$as_me:$LINENO: checking
for library containing tputs
" >&5
21112 $as_echo_n "checking
for library containing tputs...
" >&6; }
21113 if test "${ac_cv_search_tputs+set}" = set; then
21114 $as_echo_n "(cached
) " >&6
21116 ac_func_search_save_LIBS=$LIBS
21117 cat >conftest.$ac_ext <<_ACEOF
21120 cat confdefs.h >>conftest.$ac_ext
21121 cat >>conftest.$ac_ext <<_ACEOF
21122 /* end confdefs.h. */
21124 /* Override any GCC internal prototype to avoid an error.
21125 Use char because int might match the return type of a GCC
21126 builtin and then its argument prototype would still apply. */
21139 for ac_lib in '' ncurses terminfo termcap; do
21140 if test -z "$ac_lib"; then
21141 ac_res="none required
"
21144 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21146 rm -f conftest.$ac_objext conftest$ac_exeext
21147 if { (ac_try="$ac_link"
21148 case "(($ac_try" in
21149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21150 *) ac_try_echo=$ac_try;;
21152 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21153 $as_echo "$ac_try_echo") >&5
21154 (eval "$ac_link") 2>conftest.er1
21156 grep -v '^ *+' conftest.er1 >conftest.err
21158 cat conftest.err >&5
21159 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21160 (exit $ac_status); } && {
21161 test -z "$ac_c_werror_flag" ||
21162 test ! -s conftest.err
21163 } && test -s conftest$ac_exeext && {
21164 test "$cross_compiling" = yes ||
21165 $as_test_x conftest$ac_exeext
21167 ac_cv_search_tputs=$ac_res
21169 $as_echo "$as_me: failed program was
:" >&5
21170 sed 's/^/| /' conftest.$ac_ext >&5
21175 rm -rf conftest.dSYM
21176 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21178 if test "${ac_cv_search_tputs+set}" = set; then
21182 if test "${ac_cv_search_tputs+set}" = set; then
21185 ac_cv_search_tputs=no
21187 rm conftest.$ac_ext
21188 LIBS=$ac_func_search_save_LIBS
21190 { $as_echo "$as_me:$LINENO: result
: $ac_cv_search_tputs" >&5
21191 $as_echo "$ac_cv_search_tputs" >&6; }
21192 ac_res=$ac_cv_search_tputs
21193 if test "$ac_res" != no; then
21194 test "$ac_res" = "none required
" || LIBS="$ac_res $LIBS"
21197 have_tputs_et_al=false
21200 if test "$have_tputs_et_al" != true; then
21201 { { $as_echo "$as_me:$LINENO: error
: I couldn
't find termcap functions (tputs and friends).
21202 Maybe some development libraries/packages are missing? Try installing
21203 libncurses-dev(el), libterminfo-dev(el) or similar." >&5
21204 $as_echo "$as_me: error: I couldn't
find termcap functions
(tputs and friends
).
21205 Maybe some development libraries
/packages are missing? Try installing
21206 libncurses-dev
(el
), libterminfo-dev
(el
) or similar.
" >&2;}
21207 { (exit 1); exit 1; }; }
21209 # Must define this when any termcap library is found.
21211 cat >>confdefs.h <<\_ACEOF
21212 #define HAVE_LIBNCURSES 1
21216 # Do we have res_init, for detecting changes in /etc/resolv.conf?
21219 cat >conftest.$ac_ext <<_ACEOF
21222 cat confdefs.h >>conftest.$ac_ext
21223 cat >>conftest.$ac_ext <<_ACEOF
21224 /* end confdefs.h. */
21225 #include <netinet/in.h>
21226 #include <arpa/nameser.h>
21227 #include <resolv.h>
21236 rm -f conftest.$ac_objext conftest$ac_exeext
21237 if { (ac_try="$ac_link"
21238 case "(($ac_try" in
21239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21240 *) ac_try_echo=$ac_try;;
21242 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21243 $as_echo "$ac_try_echo") >&5
21244 (eval "$ac_link") 2>conftest.er1
21246 grep -v '^ *+' conftest.er1 >conftest.err
21248 cat conftest.err >&5
21249 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21250 (exit $ac_status); } && {
21251 test -z "$ac_c_werror_flag" ||
21252 test ! -s conftest.err
21253 } && test -s conftest$ac_exeext && {
21254 test "$cross_compiling" = yes ||
21255 $as_test_x conftest$ac_exeext
21259 $as_echo "$as_me: failed program was
:" >&5
21260 sed 's/^/| /' conftest.$ac_ext >&5
21265 rm -rf conftest.dSYM
21266 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21267 conftest$ac_exeext conftest.$ac_ext
21268 if test "$have_res_init" = no; then
21270 LIBS="$LIBS -lresolv"
21271 { $as_echo "$as_me:$LINENO: checking
for res_init with
-lresolv" >&5
21272 $as_echo_n "checking
for res_init with
-lresolv...
" >&6; }
21273 cat >conftest.$ac_ext <<_ACEOF
21276 cat confdefs.h >>conftest.$ac_ext
21277 cat >>conftest.$ac_ext <<_ACEOF
21278 /* end confdefs.h. */
21279 #include <netinet/in.h>
21280 #include <arpa/nameser.h>
21281 #include <resolv.h>
21290 rm -f conftest.$ac_objext conftest$ac_exeext
21291 if { (ac_try="$ac_link"
21292 case "(($ac_try" in
21293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21294 *) ac_try_echo=$ac_try;;
21296 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21297 $as_echo "$ac_try_echo") >&5
21298 (eval "$ac_link") 2>conftest.er1
21300 grep -v '^ *+' conftest.er1 >conftest.err
21302 cat conftest.err >&5
21303 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21304 (exit $ac_status); } && {
21305 test -z "$ac_c_werror_flag" ||
21306 test ! -s conftest.err
21307 } && test -s conftest$ac_exeext && {
21308 test "$cross_compiling" = yes ||
21309 $as_test_x conftest$ac_exeext
21313 $as_echo "$as_me: failed program was
:" >&5
21314 sed 's/^/| /' conftest.$ac_ext >&5
21319 rm -rf conftest.dSYM
21320 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21321 conftest$ac_exeext conftest.$ac_ext
21322 { $as_echo "$as_me:$LINENO: result
: $have_res_init" >&5
21323 $as_echo "$have_res_init" >&6; }
21324 if test "$have_res_init" = yes ; then
21330 if test "$have_res_init" = yes; then
21332 cat >>confdefs.h <<\_ACEOF
21333 #define HAVE_RES_INIT 1
21338 # Do we need the Hesiod library to provide the support routines?
21340 if test "$with_hesiod" != no ; then
21341 # Don't set $LIBS here -- see comments above. FIXME which comments?
21342 { $as_echo "$as_me:$LINENO: checking
for res_send
" >&5
21343 $as_echo_n "checking
for res_send...
" >&6; }
21344 if test "${ac_cv_func_res_send+set}" = set; then
21345 $as_echo_n "(cached
) " >&6
21347 cat >conftest.$ac_ext <<_ACEOF
21350 cat confdefs.h >>conftest.$ac_ext
21351 cat >>conftest.$ac_ext <<_ACEOF
21352 /* end confdefs.h. */
21353 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
21354 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21355 #define res_send innocuous_res_send
21357 /* System header to define __stub macros and hopefully few prototypes,
21358 which can conflict with char res_send (); below.
21359 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21360 <limits.h> exists even on freestanding compilers. */
21363 # include <limits.h>
21365 # include <assert.h>
21370 /* Override any GCC internal prototype to avoid an error.
21371 Use char because int might match the return type of a GCC
21372 builtin and then its argument prototype would still apply. */
21377 /* The GNU C library defines this for functions which it implements
21378 to always fail with ENOSYS. Some functions are actually named
21379 something starting with __ and the normal name is an alias. */
21380 #if defined __stub_res_send || defined __stub___res_send
21387 return res_send ();
21392 rm -f conftest.$ac_objext conftest$ac_exeext
21393 if { (ac_try="$ac_link"
21394 case "(($ac_try" in
21395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21396 *) ac_try_echo=$ac_try;;
21398 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21399 $as_echo "$ac_try_echo") >&5
21400 (eval "$ac_link") 2>conftest.er1
21402 grep -v '^ *+' conftest.er1 >conftest.err
21404 cat conftest.err >&5
21405 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21406 (exit $ac_status); } && {
21407 test -z "$ac_c_werror_flag" ||
21408 test ! -s conftest.err
21409 } && test -s conftest$ac_exeext && {
21410 test "$cross_compiling" = yes ||
21411 $as_test_x conftest$ac_exeext
21413 ac_cv_func_res_send=yes
21415 $as_echo "$as_me: failed program was
:" >&5
21416 sed 's/^/| /' conftest.$ac_ext >&5
21418 ac_cv_func_res_send=no
21421 rm -rf conftest.dSYM
21422 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21423 conftest$ac_exeext conftest.$ac_ext
21425 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func_res_send" >&5
21426 $as_echo "$ac_cv_func_res_send" >&6; }
21427 if test $ac_cv_func_res_send = yes; then
21430 { $as_echo "$as_me:$LINENO: checking
for __res_send
" >&5
21431 $as_echo_n "checking
for __res_send...
" >&6; }
21432 if test "${ac_cv_func___res_send+set}" = set; then
21433 $as_echo_n "(cached
) " >&6
21435 cat >conftest.$ac_ext <<_ACEOF
21438 cat confdefs.h >>conftest.$ac_ext
21439 cat >>conftest.$ac_ext <<_ACEOF
21440 /* end confdefs.h. */
21441 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
21442 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21443 #define __res_send innocuous___res_send
21445 /* System header to define __stub macros and hopefully few prototypes,
21446 which can conflict with char __res_send (); below.
21447 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21448 <limits.h> exists even on freestanding compilers. */
21451 # include <limits.h>
21453 # include <assert.h>
21458 /* Override any GCC internal prototype to avoid an error.
21459 Use char because int might match the return type of a GCC
21460 builtin and then its argument prototype would still apply. */
21464 char __res_send ();
21465 /* The GNU C library defines this for functions which it implements
21466 to always fail with ENOSYS. Some functions are actually named
21467 something starting with __ and the normal name is an alias. */
21468 #if defined __stub___res_send || defined __stub_____res_send
21475 return __res_send ();
21480 rm -f conftest.$ac_objext conftest$ac_exeext
21481 if { (ac_try="$ac_link"
21482 case "(($ac_try" in
21483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21484 *) ac_try_echo=$ac_try;;
21486 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21487 $as_echo "$ac_try_echo") >&5
21488 (eval "$ac_link") 2>conftest.er1
21490 grep -v '^ *+' conftest.er1 >conftest.err
21492 cat conftest.err >&5
21493 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21494 (exit $ac_status); } && {
21495 test -z "$ac_c_werror_flag" ||
21496 test ! -s conftest.err
21497 } && test -s conftest$ac_exeext && {
21498 test "$cross_compiling" = yes ||
21499 $as_test_x conftest$ac_exeext
21501 ac_cv_func___res_send=yes
21503 $as_echo "$as_me: failed program was
:" >&5
21504 sed 's/^/| /' conftest.$ac_ext >&5
21506 ac_cv_func___res_send=no
21509 rm -rf conftest.dSYM
21510 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21511 conftest$ac_exeext conftest.$ac_ext
21513 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func___res_send" >&5
21514 $as_echo "$ac_cv_func___res_send" >&6; }
21515 if test $ac_cv_func___res_send = yes; then
21518 { $as_echo "$as_me:$LINENO: checking
for res_send
in -lresolv" >&5
21519 $as_echo_n "checking
for res_send
in -lresolv...
" >&6; }
21520 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
21521 $as_echo_n "(cached
) " >&6
21523 ac_check_lib_save_LIBS=$LIBS
21524 LIBS="-lresolv $LIBS"
21525 cat >conftest.$ac_ext <<_ACEOF
21528 cat confdefs.h >>conftest.$ac_ext
21529 cat >>conftest.$ac_ext <<_ACEOF
21530 /* end confdefs.h. */
21532 /* Override any GCC internal prototype to avoid an error.
21533 Use char because int might match the return type of a GCC
21534 builtin and then its argument prototype would still apply. */
21542 return res_send ();
21547 rm -f conftest.$ac_objext conftest$ac_exeext
21548 if { (ac_try="$ac_link"
21549 case "(($ac_try" in
21550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21551 *) ac_try_echo=$ac_try;;
21553 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21554 $as_echo "$ac_try_echo") >&5
21555 (eval "$ac_link") 2>conftest.er1
21557 grep -v '^ *+' conftest.er1 >conftest.err
21559 cat conftest.err >&5
21560 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21561 (exit $ac_status); } && {
21562 test -z "$ac_c_werror_flag" ||
21563 test ! -s conftest.err
21564 } && test -s conftest$ac_exeext && {
21565 test "$cross_compiling" = yes ||
21566 $as_test_x conftest$ac_exeext
21568 ac_cv_lib_resolv_res_send=yes
21570 $as_echo "$as_me: failed program was
:" >&5
21571 sed 's/^/| /' conftest.$ac_ext >&5
21573 ac_cv_lib_resolv_res_send=no
21576 rm -rf conftest.dSYM
21577 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21578 conftest$ac_exeext conftest.$ac_ext
21579 LIBS=$ac_check_lib_save_LIBS
21581 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_resolv_res_send" >&5
21582 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
21583 if test $ac_cv_lib_resolv_res_send = yes; then
21586 { $as_echo "$as_me:$LINENO: checking
for __res_send
in -lresolv" >&5
21587 $as_echo_n "checking
for __res_send
in -lresolv...
" >&6; }
21588 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
21589 $as_echo_n "(cached
) " >&6
21591 ac_check_lib_save_LIBS=$LIBS
21592 LIBS="-lresolv $LIBS"
21593 cat >conftest.$ac_ext <<_ACEOF
21596 cat confdefs.h >>conftest.$ac_ext
21597 cat >>conftest.$ac_ext <<_ACEOF
21598 /* end confdefs.h. */
21600 /* Override any GCC internal prototype to avoid an error.
21601 Use char because int might match the return type of a GCC
21602 builtin and then its argument prototype would still apply. */
21606 char __res_send ();
21610 return __res_send ();
21615 rm -f conftest.$ac_objext conftest$ac_exeext
21616 if { (ac_try="$ac_link"
21617 case "(($ac_try" in
21618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21619 *) ac_try_echo=$ac_try;;
21621 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21622 $as_echo "$ac_try_echo") >&5
21623 (eval "$ac_link") 2>conftest.er1
21625 grep -v '^ *+' conftest.er1 >conftest.err
21627 cat conftest.err >&5
21628 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21629 (exit $ac_status); } && {
21630 test -z "$ac_c_werror_flag" ||
21631 test ! -s conftest.err
21632 } && test -s conftest$ac_exeext && {
21633 test "$cross_compiling" = yes ||
21634 $as_test_x conftest$ac_exeext
21636 ac_cv_lib_resolv___res_send=yes
21638 $as_echo "$as_me: failed program was
:" >&5
21639 sed 's/^/| /' conftest.$ac_ext >&5
21641 ac_cv_lib_resolv___res_send=no
21644 rm -rf conftest.dSYM
21645 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21646 conftest$ac_exeext conftest.$ac_ext
21647 LIBS=$ac_check_lib_save_LIBS
21649 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_resolv___res_send" >&5
21650 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
21651 if test $ac_cv_lib_resolv___res_send = yes; then
21661 if test "$resolv" = yes ; then
21666 { $as_echo "$as_me:$LINENO: checking
for hes_getmailhost
" >&5
21667 $as_echo_n "checking
for hes_getmailhost...
" >&6; }
21668 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
21669 $as_echo_n "(cached
) " >&6
21671 cat >conftest.$ac_ext <<_ACEOF
21674 cat confdefs.h >>conftest.$ac_ext
21675 cat >>conftest.$ac_ext <<_ACEOF
21676 /* end confdefs.h. */
21677 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
21678 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21679 #define hes_getmailhost innocuous_hes_getmailhost
21681 /* System header to define __stub macros and hopefully few prototypes,
21682 which can conflict with char hes_getmailhost (); below.
21683 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21684 <limits.h> exists even on freestanding compilers. */
21687 # include <limits.h>
21689 # include <assert.h>
21692 #undef hes_getmailhost
21694 /* Override any GCC internal prototype to avoid an error.
21695 Use char because int might match the return type of a GCC
21696 builtin and then its argument prototype would still apply. */
21700 char hes_getmailhost ();
21701 /* The GNU C library defines this for functions which it implements
21702 to always fail with ENOSYS. Some functions are actually named
21703 something starting with __ and the normal name is an alias. */
21704 #if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost
21711 return hes_getmailhost ();
21716 rm -f conftest.$ac_objext conftest$ac_exeext
21717 if { (ac_try="$ac_link"
21718 case "(($ac_try" in
21719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21720 *) ac_try_echo=$ac_try;;
21722 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21723 $as_echo "$ac_try_echo") >&5
21724 (eval "$ac_link") 2>conftest.er1
21726 grep -v '^ *+' conftest.er1 >conftest.err
21728 cat conftest.err >&5
21729 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21730 (exit $ac_status); } && {
21731 test -z "$ac_c_werror_flag" ||
21732 test ! -s conftest.err
21733 } && test -s conftest$ac_exeext && {
21734 test "$cross_compiling" = yes ||
21735 $as_test_x conftest$ac_exeext
21737 ac_cv_func_hes_getmailhost=yes
21739 $as_echo "$as_me: failed program was
:" >&5
21740 sed 's/^/| /' conftest.$ac_ext >&5
21742 ac_cv_func_hes_getmailhost=no
21745 rm -rf conftest.dSYM
21746 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21747 conftest$ac_exeext conftest.$ac_ext
21749 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func_hes_getmailhost" >&5
21750 $as_echo "$ac_cv_func_hes_getmailhost" >&6; }
21751 if test $ac_cv_func_hes_getmailhost = yes; then
21754 { $as_echo "$as_me:$LINENO: checking
for hes_getmailhost
in -lhesiod" >&5
21755 $as_echo_n "checking
for hes_getmailhost
in -lhesiod...
" >&6; }
21756 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
21757 $as_echo_n "(cached
) " >&6
21759 ac_check_lib_save_LIBS=$LIBS
21760 LIBS="-lhesiod $RESOLVLIB $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 hes_getmailhost ();
21778 return hes_getmailhost ();
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_hesiod_hes_getmailhost=yes
21806 $as_echo "$as_me: failed program was
:" >&5
21807 sed 's/^/| /' conftest.$ac_ext >&5
21809 ac_cv_lib_hesiod_hes_getmailhost=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_hesiod_hes_getmailhost" >&5
21818 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
21819 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
21828 if test x"$hesiod" = xyes; then
21830 cat >>confdefs.h <<\_ACEOF
21831 #define HAVE_LIBHESIOD 1
21839 # Do we need libresolv (due to res_init or Hesiod)?
21840 if test "$resolv" = yes ; then
21842 cat >>confdefs.h <<\_ACEOF
21843 #define HAVE_LIBRESOLV 1
21852 # These tell us which Kerberos-related libraries to use.
21859 if test "${with_kerberos}" != no; then
21860 { $as_echo "$as_me:$LINENO: checking
for com_err
in -lcom_err" >&5
21861 $as_echo_n "checking
for com_err
in -lcom_err...
" >&6; }
21862 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
21863 $as_echo_n "(cached
) " >&6
21865 ac_check_lib_save_LIBS=$LIBS
21866 LIBS="-lcom_err $LIBS"
21867 cat >conftest.$ac_ext <<_ACEOF
21870 cat confdefs.h >>conftest.$ac_ext
21871 cat >>conftest.$ac_ext <<_ACEOF
21872 /* end confdefs.h. */
21874 /* Override any GCC internal prototype to avoid an error.
21875 Use char because int might match the return type of a GCC
21876 builtin and then its argument prototype would still apply. */
21889 rm -f conftest.$ac_objext conftest$ac_exeext
21890 if { (ac_try="$ac_link"
21891 case "(($ac_try" in
21892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21893 *) ac_try_echo=$ac_try;;
21895 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21896 $as_echo "$ac_try_echo") >&5
21897 (eval "$ac_link") 2>conftest.er1
21899 grep -v '^ *+' conftest.er1 >conftest.err
21901 cat conftest.err >&5
21902 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21903 (exit $ac_status); } && {
21904 test -z "$ac_c_werror_flag" ||
21905 test ! -s conftest.err
21906 } && test -s conftest$ac_exeext && {
21907 test "$cross_compiling" = yes ||
21908 $as_test_x conftest$ac_exeext
21910 ac_cv_lib_com_err_com_err=yes
21912 $as_echo "$as_me: failed program was
:" >&5
21913 sed 's/^/| /' conftest.$ac_ext >&5
21915 ac_cv_lib_com_err_com_err=no
21918 rm -rf conftest.dSYM
21919 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21920 conftest$ac_exeext conftest.$ac_ext
21921 LIBS=$ac_check_lib_save_LIBS
21923 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_com_err_com_err" >&5
21924 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
21925 if test $ac_cv_lib_com_err_com_err = yes; then
21931 if test $have_com_err = yes; then
21932 COM_ERRLIB=-lcom_err
21933 LIBS="$COM_ERRLIB $LIBS"
21935 cat >>confdefs.h <<\_ACEOF
21936 #define HAVE_LIBCOM_ERR 1
21940 { $as_echo "$as_me:$LINENO: checking
for mit_des_cbc_encrypt
in -lcrypto" >&5
21941 $as_echo_n "checking
for mit_des_cbc_encrypt
in -lcrypto...
" >&6; }
21942 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
21943 $as_echo_n "(cached
) " >&6
21945 ac_check_lib_save_LIBS=$LIBS
21946 LIBS="-lcrypto $LIBS"
21947 cat >conftest.$ac_ext <<_ACEOF
21950 cat confdefs.h >>conftest.$ac_ext
21951 cat >>conftest.$ac_ext <<_ACEOF
21952 /* end confdefs.h. */
21954 /* Override any GCC internal prototype to avoid an error.
21955 Use char because int might match the return type of a GCC
21956 builtin and then its argument prototype would still apply. */
21960 char mit_des_cbc_encrypt ();
21964 return mit_des_cbc_encrypt ();
21969 rm -f conftest.$ac_objext conftest$ac_exeext
21970 if { (ac_try="$ac_link"
21971 case "(($ac_try" in
21972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21973 *) ac_try_echo=$ac_try;;
21975 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21976 $as_echo "$ac_try_echo") >&5
21977 (eval "$ac_link") 2>conftest.er1
21979 grep -v '^ *+' conftest.er1 >conftest.err
21981 cat conftest.err >&5
21982 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21983 (exit $ac_status); } && {
21984 test -z "$ac_c_werror_flag" ||
21985 test ! -s conftest.err
21986 } && test -s conftest$ac_exeext && {
21987 test "$cross_compiling" = yes ||
21988 $as_test_x conftest$ac_exeext
21990 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
21992 $as_echo "$as_me: failed program was
:" >&5
21993 sed 's/^/| /' conftest.$ac_ext >&5
21995 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
21998 rm -rf conftest.dSYM
21999 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22000 conftest$ac_exeext conftest.$ac_ext
22001 LIBS=$ac_check_lib_save_LIBS
22003 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
22004 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
22005 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
22011 if test $have_crypto = yes; then
22013 LIBS="$CRYPTOLIB $LIBS"
22015 cat >>confdefs.h <<\_ACEOF
22016 #define HAVE_LIBCRYPTO 1
22020 { $as_echo "$as_me:$LINENO: checking
for mit_des_cbc_encrypt
in -lk5crypto" >&5
22021 $as_echo_n "checking
for mit_des_cbc_encrypt
in -lk5crypto...
" >&6; }
22022 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
22023 $as_echo_n "(cached
) " >&6
22025 ac_check_lib_save_LIBS=$LIBS
22026 LIBS="-lk5crypto $LIBS"
22027 cat >conftest.$ac_ext <<_ACEOF
22030 cat confdefs.h >>conftest.$ac_ext
22031 cat >>conftest.$ac_ext <<_ACEOF
22032 /* end confdefs.h. */
22034 /* Override any GCC internal prototype to avoid an error.
22035 Use char because int might match the return type of a GCC
22036 builtin and then its argument prototype would still apply. */
22040 char mit_des_cbc_encrypt ();
22044 return mit_des_cbc_encrypt ();
22049 rm -f conftest.$ac_objext conftest$ac_exeext
22050 if { (ac_try="$ac_link"
22051 case "(($ac_try" in
22052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22053 *) ac_try_echo=$ac_try;;
22055 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22056 $as_echo "$ac_try_echo") >&5
22057 (eval "$ac_link") 2>conftest.er1
22059 grep -v '^ *+' conftest.er1 >conftest.err
22061 cat conftest.err >&5
22062 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22063 (exit $ac_status); } && {
22064 test -z "$ac_c_werror_flag" ||
22065 test ! -s conftest.err
22066 } && test -s conftest$ac_exeext && {
22067 test "$cross_compiling" = yes ||
22068 $as_test_x conftest$ac_exeext
22070 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
22072 $as_echo "$as_me: failed program was
:" >&5
22073 sed 's/^/| /' conftest.$ac_ext >&5
22075 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
22078 rm -rf conftest.dSYM
22079 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22080 conftest$ac_exeext conftest.$ac_ext
22081 LIBS=$ac_check_lib_save_LIBS
22083 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
22084 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
22085 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
22091 if test $have_k5crypto = yes; then
22092 CRYPTOLIB=-lk5crypto
22093 LIBS="$CRYPTOLIB $LIBS"
22095 cat >>confdefs.h <<\_ACEOF
22096 #define HAVE_LIBK5CRYPTO 1
22100 { $as_echo "$as_me:$LINENO: checking
for krb5_init_context
in -lkrb5" >&5
22101 $as_echo_n "checking
for krb5_init_context
in -lkrb5...
" >&6; }
22102 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
22103 $as_echo_n "(cached
) " >&6
22105 ac_check_lib_save_LIBS=$LIBS
22106 LIBS="-lkrb5 $LIBS"
22107 cat >conftest.$ac_ext <<_ACEOF
22110 cat confdefs.h >>conftest.$ac_ext
22111 cat >>conftest.$ac_ext <<_ACEOF
22112 /* end confdefs.h. */
22114 /* Override any GCC internal prototype to avoid an error.
22115 Use char because int might match the return type of a GCC
22116 builtin and then its argument prototype would still apply. */
22120 char krb5_init_context ();
22124 return krb5_init_context ();
22129 rm -f conftest.$ac_objext conftest$ac_exeext
22130 if { (ac_try="$ac_link"
22131 case "(($ac_try" in
22132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22133 *) ac_try_echo=$ac_try;;
22135 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22136 $as_echo "$ac_try_echo") >&5
22137 (eval "$ac_link") 2>conftest.er1
22139 grep -v '^ *+' conftest.er1 >conftest.err
22141 cat conftest.err >&5
22142 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22143 (exit $ac_status); } && {
22144 test -z "$ac_c_werror_flag" ||
22145 test ! -s conftest.err
22146 } && test -s conftest$ac_exeext && {
22147 test "$cross_compiling" = yes ||
22148 $as_test_x conftest$ac_exeext
22150 ac_cv_lib_krb5_krb5_init_context=yes
22152 $as_echo "$as_me: failed program was
:" >&5
22153 sed 's/^/| /' conftest.$ac_ext >&5
22155 ac_cv_lib_krb5_krb5_init_context=no
22158 rm -rf conftest.dSYM
22159 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22160 conftest$ac_exeext conftest.$ac_ext
22161 LIBS=$ac_check_lib_save_LIBS
22163 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_krb5_krb5_init_context" >&5
22164 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
22165 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
22171 if test $have_krb5=yes; then
22173 LIBS="$KRB5LIB $LIBS"
22175 cat >>confdefs.h <<\_ACEOF
22176 #define HAVE_LIBKRB5 1
22180 if test "${with_kerberos5}" = no; then
22181 { $as_echo "$as_me:$LINENO: checking
for des_cbc_encrypt
in -ldes425" >&5
22182 $as_echo_n "checking
for des_cbc_encrypt
in -ldes425...
" >&6; }
22183 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
22184 $as_echo_n "(cached
) " >&6
22186 ac_check_lib_save_LIBS=$LIBS
22187 LIBS="-ldes425 $LIBS"
22188 cat >conftest.$ac_ext <<_ACEOF
22191 cat confdefs.h >>conftest.$ac_ext
22192 cat >>conftest.$ac_ext <<_ACEOF
22193 /* end confdefs.h. */
22195 /* Override any GCC internal prototype to avoid an error.
22196 Use char because int might match the return type of a GCC
22197 builtin and then its argument prototype would still apply. */
22201 char des_cbc_encrypt ();
22205 return des_cbc_encrypt ();
22210 rm -f conftest.$ac_objext conftest$ac_exeext
22211 if { (ac_try="$ac_link"
22212 case "(($ac_try" in
22213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22214 *) ac_try_echo=$ac_try;;
22216 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22217 $as_echo "$ac_try_echo") >&5
22218 (eval "$ac_link") 2>conftest.er1
22220 grep -v '^ *+' conftest.er1 >conftest.err
22222 cat conftest.err >&5
22223 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22224 (exit $ac_status); } && {
22225 test -z "$ac_c_werror_flag" ||
22226 test ! -s conftest.err
22227 } && test -s conftest$ac_exeext && {
22228 test "$cross_compiling" = yes ||
22229 $as_test_x conftest$ac_exeext
22231 ac_cv_lib_des425_des_cbc_encrypt=yes
22233 $as_echo "$as_me: failed program was
:" >&5
22234 sed 's/^/| /' conftest.$ac_ext >&5
22236 ac_cv_lib_des425_des_cbc_encrypt=no
22239 rm -rf conftest.dSYM
22240 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22241 conftest$ac_exeext conftest.$ac_ext
22242 LIBS=$ac_check_lib_save_LIBS
22244 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_des425_des_cbc_encrypt" >&5
22245 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
22246 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
22252 if test $have_des425 = yes; then
22254 LIBS="$DESLIB $LIBS"
22256 cat >>confdefs.h <<\_ACEOF
22257 #define HAVE_LIBDES425 1
22261 { $as_echo "$as_me:$LINENO: checking
for des_cbc_encrypt
in -ldes" >&5
22262 $as_echo_n "checking
for des_cbc_encrypt
in -ldes...
" >&6; }
22263 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
22264 $as_echo_n "(cached
) " >&6
22266 ac_check_lib_save_LIBS=$LIBS
22268 cat >conftest.$ac_ext <<_ACEOF
22271 cat confdefs.h >>conftest.$ac_ext
22272 cat >>conftest.$ac_ext <<_ACEOF
22273 /* end confdefs.h. */
22275 /* Override any GCC internal prototype to avoid an error.
22276 Use char because int might match the return type of a GCC
22277 builtin and then its argument prototype would still apply. */
22281 char des_cbc_encrypt ();
22285 return des_cbc_encrypt ();
22290 rm -f conftest.$ac_objext conftest$ac_exeext
22291 if { (ac_try="$ac_link"
22292 case "(($ac_try" in
22293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22294 *) ac_try_echo=$ac_try;;
22296 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22297 $as_echo "$ac_try_echo") >&5
22298 (eval "$ac_link") 2>conftest.er1
22300 grep -v '^ *+' conftest.er1 >conftest.err
22302 cat conftest.err >&5
22303 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22304 (exit $ac_status); } && {
22305 test -z "$ac_c_werror_flag" ||
22306 test ! -s conftest.err
22307 } && test -s conftest$ac_exeext && {
22308 test "$cross_compiling" = yes ||
22309 $as_test_x conftest$ac_exeext
22311 ac_cv_lib_des_des_cbc_encrypt=yes
22313 $as_echo "$as_me: failed program was
:" >&5
22314 sed 's/^/| /' conftest.$ac_ext >&5
22316 ac_cv_lib_des_des_cbc_encrypt=no
22319 rm -rf conftest.dSYM
22320 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22321 conftest$ac_exeext conftest.$ac_ext
22322 LIBS=$ac_check_lib_save_LIBS
22324 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_des_des_cbc_encrypt" >&5
22325 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
22326 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
22332 if test $have_des = yes; then
22334 LIBS="$DESLIB $LIBS"
22336 cat >>confdefs.h <<\_ACEOF
22337 #define HAVE_LIBDES 1
22342 { $as_echo "$as_me:$LINENO: checking
for krb_get_cred
in -lkrb4" >&5
22343 $as_echo_n "checking
for krb_get_cred
in -lkrb4...
" >&6; }
22344 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
22345 $as_echo_n "(cached
) " >&6
22347 ac_check_lib_save_LIBS=$LIBS
22348 LIBS="-lkrb4 $LIBS"
22349 cat >conftest.$ac_ext <<_ACEOF
22352 cat confdefs.h >>conftest.$ac_ext
22353 cat >>conftest.$ac_ext <<_ACEOF
22354 /* end confdefs.h. */
22356 /* Override any GCC internal prototype to avoid an error.
22357 Use char because int might match the return type of a GCC
22358 builtin and then its argument prototype would still apply. */
22362 char krb_get_cred ();
22366 return krb_get_cred ();
22371 rm -f conftest.$ac_objext conftest$ac_exeext
22372 if { (ac_try="$ac_link"
22373 case "(($ac_try" in
22374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22375 *) ac_try_echo=$ac_try;;
22377 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22378 $as_echo "$ac_try_echo") >&5
22379 (eval "$ac_link") 2>conftest.er1
22381 grep -v '^ *+' conftest.er1 >conftest.err
22383 cat conftest.err >&5
22384 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22385 (exit $ac_status); } && {
22386 test -z "$ac_c_werror_flag" ||
22387 test ! -s conftest.err
22388 } && test -s conftest$ac_exeext && {
22389 test "$cross_compiling" = yes ||
22390 $as_test_x conftest$ac_exeext
22392 ac_cv_lib_krb4_krb_get_cred=yes
22394 $as_echo "$as_me: failed program was
:" >&5
22395 sed 's/^/| /' conftest.$ac_ext >&5
22397 ac_cv_lib_krb4_krb_get_cred=no
22400 rm -rf conftest.dSYM
22401 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22402 conftest$ac_exeext conftest.$ac_ext
22403 LIBS=$ac_check_lib_save_LIBS
22405 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_krb4_krb_get_cred" >&5
22406 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
22407 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
22413 if test $have_krb4 = yes; then
22415 LIBS="$KRB4LIB $LIBS"
22417 cat >>confdefs.h <<\_ACEOF
22418 #define HAVE_LIBKRB4 1
22422 { $as_echo "$as_me:$LINENO: checking
for krb_get_cred
in -lkrb" >&5
22423 $as_echo_n "checking
for krb_get_cred
in -lkrb...
" >&6; }
22424 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
22425 $as_echo_n "(cached
) " >&6
22427 ac_check_lib_save_LIBS=$LIBS
22429 cat >conftest.$ac_ext <<_ACEOF
22432 cat confdefs.h >>conftest.$ac_ext
22433 cat >>conftest.$ac_ext <<_ACEOF
22434 /* end confdefs.h. */
22436 /* Override any GCC internal prototype to avoid an error.
22437 Use char because int might match the return type of a GCC
22438 builtin and then its argument prototype would still apply. */
22442 char krb_get_cred ();
22446 return krb_get_cred ();
22451 rm -f conftest.$ac_objext conftest$ac_exeext
22452 if { (ac_try="$ac_link"
22453 case "(($ac_try" in
22454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22455 *) ac_try_echo=$ac_try;;
22457 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22458 $as_echo "$ac_try_echo") >&5
22459 (eval "$ac_link") 2>conftest.er1
22461 grep -v '^ *+' conftest.er1 >conftest.err
22463 cat conftest.err >&5
22464 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22465 (exit $ac_status); } && {
22466 test -z "$ac_c_werror_flag" ||
22467 test ! -s conftest.err
22468 } && test -s conftest$ac_exeext && {
22469 test "$cross_compiling" = yes ||
22470 $as_test_x conftest$ac_exeext
22472 ac_cv_lib_krb_krb_get_cred=yes
22474 $as_echo "$as_me: failed program was
:" >&5
22475 sed 's/^/| /' conftest.$ac_ext >&5
22477 ac_cv_lib_krb_krb_get_cred=no
22480 rm -rf conftest.dSYM
22481 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22482 conftest$ac_exeext conftest.$ac_ext
22483 LIBS=$ac_check_lib_save_LIBS
22485 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_krb_krb_get_cred" >&5
22486 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
22487 if test $ac_cv_lib_krb_krb_get_cred = yes; then
22493 if test $have_krb = yes; then
22495 LIBS="$KRB4LIB $LIBS"
22497 cat >>confdefs.h <<\_ACEOF
22498 #define HAVE_LIBKRB 1
22505 if test "${with_kerberos5}" != no; then
22507 for ac_header in krb5.h
22509 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
22510 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22511 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
22512 $as_echo_n "checking
for $ac_header...
" >&6; }
22513 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22514 $as_echo_n "(cached
) " >&6
22516 ac_res=`eval 'as_val=${'$as_ac_Header'}
22517 $as_echo "$as_val"'`
22518 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
22519 $as_echo "$ac_res" >&6; }
22521 # Is the header compilable?
22522 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
22523 $as_echo_n "checking
$ac_header usability...
" >&6; }
22524 cat >conftest.$ac_ext <<_ACEOF
22527 cat confdefs.h >>conftest.$ac_ext
22528 cat >>conftest.$ac_ext <<_ACEOF
22529 /* end confdefs.h. */
22530 $ac_includes_default
22531 #include <$ac_header>
22533 rm -f conftest.$ac_objext
22534 if { (ac_try="$ac_compile"
22535 case "(($ac_try" in
22536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22537 *) ac_try_echo=$ac_try;;
22539 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22540 $as_echo "$ac_try_echo") >&5
22541 (eval "$ac_compile") 2>conftest.er1
22543 grep -v '^ *+' conftest.er1 >conftest.err
22545 cat conftest.err >&5
22546 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22547 (exit $ac_status); } && {
22548 test -z "$ac_c_werror_flag" ||
22549 test ! -s conftest.err
22550 } && test -s conftest.$ac_objext; then
22551 ac_header_compiler=yes
22553 $as_echo "$as_me: failed program was
:" >&5
22554 sed 's/^/| /' conftest.$ac_ext >&5
22556 ac_header_compiler=no
22559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22560 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22561 $as_echo "$ac_header_compiler" >&6; }
22563 # Is the header present?
22564 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
22565 $as_echo_n "checking
$ac_header presence...
" >&6; }
22566 cat >conftest.$ac_ext <<_ACEOF
22569 cat confdefs.h >>conftest.$ac_ext
22570 cat >>conftest.$ac_ext <<_ACEOF
22571 /* end confdefs.h. */
22572 #include <$ac_header>
22574 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22575 case "(($ac_try" in
22576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22577 *) ac_try_echo=$ac_try;;
22579 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22580 $as_echo "$ac_try_echo") >&5
22581 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22583 grep -v '^ *+' conftest.er1 >conftest.err
22585 cat conftest.err >&5
22586 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22587 (exit $ac_status); } >/dev/null && {
22588 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22589 test ! -s conftest.err
22591 ac_header_preproc=yes
22593 $as_echo "$as_me: failed program was
:" >&5
22594 sed 's/^/| /' conftest.$ac_ext >&5
22596 ac_header_preproc=no
22599 rm -f conftest.err conftest.$ac_ext
22600 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22601 $as_echo "$ac_header_preproc" >&6; }
22603 # So? What about this header?
22604 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22606 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
22607 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22608 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
22609 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
22610 ac_header_preproc=yes
22613 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
22614 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
22615 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
22616 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
22617 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
22618 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
22619 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
22620 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
22621 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
22622 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
22623 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
22624 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
22628 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
22629 $as_echo_n "checking
for $ac_header...
" >&6; }
22630 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22631 $as_echo_n "(cached
) " >&6
22633 eval "$as_ac_Header=\
$ac_header_preproc"
22635 ac_res=`eval 'as_val=${'$as_ac_Header'}
22636 $as_echo "$as_val"'`
22637 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
22638 $as_echo "$ac_res" >&6; }
22641 if test `eval 'as_val=${'$as_ac_Header'}
22642 $as_echo "$as_val"'` = yes; then
22643 cat >>confdefs.h <<_ACEOF
22644 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
22646 { $as_echo "$as_me:$LINENO: checking
for krb5_error.text
" >&5
22647 $as_echo_n "checking
for krb5_error.text...
" >&6; }
22648 if test "${ac_cv_member_krb5_error_text+set}" = set; then
22649 $as_echo_n "(cached
) " >&6
22651 cat >conftest.$ac_ext <<_ACEOF
22654 cat confdefs.h >>conftest.$ac_ext
22655 cat >>conftest.$ac_ext <<_ACEOF
22656 /* end confdefs.h. */
22662 static krb5_error ac_aggr;
22669 rm -f conftest.$ac_objext
22670 if { (ac_try="$ac_compile"
22671 case "(($ac_try" in
22672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22673 *) ac_try_echo=$ac_try;;
22675 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22676 $as_echo "$ac_try_echo") >&5
22677 (eval "$ac_compile") 2>conftest.er1
22679 grep -v '^ *+' conftest.er1 >conftest.err
22681 cat conftest.err >&5
22682 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22683 (exit $ac_status); } && {
22684 test -z "$ac_c_werror_flag" ||
22685 test ! -s conftest.err
22686 } && test -s conftest.$ac_objext; then
22687 ac_cv_member_krb5_error_text=yes
22689 $as_echo "$as_me: failed program was
:" >&5
22690 sed 's/^/| /' conftest.$ac_ext >&5
22692 cat >conftest.$ac_ext <<_ACEOF
22695 cat confdefs.h >>conftest.$ac_ext
22696 cat >>conftest.$ac_ext <<_ACEOF
22697 /* end confdefs.h. */
22703 static krb5_error ac_aggr;
22704 if (sizeof ac_aggr.text)
22710 rm -f conftest.$ac_objext
22711 if { (ac_try="$ac_compile"
22712 case "(($ac_try" in
22713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22714 *) ac_try_echo=$ac_try;;
22716 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22717 $as_echo "$ac_try_echo") >&5
22718 (eval "$ac_compile") 2>conftest.er1
22720 grep -v '^ *+' conftest.er1 >conftest.err
22722 cat conftest.err >&5
22723 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22724 (exit $ac_status); } && {
22725 test -z "$ac_c_werror_flag" ||
22726 test ! -s conftest.err
22727 } && test -s conftest.$ac_objext; then
22728 ac_cv_member_krb5_error_text=yes
22730 $as_echo "$as_me: failed program was
:" >&5
22731 sed 's/^/| /' conftest.$ac_ext >&5
22733 ac_cv_member_krb5_error_text=no
22736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22741 { $as_echo "$as_me:$LINENO: result
: $ac_cv_member_krb5_error_text" >&5
22742 $as_echo "$ac_cv_member_krb5_error_text" >&6; }
22743 if test $ac_cv_member_krb5_error_text = yes; then
22745 cat >>confdefs.h <<_ACEOF
22746 #define HAVE_KRB5_ERROR_TEXT 1
22751 { $as_echo "$as_me:$LINENO: checking
for krb5_error.e_text
" >&5
22752 $as_echo_n "checking
for krb5_error.e_text...
" >&6; }
22753 if test "${ac_cv_member_krb5_error_e_text+set}" = set; then
22754 $as_echo_n "(cached
) " >&6
22756 cat >conftest.$ac_ext <<_ACEOF
22759 cat confdefs.h >>conftest.$ac_ext
22760 cat >>conftest.$ac_ext <<_ACEOF
22761 /* end confdefs.h. */
22767 static krb5_error ac_aggr;
22768 if (ac_aggr.e_text)
22774 rm -f conftest.$ac_objext
22775 if { (ac_try="$ac_compile"
22776 case "(($ac_try" in
22777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22778 *) ac_try_echo=$ac_try;;
22780 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22781 $as_echo "$ac_try_echo") >&5
22782 (eval "$ac_compile") 2>conftest.er1
22784 grep -v '^ *+' conftest.er1 >conftest.err
22786 cat conftest.err >&5
22787 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22788 (exit $ac_status); } && {
22789 test -z "$ac_c_werror_flag" ||
22790 test ! -s conftest.err
22791 } && test -s conftest.$ac_objext; then
22792 ac_cv_member_krb5_error_e_text=yes
22794 $as_echo "$as_me: failed program was
:" >&5
22795 sed 's/^/| /' conftest.$ac_ext >&5
22797 cat >conftest.$ac_ext <<_ACEOF
22800 cat confdefs.h >>conftest.$ac_ext
22801 cat >>conftest.$ac_ext <<_ACEOF
22802 /* end confdefs.h. */
22808 static krb5_error ac_aggr;
22809 if (sizeof ac_aggr.e_text)
22815 rm -f conftest.$ac_objext
22816 if { (ac_try="$ac_compile"
22817 case "(($ac_try" in
22818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22819 *) ac_try_echo=$ac_try;;
22821 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22822 $as_echo "$ac_try_echo") >&5
22823 (eval "$ac_compile") 2>conftest.er1
22825 grep -v '^ *+' conftest.er1 >conftest.err
22827 cat conftest.err >&5
22828 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22829 (exit $ac_status); } && {
22830 test -z "$ac_c_werror_flag" ||
22831 test ! -s conftest.err
22832 } && test -s conftest.$ac_objext; then
22833 ac_cv_member_krb5_error_e_text=yes
22835 $as_echo "$as_me: failed program was
:" >&5
22836 sed 's/^/| /' conftest.$ac_ext >&5
22838 ac_cv_member_krb5_error_e_text=no
22841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22846 { $as_echo "$as_me:$LINENO: result
: $ac_cv_member_krb5_error_e_text" >&5
22847 $as_echo "$ac_cv_member_krb5_error_e_text" >&6; }
22848 if test $ac_cv_member_krb5_error_e_text = yes; then
22850 cat >>confdefs.h <<_ACEOF
22851 #define HAVE_KRB5_ERROR_E_TEXT 1
22863 for ac_header in des.h
22865 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
22866 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22867 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
22868 $as_echo_n "checking
for $ac_header...
" >&6; }
22869 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22870 $as_echo_n "(cached
) " >&6
22872 ac_res=`eval 'as_val=${'$as_ac_Header'}
22873 $as_echo "$as_val"'`
22874 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
22875 $as_echo "$ac_res" >&6; }
22877 # Is the header compilable?
22878 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
22879 $as_echo_n "checking
$ac_header usability...
" >&6; }
22880 cat >conftest.$ac_ext <<_ACEOF
22883 cat confdefs.h >>conftest.$ac_ext
22884 cat >>conftest.$ac_ext <<_ACEOF
22885 /* end confdefs.h. */
22886 $ac_includes_default
22887 #include <$ac_header>
22889 rm -f conftest.$ac_objext
22890 if { (ac_try="$ac_compile"
22891 case "(($ac_try" in
22892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22893 *) ac_try_echo=$ac_try;;
22895 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22896 $as_echo "$ac_try_echo") >&5
22897 (eval "$ac_compile") 2>conftest.er1
22899 grep -v '^ *+' conftest.er1 >conftest.err
22901 cat conftest.err >&5
22902 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22903 (exit $ac_status); } && {
22904 test -z "$ac_c_werror_flag" ||
22905 test ! -s conftest.err
22906 } && test -s conftest.$ac_objext; then
22907 ac_header_compiler=yes
22909 $as_echo "$as_me: failed program was
:" >&5
22910 sed 's/^/| /' conftest.$ac_ext >&5
22912 ac_header_compiler=no
22915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22916 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22917 $as_echo "$ac_header_compiler" >&6; }
22919 # Is the header present?
22920 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
22921 $as_echo_n "checking
$ac_header presence...
" >&6; }
22922 cat >conftest.$ac_ext <<_ACEOF
22925 cat confdefs.h >>conftest.$ac_ext
22926 cat >>conftest.$ac_ext <<_ACEOF
22927 /* end confdefs.h. */
22928 #include <$ac_header>
22930 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22931 case "(($ac_try" in
22932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22933 *) ac_try_echo=$ac_try;;
22935 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22936 $as_echo "$ac_try_echo") >&5
22937 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22939 grep -v '^ *+' conftest.er1 >conftest.err
22941 cat conftest.err >&5
22942 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22943 (exit $ac_status); } >/dev/null && {
22944 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22945 test ! -s conftest.err
22947 ac_header_preproc=yes
22949 $as_echo "$as_me: failed program was
:" >&5
22950 sed 's/^/| /' conftest.$ac_ext >&5
22952 ac_header_preproc=no
22955 rm -f conftest.err conftest.$ac_ext
22956 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22957 $as_echo "$ac_header_preproc" >&6; }
22959 # So? What about this header?
22960 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22962 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
22963 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22964 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
22965 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
22966 ac_header_preproc=yes
22969 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
22970 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
22971 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
22972 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
22973 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
22974 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
22975 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
22976 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
22977 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
22978 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
22979 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
22980 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
22984 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
22985 $as_echo_n "checking
for $ac_header...
" >&6; }
22986 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22987 $as_echo_n "(cached
) " >&6
22989 eval "$as_ac_Header=\
$ac_header_preproc"
22991 ac_res=`eval 'as_val=${'$as_ac_Header'}
22992 $as_echo "$as_val"'`
22993 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
22994 $as_echo "$ac_res" >&6; }
22997 if test `eval 'as_val=${'$as_ac_Header'}
22998 $as_echo "$as_val"'` = yes; then
22999 cat >>confdefs.h <<_ACEOF
23000 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
23005 for ac_header in kerberosIV/des.h
23007 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
23008 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23009 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
23010 $as_echo_n "checking
for $ac_header...
" >&6; }
23011 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23012 $as_echo_n "(cached
) " >&6
23014 ac_res=`eval 'as_val=${'$as_ac_Header'}
23015 $as_echo "$as_val"'`
23016 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
23017 $as_echo "$ac_res" >&6; }
23019 # Is the header compilable?
23020 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
23021 $as_echo_n "checking
$ac_header usability...
" >&6; }
23022 cat >conftest.$ac_ext <<_ACEOF
23025 cat confdefs.h >>conftest.$ac_ext
23026 cat >>conftest.$ac_ext <<_ACEOF
23027 /* end confdefs.h. */
23028 $ac_includes_default
23029 #include <$ac_header>
23031 rm -f conftest.$ac_objext
23032 if { (ac_try="$ac_compile"
23033 case "(($ac_try" in
23034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23035 *) ac_try_echo=$ac_try;;
23037 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23038 $as_echo "$ac_try_echo") >&5
23039 (eval "$ac_compile") 2>conftest.er1
23041 grep -v '^ *+' conftest.er1 >conftest.err
23043 cat conftest.err >&5
23044 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23045 (exit $ac_status); } && {
23046 test -z "$ac_c_werror_flag" ||
23047 test ! -s conftest.err
23048 } && test -s conftest.$ac_objext; then
23049 ac_header_compiler=yes
23051 $as_echo "$as_me: failed program was
:" >&5
23052 sed 's/^/| /' conftest.$ac_ext >&5
23054 ac_header_compiler=no
23057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23058 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
23059 $as_echo "$ac_header_compiler" >&6; }
23061 # Is the header present?
23062 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
23063 $as_echo_n "checking
$ac_header presence...
" >&6; }
23064 cat >conftest.$ac_ext <<_ACEOF
23067 cat confdefs.h >>conftest.$ac_ext
23068 cat >>conftest.$ac_ext <<_ACEOF
23069 /* end confdefs.h. */
23070 #include <$ac_header>
23072 if { (ac_try="$ac_cpp conftest.
$ac_ext"
23073 case "(($ac_try" in
23074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23075 *) ac_try_echo=$ac_try;;
23077 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23078 $as_echo "$ac_try_echo") >&5
23079 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
23081 grep -v '^ *+' conftest.er1 >conftest.err
23083 cat conftest.err >&5
23084 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23085 (exit $ac_status); } >/dev/null && {
23086 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23087 test ! -s conftest.err
23089 ac_header_preproc=yes
23091 $as_echo "$as_me: failed program was
:" >&5
23092 sed 's/^/| /' conftest.$ac_ext >&5
23094 ac_header_preproc=no
23097 rm -f conftest.err conftest.$ac_ext
23098 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
23099 $as_echo "$ac_header_preproc" >&6; }
23101 # So? What about this header?
23102 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23104 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
23105 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
23106 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
23107 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
23108 ac_header_preproc=yes
23111 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
23112 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
23113 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
23114 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
23115 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
23116 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
23117 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
23118 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
23119 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
23120 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
23121 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
23122 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
23126 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
23127 $as_echo_n "checking
for $ac_header...
" >&6; }
23128 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23129 $as_echo_n "(cached
) " >&6
23131 eval "$as_ac_Header=\
$ac_header_preproc"
23133 ac_res=`eval 'as_val=${'$as_ac_Header'}
23134 $as_echo "$as_val"'`
23135 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
23136 $as_echo "$ac_res" >&6; }
23139 if test `eval 'as_val=${'$as_ac_Header'}
23140 $as_echo "$as_val"'` = yes; then
23141 cat >>confdefs.h <<_ACEOF
23142 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
23147 for ac_header in kerberos/des.h
23149 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
23150 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23151 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
23152 $as_echo_n "checking
for $ac_header...
" >&6; }
23153 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23154 $as_echo_n "(cached
) " >&6
23156 ac_res=`eval 'as_val=${'$as_ac_Header'}
23157 $as_echo "$as_val"'`
23158 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
23159 $as_echo "$ac_res" >&6; }
23161 # Is the header compilable?
23162 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
23163 $as_echo_n "checking
$ac_header usability...
" >&6; }
23164 cat >conftest.$ac_ext <<_ACEOF
23167 cat confdefs.h >>conftest.$ac_ext
23168 cat >>conftest.$ac_ext <<_ACEOF
23169 /* end confdefs.h. */
23170 $ac_includes_default
23171 #include <$ac_header>
23173 rm -f conftest.$ac_objext
23174 if { (ac_try="$ac_compile"
23175 case "(($ac_try" in
23176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23177 *) ac_try_echo=$ac_try;;
23179 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23180 $as_echo "$ac_try_echo") >&5
23181 (eval "$ac_compile") 2>conftest.er1
23183 grep -v '^ *+' conftest.er1 >conftest.err
23185 cat conftest.err >&5
23186 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23187 (exit $ac_status); } && {
23188 test -z "$ac_c_werror_flag" ||
23189 test ! -s conftest.err
23190 } && test -s conftest.$ac_objext; then
23191 ac_header_compiler=yes
23193 $as_echo "$as_me: failed program was
:" >&5
23194 sed 's/^/| /' conftest.$ac_ext >&5
23196 ac_header_compiler=no
23199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23200 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
23201 $as_echo "$ac_header_compiler" >&6; }
23203 # Is the header present?
23204 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
23205 $as_echo_n "checking
$ac_header presence...
" >&6; }
23206 cat >conftest.$ac_ext <<_ACEOF
23209 cat confdefs.h >>conftest.$ac_ext
23210 cat >>conftest.$ac_ext <<_ACEOF
23211 /* end confdefs.h. */
23212 #include <$ac_header>
23214 if { (ac_try="$ac_cpp conftest.
$ac_ext"
23215 case "(($ac_try" in
23216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23217 *) ac_try_echo=$ac_try;;
23219 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23220 $as_echo "$ac_try_echo") >&5
23221 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
23223 grep -v '^ *+' conftest.er1 >conftest.err
23225 cat conftest.err >&5
23226 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23227 (exit $ac_status); } >/dev/null && {
23228 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23229 test ! -s conftest.err
23231 ac_header_preproc=yes
23233 $as_echo "$as_me: failed program was
:" >&5
23234 sed 's/^/| /' conftest.$ac_ext >&5
23236 ac_header_preproc=no
23239 rm -f conftest.err conftest.$ac_ext
23240 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
23241 $as_echo "$ac_header_preproc" >&6; }
23243 # So? What about this header?
23244 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23246 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
23247 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
23248 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
23249 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
23250 ac_header_preproc=yes
23253 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
23254 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
23255 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
23256 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
23257 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
23258 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
23259 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
23260 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
23261 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
23262 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
23263 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
23264 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
23268 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
23269 $as_echo_n "checking
for $ac_header...
" >&6; }
23270 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23271 $as_echo_n "(cached
) " >&6
23273 eval "$as_ac_Header=\
$ac_header_preproc"
23275 ac_res=`eval 'as_val=${'$as_ac_Header'}
23276 $as_echo "$as_val"'`
23277 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
23278 $as_echo "$ac_res" >&6; }
23281 if test `eval 'as_val=${'$as_ac_Header'}
23282 $as_echo "$as_val"'` = yes; then
23283 cat >>confdefs.h <<_ACEOF
23284 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
23300 for ac_header in krb.h
23302 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
23303 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23304 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
23305 $as_echo_n "checking
for $ac_header...
" >&6; }
23306 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23307 $as_echo_n "(cached
) " >&6
23309 ac_res=`eval 'as_val=${'$as_ac_Header'}
23310 $as_echo "$as_val"'`
23311 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
23312 $as_echo "$ac_res" >&6; }
23314 # Is the header compilable?
23315 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
23316 $as_echo_n "checking
$ac_header usability...
" >&6; }
23317 cat >conftest.$ac_ext <<_ACEOF
23320 cat confdefs.h >>conftest.$ac_ext
23321 cat >>conftest.$ac_ext <<_ACEOF
23322 /* end confdefs.h. */
23323 $ac_includes_default
23324 #include <$ac_header>
23326 rm -f conftest.$ac_objext
23327 if { (ac_try="$ac_compile"
23328 case "(($ac_try" in
23329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23330 *) ac_try_echo=$ac_try;;
23332 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23333 $as_echo "$ac_try_echo") >&5
23334 (eval "$ac_compile") 2>conftest.er1
23336 grep -v '^ *+' conftest.er1 >conftest.err
23338 cat conftest.err >&5
23339 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23340 (exit $ac_status); } && {
23341 test -z "$ac_c_werror_flag" ||
23342 test ! -s conftest.err
23343 } && test -s conftest.$ac_objext; then
23344 ac_header_compiler=yes
23346 $as_echo "$as_me: failed program was
:" >&5
23347 sed 's/^/| /' conftest.$ac_ext >&5
23349 ac_header_compiler=no
23352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23353 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
23354 $as_echo "$ac_header_compiler" >&6; }
23356 # Is the header present?
23357 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
23358 $as_echo_n "checking
$ac_header presence...
" >&6; }
23359 cat >conftest.$ac_ext <<_ACEOF
23362 cat confdefs.h >>conftest.$ac_ext
23363 cat >>conftest.$ac_ext <<_ACEOF
23364 /* end confdefs.h. */
23365 #include <$ac_header>
23367 if { (ac_try="$ac_cpp conftest.
$ac_ext"
23368 case "(($ac_try" in
23369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23370 *) ac_try_echo=$ac_try;;
23372 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23373 $as_echo "$ac_try_echo") >&5
23374 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
23376 grep -v '^ *+' conftest.er1 >conftest.err
23378 cat conftest.err >&5
23379 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23380 (exit $ac_status); } >/dev/null && {
23381 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23382 test ! -s conftest.err
23384 ac_header_preproc=yes
23386 $as_echo "$as_me: failed program was
:" >&5
23387 sed 's/^/| /' conftest.$ac_ext >&5
23389 ac_header_preproc=no
23392 rm -f conftest.err conftest.$ac_ext
23393 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
23394 $as_echo "$ac_header_preproc" >&6; }
23396 # So? What about this header?
23397 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23399 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
23400 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
23401 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
23402 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
23403 ac_header_preproc=yes
23406 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
23407 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
23408 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
23409 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
23410 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
23411 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
23412 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
23413 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
23414 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
23415 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
23416 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
23417 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
23421 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
23422 $as_echo_n "checking
for $ac_header...
" >&6; }
23423 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23424 $as_echo_n "(cached
) " >&6
23426 eval "$as_ac_Header=\
$ac_header_preproc"
23428 ac_res=`eval 'as_val=${'$as_ac_Header'}
23429 $as_echo "$as_val"'`
23430 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
23431 $as_echo "$ac_res" >&6; }
23434 if test `eval 'as_val=${'$as_ac_Header'}
23435 $as_echo "$as_val"'` = yes; then
23436 cat >>confdefs.h <<_ACEOF
23437 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
23442 for ac_header in kerberosIV/krb.h
23444 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
23445 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23446 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
23447 $as_echo_n "checking
for $ac_header...
" >&6; }
23448 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23449 $as_echo_n "(cached
) " >&6
23451 ac_res=`eval 'as_val=${'$as_ac_Header'}
23452 $as_echo "$as_val"'`
23453 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
23454 $as_echo "$ac_res" >&6; }
23456 # Is the header compilable?
23457 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
23458 $as_echo_n "checking
$ac_header usability...
" >&6; }
23459 cat >conftest.$ac_ext <<_ACEOF
23462 cat confdefs.h >>conftest.$ac_ext
23463 cat >>conftest.$ac_ext <<_ACEOF
23464 /* end confdefs.h. */
23465 $ac_includes_default
23466 #include <$ac_header>
23468 rm -f conftest.$ac_objext
23469 if { (ac_try="$ac_compile"
23470 case "(($ac_try" in
23471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23472 *) ac_try_echo=$ac_try;;
23474 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23475 $as_echo "$ac_try_echo") >&5
23476 (eval "$ac_compile") 2>conftest.er1
23478 grep -v '^ *+' conftest.er1 >conftest.err
23480 cat conftest.err >&5
23481 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23482 (exit $ac_status); } && {
23483 test -z "$ac_c_werror_flag" ||
23484 test ! -s conftest.err
23485 } && test -s conftest.$ac_objext; then
23486 ac_header_compiler=yes
23488 $as_echo "$as_me: failed program was
:" >&5
23489 sed 's/^/| /' conftest.$ac_ext >&5
23491 ac_header_compiler=no
23494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23495 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
23496 $as_echo "$ac_header_compiler" >&6; }
23498 # Is the header present?
23499 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
23500 $as_echo_n "checking
$ac_header presence...
" >&6; }
23501 cat >conftest.$ac_ext <<_ACEOF
23504 cat confdefs.h >>conftest.$ac_ext
23505 cat >>conftest.$ac_ext <<_ACEOF
23506 /* end confdefs.h. */
23507 #include <$ac_header>
23509 if { (ac_try="$ac_cpp conftest.
$ac_ext"
23510 case "(($ac_try" in
23511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23512 *) ac_try_echo=$ac_try;;
23514 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23515 $as_echo "$ac_try_echo") >&5
23516 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
23518 grep -v '^ *+' conftest.er1 >conftest.err
23520 cat conftest.err >&5
23521 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23522 (exit $ac_status); } >/dev/null && {
23523 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23524 test ! -s conftest.err
23526 ac_header_preproc=yes
23528 $as_echo "$as_me: failed program was
:" >&5
23529 sed 's/^/| /' conftest.$ac_ext >&5
23531 ac_header_preproc=no
23534 rm -f conftest.err conftest.$ac_ext
23535 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
23536 $as_echo "$ac_header_preproc" >&6; }
23538 # So? What about this header?
23539 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23541 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
23542 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
23543 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
23544 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
23545 ac_header_preproc=yes
23548 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
23549 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
23550 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
23551 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
23552 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
23553 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
23554 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
23555 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
23556 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
23557 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
23558 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
23559 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
23563 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
23564 $as_echo_n "checking
for $ac_header...
" >&6; }
23565 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23566 $as_echo_n "(cached
) " >&6
23568 eval "$as_ac_Header=\
$ac_header_preproc"
23570 ac_res=`eval 'as_val=${'$as_ac_Header'}
23571 $as_echo "$as_val"'`
23572 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
23573 $as_echo "$ac_res" >&6; }
23576 if test `eval 'as_val=${'$as_ac_Header'}
23577 $as_echo "$as_val"'` = yes; then
23578 cat >>confdefs.h <<_ACEOF
23579 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
23584 for ac_header in kerberos/krb.h
23586 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
23587 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23588 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
23589 $as_echo_n "checking
for $ac_header...
" >&6; }
23590 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23591 $as_echo_n "(cached
) " >&6
23593 ac_res=`eval 'as_val=${'$as_ac_Header'}
23594 $as_echo "$as_val"'`
23595 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
23596 $as_echo "$ac_res" >&6; }
23598 # Is the header compilable?
23599 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
23600 $as_echo_n "checking
$ac_header usability...
" >&6; }
23601 cat >conftest.$ac_ext <<_ACEOF
23604 cat confdefs.h >>conftest.$ac_ext
23605 cat >>conftest.$ac_ext <<_ACEOF
23606 /* end confdefs.h. */
23607 $ac_includes_default
23608 #include <$ac_header>
23610 rm -f conftest.$ac_objext
23611 if { (ac_try="$ac_compile"
23612 case "(($ac_try" in
23613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23614 *) ac_try_echo=$ac_try;;
23616 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23617 $as_echo "$ac_try_echo") >&5
23618 (eval "$ac_compile") 2>conftest.er1
23620 grep -v '^ *+' conftest.er1 >conftest.err
23622 cat conftest.err >&5
23623 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23624 (exit $ac_status); } && {
23625 test -z "$ac_c_werror_flag" ||
23626 test ! -s conftest.err
23627 } && test -s conftest.$ac_objext; then
23628 ac_header_compiler=yes
23630 $as_echo "$as_me: failed program was
:" >&5
23631 sed 's/^/| /' conftest.$ac_ext >&5
23633 ac_header_compiler=no
23636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23637 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
23638 $as_echo "$ac_header_compiler" >&6; }
23640 # Is the header present?
23641 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
23642 $as_echo_n "checking
$ac_header presence...
" >&6; }
23643 cat >conftest.$ac_ext <<_ACEOF
23646 cat confdefs.h >>conftest.$ac_ext
23647 cat >>conftest.$ac_ext <<_ACEOF
23648 /* end confdefs.h. */
23649 #include <$ac_header>
23651 if { (ac_try="$ac_cpp conftest.
$ac_ext"
23652 case "(($ac_try" in
23653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23654 *) ac_try_echo=$ac_try;;
23656 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23657 $as_echo "$ac_try_echo") >&5
23658 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
23660 grep -v '^ *+' conftest.er1 >conftest.err
23662 cat conftest.err >&5
23663 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23664 (exit $ac_status); } >/dev/null && {
23665 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23666 test ! -s conftest.err
23668 ac_header_preproc=yes
23670 $as_echo "$as_me: failed program was
:" >&5
23671 sed 's/^/| /' conftest.$ac_ext >&5
23673 ac_header_preproc=no
23676 rm -f conftest.err conftest.$ac_ext
23677 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
23678 $as_echo "$ac_header_preproc" >&6; }
23680 # So? What about this header?
23681 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23683 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
23684 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
23685 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
23686 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
23687 ac_header_preproc=yes
23690 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
23691 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
23692 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
23693 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
23694 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
23695 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
23696 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
23697 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
23698 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
23699 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
23700 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
23701 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
23705 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
23706 $as_echo_n "checking
for $ac_header...
" >&6; }
23707 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23708 $as_echo_n "(cached
) " >&6
23710 eval "$as_ac_Header=\
$ac_header_preproc"
23712 ac_res=`eval 'as_val=${'$as_ac_Header'}
23713 $as_echo "$as_val"'`
23714 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
23715 $as_echo "$ac_res" >&6; }
23718 if test `eval 'as_val=${'$as_ac_Header'}
23719 $as_echo "$as_val"'` = yes; then
23720 cat >>confdefs.h <<_ACEOF
23721 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
23738 for ac_header in com_err.h
23740 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
23741 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23742 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
23743 $as_echo_n "checking
for $ac_header...
" >&6; }
23744 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23745 $as_echo_n "(cached
) " >&6
23747 ac_res=`eval 'as_val=${'$as_ac_Header'}
23748 $as_echo "$as_val"'`
23749 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
23750 $as_echo "$ac_res" >&6; }
23752 # Is the header compilable?
23753 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
23754 $as_echo_n "checking
$ac_header usability...
" >&6; }
23755 cat >conftest.$ac_ext <<_ACEOF
23758 cat confdefs.h >>conftest.$ac_ext
23759 cat >>conftest.$ac_ext <<_ACEOF
23760 /* end confdefs.h. */
23761 $ac_includes_default
23762 #include <$ac_header>
23764 rm -f conftest.$ac_objext
23765 if { (ac_try="$ac_compile"
23766 case "(($ac_try" in
23767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23768 *) ac_try_echo=$ac_try;;
23770 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23771 $as_echo "$ac_try_echo") >&5
23772 (eval "$ac_compile") 2>conftest.er1
23774 grep -v '^ *+' conftest.er1 >conftest.err
23776 cat conftest.err >&5
23777 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23778 (exit $ac_status); } && {
23779 test -z "$ac_c_werror_flag" ||
23780 test ! -s conftest.err
23781 } && test -s conftest.$ac_objext; then
23782 ac_header_compiler=yes
23784 $as_echo "$as_me: failed program was
:" >&5
23785 sed 's/^/| /' conftest.$ac_ext >&5
23787 ac_header_compiler=no
23790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23791 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
23792 $as_echo "$ac_header_compiler" >&6; }
23794 # Is the header present?
23795 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
23796 $as_echo_n "checking
$ac_header presence...
" >&6; }
23797 cat >conftest.$ac_ext <<_ACEOF
23800 cat confdefs.h >>conftest.$ac_ext
23801 cat >>conftest.$ac_ext <<_ACEOF
23802 /* end confdefs.h. */
23803 #include <$ac_header>
23805 if { (ac_try="$ac_cpp conftest.
$ac_ext"
23806 case "(($ac_try" in
23807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23808 *) ac_try_echo=$ac_try;;
23810 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23811 $as_echo "$ac_try_echo") >&5
23812 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
23814 grep -v '^ *+' conftest.er1 >conftest.err
23816 cat conftest.err >&5
23817 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23818 (exit $ac_status); } >/dev/null && {
23819 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23820 test ! -s conftest.err
23822 ac_header_preproc=yes
23824 $as_echo "$as_me: failed program was
:" >&5
23825 sed 's/^/| /' conftest.$ac_ext >&5
23827 ac_header_preproc=no
23830 rm -f conftest.err conftest.$ac_ext
23831 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
23832 $as_echo "$ac_header_preproc" >&6; }
23834 # So? What about this header?
23835 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23837 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
23838 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
23839 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
23840 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
23841 ac_header_preproc=yes
23844 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
23845 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
23846 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
23847 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
23848 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
23849 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
23850 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
23851 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
23852 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
23853 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
23854 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
23855 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
23859 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
23860 $as_echo_n "checking
for $ac_header...
" >&6; }
23861 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23862 $as_echo_n "(cached
) " >&6
23864 eval "$as_ac_Header=\
$ac_header_preproc"
23866 ac_res=`eval 'as_val=${'$as_ac_Header'}
23867 $as_echo "$as_val"'`
23868 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
23869 $as_echo "$ac_res" >&6; }
23872 if test `eval 'as_val=${'$as_ac_Header'}
23873 $as_echo "$as_val"'` = yes; then
23874 cat >>confdefs.h <<_ACEOF
23875 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
23890 # Solaris requires -lintl if you want strerror (which calls dgettext)
23891 # to return localized messages.
23893 { $as_echo "$as_me:$LINENO: checking
for dgettext
in -lintl" >&5
23894 $as_echo_n "checking
for dgettext
in -lintl...
" >&6; }
23895 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
23896 $as_echo_n "(cached
) " >&6
23898 ac_check_lib_save_LIBS=$LIBS
23899 LIBS="-lintl $LIBS"
23900 cat >conftest.$ac_ext <<_ACEOF
23903 cat confdefs.h >>conftest.$ac_ext
23904 cat >>conftest.$ac_ext <<_ACEOF
23905 /* end confdefs.h. */
23907 /* Override any GCC internal prototype to avoid an error.
23908 Use char because int might match the return type of a GCC
23909 builtin and then its argument prototype would still apply. */
23917 return dgettext ();
23922 rm -f conftest.$ac_objext conftest$ac_exeext
23923 if { (ac_try="$ac_link"
23924 case "(($ac_try" in
23925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23926 *) ac_try_echo=$ac_try;;
23928 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23929 $as_echo "$ac_try_echo") >&5
23930 (eval "$ac_link") 2>conftest.er1
23932 grep -v '^ *+' conftest.er1 >conftest.err
23934 cat conftest.err >&5
23935 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23936 (exit $ac_status); } && {
23937 test -z "$ac_c_werror_flag" ||
23938 test ! -s conftest.err
23939 } && test -s conftest$ac_exeext && {
23940 test "$cross_compiling" = yes ||
23941 $as_test_x conftest$ac_exeext
23943 ac_cv_lib_intl_dgettext=yes
23945 $as_echo "$as_me: failed program was
:" >&5
23946 sed 's/^/| /' conftest.$ac_ext >&5
23948 ac_cv_lib_intl_dgettext=no
23951 rm -rf conftest.dSYM
23952 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23953 conftest$ac_exeext conftest.$ac_ext
23954 LIBS=$ac_check_lib_save_LIBS
23956 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_intl_dgettext" >&5
23957 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
23958 if test $ac_cv_lib_intl_dgettext = yes; then
23959 cat >>confdefs.h <<_ACEOF
23960 #define HAVE_LIBINTL 1
23963 LIBS="-lintl $LIBS"
23968 { $as_echo "$as_me:$LINENO: checking whether localtime caches TZ
" >&5
23969 $as_echo_n "checking whether localtime caches TZ...
" >&6; }
23970 if test "${emacs_cv_localtime_cache+set}" = set; then
23971 $as_echo_n "(cached
) " >&6
23973 if test x$ac_cv_func_tzset = xyes; then
23974 if test "$cross_compiling" = yes; then
23975 # If we have tzset, assume the worst when cross-compiling.
23976 emacs_cv_localtime_cache=yes
23978 cat >conftest.$ac_ext <<_ACEOF
23981 cat confdefs.h >>conftest.$ac_ext
23982 cat >>conftest.$ac_ext <<_ACEOF
23983 /* end confdefs.h. */
23985 extern char **environ;
23989 for (to = from = environ; (*to = *from); from++)
23990 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
23993 char TZ_GMT0[] = "TZ
=GMT0
";
23994 char TZ_PST8[] = "TZ
=PST8
";
23997 time_t now = time ((time_t *) 0);
23998 int hour_GMT0, hour_unset;
23999 if (putenv (TZ_GMT0) != 0)
24001 hour_GMT0 = localtime (&now)->tm_hour;
24003 hour_unset = localtime (&now)->tm_hour;
24004 if (putenv (TZ_PST8) != 0)
24006 if (localtime (&now)->tm_hour == hour_GMT0)
24009 if (localtime (&now)->tm_hour != hour_unset)
24014 rm -f conftest$ac_exeext
24015 if { (ac_try="$ac_link"
24016 case "(($ac_try" in
24017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24018 *) ac_try_echo=$ac_try;;
24020 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24021 $as_echo "$ac_try_echo") >&5
24022 (eval "$ac_link") 2>&5
24024 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24025 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24026 { (case "(($ac_try" in
24027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24028 *) ac_try_echo=$ac_try;;
24030 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24031 $as_echo "$ac_try_echo") >&5
24032 (eval "$ac_try") 2>&5
24034 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24035 (exit $ac_status); }; }; then
24036 emacs_cv_localtime_cache=no
24038 $as_echo "$as_me: program exited with status
$ac_status" >&5
24039 $as_echo "$as_me: failed program was
:" >&5
24040 sed 's/^/| /' conftest.$ac_ext >&5
24042 ( exit $ac_status )
24043 emacs_cv_localtime_cache=yes
24045 rm -rf conftest.dSYM
24046 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24051 # If we lack tzset, report that localtime does not cache TZ,
24052 # since we can't invalidate the cache if we don't have tzset.
24053 emacs_cv_localtime_cache=no
24056 { $as_echo "$as_me:$LINENO: result
: $emacs_cv_localtime_cache" >&5
24057 $as_echo "$emacs_cv_localtime_cache" >&6; }
24058 if test $emacs_cv_localtime_cache = yes; then
24060 cat >>confdefs.h <<\_ACEOF
24061 #define LOCALTIME_CACHE 1
24066 if test "x
$HAVE_TIMEVAL" = xyes; then
24068 for ac_func in gettimeofday
24070 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
24071 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
24072 $as_echo_n "checking
for $ac_func...
" >&6; }
24073 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
24074 $as_echo_n "(cached
) " >&6
24076 cat >conftest.$ac_ext <<_ACEOF
24079 cat confdefs.h >>conftest.$ac_ext
24080 cat >>conftest.$ac_ext <<_ACEOF
24081 /* end confdefs.h. */
24082 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24083 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24084 #define $ac_func innocuous_$ac_func
24086 /* System header to define __stub macros and hopefully few prototypes,
24087 which can conflict with char $ac_func (); below.
24088 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24089 <limits.h> exists even on freestanding compilers. */
24092 # include <limits.h>
24094 # include <assert.h>
24099 /* Override any GCC internal prototype to avoid an error.
24100 Use char because int might match the return type of a GCC
24101 builtin and then its argument prototype would still apply. */
24106 /* The GNU C library defines this for functions which it implements
24107 to always fail with ENOSYS. Some functions are actually named
24108 something starting with __ and the normal name is an alias. */
24109 #if defined __stub_$ac_func || defined __stub___$ac_func
24116 return $ac_func ();
24121 rm -f conftest.$ac_objext conftest$ac_exeext
24122 if { (ac_try="$ac_link"
24123 case "(($ac_try" in
24124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24125 *) ac_try_echo=$ac_try;;
24127 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24128 $as_echo "$ac_try_echo") >&5
24129 (eval "$ac_link") 2>conftest.er1
24131 grep -v '^ *+' conftest.er1 >conftest.err
24133 cat conftest.err >&5
24134 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24135 (exit $ac_status); } && {
24136 test -z "$ac_c_werror_flag" ||
24137 test ! -s conftest.err
24138 } && test -s conftest$ac_exeext && {
24139 test "$cross_compiling" = yes ||
24140 $as_test_x conftest$ac_exeext
24142 eval "$as_ac_var=yes"
24144 $as_echo "$as_me: failed program was
:" >&5
24145 sed 's/^/| /' conftest.$ac_ext >&5
24147 eval "$as_ac_var=no
"
24150 rm -rf conftest.dSYM
24151 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24152 conftest$ac_exeext conftest.$ac_ext
24154 ac_res=`eval 'as_val=${'$as_ac_var'}
24155 $as_echo "$as_val"'`
24156 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
24157 $as_echo "$ac_res" >&6; }
24158 if test `eval 'as_val=${'$as_ac_var'}
24159 $as_echo "$as_val"'` = yes; then
24160 cat >>confdefs.h <<_ACEOF
24161 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
24167 if test $ac_cv_func_gettimeofday = yes; then
24168 { $as_echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments
" >&5
24169 $as_echo_n "checking whether gettimeofday can accept two arguments...
" >&6; }
24170 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
24171 $as_echo_n "(cached
) " >&6
24173 cat >conftest.$ac_ext <<_ACEOF
24176 cat confdefs.h >>conftest.$ac_ext
24177 cat >>conftest.$ac_ext <<_ACEOF
24178 /* end confdefs.h. */
24180 #ifdef TIME_WITH_SYS_TIME
24181 #include <sys/time.h>
24184 #ifdef HAVE_SYS_TIME_H
24185 #include <sys/time.h>
24193 struct timeval time;
24194 gettimeofday (&time, 0);
24199 rm -f conftest.$ac_objext
24200 if { (ac_try="$ac_compile"
24201 case "(($ac_try" in
24202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24203 *) ac_try_echo=$ac_try;;
24205 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24206 $as_echo "$ac_try_echo") >&5
24207 (eval "$ac_compile") 2>conftest.er1
24209 grep -v '^ *+' conftest.er1 >conftest.err
24211 cat conftest.err >&5
24212 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24213 (exit $ac_status); } && {
24214 test -z "$ac_c_werror_flag" ||
24215 test ! -s conftest.err
24216 } && test -s conftest.$ac_objext; then
24217 emacs_cv_gettimeofday_two_arguments=yes
24219 $as_echo "$as_me: failed program was
:" >&5
24220 sed 's/^/| /' conftest.$ac_ext >&5
24222 emacs_cv_gettimeofday_two_arguments=no
24225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24227 { $as_echo "$as_me:$LINENO: result
: $emacs_cv_gettimeofday_two_arguments" >&5
24228 $as_echo "$emacs_cv_gettimeofday_two_arguments" >&6; }
24229 if test $emacs_cv_gettimeofday_two_arguments = no; then
24231 cat >>confdefs.h <<\_ACEOF
24232 #define GETTIMEOFDAY_ONE_ARGUMENT 1
24240 { $as_echo "$as_me:$LINENO: checking
for socket
" >&5
24241 $as_echo_n "checking
for socket...
" >&6; }
24242 if test "${ac_cv_func_socket+set}" = set; then
24243 $as_echo_n "(cached
) " >&6
24245 cat >conftest.$ac_ext <<_ACEOF
24248 cat confdefs.h >>conftest.$ac_ext
24249 cat >>conftest.$ac_ext <<_ACEOF
24250 /* end confdefs.h. */
24251 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
24252 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24253 #define socket innocuous_socket
24255 /* System header to define __stub macros and hopefully few prototypes,
24256 which can conflict with char socket (); below.
24257 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24258 <limits.h> exists even on freestanding compilers. */
24261 # include <limits.h>
24263 # include <assert.h>
24268 /* Override any GCC internal prototype to avoid an error.
24269 Use char because int might match the return type of a GCC
24270 builtin and then its argument prototype would still apply. */
24275 /* The GNU C library defines this for functions which it implements
24276 to always fail with ENOSYS. Some functions are actually named
24277 something starting with __ and the normal name is an alias. */
24278 #if defined __stub_socket || defined __stub___socket
24290 rm -f conftest.$ac_objext conftest$ac_exeext
24291 if { (ac_try="$ac_link"
24292 case "(($ac_try" in
24293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24294 *) ac_try_echo=$ac_try;;
24296 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24297 $as_echo "$ac_try_echo") >&5
24298 (eval "$ac_link") 2>conftest.er1
24300 grep -v '^ *+' conftest.er1 >conftest.err
24302 cat conftest.err >&5
24303 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24304 (exit $ac_status); } && {
24305 test -z "$ac_c_werror_flag" ||
24306 test ! -s conftest.err
24307 } && test -s conftest$ac_exeext && {
24308 test "$cross_compiling" = yes ||
24309 $as_test_x conftest$ac_exeext
24311 ac_cv_func_socket=yes
24313 $as_echo "$as_me: failed program was
:" >&5
24314 sed 's/^/| /' conftest.$ac_ext >&5
24316 ac_cv_func_socket=no
24319 rm -rf conftest.dSYM
24320 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24321 conftest$ac_exeext conftest.$ac_ext
24323 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func_socket" >&5
24324 $as_echo "$ac_cv_func_socket" >&6; }
24325 if test $ac_cv_func_socket = yes; then
24331 if test $ok_so_far = yes; then
24332 if test "${ac_cv_header_netinet_in_h+set}" = set; then
24333 { $as_echo "$as_me:$LINENO: checking
for netinet
/in.h
" >&5
24334 $as_echo_n "checking
for netinet
/in.h...
" >&6; }
24335 if test "${ac_cv_header_netinet_in_h+set}" = set; then
24336 $as_echo_n "(cached
) " >&6
24338 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_netinet_in_h" >&5
24339 $as_echo "$ac_cv_header_netinet_in_h" >&6; }
24341 # Is the header compilable?
24342 { $as_echo "$as_me:$LINENO: checking netinet
/in.h usability
" >&5
24343 $as_echo_n "checking netinet
/in.h usability...
" >&6; }
24344 cat >conftest.$ac_ext <<_ACEOF
24347 cat confdefs.h >>conftest.$ac_ext
24348 cat >>conftest.$ac_ext <<_ACEOF
24349 /* end confdefs.h. */
24350 $ac_includes_default
24351 #include <netinet/in.h>
24353 rm -f conftest.$ac_objext
24354 if { (ac_try="$ac_compile"
24355 case "(($ac_try" in
24356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24357 *) ac_try_echo=$ac_try;;
24359 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24360 $as_echo "$ac_try_echo") >&5
24361 (eval "$ac_compile") 2>conftest.er1
24363 grep -v '^ *+' conftest.er1 >conftest.err
24365 cat conftest.err >&5
24366 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24367 (exit $ac_status); } && {
24368 test -z "$ac_c_werror_flag" ||
24369 test ! -s conftest.err
24370 } && test -s conftest.$ac_objext; then
24371 ac_header_compiler=yes
24373 $as_echo "$as_me: failed program was
:" >&5
24374 sed 's/^/| /' conftest.$ac_ext >&5
24376 ac_header_compiler=no
24379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24380 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
24381 $as_echo "$ac_header_compiler" >&6; }
24383 # Is the header present?
24384 { $as_echo "$as_me:$LINENO: checking netinet
/in.h presence
" >&5
24385 $as_echo_n "checking netinet
/in.h presence...
" >&6; }
24386 cat >conftest.$ac_ext <<_ACEOF
24389 cat confdefs.h >>conftest.$ac_ext
24390 cat >>conftest.$ac_ext <<_ACEOF
24391 /* end confdefs.h. */
24392 #include <netinet/in.h>
24394 if { (ac_try="$ac_cpp conftest.
$ac_ext"
24395 case "(($ac_try" in
24396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24397 *) ac_try_echo=$ac_try;;
24399 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24400 $as_echo "$ac_try_echo") >&5
24401 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
24403 grep -v '^ *+' conftest.er1 >conftest.err
24405 cat conftest.err >&5
24406 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24407 (exit $ac_status); } >/dev/null && {
24408 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24409 test ! -s conftest.err
24411 ac_header_preproc=yes
24413 $as_echo "$as_me: failed program was
:" >&5
24414 sed 's/^/| /' conftest.$ac_ext >&5
24416 ac_header_preproc=no
24419 rm -f conftest.err conftest.$ac_ext
24420 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
24421 $as_echo "$ac_header_preproc" >&6; }
24423 # So? What about this header?
24424 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24426 { $as_echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
24427 $as_echo "$as_me: WARNING
: netinet
/in.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
24428 { $as_echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: proceeding with the compiler
's result" >&5
24429 $as_echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result
" >&2;}
24430 ac_header_preproc=yes
24433 { $as_echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: present but cannot be compiled
" >&5
24434 $as_echo "$as_me: WARNING
: netinet
/in.h
: present but cannot be compiled
" >&2;}
24435 { $as_echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: check
for missing prerequisite headers?
" >&5
24436 $as_echo "$as_me: WARNING
: netinet
/in.h
: check
for missing prerequisite headers?
" >&2;}
24437 { $as_echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: see the Autoconf documentation
" >&5
24438 $as_echo "$as_me: WARNING
: netinet
/in.h
: see the Autoconf documentation
" >&2;}
24439 { $as_echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: section
\"Present But Cannot Be Compiled
\"" >&5
24440 $as_echo "$as_me: WARNING
: netinet
/in.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
24441 { $as_echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: proceeding with the preprocessor
's result" >&5
24442 $as_echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result
" >&2;}
24443 { $as_echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: in the future
, the compiler will take precedence
" >&5
24444 $as_echo "$as_me: WARNING
: netinet
/in.h
: in the future
, the compiler will take precedence
" >&2;}
24448 { $as_echo "$as_me:$LINENO: checking
for netinet
/in.h
" >&5
24449 $as_echo_n "checking
for netinet
/in.h...
" >&6; }
24450 if test "${ac_cv_header_netinet_in_h+set}" = set; then
24451 $as_echo_n "(cached
) " >&6
24453 ac_cv_header_netinet_in_h=$ac_header_preproc
24455 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_netinet_in_h" >&5
24456 $as_echo "$ac_cv_header_netinet_in_h" >&6; }
24459 if test $ac_cv_header_netinet_in_h = yes; then
24467 if test $ok_so_far = yes; then
24468 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
24469 { $as_echo "$as_me:$LINENO: checking
for arpa
/inet.h
" >&5
24470 $as_echo_n "checking
for arpa
/inet.h...
" >&6; }
24471 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
24472 $as_echo_n "(cached
) " >&6
24474 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_arpa_inet_h" >&5
24475 $as_echo "$ac_cv_header_arpa_inet_h" >&6; }
24477 # Is the header compilable?
24478 { $as_echo "$as_me:$LINENO: checking arpa
/inet.h usability
" >&5
24479 $as_echo_n "checking arpa
/inet.h usability...
" >&6; }
24480 cat >conftest.$ac_ext <<_ACEOF
24483 cat confdefs.h >>conftest.$ac_ext
24484 cat >>conftest.$ac_ext <<_ACEOF
24485 /* end confdefs.h. */
24486 $ac_includes_default
24487 #include <arpa/inet.h>
24489 rm -f conftest.$ac_objext
24490 if { (ac_try="$ac_compile"
24491 case "(($ac_try" in
24492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24493 *) ac_try_echo=$ac_try;;
24495 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24496 $as_echo "$ac_try_echo") >&5
24497 (eval "$ac_compile") 2>conftest.er1
24499 grep -v '^ *+' conftest.er1 >conftest.err
24501 cat conftest.err >&5
24502 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24503 (exit $ac_status); } && {
24504 test -z "$ac_c_werror_flag" ||
24505 test ! -s conftest.err
24506 } && test -s conftest.$ac_objext; then
24507 ac_header_compiler=yes
24509 $as_echo "$as_me: failed program was
:" >&5
24510 sed 's/^/| /' conftest.$ac_ext >&5
24512 ac_header_compiler=no
24515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24516 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
24517 $as_echo "$ac_header_compiler" >&6; }
24519 # Is the header present?
24520 { $as_echo "$as_me:$LINENO: checking arpa
/inet.h presence
" >&5
24521 $as_echo_n "checking arpa
/inet.h presence...
" >&6; }
24522 cat >conftest.$ac_ext <<_ACEOF
24525 cat confdefs.h >>conftest.$ac_ext
24526 cat >>conftest.$ac_ext <<_ACEOF
24527 /* end confdefs.h. */
24528 #include <arpa/inet.h>
24530 if { (ac_try="$ac_cpp conftest.
$ac_ext"
24531 case "(($ac_try" in
24532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24533 *) ac_try_echo=$ac_try;;
24535 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24536 $as_echo "$ac_try_echo") >&5
24537 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
24539 grep -v '^ *+' conftest.er1 >conftest.err
24541 cat conftest.err >&5
24542 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24543 (exit $ac_status); } >/dev/null && {
24544 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24545 test ! -s conftest.err
24547 ac_header_preproc=yes
24549 $as_echo "$as_me: failed program was
:" >&5
24550 sed 's/^/| /' conftest.$ac_ext >&5
24552 ac_header_preproc=no
24555 rm -f conftest.err conftest.$ac_ext
24556 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
24557 $as_echo "$ac_header_preproc" >&6; }
24559 # So? What about this header?
24560 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24562 { $as_echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
24563 $as_echo "$as_me: WARNING
: arpa
/inet.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
24564 { $as_echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: proceeding with the compiler
's result" >&5
24565 $as_echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result
" >&2;}
24566 ac_header_preproc=yes
24569 { $as_echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: present but cannot be compiled
" >&5
24570 $as_echo "$as_me: WARNING
: arpa
/inet.h
: present but cannot be compiled
" >&2;}
24571 { $as_echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: check
for missing prerequisite headers?
" >&5
24572 $as_echo "$as_me: WARNING
: arpa
/inet.h
: check
for missing prerequisite headers?
" >&2;}
24573 { $as_echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: see the Autoconf documentation
" >&5
24574 $as_echo "$as_me: WARNING
: arpa
/inet.h
: see the Autoconf documentation
" >&2;}
24575 { $as_echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: section
\"Present But Cannot Be Compiled
\"" >&5
24576 $as_echo "$as_me: WARNING
: arpa
/inet.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
24577 { $as_echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: proceeding with the preprocessor
's result" >&5
24578 $as_echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result
" >&2;}
24579 { $as_echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: in the future
, the compiler will take precedence
" >&5
24580 $as_echo "$as_me: WARNING
: arpa
/inet.h
: in the future
, the compiler will take precedence
" >&2;}
24584 { $as_echo "$as_me:$LINENO: checking
for arpa
/inet.h
" >&5
24585 $as_echo_n "checking
for arpa
/inet.h...
" >&6; }
24586 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
24587 $as_echo_n "(cached
) " >&6
24589 ac_cv_header_arpa_inet_h=$ac_header_preproc
24591 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_arpa_inet_h" >&5
24592 $as_echo "$ac_cv_header_arpa_inet_h" >&6; }
24595 if test $ac_cv_header_arpa_inet_h = yes; then
24603 if test $ok_so_far = yes; then
24605 cat >>confdefs.h <<\_ACEOF
24606 #define HAVE_INET_SOCKETS 1
24612 for ac_header in sys/ioctl.h
24614 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
24615 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
24616 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
24617 $as_echo_n "checking
for $ac_header...
" >&6; }
24618 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
24619 $as_echo_n "(cached
) " >&6
24621 ac_res=`eval 'as_val=${'$as_ac_Header'}
24622 $as_echo "$as_val"'`
24623 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
24624 $as_echo "$ac_res" >&6; }
24626 # Is the header compilable?
24627 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
24628 $as_echo_n "checking
$ac_header usability...
" >&6; }
24629 cat >conftest.$ac_ext <<_ACEOF
24632 cat confdefs.h >>conftest.$ac_ext
24633 cat >>conftest.$ac_ext <<_ACEOF
24634 /* end confdefs.h. */
24635 $ac_includes_default
24636 #include <$ac_header>
24638 rm -f conftest.$ac_objext
24639 if { (ac_try="$ac_compile"
24640 case "(($ac_try" in
24641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24642 *) ac_try_echo=$ac_try;;
24644 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24645 $as_echo "$ac_try_echo") >&5
24646 (eval "$ac_compile") 2>conftest.er1
24648 grep -v '^ *+' conftest.er1 >conftest.err
24650 cat conftest.err >&5
24651 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24652 (exit $ac_status); } && {
24653 test -z "$ac_c_werror_flag" ||
24654 test ! -s conftest.err
24655 } && test -s conftest.$ac_objext; then
24656 ac_header_compiler=yes
24658 $as_echo "$as_me: failed program was
:" >&5
24659 sed 's/^/| /' conftest.$ac_ext >&5
24661 ac_header_compiler=no
24664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24665 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
24666 $as_echo "$ac_header_compiler" >&6; }
24668 # Is the header present?
24669 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
24670 $as_echo_n "checking
$ac_header presence...
" >&6; }
24671 cat >conftest.$ac_ext <<_ACEOF
24674 cat confdefs.h >>conftest.$ac_ext
24675 cat >>conftest.$ac_ext <<_ACEOF
24676 /* end confdefs.h. */
24677 #include <$ac_header>
24679 if { (ac_try="$ac_cpp conftest.
$ac_ext"
24680 case "(($ac_try" in
24681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24682 *) ac_try_echo=$ac_try;;
24684 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24685 $as_echo "$ac_try_echo") >&5
24686 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
24688 grep -v '^ *+' conftest.er1 >conftest.err
24690 cat conftest.err >&5
24691 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24692 (exit $ac_status); } >/dev/null && {
24693 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24694 test ! -s conftest.err
24696 ac_header_preproc=yes
24698 $as_echo "$as_me: failed program was
:" >&5
24699 sed 's/^/| /' conftest.$ac_ext >&5
24701 ac_header_preproc=no
24704 rm -f conftest.err conftest.$ac_ext
24705 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
24706 $as_echo "$ac_header_preproc" >&6; }
24708 # So? What about this header?
24709 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24711 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
24712 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
24713 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
24714 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
24715 ac_header_preproc=yes
24718 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
24719 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
24720 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
24721 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
24722 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
24723 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
24724 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
24725 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
24726 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
24727 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
24728 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
24729 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
24733 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
24734 $as_echo_n "checking
for $ac_header...
" >&6; }
24735 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
24736 $as_echo_n "(cached
) " >&6
24738 eval "$as_ac_Header=\
$ac_header_preproc"
24740 ac_res=`eval 'as_val=${'$as_ac_Header'}
24741 $as_echo "$as_val"'`
24742 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
24743 $as_echo "$ac_res" >&6; }
24746 if test `eval 'as_val=${'$as_ac_Header'}
24747 $as_echo "$as_val"'` = yes; then
24748 cat >>confdefs.h <<_ACEOF
24749 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
24757 if test -f /usr/lpp/X11/bin/smt.exp; then
24759 cat >>confdefs.h <<\_ACEOF
24760 #define HAVE_AIX_SMT_EXP 1
24765 { $as_echo "$as_me:$LINENO: checking whether system supports dynamic ptys
" >&5
24766 $as_echo_n "checking whether system supports dynamic ptys...
" >&6; }
24767 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
24768 { $as_echo "$as_me:$LINENO: result
: yes" >&5
24769 $as_echo "yes" >&6; }
24771 cat >>confdefs.h <<\_ACEOF
24772 #define HAVE_DEV_PTMX 1
24776 { $as_echo "$as_me:$LINENO: result
: no
" >&5
24777 $as_echo "no
" >&6; }
24780 { $as_echo "$as_me:$LINENO: checking
for pid_t
" >&5
24781 $as_echo_n "checking
for pid_t...
" >&6; }
24782 if test "${ac_cv_type_pid_t+set}" = set; then
24783 $as_echo_n "(cached
) " >&6
24785 ac_cv_type_pid_t=no
24786 cat >conftest.$ac_ext <<_ACEOF
24789 cat confdefs.h >>conftest.$ac_ext
24790 cat >>conftest.$ac_ext <<_ACEOF
24791 /* end confdefs.h. */
24792 $ac_includes_default
24796 if (sizeof (pid_t))
24802 rm -f conftest.$ac_objext
24803 if { (ac_try="$ac_compile"
24804 case "(($ac_try" in
24805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24806 *) ac_try_echo=$ac_try;;
24808 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24809 $as_echo "$ac_try_echo") >&5
24810 (eval "$ac_compile") 2>conftest.er1
24812 grep -v '^ *+' conftest.er1 >conftest.err
24814 cat conftest.err >&5
24815 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24816 (exit $ac_status); } && {
24817 test -z "$ac_c_werror_flag" ||
24818 test ! -s conftest.err
24819 } && test -s conftest.$ac_objext; then
24820 cat >conftest.$ac_ext <<_ACEOF
24823 cat confdefs.h >>conftest.$ac_ext
24824 cat >>conftest.$ac_ext <<_ACEOF
24825 /* end confdefs.h. */
24826 $ac_includes_default
24830 if (sizeof ((pid_t)))
24836 rm -f conftest.$ac_objext
24837 if { (ac_try="$ac_compile"
24838 case "(($ac_try" in
24839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24840 *) ac_try_echo=$ac_try;;
24842 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24843 $as_echo "$ac_try_echo") >&5
24844 (eval "$ac_compile") 2>conftest.er1
24846 grep -v '^ *+' conftest.er1 >conftest.err
24848 cat conftest.err >&5
24849 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24850 (exit $ac_status); } && {
24851 test -z "$ac_c_werror_flag" ||
24852 test ! -s conftest.err
24853 } && test -s conftest.$ac_objext; then
24856 $as_echo "$as_me: failed program was
:" >&5
24857 sed 's/^/| /' conftest.$ac_ext >&5
24859 ac_cv_type_pid_t=yes
24862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24864 $as_echo "$as_me: failed program was
:" >&5
24865 sed 's/^/| /' conftest.$ac_ext >&5
24870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24872 { $as_echo "$as_me:$LINENO: result
: $ac_cv_type_pid_t" >&5
24873 $as_echo "$ac_cv_type_pid_t" >&6; }
24874 if test $ac_cv_type_pid_t = yes; then
24878 cat >>confdefs.h <<_ACEOF
24885 for ac_header in vfork.h
24887 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
24888 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
24889 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
24890 $as_echo_n "checking
for $ac_header...
" >&6; }
24891 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
24892 $as_echo_n "(cached
) " >&6
24894 ac_res=`eval 'as_val=${'$as_ac_Header'}
24895 $as_echo "$as_val"'`
24896 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
24897 $as_echo "$ac_res" >&6; }
24899 # Is the header compilable?
24900 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
24901 $as_echo_n "checking
$ac_header usability...
" >&6; }
24902 cat >conftest.$ac_ext <<_ACEOF
24905 cat confdefs.h >>conftest.$ac_ext
24906 cat >>conftest.$ac_ext <<_ACEOF
24907 /* end confdefs.h. */
24908 $ac_includes_default
24909 #include <$ac_header>
24911 rm -f conftest.$ac_objext
24912 if { (ac_try="$ac_compile"
24913 case "(($ac_try" in
24914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24915 *) ac_try_echo=$ac_try;;
24917 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24918 $as_echo "$ac_try_echo") >&5
24919 (eval "$ac_compile") 2>conftest.er1
24921 grep -v '^ *+' conftest.er1 >conftest.err
24923 cat conftest.err >&5
24924 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24925 (exit $ac_status); } && {
24926 test -z "$ac_c_werror_flag" ||
24927 test ! -s conftest.err
24928 } && test -s conftest.$ac_objext; then
24929 ac_header_compiler=yes
24931 $as_echo "$as_me: failed program was
:" >&5
24932 sed 's/^/| /' conftest.$ac_ext >&5
24934 ac_header_compiler=no
24937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24938 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
24939 $as_echo "$ac_header_compiler" >&6; }
24941 # Is the header present?
24942 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
24943 $as_echo_n "checking
$ac_header presence...
" >&6; }
24944 cat >conftest.$ac_ext <<_ACEOF
24947 cat confdefs.h >>conftest.$ac_ext
24948 cat >>conftest.$ac_ext <<_ACEOF
24949 /* end confdefs.h. */
24950 #include <$ac_header>
24952 if { (ac_try="$ac_cpp conftest.
$ac_ext"
24953 case "(($ac_try" in
24954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24955 *) ac_try_echo=$ac_try;;
24957 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24958 $as_echo "$ac_try_echo") >&5
24959 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
24961 grep -v '^ *+' conftest.er1 >conftest.err
24963 cat conftest.err >&5
24964 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24965 (exit $ac_status); } >/dev/null && {
24966 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24967 test ! -s conftest.err
24969 ac_header_preproc=yes
24971 $as_echo "$as_me: failed program was
:" >&5
24972 sed 's/^/| /' conftest.$ac_ext >&5
24974 ac_header_preproc=no
24977 rm -f conftest.err conftest.$ac_ext
24978 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
24979 $as_echo "$ac_header_preproc" >&6; }
24981 # So? What about this header?
24982 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24984 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
24985 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
24986 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
24987 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
24988 ac_header_preproc=yes
24991 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
24992 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
24993 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
24994 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
24995 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
24996 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
24997 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
24998 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
24999 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
25000 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
25001 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
25002 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
25006 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
25007 $as_echo_n "checking
for $ac_header...
" >&6; }
25008 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
25009 $as_echo_n "(cached
) " >&6
25011 eval "$as_ac_Header=\
$ac_header_preproc"
25013 ac_res=`eval 'as_val=${'$as_ac_Header'}
25014 $as_echo "$as_val"'`
25015 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
25016 $as_echo "$ac_res" >&6; }
25019 if test `eval 'as_val=${'$as_ac_Header'}
25020 $as_echo "$as_val"'` = yes; then
25021 cat >>confdefs.h <<_ACEOF
25022 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
25031 for ac_func in fork vfork
25033 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
25034 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
25035 $as_echo_n "checking
for $ac_func...
" >&6; }
25036 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
25037 $as_echo_n "(cached
) " >&6
25039 cat >conftest.$ac_ext <<_ACEOF
25042 cat confdefs.h >>conftest.$ac_ext
25043 cat >>conftest.$ac_ext <<_ACEOF
25044 /* end confdefs.h. */
25045 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25046 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25047 #define $ac_func innocuous_$ac_func
25049 /* System header to define __stub macros and hopefully few prototypes,
25050 which can conflict with char $ac_func (); below.
25051 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25052 <limits.h> exists even on freestanding compilers. */
25055 # include <limits.h>
25057 # include <assert.h>
25062 /* Override any GCC internal prototype to avoid an error.
25063 Use char because int might match the return type of a GCC
25064 builtin and then its argument prototype would still apply. */
25069 /* The GNU C library defines this for functions which it implements
25070 to always fail with ENOSYS. Some functions are actually named
25071 something starting with __ and the normal name is an alias. */
25072 #if defined __stub_$ac_func || defined __stub___$ac_func
25079 return $ac_func ();
25084 rm -f conftest.$ac_objext conftest$ac_exeext
25085 if { (ac_try="$ac_link"
25086 case "(($ac_try" in
25087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25088 *) ac_try_echo=$ac_try;;
25090 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25091 $as_echo "$ac_try_echo") >&5
25092 (eval "$ac_link") 2>conftest.er1
25094 grep -v '^ *+' conftest.er1 >conftest.err
25096 cat conftest.err >&5
25097 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25098 (exit $ac_status); } && {
25099 test -z "$ac_c_werror_flag" ||
25100 test ! -s conftest.err
25101 } && test -s conftest$ac_exeext && {
25102 test "$cross_compiling" = yes ||
25103 $as_test_x conftest$ac_exeext
25105 eval "$as_ac_var=yes"
25107 $as_echo "$as_me: failed program was
:" >&5
25108 sed 's/^/| /' conftest.$ac_ext >&5
25110 eval "$as_ac_var=no
"
25113 rm -rf conftest.dSYM
25114 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25115 conftest$ac_exeext conftest.$ac_ext
25117 ac_res=`eval 'as_val=${'$as_ac_var'}
25118 $as_echo "$as_val"'`
25119 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
25120 $as_echo "$ac_res" >&6; }
25121 if test `eval 'as_val=${'$as_ac_var'}
25122 $as_echo "$as_val"'` = yes; then
25123 cat >>confdefs.h <<_ACEOF
25124 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
25130 if test "x
$ac_cv_func_fork" = xyes; then
25131 { $as_echo "$as_me:$LINENO: checking
for working fork
" >&5
25132 $as_echo_n "checking
for working fork...
" >&6; }
25133 if test "${ac_cv_func_fork_works+set}" = set; then
25134 $as_echo_n "(cached
) " >&6
25136 if test "$cross_compiling" = yes; then
25137 ac_cv_func_fork_works=cross
25139 cat >conftest.$ac_ext <<_ACEOF
25142 cat confdefs.h >>conftest.$ac_ext
25143 cat >>conftest.$ac_ext <<_ACEOF
25144 /* end confdefs.h. */
25145 $ac_includes_default
25150 /* By Ruediger Kuhlmann. */
25151 return fork () < 0;
25157 rm -f conftest$ac_exeext
25158 if { (ac_try="$ac_link"
25159 case "(($ac_try" in
25160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25161 *) ac_try_echo=$ac_try;;
25163 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25164 $as_echo "$ac_try_echo") >&5
25165 (eval "$ac_link") 2>&5
25167 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25168 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25169 { (case "(($ac_try" in
25170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25171 *) ac_try_echo=$ac_try;;
25173 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25174 $as_echo "$ac_try_echo") >&5
25175 (eval "$ac_try") 2>&5
25177 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25178 (exit $ac_status); }; }; then
25179 ac_cv_func_fork_works=yes
25181 $as_echo "$as_me: program exited with status
$ac_status" >&5
25182 $as_echo "$as_me: failed program was
:" >&5
25183 sed 's/^/| /' conftest.$ac_ext >&5
25185 ( exit $ac_status )
25186 ac_cv_func_fork_works=no
25188 rm -rf conftest.dSYM
25189 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25194 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func_fork_works" >&5
25195 $as_echo "$ac_cv_func_fork_works" >&6; }
25198 ac_cv_func_fork_works=$ac_cv_func_fork
25200 if test "x
$ac_cv_func_fork_works" = xcross; then
25202 *-*-amigaos* | *-*-msdosdjgpp*)
25203 # Override, as these systems have only a dummy fork() stub
25204 ac_cv_func_fork_works=no
25207 ac_cv_func_fork_works=yes
25210 { $as_echo "$as_me:$LINENO: WARNING
: result
$ac_cv_func_fork_works guessed because of cross compilation
" >&5
25211 $as_echo "$as_me: WARNING
: result
$ac_cv_func_fork_works guessed because of cross compilation
" >&2;}
25213 ac_cv_func_vfork_works=$ac_cv_func_vfork
25214 if test "x
$ac_cv_func_vfork" = xyes; then
25215 { $as_echo "$as_me:$LINENO: checking
for working vfork
" >&5
25216 $as_echo_n "checking
for working vfork...
" >&6; }
25217 if test "${ac_cv_func_vfork_works+set}" = set; then
25218 $as_echo_n "(cached
) " >&6
25220 if test "$cross_compiling" = yes; then
25221 ac_cv_func_vfork_works=cross
25223 cat >conftest.$ac_ext <<_ACEOF
25226 cat confdefs.h >>conftest.$ac_ext
25227 cat >>conftest.$ac_ext <<_ACEOF
25228 /* end confdefs.h. */
25229 /* Thanks to Paul Eggert for this test. */
25230 $ac_includes_default
25231 #include <sys/wait.h>
25232 #ifdef HAVE_VFORK_H
25233 # include <vfork.h>
25235 /* On some sparc systems, changes by the child to local and incoming
25236 argument registers are propagated back to the parent. The compiler
25237 is told about this with #include <vfork.h>, but some compilers
25238 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
25239 static variable whose address is put into a register that is
25240 clobbered by the vfork. */
25243 sparc_address_test (int arg)
25245 sparc_address_test (arg) int arg;
25248 static pid_t child;
25266 pid_t parent = getpid ();
25269 sparc_address_test (0);
25274 /* Here is another test for sparc vfork register problems. This
25275 test uses lots of local variables, at least as many local
25276 variables as main has allocated so far including compiler
25277 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
25278 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
25279 reuse the register of parent for one of the local variables,
25280 since it will think that parent can't possibly be used any more
25281 in this routine. Assigning to the local variable will thus
25282 munge parent in the parent process. */
25284 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
25285 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
25286 /* Convince the compiler that p..p7 are live; otherwise, it might
25287 use the same hardware register for all 8 local variables. */
25288 if (p != p1 || p != p2 || p != p3 || p != p4
25289 || p != p5 || p != p6 || p != p7)
25292 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
25293 from child file descriptors. If the child closes a descriptor
25294 before it execs or exits, this munges the parent's descriptor
25295 as well. Test for this by closing stdout in the child. */
25296 _exit(close(fileno(stdout)) != 0);
25301 while (wait(&status) != child)
25304 /* Was there some problem with vforking? */
25307 /* Did the child fail? (This shouldn't happen.) */
25310 /* Did the vfork/compiler bug occur? */
25311 || parent != getpid()
25313 /* Did the file descriptor bug occur? */
25314 || fstat(fileno(stdout), &st) != 0
25319 rm -f conftest$ac_exeext
25320 if { (ac_try="$ac_link"
25321 case "(($ac_try" in
25322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25323 *) ac_try_echo=$ac_try;;
25325 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25326 $as_echo "$ac_try_echo") >&5
25327 (eval "$ac_link") 2>&5
25329 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25330 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25331 { (case "(($ac_try" in
25332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25333 *) ac_try_echo=$ac_try;;
25335 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25336 $as_echo "$ac_try_echo") >&5
25337 (eval "$ac_try") 2>&5
25339 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25340 (exit $ac_status); }; }; then
25341 ac_cv_func_vfork_works=yes
25343 $as_echo "$as_me: program exited with status
$ac_status" >&5
25344 $as_echo "$as_me: failed program was
:" >&5
25345 sed 's/^/| /' conftest.$ac_ext >&5
25347 ( exit $ac_status )
25348 ac_cv_func_vfork_works=no
25350 rm -rf conftest.dSYM
25351 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25356 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func_vfork_works" >&5
25357 $as_echo "$ac_cv_func_vfork_works" >&6; }
25360 if test "x
$ac_cv_func_fork_works" = xcross; then
25361 ac_cv_func_vfork_works=$ac_cv_func_vfork
25362 { $as_echo "$as_me:$LINENO: WARNING
: result
$ac_cv_func_vfork_works guessed because of cross compilation
" >&5
25363 $as_echo "$as_me: WARNING
: result
$ac_cv_func_vfork_works guessed because of cross compilation
" >&2;}
25366 if test "x
$ac_cv_func_vfork_works" = xyes; then
25368 cat >>confdefs.h <<\_ACEOF
25369 #define HAVE_WORKING_VFORK 1
25374 cat >>confdefs.h <<\_ACEOF
25379 if test "x
$ac_cv_func_fork_works" = xyes; then
25381 cat >>confdefs.h <<\_ACEOF
25382 #define HAVE_WORKING_FORK 1
25388 { $as_echo "$as_me:$LINENO: checking
for nl_langinfo and CODESET
" >&5
25389 $as_echo_n "checking
for nl_langinfo and CODESET...
" >&6; }
25390 if test "${emacs_cv_langinfo_codeset+set}" = set; then
25391 $as_echo_n "(cached
) " >&6
25393 cat >conftest.$ac_ext <<_ACEOF
25396 cat confdefs.h >>conftest.$ac_ext
25397 cat >>conftest.$ac_ext <<_ACEOF
25398 /* end confdefs.h. */
25399 #include <langinfo.h>
25403 char* cs = nl_langinfo(CODESET);
25408 rm -f conftest.$ac_objext conftest$ac_exeext
25409 if { (ac_try="$ac_link"
25410 case "(($ac_try" in
25411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25412 *) ac_try_echo=$ac_try;;
25414 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25415 $as_echo "$ac_try_echo") >&5
25416 (eval "$ac_link") 2>conftest.er1
25418 grep -v '^ *+' conftest.er1 >conftest.err
25420 cat conftest.err >&5
25421 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25422 (exit $ac_status); } && {
25423 test -z "$ac_c_werror_flag" ||
25424 test ! -s conftest.err
25425 } && test -s conftest$ac_exeext && {
25426 test "$cross_compiling" = yes ||
25427 $as_test_x conftest$ac_exeext
25429 emacs_cv_langinfo_codeset=yes
25431 $as_echo "$as_me: failed program was
:" >&5
25432 sed 's/^/| /' conftest.$ac_ext >&5
25434 emacs_cv_langinfo_codeset=no
25437 rm -rf conftest.dSYM
25438 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25439 conftest$ac_exeext conftest.$ac_ext
25442 { $as_echo "$as_me:$LINENO: result
: $emacs_cv_langinfo_codeset" >&5
25443 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
25444 if test $emacs_cv_langinfo_codeset = yes; then
25446 cat >>confdefs.h <<\_ACEOF
25447 #define HAVE_LANGINFO_CODESET 1
25452 { $as_echo "$as_me:$LINENO: checking
for size_t
" >&5
25453 $as_echo_n "checking
for size_t...
" >&6; }
25454 if test "${ac_cv_type_size_t+set}" = set; then
25455 $as_echo_n "(cached
) " >&6
25457 ac_cv_type_size_t=no
25458 cat >conftest.$ac_ext <<_ACEOF
25461 cat confdefs.h >>conftest.$ac_ext
25462 cat >>conftest.$ac_ext <<_ACEOF
25463 /* end confdefs.h. */
25464 $ac_includes_default
25468 if (sizeof (size_t))
25474 rm -f conftest.$ac_objext
25475 if { (ac_try="$ac_compile"
25476 case "(($ac_try" in
25477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25478 *) ac_try_echo=$ac_try;;
25480 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25481 $as_echo "$ac_try_echo") >&5
25482 (eval "$ac_compile") 2>conftest.er1
25484 grep -v '^ *+' conftest.er1 >conftest.err
25486 cat conftest.err >&5
25487 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25488 (exit $ac_status); } && {
25489 test -z "$ac_c_werror_flag" ||
25490 test ! -s conftest.err
25491 } && test -s conftest.$ac_objext; then
25492 cat >conftest.$ac_ext <<_ACEOF
25495 cat confdefs.h >>conftest.$ac_ext
25496 cat >>conftest.$ac_ext <<_ACEOF
25497 /* end confdefs.h. */
25498 $ac_includes_default
25502 if (sizeof ((size_t)))
25508 rm -f conftest.$ac_objext
25509 if { (ac_try="$ac_compile"
25510 case "(($ac_try" in
25511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25512 *) ac_try_echo=$ac_try;;
25514 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25515 $as_echo "$ac_try_echo") >&5
25516 (eval "$ac_compile") 2>conftest.er1
25518 grep -v '^ *+' conftest.er1 >conftest.err
25520 cat conftest.err >&5
25521 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25522 (exit $ac_status); } && {
25523 test -z "$ac_c_werror_flag" ||
25524 test ! -s conftest.err
25525 } && test -s conftest.$ac_objext; then
25528 $as_echo "$as_me: failed program was
:" >&5
25529 sed 's/^/| /' conftest.$ac_ext >&5
25531 ac_cv_type_size_t=yes
25534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25536 $as_echo "$as_me: failed program was
:" >&5
25537 sed 's/^/| /' conftest.$ac_ext >&5
25542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25544 { $as_echo "$as_me:$LINENO: result
: $ac_cv_type_size_t" >&5
25545 $as_echo "$ac_cv_type_size_t" >&6; }
25546 if test $ac_cv_type_size_t = yes; then
25548 cat >>confdefs.h <<_ACEOF
25549 #define HAVE_SIZE_T 1
25556 { $as_echo "$as_me:$LINENO: checking
for mbstate_t
" >&5
25557 $as_echo_n "checking
for mbstate_t...
" >&6; }
25558 if test "${ac_cv_type_mbstate_t+set}" = set; then
25559 $as_echo_n "(cached
) " >&6
25561 cat >conftest.$ac_ext <<_ACEOF
25564 cat confdefs.h >>conftest.$ac_ext
25565 cat >>conftest.$ac_ext <<_ACEOF
25566 /* end confdefs.h. */
25567 $ac_includes_default
25568 # include <wchar.h>
25572 mbstate_t x; return sizeof x;
25577 rm -f conftest.$ac_objext
25578 if { (ac_try="$ac_compile"
25579 case "(($ac_try" in
25580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25581 *) ac_try_echo=$ac_try;;
25583 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25584 $as_echo "$ac_try_echo") >&5
25585 (eval "$ac_compile") 2>conftest.er1
25587 grep -v '^ *+' conftest.er1 >conftest.err
25589 cat conftest.err >&5
25590 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25591 (exit $ac_status); } && {
25592 test -z "$ac_c_werror_flag" ||
25593 test ! -s conftest.err
25594 } && test -s conftest.$ac_objext; then
25595 ac_cv_type_mbstate_t=yes
25597 $as_echo "$as_me: failed program was
:" >&5
25598 sed 's/^/| /' conftest.$ac_ext >&5
25600 ac_cv_type_mbstate_t=no
25603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25605 { $as_echo "$as_me:$LINENO: result
: $ac_cv_type_mbstate_t" >&5
25606 $as_echo "$ac_cv_type_mbstate_t" >&6; }
25607 if test $ac_cv_type_mbstate_t = yes; then
25609 cat >>confdefs.h <<\_ACEOF
25610 #define HAVE_MBSTATE_T 1
25615 cat >>confdefs.h <<\_ACEOF
25616 #define mbstate_t int
25621 { $as_echo "$as_me:$LINENO: checking
for C restrict keyword
" >&5
25622 $as_echo_n "checking
for C restrict keyword...
" >&6; }
25623 if test "${emacs_cv_c_restrict+set}" = set; then
25624 $as_echo_n "(cached
) " >&6
25626 cat >conftest.$ac_ext <<_ACEOF
25629 cat confdefs.h >>conftest.$ac_ext
25630 cat >>conftest.$ac_ext <<_ACEOF
25631 /* end confdefs.h. */
25632 void fred (int *restrict x);
25641 rm -f conftest.$ac_objext
25642 if { (ac_try="$ac_compile"
25643 case "(($ac_try" in
25644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25645 *) ac_try_echo=$ac_try;;
25647 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25648 $as_echo "$ac_try_echo") >&5
25649 (eval "$ac_compile") 2>conftest.er1
25651 grep -v '^ *+' conftest.er1 >conftest.err
25653 cat conftest.err >&5
25654 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25655 (exit $ac_status); } && {
25656 test -z "$ac_c_werror_flag" ||
25657 test ! -s conftest.err
25658 } && test -s conftest.$ac_objext; then
25659 emacs_cv_c_restrict=yes
25661 $as_echo "$as_me: failed program was
:" >&5
25662 sed 's/^/| /' conftest.$ac_ext >&5
25664 cat >conftest.$ac_ext <<_ACEOF
25667 cat confdefs.h >>conftest.$ac_ext
25668 cat >>conftest.$ac_ext <<_ACEOF
25669 /* end confdefs.h. */
25670 void fred (int *__restrict x);
25679 rm -f conftest.$ac_objext
25680 if { (ac_try="$ac_compile"
25681 case "(($ac_try" in
25682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25683 *) ac_try_echo=$ac_try;;
25685 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25686 $as_echo "$ac_try_echo") >&5
25687 (eval "$ac_compile") 2>conftest.er1
25689 grep -v '^ *+' conftest.er1 >conftest.err
25691 cat conftest.err >&5
25692 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25693 (exit $ac_status); } && {
25694 test -z "$ac_c_werror_flag" ||
25695 test ! -s conftest.err
25696 } && test -s conftest.$ac_objext; then
25697 emacs_cv_c_restrict=__restrict
25699 $as_echo "$as_me: failed program was
:" >&5
25700 sed 's/^/| /' conftest.$ac_ext >&5
25702 emacs_cv_c_restrict=no
25705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25710 { $as_echo "$as_me:$LINENO: result
: $emacs_cv_c_restrict" >&5
25711 $as_echo "$emacs_cv_c_restrict" >&6; }
25712 case "$emacs_cv_c_restrict" in
25713 yes) emacs_restrict=restrict;;
25714 no) emacs_restrict="";;
25715 *) emacs_restrict="$emacs_cv_c_restrict";;
25717 if test "$emacs_restrict" != __restrict; then
25719 cat >>confdefs.h <<_ACEOF
25720 #define __restrict $emacs_restrict
25725 { $as_echo "$as_me:$LINENO: checking
for C restricted array declarations
" >&5
25726 $as_echo_n "checking
for C restricted array declarations...
" >&6; }
25727 if test "${emacs_cv_c_restrict_arr+set}" = set; then
25728 $as_echo_n "(cached
) " >&6
25730 cat >conftest.$ac_ext <<_ACEOF
25733 cat confdefs.h >>conftest.$ac_ext
25734 cat >>conftest.$ac_ext <<_ACEOF
25735 /* end confdefs.h. */
25736 void fred (int x[__restrict]);
25745 rm -f conftest.$ac_objext
25746 if { (ac_try="$ac_compile"
25747 case "(($ac_try" in
25748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25749 *) ac_try_echo=$ac_try;;
25751 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25752 $as_echo "$ac_try_echo") >&5
25753 (eval "$ac_compile") 2>conftest.er1
25755 grep -v '^ *+' conftest.er1 >conftest.err
25757 cat conftest.err >&5
25758 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25759 (exit $ac_status); } && {
25760 test -z "$ac_c_werror_flag" ||
25761 test ! -s conftest.err
25762 } && test -s conftest.$ac_objext; then
25763 emacs_cv_c_restrict_arr=yes
25765 $as_echo "$as_me: failed program was
:" >&5
25766 sed 's/^/| /' conftest.$ac_ext >&5
25768 emacs_cv_c_restrict_arr=no
25771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25773 { $as_echo "$as_me:$LINENO: result
: $emacs_cv_c_restrict_arr" >&5
25774 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
25775 if test "$emacs_cv_c_restrict_arr" = yes; then
25777 cat >>confdefs.h <<\_ACEOF
25778 #define __restrict_arr __restrict
25785 # Set up the CFLAGS for real compilation, so we can substitute it.
25786 CFLAGS="$REAL_CFLAGS"
25787 CPPFLAGS="$REAL_CPPFLAGS"
25789 #### Find out which version of Emacs this is.
25790 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
25791 | sed -e 's/^[^"]*"\([^"]*\
)".*$/\1/'`
25792 if test x"${version}" = x; then
25793 { { $as_echo "$as_me:$LINENO: error
: can
't find current emacs version in \`${srcdir}/lisp/version.el'.
" >&5
25794 $as_echo "$as_me: error
: can
't find current emacs version in \`${srcdir}/lisp/version.el'.
" >&2;}
25795 { (exit 1); exit 1; }; }
25797 if test x"${version}" != x"$PACKAGE_VERSION"; then
25798 { $as_echo "$as_me:$LINENO: WARNING
: version mismatch between \
`${srcdir}/configure.in' and \`${srcdir}/lisp
/version.el
'." >&5
25799 $as_echo "$as_me: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/lisp/version.el'." >&2;}
25802 ### Specify what sort of things we'll be editing into Makefile and config.h.
25803 ### Use configuration here uncanonicalized to avoid exceeding size limits.
25848 cat >>confdefs.h
<<_ACEOF
25849 #define EMACS_CONFIGURATION "${canonical}"
25853 cat >>confdefs.h
<<_ACEOF
25854 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
25858 cat >>confdefs.h
<<_ACEOF
25859 #define config_machfile "${machfile}"
25863 cat >>confdefs.h
<<_ACEOF
25864 #define config_opsysfile "${opsysfile}"
25868 cat >>confdefs.h
<<_ACEOF
25869 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
25873 cat >>confdefs.h
<<_ACEOF
25874 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
25878 cat >>confdefs.h
<<_ACEOF
25879 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
25883 cat >>confdefs.h
<<_ACEOF
25884 #define UNEXEC_SRC ${UNEXEC_SRC}
25888 if test "${HAVE_X_WINDOWS}" = "yes" ; then
25890 cat >>confdefs.h
<<\_ACEOF
25891 #define HAVE_X_WINDOWS 1
25895 if test "${USE_X_TOOLKIT}" != "none" ; then
25897 cat >>confdefs.h
<<\_ACEOF
25898 #define USE_X_TOOLKIT 1
25901 if test "${USE_X_TOOLKIT}" = "LUCID"; then
25903 cat >>confdefs.h
<<\_ACEOF
25904 #define USE_LUCID 1
25907 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
25909 cat >>confdefs.h
<<\_ACEOF
25910 #define USE_MOTIF 1
25915 if test "${HAVE_X11}" = "yes" ; then
25917 cat >>confdefs.h
<<\_ACEOF
25922 if test "${HAVE_MENUS}" = "yes" ; then
25924 cat >>confdefs.h
<<\_ACEOF
25925 #define HAVE_MENUS 1
25929 if test "${GNU_MALLOC}" = "yes" ; then
25931 cat >>confdefs.h
<<\_ACEOF
25932 #define GNU_MALLOC 1
25936 if test "${REL_ALLOC}" = "yes" ; then
25938 cat >>confdefs.h
<<\_ACEOF
25939 #define REL_ALLOC 1
25949 #### Report on what we decided to do.
25950 #### Report GTK as a toolkit, even if it doesn't use Xt.
25951 #### It makes printing result more understandable as using GTK sets
25952 #### toolkit_scroll_bars to yes by default.
25953 if test "${HAVE_GTK}" = "yes"; then
25958 Configured for \`${canonical}'.
25960 Where should the build process find the source code? ${srcdir}
25961 What operating system and machine description files should Emacs use?
25962 \`${opsysfile}' and \`${machfile}'
25963 What compiler should emacs be built with? ${CC} ${CFLAGS}
25964 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
25965 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
25966 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
25967 What window system should Emacs use? ${window_system}
25968 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
25970 if test -n "${x_includes}"; then
25971 echo " Where do we find X Windows header files? ${x_includes}"
25973 echo " Where do we find X Windows header files? Standard dirs"
25975 if test -n "${x_libraries}"; then
25976 echo " Where do we find X Windows libraries? ${x_libraries}"
25978 echo " Where do we find X Windows libraries? Standard dirs"
25981 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
25982 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
25983 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
25984 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
25985 echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF"
25986 echo " Does Emacs use -lpng? ${HAVE_PNG}"
25987 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
25988 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
25989 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
25990 echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
25991 echo " Does Emacs use -lselinux? ${HAVE_LIBSELINUX}"
25993 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
25994 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
25995 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
25996 echo " Does Emacs use -lxft? ${HAVE_XFT}"
25998 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
26001 if test $USE_XASSERTS = yes; then
26002 echo " Compiling with asserts turned on."
26003 CPPFLAGS
="$CPPFLAGS -DXASSERTS=1"
26008 if test "$HAVE_NS" = "yes"; then
26010 echo "You must run \"make install\" in order to test the built application.
26011 The installed application will go to nextstep/Emacs.app and can be
26012 run or moved from there."
26013 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
26014 echo "The application will be fully self-contained."
26016 echo "The lisp resources for the application will be installed under ${prefix}.
26017 You may need to run \"make install\" with sudo. The application will fail
26018 to run if these resources are not installed."
26023 if test "$HAVE_DBUS" = yes && test "${opsys}" != "gnu-linux"; then
26024 echo "D-Bus integration has been tested for GNU/Linux only."
26029 # Remove any trailing slashes in these variables.
26030 test "${prefix}" != NONE
&&
26031 prefix
=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
26032 test "${exec_prefix}" != NONE
&&
26033 exec_prefix
=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
26035 # Now get this: Some word that is part of the ${srcdir} directory name
26036 # or the ${configuration} value might, just might, happen to be an
26037 # identifier like `sun4' or `i386' or something, and be predefined by
26038 # the C preprocessor to some helpful value like 1, or maybe the empty
26039 # string. Needless to say consequent macro substitutions are less
26040 # than conducive to the makefile finding the correct directory.
26041 cpp_undefs
="`echo $srcdir $configuration $canonical |
26042 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
26043 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g'`"
26045 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
26046 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
26047 ## from Makefile.c can correctly provide the arg `-traditional' to the
26050 cat >conftest.
$ac_ext <<_ACEOF
26053 cat confdefs.h
>>conftest.
$ac_ext
26054 cat >>conftest.
$ac_ext <<_ACEOF
26055 /* end confdefs.h. */
26058 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26059 $EGREP "yes..yes" >/dev
/null
2>&1; then
26060 CPP_NEED_TRADITIONAL
=no
26062 CPP_NEED_TRADITIONAL
=yes
26067 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"
26069 ac_config_commands
="$ac_config_commands default"
26071 cat >confcache
<<\_ACEOF
26072 # This file is a shell script that caches the results of configure
26073 # tests run on this system so they can be shared between configure
26074 # scripts and configure runs, see configure's option --config-cache.
26075 # It is not useful on other systems. If it contains results you don't
26076 # want to keep, you may remove or edit it.
26078 # config.status only pays attention to the cache file if you give it
26079 # the --recheck option to rerun configure.
26081 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26082 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26083 # following values.
26087 # The following way of writing the cache mishandles newlines in values,
26088 # but we know of no workaround that is simple, portable, and efficient.
26089 # So, we kill variables containing newlines.
26090 # Ultrix sh set writes to stderr and can't be redirected directly,
26091 # and sets the high bit in the cache file unless we assign to the vars.
26093 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26094 eval ac_val
=\$
$ac_var
26098 *_cv_
*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
26099 $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
26102 _ | IFS | as_nl
) ;; #(
26103 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
26104 *) $as_unset $ac_var ;;
26110 case $as_nl`(ac_space=' '; set) 2>&1` in #(
26111 *${as_nl}ac_space
=\
*)
26112 # `set' does not quote correctly, so add quotes (double-quote
26113 # substitution turns \\\\ into \\, and sed turns \\ into \).
26116 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26119 # `set' quotes correctly as required by POSIX, so do not add quotes.
26120 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26129 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26131 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26133 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
26134 if test -w "$cache_file"; then
26135 test "x$cache_file" != "x/dev/null" &&
26136 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
26137 $as_echo "$as_me: updating cache $cache_file" >&6;}
26138 cat confcache
>$cache_file
26140 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
26141 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26146 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
26147 # Let make expand exec_prefix.
26148 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
26150 DEFS
=-DHAVE_CONFIG_H
26154 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
26155 # 1. Remove the extension, and $U if already installed.
26156 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
26157 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
26158 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
26159 # will be set to the directory where LIBOBJS objects are built.
26160 ac_libobjs
="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
26161 ac_ltlibobjs
="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
26163 LIBOBJS
=$ac_libobjs
26165 LTLIBOBJS
=$ac_ltlibobjs
26169 : ${CONFIG_STATUS=./config.status}
26171 ac_clean_files_save
=$ac_clean_files
26172 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
26173 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
26174 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
26175 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26177 # Generated by $as_me.
26178 # Run this file to recreate the current configuration.
26179 # Compiler output produced by configure, useful for debugging
26180 # configure, is in config.log if it exists.
26183 ac_cs_recheck=false
26185 SHELL=\${CONFIG_SHELL-$SHELL}
26188 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
26189 ## --------------------- ##
26190 ## M4sh Initialization. ##
26191 ## --------------------- ##
26193 # Be more Bourne compatible
26194 DUALCASE
=1; export DUALCASE
# for MKS sh
26195 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
26198 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26199 # is contrary to our usage. Disable this feature.
26200 alias -g '${1+"$@"}'='"$@"'
26201 setopt NO_GLOB_SUBST
26203 case `(set -o) 2>/dev/null` in
26204 *posix
*) set -o posix
;;
26213 # Avoid depending upon Character Ranges.
26214 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
26215 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26216 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
26217 as_cr_digits
='0123456789'
26218 as_cr_alnum
=$as_cr_Letters$as_cr_digits
26223 # Printing a long string crashes Solaris 7 /usr/bin/printf.
26224 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
26225 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
26226 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
26227 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
26228 as_echo='printf %s
\n'
26229 as_echo_n='printf %s
'
26231 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
26232 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
26233 as_echo_n='/usr
/ucb
/echo -n'
26235 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
26236 as_echo_n_body='eval
26240 expr "X$arg" : "X\\(.*\\)$as_nl";
26241 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
26243 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
26245 export as_echo_n_body
26246 as_echo_n='sh
-c $as_echo_n_body as_echo
'
26248 export as_echo_body
26249 as_echo='sh
-c $as_echo_body as_echo
'
26252 # The user is always right.
26253 if test "${PATH_SEPARATOR+set}" != set; then
26255 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
26256 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
26261 # Support unset when possible.
26262 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26270 # We need space, tab and new line, in precisely that order. Quoting is
26271 # there to prevent editors from complaining about space-tab.
26272 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
26273 # splitting by setting IFS to empty value.)
26276 # Find who we are. Look in the path if we contain no directory separator.
26278 *[\\/]* ) as_myself=$0 ;;
26279 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26280 for as_dir in $PATH
26283 test -z "$as_dir" && as_dir=.
26284 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26290 # We did not find ourselves, most probably we were run as `sh COMMAND'
26291 # in which case we are not to be found in the path.
26292 if test "x$as_myself" = x
; then
26295 if test ! -f "$as_myself"; then
26296 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26297 { (exit 1); exit 1; }
26300 # Work around bugs in pre-3.0 UWIN ksh.
26301 for as_var
in ENV MAIL MAILPATH
26302 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
26314 # Required to use basename.
26315 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
26316 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
26322 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
26323 as_basename
=basename
26329 # Name of the executable.
26330 as_me
=`$as_basename -- "$0" ||
26331 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26332 X"$0" : 'X\(//\)$' \| \
26333 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
26335 sed '/^.*\/\([^/][^/]*\)\/*$/{
26354 as_lineno_1
=$LINENO
26355 as_lineno_2
=$LINENO
26356 test "x$as_lineno_1" != "x$as_lineno_2" &&
26357 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
26359 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
26360 # uniformly replaced by the line number. The first 'sed' inserts a
26361 # line-number line after each line using $LINENO; the second 'sed'
26362 # does the real work. The second script uses 'N' to pair each
26363 # line-number line with the line containing $LINENO, and appends
26364 # trailing '-' during substitution so that $LINENO is not a special
26365 # case at line end.
26366 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
26367 # scripts with optimization help from Paolo Bonzini. Blame Lee
26368 # E. McMahon (1931-1989) for sed's syntax. :-)
26380 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
26383 ' >$as_me.lineno
&&
26384 chmod +x
"$as_me.lineno" ||
26385 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
26386 { (exit 1); exit 1; }; }
26388 # Don't try to exec as it changes $[0], causing all sort of problems
26389 # (the dirname of $[0] is not the place where we might find the
26390 # original and so on. Autoconf is especially sensitive to this).
26391 .
"./$as_me.lineno"
26392 # Exit status is that of the last command.
26397 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
26403 ECHO_C
= ECHO_N
= ECHO_T
=
26404 case `echo -n x` in
26406 case `echo 'x\c'` in
26407 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
26413 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
26414 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
26420 rm -f conf$$ conf$$.exe conf$$.
file
26421 if test -d conf$$.dir
; then
26422 rm -f conf$$.dir
/conf$$.
file
26425 mkdir conf$$.dir
2>/dev
/null
26427 if (echo >conf$$.
file) 2>/dev
/null
; then
26428 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
26430 # ... but there are two gotchas:
26431 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
26432 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
26433 # In both cases, we have to default to `cp -p'.
26434 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
26436 elif ln conf$$.
file conf$$
2>/dev
/null
; then
26444 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
26445 rmdir conf$$.dir
2>/dev
/null
26447 if mkdir
-p .
2>/dev
/null
; then
26450 test -d .
/-p && rmdir .
/-p
26454 if test -x / >/dev
/null
2>&1; then
26455 as_test_x
='test -x'
26457 if ls -dL / >/dev
/null
2>&1; then
26464 if test -d "$1"; then
26470 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
26471 ???[sx]*):;;*)false;;esac;fi
26475 as_executable_p
=$as_test_x
26477 # Sed expression to map a string onto a valid CPP name.
26478 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26480 # Sed expression to map a string onto a valid variable name.
26481 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26486 # Save the log message, to keep $[0] and so on meaningful, and to
26487 # report actual input values of CONFIG_FILES etc. instead of their
26488 # values after options handling.
26490 This file was extended by emacs $as_me 24.0.50, which was
26491 generated by GNU Autoconf 2.62. Invocation command line was
26493 CONFIG_FILES = $CONFIG_FILES
26494 CONFIG_HEADERS = $CONFIG_HEADERS
26495 CONFIG_LINKS = $CONFIG_LINKS
26496 CONFIG_COMMANDS = $CONFIG_COMMANDS
26499 on `(hostname || uname -n) 2>/dev/null | sed 1q`
26504 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26505 # Files that config.status was made for.
26506 config_files="$ac_config_files"
26507 config_headers="$ac_config_headers"
26508 config_commands="$ac_config_commands"
26512 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
26514 \`$as_me' instantiates files from templates according to the
26515 current configuration.
26517 Usage: $0 [OPTIONS] [FILE]...
26519 -h, --help print this help, then exit
26520 -V, --version print version number and configuration settings, then exit
26521 -q, --quiet do not print progress messages
26522 -d, --debug don't remove temporary files
26523 --recheck update $as_me by reconfiguring in the same conditions
26524 --file=FILE[:TEMPLATE]
26525 instantiate the configuration file FILE
26526 --header=FILE[:TEMPLATE]
26527 instantiate the configuration header FILE
26529 Configuration files:
26532 Configuration headers:
26535 Configuration commands:
26538 Report bugs to <bug-autoconf@gnu.org>."
26541 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26543 emacs config.status 24.0.50
26544 configured by $0, generated by GNU Autoconf 2.62,
26545 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
26547 Copyright (C) 2008 Free Software Foundation, Inc.
26548 This config.status script is free software; the Free Software Foundation
26549 gives unlimited permission to copy, distribute and modify it."
26554 test -n "\$AWK" || AWK=awk
26557 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
26558 # The default lists apply if the user does not specify any file.
26564 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
26565 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
26576 # Handling of the options.
26577 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
26579 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
26580 $as_echo "$ac_cs_version"; exit ;;
26581 --debug |
--debu |
--deb |
--de |
--d |
-d )
26583 --file |
--fil |
--fi |
--f )
26586 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26588 CONFIG_FILES
="$CONFIG_FILES '$ac_optarg'"
26589 ac_need_defaults
=false
;;
26590 --header |
--heade |
--head |
--hea )
26593 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26595 CONFIG_HEADERS
="$CONFIG_HEADERS '$ac_optarg'"
26596 ac_need_defaults
=false
;;
26598 # Conflict between --help and --header
26599 { $as_echo "$as_me: error: ambiguous option: $1
26600 Try \`$0 --help' for more information." >&2
26601 { (exit 1); exit 1; }; };;
26602 --help |
--hel |
-h )
26603 $as_echo "$ac_cs_usage"; exit ;;
26604 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
26605 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
26608 # This is an error.
26609 -*) { $as_echo "$as_me: error: unrecognized option: $1
26610 Try \`$0 --help' for more information." >&2
26611 { (exit 1); exit 1; }; } ;;
26613 *) ac_config_targets
="$ac_config_targets $1"
26614 ac_need_defaults
=false
;;
26620 ac_configure_extra_args
=
26622 if $ac_cs_silent; then
26624 ac_configure_extra_args
="$ac_configure_extra_args --silent"
26628 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26629 if \$ac_cs_recheck; then
26630 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26632 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
26633 CONFIG_SHELL='$SHELL'
26634 export CONFIG_SHELL
26639 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
26643 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26644 ## Running $as_me. ##
26650 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26654 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS" cpp_undefs="$cpp_undefs"
26658 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
26660 # Handling of arguments.
26661 for ac_config_target
in $ac_config_targets
26663 case $ac_config_target in
26664 "src/config.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
26665 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
26666 "lib-src/Makefile.c") CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
26667 "oldXMenu/Makefile") CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
26668 "doc/emacs/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/emacs/Makefile" ;;
26669 "doc/misc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/misc/Makefile" ;;
26670 "doc/lispintro/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispintro/Makefile" ;;
26671 "doc/lispref/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispref/Makefile" ;;
26672 "src/Makefile.c") CONFIG_FILES
="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
26673 "lwlib/Makefile") CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
26674 "lisp/Makefile") CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
26675 "leim/Makefile") CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
26676 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
26678 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
26679 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
26680 { (exit 1); exit 1; }; };;
26685 # If the user did not use the arguments to specify the items to instantiate,
26686 # then the envvar interface is used. Set only those that are not.
26687 # We use the long form for the default assignment because of an extremely
26688 # bizarre bug on SunOS 4.1.3.
26689 if $ac_need_defaults; then
26690 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
26691 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
26692 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
26695 # Have a temporary directory for convenience. Make it in the build tree
26696 # simply because there is no reason against having it here, and in addition,
26697 # creating and moving files from /tmp can sometimes cause problems.
26698 # Hook for its removal unless debugging.
26699 # Note that there is a small window in which the directory will not be cleaned:
26700 # after its creation but before its name has been assigned to `$tmp'.
26704 trap 'exit_status=$?
26705 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
26707 trap '{ (exit 1); exit 1; }' 1 2 13 15
26709 # Create a (secure) tmp directory for tmp files.
26712 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
26713 test -n "$tmp" && test -d "$tmp"
26716 tmp
=.
/conf$$
-$RANDOM
26717 (umask 077 && mkdir
"$tmp")
26720 $as_echo "$as_me: cannot create a temporary directory in ." >&2
26721 { (exit 1); exit 1; }
26724 # Set up the scripts for CONFIG_FILES section.
26725 # No need to generate them if there are no CONFIG_FILES.
26726 # This happens for instance with `./config.status config.h'.
26727 if test -n "$CONFIG_FILES"; then
26731 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
26732 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
26735 ac_cs_awk_cr
=$ac_cr
26738 echo 'BEGIN {' >"$tmp/subs1.awk" &&
26743 echo "cat >conf$$subs.awk <<_ACEOF" &&
26744 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
26746 } >conf$$subs.sh ||
26747 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_STATUS" >&5
26748 $as_echo "$as_me: error
: could not
make $CONFIG_STATUS" >&2;}
26749 { (exit 1); exit 1; }; }
26750 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
26752 for ac_last_try in false false false false false :; do
26753 . ./conf$$subs.sh ||
26754 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_STATUS" >&5
26755 $as_echo "$as_me: error
: could not
make $CONFIG_STATUS" >&2;}
26756 { (exit 1); exit 1; }; }
26758 if test `sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X` = $ac_delim_num; then
26760 elif $ac_last_try; then
26761 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_STATUS" >&5
26762 $as_echo "$as_me: error
: could not
make $CONFIG_STATUS" >&2;}
26763 { (exit 1); exit 1; }; }
26765 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
26768 rm -f conf$$subs.sh
26770 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26771 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
26775 s/^/S["/; s
/!.
*/"]=/
26785 s/\(.\{148\}\).*/\1/
26787 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
26792 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
26799 s/\(.\{148\}\).*/\1/
26801 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
26805 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
26810 ' <conf$$subs.awk | sed '
26815 ' >>$CONFIG_STATUS || ac_write_fail=1
26816 rm -f conf$$subs.awk
26817 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26819 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
26820 for (key in S) S_is_set[key] = 1
26826 nfields = split(line, field, "@
")
26828 len = length(field[1])
26829 for (i = 2; i < nfields; i++) {
26831 keylen = length(key)
26832 if (S_is_set[key]) {
26834 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
26835 len += length(value) + length(field[++i])
26846 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26847 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
26848 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
26851 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
26852 || { { $as_echo "$as_me:$LINENO: error
: could not setup config files machinery
" >&5
26853 $as_echo "$as_me: error
: could not setup config files machinery
" >&2;}
26854 { (exit 1); exit 1; }; }
26857 # VPATH may cause trouble with some makes, so we remove $(srcdir),
26858 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
26859 # trailing colons and then remove the whole line if VPATH becomes empty
26860 # (actually we leave an empty line to preserve line numbers).
26861 if test "x
$srcdir" = x.; then
26862 ac_vpsub='/^[ ]*VPATH[ ]*=/{
26863 s/:*\$(srcdir):*/:/
26864 s/:*\${srcdir}:*/:/
26866 s/^\([^=]*=[ ]*\):*/\1/
26872 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26873 fi # test -n "$CONFIG_FILES"
26875 # Set up the scripts for CONFIG_HEADERS section.
26876 # No need to generate them if there are no CONFIG_HEADERS.
26877 # This happens for instance with `./config.status Makefile'.
26878 if test -n "$CONFIG_HEADERS"; then
26879 cat >"$tmp/defines.
awk" <<\_ACAWK ||
26883 # Transform confdefs.h into an awk script `defines.awk', embedded as
26884 # here-document in config.status, that substitutes the proper values into
26885 # config.h.in to produce config.h.
26887 # Create a delimiter string that does not exist in confdefs.h, to ease
26888 # handling of long lines.
26890 for ac_last_try in false false :; do
26891 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
26892 if test -z "$ac_t"; then
26894 elif $ac_last_try; then
26895 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_HEADERS" >&5
26896 $as_echo "$as_me: error
: could not
make $CONFIG_HEADERS" >&2;}
26897 { (exit 1); exit 1; }; }
26899 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
26903 # For the awk script, D is an array of macro values keyed by name,
26904 # likewise P contains macro parameters if any. Preserve backslash
26905 # newline sequences.
26907 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
26909 s/.\{148\}/&'"$ac_delim"'/g
26912 s/^[ ]*#[ ]*define[ ][ ]*/ /
26919 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
26921 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
26925 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
26926 D["\
1"]=" \
3\\\\\\n
"\\/p
26928 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
26933 s/.\{148\}/&'"$ac_delim"'/g
26938 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
26941 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
26943 ' <confdefs.h | sed '
26944 s/'"$ac_delim"'/"\\\
26945 "/g' >>$CONFIG_STATUS || ac_write_fail=1
26947 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26948 for (key in D) D_is_set[key] = 1
26951 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
26953 split(line, arg, " ")
26954 if (arg[1] == "#") {
26958 defundef
= substr
(arg
[1], 2)
26961 split(mac1
, mac2
, "(") #)
26963 if (D_is_set
[macro
]) {
26964 # Preserve the white space surrounding the "#".
26965 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
26966 print prefix
"define", macro P
[macro
] D
[macro
]
26969 # Replace #undef with comments. This is necessary, for example,
26970 # in the case of _POSIX_SOURCE, which is predefined and required
26971 # on some systems where configure will not decide to define it.
26972 if (defundef
== "undef") {
26973 print
"/*", line
, "*/"
26981 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
26982 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
26983 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
26984 { (exit 1); exit 1; }; }
26985 fi # test -n "$CONFIG_HEADERS"
26988 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
26993 :[FHLC
]) ac_mode
=$ac_tag; continue;;
26995 case $ac_mode$ac_tag in
26997 :L
* |
:C
*:*) { { $as_echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
26998 $as_echo "$as_me: error: Invalid tag $ac_tag." >&2;}
26999 { (exit 1); exit 1; }; };;
27000 :[FH
]-) ac_tag
=-:-;;
27001 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
27018 -) ac_f
="$tmp/stdin";;
27019 *) # Look for the file first in the build tree, then in the source tree
27020 # (if the path is not absolute). The absolute path cannot be DOS-style,
27021 # because $ac_f cannot contain `:'.
27025 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
27027 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
27028 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
27029 { (exit 1); exit 1; }; };;
27031 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
27032 ac_file_inputs
="$ac_file_inputs '$ac_f'"
27035 # Let's still pretend it is `configure' which instantiates (i.e., don't
27036 # use $as_me), people would be surprised to read:
27037 # /* config.h. Generated by config.status. */
27038 configure_input
='Generated from '`
27039 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
27041 if test x
"$ac_file" != x-
; then
27042 configure_input
="$ac_file. $configure_input"
27043 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
27044 $as_echo "$as_me: creating $ac_file" >&6;}
27046 # Neutralize special characters interpreted by sed in replacement strings.
27047 case $configure_input in #(
27048 *\
&* |
*\|
* |
*\\* )
27049 ac_sed_conf_input
=`$as_echo "$configure_input" |
27050 sed 's/[\\\\&|]/\\\\&/g'`;; #(
27051 *) ac_sed_conf_input
=$configure_input;;
27055 *:-:* |
*:-) cat >"$tmp/stdin" \
27056 ||
{ { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27057 $as_echo "$as_me: error: could not create $ac_file" >&2;}
27058 { (exit 1); exit 1; }; } ;;
27063 ac_dir
=`$as_dirname -- "$ac_file" ||
27064 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27065 X"$ac_file" : 'X\(//\)[^/]' \| \
27066 X"$ac_file" : 'X\(//\)$' \| \
27067 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
27068 $as_echo X"$ac_file" |
27069 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27073 /^X\(\/\/\)[^/].*/{
27088 -*) as_dir
=.
/$as_dir;;
27090 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
27094 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
27095 *) as_qdir
=$as_dir;;
27097 as_dirs
="'$as_qdir' $as_dirs"
27098 as_dir
=`$as_dirname -- "$as_dir" ||
27099 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27100 X"$as_dir" : 'X\(//\)[^/]' \| \
27101 X"$as_dir" : 'X\(//\)$' \| \
27102 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27103 $as_echo X"$as_dir" |
27104 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27108 /^X\(\/\/\)[^/].*/{
27121 test -d "$as_dir" && break
27123 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
27124 } ||
test -d "$as_dir" ||
{ { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
27125 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
27126 { (exit 1); exit 1; }; }; }
27130 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
27132 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
27133 # A ".." for each directory in $ac_dir_suffix.
27134 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
27135 case $ac_top_builddir_sub in
27136 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
27137 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
27140 ac_abs_top_builddir
=$ac_pwd
27141 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
27142 # for backward compatibility:
27143 ac_top_builddir
=$ac_top_build_prefix
27146 .
) # We are building in place.
27148 ac_top_srcdir
=$ac_top_builddir_sub
27149 ac_abs_top_srcdir
=$ac_pwd ;;
27150 [\\/]* | ?
:[\\/]* ) # Absolute name.
27151 ac_srcdir
=$srcdir$ac_dir_suffix;
27152 ac_top_srcdir
=$srcdir
27153 ac_abs_top_srcdir
=$srcdir ;;
27154 *) # Relative name.
27155 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
27156 ac_top_srcdir
=$ac_top_build_prefix$srcdir
27157 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
27159 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
27169 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
27170 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
27174 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27175 # If the template does not know about datarootdir, expand it.
27176 # FIXME: This hack should be removed a few years after 2.60.
27177 ac_datarootdir_hack
=; ac_datarootdir_seen
=
27190 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
27191 *datarootdir
*) ac_datarootdir_seen
=yes;;
27192 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
27193 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
27194 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
27196 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27197 ac_datarootdir_hack='
27198 s&@datadir@&$datadir&g
27199 s&@docdir@&$docdir&g
27200 s&@infodir@&$infodir&g
27201 s&@localedir@&$localedir&g
27202 s&@mandir@&$mandir&g
27203 s&\\\${datarootdir}&$datarootdir&g' ;;
27207 # Neutralize VPATH when `$srcdir' = `.'.
27208 # Shell code in configure.ac might set extrasub.
27209 # FIXME: do we really want to maintain this feature?
27210 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27211 ac_sed_extra="$ac_vpsub
27214 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27216 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
27217 s|@configure_input@|
$ac_sed_conf_input|
;t t
27218 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
27219 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
27220 s
&@srcdir@
&$ac_srcdir&;t t
27221 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
27222 s
&@top_srcdir@
&$ac_top_srcdir&;t t
27223 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
27224 s
&@builddir@
&$ac_builddir&;t t
27225 s
&@abs_builddir@
&$ac_abs_builddir&;t t
27226 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
27227 s
&@INSTALL@
&$ac_INSTALL&;t t
27228 $ac_datarootdir_hack
27230 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.
awk" >$tmp/out \
27231 || { { $as_echo "$as_me:$LINENO: error
: could not create
$ac_file" >&5
27232 $as_echo "$as_me: error
: could not create
$ac_file" >&2;}
27233 { (exit 1); exit 1; }; }
27235 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
27236 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
27237 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
27238 { $as_echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
27239 which seems to be undefined. Please make sure it is defined." >&5
27240 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
27241 which seems to be undefined. Please make sure it is defined." >&2;}
27245 -) cat "$tmp/out" && rm -f "$tmp/out";;
27246 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
27248 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27249 $as_echo "$as_me: error: could not create $ac_file" >&2;}
27250 { (exit 1); exit 1; }; }
27256 if test x"$ac_file" != x-; then
27258 $as_echo "/* $configure_input */" \
27259 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
27260 } >"$tmp/config.h" \
27261 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27262 $as_echo "$as_me: error: could not create $ac_file" >&2;}
27263 { (exit 1); exit 1; }; }
27264 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
27265 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
27266 $as_echo "$as_me: $ac_file is unchanged" >&6;}
27269 mv "$tmp/config.h" "$ac_file" \
27270 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27271 $as_echo "$as_me: error: could not create $ac_file" >&2;}
27272 { (exit 1); exit 1; }; }
27275 $as_echo "/* $configure_input */" \
27276 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
27277 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
27278 $as_echo "$as_me: error: could not create -" >&2;}
27279 { (exit 1); exit 1; }; }
27283 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
27284 $as_echo "$as_me: executing $ac_file commands" >&6;}
27289 case $ac_file$ac_mode in
27292 ### Make the necessary directories, if they don't exist.
27293 for dir
in etc lisp
; do
27294 test -d ${dir} || mkdir
${dir}
27297 # Build src/Makefile from ${srcdir}/src/Makefile.c
27298 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
27299 # This must be done after src/config.h is built, since we rely on that file.
27301 echo creating src
/epaths.h
27302 ${MAKE-make} epaths-force
27304 # As of 2000-11-19, newest development versions of GNU cpp preprocess
27305 # `..' to `. .' unless invoked with -traditional
27307 if test "x$GCC" = xyes
&& test "x$CPP_NEED_TRADITIONAL" = xyes
; then
27308 CPPFLAGS
="$CPPFLAGS -traditional"
27311 echo creating lib-src
/Makefile
27313 rm -f junk.c junk1.c junk2.c
27314 sed -e '/start of cpp stuff/q' \
27315 < Makefile.c
> junk1.c
27316 sed -e '1,/start of cpp stuff/d'\
27317 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
27318 < Makefile.c
> junk.c
27319 $CPP -P $cpp_undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
27320 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
27321 cat junk1.c junk2.c
> Makefile.new
27322 rm -f junk.c junk1.c junk2.c
27323 chmod 444 Makefile.new
27324 mv -f Makefile.new Makefile
27327 echo creating src
/Makefile
27329 rm -f junk.c junk1.c junk2.c
27330 sed -e '/start of cpp stuff/q' \
27331 < Makefile.c
> junk1.c
27332 sed -e '1,/start of cpp stuff/d'\
27333 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
27334 < Makefile.c
> junk.c
27335 $CPP -P $cpp_undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
27336 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
27337 cat junk1.c junk2.c
> Makefile.new
27338 rm -f junk.c junk1.c junk2.c
27339 chmod 444 Makefile.new
27340 mv -f Makefile.new Makefile
27343 if test ! -f src
/.gdbinit
&& test -f $srcdir/src
/.gdbinit
; then
27344 echo creating src
/.gdbinit
27345 echo source $srcdir/src
/.gdbinit
> src
/.gdbinit
27354 { (exit 0); exit 0; }
27356 chmod +x
$CONFIG_STATUS
27357 ac_clean_files
=$ac_clean_files_save
27359 test $ac_write_fail = 0 ||
27360 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
27361 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
27362 { (exit 1); exit 1; }; }
27365 # configure is writing to config.log, and then calls config.status.
27366 # config.status does its own redirection, appending to config.log.
27367 # Unfortunately, on DOS this fails, as config.log is still kept open
27368 # by configure, so config.status won't be able to write to it; its
27369 # output is simply discarded. So we exec the FD to /dev/null,
27370 # effectively closing config.log, so it can be properly (re)opened and
27371 # appended to by config.status. When coming back to configure, we
27372 # need to make the FD available again.
27373 if test "$no_create" != yes; then
27375 ac_config_status_args
=
27376 test "$silent" = yes &&
27377 ac_config_status_args
="$ac_config_status_args --quiet"
27379 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
27381 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27382 # would make configure fail if this is the last instruction.
27383 $ac_cs_success ||
{ (exit 1); exit 1; }
27385 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
27386 { $as_echo "$as_me:$LINENO: WARNING: Unrecognized options: $ac_unrecognized_opts" >&5
27387 $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2;}