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
760 x_default_search_path
779 GNUSTEP_SYSTEM_HEADERS
780 GNUSTEP_SYSTEM_LIBRARIES
782 LIB_SRC_EXTRA_INSTALLABLES
787 enable_option_checking
807 with_toolkit_scroll_bars
819 enable_ns_self_contained
821 enable_maintainer_mode
829 ac_precious_vars
='build_alias
841 # Initialize some variables set by options.
843 ac_init_version
=false
844 ac_unrecognized_opts
=
846 # The variables have the same names as the options, with
847 # dashes changed to underlines.
855 program_transform_name
=s
,x
,x
,
863 # Installation directory options.
864 # These are left unexpanded so users can "make install exec_prefix=/foo"
865 # and all the variables that are supposed to be based on exec_prefix
866 # by default will actually change.
867 # Use braces instead of parens because sh, perl, etc. also accept them.
868 # (The list follows the same order as the GNU Coding Standards.)
869 bindir
='${exec_prefix}/bin'
870 sbindir
='${exec_prefix}/sbin'
871 libexecdir
='${exec_prefix}/libexec'
872 datarootdir
='${prefix}/share'
873 datadir
='${datarootdir}'
874 sysconfdir
='${prefix}/etc'
875 sharedstatedir
='${prefix}/com'
876 localstatedir
='${prefix}/var'
877 includedir
='${prefix}/include'
878 oldincludedir
='/usr/include'
879 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
880 infodir
='${datarootdir}/info'
885 libdir
='${exec_prefix}/lib'
886 localedir
='${datarootdir}/locale'
887 mandir
='${datarootdir}/man'
893 # If the previous option needs an argument, assign it.
894 if test -n "$ac_prev"; then
895 eval $ac_prev=\
$ac_option
901 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
905 # Accept the important Cygnus configure options, so we can diagnose typos.
907 case $ac_dashdash$ac_option in
911 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
913 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
916 -build |
--build |
--buil |
--bui |
--bu)
917 ac_prev
=build_alias
;;
918 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
919 build_alias
=$ac_optarg ;;
921 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
922 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
923 ac_prev
=cache_file
;;
924 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
925 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
926 cache_file
=$ac_optarg ;;
929 cache_file
=config.cache
;;
931 -datadir |
--datadir |
--datadi |
--datad)
933 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
934 datadir
=$ac_optarg ;;
936 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
937 |
--dataroo |
--dataro |
--datar)
938 ac_prev
=datarootdir
;;
939 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
940 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
941 datarootdir
=$ac_optarg ;;
943 -disable-* |
--disable-*)
944 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
945 # Reject names that are not valid shell variable names.
946 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
947 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
948 { (exit 1); exit 1; }; }
949 ac_useropt_orig
=$ac_useropt
950 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
951 case $ac_user_opts in
955 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
956 ac_unrecognized_sep
=', ';;
958 eval enable_
$ac_useropt=no
;;
960 -docdir |
--docdir |
--docdi |
--doc |
--do)
962 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
965 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
967 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
970 -enable-* |
--enable-*)
971 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
972 # Reject names that are not valid shell variable names.
973 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
974 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
975 { (exit 1); exit 1; }; }
976 ac_useropt_orig
=$ac_useropt
977 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
978 case $ac_user_opts in
982 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
983 ac_unrecognized_sep
=', ';;
985 eval enable_
$ac_useropt=\
$ac_optarg ;;
987 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
988 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
989 |
--exec |
--exe |
--ex)
990 ac_prev
=exec_prefix
;;
991 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
992 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
993 |
--exec=* |
--exe=* |
--ex=*)
994 exec_prefix
=$ac_optarg ;;
996 -gas |
--gas |
--ga |
--g)
997 # Obsolete; use --with-gas.
1000 -help |
--help |
--hel |
--he |
-h)
1001 ac_init_help
=long
;;
1002 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1003 ac_init_help
=recursive
;;
1004 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1005 ac_init_help
=short
;;
1007 -host |
--host |
--hos |
--ho)
1008 ac_prev
=host_alias
;;
1009 -host=* |
--host=* |
--hos=* |
--ho=*)
1010 host_alias
=$ac_optarg ;;
1012 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1014 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1016 htmldir
=$ac_optarg ;;
1018 -includedir |
--includedir |
--includedi |
--included |
--include \
1019 |
--includ |
--inclu |
--incl |
--inc)
1020 ac_prev
=includedir
;;
1021 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1022 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1023 includedir
=$ac_optarg ;;
1025 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1027 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1028 infodir
=$ac_optarg ;;
1030 -libdir |
--libdir |
--libdi |
--libd)
1032 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1033 libdir
=$ac_optarg ;;
1035 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1036 |
--libexe |
--libex |
--libe)
1037 ac_prev
=libexecdir
;;
1038 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1039 |
--libexe=* |
--libex=* |
--libe=*)
1040 libexecdir
=$ac_optarg ;;
1042 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1043 ac_prev
=localedir
;;
1044 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1045 localedir
=$ac_optarg ;;
1047 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1048 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1049 ac_prev
=localstatedir
;;
1050 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1051 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1052 localstatedir
=$ac_optarg ;;
1054 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1056 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1057 mandir
=$ac_optarg ;;
1059 -nfp |
--nfp |
--nf)
1060 # Obsolete; use --without-fp.
1063 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1064 |
--no-cr |
--no-c |
-n)
1067 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1068 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1071 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1072 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1073 |
--oldin |
--oldi |
--old |
--ol |
--o)
1074 ac_prev
=oldincludedir
;;
1075 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1076 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1077 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1078 oldincludedir
=$ac_optarg ;;
1080 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1082 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1083 prefix
=$ac_optarg ;;
1085 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1086 |
--program-pre |
--program-pr |
--program-p)
1087 ac_prev
=program_prefix
;;
1088 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1089 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1090 program_prefix
=$ac_optarg ;;
1092 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1093 |
--program-suf |
--program-su |
--program-s)
1094 ac_prev
=program_suffix
;;
1095 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1096 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1097 program_suffix
=$ac_optarg ;;
1099 -program-transform-name |
--program-transform-name \
1100 |
--program-transform-nam |
--program-transform-na \
1101 |
--program-transform-n |
--program-transform- \
1102 |
--program-transform |
--program-transfor \
1103 |
--program-transfo |
--program-transf \
1104 |
--program-trans |
--program-tran \
1105 |
--progr-tra |
--program-tr |
--program-t)
1106 ac_prev
=program_transform_name
;;
1107 -program-transform-name=* |
--program-transform-name=* \
1108 |
--program-transform-nam=* |
--program-transform-na=* \
1109 |
--program-transform-n=* |
--program-transform-=* \
1110 |
--program-transform=* |
--program-transfor=* \
1111 |
--program-transfo=* |
--program-transf=* \
1112 |
--program-trans=* |
--program-tran=* \
1113 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1114 program_transform_name
=$ac_optarg ;;
1116 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1118 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1119 pdfdir
=$ac_optarg ;;
1121 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1123 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1126 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1127 |
-silent |
--silent |
--silen |
--sile |
--sil)
1130 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1132 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1134 sbindir
=$ac_optarg ;;
1136 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1137 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1138 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1140 ac_prev
=sharedstatedir
;;
1141 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1142 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1143 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1145 sharedstatedir
=$ac_optarg ;;
1147 -site |
--site |
--sit)
1149 -site=* |
--site=* |
--sit=*)
1152 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1154 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1155 srcdir
=$ac_optarg ;;
1157 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1158 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1159 ac_prev
=sysconfdir
;;
1160 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1161 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1162 sysconfdir
=$ac_optarg ;;
1164 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1165 ac_prev
=target_alias
;;
1166 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1167 target_alias
=$ac_optarg ;;
1169 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1172 -version |
--version |
--versio |
--versi |
--vers |
-V)
1173 ac_init_version
=: ;;
1176 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1177 # Reject names that are not valid shell variable names.
1178 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1179 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1180 { (exit 1); exit 1; }; }
1181 ac_useropt_orig
=$ac_useropt
1182 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1183 case $ac_user_opts in
1187 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1188 ac_unrecognized_sep
=', ';;
1190 eval with_
$ac_useropt=\
$ac_optarg ;;
1192 -without-* |
--without-*)
1193 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1194 # Reject names that are not valid shell variable names.
1195 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1196 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1197 { (exit 1); exit 1; }; }
1198 ac_useropt_orig
=$ac_useropt
1199 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1200 case $ac_user_opts in
1204 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1205 ac_unrecognized_sep
=', ';;
1207 eval with_
$ac_useropt=no
;;
1210 # Obsolete; use --with-x.
1213 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1214 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1215 ac_prev
=x_includes
;;
1216 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1217 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1218 x_includes
=$ac_optarg ;;
1220 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1221 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1222 ac_prev
=x_libraries
;;
1223 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1224 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1225 x_libraries
=$ac_optarg ;;
1227 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1228 Try \`$0 --help' for more information." >&2
1229 { (exit 1); exit 1; }; }
1233 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1234 # Reject names that are not valid shell variable names.
1235 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1236 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1237 { (exit 1); exit 1; }; }
1238 eval $ac_envvar=\
$ac_optarg
1239 export $ac_envvar ;;
1242 # FIXME: should be removed in autoconf 3.0.
1243 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1244 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1245 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1246 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1252 if test -n "$ac_prev"; then
1253 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1254 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1255 { (exit 1); exit 1; }; }
1258 if test -n "$ac_unrecognized_opts"; then
1259 case $enable_option_checking in
1261 fatal
) { $as_echo "$as_me: error: Unrecognized options: $ac_unrecognized_opts" >&2
1262 { (exit 1); exit 1; }; } ;;
1263 *) $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2 ;;
1267 # Check all directory arguments for consistency.
1268 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1269 datadir sysconfdir sharedstatedir localstatedir includedir \
1270 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1271 libdir localedir mandir
1273 eval ac_val
=\$
$ac_var
1274 # Remove trailing slashes.
1277 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1278 eval $ac_var=\
$ac_val;;
1280 # Be sure to have absolute directory names.
1282 [\\/$
]* | ?
:[\\/]* ) continue;;
1283 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1285 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1286 { (exit 1); exit 1; }; }
1289 # There might be people who depend on the old broken behavior: `$host'
1290 # used to hold the argument of --host etc.
1291 # FIXME: To remove some day.
1294 target
=$target_alias
1296 # FIXME: To remove some day.
1297 if test "x$host_alias" != x
; then
1298 if test "x$build_alias" = x
; then
1299 cross_compiling
=maybe
1300 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1301 If a cross compiler is detected then cross compile mode will be used." >&2
1302 elif test "x$build_alias" != "x$host_alias"; then
1308 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1310 test "$silent" = yes && exec 6>/dev
/null
1313 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1314 ac_ls_di
=`ls -di .` &&
1315 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1316 { $as_echo "$as_me: error: Working directory cannot be determined" >&2
1317 { (exit 1); exit 1; }; }
1318 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1319 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1320 { (exit 1); exit 1; }; }
1323 # Find the source files, if location was not specified.
1324 if test -z "$srcdir"; then
1325 ac_srcdir_defaulted
=yes
1326 # Try the directory containing this script, then the parent directory.
1327 ac_confdir
=`$as_dirname -- "$as_myself" ||
1328 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1329 X"$as_myself" : 'X\(//\)[^/]' \| \
1330 X"$as_myself" : 'X\(//\)$' \| \
1331 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1332 $as_echo X"$as_myself" |
1333 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1351 if test ! -r "$srcdir/$ac_unique_file"; then
1355 ac_srcdir_defaulted
=no
1357 if test ! -r "$srcdir/$ac_unique_file"; then
1358 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1359 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1360 { (exit 1); exit 1; }; }
1362 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1364 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1365 { (exit 1); exit 1; }; }
1367 # When building in place, set srcdir=.
1368 if test "$ac_abs_confdir" = "$ac_pwd"; then
1371 # Remove unnecessary trailing slashes from srcdir.
1372 # Double slashes in file names in object file debugging info
1373 # mess up M-x gdb in Emacs.
1375 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1377 for ac_var
in $ac_precious_vars; do
1378 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1379 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1380 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1381 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1385 # Report the --help message.
1387 if test "$ac_init_help" = "long"; then
1388 # Omit some internal or obsolete options to make the list less imposing.
1389 # This message is too long to be a string in the A/UX 3.1 sh.
1391 \`configure' configures emacs 24.0.50 to adapt to many kinds of systems.
1393 Usage: $0 [OPTION]... [VAR=VALUE]...
1395 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1396 VAR=VALUE. See below for descriptions of some of the useful variables.
1398 Defaults for the options are specified in brackets.
1401 -h, --help display this help and exit
1402 --help=short display options specific to this package
1403 --help=recursive display the short help of all the included packages
1404 -V, --version display version information and exit
1405 -q, --quiet, --silent do not print \`checking...' messages
1406 --cache-file=FILE cache test results in FILE [disabled]
1407 -C, --config-cache alias for \`--cache-file=config.cache'
1408 -n, --no-create do not create output files
1409 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1411 Installation directories:
1412 --prefix=PREFIX install architecture-independent files in PREFIX
1413 [$ac_default_prefix]
1414 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1417 By default, \`make install' will install all the files in
1418 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1419 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1420 for instance \`--prefix=\$HOME'.
1422 For better control, use the options below.
1424 Fine tuning of the installation directories:
1425 --bindir=DIR user executables [EPREFIX/bin]
1426 --sbindir=DIR system admin executables [EPREFIX/sbin]
1427 --libexecdir=DIR program executables [EPREFIX/libexec]
1428 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1429 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1430 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1431 --libdir=DIR object code libraries [EPREFIX/lib]
1432 --includedir=DIR C header files [PREFIX/include]
1433 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1434 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1435 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1436 --infodir=DIR info documentation [DATAROOTDIR/info]
1437 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1438 --mandir=DIR man documentation [DATAROOTDIR/man]
1439 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1440 --htmldir=DIR html documentation [DOCDIR]
1441 --dvidir=DIR dvi documentation [DOCDIR]
1442 --pdfdir=DIR pdf documentation [DOCDIR]
1443 --psdir=DIR ps documentation [DOCDIR]
1449 --program-prefix=PREFIX prepend PREFIX to installed program names
1450 --program-suffix=SUFFIX append SUFFIX to installed program names
1451 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1454 --x-includes=DIR X include files are
in DIR
1455 --x-libraries=DIR X library files are
in DIR
1458 --build=BUILD configure
for building on BUILD
[guessed
]
1459 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1463 if test -n "$ac_init_help"; then
1464 case $ac_init_help in
1465 short | recursive
) echo "Configuration of emacs 24.0.50:";;
1470 --disable-option-checking ignore unrecognized
--enable/--with options
1471 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1472 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1473 --disable-ns-self-contained
1474 disable self contained build under NeXTstep
1475 --enable-asserts compile code with asserts enabled
1476 --enable-maintainer-mode
1477 enable make rules and dependencies not useful
(and
1478 sometimes confusing
) to the casual installer
1479 --enable-locallisppath=PATH
1480 directories Emacs should search
for lisp files
1481 specific to this site
1482 --enable-checking[=LIST
]
1483 enable expensive run-time checks. With LIST
, enable
1484 only specific categories of checks. Categories are
:
1485 all
,yes,no. Flags are
: stringbytes
, stringoverrun
,
1486 stringfreelist
, xmallocoverrun
, conslist
1487 --enable-profiling build emacs with profiling support. This might not
1488 work on all platforms
1489 --enable-autodepend automatically generate dependencies to .h-files.
1490 Requires GNU Make and Gcc. Enabled
if GNU Make and
1492 --disable-largefile omit support
for large files
1495 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1496 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1497 --without-pop don
't support POP mail retrieval with movemail
1498 --with-kerberos support Kerberos-authenticated POP
1499 --with-kerberos5 support Kerberos version 5 authenticated POP
1500 --with-hesiod support Hesiod to get the POP server host
1501 --with-mmdf support MMDF mailboxes
1502 --with-mail-unlink unlink, rather than empty, mail spool after reading
1503 --with-mailhost=HOSTNAME
1504 string giving default POP mail host
1505 --without-sound don't compile with sound support
1506 --without-sync-input process async input synchronously
1507 --with-x-toolkit=KIT use an X toolkit
(KIT one of
: yes or gtk
, lucid or
1509 --without-xpm don
't compile with XPM image support
1510 --without-jpeg don't compile with JPEG image support
1511 --without-tiff don
't compile with TIFF image support
1512 --without-gif don't compile with GIF image support
1513 --without-png don
't compile with PNG image support
1514 --without-rsvg don't compile with SVG image support
1515 --without-xft don
't use XFT for anti aliased fonts
1516 --without-libotf don't use libotf
for OpenType font support
1517 --without-m17n-flt don
't use m17n-flt for text shaping
1518 --without-toolkit-scroll-bars
1519 don't use Motif or Xaw3d scroll bars
1520 --without-xaw3d don
't use Xaw3d
1521 --without-xim don't use X11 XIM
1522 --with-ns use nextstep
(Cocoa or GNUstep
) windowing system
1523 --without-gpm don
't use -lgpm for mouse support on a GNU/Linux
1525 --without-dbus don't compile with D-Bus support
1526 --without-gconf don
't compile with GConf support
1527 --without-makeinfo don't require makeinfo
for building manuals
1529 --with-pkg-config-prog=PATH
1530 path to pkg-config
for finding GTK and librsvg
1531 --with-gnustep-conf=PATH
1532 path to GNUstep.conf
; default
$GNUSTEP_CONFIG_FILE,
1533 or
/etc
/GNUstep
/GNUstep.conf
1534 --with-x use the X Window System
1536 Some influential environment variables
:
1537 CC C compiler
command
1538 CFLAGS C compiler flags
1539 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1540 nonstandard directory
<lib dir
>
1541 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1542 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1543 you have headers
in a nonstandard directory
<include dir
>
1545 XMKMF Path to xmkmf
, Makefile generator
for X Window System
1547 Use these variables to override the choices made by
`configure' or to help
1548 it to find libraries and programs with nonstandard names/locations.
1554 if test "$ac_init_help" = "recursive"; then
1555 # If there are subdirs, report their specific --help.
1556 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1557 test -d "$ac_dir" ||
1558 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1563 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1565 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1566 # A ".." for each directory in $ac_dir_suffix.
1567 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1568 case $ac_top_builddir_sub in
1569 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1570 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1573 ac_abs_top_builddir=$ac_pwd
1574 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1575 # for backward compatibility:
1576 ac_top_builddir=$ac_top_build_prefix
1579 .) # We are building in place.
1581 ac_top_srcdir=$ac_top_builddir_sub
1582 ac_abs_top_srcdir=$ac_pwd ;;
1583 [\\/]* | ?:[\\/]* ) # Absolute name.
1584 ac_srcdir=$srcdir$ac_dir_suffix;
1585 ac_top_srcdir=$srcdir
1586 ac_abs_top_srcdir=$srcdir ;;
1588 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1589 ac_top_srcdir=$ac_top_build_prefix$srcdir
1590 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1592 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1594 cd "$ac_dir" || { ac_status=$?; continue; }
1595 # Check for guested configure.
1596 if test -f "$ac_srcdir/configure.gnu"; then
1598 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1599 elif test -f "$ac_srcdir/configure"; then
1601 $SHELL "$ac_srcdir/configure" --help=recursive
1603 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1605 cd "$ac_pwd" || { ac_status=$?; break; }
1609 test -n "$ac_init_help" && exit $ac_status
1610 if $ac_init_version; then
1612 emacs configure 24.0.50
1613 generated by GNU Autoconf 2.62
1615 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1616 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1617 This configure script is free software; the Free Software Foundation
1618 gives unlimited permission to copy, distribute and modify it.
1622 cat >config.log <<_ACEOF
1623 This file contains any messages produced by compilers while
1624 running configure, to aid debugging if configure makes a mistake.
1626 It was created by emacs $as_me 24.0.50, which was
1627 generated by GNU Autoconf 2.62. Invocation command line was
1639 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1640 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1641 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1642 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1643 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1645 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1646 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1648 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1649 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1650 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1651 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
1652 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1653 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1654 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1662 test -z "$as_dir" && as_dir=.
1663 $as_echo "PATH: $as_dir"
1679 # Keep a trace of the command line.
1680 # Strip out --no-create and --no-recursion so they do not pile up.
1681 # Strip out --silent because we don't want to record it for future runs.
1682 # Also quote any args containing shell meta-characters.
1683 # Make two passes to allow for proper duplicate-argument suppression.
1687 ac_must_keep_next=false
1693 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1694 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1695 | -silent | --silent | --silen | --sile | --sil)
1698 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1701 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1703 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1704 if test $ac_must_keep_next = true; then
1705 ac_must_keep_next=false # Got value, back to normal.
1708 *=* | --config-cache | -C | -disable-* | --disable-* \
1709 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1710 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1711 | -with-* | --with-* | -without-* | --without-* | --x)
1712 case "$ac_configure_args0 " in
1713 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1716 -* ) ac_must_keep_next=true ;;
1719 ac_configure_args="$ac_configure_args '$ac_arg'"
1724 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1725 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1727 # When interrupted or exit'd, cleanup temporary files, and complete
1728 # config.log. We remove comments because anyway the quotes in there
1729 # would cause problems or look ugly.
1730 # WARNING: Use '\'' to represent an apostrophe within the trap.
1731 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1732 trap 'exit_status=$?
1733 # Save into config.log some information that might help in debugging.
1738 ## ---------------- ##
1739 ## Cache variables. ##
1740 ## ---------------- ##
1743 # The following way of writing the cache mishandles newlines in values,
1745 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
1746 eval ac_val=\$$ac_var
1750 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1751 $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1754 _ | IFS | as_nl) ;; #(
1755 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1756 *) $as_unset $ac_var ;;
1761 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
1762 *${as_nl}ac_space=\ *)
1764 "s/'\''/'\''\\\\'\'''\''/g;
1765 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1768 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1776 ## ----------------- ##
1777 ## Output variables. ##
1778 ## ----------------- ##
1781 for ac_var in $ac_subst_vars
1783 eval ac_val=\$$ac_var
1785 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1787 $as_echo "$ac_var='\''$ac_val'\''"
1791 if test -n "$ac_subst_files"; then
1793 ## ------------------- ##
1794 ## File substitutions. ##
1795 ## ------------------- ##
1798 for ac_var in $ac_subst_files
1800 eval ac_val=\$$ac_var
1802 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1804 $as_echo "$ac_var='\''$ac_val'\''"
1809 if test -s confdefs.h; then
1819 test "$ac_signal" != 0 &&
1820 $as_echo "$as_me: caught signal $ac_signal"
1821 $as_echo "$as_me: exit $exit_status"
1823 rm -f core *.core core.conftest.* &&
1824 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1827 for ac_signal in 1 2 13 15; do
1828 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1832 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1833 rm -f -r conftest* confdefs.h
1835 # Predefined preprocessor variables.
1837 cat >>confdefs.h <<_ACEOF
1838 #define PACKAGE_NAME "$PACKAGE_NAME"
1842 cat >>confdefs.h <<_ACEOF
1843 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1847 cat >>confdefs.h <<_ACEOF
1848 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1852 cat >>confdefs.h <<_ACEOF
1853 #define PACKAGE_STRING "$PACKAGE_STRING"
1857 cat >>confdefs.h <<_ACEOF
1858 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1862 # Let the site file select an alternate cache file if it wants to.
1863 # Prefer an explicitly selected file to automatically selected ones.
1866 if test -n "$CONFIG_SITE"; then
1867 ac_site_file1=$CONFIG_SITE
1868 elif test "x$prefix" != xNONE; then
1869 ac_site_file1=$prefix/share/config.site
1870 ac_site_file2=$prefix/etc/config.site
1872 ac_site_file1=$ac_default_prefix/share/config.site
1873 ac_site_file2=$ac_default_prefix/etc/config.site
1875 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1877 test "x$ac_site_file" = xNONE && continue
1878 if test -r "$ac_site_file"; then
1879 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1880 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1881 sed 's/^/| /' "$ac_site_file" >&5
1886 if test -r "$cache_file"; then
1887 # Some versions of bash will fail to source /dev/null (special
1888 # files actually), so we avoid doing that.
1889 if test -f "$cache_file"; then
1890 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1891 $as_echo "$as_me: loading cache $cache_file" >&6;}
1893 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1894 *) . "./$cache_file";;
1898 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1899 $as_echo "$as_me: creating cache $cache_file" >&6;}
1903 ac_header_list="$ac_header_list sys/time.h"
1904 ac_header_list="$ac_header_list unistd.h"
1905 ac_func_list="$ac_func_list alarm"
1906 # Check that the precious variables saved in the cache have kept the same
1908 ac_cache_corrupted=false
1909 for ac_var in $ac_precious_vars; do
1910 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1911 eval ac_new_set=\$ac_env_${ac_var}_set
1912 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1913 eval ac_new_val=\$ac_env_${ac_var}_value
1914 case $ac_old_set,$ac_new_set in
1916 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
1917 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1918 ac_cache_corrupted=: ;;
1920 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not
set in the previous run
" >&5
1921 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
1922 ac_cache_corrupted=: ;;
1925 if test "x$ac_old_val" != "x$ac_new_val"; then
1926 # differences in whitespace do not lead to failure.
1927 ac_old_val_w=`echo x
$ac_old_val`
1928 ac_new_val_w=`echo x
$ac_new_val`
1929 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1930 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1931 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
1932 ac_cache_corrupted=:
1934 { $as_echo "$as_me:$LINENO: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
1935 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1936 eval $ac_var=\$ac_old_val
1938 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1939 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
1940 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1941 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1944 # Pass precious variables to config.status.
1945 if test "$ac_new_set" = set; then
1947 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
1948 *) ac_arg=$ac_var=$ac_new_val ;;
1950 case " $ac_configure_args " in
1951 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1952 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1956 if $ac_cache_corrupted; then
1957 { $as_echo "$as_me:$LINENO: error
: changes
in the environment can compromise the build
" >&5
1958 $as_echo "$as_me: error
: changes
in the environment can compromise the build
" >&2;}
1959 { { $as_echo "$as_me:$LINENO: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&5
1960 $as_echo "$as_me: error: run \`make distclean' and
/or \
`rm $cache_file' and start over" >&2;}
1961 { (exit 1); exit 1; }; }
1989 ac_cpp='$CPP $CPPFLAGS'
1990 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1991 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1992 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1995 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
1999 test "$program_prefix" != NONE &&
2000 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2001 # Use a double $ so make ignores it.
2002 test "$program_suffix" != NONE &&
2003 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2004 # Double any \ or $.
2005 # By default was `s
,x
,x
', remove it if useless.
2006 ac_script='s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//'
2007 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2010 lispdir='${datadir}/emacs
/${version}/lisp
'
2011 locallisppath='${datadir}/emacs
/${version}/site-lisp
:'\
2012 '${datadir}/emacs
/site-lisp
'
2013 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim
'
2014 etcdir='${datadir}/emacs
/${version}/etc
'
2015 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
2016 docdir='${datadir}/emacs
/${version}/etc
'
2017 gamedir='${localstatedir}/games
/emacs
'
2024 # Check whether --with-pop was given.
2025 if test "${with_pop+set}" = set; then
2031 if test "$with_pop" = yes; then
2032 cat >>confdefs.h <<\_ACEOF
2033 #define MAIL_USE_POP 1
2040 # Check whether --with-kerberos was given.
2041 if test "${with_kerberos+set}" = set; then
2042 withval=$with_kerberos;
2047 if test "$with_kerberos" != no; then
2048 cat >>confdefs.h <<\_ACEOF
2056 # Check whether --with-kerberos5 was given.
2057 if test "${with_kerberos5+set}" = set; then
2058 withval=$with_kerberos5;
2063 if test "${with_kerberos5}" != no; then
2064 if test "${with_kerberos}" = no; then
2066 cat >>confdefs.h <<\_ACEOF
2072 cat >>confdefs.h <<\_ACEOF
2079 # Check whether --with-hesiod was given.
2080 if test "${with_hesiod+set}" = set; then
2081 withval=$with_hesiod;
2086 if test "$with_hesiod" != no; then
2088 cat >>confdefs.h <<\_ACEOF
2095 # Check whether --with-mmdf was given.
2096 if test "${with_mmdf+set}" = set; then
2102 if test "$with_mmdf" != no; then
2104 cat >>confdefs.h <<\_ACEOF
2105 #define MAIL_USE_MMDF 1
2111 # Check whether --with-mail-unlink was given.
2112 if test "${with_mail_unlink+set}" = set; then
2113 withval=$with_mail_unlink;
2118 if test "$with_mail_unlink" != no; then
2120 cat >>confdefs.h <<\_ACEOF
2121 #define MAIL_UNLINK_SPOOL 1
2127 # Check whether --with-mailhost was given.
2128 if test "${with_mailhost+set}" = set; then
2129 withval=$with_mailhost;
2130 cat >>confdefs.h <<_ACEOF
2131 #define MAILHOST "$withval"
2138 # Check whether --with-sound was given.
2139 if test "${with_sound+set}" = set; then
2140 withval=$with_sound;
2147 # Check whether --with-sync-input was given.
2148 if test "${with_sync_input+set}" = set; then
2149 withval=$with_sync_input;
2154 if test "$with_sync_input" = yes; then
2156 cat >>confdefs.h <<\_ACEOF
2157 #define SYNC_INPUT 1
2163 # Check whether --with-x-toolkit was given.
2164 if test "${with_x_toolkit+set}" = set; then
2165 withval=$with_x_toolkit; case "${withval}" in
2166 y | ye | yes ) val=gtk ;;
2168 l | lu | luc | luci | lucid ) val=lucid ;;
2169 a | at | ath | athe | athen | athena ) val=athena ;;
2170 m | mo | mot | moti | motif ) val=motif ;;
2171 g | gt | gtk ) val=gtk ;;
2173 { { $as_echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid
;
2174 this option
's value should be \`yes', \
`no', \`lucid
', \`athena', \
`motif' or \`gtk
'.
2175 \`yes' and \
`gtk' are synonyms. \`athena
' and \`lucid' are synonyms.
" >&5
2176 $as_echo "$as_me: 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." >&2;}
2179 { (exit 1); exit 1; }; }
2188 # Check whether --with-xpm was given.
2189 if test "${with_xpm+set}" = set; then
2196 # Check whether --with-jpeg was given.
2197 if test "${with_jpeg+set}" = set; then
2204 # Check whether --with-tiff was given.
2205 if test "${with_tiff+set}" = set; then
2212 # Check whether --with-gif was given.
2213 if test "${with_gif+set}" = set; then
2220 # Check whether --with-png was given.
2221 if test "${with_png+set}" = set; then
2228 # Check whether --with-rsvg was given.
2229 if test "${with_rsvg+set}" = set; then
2237 # Check whether --with-xft was given.
2238 if test "${with_xft+set}" = set; then
2245 # Check whether --with-libotf was given.
2246 if test "${with_libotf+set}" = set; then
2247 withval=$with_libotf;
2253 # Check whether --with-m17n-flt was given.
2254 if test "${with_m17n_flt+set}" = set; then
2255 withval=$with_m17n_flt;
2262 # Check whether --with-toolkit-scroll-bars was given.
2263 if test "${with_toolkit_scroll_bars+set}" = set; then
2264 withval=$with_toolkit_scroll_bars;
2266 with_toolkit_scroll_bars=yes
2270 # Check whether --with-xaw3d was given.
2271 if test "${with_xaw3d+set}" = set; then
2272 withval=$with_xaw3d;
2278 # Check whether --with-xim was given.
2279 if test "${with_xim+set}" = set; then
2286 # Check whether --with-ns was given.
2287 if test "${with_ns+set}" = set; then
2295 # Check whether --with-gpm was given.
2296 if test "${with_gpm+set}" = set; then
2303 # Check whether --with-dbus was given.
2304 if test "${with_dbus+set}" = set; then
2311 # Check whether --with-gconf was given.
2312 if test "${with_gconf+set}" = set; then
2313 withval=$with_gconf;
2319 ## For the times when you want to build Emacs but don't have
2320 ## a suitable makeinfo, and can live without the manuals.
2322 # Check whether --with-makeinfo was given.
2323 if test "${with_makeinfo+set}" = set; then
2324 withval
=$with_makeinfo;
2331 # Check whether --with-gtk was given.
2332 if test "${with_gtk+set}" = set; then
2333 withval
=$with_gtk; { { $as_echo "$as_me:$LINENO: error: --with-gtk has been removed. Use --with-x-toolkit to
2334 specify a toolkit." >&5
2335 $as_echo "$as_me: error: --with-gtk has been removed. Use --with-x-toolkit to
2336 specify a toolkit." >&2;}
2337 { (exit 1); exit 1; }; }
2342 # Check whether --with-gcc was given.
2343 if test "${with_gcc+set}" = set; then
2344 withval
=$with_gcc; { { $as_echo "$as_me:$LINENO: error: --with-gcc has been removed. Set the \`CC' environment
2345 variable to specify a compiler." >&5
2346 $as_echo "$as_me: error: --with-gcc has been removed. Set the \`CC' environment
2347 variable to specify a compiler." >&2;}
2348 { (exit 1); exit 1; }; }
2353 # Check whether --with-pkg-config-prog was given.
2354 if test "${with_pkg_config_prog+set}" = set; then
2355 withval
=$with_pkg_config_prog;
2358 if test "X${with_pkg_config_prog}" != X
; then
2359 if test "${with_pkg_config_prog}" != yes; then
2360 PKG_CONFIG
="${with_pkg_config_prog}"
2365 # Check whether --with-gnustep-conf was given.
2366 if test "${with_gnustep_conf+set}" = set; then
2367 withval
=$with_gnustep_conf;
2370 test "X${with_gnustep_conf}" != X
&& test "${with_gnustep_conf}" != yes && \
2371 GNUSTEP_CONFIG_FILE
="${with_gnustep_conf}"
2372 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
2373 GNUSTEP_CONFIG_FILE
=/etc
/GNUstep
/GNUstep.conf
2375 # Check whether --enable-ns-self-contained was given.
2376 if test "${enable_ns_self_contained+set}" = set; then
2377 enableval
=$enable_ns_self_contained; EN_NS_SELF_CONTAINED
=$enableval
2379 EN_NS_SELF_CONTAINED
=yes
2383 # Check whether --enable-asserts was given.
2384 if test "${enable_asserts+set}" = set; then
2385 enableval
=$enable_asserts; USE_XASSERTS
=$enableval
2391 # Check whether --enable-maintainer-mode was given.
2392 if test "${enable_maintainer_mode+set}" = set; then
2393 enableval
=$enable_maintainer_mode; USE_MAINTAINER_MODE
=$enableval
2395 USE_MAINTAINER_MODE
=no
2398 if test $USE_MAINTAINER_MODE = yes; then
2405 # Check whether --enable-locallisppath was given.
2406 if test "${enable_locallisppath+set}" = set; then
2407 enableval
=$enable_locallisppath; if test "${enableval}" = "no"; then
2409 elif test "${enableval}" != "yes"; then
2410 locallisppath
=${enableval}
2415 # Check whether --enable-checking was given.
2416 if test "${enable_checking+set}" = set; then
2417 enableval
=$enable_checking; ac_checking_flags
="${enableval}"
2420 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
2421 for check
in $ac_checking_flags
2424 # these set all the flags to specific states
2425 yes) ac_enable_checking
=1 ;;
2426 no
) ac_enable_checking
= ;
2427 ac_gc_check_stringbytes
= ;
2428 ac_gc_check_string_overrun
= ;
2429 ac_gc_check_string_free_list
= ;
2430 ac_xmalloc_overrun
= ;
2431 ac_gc_check_cons_list
= ;;
2432 all
) ac_enable_checking
=1 ;
2433 ac_gc_check_stringbytes
=1 ;
2434 ac_gc_check_string_overrun
=1 ;
2435 ac_gc_check_string_free_list
=1 ;
2436 ac_xmalloc_overrun
=1 ;
2437 ac_gc_check_cons_list
=1 ;;
2438 # these enable particular checks
2439 stringbytes
) ac_gc_check_stringbytes
=1 ;;
2440 stringoverrun
) ac_gc_check_string_overrun
=1 ;;
2441 stringfreelist
) ac_gc_check_string_free_list
=1 ;;
2442 xmallocoverrun
) ac_xmalloc_overrun
=1 ;;
2443 conslist
) ac_gc_check_cons_list
=1 ;;
2444 *) { { $as_echo "$as_me:$LINENO: error: unknown check category $check" >&5
2445 $as_echo "$as_me: error: unknown check category $check" >&2;}
2446 { (exit 1); exit 1; }; } ;;
2451 if test x
$ac_enable_checking != x
; then
2453 cat >>confdefs.h
<<\_ACEOF
2454 #define ENABLE_CHECKING 1
2458 if test x
$ac_gc_check_stringbytes != x
; then
2460 cat >>confdefs.h
<<\_ACEOF
2461 #define GC_CHECK_STRING_BYTES 1
2465 if test x
$ac_gc_check_stringoverrun != x
; then
2467 cat >>confdefs.h
<<\_ACEOF
2468 #define GC_CHECK_STRING_OVERRUN 1
2472 if test x
$ac_gc_check_string_free_list != x
; then
2474 cat >>confdefs.h
<<\_ACEOF
2475 #define GC_CHECK_STRING_FREE_LIST 1
2479 if test x
$ac_xmalloc_overrun != x
; then
2481 cat >>confdefs.h
<<\_ACEOF
2482 #define XMALLOC_OVERRUN_CHECK 1
2486 if test x
$ac_gc_check_cons_list != x
; then
2488 cat >>confdefs.h
<<\_ACEOF
2489 #define GC_CHECK_CONS_LIST 1
2494 # Check whether --enable-profiling was given.
2495 if test "${enable_profiling+set}" = set; then
2496 enableval
=$enable_profiling; ac_enable_profiling
="${enableval}"
2499 if test x
$ac_enable_profiling != x
; then
2500 PROFILING_CFLAGS
="-DPROFILING=1 -pg"
2501 PROFILING_LDFLAGS
="-pg"
2507 # Check whether --enable-autodepend was given.
2508 if test "${enable_autodepend+set}" = set; then
2509 enableval
=$enable_autodepend; ac_enable_autodepend
="${enableval}"
2511 ac_enable_autodepend
=yes
2515 #### Make srcdir absolute, if it isn't already. It's important to
2516 #### avoid running the path through pwd unnecessarily, since pwd can
2517 #### give you automounter prefixes, which can go away. We do all this
2518 #### so Emacs can find its files when run uninstalled.
2519 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
2524 ## We may be able to use the $PWD environment variable to make this
2525 ## absolute. But sometimes PWD is inaccurate.
2526 ## Note: we used to use ${PWD} at the end instead of `pwd`,
2527 ## but that tested only for a well-formed and valid PWD,
2528 ## it did not object when PWD was well-formed and valid but just wrong.
2529 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
2533 srcdir
="`(cd ${srcdir}; pwd)`"
2536 * ) srcdir
="`(cd ${srcdir}; pwd)`" ;;
2539 #### Check if the source directory already has a configured system in it.
2540 if test `pwd` != `(cd ${srcdir} && pwd)` \
2541 && test -f "${srcdir}/src/config.h" ; then
2542 { $as_echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
2543 as a build directory right now; it has been configured in its own
2544 right. To configure in another directory as well, you MUST
2545 use GNU make. If you do not have GNU make, then you must
2546 now do \`make distclean' in ${srcdir},
2547 and then run $0 again." >&5
2548 $as_echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
2549 as a build directory right now; it has been configured in its own
2550 right. To configure in another directory as well, you MUST
2551 use GNU make. If you do not have GNU make, then you must
2552 now do \`make distclean' in ${srcdir},
2553 and then run $0 again." >&2;}
2556 #### Given the configuration name, set machfile and opsysfile to the
2557 #### names of the m/*.h and s/*.h files we should use.
2559 ### Canonicalize the configuration name.
2562 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2563 if test -f "$ac_dir/install-sh"; then
2565 ac_install_sh
="$ac_aux_dir/install-sh -c"
2567 elif test -f "$ac_dir/install.sh"; then
2569 ac_install_sh
="$ac_aux_dir/install.sh -c"
2571 elif test -f "$ac_dir/shtool"; then
2573 ac_install_sh
="$ac_aux_dir/shtool install -c"
2577 if test -z "$ac_aux_dir"; then
2578 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2579 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2580 { (exit 1); exit 1; }; }
2583 # These three variables are undocumented and unsupported,
2584 # and are intended to be withdrawn in a future Autoconf release.
2585 # They can cause serious problems if a builder's source tree is in a directory
2586 # whose full name contains unusual characters.
2587 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2588 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2589 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2592 # Make sure we can run config.sub.
2593 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2594 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2595 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2596 { (exit 1); exit 1; }; }
2598 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2599 $as_echo_n "checking build system type... " >&6; }
2600 if test "${ac_cv_build+set}" = set; then
2601 $as_echo_n "(cached) " >&6
2603 ac_build_alias
=$build_alias
2604 test "x$ac_build_alias" = x
&&
2605 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2606 test "x$ac_build_alias" = x
&&
2607 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2608 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2609 { (exit 1); exit 1; }; }
2610 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2611 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2612 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2613 { (exit 1); exit 1; }; }
2616 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2617 $as_echo "$ac_cv_build" >&6; }
2618 case $ac_cv_build in
2620 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2621 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2622 { (exit 1); exit 1; }; };;
2625 ac_save_IFS
=$IFS; IFS
='-'
2631 # Remember, the first character of IFS is used to create $*,
2632 # except with old shells:
2635 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2638 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2639 $as_echo_n "checking host system type... " >&6; }
2640 if test "${ac_cv_host+set}" = set; then
2641 $as_echo_n "(cached) " >&6
2643 if test "x$host_alias" = x
; then
2644 ac_cv_host
=$ac_cv_build
2646 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2647 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2648 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2649 { (exit 1); exit 1; }; }
2653 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2654 $as_echo "$ac_cv_host" >&6; }
2657 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2658 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2659 { (exit 1); exit 1; }; };;
2662 ac_save_IFS
=$IFS; IFS
='-'
2668 # Remember, the first character of IFS is used to create $*,
2669 # except with old shells:
2672 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2676 configuration
=${host_alias-${build_alias-$host}}
2680 ### If you add support for a new configuration, add code to this
2681 ### switch statement to recognize your configuration name and select
2682 ### the appropriate operating system and machine description files.
2684 ### You would hope that you could choose an m/*.h file pretty much
2685 ### based on the machine portion of the configuration name, and an s-
2686 ### file based on the operating system portion. However, it turns out
2687 ### that each m/*.h file is pretty manufacturer-specific - for
2688 ### example mips.h is MIPS
2689 ### So we basically have to have a special case for each
2690 ### configuration name.
2692 ### As far as handling version numbers on operating systems is
2693 ### concerned, make sure things will fail in a fixable way. If
2694 ### /etc/MACHINES doesn't say anything about version numbers, be
2695 ### prepared to handle anything reasonably. If version numbers
2696 ### matter, be sure /etc/MACHINES says something about it.
2698 ### Eric Raymond says we should accept strings like "sysvr4" to mean
2699 ### "System V Release 4"; he writes, "The old convention encouraged
2700 ### confusion between `system' and `release' levels'."
2702 machine
='' opsys
='' unported
=no
2703 case "${canonical}" in
2708 case "${canonical}" in
2709 alpha
*-*-freebsd*) machine
=alpha
;;
2710 arm
*-*-freebsd*) machine
=arm
;;
2711 ia64-
*-freebsd*) machine
=ia64
;;
2712 sparc-
*-freebsd*) machine
=sparc
;;
2713 sparc64-
*-freebsd*) machine
=sparc
;;
2714 powerpc-
*-freebsd*) machine
=macppc
;;
2715 i
[3456]86-*-freebsd*) machine
=intel386
;;
2716 amd64-
*-freebsd*|x86_64-
*-freebsd*) machine
=amdx86-64
;;
2720 ## FreeBSD kernel + glibc based userland
2723 case "${canonical}" in
2724 alpha
*-*-kfreebsd*) machine
=alpha
;;
2725 ia64-
*-kfreebsd*) machine
=ia64
;;
2726 sparc-
*-kfreebsd*) machine
=sparc
;;
2727 sparc64-
*-kfreebsd*) machine
=sparc
;;
2728 powerpc-
*-kfreebsd*) machine
=macppc
;;
2729 i
[3456]86-*-kfreebsd*) machine
=intel386
;;
2730 amd64-
*-kfreebsd*|x86_64-
*-kfreebsd*) machine
=amdx86-64
;;
2737 if test -f /usr
/lib
/crti.o
; then
2739 cat >>confdefs.h
<<\_ACEOF
2740 #define HAVE_CRTIN /**/
2745 case "${canonical}" in
2746 alpha
*-*-netbsd*) machine
=alpha
;;
2747 i
[3456]86-*-netbsd*) machine
=intel386
;;
2748 mips-
*-netbsd*) machine
=mips
;;
2749 mipsel-
*-netbsd*) machine
=mips
;;
2750 mipseb-
*-netbsd*) machine
=mips
;;
2751 powerpc-
*-netbsd*) machine
=macppc
;;
2752 sparc
*-*-netbsd*) machine
=sparc
;;
2753 vax-
*-netbsd*) machine
=vax
;;
2754 arm-
*-netbsd*) machine
=arm
;;
2755 x86_64-
*-netbsd*) machine
=amdx86-64
;;
2756 hppa-
*-netbsd*) machine
=hp800
;;
2757 m68k-
*-netbsd*) machine
=m68k
;;
2764 case "${canonical}" in
2765 alpha
*-*-openbsd*) machine
=alpha
;;
2766 arm-
*-openbsd*) machine
=arm
;;
2767 i386-
*-openbsd*) machine
=intel386
;;
2768 powerpc-
*-openbsd*) machine
=macppc
;;
2769 sparc
*-*-openbsd*) machine
=sparc
;;
2770 vax-
*-openbsd*) machine
=vax
;;
2771 x86_64-
*-openbsd*) machine
=amdx86-64
;;
2772 hppa-
*-openbsd*) machine
=hp800
;;
2779 case "${canonical}" in
2780 i
[3456]86-*-lynxos*) machine
=intel386
;;
2781 powerpc-
*-lynxos*) machine
=powerpc
;;
2785 alpha
*-*-linux-gnu* )
2786 machine
=alpha opsys
=gnu-linux
2790 machine
=arm opsys
=gnu-linux
2793 ## Apple Darwin / Mac OS X
2795 case "${canonical}" in
2796 i
[3456]86-* ) machine
=intel386
;;
2797 powerpc-
* ) machine
=macppc
;;
2798 x86_64-
* ) machine
=amdx86-64
;;
2802 # Define CPP as follows to make autoconf work correctly.
2803 CPP
="${CC-cc} -E -no-cpp-precomp"
2804 # Use fink packages if available.
2805 if test -d /sw
/include
&& test -d /sw
/lib
; then
2806 GCC_TEST_OPTIONS
="-I/sw/include -L/sw/lib"
2807 CPP
="${CPP} ${GCC_TEST_OPTIONS}"
2808 NON_GCC_TEST_OPTIONS
=${GCC_TEST_OPTIONS}
2812 ## HP 9000 series 700 and 800, running HP/UX
2813 hppa
*-hp-hpux10.2
* )
2814 machine
=hp800 opsys
=hpux10-20
2816 hppa
*-hp-hpux1[1-9]* )
2817 machine
=hp800 opsys
=hpux11
2818 CFLAGS
="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
2821 hppa
*-*-linux-gnu* )
2822 machine
=hp800 opsys
=gnu-linux
2827 machine
=ibms390 opsys
=gnu-linux
2829 s390x-
*-linux-gnu* )
2830 machine
=ibms390x opsys
=gnu-linux
2832 rs6000-ibm-aix4.2
* | powerpc-ibm-aix4.2
* )
2833 machine
=ibmrs6000 opsys
=aix4-2
2835 rs6000-ibm-aix4.3
* | powerpc-ibm-aix4.3
* )
2836 machine
=ibmrs6000 opsys
=aix4-2
2838 rs6000-ibm-aix5
* | powerpc-ibm-aix5
* )
2839 machine
=ibmrs6000 opsys
=aix4-2
2841 rs6000-ibm-aix6
* | powerpc-ibm-aix6
* )
2842 machine
=ibmrs6000 opsys
=aix4-2
2845 ## Macintosh PowerPC
2846 powerpc
*-*-linux-gnu* )
2847 machine
=macppc opsys
=gnu-linux
2850 ## Silicon Graphics machines
2853 machine
=iris4d opsys
=irix6-5
2854 # Without defining _LANGUAGE_C, things get masked out in the headers
2855 # so that, for instance, grepping for `free' in stdlib.h fails and
2856 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2857 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2858 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
2862 sparc-
*-linux-gnu* | sparc64-
*-linux-gnu* )
2863 machine
=sparc opsys
=gnu-linux
2867 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* \
2868 | x86_64-
*-solaris2* | x86_64-
*-sunos5* \
2869 | powerpc
*-*-solaris2* | rs6000-
*-solaris2*)
2870 case "${canonical}" in
2871 i
[3456]86-*-* ) machine
=intel386
;;
2872 amd64-
*-*|x86_64-
*-*) machine
=amdx86-64
;;
2873 powerpc
* | rs6000
* ) machine
=ibmrs6000
;;
2874 sparc
* ) machine
=sparc
;;
2877 case "${canonical}" in
2878 *-sunos5.3
* |
*-solaris2.3
* )
2880 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2882 *-sunos5.4
* |
*-solaris2.4
* )
2884 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2887 *-sunos5.5
* |
*-solaris2.5
* )
2889 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2892 *-sunos5.6
* |
*-solaris2.6
* )
2894 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2897 *-sunos5.
[7-9]* |
*-solaris2.
[7-9]* )
2899 emacs_check_sunpro_c
=yes
2900 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2902 *-sunos5* |
*-solaris* )
2904 emacs_check_sunpro_c
=yes
2905 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2908 ## Watch out for a compiler that we know will not work.
2909 case "${canonical}" in
2910 *-solaris* |
*-sunos5* )
2911 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
2912 ## /usr/ucb/cc doesn't work;
2913 ## we should find some other compiler that does work.
2923 machine
=ia64 opsys
=gnu-linux
2926 ## Intel 386 machines where we don't care about the manufacturer
2929 case "${canonical}" in
2930 *-cygwin ) opsys
=cygwin
;;
2931 *-darwin* ) opsys
=darwin
2932 CPP
="${CC-cc} -E -no-cpp-precomp"
2934 *-linux-gnu* ) opsys
=gnu-linux
;;
2935 *-sysv4.2uw
* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2936 *-sysv5uw* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2937 *-sysv5OpenUNIX* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2938 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2942 ## m68k Linux-based GNU system
2944 machine
=m68k opsys
=gnu-linux
2947 ## Mips Linux-based GNU system
2948 mips-
*-linux-gnu* | mipsel-
*-linux-gnu* \
2949 | mips64-
*-linux-gnu* | mips64el-
*-linux-gnu* )
2950 machine
=mips opsys
=gnu-linux
2953 ## AMD x86-64 Linux-based GNU system
2954 x86_64-
*-linux-gnu* )
2955 machine
=amdx86-64 opsys
=gnu-linux
2958 ## Tensilica Xtensa Linux-based GNU system
2959 xtensa
*-*-linux-gnu* )
2960 machine
=xtensa opsys
=gnu-linux
2963 ## SuperH Linux-based GNU system
2964 sh
[34]*-*-linux-gnu* )
2965 machine
=sh3 opsys
=gnu-linux
2973 ### If the code above didn't choose an operating system, just choose
2974 ### an operating system based on the configuration name. You really
2975 ### only want to use this when you have no idea what the right
2976 ### operating system is; if you know what operating systems a machine
2977 ### runs, it's cleaner to make it explicit in the case statement
2979 if test x
"${opsys}" = x
; then
2980 case "${canonical}" in
2981 *-gnu* ) opsys
=gnu
;;
2982 *-sysv4.2uw
* ) opsys
=unixware
;;
2983 *-sysv5uw* ) opsys
=unixware
;;
2984 *-sysv5OpenUNIX* ) opsys
=unixware
;;
2985 *-sysv4.1
* |
*-sysvr4.1
* )
2986 NON_GNU_CPP
=/usr
/lib
/cpp
2988 *-sysv4.
[2-9]* |
*-sysvr4.
[2-9]* )
2989 if [ x
$NON_GNU_CPP = x
]; then
2990 if [ -f /usr
/ccs
/lib
/cpp
]; then
2991 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2993 NON_GNU_CPP
=/lib
/cpp
2997 *-sysv4* |
*-sysvr4* ) opsys
=usg5-4
;;
3006 if test $unported = yes; then
3007 { { $as_echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
3008 Check \`etc/MACHINES' for recognized configuration names." >&5
3009 $as_echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
3010 Check \`etc/MACHINES' for recognized configuration names." >&2;}
3011 { (exit 1); exit 1; }; }
3014 machfile
="m/${machine}.h"
3015 opsysfile
="s/${opsys}.h"
3018 #### Choose a compiler.
3019 test -n "$CC" && cc_specified
=yes
3021 # Save the value of CFLAGS that the user specified.
3022 SPECIFIED_CFLAGS
="$CFLAGS"
3025 ac_cpp
='$CPP $CPPFLAGS'
3026 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3027 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3028 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3029 if test -n "$ac_tool_prefix"; then
3030 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3031 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3032 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3033 $as_echo_n "checking for $ac_word... " >&6; }
3034 if test "${ac_cv_prog_CC+set}" = set; then
3035 $as_echo_n "(cached) " >&6
3037 if test -n "$CC"; then
3038 ac_cv_prog_CC
="$CC" # Let the user override the test.
3040 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3044 test -z "$as_dir" && as_dir
=.
3045 for ac_exec_ext
in '' $ac_executable_extensions; do
3046 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3047 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3048 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3058 if test -n "$CC"; then
3059 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3060 $as_echo "$CC" >&6; }
3062 { $as_echo "$as_me:$LINENO: result: no" >&5
3063 $as_echo "no" >&6; }
3068 if test -z "$ac_cv_prog_CC"; then
3070 # Extract the first word of "gcc", so it can be a program name with args.
3071 set dummy gcc
; ac_word
=$2
3072 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3073 $as_echo_n "checking for $ac_word... " >&6; }
3074 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3075 $as_echo_n "(cached) " >&6
3077 if test -n "$ac_ct_CC"; then
3078 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3080 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3084 test -z "$as_dir" && as_dir
=.
3085 for ac_exec_ext
in '' $ac_executable_extensions; do
3086 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3087 ac_cv_prog_ac_ct_CC
="gcc"
3088 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3097 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3098 if test -n "$ac_ct_CC"; then
3099 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3100 $as_echo "$ac_ct_CC" >&6; }
3102 { $as_echo "$as_me:$LINENO: result: no" >&5
3103 $as_echo "no" >&6; }
3106 if test "x$ac_ct_CC" = x
; then
3109 case $cross_compiling:$ac_tool_warned in
3111 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3112 whose name does not start with the host triplet. If you think this
3113 configuration is useful to you, please write to autoconf@gnu.org." >&5
3114 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3115 whose name does not start with the host triplet. If you think this
3116 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3117 ac_tool_warned
=yes ;;
3125 if test -z "$CC"; then
3126 if test -n "$ac_tool_prefix"; then
3127 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3128 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3129 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3130 $as_echo_n "checking for $ac_word... " >&6; }
3131 if test "${ac_cv_prog_CC+set}" = set; then
3132 $as_echo_n "(cached) " >&6
3134 if test -n "$CC"; then
3135 ac_cv_prog_CC
="$CC" # Let the user override the test.
3137 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3141 test -z "$as_dir" && as_dir
=.
3142 for ac_exec_ext
in '' $ac_executable_extensions; do
3143 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3144 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3145 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3155 if test -n "$CC"; then
3156 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3157 $as_echo "$CC" >&6; }
3159 { $as_echo "$as_me:$LINENO: result: no" >&5
3160 $as_echo "no" >&6; }
3166 if test -z "$CC"; then
3167 # Extract the first word of "cc", so it can be a program name with args.
3168 set dummy cc
; ac_word
=$2
3169 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3170 $as_echo_n "checking for $ac_word... " >&6; }
3171 if test "${ac_cv_prog_CC+set}" = set; then
3172 $as_echo_n "(cached) " >&6
3174 if test -n "$CC"; then
3175 ac_cv_prog_CC
="$CC" # Let the user override the test.
3178 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3182 test -z "$as_dir" && as_dir
=.
3183 for ac_exec_ext
in '' $ac_executable_extensions; do
3184 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3185 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3186 ac_prog_rejected
=yes
3190 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3197 if test $ac_prog_rejected = yes; then
3198 # We found a bogon in the path, so make sure we never use it.
3199 set dummy
$ac_cv_prog_CC
3201 if test $# != 0; then
3202 # We chose a different compiler from the bogus one.
3203 # However, it has the same basename, so the bogon will be chosen
3204 # first if we set CC to just the basename; use the full file name.
3206 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3212 if test -n "$CC"; then
3213 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3214 $as_echo "$CC" >&6; }
3216 { $as_echo "$as_me:$LINENO: result: no" >&5
3217 $as_echo "no" >&6; }
3222 if test -z "$CC"; then
3223 if test -n "$ac_tool_prefix"; then
3224 for ac_prog
in cl.exe
3226 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3227 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3228 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3229 $as_echo_n "checking for $ac_word... " >&6; }
3230 if test "${ac_cv_prog_CC+set}" = set; then
3231 $as_echo_n "(cached) " >&6
3233 if test -n "$CC"; then
3234 ac_cv_prog_CC
="$CC" # Let the user override the test.
3236 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3240 test -z "$as_dir" && as_dir
=.
3241 for ac_exec_ext
in '' $ac_executable_extensions; do
3242 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3243 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3244 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3254 if test -n "$CC"; then
3255 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3256 $as_echo "$CC" >&6; }
3258 { $as_echo "$as_me:$LINENO: result: no" >&5
3259 $as_echo "no" >&6; }
3263 test -n "$CC" && break
3266 if test -z "$CC"; then
3268 for ac_prog
in cl.exe
3270 # Extract the first word of "$ac_prog", so it can be a program name with args.
3271 set dummy
$ac_prog; ac_word
=$2
3272 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3273 $as_echo_n "checking for $ac_word... " >&6; }
3274 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3275 $as_echo_n "(cached) " >&6
3277 if test -n "$ac_ct_CC"; then
3278 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3280 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3284 test -z "$as_dir" && as_dir
=.
3285 for ac_exec_ext
in '' $ac_executable_extensions; do
3286 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3287 ac_cv_prog_ac_ct_CC
="$ac_prog"
3288 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3297 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3298 if test -n "$ac_ct_CC"; then
3299 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3300 $as_echo "$ac_ct_CC" >&6; }
3302 { $as_echo "$as_me:$LINENO: result: no" >&5
3303 $as_echo "no" >&6; }
3307 test -n "$ac_ct_CC" && break
3310 if test "x$ac_ct_CC" = x
; then
3313 case $cross_compiling:$ac_tool_warned in
3315 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3316 whose name does not start with the host triplet. If you think this
3317 configuration is useful to you, please write to autoconf@gnu.org." >&5
3318 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3319 whose name does not start with the host triplet. If you think this
3320 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3321 ac_tool_warned
=yes ;;
3330 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3331 See \`config.log' for more details." >&5
3332 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3333 See \`config.log' for more details." >&2;}
3334 { (exit 1); exit 1; }; }
3336 # Provide some information about the compiler.
3337 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3340 { (ac_try
="$ac_compiler --version >&5"
3342 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3343 *) ac_try_echo=$ac_try;;
3345 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3346 $as_echo "$ac_try_echo") >&5
3347 (eval "$ac_compiler --version >&5") 2>&5
3349 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3350 (exit $ac_status); }
3351 { (ac_try="$ac_compiler -v >&5"
3353 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3354 *) ac_try_echo
=$ac_try;;
3356 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
3357 $as_echo "$ac_try_echo") >&5
3358 (eval "$ac_compiler -v >&5") 2>&5
3360 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3361 (exit $ac_status); }
3362 { (ac_try
="$ac_compiler -V >&5"
3364 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3365 *) ac_try_echo=$ac_try;;
3367 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3368 $as_echo "$ac_try_echo") >&5
3369 (eval "$ac_compiler -V >&5") 2>&5
3371 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3372 (exit $ac_status); }
3374 cat >conftest.$ac_ext <<_ACEOF
3377 cat confdefs.h >>conftest.$ac_ext
3378 cat >>conftest.$ac_ext <<_ACEOF
3379 /* end confdefs.h. */
3389 ac_clean_files_save=$ac_clean_files
3390 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3391 # Try to create an executable without -o first, disregard a.out.
3392 # It will help us diagnose broken compilers, and finding out an intuition
3394 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3395 $as_echo_n "checking for C compiler default output file name... " >&6; }
3396 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3398 # The possible output files:
3399 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3402 for ac_file in $ac_files
3405 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3406 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3411 if { (ac_try="$ac_link_default"
3413 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3414 *) ac_try_echo
=$ac_try;;
3416 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
3417 $as_echo "$ac_try_echo") >&5
3418 (eval "$ac_link_default") 2>&5
3420 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3421 (exit $ac_status); }; then
3422 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3423 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3424 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3425 # so that the user can short-circuit this test for compilers unknown to
3427 for ac_file
in $ac_files ''
3429 test -f "$ac_file" ||
continue
3431 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3434 # We found the default executable, but exeext='' is most
3438 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3440 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3442 # We set ac_cv_exeext here because the later test for it is not
3443 # safe: cross compilers may not add the suffix if given an `-o'
3444 # argument, so we may need to know it at that point already.
3445 # Even if this section looks crufty: it has the advantage of
3452 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3458 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3459 $as_echo "$ac_file" >&6; }
3460 if test -z "$ac_file"; then
3461 $as_echo "$as_me: failed program was:" >&5
3462 sed 's/^/| /' conftest.
$ac_ext >&5
3464 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3465 See \`config.log' for more details." >&5
3466 $as_echo "$as_me: error: C compiler cannot create executables
3467 See \`config.log' for more details." >&2;}
3468 { (exit 77); exit 77; }; }
3471 ac_exeext
=$ac_cv_exeext
3473 # Check that the compiler produces executables we can run. If not, either
3474 # the compiler is broken, or we cross compile.
3475 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3476 $as_echo_n "checking whether the C compiler works... " >&6; }
3477 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3478 # If not cross compiling, check that we can run a simple program.
3479 if test "$cross_compiling" != yes; then
3480 if { ac_try
='./$ac_file'
3481 { (case "(($ac_try" in
3482 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3483 *) ac_try_echo=$ac_try;;
3485 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3486 $as_echo "$ac_try_echo") >&5
3487 (eval "$ac_try") 2>&5
3489 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3490 (exit $ac_status); }; }; then
3493 if test "$cross_compiling" = maybe; then
3496 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3497 If you meant to cross compile, use \`--host'.
3498 See \`config.log' for more details.
" >&5
3499 $as_echo "$as_me: error
: cannot run C compiled programs.
3500 If you meant to cross compile
, use \
`--host'.
3501 See \`config.log
' for more details." >&2;}
3502 { (exit 1); exit 1; }; }
3506 { $as_echo "$as_me:$LINENO: result: yes" >&5
3507 $as_echo "yes" >&6; }
3509 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3510 ac_clean_files=$ac_clean_files_save
3511 # Check that the compiler produces executables we can run. If not, either
3512 # the compiler is broken, or we cross compile.
3513 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3514 $as_echo_n "checking whether we are cross compiling... " >&6; }
3515 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3516 $as_echo "$cross_compiling" >&6; }
3518 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3519 $as_echo_n "checking for suffix of executables... " >&6; }
3520 if { (ac_try="$ac_link"
3522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3523 *) ac_try_echo=$ac_try;;
3525 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3526 $as_echo "$ac_try_echo") >&5
3527 (eval "$ac_link") 2>&5
3529 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3530 (exit $ac_status); }; then
3531 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3532 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3533 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3535 for ac_file
in conftest.exe conftest conftest.
*; do
3536 test -f "$ac_file" ||
continue
3538 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3539 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3545 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3546 See \`config.log' for more details." >&5
3547 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3548 See \`config.log' for more details." >&2;}
3549 { (exit 1); exit 1; }; }
3552 rm -f conftest
$ac_cv_exeext
3553 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3554 $as_echo "$ac_cv_exeext" >&6; }
3556 rm -f conftest.
$ac_ext
3557 EXEEXT
=$ac_cv_exeext
3559 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3560 $as_echo_n "checking for suffix of object files... " >&6; }
3561 if test "${ac_cv_objext+set}" = set; then
3562 $as_echo_n "(cached) " >&6
3564 cat >conftest.
$ac_ext <<_ACEOF
3567 cat confdefs.h
>>conftest.
$ac_ext
3568 cat >>conftest.
$ac_ext <<_ACEOF
3569 /* end confdefs.h. */
3579 rm -f conftest.o conftest.obj
3580 if { (ac_try
="$ac_compile"
3582 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3583 *) ac_try_echo=$ac_try;;
3585 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3586 $as_echo "$ac_try_echo") >&5
3587 (eval "$ac_compile") 2>&5
3589 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3590 (exit $ac_status); }; then
3591 for ac_file in conftest.o conftest.obj conftest.*; do
3592 test -f "$ac_file" || continue;
3594 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3595 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3600 $as_echo "$as_me: failed program was:" >&5
3601 sed 's/^/| /' conftest.$ac_ext >&5
3603 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3604 See \`config.log
' for more details." >&5
3605 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3606 See \`config.log' for more details.
" >&2;}
3607 { (exit 1); exit 1; }; }
3610 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3612 { $as_echo "$as_me:$LINENO: result
: $ac_cv_objext" >&5
3613 $as_echo "$ac_cv_objext" >&6; }
3614 OBJEXT=$ac_cv_objext
3616 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler
" >&5
3617 $as_echo_n "checking whether we are using the GNU C compiler...
" >&6; }
3618 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3619 $as_echo_n "(cached
) " >&6
3621 cat >conftest.$ac_ext <<_ACEOF
3624 cat confdefs.h >>conftest.$ac_ext
3625 cat >>conftest.$ac_ext <<_ACEOF
3626 /* end confdefs.h. */
3639 rm -f conftest.$ac_objext
3640 if { (ac_try="$ac_compile"
3642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3643 *) ac_try_echo=$ac_try;;
3645 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
3646 $as_echo "$ac_try_echo") >&5
3647 (eval "$ac_compile") 2>conftest.er1
3649 grep -v '^ *+' conftest.er1 >conftest.err
3651 cat conftest.err >&5
3652 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3653 (exit $ac_status); } && {
3654 test -z "$ac_c_werror_flag" ||
3655 test ! -s conftest.err
3656 } && test -s conftest.$ac_objext; then
3659 $as_echo "$as_me: failed program was
:" >&5
3660 sed 's/^/| /' conftest.$ac_ext >&5
3665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3666 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3669 { $as_echo "$as_me:$LINENO: result
: $ac_cv_c_compiler_gnu" >&5
3670 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3671 if test $ac_compiler_gnu = yes; then
3676 ac_test_CFLAGS=${CFLAGS+set}
3677 ac_save_CFLAGS=$CFLAGS
3678 { $as_echo "$as_me:$LINENO: checking whether
$CC accepts
-g" >&5
3679 $as_echo_n "checking whether
$CC accepts
-g...
" >&6; }
3680 if test "${ac_cv_prog_cc_g+set}" = set; then
3681 $as_echo_n "(cached
) " >&6
3683 ac_save_c_werror_flag=$ac_c_werror_flag
3684 ac_c_werror_flag=yes
3687 cat >conftest.$ac_ext <<_ACEOF
3690 cat confdefs.h >>conftest.$ac_ext
3691 cat >>conftest.$ac_ext <<_ACEOF
3692 /* end confdefs.h. */
3702 rm -f conftest.$ac_objext
3703 if { (ac_try="$ac_compile"
3705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3706 *) ac_try_echo=$ac_try;;
3708 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
3709 $as_echo "$ac_try_echo") >&5
3710 (eval "$ac_compile") 2>conftest.er1
3712 grep -v '^ *+' conftest.er1 >conftest.err
3714 cat conftest.err >&5
3715 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3716 (exit $ac_status); } && {
3717 test -z "$ac_c_werror_flag" ||
3718 test ! -s conftest.err
3719 } && test -s conftest.$ac_objext; then
3722 $as_echo "$as_me: failed program was
:" >&5
3723 sed 's/^/| /' conftest.$ac_ext >&5
3726 cat >conftest.$ac_ext <<_ACEOF
3729 cat confdefs.h >>conftest.$ac_ext
3730 cat >>conftest.$ac_ext <<_ACEOF
3731 /* end confdefs.h. */
3741 rm -f conftest.$ac_objext
3742 if { (ac_try="$ac_compile"
3744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3745 *) ac_try_echo=$ac_try;;
3747 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
3748 $as_echo "$ac_try_echo") >&5
3749 (eval "$ac_compile") 2>conftest.er1
3751 grep -v '^ *+' conftest.er1 >conftest.err
3753 cat conftest.err >&5
3754 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3755 (exit $ac_status); } && {
3756 test -z "$ac_c_werror_flag" ||
3757 test ! -s conftest.err
3758 } && test -s conftest.$ac_objext; then
3761 $as_echo "$as_me: failed program was
:" >&5
3762 sed 's/^/| /' conftest.$ac_ext >&5
3764 ac_c_werror_flag=$ac_save_c_werror_flag
3766 cat >conftest.$ac_ext <<_ACEOF
3769 cat confdefs.h >>conftest.$ac_ext
3770 cat >>conftest.$ac_ext <<_ACEOF
3771 /* end confdefs.h. */
3781 rm -f conftest.$ac_objext
3782 if { (ac_try="$ac_compile"
3784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3785 *) ac_try_echo=$ac_try;;
3787 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
3788 $as_echo "$ac_try_echo") >&5
3789 (eval "$ac_compile") 2>conftest.er1
3791 grep -v '^ *+' conftest.er1 >conftest.err
3793 cat conftest.err >&5
3794 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3795 (exit $ac_status); } && {
3796 test -z "$ac_c_werror_flag" ||
3797 test ! -s conftest.err
3798 } && test -s conftest.$ac_objext; then
3801 $as_echo "$as_me: failed program was
:" >&5
3802 sed 's/^/| /' conftest.$ac_ext >&5
3807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3814 ac_c_werror_flag=$ac_save_c_werror_flag
3816 { $as_echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_g" >&5
3817 $as_echo "$ac_cv_prog_cc_g" >&6; }
3818 if test "$ac_test_CFLAGS" = set; then
3819 CFLAGS=$ac_save_CFLAGS
3820 elif test $ac_cv_prog_cc_g = yes; then
3821 if test "$GCC" = yes; then
3827 if test "$GCC" = yes; then
3833 { $as_echo "$as_me:$LINENO: checking
for $CC option to accept ISO C89
" >&5
3834 $as_echo_n "checking
for $CC option to accept ISO C89...
" >&6; }
3835 if test "${ac_cv_prog_cc_c89+set}" = set; then
3836 $as_echo_n "(cached
) " >&6
3838 ac_cv_prog_cc_c89=no
3840 cat >conftest.$ac_ext <<_ACEOF
3843 cat confdefs.h >>conftest.$ac_ext
3844 cat >>conftest.$ac_ext <<_ACEOF
3845 /* end confdefs.h. */
3848 #include <sys/types.h>
3849 #include <sys/stat.h>
3850 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3851 struct buf { int x; };
3852 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3853 static char *e (p, i)
3859 static char *f (char * (*g) (char **, int), char **p, ...)
3864 s = g (p, va_arg (v,int));
3869 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3870 function prototypes and stuff, but not '\xHH' hex character constants.
3871 These don't provoke an error unfortunately, instead are silently treated
3872 as 'x'. The following induces an error, until -std is added to get
3873 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3874 array size at least. It's necessary to write '\x00'==0 to get something
3875 that's true only with -std. */
3876 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3878 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3879 inside strings and character constants. */
3881 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3883 int test (int i, double x);
3884 struct s1 {int (*f) (int a);};
3885 struct s2 {int (*f) (double a);};
3886 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3892 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3897 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3898 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3900 CC="$ac_save_CC $ac_arg"
3901 rm -f conftest.$ac_objext
3902 if { (ac_try="$ac_compile"
3904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3905 *) ac_try_echo=$ac_try;;
3907 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
3908 $as_echo "$ac_try_echo") >&5
3909 (eval "$ac_compile") 2>conftest.er1
3911 grep -v '^ *+' conftest.er1 >conftest.err
3913 cat conftest.err >&5
3914 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3915 (exit $ac_status); } && {
3916 test -z "$ac_c_werror_flag" ||
3917 test ! -s conftest.err
3918 } && test -s conftest.$ac_objext; then
3919 ac_cv_prog_cc_c89=$ac_arg
3921 $as_echo "$as_me: failed program was
:" >&5
3922 sed 's/^/| /' conftest.$ac_ext >&5
3927 rm -f core conftest.err conftest.$ac_objext
3928 test "x
$ac_cv_prog_cc_c89" != "xno
" && break
3930 rm -f conftest.$ac_ext
3935 case "x
$ac_cv_prog_cc_c89" in
3937 { $as_echo "$as_me:$LINENO: result
: none needed
" >&5
3938 $as_echo "none needed
" >&6; } ;;
3940 { $as_echo "$as_me:$LINENO: result
: unsupported
" >&5
3941 $as_echo "unsupported
" >&6; } ;;
3943 CC="$CC $ac_cv_prog_cc_c89"
3944 { $as_echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_c89" >&5
3945 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3950 ac_cpp='$CPP $CPPFLAGS'
3951 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3952 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3953 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3956 # On Suns, sometimes $CPP names a directory.
3957 if test -n "$CPP" && test -d "$CPP"; then
3961 ## If not using gcc, and on Solaris, and no CPP specified, see if
3962 ## using a Sun compiler, which needs -Xs to prevent whitespace.
3963 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
3964 test x"$CPP" = x; then
3965 { $as_echo "$as_me:$LINENO: checking whether we are using a Sun C compiler
" >&5
3966 $as_echo_n "checking whether we are using a Sun C compiler...
" >&6; }
3968 if test "${emacs_cv_sunpro_c+set}" = set; then
3969 $as_echo_n "(cached
) " >&6
3971 cat >conftest.$ac_ext <<_ACEOF
3974 cat confdefs.h >>conftest.$ac_ext
3975 cat >>conftest.$ac_ext <<_ACEOF
3976 /* end confdefs.h. */
3989 rm -f conftest.$ac_objext conftest$ac_exeext
3990 if { (ac_try="$ac_link"
3992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3993 *) ac_try_echo=$ac_try;;
3995 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
3996 $as_echo "$ac_try_echo") >&5
3997 (eval "$ac_link") 2>conftest.er1
3999 grep -v '^ *+' conftest.er1 >conftest.err
4001 cat conftest.err >&5
4002 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4003 (exit $ac_status); } && {
4004 test -z "$ac_c_werror_flag" ||
4005 test ! -s conftest.err
4006 } && test -s conftest$ac_exeext && {
4007 test "$cross_compiling" = yes ||
4008 $as_test_x conftest$ac_exeext
4010 emacs_cv_sunpro_c=yes
4012 $as_echo "$as_me: failed program was
:" >&5
4013 sed 's/^/| /' conftest.$ac_ext >&5
4015 emacs_cv_sunpro_c=no
4018 rm -rf conftest.dSYM
4019 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4020 conftest$ac_exeext conftest.$ac_ext
4023 { $as_echo "$as_me:$LINENO: result
: $emacs_cv_sunpro_c" >&5
4024 $as_echo "$emacs_cv_sunpro_c" >&6; }
4026 if test x"$emacs_cv_sunpro_c" = xyes; then
4027 NON_GNU_CPP="$CC -E -Xs"
4031 #### Some systems specify a CPP to use unless we are using GCC.
4032 #### Now that we know whether we are using GCC, we can decide whether
4033 #### to use that one.
4034 if test "x
$NON_GNU_CPP" != x && test x$GCC != xyes && test "x
$CPP" = x
4039 #### Some systems specify a CC to use unless we are using GCC.
4040 #### Now that we know whether we are using GCC, we can decide whether
4041 #### to use that one.
4042 if test "x
$NON_GNU_CC" != x && test x$GCC != xyes &&
4043 test x$cc_specified != xyes
4048 if test x$GCC = xyes && test "x
$GCC_TEST_OPTIONS" != x
4050 CC="$CC $GCC_TEST_OPTIONS"
4053 if test x$GCC = x && test "x
$NON_GCC_TEST_OPTIONS" != x
4055 CC="$CC $NON_GCC_TEST_OPTIONS"
4059 ac_cpp='$CPP $CPPFLAGS'
4060 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4061 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4062 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4063 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor
" >&5
4064 $as_echo_n "checking how to run the C preprocessor...
" >&6; }
4065 # On Suns, sometimes $CPP names a directory.
4066 if test -n "$CPP" && test -d "$CPP"; then
4069 if test -z "$CPP"; then
4070 if test "${ac_cv_prog_CPP+set}" = set; then
4071 $as_echo_n "(cached
) " >&6
4073 # Double quotes because CPP needs to be expanded
4074 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib
/cpp
"
4077 for ac_c_preproc_warn_flag in '' yes
4079 # Use a header file that comes with gcc, so configuring glibc
4080 # with a fresh cross-compiler works.
4081 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4082 # <limits.h> exists even on freestanding compilers.
4083 # On the NeXT, cc -E runs the code through the compiler's parser,
4084 # not just through cpp. "Syntax error
" is here to catch this case.
4085 cat >conftest.$ac_ext <<_ACEOF
4088 cat confdefs.h >>conftest.$ac_ext
4089 cat >>conftest.$ac_ext <<_ACEOF
4090 /* end confdefs.h. */
4092 # include <limits.h>
4094 # include <assert.h>
4098 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4101 *) ac_try_echo=$ac_try;;
4103 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
4104 $as_echo "$ac_try_echo") >&5
4105 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4107 grep -v '^ *+' conftest.er1 >conftest.err
4109 cat conftest.err >&5
4110 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4111 (exit $ac_status); } >/dev/null && {
4112 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4113 test ! -s conftest.err
4117 $as_echo "$as_me: failed program was
:" >&5
4118 sed 's/^/| /' conftest.$ac_ext >&5
4120 # Broken: fails on valid input.
4124 rm -f conftest.err conftest.$ac_ext
4126 # OK, works on sane cases. Now check whether nonexistent headers
4127 # can be detected and how.
4128 cat >conftest.$ac_ext <<_ACEOF
4131 cat confdefs.h >>conftest.$ac_ext
4132 cat >>conftest.$ac_ext <<_ACEOF
4133 /* end confdefs.h. */
4134 #include <ac_nonexistent.h>
4136 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4139 *) ac_try_echo=$ac_try;;
4141 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
4142 $as_echo "$ac_try_echo") >&5
4143 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4145 grep -v '^ *+' conftest.er1 >conftest.err
4147 cat conftest.err >&5
4148 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4149 (exit $ac_status); } >/dev/null && {
4150 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4151 test ! -s conftest.err
4153 # Broken: success on invalid input.
4156 $as_echo "$as_me: failed program was
:" >&5
4157 sed 's/^/| /' conftest.$ac_ext >&5
4159 # Passes both tests.
4164 rm -f conftest.err conftest.$ac_ext
4167 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4168 rm -f conftest.err conftest.$ac_ext
4169 if $ac_preproc_ok; then
4181 { $as_echo "$as_me:$LINENO: result
: $CPP" >&5
4182 $as_echo "$CPP" >&6; }
4184 for ac_c_preproc_warn_flag in '' yes
4186 # Use a header file that comes with gcc, so configuring glibc
4187 # with a fresh cross-compiler works.
4188 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4189 # <limits.h> exists even on freestanding compilers.
4190 # On the NeXT, cc -E runs the code through the compiler's parser,
4191 # not just through cpp. "Syntax error
" is here to catch this case.
4192 cat >conftest.$ac_ext <<_ACEOF
4195 cat confdefs.h >>conftest.$ac_ext
4196 cat >>conftest.$ac_ext <<_ACEOF
4197 /* end confdefs.h. */
4199 # include <limits.h>
4201 # include <assert.h>
4205 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4208 *) ac_try_echo=$ac_try;;
4210 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
4211 $as_echo "$ac_try_echo") >&5
4212 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4214 grep -v '^ *+' conftest.er1 >conftest.err
4216 cat conftest.err >&5
4217 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4218 (exit $ac_status); } >/dev/null && {
4219 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4220 test ! -s conftest.err
4224 $as_echo "$as_me: failed program was
:" >&5
4225 sed 's/^/| /' conftest.$ac_ext >&5
4227 # Broken: fails on valid input.
4231 rm -f conftest.err conftest.$ac_ext
4233 # OK, works on sane cases. Now check whether nonexistent headers
4234 # can be detected and how.
4235 cat >conftest.$ac_ext <<_ACEOF
4238 cat confdefs.h >>conftest.$ac_ext
4239 cat >>conftest.$ac_ext <<_ACEOF
4240 /* end confdefs.h. */
4241 #include <ac_nonexistent.h>
4243 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4246 *) ac_try_echo=$ac_try;;
4248 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
4249 $as_echo "$ac_try_echo") >&5
4250 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4252 grep -v '^ *+' conftest.er1 >conftest.err
4254 cat conftest.err >&5
4255 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4256 (exit $ac_status); } >/dev/null && {
4257 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4258 test ! -s conftest.err
4260 # Broken: success on invalid input.
4263 $as_echo "$as_me: failed program was
:" >&5
4264 sed 's/^/| /' conftest.$ac_ext >&5
4266 # Passes both tests.
4271 rm -f conftest.err conftest.$ac_ext
4274 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4275 rm -f conftest.err conftest.$ac_ext
4276 if $ac_preproc_ok; then
4279 { { $as_echo "$as_me:$LINENO: error
: C preprocessor
\"$CPP\" fails sanity check
4280 See \
`config.log' for more details." >&5
4281 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4282 See \`config.log
' for more details." >&2;}
4283 { (exit 1); exit 1; }; }
4287 ac_cpp='$CPP $CPPFLAGS'
4288 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
4289 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
4290 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4293 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4294 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4295 if test "${ac_cv_path_GREP+set}" = set; then
4296 $as_echo_n "(cached) " >&6
4298 if test -z "$GREP"; then
4299 ac_path_GREP_found=false
4300 # Loop through the user's path and
test for each of PROGNAME-LIST
4301 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4302 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4305 test -z "$as_dir" && as_dir
=.
4306 for ac_prog
in grep ggrep
; do
4307 for ac_exec_ext
in '' $ac_executable_extensions; do
4308 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4309 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
4310 # Check for GNU ac_path_GREP and select it if it is found.
4311 # Check for GNU $ac_path_GREP
4312 case `"$ac_path_GREP" --version 2>&1` in
4314 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4317 $as_echo_n 0123456789 >"conftest.in"
4320 cat "conftest.in" "conftest.in" >"conftest.tmp"
4321 mv "conftest.tmp" "conftest.in"
4322 cp "conftest.in" "conftest.nl"
4323 $as_echo 'GREP' >> "conftest.nl"
4324 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4325 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4326 ac_count
=`expr $ac_count + 1`
4327 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4328 # Best one so far, save it but keep looking for a better one
4329 ac_cv_path_GREP
="$ac_path_GREP"
4330 ac_path_GREP_max
=$ac_count
4332 # 10*(2^10) chars as input seems more than enough
4333 test $ac_count -gt 10 && break
4335 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4338 $ac_path_GREP_found && break 3
4343 if test -z "$ac_cv_path_GREP"; then
4344 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4345 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4346 { (exit 1); exit 1; }; }
4349 ac_cv_path_GREP
=$GREP
4353 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4354 $as_echo "$ac_cv_path_GREP" >&6; }
4355 GREP
="$ac_cv_path_GREP"
4358 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
4359 $as_echo_n "checking for egrep... " >&6; }
4360 if test "${ac_cv_path_EGREP+set}" = set; then
4361 $as_echo_n "(cached) " >&6
4363 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4364 then ac_cv_path_EGREP
="$GREP -E"
4366 if test -z "$EGREP"; then
4367 ac_path_EGREP_found
=false
4368 # Loop through the user's path and test for each of PROGNAME-LIST
4369 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4370 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4373 test -z "$as_dir" && as_dir
=.
4374 for ac_prog
in egrep; do
4375 for ac_exec_ext
in '' $ac_executable_extensions; do
4376 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4377 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
4378 # Check for GNU ac_path_EGREP and select it if it is found.
4379 # Check for GNU $ac_path_EGREP
4380 case `"$ac_path_EGREP" --version 2>&1` in
4382 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4385 $as_echo_n 0123456789 >"conftest.in"
4388 cat "conftest.in" "conftest.in" >"conftest.tmp"
4389 mv "conftest.tmp" "conftest.in"
4390 cp "conftest.in" "conftest.nl"
4391 $as_echo 'EGREP' >> "conftest.nl"
4392 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4393 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4394 ac_count
=`expr $ac_count + 1`
4395 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4396 # Best one so far, save it but keep looking for a better one
4397 ac_cv_path_EGREP
="$ac_path_EGREP"
4398 ac_path_EGREP_max
=$ac_count
4400 # 10*(2^10) chars as input seems more than enough
4401 test $ac_count -gt 10 && break
4403 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4406 $ac_path_EGREP_found && break 3
4411 if test -z "$ac_cv_path_EGREP"; then
4412 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4413 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4414 { (exit 1); exit 1; }; }
4417 ac_cv_path_EGREP
=$EGREP
4422 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4423 $as_echo "$ac_cv_path_EGREP" >&6; }
4424 EGREP
="$ac_cv_path_EGREP"
4427 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4428 $as_echo_n "checking for ANSI C header files... " >&6; }
4429 if test "${ac_cv_header_stdc+set}" = set; then
4430 $as_echo_n "(cached) " >&6
4432 cat >conftest.
$ac_ext <<_ACEOF
4435 cat confdefs.h
>>conftest.
$ac_ext
4436 cat >>conftest.
$ac_ext <<_ACEOF
4437 /* end confdefs.h. */
4451 rm -f conftest.
$ac_objext
4452 if { (ac_try
="$ac_compile"
4454 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4455 *) ac_try_echo=$ac_try;;
4457 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4458 $as_echo "$ac_try_echo") >&5
4459 (eval "$ac_compile") 2>conftest.er1
4461 grep -v '^ *+' conftest.er1 >conftest.err
4463 cat conftest.err >&5
4464 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4465 (exit $ac_status); } && {
4466 test -z "$ac_c_werror_flag" ||
4467 test ! -s conftest.err
4468 } && test -s conftest.$ac_objext; then
4469 ac_cv_header_stdc=yes
4471 $as_echo "$as_me: failed program was:" >&5
4472 sed 's/^/| /' conftest.$ac_ext >&5
4474 ac_cv_header_stdc=no
4477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4479 if test $ac_cv_header_stdc = yes; then
4480 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4481 cat >conftest.$ac_ext <<_ACEOF
4484 cat confdefs.h >>conftest.$ac_ext
4485 cat >>conftest.$ac_ext <<_ACEOF
4486 /* end confdefs.h. */
4490 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4491 $EGREP "memchr" >/dev/null 2>&1; then
4494 ac_cv_header_stdc=no
4500 if test $ac_cv_header_stdc = yes; then
4501 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4502 cat >conftest.$ac_ext <<_ACEOF
4505 cat confdefs.h >>conftest.$ac_ext
4506 cat >>conftest.$ac_ext <<_ACEOF
4507 /* end confdefs.h. */
4511 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4512 $EGREP "free" >/dev/null 2>&1; then
4515 ac_cv_header_stdc=no
4521 if test $ac_cv_header_stdc = yes; then
4522 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4523 if test "$cross_compiling" = yes; then
4526 cat >conftest.$ac_ext <<_ACEOF
4529 cat confdefs.h >>conftest.$ac_ext
4530 cat >>conftest.$ac_ext <<_ACEOF
4531 /* end confdefs.h. */
4534 #if ((' ' & 0x0FF) == 0x020)
4535 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4536 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4538 # define ISLOWER(c) \
4539 (('a' <= (c) && (c) <= 'i') \
4540 || ('j' <= (c) && (c) <= 'r') \
4541 || ('s' <= (c) && (c) <= 'z'))
4542 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4545 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4550 for (i = 0; i < 256; i++)
4551 if (XOR (islower (i), ISLOWER (i))
4552 || toupper (i) != TOUPPER (i))
4557 rm -f conftest$ac_exeext
4558 if { (ac_try="$ac_link"
4560 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4561 *) ac_try_echo
=$ac_try;;
4563 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4564 $as_echo "$ac_try_echo") >&5
4565 (eval "$ac_link") 2>&5
4567 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4568 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4569 { (case "(($ac_try" in
4570 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4571 *) ac_try_echo=$ac_try;;
4573 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4574 $as_echo "$ac_try_echo") >&5
4575 (eval "$ac_try") 2>&5
4577 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4578 (exit $ac_status); }; }; then
4581 $as_echo "$as_me: program exited with status $ac_status" >&5
4582 $as_echo "$as_me: failed program was:" >&5
4583 sed 's/^/| /' conftest.$ac_ext >&5
4586 ac_cv_header_stdc=no
4588 rm -rf conftest.dSYM
4589 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4595 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4596 $as_echo "$ac_cv_header_stdc" >&6; }
4597 if test $ac_cv_header_stdc = yes; then
4599 cat >>confdefs.h <<\_ACEOF
4600 #define STDC_HEADERS 1
4605 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4615 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4616 inttypes.h stdint.h unistd.h
4618 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
4619 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4620 $as_echo_n "checking for $ac_header... " >&6; }
4621 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4622 $as_echo_n "(cached) " >&6
4624 cat >conftest.$ac_ext <<_ACEOF
4627 cat confdefs.h >>conftest.$ac_ext
4628 cat >>conftest.$ac_ext <<_ACEOF
4629 /* end confdefs.h. */
4630 $ac_includes_default
4632 #include <$ac_header>
4634 rm -f conftest.$ac_objext
4635 if { (ac_try="$ac_compile"
4637 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4638 *) ac_try_echo
=$ac_try;;
4640 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4641 $as_echo "$ac_try_echo") >&5
4642 (eval "$ac_compile") 2>conftest.er1
4644 grep -v '^ *+' conftest.er1
>conftest.err
4646 cat conftest.err
>&5
4647 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4648 (exit $ac_status); } && {
4649 test -z "$ac_c_werror_flag" ||
4650 test ! -s conftest.err
4651 } && test -s conftest.
$ac_objext; then
4652 eval "$as_ac_Header=yes"
4654 $as_echo "$as_me: failed program was:" >&5
4655 sed 's/^/| /' conftest.
$ac_ext >&5
4657 eval "$as_ac_Header=no"
4660 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4662 ac_res
=`eval 'as_val=${'$as_ac_Header'}
4663 $as_echo "$as_val"'`
4664 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4665 $as_echo "$ac_res" >&6; }
4666 if test `eval 'as_val=${'$as_ac_Header'}
4667 $as_echo "$as_val"'` = yes; then
4668 cat >>confdefs.h
<<_ACEOF
4669 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4678 if test "${ac_cv_header_minix_config_h+set}" = set; then
4679 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4680 $as_echo_n "checking for minix/config.h... " >&6; }
4681 if test "${ac_cv_header_minix_config_h+set}" = set; then
4682 $as_echo_n "(cached) " >&6
4684 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4685 $as_echo "$ac_cv_header_minix_config_h" >&6; }
4687 # Is the header compilable?
4688 { $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4689 $as_echo_n "checking minix/config.h usability... " >&6; }
4690 cat >conftest.
$ac_ext <<_ACEOF
4693 cat confdefs.h
>>conftest.
$ac_ext
4694 cat >>conftest.
$ac_ext <<_ACEOF
4695 /* end confdefs.h. */
4696 $ac_includes_default
4697 #include <minix/config.h>
4699 rm -f conftest.
$ac_objext
4700 if { (ac_try
="$ac_compile"
4702 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4703 *) ac_try_echo=$ac_try;;
4705 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4706 $as_echo "$ac_try_echo") >&5
4707 (eval "$ac_compile") 2>conftest.er1
4709 grep -v '^ *+' conftest.er1 >conftest.err
4711 cat conftest.err >&5
4712 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4713 (exit $ac_status); } && {
4714 test -z "$ac_c_werror_flag" ||
4715 test ! -s conftest.err
4716 } && test -s conftest.$ac_objext; then
4717 ac_header_compiler=yes
4719 $as_echo "$as_me: failed program was:" >&5
4720 sed 's/^/| /' conftest.$ac_ext >&5
4722 ac_header_compiler=no
4725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4726 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4727 $as_echo "$ac_header_compiler" >&6; }
4729 # Is the header present?
4730 { $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4731 $as_echo_n "checking minix/config.h presence... " >&6; }
4732 cat >conftest.$ac_ext <<_ACEOF
4735 cat confdefs.h >>conftest.$ac_ext
4736 cat >>conftest.$ac_ext <<_ACEOF
4737 /* end confdefs.h. */
4738 #include <minix/config.h>
4740 if { (ac_try="$ac_cpp conftest.$ac_ext"
4742 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4743 *) ac_try_echo
=$ac_try;;
4745 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4746 $as_echo "$ac_try_echo") >&5
4747 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4749 grep -v '^ *+' conftest.er1
>conftest.err
4751 cat conftest.err
>&5
4752 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4753 (exit $ac_status); } >/dev
/null
&& {
4754 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4755 test ! -s conftest.err
4757 ac_header_preproc
=yes
4759 $as_echo "$as_me: failed program was:" >&5
4760 sed 's/^/| /' conftest.
$ac_ext >&5
4762 ac_header_preproc
=no
4765 rm -f conftest.err conftest.
$ac_ext
4766 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4767 $as_echo "$ac_header_preproc" >&6; }
4769 # So? What about this header?
4770 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4772 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4773 $as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4774 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4775 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4776 ac_header_preproc
=yes
4779 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4780 $as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4781 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
4782 $as_echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
4783 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4784 $as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4785 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
4786 $as_echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
4787 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4788 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4789 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4790 $as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4794 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4795 $as_echo_n "checking for minix/config.h... " >&6; }
4796 if test "${ac_cv_header_minix_config_h+set}" = set; then
4797 $as_echo_n "(cached) " >&6
4799 ac_cv_header_minix_config_h
=$ac_header_preproc
4801 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4802 $as_echo "$ac_cv_header_minix_config_h" >&6; }
4805 if test $ac_cv_header_minix_config_h = yes; then
4812 if test "$MINIX" = yes; then
4814 cat >>confdefs.h
<<\_ACEOF
4815 #define _POSIX_SOURCE 1
4819 cat >>confdefs.h
<<\_ACEOF
4820 #define _POSIX_1_SOURCE 2
4824 cat >>confdefs.h
<<\_ACEOF
4832 { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4833 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4834 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
4835 $as_echo_n "(cached) " >&6
4837 cat >conftest.
$ac_ext <<_ACEOF
4840 cat confdefs.h
>>conftest.
$ac_ext
4841 cat >>conftest.
$ac_ext <<_ACEOF
4842 /* end confdefs.h. */
4844 # define __EXTENSIONS__ 1
4845 $ac_includes_default
4854 rm -f conftest.
$ac_objext
4855 if { (ac_try
="$ac_compile"
4857 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4858 *) ac_try_echo=$ac_try;;
4860 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4861 $as_echo "$ac_try_echo") >&5
4862 (eval "$ac_compile") 2>conftest.er1
4864 grep -v '^ *+' conftest.er1 >conftest.err
4866 cat conftest.err >&5
4867 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4868 (exit $ac_status); } && {
4869 test -z "$ac_c_werror_flag" ||
4870 test ! -s conftest.err
4871 } && test -s conftest.$ac_objext; then
4872 ac_cv_safe_to_define___extensions__=yes
4874 $as_echo "$as_me: failed program was:" >&5
4875 sed 's/^/| /' conftest.$ac_ext >&5
4877 ac_cv_safe_to_define___extensions__=no
4880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4882 { $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4883 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4884 test $ac_cv_safe_to_define___extensions__ = yes &&
4885 cat >>confdefs.h <<\_ACEOF
4886 #define __EXTENSIONS__ 1
4889 cat >>confdefs.h <<\_ACEOF
4890 #define _ALL_SOURCE 1
4893 cat >>confdefs.h <<\_ACEOF
4894 #define _GNU_SOURCE 1
4897 cat >>confdefs.h <<\_ACEOF
4898 #define _POSIX_PTHREAD_SEMANTICS 1
4901 cat >>confdefs.h <<\_ACEOF
4902 #define _TANDEM_SOURCE 1
4907 ### Use -Wno-pointer-sign if the compiler supports it
4908 { $as_echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
4909 $as_echo_n "checking whether gcc understands -Wno-pointer-sign... " >&6; }
4910 SAVE_CFLAGS="$CFLAGS"
4911 CFLAGS="$CFLAGS -Wno-pointer-sign"
4912 cat >conftest.$ac_ext <<_ACEOF
4915 cat confdefs.h >>conftest.$ac_ext
4916 cat >>conftest.$ac_ext <<_ACEOF
4917 /* end confdefs.h. */
4927 rm -f conftest.$ac_objext
4928 if { (ac_try="$ac_compile"
4930 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4931 *) ac_try_echo
=$ac_try;;
4933 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4934 $as_echo "$ac_try_echo") >&5
4935 (eval "$ac_compile") 2>conftest.er1
4937 grep -v '^ *+' conftest.er1
>conftest.err
4939 cat conftest.err
>&5
4940 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4941 (exit $ac_status); } && {
4942 test -z "$ac_c_werror_flag" ||
4943 test ! -s conftest.err
4944 } && test -s conftest.
$ac_objext; then
4947 $as_echo "$as_me: failed program was:" >&5
4948 sed 's/^/| /' conftest.
$ac_ext >&5
4953 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4954 if test $has_option = yes; then
4955 C_WARNINGS_SWITCH
="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4957 { $as_echo "$as_me:$LINENO: result: $has_option" >&5
4958 $as_echo "$has_option" >&6; }
4959 CFLAGS
="$SAVE_CFLAGS"
4963 ### Use -Wdeclaration-after-statement if the compiler supports it
4964 { $as_echo "$as_me:$LINENO: checking whether gcc understands -Wdeclaration-after-statement" >&5
4965 $as_echo_n "checking whether gcc understands -Wdeclaration-after-statement... " >&6; }
4966 SAVE_CFLAGS
="$CFLAGS"
4967 CFLAGS
="$CFLAGS -Wdeclaration-after-statement"
4968 cat >conftest.
$ac_ext <<_ACEOF
4971 cat confdefs.h
>>conftest.
$ac_ext
4972 cat >>conftest.
$ac_ext <<_ACEOF
4973 /* end confdefs.h. */
4983 rm -f conftest.
$ac_objext
4984 if { (ac_try
="$ac_compile"
4986 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4987 *) ac_try_echo=$ac_try;;
4989 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4990 $as_echo "$ac_try_echo") >&5
4991 (eval "$ac_compile") 2>conftest.er1
4993 grep -v '^ *+' conftest.er1 >conftest.err
4995 cat conftest.err >&5
4996 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4997 (exit $ac_status); } && {
4998 test -z "$ac_c_werror_flag" ||
4999 test ! -s conftest.err
5000 } && test -s conftest.$ac_objext; then
5003 $as_echo "$as_me: failed program was:" >&5
5004 sed 's/^/| /' conftest.$ac_ext >&5
5009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5010 if test $has_option = yes; then
5011 C_WARNINGS_SWITCH="-Wdeclaration-after-statement $C_WARNINGS_SWITCH"
5013 { $as_echo "$as_me:$LINENO: result: $has_option" >&5
5014 $as_echo "$has_option" >&6; }
5015 CFLAGS="$SAVE_CFLAGS"
5019 #### Some other nice autoconf tests.
5021 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
5022 $as_echo_n "checking whether ln -s works... " >&6; }
5024 if test "$LN_S" = "ln -s"; then
5025 { $as_echo "$as_me:$LINENO: result: yes" >&5
5026 $as_echo "yes" >&6; }
5028 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5029 $as_echo "no, using $LN_S" >&6; }
5033 ac_cpp='$CPP $CPPFLAGS'
5034 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5035 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5036 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5037 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5038 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5039 # On Suns, sometimes $CPP names a directory.
5040 if test -n "$CPP" && test -d "$CPP"; then
5043 if test -z "$CPP"; then
5044 if test "${ac_cv_prog_CPP+set}" = set; then
5045 $as_echo_n "(cached) " >&6
5047 # Double quotes because CPP needs to be expanded
5048 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5051 for ac_c_preproc_warn_flag in '' yes
5053 # Use a header file that comes with gcc, so configuring glibc
5054 # with a fresh cross-compiler works.
5055 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5056 # <limits.h> exists even on freestanding compilers.
5057 # On the NeXT, cc -E runs the code through the compiler's parser,
5058 # not just through cpp. "Syntax error" is here to catch this case.
5059 cat >conftest.$ac_ext <<_ACEOF
5062 cat confdefs.h >>conftest.$ac_ext
5063 cat >>conftest.$ac_ext <<_ACEOF
5064 /* end confdefs.h. */
5066 # include <limits.h>
5068 # include <assert.h>
5072 if { (ac_try="$ac_cpp conftest.$ac_ext"
5074 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5075 *) ac_try_echo
=$ac_try;;
5077 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
5078 $as_echo "$ac_try_echo") >&5
5079 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5081 grep -v '^ *+' conftest.er1
>conftest.err
5083 cat conftest.err
>&5
5084 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5085 (exit $ac_status); } >/dev
/null
&& {
5086 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5087 test ! -s conftest.err
5091 $as_echo "$as_me: failed program was:" >&5
5092 sed 's/^/| /' conftest.
$ac_ext >&5
5094 # Broken: fails on valid input.
5098 rm -f conftest.err conftest.
$ac_ext
5100 # OK, works on sane cases. Now check whether nonexistent headers
5101 # can be detected and how.
5102 cat >conftest.
$ac_ext <<_ACEOF
5105 cat confdefs.h
>>conftest.
$ac_ext
5106 cat >>conftest.
$ac_ext <<_ACEOF
5107 /* end confdefs.h. */
5108 #include <ac_nonexistent.h>
5110 if { (ac_try
="$ac_cpp conftest.$ac_ext"
5112 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5113 *) ac_try_echo=$ac_try;;
5115 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5116 $as_echo "$ac_try_echo") >&5
5117 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5119 grep -v '^ *+' conftest.er1 >conftest.err
5121 cat conftest.err >&5
5122 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5123 (exit $ac_status); } >/dev/null && {
5124 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5125 test ! -s conftest.err
5127 # Broken: success on invalid input.
5130 $as_echo "$as_me: failed program was:" >&5
5131 sed 's/^/| /' conftest.$ac_ext >&5
5133 # Passes both tests.
5138 rm -f conftest.err conftest.$ac_ext
5141 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5142 rm -f conftest.err conftest.
$ac_ext
5143 if $ac_preproc_ok; then
5155 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
5156 $as_echo "$CPP" >&6; }
5158 for ac_c_preproc_warn_flag
in '' yes
5160 # Use a header file that comes with gcc, so configuring glibc
5161 # with a fresh cross-compiler works.
5162 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5163 # <limits.h> exists even on freestanding compilers.
5164 # On the NeXT, cc -E runs the code through the compiler's parser,
5165 # not just through cpp. "Syntax error" is here to catch this case.
5166 cat >conftest.
$ac_ext <<_ACEOF
5169 cat confdefs.h
>>conftest.
$ac_ext
5170 cat >>conftest.
$ac_ext <<_ACEOF
5171 /* end confdefs.h. */
5173 # include <limits.h>
5175 # include <assert.h>
5179 if { (ac_try
="$ac_cpp conftest.$ac_ext"
5181 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5182 *) ac_try_echo=$ac_try;;
5184 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5185 $as_echo "$ac_try_echo") >&5
5186 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5188 grep -v '^ *+' conftest.er1 >conftest.err
5190 cat conftest.err >&5
5191 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5192 (exit $ac_status); } >/dev/null && {
5193 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5194 test ! -s conftest.err
5198 $as_echo "$as_me: failed program was:" >&5
5199 sed 's/^/| /' conftest.$ac_ext >&5
5201 # Broken: fails on valid input.
5205 rm -f conftest.err conftest.$ac_ext
5207 # OK, works on sane cases. Now check whether nonexistent headers
5208 # can be detected and how.
5209 cat >conftest.$ac_ext <<_ACEOF
5212 cat confdefs.h >>conftest.$ac_ext
5213 cat >>conftest.$ac_ext <<_ACEOF
5214 /* end confdefs.h. */
5215 #include <ac_nonexistent.h>
5217 if { (ac_try="$ac_cpp conftest.$ac_ext"
5219 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5220 *) ac_try_echo
=$ac_try;;
5222 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
5223 $as_echo "$ac_try_echo") >&5
5224 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5226 grep -v '^ *+' conftest.er1
>conftest.err
5228 cat conftest.err
>&5
5229 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5230 (exit $ac_status); } >/dev
/null
&& {
5231 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5232 test ! -s conftest.err
5234 # Broken: success on invalid input.
5237 $as_echo "$as_me: failed program was:" >&5
5238 sed 's/^/| /' conftest.
$ac_ext >&5
5240 # Passes both tests.
5245 rm -f conftest.err conftest.
$ac_ext
5248 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5249 rm -f conftest.err conftest.
$ac_ext
5250 if $ac_preproc_ok; then
5253 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5254 See \`config.log' for more details." >&5
5255 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5256 See \`config.log' for more details." >&2;}
5257 { (exit 1); exit 1; }; }
5261 ac_cpp
='$CPP $CPPFLAGS'
5262 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5263 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5264 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5266 # Find a good install program. We prefer a C program (faster),
5267 # so one script is as good as another. But avoid the broken or
5268 # incompatible versions:
5269 # SysV /etc/install, /usr/sbin/install
5270 # SunOS /usr/etc/install
5271 # IRIX /sbin/install
5273 # AmigaOS /C/install, which installs bootblocks on floppy discs
5274 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5275 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5276 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5277 # OS/2's system install, which has a completely different semantic
5278 # ./install, which can be erroneously created by make from ./install.sh.
5279 # Reject install programs that cannot install multiple files.
5280 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5281 $as_echo_n "checking for a BSD-compatible install... " >&6; }
5282 if test -z "$INSTALL"; then
5283 if test "${ac_cv_path_install+set}" = set; then
5284 $as_echo_n "(cached) " >&6
5286 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5290 test -z "$as_dir" && as_dir
=.
5291 # Account for people who put trailing slashes in PATH elements.
5293 .
/ | .
// |
/cC
/* | \
5294 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
5295 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
5298 # OSF1 and SCO ODT 3.0 have their own names for install.
5299 # Don't use installbsd from OSF since it installs stuff as root
5301 for ac_prog
in ginstall scoinst
install; do
5302 for ac_exec_ext
in '' $ac_executable_extensions; do
5303 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5304 if test $ac_prog = install &&
5305 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
5306 # AIX install. It has an incompatible calling convention.
5308 elif test $ac_prog = install &&
5309 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
5310 # program-specific install script used by HP pwplus--don't use.
5313 rm -rf conftest.one conftest.two conftest.dir
5314 echo one
> conftest.one
5315 echo two
> conftest.two
5317 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
5318 test -s conftest.one
&& test -s conftest.two
&&
5319 test -s conftest.dir
/conftest.one
&&
5320 test -s conftest.dir
/conftest.two
5322 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
5335 rm -rf conftest.one conftest.two conftest.dir
5338 if test "${ac_cv_path_install+set}" = set; then
5339 INSTALL
=$ac_cv_path_install
5341 # As a last resort, use the slow shell script. Don't cache a
5342 # value for INSTALL within a source directory, because that will
5343 # break other packages using the cache if that directory is
5344 # removed, or if the value is a relative name.
5345 INSTALL
=$ac_install_sh
5348 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
5349 $as_echo "$INSTALL" >&6; }
5351 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5352 # It thinks the first close brace ends the variable substitution.
5353 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
5355 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
5357 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
5359 if test "x$RANLIB" = x
; then
5360 if test -n "$ac_tool_prefix"; then
5361 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5362 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
5363 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5364 $as_echo_n "checking for $ac_word... " >&6; }
5365 if test "${ac_cv_prog_RANLIB+set}" = set; then
5366 $as_echo_n "(cached) " >&6
5368 if test -n "$RANLIB"; then
5369 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
5371 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5375 test -z "$as_dir" && as_dir
=.
5376 for ac_exec_ext
in '' $ac_executable_extensions; do
5377 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5378 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
5379 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5388 RANLIB
=$ac_cv_prog_RANLIB
5389 if test -n "$RANLIB"; then
5390 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5391 $as_echo "$RANLIB" >&6; }
5393 { $as_echo "$as_me:$LINENO: result: no" >&5
5394 $as_echo "no" >&6; }
5399 if test -z "$ac_cv_prog_RANLIB"; then
5400 ac_ct_RANLIB
=$RANLIB
5401 # Extract the first word of "ranlib", so it can be a program name with args.
5402 set dummy ranlib
; ac_word
=$2
5403 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5404 $as_echo_n "checking for $ac_word... " >&6; }
5405 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5406 $as_echo_n "(cached) " >&6
5408 if test -n "$ac_ct_RANLIB"; then
5409 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
5411 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5415 test -z "$as_dir" && as_dir
=.
5416 for ac_exec_ext
in '' $ac_executable_extensions; do
5417 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5418 ac_cv_prog_ac_ct_RANLIB
="ranlib"
5419 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5428 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
5429 if test -n "$ac_ct_RANLIB"; then
5430 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5431 $as_echo "$ac_ct_RANLIB" >&6; }
5433 { $as_echo "$as_me:$LINENO: result: no" >&5
5434 $as_echo "no" >&6; }
5437 if test "x$ac_ct_RANLIB" = x
; then
5440 case $cross_compiling:$ac_tool_warned in
5442 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5443 whose name does not start with the host triplet. If you think this
5444 configuration is useful to you, please write to autoconf@gnu.org." >&5
5445 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5446 whose name does not start with the host triplet. If you think this
5447 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5448 ac_tool_warned
=yes ;;
5450 RANLIB
=$ac_ct_RANLIB
5453 RANLIB
="$ac_cv_prog_RANLIB"
5457 # Extract the first word of "install-info", so it can be a program name with args.
5458 set dummy install-info
; ac_word
=$2
5459 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5460 $as_echo_n "checking for $ac_word... " >&6; }
5461 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5462 $as_echo_n "(cached) " >&6
5464 case $INSTALL_INFO in
5466 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5469 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5473 test -z "$as_dir" && as_dir
=.
5474 for ac_exec_ext
in '' $ac_executable_extensions; do
5475 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5476 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5477 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5487 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5488 if test -n "$INSTALL_INFO"; then
5489 { $as_echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5490 $as_echo "$INSTALL_INFO" >&6; }
5492 { $as_echo "$as_me:$LINENO: result: no" >&5
5493 $as_echo "no" >&6; }
5497 # Extract the first word of "install-info", so it can be a program name with args.
5498 set dummy install-info
; ac_word
=$2
5499 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5500 $as_echo_n "checking for $ac_word... " >&6; }
5501 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5502 $as_echo_n "(cached) " >&6
5504 case $INSTALL_INFO in
5506 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5509 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5510 for as_dir
in /usr
/sbin
5513 test -z "$as_dir" && as_dir
=.
5514 for ac_exec_ext
in '' $ac_executable_extensions; do
5515 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5516 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5517 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5527 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5528 if test -n "$INSTALL_INFO"; then
5529 { $as_echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5530 $as_echo "$INSTALL_INFO" >&6; }
5532 { $as_echo "$as_me:$LINENO: result: no" >&5
5533 $as_echo "no" >&6; }
5537 # Extract the first word of "install-info", so it can be a program name with args.
5538 set dummy install-info
; ac_word
=$2
5539 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5540 $as_echo_n "checking for $ac_word... " >&6; }
5541 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5542 $as_echo_n "(cached) " >&6
5544 case $INSTALL_INFO in
5546 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5549 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5553 test -z "$as_dir" && as_dir
=.
5554 for ac_exec_ext
in '' $ac_executable_extensions; do
5555 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5556 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5557 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5564 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO
=":"
5568 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5569 if test -n "$INSTALL_INFO"; then
5570 { $as_echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5571 $as_echo "$INSTALL_INFO" >&6; }
5573 { $as_echo "$as_me:$LINENO: result: no" >&5
5574 $as_echo "no" >&6; }
5578 # Extract the first word of "gzip", so it can be a program name with args.
5579 set dummy
gzip; ac_word
=$2
5580 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5581 $as_echo_n "checking for $ac_word... " >&6; }
5582 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
5583 $as_echo_n "(cached) " >&6
5587 ac_cv_path_GZIP_PROG
="$GZIP_PROG" # Let the user override the test with a path.
5590 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5594 test -z "$as_dir" && as_dir
=.
5595 for ac_exec_ext
in '' $ac_executable_extensions; do
5596 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5597 ac_cv_path_GZIP_PROG
="$as_dir/$ac_word$ac_exec_ext"
5598 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5608 GZIP_PROG
=$ac_cv_path_GZIP_PROG
5609 if test -n "$GZIP_PROG"; then
5610 { $as_echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
5611 $as_echo "$GZIP_PROG" >&6; }
5613 { $as_echo "$as_me:$LINENO: result: no" >&5
5614 $as_echo "no" >&6; }
5620 ## Need makeinfo >= 4.6 (?) to build the manuals.
5621 # Extract the first word of "makeinfo", so it can be a program name with args.
5622 set dummy makeinfo
; ac_word
=$2
5623 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5624 $as_echo_n "checking for $ac_word... " >&6; }
5625 if test "${ac_cv_path_MAKEINFO+set}" = set; then
5626 $as_echo_n "(cached) " >&6
5630 ac_cv_path_MAKEINFO
="$MAKEINFO" # Let the user override the test with a path.
5633 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5637 test -z "$as_dir" && as_dir
=.
5638 for ac_exec_ext
in '' $ac_executable_extensions; do
5639 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5640 ac_cv_path_MAKEINFO
="$as_dir/$ac_word$ac_exec_ext"
5641 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5648 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO
="no"
5652 MAKEINFO
=$ac_cv_path_MAKEINFO
5653 if test -n "$MAKEINFO"; then
5654 { $as_echo "$as_me:$LINENO: result: $MAKEINFO" >&5
5655 $as_echo "$MAKEINFO" >&6; }
5657 { $as_echo "$as_me:$LINENO: result: no" >&5
5658 $as_echo "no" >&6; }
5662 if test "$MAKEINFO" != "no" && \
5663 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
5667 ## Makeinfo is unusual. For a released Emacs, the manuals are
5668 ## pre-built, and not deleted by the normal clean rules. makeinfo is
5669 ## therefore in the category of "special tools" not normally required, which
5670 ## configure does not have to check for (eg autoconf itself).
5671 ## In a Bazaar checkout on the other hand, the manuals are not included.
5672 ## So makeinfo is a requirement to build from Bazaar, and configure
5673 ## should test for it as it does for any other build requirement.
5674 ## We use the presence of $srcdir/info/emacs to distinguish a release,
5675 ## with pre-built manuals, from a Bazaar checkout.
5676 if test "$MAKEINFO" = "no"; then
5677 if test "x${with_makeinfo}" = "xno"; then
5679 elif ! test -e $srcdir/info
/emacs
; then
5680 { { $as_echo "$as_me:$LINENO: error: You do not seem to have makeinfo >= 4.6, and your
5681 source tree does not seem to have pre-built manuals in the \`info' directory.
5682 Either install a suitable version of makeinfo, or re-run configure
5683 with the \`--without-makeinfo' option to build without the manuals. " >&5
5684 $as_echo "$as_me: error: You do not seem to have makeinfo >= 4.6, and your
5685 source tree does not seem to have pre-built manuals in the \`info' directory.
5686 Either install a suitable version of makeinfo, or re-run configure
5687 with the \`--without-makeinfo' option to build without the manuals. " >&2;}
5688 { (exit 1); exit 1; }; }
5693 if test x
$GCC = xyes
&& test "x$GCC_LINK_TEST_OPTIONS" != x
5695 ac_link
="$ac_link $GCC_LINK_TEST_OPTIONS"
5698 if test x
$GCC = x
&& test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5700 ac_link
="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5704 late_LDFLAGS
=$LDFLAGS
5705 if test "$GCC" = yes; then
5706 LDFLAGS
="$LDFLAGS -Wl,-znocombreloc"
5708 LDFLAGS
="$LDFLAGS -znocombreloc"
5711 { $as_echo "$as_me:$LINENO: checking for -znocombreloc" >&5
5712 $as_echo_n "checking for -znocombreloc... " >&6; }
5713 cat >conftest.
$ac_ext <<_ACEOF
5716 rm -f conftest.
$ac_objext conftest
$ac_exeext
5717 if { (ac_try
="$ac_link"
5719 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5720 *) ac_try_echo=$ac_try;;
5722 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5723 $as_echo "$ac_try_echo") >&5
5724 (eval "$ac_link") 2>conftest.er1
5726 grep -v '^ *+' conftest.er1 >conftest.err
5728 cat conftest.err >&5
5729 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5730 (exit $ac_status); } && {
5731 test -z "$ac_c_werror_flag" ||
5732 test ! -s conftest.err
5733 } && test -s conftest$ac_exeext && {
5734 test "$cross_compiling" = yes ||
5735 $as_test_x conftest$ac_exeext
5737 { $as_echo "$as_me:$LINENO: result: yes" >&5
5738 $as_echo "yes" >&6; }
5740 $as_echo "$as_me: failed program was:" >&5
5741 sed 's/^/| /' conftest.$ac_ext >&5
5743 LDFLAGS=$late_LDFLAGS
5744 { $as_echo "$as_me:$LINENO: result: no" >&5
5745 $as_echo "no" >&6; }
5748 rm -rf conftest.dSYM
5749 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5750 conftest$ac_exeext conftest.$ac_ext
5752 #### Extract some information from the operating system and machine files.
5754 { $as_echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
5755 - which libraries the lib-src programs will want, and
5756 - whether the GNU malloc routines are usable..." >&5
5757 $as_echo "$as_me: checking the machine- and system-dependent files to find out
5758 - which libraries the lib-src programs will want, and
5759 - whether the GNU malloc routines are usable..." >&6;}
5761 ### First figure out CFLAGS (which we use for running the compiler here)
5762 ### and REAL_CFLAGS (which we use for real compilation).
5763 ### The two are the same except on a few systems, where they are made
5764 ### different to work around various lossages. For example,
5765 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5766 ### as implying static linking.
5768 ### If the CFLAGS env var is specified, we use that value
5769 ### instead of the default.
5771 ### It's not important that this name contain the PID; you can't run
5772 ### two configures in the same directory and have anything work
5774 tempcname="conftest.c"
5777 #include "'${srcdir}'/src/'${opsysfile}'"
5778 #include "'${srcdir}'/src/'${machfile}'"
5779 #ifndef LIBS_MACHINE
5780 #define LIBS_MACHINE
5785 #ifndef C_SWITCH_SYSTEM
5786 #define C_SWITCH_SYSTEM
5788 #ifndef C_SWITCH_MACHINE
5789 #define C_SWITCH_MACHINE
5791 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
5792 configure___ c_switch_system=C_SWITCH_SYSTEM
5793 configure___ c_switch_machine=C_SWITCH_MACHINE
5796 #define LIB_X11_LIB -lX11
5799 configure___ LIBX=LIB_X11_LIB
5802 configure___ unexec=UNEXEC
5804 configure___ unexec=unexec.o
5807 #ifdef SYSTEM_MALLOC
5808 configure___ system_malloc=yes
5810 configure___ system_malloc=no
5813 #ifdef USE_MMAP_FOR_BUFFERS
5814 configure___ use_mmap_for_buffers=yes
5816 configure___ use_mmap_for_buffers=no
5819 #ifndef C_DEBUG_SWITCH
5820 #define C_DEBUG_SWITCH -g
5823 #ifndef C_OPTIMIZE_SWITCH
5825 #define C_OPTIMIZE_SWITCH -O2
5827 #define C_OPTIMIZE_SWITCH -O
5831 #ifndef C_WARNINGS_SWITCH
5832 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5835 #ifndef LD_SWITCH_MACHINE
5836 #define LD_SWITCH_MACHINE
5839 #ifndef LD_SWITCH_SYSTEM
5840 #define LD_SWITCH_SYSTEM
5843 #ifndef LD_SWITCH_X_SITE_AUX
5844 #define LD_SWITCH_X_SITE_AUX
5847 configure___ ld_switch_system=LD_SWITCH_SYSTEM
5848 configure___ ld_switch_machine=LD_SWITCH_MACHINE
5850 #ifdef THIS_IS_CONFIGURE
5852 /* Get the CFLAGS for tests in configure. */
5854 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
5856 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5859 #else /* not THIS_IS_CONFIGURE */
5861 /* Get the CFLAGS for real compilation. */
5863 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH ${PROFILING_CFLAGS} '${SPECIFIED_CFLAGS}'
5865 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5868 #endif /* not THIS_IS_CONFIGURE */
5871 LDFLAGS="${LDFLAGS} ${PROFILING_LDFLAGS}"
5873 # The value of CPP is a quoted variable reference, so we need to do this
5874 # to get its actual value...
5875 CPP=`eval "echo $CPP"`
5876 eval `${CPP} -Isrc ${tempcname} \
5877 |
sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5878 if test "x$SPECIFIED_CFLAGS" = x; then
5879 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5880 |
sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5882 REAL_CFLAGS="$CFLAGS"
5886 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
5888 ### Make sure subsequent tests use flags consistent with the build flags.
5890 if test x"${OVERRIDE_CPPFLAGS}" != x; then
5891 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
5893 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
5898 # Check whether --enable-largefile was given.
5899 if test "${enable_largefile+set}" = set; then
5900 enableval=$enable_largefile;
5903 if test "$enable_largefile" != no; then
5905 { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5906 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5907 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5908 $as_echo_n "(cached) " >&6
5910 ac_cv_sys_largefile_CC=no
5911 if test "$GCC" != yes; then
5914 # IRIX 6.2 and later do not support large files by default,
5915 # so use the C compiler's -n32 option if that helps.
5916 cat >conftest.$ac_ext <<_ACEOF
5919 cat confdefs.h >>conftest.$ac_ext
5920 cat >>conftest.$ac_ext <<_ACEOF
5921 /* end confdefs.h. */
5922 #include <sys/types.h>
5923 /* Check that off_t can represent 2**63 - 1 correctly.
5924 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5925 since some C++ compilers masquerading as C compilers
5926 incorrectly reject 9223372036854775807. */
5927 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5928 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5929 && LARGE_OFF_T % 2147483647 == 1)
5939 rm -f conftest.$ac_objext
5940 if { (ac_try="$ac_compile"
5942 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5943 *) ac_try_echo
=$ac_try;;
5945 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
5946 $as_echo "$ac_try_echo") >&5
5947 (eval "$ac_compile") 2>conftest.er1
5949 grep -v '^ *+' conftest.er1
>conftest.err
5951 cat conftest.err
>&5
5952 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5953 (exit $ac_status); } && {
5954 test -z "$ac_c_werror_flag" ||
5955 test ! -s conftest.err
5956 } && test -s conftest.
$ac_objext; then
5959 $as_echo "$as_me: failed program was:" >&5
5960 sed 's/^/| /' conftest.
$ac_ext >&5
5965 rm -f core conftest.err conftest.
$ac_objext
5967 rm -f conftest.
$ac_objext
5968 if { (ac_try
="$ac_compile"
5970 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5971 *) ac_try_echo=$ac_try;;
5973 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5974 $as_echo "$ac_try_echo") >&5
5975 (eval "$ac_compile") 2>conftest.er1
5977 grep -v '^ *+' conftest.er1 >conftest.err
5979 cat conftest.err >&5
5980 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5981 (exit $ac_status); } && {
5982 test -z "$ac_c_werror_flag" ||
5983 test ! -s conftest.err
5984 } && test -s conftest.$ac_objext; then
5985 ac_cv_sys_largefile_CC=' -n32'; break
5987 $as_echo "$as_me: failed program was:" >&5
5988 sed 's/^/| /' conftest.$ac_ext >&5
5993 rm -f core conftest.err conftest.$ac_objext
5997 rm -f conftest.$ac_ext
6000 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
6001 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6002 if test "$ac_cv_sys_largefile_CC" != no; then
6003 CC=$CC$ac_cv_sys_largefile_CC
6006 { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6007 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6008 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
6009 $as_echo_n "(cached) " >&6
6012 cat >conftest.$ac_ext <<_ACEOF
6015 cat confdefs.h >>conftest.$ac_ext
6016 cat >>conftest.$ac_ext <<_ACEOF
6017 /* end confdefs.h. */
6018 #include <sys/types.h>
6019 /* Check that off_t can represent 2**63 - 1 correctly.
6020 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6021 since some C++ compilers masquerading as C compilers
6022 incorrectly reject 9223372036854775807. */
6023 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6024 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6025 && LARGE_OFF_T % 2147483647 == 1)
6035 rm -f conftest.$ac_objext
6036 if { (ac_try="$ac_compile"
6038 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6039 *) ac_try_echo
=$ac_try;;
6041 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6042 $as_echo "$ac_try_echo") >&5
6043 (eval "$ac_compile") 2>conftest.er1
6045 grep -v '^ *+' conftest.er1
>conftest.err
6047 cat conftest.err
>&5
6048 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6049 (exit $ac_status); } && {
6050 test -z "$ac_c_werror_flag" ||
6051 test ! -s conftest.err
6052 } && test -s conftest.
$ac_objext; then
6053 ac_cv_sys_file_offset_bits
=no
; break
6055 $as_echo "$as_me: failed program was:" >&5
6056 sed 's/^/| /' conftest.
$ac_ext >&5
6061 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6062 cat >conftest.
$ac_ext <<_ACEOF
6065 cat confdefs.h
>>conftest.
$ac_ext
6066 cat >>conftest.
$ac_ext <<_ACEOF
6067 /* end confdefs.h. */
6068 #define _FILE_OFFSET_BITS 64
6069 #include <sys/types.h>
6070 /* Check that off_t can represent 2**63 - 1 correctly.
6071 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6072 since some C++ compilers masquerading as C compilers
6073 incorrectly reject 9223372036854775807. */
6074 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6075 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6076 && LARGE_OFF_T % 2147483647 == 1)
6086 rm -f conftest.
$ac_objext
6087 if { (ac_try
="$ac_compile"
6089 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6090 *) ac_try_echo=$ac_try;;
6092 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6093 $as_echo "$ac_try_echo") >&5
6094 (eval "$ac_compile") 2>conftest.er1
6096 grep -v '^ *+' conftest.er1 >conftest.err
6098 cat conftest.err >&5
6099 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6100 (exit $ac_status); } && {
6101 test -z "$ac_c_werror_flag" ||
6102 test ! -s conftest.err
6103 } && test -s conftest.$ac_objext; then
6104 ac_cv_sys_file_offset_bits=64; break
6106 $as_echo "$as_me: failed program was:" >&5
6107 sed 's/^/| /' conftest.$ac_ext >&5
6112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6113 ac_cv_sys_file_offset_bits=unknown
6117 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
6118 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6119 case $ac_cv_sys_file_offset_bits in #(
6122 cat >>confdefs.h <<_ACEOF
6123 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6128 if test $ac_cv_sys_file_offset_bits = unknown; then
6129 { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
6130 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6131 if test "${ac_cv_sys_large_files+set}" = set; then
6132 $as_echo_n "(cached) " >&6
6135 cat >conftest.$ac_ext <<_ACEOF
6138 cat confdefs.h >>conftest.$ac_ext
6139 cat >>conftest.$ac_ext <<_ACEOF
6140 /* end confdefs.h. */
6141 #include <sys/types.h>
6142 /* Check that off_t can represent 2**63 - 1 correctly.
6143 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6144 since some C++ compilers masquerading as C compilers
6145 incorrectly reject 9223372036854775807. */
6146 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6147 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6148 && LARGE_OFF_T % 2147483647 == 1)
6158 rm -f conftest.$ac_objext
6159 if { (ac_try="$ac_compile"
6161 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6162 *) ac_try_echo
=$ac_try;;
6164 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6165 $as_echo "$ac_try_echo") >&5
6166 (eval "$ac_compile") 2>conftest.er1
6168 grep -v '^ *+' conftest.er1
>conftest.err
6170 cat conftest.err
>&5
6171 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6172 (exit $ac_status); } && {
6173 test -z "$ac_c_werror_flag" ||
6174 test ! -s conftest.err
6175 } && test -s conftest.
$ac_objext; then
6176 ac_cv_sys_large_files
=no
; break
6178 $as_echo "$as_me: failed program was:" >&5
6179 sed 's/^/| /' conftest.
$ac_ext >&5
6184 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6185 cat >conftest.
$ac_ext <<_ACEOF
6188 cat confdefs.h
>>conftest.
$ac_ext
6189 cat >>conftest.
$ac_ext <<_ACEOF
6190 /* end confdefs.h. */
6191 #define _LARGE_FILES 1
6192 #include <sys/types.h>
6193 /* Check that off_t can represent 2**63 - 1 correctly.
6194 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6195 since some C++ compilers masquerading as C compilers
6196 incorrectly reject 9223372036854775807. */
6197 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6198 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6199 && LARGE_OFF_T % 2147483647 == 1)
6209 rm -f conftest.
$ac_objext
6210 if { (ac_try
="$ac_compile"
6212 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6213 *) ac_try_echo=$ac_try;;
6215 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6216 $as_echo "$ac_try_echo") >&5
6217 (eval "$ac_compile") 2>conftest.er1
6219 grep -v '^ *+' conftest.er1 >conftest.err
6221 cat conftest.err >&5
6222 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6223 (exit $ac_status); } && {
6224 test -z "$ac_c_werror_flag" ||
6225 test ! -s conftest.err
6226 } && test -s conftest.$ac_objext; then
6227 ac_cv_sys_large_files=1; break
6229 $as_echo "$as_me: failed program was:" >&5
6230 sed 's/^/| /' conftest.$ac_ext >&5
6235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6236 ac_cv_sys_large_files=unknown
6240 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
6241 $as_echo "$ac_cv_sys_large_files" >&6; }
6242 case $ac_cv_sys_large_files in #(
6245 cat >>confdefs.h <<_ACEOF
6246 #define _LARGE_FILES $ac_cv_sys_large_files
6256 ### The standard library on x86-64 and s390x GNU/Linux distributions can
6257 ### be located in either /usr/lib64 or /usr/lib.
6258 ### In some rare cases, /usr/lib64 exists but does not contain the
6259 ### relevant files (bug#1287). Hence test for crtn.o.
6260 case "${canonical}" in
6261 x86_64-*-linux-gnu* | s390x-*-linux-gnu* )
6262 if test -e /usr/lib64/crtn.o; then
6264 cat >>confdefs.h <<\_ACEOF
6265 #define HAVE_LIB64_DIR 1
6274 if test "${with_sound}" != "no"; then
6275 # Sound support for GNU/Linux and the free BSDs.
6279 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
6281 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
6282 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6283 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6284 $as_echo_n "checking for $ac_header... " >&6; }
6285 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6286 $as_echo_n "(cached) " >&6
6288 ac_res=`eval 'as_val=${'$as_ac_Header'}
6289 $as_echo "$as_val"'`
6290 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6291 $as_echo "$ac_res" >&6; }
6293 # Is the header compilable?
6294 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6295 $as_echo_n "checking $ac_header usability... " >&6; }
6296 cat >conftest.$ac_ext <<_ACEOF
6299 cat confdefs.h >>conftest.$ac_ext
6300 cat >>conftest.$ac_ext <<_ACEOF
6301 /* end confdefs.h. */
6302 $ac_includes_default
6303 #include <$ac_header>
6305 rm -f conftest.$ac_objext
6306 if { (ac_try="$ac_compile"
6308 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6309 *) ac_try_echo
=$ac_try;;
6311 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6312 $as_echo "$ac_try_echo") >&5
6313 (eval "$ac_compile") 2>conftest.er1
6315 grep -v '^ *+' conftest.er1
>conftest.err
6317 cat conftest.err
>&5
6318 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6319 (exit $ac_status); } && {
6320 test -z "$ac_c_werror_flag" ||
6321 test ! -s conftest.err
6322 } && test -s conftest.
$ac_objext; then
6323 ac_header_compiler
=yes
6325 $as_echo "$as_me: failed program was:" >&5
6326 sed 's/^/| /' conftest.
$ac_ext >&5
6328 ac_header_compiler
=no
6331 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6332 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6333 $as_echo "$ac_header_compiler" >&6; }
6335 # Is the header present?
6336 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6337 $as_echo_n "checking $ac_header presence... " >&6; }
6338 cat >conftest.
$ac_ext <<_ACEOF
6341 cat confdefs.h
>>conftest.
$ac_ext
6342 cat >>conftest.
$ac_ext <<_ACEOF
6343 /* end confdefs.h. */
6344 #include <$ac_header>
6346 if { (ac_try
="$ac_cpp conftest.$ac_ext"
6348 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6349 *) ac_try_echo=$ac_try;;
6351 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6352 $as_echo "$ac_try_echo") >&5
6353 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6355 grep -v '^ *+' conftest.er1 >conftest.err
6357 cat conftest.err >&5
6358 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6359 (exit $ac_status); } >/dev/null && {
6360 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6361 test ! -s conftest.err
6363 ac_header_preproc=yes
6365 $as_echo "$as_me: failed program was:" >&5
6366 sed 's/^/| /' conftest.$ac_ext >&5
6368 ac_header_preproc=no
6371 rm -f conftest.err conftest.$ac_ext
6372 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6373 $as_echo "$ac_header_preproc" >&6; }
6375 # So? What about this header?
6376 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6378 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6379 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6380 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6381 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6382 ac_header_preproc=yes
6385 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6386 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6387 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6388 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6389 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6390 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6391 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6392 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6393 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6394 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6395 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6396 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6400 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6401 $as_echo_n "checking for $ac_header... " >&6; }
6402 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6403 $as_echo_n "(cached) " >&6
6405 eval "$as_ac_Header=\$ac_header_preproc"
6407 ac_res=`eval 'as_val=${'$as_ac_Header'}
6408 $as_echo "$as_val"'`
6409 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6410 $as_echo "$ac_res" >&6; }
6413 if test `eval 'as_val=${'$as_ac_Header'}
6414 $as_echo "$as_val"'` = yes; then
6415 cat >>confdefs.h <<_ACEOF
6416 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
6423 # Emulation library used on NetBSD.
6424 { $as_echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
6425 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
6426 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
6427 $as_echo_n "(cached) " >&6
6429 ac_check_lib_save_LIBS=$LIBS
6430 LIBS="-lossaudio $LIBS"
6431 cat >conftest.$ac_ext <<_ACEOF
6434 cat confdefs.h >>conftest.$ac_ext
6435 cat >>conftest.$ac_ext <<_ACEOF
6436 /* end confdefs.h. */
6438 /* Override any GCC internal prototype to avoid an error.
6439 Use char because int might match the return type of a GCC
6440 builtin and then its argument prototype would still apply. */
6448 return _oss_ioctl ();
6453 rm -f conftest.$ac_objext conftest$ac_exeext
6454 if { (ac_try="$ac_link"
6456 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6457 *) ac_try_echo
=$ac_try;;
6459 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6460 $as_echo "$ac_try_echo") >&5
6461 (eval "$ac_link") 2>conftest.er1
6463 grep -v '^ *+' conftest.er1
>conftest.err
6465 cat conftest.err
>&5
6466 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6467 (exit $ac_status); } && {
6468 test -z "$ac_c_werror_flag" ||
6469 test ! -s conftest.err
6470 } && test -s conftest
$ac_exeext && {
6471 test "$cross_compiling" = yes ||
6472 $as_test_x conftest
$ac_exeext
6474 ac_cv_lib_ossaudio__oss_ioctl
=yes
6476 $as_echo "$as_me: failed program was:" >&5
6477 sed 's/^/| /' conftest.
$ac_ext >&5
6479 ac_cv_lib_ossaudio__oss_ioctl
=no
6482 rm -rf conftest.dSYM
6483 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6484 conftest
$ac_exeext conftest.
$ac_ext
6485 LIBS
=$ac_check_lib_save_LIBS
6487 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6488 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6489 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
6498 ALSA_MODULES
="alsa >= $ALSA_REQUIRED"
6502 # Extract the first word of "pkg-config", so it can be a program name with args.
6503 set dummy pkg-config
; ac_word
=$2
6504 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6505 $as_echo_n "checking for $ac_word... " >&6; }
6506 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6507 $as_echo_n "(cached) " >&6
6511 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
6514 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6518 test -z "$as_dir" && as_dir
=.
6519 for ac_exec_ext
in '' $ac_executable_extensions; do
6520 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6521 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
6522 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6529 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
6533 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
6534 if test -n "$PKG_CONFIG"; then
6535 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6536 $as_echo "$PKG_CONFIG" >&6; }
6538 { $as_echo "$as_me:$LINENO: result: no" >&5
6539 $as_echo "no" >&6; }
6544 if test "$PKG_CONFIG" = "no" ; then
6547 PKG_CONFIG_MIN_VERSION
=0.9.0
6548 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6549 { $as_echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
6550 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
6552 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6553 { $as_echo "$as_me:$LINENO: result: yes" >&5
6554 $as_echo "yes" >&6; }
6557 { $as_echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
6558 $as_echo_n "checking ALSA_CFLAGS... " >&6; }
6559 ALSA_CFLAGS
=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6560 { $as_echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
6561 $as_echo "$ALSA_CFLAGS" >&6; }
6563 { $as_echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
6564 $as_echo_n "checking ALSA_LIBS... " >&6; }
6565 ALSA_LIBS
=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6566 { $as_echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
6567 $as_echo "$ALSA_LIBS" >&6; }
6569 { $as_echo "$as_me:$LINENO: result: no" >&5
6570 $as_echo "no" >&6; }
6573 ## If we have a custom action on failure, don't print errors, but
6574 ## do set a variable so people can do so.
6575 ALSA_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6582 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6583 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6587 if test $succeeded = yes; then
6593 if test $HAVE_ALSA = yes; then
6594 SAVE_CFLAGS
="$CFLAGS"
6595 SAVE_LDFLAGS
="$LDFLAGS"
6596 CFLAGS
="$ALSA_CFLAGS $CFLAGS"
6597 LDFLAGS
="$ALSA_LIBS $LDFLAGS"
6598 cat >conftest.
$ac_ext <<_ACEOF
6601 cat confdefs.h
>>conftest.
$ac_ext
6602 cat >>conftest.
$ac_ext <<_ACEOF
6603 /* end confdefs.h. */
6604 #include <asoundlib.h>
6608 snd_lib_error_set_handler (0);
6613 rm -f conftest.
$ac_objext
6614 if { (ac_try
="$ac_compile"
6616 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6617 *) ac_try_echo=$ac_try;;
6619 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6620 $as_echo "$ac_try_echo") >&5
6621 (eval "$ac_compile") 2>conftest.er1
6623 grep -v '^ *+' conftest.er1 >conftest.err
6625 cat conftest.err >&5
6626 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6627 (exit $ac_status); } && {
6628 test -z "$ac_c_werror_flag" ||
6629 test ! -s conftest.err
6630 } && test -s conftest.$ac_objext; then
6631 emacs_alsa_normal=yes
6633 $as_echo "$as_me: failed program was:" >&5
6634 sed 's/^/| /' conftest.$ac_ext >&5
6636 emacs_alsa_normal=no
6639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6640 if test "$emacs_alsa_normal" != yes; then
6641 cat >conftest.$ac_ext <<_ACEOF
6644 cat confdefs.h >>conftest.$ac_ext
6645 cat >>conftest.$ac_ext <<_ACEOF
6646 /* end confdefs.h. */
6647 #include <alsa/asoundlib.h>
6651 snd_lib_error_set_handler (0);
6656 rm -f conftest.$ac_objext
6657 if { (ac_try="$ac_compile"
6659 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6660 *) ac_try_echo
=$ac_try;;
6662 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6663 $as_echo "$ac_try_echo") >&5
6664 (eval "$ac_compile") 2>conftest.er1
6666 grep -v '^ *+' conftest.er1
>conftest.err
6668 cat conftest.err
>&5
6669 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6670 (exit $ac_status); } && {
6671 test -z "$ac_c_werror_flag" ||
6672 test ! -s conftest.err
6673 } && test -s conftest.
$ac_objext; then
6674 emacs_alsa_subdir
=yes
6676 $as_echo "$as_me: failed program was:" >&5
6677 sed 's/^/| /' conftest.
$ac_ext >&5
6679 emacs_alsa_subdir
=no
6682 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6683 if test "$emacs_alsa_subdir" != yes; then
6684 { { $as_echo "$as_me:$LINENO: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&5
6685 $as_echo "$as_me: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&2;}
6686 { (exit 1); exit 1; }; }
6688 ALSA_CFLAGS
="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6691 CFLAGS
="$SAVE_CFLAGS"
6692 LDFLAGS
="$SAVE_LDFLAGS"
6693 LIBSOUND
="$LIBSOUND $ALSA_LIBS"
6694 CFLAGS_SOUND
="$CFLAGS_SOUND $ALSA_CFLAGS"
6696 cat >>confdefs.h
<<\_ACEOF
6729 for ac_header
in sys
/select.h sys
/timeb.h sys
/time.h unistd.h utime.h \
6730 linux
/version.h sys
/systeminfo.h termios.h limits.h string.h stdlib.h \
6731 stdio_ext.h fcntl.h
strings.h coff.h pty.h sys
/mman.h \
6732 sys
/param.h sys
/vlimit.h sys
/resource.h locale.h sys
/_mbstate_t.h \
6733 sys
/utsname.h
pwd.h utmp.h
6735 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6736 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6737 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6738 $as_echo_n "checking for $ac_header... " >&6; }
6739 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6740 $as_echo_n "(cached) " >&6
6742 ac_res
=`eval 'as_val=${'$as_ac_Header'}
6743 $as_echo "$as_val"'`
6744 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6745 $as_echo "$ac_res" >&6; }
6747 # Is the header compilable?
6748 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6749 $as_echo_n "checking $ac_header usability... " >&6; }
6750 cat >conftest.
$ac_ext <<_ACEOF
6753 cat confdefs.h
>>conftest.
$ac_ext
6754 cat >>conftest.
$ac_ext <<_ACEOF
6755 /* end confdefs.h. */
6756 $ac_includes_default
6757 #include <$ac_header>
6759 rm -f conftest.
$ac_objext
6760 if { (ac_try
="$ac_compile"
6762 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6763 *) ac_try_echo=$ac_try;;
6765 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6766 $as_echo "$ac_try_echo") >&5
6767 (eval "$ac_compile") 2>conftest.er1
6769 grep -v '^ *+' conftest.er1 >conftest.err
6771 cat conftest.err >&5
6772 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6773 (exit $ac_status); } && {
6774 test -z "$ac_c_werror_flag" ||
6775 test ! -s conftest.err
6776 } && test -s conftest.$ac_objext; then
6777 ac_header_compiler=yes
6779 $as_echo "$as_me: failed program was:" >&5
6780 sed 's/^/| /' conftest.$ac_ext >&5
6782 ac_header_compiler=no
6785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6786 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6787 $as_echo "$ac_header_compiler" >&6; }
6789 # Is the header present?
6790 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6791 $as_echo_n "checking $ac_header presence... " >&6; }
6792 cat >conftest.$ac_ext <<_ACEOF
6795 cat confdefs.h >>conftest.$ac_ext
6796 cat >>conftest.$ac_ext <<_ACEOF
6797 /* end confdefs.h. */
6798 #include <$ac_header>
6800 if { (ac_try="$ac_cpp conftest.$ac_ext"
6802 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6803 *) ac_try_echo
=$ac_try;;
6805 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6806 $as_echo "$ac_try_echo") >&5
6807 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6809 grep -v '^ *+' conftest.er1
>conftest.err
6811 cat conftest.err
>&5
6812 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6813 (exit $ac_status); } >/dev
/null
&& {
6814 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6815 test ! -s conftest.err
6817 ac_header_preproc
=yes
6819 $as_echo "$as_me: failed program was:" >&5
6820 sed 's/^/| /' conftest.
$ac_ext >&5
6822 ac_header_preproc
=no
6825 rm -f conftest.err conftest.
$ac_ext
6826 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6827 $as_echo "$ac_header_preproc" >&6; }
6829 # So? What about this header?
6830 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6832 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6833 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6834 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6835 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6836 ac_header_preproc
=yes
6839 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6840 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6841 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6842 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6843 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6844 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6845 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6846 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6847 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6848 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6849 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6850 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6854 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6855 $as_echo_n "checking for $ac_header... " >&6; }
6856 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6857 $as_echo_n "(cached) " >&6
6859 eval "$as_ac_Header=\$ac_header_preproc"
6861 ac_res
=`eval 'as_val=${'$as_ac_Header'}
6862 $as_echo "$as_val"'`
6863 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6864 $as_echo "$ac_res" >&6; }
6867 if test `eval 'as_val=${'$as_ac_Header'}
6868 $as_echo "$as_val"'` = yes; then
6869 cat >>confdefs.h
<<_ACEOF
6870 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6878 { $as_echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
6879 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
6880 cat >conftest.
$ac_ext <<_ACEOF
6883 cat confdefs.h
>>conftest.
$ac_ext
6884 cat >>conftest.
$ac_ext <<_ACEOF
6885 /* end confdefs.h. */
6886 #include <sys/personality.h>
6890 personality (PER_LINUX32)
6895 rm -f conftest.
$ac_objext
6896 if { (ac_try
="$ac_compile"
6898 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6899 *) ac_try_echo=$ac_try;;
6901 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6902 $as_echo "$ac_try_echo") >&5
6903 (eval "$ac_compile") 2>conftest.er1
6905 grep -v '^ *+' conftest.er1 >conftest.err
6907 cat conftest.err >&5
6908 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6909 (exit $ac_status); } && {
6910 test -z "$ac_c_werror_flag" ||
6911 test ! -s conftest.err
6912 } && test -s conftest.$ac_objext; then
6913 emacs_cv_personality_linux32=yes
6915 $as_echo "$as_me: failed program was:" >&5
6916 sed 's/^/| /' conftest.$ac_ext >&5
6918 emacs_cv_personality_linux32=no
6921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6922 { $as_echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
6923 $as_echo "$emacs_cv_personality_linux32" >&6; }
6925 if test $emacs_cv_personality_linux32 = yes; then
6927 cat >>confdefs.h <<\_ACEOF
6928 #define HAVE_PERSONALITY_LINUX32 1
6934 for ac_header in term.h
6936 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
6937 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6938 $as_echo_n "checking for $ac_header... " >&6; }
6939 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6940 $as_echo_n "(cached) " >&6
6942 cat >conftest.$ac_ext <<_ACEOF
6945 cat confdefs.h >>conftest.$ac_ext
6946 cat >>conftest.$ac_ext <<_ACEOF
6947 /* end confdefs.h. */
6948 #include <$ac_header>
6950 if { (ac_try="$ac_cpp conftest.$ac_ext"
6952 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6953 *) ac_try_echo
=$ac_try;;
6955 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6956 $as_echo "$ac_try_echo") >&5
6957 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6959 grep -v '^ *+' conftest.er1
>conftest.err
6961 cat conftest.err
>&5
6962 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6963 (exit $ac_status); } >/dev
/null
&& {
6964 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6965 test ! -s conftest.err
6967 eval "$as_ac_Header=yes"
6969 $as_echo "$as_me: failed program was:" >&5
6970 sed 's/^/| /' conftest.
$ac_ext >&5
6972 eval "$as_ac_Header=no"
6975 rm -f conftest.err conftest.
$ac_ext
6977 ac_res
=`eval 'as_val=${'$as_ac_Header'}
6978 $as_echo "$as_val"'`
6979 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6980 $as_echo "$ac_res" >&6; }
6981 if test `eval 'as_val=${'$as_ac_Header'}
6982 $as_echo "$as_val"'` = yes; then
6983 cat >>confdefs.h
<<_ACEOF
6984 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6991 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6992 $as_echo_n "checking for ANSI C header files... " >&6; }
6993 if test "${ac_cv_header_stdc+set}" = set; then
6994 $as_echo_n "(cached) " >&6
6996 cat >conftest.
$ac_ext <<_ACEOF
6999 cat confdefs.h
>>conftest.
$ac_ext
7000 cat >>conftest.
$ac_ext <<_ACEOF
7001 /* end confdefs.h. */
7015 rm -f conftest.
$ac_objext
7016 if { (ac_try
="$ac_compile"
7018 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7019 *) ac_try_echo=$ac_try;;
7021 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7022 $as_echo "$ac_try_echo") >&5
7023 (eval "$ac_compile") 2>conftest.er1
7025 grep -v '^ *+' conftest.er1 >conftest.err
7027 cat conftest.err >&5
7028 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7029 (exit $ac_status); } && {
7030 test -z "$ac_c_werror_flag" ||
7031 test ! -s conftest.err
7032 } && test -s conftest.$ac_objext; then
7033 ac_cv_header_stdc=yes
7035 $as_echo "$as_me: failed program was:" >&5
7036 sed 's/^/| /' conftest.$ac_ext >&5
7038 ac_cv_header_stdc=no
7041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7043 if test $ac_cv_header_stdc = yes; then
7044 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7045 cat >conftest.$ac_ext <<_ACEOF
7048 cat confdefs.h >>conftest.$ac_ext
7049 cat >>conftest.$ac_ext <<_ACEOF
7050 /* end confdefs.h. */
7054 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7055 $EGREP "memchr" >/dev/null 2>&1; then
7058 ac_cv_header_stdc=no
7064 if test $ac_cv_header_stdc = yes; then
7065 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7066 cat >conftest.$ac_ext <<_ACEOF
7069 cat confdefs.h >>conftest.$ac_ext
7070 cat >>conftest.$ac_ext <<_ACEOF
7071 /* end confdefs.h. */
7075 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7076 $EGREP "free" >/dev/null 2>&1; then
7079 ac_cv_header_stdc=no
7085 if test $ac_cv_header_stdc = yes; then
7086 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7087 if test "$cross_compiling" = yes; then
7090 cat >conftest.$ac_ext <<_ACEOF
7093 cat confdefs.h >>conftest.$ac_ext
7094 cat >>conftest.$ac_ext <<_ACEOF
7095 /* end confdefs.h. */
7098 #if ((' ' & 0x0FF) == 0x020)
7099 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7100 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7102 # define ISLOWER(c) \
7103 (('a' <= (c) && (c) <= 'i') \
7104 || ('j' <= (c) && (c) <= 'r') \
7105 || ('s' <= (c) && (c) <= 'z'))
7106 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7109 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7114 for (i = 0; i < 256; i++)
7115 if (XOR (islower (i), ISLOWER (i))
7116 || toupper (i) != TOUPPER (i))
7121 rm -f conftest$ac_exeext
7122 if { (ac_try="$ac_link"
7124 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7125 *) ac_try_echo
=$ac_try;;
7127 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7128 $as_echo "$ac_try_echo") >&5
7129 (eval "$ac_link") 2>&5
7131 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7132 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7133 { (case "(($ac_try" in
7134 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7135 *) ac_try_echo=$ac_try;;
7137 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7138 $as_echo "$ac_try_echo") >&5
7139 (eval "$ac_try") 2>&5
7141 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7142 (exit $ac_status); }; }; then
7145 $as_echo "$as_me: program exited with status $ac_status" >&5
7146 $as_echo "$as_me: failed program was:" >&5
7147 sed 's/^/| /' conftest.$ac_ext >&5
7150 ac_cv_header_stdc=no
7152 rm -rf conftest.dSYM
7153 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7159 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7160 $as_echo "$ac_cv_header_stdc" >&6; }
7161 if test $ac_cv_header_stdc = yes; then
7163 cat >>confdefs.h <<\_ACEOF
7164 #define STDC_HEADERS 1
7169 { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
7170 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
7171 if test "${ac_cv_header_time+set}" = set; then
7172 $as_echo_n "(cached) " >&6
7174 cat >conftest.$ac_ext <<_ACEOF
7177 cat confdefs.h >>conftest.$ac_ext
7178 cat >>conftest.$ac_ext <<_ACEOF
7179 /* end confdefs.h. */
7180 #include <sys/types.h>
7181 #include <sys/time.h>
7187 if ((struct tm *) 0)
7193 rm -f conftest.$ac_objext
7194 if { (ac_try="$ac_compile"
7196 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7197 *) ac_try_echo
=$ac_try;;
7199 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7200 $as_echo "$ac_try_echo") >&5
7201 (eval "$ac_compile") 2>conftest.er1
7203 grep -v '^ *+' conftest.er1
>conftest.err
7205 cat conftest.err
>&5
7206 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7207 (exit $ac_status); } && {
7208 test -z "$ac_c_werror_flag" ||
7209 test ! -s conftest.err
7210 } && test -s conftest.
$ac_objext; then
7211 ac_cv_header_time
=yes
7213 $as_echo "$as_me: failed program was:" >&5
7214 sed 's/^/| /' conftest.
$ac_ext >&5
7216 ac_cv_header_time
=no
7219 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7221 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7222 $as_echo "$ac_cv_header_time" >&6; }
7223 if test $ac_cv_header_time = yes; then
7225 cat >>confdefs.h
<<\_ACEOF
7226 #define TIME_WITH_SYS_TIME 1
7231 { $as_echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
7232 $as_echo_n "checking whether sys_siglist is declared... " >&6; }
7233 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
7234 $as_echo_n "(cached) " >&6
7236 cat >conftest.
$ac_ext <<_ACEOF
7239 cat confdefs.h
>>conftest.
$ac_ext
7240 cat >>conftest.
$ac_ext <<_ACEOF
7241 /* end confdefs.h. */
7242 $ac_includes_default
7254 rm -f conftest.
$ac_objext
7255 if { (ac_try
="$ac_compile"
7257 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7258 *) ac_try_echo=$ac_try;;
7260 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7261 $as_echo "$ac_try_echo") >&5
7262 (eval "$ac_compile") 2>conftest.er1
7264 grep -v '^ *+' conftest.er1 >conftest.err
7266 cat conftest.err >&5
7267 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7268 (exit $ac_status); } && {
7269 test -z "$ac_c_werror_flag" ||
7270 test ! -s conftest.err
7271 } && test -s conftest.$ac_objext; then
7272 ac_cv_have_decl_sys_siglist=yes
7274 $as_echo "$as_me: failed program was:" >&5
7275 sed 's/^/| /' conftest.$ac_ext >&5
7277 ac_cv_have_decl_sys_siglist=no
7280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7282 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
7283 $as_echo "$ac_cv_have_decl_sys_siglist" >&6; }
7284 if test $ac_cv_have_decl_sys_siglist = yes; then
7286 cat >>confdefs.h <<_ACEOF
7287 #define HAVE_DECL_SYS_SIGLIST 1
7292 cat >>confdefs.h <<_ACEOF
7293 #define HAVE_DECL_SYS_SIGLIST 0
7300 if test $ac_cv_have_decl_sys_siglist != yes; then
7301 # For Tru64, at least:
7302 { $as_echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
7303 $as_echo_n "checking whether __sys_siglist is declared... " >&6; }
7304 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
7305 $as_echo_n "(cached) " >&6
7307 cat >conftest.$ac_ext <<_ACEOF
7310 cat confdefs.h >>conftest.$ac_ext
7311 cat >>conftest.$ac_ext <<_ACEOF
7312 /* end confdefs.h. */
7313 $ac_includes_default
7317 #ifndef __sys_siglist
7318 (void) __sys_siglist;
7325 rm -f conftest.$ac_objext
7326 if { (ac_try="$ac_compile"
7328 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7329 *) ac_try_echo
=$ac_try;;
7331 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7332 $as_echo "$ac_try_echo") >&5
7333 (eval "$ac_compile") 2>conftest.er1
7335 grep -v '^ *+' conftest.er1
>conftest.err
7337 cat conftest.err
>&5
7338 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7339 (exit $ac_status); } && {
7340 test -z "$ac_c_werror_flag" ||
7341 test ! -s conftest.err
7342 } && test -s conftest.
$ac_objext; then
7343 ac_cv_have_decl___sys_siglist
=yes
7345 $as_echo "$as_me: failed program was:" >&5
7346 sed 's/^/| /' conftest.
$ac_ext >&5
7348 ac_cv_have_decl___sys_siglist
=no
7351 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7353 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
7354 $as_echo "$ac_cv_have_decl___sys_siglist" >&6; }
7355 if test $ac_cv_have_decl___sys_siglist = yes; then
7357 cat >>confdefs.h
<<_ACEOF
7358 #define HAVE_DECL___SYS_SIGLIST 1
7363 cat >>confdefs.h
<<_ACEOF
7364 #define HAVE_DECL___SYS_SIGLIST 0
7371 if test $ac_cv_have_decl___sys_siglist = yes; then
7373 cat >>confdefs.h
<<\_ACEOF
7374 #define sys_siglist __sys_siglist
7379 { $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7380 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
7381 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7382 $as_echo_n "(cached) " >&6
7384 cat >conftest.
$ac_ext <<_ACEOF
7387 cat confdefs.h
>>conftest.
$ac_ext
7388 cat >>conftest.
$ac_ext <<_ACEOF
7389 /* end confdefs.h. */
7390 #include <sys/types.h>
7391 #include <sys/wait.h>
7393 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7396 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7404 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7409 rm -f conftest.
$ac_objext
7410 if { (ac_try
="$ac_compile"
7412 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7413 *) ac_try_echo=$ac_try;;
7415 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7416 $as_echo "$ac_try_echo") >&5
7417 (eval "$ac_compile") 2>conftest.er1
7419 grep -v '^ *+' conftest.er1 >conftest.err
7421 cat conftest.err >&5
7422 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7423 (exit $ac_status); } && {
7424 test -z "$ac_c_werror_flag" ||
7425 test ! -s conftest.err
7426 } && test -s conftest.$ac_objext; then
7427 ac_cv_header_sys_wait_h=yes
7429 $as_echo "$as_me: failed program was:" >&5
7430 sed 's/^/| /' conftest.$ac_ext >&5
7432 ac_cv_header_sys_wait_h=no
7435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7437 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7438 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
7439 if test $ac_cv_header_sys_wait_h = yes; then
7441 cat >>confdefs.h <<\_ACEOF
7442 #define HAVE_SYS_WAIT_H 1
7448 { $as_echo "$as_me:$LINENO: checking for struct utimbuf" >&5
7449 $as_echo_n "checking for struct utimbuf... " >&6; }
7450 if test "${emacs_cv_struct_utimbuf+set}" = set; then
7451 $as_echo_n "(cached) " >&6
7453 cat >conftest.$ac_ext <<_ACEOF
7456 cat confdefs.h >>conftest.$ac_ext
7457 cat >>conftest.$ac_ext <<_ACEOF
7458 /* end confdefs.h. */
7459 #ifdef TIME_WITH_SYS_TIME
7460 #include <sys/time.h>
7463 #ifdef HAVE_SYS_TIME_H
7464 #include <sys/time.h>
7475 static struct utimbuf x; x.actime = x.modtime;
7480 rm -f conftest.$ac_objext
7481 if { (ac_try="$ac_compile"
7483 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7484 *) ac_try_echo
=$ac_try;;
7486 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7487 $as_echo "$ac_try_echo") >&5
7488 (eval "$ac_compile") 2>conftest.er1
7490 grep -v '^ *+' conftest.er1
>conftest.err
7492 cat conftest.err
>&5
7493 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7494 (exit $ac_status); } && {
7495 test -z "$ac_c_werror_flag" ||
7496 test ! -s conftest.err
7497 } && test -s conftest.
$ac_objext; then
7498 emacs_cv_struct_utimbuf
=yes
7500 $as_echo "$as_me: failed program was:" >&5
7501 sed 's/^/| /' conftest.
$ac_ext >&5
7503 emacs_cv_struct_utimbuf
=no
7506 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7508 { $as_echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
7509 $as_echo "$emacs_cv_struct_utimbuf" >&6; }
7510 if test $emacs_cv_struct_utimbuf = yes; then
7512 cat >>confdefs.h
<<\_ACEOF
7513 #define HAVE_STRUCT_UTIMBUF 1
7518 { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7519 $as_echo_n "checking return type of signal handlers... " >&6; }
7520 if test "${ac_cv_type_signal+set}" = set; then
7521 $as_echo_n "(cached) " >&6
7523 cat >conftest.
$ac_ext <<_ACEOF
7526 cat confdefs.h
>>conftest.
$ac_ext
7527 cat >>conftest.
$ac_ext <<_ACEOF
7528 /* end confdefs.h. */
7529 #include <sys/types.h>
7535 return *(signal (0, 0)) (0) == 1;
7540 rm -f conftest.
$ac_objext
7541 if { (ac_try
="$ac_compile"
7543 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7544 *) ac_try_echo=$ac_try;;
7546 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7547 $as_echo "$ac_try_echo") >&5
7548 (eval "$ac_compile") 2>conftest.er1
7550 grep -v '^ *+' conftest.er1 >conftest.err
7552 cat conftest.err >&5
7553 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7554 (exit $ac_status); } && {
7555 test -z "$ac_c_werror_flag" ||
7556 test ! -s conftest.err
7557 } && test -s conftest.$ac_objext; then
7558 ac_cv_type_signal=int
7560 $as_echo "$as_me: failed program was:" >&5
7561 sed 's/^/| /' conftest.$ac_ext >&5
7563 ac_cv_type_signal=void
7566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7568 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7569 $as_echo "$ac_cv_type_signal" >&6; }
7571 cat >>confdefs.h <<_ACEOF
7572 #define RETSIGTYPE $ac_cv_type_signal
7577 { $as_echo "$as_me:$LINENO: checking for speed_t" >&5
7578 $as_echo_n "checking for speed_t... " >&6; }
7579 if test "${emacs_cv_speed_t+set}" = set; then
7580 $as_echo_n "(cached) " >&6
7582 cat >conftest.$ac_ext <<_ACEOF
7585 cat confdefs.h >>conftest.$ac_ext
7586 cat >>conftest.$ac_ext <<_ACEOF
7587 /* end confdefs.h. */
7588 #include <termios.h>
7597 rm -f conftest.$ac_objext
7598 if { (ac_try="$ac_compile"
7600 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7601 *) ac_try_echo
=$ac_try;;
7603 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7604 $as_echo "$ac_try_echo") >&5
7605 (eval "$ac_compile") 2>conftest.er1
7607 grep -v '^ *+' conftest.er1
>conftest.err
7609 cat conftest.err
>&5
7610 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7611 (exit $ac_status); } && {
7612 test -z "$ac_c_werror_flag" ||
7613 test ! -s conftest.err
7614 } && test -s conftest.
$ac_objext; then
7615 emacs_cv_speed_t
=yes
7617 $as_echo "$as_me: failed program was:" >&5
7618 sed 's/^/| /' conftest.
$ac_ext >&5
7623 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7625 { $as_echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
7626 $as_echo "$emacs_cv_speed_t" >&6; }
7627 if test $emacs_cv_speed_t = yes; then
7629 cat >>confdefs.h
<<\_ACEOF
7630 #define HAVE_SPEED_T 1
7635 { $as_echo "$as_me:$LINENO: checking for struct timeval" >&5
7636 $as_echo_n "checking for struct timeval... " >&6; }
7637 if test "${emacs_cv_struct_timeval+set}" = set; then
7638 $as_echo_n "(cached) " >&6
7640 cat >conftest.
$ac_ext <<_ACEOF
7643 cat confdefs.h
>>conftest.
$ac_ext
7644 cat >>conftest.
$ac_ext <<_ACEOF
7645 /* end confdefs.h. */
7646 #ifdef TIME_WITH_SYS_TIME
7647 #include <sys/time.h>
7650 #ifdef HAVE_SYS_TIME_H
7651 #include <sys/time.h>
7659 static struct timeval x; x.tv_sec = x.tv_usec;
7664 rm -f conftest.
$ac_objext
7665 if { (ac_try
="$ac_compile"
7667 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7668 *) ac_try_echo=$ac_try;;
7670 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7671 $as_echo "$ac_try_echo") >&5
7672 (eval "$ac_compile") 2>conftest.er1
7674 grep -v '^ *+' conftest.er1 >conftest.err
7676 cat conftest.err >&5
7677 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7678 (exit $ac_status); } && {
7679 test -z "$ac_c_werror_flag" ||
7680 test ! -s conftest.err
7681 } && test -s conftest.$ac_objext; then
7682 emacs_cv_struct_timeval=yes
7684 $as_echo "$as_me: failed program was:" >&5
7685 sed 's/^/| /' conftest.$ac_ext >&5
7687 emacs_cv_struct_timeval=no
7690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7692 { $as_echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
7693 $as_echo "$emacs_cv_struct_timeval" >&6; }
7694 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7695 if test $emacs_cv_struct_timeval = yes; then
7697 cat >>confdefs.h <<\_ACEOF
7698 #define HAVE_TIMEVAL 1
7703 { $as_echo "$as_me:$LINENO: checking for struct exception" >&5
7704 $as_echo_n "checking for struct exception... " >&6; }
7705 if test "${emacs_cv_struct_exception+set}" = set; then
7706 $as_echo_n "(cached) " >&6
7708 cat >conftest.$ac_ext <<_ACEOF
7711 cat confdefs.h >>conftest.$ac_ext
7712 cat >>conftest.$ac_ext <<_ACEOF
7713 /* end confdefs.h. */
7718 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7723 rm -f conftest.$ac_objext
7724 if { (ac_try="$ac_compile"
7726 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7727 *) ac_try_echo
=$ac_try;;
7729 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7730 $as_echo "$ac_try_echo") >&5
7731 (eval "$ac_compile") 2>conftest.er1
7733 grep -v '^ *+' conftest.er1
>conftest.err
7735 cat conftest.err
>&5
7736 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7737 (exit $ac_status); } && {
7738 test -z "$ac_c_werror_flag" ||
7739 test ! -s conftest.err
7740 } && test -s conftest.
$ac_objext; then
7741 emacs_cv_struct_exception
=yes
7743 $as_echo "$as_me: failed program was:" >&5
7744 sed 's/^/| /' conftest.
$ac_ext >&5
7746 emacs_cv_struct_exception
=no
7749 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7751 { $as_echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
7752 $as_echo "$emacs_cv_struct_exception" >&6; }
7753 HAVE_EXCEPTION
=$emacs_cv_struct_exception
7754 if test $emacs_cv_struct_exception != yes; then
7756 cat >>confdefs.h
<<\_ACEOF
7757 #define NO_MATHERR 1
7763 for ac_header
in sys
/socket.h
7765 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7766 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7767 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7768 $as_echo_n "checking for $ac_header... " >&6; }
7769 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7770 $as_echo_n "(cached) " >&6
7772 ac_res
=`eval 'as_val=${'$as_ac_Header'}
7773 $as_echo "$as_val"'`
7774 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7775 $as_echo "$ac_res" >&6; }
7777 # Is the header compilable?
7778 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
7779 $as_echo_n "checking $ac_header usability... " >&6; }
7780 cat >conftest.
$ac_ext <<_ACEOF
7783 cat confdefs.h
>>conftest.
$ac_ext
7784 cat >>conftest.
$ac_ext <<_ACEOF
7785 /* end confdefs.h. */
7786 $ac_includes_default
7787 #include <$ac_header>
7789 rm -f conftest.
$ac_objext
7790 if { (ac_try
="$ac_compile"
7792 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7793 *) ac_try_echo=$ac_try;;
7795 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7796 $as_echo "$ac_try_echo") >&5
7797 (eval "$ac_compile") 2>conftest.er1
7799 grep -v '^ *+' conftest.er1 >conftest.err
7801 cat conftest.err >&5
7802 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7803 (exit $ac_status); } && {
7804 test -z "$ac_c_werror_flag" ||
7805 test ! -s conftest.err
7806 } && test -s conftest.$ac_objext; then
7807 ac_header_compiler=yes
7809 $as_echo "$as_me: failed program was:" >&5
7810 sed 's/^/| /' conftest.$ac_ext >&5
7812 ac_header_compiler=no
7815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7816 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7817 $as_echo "$ac_header_compiler" >&6; }
7819 # Is the header present?
7820 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
7821 $as_echo_n "checking $ac_header presence... " >&6; }
7822 cat >conftest.$ac_ext <<_ACEOF
7825 cat confdefs.h >>conftest.$ac_ext
7826 cat >>conftest.$ac_ext <<_ACEOF
7827 /* end confdefs.h. */
7828 #include <$ac_header>
7830 if { (ac_try="$ac_cpp conftest.$ac_ext"
7832 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7833 *) ac_try_echo
=$ac_try;;
7835 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7836 $as_echo "$ac_try_echo") >&5
7837 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7839 grep -v '^ *+' conftest.er1
>conftest.err
7841 cat conftest.err
>&5
7842 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7843 (exit $ac_status); } >/dev
/null
&& {
7844 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7845 test ! -s conftest.err
7847 ac_header_preproc
=yes
7849 $as_echo "$as_me: failed program was:" >&5
7850 sed 's/^/| /' conftest.
$ac_ext >&5
7852 ac_header_preproc
=no
7855 rm -f conftest.err conftest.
$ac_ext
7856 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7857 $as_echo "$ac_header_preproc" >&6; }
7859 # So? What about this header?
7860 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7862 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7863 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7864 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7865 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7866 ac_header_preproc
=yes
7869 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7870 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7871 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7872 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7873 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7874 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7875 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7876 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7877 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7878 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7879 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7880 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7884 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7885 $as_echo_n "checking for $ac_header... " >&6; }
7886 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7887 $as_echo_n "(cached) " >&6
7889 eval "$as_ac_Header=\$ac_header_preproc"
7891 ac_res
=`eval 'as_val=${'$as_ac_Header'}
7892 $as_echo "$as_val"'`
7893 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7894 $as_echo "$ac_res" >&6; }
7897 if test `eval 'as_val=${'$as_ac_Header'}
7898 $as_echo "$as_val"'` = yes; then
7899 cat >>confdefs.h
<<_ACEOF
7900 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7908 for ac_header
in net
/if.h
7910 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7911 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7912 $as_echo_n "checking for $ac_header... " >&6; }
7913 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7914 $as_echo_n "(cached) " >&6
7916 cat >conftest.
$ac_ext <<_ACEOF
7919 cat confdefs.h
>>conftest.
$ac_ext
7920 cat >>conftest.
$ac_ext <<_ACEOF
7921 /* end confdefs.h. */
7922 $ac_includes_default
7923 #if HAVE_SYS_SOCKET_H
7924 #include <sys/socket.h>
7927 #include <$ac_header>
7929 rm -f conftest.
$ac_objext
7930 if { (ac_try
="$ac_compile"
7932 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7933 *) ac_try_echo=$ac_try;;
7935 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7936 $as_echo "$ac_try_echo") >&5
7937 (eval "$ac_compile") 2>conftest.er1
7939 grep -v '^ *+' conftest.er1 >conftest.err
7941 cat conftest.err >&5
7942 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7943 (exit $ac_status); } && {
7944 test -z "$ac_c_werror_flag" ||
7945 test ! -s conftest.err
7946 } && test -s conftest.$ac_objext; then
7947 eval "$as_ac_Header=yes"
7949 $as_echo "$as_me: failed program was:" >&5
7950 sed 's/^/| /' conftest.$ac_ext >&5
7952 eval "$as_ac_Header=no"
7955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7957 ac_res=`eval 'as_val=${'$as_ac_Header'}
7958 $as_echo "$as_val"'`
7959 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7960 $as_echo "$ac_res" >&6; }
7961 if test `eval 'as_val=${'$as_ac_Header'}
7962 $as_echo "$as_val"'` = yes; then
7963 cat >>confdefs.h <<_ACEOF
7964 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
7972 { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7973 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
7974 if test "${ac_cv_struct_tm+set}" = set; then
7975 $as_echo_n "(cached) " >&6
7977 cat >conftest.$ac_ext <<_ACEOF
7980 cat confdefs.h >>conftest.$ac_ext
7981 cat >>conftest.$ac_ext <<_ACEOF
7982 /* end confdefs.h. */
7983 #include <sys/types.h>
7990 int *p = &tm.tm_sec;
7996 rm -f conftest.$ac_objext
7997 if { (ac_try="$ac_compile"
7999 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8000 *) ac_try_echo
=$ac_try;;
8002 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8003 $as_echo "$ac_try_echo") >&5
8004 (eval "$ac_compile") 2>conftest.er1
8006 grep -v '^ *+' conftest.er1
>conftest.err
8008 cat conftest.err
>&5
8009 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8010 (exit $ac_status); } && {
8011 test -z "$ac_c_werror_flag" ||
8012 test ! -s conftest.err
8013 } && test -s conftest.
$ac_objext; then
8014 ac_cv_struct_tm
=time.h
8016 $as_echo "$as_me: failed program was:" >&5
8017 sed 's/^/| /' conftest.
$ac_ext >&5
8019 ac_cv_struct_tm
=sys
/time.h
8022 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8024 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
8025 $as_echo "$ac_cv_struct_tm" >&6; }
8026 if test $ac_cv_struct_tm = sys
/time.h
; then
8028 cat >>confdefs.h
<<\_ACEOF
8029 #define TM_IN_SYS_TIME 1
8034 { $as_echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
8035 $as_echo_n "checking for struct tm.tm_zone... " >&6; }
8036 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
8037 $as_echo_n "(cached) " >&6
8039 cat >conftest.
$ac_ext <<_ACEOF
8042 cat confdefs.h
>>conftest.
$ac_ext
8043 cat >>conftest.
$ac_ext <<_ACEOF
8044 /* end confdefs.h. */
8045 #include <sys/types.h>
8046 #include <$ac_cv_struct_tm>
8052 static struct tm ac_aggr;
8053 if (ac_aggr.tm_zone)
8059 rm -f conftest.
$ac_objext
8060 if { (ac_try
="$ac_compile"
8062 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8063 *) ac_try_echo=$ac_try;;
8065 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8066 $as_echo "$ac_try_echo") >&5
8067 (eval "$ac_compile") 2>conftest.er1
8069 grep -v '^ *+' conftest.er1 >conftest.err
8071 cat conftest.err >&5
8072 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8073 (exit $ac_status); } && {
8074 test -z "$ac_c_werror_flag" ||
8075 test ! -s conftest.err
8076 } && test -s conftest.$ac_objext; then
8077 ac_cv_member_struct_tm_tm_zone=yes
8079 $as_echo "$as_me: failed program was:" >&5
8080 sed 's/^/| /' conftest.$ac_ext >&5
8082 cat >conftest.$ac_ext <<_ACEOF
8085 cat confdefs.h >>conftest.$ac_ext
8086 cat >>conftest.$ac_ext <<_ACEOF
8087 /* end confdefs.h. */
8088 #include <sys/types.h>
8089 #include <$ac_cv_struct_tm>
8095 static struct tm ac_aggr;
8096 if (sizeof ac_aggr.tm_zone)
8102 rm -f conftest.$ac_objext
8103 if { (ac_try="$ac_compile"
8105 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8106 *) ac_try_echo
=$ac_try;;
8108 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8109 $as_echo "$ac_try_echo") >&5
8110 (eval "$ac_compile") 2>conftest.er1
8112 grep -v '^ *+' conftest.er1
>conftest.err
8114 cat conftest.err
>&5
8115 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8116 (exit $ac_status); } && {
8117 test -z "$ac_c_werror_flag" ||
8118 test ! -s conftest.err
8119 } && test -s conftest.
$ac_objext; then
8120 ac_cv_member_struct_tm_tm_zone
=yes
8122 $as_echo "$as_me: failed program was:" >&5
8123 sed 's/^/| /' conftest.
$ac_ext >&5
8125 ac_cv_member_struct_tm_tm_zone
=no
8128 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8131 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8133 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
8134 $as_echo "$ac_cv_member_struct_tm_tm_zone" >&6; }
8135 if test $ac_cv_member_struct_tm_tm_zone = yes; then
8137 cat >>confdefs.h
<<_ACEOF
8138 #define HAVE_STRUCT_TM_TM_ZONE 1
8144 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
8146 cat >>confdefs.h
<<\_ACEOF
8147 #define HAVE_TM_ZONE 1
8151 { $as_echo "$as_me:$LINENO: checking whether tzname is declared" >&5
8152 $as_echo_n "checking whether tzname is declared... " >&6; }
8153 if test "${ac_cv_have_decl_tzname+set}" = set; then
8154 $as_echo_n "(cached) " >&6
8156 cat >conftest.
$ac_ext <<_ACEOF
8159 cat confdefs.h
>>conftest.
$ac_ext
8160 cat >>conftest.
$ac_ext <<_ACEOF
8161 /* end confdefs.h. */
8175 rm -f conftest.
$ac_objext
8176 if { (ac_try
="$ac_compile"
8178 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8179 *) ac_try_echo=$ac_try;;
8181 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8182 $as_echo "$ac_try_echo") >&5
8183 (eval "$ac_compile") 2>conftest.er1
8185 grep -v '^ *+' conftest.er1 >conftest.err
8187 cat conftest.err >&5
8188 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8189 (exit $ac_status); } && {
8190 test -z "$ac_c_werror_flag" ||
8191 test ! -s conftest.err
8192 } && test -s conftest.$ac_objext; then
8193 ac_cv_have_decl_tzname=yes
8195 $as_echo "$as_me: failed program was:" >&5
8196 sed 's/^/| /' conftest.$ac_ext >&5
8198 ac_cv_have_decl_tzname=no
8201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8203 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
8204 $as_echo "$ac_cv_have_decl_tzname" >&6; }
8205 if test $ac_cv_have_decl_tzname = yes; then
8207 cat >>confdefs.h <<_ACEOF
8208 #define HAVE_DECL_TZNAME 1
8213 cat >>confdefs.h <<_ACEOF
8214 #define HAVE_DECL_TZNAME 0
8221 { $as_echo "$as_me:$LINENO: checking for tzname" >&5
8222 $as_echo_n "checking for tzname... " >&6; }
8223 if test "${ac_cv_var_tzname+set}" = set; then
8224 $as_echo_n "(cached) " >&6
8226 cat >conftest.$ac_ext <<_ACEOF
8229 cat confdefs.h >>conftest.$ac_ext
8230 cat >>conftest.$ac_ext <<_ACEOF
8231 /* end confdefs.h. */
8233 #if !HAVE_DECL_TZNAME
8234 extern char *tzname[];
8240 return tzname[0][0];
8245 rm -f conftest.$ac_objext conftest$ac_exeext
8246 if { (ac_try="$ac_link"
8248 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8249 *) ac_try_echo
=$ac_try;;
8251 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8252 $as_echo "$ac_try_echo") >&5
8253 (eval "$ac_link") 2>conftest.er1
8255 grep -v '^ *+' conftest.er1
>conftest.err
8257 cat conftest.err
>&5
8258 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8259 (exit $ac_status); } && {
8260 test -z "$ac_c_werror_flag" ||
8261 test ! -s conftest.err
8262 } && test -s conftest
$ac_exeext && {
8263 test "$cross_compiling" = yes ||
8264 $as_test_x conftest
$ac_exeext
8266 ac_cv_var_tzname
=yes
8268 $as_echo "$as_me: failed program was:" >&5
8269 sed 's/^/| /' conftest.
$ac_ext >&5
8274 rm -rf conftest.dSYM
8275 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
8276 conftest
$ac_exeext conftest.
$ac_ext
8278 { $as_echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
8279 $as_echo "$ac_cv_var_tzname" >&6; }
8280 if test $ac_cv_var_tzname = yes; then
8282 cat >>confdefs.h
<<\_ACEOF
8283 #define HAVE_TZNAME 1
8289 { $as_echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
8290 $as_echo_n "checking for struct tm.tm_gmtoff... " >&6; }
8291 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
8292 $as_echo_n "(cached) " >&6
8294 cat >conftest.
$ac_ext <<_ACEOF
8297 cat confdefs.h
>>conftest.
$ac_ext
8298 cat >>conftest.
$ac_ext <<_ACEOF
8299 /* end confdefs.h. */
8305 static struct tm ac_aggr;
8306 if (ac_aggr.tm_gmtoff)
8312 rm -f conftest.
$ac_objext
8313 if { (ac_try
="$ac_compile"
8315 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8316 *) ac_try_echo=$ac_try;;
8318 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8319 $as_echo "$ac_try_echo") >&5
8320 (eval "$ac_compile") 2>conftest.er1
8322 grep -v '^ *+' conftest.er1 >conftest.err
8324 cat conftest.err >&5
8325 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8326 (exit $ac_status); } && {
8327 test -z "$ac_c_werror_flag" ||
8328 test ! -s conftest.err
8329 } && test -s conftest.$ac_objext; then
8330 ac_cv_member_struct_tm_tm_gmtoff=yes
8332 $as_echo "$as_me: failed program was:" >&5
8333 sed 's/^/| /' conftest.$ac_ext >&5
8335 cat >conftest.$ac_ext <<_ACEOF
8338 cat confdefs.h >>conftest.$ac_ext
8339 cat >>conftest.$ac_ext <<_ACEOF
8340 /* end confdefs.h. */
8346 static struct tm ac_aggr;
8347 if (sizeof ac_aggr.tm_gmtoff)
8353 rm -f conftest.$ac_objext
8354 if { (ac_try="$ac_compile"
8356 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8357 *) ac_try_echo
=$ac_try;;
8359 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8360 $as_echo "$ac_try_echo") >&5
8361 (eval "$ac_compile") 2>conftest.er1
8363 grep -v '^ *+' conftest.er1
>conftest.err
8365 cat conftest.err
>&5
8366 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8367 (exit $ac_status); } && {
8368 test -z "$ac_c_werror_flag" ||
8369 test ! -s conftest.err
8370 } && test -s conftest.
$ac_objext; then
8371 ac_cv_member_struct_tm_tm_gmtoff
=yes
8373 $as_echo "$as_me: failed program was:" >&5
8374 sed 's/^/| /' conftest.
$ac_ext >&5
8376 ac_cv_member_struct_tm_tm_gmtoff
=no
8379 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8382 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8384 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
8385 $as_echo "$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
8386 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
8388 cat >>confdefs.h
<<\_ACEOF
8389 #define HAVE_TM_GMTOFF 1
8394 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
8395 $as_echo_n "checking for struct ifreq.ifr_flags... " >&6; }
8396 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
8397 $as_echo_n "(cached) " >&6
8399 cat >conftest.
$ac_ext <<_ACEOF
8402 cat confdefs.h
>>conftest.
$ac_ext
8403 cat >>conftest.
$ac_ext <<_ACEOF
8404 /* end confdefs.h. */
8405 $ac_includes_default
8406 #if HAVE_SYS_SOCKET_H
8407 #include <sys/socket.h>
8416 static struct ifreq ac_aggr;
8417 if (ac_aggr.ifr_flags)
8423 rm -f conftest.
$ac_objext
8424 if { (ac_try
="$ac_compile"
8426 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8427 *) ac_try_echo=$ac_try;;
8429 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8430 $as_echo "$ac_try_echo") >&5
8431 (eval "$ac_compile") 2>conftest.er1
8433 grep -v '^ *+' conftest.er1 >conftest.err
8435 cat conftest.err >&5
8436 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8437 (exit $ac_status); } && {
8438 test -z "$ac_c_werror_flag" ||
8439 test ! -s conftest.err
8440 } && test -s conftest.$ac_objext; then
8441 ac_cv_member_struct_ifreq_ifr_flags=yes
8443 $as_echo "$as_me: failed program was:" >&5
8444 sed 's/^/| /' conftest.$ac_ext >&5
8446 cat >conftest.$ac_ext <<_ACEOF
8449 cat confdefs.h >>conftest.$ac_ext
8450 cat >>conftest.$ac_ext <<_ACEOF
8451 /* end confdefs.h. */
8452 $ac_includes_default
8453 #if HAVE_SYS_SOCKET_H
8454 #include <sys/socket.h>
8463 static struct ifreq ac_aggr;
8464 if (sizeof ac_aggr.ifr_flags)
8470 rm -f conftest.$ac_objext
8471 if { (ac_try="$ac_compile"
8473 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8474 *) ac_try_echo
=$ac_try;;
8476 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8477 $as_echo "$ac_try_echo") >&5
8478 (eval "$ac_compile") 2>conftest.er1
8480 grep -v '^ *+' conftest.er1
>conftest.err
8482 cat conftest.err
>&5
8483 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8484 (exit $ac_status); } && {
8485 test -z "$ac_c_werror_flag" ||
8486 test ! -s conftest.err
8487 } && test -s conftest.
$ac_objext; then
8488 ac_cv_member_struct_ifreq_ifr_flags
=yes
8490 $as_echo "$as_me: failed program was:" >&5
8491 sed 's/^/| /' conftest.
$ac_ext >&5
8493 ac_cv_member_struct_ifreq_ifr_flags
=no
8496 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8499 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8501 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
8502 $as_echo "$ac_cv_member_struct_ifreq_ifr_flags" >&6; }
8503 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
8505 cat >>confdefs.h
<<_ACEOF
8506 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8511 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
8512 $as_echo_n "checking for struct ifreq.ifr_hwaddr... " >&6; }
8513 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
8514 $as_echo_n "(cached) " >&6
8516 cat >conftest.
$ac_ext <<_ACEOF
8519 cat confdefs.h
>>conftest.
$ac_ext
8520 cat >>conftest.
$ac_ext <<_ACEOF
8521 /* end confdefs.h. */
8522 $ac_includes_default
8523 #if HAVE_SYS_SOCKET_H
8524 #include <sys/socket.h>
8533 static struct ifreq ac_aggr;
8534 if (ac_aggr.ifr_hwaddr)
8540 rm -f conftest.
$ac_objext
8541 if { (ac_try
="$ac_compile"
8543 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8544 *) ac_try_echo=$ac_try;;
8546 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8547 $as_echo "$ac_try_echo") >&5
8548 (eval "$ac_compile") 2>conftest.er1
8550 grep -v '^ *+' conftest.er1 >conftest.err
8552 cat conftest.err >&5
8553 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8554 (exit $ac_status); } && {
8555 test -z "$ac_c_werror_flag" ||
8556 test ! -s conftest.err
8557 } && test -s conftest.$ac_objext; then
8558 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8560 $as_echo "$as_me: failed program was:" >&5
8561 sed 's/^/| /' conftest.$ac_ext >&5
8563 cat >conftest.$ac_ext <<_ACEOF
8566 cat confdefs.h >>conftest.$ac_ext
8567 cat >>conftest.$ac_ext <<_ACEOF
8568 /* end confdefs.h. */
8569 $ac_includes_default
8570 #if HAVE_SYS_SOCKET_H
8571 #include <sys/socket.h>
8580 static struct ifreq ac_aggr;
8581 if (sizeof ac_aggr.ifr_hwaddr)
8587 rm -f conftest.$ac_objext
8588 if { (ac_try="$ac_compile"
8590 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8591 *) ac_try_echo
=$ac_try;;
8593 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8594 $as_echo "$ac_try_echo") >&5
8595 (eval "$ac_compile") 2>conftest.er1
8597 grep -v '^ *+' conftest.er1
>conftest.err
8599 cat conftest.err
>&5
8600 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8601 (exit $ac_status); } && {
8602 test -z "$ac_c_werror_flag" ||
8603 test ! -s conftest.err
8604 } && test -s conftest.
$ac_objext; then
8605 ac_cv_member_struct_ifreq_ifr_hwaddr
=yes
8607 $as_echo "$as_me: failed program was:" >&5
8608 sed 's/^/| /' conftest.
$ac_ext >&5
8610 ac_cv_member_struct_ifreq_ifr_hwaddr
=no
8613 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8616 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8618 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
8619 $as_echo "$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; }
8620 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
8622 cat >>confdefs.h
<<_ACEOF
8623 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8628 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
8629 $as_echo_n "checking for struct ifreq.ifr_netmask... " >&6; }
8630 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
8631 $as_echo_n "(cached) " >&6
8633 cat >conftest.
$ac_ext <<_ACEOF
8636 cat confdefs.h
>>conftest.
$ac_ext
8637 cat >>conftest.
$ac_ext <<_ACEOF
8638 /* end confdefs.h. */
8639 $ac_includes_default
8640 #if HAVE_SYS_SOCKET_H
8641 #include <sys/socket.h>
8650 static struct ifreq ac_aggr;
8651 if (ac_aggr.ifr_netmask)
8657 rm -f conftest.
$ac_objext
8658 if { (ac_try
="$ac_compile"
8660 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8661 *) ac_try_echo=$ac_try;;
8663 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8664 $as_echo "$ac_try_echo") >&5
8665 (eval "$ac_compile") 2>conftest.er1
8667 grep -v '^ *+' conftest.er1 >conftest.err
8669 cat conftest.err >&5
8670 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8671 (exit $ac_status); } && {
8672 test -z "$ac_c_werror_flag" ||
8673 test ! -s conftest.err
8674 } && test -s conftest.$ac_objext; then
8675 ac_cv_member_struct_ifreq_ifr_netmask=yes
8677 $as_echo "$as_me: failed program was:" >&5
8678 sed 's/^/| /' conftest.$ac_ext >&5
8680 cat >conftest.$ac_ext <<_ACEOF
8683 cat confdefs.h >>conftest.$ac_ext
8684 cat >>conftest.$ac_ext <<_ACEOF
8685 /* end confdefs.h. */
8686 $ac_includes_default
8687 #if HAVE_SYS_SOCKET_H
8688 #include <sys/socket.h>
8697 static struct ifreq ac_aggr;
8698 if (sizeof ac_aggr.ifr_netmask)
8704 rm -f conftest.$ac_objext
8705 if { (ac_try="$ac_compile"
8707 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8708 *) ac_try_echo
=$ac_try;;
8710 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8711 $as_echo "$ac_try_echo") >&5
8712 (eval "$ac_compile") 2>conftest.er1
8714 grep -v '^ *+' conftest.er1
>conftest.err
8716 cat conftest.err
>&5
8717 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8718 (exit $ac_status); } && {
8719 test -z "$ac_c_werror_flag" ||
8720 test ! -s conftest.err
8721 } && test -s conftest.
$ac_objext; then
8722 ac_cv_member_struct_ifreq_ifr_netmask
=yes
8724 $as_echo "$as_me: failed program was:" >&5
8725 sed 's/^/| /' conftest.
$ac_ext >&5
8727 ac_cv_member_struct_ifreq_ifr_netmask
=no
8730 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8733 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8735 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
8736 $as_echo "$ac_cv_member_struct_ifreq_ifr_netmask" >&6; }
8737 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
8739 cat >>confdefs.h
<<_ACEOF
8740 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8745 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
8746 $as_echo_n "checking for struct ifreq.ifr_broadaddr... " >&6; }
8747 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
8748 $as_echo_n "(cached) " >&6
8750 cat >conftest.
$ac_ext <<_ACEOF
8753 cat confdefs.h
>>conftest.
$ac_ext
8754 cat >>conftest.
$ac_ext <<_ACEOF
8755 /* end confdefs.h. */
8756 $ac_includes_default
8757 #if HAVE_SYS_SOCKET_H
8758 #include <sys/socket.h>
8767 static struct ifreq ac_aggr;
8768 if (ac_aggr.ifr_broadaddr)
8774 rm -f conftest.
$ac_objext
8775 if { (ac_try
="$ac_compile"
8777 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8778 *) ac_try_echo=$ac_try;;
8780 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8781 $as_echo "$ac_try_echo") >&5
8782 (eval "$ac_compile") 2>conftest.er1
8784 grep -v '^ *+' conftest.er1 >conftest.err
8786 cat conftest.err >&5
8787 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8788 (exit $ac_status); } && {
8789 test -z "$ac_c_werror_flag" ||
8790 test ! -s conftest.err
8791 } && test -s conftest.$ac_objext; then
8792 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8794 $as_echo "$as_me: failed program was:" >&5
8795 sed 's/^/| /' conftest.$ac_ext >&5
8797 cat >conftest.$ac_ext <<_ACEOF
8800 cat confdefs.h >>conftest.$ac_ext
8801 cat >>conftest.$ac_ext <<_ACEOF
8802 /* end confdefs.h. */
8803 $ac_includes_default
8804 #if HAVE_SYS_SOCKET_H
8805 #include <sys/socket.h>
8814 static struct ifreq ac_aggr;
8815 if (sizeof ac_aggr.ifr_broadaddr)
8821 rm -f conftest.$ac_objext
8822 if { (ac_try="$ac_compile"
8824 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8825 *) ac_try_echo
=$ac_try;;
8827 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8828 $as_echo "$ac_try_echo") >&5
8829 (eval "$ac_compile") 2>conftest.er1
8831 grep -v '^ *+' conftest.er1
>conftest.err
8833 cat conftest.err
>&5
8834 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8835 (exit $ac_status); } && {
8836 test -z "$ac_c_werror_flag" ||
8837 test ! -s conftest.err
8838 } && test -s conftest.
$ac_objext; then
8839 ac_cv_member_struct_ifreq_ifr_broadaddr
=yes
8841 $as_echo "$as_me: failed program was:" >&5
8842 sed 's/^/| /' conftest.
$ac_ext >&5
8844 ac_cv_member_struct_ifreq_ifr_broadaddr
=no
8847 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8850 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8852 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
8853 $as_echo "$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; }
8854 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
8856 cat >>confdefs.h
<<_ACEOF
8857 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8862 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
8863 $as_echo_n "checking for struct ifreq.ifr_addr... " >&6; }
8864 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
8865 $as_echo_n "(cached) " >&6
8867 cat >conftest.
$ac_ext <<_ACEOF
8870 cat confdefs.h
>>conftest.
$ac_ext
8871 cat >>conftest.
$ac_ext <<_ACEOF
8872 /* end confdefs.h. */
8873 $ac_includes_default
8874 #if HAVE_SYS_SOCKET_H
8875 #include <sys/socket.h>
8884 static struct ifreq ac_aggr;
8885 if (ac_aggr.ifr_addr)
8891 rm -f conftest.
$ac_objext
8892 if { (ac_try
="$ac_compile"
8894 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8895 *) ac_try_echo=$ac_try;;
8897 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8898 $as_echo "$ac_try_echo") >&5
8899 (eval "$ac_compile") 2>conftest.er1
8901 grep -v '^ *+' conftest.er1 >conftest.err
8903 cat conftest.err >&5
8904 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8905 (exit $ac_status); } && {
8906 test -z "$ac_c_werror_flag" ||
8907 test ! -s conftest.err
8908 } && test -s conftest.$ac_objext; then
8909 ac_cv_member_struct_ifreq_ifr_addr=yes
8911 $as_echo "$as_me: failed program was:" >&5
8912 sed 's/^/| /' conftest.$ac_ext >&5
8914 cat >conftest.$ac_ext <<_ACEOF
8917 cat confdefs.h >>conftest.$ac_ext
8918 cat >>conftest.$ac_ext <<_ACEOF
8919 /* end confdefs.h. */
8920 $ac_includes_default
8921 #if HAVE_SYS_SOCKET_H
8922 #include <sys/socket.h>
8931 static struct ifreq ac_aggr;
8932 if (sizeof ac_aggr.ifr_addr)
8938 rm -f conftest.$ac_objext
8939 if { (ac_try="$ac_compile"
8941 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8942 *) ac_try_echo
=$ac_try;;
8944 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8945 $as_echo "$ac_try_echo") >&5
8946 (eval "$ac_compile") 2>conftest.er1
8948 grep -v '^ *+' conftest.er1
>conftest.err
8950 cat conftest.err
>&5
8951 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8952 (exit $ac_status); } && {
8953 test -z "$ac_c_werror_flag" ||
8954 test ! -s conftest.err
8955 } && test -s conftest.
$ac_objext; then
8956 ac_cv_member_struct_ifreq_ifr_addr
=yes
8958 $as_echo "$as_me: failed program was:" >&5
8959 sed 's/^/| /' conftest.
$ac_ext >&5
8961 ac_cv_member_struct_ifreq_ifr_addr
=no
8964 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8967 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8969 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
8970 $as_echo "$ac_cv_member_struct_ifreq_ifr_addr" >&6; }
8971 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
8973 cat >>confdefs.h
<<_ACEOF
8974 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8982 { $as_echo "$as_me:$LINENO: checking for function prototypes" >&5
8983 $as_echo_n "checking for function prototypes... " >&6; }
8984 if test "$ac_cv_prog_cc_c89" != no
; then
8985 { $as_echo "$as_me:$LINENO: result: yes" >&5
8986 $as_echo "yes" >&6; }
8988 cat >>confdefs.h
<<\_ACEOF
8989 #define PROTOTYPES 1
8993 cat >>confdefs.h
<<\_ACEOF
8994 #define __PROTOTYPES 1
8998 { $as_echo "$as_me:$LINENO: result: no" >&5
8999 $as_echo "no" >&6; }
9002 { $as_echo "$as_me:$LINENO: checking for working volatile" >&5
9003 $as_echo_n "checking for working volatile... " >&6; }
9004 if test "${ac_cv_c_volatile+set}" = set; then
9005 $as_echo_n "(cached) " >&6
9007 cat >conftest.
$ac_ext <<_ACEOF
9010 cat confdefs.h
>>conftest.
$ac_ext
9011 cat >>conftest.
$ac_ext <<_ACEOF
9012 /* end confdefs.h. */
9019 int * volatile y = (int *) 0;
9025 rm -f conftest.
$ac_objext
9026 if { (ac_try
="$ac_compile"
9028 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9029 *) ac_try_echo=$ac_try;;
9031 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9032 $as_echo "$ac_try_echo") >&5
9033 (eval "$ac_compile") 2>conftest.er1
9035 grep -v '^ *+' conftest.er1 >conftest.err
9037 cat conftest.err >&5
9038 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9039 (exit $ac_status); } && {
9040 test -z "$ac_c_werror_flag" ||
9041 test ! -s conftest.err
9042 } && test -s conftest.$ac_objext; then
9043 ac_cv_c_volatile=yes
9045 $as_echo "$as_me: failed program was:" >&5
9046 sed 's/^/| /' conftest.$ac_ext >&5
9051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9053 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
9054 $as_echo "$ac_cv_c_volatile" >&6; }
9055 if test $ac_cv_c_volatile = no; then
9057 cat >>confdefs.h <<\_ACEOF
9058 #define volatile /**/
9063 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9064 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
9065 if test "${ac_cv_c_const+set}" = set; then
9066 $as_echo_n "(cached) " >&6
9068 cat >conftest.$ac_ext <<_ACEOF
9071 cat confdefs.h >>conftest.$ac_ext
9072 cat >>conftest.$ac_ext <<_ACEOF
9073 /* end confdefs.h. */
9078 /* FIXME: Include the comments suggested by Paul. */
9080 /* Ultrix mips cc rejects this. */
9081 typedef int charset[2];
9083 /* SunOS 4.1.1 cc rejects this. */
9084 char const *const *pcpcc;
9086 /* NEC SVR4.0.2 mips cc rejects this. */
9087 struct point {int x, y;};
9088 static struct point const zero = {0,0};
9089 /* AIX XL C 1.02.0.0 rejects this.
9090 It does not let you subtract one const X* pointer from another in
9091 an arm of an if-expression whose if-part is not a constant
9093 const char *g = "string";
9094 pcpcc = &g + (g ? g-g : 0);
9095 /* HPUX 7.0 cc rejects these. */
9097 ppc = (char**) pcpcc;
9098 pcpcc = (char const *const *) ppc;
9099 { /* SCO 3.2v4 cc rejects this. */
9101 char const *s = 0 ? (char *) 0 : (char const *) 0;
9106 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9108 const int *foo = &x[0];
9111 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9112 typedef const int *iptr;
9116 { /* AIX XL C 1.02.0.0 rejects this saying
9117 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9118 struct s { int j; const int *ap[3]; };
9119 struct s *b; b->j = 5;
9121 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9125 return !cs[0] && !zero.x;
9132 rm -f conftest.$ac_objext
9133 if { (ac_try="$ac_compile"
9135 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9136 *) ac_try_echo
=$ac_try;;
9138 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
9139 $as_echo "$ac_try_echo") >&5
9140 (eval "$ac_compile") 2>conftest.er1
9142 grep -v '^ *+' conftest.er1
>conftest.err
9144 cat conftest.err
>&5
9145 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9146 (exit $ac_status); } && {
9147 test -z "$ac_c_werror_flag" ||
9148 test ! -s conftest.err
9149 } && test -s conftest.
$ac_objext; then
9152 $as_echo "$as_me: failed program was:" >&5
9153 sed 's/^/| /' conftest.
$ac_ext >&5
9158 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9160 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9161 $as_echo "$ac_cv_c_const" >&6; }
9162 if test $ac_cv_c_const = no
; then
9164 cat >>confdefs.h
<<\_ACEOF
9170 { $as_echo "$as_me:$LINENO: checking for void * support" >&5
9171 $as_echo_n "checking for void * support... " >&6; }
9172 if test "${emacs_cv_void_star+set}" = set; then
9173 $as_echo_n "(cached) " >&6
9175 cat >conftest.
$ac_ext <<_ACEOF
9178 cat confdefs.h
>>conftest.
$ac_ext
9179 cat >>conftest.
$ac_ext <<_ACEOF
9180 /* end confdefs.h. */
9190 rm -f conftest.
$ac_objext
9191 if { (ac_try
="$ac_compile"
9193 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9194 *) ac_try_echo=$ac_try;;
9196 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9197 $as_echo "$ac_try_echo") >&5
9198 (eval "$ac_compile") 2>conftest.er1
9200 grep -v '^ *+' conftest.er1 >conftest.err
9202 cat conftest.err >&5
9203 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9204 (exit $ac_status); } && {
9205 test -z "$ac_c_werror_flag" ||
9206 test ! -s conftest.err
9207 } && test -s conftest.$ac_objext; then
9208 emacs_cv_void_star=yes
9210 $as_echo "$as_me: failed program was:" >&5
9211 sed 's/^/| /' conftest.$ac_ext >&5
9213 emacs_cv_void_star=no
9216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9218 { $as_echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
9219 $as_echo "$emacs_cv_void_star" >&6; }
9220 if test $emacs_cv_void_star = yes; then
9221 cat >>confdefs.h <<\_ACEOF
9222 #define POINTER_TYPE void
9226 cat >>confdefs.h <<\_ACEOF
9227 #define POINTER_TYPE char
9236 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9237 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
9239 ac_make=`$as_echo "$2" |
sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
9240 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
9241 $as_echo_n "(cached) " >&6
9243 cat >conftest.make <<\_ACEOF
9246 @echo '@@@%%%=$(MAKE)=@@@%%%'
9248 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9249 case `${MAKE-make} -f conftest.
make 2>/dev
/null
` in
9251 eval ac_cv_prog_make_${ac_make}_set=yes;;
9253 eval ac_cv_prog_make_${ac_make}_set=no;;
9257 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
9258 { $as_echo "$as_me:$LINENO: result: yes" >&5
9259 $as_echo "yes" >&6; }
9262 { $as_echo "$as_me:$LINENO: result: no" >&5
9263 $as_echo "no" >&6; }
9264 SET_MAKE="MAKE=${MAKE-make}"
9268 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
9269 { $as_echo "$as_me:$LINENO: checking whether we are using GNU Make" >&5
9270 $as_echo_n "checking whether we are using GNU Make... " >&6; }
9272 testval=`make --version 2>/dev
/null |
grep 'GNU Make'`
9273 if test "x$testval" != x; then
9276 ac_enable_autodepend=no
9278 { $as_echo "$as_me:$LINENO: result: $HAVE_GNU_MAKE" >&5
9279 $as_echo "$HAVE_GNU_MAKE" >&6; }
9280 if test $HAVE_GNU_MAKE = yes; then
9281 { $as_echo "$as_me:$LINENO: checking whether gcc understands -MMD -MF" >&5
9282 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
9283 SAVE_CFLAGS="$CFLAGS"
9284 CFLAGS="$CFLAGS -MMD -MF deps.d"
9285 cat >conftest.$ac_ext <<_ACEOF
9288 cat confdefs.h >>conftest.$ac_ext
9289 cat >>conftest.$ac_ext <<_ACEOF
9290 /* end confdefs.h. */
9300 rm -f conftest.$ac_objext
9301 if { (ac_try="$ac_compile"
9303 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9304 *) ac_try_echo
=$ac_try;;
9306 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
9307 $as_echo "$ac_try_echo") >&5
9308 (eval "$ac_compile") 2>conftest.er1
9310 grep -v '^ *+' conftest.er1
>conftest.err
9312 cat conftest.err
>&5
9313 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9314 (exit $ac_status); } && {
9315 test -z "$ac_c_werror_flag" ||
9316 test ! -s conftest.err
9317 } && test -s conftest.
$ac_objext; then
9320 $as_echo "$as_me: failed program was:" >&5
9321 sed 's/^/| /' conftest.
$ac_ext >&5
9323 ac_enable_autodepend
=no
9326 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9327 CFLAGS
="$SAVE_CFLAGS"
9328 test -f deps.d || ac_enable_autodepend
=no
9330 { $as_echo "$as_me:$LINENO: result: $ac_enable_autodepend" >&5
9331 $as_echo "$ac_enable_autodepend" >&6; }
9333 if test $ac_enable_autodepend = yes; then
9335 cat >>confdefs.h
<<\_ACEOF
9336 #define AUTO_DEPEND 1
9342 { $as_echo "$as_me:$LINENO: checking for long file names" >&5
9343 $as_echo_n "checking for long file names... " >&6; }
9344 if test "${ac_cv_sys_long_file_names+set}" = set; then
9345 $as_echo_n "(cached) " >&6
9347 ac_cv_sys_long_file_names
=yes
9348 # Test for long file names in all the places we know might matter:
9349 # . the current directory, where building will happen
9350 # $prefix/lib where we will be installing things
9351 # $exec_prefix/lib likewise
9352 # $TMPDIR if set, where it might want to write temporary files
9353 # /tmp where it might want to write temporary files
9356 for ac_dir
in .
"$TMPDIR" /tmp
/var
/tmp
/usr
/tmp
"$prefix/lib" "$exec_prefix/lib"; do
9357 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
9358 # in the usual case where exec_prefix is '${prefix}'.
9360 . |
/* | ?
:[\\/]*) ;; #(
9363 test -w "$ac_dir/." ||
continue # It is less confusing to not echo anything here.
9364 ac_xdir
=$ac_dir/cf$$
9365 (umask 077 && mkdir
"$ac_xdir" 2>/dev
/null
) ||
continue
9366 ac_tf1
=$ac_xdir/conftest9012345
9367 ac_tf2
=$ac_xdir/conftest9012346
9368 touch "$ac_tf1" 2>/dev
/null
&& test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9369 ac_cv_sys_long_file_names
=no
9370 rm -f -r "$ac_xdir" 2>/dev
/null
9371 test $ac_cv_sys_long_file_names = no
&& break
9374 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
9375 $as_echo "$ac_cv_sys_long_file_names" >&6; }
9376 if test $ac_cv_sys_long_file_names = yes; then
9378 cat >>confdefs.h
<<\_ACEOF
9379 #define HAVE_LONG_FILE_NAMES 1
9385 #### Choose a window system.
9387 { $as_echo "$as_me:$LINENO: checking for X" >&5
9388 $as_echo_n "checking for X... " >&6; }
9391 # Check whether --with-x was given.
9392 if test "${with_x+set}" = set; then
9396 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9397 if test "x$with_x" = xno
; then
9398 # The user explicitly disabled X.
9401 case $x_includes,$x_libraries in #(
9402 *\'*) { { $as_echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
9403 $as_echo "$as_me: error: Cannot use X directory names containing '" >&2;}
9404 { (exit 1); exit 1; }; };; #(
9405 *,NONE | NONE
,*) if test "${ac_cv_have_x+set}" = set; then
9406 $as_echo_n "(cached) " >&6
9408 # One or both of the vars are not set, and there is no cached value.
9409 ac_x_includes
=no ac_x_libraries
=no
9410 rm -f -r conftest.dir
9411 if mkdir conftest.dir
; then
9413 cat >Imakefile
<<'_ACEOF'
9415 @echo incroot='${INCROOT}'
9417 @echo usrlibdir='${USRLIBDIR}'
9419 @echo libdir='${LIBDIR}'
9421 if (export CC
; ${XMKMF-xmkmf}) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
9422 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9423 for ac_var
in incroot usrlibdir libdir
; do
9424 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
9426 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9427 for ac_extension
in a so sl dylib la dll
; do
9428 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9429 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9430 ac_im_usrlibdir
=$ac_im_libdir; break
9433 # Screen out bogus values from the imake configuration. They are
9434 # bogus both because they are the default anyway, and because
9435 # using them would break gcc on systems where it needs fixed includes.
9436 case $ac_im_incroot in
9437 /usr
/include
) ac_x_includes
= ;;
9438 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
9440 case $ac_im_usrlibdir in
9442 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
9446 rm -f -r conftest.dir
9449 # Standard set of common directories for X headers.
9450 # Check X11 before X11Rn because it is often a symlink to the current release.
9462 /usr/local/X11/include
9463 /usr/local/X11R6/include
9464 /usr/local/X11R5/include
9465 /usr/local/X11R4/include
9467 /usr/local/include/X11
9468 /usr/local/include/X11R6
9469 /usr/local/include/X11R5
9470 /usr/local/include/X11R4
9474 /usr/XFree86/include/X11
9478 /usr/unsupported/include
9480 /usr/local/x11r5/include
9481 /usr/lpp/Xamples/include
9483 /usr/openwin/include
9484 /usr/openwin/share/include'
9486 if test "$ac_x_includes" = no
; then
9487 # Guess where to find include files, by looking for Xlib.h.
9488 # First, try using that file with no special directory specified.
9489 cat >conftest.
$ac_ext <<_ACEOF
9492 cat confdefs.h
>>conftest.
$ac_ext
9493 cat >>conftest.
$ac_ext <<_ACEOF
9494 /* end confdefs.h. */
9495 #include <X11/Xlib.h>
9497 if { (ac_try
="$ac_cpp conftest.$ac_ext"
9499 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9500 *) ac_try_echo=$ac_try;;
9502 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9503 $as_echo "$ac_try_echo") >&5
9504 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9506 grep -v '^ *+' conftest.er1 >conftest.err
9508 cat conftest.err >&5
9509 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9510 (exit $ac_status); } >/dev/null && {
9511 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9512 test ! -s conftest.err
9514 # We can compile using X headers with no special include directory.
9517 $as_echo "$as_me: failed program was:" >&5
9518 sed 's/^/| /' conftest.$ac_ext >&5
9520 for ac_dir in $ac_x_header_dirs; do
9521 if test -r "$ac_dir/X11/Xlib.h"; then
9522 ac_x_includes=$ac_dir
9528 rm -f conftest.err conftest.$ac_ext
9529 fi # $ac_x_includes = no
9531 if test "$ac_x_libraries" = no; then
9532 # Check for the libraries.
9533 # See if we find them without any special options.
9534 # Don't add to $LIBS permanently.
9537 cat >conftest.$ac_ext <<_ACEOF
9540 cat confdefs.h >>conftest.$ac_ext
9541 cat >>conftest.$ac_ext <<_ACEOF
9542 /* end confdefs.h. */
9543 #include <X11/Xlib.h>
9552 rm -f conftest.$ac_objext conftest$ac_exeext
9553 if { (ac_try="$ac_link"
9555 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9556 *) ac_try_echo
=$ac_try;;
9558 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
9559 $as_echo "$ac_try_echo") >&5
9560 (eval "$ac_link") 2>conftest.er1
9562 grep -v '^ *+' conftest.er1
>conftest.err
9564 cat conftest.err
>&5
9565 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9566 (exit $ac_status); } && {
9567 test -z "$ac_c_werror_flag" ||
9568 test ! -s conftest.err
9569 } && test -s conftest
$ac_exeext && {
9570 test "$cross_compiling" = yes ||
9571 $as_test_x conftest
$ac_exeext
9574 # We can link X programs with no special library path.
9577 $as_echo "$as_me: failed program was:" >&5
9578 sed 's/^/| /' conftest.
$ac_ext >&5
9581 for ac_dir
in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9583 # Don't even attempt the hair of trying to link an X program!
9584 for ac_extension
in a so sl dylib la dll
; do
9585 if test -r "$ac_dir/libX11.$ac_extension"; then
9586 ac_x_libraries
=$ac_dir
9593 rm -rf conftest.dSYM
9594 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9595 conftest
$ac_exeext conftest.
$ac_ext
9596 fi # $ac_x_libraries = no
9598 case $ac_x_includes,$ac_x_libraries in #(
9600 # Didn't find X, or a directory has "'" in its name.
9601 ac_cv_have_x
="have_x=no";; #(
9603 # Record where we found X for the cache.
9604 ac_cv_have_x
="have_x=yes\
9605 ac_x_includes='$ac_x_includes'\
9606 ac_x_libraries='$ac_x_libraries'"
9612 eval "$ac_cv_have_x"
9615 if test "$have_x" != yes; then
9616 { $as_echo "$as_me:$LINENO: result: $have_x" >&5
9617 $as_echo "$have_x" >&6; }
9620 # If each of the values was on the command line, it overrides each guess.
9621 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
9622 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
9623 # Update the cache value to reflect the command line values.
9624 ac_cv_have_x
="have_x=yes\
9625 ac_x_includes='$x_includes'\
9626 ac_x_libraries='$x_libraries'"
9627 { $as_echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9628 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
9631 if test "$no_x" = yes; then
9637 ## Workaround for bug in autoconf <= 2.62.
9638 ## http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01551.html
9639 ## No need to do anything special for these standard directories.
9640 ## This is an experiment, take it out if it causes problems.
9641 if test -n "${x_libraries}" && test x
"${x_libraries}" != xNONE
; then
9643 x_libraries
=`echo :${x_libraries}: | sed -e 's|:/usr/lib64:|:|g' -e 's|:/lib64:|:|g' -e 's|^:||' -e 's|:$||'`
9647 if test "${x_libraries}" != NONE
; then
9648 if test -n "${x_libraries}"; then
9649 LD_SWITCH_X_SITE
=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
9650 LD_SWITCH_X_SITE_AUX
=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
9652 x_default_search_path
=""
9653 x_search_path
=${x_libraries}
9654 if test -z "${x_search_path}"; then
9655 x_search_path
=/usr
/lib
9657 for x_library
in `echo ${x_search_path}: | \
9658 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
9660 ${x_library}/X11/%L/%T/%N%C%S:\
9661 ${x_library}/X11/%l/%T/%N%C%S:\
9662 ${x_library}/X11/%T/%N%C%S:\
9663 ${x_library}/X11/%L/%T/%N%S:\
9664 ${x_library}/X11/%l/%T/%N%S:\
9665 ${x_library}/X11/%T/%N%S"
9666 if test x
"${x_default_search_path}" = x
; then
9667 x_default_search_path
=${x_search_path}
9669 x_default_search_path
="${x_search_path}:${x_default_search_path}"
9673 if test "${x_includes}" != NONE
&& test -n "${x_includes}"; then
9674 C_SWITCH_X_SITE
=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
9677 if test x
"${x_includes}" = x
; then
9678 bitmapdir
=/usr
/include
/X11
/bitmaps
9680 # accumulate include directories that have X11 bitmap subdirectories
9682 for bmd
in `echo ${x_includes} | sed -e "s/:/ /g"`; do
9683 if test -d "${bmd}/X11/bitmaps"; then
9684 bmd_acc
="${bmd_acc}:${bmd}/X11/bitmaps"
9686 if test -d "${bmd}/bitmaps"; then
9687 bmd_acc
="${bmd_acc}:${bmd}/bitmaps"
9690 if test ${bmd_acc} != "dummyval"; then
9691 bitmapdir
=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9698 tmp_CPPFLAGS
="$CPPFLAGS"
9699 tmp_CFLAGS
="$CFLAGS"
9700 CPPFLAGS
="$CPPFLAGS -x objective-c"
9701 CFLAGS
="$CFLAGS -x objective-c"
9702 if test "${with_ns}" != no
; then
9703 if test "${opsys}" = darwin
; then
9705 ns_appdir
=`pwd`/nextstep
/Emacs.app
9706 ns_appbindir
=`pwd`/nextstep
/Emacs.app
/Contents
/MacOS
9707 ns_appresdir
=`pwd`/nextstep
/Emacs.app
/Contents
/Resources
9708 ns_appsrc
=${srcdir}/nextstep
/Cocoa
/Emacs.base
9709 elif test -f $GNUSTEP_CONFIG_FILE; then
9711 ns_appdir
=`pwd`/nextstep
/Emacs.app
9712 ns_appbindir
=`pwd`/nextstep
/Emacs.app
9713 ns_appresdir
=`pwd`/nextstep
/Emacs.app
/Resources
9714 ns_appsrc
=${srcdir}/nextstep
/GNUstep
/Emacs.base
9715 GNUSTEP_MAKEFILES
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_MAKEFILES)"
9716 GNUSTEP_SYSTEM_HEADERS
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
9717 GNUSTEP_SYSTEM_LIBRARIES
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
9718 CPPFLAGS
="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9719 CFLAGS
="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9720 REAL_CFLAGS
="$REAL_CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9721 LDFLAGS
="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES}"
9723 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9724 { $as_echo "$as_me:$LINENO: checking for AppKit/AppKit.h" >&5
9725 $as_echo_n "checking for AppKit/AppKit.h... " >&6; }
9726 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9727 $as_echo_n "(cached) " >&6
9729 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_AppKit_AppKit_h" >&5
9730 $as_echo "$ac_cv_header_AppKit_AppKit_h" >&6; }
9732 # Is the header compilable?
9733 { $as_echo "$as_me:$LINENO: checking AppKit/AppKit.h usability" >&5
9734 $as_echo_n "checking AppKit/AppKit.h usability... " >&6; }
9735 cat >conftest.
$ac_ext <<_ACEOF
9738 cat confdefs.h
>>conftest.
$ac_ext
9739 cat >>conftest.
$ac_ext <<_ACEOF
9740 /* end confdefs.h. */
9741 $ac_includes_default
9742 #include <AppKit/AppKit.h>
9744 rm -f conftest.
$ac_objext
9745 if { (ac_try
="$ac_compile"
9747 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9748 *) ac_try_echo=$ac_try;;
9750 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9751 $as_echo "$ac_try_echo") >&5
9752 (eval "$ac_compile") 2>conftest.er1
9754 grep -v '^ *+' conftest.er1 >conftest.err
9756 cat conftest.err >&5
9757 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9758 (exit $ac_status); } && {
9759 test -z "$ac_c_werror_flag" ||
9760 test ! -s conftest.err
9761 } && test -s conftest.$ac_objext; then
9762 ac_header_compiler=yes
9764 $as_echo "$as_me: failed program was:" >&5
9765 sed 's/^/| /' conftest.$ac_ext >&5
9767 ac_header_compiler=no
9770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9771 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9772 $as_echo "$ac_header_compiler" >&6; }
9774 # Is the header present?
9775 { $as_echo "$as_me:$LINENO: checking AppKit/AppKit.h presence" >&5
9776 $as_echo_n "checking AppKit/AppKit.h presence... " >&6; }
9777 cat >conftest.$ac_ext <<_ACEOF
9780 cat confdefs.h >>conftest.$ac_ext
9781 cat >>conftest.$ac_ext <<_ACEOF
9782 /* end confdefs.h. */
9783 #include <AppKit/AppKit.h>
9785 if { (ac_try="$ac_cpp conftest.$ac_ext"
9787 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9788 *) ac_try_echo
=$ac_try;;
9790 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
9791 $as_echo "$ac_try_echo") >&5
9792 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9794 grep -v '^ *+' conftest.er1
>conftest.err
9796 cat conftest.err
>&5
9797 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9798 (exit $ac_status); } >/dev
/null
&& {
9799 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9800 test ! -s conftest.err
9802 ac_header_preproc
=yes
9804 $as_echo "$as_me: failed program was:" >&5
9805 sed 's/^/| /' conftest.
$ac_ext >&5
9807 ac_header_preproc
=no
9810 rm -f conftest.err conftest.
$ac_ext
9811 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9812 $as_echo "$ac_header_preproc" >&6; }
9814 # So? What about this header?
9815 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9817 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: accepted by the compiler, rejected by the preprocessor!" >&5
9818 $as_echo "$as_me: WARNING: AppKit/AppKit.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9819 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: proceeding with the compiler's result" >&5
9820 $as_echo "$as_me: WARNING: AppKit/AppKit.h: proceeding with the compiler's result" >&2;}
9821 ac_header_preproc
=yes
9824 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: present but cannot be compiled" >&5
9825 $as_echo "$as_me: WARNING: AppKit/AppKit.h: present but cannot be compiled" >&2;}
9826 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: check for missing prerequisite headers?" >&5
9827 $as_echo "$as_me: WARNING: AppKit/AppKit.h: check for missing prerequisite headers?" >&2;}
9828 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: see the Autoconf documentation" >&5
9829 $as_echo "$as_me: WARNING: AppKit/AppKit.h: see the Autoconf documentation" >&2;}
9830 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: section \"Present But Cannot Be Compiled\"" >&5
9831 $as_echo "$as_me: WARNING: AppKit/AppKit.h: section \"Present But Cannot Be Compiled\"" >&2;}
9832 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: proceeding with the preprocessor's result" >&5
9833 $as_echo "$as_me: WARNING: AppKit/AppKit.h: proceeding with the preprocessor's result" >&2;}
9834 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: in the future, the compiler will take precedence" >&5
9835 $as_echo "$as_me: WARNING: AppKit/AppKit.h: in the future, the compiler will take precedence" >&2;}
9839 { $as_echo "$as_me:$LINENO: checking for AppKit/AppKit.h" >&5
9840 $as_echo_n "checking for AppKit/AppKit.h... " >&6; }
9841 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9842 $as_echo_n "(cached) " >&6
9844 ac_cv_header_AppKit_AppKit_h
=$ac_header_preproc
9846 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_AppKit_AppKit_h" >&5
9847 $as_echo "$ac_cv_header_AppKit_AppKit_h" >&6; }
9850 if test $ac_cv_header_AppKit_AppKit_h = yes; then
9853 { { $as_echo "$as_me:$LINENO: error: \`--with-ns' was specified, but the include
9854 files are missing or cannot be compiled." >&5
9855 $as_echo "$as_me: error: \`--with-ns' was specified, but the include
9856 files are missing or cannot be compiled." >&2;}
9857 { (exit 1); exit 1; }; }
9861 NS_HAVE_NSINTEGER
=yes
9862 cat >conftest.
$ac_ext <<_ACEOF
9865 cat confdefs.h
>>conftest.
$ac_ext
9866 cat >>conftest.
$ac_ext <<_ACEOF
9867 /* end confdefs.h. */
9868 #include <Foundation/NSObjCRuntime.h>
9877 rm -f conftest.
$ac_objext
9878 if { (ac_try
="$ac_compile"
9880 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9881 *) ac_try_echo=$ac_try;;
9883 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9884 $as_echo "$ac_try_echo") >&5
9885 (eval "$ac_compile") 2>conftest.er1
9887 grep -v '^ *+' conftest.er1 >conftest.err
9889 cat conftest.err >&5
9890 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9891 (exit $ac_status); } && {
9892 test -z "$ac_c_werror_flag" ||
9893 test ! -s conftest.err
9894 } && test -s conftest.$ac_objext; then
9895 ns_have_nsinteger=yes
9897 $as_echo "$as_me: failed program was:" >&5
9898 sed 's/^/| /' conftest.$ac_ext >&5
9900 ns_have_nsinteger=no
9903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9904 if test $ns_have_nsinteger = no; then
9905 NS_HAVE_NSINTEGER=no
9908 if test "${HAVE_NS}" = yes; then
9909 window_system=nextstep
9911 # set up packaging dirs
9912 exec_prefix=${ns_appbindir}
9913 libexecdir=${ns_appbindir}/libexec
9914 if test "${EN_NS_SELF_CONTAINED}" = yes; then
9915 prefix=${ns_appresdir}
9918 CFLAGS="$tmp_CFLAGS"
9919 CPPFLAGS="$tmp_CPPFLAGS"
9921 case "${window_system}" in
9925 case "${with_x_toolkit}" in
9926 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9927 motif ) USE_X_TOOLKIT=MOTIF ;;
9929 USE_X_TOOLKIT=none ;;
9930 no ) USE_X_TOOLKIT=none ;;
9931 * ) USE_X_TOOLKIT=maybe ;;
9941 if test "$window_system" = none && test "X$with_x" != "Xno"; then
9942 # Extract the first word of "X", so it can be a program name with args.
9943 set dummy X; ac_word=$2
9944 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9945 $as_echo_n "checking for $ac_word... " >&6; }
9946 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then
9947 $as_echo_n "(cached) " >&6
9949 if test -n "$HAVE_XSERVER"; then
9950 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
9952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9956 test -z "$as_dir" && as_dir=.
9957 for ac_exec_ext in '' $ac_executable_extensions; do
9958 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9959 ac_cv_prog_HAVE_XSERVER="true"
9960 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9967 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
9970 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
9971 if test -n "$HAVE_XSERVER"; then
9972 { $as_echo "$as_me:$LINENO: result: $HAVE_XSERVER" >&5
9973 $as_echo "$HAVE_XSERVER" >&6; }
9975 { $as_echo "$as_me:$LINENO: result: no" >&5
9976 $as_echo "no" >&6; }
9980 if test "$HAVE_XSERVER" = true ||
9981 test -n "$DISPLAY" ||
9982 test "`echo /usr
/lib
/libX11.
*`" != "/usr/lib/libX11.*"; then
9983 { { $as_echo "$as_me:$LINENO: error: You seem to be running X, but no X development libraries
9984 were found. You should install the relevant development files for X
9985 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9986 sure you have development files for image handling, i.e.
9987 tiff, gif, jpeg, png and xpm.
9988 If you are sure you want Emacs compiled without X window support, pass
9991 $as_echo "$as_me: error: You seem to be running X, but no X development libraries
9992 were found. You should install the relevant development files for X
9993 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9994 sure you have development files for image handling, i.e.
9995 tiff, gif, jpeg, png and xpm.
9996 If you are sure you want Emacs compiled without X window support, pass
9998 to configure." >&2;}
9999 { (exit 1); exit 1; }; }
10003 ### If we're using X11, we should use the X menu package.
10005 case ${HAVE_X11} in
10006 yes ) HAVE_MENUS=yes ;;
10009 # Do the opsystem or machine files prohibit the use of the GNU malloc?
10010 # Assume not, until told otherwise.
10012 doug_lea_malloc=yes
10013 { $as_echo "$as_me:$LINENO: checking for malloc_get_state" >&5
10014 $as_echo_n "checking for malloc_get_state... " >&6; }
10015 if test "${ac_cv_func_malloc_get_state+set}" = set; then
10016 $as_echo_n "(cached) " >&6
10018 cat >conftest.$ac_ext <<_ACEOF
10021 cat confdefs.h >>conftest.$ac_ext
10022 cat >>conftest.$ac_ext <<_ACEOF
10023 /* end confdefs.h. */
10024 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
10025 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10026 #define malloc_get_state innocuous_malloc_get_state
10028 /* System header to define __stub macros and hopefully few prototypes,
10029 which can conflict with char malloc_get_state (); below.
10030 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10031 <limits.h> exists even on freestanding compilers. */
10034 # include <limits.h>
10036 # include <assert.h>
10039 #undef malloc_get_state
10041 /* Override any GCC internal prototype to avoid an error.
10042 Use char because int might match the return type of a GCC
10043 builtin and then its argument prototype would still apply. */
10047 char malloc_get_state ();
10048 /* The GNU C library defines this for functions which it implements
10049 to always fail with ENOSYS. Some functions are actually named
10050 something starting with __ and the normal name is an alias. */
10051 #if defined __stub_malloc_get_state || defined __stub___malloc_get_state
10058 return malloc_get_state ();
10063 rm -f conftest.$ac_objext conftest$ac_exeext
10064 if { (ac_try="$ac_link"
10065 case "(($ac_try" in
10066 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10067 *) ac_try_echo
=$ac_try;;
10069 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10070 $as_echo "$ac_try_echo") >&5
10071 (eval "$ac_link") 2>conftest.er1
10073 grep -v '^ *+' conftest.er1
>conftest.err
10075 cat conftest.err
>&5
10076 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10077 (exit $ac_status); } && {
10078 test -z "$ac_c_werror_flag" ||
10079 test ! -s conftest.err
10080 } && test -s conftest
$ac_exeext && {
10081 test "$cross_compiling" = yes ||
10082 $as_test_x conftest
$ac_exeext
10084 ac_cv_func_malloc_get_state
=yes
10086 $as_echo "$as_me: failed program was:" >&5
10087 sed 's/^/| /' conftest.
$ac_ext >&5
10089 ac_cv_func_malloc_get_state
=no
10092 rm -rf conftest.dSYM
10093 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10094 conftest
$ac_exeext conftest.
$ac_ext
10096 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
10097 $as_echo "$ac_cv_func_malloc_get_state" >&6; }
10098 if test $ac_cv_func_malloc_get_state = yes; then
10104 { $as_echo "$as_me:$LINENO: checking for malloc_set_state" >&5
10105 $as_echo_n "checking for malloc_set_state... " >&6; }
10106 if test "${ac_cv_func_malloc_set_state+set}" = set; then
10107 $as_echo_n "(cached) " >&6
10109 cat >conftest.
$ac_ext <<_ACEOF
10112 cat confdefs.h
>>conftest.
$ac_ext
10113 cat >>conftest.
$ac_ext <<_ACEOF
10114 /* end confdefs.h. */
10115 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
10116 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10117 #define malloc_set_state innocuous_malloc_set_state
10119 /* System header to define __stub macros and hopefully few prototypes,
10120 which can conflict with char malloc_set_state (); below.
10121 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10122 <limits.h> exists even on freestanding compilers. */
10125 # include <limits.h>
10127 # include <assert.h>
10130 #undef malloc_set_state
10132 /* Override any GCC internal prototype to avoid an error.
10133 Use char because int might match the return type of a GCC
10134 builtin and then its argument prototype would still apply. */
10138 char malloc_set_state ();
10139 /* The GNU C library defines this for functions which it implements
10140 to always fail with ENOSYS. Some functions are actually named
10141 something starting with __ and the normal name is an alias. */
10142 #if defined __stub_malloc_set_state || defined __stub___malloc_set_state
10149 return malloc_set_state ();
10154 rm -f conftest.
$ac_objext conftest
$ac_exeext
10155 if { (ac_try
="$ac_link"
10156 case "(($ac_try" in
10157 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10158 *) ac_try_echo=$ac_try;;
10160 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10161 $as_echo "$ac_try_echo") >&5
10162 (eval "$ac_link") 2>conftest.er1
10164 grep -v '^ *+' conftest.er1 >conftest.err
10166 cat conftest.err >&5
10167 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10168 (exit $ac_status); } && {
10169 test -z "$ac_c_werror_flag" ||
10170 test ! -s conftest.err
10171 } && test -s conftest$ac_exeext && {
10172 test "$cross_compiling" = yes ||
10173 $as_test_x conftest$ac_exeext
10175 ac_cv_func_malloc_set_state=yes
10177 $as_echo "$as_me: failed program was:" >&5
10178 sed 's/^/| /' conftest.$ac_ext >&5
10180 ac_cv_func_malloc_set_state=no
10183 rm -rf conftest.dSYM
10184 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10185 conftest$ac_exeext conftest.$ac_ext
10187 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
10188 $as_echo "$ac_cv_func_malloc_set_state" >&6; }
10189 if test $ac_cv_func_malloc_set_state = yes; then
10195 { $as_echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
10196 $as_echo_n "checking whether __after_morecore_hook exists... " >&6; }
10197 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
10198 $as_echo_n "(cached) " >&6
10200 cat >conftest.$ac_ext <<_ACEOF
10203 cat confdefs.h >>conftest.$ac_ext
10204 cat >>conftest.$ac_ext <<_ACEOF
10205 /* end confdefs.h. */
10206 extern void (* __after_morecore_hook)();
10210 __after_morecore_hook = 0
10215 rm -f conftest.$ac_objext conftest$ac_exeext
10216 if { (ac_try="$ac_link"
10217 case "(($ac_try" in
10218 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10219 *) ac_try_echo
=$ac_try;;
10221 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10222 $as_echo "$ac_try_echo") >&5
10223 (eval "$ac_link") 2>conftest.er1
10225 grep -v '^ *+' conftest.er1
>conftest.err
10227 cat conftest.err
>&5
10228 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10229 (exit $ac_status); } && {
10230 test -z "$ac_c_werror_flag" ||
10231 test ! -s conftest.err
10232 } && test -s conftest
$ac_exeext && {
10233 test "$cross_compiling" = yes ||
10234 $as_test_x conftest
$ac_exeext
10236 emacs_cv_var___after_morecore_hook
=yes
10238 $as_echo "$as_me: failed program was:" >&5
10239 sed 's/^/| /' conftest.
$ac_ext >&5
10241 emacs_cv_var___after_morecore_hook
=no
10244 rm -rf conftest.dSYM
10245 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10246 conftest
$ac_exeext conftest.
$ac_ext
10248 { $as_echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
10249 $as_echo "$emacs_cv_var___after_morecore_hook" >&6; }
10250 if test $emacs_cv_var___after_morecore_hook = no
; then
10253 if test "${system_malloc}" = "yes"; then
10255 GNU_MALLOC_reason
="
10256 (The GNU allocators don't work with this system configuration.)"
10258 if test "$doug_lea_malloc" = "yes" ; then
10259 if test "$GNU_MALLOC" = yes ; then
10260 GNU_MALLOC_reason
="
10261 (Using Doug Lea's new malloc from the GNU C Library.)"
10264 cat >>confdefs.h
<<\_ACEOF
10265 #define DOUG_LEA_MALLOC 1
10270 if test x
"${REL_ALLOC}" = x
; then
10271 REL_ALLOC
=${GNU_MALLOC}
10277 for ac_header
in stdlib.h unistd.h
10279 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10280 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10281 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10282 $as_echo_n "checking for $ac_header... " >&6; }
10283 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10284 $as_echo_n "(cached) " >&6
10286 ac_res
=`eval 'as_val=${'$as_ac_Header'}
10287 $as_echo "$as_val"'`
10288 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10289 $as_echo "$ac_res" >&6; }
10291 # Is the header compilable?
10292 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10293 $as_echo_n "checking $ac_header usability... " >&6; }
10294 cat >conftest.
$ac_ext <<_ACEOF
10297 cat confdefs.h
>>conftest.
$ac_ext
10298 cat >>conftest.
$ac_ext <<_ACEOF
10299 /* end confdefs.h. */
10300 $ac_includes_default
10301 #include <$ac_header>
10303 rm -f conftest.
$ac_objext
10304 if { (ac_try
="$ac_compile"
10305 case "(($ac_try" in
10306 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10307 *) ac_try_echo=$ac_try;;
10309 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10310 $as_echo "$ac_try_echo") >&5
10311 (eval "$ac_compile") 2>conftest.er1
10313 grep -v '^ *+' conftest.er1 >conftest.err
10315 cat conftest.err >&5
10316 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10317 (exit $ac_status); } && {
10318 test -z "$ac_c_werror_flag" ||
10319 test ! -s conftest.err
10320 } && test -s conftest.$ac_objext; then
10321 ac_header_compiler=yes
10323 $as_echo "$as_me: failed program was:" >&5
10324 sed 's/^/| /' conftest.$ac_ext >&5
10326 ac_header_compiler=no
10329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10330 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10331 $as_echo "$ac_header_compiler" >&6; }
10333 # Is the header present?
10334 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10335 $as_echo_n "checking $ac_header presence... " >&6; }
10336 cat >conftest.$ac_ext <<_ACEOF
10339 cat confdefs.h >>conftest.$ac_ext
10340 cat >>conftest.$ac_ext <<_ACEOF
10341 /* end confdefs.h. */
10342 #include <$ac_header>
10344 if { (ac_try="$ac_cpp conftest.$ac_ext"
10345 case "(($ac_try" in
10346 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10347 *) ac_try_echo
=$ac_try;;
10349 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10350 $as_echo "$ac_try_echo") >&5
10351 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10353 grep -v '^ *+' conftest.er1
>conftest.err
10355 cat conftest.err
>&5
10356 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10357 (exit $ac_status); } >/dev
/null
&& {
10358 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10359 test ! -s conftest.err
10361 ac_header_preproc
=yes
10363 $as_echo "$as_me: failed program was:" >&5
10364 sed 's/^/| /' conftest.
$ac_ext >&5
10366 ac_header_preproc
=no
10369 rm -f conftest.err conftest.
$ac_ext
10370 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10371 $as_echo "$ac_header_preproc" >&6; }
10373 # So? What about this header?
10374 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10376 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10377 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10378 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10379 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10380 ac_header_preproc
=yes
10383 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10384 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10385 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10386 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10387 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10388 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10389 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10390 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10391 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10392 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10393 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10394 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10398 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10399 $as_echo_n "checking for $ac_header... " >&6; }
10400 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10401 $as_echo_n "(cached) " >&6
10403 eval "$as_ac_Header=\$ac_header_preproc"
10405 ac_res
=`eval 'as_val=${'$as_ac_Header'}
10406 $as_echo "$as_val"'`
10407 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10408 $as_echo "$ac_res" >&6; }
10411 if test `eval 'as_val=${'$as_ac_Header'}
10412 $as_echo "$as_val"'` = yes; then
10413 cat >>confdefs.h
<<_ACEOF
10414 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10422 for ac_func
in getpagesize
10424 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10425 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
10426 $as_echo_n "checking for $ac_func... " >&6; }
10427 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10428 $as_echo_n "(cached) " >&6
10430 cat >conftest.
$ac_ext <<_ACEOF
10433 cat confdefs.h
>>conftest.
$ac_ext
10434 cat >>conftest.
$ac_ext <<_ACEOF
10435 /* end confdefs.h. */
10436 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10437 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10438 #define $ac_func innocuous_$ac_func
10440 /* System header to define __stub macros and hopefully few prototypes,
10441 which can conflict with char $ac_func (); below.
10442 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10443 <limits.h> exists even on freestanding compilers. */
10446 # include <limits.h>
10448 # include <assert.h>
10453 /* Override any GCC internal prototype to avoid an error.
10454 Use char because int might match the return type of a GCC
10455 builtin and then its argument prototype would still apply. */
10460 /* The GNU C library defines this for functions which it implements
10461 to always fail with ENOSYS. Some functions are actually named
10462 something starting with __ and the normal name is an alias. */
10463 #if defined __stub_$ac_func || defined __stub___$ac_func
10470 return $ac_func ();
10475 rm -f conftest.
$ac_objext conftest
$ac_exeext
10476 if { (ac_try
="$ac_link"
10477 case "(($ac_try" in
10478 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10479 *) ac_try_echo=$ac_try;;
10481 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10482 $as_echo "$ac_try_echo") >&5
10483 (eval "$ac_link") 2>conftest.er1
10485 grep -v '^ *+' conftest.er1 >conftest.err
10487 cat conftest.err >&5
10488 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10489 (exit $ac_status); } && {
10490 test -z "$ac_c_werror_flag" ||
10491 test ! -s conftest.err
10492 } && test -s conftest$ac_exeext && {
10493 test "$cross_compiling" = yes ||
10494 $as_test_x conftest$ac_exeext
10496 eval "$as_ac_var=yes"
10498 $as_echo "$as_me: failed program was:" >&5
10499 sed 's/^/| /' conftest.$ac_ext >&5
10501 eval "$as_ac_var=no"
10504 rm -rf conftest.dSYM
10505 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10506 conftest$ac_exeext conftest.$ac_ext
10508 ac_res=`eval 'as_val=${'$as_ac_var'}
10509 $as_echo "$as_val"'`
10510 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10511 $as_echo "$ac_res" >&6; }
10512 if test `eval 'as_val=${'$as_ac_var'}
10513 $as_echo "$as_val"'` = yes; then
10514 cat >>confdefs.h <<_ACEOF
10515 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
10521 { $as_echo "$as_me:$LINENO: checking for working mmap" >&5
10522 $as_echo_n "checking for working mmap... " >&6; }
10523 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
10524 $as_echo_n "(cached) " >&6
10526 if test "$cross_compiling" = yes; then
10527 ac_cv_func_mmap_fixed_mapped=no
10529 cat >conftest.$ac_ext <<_ACEOF
10532 cat confdefs.h >>conftest.$ac_ext
10533 cat >>conftest.$ac_ext <<_ACEOF
10534 /* end confdefs.h. */
10535 $ac_includes_default
10536 /* malloc might have been renamed as rpl_malloc. */
10539 /* Thanks to Mike Haertel and Jim Avera for this test.
10540 Here is a matrix of mmap possibilities:
10541 mmap private not fixed
10542 mmap private fixed at somewhere currently unmapped
10543 mmap private fixed at somewhere already mapped
10544 mmap shared not fixed
10545 mmap shared fixed at somewhere currently unmapped
10546 mmap shared fixed at somewhere already mapped
10547 For private mappings, we should verify that changes cannot be read()
10548 back from the file, nor mmap's back from the file at a different
10549 address. (There have been systems where private was not correctly
10550 implemented like the infamous i386 svr4.0, and systems where the
10551 VM page cache was not coherent with the file system buffer cache
10552 like early versions of FreeBSD and possibly contemporary NetBSD.)
10553 For shared mappings, we should conversely verify that changes get
10554 propagated back to all the places they're supposed to be.
10556 Grep wants private fixed already mapped.
10557 The main things grep needs to know about mmap are:
10558 * does it exist and is it safe to write into the mmap'd area
10559 * how to use it (BSD variants) */
10562 #include <sys/mman.h>
10564 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10568 /* This mess was copied from the GNU getpagesize.h. */
10569 #ifndef HAVE_GETPAGESIZE
10570 /* Assume that all systems that can run configure have sys/param.h. */
10571 # ifndef HAVE_SYS_PARAM_H
10572 # define HAVE_SYS_PARAM_H 1
10575 # ifdef _SC_PAGESIZE
10576 # define getpagesize() sysconf(_SC_PAGESIZE)
10577 # else /* no _SC_PAGESIZE */
10578 # ifdef HAVE_SYS_PARAM_H
10579 # include <sys/param.h>
10580 # ifdef EXEC_PAGESIZE
10581 # define getpagesize() EXEC_PAGESIZE
10582 # else /* no EXEC_PAGESIZE */
10584 # define getpagesize() NBPG * CLSIZE
10587 # endif /* no CLSIZE */
10588 # else /* no NBPG */
10590 # define getpagesize() NBPC
10591 # else /* no NBPC */
10593 # define getpagesize() PAGESIZE
10594 # endif /* PAGESIZE */
10595 # endif /* no NBPC */
10596 # endif /* no NBPG */
10597 # endif /* no EXEC_PAGESIZE */
10598 # else /* no HAVE_SYS_PARAM_H */
10599 # define getpagesize() 8192 /* punt totally */
10600 # endif /* no HAVE_SYS_PARAM_H */
10601 # endif /* no _SC_PAGESIZE */
10603 #endif /* no HAVE_GETPAGESIZE */
10608 char *data, *data2, *data3;
10612 pagesize = getpagesize ();
10614 /* First, make a file with some known garbage in it. */
10615 data = (char *) malloc (pagesize);
10618 for (i = 0; i < pagesize; ++i)
10619 *(data + i) = rand ();
10621 fd = creat ("conftest.mmap", 0600);
10624 if (write (fd, data, pagesize) != pagesize)
10628 /* Next, try to mmap the file at a fixed address which already has
10629 something else allocated at it. If we can, also make sure that
10630 we see the same garbage. */
10631 fd = open ("conftest.mmap", O_RDWR);
10634 data2 = (char *) malloc (2 * pagesize);
10637 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10638 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10639 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10641 for (i = 0; i < pagesize; ++i)
10642 if (*(data + i) != *(data2 + i))
10645 /* Finally, make sure that changes to the mapped area do not
10646 percolate back to the file as seen by read(). (This is a bug on
10647 some variants of i386 svr4.0.) */
10648 for (i = 0; i < pagesize; ++i)
10649 *(data2 + i) = *(data2 + i) + 1;
10650 data3 = (char *) malloc (pagesize);
10653 if (read (fd, data3, pagesize) != pagesize)
10655 for (i = 0; i < pagesize; ++i)
10656 if (*(data + i) != *(data3 + i))
10662 rm -f conftest$ac_exeext
10663 if { (ac_try="$ac_link"
10664 case "(($ac_try" in
10665 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10666 *) ac_try_echo
=$ac_try;;
10668 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10669 $as_echo "$ac_try_echo") >&5
10670 (eval "$ac_link") 2>&5
10672 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10673 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10674 { (case "(($ac_try" in
10675 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10676 *) ac_try_echo=$ac_try;;
10678 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10679 $as_echo "$ac_try_echo") >&5
10680 (eval "$ac_try") 2>&5
10682 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10683 (exit $ac_status); }; }; then
10684 ac_cv_func_mmap_fixed_mapped=yes
10686 $as_echo "$as_me: program exited with status $ac_status" >&5
10687 $as_echo "$as_me: failed program was:" >&5
10688 sed 's/^/| /' conftest.$ac_ext >&5
10690 ( exit $ac_status )
10691 ac_cv_func_mmap_fixed_mapped=no
10693 rm -rf conftest.dSYM
10694 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10699 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10700 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
10701 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10703 cat >>confdefs.h <<\_ACEOF
10704 #define HAVE_MMAP 1
10708 rm -f conftest.mmap
10710 if test $use_mmap_for_buffers = yes; then
10714 LIBS="$libsrc_libs $LIBS"
10717 { $as_echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
10718 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
10719 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
10720 $as_echo_n "(cached) " >&6
10722 ac_check_lib_save_LIBS=$LIBS
10723 LIBS="-ldnet $LIBS"
10724 cat >conftest.$ac_ext <<_ACEOF
10727 cat confdefs.h >>conftest.$ac_ext
10728 cat >>conftest.$ac_ext <<_ACEOF
10729 /* end confdefs.h. */
10731 /* Override any GCC internal prototype to avoid an error.
10732 Use char because int might match the return type of a GCC
10733 builtin and then its argument prototype would still apply. */
10741 return dnet_ntoa ();
10746 rm -f conftest.$ac_objext conftest$ac_exeext
10747 if { (ac_try="$ac_link"
10748 case "(($ac_try" in
10749 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10750 *) ac_try_echo
=$ac_try;;
10752 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10753 $as_echo "$ac_try_echo") >&5
10754 (eval "$ac_link") 2>conftest.er1
10756 grep -v '^ *+' conftest.er1
>conftest.err
10758 cat conftest.err
>&5
10759 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10760 (exit $ac_status); } && {
10761 test -z "$ac_c_werror_flag" ||
10762 test ! -s conftest.err
10763 } && test -s conftest
$ac_exeext && {
10764 test "$cross_compiling" = yes ||
10765 $as_test_x conftest
$ac_exeext
10767 ac_cv_lib_dnet_dnet_ntoa
=yes
10769 $as_echo "$as_me: failed program was:" >&5
10770 sed 's/^/| /' conftest.
$ac_ext >&5
10772 ac_cv_lib_dnet_dnet_ntoa
=no
10775 rm -rf conftest.dSYM
10776 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10777 conftest
$ac_exeext conftest.
$ac_ext
10778 LIBS
=$ac_check_lib_save_LIBS
10780 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10781 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10782 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
10783 cat >>confdefs.h
<<_ACEOF
10784 #define HAVE_LIBDNET 1
10787 LIBS
="-ldnet $LIBS"
10792 { $as_echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
10793 $as_echo_n "checking for main in -lXbsd... " >&6; }
10794 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
10795 $as_echo_n "(cached) " >&6
10797 ac_check_lib_save_LIBS
=$LIBS
10798 LIBS
="-lXbsd $LIBS"
10799 cat >conftest.
$ac_ext <<_ACEOF
10802 cat confdefs.h
>>conftest.
$ac_ext
10803 cat >>conftest.
$ac_ext <<_ACEOF
10804 /* end confdefs.h. */
10815 rm -f conftest.
$ac_objext conftest
$ac_exeext
10816 if { (ac_try
="$ac_link"
10817 case "(($ac_try" in
10818 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10819 *) ac_try_echo=$ac_try;;
10821 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10822 $as_echo "$ac_try_echo") >&5
10823 (eval "$ac_link") 2>conftest.er1
10825 grep -v '^ *+' conftest.er1 >conftest.err
10827 cat conftest.err >&5
10828 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10829 (exit $ac_status); } && {
10830 test -z "$ac_c_werror_flag" ||
10831 test ! -s conftest.err
10832 } && test -s conftest$ac_exeext && {
10833 test "$cross_compiling" = yes ||
10834 $as_test_x conftest$ac_exeext
10836 ac_cv_lib_Xbsd_main=yes
10838 $as_echo "$as_me: failed program was:" >&5
10839 sed 's/^/| /' conftest.$ac_ext >&5
10841 ac_cv_lib_Xbsd_main=no
10844 rm -rf conftest.dSYM
10845 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10846 conftest$ac_exeext conftest.$ac_ext
10847 LIBS=$ac_check_lib_save_LIBS
10849 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
10850 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
10851 if test $ac_cv_lib_Xbsd_main = yes; then
10852 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
10857 { $as_echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
10858 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
10859 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
10860 $as_echo_n "(cached) " >&6
10862 ac_check_lib_save_LIBS=$LIBS
10863 LIBS="-lpthreads $LIBS"
10864 cat >conftest.$ac_ext <<_ACEOF
10867 cat confdefs.h >>conftest.$ac_ext
10868 cat >>conftest.$ac_ext <<_ACEOF
10869 /* end confdefs.h. */
10871 /* Override any GCC internal prototype to avoid an error.
10872 Use char because int might match the return type of a GCC
10873 builtin and then its argument prototype would still apply. */
10881 return cma_open ();
10886 rm -f conftest.$ac_objext conftest$ac_exeext
10887 if { (ac_try="$ac_link"
10888 case "(($ac_try" in
10889 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10890 *) ac_try_echo
=$ac_try;;
10892 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10893 $as_echo "$ac_try_echo") >&5
10894 (eval "$ac_link") 2>conftest.er1
10896 grep -v '^ *+' conftest.er1
>conftest.err
10898 cat conftest.err
>&5
10899 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10900 (exit $ac_status); } && {
10901 test -z "$ac_c_werror_flag" ||
10902 test ! -s conftest.err
10903 } && test -s conftest
$ac_exeext && {
10904 test "$cross_compiling" = yes ||
10905 $as_test_x conftest
$ac_exeext
10907 ac_cv_lib_pthreads_cma_open
=yes
10909 $as_echo "$as_me: failed program was:" >&5
10910 sed 's/^/| /' conftest.
$ac_ext >&5
10912 ac_cv_lib_pthreads_cma_open
=no
10915 rm -rf conftest.dSYM
10916 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10917 conftest
$ac_exeext conftest.
$ac_ext
10918 LIBS
=$ac_check_lib_save_LIBS
10920 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
10921 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
10922 if test $ac_cv_lib_pthreads_cma_open = yes; then
10923 cat >>confdefs.h
<<_ACEOF
10924 #define HAVE_LIBPTHREADS 1
10927 LIBS
="-lpthreads $LIBS"
10935 { $as_echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
10936 $as_echo_n "checking for -bbigtoc option... " >&6; }
10937 if test "${gdb_cv_bigtoc+set}" = set; then
10938 $as_echo_n "(cached) " >&6
10942 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
10943 *) gdb_cv_bigtoc
=-bbigtoc ;;
10946 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
10947 cat >conftest.
$ac_ext <<_ACEOF
10950 cat confdefs.h
>>conftest.
$ac_ext
10951 cat >>conftest.
$ac_ext <<_ACEOF
10952 /* end confdefs.h. */
10962 rm -f conftest.
$ac_objext conftest
$ac_exeext
10963 if { (ac_try
="$ac_link"
10964 case "(($ac_try" in
10965 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10966 *) ac_try_echo=$ac_try;;
10968 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10969 $as_echo "$ac_try_echo") >&5
10970 (eval "$ac_link") 2>conftest.er1
10972 grep -v '^ *+' conftest.er1 >conftest.err
10974 cat conftest.err >&5
10975 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10976 (exit $ac_status); } && {
10977 test -z "$ac_c_werror_flag" ||
10978 test ! -s conftest.err
10979 } && test -s conftest$ac_exeext && {
10980 test "$cross_compiling" = yes ||
10981 $as_test_x conftest$ac_exeext
10985 $as_echo "$as_me: failed program was:" >&5
10986 sed 's/^/| /' conftest.$ac_ext >&5
10991 rm -rf conftest.dSYM
10992 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10993 conftest$ac_exeext conftest.$ac_ext
10996 { $as_echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
10997 $as_echo "$gdb_cv_bigtoc" >&6; }
11001 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
11002 # used for the tests that follow. We set them back to REAL_CFLAGS and
11003 # REAL_CPPFLAGS later on.
11005 REAL_CPPFLAGS="$CPPFLAGS"
11007 if test "${HAVE_X11}" = "yes"; then
11008 DEFS="$C_SWITCH_X_SITE $DEFS"
11009 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
11011 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
11012 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
11014 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
11015 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
11016 # but it's more convenient here to set LD_RUN_PATH
11017 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
11018 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
11019 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
11023 if test "${opsys}" = "gnu-linux"; then
11024 { $as_echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
11025 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
11026 cat >conftest.$ac_ext <<_ACEOF
11029 cat confdefs.h >>conftest.$ac_ext
11030 cat >>conftest.$ac_ext <<_ACEOF
11031 /* end confdefs.h. */
11036 XOpenDisplay ("foo");
11041 rm -f conftest.$ac_objext conftest$ac_exeext
11042 if { (ac_try="$ac_link"
11043 case "(($ac_try" in
11044 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11045 *) ac_try_echo
=$ac_try;;
11047 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11048 $as_echo "$ac_try_echo") >&5
11049 (eval "$ac_link") 2>conftest.er1
11051 grep -v '^ *+' conftest.er1
>conftest.err
11053 cat conftest.err
>&5
11054 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11055 (exit $ac_status); } && {
11056 test -z "$ac_c_werror_flag" ||
11057 test ! -s conftest.err
11058 } && test -s conftest
$ac_exeext && {
11059 test "$cross_compiling" = yes ||
11060 $as_test_x conftest
$ac_exeext
11062 xlinux_first_failure
=no
11064 $as_echo "$as_me: failed program was:" >&5
11065 sed 's/^/| /' conftest.
$ac_ext >&5
11067 xlinux_first_failure
=yes
11070 rm -rf conftest.dSYM
11071 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11072 conftest
$ac_exeext conftest.
$ac_ext
11073 if test "${xlinux_first_failure}" = "yes"; then
11074 OLD_LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE"
11075 OLD_C_SWITCH_X_SITE
="$C_SWITCH_X_SITE"
11076 OLD_CPPFLAGS
="$CPPFLAGS"
11078 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -b i486-linuxaout"
11079 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE -b i486-linuxaout"
11080 CPPFLAGS
="$CPPFLAGS -b i486-linuxaout"
11081 LIBS
="$LIBS -b i486-linuxaout"
11082 cat >conftest.
$ac_ext <<_ACEOF
11085 cat confdefs.h
>>conftest.
$ac_ext
11086 cat >>conftest.
$ac_ext <<_ACEOF
11087 /* end confdefs.h. */
11092 XOpenDisplay ("foo");
11097 rm -f conftest.
$ac_objext conftest
$ac_exeext
11098 if { (ac_try
="$ac_link"
11099 case "(($ac_try" in
11100 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11101 *) ac_try_echo=$ac_try;;
11103 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11104 $as_echo "$ac_try_echo") >&5
11105 (eval "$ac_link") 2>conftest.er1
11107 grep -v '^ *+' conftest.er1 >conftest.err
11109 cat conftest.err >&5
11110 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11111 (exit $ac_status); } && {
11112 test -z "$ac_c_werror_flag" ||
11113 test ! -s conftest.err
11114 } && test -s conftest$ac_exeext && {
11115 test "$cross_compiling" = yes ||
11116 $as_test_x conftest$ac_exeext
11118 xlinux_second_failure=no
11120 $as_echo "$as_me: failed program was:" >&5
11121 sed 's/^/| /' conftest.$ac_ext >&5
11123 xlinux_second_failure=yes
11126 rm -rf conftest.dSYM
11127 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11128 conftest$ac_exeext conftest.$ac_ext
11129 if test "${xlinux_second_failure}" = "yes"; then
11130 # If we get the same failure with -b, there is no use adding -b.
11131 # So take it out. This plays safe.
11132 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
11133 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
11134 CPPFLAGS="$OLD_CPPFLAGS"
11136 { $as_echo "$as_me:$LINENO: result: no" >&5
11137 $as_echo "no" >&6; }
11139 { $as_echo "$as_me:$LINENO: result: yes" >&5
11140 $as_echo "yes" >&6; }
11143 { $as_echo "$as_me:$LINENO: result: no" >&5
11144 $as_echo "no" >&6; }
11148 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
11149 # header files included from there.
11150 { $as_echo "$as_me:$LINENO: checking for Xkb" >&5
11151 $as_echo_n "checking for Xkb... " >&6; }
11152 cat >conftest.$ac_ext <<_ACEOF
11155 cat confdefs.h >>conftest.$ac_ext
11156 cat >>conftest.$ac_ext <<_ACEOF
11157 /* end confdefs.h. */
11158 #include <X11/Xlib.h>
11159 #include <X11/XKBlib.h>
11163 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
11168 rm -f conftest.$ac_objext conftest$ac_exeext
11169 if { (ac_try="$ac_link"
11170 case "(($ac_try" in
11171 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11172 *) ac_try_echo
=$ac_try;;
11174 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11175 $as_echo "$ac_try_echo") >&5
11176 (eval "$ac_link") 2>conftest.er1
11178 grep -v '^ *+' conftest.er1
>conftest.err
11180 cat conftest.err
>&5
11181 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11182 (exit $ac_status); } && {
11183 test -z "$ac_c_werror_flag" ||
11184 test ! -s conftest.err
11185 } && test -s conftest
$ac_exeext && {
11186 test "$cross_compiling" = yes ||
11187 $as_test_x conftest
$ac_exeext
11191 $as_echo "$as_me: failed program was:" >&5
11192 sed 's/^/| /' conftest.
$ac_ext >&5
11197 rm -rf conftest.dSYM
11198 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11199 conftest
$ac_exeext conftest.
$ac_ext
11200 { $as_echo "$as_me:$LINENO: result: $emacs_xkb" >&5
11201 $as_echo "$emacs_xkb" >&6; }
11202 if test $emacs_xkb = yes; then
11204 cat >>confdefs.h
<<\_ACEOF
11205 #define HAVE_XKBGETKEYBOARD 1
11214 for ac_func
in XrmSetDatabase XScreenResourceString \
11215 XScreenNumberOfScreen XSetWMProtocols
11217 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11218 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11219 $as_echo_n "checking for $ac_func... " >&6; }
11220 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11221 $as_echo_n "(cached) " >&6
11223 cat >conftest.
$ac_ext <<_ACEOF
11226 cat confdefs.h
>>conftest.
$ac_ext
11227 cat >>conftest.
$ac_ext <<_ACEOF
11228 /* end confdefs.h. */
11229 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11230 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11231 #define $ac_func innocuous_$ac_func
11233 /* System header to define __stub macros and hopefully few prototypes,
11234 which can conflict with char $ac_func (); below.
11235 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11236 <limits.h> exists even on freestanding compilers. */
11239 # include <limits.h>
11241 # include <assert.h>
11246 /* Override any GCC internal prototype to avoid an error.
11247 Use char because int might match the return type of a GCC
11248 builtin and then its argument prototype would still apply. */
11253 /* The GNU C library defines this for functions which it implements
11254 to always fail with ENOSYS. Some functions are actually named
11255 something starting with __ and the normal name is an alias. */
11256 #if defined __stub_$ac_func || defined __stub___$ac_func
11263 return $ac_func ();
11268 rm -f conftest.
$ac_objext conftest
$ac_exeext
11269 if { (ac_try
="$ac_link"
11270 case "(($ac_try" in
11271 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11272 *) ac_try_echo=$ac_try;;
11274 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11275 $as_echo "$ac_try_echo") >&5
11276 (eval "$ac_link") 2>conftest.er1
11278 grep -v '^ *+' conftest.er1 >conftest.err
11280 cat conftest.err >&5
11281 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11282 (exit $ac_status); } && {
11283 test -z "$ac_c_werror_flag" ||
11284 test ! -s conftest.err
11285 } && test -s conftest$ac_exeext && {
11286 test "$cross_compiling" = yes ||
11287 $as_test_x conftest$ac_exeext
11289 eval "$as_ac_var=yes"
11291 $as_echo "$as_me: failed program was:" >&5
11292 sed 's/^/| /' conftest.$ac_ext >&5
11294 eval "$as_ac_var=no"
11297 rm -rf conftest.dSYM
11298 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11299 conftest$ac_exeext conftest.$ac_ext
11301 ac_res=`eval 'as_val=${'$as_ac_var'}
11302 $as_echo "$as_val"'`
11303 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11304 $as_echo "$ac_res" >&6; }
11305 if test `eval 'as_val=${'$as_ac_var'}
11306 $as_echo "$as_val"'` = yes; then
11307 cat >>confdefs.h <<_ACEOF
11308 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
11316 if test "${window_system}" = "x11"; then
11317 { $as_echo "$as_me:$LINENO: checking X11 version 6" >&5
11318 $as_echo_n "checking X11 version 6... " >&6; }
11319 if test "${emacs_cv_x11_version_6+set}" = set; then
11320 $as_echo_n "(cached) " >&6
11322 cat >conftest.$ac_ext <<_ACEOF
11325 cat confdefs.h >>conftest.$ac_ext
11326 cat >>conftest.$ac_ext <<_ACEOF
11327 /* end confdefs.h. */
11328 #include <X11/Xlib.h>
11332 #if XlibSpecificationRelease < 6
11340 rm -f conftest.$ac_objext conftest$ac_exeext
11341 if { (ac_try="$ac_link"
11342 case "(($ac_try" in
11343 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11344 *) ac_try_echo
=$ac_try;;
11346 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11347 $as_echo "$ac_try_echo") >&5
11348 (eval "$ac_link") 2>conftest.er1
11350 grep -v '^ *+' conftest.er1
>conftest.err
11352 cat conftest.err
>&5
11353 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11354 (exit $ac_status); } && {
11355 test -z "$ac_c_werror_flag" ||
11356 test ! -s conftest.err
11357 } && test -s conftest
$ac_exeext && {
11358 test "$cross_compiling" = yes ||
11359 $as_test_x conftest
$ac_exeext
11361 emacs_cv_x11_version_6
=yes
11363 $as_echo "$as_me: failed program was:" >&5
11364 sed 's/^/| /' conftest.
$ac_ext >&5
11366 emacs_cv_x11_version_6
=no
11369 rm -rf conftest.dSYM
11370 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11371 conftest
$ac_exeext conftest.
$ac_ext
11374 if test $emacs_cv_x11_version_6 = yes; then
11375 { $as_echo "$as_me:$LINENO: result: 6 or newer" >&5
11376 $as_echo "6 or newer" >&6; }
11378 cat >>confdefs.h
<<\_ACEOF
11379 #define HAVE_X11R6 1
11383 { $as_echo "$as_me:$LINENO: result: before 6" >&5
11384 $as_echo "before 6" >&6; }
11389 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
11391 if test "${HAVE_X11}" = "yes" ||
test "${NS_IMPL_GNUSTEP}" = "yes"; then
11392 if test "${with_rsvg}" != "no"; then
11393 RSVG_REQUIRED
=2.11.0
11394 RSVG_MODULE
="librsvg-2.0 >= $RSVG_REQUIRED"
11399 # Extract the first word of "pkg-config", so it can be a program name with args.
11400 set dummy pkg-config
; ac_word
=$2
11401 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11402 $as_echo_n "checking for $ac_word... " >&6; }
11403 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11404 $as_echo_n "(cached) " >&6
11406 case $PKG_CONFIG in
11408 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
11411 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11412 for as_dir
in $PATH
11415 test -z "$as_dir" && as_dir
=.
11416 for ac_exec_ext
in '' $ac_executable_extensions; do
11417 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11418 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
11419 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11426 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
11430 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
11431 if test -n "$PKG_CONFIG"; then
11432 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11433 $as_echo "$PKG_CONFIG" >&6; }
11435 { $as_echo "$as_me:$LINENO: result: no" >&5
11436 $as_echo "no" >&6; }
11441 if test "$PKG_CONFIG" = "no" ; then
11444 PKG_CONFIG_MIN_VERSION
=0.9.0
11445 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11446 { $as_echo "$as_me:$LINENO: checking for $RSVG_MODULE" >&5
11447 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
11449 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
11450 { $as_echo "$as_me:$LINENO: result: yes" >&5
11451 $as_echo "yes" >&6; }
11454 { $as_echo "$as_me:$LINENO: checking RSVG_CFLAGS" >&5
11455 $as_echo_n "checking RSVG_CFLAGS... " >&6; }
11456 RSVG_CFLAGS
=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
11457 { $as_echo "$as_me:$LINENO: result: $RSVG_CFLAGS" >&5
11458 $as_echo "$RSVG_CFLAGS" >&6; }
11460 { $as_echo "$as_me:$LINENO: checking RSVG_LIBS" >&5
11461 $as_echo_n "checking RSVG_LIBS... " >&6; }
11462 RSVG_LIBS
=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
11463 { $as_echo "$as_me:$LINENO: result: $RSVG_LIBS" >&5
11464 $as_echo "$RSVG_LIBS" >&6; }
11466 { $as_echo "$as_me:$LINENO: result: no" >&5
11467 $as_echo "no" >&6; }
11470 ## If we have a custom action on failure, don't print errors, but
11471 ## do set a variable so people can do so.
11472 RSVG_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
11479 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11480 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11484 if test $succeeded = yes; then
11493 if test ".${RSVG_CFLAGS}" != "."; then
11496 cat >>confdefs.h
<<\_ACEOF
11497 #define HAVE_RSVG 1
11500 CFLAGS
="$CFLAGS $RSVG_CFLAGS"
11501 LIBS
="$RSVG_LIBS $LIBS"
11508 if test "${with_gtk}" = "yes" ||
test "$USE_X_TOOLKIT" = "maybe"; then
11511 GTK_MODULES
="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
11516 # Extract the first word of "pkg-config", so it can be a program name with args.
11517 set dummy pkg-config
; ac_word
=$2
11518 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11519 $as_echo_n "checking for $ac_word... " >&6; }
11520 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11521 $as_echo_n "(cached) " >&6
11523 case $PKG_CONFIG in
11525 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
11528 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11529 for as_dir
in $PATH
11532 test -z "$as_dir" && as_dir
=.
11533 for ac_exec_ext
in '' $ac_executable_extensions; do
11534 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11535 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
11536 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11543 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
11547 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
11548 if test -n "$PKG_CONFIG"; then
11549 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11550 $as_echo "$PKG_CONFIG" >&6; }
11552 { $as_echo "$as_me:$LINENO: result: no" >&5
11553 $as_echo "no" >&6; }
11558 if test "$PKG_CONFIG" = "no" ; then
11561 PKG_CONFIG_MIN_VERSION
=0.9.0
11562 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11563 { $as_echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
11564 $as_echo_n "checking for $GTK_MODULES... " >&6; }
11566 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
11567 { $as_echo "$as_me:$LINENO: result: yes" >&5
11568 $as_echo "yes" >&6; }
11571 { $as_echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
11572 $as_echo_n "checking GTK_CFLAGS... " >&6; }
11573 GTK_CFLAGS
=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
11574 { $as_echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
11575 $as_echo "$GTK_CFLAGS" >&6; }
11577 { $as_echo "$as_me:$LINENO: checking GTK_LIBS" >&5
11578 $as_echo_n "checking GTK_LIBS... " >&6; }
11579 GTK_LIBS
=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
11580 { $as_echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
11581 $as_echo "$GTK_LIBS" >&6; }
11583 { $as_echo "$as_me:$LINENO: result: no" >&5
11584 $as_echo "no" >&6; }
11587 ## If we have a custom action on failure, don't print errors, but
11588 ## do set a variable so people can do so.
11589 GTK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
11596 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11597 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11601 if test $succeeded = yes; then
11607 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
11608 { { $as_echo "$as_me:$LINENO: error: $GTK_PKG_ERRORS" >&5
11609 $as_echo "$as_me: error: $GTK_PKG_ERRORS" >&2;}
11610 { (exit 1); exit 1; }; }
11615 if test x
"$pkg_check_gtk" = xyes
; then
11619 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $GTK_CFLAGS"
11620 CFLAGS
="$CFLAGS $GTK_CFLAGS"
11621 LIBS
="$GTK_LIBS $LIBS"
11624 for ac_func
in gtk_main
11626 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11627 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11628 $as_echo_n "checking for $ac_func... " >&6; }
11629 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11630 $as_echo_n "(cached) " >&6
11632 cat >conftest.
$ac_ext <<_ACEOF
11635 cat confdefs.h
>>conftest.
$ac_ext
11636 cat >>conftest.
$ac_ext <<_ACEOF
11637 /* end confdefs.h. */
11638 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11639 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11640 #define $ac_func innocuous_$ac_func
11642 /* System header to define __stub macros and hopefully few prototypes,
11643 which can conflict with char $ac_func (); below.
11644 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11645 <limits.h> exists even on freestanding compilers. */
11648 # include <limits.h>
11650 # include <assert.h>
11655 /* Override any GCC internal prototype to avoid an error.
11656 Use char because int might match the return type of a GCC
11657 builtin and then its argument prototype would still apply. */
11662 /* The GNU C library defines this for functions which it implements
11663 to always fail with ENOSYS. Some functions are actually named
11664 something starting with __ and the normal name is an alias. */
11665 #if defined __stub_$ac_func || defined __stub___$ac_func
11672 return $ac_func ();
11677 rm -f conftest.
$ac_objext conftest
$ac_exeext
11678 if { (ac_try
="$ac_link"
11679 case "(($ac_try" in
11680 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11681 *) ac_try_echo=$ac_try;;
11683 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11684 $as_echo "$ac_try_echo") >&5
11685 (eval "$ac_link") 2>conftest.er1
11687 grep -v '^ *+' conftest.er1 >conftest.err
11689 cat conftest.err >&5
11690 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11691 (exit $ac_status); } && {
11692 test -z "$ac_c_werror_flag" ||
11693 test ! -s conftest.err
11694 } && test -s conftest$ac_exeext && {
11695 test "$cross_compiling" = yes ||
11696 $as_test_x conftest$ac_exeext
11698 eval "$as_ac_var=yes"
11700 $as_echo "$as_me: failed program was:" >&5
11701 sed 's/^/| /' conftest.$ac_ext >&5
11703 eval "$as_ac_var=no"
11706 rm -rf conftest.dSYM
11707 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11708 conftest$ac_exeext conftest.$ac_ext
11710 ac_res=`eval 'as_val=${'$as_ac_var'}
11711 $as_echo "$as_val"'`
11712 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11713 $as_echo "$ac_res" >&6; }
11714 if test `eval 'as_val=${'$as_ac_var'}
11715 $as_echo "$as_val"'` = yes; then
11716 cat >>confdefs.h <<_ACEOF
11717 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
11723 if test "${GTK_COMPILES}" != "yes"; then
11724 if test "$USE_X_TOOLKIT" != "maybe"; then
11725 { { $as_echo "$as_me:$LINENO: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&5
11726 $as_echo "$as_me: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&2;}
11727 { (exit 1); exit 1; }; };
11732 cat >>confdefs.h <<\_ACEOF
11737 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then
11740 { $as_echo "$as_me:$LINENO: WARNING: Your version of Gtk+ will have problems with
11741 closing open displays. This is no problem if you just use
11742 one display, but if you use more than one and close one of them
11743 Emacs may crash." >&5
11744 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
11745 closing open displays. This is no problem if you just use
11746 one display, but if you use more than one and close one of them
11747 Emacs may crash." >&2;}
11755 if test "${HAVE_GTK}" = "yes"; then
11757 if test "$with_toolkit_scroll_bars" != no; then
11758 with_toolkit_scroll_bars=yes
11761 HAVE_GTK_MULTIDISPLAY=no
11763 for ac_func in gdk_display_open
11765 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
11766 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11767 $as_echo_n "checking for $ac_func... " >&6; }
11768 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11769 $as_echo_n "(cached) " >&6
11771 cat >conftest.$ac_ext <<_ACEOF
11774 cat confdefs.h >>conftest.$ac_ext
11775 cat >>conftest.$ac_ext <<_ACEOF
11776 /* end confdefs.h. */
11777 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11778 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11779 #define $ac_func innocuous_$ac_func
11781 /* System header to define __stub macros and hopefully few prototypes,
11782 which can conflict with char $ac_func (); below.
11783 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11784 <limits.h> exists even on freestanding compilers. */
11787 # include <limits.h>
11789 # include <assert.h>
11794 /* Override any GCC internal prototype to avoid an error.
11795 Use char because int might match the return type of a GCC
11796 builtin and then its argument prototype would still apply. */
11801 /* The GNU C library defines this for functions which it implements
11802 to always fail with ENOSYS. Some functions are actually named
11803 something starting with __ and the normal name is an alias. */
11804 #if defined __stub_$ac_func || defined __stub___$ac_func
11811 return $ac_func ();
11816 rm -f conftest.$ac_objext conftest$ac_exeext
11817 if { (ac_try="$ac_link"
11818 case "(($ac_try" in
11819 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11820 *) ac_try_echo
=$ac_try;;
11822 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11823 $as_echo "$ac_try_echo") >&5
11824 (eval "$ac_link") 2>conftest.er1
11826 grep -v '^ *+' conftest.er1
>conftest.err
11828 cat conftest.err
>&5
11829 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11830 (exit $ac_status); } && {
11831 test -z "$ac_c_werror_flag" ||
11832 test ! -s conftest.err
11833 } && test -s conftest
$ac_exeext && {
11834 test "$cross_compiling" = yes ||
11835 $as_test_x conftest
$ac_exeext
11837 eval "$as_ac_var=yes"
11839 $as_echo "$as_me: failed program was:" >&5
11840 sed 's/^/| /' conftest.
$ac_ext >&5
11842 eval "$as_ac_var=no"
11845 rm -rf conftest.dSYM
11846 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11847 conftest
$ac_exeext conftest.
$ac_ext
11849 ac_res
=`eval 'as_val=${'$as_ac_var'}
11850 $as_echo "$as_val"'`
11851 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11852 $as_echo "$ac_res" >&6; }
11853 if test `eval 'as_val=${'$as_ac_var'}
11854 $as_echo "$as_val"'` = yes; then
11855 cat >>confdefs.h
<<_ACEOF
11856 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11858 HAVE_GTK_MULTIDISPLAY
=yes
11862 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
11864 cat >>confdefs.h
<<\_ACEOF
11865 #define HAVE_GTK_MULTIDISPLAY 1
11870 HAVE_GTK_FILE_SELECTION
=no
11871 { $as_echo "$as_me:$LINENO: checking whether GTK_TYPE_FILE_SELECTION is declared" >&5
11872 $as_echo_n "checking whether GTK_TYPE_FILE_SELECTION is declared... " >&6; }
11873 if test "${ac_cv_have_decl_GTK_TYPE_FILE_SELECTION+set}" = set; then
11874 $as_echo_n "(cached) " >&6
11876 cat >conftest.
$ac_ext <<_ACEOF
11879 cat confdefs.h
>>conftest.
$ac_ext
11880 cat >>conftest.
$ac_ext <<_ACEOF
11881 /* end confdefs.h. */
11882 $ac_includes_default
11883 #include <gtk/gtk.h>
11888 #ifndef GTK_TYPE_FILE_SELECTION
11889 (void) GTK_TYPE_FILE_SELECTION;
11896 rm -f conftest.
$ac_objext
11897 if { (ac_try
="$ac_compile"
11898 case "(($ac_try" in
11899 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11900 *) ac_try_echo=$ac_try;;
11902 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11903 $as_echo "$ac_try_echo") >&5
11904 (eval "$ac_compile") 2>conftest.er1
11906 grep -v '^ *+' conftest.er1 >conftest.err
11908 cat conftest.err >&5
11909 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11910 (exit $ac_status); } && {
11911 test -z "$ac_c_werror_flag" ||
11912 test ! -s conftest.err
11913 } && test -s conftest.$ac_objext; then
11914 ac_cv_have_decl_GTK_TYPE_FILE_SELECTION=yes
11916 $as_echo "$as_me: failed program was:" >&5
11917 sed 's/^/| /' conftest.$ac_ext >&5
11919 ac_cv_have_decl_GTK_TYPE_FILE_SELECTION=no
11922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11924 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" >&5
11925 $as_echo "$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" >&6; }
11926 if test $ac_cv_have_decl_GTK_TYPE_FILE_SELECTION = yes; then
11927 HAVE_GTK_FILE_SELECTION=yes
11929 HAVE_GTK_FILE_SELECTION=no
11932 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
11934 for ac_func in gtk_file_selection_new
11936 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
11937 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11938 $as_echo_n "checking for $ac_func... " >&6; }
11939 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11940 $as_echo_n "(cached) " >&6
11942 cat >conftest.$ac_ext <<_ACEOF
11945 cat confdefs.h >>conftest.$ac_ext
11946 cat >>conftest.$ac_ext <<_ACEOF
11947 /* end confdefs.h. */
11948 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11949 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11950 #define $ac_func innocuous_$ac_func
11952 /* System header to define __stub macros and hopefully few prototypes,
11953 which can conflict with char $ac_func (); below.
11954 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11955 <limits.h> exists even on freestanding compilers. */
11958 # include <limits.h>
11960 # include <assert.h>
11965 /* Override any GCC internal prototype to avoid an error.
11966 Use char because int might match the return type of a GCC
11967 builtin and then its argument prototype would still apply. */
11972 /* The GNU C library defines this for functions which it implements
11973 to always fail with ENOSYS. Some functions are actually named
11974 something starting with __ and the normal name is an alias. */
11975 #if defined __stub_$ac_func || defined __stub___$ac_func
11982 return $ac_func ();
11987 rm -f conftest.$ac_objext conftest$ac_exeext
11988 if { (ac_try="$ac_link"
11989 case "(($ac_try" in
11990 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11991 *) ac_try_echo
=$ac_try;;
11993 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11994 $as_echo "$ac_try_echo") >&5
11995 (eval "$ac_link") 2>conftest.er1
11997 grep -v '^ *+' conftest.er1
>conftest.err
11999 cat conftest.err
>&5
12000 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12001 (exit $ac_status); } && {
12002 test -z "$ac_c_werror_flag" ||
12003 test ! -s conftest.err
12004 } && test -s conftest
$ac_exeext && {
12005 test "$cross_compiling" = yes ||
12006 $as_test_x conftest
$ac_exeext
12008 eval "$as_ac_var=yes"
12010 $as_echo "$as_me: failed program was:" >&5
12011 sed 's/^/| /' conftest.
$ac_ext >&5
12013 eval "$as_ac_var=no"
12016 rm -rf conftest.dSYM
12017 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12018 conftest
$ac_exeext conftest.
$ac_ext
12020 ac_res
=`eval 'as_val=${'$as_ac_var'}
12021 $as_echo "$as_val"'`
12022 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12023 $as_echo "$ac_res" >&6; }
12024 if test `eval 'as_val=${'$as_ac_var'}
12025 $as_echo "$as_val"'` = yes; then
12026 cat >>confdefs.h
<<_ACEOF
12027 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12029 HAVE_GTK_FILE_SELECTION
=yes
12031 HAVE_GTK_FILE_SELECTION
=no
12037 HAVE_GTK_FILE_CHOOSER
=no
12038 { $as_echo "$as_me:$LINENO: checking whether GTK_TYPE_FILE_CHOOSER is declared" >&5
12039 $as_echo_n "checking whether GTK_TYPE_FILE_CHOOSER is declared... " >&6; }
12040 if test "${ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER+set}" = set; then
12041 $as_echo_n "(cached) " >&6
12043 cat >conftest.
$ac_ext <<_ACEOF
12046 cat confdefs.h
>>conftest.
$ac_ext
12047 cat >>conftest.
$ac_ext <<_ACEOF
12048 /* end confdefs.h. */
12049 $ac_includes_default
12050 #include <gtk/gtk.h>
12055 #ifndef GTK_TYPE_FILE_CHOOSER
12056 (void) GTK_TYPE_FILE_CHOOSER;
12063 rm -f conftest.
$ac_objext
12064 if { (ac_try
="$ac_compile"
12065 case "(($ac_try" in
12066 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12067 *) ac_try_echo=$ac_try;;
12069 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12070 $as_echo "$ac_try_echo") >&5
12071 (eval "$ac_compile") 2>conftest.er1
12073 grep -v '^ *+' conftest.er1 >conftest.err
12075 cat conftest.err >&5
12076 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12077 (exit $ac_status); } && {
12078 test -z "$ac_c_werror_flag" ||
12079 test ! -s conftest.err
12080 } && test -s conftest.$ac_objext; then
12081 ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER=yes
12083 $as_echo "$as_me: failed program was:" >&5
12084 sed 's/^/| /' conftest.$ac_ext >&5
12086 ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER=no
12089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12091 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER" >&5
12092 $as_echo "$ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER" >&6; }
12093 if test $ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER = yes; then
12094 HAVE_GTK_FILE_CHOOSER=yes
12096 HAVE_GTK_FILE_CHOOSER=no
12099 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
12101 for ac_func in gtk_file_chooser_dialog_new
12103 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
12104 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12105 $as_echo_n "checking for $ac_func... " >&6; }
12106 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12107 $as_echo_n "(cached) " >&6
12109 cat >conftest.$ac_ext <<_ACEOF
12112 cat confdefs.h >>conftest.$ac_ext
12113 cat >>conftest.$ac_ext <<_ACEOF
12114 /* end confdefs.h. */
12115 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12116 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12117 #define $ac_func innocuous_$ac_func
12119 /* System header to define __stub macros and hopefully few prototypes,
12120 which can conflict with char $ac_func (); below.
12121 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12122 <limits.h> exists even on freestanding compilers. */
12125 # include <limits.h>
12127 # include <assert.h>
12132 /* Override any GCC internal prototype to avoid an error.
12133 Use char because int might match the return type of a GCC
12134 builtin and then its argument prototype would still apply. */
12139 /* The GNU C library defines this for functions which it implements
12140 to always fail with ENOSYS. Some functions are actually named
12141 something starting with __ and the normal name is an alias. */
12142 #if defined __stub_$ac_func || defined __stub___$ac_func
12149 return $ac_func ();
12154 rm -f conftest.$ac_objext conftest$ac_exeext
12155 if { (ac_try="$ac_link"
12156 case "(($ac_try" in
12157 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12158 *) ac_try_echo
=$ac_try;;
12160 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12161 $as_echo "$ac_try_echo") >&5
12162 (eval "$ac_link") 2>conftest.er1
12164 grep -v '^ *+' conftest.er1
>conftest.err
12166 cat conftest.err
>&5
12167 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12168 (exit $ac_status); } && {
12169 test -z "$ac_c_werror_flag" ||
12170 test ! -s conftest.err
12171 } && test -s conftest
$ac_exeext && {
12172 test "$cross_compiling" = yes ||
12173 $as_test_x conftest
$ac_exeext
12175 eval "$as_ac_var=yes"
12177 $as_echo "$as_me: failed program was:" >&5
12178 sed 's/^/| /' conftest.
$ac_ext >&5
12180 eval "$as_ac_var=no"
12183 rm -rf conftest.dSYM
12184 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12185 conftest
$ac_exeext conftest.
$ac_ext
12187 ac_res
=`eval 'as_val=${'$as_ac_var'}
12188 $as_echo "$as_val"'`
12189 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12190 $as_echo "$ac_res" >&6; }
12191 if test `eval 'as_val=${'$as_ac_var'}
12192 $as_echo "$as_val"'` = yes; then
12193 cat >>confdefs.h
<<_ACEOF
12194 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12196 HAVE_GTK_FILE_CHOOSER
=yes
12198 HAVE_GTK_FILE_CHOOSER
=no
12204 if test "$HAVE_GTK_FILE_SELECTION" = yes \
12205 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
12207 cat >>confdefs.h
<<\_ACEOF
12208 #define HAVE_GTK_FILE_BOTH 1
12213 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
12214 HAVE_GTK_AND_PTHREAD
=no
12216 for ac_header
in pthread.h
12218 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12219 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12220 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12221 $as_echo_n "checking for $ac_header... " >&6; }
12222 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12223 $as_echo_n "(cached) " >&6
12225 ac_res
=`eval 'as_val=${'$as_ac_Header'}
12226 $as_echo "$as_val"'`
12227 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12228 $as_echo "$ac_res" >&6; }
12230 # Is the header compilable?
12231 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12232 $as_echo_n "checking $ac_header usability... " >&6; }
12233 cat >conftest.
$ac_ext <<_ACEOF
12236 cat confdefs.h
>>conftest.
$ac_ext
12237 cat >>conftest.
$ac_ext <<_ACEOF
12238 /* end confdefs.h. */
12239 $ac_includes_default
12240 #include <$ac_header>
12242 rm -f conftest.
$ac_objext
12243 if { (ac_try
="$ac_compile"
12244 case "(($ac_try" in
12245 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12246 *) ac_try_echo=$ac_try;;
12248 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12249 $as_echo "$ac_try_echo") >&5
12250 (eval "$ac_compile") 2>conftest.er1
12252 grep -v '^ *+' conftest.er1 >conftest.err
12254 cat conftest.err >&5
12255 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12256 (exit $ac_status); } && {
12257 test -z "$ac_c_werror_flag" ||
12258 test ! -s conftest.err
12259 } && test -s conftest.$ac_objext; then
12260 ac_header_compiler=yes
12262 $as_echo "$as_me: failed program was:" >&5
12263 sed 's/^/| /' conftest.$ac_ext >&5
12265 ac_header_compiler=no
12268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12269 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12270 $as_echo "$ac_header_compiler" >&6; }
12272 # Is the header present?
12273 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12274 $as_echo_n "checking $ac_header presence... " >&6; }
12275 cat >conftest.$ac_ext <<_ACEOF
12278 cat confdefs.h >>conftest.$ac_ext
12279 cat >>conftest.$ac_ext <<_ACEOF
12280 /* end confdefs.h. */
12281 #include <$ac_header>
12283 if { (ac_try="$ac_cpp conftest.$ac_ext"
12284 case "(($ac_try" in
12285 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12286 *) ac_try_echo
=$ac_try;;
12288 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12289 $as_echo "$ac_try_echo") >&5
12290 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12292 grep -v '^ *+' conftest.er1
>conftest.err
12294 cat conftest.err
>&5
12295 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12296 (exit $ac_status); } >/dev
/null
&& {
12297 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12298 test ! -s conftest.err
12300 ac_header_preproc
=yes
12302 $as_echo "$as_me: failed program was:" >&5
12303 sed 's/^/| /' conftest.
$ac_ext >&5
12305 ac_header_preproc
=no
12308 rm -f conftest.err conftest.
$ac_ext
12309 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12310 $as_echo "$ac_header_preproc" >&6; }
12312 # So? What about this header?
12313 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12315 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12316 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12317 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12318 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12319 ac_header_preproc
=yes
12322 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12323 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12324 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12325 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12326 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12327 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12328 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12329 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12330 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12331 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12332 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12333 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12337 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12338 $as_echo_n "checking for $ac_header... " >&6; }
12339 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12340 $as_echo_n "(cached) " >&6
12342 eval "$as_ac_Header=\$ac_header_preproc"
12344 ac_res
=`eval 'as_val=${'$as_ac_Header'}
12345 $as_echo "$as_val"'`
12346 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12347 $as_echo "$ac_res" >&6; }
12350 if test `eval 'as_val=${'$as_ac_Header'}
12351 $as_echo "$as_val"'` = yes; then
12352 cat >>confdefs.h
<<_ACEOF
12353 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12360 if test "$ac_cv_header_pthread_h"; then
12361 { $as_echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
12362 $as_echo_n "checking for pthread_self in -lpthread... " >&6; }
12363 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
12364 $as_echo_n "(cached) " >&6
12366 ac_check_lib_save_LIBS
=$LIBS
12367 LIBS
="-lpthread $LIBS"
12368 cat >conftest.
$ac_ext <<_ACEOF
12371 cat confdefs.h
>>conftest.
$ac_ext
12372 cat >>conftest.
$ac_ext <<_ACEOF
12373 /* end confdefs.h. */
12375 /* Override any GCC internal prototype to avoid an error.
12376 Use char because int might match the return type of a GCC
12377 builtin and then its argument prototype would still apply. */
12381 char pthread_self ();
12385 return pthread_self ();
12390 rm -f conftest.
$ac_objext conftest
$ac_exeext
12391 if { (ac_try
="$ac_link"
12392 case "(($ac_try" in
12393 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12394 *) ac_try_echo=$ac_try;;
12396 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12397 $as_echo "$ac_try_echo") >&5
12398 (eval "$ac_link") 2>conftest.er1
12400 grep -v '^ *+' conftest.er1 >conftest.err
12402 cat conftest.err >&5
12403 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12404 (exit $ac_status); } && {
12405 test -z "$ac_c_werror_flag" ||
12406 test ! -s conftest.err
12407 } && test -s conftest$ac_exeext && {
12408 test "$cross_compiling" = yes ||
12409 $as_test_x conftest$ac_exeext
12411 ac_cv_lib_pthread_pthread_self=yes
12413 $as_echo "$as_me: failed program was:" >&5
12414 sed 's/^/| /' conftest.$ac_ext >&5
12416 ac_cv_lib_pthread_pthread_self=no
12419 rm -rf conftest.dSYM
12420 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12421 conftest$ac_exeext conftest.$ac_ext
12422 LIBS=$ac_check_lib_save_LIBS
12424 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
12425 $as_echo "$ac_cv_lib_pthread_pthread_self" >&6; }
12426 if test $ac_cv_lib_pthread_pthread_self = yes; then
12427 HAVE_GTK_AND_PTHREAD=yes
12431 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
12432 case "${canonical}" in
12434 *) GTK_LIBS="$GTK_LIBS -lpthread" ;;
12437 cat >>confdefs.h <<\_ACEOF
12438 #define HAVE_GTK_AND_PTHREAD 1
12446 if test "${with_dbus}" = "yes"; then
12450 # Extract the first word of "pkg-config", so it can be a program name with args.
12451 set dummy pkg-config; ac_word=$2
12452 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12453 $as_echo_n "checking for $ac_word... " >&6; }
12454 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12455 $as_echo_n "(cached) " >&6
12457 case $PKG_CONFIG in
12459 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12463 for as_dir in $PATH
12466 test -z "$as_dir" && as_dir=.
12467 for ac_exec_ext in '' $ac_executable_extensions; do
12468 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12469 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12470 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12477 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12481 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12482 if test -n "$PKG_CONFIG"; then
12483 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12484 $as_echo "$PKG_CONFIG" >&6; }
12486 { $as_echo "$as_me:$LINENO: result: no" >&5
12487 $as_echo "no" >&6; }
12492 if test "$PKG_CONFIG" = "no" ; then
12495 PKG_CONFIG_MIN_VERSION=0.9.0
12496 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12497 { $as_echo "$as_me:$LINENO: checking for dbus-1 >= 1.0" >&5
12498 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
12500 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
12501 { $as_echo "$as_me:$LINENO: result: yes" >&5
12502 $as_echo "yes" >&6; }
12505 { $as_echo "$as_me:$LINENO: checking DBUS_CFLAGS" >&5
12506 $as_echo_n "checking DBUS_CFLAGS... " >&6; }
12507 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|
sed -e 's,///*,/,g'`
12508 { $as_echo "$as_me:$LINENO: result: $DBUS_CFLAGS" >&5
12509 $as_echo "$DBUS_CFLAGS" >&6; }
12511 { $as_echo "$as_me:$LINENO: checking DBUS_LIBS" >&5
12512 $as_echo_n "checking DBUS_LIBS... " >&6; }
12513 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|
sed -e 's,///*,/,g'`
12514 { $as_echo "$as_me:$LINENO: result: $DBUS_LIBS" >&5
12515 $as_echo "$DBUS_LIBS" >&6; }
12517 { $as_echo "$as_me:$LINENO: result: no" >&5
12518 $as_echo "no" >&6; }
12521 ## If we have a custom action on failure, don't print errors, but
12522 ## do set a variable so people can do so.
12523 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
12530 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12531 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12535 if test $succeeded = yes; then
12541 if test "$HAVE_DBUS" = yes; then
12542 LIBS="$LIBS $DBUS_LIBS"
12544 cat >>confdefs.h <<\_ACEOF
12545 #define HAVE_DBUS 1
12549 for ac_func in dbus_watch_get_unix_fd
12551 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
12552 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12553 $as_echo_n "checking for $ac_func... " >&6; }
12554 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12555 $as_echo_n "(cached) " >&6
12557 cat >conftest.$ac_ext <<_ACEOF
12560 cat confdefs.h >>conftest.$ac_ext
12561 cat >>conftest.$ac_ext <<_ACEOF
12562 /* end confdefs.h. */
12563 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12564 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12565 #define $ac_func innocuous_$ac_func
12567 /* System header to define __stub macros and hopefully few prototypes,
12568 which can conflict with char $ac_func (); below.
12569 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12570 <limits.h> exists even on freestanding compilers. */
12573 # include <limits.h>
12575 # include <assert.h>
12580 /* Override any GCC internal prototype to avoid an error.
12581 Use char because int might match the return type of a GCC
12582 builtin and then its argument prototype would still apply. */
12587 /* The GNU C library defines this for functions which it implements
12588 to always fail with ENOSYS. Some functions are actually named
12589 something starting with __ and the normal name is an alias. */
12590 #if defined __stub_$ac_func || defined __stub___$ac_func
12597 return $ac_func ();
12602 rm -f conftest.$ac_objext conftest$ac_exeext
12603 if { (ac_try="$ac_link"
12604 case "(($ac_try" in
12605 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12606 *) ac_try_echo
=$ac_try;;
12608 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12609 $as_echo "$ac_try_echo") >&5
12610 (eval "$ac_link") 2>conftest.er1
12612 grep -v '^ *+' conftest.er1
>conftest.err
12614 cat conftest.err
>&5
12615 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12616 (exit $ac_status); } && {
12617 test -z "$ac_c_werror_flag" ||
12618 test ! -s conftest.err
12619 } && test -s conftest
$ac_exeext && {
12620 test "$cross_compiling" = yes ||
12621 $as_test_x conftest
$ac_exeext
12623 eval "$as_ac_var=yes"
12625 $as_echo "$as_me: failed program was:" >&5
12626 sed 's/^/| /' conftest.
$ac_ext >&5
12628 eval "$as_ac_var=no"
12631 rm -rf conftest.dSYM
12632 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12633 conftest
$ac_exeext conftest.
$ac_ext
12635 ac_res
=`eval 'as_val=${'$as_ac_var'}
12636 $as_echo "$as_val"'`
12637 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12638 $as_echo "$ac_res" >&6; }
12639 if test `eval 'as_val=${'$as_ac_var'}
12640 $as_echo "$as_val"'` = yes; then
12641 cat >>confdefs.h
<<_ACEOF
12642 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12652 if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
12656 # Extract the first word of "pkg-config", so it can be a program name with args.
12657 set dummy pkg-config
; ac_word
=$2
12658 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12659 $as_echo_n "checking for $ac_word... " >&6; }
12660 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12661 $as_echo_n "(cached) " >&6
12663 case $PKG_CONFIG in
12665 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
12668 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12669 for as_dir
in $PATH
12672 test -z "$as_dir" && as_dir
=.
12673 for ac_exec_ext
in '' $ac_executable_extensions; do
12674 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12675 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
12676 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12683 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
12687 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
12688 if test -n "$PKG_CONFIG"; then
12689 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12690 $as_echo "$PKG_CONFIG" >&6; }
12692 { $as_echo "$as_me:$LINENO: result: no" >&5
12693 $as_echo "no" >&6; }
12698 if test "$PKG_CONFIG" = "no" ; then
12701 PKG_CONFIG_MIN_VERSION
=0.9.0
12702 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12703 { $as_echo "$as_me:$LINENO: checking for gconf-2.0 >= 2.13" >&5
12704 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
12706 if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5; then
12707 { $as_echo "$as_me:$LINENO: result: yes" >&5
12708 $as_echo "yes" >&6; }
12711 { $as_echo "$as_me:$LINENO: checking GCONF_CFLAGS" >&5
12712 $as_echo_n "checking GCONF_CFLAGS... " >&6; }
12713 GCONF_CFLAGS
=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
12714 { $as_echo "$as_me:$LINENO: result: $GCONF_CFLAGS" >&5
12715 $as_echo "$GCONF_CFLAGS" >&6; }
12717 { $as_echo "$as_me:$LINENO: checking GCONF_LIBS" >&5
12718 $as_echo_n "checking GCONF_LIBS... " >&6; }
12719 GCONF_LIBS
=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
12720 { $as_echo "$as_me:$LINENO: result: $GCONF_LIBS" >&5
12721 $as_echo "$GCONF_LIBS" >&6; }
12723 { $as_echo "$as_me:$LINENO: result: no" >&5
12724 $as_echo "no" >&6; }
12727 ## If we have a custom action on failure, don't print errors, but
12728 ## do set a variable so people can do so.
12729 GCONF_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "gconf-2.0 >= 2.13"`
12736 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12737 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12741 if test $succeeded = yes; then
12747 if test "$HAVE_GCONF" = yes; then
12749 cat >>confdefs.h
<<\_ACEOF
12750 #define HAVE_GCONF 1
12757 if test x
"${USE_X_TOOLKIT}" = xmaybe ||
test x
"${USE_X_TOOLKIT}" = xLUCID
; then
12758 if test "$with_xaw3d" != no
; then
12759 { $as_echo "$as_me:$LINENO: checking for xaw3d" >&5
12760 $as_echo_n "checking for xaw3d... " >&6; }
12761 if test "${emacs_cv_xaw3d+set}" = set; then
12762 $as_echo_n "(cached) " >&6
12764 cat >conftest.
$ac_ext <<_ACEOF
12767 cat confdefs.h
>>conftest.
$ac_ext
12768 cat >>conftest.
$ac_ext <<_ACEOF
12769 /* end confdefs.h. */
12771 #include <X11/Intrinsic.h>
12772 #include <X11/Xaw3d/Simple.h>
12781 rm -f conftest.
$ac_objext conftest
$ac_exeext
12782 if { (ac_try
="$ac_link"
12783 case "(($ac_try" in
12784 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12785 *) ac_try_echo=$ac_try;;
12787 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12788 $as_echo "$ac_try_echo") >&5
12789 (eval "$ac_link") 2>conftest.er1
12791 grep -v '^ *+' conftest.er1 >conftest.err
12793 cat conftest.err >&5
12794 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12795 (exit $ac_status); } && {
12796 test -z "$ac_c_werror_flag" ||
12797 test ! -s conftest.err
12798 } && test -s conftest$ac_exeext && {
12799 test "$cross_compiling" = yes ||
12800 $as_test_x conftest$ac_exeext
12804 $as_echo "$as_me: failed program was:" >&5
12805 sed 's/^/| /' conftest.$ac_ext >&5
12810 rm -rf conftest.dSYM
12811 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12812 conftest$ac_exeext conftest.$ac_ext
12818 if test $emacs_cv_xaw3d = yes; then
12819 { $as_echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
12820 $as_echo "yes; using Lucid toolkit" >&6; }
12821 USE_X_TOOLKIT=LUCID
12824 cat >>confdefs.h <<\_ACEOF
12825 #define HAVE_XAW3D 1
12829 { $as_echo "$as_me:$LINENO: result: no" >&5
12830 $as_echo "no" >&6; }
12831 { $as_echo "$as_me:$LINENO: checking for libXaw" >&5
12832 $as_echo_n "checking for libXaw... " >&6; }
12833 if test "${emacs_cv_xaw+set}" = set; then
12834 $as_echo_n "(cached) " >&6
12836 cat >conftest.$ac_ext <<_ACEOF
12839 cat confdefs.h >>conftest.$ac_ext
12840 cat >>conftest.$ac_ext <<_ACEOF
12841 /* end confdefs.h. */
12843 #include <X11/Intrinsic.h>
12844 #include <X11/Xaw/Simple.h>
12853 rm -f conftest.$ac_objext conftest$ac_exeext
12854 if { (ac_try="$ac_link"
12855 case "(($ac_try" in
12856 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12857 *) ac_try_echo
=$ac_try;;
12859 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12860 $as_echo "$ac_try_echo") >&5
12861 (eval "$ac_link") 2>conftest.er1
12863 grep -v '^ *+' conftest.er1
>conftest.err
12865 cat conftest.err
>&5
12866 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12867 (exit $ac_status); } && {
12868 test -z "$ac_c_werror_flag" ||
12869 test ! -s conftest.err
12870 } && test -s conftest
$ac_exeext && {
12871 test "$cross_compiling" = yes ||
12872 $as_test_x conftest
$ac_exeext
12876 $as_echo "$as_me: failed program was:" >&5
12877 sed 's/^/| /' conftest.
$ac_ext >&5
12882 rm -rf conftest.dSYM
12883 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12884 conftest
$ac_exeext conftest.
$ac_ext
12887 if test $emacs_cv_xaw = yes; then
12888 { $as_echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
12889 $as_echo "yes; using Lucid toolkit" >&6; }
12890 USE_X_TOOLKIT
=LUCID
12891 elif test x
"${USE_X_TOOLKIT}" = xLUCID
; then
12892 { { $as_echo "$as_me:$LINENO: error: Lucid toolkit requires X11/Xaw include files" >&5
12893 $as_echo "$as_me: error: Lucid toolkit requires X11/Xaw include files" >&2;}
12894 { (exit 1); exit 1; }; }
12896 { $as_echo "$as_me:$LINENO: result: no; do not use toolkit by default" >&5
12897 $as_echo "no; do not use toolkit by default" >&6; }
12903 X_TOOLKIT_TYPE
=$USE_X_TOOLKIT
12905 if test "${USE_X_TOOLKIT}" != "none"; then
12906 { $as_echo "$as_me:$LINENO: checking X11 toolkit version" >&5
12907 $as_echo_n "checking X11 toolkit version... " >&6; }
12908 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
12909 $as_echo_n "(cached) " >&6
12911 cat >conftest.
$ac_ext <<_ACEOF
12914 cat confdefs.h
>>conftest.
$ac_ext
12915 cat >>conftest.
$ac_ext <<_ACEOF
12916 /* end confdefs.h. */
12917 #include <X11/Intrinsic.h>
12921 #if XtSpecificationRelease < 6
12929 rm -f conftest.
$ac_objext conftest
$ac_exeext
12930 if { (ac_try
="$ac_link"
12931 case "(($ac_try" in
12932 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12933 *) ac_try_echo=$ac_try;;
12935 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12936 $as_echo "$ac_try_echo") >&5
12937 (eval "$ac_link") 2>conftest.er1
12939 grep -v '^ *+' conftest.er1 >conftest.err
12941 cat conftest.err >&5
12942 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12943 (exit $ac_status); } && {
12944 test -z "$ac_c_werror_flag" ||
12945 test ! -s conftest.err
12946 } && test -s conftest$ac_exeext && {
12947 test "$cross_compiling" = yes ||
12948 $as_test_x conftest$ac_exeext
12950 emacs_cv_x11_toolkit_version_6=yes
12952 $as_echo "$as_me: failed program was:" >&5
12953 sed 's/^/| /' conftest.$ac_ext >&5
12955 emacs_cv_x11_toolkit_version_6=no
12958 rm -rf conftest.dSYM
12959 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12960 conftest$ac_exeext conftest.$ac_ext
12963 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
12964 if test $emacs_cv_x11_toolkit_version_6 = yes; then
12965 { $as_echo "$as_me:$LINENO: result: 6 or newer" >&5
12966 $as_echo "6 or newer" >&6; }
12968 cat >>confdefs.h <<\_ACEOF
12969 #define HAVE_X11XTR6 1
12973 { $as_echo "$as_me:$LINENO: result: before 6" >&5
12974 $as_echo "before 6" >&6; }
12978 if test x$HAVE_X11XTR6 = xyes; then
12979 LIBS="-lXt -lSM -lICE $LIBS"
12984 { $as_echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
12985 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
12986 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
12987 $as_echo_n "(cached) " >&6
12989 ac_check_lib_save_LIBS=$LIBS
12991 cat >conftest.$ac_ext <<_ACEOF
12994 cat confdefs.h >>conftest.$ac_ext
12995 cat >>conftest.$ac_ext <<_ACEOF
12996 /* end confdefs.h. */
12998 /* Override any GCC internal prototype to avoid an error.
12999 Use char because int might match the return type of a GCC
13000 builtin and then its argument prototype would still apply. */
13004 char XmuConvertStandardSelection ();
13008 return XmuConvertStandardSelection ();
13013 rm -f conftest.$ac_objext conftest$ac_exeext
13014 if { (ac_try="$ac_link"
13015 case "(($ac_try" in
13016 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13017 *) ac_try_echo
=$ac_try;;
13019 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
13020 $as_echo "$ac_try_echo") >&5
13021 (eval "$ac_link") 2>conftest.er1
13023 grep -v '^ *+' conftest.er1
>conftest.err
13025 cat conftest.err
>&5
13026 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13027 (exit $ac_status); } && {
13028 test -z "$ac_c_werror_flag" ||
13029 test ! -s conftest.err
13030 } && test -s conftest
$ac_exeext && {
13031 test "$cross_compiling" = yes ||
13032 $as_test_x conftest
$ac_exeext
13034 ac_cv_lib_Xmu_XmuConvertStandardSelection
=yes
13036 $as_echo "$as_me: failed program was:" >&5
13037 sed 's/^/| /' conftest.
$ac_ext >&5
13039 ac_cv_lib_Xmu_XmuConvertStandardSelection
=no
13042 rm -rf conftest.dSYM
13043 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
13044 conftest
$ac_exeext conftest.
$ac_ext
13045 LIBS
=$ac_check_lib_save_LIBS
13047 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
13048 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
13049 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
13050 cat >>confdefs.h
<<_ACEOF
13051 #define HAVE_LIBXMU 1
13058 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no
&& LIBS
="$OLDLIBS"
13061 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
13062 if test "${HAVE_X11}" = "yes"; then
13063 if test "${USE_X_TOOLKIT}" != "none"; then
13065 { $as_echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
13066 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
13067 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
13068 $as_echo_n "(cached) " >&6
13070 ac_check_lib_save_LIBS
=$LIBS
13071 LIBS
="-lXext $LIBS"
13072 cat >conftest.
$ac_ext <<_ACEOF
13075 cat confdefs.h
>>conftest.
$ac_ext
13076 cat >>conftest.
$ac_ext <<_ACEOF
13077 /* end confdefs.h. */
13079 /* Override any GCC internal prototype to avoid an error.
13080 Use char because int might match the return type of a GCC
13081 builtin and then its argument prototype would still apply. */
13085 char XShapeQueryExtension ();
13089 return XShapeQueryExtension ();
13094 rm -f conftest.
$ac_objext conftest
$ac_exeext
13095 if { (ac_try
="$ac_link"
13096 case "(($ac_try" in
13097 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13098 *) ac_try_echo=$ac_try;;
13100 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13101 $as_echo "$ac_try_echo") >&5
13102 (eval "$ac_link") 2>conftest.er1
13104 grep -v '^ *+' conftest.er1 >conftest.err
13106 cat conftest.err >&5
13107 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13108 (exit $ac_status); } && {
13109 test -z "$ac_c_werror_flag" ||
13110 test ! -s conftest.err
13111 } && test -s conftest$ac_exeext && {
13112 test "$cross_compiling" = yes ||
13113 $as_test_x conftest$ac_exeext
13115 ac_cv_lib_Xext_XShapeQueryExtension=yes
13117 $as_echo "$as_me: failed program was:" >&5
13118 sed 's/^/| /' conftest.$ac_ext >&5
13120 ac_cv_lib_Xext_XShapeQueryExtension=no
13123 rm -rf conftest.dSYM
13124 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13125 conftest$ac_exeext conftest.$ac_ext
13126 LIBS=$ac_check_lib_save_LIBS
13128 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
13129 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
13130 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
13131 cat >>confdefs.h <<_ACEOF
13132 #define HAVE_LIBXEXT 1
13135 LIBS="-lXext $LIBS"
13142 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
13143 { $as_echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
13144 $as_echo_n "checking for Motif version 2.1... " >&6; }
13145 if test "${emacs_cv_motif_version_2_1+set}" = set; then
13146 $as_echo_n "(cached) " >&6
13148 cat >conftest.$ac_ext <<_ACEOF
13151 cat confdefs.h >>conftest.$ac_ext
13152 cat >>conftest.$ac_ext <<_ACEOF
13153 /* end confdefs.h. */
13158 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
13161 Motif version prior to 2.1.
13167 rm -f conftest.$ac_objext
13168 if { (ac_try="$ac_compile"
13169 case "(($ac_try" in
13170 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13171 *) ac_try_echo
=$ac_try;;
13173 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
13174 $as_echo "$ac_try_echo") >&5
13175 (eval "$ac_compile") 2>conftest.er1
13177 grep -v '^ *+' conftest.er1
>conftest.err
13179 cat conftest.err
>&5
13180 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13181 (exit $ac_status); } && {
13182 test -z "$ac_c_werror_flag" ||
13183 test ! -s conftest.err
13184 } && test -s conftest.
$ac_objext; then
13185 emacs_cv_motif_version_2_1
=yes
13187 $as_echo "$as_me: failed program was:" >&5
13188 sed 's/^/| /' conftest.
$ac_ext >&5
13190 emacs_cv_motif_version_2_1
=no
13193 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13195 { $as_echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
13196 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
13197 HAVE_MOTIF_2_1
=$emacs_cv_motif_version_2_1
13198 if test $emacs_cv_motif_version_2_1 = yes; then
13201 cat >>confdefs.h
<<\_ACEOF
13202 #define HAVE_MOTIF_2_1 1
13205 { $as_echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
13206 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
13207 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
13208 $as_echo_n "(cached) " >&6
13210 ac_check_lib_save_LIBS
=$LIBS
13212 cat >conftest.
$ac_ext <<_ACEOF
13215 cat confdefs.h
>>conftest.
$ac_ext
13216 cat >>conftest.
$ac_ext <<_ACEOF
13217 /* end confdefs.h. */
13219 /* Override any GCC internal prototype to avoid an error.
13220 Use char because int might match the return type of a GCC
13221 builtin and then its argument prototype would still apply. */
13225 char XpCreateContext ();
13229 return XpCreateContext ();
13234 rm -f conftest.
$ac_objext conftest
$ac_exeext
13235 if { (ac_try
="$ac_link"
13236 case "(($ac_try" in
13237 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13238 *) ac_try_echo=$ac_try;;
13240 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13241 $as_echo "$ac_try_echo") >&5
13242 (eval "$ac_link") 2>conftest.er1
13244 grep -v '^ *+' conftest.er1 >conftest.err
13246 cat conftest.err >&5
13247 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13248 (exit $ac_status); } && {
13249 test -z "$ac_c_werror_flag" ||
13250 test ! -s conftest.err
13251 } && test -s conftest$ac_exeext && {
13252 test "$cross_compiling" = yes ||
13253 $as_test_x conftest$ac_exeext
13255 ac_cv_lib_Xp_XpCreateContext=yes
13257 $as_echo "$as_me: failed program was:" >&5
13258 sed 's/^/| /' conftest.$ac_ext >&5
13260 ac_cv_lib_Xp_XpCreateContext=no
13263 rm -rf conftest.dSYM
13264 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13265 conftest$ac_exeext conftest.$ac_ext
13266 LIBS=$ac_check_lib_save_LIBS
13268 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
13269 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
13270 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
13274 if test ${HAVE_LIBXP} = yes; then
13276 cat >>confdefs.h <<\_ACEOF
13277 #define HAVE_LIBXP 1
13282 { $as_echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
13283 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
13284 if test "${emacs_cv_lesstif+set}" = set; then
13285 $as_echo_n "(cached) " >&6
13287 # We put this in CFLAGS temporarily to precede other -I options
13288 # that might be in CFLAGS temporarily.
13289 # We put this in CPPFLAGS where it precedes the other -I options.
13290 OLD_CPPFLAGS=$CPPFLAGS
13292 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
13293 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
13294 cat >conftest.$ac_ext <<_ACEOF
13297 cat confdefs.h >>conftest.$ac_ext
13298 cat >>conftest.$ac_ext <<_ACEOF
13299 /* end confdefs.h. */
13300 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
13309 rm -f conftest.$ac_objext
13310 if { (ac_try="$ac_compile"
13311 case "(($ac_try" in
13312 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13313 *) ac_try_echo
=$ac_try;;
13315 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
13316 $as_echo "$ac_try_echo") >&5
13317 (eval "$ac_compile") 2>conftest.er1
13319 grep -v '^ *+' conftest.er1
>conftest.err
13321 cat conftest.err
>&5
13322 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13323 (exit $ac_status); } && {
13324 test -z "$ac_c_werror_flag" ||
13325 test ! -s conftest.err
13326 } && test -s conftest.
$ac_objext; then
13327 emacs_cv_lesstif
=yes
13329 $as_echo "$as_me: failed program was:" >&5
13330 sed 's/^/| /' conftest.
$ac_ext >&5
13332 emacs_cv_lesstif
=no
13335 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13337 { $as_echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
13338 $as_echo "$emacs_cv_lesstif" >&6; }
13339 if test $emacs_cv_lesstif = yes; then
13340 # Make sure this -I option remains in CPPFLAGS after it is set
13341 # back to REAL_CPPFLAGS.
13342 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
13343 # have those other -I options anyway. Ultimately, having this
13344 # directory ultimately in CPPFLAGS will be enough.
13345 REAL_CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
13346 LDFLAGS
="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
13349 CPPFLAGS
=$OLD_CPPFLAGS
13356 USE_TOOLKIT_SCROLL_BARS
=no
13357 if test "${with_toolkit_scroll_bars}" != "no"; then
13358 if test "${USE_X_TOOLKIT}" != "none"; then
13359 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
13360 cat >>confdefs.h
<<\_ACEOF
13361 #define USE_TOOLKIT_SCROLL_BARS 1
13365 USE_TOOLKIT_SCROLL_BARS
=yes
13366 elif test "${HAVE_XAW3D}" = "yes"; then
13367 cat >>confdefs.h
<<\_ACEOF
13368 #define USE_TOOLKIT_SCROLL_BARS 1
13371 USE_TOOLKIT_SCROLL_BARS
=yes
13373 elif test "${HAVE_GTK}" = "yes"; then
13374 cat >>confdefs.h
<<\_ACEOF
13375 #define USE_TOOLKIT_SCROLL_BARS 1
13378 USE_TOOLKIT_SCROLL_BARS
=yes
13379 elif test "${HAVE_NS}" = "yes"; then
13380 cat >>confdefs.h
<<\_ACEOF
13381 #define USE_TOOLKIT_SCROLL_BARS 1
13384 USE_TOOLKIT_SCROLL_BARS
=yes
13388 cat >conftest.
$ac_ext <<_ACEOF
13391 cat confdefs.h
>>conftest.
$ac_ext
13392 cat >>conftest.
$ac_ext <<_ACEOF
13393 /* end confdefs.h. */
13395 #include <X11/Xlib.h>
13396 #include <X11/Xresource.h>
13405 rm -f conftest.
$ac_objext
13406 if { (ac_try
="$ac_compile"
13407 case "(($ac_try" in
13408 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13409 *) ac_try_echo=$ac_try;;
13411 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13412 $as_echo "$ac_try_echo") >&5
13413 (eval "$ac_compile") 2>conftest.er1
13415 grep -v '^ *+' conftest.er1 >conftest.err
13417 cat conftest.err >&5
13418 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13419 (exit $ac_status); } && {
13420 test -z "$ac_c_werror_flag" ||
13421 test ! -s conftest.err
13422 } && test -s conftest.$ac_objext; then
13425 cat >>confdefs.h <<\_ACEOF
13430 $as_echo "$as_me: failed program was:" >&5
13431 sed 's/^/| /' conftest.$ac_ext >&5
13436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13439 if test "${with_xim}" != "no"; then
13441 cat >>confdefs.h <<\_ACEOF
13448 if test "${HAVE_XIM}" != "no"; then
13449 late_CFLAGS=$CFLAGS
13450 if test "$GCC" = yes; then
13451 CFLAGS="$CFLAGS --pedantic-errors"
13453 cat >conftest.$ac_ext <<_ACEOF
13456 cat confdefs.h >>conftest.$ac_ext
13457 cat >>conftest.$ac_ext <<_ACEOF
13458 /* end confdefs.h. */
13460 #include <X11/Xlib.h>
13461 #include <X11/Xresource.h>
13470 XPointer *client_data;
13472 /* If we're not using GCC, it's probably not XFree86, and this is
13473 probably right, but we can't use something like --pedantic-errors. */
13474 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
13475 char*, XIMProc, XPointer*);
13477 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
13483 rm -f conftest.$ac_objext
13484 if { (ac_try="$ac_compile"
13485 case "(($ac_try" in
13486 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13487 *) ac_try_echo
=$ac_try;;
13489 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
13490 $as_echo "$ac_try_echo") >&5
13491 (eval "$ac_compile") 2>conftest.er1
13493 grep -v '^ *+' conftest.er1
>conftest.err
13495 cat conftest.err
>&5
13496 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13497 (exit $ac_status); } && {
13498 test -z "$ac_c_werror_flag" ||
13499 test ! -s conftest.err
13500 } && test -s conftest.
$ac_objext; then
13501 emacs_cv_arg6_star
=yes
13503 $as_echo "$as_me: failed program was:" >&5
13504 sed 's/^/| /' conftest.
$ac_ext >&5
13509 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13511 if test "$emacs_cv_arg6_star" = yes; then
13512 cat >>confdefs.h
<<\_ACEOF
13513 #define XRegisterIMInstantiateCallback_arg6 XPointer*
13517 cat >>confdefs.h
<<\_ACEOF
13518 #define XRegisterIMInstantiateCallback_arg6 XPointer
13522 CFLAGS
=$late_CFLAGS
13525 ### Start of font-backend (under any platform) section.
13526 # (nothing here yet -- this is a placeholder)
13527 ### End of font-backend (under any platform) section.
13529 ### Start of font-backend (under X11) section.
13530 if test "${HAVE_X11}" = "yes"; then
13534 # Extract the first word of "pkg-config", so it can be a program name with args.
13535 set dummy pkg-config
; ac_word
=$2
13536 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13537 $as_echo_n "checking for $ac_word... " >&6; }
13538 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13539 $as_echo_n "(cached) " >&6
13541 case $PKG_CONFIG in
13543 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
13546 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13547 for as_dir
in $PATH
13550 test -z "$as_dir" && as_dir
=.
13551 for ac_exec_ext
in '' $ac_executable_extensions; do
13552 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13553 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
13554 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13561 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
13565 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
13566 if test -n "$PKG_CONFIG"; then
13567 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13568 $as_echo "$PKG_CONFIG" >&6; }
13570 { $as_echo "$as_me:$LINENO: result: no" >&5
13571 $as_echo "no" >&6; }
13576 if test "$PKG_CONFIG" = "no" ; then
13579 PKG_CONFIG_MIN_VERSION
=0.9.0
13580 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13581 { $as_echo "$as_me:$LINENO: checking for fontconfig >= 2.2.0" >&5
13582 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
13584 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5; then
13585 { $as_echo "$as_me:$LINENO: result: yes" >&5
13586 $as_echo "yes" >&6; }
13589 { $as_echo "$as_me:$LINENO: checking FONTCONFIG_CFLAGS" >&5
13590 $as_echo_n "checking FONTCONFIG_CFLAGS... " >&6; }
13591 FONTCONFIG_CFLAGS
=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
13592 { $as_echo "$as_me:$LINENO: result: $FONTCONFIG_CFLAGS" >&5
13593 $as_echo "$FONTCONFIG_CFLAGS" >&6; }
13595 { $as_echo "$as_me:$LINENO: checking FONTCONFIG_LIBS" >&5
13596 $as_echo_n "checking FONTCONFIG_LIBS... " >&6; }
13597 FONTCONFIG_LIBS
=`$PKG_CONFIG --libs "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
13598 { $as_echo "$as_me:$LINENO: result: $FONTCONFIG_LIBS" >&5
13599 $as_echo "$FONTCONFIG_LIBS" >&6; }
13601 { $as_echo "$as_me:$LINENO: result: no" >&5
13602 $as_echo "no" >&6; }
13603 FONTCONFIG_CFLAGS
=""
13605 ## If we have a custom action on failure, don't print errors, but
13606 ## do set a variable so people can do so.
13607 FONTCONFIG_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.2.0"`
13614 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13615 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13619 if test $succeeded = yes; then
13626 ## Use -lXft if available, unless `--with-xft=no'.
13628 if test "${HAVE_FC}" = "no" ||
test "x${with_x}" = "xno"; then
13631 if test "x${with_xft}" != "xno"; then
13636 # Extract the first word of "pkg-config", so it can be a program name with args.
13637 set dummy pkg-config
; ac_word
=$2
13638 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13639 $as_echo_n "checking for $ac_word... " >&6; }
13640 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13641 $as_echo_n "(cached) " >&6
13643 case $PKG_CONFIG in
13645 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
13648 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13649 for as_dir
in $PATH
13652 test -z "$as_dir" && as_dir
=.
13653 for ac_exec_ext
in '' $ac_executable_extensions; do
13654 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13655 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
13656 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13663 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
13667 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
13668 if test -n "$PKG_CONFIG"; then
13669 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13670 $as_echo "$PKG_CONFIG" >&6; }
13672 { $as_echo "$as_me:$LINENO: result: no" >&5
13673 $as_echo "no" >&6; }
13678 if test "$PKG_CONFIG" = "no" ; then
13681 PKG_CONFIG_MIN_VERSION
=0.9.0
13682 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13683 { $as_echo "$as_me:$LINENO: checking for xft >= 0.13.0" >&5
13684 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
13686 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
13687 { $as_echo "$as_me:$LINENO: result: yes" >&5
13688 $as_echo "yes" >&6; }
13691 { $as_echo "$as_me:$LINENO: checking XFT_CFLAGS" >&5
13692 $as_echo_n "checking XFT_CFLAGS... " >&6; }
13693 XFT_CFLAGS
=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
13694 { $as_echo "$as_me:$LINENO: result: $XFT_CFLAGS" >&5
13695 $as_echo "$XFT_CFLAGS" >&6; }
13697 { $as_echo "$as_me:$LINENO: checking XFT_LIBS" >&5
13698 $as_echo_n "checking XFT_LIBS... " >&6; }
13699 XFT_LIBS
=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
13700 { $as_echo "$as_me:$LINENO: result: $XFT_LIBS" >&5
13701 $as_echo "$XFT_LIBS" >&6; }
13703 { $as_echo "$as_me:$LINENO: result: no" >&5
13704 $as_echo "no" >&6; }
13707 ## If we have a custom action on failure, don't print errors, but
13708 ## do set a variable so people can do so.
13709 XFT_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
13716 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13717 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13721 if test $succeeded = yes; then
13727 ## Because xftfont.c uses XRenderQueryExtension, we also
13728 ## need to link to -lXrender.
13730 { $as_echo "$as_me:$LINENO: checking for XRenderQueryExtension in -lXrender" >&5
13731 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
13732 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then
13733 $as_echo_n "(cached) " >&6
13735 ac_check_lib_save_LIBS
=$LIBS
13736 LIBS
="-lXrender $LIBS"
13737 cat >conftest.
$ac_ext <<_ACEOF
13740 cat confdefs.h
>>conftest.
$ac_ext
13741 cat >>conftest.
$ac_ext <<_ACEOF
13742 /* end confdefs.h. */
13744 /* Override any GCC internal prototype to avoid an error.
13745 Use char because int might match the return type of a GCC
13746 builtin and then its argument prototype would still apply. */
13750 char XRenderQueryExtension ();
13754 return XRenderQueryExtension ();
13759 rm -f conftest.
$ac_objext conftest
$ac_exeext
13760 if { (ac_try
="$ac_link"
13761 case "(($ac_try" in
13762 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13763 *) ac_try_echo=$ac_try;;
13765 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13766 $as_echo "$ac_try_echo") >&5
13767 (eval "$ac_link") 2>conftest.er1
13769 grep -v '^ *+' conftest.er1 >conftest.err
13771 cat conftest.err >&5
13772 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13773 (exit $ac_status); } && {
13774 test -z "$ac_c_werror_flag" ||
13775 test ! -s conftest.err
13776 } && test -s conftest$ac_exeext && {
13777 test "$cross_compiling" = yes ||
13778 $as_test_x conftest$ac_exeext
13780 ac_cv_lib_Xrender_XRenderQueryExtension=yes
13782 $as_echo "$as_me: failed program was:" >&5
13783 sed 's/^/| /' conftest.$ac_ext >&5
13785 ac_cv_lib_Xrender_XRenderQueryExtension=no
13788 rm -rf conftest.dSYM
13789 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13790 conftest$ac_exeext conftest.$ac_ext
13791 LIBS=$ac_check_lib_save_LIBS
13793 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
13794 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
13795 if test $ac_cv_lib_Xrender_XRenderQueryExtension = yes; then
13799 if test "$HAVE_XFT" != no && test "$HAVE_XRENDER" != no; then
13800 OLD_CPPFLAGS="$CPPFLAGS"
13801 OLD_CFLAGS="$CFLAGS"
13803 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
13804 CFLAGS="$CFLAGS $XFT_CFLAGS"
13805 XFT_LIBS="-lXrender $XFT_LIBS"
13806 LIBS="$XFT_LIBS $LIBS"
13807 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
13808 { $as_echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
13809 $as_echo_n "checking for X11/Xft/Xft.h... " >&6; }
13810 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
13811 $as_echo_n "(cached) " >&6
13813 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
13814 $as_echo "$ac_cv_header_X11_Xft_Xft_h" >&6; }
13816 # Is the header compilable?
13817 { $as_echo "$as_me:$LINENO: checking X11/Xft/Xft.h usability" >&5
13818 $as_echo_n "checking X11/Xft/Xft.h usability... " >&6; }
13819 cat >conftest.$ac_ext <<_ACEOF
13822 cat confdefs.h >>conftest.$ac_ext
13823 cat >>conftest.$ac_ext <<_ACEOF
13824 /* end confdefs.h. */
13825 $ac_includes_default
13826 #include <X11/Xft/Xft.h>
13828 rm -f conftest.$ac_objext
13829 if { (ac_try="$ac_compile"
13830 case "(($ac_try" in
13831 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13832 *) ac_try_echo
=$ac_try;;
13834 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
13835 $as_echo "$ac_try_echo") >&5
13836 (eval "$ac_compile") 2>conftest.er1
13838 grep -v '^ *+' conftest.er1
>conftest.err
13840 cat conftest.err
>&5
13841 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13842 (exit $ac_status); } && {
13843 test -z "$ac_c_werror_flag" ||
13844 test ! -s conftest.err
13845 } && test -s conftest.
$ac_objext; then
13846 ac_header_compiler
=yes
13848 $as_echo "$as_me: failed program was:" >&5
13849 sed 's/^/| /' conftest.
$ac_ext >&5
13851 ac_header_compiler
=no
13854 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13855 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13856 $as_echo "$ac_header_compiler" >&6; }
13858 # Is the header present?
13859 { $as_echo "$as_me:$LINENO: checking X11/Xft/Xft.h presence" >&5
13860 $as_echo_n "checking X11/Xft/Xft.h presence... " >&6; }
13861 cat >conftest.
$ac_ext <<_ACEOF
13864 cat confdefs.h
>>conftest.
$ac_ext
13865 cat >>conftest.
$ac_ext <<_ACEOF
13866 /* end confdefs.h. */
13867 #include <X11/Xft/Xft.h>
13869 if { (ac_try
="$ac_cpp conftest.$ac_ext"
13870 case "(($ac_try" in
13871 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13872 *) ac_try_echo=$ac_try;;
13874 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13875 $as_echo "$ac_try_echo") >&5
13876 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13878 grep -v '^ *+' conftest.er1 >conftest.err
13880 cat conftest.err >&5
13881 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13882 (exit $ac_status); } >/dev/null && {
13883 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13884 test ! -s conftest.err
13886 ac_header_preproc=yes
13888 $as_echo "$as_me: failed program was:" >&5
13889 sed 's/^/| /' conftest.$ac_ext >&5
13891 ac_header_preproc=no
13894 rm -f conftest.err conftest.$ac_ext
13895 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13896 $as_echo "$ac_header_preproc" >&6; }
13898 # So? What about this header?
13899 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13901 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&5
13902 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13903 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&5
13904 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&2;}
13905 ac_header_preproc=yes
13908 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&5
13909 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&2;}
13910 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&5
13911 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&2;}
13912 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&5
13913 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&2;}
13914 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&5
13915 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&2;}
13916 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&5
13917 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&2;}
13918 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&5
13919 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&2;}
13923 { $as_echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
13924 $as_echo_n "checking for X11/Xft/Xft.h... " >&6; }
13925 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
13926 $as_echo_n "(cached) " >&6
13928 ac_cv_header_X11_Xft_Xft_h=$ac_header_preproc
13930 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
13931 $as_echo "$ac_cv_header_X11_Xft_Xft_h" >&6; }
13934 if test $ac_cv_header_X11_Xft_Xft_h = yes; then
13935 { $as_echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5
13936 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
13937 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then
13938 $as_echo_n "(cached) " >&6
13940 ac_check_lib_save_LIBS=$LIBS
13941 LIBS="-lXft $XFT_LIBS $LIBS"
13942 cat >conftest.$ac_ext <<_ACEOF
13945 cat confdefs.h >>conftest.$ac_ext
13946 cat >>conftest.$ac_ext <<_ACEOF
13947 /* end confdefs.h. */
13949 /* Override any GCC internal prototype to avoid an error.
13950 Use char because int might match the return type of a GCC
13951 builtin and then its argument prototype would still apply. */
13955 char XftFontOpen ();
13959 return XftFontOpen ();
13964 rm -f conftest.$ac_objext conftest$ac_exeext
13965 if { (ac_try="$ac_link"
13966 case "(($ac_try" in
13967 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13968 *) ac_try_echo
=$ac_try;;
13970 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
13971 $as_echo "$ac_try_echo") >&5
13972 (eval "$ac_link") 2>conftest.er1
13974 grep -v '^ *+' conftest.er1
>conftest.err
13976 cat conftest.err
>&5
13977 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13978 (exit $ac_status); } && {
13979 test -z "$ac_c_werror_flag" ||
13980 test ! -s conftest.err
13981 } && test -s conftest
$ac_exeext && {
13982 test "$cross_compiling" = yes ||
13983 $as_test_x conftest
$ac_exeext
13985 ac_cv_lib_Xft_XftFontOpen
=yes
13987 $as_echo "$as_me: failed program was:" >&5
13988 sed 's/^/| /' conftest.
$ac_ext >&5
13990 ac_cv_lib_Xft_XftFontOpen
=no
13993 rm -rf conftest.dSYM
13994 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
13995 conftest
$ac_exeext conftest.
$ac_ext
13996 LIBS
=$ac_check_lib_save_LIBS
13998 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftFontOpen" >&5
13999 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
14000 if test $ac_cv_lib_Xft_XftFontOpen = yes; then
14008 if test "${HAVE_XFT}" = "yes"; then
14010 cat >>confdefs.h
<<\_ACEOF
14015 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $XFT_CFLAGS"
14017 CPPFLAGS
="$OLD_CPPFLAGS"
14018 CFLAGS
="$OLD_CFLAGS"
14020 fi # "${HAVE_XFT}" = "yes"
14021 fi # "$HAVE_XFT" != no
14022 fi # "x${with_xft}" != "xno"
14024 if test "$HAVE_XFT" != "yes"; then
14030 ## We used to allow building with FreeType and without Xft.
14031 ## However, the ftx font backend driver is not in good shape.
14032 if test "${HAVE_XFT}" = "yes"; then
14039 if test "${HAVE_FREETYPE}" = "yes"; then
14041 cat >>confdefs.h
<<\_ACEOF
14042 #define HAVE_FREETYPE 1
14045 if test "${with_libotf}" != "no"; then
14049 # Extract the first word of "pkg-config", so it can be a program name with args.
14050 set dummy pkg-config
; ac_word
=$2
14051 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14052 $as_echo_n "checking for $ac_word... " >&6; }
14053 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
14054 $as_echo_n "(cached) " >&6
14056 case $PKG_CONFIG in
14058 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
14061 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14062 for as_dir
in $PATH
14065 test -z "$as_dir" && as_dir
=.
14066 for ac_exec_ext
in '' $ac_executable_extensions; do
14067 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14068 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
14069 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14076 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
14080 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
14081 if test -n "$PKG_CONFIG"; then
14082 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
14083 $as_echo "$PKG_CONFIG" >&6; }
14085 { $as_echo "$as_me:$LINENO: result: no" >&5
14086 $as_echo "no" >&6; }
14091 if test "$PKG_CONFIG" = "no" ; then
14094 PKG_CONFIG_MIN_VERSION
=0.9.0
14095 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14096 { $as_echo "$as_me:$LINENO: checking for libotf" >&5
14097 $as_echo_n "checking for libotf... " >&6; }
14099 if $PKG_CONFIG --exists "libotf" 2>&5; then
14100 { $as_echo "$as_me:$LINENO: result: yes" >&5
14101 $as_echo "yes" >&6; }
14104 { $as_echo "$as_me:$LINENO: checking LIBOTF_CFLAGS" >&5
14105 $as_echo_n "checking LIBOTF_CFLAGS... " >&6; }
14106 LIBOTF_CFLAGS
=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
14107 { $as_echo "$as_me:$LINENO: result: $LIBOTF_CFLAGS" >&5
14108 $as_echo "$LIBOTF_CFLAGS" >&6; }
14110 { $as_echo "$as_me:$LINENO: checking LIBOTF_LIBS" >&5
14111 $as_echo_n "checking LIBOTF_LIBS... " >&6; }
14112 LIBOTF_LIBS
=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
14113 { $as_echo "$as_me:$LINENO: result: $LIBOTF_LIBS" >&5
14114 $as_echo "$LIBOTF_LIBS" >&6; }
14116 { $as_echo "$as_me:$LINENO: result: no" >&5
14117 $as_echo "no" >&6; }
14120 ## If we have a custom action on failure, don't print errors, but
14121 ## do set a variable so people can do so.
14122 LIBOTF_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
14129 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14130 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14134 if test $succeeded = yes; then
14140 if test "$HAVE_LIBOTF" = "yes"; then
14142 cat >>confdefs.h
<<\_ACEOF
14143 #define HAVE_LIBOTF 1
14146 { $as_echo "$as_me:$LINENO: checking for OTF_get_variation_glyphs in -lotf" >&5
14147 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
14148 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then
14149 $as_echo_n "(cached) " >&6
14151 ac_check_lib_save_LIBS
=$LIBS
14153 cat >conftest.
$ac_ext <<_ACEOF
14156 cat confdefs.h
>>conftest.
$ac_ext
14157 cat >>conftest.
$ac_ext <<_ACEOF
14158 /* end confdefs.h. */
14160 /* Override any GCC internal prototype to avoid an error.
14161 Use char because int might match the return type of a GCC
14162 builtin and then its argument prototype would still apply. */
14166 char OTF_get_variation_glyphs ();
14170 return OTF_get_variation_glyphs ();
14175 rm -f conftest.
$ac_objext conftest
$ac_exeext
14176 if { (ac_try
="$ac_link"
14177 case "(($ac_try" in
14178 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14179 *) ac_try_echo=$ac_try;;
14181 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14182 $as_echo "$ac_try_echo") >&5
14183 (eval "$ac_link") 2>conftest.er1
14185 grep -v '^ *+' conftest.er1 >conftest.err
14187 cat conftest.err >&5
14188 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14189 (exit $ac_status); } && {
14190 test -z "$ac_c_werror_flag" ||
14191 test ! -s conftest.err
14192 } && test -s conftest$ac_exeext && {
14193 test "$cross_compiling" = yes ||
14194 $as_test_x conftest$ac_exeext
14196 ac_cv_lib_otf_OTF_get_variation_glyphs=yes
14198 $as_echo "$as_me: failed program was:" >&5
14199 sed 's/^/| /' conftest.$ac_ext >&5
14201 ac_cv_lib_otf_OTF_get_variation_glyphs=no
14204 rm -rf conftest.dSYM
14205 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14206 conftest$ac_exeext conftest.$ac_ext
14207 LIBS=$ac_check_lib_save_LIBS
14209 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
14210 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
14211 if test $ac_cv_lib_otf_OTF_get_variation_glyphs = yes; then
14212 HAVE_OTF_GET_VARIATION_GLYPHS=yes
14214 HAVE_OTF_GET_VARIATION_GLYPHS=no
14217 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
14219 cat >>confdefs.h <<\_ACEOF
14220 #define HAVE_OTF_GET_VARIATION_GLYPHS 1
14229 if test "${HAVE_LIBOTF}" = yes; then
14230 if test "${with_m17n_flt}" != "no"; then
14234 # Extract the first word of "pkg-config", so it can be a program name with args.
14235 set dummy pkg-config; ac_word=$2
14236 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14237 $as_echo_n "checking for $ac_word... " >&6; }
14238 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
14239 $as_echo_n "(cached) " >&6
14241 case $PKG_CONFIG in
14243 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14247 for as_dir in $PATH
14250 test -z "$as_dir" && as_dir=.
14251 for ac_exec_ext in '' $ac_executable_extensions; do
14252 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14253 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14254 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14261 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
14265 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
14266 if test -n "$PKG_CONFIG"; then
14267 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
14268 $as_echo "$PKG_CONFIG" >&6; }
14270 { $as_echo "$as_me:$LINENO: result: no" >&5
14271 $as_echo "no" >&6; }
14276 if test "$PKG_CONFIG" = "no" ; then
14279 PKG_CONFIG_MIN_VERSION=0.9.0
14280 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14281 { $as_echo "$as_me:$LINENO: checking for m17n-flt" >&5
14282 $as_echo_n "checking for m17n-flt... " >&6; }
14284 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
14285 { $as_echo "$as_me:$LINENO: result: yes" >&5
14286 $as_echo "yes" >&6; }
14289 { $as_echo "$as_me:$LINENO: checking M17N_FLT_CFLAGS" >&5
14290 $as_echo_n "checking M17N_FLT_CFLAGS... " >&6; }
14291 M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt"|
sed -e 's,///*,/,g'`
14292 { $as_echo "$as_me:$LINENO: result: $M17N_FLT_CFLAGS" >&5
14293 $as_echo "$M17N_FLT_CFLAGS" >&6; }
14295 { $as_echo "$as_me:$LINENO: checking M17N_FLT_LIBS" >&5
14296 $as_echo_n "checking M17N_FLT_LIBS... " >&6; }
14297 M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt"|
sed -e 's,///*,/,g'`
14298 { $as_echo "$as_me:$LINENO: result: $M17N_FLT_LIBS" >&5
14299 $as_echo "$M17N_FLT_LIBS" >&6; }
14301 { $as_echo "$as_me:$LINENO: result: no" >&5
14302 $as_echo "no" >&6; }
14305 ## If we have a custom action on failure, don't print errors, but
14306 ## do set a variable so people can do so.
14307 M17N_FLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
14314 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14315 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14319 if test $succeeded = yes; then
14325 if test "$HAVE_M17N_FLT" = "yes"; then
14327 cat >>confdefs.h <<\_ACEOF
14328 #define HAVE_M17N_FLT 1
14340 ### End of font-backend (under X11) section.
14351 ### Use -lXpm if available, unless `--with-xpm=no
'.
14354 if test "${HAVE_X11}" = "yes"; then
14355 if test "${with_xpm}" != "no"; then
14356 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
14357 { $as_echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
14358 $as_echo_n "checking for X11/xpm.h... " >&6; }
14359 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
14360 $as_echo_n "(cached) " >&6
14362 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
14363 $as_echo "$ac_cv_header_X11_xpm_h" >&6; }
14365 # Is the header compilable?
14366 { $as_echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
14367 $as_echo_n "checking X11/xpm.h usability... " >&6; }
14368 cat >conftest.$ac_ext <<_ACEOF
14371 cat confdefs.h >>conftest.$ac_ext
14372 cat >>conftest.$ac_ext <<_ACEOF
14373 /* end confdefs.h. */
14374 $ac_includes_default
14375 #include <X11/xpm.h>
14377 rm -f conftest.$ac_objext
14378 if { (ac_try="$ac_compile"
14379 case "(($ac_try" in
14380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14381 *) ac_try_echo=$ac_try;;
14383 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14384 $as_echo "$ac_try_echo") >&5
14385 (eval "$ac_compile") 2>conftest.er1
14387 grep -v '^
*+' conftest.er1 >conftest.err
14389 cat conftest.err >&5
14390 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14391 (exit $ac_status); } && {
14392 test -z "$ac_c_werror_flag" ||
14393 test ! -s conftest.err
14394 } && test -s conftest.$ac_objext; then
14395 ac_header_compiler=yes
14397 $as_echo "$as_me: failed program was:" >&5
14398 sed 's
/^
/|
/' conftest.$ac_ext >&5
14400 ac_header_compiler=no
14403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14404 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14405 $as_echo "$ac_header_compiler" >&6; }
14407 # Is the header present?
14408 { $as_echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
14409 $as_echo_n "checking X11/xpm.h presence... " >&6; }
14410 cat >conftest.$ac_ext <<_ACEOF
14413 cat confdefs.h >>conftest.$ac_ext
14414 cat >>conftest.$ac_ext <<_ACEOF
14415 /* end confdefs.h. */
14416 #include <X11/xpm.h>
14418 if { (ac_try="$ac_cpp conftest.$ac_ext"
14419 case "(($ac_try" in
14420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14421 *) ac_try_echo=$ac_try;;
14423 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14424 $as_echo "$ac_try_echo") >&5
14425 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14427 grep -v '^
*+' conftest.er1 >conftest.err
14429 cat conftest.err >&5
14430 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14431 (exit $ac_status); } >/dev/null && {
14432 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14433 test ! -s conftest.err
14435 ac_header_preproc=yes
14437 $as_echo "$as_me: failed program was:" >&5
14438 sed 's
/^
/|
/' conftest.$ac_ext >&5
14440 ac_header_preproc=no
14443 rm -f conftest.err conftest.$ac_ext
14444 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14445 $as_echo "$ac_header_preproc" >&6; }
14447 # So? What about this header?
14448 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14450 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
14451 $as_echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14452 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result
" >&5
14453 $as_echo "$as_me: WARNING
: X11
/xpm.h
: proceeding with the compiler
's result" >&2;}
14454 ac_header_preproc=yes
14457 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
14458 $as_echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
14459 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
14460 $as_echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
14461 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
14462 $as_echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
14463 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
14464 $as_echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
14465 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result
" >&5
14466 $as_echo "$as_me: WARNING
: X11
/xpm.h
: proceeding with the preprocessor
's result" >&2;}
14467 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
14468 $as_echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
14472 { $as_echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
14473 $as_echo_n "checking for X11/xpm.h... " >&6; }
14474 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
14475 $as_echo_n "(cached) " >&6
14477 ac_cv_header_X11_xpm_h=$ac_header_preproc
14479 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
14480 $as_echo "$ac_cv_header_X11_xpm_h" >&6; }
14483 if test $ac_cv_header_X11_xpm_h = yes; then
14484 { $as_echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
14485 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
14486 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
14487 $as_echo_n "(cached) " >&6
14489 ac_check_lib_save_LIBS=$LIBS
14490 LIBS="-lXpm -lX11 $LIBS"
14491 cat >conftest.$ac_ext <<_ACEOF
14494 cat confdefs.h >>conftest.$ac_ext
14495 cat >>conftest.$ac_ext <<_ACEOF
14496 /* end confdefs.h. */
14498 /* Override any GCC internal prototype to avoid an error.
14499 Use char because int might match the return type of a GCC
14500 builtin and then its argument prototype would still apply. */
14504 char XpmReadFileToPixmap ();
14508 return XpmReadFileToPixmap ();
14513 rm -f conftest.$ac_objext conftest$ac_exeext
14514 if { (ac_try="$ac_link"
14515 case "(($ac_try" in
14516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14517 *) ac_try_echo=$ac_try;;
14519 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14520 $as_echo "$ac_try_echo") >&5
14521 (eval "$ac_link") 2>conftest.er1
14523 grep -v '^
*+' conftest.er1 >conftest.err
14525 cat conftest.err >&5
14526 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14527 (exit $ac_status); } && {
14528 test -z "$ac_c_werror_flag" ||
14529 test ! -s conftest.err
14530 } && test -s conftest$ac_exeext && {
14531 test "$cross_compiling" = yes ||
14532 $as_test_x conftest$ac_exeext
14534 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
14536 $as_echo "$as_me: failed program was:" >&5
14537 sed 's
/^
/|
/' conftest.$ac_ext >&5
14539 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
14542 rm -rf conftest.dSYM
14543 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14544 conftest$ac_exeext conftest.$ac_ext
14545 LIBS=$ac_check_lib_save_LIBS
14547 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
14548 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
14549 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
14556 if test "${HAVE_XPM}" = "yes"; then
14557 { $as_echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
14558 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
14559 cat >conftest.$ac_ext <<_ACEOF
14562 cat confdefs.h >>conftest.$ac_ext
14563 cat >>conftest.$ac_ext <<_ACEOF
14564 /* end confdefs.h. */
14565 #include "X11/xpm.h"
14566 #ifndef XpmReturnAllocPixels
14567 no_return_alloc_pixels
14571 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14572 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
14580 if test "${HAVE_XPM}" = "yes"; then
14581 { $as_echo "$as_me:$LINENO: result: yes" >&5
14582 $as_echo "yes" >&6; }
14584 { $as_echo "$as_me:$LINENO: result: no" >&5
14585 $as_echo "no" >&6; }
14590 if test "${HAVE_XPM}" = "yes"; then
14592 cat >>confdefs.h <<\_ACEOF
14601 ### Use -ljpeg if available, unless `--with-jpeg=no'.
14604 if test "${HAVE_X11}" = "yes"; then
14605 if test "${with_jpeg}" != "no"; then
14606 if test "${ac_cv_header_jerror_h+set}" = set; then
14607 { $as_echo "$as_me:$LINENO: checking for jerror.h" >&5
14608 $as_echo_n "checking for jerror.h... " >&6; }
14609 if test "${ac_cv_header_jerror_h+set}" = set; then
14610 $as_echo_n "(cached) " >&6
14612 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
14613 $as_echo "$ac_cv_header_jerror_h" >&6; }
14615 # Is the header compilable?
14616 { $as_echo "$as_me:$LINENO: checking jerror.h usability" >&5
14617 $as_echo_n "checking jerror.h usability... " >&6; }
14618 cat >conftest.
$ac_ext <<_ACEOF
14621 cat confdefs.h
>>conftest.
$ac_ext
14622 cat >>conftest.
$ac_ext <<_ACEOF
14623 /* end confdefs.h. */
14624 $ac_includes_default
14625 #include <jerror.h>
14627 rm -f conftest.
$ac_objext
14628 if { (ac_try
="$ac_compile"
14629 case "(($ac_try" in
14630 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14631 *) ac_try_echo=$ac_try;;
14633 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14634 $as_echo "$ac_try_echo") >&5
14635 (eval "$ac_compile") 2>conftest.er1
14637 grep -v '^ *+' conftest.er1 >conftest.err
14639 cat conftest.err >&5
14640 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14641 (exit $ac_status); } && {
14642 test -z "$ac_c_werror_flag" ||
14643 test ! -s conftest.err
14644 } && test -s conftest.$ac_objext; then
14645 ac_header_compiler=yes
14647 $as_echo "$as_me: failed program was:" >&5
14648 sed 's/^/| /' conftest.$ac_ext >&5
14650 ac_header_compiler=no
14653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14654 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14655 $as_echo "$ac_header_compiler" >&6; }
14657 # Is the header present?
14658 { $as_echo "$as_me:$LINENO: checking jerror.h presence" >&5
14659 $as_echo_n "checking jerror.h presence... " >&6; }
14660 cat >conftest.$ac_ext <<_ACEOF
14663 cat confdefs.h >>conftest.$ac_ext
14664 cat >>conftest.$ac_ext <<_ACEOF
14665 /* end confdefs.h. */
14666 #include <jerror.h>
14668 if { (ac_try="$ac_cpp conftest.$ac_ext"
14669 case "(($ac_try" in
14670 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14671 *) ac_try_echo
=$ac_try;;
14673 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
14674 $as_echo "$ac_try_echo") >&5
14675 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14677 grep -v '^ *+' conftest.er1
>conftest.err
14679 cat conftest.err
>&5
14680 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14681 (exit $ac_status); } >/dev
/null
&& {
14682 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14683 test ! -s conftest.err
14685 ac_header_preproc
=yes
14687 $as_echo "$as_me: failed program was:" >&5
14688 sed 's/^/| /' conftest.
$ac_ext >&5
14690 ac_header_preproc
=no
14693 rm -f conftest.err conftest.
$ac_ext
14694 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14695 $as_echo "$ac_header_preproc" >&6; }
14697 # So? What about this header?
14698 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14700 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
14701 $as_echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14702 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
14703 $as_echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
14704 ac_header_preproc
=yes
14707 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
14708 $as_echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
14709 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
14710 $as_echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
14711 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
14712 $as_echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
14713 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
14714 $as_echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
14715 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
14716 $as_echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
14717 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
14718 $as_echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
14722 { $as_echo "$as_me:$LINENO: checking for jerror.h" >&5
14723 $as_echo_n "checking for jerror.h... " >&6; }
14724 if test "${ac_cv_header_jerror_h+set}" = set; then
14725 $as_echo_n "(cached) " >&6
14727 ac_cv_header_jerror_h
=$ac_header_preproc
14729 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
14730 $as_echo "$ac_cv_header_jerror_h" >&6; }
14733 if test $ac_cv_header_jerror_h = yes; then
14734 { $as_echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
14735 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
14736 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
14737 $as_echo_n "(cached) " >&6
14739 ac_check_lib_save_LIBS
=$LIBS
14740 LIBS
="-ljpeg $LIBS"
14741 cat >conftest.
$ac_ext <<_ACEOF
14744 cat confdefs.h
>>conftest.
$ac_ext
14745 cat >>conftest.
$ac_ext <<_ACEOF
14746 /* end confdefs.h. */
14748 /* Override any GCC internal prototype to avoid an error.
14749 Use char because int might match the return type of a GCC
14750 builtin and then its argument prototype would still apply. */
14754 char jpeg_destroy_compress ();
14758 return jpeg_destroy_compress ();
14763 rm -f conftest.
$ac_objext conftest
$ac_exeext
14764 if { (ac_try
="$ac_link"
14765 case "(($ac_try" in
14766 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14767 *) ac_try_echo=$ac_try;;
14769 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14770 $as_echo "$ac_try_echo") >&5
14771 (eval "$ac_link") 2>conftest.er1
14773 grep -v '^ *+' conftest.er1 >conftest.err
14775 cat conftest.err >&5
14776 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14777 (exit $ac_status); } && {
14778 test -z "$ac_c_werror_flag" ||
14779 test ! -s conftest.err
14780 } && test -s conftest$ac_exeext && {
14781 test "$cross_compiling" = yes ||
14782 $as_test_x conftest$ac_exeext
14784 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
14786 $as_echo "$as_me: failed program was:" >&5
14787 sed 's/^/| /' conftest.$ac_ext >&5
14789 ac_cv_lib_jpeg_jpeg_destroy_compress=no
14792 rm -rf conftest.dSYM
14793 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14794 conftest$ac_exeext conftest.$ac_ext
14795 LIBS=$ac_check_lib_save_LIBS
14797 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
14798 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
14799 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
14809 if test "${HAVE_JPEG}" = "yes"; then
14810 cat >>confdefs.h <<\_ACEOF
14811 #define HAVE_JPEG 1
14814 cat >conftest.$ac_ext <<_ACEOF
14817 cat confdefs.h >>conftest.$ac_ext
14818 cat >>conftest.$ac_ext <<_ACEOF
14819 /* end confdefs.h. */
14820 #include <jpeglib.h>
14821 version=JPEG_LIB_VERSION
14824 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14825 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
14826 cat >>confdefs.h <<\_ACEOF
14827 #define HAVE_JPEG 1
14831 { $as_echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
14832 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
14838 if test "${HAVE_JPEG}" = "yes"; then
14844 ### Use -lpng if available, unless `--with-png=no
'.
14847 if test "${HAVE_X11}" = "yes"; then
14848 if test "${with_png}" != "no"; then
14849 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
14850 # in /usr/include/libpng.
14853 for ac_header in png.h libpng/png.h
14855 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14856 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14857 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14858 $as_echo_n "checking for $ac_header... " >&6; }
14859 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14860 $as_echo_n "(cached) " >&6
14862 ac_res=`eval 'as_val
=${'$as_ac_Header'}
14863 $as_echo "$as_val"'`
14864 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14865 $as_echo "$ac_res" >&6; }
14867 # Is the header compilable?
14868 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14869 $as_echo_n "checking $ac_header usability... " >&6; }
14870 cat >conftest.$ac_ext <<_ACEOF
14873 cat confdefs.h >>conftest.$ac_ext
14874 cat >>conftest.$ac_ext <<_ACEOF
14875 /* end confdefs.h. */
14876 $ac_includes_default
14877 #include <$ac_header>
14879 rm -f conftest.$ac_objext
14880 if { (ac_try="$ac_compile"
14881 case "(($ac_try" in
14882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14883 *) ac_try_echo=$ac_try;;
14885 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14886 $as_echo "$ac_try_echo") >&5
14887 (eval "$ac_compile") 2>conftest.er1
14889 grep -v '^
*+' conftest.er1 >conftest.err
14891 cat conftest.err >&5
14892 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14893 (exit $ac_status); } && {
14894 test -z "$ac_c_werror_flag" ||
14895 test ! -s conftest.err
14896 } && test -s conftest.$ac_objext; then
14897 ac_header_compiler=yes
14899 $as_echo "$as_me: failed program was:" >&5
14900 sed 's
/^
/|
/' conftest.$ac_ext >&5
14902 ac_header_compiler=no
14905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14906 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14907 $as_echo "$ac_header_compiler" >&6; }
14909 # Is the header present?
14910 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14911 $as_echo_n "checking $ac_header presence... " >&6; }
14912 cat >conftest.$ac_ext <<_ACEOF
14915 cat confdefs.h >>conftest.$ac_ext
14916 cat >>conftest.$ac_ext <<_ACEOF
14917 /* end confdefs.h. */
14918 #include <$ac_header>
14920 if { (ac_try="$ac_cpp conftest.$ac_ext"
14921 case "(($ac_try" in
14922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14923 *) ac_try_echo=$ac_try;;
14925 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14926 $as_echo "$ac_try_echo") >&5
14927 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14929 grep -v '^
*+' conftest.er1 >conftest.err
14931 cat conftest.err >&5
14932 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14933 (exit $ac_status); } >/dev/null && {
14934 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14935 test ! -s conftest.err
14937 ac_header_preproc=yes
14939 $as_echo "$as_me: failed program was:" >&5
14940 sed 's
/^
/|
/' conftest.$ac_ext >&5
14942 ac_header_preproc=no
14945 rm -f conftest.err conftest.$ac_ext
14946 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14947 $as_echo "$ac_header_preproc" >&6; }
14949 # So? What about this header?
14950 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14952 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14953 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14954 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result
" >&5
14955 $as_echo "$as_me: WARNING
: $ac_header: proceeding with the compiler
's result" >&2;}
14956 ac_header_preproc=yes
14959 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14960 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14961 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14962 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14963 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14964 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14965 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14966 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14967 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result
" >&5
14968 $as_echo "$as_me: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&2;}
14969 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14970 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14974 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14975 $as_echo_n "checking for $ac_header... " >&6; }
14976 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14977 $as_echo_n "(cached) " >&6
14979 eval "$as_ac_Header=\$ac_header_preproc"
14981 ac_res=`eval 'as_val
=${'$as_ac_Header'}
14982 $as_echo "$as_val"'`
14983 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14984 $as_echo "$ac_res" >&6; }
14987 if test `eval 'as_val
=${'$as_ac_Header'}
14988 $as_echo "$as_val"'` = yes; then
14989 cat >>confdefs.h <<_ACEOF
14990 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14997 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
14998 { $as_echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
14999 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
15000 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
15001 $as_echo_n "(cached) " >&6
15003 ac_check_lib_save_LIBS=$LIBS
15004 LIBS="-lpng -lz -lm $LIBS"
15005 cat >conftest.$ac_ext <<_ACEOF
15008 cat confdefs.h >>conftest.$ac_ext
15009 cat >>conftest.$ac_ext <<_ACEOF
15010 /* end confdefs.h. */
15012 /* Override any GCC internal prototype to avoid an error.
15013 Use char because int might match the return type of a GCC
15014 builtin and then its argument prototype would still apply. */
15018 char png_get_channels ();
15022 return png_get_channels ();
15027 rm -f conftest.$ac_objext conftest$ac_exeext
15028 if { (ac_try="$ac_link"
15029 case "(($ac_try" in
15030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15031 *) ac_try_echo=$ac_try;;
15033 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15034 $as_echo "$ac_try_echo") >&5
15035 (eval "$ac_link") 2>conftest.er1
15037 grep -v '^
*+' conftest.er1 >conftest.err
15039 cat conftest.err >&5
15040 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15041 (exit $ac_status); } && {
15042 test -z "$ac_c_werror_flag" ||
15043 test ! -s conftest.err
15044 } && test -s conftest$ac_exeext && {
15045 test "$cross_compiling" = yes ||
15046 $as_test_x conftest$ac_exeext
15048 ac_cv_lib_png_png_get_channels=yes
15050 $as_echo "$as_me: failed program was:" >&5
15051 sed 's
/^
/|
/' conftest.$ac_ext >&5
15053 ac_cv_lib_png_png_get_channels=no
15056 rm -rf conftest.dSYM
15057 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15058 conftest$ac_exeext conftest.$ac_ext
15059 LIBS=$ac_check_lib_save_LIBS
15061 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
15062 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
15063 if test $ac_cv_lib_png_png_get_channels = yes; then
15070 if test "${HAVE_PNG}" = "yes"; then
15072 cat >>confdefs.h <<\_ACEOF
15076 LIBPNG="-lpng -lz -lm"
15081 ### Use -ltiff if available, unless `--with-tiff=no'.
15084 if test "${HAVE_X11}" = "yes"; then
15085 if test "${with_tiff}" != "no"; then
15086 if test "${ac_cv_header_tiffio_h+set}" = set; then
15087 { $as_echo "$as_me:$LINENO: checking for tiffio.h" >&5
15088 $as_echo_n "checking for tiffio.h... " >&6; }
15089 if test "${ac_cv_header_tiffio_h+set}" = set; then
15090 $as_echo_n "(cached) " >&6
15092 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
15093 $as_echo "$ac_cv_header_tiffio_h" >&6; }
15095 # Is the header compilable?
15096 { $as_echo "$as_me:$LINENO: checking tiffio.h usability" >&5
15097 $as_echo_n "checking tiffio.h usability... " >&6; }
15098 cat >conftest.
$ac_ext <<_ACEOF
15101 cat confdefs.h
>>conftest.
$ac_ext
15102 cat >>conftest.
$ac_ext <<_ACEOF
15103 /* end confdefs.h. */
15104 $ac_includes_default
15105 #include <tiffio.h>
15107 rm -f conftest.
$ac_objext
15108 if { (ac_try
="$ac_compile"
15109 case "(($ac_try" in
15110 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15111 *) ac_try_echo=$ac_try;;
15113 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15114 $as_echo "$ac_try_echo") >&5
15115 (eval "$ac_compile") 2>conftest.er1
15117 grep -v '^ *+' conftest.er1 >conftest.err
15119 cat conftest.err >&5
15120 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15121 (exit $ac_status); } && {
15122 test -z "$ac_c_werror_flag" ||
15123 test ! -s conftest.err
15124 } && test -s conftest.$ac_objext; then
15125 ac_header_compiler=yes
15127 $as_echo "$as_me: failed program was:" >&5
15128 sed 's/^/| /' conftest.$ac_ext >&5
15130 ac_header_compiler=no
15133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15134 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15135 $as_echo "$ac_header_compiler" >&6; }
15137 # Is the header present?
15138 { $as_echo "$as_me:$LINENO: checking tiffio.h presence" >&5
15139 $as_echo_n "checking tiffio.h presence... " >&6; }
15140 cat >conftest.$ac_ext <<_ACEOF
15143 cat confdefs.h >>conftest.$ac_ext
15144 cat >>conftest.$ac_ext <<_ACEOF
15145 /* end confdefs.h. */
15146 #include <tiffio.h>
15148 if { (ac_try="$ac_cpp conftest.$ac_ext"
15149 case "(($ac_try" in
15150 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15151 *) ac_try_echo
=$ac_try;;
15153 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
15154 $as_echo "$ac_try_echo") >&5
15155 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15157 grep -v '^ *+' conftest.er1
>conftest.err
15159 cat conftest.err
>&5
15160 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15161 (exit $ac_status); } >/dev
/null
&& {
15162 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15163 test ! -s conftest.err
15165 ac_header_preproc
=yes
15167 $as_echo "$as_me: failed program was:" >&5
15168 sed 's/^/| /' conftest.
$ac_ext >&5
15170 ac_header_preproc
=no
15173 rm -f conftest.err conftest.
$ac_ext
15174 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15175 $as_echo "$ac_header_preproc" >&6; }
15177 # So? What about this header?
15178 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15180 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
15181 $as_echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15182 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
15183 $as_echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
15184 ac_header_preproc
=yes
15187 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
15188 $as_echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
15189 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
15190 $as_echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
15191 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
15192 $as_echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
15193 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
15194 $as_echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
15195 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
15196 $as_echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
15197 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
15198 $as_echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
15202 { $as_echo "$as_me:$LINENO: checking for tiffio.h" >&5
15203 $as_echo_n "checking for tiffio.h... " >&6; }
15204 if test "${ac_cv_header_tiffio_h+set}" = set; then
15205 $as_echo_n "(cached) " >&6
15207 ac_cv_header_tiffio_h
=$ac_header_preproc
15209 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
15210 $as_echo "$ac_cv_header_tiffio_h" >&6; }
15213 if test $ac_cv_header_tiffio_h = yes; then
15215 # At least one tiff package requires the jpeg library.
15216 if test "${HAVE_JPEG}" = yes; then tifflibs
="-ljpeg $tifflibs"; fi
15217 { $as_echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
15218 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
15219 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
15220 $as_echo_n "(cached) " >&6
15222 ac_check_lib_save_LIBS
=$LIBS
15223 LIBS
="-ltiff $tifflibs $LIBS"
15224 cat >conftest.
$ac_ext <<_ACEOF
15227 cat confdefs.h
>>conftest.
$ac_ext
15228 cat >>conftest.
$ac_ext <<_ACEOF
15229 /* end confdefs.h. */
15231 /* Override any GCC internal prototype to avoid an error.
15232 Use char because int might match the return type of a GCC
15233 builtin and then its argument prototype would still apply. */
15237 char TIFFGetVersion ();
15241 return TIFFGetVersion ();
15246 rm -f conftest.
$ac_objext conftest
$ac_exeext
15247 if { (ac_try
="$ac_link"
15248 case "(($ac_try" in
15249 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15250 *) ac_try_echo=$ac_try;;
15252 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15253 $as_echo "$ac_try_echo") >&5
15254 (eval "$ac_link") 2>conftest.er1
15256 grep -v '^ *+' conftest.er1 >conftest.err
15258 cat conftest.err >&5
15259 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15260 (exit $ac_status); } && {
15261 test -z "$ac_c_werror_flag" ||
15262 test ! -s conftest.err
15263 } && test -s conftest$ac_exeext && {
15264 test "$cross_compiling" = yes ||
15265 $as_test_x conftest$ac_exeext
15267 ac_cv_lib_tiff_TIFFGetVersion=yes
15269 $as_echo "$as_me: failed program was:" >&5
15270 sed 's/^/| /' conftest.$ac_ext >&5
15272 ac_cv_lib_tiff_TIFFGetVersion=no
15275 rm -rf conftest.dSYM
15276 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15277 conftest$ac_exeext conftest.$ac_ext
15278 LIBS=$ac_check_lib_save_LIBS
15280 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
15281 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
15282 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
15291 if test "${HAVE_TIFF}" = "yes"; then
15293 cat >>confdefs.h <<\_ACEOF
15294 #define HAVE_TIFF 1
15302 ### Use -lgif or -lungif if available, unless `--with-gif=no
'.
15305 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
15306 if test "${ac_cv_header_gif_lib_h+set}" = set; then
15307 { $as_echo "$as_me:$LINENO: checking for gif_lib.h" >&5
15308 $as_echo_n "checking for gif_lib.h... " >&6; }
15309 if test "${ac_cv_header_gif_lib_h+set}" = set; then
15310 $as_echo_n "(cached) " >&6
15312 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
15313 $as_echo "$ac_cv_header_gif_lib_h" >&6; }
15315 # Is the header compilable?
15316 { $as_echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
15317 $as_echo_n "checking gif_lib.h usability... " >&6; }
15318 cat >conftest.$ac_ext <<_ACEOF
15321 cat confdefs.h >>conftest.$ac_ext
15322 cat >>conftest.$ac_ext <<_ACEOF
15323 /* end confdefs.h. */
15324 $ac_includes_default
15325 #include <gif_lib.h>
15327 rm -f conftest.$ac_objext
15328 if { (ac_try="$ac_compile"
15329 case "(($ac_try" in
15330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15331 *) ac_try_echo=$ac_try;;
15333 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15334 $as_echo "$ac_try_echo") >&5
15335 (eval "$ac_compile") 2>conftest.er1
15337 grep -v '^
*+' conftest.er1 >conftest.err
15339 cat conftest.err >&5
15340 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15341 (exit $ac_status); } && {
15342 test -z "$ac_c_werror_flag" ||
15343 test ! -s conftest.err
15344 } && test -s conftest.$ac_objext; then
15345 ac_header_compiler=yes
15347 $as_echo "$as_me: failed program was:" >&5
15348 sed 's
/^
/|
/' conftest.$ac_ext >&5
15350 ac_header_compiler=no
15353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15354 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15355 $as_echo "$ac_header_compiler" >&6; }
15357 # Is the header present?
15358 { $as_echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
15359 $as_echo_n "checking gif_lib.h presence... " >&6; }
15360 cat >conftest.$ac_ext <<_ACEOF
15363 cat confdefs.h >>conftest.$ac_ext
15364 cat >>conftest.$ac_ext <<_ACEOF
15365 /* end confdefs.h. */
15366 #include <gif_lib.h>
15368 if { (ac_try="$ac_cpp conftest.$ac_ext"
15369 case "(($ac_try" in
15370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15371 *) ac_try_echo=$ac_try;;
15373 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15374 $as_echo "$ac_try_echo") >&5
15375 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15377 grep -v '^
*+' conftest.er1 >conftest.err
15379 cat conftest.err >&5
15380 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15381 (exit $ac_status); } >/dev/null && {
15382 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15383 test ! -s conftest.err
15385 ac_header_preproc=yes
15387 $as_echo "$as_me: failed program was:" >&5
15388 sed 's
/^
/|
/' conftest.$ac_ext >&5
15390 ac_header_preproc=no
15393 rm -f conftest.err conftest.$ac_ext
15394 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15395 $as_echo "$ac_header_preproc" >&6; }
15397 # So? What about this header?
15398 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15400 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
15401 $as_echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15402 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result
" >&5
15403 $as_echo "$as_me: WARNING
: gif_lib.h
: proceeding with the compiler
's result" >&2;}
15404 ac_header_preproc=yes
15407 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
15408 $as_echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
15409 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
15410 $as_echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
15411 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
15412 $as_echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
15413 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
15414 $as_echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
15415 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result
" >&5
15416 $as_echo "$as_me: WARNING
: gif_lib.h
: proceeding with the preprocessor
's result" >&2;}
15417 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
15418 $as_echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
15422 { $as_echo "$as_me:$LINENO: checking for gif_lib.h" >&5
15423 $as_echo_n "checking for gif_lib.h... " >&6; }
15424 if test "${ac_cv_header_gif_lib_h+set}" = set; then
15425 $as_echo_n "(cached) " >&6
15427 ac_cv_header_gif_lib_h=$ac_header_preproc
15429 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
15430 $as_echo "$ac_cv_header_gif_lib_h" >&6; }
15433 if test $ac_cv_header_gif_lib_h = yes; then
15434 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
15435 # Earlier versions can crash Emacs.
15436 { $as_echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lgif" >&5
15437 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
15438 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then
15439 $as_echo_n "(cached) " >&6
15441 ac_check_lib_save_LIBS=$LIBS
15443 cat >conftest.$ac_ext <<_ACEOF
15446 cat confdefs.h >>conftest.$ac_ext
15447 cat >>conftest.$ac_ext <<_ACEOF
15448 /* end confdefs.h. */
15450 /* Override any GCC internal prototype to avoid an error.
15451 Use char because int might match the return type of a GCC
15452 builtin and then its argument prototype would still apply. */
15456 char EGifPutExtensionLast ();
15460 return EGifPutExtensionLast ();
15465 rm -f conftest.$ac_objext conftest$ac_exeext
15466 if { (ac_try="$ac_link"
15467 case "(($ac_try" in
15468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15469 *) ac_try_echo=$ac_try;;
15471 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15472 $as_echo "$ac_try_echo") >&5
15473 (eval "$ac_link") 2>conftest.er1
15475 grep -v '^
*+' conftest.er1 >conftest.err
15477 cat conftest.err >&5
15478 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15479 (exit $ac_status); } && {
15480 test -z "$ac_c_werror_flag" ||
15481 test ! -s conftest.err
15482 } && test -s conftest$ac_exeext && {
15483 test "$cross_compiling" = yes ||
15484 $as_test_x conftest$ac_exeext
15486 ac_cv_lib_gif_EGifPutExtensionLast=yes
15488 $as_echo "$as_me: failed program was:" >&5
15489 sed 's
/^
/|
/' conftest.$ac_ext >&5
15491 ac_cv_lib_gif_EGifPutExtensionLast=no
15494 rm -rf conftest.dSYM
15495 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15496 conftest$ac_exeext conftest.$ac_ext
15497 LIBS=$ac_check_lib_save_LIBS
15499 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
15500 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
15501 if test $ac_cv_lib_gif_EGifPutExtensionLast = yes; then
15511 if test "$HAVE_GIF" = yes; then
15513 elif test "$HAVE_GIF" = maybe; then
15514 # If gif_lib.h but no libgif, try libungif.
15515 { $as_echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
15516 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
15517 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
15518 $as_echo_n "(cached) " >&6
15520 ac_check_lib_save_LIBS=$LIBS
15521 LIBS="-lungif $LIBS"
15522 cat >conftest.$ac_ext <<_ACEOF
15525 cat confdefs.h >>conftest.$ac_ext
15526 cat >>conftest.$ac_ext <<_ACEOF
15527 /* end confdefs.h. */
15529 /* Override any GCC internal prototype to avoid an error.
15530 Use char because int might match the return type of a GCC
15531 builtin and then its argument prototype would still apply. */
15535 char EGifPutExtensionLast ();
15539 return EGifPutExtensionLast ();
15544 rm -f conftest.$ac_objext conftest$ac_exeext
15545 if { (ac_try="$ac_link"
15546 case "(($ac_try" in
15547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15548 *) ac_try_echo=$ac_try;;
15550 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15551 $as_echo "$ac_try_echo") >&5
15552 (eval "$ac_link") 2>conftest.er1
15554 grep -v '^
*+' conftest.er1 >conftest.err
15556 cat conftest.err >&5
15557 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15558 (exit $ac_status); } && {
15559 test -z "$ac_c_werror_flag" ||
15560 test ! -s conftest.err
15561 } && test -s conftest$ac_exeext && {
15562 test "$cross_compiling" = yes ||
15563 $as_test_x conftest$ac_exeext
15565 ac_cv_lib_ungif_EGifPutExtensionLast=yes
15567 $as_echo "$as_me: failed program was:" >&5
15568 sed 's
/^
/|
/' conftest.$ac_ext >&5
15570 ac_cv_lib_ungif_EGifPutExtensionLast=no
15573 rm -rf conftest.dSYM
15574 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15575 conftest$ac_exeext conftest.$ac_ext
15576 LIBS=$ac_check_lib_save_LIBS
15578 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
15579 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
15580 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
15586 test "$HAVE_GIF" = yes && LIBGIF=-lungif
15589 if test "${HAVE_GIF}" = "yes"; then
15591 cat >>confdefs.h <<\_ACEOF
15599 if test "${HAVE_X11}" = "yes"; then
15602 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
15603 MISSING="libXpm" && WITH_NO="--with-xpm=no"
15604 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
15605 MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no"
15606 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
15607 MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no"
15608 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
15609 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
15610 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
15611 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
15613 if test "X${MISSING}" != X; then
15614 { { $as_echo "$as_me:$LINENO: error: The following required libraries were not found:
15616 Maybe some development libraries/packages are missing?
15617 If you don't want to link with them give
15619 as options to configure
" >&5
15620 $as_echo "$as_me: error
: The following required libraries were not found
:
15622 Maybe some development libraries
/packages are missing?
15623 If you don
't want to link with them give
15625 as options to configure" >&2;}
15626 { (exit 1); exit 1; }; }
15630 ### Use -lgpm if available, unless `--with-gpm=no'.
15633 if test "${with_gpm}" != "no"; then
15634 if test "${ac_cv_header_gpm_h+set}" = set; then
15635 { $as_echo "$as_me:$LINENO: checking for gpm.h" >&5
15636 $as_echo_n "checking for gpm.h... " >&6; }
15637 if test "${ac_cv_header_gpm_h+set}" = set; then
15638 $as_echo_n "(cached) " >&6
15640 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
15641 $as_echo "$ac_cv_header_gpm_h" >&6; }
15643 # Is the header compilable?
15644 { $as_echo "$as_me:$LINENO: checking gpm.h usability" >&5
15645 $as_echo_n "checking gpm.h usability... " >&6; }
15646 cat >conftest.
$ac_ext <<_ACEOF
15649 cat confdefs.h
>>conftest.
$ac_ext
15650 cat >>conftest.
$ac_ext <<_ACEOF
15651 /* end confdefs.h. */
15652 $ac_includes_default
15655 rm -f conftest.
$ac_objext
15656 if { (ac_try
="$ac_compile"
15657 case "(($ac_try" in
15658 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15659 *) ac_try_echo=$ac_try;;
15661 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15662 $as_echo "$ac_try_echo") >&5
15663 (eval "$ac_compile") 2>conftest.er1
15665 grep -v '^ *+' conftest.er1 >conftest.err
15667 cat conftest.err >&5
15668 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15669 (exit $ac_status); } && {
15670 test -z "$ac_c_werror_flag" ||
15671 test ! -s conftest.err
15672 } && test -s conftest.$ac_objext; then
15673 ac_header_compiler=yes
15675 $as_echo "$as_me: failed program was:" >&5
15676 sed 's/^/| /' conftest.$ac_ext >&5
15678 ac_header_compiler=no
15681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15682 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15683 $as_echo "$ac_header_compiler" >&6; }
15685 # Is the header present?
15686 { $as_echo "$as_me:$LINENO: checking gpm.h presence" >&5
15687 $as_echo_n "checking gpm.h presence... " >&6; }
15688 cat >conftest.$ac_ext <<_ACEOF
15691 cat confdefs.h >>conftest.$ac_ext
15692 cat >>conftest.$ac_ext <<_ACEOF
15693 /* end confdefs.h. */
15696 if { (ac_try="$ac_cpp conftest.$ac_ext"
15697 case "(($ac_try" in
15698 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15699 *) ac_try_echo
=$ac_try;;
15701 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
15702 $as_echo "$ac_try_echo") >&5
15703 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15705 grep -v '^ *+' conftest.er1
>conftest.err
15707 cat conftest.err
>&5
15708 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15709 (exit $ac_status); } >/dev
/null
&& {
15710 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15711 test ! -s conftest.err
15713 ac_header_preproc
=yes
15715 $as_echo "$as_me: failed program was:" >&5
15716 sed 's/^/| /' conftest.
$ac_ext >&5
15718 ac_header_preproc
=no
15721 rm -f conftest.err conftest.
$ac_ext
15722 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15723 $as_echo "$ac_header_preproc" >&6; }
15725 # So? What about this header?
15726 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15728 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
15729 $as_echo "$as_me: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15730 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the compiler's result" >&5
15731 $as_echo "$as_me: WARNING: gpm.h: proceeding with the compiler's result" >&2;}
15732 ac_header_preproc
=yes
15735 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: present but cannot be compiled" >&5
15736 $as_echo "$as_me: WARNING: gpm.h: present but cannot be compiled" >&2;}
15737 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: check for missing prerequisite headers?" >&5
15738 $as_echo "$as_me: WARNING: gpm.h: check for missing prerequisite headers?" >&2;}
15739 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: see the Autoconf documentation" >&5
15740 $as_echo "$as_me: WARNING: gpm.h: see the Autoconf documentation" >&2;}
15741 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&5
15742 $as_echo "$as_me: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
15743 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the preprocessor's result" >&5
15744 $as_echo "$as_me: WARNING: gpm.h: proceeding with the preprocessor's result" >&2;}
15745 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: in the future, the compiler will take precedence" >&5
15746 $as_echo "$as_me: WARNING: gpm.h: in the future, the compiler will take precedence" >&2;}
15750 { $as_echo "$as_me:$LINENO: checking for gpm.h" >&5
15751 $as_echo_n "checking for gpm.h... " >&6; }
15752 if test "${ac_cv_header_gpm_h+set}" = set; then
15753 $as_echo_n "(cached) " >&6
15755 ac_cv_header_gpm_h
=$ac_header_preproc
15757 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
15758 $as_echo "$ac_cv_header_gpm_h" >&6; }
15761 if test $ac_cv_header_gpm_h = yes; then
15762 { $as_echo "$as_me:$LINENO: checking for Gpm_Open in -lgpm" >&5
15763 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
15764 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
15765 $as_echo_n "(cached) " >&6
15767 ac_check_lib_save_LIBS
=$LIBS
15769 cat >conftest.
$ac_ext <<_ACEOF
15772 cat confdefs.h
>>conftest.
$ac_ext
15773 cat >>conftest.
$ac_ext <<_ACEOF
15774 /* end confdefs.h. */
15776 /* Override any GCC internal prototype to avoid an error.
15777 Use char because int might match the return type of a GCC
15778 builtin and then its argument prototype would still apply. */
15786 return Gpm_Open ();
15791 rm -f conftest.
$ac_objext conftest
$ac_exeext
15792 if { (ac_try
="$ac_link"
15793 case "(($ac_try" in
15794 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15795 *) ac_try_echo=$ac_try;;
15797 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15798 $as_echo "$ac_try_echo") >&5
15799 (eval "$ac_link") 2>conftest.er1
15801 grep -v '^ *+' conftest.er1 >conftest.err
15803 cat conftest.err >&5
15804 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15805 (exit $ac_status); } && {
15806 test -z "$ac_c_werror_flag" ||
15807 test ! -s conftest.err
15808 } && test -s conftest$ac_exeext && {
15809 test "$cross_compiling" = yes ||
15810 $as_test_x conftest$ac_exeext
15812 ac_cv_lib_gpm_Gpm_Open=yes
15814 $as_echo "$as_me: failed program was:" >&5
15815 sed 's/^/| /' conftest.$ac_ext >&5
15817 ac_cv_lib_gpm_Gpm_Open=no
15820 rm -rf conftest.dSYM
15821 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15822 conftest$ac_exeext conftest.$ac_ext
15823 LIBS=$ac_check_lib_save_LIBS
15825 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gpm_Gpm_Open" >&5
15826 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
15827 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
15835 if test "${HAVE_GPM}" = "yes"; then
15837 cat >>confdefs.h <<\_ACEOF
15846 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
15847 { $as_echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
15848 $as_echo_n "checking for malloc/malloc.h... " >&6; }
15849 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
15850 $as_echo_n "(cached) " >&6
15852 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
15853 $as_echo "$ac_cv_header_malloc_malloc_h" >&6; }
15855 # Is the header compilable?
15856 { $as_echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
15857 $as_echo_n "checking malloc/malloc.h usability... " >&6; }
15858 cat >conftest.$ac_ext <<_ACEOF
15861 cat confdefs.h >>conftest.$ac_ext
15862 cat >>conftest.$ac_ext <<_ACEOF
15863 /* end confdefs.h. */
15864 $ac_includes_default
15865 #include <malloc/malloc.h>
15867 rm -f conftest.$ac_objext
15868 if { (ac_try="$ac_compile"
15869 case "(($ac_try" in
15870 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15871 *) ac_try_echo
=$ac_try;;
15873 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
15874 $as_echo "$ac_try_echo") >&5
15875 (eval "$ac_compile") 2>conftest.er1
15877 grep -v '^ *+' conftest.er1
>conftest.err
15879 cat conftest.err
>&5
15880 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15881 (exit $ac_status); } && {
15882 test -z "$ac_c_werror_flag" ||
15883 test ! -s conftest.err
15884 } && test -s conftest.
$ac_objext; then
15885 ac_header_compiler
=yes
15887 $as_echo "$as_me: failed program was:" >&5
15888 sed 's/^/| /' conftest.
$ac_ext >&5
15890 ac_header_compiler
=no
15893 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15894 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15895 $as_echo "$ac_header_compiler" >&6; }
15897 # Is the header present?
15898 { $as_echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
15899 $as_echo_n "checking malloc/malloc.h presence... " >&6; }
15900 cat >conftest.
$ac_ext <<_ACEOF
15903 cat confdefs.h
>>conftest.
$ac_ext
15904 cat >>conftest.
$ac_ext <<_ACEOF
15905 /* end confdefs.h. */
15906 #include <malloc/malloc.h>
15908 if { (ac_try
="$ac_cpp conftest.$ac_ext"
15909 case "(($ac_try" in
15910 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15911 *) ac_try_echo=$ac_try;;
15913 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15914 $as_echo "$ac_try_echo") >&5
15915 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15917 grep -v '^ *+' conftest.er1 >conftest.err
15919 cat conftest.err >&5
15920 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15921 (exit $ac_status); } >/dev/null && {
15922 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15923 test ! -s conftest.err
15925 ac_header_preproc=yes
15927 $as_echo "$as_me: failed program was:" >&5
15928 sed 's/^/| /' conftest.$ac_ext >&5
15930 ac_header_preproc=no
15933 rm -f conftest.err conftest.$ac_ext
15934 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15935 $as_echo "$ac_header_preproc" >&6; }
15937 # So? What about this header?
15938 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15940 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
15941 $as_echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15942 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
15943 $as_echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
15944 ac_header_preproc=yes
15947 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
15948 $as_echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
15949 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
15950 $as_echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
15951 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
15952 $as_echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
15953 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
15954 $as_echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
15955 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
15956 $as_echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
15957 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
15958 $as_echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
15962 { $as_echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
15963 $as_echo_n "checking for malloc/malloc.h... " >&6; }
15964 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
15965 $as_echo_n "(cached) " >&6
15967 ac_cv_header_malloc_malloc_h=$ac_header_preproc
15969 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
15970 $as_echo "$ac_cv_header_malloc_malloc_h" >&6; }
15973 if test $ac_cv_header_malloc_malloc_h = yes; then
15975 cat >>confdefs.h <<\_ACEOF
15976 #define HAVE_MALLOC_MALLOC_H 1
15983 ### Use NeXTstep API to implement GUI.
15984 if test "${HAVE_NS}" = "yes"; then
15986 cat >>confdefs.h <<\_ACEOF
15990 if test "${NS_IMPL_COCOA}" = "yes"; then
15992 cat >>confdefs.h <<\_ACEOF
15993 #define NS_IMPL_COCOA 1
15998 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
16000 cat >>confdefs.h <<\_ACEOF
16001 #define NS_IMPL_GNUSTEP 1
16004 GNU_OBJC_CFLAGS="-fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE"
16006 if test "${NS_HAVE_NSINTEGER}" = "yes"; then
16008 cat >>confdefs.h <<\_ACEOF
16009 #define NS_HAVE_NSINTEGER 1
16013 # We also have mouse menus.
16019 ### Use session management (-lSM -lICE) if available
16021 if test "${HAVE_X11}" = "yes"; then
16022 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
16023 { $as_echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
16024 $as_echo_n "checking for X11/SM/SMlib.h... " >&6; }
16025 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
16026 $as_echo_n "(cached) " >&6
16028 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
16029 $as_echo "$ac_cv_header_X11_SM_SMlib_h" >&6; }
16031 # Is the header compilable?
16032 { $as_echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
16033 $as_echo_n "checking X11/SM/SMlib.h usability... " >&6; }
16034 cat >conftest.$ac_ext <<_ACEOF
16037 cat confdefs.h >>conftest.$ac_ext
16038 cat >>conftest.$ac_ext <<_ACEOF
16039 /* end confdefs.h. */
16040 $ac_includes_default
16041 #include <X11/SM/SMlib.h>
16043 rm -f conftest.$ac_objext
16044 if { (ac_try="$ac_compile"
16045 case "(($ac_try" in
16046 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16047 *) ac_try_echo
=$ac_try;;
16049 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
16050 $as_echo "$ac_try_echo") >&5
16051 (eval "$ac_compile") 2>conftest.er1
16053 grep -v '^ *+' conftest.er1
>conftest.err
16055 cat conftest.err
>&5
16056 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16057 (exit $ac_status); } && {
16058 test -z "$ac_c_werror_flag" ||
16059 test ! -s conftest.err
16060 } && test -s conftest.
$ac_objext; then
16061 ac_header_compiler
=yes
16063 $as_echo "$as_me: failed program was:" >&5
16064 sed 's/^/| /' conftest.
$ac_ext >&5
16066 ac_header_compiler
=no
16069 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16070 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16071 $as_echo "$ac_header_compiler" >&6; }
16073 # Is the header present?
16074 { $as_echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
16075 $as_echo_n "checking X11/SM/SMlib.h presence... " >&6; }
16076 cat >conftest.
$ac_ext <<_ACEOF
16079 cat confdefs.h
>>conftest.
$ac_ext
16080 cat >>conftest.
$ac_ext <<_ACEOF
16081 /* end confdefs.h. */
16082 #include <X11/SM/SMlib.h>
16084 if { (ac_try
="$ac_cpp conftest.$ac_ext"
16085 case "(($ac_try" in
16086 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16087 *) ac_try_echo=$ac_try;;
16089 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16090 $as_echo "$ac_try_echo") >&5
16091 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16093 grep -v '^ *+' conftest.er1 >conftest.err
16095 cat conftest.err >&5
16096 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16097 (exit $ac_status); } >/dev/null && {
16098 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16099 test ! -s conftest.err
16101 ac_header_preproc=yes
16103 $as_echo "$as_me: failed program was:" >&5
16104 sed 's/^/| /' conftest.$ac_ext >&5
16106 ac_header_preproc=no
16109 rm -f conftest.err conftest.$ac_ext
16110 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16111 $as_echo "$ac_header_preproc" >&6; }
16113 # So? What about this header?
16114 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16116 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
16117 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16118 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
16119 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
16120 ac_header_preproc=yes
16123 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
16124 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
16125 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
16126 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
16127 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
16128 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
16129 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
16130 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
16131 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
16132 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
16133 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
16134 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
16138 { $as_echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
16139 $as_echo_n "checking for X11/SM/SMlib.h... " >&6; }
16140 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
16141 $as_echo_n "(cached) " >&6
16143 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
16145 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
16146 $as_echo "$ac_cv_header_X11_SM_SMlib_h" >&6; }
16149 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
16150 { $as_echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
16151 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
16152 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
16153 $as_echo_n "(cached) " >&6
16155 ac_check_lib_save_LIBS=$LIBS
16156 LIBS="-lSM -lICE $LIBS"
16157 cat >conftest.$ac_ext <<_ACEOF
16160 cat confdefs.h >>conftest.$ac_ext
16161 cat >>conftest.$ac_ext <<_ACEOF
16162 /* end confdefs.h. */
16164 /* Override any GCC internal prototype to avoid an error.
16165 Use char because int might match the return type of a GCC
16166 builtin and then its argument prototype would still apply. */
16170 char SmcOpenConnection ();
16174 return SmcOpenConnection ();
16179 rm -f conftest.$ac_objext conftest$ac_exeext
16180 if { (ac_try="$ac_link"
16181 case "(($ac_try" in
16182 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16183 *) ac_try_echo
=$ac_try;;
16185 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
16186 $as_echo "$ac_try_echo") >&5
16187 (eval "$ac_link") 2>conftest.er1
16189 grep -v '^ *+' conftest.er1
>conftest.err
16191 cat conftest.err
>&5
16192 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16193 (exit $ac_status); } && {
16194 test -z "$ac_c_werror_flag" ||
16195 test ! -s conftest.err
16196 } && test -s conftest
$ac_exeext && {
16197 test "$cross_compiling" = yes ||
16198 $as_test_x conftest
$ac_exeext
16200 ac_cv_lib_SM_SmcOpenConnection
=yes
16202 $as_echo "$as_me: failed program was:" >&5
16203 sed 's/^/| /' conftest.
$ac_ext >&5
16205 ac_cv_lib_SM_SmcOpenConnection
=no
16208 rm -rf conftest.dSYM
16209 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
16210 conftest
$ac_exeext conftest.
$ac_ext
16211 LIBS
=$ac_check_lib_save_LIBS
16213 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
16214 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
16215 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
16223 if test "${HAVE_X_SM}" = "yes"; then
16225 cat >>confdefs.h
<<\_ACEOF
16226 #define HAVE_X_SM 1
16231 *) LIBS
="-lSM -lICE $LIBS" ;;
16236 # If netdb.h doesn't declare h_errno, we must declare it by hand.
16237 { $as_echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
16238 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
16239 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
16240 $as_echo_n "(cached) " >&6
16242 cat >conftest.
$ac_ext <<_ACEOF
16245 cat confdefs.h
>>conftest.
$ac_ext
16246 cat >>conftest.
$ac_ext <<_ACEOF
16247 /* end confdefs.h. */
16257 rm -f conftest.
$ac_objext conftest
$ac_exeext
16258 if { (ac_try
="$ac_link"
16259 case "(($ac_try" in
16260 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16261 *) ac_try_echo=$ac_try;;
16263 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16264 $as_echo "$ac_try_echo") >&5
16265 (eval "$ac_link") 2>conftest.er1
16267 grep -v '^ *+' conftest.er1 >conftest.err
16269 cat conftest.err >&5
16270 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16271 (exit $ac_status); } && {
16272 test -z "$ac_c_werror_flag" ||
16273 test ! -s conftest.err
16274 } && test -s conftest$ac_exeext && {
16275 test "$cross_compiling" = yes ||
16276 $as_test_x conftest$ac_exeext
16278 emacs_cv_netdb_declares_h_errno=yes
16280 $as_echo "$as_me: failed program was:" >&5
16281 sed 's/^/| /' conftest.$ac_ext >&5
16283 emacs_cv_netdb_declares_h_errno=no
16286 rm -rf conftest.dSYM
16287 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16288 conftest$ac_exeext conftest.$ac_ext
16290 { $as_echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
16291 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
16292 if test $emacs_cv_netdb_declares_h_errno = yes; then
16294 cat >>confdefs.h <<\_ACEOF
16295 #define HAVE_H_ERRNO 1
16300 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
16301 # for constant arguments. Useless!
16302 { $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
16303 $as_echo_n "checking for working alloca.h... " >&6; }
16304 if test "${ac_cv_working_alloca_h+set}" = set; then
16305 $as_echo_n "(cached) " >&6
16307 cat >conftest.$ac_ext <<_ACEOF
16310 cat confdefs.h >>conftest.$ac_ext
16311 cat >>conftest.$ac_ext <<_ACEOF
16312 /* end confdefs.h. */
16313 #include <alloca.h>
16317 char *p = (char *) alloca (2 * sizeof (int));
16323 rm -f conftest.$ac_objext conftest$ac_exeext
16324 if { (ac_try="$ac_link"
16325 case "(($ac_try" in
16326 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16327 *) ac_try_echo
=$ac_try;;
16329 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
16330 $as_echo "$ac_try_echo") >&5
16331 (eval "$ac_link") 2>conftest.er1
16333 grep -v '^ *+' conftest.er1
>conftest.err
16335 cat conftest.err
>&5
16336 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16337 (exit $ac_status); } && {
16338 test -z "$ac_c_werror_flag" ||
16339 test ! -s conftest.err
16340 } && test -s conftest
$ac_exeext && {
16341 test "$cross_compiling" = yes ||
16342 $as_test_x conftest
$ac_exeext
16344 ac_cv_working_alloca_h
=yes
16346 $as_echo "$as_me: failed program was:" >&5
16347 sed 's/^/| /' conftest.
$ac_ext >&5
16349 ac_cv_working_alloca_h
=no
16352 rm -rf conftest.dSYM
16353 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
16354 conftest
$ac_exeext conftest.
$ac_ext
16356 { $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
16357 $as_echo "$ac_cv_working_alloca_h" >&6; }
16358 if test $ac_cv_working_alloca_h = yes; then
16360 cat >>confdefs.h
<<\_ACEOF
16361 #define HAVE_ALLOCA_H 1
16366 { $as_echo "$as_me:$LINENO: checking for alloca" >&5
16367 $as_echo_n "checking for alloca... " >&6; }
16368 if test "${ac_cv_func_alloca_works+set}" = set; then
16369 $as_echo_n "(cached) " >&6
16371 cat >conftest.
$ac_ext <<_ACEOF
16374 cat confdefs.h
>>conftest.
$ac_ext
16375 cat >>conftest.
$ac_ext <<_ACEOF
16376 /* end confdefs.h. */
16378 # define alloca __builtin_alloca
16381 # include <malloc.h>
16382 # define alloca _alloca
16384 # ifdef HAVE_ALLOCA_H
16385 # include <alloca.h>
16390 # ifndef alloca /* predefined by HP cc +Olibcalls */
16401 char *p = (char *) alloca (1);
16407 rm -f conftest.
$ac_objext conftest
$ac_exeext
16408 if { (ac_try
="$ac_link"
16409 case "(($ac_try" in
16410 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16411 *) ac_try_echo=$ac_try;;
16413 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16414 $as_echo "$ac_try_echo") >&5
16415 (eval "$ac_link") 2>conftest.er1
16417 grep -v '^ *+' conftest.er1 >conftest.err
16419 cat conftest.err >&5
16420 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16421 (exit $ac_status); } && {
16422 test -z "$ac_c_werror_flag" ||
16423 test ! -s conftest.err
16424 } && test -s conftest$ac_exeext && {
16425 test "$cross_compiling" = yes ||
16426 $as_test_x conftest$ac_exeext
16428 ac_cv_func_alloca_works=yes
16430 $as_echo "$as_me: failed program was:" >&5
16431 sed 's/^/| /' conftest.$ac_ext >&5
16433 ac_cv_func_alloca_works=no
16436 rm -rf conftest.dSYM
16437 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16438 conftest$ac_exeext conftest.$ac_ext
16440 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
16441 $as_echo "$ac_cv_func_alloca_works" >&6; }
16443 if test $ac_cv_func_alloca_works = yes; then
16445 cat >>confdefs.h <<\_ACEOF
16446 #define HAVE_ALLOCA 1
16450 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
16451 # that cause trouble. Some versions do not even contain alloca or
16452 # contain a buggy version. If you still want to use their alloca,
16453 # use ar to extract alloca.o from them instead of compiling alloca.c.
16455 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
16457 cat >>confdefs.h <<\_ACEOF
16462 { $as_echo "$as_me:$LINENO: checking whether \`alloca.c
' needs Cray hooks" >&5
16463 $as_echo_n "checking whether \`alloca.c' needs Cray hooks...
" >&6; }
16464 if test "${ac_cv_os_cray+set}" = set; then
16465 $as_echo_n "(cached
) " >&6
16467 cat >conftest.$ac_ext <<_ACEOF
16470 cat confdefs.h >>conftest.$ac_ext
16471 cat >>conftest.$ac_ext <<_ACEOF
16472 /* end confdefs.h. */
16473 #if defined CRAY && ! defined CRAY2
16480 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
16481 $EGREP "webecray
" >/dev/null 2>&1; then
16489 { $as_echo "$as_me:$LINENO: result
: $ac_cv_os_cray" >&5
16490 $as_echo "$ac_cv_os_cray" >&6; }
16491 if test $ac_cv_os_cray = yes; then
16492 for ac_func in _getb67 GETB67 getb67; do
16493 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
16494 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
16495 $as_echo_n "checking
for $ac_func...
" >&6; }
16496 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
16497 $as_echo_n "(cached
) " >&6
16499 cat >conftest.$ac_ext <<_ACEOF
16502 cat confdefs.h >>conftest.$ac_ext
16503 cat >>conftest.$ac_ext <<_ACEOF
16504 /* end confdefs.h. */
16505 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16506 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16507 #define $ac_func innocuous_$ac_func
16509 /* System header to define __stub macros and hopefully few prototypes,
16510 which can conflict with char $ac_func (); below.
16511 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16512 <limits.h> exists even on freestanding compilers. */
16515 # include <limits.h>
16517 # include <assert.h>
16522 /* Override any GCC internal prototype to avoid an error.
16523 Use char because int might match the return type of a GCC
16524 builtin and then its argument prototype would still apply. */
16529 /* The GNU C library defines this for functions which it implements
16530 to always fail with ENOSYS. Some functions are actually named
16531 something starting with __ and the normal name is an alias. */
16532 #if defined __stub_$ac_func || defined __stub___$ac_func
16539 return $ac_func ();
16544 rm -f conftest.$ac_objext conftest$ac_exeext
16545 if { (ac_try="$ac_link"
16546 case "(($ac_try" in
16547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16548 *) ac_try_echo=$ac_try;;
16550 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
16551 $as_echo "$ac_try_echo") >&5
16552 (eval "$ac_link") 2>conftest.er1
16554 grep -v '^ *+' conftest.er1 >conftest.err
16556 cat conftest.err >&5
16557 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16558 (exit $ac_status); } && {
16559 test -z "$ac_c_werror_flag" ||
16560 test ! -s conftest.err
16561 } && test -s conftest$ac_exeext && {
16562 test "$cross_compiling" = yes ||
16563 $as_test_x conftest$ac_exeext
16565 eval "$as_ac_var=yes"
16567 $as_echo "$as_me: failed program was
:" >&5
16568 sed 's/^/| /' conftest.$ac_ext >&5
16570 eval "$as_ac_var=no
"
16573 rm -rf conftest.dSYM
16574 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16575 conftest$ac_exeext conftest.$ac_ext
16577 ac_res=`eval 'as_val=${'$as_ac_var'}
16578 $as_echo "$as_val"'`
16579 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
16580 $as_echo "$ac_res" >&6; }
16581 if test `eval 'as_val=${'$as_ac_var'}
16582 $as_echo "$as_val"'` = yes; then
16584 cat >>confdefs.h <<_ACEOF
16585 #define CRAY_STACKSEG_END $ac_func
16594 { $as_echo "$as_me:$LINENO: checking stack direction
for C alloca
" >&5
16595 $as_echo_n "checking stack direction
for C alloca...
" >&6; }
16596 if test "${ac_cv_c_stack_direction+set}" = set; then
16597 $as_echo_n "(cached
) " >&6
16599 if test "$cross_compiling" = yes; then
16600 ac_cv_c_stack_direction=0
16602 cat >conftest.$ac_ext <<_ACEOF
16605 cat confdefs.h >>conftest.$ac_ext
16606 cat >>conftest.$ac_ext <<_ACEOF
16607 /* end confdefs.h. */
16608 $ac_includes_default
16610 find_stack_direction ()
16612 static char *addr = 0;
16617 return find_stack_direction ();
16620 return (&dummy > addr) ? 1 : -1;
16626 return find_stack_direction () < 0;
16629 rm -f conftest$ac_exeext
16630 if { (ac_try="$ac_link"
16631 case "(($ac_try" in
16632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16633 *) ac_try_echo=$ac_try;;
16635 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
16636 $as_echo "$ac_try_echo") >&5
16637 (eval "$ac_link") 2>&5
16639 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16640 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16641 { (case "(($ac_try" in
16642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16643 *) ac_try_echo=$ac_try;;
16645 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
16646 $as_echo "$ac_try_echo") >&5
16647 (eval "$ac_try") 2>&5
16649 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16650 (exit $ac_status); }; }; then
16651 ac_cv_c_stack_direction=1
16653 $as_echo "$as_me: program exited with status
$ac_status" >&5
16654 $as_echo "$as_me: failed program was
:" >&5
16655 sed 's/^/| /' conftest.$ac_ext >&5
16657 ( exit $ac_status )
16658 ac_cv_c_stack_direction=-1
16660 rm -rf conftest.dSYM
16661 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16666 { $as_echo "$as_me:$LINENO: result
: $ac_cv_c_stack_direction" >&5
16667 $as_echo "$ac_cv_c_stack_direction" >&6; }
16669 cat >>confdefs.h <<_ACEOF
16670 #define STACK_DIRECTION $ac_cv_c_stack_direction
16677 if test x"$ac_cv_func_alloca_works" != xyes; then
16678 { { $as_echo "$as_me:$LINENO: error
: a system implementation of alloca is required
" >&5
16679 $as_echo "$as_me: error
: a system implementation of alloca is required
" >&2;}
16680 { (exit 1); exit 1; }; }
16683 # fmod, logb, and frexp are found in -lm on most systems.
16684 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
16686 { $as_echo "$as_me:$LINENO: checking
for sqrt
in -lm" >&5
16687 $as_echo_n "checking
for sqrt
in -lm...
" >&6; }
16688 if test "${ac_cv_lib_m_sqrt+set}" = set; then
16689 $as_echo_n "(cached
) " >&6
16691 ac_check_lib_save_LIBS=$LIBS
16693 cat >conftest.$ac_ext <<_ACEOF
16696 cat confdefs.h >>conftest.$ac_ext
16697 cat >>conftest.$ac_ext <<_ACEOF
16698 /* end confdefs.h. */
16700 /* Override any GCC internal prototype to avoid an error.
16701 Use char because int might match the return type of a GCC
16702 builtin and then its argument prototype would still apply. */
16715 rm -f conftest.$ac_objext conftest$ac_exeext
16716 if { (ac_try="$ac_link"
16717 case "(($ac_try" in
16718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16719 *) ac_try_echo=$ac_try;;
16721 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
16722 $as_echo "$ac_try_echo") >&5
16723 (eval "$ac_link") 2>conftest.er1
16725 grep -v '^ *+' conftest.er1 >conftest.err
16727 cat conftest.err >&5
16728 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16729 (exit $ac_status); } && {
16730 test -z "$ac_c_werror_flag" ||
16731 test ! -s conftest.err
16732 } && test -s conftest$ac_exeext && {
16733 test "$cross_compiling" = yes ||
16734 $as_test_x conftest$ac_exeext
16736 ac_cv_lib_m_sqrt=yes
16738 $as_echo "$as_me: failed program was
:" >&5
16739 sed 's/^/| /' conftest.$ac_ext >&5
16741 ac_cv_lib_m_sqrt=no
16744 rm -rf conftest.dSYM
16745 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16746 conftest$ac_exeext conftest.$ac_ext
16747 LIBS=$ac_check_lib_save_LIBS
16749 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_m_sqrt" >&5
16750 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
16751 if test $ac_cv_lib_m_sqrt = yes; then
16752 cat >>confdefs.h <<_ACEOF
16753 #define HAVE_LIBM 1
16761 # Check for mail-locking functions in a "mail" library. Probably this should
16762 # have the same check as for liblockfile below.
16763 { $as_echo "$as_me:$LINENO: checking
for maillock
in -lmail" >&5
16764 $as_echo_n "checking
for maillock
in -lmail...
" >&6; }
16765 if test "${ac_cv_lib_mail_maillock+set}" = set; then
16766 $as_echo_n "(cached
) " >&6
16768 ac_check_lib_save_LIBS=$LIBS
16769 LIBS="-lmail $LIBS"
16770 cat >conftest.$ac_ext <<_ACEOF
16773 cat confdefs.h >>conftest.$ac_ext
16774 cat >>conftest.$ac_ext <<_ACEOF
16775 /* end confdefs.h. */
16777 /* Override any GCC internal prototype to avoid an error.
16778 Use char because int might match the return type of a GCC
16779 builtin and then its argument prototype would still apply. */
16787 return maillock ();
16792 rm -f conftest.$ac_objext conftest$ac_exeext
16793 if { (ac_try="$ac_link"
16794 case "(($ac_try" in
16795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16796 *) ac_try_echo=$ac_try;;
16798 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
16799 $as_echo "$ac_try_echo") >&5
16800 (eval "$ac_link") 2>conftest.er1
16802 grep -v '^ *+' conftest.er1 >conftest.err
16804 cat conftest.err >&5
16805 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16806 (exit $ac_status); } && {
16807 test -z "$ac_c_werror_flag" ||
16808 test ! -s conftest.err
16809 } && test -s conftest$ac_exeext && {
16810 test "$cross_compiling" = yes ||
16811 $as_test_x conftest$ac_exeext
16813 ac_cv_lib_mail_maillock=yes
16815 $as_echo "$as_me: failed program was
:" >&5
16816 sed 's/^/| /' conftest.$ac_ext >&5
16818 ac_cv_lib_mail_maillock=no
16821 rm -rf conftest.dSYM
16822 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16823 conftest$ac_exeext conftest.$ac_ext
16824 LIBS=$ac_check_lib_save_LIBS
16826 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_mail_maillock" >&5
16827 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
16828 if test $ac_cv_lib_mail_maillock = yes; then
16834 if test $have_mail = yes; then
16836 LIBS="$LIBS_MAIL $LIBS"
16838 cat >>confdefs.h <<\_ACEOF
16839 #define HAVE_LIBMAIL 1
16845 { $as_echo "$as_me:$LINENO: checking
for maillock
in -llockfile" >&5
16846 $as_echo_n "checking
for maillock
in -llockfile...
" >&6; }
16847 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
16848 $as_echo_n "(cached
) " >&6
16850 ac_check_lib_save_LIBS=$LIBS
16851 LIBS="-llockfile $LIBS"
16852 cat >conftest.$ac_ext <<_ACEOF
16855 cat confdefs.h >>conftest.$ac_ext
16856 cat >>conftest.$ac_ext <<_ACEOF
16857 /* end confdefs.h. */
16859 /* Override any GCC internal prototype to avoid an error.
16860 Use char because int might match the return type of a GCC
16861 builtin and then its argument prototype would still apply. */
16869 return maillock ();
16874 rm -f conftest.$ac_objext conftest$ac_exeext
16875 if { (ac_try="$ac_link"
16876 case "(($ac_try" in
16877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16878 *) ac_try_echo=$ac_try;;
16880 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
16881 $as_echo "$ac_try_echo") >&5
16882 (eval "$ac_link") 2>conftest.er1
16884 grep -v '^ *+' conftest.er1 >conftest.err
16886 cat conftest.err >&5
16887 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16888 (exit $ac_status); } && {
16889 test -z "$ac_c_werror_flag" ||
16890 test ! -s conftest.err
16891 } && test -s conftest$ac_exeext && {
16892 test "$cross_compiling" = yes ||
16893 $as_test_x conftest$ac_exeext
16895 ac_cv_lib_lockfile_maillock=yes
16897 $as_echo "$as_me: failed program was
:" >&5
16898 sed 's/^/| /' conftest.$ac_ext >&5
16900 ac_cv_lib_lockfile_maillock=no
16903 rm -rf conftest.dSYM
16904 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16905 conftest$ac_exeext conftest.$ac_ext
16906 LIBS=$ac_check_lib_save_LIBS
16908 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_lockfile_maillock" >&5
16909 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
16910 if test $ac_cv_lib_lockfile_maillock = yes; then
16916 if test $have_lockfile = yes; then
16917 LIBS_MAIL=-llockfile
16918 LIBS="$LIBS_MAIL $LIBS"
16920 cat >>confdefs.h <<\_ACEOF
16921 #define HAVE_LIBLOCKFILE 1
16925 # If we have the shared liblockfile, assume we must use it for mail
16926 # locking (e.g. Debian). If we couldn't link against liblockfile
16927 # (no liblockfile.a installed), ensure that we don't need to.
16928 # Extract the first word of "liblockfile.so
", so it can be a program name with args.
16929 set dummy liblockfile.so; ac_word=$2
16930 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
16931 $as_echo_n "checking
for $ac_word...
" >&6; }
16932 if test "${ac_cv_prog_liblockfile+set}" = set; then
16933 $as_echo_n "(cached
) " >&6
16935 if test -n "$liblockfile"; then
16936 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
16938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16939 as_dummy="/usr
/lib
:/lib
:/usr
/local
/lib
:$LD_LIBRARY_PATH"
16940 for as_dir in $as_dummy
16943 test -z "$as_dir" && as_dir=.
16944 for ac_exec_ext in '' $ac_executable_extensions; do
16945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16946 ac_cv_prog_liblockfile="yes"
16947 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
16954 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no
"
16957 liblockfile=$ac_cv_prog_liblockfile
16958 if test -n "$liblockfile"; then
16959 { $as_echo "$as_me:$LINENO: result
: $liblockfile" >&5
16960 $as_echo "$liblockfile" >&6; }
16962 { $as_echo "$as_me:$LINENO: result
: no
" >&5
16963 $as_echo "no
" >&6; }
16967 if test $ac_cv_prog_liblockfile = yes; then
16968 { { $as_echo "$as_me:$LINENO: error
: Shared liblockfile found but can
't link against it.
16969 This probably means that movemail could lose mail.
16970 There may be a \`development' package to
install containing liblockfile.
" >&5
16971 $as_echo "$as_me: error
: Shared liblockfile found but can
't link against it.
16972 This probably means that movemail could lose mail.
16973 There may be a \`development' package to
install containing liblockfile.
" >&2;}
16974 { (exit 1); exit 1; }; }
16978 for ac_func in touchlock
16980 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
16981 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
16982 $as_echo_n "checking
for $ac_func...
" >&6; }
16983 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
16984 $as_echo_n "(cached
) " >&6
16986 cat >conftest.$ac_ext <<_ACEOF
16989 cat confdefs.h >>conftest.$ac_ext
16990 cat >>conftest.$ac_ext <<_ACEOF
16991 /* end confdefs.h. */
16992 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16993 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16994 #define $ac_func innocuous_$ac_func
16996 /* System header to define __stub macros and hopefully few prototypes,
16997 which can conflict with char $ac_func (); below.
16998 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16999 <limits.h> exists even on freestanding compilers. */
17002 # include <limits.h>
17004 # include <assert.h>
17009 /* Override any GCC internal prototype to avoid an error.
17010 Use char because int might match the return type of a GCC
17011 builtin and then its argument prototype would still apply. */
17016 /* The GNU C library defines this for functions which it implements
17017 to always fail with ENOSYS. Some functions are actually named
17018 something starting with __ and the normal name is an alias. */
17019 #if defined __stub_$ac_func || defined __stub___$ac_func
17026 return $ac_func ();
17031 rm -f conftest.$ac_objext conftest$ac_exeext
17032 if { (ac_try="$ac_link"
17033 case "(($ac_try" in
17034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17035 *) ac_try_echo=$ac_try;;
17037 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
17038 $as_echo "$ac_try_echo") >&5
17039 (eval "$ac_link") 2>conftest.er1
17041 grep -v '^ *+' conftest.er1 >conftest.err
17043 cat conftest.err >&5
17044 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17045 (exit $ac_status); } && {
17046 test -z "$ac_c_werror_flag" ||
17047 test ! -s conftest.err
17048 } && test -s conftest$ac_exeext && {
17049 test "$cross_compiling" = yes ||
17050 $as_test_x conftest$ac_exeext
17052 eval "$as_ac_var=yes"
17054 $as_echo "$as_me: failed program was
:" >&5
17055 sed 's/^/| /' conftest.$ac_ext >&5
17057 eval "$as_ac_var=no
"
17060 rm -rf conftest.dSYM
17061 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17062 conftest$ac_exeext conftest.$ac_ext
17064 ac_res=`eval 'as_val=${'$as_ac_var'}
17065 $as_echo "$as_val"'`
17066 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
17067 $as_echo "$ac_res" >&6; }
17068 if test `eval 'as_val=${'$as_ac_var'}
17069 $as_echo "$as_val"'` = yes; then
17070 cat >>confdefs.h <<_ACEOF
17071 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
17078 for ac_header in maillock.h
17080 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
17081 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17082 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
17083 $as_echo_n "checking
for $ac_header...
" >&6; }
17084 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17085 $as_echo_n "(cached
) " >&6
17087 ac_res=`eval 'as_val=${'$as_ac_Header'}
17088 $as_echo "$as_val"'`
17089 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
17090 $as_echo "$ac_res" >&6; }
17092 # Is the header compilable?
17093 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
17094 $as_echo_n "checking
$ac_header usability...
" >&6; }
17095 cat >conftest.$ac_ext <<_ACEOF
17098 cat confdefs.h >>conftest.$ac_ext
17099 cat >>conftest.$ac_ext <<_ACEOF
17100 /* end confdefs.h. */
17101 $ac_includes_default
17102 #include <$ac_header>
17104 rm -f conftest.$ac_objext
17105 if { (ac_try="$ac_compile"
17106 case "(($ac_try" in
17107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17108 *) ac_try_echo=$ac_try;;
17110 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
17111 $as_echo "$ac_try_echo") >&5
17112 (eval "$ac_compile") 2>conftest.er1
17114 grep -v '^ *+' conftest.er1 >conftest.err
17116 cat conftest.err >&5
17117 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17118 (exit $ac_status); } && {
17119 test -z "$ac_c_werror_flag" ||
17120 test ! -s conftest.err
17121 } && test -s conftest.$ac_objext; then
17122 ac_header_compiler=yes
17124 $as_echo "$as_me: failed program was
:" >&5
17125 sed 's/^/| /' conftest.$ac_ext >&5
17127 ac_header_compiler=no
17130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17131 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17132 $as_echo "$ac_header_compiler" >&6; }
17134 # Is the header present?
17135 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
17136 $as_echo_n "checking
$ac_header presence...
" >&6; }
17137 cat >conftest.$ac_ext <<_ACEOF
17140 cat confdefs.h >>conftest.$ac_ext
17141 cat >>conftest.$ac_ext <<_ACEOF
17142 /* end confdefs.h. */
17143 #include <$ac_header>
17145 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17146 case "(($ac_try" in
17147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17148 *) ac_try_echo=$ac_try;;
17150 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
17151 $as_echo "$ac_try_echo") >&5
17152 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17154 grep -v '^ *+' conftest.er1 >conftest.err
17156 cat conftest.err >&5
17157 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17158 (exit $ac_status); } >/dev/null && {
17159 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17160 test ! -s conftest.err
17162 ac_header_preproc=yes
17164 $as_echo "$as_me: failed program was
:" >&5
17165 sed 's/^/| /' conftest.$ac_ext >&5
17167 ac_header_preproc=no
17170 rm -f conftest.err conftest.$ac_ext
17171 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17172 $as_echo "$ac_header_preproc" >&6; }
17174 # So? What about this header?
17175 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17177 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
17178 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17179 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
17180 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
17181 ac_header_preproc=yes
17184 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
17185 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
17186 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
17187 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
17188 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
17189 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
17190 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
17191 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
17192 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
17193 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
17194 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
17195 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
17199 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
17200 $as_echo_n "checking
for $ac_header...
" >&6; }
17201 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17202 $as_echo_n "(cached
) " >&6
17204 eval "$as_ac_Header=\
$ac_header_preproc"
17206 ac_res=`eval 'as_val=${'$as_ac_Header'}
17207 $as_echo "$as_val"'`
17208 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
17209 $as_echo "$ac_res" >&6; }
17212 if test `eval 'as_val=${'$as_ac_Header'}
17213 $as_echo "$as_val"'` = yes; then
17214 cat >>confdefs.h <<_ACEOF
17215 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
17295 for ac_func in gethostname getdomainname dup2 \
17296 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
17297 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime setsid \
17298 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
17299 utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \
17300 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
17301 sendto recvfrom getsockopt setsockopt getsockname getpeername \
17302 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
17303 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign \
17304 cfmakeraw cfsetspeed
17306 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
17307 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
17308 $as_echo_n "checking
for $ac_func...
" >&6; }
17309 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
17310 $as_echo_n "(cached
) " >&6
17312 cat >conftest.$ac_ext <<_ACEOF
17315 cat confdefs.h >>conftest.$ac_ext
17316 cat >>conftest.$ac_ext <<_ACEOF
17317 /* end confdefs.h. */
17318 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17319 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17320 #define $ac_func innocuous_$ac_func
17322 /* System header to define __stub macros and hopefully few prototypes,
17323 which can conflict with char $ac_func (); below.
17324 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17325 <limits.h> exists even on freestanding compilers. */
17328 # include <limits.h>
17330 # include <assert.h>
17335 /* Override any GCC internal prototype to avoid an error.
17336 Use char because int might match the return type of a GCC
17337 builtin and then its argument prototype would still apply. */
17342 /* The GNU C library defines this for functions which it implements
17343 to always fail with ENOSYS. Some functions are actually named
17344 something starting with __ and the normal name is an alias. */
17345 #if defined __stub_$ac_func || defined __stub___$ac_func
17352 return $ac_func ();
17357 rm -f conftest.$ac_objext conftest$ac_exeext
17358 if { (ac_try="$ac_link"
17359 case "(($ac_try" in
17360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17361 *) ac_try_echo=$ac_try;;
17363 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
17364 $as_echo "$ac_try_echo") >&5
17365 (eval "$ac_link") 2>conftest.er1
17367 grep -v '^ *+' conftest.er1 >conftest.err
17369 cat conftest.err >&5
17370 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17371 (exit $ac_status); } && {
17372 test -z "$ac_c_werror_flag" ||
17373 test ! -s conftest.err
17374 } && test -s conftest$ac_exeext && {
17375 test "$cross_compiling" = yes ||
17376 $as_test_x conftest$ac_exeext
17378 eval "$as_ac_var=yes"
17380 $as_echo "$as_me: failed program was
:" >&5
17381 sed 's/^/| /' conftest.$ac_ext >&5
17383 eval "$as_ac_var=no
"
17386 rm -rf conftest.dSYM
17387 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17388 conftest$ac_exeext conftest.$ac_ext
17390 ac_res=`eval 'as_val=${'$as_ac_var'}
17391 $as_echo "$as_val"'`
17392 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
17393 $as_echo "$ac_res" >&6; }
17394 if test `eval 'as_val=${'$as_ac_var'}
17395 $as_echo "$as_val"'` = yes; then
17396 cat >>confdefs.h <<_ACEOF
17397 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
17405 for ac_header in sys/un.h
17407 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
17408 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17409 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
17410 $as_echo_n "checking
for $ac_header...
" >&6; }
17411 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17412 $as_echo_n "(cached
) " >&6
17414 ac_res=`eval 'as_val=${'$as_ac_Header'}
17415 $as_echo "$as_val"'`
17416 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
17417 $as_echo "$ac_res" >&6; }
17419 # Is the header compilable?
17420 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
17421 $as_echo_n "checking
$ac_header usability...
" >&6; }
17422 cat >conftest.$ac_ext <<_ACEOF
17425 cat confdefs.h >>conftest.$ac_ext
17426 cat >>conftest.$ac_ext <<_ACEOF
17427 /* end confdefs.h. */
17428 $ac_includes_default
17429 #include <$ac_header>
17431 rm -f conftest.$ac_objext
17432 if { (ac_try="$ac_compile"
17433 case "(($ac_try" in
17434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17435 *) ac_try_echo=$ac_try;;
17437 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
17438 $as_echo "$ac_try_echo") >&5
17439 (eval "$ac_compile") 2>conftest.er1
17441 grep -v '^ *+' conftest.er1 >conftest.err
17443 cat conftest.err >&5
17444 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17445 (exit $ac_status); } && {
17446 test -z "$ac_c_werror_flag" ||
17447 test ! -s conftest.err
17448 } && test -s conftest.$ac_objext; then
17449 ac_header_compiler=yes
17451 $as_echo "$as_me: failed program was
:" >&5
17452 sed 's/^/| /' conftest.$ac_ext >&5
17454 ac_header_compiler=no
17457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17458 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17459 $as_echo "$ac_header_compiler" >&6; }
17461 # Is the header present?
17462 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
17463 $as_echo_n "checking
$ac_header presence...
" >&6; }
17464 cat >conftest.$ac_ext <<_ACEOF
17467 cat confdefs.h >>conftest.$ac_ext
17468 cat >>conftest.$ac_ext <<_ACEOF
17469 /* end confdefs.h. */
17470 #include <$ac_header>
17472 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17473 case "(($ac_try" in
17474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17475 *) ac_try_echo=$ac_try;;
17477 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
17478 $as_echo "$ac_try_echo") >&5
17479 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17481 grep -v '^ *+' conftest.er1 >conftest.err
17483 cat conftest.err >&5
17484 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17485 (exit $ac_status); } >/dev/null && {
17486 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17487 test ! -s conftest.err
17489 ac_header_preproc=yes
17491 $as_echo "$as_me: failed program was
:" >&5
17492 sed 's/^/| /' conftest.$ac_ext >&5
17494 ac_header_preproc=no
17497 rm -f conftest.err conftest.$ac_ext
17498 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17499 $as_echo "$ac_header_preproc" >&6; }
17501 # So? What about this header?
17502 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17504 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
17505 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17506 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
17507 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
17508 ac_header_preproc=yes
17511 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
17512 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
17513 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
17514 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
17515 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
17516 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
17517 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
17518 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
17519 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
17520 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
17521 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
17522 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
17526 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
17527 $as_echo_n "checking
for $ac_header...
" >&6; }
17528 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17529 $as_echo_n "(cached
) " >&6
17531 eval "$as_ac_Header=\
$ac_header_preproc"
17533 ac_res=`eval 'as_val=${'$as_ac_Header'}
17534 $as_echo "$as_val"'`
17535 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
17536 $as_echo "$ac_res" >&6; }
17539 if test `eval 'as_val=${'$as_ac_Header'}
17540 $as_echo "$as_val"'` = yes; then
17541 cat >>confdefs.h <<_ACEOF
17542 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
17554 for ac_header in $ac_header_list
17556 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
17557 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17558 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
17559 $as_echo_n "checking
for $ac_header...
" >&6; }
17560 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17561 $as_echo_n "(cached
) " >&6
17563 ac_res=`eval 'as_val=${'$as_ac_Header'}
17564 $as_echo "$as_val"'`
17565 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
17566 $as_echo "$ac_res" >&6; }
17568 # Is the header compilable?
17569 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
17570 $as_echo_n "checking
$ac_header usability...
" >&6; }
17571 cat >conftest.$ac_ext <<_ACEOF
17574 cat confdefs.h >>conftest.$ac_ext
17575 cat >>conftest.$ac_ext <<_ACEOF
17576 /* end confdefs.h. */
17577 $ac_includes_default
17578 #include <$ac_header>
17580 rm -f conftest.$ac_objext
17581 if { (ac_try="$ac_compile"
17582 case "(($ac_try" in
17583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17584 *) ac_try_echo=$ac_try;;
17586 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
17587 $as_echo "$ac_try_echo") >&5
17588 (eval "$ac_compile") 2>conftest.er1
17590 grep -v '^ *+' conftest.er1 >conftest.err
17592 cat conftest.err >&5
17593 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17594 (exit $ac_status); } && {
17595 test -z "$ac_c_werror_flag" ||
17596 test ! -s conftest.err
17597 } && test -s conftest.$ac_objext; then
17598 ac_header_compiler=yes
17600 $as_echo "$as_me: failed program was
:" >&5
17601 sed 's/^/| /' conftest.$ac_ext >&5
17603 ac_header_compiler=no
17606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17607 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17608 $as_echo "$ac_header_compiler" >&6; }
17610 # Is the header present?
17611 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
17612 $as_echo_n "checking
$ac_header presence...
" >&6; }
17613 cat >conftest.$ac_ext <<_ACEOF
17616 cat confdefs.h >>conftest.$ac_ext
17617 cat >>conftest.$ac_ext <<_ACEOF
17618 /* end confdefs.h. */
17619 #include <$ac_header>
17621 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17622 case "(($ac_try" in
17623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17624 *) ac_try_echo=$ac_try;;
17626 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
17627 $as_echo "$ac_try_echo") >&5
17628 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17630 grep -v '^ *+' conftest.er1 >conftest.err
17632 cat conftest.err >&5
17633 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17634 (exit $ac_status); } >/dev/null && {
17635 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17636 test ! -s conftest.err
17638 ac_header_preproc=yes
17640 $as_echo "$as_me: failed program was
:" >&5
17641 sed 's/^/| /' conftest.$ac_ext >&5
17643 ac_header_preproc=no
17646 rm -f conftest.err conftest.$ac_ext
17647 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17648 $as_echo "$ac_header_preproc" >&6; }
17650 # So? What about this header?
17651 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17653 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
17654 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17655 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
17656 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
17657 ac_header_preproc=yes
17660 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
17661 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
17662 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
17663 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
17664 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
17665 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
17666 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
17667 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
17668 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
17669 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
17670 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
17671 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
17675 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
17676 $as_echo_n "checking
for $ac_header...
" >&6; }
17677 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17678 $as_echo_n "(cached
) " >&6
17680 eval "$as_ac_Header=\
$ac_header_preproc"
17682 ac_res=`eval 'as_val=${'$as_ac_Header'}
17683 $as_echo "$as_val"'`
17684 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
17685 $as_echo "$ac_res" >&6; }
17688 if test `eval 'as_val=${'$as_ac_Header'}
17689 $as_echo "$as_val"'` = yes; then
17690 cat >>confdefs.h <<_ACEOF
17691 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
17706 for ac_func in $ac_func_list
17708 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
17709 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
17710 $as_echo_n "checking
for $ac_func...
" >&6; }
17711 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
17712 $as_echo_n "(cached
) " >&6
17714 cat >conftest.$ac_ext <<_ACEOF
17717 cat confdefs.h >>conftest.$ac_ext
17718 cat >>conftest.$ac_ext <<_ACEOF
17719 /* end confdefs.h. */
17720 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17721 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17722 #define $ac_func innocuous_$ac_func
17724 /* System header to define __stub macros and hopefully few prototypes,
17725 which can conflict with char $ac_func (); below.
17726 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17727 <limits.h> exists even on freestanding compilers. */
17730 # include <limits.h>
17732 # include <assert.h>
17737 /* Override any GCC internal prototype to avoid an error.
17738 Use char because int might match the return type of a GCC
17739 builtin and then its argument prototype would still apply. */
17744 /* The GNU C library defines this for functions which it implements
17745 to always fail with ENOSYS. Some functions are actually named
17746 something starting with __ and the normal name is an alias. */
17747 #if defined __stub_$ac_func || defined __stub___$ac_func
17754 return $ac_func ();
17759 rm -f conftest.$ac_objext conftest$ac_exeext
17760 if { (ac_try="$ac_link"
17761 case "(($ac_try" in
17762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17763 *) ac_try_echo=$ac_try;;
17765 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
17766 $as_echo "$ac_try_echo") >&5
17767 (eval "$ac_link") 2>conftest.er1
17769 grep -v '^ *+' conftest.er1 >conftest.err
17771 cat conftest.err >&5
17772 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17773 (exit $ac_status); } && {
17774 test -z "$ac_c_werror_flag" ||
17775 test ! -s conftest.err
17776 } && test -s conftest$ac_exeext && {
17777 test "$cross_compiling" = yes ||
17778 $as_test_x conftest$ac_exeext
17780 eval "$as_ac_var=yes"
17782 $as_echo "$as_me: failed program was
:" >&5
17783 sed 's/^/| /' conftest.$ac_ext >&5
17785 eval "$as_ac_var=no
"
17788 rm -rf conftest.dSYM
17789 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17790 conftest$ac_exeext conftest.$ac_ext
17792 ac_res=`eval 'as_val=${'$as_ac_var'}
17793 $as_echo "$as_val"'`
17794 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
17795 $as_echo "$ac_res" >&6; }
17796 if test `eval 'as_val=${'$as_ac_var'}
17797 $as_echo "$as_val"'` = yes; then
17798 cat >>confdefs.h <<_ACEOF
17799 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
17821 { $as_echo "$as_me:$LINENO: checking
for working mktime
" >&5
17822 $as_echo_n "checking
for working mktime...
" >&6; }
17823 if test "${ac_cv_func_working_mktime+set}" = set; then
17824 $as_echo_n "(cached
) " >&6
17826 if test "$cross_compiling" = yes; then
17827 ac_cv_func_working_mktime=no
17829 cat >conftest.$ac_ext <<_ACEOF
17832 cat confdefs.h >>conftest.$ac_ext
17833 cat >>conftest.$ac_ext <<_ACEOF
17834 /* end confdefs.h. */
17835 /* Test program from Paul Eggert and Tony Leneis. */
17836 #ifdef TIME_WITH_SYS_TIME
17837 # include <sys/time.h>
17840 # ifdef HAVE_SYS_TIME_H
17841 # include <sys/time.h>
17847 #include <limits.h>
17848 #include <stdlib.h>
17850 #ifdef HAVE_UNISTD_H
17851 # include <unistd.h>
17855 # define alarm(X) /* empty */
17858 /* Work around redefinition to rpl_putenv by other config tests. */
17861 static time_t time_t_max;
17862 static time_t time_t_min;
17864 /* Values we'll use to set the TZ environment variable. */
17865 static char *tz_strings[] = {
17866 (char *) 0, "TZ
=GMT0
", "TZ
=JST-9
",
17867 "TZ
=EST
+3EDT
+2,M10.1
.0/00:00:00,M2.3
.0/00:00:00"
17869 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
17871 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
17872 Based on a problem report from Andreas Jaeger. */
17874 spring_forward_gap ()
17876 /* glibc (up to about 1998-10-07) failed this test. */
17879 /* Use the portable POSIX.1 specification "TZ
=PST8PDT
,M4.1
.0,M10.5
.0"
17880 instead of "TZ
=America
/Vancouver
" in order to detect the bug even
17881 on systems that don't support the Olson extension, or don't have the
17882 full zoneinfo tables installed. */
17883 putenv ("TZ
=PST8PDT
,M4.1
.0,M10.5
.0");
17892 return mktime (&tm) != (time_t) -1;
17900 return ! (lt = localtime (&now)) || mktime (lt) == now;
17907 return (mktime_test1 (now)
17908 && mktime_test1 ((time_t) (time_t_max - now))
17909 && mktime_test1 ((time_t) (time_t_min + now)));
17915 /* Based on code from Ariel Faigon. */
17925 return tm.tm_mon == 2 && tm.tm_mday == 31;
17934 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
17935 now = mktime (&tm);
17936 if (now != (time_t) -1)
17938 struct tm *lt = localtime (&now);
17940 && lt->tm_year == tm.tm_year
17941 && lt->tm_mon == tm.tm_mon
17942 && lt->tm_mday == tm.tm_mday
17943 && lt->tm_hour == tm.tm_hour
17944 && lt->tm_min == tm.tm_min
17945 && lt->tm_sec == tm.tm_sec
17946 && lt->tm_yday == tm.tm_yday
17947 && lt->tm_wday == tm.tm_wday
17948 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
17949 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
17958 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
17959 ignoring leap seconds. */
17960 unsigned long int answer = 2527315200UL;
17964 tm.tm_year = 2050 - 1900;
17967 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
17970 /* Use the portable POSIX.1 specification "TZ
=PST8PDT
,M4.1
.0,M10.5
.0"
17971 instead of "TZ
=America
/Vancouver
" in order to detect the bug even
17972 on systems that don't support the Olson extension, or don't have the
17973 full zoneinfo tables installed. */
17974 putenv ("TZ
=PST8PDT
,M4.1
.0,M10.5
.0");
17978 /* Check that the result is either a failure, or close enough
17979 to the correct answer that we can assume the discrepancy is
17980 due to leap seconds. */
17981 return (t == (time_t) -1
17982 || (0 < t && answer - 120 <= t && t <= answer + 120));
17991 /* This test makes some buggy mktime implementations loop.
17992 Give up after 60 seconds; a mktime slower than that
17993 isn't worth using anyway. */
17998 t = (time_t_max << 1) + 1;
17999 if (t <= time_t_max)
18003 time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
18005 delta = time_t_max / 997; /* a suitable prime number */
18006 for (i = 0; i < N_STRINGS; i++)
18009 putenv (tz_strings[i]);
18011 for (t = 0; t <= time_t_max - delta; t += delta)
18012 if (! mktime_test (t))
18014 if (! (mktime_test ((time_t) 1)
18015 && mktime_test ((time_t) (60 * 60))
18016 && mktime_test ((time_t) (60 * 60 * 24))))
18019 for (j = 1; ; j <<= 1)
18020 if (! bigtime_test (j))
18022 else if (INT_MAX / 2 < j)
18024 if (! bigtime_test (INT_MAX))
18027 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
18030 rm -f conftest$ac_exeext
18031 if { (ac_try="$ac_link"
18032 case "(($ac_try" in
18033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18034 *) ac_try_echo=$ac_try;;
18036 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18037 $as_echo "$ac_try_echo") >&5
18038 (eval "$ac_link") 2>&5
18040 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18041 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18042 { (case "(($ac_try" in
18043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18044 *) ac_try_echo=$ac_try;;
18046 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18047 $as_echo "$ac_try_echo") >&5
18048 (eval "$ac_try") 2>&5
18050 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18051 (exit $ac_status); }; }; then
18052 ac_cv_func_working_mktime=yes
18054 $as_echo "$as_me: program exited with status
$ac_status" >&5
18055 $as_echo "$as_me: failed program was
:" >&5
18056 sed 's/^/| /' conftest.$ac_ext >&5
18058 ( exit $ac_status )
18059 ac_cv_func_working_mktime=no
18061 rm -rf conftest.dSYM
18062 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18067 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func_working_mktime" >&5
18068 $as_echo "$ac_cv_func_working_mktime" >&6; }
18069 if test $ac_cv_func_working_mktime = no; then
18070 case " $LIBOBJS " in
18071 *" mktime.
$ac_objext "* ) ;;
18072 *) LIBOBJS="$LIBOBJS mktime.
$ac_objext"
18078 if test "$ac_cv_func_working_mktime" = no; then
18080 cat >>confdefs.h <<\_ACEOF
18081 #define BROKEN_MKTIME 1
18086 ac_have_func=no # yes means we've found a way to get the load average.
18088 # Make sure getloadavg.c is where it belongs, at configure-time.
18089 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c
" ||
18090 { { $as_echo "$as_me:$LINENO: error
: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing
" >&5
18091 $as_echo "$as_me: error
: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing
" >&2;}
18092 { (exit 1); exit 1; }; }
18096 # Check for getloadavg, but be sure not to touch the cache variable.
18097 ({ $as_echo "$as_me:$LINENO: checking
for getloadavg
" >&5
18098 $as_echo_n "checking
for getloadavg...
" >&6; }
18099 if test "${ac_cv_func_getloadavg+set}" = set; then
18100 $as_echo_n "(cached
) " >&6
18102 cat >conftest.$ac_ext <<_ACEOF
18105 cat confdefs.h >>conftest.$ac_ext
18106 cat >>conftest.$ac_ext <<_ACEOF
18107 /* end confdefs.h. */
18108 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
18109 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18110 #define getloadavg innocuous_getloadavg
18112 /* System header to define __stub macros and hopefully few prototypes,
18113 which can conflict with char getloadavg (); below.
18114 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18115 <limits.h> exists even on freestanding compilers. */
18118 # include <limits.h>
18120 # include <assert.h>
18125 /* Override any GCC internal prototype to avoid an error.
18126 Use char because int might match the return type of a GCC
18127 builtin and then its argument prototype would still apply. */
18131 char getloadavg ();
18132 /* The GNU C library defines this for functions which it implements
18133 to always fail with ENOSYS. Some functions are actually named
18134 something starting with __ and the normal name is an alias. */
18135 #if defined __stub_getloadavg || defined __stub___getloadavg
18142 return getloadavg ();
18147 rm -f conftest.$ac_objext conftest$ac_exeext
18148 if { (ac_try="$ac_link"
18149 case "(($ac_try" in
18150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18151 *) ac_try_echo=$ac_try;;
18153 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18154 $as_echo "$ac_try_echo") >&5
18155 (eval "$ac_link") 2>conftest.er1
18157 grep -v '^ *+' conftest.er1 >conftest.err
18159 cat conftest.err >&5
18160 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18161 (exit $ac_status); } && {
18162 test -z "$ac_c_werror_flag" ||
18163 test ! -s conftest.err
18164 } && test -s conftest$ac_exeext && {
18165 test "$cross_compiling" = yes ||
18166 $as_test_x conftest$ac_exeext
18168 ac_cv_func_getloadavg=yes
18170 $as_echo "$as_me: failed program was
:" >&5
18171 sed 's/^/| /' conftest.$ac_ext >&5
18173 ac_cv_func_getloadavg=no
18176 rm -rf conftest.dSYM
18177 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18178 conftest$ac_exeext conftest.$ac_ext
18180 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func_getloadavg" >&5
18181 $as_echo "$ac_cv_func_getloadavg" >&6; }
18182 if test $ac_cv_func_getloadavg = yes; then
18187 ) && ac_have_func=yes
18189 # On HPUX9, an unprivileged user can get load averages through this function.
18191 for ac_func in pstat_getdynamic
18193 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
18194 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
18195 $as_echo_n "checking
for $ac_func...
" >&6; }
18196 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
18197 $as_echo_n "(cached
) " >&6
18199 cat >conftest.$ac_ext <<_ACEOF
18202 cat confdefs.h >>conftest.$ac_ext
18203 cat >>conftest.$ac_ext <<_ACEOF
18204 /* end confdefs.h. */
18205 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18206 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18207 #define $ac_func innocuous_$ac_func
18209 /* System header to define __stub macros and hopefully few prototypes,
18210 which can conflict with char $ac_func (); below.
18211 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18212 <limits.h> exists even on freestanding compilers. */
18215 # include <limits.h>
18217 # include <assert.h>
18222 /* Override any GCC internal prototype to avoid an error.
18223 Use char because int might match the return type of a GCC
18224 builtin and then its argument prototype would still apply. */
18229 /* The GNU C library defines this for functions which it implements
18230 to always fail with ENOSYS. Some functions are actually named
18231 something starting with __ and the normal name is an alias. */
18232 #if defined __stub_$ac_func || defined __stub___$ac_func
18239 return $ac_func ();
18244 rm -f conftest.$ac_objext conftest$ac_exeext
18245 if { (ac_try="$ac_link"
18246 case "(($ac_try" in
18247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18248 *) ac_try_echo=$ac_try;;
18250 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18251 $as_echo "$ac_try_echo") >&5
18252 (eval "$ac_link") 2>conftest.er1
18254 grep -v '^ *+' conftest.er1 >conftest.err
18256 cat conftest.err >&5
18257 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18258 (exit $ac_status); } && {
18259 test -z "$ac_c_werror_flag" ||
18260 test ! -s conftest.err
18261 } && test -s conftest$ac_exeext && {
18262 test "$cross_compiling" = yes ||
18263 $as_test_x conftest$ac_exeext
18265 eval "$as_ac_var=yes"
18267 $as_echo "$as_me: failed program was
:" >&5
18268 sed 's/^/| /' conftest.$ac_ext >&5
18270 eval "$as_ac_var=no
"
18273 rm -rf conftest.dSYM
18274 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18275 conftest$ac_exeext conftest.$ac_ext
18277 ac_res=`eval 'as_val=${'$as_ac_var'}
18278 $as_echo "$as_val"'`
18279 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
18280 $as_echo "$ac_res" >&6; }
18281 if test `eval 'as_val=${'$as_ac_var'}
18282 $as_echo "$as_val"'` = yes; then
18283 cat >>confdefs.h <<_ACEOF
18284 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
18291 # Solaris has libkstat which does not require root.
18293 { $as_echo "$as_me:$LINENO: checking
for kstat_open
in -lkstat" >&5
18294 $as_echo_n "checking
for kstat_open
in -lkstat...
" >&6; }
18295 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
18296 $as_echo_n "(cached
) " >&6
18298 ac_check_lib_save_LIBS=$LIBS
18299 LIBS="-lkstat $LIBS"
18300 cat >conftest.$ac_ext <<_ACEOF
18303 cat confdefs.h >>conftest.$ac_ext
18304 cat >>conftest.$ac_ext <<_ACEOF
18305 /* end confdefs.h. */
18307 /* Override any GCC internal prototype to avoid an error.
18308 Use char because int might match the return type of a GCC
18309 builtin and then its argument prototype would still apply. */
18313 char kstat_open ();
18317 return kstat_open ();
18322 rm -f conftest.$ac_objext conftest$ac_exeext
18323 if { (ac_try="$ac_link"
18324 case "(($ac_try" in
18325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18326 *) ac_try_echo=$ac_try;;
18328 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18329 $as_echo "$ac_try_echo") >&5
18330 (eval "$ac_link") 2>conftest.er1
18332 grep -v '^ *+' conftest.er1 >conftest.err
18334 cat conftest.err >&5
18335 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18336 (exit $ac_status); } && {
18337 test -z "$ac_c_werror_flag" ||
18338 test ! -s conftest.err
18339 } && test -s conftest$ac_exeext && {
18340 test "$cross_compiling" = yes ||
18341 $as_test_x conftest$ac_exeext
18343 ac_cv_lib_kstat_kstat_open=yes
18345 $as_echo "$as_me: failed program was
:" >&5
18346 sed 's/^/| /' conftest.$ac_ext >&5
18348 ac_cv_lib_kstat_kstat_open=no
18351 rm -rf conftest.dSYM
18352 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18353 conftest$ac_exeext conftest.$ac_ext
18354 LIBS=$ac_check_lib_save_LIBS
18356 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_kstat_kstat_open" >&5
18357 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
18358 if test $ac_cv_lib_kstat_kstat_open = yes; then
18359 cat >>confdefs.h <<_ACEOF
18360 #define HAVE_LIBKSTAT 1
18363 LIBS="-lkstat $LIBS"
18367 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
18369 # Some systems with -lutil have (and need) -lkvm as well, some do not.
18370 # On Solaris, -lkvm requires nlist from -lelf, so check that first
18371 # to get the right answer into the cache.
18372 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
18373 if test $ac_have_func = no; then
18374 { $as_echo "$as_me:$LINENO: checking
for elf_begin
in -lelf" >&5
18375 $as_echo_n "checking
for elf_begin
in -lelf...
" >&6; }
18376 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
18377 $as_echo_n "(cached
) " >&6
18379 ac_check_lib_save_LIBS=$LIBS
18381 cat >conftest.$ac_ext <<_ACEOF
18384 cat confdefs.h >>conftest.$ac_ext
18385 cat >>conftest.$ac_ext <<_ACEOF
18386 /* end confdefs.h. */
18388 /* Override any GCC internal prototype to avoid an error.
18389 Use char because int might match the return type of a GCC
18390 builtin and then its argument prototype would still apply. */
18398 return elf_begin ();
18403 rm -f conftest.$ac_objext conftest$ac_exeext
18404 if { (ac_try="$ac_link"
18405 case "(($ac_try" in
18406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18407 *) ac_try_echo=$ac_try;;
18409 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18410 $as_echo "$ac_try_echo") >&5
18411 (eval "$ac_link") 2>conftest.er1
18413 grep -v '^ *+' conftest.er1 >conftest.err
18415 cat conftest.err >&5
18416 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18417 (exit $ac_status); } && {
18418 test -z "$ac_c_werror_flag" ||
18419 test ! -s conftest.err
18420 } && test -s conftest$ac_exeext && {
18421 test "$cross_compiling" = yes ||
18422 $as_test_x conftest$ac_exeext
18424 ac_cv_lib_elf_elf_begin=yes
18426 $as_echo "$as_me: failed program was
:" >&5
18427 sed 's/^/| /' conftest.$ac_ext >&5
18429 ac_cv_lib_elf_elf_begin=no
18432 rm -rf conftest.dSYM
18433 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18434 conftest$ac_exeext conftest.$ac_ext
18435 LIBS=$ac_check_lib_save_LIBS
18437 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_elf_elf_begin" >&5
18438 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
18439 if test $ac_cv_lib_elf_elf_begin = yes; then
18444 if test $ac_have_func = no; then
18445 { $as_echo "$as_me:$LINENO: checking
for kvm_open
in -lkvm" >&5
18446 $as_echo_n "checking
for kvm_open
in -lkvm...
" >&6; }
18447 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
18448 $as_echo_n "(cached
) " >&6
18450 ac_check_lib_save_LIBS=$LIBS
18452 cat >conftest.$ac_ext <<_ACEOF
18455 cat confdefs.h >>conftest.$ac_ext
18456 cat >>conftest.$ac_ext <<_ACEOF
18457 /* end confdefs.h. */
18459 /* Override any GCC internal prototype to avoid an error.
18460 Use char because int might match the return type of a GCC
18461 builtin and then its argument prototype would still apply. */
18469 return kvm_open ();
18474 rm -f conftest.$ac_objext conftest$ac_exeext
18475 if { (ac_try="$ac_link"
18476 case "(($ac_try" in
18477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18478 *) ac_try_echo=$ac_try;;
18480 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18481 $as_echo "$ac_try_echo") >&5
18482 (eval "$ac_link") 2>conftest.er1
18484 grep -v '^ *+' conftest.er1 >conftest.err
18486 cat conftest.err >&5
18487 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18488 (exit $ac_status); } && {
18489 test -z "$ac_c_werror_flag" ||
18490 test ! -s conftest.err
18491 } && test -s conftest$ac_exeext && {
18492 test "$cross_compiling" = yes ||
18493 $as_test_x conftest$ac_exeext
18495 ac_cv_lib_kvm_kvm_open=yes
18497 $as_echo "$as_me: failed program was
:" >&5
18498 sed 's/^/| /' conftest.$ac_ext >&5
18500 ac_cv_lib_kvm_kvm_open=no
18503 rm -rf conftest.dSYM
18504 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18505 conftest$ac_exeext conftest.$ac_ext
18506 LIBS=$ac_check_lib_save_LIBS
18508 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_kvm_kvm_open" >&5
18509 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
18510 if test $ac_cv_lib_kvm_kvm_open = yes; then
18514 # Check for the 4.4BSD definition of getloadavg.
18515 { $as_echo "$as_me:$LINENO: checking
for getloadavg
in -lutil" >&5
18516 $as_echo_n "checking
for getloadavg
in -lutil...
" >&6; }
18517 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
18518 $as_echo_n "(cached
) " >&6
18520 ac_check_lib_save_LIBS=$LIBS
18521 LIBS="-lutil $LIBS"
18522 cat >conftest.$ac_ext <<_ACEOF
18525 cat confdefs.h >>conftest.$ac_ext
18526 cat >>conftest.$ac_ext <<_ACEOF
18527 /* end confdefs.h. */
18529 /* Override any GCC internal prototype to avoid an error.
18530 Use char because int might match the return type of a GCC
18531 builtin and then its argument prototype would still apply. */
18535 char getloadavg ();
18539 return getloadavg ();
18544 rm -f conftest.$ac_objext conftest$ac_exeext
18545 if { (ac_try="$ac_link"
18546 case "(($ac_try" in
18547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18548 *) ac_try_echo=$ac_try;;
18550 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18551 $as_echo "$ac_try_echo") >&5
18552 (eval "$ac_link") 2>conftest.er1
18554 grep -v '^ *+' conftest.er1 >conftest.err
18556 cat conftest.err >&5
18557 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18558 (exit $ac_status); } && {
18559 test -z "$ac_c_werror_flag" ||
18560 test ! -s conftest.err
18561 } && test -s conftest$ac_exeext && {
18562 test "$cross_compiling" = yes ||
18563 $as_test_x conftest$ac_exeext
18565 ac_cv_lib_util_getloadavg=yes
18567 $as_echo "$as_me: failed program was
:" >&5
18568 sed 's/^/| /' conftest.$ac_ext >&5
18570 ac_cv_lib_util_getloadavg=no
18573 rm -rf conftest.dSYM
18574 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18575 conftest$ac_exeext conftest.$ac_ext
18576 LIBS=$ac_check_lib_save_LIBS
18578 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_util_getloadavg" >&5
18579 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
18580 if test $ac_cv_lib_util_getloadavg = yes; then
18581 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
18586 if test $ac_have_func = no; then
18587 # There is a commonly available library for RS/6000 AIX.
18588 # Since it is not a standard part of AIX, it might be installed locally.
18589 ac_getloadavg_LIBS=$LIBS
18590 LIBS="-L/usr
/local
/lib
$LIBS"
18591 { $as_echo "$as_me:$LINENO: checking
for getloadavg
in -lgetloadavg" >&5
18592 $as_echo_n "checking
for getloadavg
in -lgetloadavg...
" >&6; }
18593 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
18594 $as_echo_n "(cached
) " >&6
18596 ac_check_lib_save_LIBS=$LIBS
18597 LIBS="-lgetloadavg $LIBS"
18598 cat >conftest.$ac_ext <<_ACEOF
18601 cat confdefs.h >>conftest.$ac_ext
18602 cat >>conftest.$ac_ext <<_ACEOF
18603 /* end confdefs.h. */
18605 /* Override any GCC internal prototype to avoid an error.
18606 Use char because int might match the return type of a GCC
18607 builtin and then its argument prototype would still apply. */
18611 char getloadavg ();
18615 return getloadavg ();
18620 rm -f conftest.$ac_objext conftest$ac_exeext
18621 if { (ac_try="$ac_link"
18622 case "(($ac_try" in
18623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18624 *) ac_try_echo=$ac_try;;
18626 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18627 $as_echo "$ac_try_echo") >&5
18628 (eval "$ac_link") 2>conftest.er1
18630 grep -v '^ *+' conftest.er1 >conftest.err
18632 cat conftest.err >&5
18633 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18634 (exit $ac_status); } && {
18635 test -z "$ac_c_werror_flag" ||
18636 test ! -s conftest.err
18637 } && test -s conftest$ac_exeext && {
18638 test "$cross_compiling" = yes ||
18639 $as_test_x conftest$ac_exeext
18641 ac_cv_lib_getloadavg_getloadavg=yes
18643 $as_echo "$as_me: failed program was
:" >&5
18644 sed 's/^/| /' conftest.$ac_ext >&5
18646 ac_cv_lib_getloadavg_getloadavg=no
18649 rm -rf conftest.dSYM
18650 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18651 conftest$ac_exeext conftest.$ac_ext
18652 LIBS=$ac_check_lib_save_LIBS
18654 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_getloadavg_getloadavg" >&5
18655 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
18656 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
18657 LIBS="-lgetloadavg $LIBS"
18659 LIBS=$ac_getloadavg_LIBS
18664 # Make sure it is really in the library, if we think we found it,
18665 # otherwise set up the replacement function.
18667 for ac_func in getloadavg
18669 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
18670 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
18671 $as_echo_n "checking
for $ac_func...
" >&6; }
18672 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
18673 $as_echo_n "(cached
) " >&6
18675 cat >conftest.$ac_ext <<_ACEOF
18678 cat confdefs.h >>conftest.$ac_ext
18679 cat >>conftest.$ac_ext <<_ACEOF
18680 /* end confdefs.h. */
18681 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18682 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18683 #define $ac_func innocuous_$ac_func
18685 /* System header to define __stub macros and hopefully few prototypes,
18686 which can conflict with char $ac_func (); below.
18687 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18688 <limits.h> exists even on freestanding compilers. */
18691 # include <limits.h>
18693 # include <assert.h>
18698 /* Override any GCC internal prototype to avoid an error.
18699 Use char because int might match the return type of a GCC
18700 builtin and then its argument prototype would still apply. */
18705 /* The GNU C library defines this for functions which it implements
18706 to always fail with ENOSYS. Some functions are actually named
18707 something starting with __ and the normal name is an alias. */
18708 #if defined __stub_$ac_func || defined __stub___$ac_func
18715 return $ac_func ();
18720 rm -f conftest.$ac_objext conftest$ac_exeext
18721 if { (ac_try="$ac_link"
18722 case "(($ac_try" in
18723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18724 *) ac_try_echo=$ac_try;;
18726 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18727 $as_echo "$ac_try_echo") >&5
18728 (eval "$ac_link") 2>conftest.er1
18730 grep -v '^ *+' conftest.er1 >conftest.err
18732 cat conftest.err >&5
18733 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18734 (exit $ac_status); } && {
18735 test -z "$ac_c_werror_flag" ||
18736 test ! -s conftest.err
18737 } && test -s conftest$ac_exeext && {
18738 test "$cross_compiling" = yes ||
18739 $as_test_x conftest$ac_exeext
18741 eval "$as_ac_var=yes"
18743 $as_echo "$as_me: failed program was
:" >&5
18744 sed 's/^/| /' conftest.$ac_ext >&5
18746 eval "$as_ac_var=no
"
18749 rm -rf conftest.dSYM
18750 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18751 conftest$ac_exeext conftest.$ac_ext
18753 ac_res=`eval 'as_val=${'$as_ac_var'}
18754 $as_echo "$as_val"'`
18755 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
18756 $as_echo "$ac_res" >&6; }
18757 if test `eval 'as_val=${'$as_ac_var'}
18758 $as_echo "$as_val"'` = yes; then
18759 cat >>confdefs.h <<_ACEOF
18760 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
18764 case " $LIBOBJS " in
18765 *" getloadavg.
$ac_objext "* ) ;;
18766 *) LIBOBJS="$LIBOBJS getloadavg.
$ac_objext"
18771 cat >>confdefs.h <<\_ACEOF
18772 #define C_GETLOADAVG 1
18775 # Figure out what our getloadavg.c needs.
18777 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
18778 { $as_echo "$as_me:$LINENO: checking
for sys
/dg_sys_info.h
" >&5
18779 $as_echo_n "checking
for sys
/dg_sys_info.h...
" >&6; }
18780 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
18781 $as_echo_n "(cached
) " >&6
18783 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_sys_dg_sys_info_h" >&5
18784 $as_echo "$ac_cv_header_sys_dg_sys_info_h" >&6; }
18786 # Is the header compilable?
18787 { $as_echo "$as_me:$LINENO: checking sys
/dg_sys_info.h usability
" >&5
18788 $as_echo_n "checking sys
/dg_sys_info.h usability...
" >&6; }
18789 cat >conftest.$ac_ext <<_ACEOF
18792 cat confdefs.h >>conftest.$ac_ext
18793 cat >>conftest.$ac_ext <<_ACEOF
18794 /* end confdefs.h. */
18795 $ac_includes_default
18796 #include <sys/dg_sys_info.h>
18798 rm -f conftest.$ac_objext
18799 if { (ac_try="$ac_compile"
18800 case "(($ac_try" in
18801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18802 *) ac_try_echo=$ac_try;;
18804 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18805 $as_echo "$ac_try_echo") >&5
18806 (eval "$ac_compile") 2>conftest.er1
18808 grep -v '^ *+' conftest.er1 >conftest.err
18810 cat conftest.err >&5
18811 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18812 (exit $ac_status); } && {
18813 test -z "$ac_c_werror_flag" ||
18814 test ! -s conftest.err
18815 } && test -s conftest.$ac_objext; then
18816 ac_header_compiler=yes
18818 $as_echo "$as_me: failed program was
:" >&5
18819 sed 's/^/| /' conftest.$ac_ext >&5
18821 ac_header_compiler=no
18824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18825 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
18826 $as_echo "$ac_header_compiler" >&6; }
18828 # Is the header present?
18829 { $as_echo "$as_me:$LINENO: checking sys
/dg_sys_info.h presence
" >&5
18830 $as_echo_n "checking sys
/dg_sys_info.h presence...
" >&6; }
18831 cat >conftest.$ac_ext <<_ACEOF
18834 cat confdefs.h >>conftest.$ac_ext
18835 cat >>conftest.$ac_ext <<_ACEOF
18836 /* end confdefs.h. */
18837 #include <sys/dg_sys_info.h>
18839 if { (ac_try="$ac_cpp conftest.
$ac_ext"
18840 case "(($ac_try" in
18841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18842 *) ac_try_echo=$ac_try;;
18844 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18845 $as_echo "$ac_try_echo") >&5
18846 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
18848 grep -v '^ *+' conftest.er1 >conftest.err
18850 cat conftest.err >&5
18851 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18852 (exit $ac_status); } >/dev/null && {
18853 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18854 test ! -s conftest.err
18856 ac_header_preproc=yes
18858 $as_echo "$as_me: failed program was
:" >&5
18859 sed 's/^/| /' conftest.$ac_ext >&5
18861 ac_header_preproc=no
18864 rm -f conftest.err conftest.$ac_ext
18865 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
18866 $as_echo "$ac_header_preproc" >&6; }
18868 # So? What about this header?
18869 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18871 { $as_echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
18872 $as_echo "$as_me: WARNING
: sys
/dg_sys_info.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
18873 { $as_echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: proceeding with the compiler
's result" >&5
18874 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result
" >&2;}
18875 ac_header_preproc=yes
18878 { $as_echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: present but cannot be compiled
" >&5
18879 $as_echo "$as_me: WARNING
: sys
/dg_sys_info.h
: present but cannot be compiled
" >&2;}
18880 { $as_echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: check
for missing prerequisite headers?
" >&5
18881 $as_echo "$as_me: WARNING
: sys
/dg_sys_info.h
: check
for missing prerequisite headers?
" >&2;}
18882 { $as_echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: see the Autoconf documentation
" >&5
18883 $as_echo "$as_me: WARNING
: sys
/dg_sys_info.h
: see the Autoconf documentation
" >&2;}
18884 { $as_echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: section
\"Present But Cannot Be Compiled
\"" >&5
18885 $as_echo "$as_me: WARNING
: sys
/dg_sys_info.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
18886 { $as_echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: proceeding with the preprocessor
's result" >&5
18887 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result
" >&2;}
18888 { $as_echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: in the future
, the compiler will take precedence
" >&5
18889 $as_echo "$as_me: WARNING
: sys
/dg_sys_info.h
: in the future
, the compiler will take precedence
" >&2;}
18893 { $as_echo "$as_me:$LINENO: checking
for sys
/dg_sys_info.h
" >&5
18894 $as_echo_n "checking
for sys
/dg_sys_info.h...
" >&6; }
18895 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
18896 $as_echo_n "(cached
) " >&6
18898 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
18900 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_sys_dg_sys_info_h" >&5
18901 $as_echo "$ac_cv_header_sys_dg_sys_info_h" >&6; }
18904 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
18907 cat >>confdefs.h <<\_ACEOF
18912 { $as_echo "$as_me:$LINENO: checking
for dg_sys_info
in -ldgc" >&5
18913 $as_echo_n "checking
for dg_sys_info
in -ldgc...
" >&6; }
18914 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
18915 $as_echo_n "(cached
) " >&6
18917 ac_check_lib_save_LIBS=$LIBS
18919 cat >conftest.$ac_ext <<_ACEOF
18922 cat confdefs.h >>conftest.$ac_ext
18923 cat >>conftest.$ac_ext <<_ACEOF
18924 /* end confdefs.h. */
18926 /* Override any GCC internal prototype to avoid an error.
18927 Use char because int might match the return type of a GCC
18928 builtin and then its argument prototype would still apply. */
18932 char dg_sys_info ();
18936 return dg_sys_info ();
18941 rm -f conftest.$ac_objext conftest$ac_exeext
18942 if { (ac_try="$ac_link"
18943 case "(($ac_try" in
18944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18945 *) ac_try_echo=$ac_try;;
18947 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18948 $as_echo "$ac_try_echo") >&5
18949 (eval "$ac_link") 2>conftest.er1
18951 grep -v '^ *+' conftest.er1 >conftest.err
18953 cat conftest.err >&5
18954 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18955 (exit $ac_status); } && {
18956 test -z "$ac_c_werror_flag" ||
18957 test ! -s conftest.err
18958 } && test -s conftest$ac_exeext && {
18959 test "$cross_compiling" = yes ||
18960 $as_test_x conftest$ac_exeext
18962 ac_cv_lib_dgc_dg_sys_info=yes
18964 $as_echo "$as_me: failed program was
:" >&5
18965 sed 's/^/| /' conftest.$ac_ext >&5
18967 ac_cv_lib_dgc_dg_sys_info=no
18970 rm -rf conftest.dSYM
18971 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18972 conftest$ac_exeext conftest.$ac_ext
18973 LIBS=$ac_check_lib_save_LIBS
18975 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_dgc_dg_sys_info" >&5
18976 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
18977 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
18978 cat >>confdefs.h <<_ACEOF
18979 #define HAVE_LIBDGC 1
18990 if test "${ac_cv_header_locale_h+set}" = set; then
18991 { $as_echo "$as_me:$LINENO: checking
for locale.h
" >&5
18992 $as_echo_n "checking
for locale.h...
" >&6; }
18993 if test "${ac_cv_header_locale_h+set}" = set; then
18994 $as_echo_n "(cached
) " >&6
18996 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_locale_h" >&5
18997 $as_echo "$ac_cv_header_locale_h" >&6; }
18999 # Is the header compilable?
19000 { $as_echo "$as_me:$LINENO: checking locale.h usability
" >&5
19001 $as_echo_n "checking locale.h usability...
" >&6; }
19002 cat >conftest.$ac_ext <<_ACEOF
19005 cat confdefs.h >>conftest.$ac_ext
19006 cat >>conftest.$ac_ext <<_ACEOF
19007 /* end confdefs.h. */
19008 $ac_includes_default
19009 #include <locale.h>
19011 rm -f conftest.$ac_objext
19012 if { (ac_try="$ac_compile"
19013 case "(($ac_try" in
19014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19015 *) ac_try_echo=$ac_try;;
19017 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19018 $as_echo "$ac_try_echo") >&5
19019 (eval "$ac_compile") 2>conftest.er1
19021 grep -v '^ *+' conftest.er1 >conftest.err
19023 cat conftest.err >&5
19024 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19025 (exit $ac_status); } && {
19026 test -z "$ac_c_werror_flag" ||
19027 test ! -s conftest.err
19028 } && test -s conftest.$ac_objext; then
19029 ac_header_compiler=yes
19031 $as_echo "$as_me: failed program was
:" >&5
19032 sed 's/^/| /' conftest.$ac_ext >&5
19034 ac_header_compiler=no
19037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19038 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
19039 $as_echo "$ac_header_compiler" >&6; }
19041 # Is the header present?
19042 { $as_echo "$as_me:$LINENO: checking locale.h presence
" >&5
19043 $as_echo_n "checking locale.h presence...
" >&6; }
19044 cat >conftest.$ac_ext <<_ACEOF
19047 cat confdefs.h >>conftest.$ac_ext
19048 cat >>conftest.$ac_ext <<_ACEOF
19049 /* end confdefs.h. */
19050 #include <locale.h>
19052 if { (ac_try="$ac_cpp conftest.
$ac_ext"
19053 case "(($ac_try" in
19054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19055 *) ac_try_echo=$ac_try;;
19057 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19058 $as_echo "$ac_try_echo") >&5
19059 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
19061 grep -v '^ *+' conftest.er1 >conftest.err
19063 cat conftest.err >&5
19064 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19065 (exit $ac_status); } >/dev/null && {
19066 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19067 test ! -s conftest.err
19069 ac_header_preproc=yes
19071 $as_echo "$as_me: failed program was
:" >&5
19072 sed 's/^/| /' conftest.$ac_ext >&5
19074 ac_header_preproc=no
19077 rm -f conftest.err conftest.$ac_ext
19078 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
19079 $as_echo "$ac_header_preproc" >&6; }
19081 # So? What about this header?
19082 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19084 { $as_echo "$as_me:$LINENO: WARNING
: locale.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
19085 $as_echo "$as_me: WARNING
: locale.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
19086 { $as_echo "$as_me:$LINENO: WARNING
: locale.h
: proceeding with the compiler
's result" >&5
19087 $as_echo "$as_me: WARNING: locale.h: proceeding with the compiler's result
" >&2;}
19088 ac_header_preproc=yes
19091 { $as_echo "$as_me:$LINENO: WARNING
: locale.h
: present but cannot be compiled
" >&5
19092 $as_echo "$as_me: WARNING
: locale.h
: present but cannot be compiled
" >&2;}
19093 { $as_echo "$as_me:$LINENO: WARNING
: locale.h
: check
for missing prerequisite headers?
" >&5
19094 $as_echo "$as_me: WARNING
: locale.h
: check
for missing prerequisite headers?
" >&2;}
19095 { $as_echo "$as_me:$LINENO: WARNING
: locale.h
: see the Autoconf documentation
" >&5
19096 $as_echo "$as_me: WARNING
: locale.h
: see the Autoconf documentation
" >&2;}
19097 { $as_echo "$as_me:$LINENO: WARNING
: locale.h
: section
\"Present But Cannot Be Compiled
\"" >&5
19098 $as_echo "$as_me: WARNING
: locale.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
19099 { $as_echo "$as_me:$LINENO: WARNING
: locale.h
: proceeding with the preprocessor
's result" >&5
19100 $as_echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result
" >&2;}
19101 { $as_echo "$as_me:$LINENO: WARNING
: locale.h
: in the future
, the compiler will take precedence
" >&5
19102 $as_echo "$as_me: WARNING
: locale.h
: in the future
, the compiler will take precedence
" >&2;}
19106 { $as_echo "$as_me:$LINENO: checking
for locale.h
" >&5
19107 $as_echo_n "checking
for locale.h...
" >&6; }
19108 if test "${ac_cv_header_locale_h+set}" = set; then
19109 $as_echo_n "(cached
) " >&6
19111 ac_cv_header_locale_h=$ac_header_preproc
19113 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_locale_h" >&5
19114 $as_echo "$ac_cv_header_locale_h" >&6; }
19120 for ac_func in setlocale
19122 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
19123 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
19124 $as_echo_n "checking
for $ac_func...
" >&6; }
19125 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
19126 $as_echo_n "(cached
) " >&6
19128 cat >conftest.$ac_ext <<_ACEOF
19131 cat confdefs.h >>conftest.$ac_ext
19132 cat >>conftest.$ac_ext <<_ACEOF
19133 /* end confdefs.h. */
19134 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19135 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19136 #define $ac_func innocuous_$ac_func
19138 /* System header to define __stub macros and hopefully few prototypes,
19139 which can conflict with char $ac_func (); below.
19140 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19141 <limits.h> exists even on freestanding compilers. */
19144 # include <limits.h>
19146 # include <assert.h>
19151 /* Override any GCC internal prototype to avoid an error.
19152 Use char because int might match the return type of a GCC
19153 builtin and then its argument prototype would still apply. */
19158 /* The GNU C library defines this for functions which it implements
19159 to always fail with ENOSYS. Some functions are actually named
19160 something starting with __ and the normal name is an alias. */
19161 #if defined __stub_$ac_func || defined __stub___$ac_func
19168 return $ac_func ();
19173 rm -f conftest.$ac_objext conftest$ac_exeext
19174 if { (ac_try="$ac_link"
19175 case "(($ac_try" in
19176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19177 *) ac_try_echo=$ac_try;;
19179 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19180 $as_echo "$ac_try_echo") >&5
19181 (eval "$ac_link") 2>conftest.er1
19183 grep -v '^ *+' conftest.er1 >conftest.err
19185 cat conftest.err >&5
19186 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19187 (exit $ac_status); } && {
19188 test -z "$ac_c_werror_flag" ||
19189 test ! -s conftest.err
19190 } && test -s conftest$ac_exeext && {
19191 test "$cross_compiling" = yes ||
19192 $as_test_x conftest$ac_exeext
19194 eval "$as_ac_var=yes"
19196 $as_echo "$as_me: failed program was
:" >&5
19197 sed 's/^/| /' conftest.$ac_ext >&5
19199 eval "$as_ac_var=no
"
19202 rm -rf conftest.dSYM
19203 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19204 conftest$ac_exeext conftest.$ac_ext
19206 ac_res=`eval 'as_val=${'$as_ac_var'}
19207 $as_echo "$as_val"'`
19208 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
19209 $as_echo "$ac_res" >&6; }
19210 if test `eval 'as_val=${'$as_ac_var'}
19211 $as_echo "$as_val"'` = yes; then
19212 cat >>confdefs.h <<_ACEOF
19213 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
19220 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
19221 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
19222 # Irix 4.0.5F has the header but not the library.
19223 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
19226 cat >>confdefs.h <<\_ACEOF
19232 if test $ac_have_func = no; then
19233 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
19234 { $as_echo "$as_me:$LINENO: checking
for inq_stats
/cpustats.h
" >&5
19235 $as_echo_n "checking
for inq_stats
/cpustats.h...
" >&6; }
19236 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
19237 $as_echo_n "(cached
) " >&6
19239 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_inq_stats_cpustats_h" >&5
19240 $as_echo "$ac_cv_header_inq_stats_cpustats_h" >&6; }
19242 # Is the header compilable?
19243 { $as_echo "$as_me:$LINENO: checking inq_stats
/cpustats.h usability
" >&5
19244 $as_echo_n "checking inq_stats
/cpustats.h usability...
" >&6; }
19245 cat >conftest.$ac_ext <<_ACEOF
19248 cat confdefs.h >>conftest.$ac_ext
19249 cat >>conftest.$ac_ext <<_ACEOF
19250 /* end confdefs.h. */
19251 $ac_includes_default
19252 #include <inq_stats/cpustats.h>
19254 rm -f conftest.$ac_objext
19255 if { (ac_try="$ac_compile"
19256 case "(($ac_try" in
19257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19258 *) ac_try_echo=$ac_try;;
19260 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19261 $as_echo "$ac_try_echo") >&5
19262 (eval "$ac_compile") 2>conftest.er1
19264 grep -v '^ *+' conftest.er1 >conftest.err
19266 cat conftest.err >&5
19267 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19268 (exit $ac_status); } && {
19269 test -z "$ac_c_werror_flag" ||
19270 test ! -s conftest.err
19271 } && test -s conftest.$ac_objext; then
19272 ac_header_compiler=yes
19274 $as_echo "$as_me: failed program was
:" >&5
19275 sed 's/^/| /' conftest.$ac_ext >&5
19277 ac_header_compiler=no
19280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19281 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
19282 $as_echo "$ac_header_compiler" >&6; }
19284 # Is the header present?
19285 { $as_echo "$as_me:$LINENO: checking inq_stats
/cpustats.h presence
" >&5
19286 $as_echo_n "checking inq_stats
/cpustats.h presence...
" >&6; }
19287 cat >conftest.$ac_ext <<_ACEOF
19290 cat confdefs.h >>conftest.$ac_ext
19291 cat >>conftest.$ac_ext <<_ACEOF
19292 /* end confdefs.h. */
19293 #include <inq_stats/cpustats.h>
19295 if { (ac_try="$ac_cpp conftest.
$ac_ext"
19296 case "(($ac_try" in
19297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19298 *) ac_try_echo=$ac_try;;
19300 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19301 $as_echo "$ac_try_echo") >&5
19302 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
19304 grep -v '^ *+' conftest.er1 >conftest.err
19306 cat conftest.err >&5
19307 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19308 (exit $ac_status); } >/dev/null && {
19309 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19310 test ! -s conftest.err
19312 ac_header_preproc=yes
19314 $as_echo "$as_me: failed program was
:" >&5
19315 sed 's/^/| /' conftest.$ac_ext >&5
19317 ac_header_preproc=no
19320 rm -f conftest.err conftest.$ac_ext
19321 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
19322 $as_echo "$ac_header_preproc" >&6; }
19324 # So? What about this header?
19325 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19327 { $as_echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
19328 $as_echo "$as_me: WARNING
: inq_stats
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
19329 { $as_echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: proceeding with the compiler
's result" >&5
19330 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result
" >&2;}
19331 ac_header_preproc=yes
19334 { $as_echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: present but cannot be compiled
" >&5
19335 $as_echo "$as_me: WARNING
: inq_stats
/cpustats.h
: present but cannot be compiled
" >&2;}
19336 { $as_echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: check
for missing prerequisite headers?
" >&5
19337 $as_echo "$as_me: WARNING
: inq_stats
/cpustats.h
: check
for missing prerequisite headers?
" >&2;}
19338 { $as_echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: see the Autoconf documentation
" >&5
19339 $as_echo "$as_me: WARNING
: inq_stats
/cpustats.h
: see the Autoconf documentation
" >&2;}
19340 { $as_echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&5
19341 $as_echo "$as_me: WARNING
: inq_stats
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
19342 { $as_echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: proceeding with the preprocessor
's result" >&5
19343 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result
" >&2;}
19344 { $as_echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: in the future
, the compiler will take precedence
" >&5
19345 $as_echo "$as_me: WARNING
: inq_stats
/cpustats.h
: in the future
, the compiler will take precedence
" >&2;}
19349 { $as_echo "$as_me:$LINENO: checking
for inq_stats
/cpustats.h
" >&5
19350 $as_echo_n "checking
for inq_stats
/cpustats.h...
" >&6; }
19351 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
19352 $as_echo_n "(cached
) " >&6
19354 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
19356 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_inq_stats_cpustats_h" >&5
19357 $as_echo "$ac_cv_header_inq_stats_cpustats_h" >&6; }
19360 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
19363 cat >>confdefs.h <<\_ACEOF
19368 cat >>confdefs.h <<\_ACEOF
19377 if test $ac_have_func = no; then
19378 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
19379 { $as_echo "$as_me:$LINENO: checking
for sys
/cpustats.h
" >&5
19380 $as_echo_n "checking
for sys
/cpustats.h...
" >&6; }
19381 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
19382 $as_echo_n "(cached
) " >&6
19384 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_sys_cpustats_h" >&5
19385 $as_echo "$ac_cv_header_sys_cpustats_h" >&6; }
19387 # Is the header compilable?
19388 { $as_echo "$as_me:$LINENO: checking sys
/cpustats.h usability
" >&5
19389 $as_echo_n "checking sys
/cpustats.h usability...
" >&6; }
19390 cat >conftest.$ac_ext <<_ACEOF
19393 cat confdefs.h >>conftest.$ac_ext
19394 cat >>conftest.$ac_ext <<_ACEOF
19395 /* end confdefs.h. */
19396 $ac_includes_default
19397 #include <sys/cpustats.h>
19399 rm -f conftest.$ac_objext
19400 if { (ac_try="$ac_compile"
19401 case "(($ac_try" in
19402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19403 *) ac_try_echo=$ac_try;;
19405 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19406 $as_echo "$ac_try_echo") >&5
19407 (eval "$ac_compile") 2>conftest.er1
19409 grep -v '^ *+' conftest.er1 >conftest.err
19411 cat conftest.err >&5
19412 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19413 (exit $ac_status); } && {
19414 test -z "$ac_c_werror_flag" ||
19415 test ! -s conftest.err
19416 } && test -s conftest.$ac_objext; then
19417 ac_header_compiler=yes
19419 $as_echo "$as_me: failed program was
:" >&5
19420 sed 's/^/| /' conftest.$ac_ext >&5
19422 ac_header_compiler=no
19425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19426 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
19427 $as_echo "$ac_header_compiler" >&6; }
19429 # Is the header present?
19430 { $as_echo "$as_me:$LINENO: checking sys
/cpustats.h presence
" >&5
19431 $as_echo_n "checking sys
/cpustats.h presence...
" >&6; }
19432 cat >conftest.$ac_ext <<_ACEOF
19435 cat confdefs.h >>conftest.$ac_ext
19436 cat >>conftest.$ac_ext <<_ACEOF
19437 /* end confdefs.h. */
19438 #include <sys/cpustats.h>
19440 if { (ac_try="$ac_cpp conftest.
$ac_ext"
19441 case "(($ac_try" in
19442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19443 *) ac_try_echo=$ac_try;;
19445 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19446 $as_echo "$ac_try_echo") >&5
19447 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
19449 grep -v '^ *+' conftest.er1 >conftest.err
19451 cat conftest.err >&5
19452 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19453 (exit $ac_status); } >/dev/null && {
19454 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19455 test ! -s conftest.err
19457 ac_header_preproc=yes
19459 $as_echo "$as_me: failed program was
:" >&5
19460 sed 's/^/| /' conftest.$ac_ext >&5
19462 ac_header_preproc=no
19465 rm -f conftest.err conftest.$ac_ext
19466 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
19467 $as_echo "$ac_header_preproc" >&6; }
19469 # So? What about this header?
19470 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19472 { $as_echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
19473 $as_echo "$as_me: WARNING
: sys
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
19474 { $as_echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: proceeding with the compiler
's result" >&5
19475 $as_echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result
" >&2;}
19476 ac_header_preproc=yes
19479 { $as_echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: present but cannot be compiled
" >&5
19480 $as_echo "$as_me: WARNING
: sys
/cpustats.h
: present but cannot be compiled
" >&2;}
19481 { $as_echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: check
for missing prerequisite headers?
" >&5
19482 $as_echo "$as_me: WARNING
: sys
/cpustats.h
: check
for missing prerequisite headers?
" >&2;}
19483 { $as_echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: see the Autoconf documentation
" >&5
19484 $as_echo "$as_me: WARNING
: sys
/cpustats.h
: see the Autoconf documentation
" >&2;}
19485 { $as_echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&5
19486 $as_echo "$as_me: WARNING
: sys
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
19487 { $as_echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: proceeding with the preprocessor
's result" >&5
19488 $as_echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result
" >&2;}
19489 { $as_echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: in the future
, the compiler will take precedence
" >&5
19490 $as_echo "$as_me: WARNING
: sys
/cpustats.h
: in the future
, the compiler will take precedence
" >&2;}
19494 { $as_echo "$as_me:$LINENO: checking
for sys
/cpustats.h
" >&5
19495 $as_echo_n "checking
for sys
/cpustats.h...
" >&6; }
19496 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
19497 $as_echo_n "(cached
) " >&6
19499 ac_cv_header_sys_cpustats_h=$ac_header_preproc
19501 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_sys_cpustats_h" >&5
19502 $as_echo "$ac_cv_header_sys_cpustats_h" >&6; }
19505 if test $ac_cv_header_sys_cpustats_h = yes; then
19506 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
19515 if test $ac_have_func = no; then
19517 for ac_header in mach/mach.h
19519 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
19520 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
19521 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
19522 $as_echo_n "checking
for $ac_header...
" >&6; }
19523 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
19524 $as_echo_n "(cached
) " >&6
19526 ac_res=`eval 'as_val=${'$as_ac_Header'}
19527 $as_echo "$as_val"'`
19528 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
19529 $as_echo "$ac_res" >&6; }
19531 # Is the header compilable?
19532 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
19533 $as_echo_n "checking
$ac_header usability...
" >&6; }
19534 cat >conftest.$ac_ext <<_ACEOF
19537 cat confdefs.h >>conftest.$ac_ext
19538 cat >>conftest.$ac_ext <<_ACEOF
19539 /* end confdefs.h. */
19540 $ac_includes_default
19541 #include <$ac_header>
19543 rm -f conftest.$ac_objext
19544 if { (ac_try="$ac_compile"
19545 case "(($ac_try" in
19546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19547 *) ac_try_echo=$ac_try;;
19549 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19550 $as_echo "$ac_try_echo") >&5
19551 (eval "$ac_compile") 2>conftest.er1
19553 grep -v '^ *+' conftest.er1 >conftest.err
19555 cat conftest.err >&5
19556 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19557 (exit $ac_status); } && {
19558 test -z "$ac_c_werror_flag" ||
19559 test ! -s conftest.err
19560 } && test -s conftest.$ac_objext; then
19561 ac_header_compiler=yes
19563 $as_echo "$as_me: failed program was
:" >&5
19564 sed 's/^/| /' conftest.$ac_ext >&5
19566 ac_header_compiler=no
19569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19570 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
19571 $as_echo "$ac_header_compiler" >&6; }
19573 # Is the header present?
19574 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
19575 $as_echo_n "checking
$ac_header presence...
" >&6; }
19576 cat >conftest.$ac_ext <<_ACEOF
19579 cat confdefs.h >>conftest.$ac_ext
19580 cat >>conftest.$ac_ext <<_ACEOF
19581 /* end confdefs.h. */
19582 #include <$ac_header>
19584 if { (ac_try="$ac_cpp conftest.
$ac_ext"
19585 case "(($ac_try" in
19586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19587 *) ac_try_echo=$ac_try;;
19589 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19590 $as_echo "$ac_try_echo") >&5
19591 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
19593 grep -v '^ *+' conftest.er1 >conftest.err
19595 cat conftest.err >&5
19596 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19597 (exit $ac_status); } >/dev/null && {
19598 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19599 test ! -s conftest.err
19601 ac_header_preproc=yes
19603 $as_echo "$as_me: failed program was
:" >&5
19604 sed 's/^/| /' conftest.$ac_ext >&5
19606 ac_header_preproc=no
19609 rm -f conftest.err conftest.$ac_ext
19610 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
19611 $as_echo "$ac_header_preproc" >&6; }
19613 # So? What about this header?
19614 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19616 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
19617 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
19618 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
19619 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
19620 ac_header_preproc=yes
19623 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
19624 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
19625 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
19626 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
19627 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
19628 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
19629 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
19630 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
19631 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
19632 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
19633 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
19634 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
19638 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
19639 $as_echo_n "checking
for $ac_header...
" >&6; }
19640 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
19641 $as_echo_n "(cached
) " >&6
19643 eval "$as_ac_Header=\
$ac_header_preproc"
19645 ac_res=`eval 'as_val=${'$as_ac_Header'}
19646 $as_echo "$as_val"'`
19647 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
19648 $as_echo "$ac_res" >&6; }
19651 if test `eval 'as_val=${'$as_ac_Header'}
19652 $as_echo "$as_val"'` = yes; then
19653 cat >>confdefs.h <<_ACEOF
19654 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
19664 for ac_header in nlist.h
19666 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
19667 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
19668 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
19669 $as_echo_n "checking
for $ac_header...
" >&6; }
19670 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
19671 $as_echo_n "(cached
) " >&6
19673 ac_res=`eval 'as_val=${'$as_ac_Header'}
19674 $as_echo "$as_val"'`
19675 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
19676 $as_echo "$ac_res" >&6; }
19678 # Is the header compilable?
19679 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
19680 $as_echo_n "checking
$ac_header usability...
" >&6; }
19681 cat >conftest.$ac_ext <<_ACEOF
19684 cat confdefs.h >>conftest.$ac_ext
19685 cat >>conftest.$ac_ext <<_ACEOF
19686 /* end confdefs.h. */
19687 $ac_includes_default
19688 #include <$ac_header>
19690 rm -f conftest.$ac_objext
19691 if { (ac_try="$ac_compile"
19692 case "(($ac_try" in
19693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19694 *) ac_try_echo=$ac_try;;
19696 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19697 $as_echo "$ac_try_echo") >&5
19698 (eval "$ac_compile") 2>conftest.er1
19700 grep -v '^ *+' conftest.er1 >conftest.err
19702 cat conftest.err >&5
19703 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19704 (exit $ac_status); } && {
19705 test -z "$ac_c_werror_flag" ||
19706 test ! -s conftest.err
19707 } && test -s conftest.$ac_objext; then
19708 ac_header_compiler=yes
19710 $as_echo "$as_me: failed program was
:" >&5
19711 sed 's/^/| /' conftest.$ac_ext >&5
19713 ac_header_compiler=no
19716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19717 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
19718 $as_echo "$ac_header_compiler" >&6; }
19720 # Is the header present?
19721 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
19722 $as_echo_n "checking
$ac_header presence...
" >&6; }
19723 cat >conftest.$ac_ext <<_ACEOF
19726 cat confdefs.h >>conftest.$ac_ext
19727 cat >>conftest.$ac_ext <<_ACEOF
19728 /* end confdefs.h. */
19729 #include <$ac_header>
19731 if { (ac_try="$ac_cpp conftest.
$ac_ext"
19732 case "(($ac_try" in
19733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19734 *) ac_try_echo=$ac_try;;
19736 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19737 $as_echo "$ac_try_echo") >&5
19738 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
19740 grep -v '^ *+' conftest.er1 >conftest.err
19742 cat conftest.err >&5
19743 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19744 (exit $ac_status); } >/dev/null && {
19745 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19746 test ! -s conftest.err
19748 ac_header_preproc=yes
19750 $as_echo "$as_me: failed program was
:" >&5
19751 sed 's/^/| /' conftest.$ac_ext >&5
19753 ac_header_preproc=no
19756 rm -f conftest.err conftest.$ac_ext
19757 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
19758 $as_echo "$ac_header_preproc" >&6; }
19760 # So? What about this header?
19761 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19763 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
19764 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
19765 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
19766 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
19767 ac_header_preproc=yes
19770 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
19771 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
19772 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
19773 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
19774 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
19775 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
19776 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
19777 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
19778 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
19779 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
19780 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
19781 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
19785 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
19786 $as_echo_n "checking
for $ac_header...
" >&6; }
19787 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
19788 $as_echo_n "(cached
) " >&6
19790 eval "$as_ac_Header=\
$ac_header_preproc"
19792 ac_res=`eval 'as_val=${'$as_ac_Header'}
19793 $as_echo "$as_val"'`
19794 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
19795 $as_echo "$ac_res" >&6; }
19798 if test `eval 'as_val=${'$as_ac_Header'}
19799 $as_echo "$as_val"'` = yes; then
19800 cat >>confdefs.h <<_ACEOF
19801 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
19803 { $as_echo "$as_me:$LINENO: checking
for struct nlist.n_un.n_name
" >&5
19804 $as_echo_n "checking
for struct nlist.n_un.n_name...
" >&6; }
19805 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
19806 $as_echo_n "(cached
) " >&6
19808 cat >conftest.$ac_ext <<_ACEOF
19811 cat confdefs.h >>conftest.$ac_ext
19812 cat >>conftest.$ac_ext <<_ACEOF
19813 /* end confdefs.h. */
19819 static struct nlist ac_aggr;
19820 if (ac_aggr.n_un.n_name)
19826 rm -f conftest.$ac_objext
19827 if { (ac_try="$ac_compile"
19828 case "(($ac_try" in
19829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19830 *) ac_try_echo=$ac_try;;
19832 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19833 $as_echo "$ac_try_echo") >&5
19834 (eval "$ac_compile") 2>conftest.er1
19836 grep -v '^ *+' conftest.er1 >conftest.err
19838 cat conftest.err >&5
19839 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19840 (exit $ac_status); } && {
19841 test -z "$ac_c_werror_flag" ||
19842 test ! -s conftest.err
19843 } && test -s conftest.$ac_objext; then
19844 ac_cv_member_struct_nlist_n_un_n_name=yes
19846 $as_echo "$as_me: failed program was
:" >&5
19847 sed 's/^/| /' conftest.$ac_ext >&5
19849 cat >conftest.$ac_ext <<_ACEOF
19852 cat confdefs.h >>conftest.$ac_ext
19853 cat >>conftest.$ac_ext <<_ACEOF
19854 /* end confdefs.h. */
19860 static struct nlist ac_aggr;
19861 if (sizeof ac_aggr.n_un.n_name)
19867 rm -f conftest.$ac_objext
19868 if { (ac_try="$ac_compile"
19869 case "(($ac_try" in
19870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19871 *) ac_try_echo=$ac_try;;
19873 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19874 $as_echo "$ac_try_echo") >&5
19875 (eval "$ac_compile") 2>conftest.er1
19877 grep -v '^ *+' conftest.er1 >conftest.err
19879 cat conftest.err >&5
19880 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19881 (exit $ac_status); } && {
19882 test -z "$ac_c_werror_flag" ||
19883 test ! -s conftest.err
19884 } && test -s conftest.$ac_objext; then
19885 ac_cv_member_struct_nlist_n_un_n_name=yes
19887 $as_echo "$as_me: failed program was
:" >&5
19888 sed 's/^/| /' conftest.$ac_ext >&5
19890 ac_cv_member_struct_nlist_n_un_n_name=no
19893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19898 { $as_echo "$as_me:$LINENO: result
: $ac_cv_member_struct_nlist_n_un_n_name" >&5
19899 $as_echo "$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
19900 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
19902 cat >>confdefs.h <<_ACEOF
19903 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
19907 cat >>confdefs.h <<\_ACEOF
19908 #define NLIST_NAME_UNION 1
19922 # Some definitions of getloadavg require that the program be installed setgid.
19923 { $as_echo "$as_me:$LINENO: checking whether getloadavg requires setgid
" >&5
19924 $as_echo_n "checking whether getloadavg requires setgid...
" >&6; }
19925 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
19926 $as_echo_n "(cached
) " >&6
19928 cat >conftest.$ac_ext <<_ACEOF
19931 cat confdefs.h >>conftest.$ac_ext
19932 cat >>conftest.$ac_ext <<_ACEOF
19933 /* end confdefs.h. */
19934 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c
"
19935 #ifdef LDAV_PRIVILEGED
19936 Yowza Am I SETGID yet
19939 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
19940 $EGREP "Yowza Am I SETGID yet
" >/dev/null 2>&1; then
19941 ac_cv_func_getloadavg_setgid=yes
19943 ac_cv_func_getloadavg_setgid=no
19948 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func_getloadavg_setgid" >&5
19949 $as_echo "$ac_cv_func_getloadavg_setgid" >&6; }
19950 if test $ac_cv_func_getloadavg_setgid = yes; then
19953 cat >>confdefs.h <<\_ACEOF
19954 #define GETLOADAVG_PRIVILEGED 1
19961 if test $ac_cv_func_getloadavg_setgid = yes; then
19962 { $as_echo "$as_me:$LINENO: checking group of
/dev
/kmem
" >&5
19963 $as_echo_n "checking group of
/dev
/kmem...
" >&6; }
19964 if test "${ac_cv_group_kmem+set}" = set; then
19965 $as_echo_n "(cached
) " >&6
19967 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
19968 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
19969 # If we got an error (system does not support symlinks), try without -L.
19970 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
19971 ac_cv_group_kmem=`$as_echo "$ac_ls_output" \
19972 | sed -ne 's/[ ][ ]*/ /g;
19973 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
19977 { $as_echo "$as_me:$LINENO: result
: $ac_cv_group_kmem" >&5
19978 $as_echo "$ac_cv_group_kmem" >&6; }
19979 KMEM_GROUP=$ac_cv_group_kmem
19981 if test "x
$ac_save_LIBS" = x; then
19982 GETLOADAVG_LIBS=$LIBS
19984 GETLOADAVG_LIBS=`$as_echo "$LIBS" | sed "s|
$ac_save_LIBS||
"`
19990 { $as_echo "$as_me:$LINENO: checking
for _LARGEFILE_SOURCE value needed
for large files
" >&5
19991 $as_echo_n "checking
for _LARGEFILE_SOURCE value needed
for large files...
" >&6; }
19992 if test "${ac_cv_sys_largefile_source+set}" = set; then
19993 $as_echo_n "(cached
) " >&6
19996 cat >conftest.$ac_ext <<_ACEOF
19999 cat confdefs.h >>conftest.$ac_ext
20000 cat >>conftest.$ac_ext <<_ACEOF
20001 /* end confdefs.h. */
20002 #include <sys/types.h> /* for off_t */
20007 int (*fp) (FILE *, off_t, int) = fseeko;
20008 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
20013 rm -f conftest.$ac_objext conftest$ac_exeext
20014 if { (ac_try="$ac_link"
20015 case "(($ac_try" in
20016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20017 *) ac_try_echo=$ac_try;;
20019 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20020 $as_echo "$ac_try_echo") >&5
20021 (eval "$ac_link") 2>conftest.er1
20023 grep -v '^ *+' conftest.er1 >conftest.err
20025 cat conftest.err >&5
20026 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20027 (exit $ac_status); } && {
20028 test -z "$ac_c_werror_flag" ||
20029 test ! -s conftest.err
20030 } && test -s conftest$ac_exeext && {
20031 test "$cross_compiling" = yes ||
20032 $as_test_x conftest$ac_exeext
20034 ac_cv_sys_largefile_source=no; break
20036 $as_echo "$as_me: failed program was
:" >&5
20037 sed 's/^/| /' conftest.$ac_ext >&5
20042 rm -rf conftest.dSYM
20043 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20044 conftest$ac_exeext conftest.$ac_ext
20045 cat >conftest.$ac_ext <<_ACEOF
20048 cat confdefs.h >>conftest.$ac_ext
20049 cat >>conftest.$ac_ext <<_ACEOF
20050 /* end confdefs.h. */
20051 #define _LARGEFILE_SOURCE 1
20052 #include <sys/types.h> /* for off_t */
20057 int (*fp) (FILE *, off_t, int) = fseeko;
20058 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
20063 rm -f conftest.$ac_objext conftest$ac_exeext
20064 if { (ac_try="$ac_link"
20065 case "(($ac_try" in
20066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20067 *) ac_try_echo=$ac_try;;
20069 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20070 $as_echo "$ac_try_echo") >&5
20071 (eval "$ac_link") 2>conftest.er1
20073 grep -v '^ *+' conftest.er1 >conftest.err
20075 cat conftest.err >&5
20076 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20077 (exit $ac_status); } && {
20078 test -z "$ac_c_werror_flag" ||
20079 test ! -s conftest.err
20080 } && test -s conftest$ac_exeext && {
20081 test "$cross_compiling" = yes ||
20082 $as_test_x conftest$ac_exeext
20084 ac_cv_sys_largefile_source=1; break
20086 $as_echo "$as_me: failed program was
:" >&5
20087 sed 's/^/| /' conftest.$ac_ext >&5
20092 rm -rf conftest.dSYM
20093 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20094 conftest$ac_exeext conftest.$ac_ext
20095 ac_cv_sys_largefile_source=unknown
20099 { $as_echo "$as_me:$LINENO: result
: $ac_cv_sys_largefile_source" >&5
20100 $as_echo "$ac_cv_sys_largefile_source" >&6; }
20101 case $ac_cv_sys_largefile_source in #(
20104 cat >>confdefs.h <<_ACEOF
20105 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
20111 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
20112 # in glibc 2.1.3, but that breaks too many other things.
20113 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
20114 if test $ac_cv_sys_largefile_source != unknown; then
20116 cat >>confdefs.h <<\_ACEOF
20117 #define HAVE_FSEEKO 1
20123 # Configure getopt.
20124 # getopt.m4 serial 10
20126 # The getopt module assume you want GNU getopt, with getopt_long etc,
20127 # rather than vanilla POSIX getopt. This means your your code should
20128 # always include <getopt.h> for the getopt prototypes.
20140 # Prerequisites of lib/getopt*.
20147 for ac_header in getopt.h
20149 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20150 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20151 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
20152 $as_echo_n "checking
for $ac_header...
" >&6; }
20153 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20154 $as_echo_n "(cached
) " >&6
20156 ac_res=`eval 'as_val=${'$as_ac_Header'}
20157 $as_echo "$as_val"'`
20158 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
20159 $as_echo "$ac_res" >&6; }
20161 # Is the header compilable?
20162 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20163 $as_echo_n "checking
$ac_header usability...
" >&6; }
20164 cat >conftest.$ac_ext <<_ACEOF
20167 cat confdefs.h >>conftest.$ac_ext
20168 cat >>conftest.$ac_ext <<_ACEOF
20169 /* end confdefs.h. */
20170 $ac_includes_default
20171 #include <$ac_header>
20173 rm -f conftest.$ac_objext
20174 if { (ac_try="$ac_compile"
20175 case "(($ac_try" in
20176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20177 *) ac_try_echo=$ac_try;;
20179 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20180 $as_echo "$ac_try_echo") >&5
20181 (eval "$ac_compile") 2>conftest.er1
20183 grep -v '^ *+' conftest.er1 >conftest.err
20185 cat conftest.err >&5
20186 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20187 (exit $ac_status); } && {
20188 test -z "$ac_c_werror_flag" ||
20189 test ! -s conftest.err
20190 } && test -s conftest.$ac_objext; then
20191 ac_header_compiler=yes
20193 $as_echo "$as_me: failed program was
:" >&5
20194 sed 's/^/| /' conftest.$ac_ext >&5
20196 ac_header_compiler=no
20199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20200 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20201 $as_echo "$ac_header_compiler" >&6; }
20203 # Is the header present?
20204 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20205 $as_echo_n "checking
$ac_header presence...
" >&6; }
20206 cat >conftest.$ac_ext <<_ACEOF
20209 cat confdefs.h >>conftest.$ac_ext
20210 cat >>conftest.$ac_ext <<_ACEOF
20211 /* end confdefs.h. */
20212 #include <$ac_header>
20214 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20215 case "(($ac_try" in
20216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20217 *) ac_try_echo=$ac_try;;
20219 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20220 $as_echo "$ac_try_echo") >&5
20221 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20223 grep -v '^ *+' conftest.er1 >conftest.err
20225 cat conftest.err >&5
20226 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20227 (exit $ac_status); } >/dev/null && {
20228 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20229 test ! -s conftest.err
20231 ac_header_preproc=yes
20233 $as_echo "$as_me: failed program was
:" >&5
20234 sed 's/^/| /' conftest.$ac_ext >&5
20236 ac_header_preproc=no
20239 rm -f conftest.err conftest.$ac_ext
20240 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20241 $as_echo "$ac_header_preproc" >&6; }
20243 # So? What about this header?
20244 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20246 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
20247 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20248 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
20249 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
20250 ac_header_preproc=yes
20253 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
20254 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
20255 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
20256 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
20257 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
20258 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
20259 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
20260 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
20261 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
20262 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
20263 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
20264 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
20268 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
20269 $as_echo_n "checking
for $ac_header...
" >&6; }
20270 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20271 $as_echo_n "(cached
) " >&6
20273 eval "$as_ac_Header=\
$ac_header_preproc"
20275 ac_res=`eval 'as_val=${'$as_ac_Header'}
20276 $as_echo "$as_val"'`
20277 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
20278 $as_echo "$ac_res" >&6; }
20281 if test `eval 'as_val=${'$as_ac_Header'}
20282 $as_echo "$as_val"'` = yes; then
20283 cat >>confdefs.h <<_ACEOF
20284 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
20293 if test -z "$GETOPT_H"; then
20295 for ac_func in getopt_long_only
20297 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
20298 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
20299 $as_echo_n "checking
for $ac_func...
" >&6; }
20300 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
20301 $as_echo_n "(cached
) " >&6
20303 cat >conftest.$ac_ext <<_ACEOF
20306 cat confdefs.h >>conftest.$ac_ext
20307 cat >>conftest.$ac_ext <<_ACEOF
20308 /* end confdefs.h. */
20309 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20310 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20311 #define $ac_func innocuous_$ac_func
20313 /* System header to define __stub macros and hopefully few prototypes,
20314 which can conflict with char $ac_func (); below.
20315 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20316 <limits.h> exists even on freestanding compilers. */
20319 # include <limits.h>
20321 # include <assert.h>
20326 /* Override any GCC internal prototype to avoid an error.
20327 Use char because int might match the return type of a GCC
20328 builtin and then its argument prototype would still apply. */
20333 /* The GNU C library defines this for functions which it implements
20334 to always fail with ENOSYS. Some functions are actually named
20335 something starting with __ and the normal name is an alias. */
20336 #if defined __stub_$ac_func || defined __stub___$ac_func
20343 return $ac_func ();
20348 rm -f conftest.$ac_objext conftest$ac_exeext
20349 if { (ac_try="$ac_link"
20350 case "(($ac_try" in
20351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20352 *) ac_try_echo=$ac_try;;
20354 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20355 $as_echo "$ac_try_echo") >&5
20356 (eval "$ac_link") 2>conftest.er1
20358 grep -v '^ *+' conftest.er1 >conftest.err
20360 cat conftest.err >&5
20361 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20362 (exit $ac_status); } && {
20363 test -z "$ac_c_werror_flag" ||
20364 test ! -s conftest.err
20365 } && test -s conftest$ac_exeext && {
20366 test "$cross_compiling" = yes ||
20367 $as_test_x conftest$ac_exeext
20369 eval "$as_ac_var=yes"
20371 $as_echo "$as_me: failed program was
:" >&5
20372 sed 's/^/| /' conftest.$ac_ext >&5
20374 eval "$as_ac_var=no
"
20377 rm -rf conftest.dSYM
20378 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20379 conftest$ac_exeext conftest.$ac_ext
20381 ac_res=`eval 'as_val=${'$as_ac_var'}
20382 $as_echo "$as_val"'`
20383 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
20384 $as_echo "$ac_res" >&6; }
20385 if test `eval 'as_val=${'$as_ac_var'}
20386 $as_echo "$as_val"'` = yes; then
20387 cat >>confdefs.h <<_ACEOF
20388 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
20398 if test -z "$GETOPT_H"; then
20399 { $as_echo "$as_me:$LINENO: checking whether optreset is declared
" >&5
20400 $as_echo_n "checking whether optreset is declared...
" >&6; }
20401 if test "${ac_cv_have_decl_optreset+set}" = set; then
20402 $as_echo_n "(cached
) " >&6
20404 cat >conftest.$ac_ext <<_ACEOF
20407 cat confdefs.h >>conftest.$ac_ext
20408 cat >>conftest.$ac_ext <<_ACEOF
20409 /* end confdefs.h. */
20410 #include <getopt.h>
20423 rm -f conftest.$ac_objext
20424 if { (ac_try="$ac_compile"
20425 case "(($ac_try" in
20426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20427 *) ac_try_echo=$ac_try;;
20429 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20430 $as_echo "$ac_try_echo") >&5
20431 (eval "$ac_compile") 2>conftest.er1
20433 grep -v '^ *+' conftest.er1 >conftest.err
20435 cat conftest.err >&5
20436 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20437 (exit $ac_status); } && {
20438 test -z "$ac_c_werror_flag" ||
20439 test ! -s conftest.err
20440 } && test -s conftest.$ac_objext; then
20441 ac_cv_have_decl_optreset=yes
20443 $as_echo "$as_me: failed program was
:" >&5
20444 sed 's/^/| /' conftest.$ac_ext >&5
20446 ac_cv_have_decl_optreset=no
20449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20451 { $as_echo "$as_me:$LINENO: result
: $ac_cv_have_decl_optreset" >&5
20452 $as_echo "$ac_cv_have_decl_optreset" >&6; }
20453 if test $ac_cv_have_decl_optreset = yes; then
20459 if test -z "$GETOPT_H"; then
20460 { $as_echo "$as_me:$LINENO: checking
for working GNU getopt
function" >&5
20461 $as_echo_n "checking
for working GNU getopt
function...
" >&6; }
20462 if test "${gl_cv_func_gnu_getopt+set}" = set; then
20463 $as_echo_n "(cached
) " >&6
20465 if test "$cross_compiling" = yes; then
20466 { $as_echo "$as_me:$LINENO: checking whether getopt_clip is declared
" >&5
20467 $as_echo_n "checking whether getopt_clip is declared...
" >&6; }
20468 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
20469 $as_echo_n "(cached
) " >&6
20471 cat >conftest.$ac_ext <<_ACEOF
20474 cat confdefs.h >>conftest.$ac_ext
20475 cat >>conftest.$ac_ext <<_ACEOF
20476 /* end confdefs.h. */
20477 #include <getopt.h>
20482 #ifndef getopt_clip
20483 (void) getopt_clip;
20490 rm -f conftest.$ac_objext
20491 if { (ac_try="$ac_compile"
20492 case "(($ac_try" in
20493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20494 *) ac_try_echo=$ac_try;;
20496 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20497 $as_echo "$ac_try_echo") >&5
20498 (eval "$ac_compile") 2>conftest.er1
20500 grep -v '^ *+' conftest.er1 >conftest.err
20502 cat conftest.err >&5
20503 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20504 (exit $ac_status); } && {
20505 test -z "$ac_c_werror_flag" ||
20506 test ! -s conftest.err
20507 } && test -s conftest.$ac_objext; then
20508 ac_cv_have_decl_getopt_clip=yes
20510 $as_echo "$as_me: failed program was
:" >&5
20511 sed 's/^/| /' conftest.$ac_ext >&5
20513 ac_cv_have_decl_getopt_clip=no
20516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20518 { $as_echo "$as_me:$LINENO: result
: $ac_cv_have_decl_getopt_clip" >&5
20519 $as_echo "$ac_cv_have_decl_getopt_clip" >&6; }
20520 if test $ac_cv_have_decl_getopt_clip = yes; then
20521 gl_cv_func_gnu_getopt=no
20523 gl_cv_func_gnu_getopt=yes
20527 cat >conftest.$ac_ext <<_ACEOF
20530 cat confdefs.h >>conftest.$ac_ext
20531 cat >>conftest.$ac_ext <<_ACEOF
20532 /* end confdefs.h. */
20533 #include <getopt.h>
20539 myargv[0] = "conftest
";
20542 return getopt (2, myargv, "+a
") != '?';
20548 rm -f conftest$ac_exeext
20549 if { (ac_try="$ac_link"
20550 case "(($ac_try" in
20551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20552 *) ac_try_echo=$ac_try;;
20554 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20555 $as_echo "$ac_try_echo") >&5
20556 (eval "$ac_link") 2>&5
20558 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20559 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20560 { (case "(($ac_try" in
20561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20562 *) ac_try_echo=$ac_try;;
20564 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20565 $as_echo "$ac_try_echo") >&5
20566 (eval "$ac_try") 2>&5
20568 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20569 (exit $ac_status); }; }; then
20570 gl_cv_func_gnu_getopt=yes
20572 $as_echo "$as_me: program exited with status
$ac_status" >&5
20573 $as_echo "$as_me: failed program was
:" >&5
20574 sed 's/^/| /' conftest.$ac_ext >&5
20576 ( exit $ac_status )
20577 gl_cv_func_gnu_getopt=no
20579 rm -rf conftest.dSYM
20580 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20585 { $as_echo "$as_me:$LINENO: result
: $gl_cv_func_gnu_getopt" >&5
20586 $as_echo "$gl_cv_func_gnu_getopt" >&6; }
20587 if test "$gl_cv_func_gnu_getopt" = "no
"; then
20594 if test -n "$GETOPT_H"; then
20599 cat >>confdefs.h <<\_ACEOF
20600 #define __GETOPT_PREFIX rpl_
20606 GETOPTOBJS='getopt.o getopt1.o'
20613 { $as_echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments
" >&5
20614 $as_echo_n "checking whether getpgrp requires zero arguments...
" >&6; }
20615 if test "${ac_cv_func_getpgrp_void+set}" = set; then
20616 $as_echo_n "(cached
) " >&6
20618 # Use it with a single arg.
20619 cat >conftest.$ac_ext <<_ACEOF
20622 cat confdefs.h >>conftest.$ac_ext
20623 cat >>conftest.$ac_ext <<_ACEOF
20624 /* end confdefs.h. */
20625 $ac_includes_default
20634 rm -f conftest.$ac_objext
20635 if { (ac_try="$ac_compile"
20636 case "(($ac_try" in
20637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20638 *) ac_try_echo=$ac_try;;
20640 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20641 $as_echo "$ac_try_echo") >&5
20642 (eval "$ac_compile") 2>conftest.er1
20644 grep -v '^ *+' conftest.er1 >conftest.err
20646 cat conftest.err >&5
20647 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20648 (exit $ac_status); } && {
20649 test -z "$ac_c_werror_flag" ||
20650 test ! -s conftest.err
20651 } && test -s conftest.$ac_objext; then
20652 ac_cv_func_getpgrp_void=no
20654 $as_echo "$as_me: failed program was
:" >&5
20655 sed 's/^/| /' conftest.$ac_ext >&5
20657 ac_cv_func_getpgrp_void=yes
20660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20663 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func_getpgrp_void" >&5
20664 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
20665 if test $ac_cv_func_getpgrp_void = yes; then
20667 cat >>confdefs.h <<\_ACEOF
20668 #define GETPGRP_VOID 1
20675 for ac_func in strftime
20677 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
20678 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
20679 $as_echo_n "checking
for $ac_func...
" >&6; }
20680 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
20681 $as_echo_n "(cached
) " >&6
20683 cat >conftest.$ac_ext <<_ACEOF
20686 cat confdefs.h >>conftest.$ac_ext
20687 cat >>conftest.$ac_ext <<_ACEOF
20688 /* end confdefs.h. */
20689 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20690 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20691 #define $ac_func innocuous_$ac_func
20693 /* System header to define __stub macros and hopefully few prototypes,
20694 which can conflict with char $ac_func (); below.
20695 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20696 <limits.h> exists even on freestanding compilers. */
20699 # include <limits.h>
20701 # include <assert.h>
20706 /* Override any GCC internal prototype to avoid an error.
20707 Use char because int might match the return type of a GCC
20708 builtin and then its argument prototype would still apply. */
20713 /* The GNU C library defines this for functions which it implements
20714 to always fail with ENOSYS. Some functions are actually named
20715 something starting with __ and the normal name is an alias. */
20716 #if defined __stub_$ac_func || defined __stub___$ac_func
20723 return $ac_func ();
20728 rm -f conftest.$ac_objext conftest$ac_exeext
20729 if { (ac_try="$ac_link"
20730 case "(($ac_try" in
20731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20732 *) ac_try_echo=$ac_try;;
20734 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20735 $as_echo "$ac_try_echo") >&5
20736 (eval "$ac_link") 2>conftest.er1
20738 grep -v '^ *+' conftest.er1 >conftest.err
20740 cat conftest.err >&5
20741 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20742 (exit $ac_status); } && {
20743 test -z "$ac_c_werror_flag" ||
20744 test ! -s conftest.err
20745 } && test -s conftest$ac_exeext && {
20746 test "$cross_compiling" = yes ||
20747 $as_test_x conftest$ac_exeext
20749 eval "$as_ac_var=yes"
20751 $as_echo "$as_me: failed program was
:" >&5
20752 sed 's/^/| /' conftest.$ac_ext >&5
20754 eval "$as_ac_var=no
"
20757 rm -rf conftest.dSYM
20758 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20759 conftest$ac_exeext conftest.$ac_ext
20761 ac_res=`eval 'as_val=${'$as_ac_var'}
20762 $as_echo "$as_val"'`
20763 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
20764 $as_echo "$ac_res" >&6; }
20765 if test `eval 'as_val=${'$as_ac_var'}
20766 $as_echo "$as_val"'` = yes; then
20767 cat >>confdefs.h <<_ACEOF
20768 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
20772 # strftime is in -lintl on SCO UNIX.
20773 { $as_echo "$as_me:$LINENO: checking
for strftime
in -lintl" >&5
20774 $as_echo_n "checking
for strftime
in -lintl...
" >&6; }
20775 if test "${ac_cv_lib_intl_strftime+set}" = set; then
20776 $as_echo_n "(cached
) " >&6
20778 ac_check_lib_save_LIBS=$LIBS
20779 LIBS="-lintl $LIBS"
20780 cat >conftest.$ac_ext <<_ACEOF
20783 cat confdefs.h >>conftest.$ac_ext
20784 cat >>conftest.$ac_ext <<_ACEOF
20785 /* end confdefs.h. */
20787 /* Override any GCC internal prototype to avoid an error.
20788 Use char because int might match the return type of a GCC
20789 builtin and then its argument prototype would still apply. */
20797 return strftime ();
20802 rm -f conftest.$ac_objext conftest$ac_exeext
20803 if { (ac_try="$ac_link"
20804 case "(($ac_try" in
20805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20806 *) ac_try_echo=$ac_try;;
20808 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20809 $as_echo "$ac_try_echo") >&5
20810 (eval "$ac_link") 2>conftest.er1
20812 grep -v '^ *+' conftest.er1 >conftest.err
20814 cat conftest.err >&5
20815 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20816 (exit $ac_status); } && {
20817 test -z "$ac_c_werror_flag" ||
20818 test ! -s conftest.err
20819 } && test -s conftest$ac_exeext && {
20820 test "$cross_compiling" = yes ||
20821 $as_test_x conftest$ac_exeext
20823 ac_cv_lib_intl_strftime=yes
20825 $as_echo "$as_me: failed program was
:" >&5
20826 sed 's/^/| /' conftest.$ac_ext >&5
20828 ac_cv_lib_intl_strftime=no
20831 rm -rf conftest.dSYM
20832 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20833 conftest$ac_exeext conftest.$ac_ext
20834 LIBS=$ac_check_lib_save_LIBS
20836 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_intl_strftime" >&5
20837 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
20838 if test $ac_cv_lib_intl_strftime = yes; then
20839 cat >>confdefs.h <<\_ACEOF
20840 #define HAVE_STRFTIME 1
20843 LIBS="-lintl $LIBS"
20852 for ac_func in grantpt
20854 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
20855 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
20856 $as_echo_n "checking
for $ac_func...
" >&6; }
20857 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
20858 $as_echo_n "(cached
) " >&6
20860 cat >conftest.$ac_ext <<_ACEOF
20863 cat confdefs.h >>conftest.$ac_ext
20864 cat >>conftest.$ac_ext <<_ACEOF
20865 /* end confdefs.h. */
20866 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20867 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20868 #define $ac_func innocuous_$ac_func
20870 /* System header to define __stub macros and hopefully few prototypes,
20871 which can conflict with char $ac_func (); below.
20872 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20873 <limits.h> exists even on freestanding compilers. */
20876 # include <limits.h>
20878 # include <assert.h>
20883 /* Override any GCC internal prototype to avoid an error.
20884 Use char because int might match the return type of a GCC
20885 builtin and then its argument prototype would still apply. */
20890 /* The GNU C library defines this for functions which it implements
20891 to always fail with ENOSYS. Some functions are actually named
20892 something starting with __ and the normal name is an alias. */
20893 #if defined __stub_$ac_func || defined __stub___$ac_func
20900 return $ac_func ();
20905 rm -f conftest.$ac_objext conftest$ac_exeext
20906 if { (ac_try="$ac_link"
20907 case "(($ac_try" in
20908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20909 *) ac_try_echo=$ac_try;;
20911 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20912 $as_echo "$ac_try_echo") >&5
20913 (eval "$ac_link") 2>conftest.er1
20915 grep -v '^ *+' conftest.er1 >conftest.err
20917 cat conftest.err >&5
20918 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20919 (exit $ac_status); } && {
20920 test -z "$ac_c_werror_flag" ||
20921 test ! -s conftest.err
20922 } && test -s conftest$ac_exeext && {
20923 test "$cross_compiling" = yes ||
20924 $as_test_x conftest$ac_exeext
20926 eval "$as_ac_var=yes"
20928 $as_echo "$as_me: failed program was
:" >&5
20929 sed 's/^/| /' conftest.$ac_ext >&5
20931 eval "$as_ac_var=no
"
20934 rm -rf conftest.dSYM
20935 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20936 conftest$ac_exeext conftest.$ac_ext
20938 ac_res=`eval 'as_val=${'$as_ac_var'}
20939 $as_echo "$as_val"'`
20940 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
20941 $as_echo "$ac_res" >&6; }
20942 if test `eval 'as_val=${'$as_ac_var'}
20943 $as_echo "$as_val"'` = yes; then
20944 cat >>confdefs.h <<_ACEOF
20945 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
20952 # PTY-related GNU extensions.
20954 for ac_func in getpt
20956 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
20957 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
20958 $as_echo_n "checking
for $ac_func...
" >&6; }
20959 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
20960 $as_echo_n "(cached
) " >&6
20962 cat >conftest.$ac_ext <<_ACEOF
20965 cat confdefs.h >>conftest.$ac_ext
20966 cat >>conftest.$ac_ext <<_ACEOF
20967 /* end confdefs.h. */
20968 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20969 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20970 #define $ac_func innocuous_$ac_func
20972 /* System header to define __stub macros and hopefully few prototypes,
20973 which can conflict with char $ac_func (); below.
20974 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20975 <limits.h> exists even on freestanding compilers. */
20978 # include <limits.h>
20980 # include <assert.h>
20985 /* Override any GCC internal prototype to avoid an error.
20986 Use char because int might match the return type of a GCC
20987 builtin and then its argument prototype would still apply. */
20992 /* The GNU C library defines this for functions which it implements
20993 to always fail with ENOSYS. Some functions are actually named
20994 something starting with __ and the normal name is an alias. */
20995 #if defined __stub_$ac_func || defined __stub___$ac_func
21002 return $ac_func ();
21007 rm -f conftest.$ac_objext conftest$ac_exeext
21008 if { (ac_try="$ac_link"
21009 case "(($ac_try" in
21010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21011 *) ac_try_echo=$ac_try;;
21013 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21014 $as_echo "$ac_try_echo") >&5
21015 (eval "$ac_link") 2>conftest.er1
21017 grep -v '^ *+' conftest.er1 >conftest.err
21019 cat conftest.err >&5
21020 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21021 (exit $ac_status); } && {
21022 test -z "$ac_c_werror_flag" ||
21023 test ! -s conftest.err
21024 } && test -s conftest$ac_exeext && {
21025 test "$cross_compiling" = yes ||
21026 $as_test_x conftest$ac_exeext
21028 eval "$as_ac_var=yes"
21030 $as_echo "$as_me: failed program was
:" >&5
21031 sed 's/^/| /' conftest.$ac_ext >&5
21033 eval "$as_ac_var=no
"
21036 rm -rf conftest.dSYM
21037 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21038 conftest$ac_exeext conftest.$ac_ext
21040 ac_res=`eval 'as_val=${'$as_ac_var'}
21041 $as_echo "$as_val"'`
21042 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
21043 $as_echo "$ac_res" >&6; }
21044 if test `eval 'as_val=${'$as_ac_var'}
21045 $as_echo "$as_val"'` = yes; then
21046 cat >>confdefs.h <<_ACEOF
21047 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
21054 # Check this now, so that we will NOT find the above functions in ncurses.
21055 # That is because we have not set up to link ncurses in lib-src.
21056 # It's better to believe a function is not available
21057 # than to expect to find it in ncurses.
21058 # Also we need tputs and frieds to be able to build at all.
21059 have_tputs_et_al=true
21060 { $as_echo "$as_me:$LINENO: checking
for library containing tputs
" >&5
21061 $as_echo_n "checking
for library containing tputs...
" >&6; }
21062 if test "${ac_cv_search_tputs+set}" = set; then
21063 $as_echo_n "(cached
) " >&6
21065 ac_func_search_save_LIBS=$LIBS
21066 cat >conftest.$ac_ext <<_ACEOF
21069 cat confdefs.h >>conftest.$ac_ext
21070 cat >>conftest.$ac_ext <<_ACEOF
21071 /* end confdefs.h. */
21073 /* Override any GCC internal prototype to avoid an error.
21074 Use char because int might match the return type of a GCC
21075 builtin and then its argument prototype would still apply. */
21088 for ac_lib in '' ncurses terminfo termcap; do
21089 if test -z "$ac_lib"; then
21090 ac_res="none required
"
21093 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21095 rm -f conftest.$ac_objext conftest$ac_exeext
21096 if { (ac_try="$ac_link"
21097 case "(($ac_try" in
21098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21099 *) ac_try_echo=$ac_try;;
21101 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21102 $as_echo "$ac_try_echo") >&5
21103 (eval "$ac_link") 2>conftest.er1
21105 grep -v '^ *+' conftest.er1 >conftest.err
21107 cat conftest.err >&5
21108 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21109 (exit $ac_status); } && {
21110 test -z "$ac_c_werror_flag" ||
21111 test ! -s conftest.err
21112 } && test -s conftest$ac_exeext && {
21113 test "$cross_compiling" = yes ||
21114 $as_test_x conftest$ac_exeext
21116 ac_cv_search_tputs=$ac_res
21118 $as_echo "$as_me: failed program was
:" >&5
21119 sed 's/^/| /' conftest.$ac_ext >&5
21124 rm -rf conftest.dSYM
21125 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21127 if test "${ac_cv_search_tputs+set}" = set; then
21131 if test "${ac_cv_search_tputs+set}" = set; then
21134 ac_cv_search_tputs=no
21136 rm conftest.$ac_ext
21137 LIBS=$ac_func_search_save_LIBS
21139 { $as_echo "$as_me:$LINENO: result
: $ac_cv_search_tputs" >&5
21140 $as_echo "$ac_cv_search_tputs" >&6; }
21141 ac_res=$ac_cv_search_tputs
21142 if test "$ac_res" != no; then
21143 test "$ac_res" = "none required
" || LIBS="$ac_res $LIBS"
21146 have_tputs_et_al=false
21149 if test "$have_tputs_et_al" != true; then
21150 { { $as_echo "$as_me:$LINENO: error
: I couldn
't find termcap functions (tputs and friends).
21151 Maybe some development libraries/packages are missing? Try installing
21152 libncurses-dev(el), libterminfo-dev(el) or similar." >&5
21153 $as_echo "$as_me: error: I couldn't
find termcap functions
(tputs and friends
).
21154 Maybe some development libraries
/packages are missing? Try installing
21155 libncurses-dev
(el
), libterminfo-dev
(el
) or similar.
" >&2;}
21156 { (exit 1); exit 1; }; }
21158 # Must define this when any termcap library is found.
21159 cat >>confdefs.h <<\_ACEOF
21160 #define HAVE_LIBNCURSES 1
21164 # Do we have res_init, for detecting changes in /etc/resolv.conf?
21167 cat >conftest.$ac_ext <<_ACEOF
21170 cat confdefs.h >>conftest.$ac_ext
21171 cat >>conftest.$ac_ext <<_ACEOF
21172 /* end confdefs.h. */
21173 #include <netinet/in.h>
21174 #include <arpa/nameser.h>
21175 #include <resolv.h>
21184 rm -f conftest.$ac_objext conftest$ac_exeext
21185 if { (ac_try="$ac_link"
21186 case "(($ac_try" in
21187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21188 *) ac_try_echo=$ac_try;;
21190 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21191 $as_echo "$ac_try_echo") >&5
21192 (eval "$ac_link") 2>conftest.er1
21194 grep -v '^ *+' conftest.er1 >conftest.err
21196 cat conftest.err >&5
21197 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21198 (exit $ac_status); } && {
21199 test -z "$ac_c_werror_flag" ||
21200 test ! -s conftest.err
21201 } && test -s conftest$ac_exeext && {
21202 test "$cross_compiling" = yes ||
21203 $as_test_x conftest$ac_exeext
21207 $as_echo "$as_me: failed program was
:" >&5
21208 sed 's/^/| /' conftest.$ac_ext >&5
21213 rm -rf conftest.dSYM
21214 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21215 conftest$ac_exeext conftest.$ac_ext
21216 if test "$have_res_init" = no; then
21218 LIBS="$LIBS -lresolv"
21219 { $as_echo "$as_me:$LINENO: checking
for res_init with
-lresolv" >&5
21220 $as_echo_n "checking
for res_init with
-lresolv...
" >&6; }
21221 cat >conftest.$ac_ext <<_ACEOF
21224 cat confdefs.h >>conftest.$ac_ext
21225 cat >>conftest.$ac_ext <<_ACEOF
21226 /* end confdefs.h. */
21227 #include <netinet/in.h>
21228 #include <arpa/nameser.h>
21229 #include <resolv.h>
21238 rm -f conftest.$ac_objext conftest$ac_exeext
21239 if { (ac_try="$ac_link"
21240 case "(($ac_try" in
21241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21242 *) ac_try_echo=$ac_try;;
21244 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21245 $as_echo "$ac_try_echo") >&5
21246 (eval "$ac_link") 2>conftest.er1
21248 grep -v '^ *+' conftest.er1 >conftest.err
21250 cat conftest.err >&5
21251 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21252 (exit $ac_status); } && {
21253 test -z "$ac_c_werror_flag" ||
21254 test ! -s conftest.err
21255 } && test -s conftest$ac_exeext && {
21256 test "$cross_compiling" = yes ||
21257 $as_test_x conftest$ac_exeext
21261 $as_echo "$as_me: failed program was
:" >&5
21262 sed 's/^/| /' conftest.$ac_ext >&5
21267 rm -rf conftest.dSYM
21268 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21269 conftest$ac_exeext conftest.$ac_ext
21270 { $as_echo "$as_me:$LINENO: result
: $have_res_init" >&5
21271 $as_echo "$have_res_init" >&6; }
21272 if test "$have_res_init" = yes ; then
21278 if test "$have_res_init" = yes; then
21280 cat >>confdefs.h <<\_ACEOF
21281 #define HAVE_RES_INIT 1
21286 # Do we need the Hesiod library to provide the support routines?
21288 if test "$with_hesiod" != no ; then
21289 # Don't set $LIBS here -- see comments above. FIXME which comments?
21290 { $as_echo "$as_me:$LINENO: checking
for res_send
" >&5
21291 $as_echo_n "checking
for res_send...
" >&6; }
21292 if test "${ac_cv_func_res_send+set}" = set; then
21293 $as_echo_n "(cached
) " >&6
21295 cat >conftest.$ac_ext <<_ACEOF
21298 cat confdefs.h >>conftest.$ac_ext
21299 cat >>conftest.$ac_ext <<_ACEOF
21300 /* end confdefs.h. */
21301 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
21302 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21303 #define res_send innocuous_res_send
21305 /* System header to define __stub macros and hopefully few prototypes,
21306 which can conflict with char res_send (); below.
21307 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21308 <limits.h> exists even on freestanding compilers. */
21311 # include <limits.h>
21313 # include <assert.h>
21318 /* Override any GCC internal prototype to avoid an error.
21319 Use char because int might match the return type of a GCC
21320 builtin and then its argument prototype would still apply. */
21325 /* The GNU C library defines this for functions which it implements
21326 to always fail with ENOSYS. Some functions are actually named
21327 something starting with __ and the normal name is an alias. */
21328 #if defined __stub_res_send || defined __stub___res_send
21335 return res_send ();
21340 rm -f conftest.$ac_objext conftest$ac_exeext
21341 if { (ac_try="$ac_link"
21342 case "(($ac_try" in
21343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21344 *) ac_try_echo=$ac_try;;
21346 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21347 $as_echo "$ac_try_echo") >&5
21348 (eval "$ac_link") 2>conftest.er1
21350 grep -v '^ *+' conftest.er1 >conftest.err
21352 cat conftest.err >&5
21353 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21354 (exit $ac_status); } && {
21355 test -z "$ac_c_werror_flag" ||
21356 test ! -s conftest.err
21357 } && test -s conftest$ac_exeext && {
21358 test "$cross_compiling" = yes ||
21359 $as_test_x conftest$ac_exeext
21361 ac_cv_func_res_send=yes
21363 $as_echo "$as_me: failed program was
:" >&5
21364 sed 's/^/| /' conftest.$ac_ext >&5
21366 ac_cv_func_res_send=no
21369 rm -rf conftest.dSYM
21370 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21371 conftest$ac_exeext conftest.$ac_ext
21373 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func_res_send" >&5
21374 $as_echo "$ac_cv_func_res_send" >&6; }
21375 if test $ac_cv_func_res_send = yes; then
21378 { $as_echo "$as_me:$LINENO: checking
for __res_send
" >&5
21379 $as_echo_n "checking
for __res_send...
" >&6; }
21380 if test "${ac_cv_func___res_send+set}" = set; then
21381 $as_echo_n "(cached
) " >&6
21383 cat >conftest.$ac_ext <<_ACEOF
21386 cat confdefs.h >>conftest.$ac_ext
21387 cat >>conftest.$ac_ext <<_ACEOF
21388 /* end confdefs.h. */
21389 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
21390 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21391 #define __res_send innocuous___res_send
21393 /* System header to define __stub macros and hopefully few prototypes,
21394 which can conflict with char __res_send (); below.
21395 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21396 <limits.h> exists even on freestanding compilers. */
21399 # include <limits.h>
21401 # include <assert.h>
21406 /* Override any GCC internal prototype to avoid an error.
21407 Use char because int might match the return type of a GCC
21408 builtin and then its argument prototype would still apply. */
21412 char __res_send ();
21413 /* The GNU C library defines this for functions which it implements
21414 to always fail with ENOSYS. Some functions are actually named
21415 something starting with __ and the normal name is an alias. */
21416 #if defined __stub___res_send || defined __stub_____res_send
21423 return __res_send ();
21428 rm -f conftest.$ac_objext conftest$ac_exeext
21429 if { (ac_try="$ac_link"
21430 case "(($ac_try" in
21431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21432 *) ac_try_echo=$ac_try;;
21434 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21435 $as_echo "$ac_try_echo") >&5
21436 (eval "$ac_link") 2>conftest.er1
21438 grep -v '^ *+' conftest.er1 >conftest.err
21440 cat conftest.err >&5
21441 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21442 (exit $ac_status); } && {
21443 test -z "$ac_c_werror_flag" ||
21444 test ! -s conftest.err
21445 } && test -s conftest$ac_exeext && {
21446 test "$cross_compiling" = yes ||
21447 $as_test_x conftest$ac_exeext
21449 ac_cv_func___res_send=yes
21451 $as_echo "$as_me: failed program was
:" >&5
21452 sed 's/^/| /' conftest.$ac_ext >&5
21454 ac_cv_func___res_send=no
21457 rm -rf conftest.dSYM
21458 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21459 conftest$ac_exeext conftest.$ac_ext
21461 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func___res_send" >&5
21462 $as_echo "$ac_cv_func___res_send" >&6; }
21463 if test $ac_cv_func___res_send = yes; then
21466 { $as_echo "$as_me:$LINENO: checking
for res_send
in -lresolv" >&5
21467 $as_echo_n "checking
for res_send
in -lresolv...
" >&6; }
21468 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
21469 $as_echo_n "(cached
) " >&6
21471 ac_check_lib_save_LIBS=$LIBS
21472 LIBS="-lresolv $LIBS"
21473 cat >conftest.$ac_ext <<_ACEOF
21476 cat confdefs.h >>conftest.$ac_ext
21477 cat >>conftest.$ac_ext <<_ACEOF
21478 /* end confdefs.h. */
21480 /* Override any GCC internal prototype to avoid an error.
21481 Use char because int might match the return type of a GCC
21482 builtin and then its argument prototype would still apply. */
21490 return res_send ();
21495 rm -f conftest.$ac_objext conftest$ac_exeext
21496 if { (ac_try="$ac_link"
21497 case "(($ac_try" in
21498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21499 *) ac_try_echo=$ac_try;;
21501 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21502 $as_echo "$ac_try_echo") >&5
21503 (eval "$ac_link") 2>conftest.er1
21505 grep -v '^ *+' conftest.er1 >conftest.err
21507 cat conftest.err >&5
21508 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21509 (exit $ac_status); } && {
21510 test -z "$ac_c_werror_flag" ||
21511 test ! -s conftest.err
21512 } && test -s conftest$ac_exeext && {
21513 test "$cross_compiling" = yes ||
21514 $as_test_x conftest$ac_exeext
21516 ac_cv_lib_resolv_res_send=yes
21518 $as_echo "$as_me: failed program was
:" >&5
21519 sed 's/^/| /' conftest.$ac_ext >&5
21521 ac_cv_lib_resolv_res_send=no
21524 rm -rf conftest.dSYM
21525 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21526 conftest$ac_exeext conftest.$ac_ext
21527 LIBS=$ac_check_lib_save_LIBS
21529 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_resolv_res_send" >&5
21530 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
21531 if test $ac_cv_lib_resolv_res_send = yes; then
21534 { $as_echo "$as_me:$LINENO: checking
for __res_send
in -lresolv" >&5
21535 $as_echo_n "checking
for __res_send
in -lresolv...
" >&6; }
21536 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
21537 $as_echo_n "(cached
) " >&6
21539 ac_check_lib_save_LIBS=$LIBS
21540 LIBS="-lresolv $LIBS"
21541 cat >conftest.$ac_ext <<_ACEOF
21544 cat confdefs.h >>conftest.$ac_ext
21545 cat >>conftest.$ac_ext <<_ACEOF
21546 /* end confdefs.h. */
21548 /* Override any GCC internal prototype to avoid an error.
21549 Use char because int might match the return type of a GCC
21550 builtin and then its argument prototype would still apply. */
21554 char __res_send ();
21558 return __res_send ();
21563 rm -f conftest.$ac_objext conftest$ac_exeext
21564 if { (ac_try="$ac_link"
21565 case "(($ac_try" in
21566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21567 *) ac_try_echo=$ac_try;;
21569 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21570 $as_echo "$ac_try_echo") >&5
21571 (eval "$ac_link") 2>conftest.er1
21573 grep -v '^ *+' conftest.er1 >conftest.err
21575 cat conftest.err >&5
21576 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21577 (exit $ac_status); } && {
21578 test -z "$ac_c_werror_flag" ||
21579 test ! -s conftest.err
21580 } && test -s conftest$ac_exeext && {
21581 test "$cross_compiling" = yes ||
21582 $as_test_x conftest$ac_exeext
21584 ac_cv_lib_resolv___res_send=yes
21586 $as_echo "$as_me: failed program was
:" >&5
21587 sed 's/^/| /' conftest.$ac_ext >&5
21589 ac_cv_lib_resolv___res_send=no
21592 rm -rf conftest.dSYM
21593 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21594 conftest$ac_exeext conftest.$ac_ext
21595 LIBS=$ac_check_lib_save_LIBS
21597 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_resolv___res_send" >&5
21598 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
21599 if test $ac_cv_lib_resolv___res_send = yes; then
21609 if test "$resolv" = yes ; then
21614 { $as_echo "$as_me:$LINENO: checking
for hes_getmailhost
" >&5
21615 $as_echo_n "checking
for hes_getmailhost...
" >&6; }
21616 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
21617 $as_echo_n "(cached
) " >&6
21619 cat >conftest.$ac_ext <<_ACEOF
21622 cat confdefs.h >>conftest.$ac_ext
21623 cat >>conftest.$ac_ext <<_ACEOF
21624 /* end confdefs.h. */
21625 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
21626 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21627 #define hes_getmailhost innocuous_hes_getmailhost
21629 /* System header to define __stub macros and hopefully few prototypes,
21630 which can conflict with char hes_getmailhost (); below.
21631 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21632 <limits.h> exists even on freestanding compilers. */
21635 # include <limits.h>
21637 # include <assert.h>
21640 #undef hes_getmailhost
21642 /* Override any GCC internal prototype to avoid an error.
21643 Use char because int might match the return type of a GCC
21644 builtin and then its argument prototype would still apply. */
21648 char hes_getmailhost ();
21649 /* The GNU C library defines this for functions which it implements
21650 to always fail with ENOSYS. Some functions are actually named
21651 something starting with __ and the normal name is an alias. */
21652 #if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost
21659 return hes_getmailhost ();
21664 rm -f conftest.$ac_objext conftest$ac_exeext
21665 if { (ac_try="$ac_link"
21666 case "(($ac_try" in
21667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21668 *) ac_try_echo=$ac_try;;
21670 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21671 $as_echo "$ac_try_echo") >&5
21672 (eval "$ac_link") 2>conftest.er1
21674 grep -v '^ *+' conftest.er1 >conftest.err
21676 cat conftest.err >&5
21677 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21678 (exit $ac_status); } && {
21679 test -z "$ac_c_werror_flag" ||
21680 test ! -s conftest.err
21681 } && test -s conftest$ac_exeext && {
21682 test "$cross_compiling" = yes ||
21683 $as_test_x conftest$ac_exeext
21685 ac_cv_func_hes_getmailhost=yes
21687 $as_echo "$as_me: failed program was
:" >&5
21688 sed 's/^/| /' conftest.$ac_ext >&5
21690 ac_cv_func_hes_getmailhost=no
21693 rm -rf conftest.dSYM
21694 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21695 conftest$ac_exeext conftest.$ac_ext
21697 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func_hes_getmailhost" >&5
21698 $as_echo "$ac_cv_func_hes_getmailhost" >&6; }
21699 if test $ac_cv_func_hes_getmailhost = yes; then
21702 { $as_echo "$as_me:$LINENO: checking
for hes_getmailhost
in -lhesiod" >&5
21703 $as_echo_n "checking
for hes_getmailhost
in -lhesiod...
" >&6; }
21704 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
21705 $as_echo_n "(cached
) " >&6
21707 ac_check_lib_save_LIBS=$LIBS
21708 LIBS="-lhesiod $RESOLVLIB $LIBS"
21709 cat >conftest.$ac_ext <<_ACEOF
21712 cat confdefs.h >>conftest.$ac_ext
21713 cat >>conftest.$ac_ext <<_ACEOF
21714 /* end confdefs.h. */
21716 /* Override any GCC internal prototype to avoid an error.
21717 Use char because int might match the return type of a GCC
21718 builtin and then its argument prototype would still apply. */
21722 char hes_getmailhost ();
21726 return hes_getmailhost ();
21731 rm -f conftest.$ac_objext conftest$ac_exeext
21732 if { (ac_try="$ac_link"
21733 case "(($ac_try" in
21734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21735 *) ac_try_echo=$ac_try;;
21737 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21738 $as_echo "$ac_try_echo") >&5
21739 (eval "$ac_link") 2>conftest.er1
21741 grep -v '^ *+' conftest.er1 >conftest.err
21743 cat conftest.err >&5
21744 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21745 (exit $ac_status); } && {
21746 test -z "$ac_c_werror_flag" ||
21747 test ! -s conftest.err
21748 } && test -s conftest$ac_exeext && {
21749 test "$cross_compiling" = yes ||
21750 $as_test_x conftest$ac_exeext
21752 ac_cv_lib_hesiod_hes_getmailhost=yes
21754 $as_echo "$as_me: failed program was
:" >&5
21755 sed 's/^/| /' conftest.$ac_ext >&5
21757 ac_cv_lib_hesiod_hes_getmailhost=no
21760 rm -rf conftest.dSYM
21761 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21762 conftest$ac_exeext conftest.$ac_ext
21763 LIBS=$ac_check_lib_save_LIBS
21765 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_hesiod_hes_getmailhost" >&5
21766 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
21767 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
21776 if test x"$hesiod" = xyes; then
21778 cat >>confdefs.h <<\_ACEOF
21779 #define HAVE_LIBHESIOD 1
21787 # Do we need libresolv (due to res_init or Hesiod)?
21788 if test "$resolv" = yes ; then
21790 cat >>confdefs.h <<\_ACEOF
21791 #define HAVE_LIBRESOLV 1
21800 # These tell us which Kerberos-related libraries to use.
21807 if test "${with_kerberos}" != no; then
21808 { $as_echo "$as_me:$LINENO: checking
for com_err
in -lcom_err" >&5
21809 $as_echo_n "checking
for com_err
in -lcom_err...
" >&6; }
21810 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
21811 $as_echo_n "(cached
) " >&6
21813 ac_check_lib_save_LIBS=$LIBS
21814 LIBS="-lcom_err $LIBS"
21815 cat >conftest.$ac_ext <<_ACEOF
21818 cat confdefs.h >>conftest.$ac_ext
21819 cat >>conftest.$ac_ext <<_ACEOF
21820 /* end confdefs.h. */
21822 /* Override any GCC internal prototype to avoid an error.
21823 Use char because int might match the return type of a GCC
21824 builtin and then its argument prototype would still apply. */
21837 rm -f conftest.$ac_objext conftest$ac_exeext
21838 if { (ac_try="$ac_link"
21839 case "(($ac_try" in
21840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21841 *) ac_try_echo=$ac_try;;
21843 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21844 $as_echo "$ac_try_echo") >&5
21845 (eval "$ac_link") 2>conftest.er1
21847 grep -v '^ *+' conftest.er1 >conftest.err
21849 cat conftest.err >&5
21850 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21851 (exit $ac_status); } && {
21852 test -z "$ac_c_werror_flag" ||
21853 test ! -s conftest.err
21854 } && test -s conftest$ac_exeext && {
21855 test "$cross_compiling" = yes ||
21856 $as_test_x conftest$ac_exeext
21858 ac_cv_lib_com_err_com_err=yes
21860 $as_echo "$as_me: failed program was
:" >&5
21861 sed 's/^/| /' conftest.$ac_ext >&5
21863 ac_cv_lib_com_err_com_err=no
21866 rm -rf conftest.dSYM
21867 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21868 conftest$ac_exeext conftest.$ac_ext
21869 LIBS=$ac_check_lib_save_LIBS
21871 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_com_err_com_err" >&5
21872 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
21873 if test $ac_cv_lib_com_err_com_err = yes; then
21879 if test $have_com_err = yes; then
21880 COM_ERRLIB=-lcom_err
21881 LIBS="$COM_ERRLIB $LIBS"
21883 cat >>confdefs.h <<\_ACEOF
21884 #define HAVE_LIBCOM_ERR 1
21888 { $as_echo "$as_me:$LINENO: checking
for mit_des_cbc_encrypt
in -lcrypto" >&5
21889 $as_echo_n "checking
for mit_des_cbc_encrypt
in -lcrypto...
" >&6; }
21890 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
21891 $as_echo_n "(cached
) " >&6
21893 ac_check_lib_save_LIBS=$LIBS
21894 LIBS="-lcrypto $LIBS"
21895 cat >conftest.$ac_ext <<_ACEOF
21898 cat confdefs.h >>conftest.$ac_ext
21899 cat >>conftest.$ac_ext <<_ACEOF
21900 /* end confdefs.h. */
21902 /* Override any GCC internal prototype to avoid an error.
21903 Use char because int might match the return type of a GCC
21904 builtin and then its argument prototype would still apply. */
21908 char mit_des_cbc_encrypt ();
21912 return mit_des_cbc_encrypt ();
21917 rm -f conftest.$ac_objext conftest$ac_exeext
21918 if { (ac_try="$ac_link"
21919 case "(($ac_try" in
21920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21921 *) ac_try_echo=$ac_try;;
21923 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21924 $as_echo "$ac_try_echo") >&5
21925 (eval "$ac_link") 2>conftest.er1
21927 grep -v '^ *+' conftest.er1 >conftest.err
21929 cat conftest.err >&5
21930 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21931 (exit $ac_status); } && {
21932 test -z "$ac_c_werror_flag" ||
21933 test ! -s conftest.err
21934 } && test -s conftest$ac_exeext && {
21935 test "$cross_compiling" = yes ||
21936 $as_test_x conftest$ac_exeext
21938 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
21940 $as_echo "$as_me: failed program was
:" >&5
21941 sed 's/^/| /' conftest.$ac_ext >&5
21943 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
21946 rm -rf conftest.dSYM
21947 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21948 conftest$ac_exeext conftest.$ac_ext
21949 LIBS=$ac_check_lib_save_LIBS
21951 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
21952 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
21953 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
21959 if test $have_crypto = yes; then
21961 LIBS="$CRYPTOLIB $LIBS"
21963 cat >>confdefs.h <<\_ACEOF
21964 #define HAVE_LIBCRYPTO 1
21968 { $as_echo "$as_me:$LINENO: checking
for mit_des_cbc_encrypt
in -lk5crypto" >&5
21969 $as_echo_n "checking
for mit_des_cbc_encrypt
in -lk5crypto...
" >&6; }
21970 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
21971 $as_echo_n "(cached
) " >&6
21973 ac_check_lib_save_LIBS=$LIBS
21974 LIBS="-lk5crypto $LIBS"
21975 cat >conftest.$ac_ext <<_ACEOF
21978 cat confdefs.h >>conftest.$ac_ext
21979 cat >>conftest.$ac_ext <<_ACEOF
21980 /* end confdefs.h. */
21982 /* Override any GCC internal prototype to avoid an error.
21983 Use char because int might match the return type of a GCC
21984 builtin and then its argument prototype would still apply. */
21988 char mit_des_cbc_encrypt ();
21992 return mit_des_cbc_encrypt ();
21997 rm -f conftest.$ac_objext conftest$ac_exeext
21998 if { (ac_try="$ac_link"
21999 case "(($ac_try" in
22000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22001 *) ac_try_echo=$ac_try;;
22003 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22004 $as_echo "$ac_try_echo") >&5
22005 (eval "$ac_link") 2>conftest.er1
22007 grep -v '^ *+' conftest.er1 >conftest.err
22009 cat conftest.err >&5
22010 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22011 (exit $ac_status); } && {
22012 test -z "$ac_c_werror_flag" ||
22013 test ! -s conftest.err
22014 } && test -s conftest$ac_exeext && {
22015 test "$cross_compiling" = yes ||
22016 $as_test_x conftest$ac_exeext
22018 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
22020 $as_echo "$as_me: failed program was
:" >&5
22021 sed 's/^/| /' conftest.$ac_ext >&5
22023 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
22026 rm -rf conftest.dSYM
22027 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22028 conftest$ac_exeext conftest.$ac_ext
22029 LIBS=$ac_check_lib_save_LIBS
22031 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
22032 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
22033 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
22039 if test $have_k5crypto = yes; then
22040 CRYPTOLIB=-lk5crypto
22041 LIBS="$CRYPTOLIB $LIBS"
22043 cat >>confdefs.h <<\_ACEOF
22044 #define HAVE_LIBK5CRYPTO 1
22048 { $as_echo "$as_me:$LINENO: checking
for krb5_init_context
in -lkrb5" >&5
22049 $as_echo_n "checking
for krb5_init_context
in -lkrb5...
" >&6; }
22050 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
22051 $as_echo_n "(cached
) " >&6
22053 ac_check_lib_save_LIBS=$LIBS
22054 LIBS="-lkrb5 $LIBS"
22055 cat >conftest.$ac_ext <<_ACEOF
22058 cat confdefs.h >>conftest.$ac_ext
22059 cat >>conftest.$ac_ext <<_ACEOF
22060 /* end confdefs.h. */
22062 /* Override any GCC internal prototype to avoid an error.
22063 Use char because int might match the return type of a GCC
22064 builtin and then its argument prototype would still apply. */
22068 char krb5_init_context ();
22072 return krb5_init_context ();
22077 rm -f conftest.$ac_objext conftest$ac_exeext
22078 if { (ac_try="$ac_link"
22079 case "(($ac_try" in
22080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22081 *) ac_try_echo=$ac_try;;
22083 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22084 $as_echo "$ac_try_echo") >&5
22085 (eval "$ac_link") 2>conftest.er1
22087 grep -v '^ *+' conftest.er1 >conftest.err
22089 cat conftest.err >&5
22090 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22091 (exit $ac_status); } && {
22092 test -z "$ac_c_werror_flag" ||
22093 test ! -s conftest.err
22094 } && test -s conftest$ac_exeext && {
22095 test "$cross_compiling" = yes ||
22096 $as_test_x conftest$ac_exeext
22098 ac_cv_lib_krb5_krb5_init_context=yes
22100 $as_echo "$as_me: failed program was
:" >&5
22101 sed 's/^/| /' conftest.$ac_ext >&5
22103 ac_cv_lib_krb5_krb5_init_context=no
22106 rm -rf conftest.dSYM
22107 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22108 conftest$ac_exeext conftest.$ac_ext
22109 LIBS=$ac_check_lib_save_LIBS
22111 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_krb5_krb5_init_context" >&5
22112 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
22113 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
22119 if test $have_krb5=yes; then
22121 LIBS="$KRB5LIB $LIBS"
22123 cat >>confdefs.h <<\_ACEOF
22124 #define HAVE_LIBKRB5 1
22128 if test "${with_kerberos5}" = no; then
22129 { $as_echo "$as_me:$LINENO: checking
for des_cbc_encrypt
in -ldes425" >&5
22130 $as_echo_n "checking
for des_cbc_encrypt
in -ldes425...
" >&6; }
22131 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
22132 $as_echo_n "(cached
) " >&6
22134 ac_check_lib_save_LIBS=$LIBS
22135 LIBS="-ldes425 $LIBS"
22136 cat >conftest.$ac_ext <<_ACEOF
22139 cat confdefs.h >>conftest.$ac_ext
22140 cat >>conftest.$ac_ext <<_ACEOF
22141 /* end confdefs.h. */
22143 /* Override any GCC internal prototype to avoid an error.
22144 Use char because int might match the return type of a GCC
22145 builtin and then its argument prototype would still apply. */
22149 char des_cbc_encrypt ();
22153 return des_cbc_encrypt ();
22158 rm -f conftest.$ac_objext conftest$ac_exeext
22159 if { (ac_try="$ac_link"
22160 case "(($ac_try" in
22161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22162 *) ac_try_echo=$ac_try;;
22164 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22165 $as_echo "$ac_try_echo") >&5
22166 (eval "$ac_link") 2>conftest.er1
22168 grep -v '^ *+' conftest.er1 >conftest.err
22170 cat conftest.err >&5
22171 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22172 (exit $ac_status); } && {
22173 test -z "$ac_c_werror_flag" ||
22174 test ! -s conftest.err
22175 } && test -s conftest$ac_exeext && {
22176 test "$cross_compiling" = yes ||
22177 $as_test_x conftest$ac_exeext
22179 ac_cv_lib_des425_des_cbc_encrypt=yes
22181 $as_echo "$as_me: failed program was
:" >&5
22182 sed 's/^/| /' conftest.$ac_ext >&5
22184 ac_cv_lib_des425_des_cbc_encrypt=no
22187 rm -rf conftest.dSYM
22188 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22189 conftest$ac_exeext conftest.$ac_ext
22190 LIBS=$ac_check_lib_save_LIBS
22192 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_des425_des_cbc_encrypt" >&5
22193 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
22194 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
22200 if test $have_des425 = yes; then
22202 LIBS="$DESLIB $LIBS"
22204 cat >>confdefs.h <<\_ACEOF
22205 #define HAVE_LIBDES425 1
22209 { $as_echo "$as_me:$LINENO: checking
for des_cbc_encrypt
in -ldes" >&5
22210 $as_echo_n "checking
for des_cbc_encrypt
in -ldes...
" >&6; }
22211 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
22212 $as_echo_n "(cached
) " >&6
22214 ac_check_lib_save_LIBS=$LIBS
22216 cat >conftest.$ac_ext <<_ACEOF
22219 cat confdefs.h >>conftest.$ac_ext
22220 cat >>conftest.$ac_ext <<_ACEOF
22221 /* end confdefs.h. */
22223 /* Override any GCC internal prototype to avoid an error.
22224 Use char because int might match the return type of a GCC
22225 builtin and then its argument prototype would still apply. */
22229 char des_cbc_encrypt ();
22233 return des_cbc_encrypt ();
22238 rm -f conftest.$ac_objext conftest$ac_exeext
22239 if { (ac_try="$ac_link"
22240 case "(($ac_try" in
22241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22242 *) ac_try_echo=$ac_try;;
22244 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22245 $as_echo "$ac_try_echo") >&5
22246 (eval "$ac_link") 2>conftest.er1
22248 grep -v '^ *+' conftest.er1 >conftest.err
22250 cat conftest.err >&5
22251 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22252 (exit $ac_status); } && {
22253 test -z "$ac_c_werror_flag" ||
22254 test ! -s conftest.err
22255 } && test -s conftest$ac_exeext && {
22256 test "$cross_compiling" = yes ||
22257 $as_test_x conftest$ac_exeext
22259 ac_cv_lib_des_des_cbc_encrypt=yes
22261 $as_echo "$as_me: failed program was
:" >&5
22262 sed 's/^/| /' conftest.$ac_ext >&5
22264 ac_cv_lib_des_des_cbc_encrypt=no
22267 rm -rf conftest.dSYM
22268 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22269 conftest$ac_exeext conftest.$ac_ext
22270 LIBS=$ac_check_lib_save_LIBS
22272 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_des_des_cbc_encrypt" >&5
22273 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
22274 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
22280 if test $have_des = yes; then
22282 LIBS="$DESLIB $LIBS"
22284 cat >>confdefs.h <<\_ACEOF
22285 #define HAVE_LIBDES 1
22290 { $as_echo "$as_me:$LINENO: checking
for krb_get_cred
in -lkrb4" >&5
22291 $as_echo_n "checking
for krb_get_cred
in -lkrb4...
" >&6; }
22292 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
22293 $as_echo_n "(cached
) " >&6
22295 ac_check_lib_save_LIBS=$LIBS
22296 LIBS="-lkrb4 $LIBS"
22297 cat >conftest.$ac_ext <<_ACEOF
22300 cat confdefs.h >>conftest.$ac_ext
22301 cat >>conftest.$ac_ext <<_ACEOF
22302 /* end confdefs.h. */
22304 /* Override any GCC internal prototype to avoid an error.
22305 Use char because int might match the return type of a GCC
22306 builtin and then its argument prototype would still apply. */
22310 char krb_get_cred ();
22314 return krb_get_cred ();
22319 rm -f conftest.$ac_objext conftest$ac_exeext
22320 if { (ac_try="$ac_link"
22321 case "(($ac_try" in
22322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22323 *) ac_try_echo=$ac_try;;
22325 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22326 $as_echo "$ac_try_echo") >&5
22327 (eval "$ac_link") 2>conftest.er1
22329 grep -v '^ *+' conftest.er1 >conftest.err
22331 cat conftest.err >&5
22332 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22333 (exit $ac_status); } && {
22334 test -z "$ac_c_werror_flag" ||
22335 test ! -s conftest.err
22336 } && test -s conftest$ac_exeext && {
22337 test "$cross_compiling" = yes ||
22338 $as_test_x conftest$ac_exeext
22340 ac_cv_lib_krb4_krb_get_cred=yes
22342 $as_echo "$as_me: failed program was
:" >&5
22343 sed 's/^/| /' conftest.$ac_ext >&5
22345 ac_cv_lib_krb4_krb_get_cred=no
22348 rm -rf conftest.dSYM
22349 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22350 conftest$ac_exeext conftest.$ac_ext
22351 LIBS=$ac_check_lib_save_LIBS
22353 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_krb4_krb_get_cred" >&5
22354 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
22355 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
22361 if test $have_krb4 = yes; then
22363 LIBS="$KRB4LIB $LIBS"
22365 cat >>confdefs.h <<\_ACEOF
22366 #define HAVE_LIBKRB4 1
22370 { $as_echo "$as_me:$LINENO: checking
for krb_get_cred
in -lkrb" >&5
22371 $as_echo_n "checking
for krb_get_cred
in -lkrb...
" >&6; }
22372 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
22373 $as_echo_n "(cached
) " >&6
22375 ac_check_lib_save_LIBS=$LIBS
22377 cat >conftest.$ac_ext <<_ACEOF
22380 cat confdefs.h >>conftest.$ac_ext
22381 cat >>conftest.$ac_ext <<_ACEOF
22382 /* end confdefs.h. */
22384 /* Override any GCC internal prototype to avoid an error.
22385 Use char because int might match the return type of a GCC
22386 builtin and then its argument prototype would still apply. */
22390 char krb_get_cred ();
22394 return krb_get_cred ();
22399 rm -f conftest.$ac_objext conftest$ac_exeext
22400 if { (ac_try="$ac_link"
22401 case "(($ac_try" in
22402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22403 *) ac_try_echo=$ac_try;;
22405 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22406 $as_echo "$ac_try_echo") >&5
22407 (eval "$ac_link") 2>conftest.er1
22409 grep -v '^ *+' conftest.er1 >conftest.err
22411 cat conftest.err >&5
22412 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22413 (exit $ac_status); } && {
22414 test -z "$ac_c_werror_flag" ||
22415 test ! -s conftest.err
22416 } && test -s conftest$ac_exeext && {
22417 test "$cross_compiling" = yes ||
22418 $as_test_x conftest$ac_exeext
22420 ac_cv_lib_krb_krb_get_cred=yes
22422 $as_echo "$as_me: failed program was
:" >&5
22423 sed 's/^/| /' conftest.$ac_ext >&5
22425 ac_cv_lib_krb_krb_get_cred=no
22428 rm -rf conftest.dSYM
22429 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22430 conftest$ac_exeext conftest.$ac_ext
22431 LIBS=$ac_check_lib_save_LIBS
22433 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_krb_krb_get_cred" >&5
22434 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
22435 if test $ac_cv_lib_krb_krb_get_cred = yes; then
22441 if test $have_krb = yes; then
22443 LIBS="$KRB4LIB $LIBS"
22445 cat >>confdefs.h <<\_ACEOF
22446 #define HAVE_LIBKRB 1
22453 if test "${with_kerberos5}" != no; then
22455 for ac_header in krb5.h
22457 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
22458 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22459 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
22460 $as_echo_n "checking
for $ac_header...
" >&6; }
22461 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22462 $as_echo_n "(cached
) " >&6
22464 ac_res=`eval 'as_val=${'$as_ac_Header'}
22465 $as_echo "$as_val"'`
22466 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
22467 $as_echo "$ac_res" >&6; }
22469 # Is the header compilable?
22470 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
22471 $as_echo_n "checking
$ac_header usability...
" >&6; }
22472 cat >conftest.$ac_ext <<_ACEOF
22475 cat confdefs.h >>conftest.$ac_ext
22476 cat >>conftest.$ac_ext <<_ACEOF
22477 /* end confdefs.h. */
22478 $ac_includes_default
22479 #include <$ac_header>
22481 rm -f conftest.$ac_objext
22482 if { (ac_try="$ac_compile"
22483 case "(($ac_try" in
22484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22485 *) ac_try_echo=$ac_try;;
22487 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22488 $as_echo "$ac_try_echo") >&5
22489 (eval "$ac_compile") 2>conftest.er1
22491 grep -v '^ *+' conftest.er1 >conftest.err
22493 cat conftest.err >&5
22494 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22495 (exit $ac_status); } && {
22496 test -z "$ac_c_werror_flag" ||
22497 test ! -s conftest.err
22498 } && test -s conftest.$ac_objext; then
22499 ac_header_compiler=yes
22501 $as_echo "$as_me: failed program was
:" >&5
22502 sed 's/^/| /' conftest.$ac_ext >&5
22504 ac_header_compiler=no
22507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22508 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22509 $as_echo "$ac_header_compiler" >&6; }
22511 # Is the header present?
22512 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
22513 $as_echo_n "checking
$ac_header presence...
" >&6; }
22514 cat >conftest.$ac_ext <<_ACEOF
22517 cat confdefs.h >>conftest.$ac_ext
22518 cat >>conftest.$ac_ext <<_ACEOF
22519 /* end confdefs.h. */
22520 #include <$ac_header>
22522 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22523 case "(($ac_try" in
22524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22525 *) ac_try_echo=$ac_try;;
22527 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22528 $as_echo "$ac_try_echo") >&5
22529 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22531 grep -v '^ *+' conftest.er1 >conftest.err
22533 cat conftest.err >&5
22534 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22535 (exit $ac_status); } >/dev/null && {
22536 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22537 test ! -s conftest.err
22539 ac_header_preproc=yes
22541 $as_echo "$as_me: failed program was
:" >&5
22542 sed 's/^/| /' conftest.$ac_ext >&5
22544 ac_header_preproc=no
22547 rm -f conftest.err conftest.$ac_ext
22548 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22549 $as_echo "$ac_header_preproc" >&6; }
22551 # So? What about this header?
22552 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22554 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
22555 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22556 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
22557 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
22558 ac_header_preproc=yes
22561 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
22562 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
22563 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
22564 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
22565 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
22566 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
22567 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
22568 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
22569 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
22570 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
22571 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
22572 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
22576 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
22577 $as_echo_n "checking
for $ac_header...
" >&6; }
22578 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22579 $as_echo_n "(cached
) " >&6
22581 eval "$as_ac_Header=\
$ac_header_preproc"
22583 ac_res=`eval 'as_val=${'$as_ac_Header'}
22584 $as_echo "$as_val"'`
22585 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
22586 $as_echo "$ac_res" >&6; }
22589 if test `eval 'as_val=${'$as_ac_Header'}
22590 $as_echo "$as_val"'` = yes; then
22591 cat >>confdefs.h <<_ACEOF
22592 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
22594 { $as_echo "$as_me:$LINENO: checking
for krb5_error.text
" >&5
22595 $as_echo_n "checking
for krb5_error.text...
" >&6; }
22596 if test "${ac_cv_member_krb5_error_text+set}" = set; then
22597 $as_echo_n "(cached
) " >&6
22599 cat >conftest.$ac_ext <<_ACEOF
22602 cat confdefs.h >>conftest.$ac_ext
22603 cat >>conftest.$ac_ext <<_ACEOF
22604 /* end confdefs.h. */
22610 static krb5_error ac_aggr;
22617 rm -f conftest.$ac_objext
22618 if { (ac_try="$ac_compile"
22619 case "(($ac_try" in
22620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22621 *) ac_try_echo=$ac_try;;
22623 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22624 $as_echo "$ac_try_echo") >&5
22625 (eval "$ac_compile") 2>conftest.er1
22627 grep -v '^ *+' conftest.er1 >conftest.err
22629 cat conftest.err >&5
22630 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22631 (exit $ac_status); } && {
22632 test -z "$ac_c_werror_flag" ||
22633 test ! -s conftest.err
22634 } && test -s conftest.$ac_objext; then
22635 ac_cv_member_krb5_error_text=yes
22637 $as_echo "$as_me: failed program was
:" >&5
22638 sed 's/^/| /' conftest.$ac_ext >&5
22640 cat >conftest.$ac_ext <<_ACEOF
22643 cat confdefs.h >>conftest.$ac_ext
22644 cat >>conftest.$ac_ext <<_ACEOF
22645 /* end confdefs.h. */
22651 static krb5_error ac_aggr;
22652 if (sizeof ac_aggr.text)
22658 rm -f conftest.$ac_objext
22659 if { (ac_try="$ac_compile"
22660 case "(($ac_try" in
22661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22662 *) ac_try_echo=$ac_try;;
22664 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22665 $as_echo "$ac_try_echo") >&5
22666 (eval "$ac_compile") 2>conftest.er1
22668 grep -v '^ *+' conftest.er1 >conftest.err
22670 cat conftest.err >&5
22671 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22672 (exit $ac_status); } && {
22673 test -z "$ac_c_werror_flag" ||
22674 test ! -s conftest.err
22675 } && test -s conftest.$ac_objext; then
22676 ac_cv_member_krb5_error_text=yes
22678 $as_echo "$as_me: failed program was
:" >&5
22679 sed 's/^/| /' conftest.$ac_ext >&5
22681 ac_cv_member_krb5_error_text=no
22684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22689 { $as_echo "$as_me:$LINENO: result
: $ac_cv_member_krb5_error_text" >&5
22690 $as_echo "$ac_cv_member_krb5_error_text" >&6; }
22691 if test $ac_cv_member_krb5_error_text = yes; then
22693 cat >>confdefs.h <<_ACEOF
22694 #define HAVE_KRB5_ERROR_TEXT 1
22699 { $as_echo "$as_me:$LINENO: checking
for krb5_error.e_text
" >&5
22700 $as_echo_n "checking
for krb5_error.e_text...
" >&6; }
22701 if test "${ac_cv_member_krb5_error_e_text+set}" = set; then
22702 $as_echo_n "(cached
) " >&6
22704 cat >conftest.$ac_ext <<_ACEOF
22707 cat confdefs.h >>conftest.$ac_ext
22708 cat >>conftest.$ac_ext <<_ACEOF
22709 /* end confdefs.h. */
22715 static krb5_error ac_aggr;
22716 if (ac_aggr.e_text)
22722 rm -f conftest.$ac_objext
22723 if { (ac_try="$ac_compile"
22724 case "(($ac_try" in
22725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22726 *) ac_try_echo=$ac_try;;
22728 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22729 $as_echo "$ac_try_echo") >&5
22730 (eval "$ac_compile") 2>conftest.er1
22732 grep -v '^ *+' conftest.er1 >conftest.err
22734 cat conftest.err >&5
22735 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22736 (exit $ac_status); } && {
22737 test -z "$ac_c_werror_flag" ||
22738 test ! -s conftest.err
22739 } && test -s conftest.$ac_objext; then
22740 ac_cv_member_krb5_error_e_text=yes
22742 $as_echo "$as_me: failed program was
:" >&5
22743 sed 's/^/| /' conftest.$ac_ext >&5
22745 cat >conftest.$ac_ext <<_ACEOF
22748 cat confdefs.h >>conftest.$ac_ext
22749 cat >>conftest.$ac_ext <<_ACEOF
22750 /* end confdefs.h. */
22756 static krb5_error ac_aggr;
22757 if (sizeof ac_aggr.e_text)
22763 rm -f conftest.$ac_objext
22764 if { (ac_try="$ac_compile"
22765 case "(($ac_try" in
22766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22767 *) ac_try_echo=$ac_try;;
22769 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22770 $as_echo "$ac_try_echo") >&5
22771 (eval "$ac_compile") 2>conftest.er1
22773 grep -v '^ *+' conftest.er1 >conftest.err
22775 cat conftest.err >&5
22776 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22777 (exit $ac_status); } && {
22778 test -z "$ac_c_werror_flag" ||
22779 test ! -s conftest.err
22780 } && test -s conftest.$ac_objext; then
22781 ac_cv_member_krb5_error_e_text=yes
22783 $as_echo "$as_me: failed program was
:" >&5
22784 sed 's/^/| /' conftest.$ac_ext >&5
22786 ac_cv_member_krb5_error_e_text=no
22789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22794 { $as_echo "$as_me:$LINENO: result
: $ac_cv_member_krb5_error_e_text" >&5
22795 $as_echo "$ac_cv_member_krb5_error_e_text" >&6; }
22796 if test $ac_cv_member_krb5_error_e_text = yes; then
22798 cat >>confdefs.h <<_ACEOF
22799 #define HAVE_KRB5_ERROR_E_TEXT 1
22811 for ac_header in des.h
22813 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
22814 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22815 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
22816 $as_echo_n "checking
for $ac_header...
" >&6; }
22817 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22818 $as_echo_n "(cached
) " >&6
22820 ac_res=`eval 'as_val=${'$as_ac_Header'}
22821 $as_echo "$as_val"'`
22822 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
22823 $as_echo "$ac_res" >&6; }
22825 # Is the header compilable?
22826 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
22827 $as_echo_n "checking
$ac_header usability...
" >&6; }
22828 cat >conftest.$ac_ext <<_ACEOF
22831 cat confdefs.h >>conftest.$ac_ext
22832 cat >>conftest.$ac_ext <<_ACEOF
22833 /* end confdefs.h. */
22834 $ac_includes_default
22835 #include <$ac_header>
22837 rm -f conftest.$ac_objext
22838 if { (ac_try="$ac_compile"
22839 case "(($ac_try" in
22840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22841 *) ac_try_echo=$ac_try;;
22843 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22844 $as_echo "$ac_try_echo") >&5
22845 (eval "$ac_compile") 2>conftest.er1
22847 grep -v '^ *+' conftest.er1 >conftest.err
22849 cat conftest.err >&5
22850 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22851 (exit $ac_status); } && {
22852 test -z "$ac_c_werror_flag" ||
22853 test ! -s conftest.err
22854 } && test -s conftest.$ac_objext; then
22855 ac_header_compiler=yes
22857 $as_echo "$as_me: failed program was
:" >&5
22858 sed 's/^/| /' conftest.$ac_ext >&5
22860 ac_header_compiler=no
22863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22864 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22865 $as_echo "$ac_header_compiler" >&6; }
22867 # Is the header present?
22868 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
22869 $as_echo_n "checking
$ac_header presence...
" >&6; }
22870 cat >conftest.$ac_ext <<_ACEOF
22873 cat confdefs.h >>conftest.$ac_ext
22874 cat >>conftest.$ac_ext <<_ACEOF
22875 /* end confdefs.h. */
22876 #include <$ac_header>
22878 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22879 case "(($ac_try" in
22880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22881 *) ac_try_echo=$ac_try;;
22883 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22884 $as_echo "$ac_try_echo") >&5
22885 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22887 grep -v '^ *+' conftest.er1 >conftest.err
22889 cat conftest.err >&5
22890 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22891 (exit $ac_status); } >/dev/null && {
22892 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22893 test ! -s conftest.err
22895 ac_header_preproc=yes
22897 $as_echo "$as_me: failed program was
:" >&5
22898 sed 's/^/| /' conftest.$ac_ext >&5
22900 ac_header_preproc=no
22903 rm -f conftest.err conftest.$ac_ext
22904 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22905 $as_echo "$ac_header_preproc" >&6; }
22907 # So? What about this header?
22908 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22910 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
22911 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22912 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
22913 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
22914 ac_header_preproc=yes
22917 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
22918 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
22919 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
22920 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
22921 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
22922 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
22923 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
22924 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
22925 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
22926 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
22927 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
22928 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
22932 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
22933 $as_echo_n "checking
for $ac_header...
" >&6; }
22934 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22935 $as_echo_n "(cached
) " >&6
22937 eval "$as_ac_Header=\
$ac_header_preproc"
22939 ac_res=`eval 'as_val=${'$as_ac_Header'}
22940 $as_echo "$as_val"'`
22941 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
22942 $as_echo "$ac_res" >&6; }
22945 if test `eval 'as_val=${'$as_ac_Header'}
22946 $as_echo "$as_val"'` = yes; then
22947 cat >>confdefs.h <<_ACEOF
22948 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
22953 for ac_header in kerberosIV/des.h
22955 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
22956 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22957 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
22958 $as_echo_n "checking
for $ac_header...
" >&6; }
22959 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22960 $as_echo_n "(cached
) " >&6
22962 ac_res=`eval 'as_val=${'$as_ac_Header'}
22963 $as_echo "$as_val"'`
22964 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
22965 $as_echo "$ac_res" >&6; }
22967 # Is the header compilable?
22968 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
22969 $as_echo_n "checking
$ac_header usability...
" >&6; }
22970 cat >conftest.$ac_ext <<_ACEOF
22973 cat confdefs.h >>conftest.$ac_ext
22974 cat >>conftest.$ac_ext <<_ACEOF
22975 /* end confdefs.h. */
22976 $ac_includes_default
22977 #include <$ac_header>
22979 rm -f conftest.$ac_objext
22980 if { (ac_try="$ac_compile"
22981 case "(($ac_try" in
22982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22983 *) ac_try_echo=$ac_try;;
22985 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22986 $as_echo "$ac_try_echo") >&5
22987 (eval "$ac_compile") 2>conftest.er1
22989 grep -v '^ *+' conftest.er1 >conftest.err
22991 cat conftest.err >&5
22992 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22993 (exit $ac_status); } && {
22994 test -z "$ac_c_werror_flag" ||
22995 test ! -s conftest.err
22996 } && test -s conftest.$ac_objext; then
22997 ac_header_compiler=yes
22999 $as_echo "$as_me: failed program was
:" >&5
23000 sed 's/^/| /' conftest.$ac_ext >&5
23002 ac_header_compiler=no
23005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23006 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
23007 $as_echo "$ac_header_compiler" >&6; }
23009 # Is the header present?
23010 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
23011 $as_echo_n "checking
$ac_header presence...
" >&6; }
23012 cat >conftest.$ac_ext <<_ACEOF
23015 cat confdefs.h >>conftest.$ac_ext
23016 cat >>conftest.$ac_ext <<_ACEOF
23017 /* end confdefs.h. */
23018 #include <$ac_header>
23020 if { (ac_try="$ac_cpp conftest.
$ac_ext"
23021 case "(($ac_try" in
23022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23023 *) ac_try_echo=$ac_try;;
23025 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23026 $as_echo "$ac_try_echo") >&5
23027 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
23029 grep -v '^ *+' conftest.er1 >conftest.err
23031 cat conftest.err >&5
23032 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23033 (exit $ac_status); } >/dev/null && {
23034 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23035 test ! -s conftest.err
23037 ac_header_preproc=yes
23039 $as_echo "$as_me: failed program was
:" >&5
23040 sed 's/^/| /' conftest.$ac_ext >&5
23042 ac_header_preproc=no
23045 rm -f conftest.err conftest.$ac_ext
23046 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
23047 $as_echo "$ac_header_preproc" >&6; }
23049 # So? What about this header?
23050 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23052 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
23053 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
23054 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
23055 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
23056 ac_header_preproc=yes
23059 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
23060 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
23061 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
23062 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
23063 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
23064 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
23065 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
23066 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
23067 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
23068 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
23069 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
23070 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
23074 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
23075 $as_echo_n "checking
for $ac_header...
" >&6; }
23076 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23077 $as_echo_n "(cached
) " >&6
23079 eval "$as_ac_Header=\
$ac_header_preproc"
23081 ac_res=`eval 'as_val=${'$as_ac_Header'}
23082 $as_echo "$as_val"'`
23083 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
23084 $as_echo "$ac_res" >&6; }
23087 if test `eval 'as_val=${'$as_ac_Header'}
23088 $as_echo "$as_val"'` = yes; then
23089 cat >>confdefs.h <<_ACEOF
23090 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
23095 for ac_header in kerberos/des.h
23097 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
23098 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23099 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
23100 $as_echo_n "checking
for $ac_header...
" >&6; }
23101 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23102 $as_echo_n "(cached
) " >&6
23104 ac_res=`eval 'as_val=${'$as_ac_Header'}
23105 $as_echo "$as_val"'`
23106 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
23107 $as_echo "$ac_res" >&6; }
23109 # Is the header compilable?
23110 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
23111 $as_echo_n "checking
$ac_header usability...
" >&6; }
23112 cat >conftest.$ac_ext <<_ACEOF
23115 cat confdefs.h >>conftest.$ac_ext
23116 cat >>conftest.$ac_ext <<_ACEOF
23117 /* end confdefs.h. */
23118 $ac_includes_default
23119 #include <$ac_header>
23121 rm -f conftest.$ac_objext
23122 if { (ac_try="$ac_compile"
23123 case "(($ac_try" in
23124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23125 *) ac_try_echo=$ac_try;;
23127 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23128 $as_echo "$ac_try_echo") >&5
23129 (eval "$ac_compile") 2>conftest.er1
23131 grep -v '^ *+' conftest.er1 >conftest.err
23133 cat conftest.err >&5
23134 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23135 (exit $ac_status); } && {
23136 test -z "$ac_c_werror_flag" ||
23137 test ! -s conftest.err
23138 } && test -s conftest.$ac_objext; then
23139 ac_header_compiler=yes
23141 $as_echo "$as_me: failed program was
:" >&5
23142 sed 's/^/| /' conftest.$ac_ext >&5
23144 ac_header_compiler=no
23147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23148 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
23149 $as_echo "$ac_header_compiler" >&6; }
23151 # Is the header present?
23152 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
23153 $as_echo_n "checking
$ac_header presence...
" >&6; }
23154 cat >conftest.$ac_ext <<_ACEOF
23157 cat confdefs.h >>conftest.$ac_ext
23158 cat >>conftest.$ac_ext <<_ACEOF
23159 /* end confdefs.h. */
23160 #include <$ac_header>
23162 if { (ac_try="$ac_cpp conftest.
$ac_ext"
23163 case "(($ac_try" in
23164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23165 *) ac_try_echo=$ac_try;;
23167 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23168 $as_echo "$ac_try_echo") >&5
23169 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
23171 grep -v '^ *+' conftest.er1 >conftest.err
23173 cat conftest.err >&5
23174 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23175 (exit $ac_status); } >/dev/null && {
23176 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23177 test ! -s conftest.err
23179 ac_header_preproc=yes
23181 $as_echo "$as_me: failed program was
:" >&5
23182 sed 's/^/| /' conftest.$ac_ext >&5
23184 ac_header_preproc=no
23187 rm -f conftest.err conftest.$ac_ext
23188 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
23189 $as_echo "$ac_header_preproc" >&6; }
23191 # So? What about this header?
23192 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23194 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
23195 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
23196 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
23197 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
23198 ac_header_preproc=yes
23201 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
23202 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
23203 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
23204 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
23205 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
23206 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
23207 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
23208 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
23209 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
23210 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
23211 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
23212 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
23216 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
23217 $as_echo_n "checking
for $ac_header...
" >&6; }
23218 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23219 $as_echo_n "(cached
) " >&6
23221 eval "$as_ac_Header=\
$ac_header_preproc"
23223 ac_res=`eval 'as_val=${'$as_ac_Header'}
23224 $as_echo "$as_val"'`
23225 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
23226 $as_echo "$ac_res" >&6; }
23229 if test `eval 'as_val=${'$as_ac_Header'}
23230 $as_echo "$as_val"'` = yes; then
23231 cat >>confdefs.h <<_ACEOF
23232 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
23248 for ac_header in krb.h
23250 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
23251 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23252 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
23253 $as_echo_n "checking
for $ac_header...
" >&6; }
23254 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23255 $as_echo_n "(cached
) " >&6
23257 ac_res=`eval 'as_val=${'$as_ac_Header'}
23258 $as_echo "$as_val"'`
23259 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
23260 $as_echo "$ac_res" >&6; }
23262 # Is the header compilable?
23263 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
23264 $as_echo_n "checking
$ac_header usability...
" >&6; }
23265 cat >conftest.$ac_ext <<_ACEOF
23268 cat confdefs.h >>conftest.$ac_ext
23269 cat >>conftest.$ac_ext <<_ACEOF
23270 /* end confdefs.h. */
23271 $ac_includes_default
23272 #include <$ac_header>
23274 rm -f conftest.$ac_objext
23275 if { (ac_try="$ac_compile"
23276 case "(($ac_try" in
23277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23278 *) ac_try_echo=$ac_try;;
23280 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23281 $as_echo "$ac_try_echo") >&5
23282 (eval "$ac_compile") 2>conftest.er1
23284 grep -v '^ *+' conftest.er1 >conftest.err
23286 cat conftest.err >&5
23287 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23288 (exit $ac_status); } && {
23289 test -z "$ac_c_werror_flag" ||
23290 test ! -s conftest.err
23291 } && test -s conftest.$ac_objext; then
23292 ac_header_compiler=yes
23294 $as_echo "$as_me: failed program was
:" >&5
23295 sed 's/^/| /' conftest.$ac_ext >&5
23297 ac_header_compiler=no
23300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23301 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
23302 $as_echo "$ac_header_compiler" >&6; }
23304 # Is the header present?
23305 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
23306 $as_echo_n "checking
$ac_header presence...
" >&6; }
23307 cat >conftest.$ac_ext <<_ACEOF
23310 cat confdefs.h >>conftest.$ac_ext
23311 cat >>conftest.$ac_ext <<_ACEOF
23312 /* end confdefs.h. */
23313 #include <$ac_header>
23315 if { (ac_try="$ac_cpp conftest.
$ac_ext"
23316 case "(($ac_try" in
23317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23318 *) ac_try_echo=$ac_try;;
23320 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23321 $as_echo "$ac_try_echo") >&5
23322 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
23324 grep -v '^ *+' conftest.er1 >conftest.err
23326 cat conftest.err >&5
23327 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23328 (exit $ac_status); } >/dev/null && {
23329 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23330 test ! -s conftest.err
23332 ac_header_preproc=yes
23334 $as_echo "$as_me: failed program was
:" >&5
23335 sed 's/^/| /' conftest.$ac_ext >&5
23337 ac_header_preproc=no
23340 rm -f conftest.err conftest.$ac_ext
23341 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
23342 $as_echo "$ac_header_preproc" >&6; }
23344 # So? What about this header?
23345 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23347 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
23348 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
23349 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
23350 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
23351 ac_header_preproc=yes
23354 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
23355 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
23356 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
23357 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
23358 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
23359 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
23360 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
23361 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
23362 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
23363 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
23364 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
23365 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
23369 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
23370 $as_echo_n "checking
for $ac_header...
" >&6; }
23371 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23372 $as_echo_n "(cached
) " >&6
23374 eval "$as_ac_Header=\
$ac_header_preproc"
23376 ac_res=`eval 'as_val=${'$as_ac_Header'}
23377 $as_echo "$as_val"'`
23378 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
23379 $as_echo "$ac_res" >&6; }
23382 if test `eval 'as_val=${'$as_ac_Header'}
23383 $as_echo "$as_val"'` = yes; then
23384 cat >>confdefs.h <<_ACEOF
23385 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
23390 for ac_header in kerberosIV/krb.h
23392 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
23393 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23394 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
23395 $as_echo_n "checking
for $ac_header...
" >&6; }
23396 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23397 $as_echo_n "(cached
) " >&6
23399 ac_res=`eval 'as_val=${'$as_ac_Header'}
23400 $as_echo "$as_val"'`
23401 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
23402 $as_echo "$ac_res" >&6; }
23404 # Is the header compilable?
23405 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
23406 $as_echo_n "checking
$ac_header usability...
" >&6; }
23407 cat >conftest.$ac_ext <<_ACEOF
23410 cat confdefs.h >>conftest.$ac_ext
23411 cat >>conftest.$ac_ext <<_ACEOF
23412 /* end confdefs.h. */
23413 $ac_includes_default
23414 #include <$ac_header>
23416 rm -f conftest.$ac_objext
23417 if { (ac_try="$ac_compile"
23418 case "(($ac_try" in
23419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23420 *) ac_try_echo=$ac_try;;
23422 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23423 $as_echo "$ac_try_echo") >&5
23424 (eval "$ac_compile") 2>conftest.er1
23426 grep -v '^ *+' conftest.er1 >conftest.err
23428 cat conftest.err >&5
23429 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23430 (exit $ac_status); } && {
23431 test -z "$ac_c_werror_flag" ||
23432 test ! -s conftest.err
23433 } && test -s conftest.$ac_objext; then
23434 ac_header_compiler=yes
23436 $as_echo "$as_me: failed program was
:" >&5
23437 sed 's/^/| /' conftest.$ac_ext >&5
23439 ac_header_compiler=no
23442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23443 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
23444 $as_echo "$ac_header_compiler" >&6; }
23446 # Is the header present?
23447 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
23448 $as_echo_n "checking
$ac_header presence...
" >&6; }
23449 cat >conftest.$ac_ext <<_ACEOF
23452 cat confdefs.h >>conftest.$ac_ext
23453 cat >>conftest.$ac_ext <<_ACEOF
23454 /* end confdefs.h. */
23455 #include <$ac_header>
23457 if { (ac_try="$ac_cpp conftest.
$ac_ext"
23458 case "(($ac_try" in
23459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23460 *) ac_try_echo=$ac_try;;
23462 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23463 $as_echo "$ac_try_echo") >&5
23464 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
23466 grep -v '^ *+' conftest.er1 >conftest.err
23468 cat conftest.err >&5
23469 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23470 (exit $ac_status); } >/dev/null && {
23471 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23472 test ! -s conftest.err
23474 ac_header_preproc=yes
23476 $as_echo "$as_me: failed program was
:" >&5
23477 sed 's/^/| /' conftest.$ac_ext >&5
23479 ac_header_preproc=no
23482 rm -f conftest.err conftest.$ac_ext
23483 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
23484 $as_echo "$ac_header_preproc" >&6; }
23486 # So? What about this header?
23487 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23489 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
23490 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
23491 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
23492 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
23493 ac_header_preproc=yes
23496 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
23497 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
23498 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
23499 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
23500 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
23501 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
23502 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
23503 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
23504 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
23505 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
23506 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
23507 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
23511 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
23512 $as_echo_n "checking
for $ac_header...
" >&6; }
23513 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23514 $as_echo_n "(cached
) " >&6
23516 eval "$as_ac_Header=\
$ac_header_preproc"
23518 ac_res=`eval 'as_val=${'$as_ac_Header'}
23519 $as_echo "$as_val"'`
23520 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
23521 $as_echo "$ac_res" >&6; }
23524 if test `eval 'as_val=${'$as_ac_Header'}
23525 $as_echo "$as_val"'` = yes; then
23526 cat >>confdefs.h <<_ACEOF
23527 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
23532 for ac_header in kerberos/krb.h
23534 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
23535 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23536 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
23537 $as_echo_n "checking
for $ac_header...
" >&6; }
23538 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23539 $as_echo_n "(cached
) " >&6
23541 ac_res=`eval 'as_val=${'$as_ac_Header'}
23542 $as_echo "$as_val"'`
23543 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
23544 $as_echo "$ac_res" >&6; }
23546 # Is the header compilable?
23547 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
23548 $as_echo_n "checking
$ac_header usability...
" >&6; }
23549 cat >conftest.$ac_ext <<_ACEOF
23552 cat confdefs.h >>conftest.$ac_ext
23553 cat >>conftest.$ac_ext <<_ACEOF
23554 /* end confdefs.h. */
23555 $ac_includes_default
23556 #include <$ac_header>
23558 rm -f conftest.$ac_objext
23559 if { (ac_try="$ac_compile"
23560 case "(($ac_try" in
23561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23562 *) ac_try_echo=$ac_try;;
23564 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23565 $as_echo "$ac_try_echo") >&5
23566 (eval "$ac_compile") 2>conftest.er1
23568 grep -v '^ *+' conftest.er1 >conftest.err
23570 cat conftest.err >&5
23571 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23572 (exit $ac_status); } && {
23573 test -z "$ac_c_werror_flag" ||
23574 test ! -s conftest.err
23575 } && test -s conftest.$ac_objext; then
23576 ac_header_compiler=yes
23578 $as_echo "$as_me: failed program was
:" >&5
23579 sed 's/^/| /' conftest.$ac_ext >&5
23581 ac_header_compiler=no
23584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23585 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
23586 $as_echo "$ac_header_compiler" >&6; }
23588 # Is the header present?
23589 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
23590 $as_echo_n "checking
$ac_header presence...
" >&6; }
23591 cat >conftest.$ac_ext <<_ACEOF
23594 cat confdefs.h >>conftest.$ac_ext
23595 cat >>conftest.$ac_ext <<_ACEOF
23596 /* end confdefs.h. */
23597 #include <$ac_header>
23599 if { (ac_try="$ac_cpp conftest.
$ac_ext"
23600 case "(($ac_try" in
23601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23602 *) ac_try_echo=$ac_try;;
23604 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23605 $as_echo "$ac_try_echo") >&5
23606 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
23608 grep -v '^ *+' conftest.er1 >conftest.err
23610 cat conftest.err >&5
23611 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23612 (exit $ac_status); } >/dev/null && {
23613 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23614 test ! -s conftest.err
23616 ac_header_preproc=yes
23618 $as_echo "$as_me: failed program was
:" >&5
23619 sed 's/^/| /' conftest.$ac_ext >&5
23621 ac_header_preproc=no
23624 rm -f conftest.err conftest.$ac_ext
23625 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
23626 $as_echo "$ac_header_preproc" >&6; }
23628 # So? What about this header?
23629 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23631 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
23632 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
23633 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
23634 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
23635 ac_header_preproc=yes
23638 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
23639 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
23640 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
23641 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
23642 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
23643 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
23644 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
23645 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
23646 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
23647 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
23648 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
23649 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
23653 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
23654 $as_echo_n "checking
for $ac_header...
" >&6; }
23655 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23656 $as_echo_n "(cached
) " >&6
23658 eval "$as_ac_Header=\
$ac_header_preproc"
23660 ac_res=`eval 'as_val=${'$as_ac_Header'}
23661 $as_echo "$as_val"'`
23662 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
23663 $as_echo "$ac_res" >&6; }
23666 if test `eval 'as_val=${'$as_ac_Header'}
23667 $as_echo "$as_val"'` = yes; then
23668 cat >>confdefs.h <<_ACEOF
23669 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
23686 for ac_header in com_err.h
23688 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
23689 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23690 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
23691 $as_echo_n "checking
for $ac_header...
" >&6; }
23692 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23693 $as_echo_n "(cached
) " >&6
23695 ac_res=`eval 'as_val=${'$as_ac_Header'}
23696 $as_echo "$as_val"'`
23697 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
23698 $as_echo "$ac_res" >&6; }
23700 # Is the header compilable?
23701 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
23702 $as_echo_n "checking
$ac_header usability...
" >&6; }
23703 cat >conftest.$ac_ext <<_ACEOF
23706 cat confdefs.h >>conftest.$ac_ext
23707 cat >>conftest.$ac_ext <<_ACEOF
23708 /* end confdefs.h. */
23709 $ac_includes_default
23710 #include <$ac_header>
23712 rm -f conftest.$ac_objext
23713 if { (ac_try="$ac_compile"
23714 case "(($ac_try" in
23715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23716 *) ac_try_echo=$ac_try;;
23718 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23719 $as_echo "$ac_try_echo") >&5
23720 (eval "$ac_compile") 2>conftest.er1
23722 grep -v '^ *+' conftest.er1 >conftest.err
23724 cat conftest.err >&5
23725 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23726 (exit $ac_status); } && {
23727 test -z "$ac_c_werror_flag" ||
23728 test ! -s conftest.err
23729 } && test -s conftest.$ac_objext; then
23730 ac_header_compiler=yes
23732 $as_echo "$as_me: failed program was
:" >&5
23733 sed 's/^/| /' conftest.$ac_ext >&5
23735 ac_header_compiler=no
23738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23739 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
23740 $as_echo "$ac_header_compiler" >&6; }
23742 # Is the header present?
23743 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
23744 $as_echo_n "checking
$ac_header presence...
" >&6; }
23745 cat >conftest.$ac_ext <<_ACEOF
23748 cat confdefs.h >>conftest.$ac_ext
23749 cat >>conftest.$ac_ext <<_ACEOF
23750 /* end confdefs.h. */
23751 #include <$ac_header>
23753 if { (ac_try="$ac_cpp conftest.
$ac_ext"
23754 case "(($ac_try" in
23755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23756 *) ac_try_echo=$ac_try;;
23758 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23759 $as_echo "$ac_try_echo") >&5
23760 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
23762 grep -v '^ *+' conftest.er1 >conftest.err
23764 cat conftest.err >&5
23765 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23766 (exit $ac_status); } >/dev/null && {
23767 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23768 test ! -s conftest.err
23770 ac_header_preproc=yes
23772 $as_echo "$as_me: failed program was
:" >&5
23773 sed 's/^/| /' conftest.$ac_ext >&5
23775 ac_header_preproc=no
23778 rm -f conftest.err conftest.$ac_ext
23779 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
23780 $as_echo "$ac_header_preproc" >&6; }
23782 # So? What about this header?
23783 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23785 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
23786 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
23787 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
23788 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
23789 ac_header_preproc=yes
23792 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
23793 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
23794 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
23795 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
23796 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
23797 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
23798 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
23799 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
23800 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
23801 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
23802 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
23803 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
23807 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
23808 $as_echo_n "checking
for $ac_header...
" >&6; }
23809 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23810 $as_echo_n "(cached
) " >&6
23812 eval "$as_ac_Header=\
$ac_header_preproc"
23814 ac_res=`eval 'as_val=${'$as_ac_Header'}
23815 $as_echo "$as_val"'`
23816 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
23817 $as_echo "$ac_res" >&6; }
23820 if test `eval 'as_val=${'$as_ac_Header'}
23821 $as_echo "$as_val"'` = yes; then
23822 cat >>confdefs.h <<_ACEOF
23823 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
23838 # Solaris requires -lintl if you want strerror (which calls dgettext)
23839 # to return localized messages.
23841 { $as_echo "$as_me:$LINENO: checking
for dgettext
in -lintl" >&5
23842 $as_echo_n "checking
for dgettext
in -lintl...
" >&6; }
23843 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
23844 $as_echo_n "(cached
) " >&6
23846 ac_check_lib_save_LIBS=$LIBS
23847 LIBS="-lintl $LIBS"
23848 cat >conftest.$ac_ext <<_ACEOF
23851 cat confdefs.h >>conftest.$ac_ext
23852 cat >>conftest.$ac_ext <<_ACEOF
23853 /* end confdefs.h. */
23855 /* Override any GCC internal prototype to avoid an error.
23856 Use char because int might match the return type of a GCC
23857 builtin and then its argument prototype would still apply. */
23865 return dgettext ();
23870 rm -f conftest.$ac_objext conftest$ac_exeext
23871 if { (ac_try="$ac_link"
23872 case "(($ac_try" in
23873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23874 *) ac_try_echo=$ac_try;;
23876 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23877 $as_echo "$ac_try_echo") >&5
23878 (eval "$ac_link") 2>conftest.er1
23880 grep -v '^ *+' conftest.er1 >conftest.err
23882 cat conftest.err >&5
23883 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23884 (exit $ac_status); } && {
23885 test -z "$ac_c_werror_flag" ||
23886 test ! -s conftest.err
23887 } && test -s conftest$ac_exeext && {
23888 test "$cross_compiling" = yes ||
23889 $as_test_x conftest$ac_exeext
23891 ac_cv_lib_intl_dgettext=yes
23893 $as_echo "$as_me: failed program was
:" >&5
23894 sed 's/^/| /' conftest.$ac_ext >&5
23896 ac_cv_lib_intl_dgettext=no
23899 rm -rf conftest.dSYM
23900 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23901 conftest$ac_exeext conftest.$ac_ext
23902 LIBS=$ac_check_lib_save_LIBS
23904 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_intl_dgettext" >&5
23905 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
23906 if test $ac_cv_lib_intl_dgettext = yes; then
23907 cat >>confdefs.h <<_ACEOF
23908 #define HAVE_LIBINTL 1
23911 LIBS="-lintl $LIBS"
23916 { $as_echo "$as_me:$LINENO: checking whether localtime caches TZ
" >&5
23917 $as_echo_n "checking whether localtime caches TZ...
" >&6; }
23918 if test "${emacs_cv_localtime_cache+set}" = set; then
23919 $as_echo_n "(cached
) " >&6
23921 if test x$ac_cv_func_tzset = xyes; then
23922 if test "$cross_compiling" = yes; then
23923 # If we have tzset, assume the worst when cross-compiling.
23924 emacs_cv_localtime_cache=yes
23926 cat >conftest.$ac_ext <<_ACEOF
23929 cat confdefs.h >>conftest.$ac_ext
23930 cat >>conftest.$ac_ext <<_ACEOF
23931 /* end confdefs.h. */
23933 extern char **environ;
23937 for (to = from = environ; (*to = *from); from++)
23938 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
23941 char TZ_GMT0[] = "TZ
=GMT0
";
23942 char TZ_PST8[] = "TZ
=PST8
";
23945 time_t now = time ((time_t *) 0);
23946 int hour_GMT0, hour_unset;
23947 if (putenv (TZ_GMT0) != 0)
23949 hour_GMT0 = localtime (&now)->tm_hour;
23951 hour_unset = localtime (&now)->tm_hour;
23952 if (putenv (TZ_PST8) != 0)
23954 if (localtime (&now)->tm_hour == hour_GMT0)
23957 if (localtime (&now)->tm_hour != hour_unset)
23962 rm -f conftest$ac_exeext
23963 if { (ac_try="$ac_link"
23964 case "(($ac_try" in
23965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23966 *) ac_try_echo=$ac_try;;
23968 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23969 $as_echo "$ac_try_echo") >&5
23970 (eval "$ac_link") 2>&5
23972 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23973 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23974 { (case "(($ac_try" in
23975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23976 *) ac_try_echo=$ac_try;;
23978 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23979 $as_echo "$ac_try_echo") >&5
23980 (eval "$ac_try") 2>&5
23982 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23983 (exit $ac_status); }; }; then
23984 emacs_cv_localtime_cache=no
23986 $as_echo "$as_me: program exited with status
$ac_status" >&5
23987 $as_echo "$as_me: failed program was
:" >&5
23988 sed 's/^/| /' conftest.$ac_ext >&5
23990 ( exit $ac_status )
23991 emacs_cv_localtime_cache=yes
23993 rm -rf conftest.dSYM
23994 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23999 # If we lack tzset, report that localtime does not cache TZ,
24000 # since we can't invalidate the cache if we don't have tzset.
24001 emacs_cv_localtime_cache=no
24004 { $as_echo "$as_me:$LINENO: result
: $emacs_cv_localtime_cache" >&5
24005 $as_echo "$emacs_cv_localtime_cache" >&6; }
24006 if test $emacs_cv_localtime_cache = yes; then
24008 cat >>confdefs.h <<\_ACEOF
24009 #define LOCALTIME_CACHE 1
24014 if test "x
$HAVE_TIMEVAL" = xyes; then
24016 for ac_func in gettimeofday
24018 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
24019 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
24020 $as_echo_n "checking
for $ac_func...
" >&6; }
24021 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
24022 $as_echo_n "(cached
) " >&6
24024 cat >conftest.$ac_ext <<_ACEOF
24027 cat confdefs.h >>conftest.$ac_ext
24028 cat >>conftest.$ac_ext <<_ACEOF
24029 /* end confdefs.h. */
24030 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24031 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24032 #define $ac_func innocuous_$ac_func
24034 /* System header to define __stub macros and hopefully few prototypes,
24035 which can conflict with char $ac_func (); below.
24036 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24037 <limits.h> exists even on freestanding compilers. */
24040 # include <limits.h>
24042 # include <assert.h>
24047 /* Override any GCC internal prototype to avoid an error.
24048 Use char because int might match the return type of a GCC
24049 builtin and then its argument prototype would still apply. */
24054 /* The GNU C library defines this for functions which it implements
24055 to always fail with ENOSYS. Some functions are actually named
24056 something starting with __ and the normal name is an alias. */
24057 #if defined __stub_$ac_func || defined __stub___$ac_func
24064 return $ac_func ();
24069 rm -f conftest.$ac_objext conftest$ac_exeext
24070 if { (ac_try="$ac_link"
24071 case "(($ac_try" in
24072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24073 *) ac_try_echo=$ac_try;;
24075 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24076 $as_echo "$ac_try_echo") >&5
24077 (eval "$ac_link") 2>conftest.er1
24079 grep -v '^ *+' conftest.er1 >conftest.err
24081 cat conftest.err >&5
24082 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24083 (exit $ac_status); } && {
24084 test -z "$ac_c_werror_flag" ||
24085 test ! -s conftest.err
24086 } && test -s conftest$ac_exeext && {
24087 test "$cross_compiling" = yes ||
24088 $as_test_x conftest$ac_exeext
24090 eval "$as_ac_var=yes"
24092 $as_echo "$as_me: failed program was
:" >&5
24093 sed 's/^/| /' conftest.$ac_ext >&5
24095 eval "$as_ac_var=no
"
24098 rm -rf conftest.dSYM
24099 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24100 conftest$ac_exeext conftest.$ac_ext
24102 ac_res=`eval 'as_val=${'$as_ac_var'}
24103 $as_echo "$as_val"'`
24104 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
24105 $as_echo "$ac_res" >&6; }
24106 if test `eval 'as_val=${'$as_ac_var'}
24107 $as_echo "$as_val"'` = yes; then
24108 cat >>confdefs.h <<_ACEOF
24109 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
24115 if test $ac_cv_func_gettimeofday = yes; then
24116 { $as_echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments
" >&5
24117 $as_echo_n "checking whether gettimeofday can accept two arguments...
" >&6; }
24118 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
24119 $as_echo_n "(cached
) " >&6
24121 cat >conftest.$ac_ext <<_ACEOF
24124 cat confdefs.h >>conftest.$ac_ext
24125 cat >>conftest.$ac_ext <<_ACEOF
24126 /* end confdefs.h. */
24128 #ifdef TIME_WITH_SYS_TIME
24129 #include <sys/time.h>
24132 #ifdef HAVE_SYS_TIME_H
24133 #include <sys/time.h>
24141 struct timeval time;
24142 gettimeofday (&time, 0);
24147 rm -f conftest.$ac_objext
24148 if { (ac_try="$ac_compile"
24149 case "(($ac_try" in
24150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24151 *) ac_try_echo=$ac_try;;
24153 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24154 $as_echo "$ac_try_echo") >&5
24155 (eval "$ac_compile") 2>conftest.er1
24157 grep -v '^ *+' conftest.er1 >conftest.err
24159 cat conftest.err >&5
24160 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24161 (exit $ac_status); } && {
24162 test -z "$ac_c_werror_flag" ||
24163 test ! -s conftest.err
24164 } && test -s conftest.$ac_objext; then
24165 emacs_cv_gettimeofday_two_arguments=yes
24167 $as_echo "$as_me: failed program was
:" >&5
24168 sed 's/^/| /' conftest.$ac_ext >&5
24170 emacs_cv_gettimeofday_two_arguments=no
24173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24175 { $as_echo "$as_me:$LINENO: result
: $emacs_cv_gettimeofday_two_arguments" >&5
24176 $as_echo "$emacs_cv_gettimeofday_two_arguments" >&6; }
24177 if test $emacs_cv_gettimeofday_two_arguments = no; then
24179 cat >>confdefs.h <<\_ACEOF
24180 #define GETTIMEOFDAY_ONE_ARGUMENT 1
24188 { $as_echo "$as_me:$LINENO: checking
for socket
" >&5
24189 $as_echo_n "checking
for socket...
" >&6; }
24190 if test "${ac_cv_func_socket+set}" = set; then
24191 $as_echo_n "(cached
) " >&6
24193 cat >conftest.$ac_ext <<_ACEOF
24196 cat confdefs.h >>conftest.$ac_ext
24197 cat >>conftest.$ac_ext <<_ACEOF
24198 /* end confdefs.h. */
24199 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
24200 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24201 #define socket innocuous_socket
24203 /* System header to define __stub macros and hopefully few prototypes,
24204 which can conflict with char socket (); below.
24205 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24206 <limits.h> exists even on freestanding compilers. */
24209 # include <limits.h>
24211 # include <assert.h>
24216 /* Override any GCC internal prototype to avoid an error.
24217 Use char because int might match the return type of a GCC
24218 builtin and then its argument prototype would still apply. */
24223 /* The GNU C library defines this for functions which it implements
24224 to always fail with ENOSYS. Some functions are actually named
24225 something starting with __ and the normal name is an alias. */
24226 #if defined __stub_socket || defined __stub___socket
24238 rm -f conftest.$ac_objext conftest$ac_exeext
24239 if { (ac_try="$ac_link"
24240 case "(($ac_try" in
24241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24242 *) ac_try_echo=$ac_try;;
24244 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24245 $as_echo "$ac_try_echo") >&5
24246 (eval "$ac_link") 2>conftest.er1
24248 grep -v '^ *+' conftest.er1 >conftest.err
24250 cat conftest.err >&5
24251 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24252 (exit $ac_status); } && {
24253 test -z "$ac_c_werror_flag" ||
24254 test ! -s conftest.err
24255 } && test -s conftest$ac_exeext && {
24256 test "$cross_compiling" = yes ||
24257 $as_test_x conftest$ac_exeext
24259 ac_cv_func_socket=yes
24261 $as_echo "$as_me: failed program was
:" >&5
24262 sed 's/^/| /' conftest.$ac_ext >&5
24264 ac_cv_func_socket=no
24267 rm -rf conftest.dSYM
24268 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24269 conftest$ac_exeext conftest.$ac_ext
24271 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func_socket" >&5
24272 $as_echo "$ac_cv_func_socket" >&6; }
24273 if test $ac_cv_func_socket = yes; then
24279 if test $ok_so_far = yes; then
24280 if test "${ac_cv_header_netinet_in_h+set}" = set; then
24281 { $as_echo "$as_me:$LINENO: checking
for netinet
/in.h
" >&5
24282 $as_echo_n "checking
for netinet
/in.h...
" >&6; }
24283 if test "${ac_cv_header_netinet_in_h+set}" = set; then
24284 $as_echo_n "(cached
) " >&6
24286 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_netinet_in_h" >&5
24287 $as_echo "$ac_cv_header_netinet_in_h" >&6; }
24289 # Is the header compilable?
24290 { $as_echo "$as_me:$LINENO: checking netinet
/in.h usability
" >&5
24291 $as_echo_n "checking netinet
/in.h usability...
" >&6; }
24292 cat >conftest.$ac_ext <<_ACEOF
24295 cat confdefs.h >>conftest.$ac_ext
24296 cat >>conftest.$ac_ext <<_ACEOF
24297 /* end confdefs.h. */
24298 $ac_includes_default
24299 #include <netinet/in.h>
24301 rm -f conftest.$ac_objext
24302 if { (ac_try="$ac_compile"
24303 case "(($ac_try" in
24304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24305 *) ac_try_echo=$ac_try;;
24307 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24308 $as_echo "$ac_try_echo") >&5
24309 (eval "$ac_compile") 2>conftest.er1
24311 grep -v '^ *+' conftest.er1 >conftest.err
24313 cat conftest.err >&5
24314 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24315 (exit $ac_status); } && {
24316 test -z "$ac_c_werror_flag" ||
24317 test ! -s conftest.err
24318 } && test -s conftest.$ac_objext; then
24319 ac_header_compiler=yes
24321 $as_echo "$as_me: failed program was
:" >&5
24322 sed 's/^/| /' conftest.$ac_ext >&5
24324 ac_header_compiler=no
24327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24328 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
24329 $as_echo "$ac_header_compiler" >&6; }
24331 # Is the header present?
24332 { $as_echo "$as_me:$LINENO: checking netinet
/in.h presence
" >&5
24333 $as_echo_n "checking netinet
/in.h presence...
" >&6; }
24334 cat >conftest.$ac_ext <<_ACEOF
24337 cat confdefs.h >>conftest.$ac_ext
24338 cat >>conftest.$ac_ext <<_ACEOF
24339 /* end confdefs.h. */
24340 #include <netinet/in.h>
24342 if { (ac_try="$ac_cpp conftest.
$ac_ext"
24343 case "(($ac_try" in
24344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24345 *) ac_try_echo=$ac_try;;
24347 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24348 $as_echo "$ac_try_echo") >&5
24349 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
24351 grep -v '^ *+' conftest.er1 >conftest.err
24353 cat conftest.err >&5
24354 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24355 (exit $ac_status); } >/dev/null && {
24356 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24357 test ! -s conftest.err
24359 ac_header_preproc=yes
24361 $as_echo "$as_me: failed program was
:" >&5
24362 sed 's/^/| /' conftest.$ac_ext >&5
24364 ac_header_preproc=no
24367 rm -f conftest.err conftest.$ac_ext
24368 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
24369 $as_echo "$ac_header_preproc" >&6; }
24371 # So? What about this header?
24372 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24374 { $as_echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
24375 $as_echo "$as_me: WARNING
: netinet
/in.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
24376 { $as_echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: proceeding with the compiler
's result" >&5
24377 $as_echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result
" >&2;}
24378 ac_header_preproc=yes
24381 { $as_echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: present but cannot be compiled
" >&5
24382 $as_echo "$as_me: WARNING
: netinet
/in.h
: present but cannot be compiled
" >&2;}
24383 { $as_echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: check
for missing prerequisite headers?
" >&5
24384 $as_echo "$as_me: WARNING
: netinet
/in.h
: check
for missing prerequisite headers?
" >&2;}
24385 { $as_echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: see the Autoconf documentation
" >&5
24386 $as_echo "$as_me: WARNING
: netinet
/in.h
: see the Autoconf documentation
" >&2;}
24387 { $as_echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: section
\"Present But Cannot Be Compiled
\"" >&5
24388 $as_echo "$as_me: WARNING
: netinet
/in.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
24389 { $as_echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: proceeding with the preprocessor
's result" >&5
24390 $as_echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result
" >&2;}
24391 { $as_echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: in the future
, the compiler will take precedence
" >&5
24392 $as_echo "$as_me: WARNING
: netinet
/in.h
: in the future
, the compiler will take precedence
" >&2;}
24396 { $as_echo "$as_me:$LINENO: checking
for netinet
/in.h
" >&5
24397 $as_echo_n "checking
for netinet
/in.h...
" >&6; }
24398 if test "${ac_cv_header_netinet_in_h+set}" = set; then
24399 $as_echo_n "(cached
) " >&6
24401 ac_cv_header_netinet_in_h=$ac_header_preproc
24403 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_netinet_in_h" >&5
24404 $as_echo "$ac_cv_header_netinet_in_h" >&6; }
24407 if test $ac_cv_header_netinet_in_h = yes; then
24415 if test $ok_so_far = yes; then
24416 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
24417 { $as_echo "$as_me:$LINENO: checking
for arpa
/inet.h
" >&5
24418 $as_echo_n "checking
for arpa
/inet.h...
" >&6; }
24419 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
24420 $as_echo_n "(cached
) " >&6
24422 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_arpa_inet_h" >&5
24423 $as_echo "$ac_cv_header_arpa_inet_h" >&6; }
24425 # Is the header compilable?
24426 { $as_echo "$as_me:$LINENO: checking arpa
/inet.h usability
" >&5
24427 $as_echo_n "checking arpa
/inet.h usability...
" >&6; }
24428 cat >conftest.$ac_ext <<_ACEOF
24431 cat confdefs.h >>conftest.$ac_ext
24432 cat >>conftest.$ac_ext <<_ACEOF
24433 /* end confdefs.h. */
24434 $ac_includes_default
24435 #include <arpa/inet.h>
24437 rm -f conftest.$ac_objext
24438 if { (ac_try="$ac_compile"
24439 case "(($ac_try" in
24440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24441 *) ac_try_echo=$ac_try;;
24443 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24444 $as_echo "$ac_try_echo") >&5
24445 (eval "$ac_compile") 2>conftest.er1
24447 grep -v '^ *+' conftest.er1 >conftest.err
24449 cat conftest.err >&5
24450 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24451 (exit $ac_status); } && {
24452 test -z "$ac_c_werror_flag" ||
24453 test ! -s conftest.err
24454 } && test -s conftest.$ac_objext; then
24455 ac_header_compiler=yes
24457 $as_echo "$as_me: failed program was
:" >&5
24458 sed 's/^/| /' conftest.$ac_ext >&5
24460 ac_header_compiler=no
24463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24464 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
24465 $as_echo "$ac_header_compiler" >&6; }
24467 # Is the header present?
24468 { $as_echo "$as_me:$LINENO: checking arpa
/inet.h presence
" >&5
24469 $as_echo_n "checking arpa
/inet.h presence...
" >&6; }
24470 cat >conftest.$ac_ext <<_ACEOF
24473 cat confdefs.h >>conftest.$ac_ext
24474 cat >>conftest.$ac_ext <<_ACEOF
24475 /* end confdefs.h. */
24476 #include <arpa/inet.h>
24478 if { (ac_try="$ac_cpp conftest.
$ac_ext"
24479 case "(($ac_try" in
24480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24481 *) ac_try_echo=$ac_try;;
24483 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24484 $as_echo "$ac_try_echo") >&5
24485 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
24487 grep -v '^ *+' conftest.er1 >conftest.err
24489 cat conftest.err >&5
24490 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24491 (exit $ac_status); } >/dev/null && {
24492 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24493 test ! -s conftest.err
24495 ac_header_preproc=yes
24497 $as_echo "$as_me: failed program was
:" >&5
24498 sed 's/^/| /' conftest.$ac_ext >&5
24500 ac_header_preproc=no
24503 rm -f conftest.err conftest.$ac_ext
24504 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
24505 $as_echo "$ac_header_preproc" >&6; }
24507 # So? What about this header?
24508 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24510 { $as_echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
24511 $as_echo "$as_me: WARNING
: arpa
/inet.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
24512 { $as_echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: proceeding with the compiler
's result" >&5
24513 $as_echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result
" >&2;}
24514 ac_header_preproc=yes
24517 { $as_echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: present but cannot be compiled
" >&5
24518 $as_echo "$as_me: WARNING
: arpa
/inet.h
: present but cannot be compiled
" >&2;}
24519 { $as_echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: check
for missing prerequisite headers?
" >&5
24520 $as_echo "$as_me: WARNING
: arpa
/inet.h
: check
for missing prerequisite headers?
" >&2;}
24521 { $as_echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: see the Autoconf documentation
" >&5
24522 $as_echo "$as_me: WARNING
: arpa
/inet.h
: see the Autoconf documentation
" >&2;}
24523 { $as_echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: section
\"Present But Cannot Be Compiled
\"" >&5
24524 $as_echo "$as_me: WARNING
: arpa
/inet.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
24525 { $as_echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: proceeding with the preprocessor
's result" >&5
24526 $as_echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result
" >&2;}
24527 { $as_echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: in the future
, the compiler will take precedence
" >&5
24528 $as_echo "$as_me: WARNING
: arpa
/inet.h
: in the future
, the compiler will take precedence
" >&2;}
24532 { $as_echo "$as_me:$LINENO: checking
for arpa
/inet.h
" >&5
24533 $as_echo_n "checking
for arpa
/inet.h...
" >&6; }
24534 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
24535 $as_echo_n "(cached
) " >&6
24537 ac_cv_header_arpa_inet_h=$ac_header_preproc
24539 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_arpa_inet_h" >&5
24540 $as_echo "$ac_cv_header_arpa_inet_h" >&6; }
24543 if test $ac_cv_header_arpa_inet_h = yes; then
24551 if test $ok_so_far = yes; then
24553 cat >>confdefs.h <<\_ACEOF
24554 #define HAVE_INET_SOCKETS 1
24560 for ac_header in sys/ioctl.h
24562 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
24563 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
24564 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
24565 $as_echo_n "checking
for $ac_header...
" >&6; }
24566 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
24567 $as_echo_n "(cached
) " >&6
24569 ac_res=`eval 'as_val=${'$as_ac_Header'}
24570 $as_echo "$as_val"'`
24571 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
24572 $as_echo "$ac_res" >&6; }
24574 # Is the header compilable?
24575 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
24576 $as_echo_n "checking
$ac_header usability...
" >&6; }
24577 cat >conftest.$ac_ext <<_ACEOF
24580 cat confdefs.h >>conftest.$ac_ext
24581 cat >>conftest.$ac_ext <<_ACEOF
24582 /* end confdefs.h. */
24583 $ac_includes_default
24584 #include <$ac_header>
24586 rm -f conftest.$ac_objext
24587 if { (ac_try="$ac_compile"
24588 case "(($ac_try" in
24589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24590 *) ac_try_echo=$ac_try;;
24592 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24593 $as_echo "$ac_try_echo") >&5
24594 (eval "$ac_compile") 2>conftest.er1
24596 grep -v '^ *+' conftest.er1 >conftest.err
24598 cat conftest.err >&5
24599 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24600 (exit $ac_status); } && {
24601 test -z "$ac_c_werror_flag" ||
24602 test ! -s conftest.err
24603 } && test -s conftest.$ac_objext; then
24604 ac_header_compiler=yes
24606 $as_echo "$as_me: failed program was
:" >&5
24607 sed 's/^/| /' conftest.$ac_ext >&5
24609 ac_header_compiler=no
24612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24613 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
24614 $as_echo "$ac_header_compiler" >&6; }
24616 # Is the header present?
24617 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
24618 $as_echo_n "checking
$ac_header presence...
" >&6; }
24619 cat >conftest.$ac_ext <<_ACEOF
24622 cat confdefs.h >>conftest.$ac_ext
24623 cat >>conftest.$ac_ext <<_ACEOF
24624 /* end confdefs.h. */
24625 #include <$ac_header>
24627 if { (ac_try="$ac_cpp conftest.
$ac_ext"
24628 case "(($ac_try" in
24629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24630 *) ac_try_echo=$ac_try;;
24632 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24633 $as_echo "$ac_try_echo") >&5
24634 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
24636 grep -v '^ *+' conftest.er1 >conftest.err
24638 cat conftest.err >&5
24639 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24640 (exit $ac_status); } >/dev/null && {
24641 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24642 test ! -s conftest.err
24644 ac_header_preproc=yes
24646 $as_echo "$as_me: failed program was
:" >&5
24647 sed 's/^/| /' conftest.$ac_ext >&5
24649 ac_header_preproc=no
24652 rm -f conftest.err conftest.$ac_ext
24653 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
24654 $as_echo "$ac_header_preproc" >&6; }
24656 # So? What about this header?
24657 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24659 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
24660 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
24661 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
24662 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
24663 ac_header_preproc=yes
24666 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
24667 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
24668 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
24669 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
24670 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
24671 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
24672 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
24673 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
24674 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
24675 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
24676 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
24677 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
24681 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
24682 $as_echo_n "checking
for $ac_header...
" >&6; }
24683 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
24684 $as_echo_n "(cached
) " >&6
24686 eval "$as_ac_Header=\
$ac_header_preproc"
24688 ac_res=`eval 'as_val=${'$as_ac_Header'}
24689 $as_echo "$as_val"'`
24690 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
24691 $as_echo "$ac_res" >&6; }
24694 if test `eval 'as_val=${'$as_ac_Header'}
24695 $as_echo "$as_val"'` = yes; then
24696 cat >>confdefs.h <<_ACEOF
24697 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
24705 if test -f /usr/lpp/X11/bin/smt.exp; then
24707 cat >>confdefs.h <<\_ACEOF
24708 #define HAVE_AIX_SMT_EXP 1
24713 { $as_echo "$as_me:$LINENO: checking whether system supports dynamic ptys
" >&5
24714 $as_echo_n "checking whether system supports dynamic ptys...
" >&6; }
24715 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
24716 { $as_echo "$as_me:$LINENO: result
: yes" >&5
24717 $as_echo "yes" >&6; }
24719 cat >>confdefs.h <<\_ACEOF
24720 #define HAVE_DEV_PTMX 1
24724 { $as_echo "$as_me:$LINENO: result
: no
" >&5
24725 $as_echo "no
" >&6; }
24728 { $as_echo "$as_me:$LINENO: checking
for pid_t
" >&5
24729 $as_echo_n "checking
for pid_t...
" >&6; }
24730 if test "${ac_cv_type_pid_t+set}" = set; then
24731 $as_echo_n "(cached
) " >&6
24733 ac_cv_type_pid_t=no
24734 cat >conftest.$ac_ext <<_ACEOF
24737 cat confdefs.h >>conftest.$ac_ext
24738 cat >>conftest.$ac_ext <<_ACEOF
24739 /* end confdefs.h. */
24740 $ac_includes_default
24744 if (sizeof (pid_t))
24750 rm -f conftest.$ac_objext
24751 if { (ac_try="$ac_compile"
24752 case "(($ac_try" in
24753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24754 *) ac_try_echo=$ac_try;;
24756 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24757 $as_echo "$ac_try_echo") >&5
24758 (eval "$ac_compile") 2>conftest.er1
24760 grep -v '^ *+' conftest.er1 >conftest.err
24762 cat conftest.err >&5
24763 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24764 (exit $ac_status); } && {
24765 test -z "$ac_c_werror_flag" ||
24766 test ! -s conftest.err
24767 } && test -s conftest.$ac_objext; then
24768 cat >conftest.$ac_ext <<_ACEOF
24771 cat confdefs.h >>conftest.$ac_ext
24772 cat >>conftest.$ac_ext <<_ACEOF
24773 /* end confdefs.h. */
24774 $ac_includes_default
24778 if (sizeof ((pid_t)))
24784 rm -f conftest.$ac_objext
24785 if { (ac_try="$ac_compile"
24786 case "(($ac_try" in
24787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24788 *) ac_try_echo=$ac_try;;
24790 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24791 $as_echo "$ac_try_echo") >&5
24792 (eval "$ac_compile") 2>conftest.er1
24794 grep -v '^ *+' conftest.er1 >conftest.err
24796 cat conftest.err >&5
24797 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24798 (exit $ac_status); } && {
24799 test -z "$ac_c_werror_flag" ||
24800 test ! -s conftest.err
24801 } && test -s conftest.$ac_objext; then
24804 $as_echo "$as_me: failed program was
:" >&5
24805 sed 's/^/| /' conftest.$ac_ext >&5
24807 ac_cv_type_pid_t=yes
24810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24812 $as_echo "$as_me: failed program was
:" >&5
24813 sed 's/^/| /' conftest.$ac_ext >&5
24818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24820 { $as_echo "$as_me:$LINENO: result
: $ac_cv_type_pid_t" >&5
24821 $as_echo "$ac_cv_type_pid_t" >&6; }
24822 if test $ac_cv_type_pid_t = yes; then
24826 cat >>confdefs.h <<_ACEOF
24833 for ac_header in vfork.h
24835 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
24836 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
24837 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
24838 $as_echo_n "checking
for $ac_header...
" >&6; }
24839 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
24840 $as_echo_n "(cached
) " >&6
24842 ac_res=`eval 'as_val=${'$as_ac_Header'}
24843 $as_echo "$as_val"'`
24844 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
24845 $as_echo "$ac_res" >&6; }
24847 # Is the header compilable?
24848 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
24849 $as_echo_n "checking
$ac_header usability...
" >&6; }
24850 cat >conftest.$ac_ext <<_ACEOF
24853 cat confdefs.h >>conftest.$ac_ext
24854 cat >>conftest.$ac_ext <<_ACEOF
24855 /* end confdefs.h. */
24856 $ac_includes_default
24857 #include <$ac_header>
24859 rm -f conftest.$ac_objext
24860 if { (ac_try="$ac_compile"
24861 case "(($ac_try" in
24862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24863 *) ac_try_echo=$ac_try;;
24865 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24866 $as_echo "$ac_try_echo") >&5
24867 (eval "$ac_compile") 2>conftest.er1
24869 grep -v '^ *+' conftest.er1 >conftest.err
24871 cat conftest.err >&5
24872 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24873 (exit $ac_status); } && {
24874 test -z "$ac_c_werror_flag" ||
24875 test ! -s conftest.err
24876 } && test -s conftest.$ac_objext; then
24877 ac_header_compiler=yes
24879 $as_echo "$as_me: failed program was
:" >&5
24880 sed 's/^/| /' conftest.$ac_ext >&5
24882 ac_header_compiler=no
24885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24886 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
24887 $as_echo "$ac_header_compiler" >&6; }
24889 # Is the header present?
24890 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
24891 $as_echo_n "checking
$ac_header presence...
" >&6; }
24892 cat >conftest.$ac_ext <<_ACEOF
24895 cat confdefs.h >>conftest.$ac_ext
24896 cat >>conftest.$ac_ext <<_ACEOF
24897 /* end confdefs.h. */
24898 #include <$ac_header>
24900 if { (ac_try="$ac_cpp conftest.
$ac_ext"
24901 case "(($ac_try" in
24902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24903 *) ac_try_echo=$ac_try;;
24905 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24906 $as_echo "$ac_try_echo") >&5
24907 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
24909 grep -v '^ *+' conftest.er1 >conftest.err
24911 cat conftest.err >&5
24912 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24913 (exit $ac_status); } >/dev/null && {
24914 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24915 test ! -s conftest.err
24917 ac_header_preproc=yes
24919 $as_echo "$as_me: failed program was
:" >&5
24920 sed 's/^/| /' conftest.$ac_ext >&5
24922 ac_header_preproc=no
24925 rm -f conftest.err conftest.$ac_ext
24926 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
24927 $as_echo "$ac_header_preproc" >&6; }
24929 # So? What about this header?
24930 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24932 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
24933 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
24934 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
24935 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
24936 ac_header_preproc=yes
24939 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
24940 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
24941 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
24942 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
24943 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
24944 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
24945 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
24946 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
24947 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
24948 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
24949 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
24950 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
24954 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
24955 $as_echo_n "checking
for $ac_header...
" >&6; }
24956 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
24957 $as_echo_n "(cached
) " >&6
24959 eval "$as_ac_Header=\
$ac_header_preproc"
24961 ac_res=`eval 'as_val=${'$as_ac_Header'}
24962 $as_echo "$as_val"'`
24963 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
24964 $as_echo "$ac_res" >&6; }
24967 if test `eval 'as_val=${'$as_ac_Header'}
24968 $as_echo "$as_val"'` = yes; then
24969 cat >>confdefs.h <<_ACEOF
24970 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
24979 for ac_func in fork vfork
24981 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
24982 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
24983 $as_echo_n "checking
for $ac_func...
" >&6; }
24984 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
24985 $as_echo_n "(cached
) " >&6
24987 cat >conftest.$ac_ext <<_ACEOF
24990 cat confdefs.h >>conftest.$ac_ext
24991 cat >>conftest.$ac_ext <<_ACEOF
24992 /* end confdefs.h. */
24993 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24994 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24995 #define $ac_func innocuous_$ac_func
24997 /* System header to define __stub macros and hopefully few prototypes,
24998 which can conflict with char $ac_func (); below.
24999 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25000 <limits.h> exists even on freestanding compilers. */
25003 # include <limits.h>
25005 # include <assert.h>
25010 /* Override any GCC internal prototype to avoid an error.
25011 Use char because int might match the return type of a GCC
25012 builtin and then its argument prototype would still apply. */
25017 /* The GNU C library defines this for functions which it implements
25018 to always fail with ENOSYS. Some functions are actually named
25019 something starting with __ and the normal name is an alias. */
25020 #if defined __stub_$ac_func || defined __stub___$ac_func
25027 return $ac_func ();
25032 rm -f conftest.$ac_objext conftest$ac_exeext
25033 if { (ac_try="$ac_link"
25034 case "(($ac_try" in
25035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25036 *) ac_try_echo=$ac_try;;
25038 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25039 $as_echo "$ac_try_echo") >&5
25040 (eval "$ac_link") 2>conftest.er1
25042 grep -v '^ *+' conftest.er1 >conftest.err
25044 cat conftest.err >&5
25045 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25046 (exit $ac_status); } && {
25047 test -z "$ac_c_werror_flag" ||
25048 test ! -s conftest.err
25049 } && test -s conftest$ac_exeext && {
25050 test "$cross_compiling" = yes ||
25051 $as_test_x conftest$ac_exeext
25053 eval "$as_ac_var=yes"
25055 $as_echo "$as_me: failed program was
:" >&5
25056 sed 's/^/| /' conftest.$ac_ext >&5
25058 eval "$as_ac_var=no
"
25061 rm -rf conftest.dSYM
25062 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25063 conftest$ac_exeext conftest.$ac_ext
25065 ac_res=`eval 'as_val=${'$as_ac_var'}
25066 $as_echo "$as_val"'`
25067 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
25068 $as_echo "$ac_res" >&6; }
25069 if test `eval 'as_val=${'$as_ac_var'}
25070 $as_echo "$as_val"'` = yes; then
25071 cat >>confdefs.h <<_ACEOF
25072 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
25078 if test "x
$ac_cv_func_fork" = xyes; then
25079 { $as_echo "$as_me:$LINENO: checking
for working fork
" >&5
25080 $as_echo_n "checking
for working fork...
" >&6; }
25081 if test "${ac_cv_func_fork_works+set}" = set; then
25082 $as_echo_n "(cached
) " >&6
25084 if test "$cross_compiling" = yes; then
25085 ac_cv_func_fork_works=cross
25087 cat >conftest.$ac_ext <<_ACEOF
25090 cat confdefs.h >>conftest.$ac_ext
25091 cat >>conftest.$ac_ext <<_ACEOF
25092 /* end confdefs.h. */
25093 $ac_includes_default
25098 /* By Ruediger Kuhlmann. */
25099 return fork () < 0;
25105 rm -f conftest$ac_exeext
25106 if { (ac_try="$ac_link"
25107 case "(($ac_try" in
25108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25109 *) ac_try_echo=$ac_try;;
25111 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25112 $as_echo "$ac_try_echo") >&5
25113 (eval "$ac_link") 2>&5
25115 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25116 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25117 { (case "(($ac_try" in
25118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25119 *) ac_try_echo=$ac_try;;
25121 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25122 $as_echo "$ac_try_echo") >&5
25123 (eval "$ac_try") 2>&5
25125 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25126 (exit $ac_status); }; }; then
25127 ac_cv_func_fork_works=yes
25129 $as_echo "$as_me: program exited with status
$ac_status" >&5
25130 $as_echo "$as_me: failed program was
:" >&5
25131 sed 's/^/| /' conftest.$ac_ext >&5
25133 ( exit $ac_status )
25134 ac_cv_func_fork_works=no
25136 rm -rf conftest.dSYM
25137 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25142 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func_fork_works" >&5
25143 $as_echo "$ac_cv_func_fork_works" >&6; }
25146 ac_cv_func_fork_works=$ac_cv_func_fork
25148 if test "x
$ac_cv_func_fork_works" = xcross; then
25150 *-*-amigaos* | *-*-msdosdjgpp*)
25151 # Override, as these systems have only a dummy fork() stub
25152 ac_cv_func_fork_works=no
25155 ac_cv_func_fork_works=yes
25158 { $as_echo "$as_me:$LINENO: WARNING
: result
$ac_cv_func_fork_works guessed because of cross compilation
" >&5
25159 $as_echo "$as_me: WARNING
: result
$ac_cv_func_fork_works guessed because of cross compilation
" >&2;}
25161 ac_cv_func_vfork_works=$ac_cv_func_vfork
25162 if test "x
$ac_cv_func_vfork" = xyes; then
25163 { $as_echo "$as_me:$LINENO: checking
for working vfork
" >&5
25164 $as_echo_n "checking
for working vfork...
" >&6; }
25165 if test "${ac_cv_func_vfork_works+set}" = set; then
25166 $as_echo_n "(cached
) " >&6
25168 if test "$cross_compiling" = yes; then
25169 ac_cv_func_vfork_works=cross
25171 cat >conftest.$ac_ext <<_ACEOF
25174 cat confdefs.h >>conftest.$ac_ext
25175 cat >>conftest.$ac_ext <<_ACEOF
25176 /* end confdefs.h. */
25177 /* Thanks to Paul Eggert for this test. */
25178 $ac_includes_default
25179 #include <sys/wait.h>
25180 #ifdef HAVE_VFORK_H
25181 # include <vfork.h>
25183 /* On some sparc systems, changes by the child to local and incoming
25184 argument registers are propagated back to the parent. The compiler
25185 is told about this with #include <vfork.h>, but some compilers
25186 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
25187 static variable whose address is put into a register that is
25188 clobbered by the vfork. */
25191 sparc_address_test (int arg)
25193 sparc_address_test (arg) int arg;
25196 static pid_t child;
25214 pid_t parent = getpid ();
25217 sparc_address_test (0);
25222 /* Here is another test for sparc vfork register problems. This
25223 test uses lots of local variables, at least as many local
25224 variables as main has allocated so far including compiler
25225 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
25226 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
25227 reuse the register of parent for one of the local variables,
25228 since it will think that parent can't possibly be used any more
25229 in this routine. Assigning to the local variable will thus
25230 munge parent in the parent process. */
25232 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
25233 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
25234 /* Convince the compiler that p..p7 are live; otherwise, it might
25235 use the same hardware register for all 8 local variables. */
25236 if (p != p1 || p != p2 || p != p3 || p != p4
25237 || p != p5 || p != p6 || p != p7)
25240 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
25241 from child file descriptors. If the child closes a descriptor
25242 before it execs or exits, this munges the parent's descriptor
25243 as well. Test for this by closing stdout in the child. */
25244 _exit(close(fileno(stdout)) != 0);
25249 while (wait(&status) != child)
25252 /* Was there some problem with vforking? */
25255 /* Did the child fail? (This shouldn't happen.) */
25258 /* Did the vfork/compiler bug occur? */
25259 || parent != getpid()
25261 /* Did the file descriptor bug occur? */
25262 || fstat(fileno(stdout), &st) != 0
25267 rm -f conftest$ac_exeext
25268 if { (ac_try="$ac_link"
25269 case "(($ac_try" in
25270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25271 *) ac_try_echo=$ac_try;;
25273 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25274 $as_echo "$ac_try_echo") >&5
25275 (eval "$ac_link") 2>&5
25277 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25278 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25279 { (case "(($ac_try" in
25280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25281 *) ac_try_echo=$ac_try;;
25283 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25284 $as_echo "$ac_try_echo") >&5
25285 (eval "$ac_try") 2>&5
25287 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25288 (exit $ac_status); }; }; then
25289 ac_cv_func_vfork_works=yes
25291 $as_echo "$as_me: program exited with status
$ac_status" >&5
25292 $as_echo "$as_me: failed program was
:" >&5
25293 sed 's/^/| /' conftest.$ac_ext >&5
25295 ( exit $ac_status )
25296 ac_cv_func_vfork_works=no
25298 rm -rf conftest.dSYM
25299 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25304 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func_vfork_works" >&5
25305 $as_echo "$ac_cv_func_vfork_works" >&6; }
25308 if test "x
$ac_cv_func_fork_works" = xcross; then
25309 ac_cv_func_vfork_works=$ac_cv_func_vfork
25310 { $as_echo "$as_me:$LINENO: WARNING
: result
$ac_cv_func_vfork_works guessed because of cross compilation
" >&5
25311 $as_echo "$as_me: WARNING
: result
$ac_cv_func_vfork_works guessed because of cross compilation
" >&2;}
25314 if test "x
$ac_cv_func_vfork_works" = xyes; then
25316 cat >>confdefs.h <<\_ACEOF
25317 #define HAVE_WORKING_VFORK 1
25322 cat >>confdefs.h <<\_ACEOF
25327 if test "x
$ac_cv_func_fork_works" = xyes; then
25329 cat >>confdefs.h <<\_ACEOF
25330 #define HAVE_WORKING_FORK 1
25336 { $as_echo "$as_me:$LINENO: checking
for nl_langinfo and CODESET
" >&5
25337 $as_echo_n "checking
for nl_langinfo and CODESET...
" >&6; }
25338 if test "${emacs_cv_langinfo_codeset+set}" = set; then
25339 $as_echo_n "(cached
) " >&6
25341 cat >conftest.$ac_ext <<_ACEOF
25344 cat confdefs.h >>conftest.$ac_ext
25345 cat >>conftest.$ac_ext <<_ACEOF
25346 /* end confdefs.h. */
25347 #include <langinfo.h>
25351 char* cs = nl_langinfo(CODESET);
25356 rm -f conftest.$ac_objext conftest$ac_exeext
25357 if { (ac_try="$ac_link"
25358 case "(($ac_try" in
25359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25360 *) ac_try_echo=$ac_try;;
25362 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25363 $as_echo "$ac_try_echo") >&5
25364 (eval "$ac_link") 2>conftest.er1
25366 grep -v '^ *+' conftest.er1 >conftest.err
25368 cat conftest.err >&5
25369 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25370 (exit $ac_status); } && {
25371 test -z "$ac_c_werror_flag" ||
25372 test ! -s conftest.err
25373 } && test -s conftest$ac_exeext && {
25374 test "$cross_compiling" = yes ||
25375 $as_test_x conftest$ac_exeext
25377 emacs_cv_langinfo_codeset=yes
25379 $as_echo "$as_me: failed program was
:" >&5
25380 sed 's/^/| /' conftest.$ac_ext >&5
25382 emacs_cv_langinfo_codeset=no
25385 rm -rf conftest.dSYM
25386 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25387 conftest$ac_exeext conftest.$ac_ext
25390 { $as_echo "$as_me:$LINENO: result
: $emacs_cv_langinfo_codeset" >&5
25391 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
25392 if test $emacs_cv_langinfo_codeset = yes; then
25394 cat >>confdefs.h <<\_ACEOF
25395 #define HAVE_LANGINFO_CODESET 1
25400 { $as_echo "$as_me:$LINENO: checking
for size_t
" >&5
25401 $as_echo_n "checking
for size_t...
" >&6; }
25402 if test "${ac_cv_type_size_t+set}" = set; then
25403 $as_echo_n "(cached
) " >&6
25405 ac_cv_type_size_t=no
25406 cat >conftest.$ac_ext <<_ACEOF
25409 cat confdefs.h >>conftest.$ac_ext
25410 cat >>conftest.$ac_ext <<_ACEOF
25411 /* end confdefs.h. */
25412 $ac_includes_default
25416 if (sizeof (size_t))
25422 rm -f conftest.$ac_objext
25423 if { (ac_try="$ac_compile"
25424 case "(($ac_try" in
25425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25426 *) ac_try_echo=$ac_try;;
25428 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25429 $as_echo "$ac_try_echo") >&5
25430 (eval "$ac_compile") 2>conftest.er1
25432 grep -v '^ *+' conftest.er1 >conftest.err
25434 cat conftest.err >&5
25435 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25436 (exit $ac_status); } && {
25437 test -z "$ac_c_werror_flag" ||
25438 test ! -s conftest.err
25439 } && test -s conftest.$ac_objext; then
25440 cat >conftest.$ac_ext <<_ACEOF
25443 cat confdefs.h >>conftest.$ac_ext
25444 cat >>conftest.$ac_ext <<_ACEOF
25445 /* end confdefs.h. */
25446 $ac_includes_default
25450 if (sizeof ((size_t)))
25456 rm -f conftest.$ac_objext
25457 if { (ac_try="$ac_compile"
25458 case "(($ac_try" in
25459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25460 *) ac_try_echo=$ac_try;;
25462 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25463 $as_echo "$ac_try_echo") >&5
25464 (eval "$ac_compile") 2>conftest.er1
25466 grep -v '^ *+' conftest.er1 >conftest.err
25468 cat conftest.err >&5
25469 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25470 (exit $ac_status); } && {
25471 test -z "$ac_c_werror_flag" ||
25472 test ! -s conftest.err
25473 } && test -s conftest.$ac_objext; then
25476 $as_echo "$as_me: failed program was
:" >&5
25477 sed 's/^/| /' conftest.$ac_ext >&5
25479 ac_cv_type_size_t=yes
25482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25484 $as_echo "$as_me: failed program was
:" >&5
25485 sed 's/^/| /' conftest.$ac_ext >&5
25490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25492 { $as_echo "$as_me:$LINENO: result
: $ac_cv_type_size_t" >&5
25493 $as_echo "$ac_cv_type_size_t" >&6; }
25494 if test $ac_cv_type_size_t = yes; then
25496 cat >>confdefs.h <<_ACEOF
25497 #define HAVE_SIZE_T 1
25504 { $as_echo "$as_me:$LINENO: checking
for mbstate_t
" >&5
25505 $as_echo_n "checking
for mbstate_t...
" >&6; }
25506 if test "${ac_cv_type_mbstate_t+set}" = set; then
25507 $as_echo_n "(cached
) " >&6
25509 cat >conftest.$ac_ext <<_ACEOF
25512 cat confdefs.h >>conftest.$ac_ext
25513 cat >>conftest.$ac_ext <<_ACEOF
25514 /* end confdefs.h. */
25515 $ac_includes_default
25516 # include <wchar.h>
25520 mbstate_t x; return sizeof x;
25525 rm -f conftest.$ac_objext
25526 if { (ac_try="$ac_compile"
25527 case "(($ac_try" in
25528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25529 *) ac_try_echo=$ac_try;;
25531 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25532 $as_echo "$ac_try_echo") >&5
25533 (eval "$ac_compile") 2>conftest.er1
25535 grep -v '^ *+' conftest.er1 >conftest.err
25537 cat conftest.err >&5
25538 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25539 (exit $ac_status); } && {
25540 test -z "$ac_c_werror_flag" ||
25541 test ! -s conftest.err
25542 } && test -s conftest.$ac_objext; then
25543 ac_cv_type_mbstate_t=yes
25545 $as_echo "$as_me: failed program was
:" >&5
25546 sed 's/^/| /' conftest.$ac_ext >&5
25548 ac_cv_type_mbstate_t=no
25551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25553 { $as_echo "$as_me:$LINENO: result
: $ac_cv_type_mbstate_t" >&5
25554 $as_echo "$ac_cv_type_mbstate_t" >&6; }
25555 if test $ac_cv_type_mbstate_t = yes; then
25557 cat >>confdefs.h <<\_ACEOF
25558 #define HAVE_MBSTATE_T 1
25563 cat >>confdefs.h <<\_ACEOF
25564 #define mbstate_t int
25569 { $as_echo "$as_me:$LINENO: checking
for C restrict keyword
" >&5
25570 $as_echo_n "checking
for C restrict keyword...
" >&6; }
25571 if test "${emacs_cv_c_restrict+set}" = set; then
25572 $as_echo_n "(cached
) " >&6
25574 cat >conftest.$ac_ext <<_ACEOF
25577 cat confdefs.h >>conftest.$ac_ext
25578 cat >>conftest.$ac_ext <<_ACEOF
25579 /* end confdefs.h. */
25580 void fred (int *restrict x);
25589 rm -f conftest.$ac_objext
25590 if { (ac_try="$ac_compile"
25591 case "(($ac_try" in
25592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25593 *) ac_try_echo=$ac_try;;
25595 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25596 $as_echo "$ac_try_echo") >&5
25597 (eval "$ac_compile") 2>conftest.er1
25599 grep -v '^ *+' conftest.er1 >conftest.err
25601 cat conftest.err >&5
25602 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25603 (exit $ac_status); } && {
25604 test -z "$ac_c_werror_flag" ||
25605 test ! -s conftest.err
25606 } && test -s conftest.$ac_objext; then
25607 emacs_cv_c_restrict=yes
25609 $as_echo "$as_me: failed program was
:" >&5
25610 sed 's/^/| /' conftest.$ac_ext >&5
25612 cat >conftest.$ac_ext <<_ACEOF
25615 cat confdefs.h >>conftest.$ac_ext
25616 cat >>conftest.$ac_ext <<_ACEOF
25617 /* end confdefs.h. */
25618 void fred (int *__restrict x);
25627 rm -f conftest.$ac_objext
25628 if { (ac_try="$ac_compile"
25629 case "(($ac_try" in
25630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25631 *) ac_try_echo=$ac_try;;
25633 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25634 $as_echo "$ac_try_echo") >&5
25635 (eval "$ac_compile") 2>conftest.er1
25637 grep -v '^ *+' conftest.er1 >conftest.err
25639 cat conftest.err >&5
25640 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25641 (exit $ac_status); } && {
25642 test -z "$ac_c_werror_flag" ||
25643 test ! -s conftest.err
25644 } && test -s conftest.$ac_objext; then
25645 emacs_cv_c_restrict=__restrict
25647 $as_echo "$as_me: failed program was
:" >&5
25648 sed 's/^/| /' conftest.$ac_ext >&5
25650 emacs_cv_c_restrict=no
25653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25658 { $as_echo "$as_me:$LINENO: result
: $emacs_cv_c_restrict" >&5
25659 $as_echo "$emacs_cv_c_restrict" >&6; }
25660 case "$emacs_cv_c_restrict" in
25661 yes) emacs_restrict=restrict;;
25662 no) emacs_restrict="";;
25663 *) emacs_restrict="$emacs_cv_c_restrict";;
25665 if test "$emacs_restrict" != __restrict; then
25667 cat >>confdefs.h <<_ACEOF
25668 #define __restrict $emacs_restrict
25673 { $as_echo "$as_me:$LINENO: checking
for C restricted array declarations
" >&5
25674 $as_echo_n "checking
for C restricted array declarations...
" >&6; }
25675 if test "${emacs_cv_c_restrict_arr+set}" = set; then
25676 $as_echo_n "(cached
) " >&6
25678 cat >conftest.$ac_ext <<_ACEOF
25681 cat confdefs.h >>conftest.$ac_ext
25682 cat >>conftest.$ac_ext <<_ACEOF
25683 /* end confdefs.h. */
25684 void fred (int x[__restrict]);
25693 rm -f conftest.$ac_objext
25694 if { (ac_try="$ac_compile"
25695 case "(($ac_try" in
25696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25697 *) ac_try_echo=$ac_try;;
25699 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25700 $as_echo "$ac_try_echo") >&5
25701 (eval "$ac_compile") 2>conftest.er1
25703 grep -v '^ *+' conftest.er1 >conftest.err
25705 cat conftest.err >&5
25706 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25707 (exit $ac_status); } && {
25708 test -z "$ac_c_werror_flag" ||
25709 test ! -s conftest.err
25710 } && test -s conftest.$ac_objext; then
25711 emacs_cv_c_restrict_arr=yes
25713 $as_echo "$as_me: failed program was
:" >&5
25714 sed 's/^/| /' conftest.$ac_ext >&5
25716 emacs_cv_c_restrict_arr=no
25719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25721 { $as_echo "$as_me:$LINENO: result
: $emacs_cv_c_restrict_arr" >&5
25722 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
25723 if test "$emacs_cv_c_restrict_arr" = yes; then
25725 cat >>confdefs.h <<\_ACEOF
25726 #define __restrict_arr __restrict
25733 # Set up the CFLAGS for real compilation, so we can substitute it.
25734 CFLAGS="$REAL_CFLAGS"
25735 CPPFLAGS="$REAL_CPPFLAGS"
25737 #### Find out which version of Emacs this is.
25738 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
25739 | sed -e 's/^[^"]*"\([^"]*\
)".*$/\1/'`
25740 if test x"${version}" = x; then
25741 { { $as_echo "$as_me:$LINENO: error
: can
't find current emacs version in \`${srcdir}/lisp/version.el'.
" >&5
25742 $as_echo "$as_me: error
: can
't find current emacs version in \`${srcdir}/lisp/version.el'.
" >&2;}
25743 { (exit 1); exit 1; }; }
25745 if test x"${version}" != x"$PACKAGE_VERSION"; then
25746 { $as_echo "$as_me:$LINENO: WARNING
: version mismatch between \
`${srcdir}/configure.in' and \`${srcdir}/lisp
/version.el
'." >&5
25747 $as_echo "$as_me: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/lisp/version.el'." >&2;}
25750 ### Specify what sort of things we'll be editing into Makefile and config.h.
25751 ### Use configuration here uncanonicalized to avoid exceeding size limits.
25796 cat >>confdefs.h
<<_ACEOF
25797 #define EMACS_CONFIGURATION "${canonical}"
25801 cat >>confdefs.h
<<_ACEOF
25802 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
25806 cat >>confdefs.h
<<_ACEOF
25807 #define config_machfile "${machfile}"
25811 cat >>confdefs.h
<<_ACEOF
25812 #define config_opsysfile "${opsysfile}"
25816 cat >>confdefs.h
<<_ACEOF
25817 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
25821 cat >>confdefs.h
<<_ACEOF
25822 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
25826 cat >>confdefs.h
<<_ACEOF
25827 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
25831 cat >>confdefs.h
<<_ACEOF
25832 #define UNEXEC_SRC ${UNEXEC_SRC}
25836 if test "${HAVE_X_WINDOWS}" = "yes" ; then
25838 cat >>confdefs.h
<<\_ACEOF
25839 #define HAVE_X_WINDOWS 1
25843 if test "${USE_X_TOOLKIT}" != "none" ; then
25845 cat >>confdefs.h
<<\_ACEOF
25846 #define USE_X_TOOLKIT 1
25849 if test "${USE_X_TOOLKIT}" = "LUCID"; then
25851 cat >>confdefs.h
<<\_ACEOF
25852 #define USE_LUCID 1
25855 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
25857 cat >>confdefs.h
<<\_ACEOF
25858 #define USE_MOTIF 1
25863 if test "${HAVE_X11}" = "yes" ; then
25865 cat >>confdefs.h
<<\_ACEOF
25870 if test "${HAVE_MENUS}" = "yes" ; then
25872 cat >>confdefs.h
<<\_ACEOF
25873 #define HAVE_MENUS 1
25877 if test "${GNU_MALLOC}" = "yes" ; then
25879 cat >>confdefs.h
<<\_ACEOF
25880 #define GNU_MALLOC 1
25884 if test "${REL_ALLOC}" = "yes" ; then
25886 cat >>confdefs.h
<<\_ACEOF
25887 #define REL_ALLOC 1
25897 #### Report on what we decided to do.
25898 #### Report GTK as a toolkit, even if it doesn't use Xt.
25899 #### It makes printing result more understandable as using GTK sets
25900 #### toolkit_scroll_bars to yes by default.
25901 if test "${HAVE_GTK}" = "yes"; then
25906 Configured for \`${canonical}'.
25908 Where should the build process find the source code? ${srcdir}
25909 What operating system and machine description files should Emacs use?
25910 \`${opsysfile}' and \`${machfile}'
25911 What compiler should emacs be built with? ${CC} ${CFLAGS}
25912 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
25913 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
25914 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
25915 What window system should Emacs use? ${window_system}
25916 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
25918 if test -n "${x_includes}"; then
25919 echo " Where do we find X Windows header files? ${x_includes}"
25921 echo " Where do we find X Windows header files? Standard dirs"
25923 if test -n "${x_libraries}"; then
25924 echo " Where do we find X Windows libraries? ${x_libraries}"
25926 echo " Where do we find X Windows libraries? Standard dirs"
25929 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
25930 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
25931 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
25932 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
25933 echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF"
25934 echo " Does Emacs use -lpng? ${HAVE_PNG}"
25935 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
25936 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
25937 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
25938 echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
25940 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
25941 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
25942 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
25943 echo " Does Emacs use -lxft? ${HAVE_XFT}"
25945 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
25948 if test $USE_XASSERTS = yes; then
25949 echo " Compiling with asserts turned on."
25950 CPPFLAGS
="$CPPFLAGS -DXASSERTS=1"
25955 if test "$HAVE_NS" = "yes"; then
25957 echo "You must run \"make install\" in order to test the built application.
25958 The installed application will go to nextstep/Emacs.app and can be
25959 run or moved from there."
25960 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
25961 echo "The application will be fully self-contained."
25963 echo "The lisp resources for the application will be installed under ${prefix}.
25964 You may need to run \"make install\" with sudo. The application will fail
25965 to run if these resources are not installed."
25970 if test "$HAVE_DBUS" = yes && test "${opsys}" != "gnu-linux"; then
25971 echo "D-Bus integration has been tested for GNU/Linux only."
25976 # Remove any trailing slashes in these variables.
25977 test "${prefix}" != NONE
&&
25978 prefix
=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
25979 test "${exec_prefix}" != NONE
&&
25980 exec_prefix
=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
25982 # Now get this: Some word that is part of the ${srcdir} directory name
25983 # or the ${configuration} value might, just might, happen to be an
25984 # identifier like `sun4' or `i386' or something, and be predefined by
25985 # the C preprocessor to some helpful value like 1, or maybe the empty
25986 # string. Needless to say consequent macro substitutions are less
25987 # than conducive to the makefile finding the correct directory.
25988 cpp_undefs
="`echo $srcdir $configuration $canonical |
25989 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
25990 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g'`"
25992 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
25993 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
25994 ## from Makefile.c can correctly provide the arg `-traditional' to the
25997 cat >conftest.
$ac_ext <<_ACEOF
26000 cat confdefs.h
>>conftest.
$ac_ext
26001 cat >>conftest.
$ac_ext <<_ACEOF
26002 /* end confdefs.h. */
26005 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26006 $EGREP "yes..yes" >/dev
/null
2>&1; then
26007 CPP_NEED_TRADITIONAL
=no
26009 CPP_NEED_TRADITIONAL
=yes
26014 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"
26016 ac_config_commands
="$ac_config_commands default"
26018 cat >confcache
<<\_ACEOF
26019 # This file is a shell script that caches the results of configure
26020 # tests run on this system so they can be shared between configure
26021 # scripts and configure runs, see configure's option --config-cache.
26022 # It is not useful on other systems. If it contains results you don't
26023 # want to keep, you may remove or edit it.
26025 # config.status only pays attention to the cache file if you give it
26026 # the --recheck option to rerun configure.
26028 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26029 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26030 # following values.
26034 # The following way of writing the cache mishandles newlines in values,
26035 # but we know of no workaround that is simple, portable, and efficient.
26036 # So, we kill variables containing newlines.
26037 # Ultrix sh set writes to stderr and can't be redirected directly,
26038 # and sets the high bit in the cache file unless we assign to the vars.
26040 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26041 eval ac_val
=\$
$ac_var
26045 *_cv_
*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
26046 $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
26049 _ | IFS | as_nl
) ;; #(
26050 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
26051 *) $as_unset $ac_var ;;
26057 case $as_nl`(ac_space=' '; set) 2>&1` in #(
26058 *${as_nl}ac_space
=\
*)
26059 # `set' does not quote correctly, so add quotes (double-quote
26060 # substitution turns \\\\ into \\, and sed turns \\ into \).
26063 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26066 # `set' quotes correctly as required by POSIX, so do not add quotes.
26067 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26076 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26078 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26080 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
26081 if test -w "$cache_file"; then
26082 test "x$cache_file" != "x/dev/null" &&
26083 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
26084 $as_echo "$as_me: updating cache $cache_file" >&6;}
26085 cat confcache
>$cache_file
26087 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
26088 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26093 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
26094 # Let make expand exec_prefix.
26095 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
26097 DEFS
=-DHAVE_CONFIG_H
26101 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
26102 # 1. Remove the extension, and $U if already installed.
26103 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
26104 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
26105 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
26106 # will be set to the directory where LIBOBJS objects are built.
26107 ac_libobjs
="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
26108 ac_ltlibobjs
="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
26110 LIBOBJS
=$ac_libobjs
26112 LTLIBOBJS
=$ac_ltlibobjs
26116 : ${CONFIG_STATUS=./config.status}
26118 ac_clean_files_save
=$ac_clean_files
26119 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
26120 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
26121 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
26122 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26124 # Generated by $as_me.
26125 # Run this file to recreate the current configuration.
26126 # Compiler output produced by configure, useful for debugging
26127 # configure, is in config.log if it exists.
26130 ac_cs_recheck=false
26132 SHELL=\${CONFIG_SHELL-$SHELL}
26135 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
26136 ## --------------------- ##
26137 ## M4sh Initialization. ##
26138 ## --------------------- ##
26140 # Be more Bourne compatible
26141 DUALCASE
=1; export DUALCASE
# for MKS sh
26142 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
26145 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26146 # is contrary to our usage. Disable this feature.
26147 alias -g '${1+"$@"}'='"$@"'
26148 setopt NO_GLOB_SUBST
26150 case `(set -o) 2>/dev/null` in
26151 *posix
*) set -o posix
;;
26160 # Avoid depending upon Character Ranges.
26161 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
26162 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26163 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
26164 as_cr_digits
='0123456789'
26165 as_cr_alnum
=$as_cr_Letters$as_cr_digits
26170 # Printing a long string crashes Solaris 7 /usr/bin/printf.
26171 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
26172 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
26173 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
26174 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
26175 as_echo='printf %s
\n'
26176 as_echo_n='printf %s
'
26178 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
26179 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
26180 as_echo_n='/usr
/ucb
/echo -n'
26182 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
26183 as_echo_n_body='eval
26187 expr "X$arg" : "X\\(.*\\)$as_nl";
26188 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
26190 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
26192 export as_echo_n_body
26193 as_echo_n='sh
-c $as_echo_n_body as_echo
'
26195 export as_echo_body
26196 as_echo='sh
-c $as_echo_body as_echo
'
26199 # The user is always right.
26200 if test "${PATH_SEPARATOR+set}" != set; then
26202 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
26203 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
26208 # Support unset when possible.
26209 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26217 # We need space, tab and new line, in precisely that order. Quoting is
26218 # there to prevent editors from complaining about space-tab.
26219 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
26220 # splitting by setting IFS to empty value.)
26223 # Find who we are. Look in the path if we contain no directory separator.
26225 *[\\/]* ) as_myself=$0 ;;
26226 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26227 for as_dir in $PATH
26230 test -z "$as_dir" && as_dir=.
26231 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26237 # We did not find ourselves, most probably we were run as `sh COMMAND'
26238 # in which case we are not to be found in the path.
26239 if test "x$as_myself" = x
; then
26242 if test ! -f "$as_myself"; then
26243 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26244 { (exit 1); exit 1; }
26247 # Work around bugs in pre-3.0 UWIN ksh.
26248 for as_var
in ENV MAIL MAILPATH
26249 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
26261 # Required to use basename.
26262 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
26263 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
26269 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
26270 as_basename
=basename
26276 # Name of the executable.
26277 as_me
=`$as_basename -- "$0" ||
26278 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26279 X"$0" : 'X\(//\)$' \| \
26280 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
26282 sed '/^.*\/\([^/][^/]*\)\/*$/{
26301 as_lineno_1
=$LINENO
26302 as_lineno_2
=$LINENO
26303 test "x$as_lineno_1" != "x$as_lineno_2" &&
26304 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
26306 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
26307 # uniformly replaced by the line number. The first 'sed' inserts a
26308 # line-number line after each line using $LINENO; the second 'sed'
26309 # does the real work. The second script uses 'N' to pair each
26310 # line-number line with the line containing $LINENO, and appends
26311 # trailing '-' during substitution so that $LINENO is not a special
26312 # case at line end.
26313 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
26314 # scripts with optimization help from Paolo Bonzini. Blame Lee
26315 # E. McMahon (1931-1989) for sed's syntax. :-)
26327 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
26330 ' >$as_me.lineno
&&
26331 chmod +x
"$as_me.lineno" ||
26332 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
26333 { (exit 1); exit 1; }; }
26335 # Don't try to exec as it changes $[0], causing all sort of problems
26336 # (the dirname of $[0] is not the place where we might find the
26337 # original and so on. Autoconf is especially sensitive to this).
26338 .
"./$as_me.lineno"
26339 # Exit status is that of the last command.
26344 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
26350 ECHO_C
= ECHO_N
= ECHO_T
=
26351 case `echo -n x` in
26353 case `echo 'x\c'` in
26354 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
26360 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
26361 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
26367 rm -f conf$$ conf$$.exe conf$$.
file
26368 if test -d conf$$.dir
; then
26369 rm -f conf$$.dir
/conf$$.
file
26372 mkdir conf$$.dir
2>/dev
/null
26374 if (echo >conf$$.
file) 2>/dev
/null
; then
26375 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
26377 # ... but there are two gotchas:
26378 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
26379 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
26380 # In both cases, we have to default to `cp -p'.
26381 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
26383 elif ln conf$$.
file conf$$
2>/dev
/null
; then
26391 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
26392 rmdir conf$$.dir
2>/dev
/null
26394 if mkdir
-p .
2>/dev
/null
; then
26397 test -d .
/-p && rmdir .
/-p
26401 if test -x / >/dev
/null
2>&1; then
26402 as_test_x
='test -x'
26404 if ls -dL / >/dev
/null
2>&1; then
26411 if test -d "$1"; then
26417 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
26418 ???[sx]*):;;*)false;;esac;fi
26422 as_executable_p
=$as_test_x
26424 # Sed expression to map a string onto a valid CPP name.
26425 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26427 # Sed expression to map a string onto a valid variable name.
26428 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26433 # Save the log message, to keep $[0] and so on meaningful, and to
26434 # report actual input values of CONFIG_FILES etc. instead of their
26435 # values after options handling.
26437 This file was extended by emacs $as_me 24.0.50, which was
26438 generated by GNU Autoconf 2.62. Invocation command line was
26440 CONFIG_FILES = $CONFIG_FILES
26441 CONFIG_HEADERS = $CONFIG_HEADERS
26442 CONFIG_LINKS = $CONFIG_LINKS
26443 CONFIG_COMMANDS = $CONFIG_COMMANDS
26446 on `(hostname || uname -n) 2>/dev/null | sed 1q`
26451 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26452 # Files that config.status was made for.
26453 config_files="$ac_config_files"
26454 config_headers="$ac_config_headers"
26455 config_commands="$ac_config_commands"
26459 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
26461 \`$as_me' instantiates files from templates according to the
26462 current configuration.
26464 Usage: $0 [OPTIONS] [FILE]...
26466 -h, --help print this help, then exit
26467 -V, --version print version number and configuration settings, then exit
26468 -q, --quiet do not print progress messages
26469 -d, --debug don't remove temporary files
26470 --recheck update $as_me by reconfiguring in the same conditions
26471 --file=FILE[:TEMPLATE]
26472 instantiate the configuration file FILE
26473 --header=FILE[:TEMPLATE]
26474 instantiate the configuration header FILE
26476 Configuration files:
26479 Configuration headers:
26482 Configuration commands:
26485 Report bugs to <bug-autoconf@gnu.org>."
26488 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26490 emacs config.status 24.0.50
26491 configured by $0, generated by GNU Autoconf 2.62,
26492 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
26494 Copyright (C) 2008 Free Software Foundation, Inc.
26495 This config.status script is free software; the Free Software Foundation
26496 gives unlimited permission to copy, distribute and modify it."
26501 test -n "\$AWK" || AWK=awk
26504 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
26505 # The default lists apply if the user does not specify any file.
26511 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
26512 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
26523 # Handling of the options.
26524 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
26526 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
26527 $as_echo "$ac_cs_version"; exit ;;
26528 --debug |
--debu |
--deb |
--de |
--d |
-d )
26530 --file |
--fil |
--fi |
--f )
26533 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26535 CONFIG_FILES
="$CONFIG_FILES '$ac_optarg'"
26536 ac_need_defaults
=false
;;
26537 --header |
--heade |
--head |
--hea )
26540 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26542 CONFIG_HEADERS
="$CONFIG_HEADERS '$ac_optarg'"
26543 ac_need_defaults
=false
;;
26545 # Conflict between --help and --header
26546 { $as_echo "$as_me: error: ambiguous option: $1
26547 Try \`$0 --help' for more information." >&2
26548 { (exit 1); exit 1; }; };;
26549 --help |
--hel |
-h )
26550 $as_echo "$ac_cs_usage"; exit ;;
26551 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
26552 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
26555 # This is an error.
26556 -*) { $as_echo "$as_me: error: unrecognized option: $1
26557 Try \`$0 --help' for more information." >&2
26558 { (exit 1); exit 1; }; } ;;
26560 *) ac_config_targets
="$ac_config_targets $1"
26561 ac_need_defaults
=false
;;
26567 ac_configure_extra_args
=
26569 if $ac_cs_silent; then
26571 ac_configure_extra_args
="$ac_configure_extra_args --silent"
26575 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26576 if \$ac_cs_recheck; then
26577 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26579 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
26580 CONFIG_SHELL='$SHELL'
26581 export CONFIG_SHELL
26586 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
26590 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26591 ## Running $as_me. ##
26597 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26601 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS" cpp_undefs="$cpp_undefs"
26605 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
26607 # Handling of arguments.
26608 for ac_config_target
in $ac_config_targets
26610 case $ac_config_target in
26611 "src/config.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
26612 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
26613 "lib-src/Makefile.c") CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
26614 "oldXMenu/Makefile") CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
26615 "doc/emacs/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/emacs/Makefile" ;;
26616 "doc/misc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/misc/Makefile" ;;
26617 "doc/lispintro/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispintro/Makefile" ;;
26618 "doc/lispref/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispref/Makefile" ;;
26619 "src/Makefile.c") CONFIG_FILES
="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
26620 "lwlib/Makefile") CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
26621 "lisp/Makefile") CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
26622 "leim/Makefile") CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
26623 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
26625 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
26626 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
26627 { (exit 1); exit 1; }; };;
26632 # If the user did not use the arguments to specify the items to instantiate,
26633 # then the envvar interface is used. Set only those that are not.
26634 # We use the long form for the default assignment because of an extremely
26635 # bizarre bug on SunOS 4.1.3.
26636 if $ac_need_defaults; then
26637 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
26638 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
26639 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
26642 # Have a temporary directory for convenience. Make it in the build tree
26643 # simply because there is no reason against having it here, and in addition,
26644 # creating and moving files from /tmp can sometimes cause problems.
26645 # Hook for its removal unless debugging.
26646 # Note that there is a small window in which the directory will not be cleaned:
26647 # after its creation but before its name has been assigned to `$tmp'.
26651 trap 'exit_status=$?
26652 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
26654 trap '{ (exit 1); exit 1; }' 1 2 13 15
26656 # Create a (secure) tmp directory for tmp files.
26659 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
26660 test -n "$tmp" && test -d "$tmp"
26663 tmp
=.
/conf$$
-$RANDOM
26664 (umask 077 && mkdir
"$tmp")
26667 $as_echo "$as_me: cannot create a temporary directory in ." >&2
26668 { (exit 1); exit 1; }
26671 # Set up the scripts for CONFIG_FILES section.
26672 # No need to generate them if there are no CONFIG_FILES.
26673 # This happens for instance with `./config.status config.h'.
26674 if test -n "$CONFIG_FILES"; then
26678 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
26679 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
26682 ac_cs_awk_cr
=$ac_cr
26685 echo 'BEGIN {' >"$tmp/subs1.awk" &&
26690 echo "cat >conf$$subs.awk <<_ACEOF" &&
26691 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
26693 } >conf$$subs.sh ||
26694 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_STATUS" >&5
26695 $as_echo "$as_me: error
: could not
make $CONFIG_STATUS" >&2;}
26696 { (exit 1); exit 1; }; }
26697 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
26699 for ac_last_try in false false false false false :; do
26700 . ./conf$$subs.sh ||
26701 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_STATUS" >&5
26702 $as_echo "$as_me: error
: could not
make $CONFIG_STATUS" >&2;}
26703 { (exit 1); exit 1; }; }
26705 if test `sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X` = $ac_delim_num; then
26707 elif $ac_last_try; then
26708 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_STATUS" >&5
26709 $as_echo "$as_me: error
: could not
make $CONFIG_STATUS" >&2;}
26710 { (exit 1); exit 1; }; }
26712 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
26715 rm -f conf$$subs.sh
26717 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26718 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
26722 s/^/S["/; s
/!.
*/"]=/
26732 s/\(.\{148\}\).*/\1/
26734 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
26739 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
26746 s/\(.\{148\}\).*/\1/
26748 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
26752 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
26757 ' <conf$$subs.awk | sed '
26762 ' >>$CONFIG_STATUS || ac_write_fail=1
26763 rm -f conf$$subs.awk
26764 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26766 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
26767 for (key in S) S_is_set[key] = 1
26773 nfields = split(line, field, "@
")
26775 len = length(field[1])
26776 for (i = 2; i < nfields; i++) {
26778 keylen = length(key)
26779 if (S_is_set[key]) {
26781 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
26782 len += length(value) + length(field[++i])
26793 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26794 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
26795 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
26798 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
26799 || { { $as_echo "$as_me:$LINENO: error
: could not setup config files machinery
" >&5
26800 $as_echo "$as_me: error
: could not setup config files machinery
" >&2;}
26801 { (exit 1); exit 1; }; }
26804 # VPATH may cause trouble with some makes, so we remove $(srcdir),
26805 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
26806 # trailing colons and then remove the whole line if VPATH becomes empty
26807 # (actually we leave an empty line to preserve line numbers).
26808 if test "x
$srcdir" = x.; then
26809 ac_vpsub='/^[ ]*VPATH[ ]*=/{
26810 s/:*\$(srcdir):*/:/
26811 s/:*\${srcdir}:*/:/
26813 s/^\([^=]*=[ ]*\):*/\1/
26819 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26820 fi # test -n "$CONFIG_FILES"
26822 # Set up the scripts for CONFIG_HEADERS section.
26823 # No need to generate them if there are no CONFIG_HEADERS.
26824 # This happens for instance with `./config.status Makefile'.
26825 if test -n "$CONFIG_HEADERS"; then
26826 cat >"$tmp/defines.
awk" <<\_ACAWK ||
26830 # Transform confdefs.h into an awk script `defines.awk', embedded as
26831 # here-document in config.status, that substitutes the proper values into
26832 # config.h.in to produce config.h.
26834 # Create a delimiter string that does not exist in confdefs.h, to ease
26835 # handling of long lines.
26837 for ac_last_try in false false :; do
26838 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
26839 if test -z "$ac_t"; then
26841 elif $ac_last_try; then
26842 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_HEADERS" >&5
26843 $as_echo "$as_me: error
: could not
make $CONFIG_HEADERS" >&2;}
26844 { (exit 1); exit 1; }; }
26846 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
26850 # For the awk script, D is an array of macro values keyed by name,
26851 # likewise P contains macro parameters if any. Preserve backslash
26852 # newline sequences.
26854 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
26856 s/.\{148\}/&'"$ac_delim"'/g
26859 s/^[ ]*#[ ]*define[ ][ ]*/ /
26866 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
26868 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
26872 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
26873 D["\
1"]=" \
3\\\\\\n
"\\/p
26875 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
26880 s/.\{148\}/&'"$ac_delim"'/g
26885 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
26888 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
26890 ' <confdefs.h | sed '
26891 s/'"$ac_delim"'/"\\\
26892 "/g' >>$CONFIG_STATUS || ac_write_fail=1
26894 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26895 for (key in D) D_is_set[key] = 1
26898 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
26900 split(line, arg, " ")
26901 if (arg[1] == "#") {
26905 defundef
= substr
(arg
[1], 2)
26908 split(mac1
, mac2
, "(") #)
26910 if (D_is_set
[macro
]) {
26911 # Preserve the white space surrounding the "#".
26912 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
26913 print prefix
"define", macro P
[macro
] D
[macro
]
26916 # Replace #undef with comments. This is necessary, for example,
26917 # in the case of _POSIX_SOURCE, which is predefined and required
26918 # on some systems where configure will not decide to define it.
26919 if (defundef
== "undef") {
26920 print
"/*", line
, "*/"
26928 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
26929 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
26930 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
26931 { (exit 1); exit 1; }; }
26932 fi # test -n "$CONFIG_HEADERS"
26935 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
26940 :[FHLC
]) ac_mode
=$ac_tag; continue;;
26942 case $ac_mode$ac_tag in
26944 :L
* |
:C
*:*) { { $as_echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
26945 $as_echo "$as_me: error: Invalid tag $ac_tag." >&2;}
26946 { (exit 1); exit 1; }; };;
26947 :[FH
]-) ac_tag
=-:-;;
26948 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
26965 -) ac_f
="$tmp/stdin";;
26966 *) # Look for the file first in the build tree, then in the source tree
26967 # (if the path is not absolute). The absolute path cannot be DOS-style,
26968 # because $ac_f cannot contain `:'.
26972 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
26974 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
26975 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
26976 { (exit 1); exit 1; }; };;
26978 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
26979 ac_file_inputs
="$ac_file_inputs '$ac_f'"
26982 # Let's still pretend it is `configure' which instantiates (i.e., don't
26983 # use $as_me), people would be surprised to read:
26984 # /* config.h. Generated by config.status. */
26985 configure_input
='Generated from '`
26986 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
26988 if test x
"$ac_file" != x-
; then
26989 configure_input
="$ac_file. $configure_input"
26990 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
26991 $as_echo "$as_me: creating $ac_file" >&6;}
26993 # Neutralize special characters interpreted by sed in replacement strings.
26994 case $configure_input in #(
26995 *\
&* |
*\|
* |
*\\* )
26996 ac_sed_conf_input
=`$as_echo "$configure_input" |
26997 sed 's/[\\\\&|]/\\\\&/g'`;; #(
26998 *) ac_sed_conf_input
=$configure_input;;
27002 *:-:* |
*:-) cat >"$tmp/stdin" \
27003 ||
{ { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27004 $as_echo "$as_me: error: could not create $ac_file" >&2;}
27005 { (exit 1); exit 1; }; } ;;
27010 ac_dir
=`$as_dirname -- "$ac_file" ||
27011 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27012 X"$ac_file" : 'X\(//\)[^/]' \| \
27013 X"$ac_file" : 'X\(//\)$' \| \
27014 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
27015 $as_echo X"$ac_file" |
27016 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27020 /^X\(\/\/\)[^/].*/{
27035 -*) as_dir
=.
/$as_dir;;
27037 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
27041 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
27042 *) as_qdir
=$as_dir;;
27044 as_dirs
="'$as_qdir' $as_dirs"
27045 as_dir
=`$as_dirname -- "$as_dir" ||
27046 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27047 X"$as_dir" : 'X\(//\)[^/]' \| \
27048 X"$as_dir" : 'X\(//\)$' \| \
27049 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27050 $as_echo X"$as_dir" |
27051 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27055 /^X\(\/\/\)[^/].*/{
27068 test -d "$as_dir" && break
27070 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
27071 } ||
test -d "$as_dir" ||
{ { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
27072 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
27073 { (exit 1); exit 1; }; }; }
27077 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
27079 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
27080 # A ".." for each directory in $ac_dir_suffix.
27081 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
27082 case $ac_top_builddir_sub in
27083 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
27084 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
27087 ac_abs_top_builddir
=$ac_pwd
27088 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
27089 # for backward compatibility:
27090 ac_top_builddir
=$ac_top_build_prefix
27093 .
) # We are building in place.
27095 ac_top_srcdir
=$ac_top_builddir_sub
27096 ac_abs_top_srcdir
=$ac_pwd ;;
27097 [\\/]* | ?
:[\\/]* ) # Absolute name.
27098 ac_srcdir
=$srcdir$ac_dir_suffix;
27099 ac_top_srcdir
=$srcdir
27100 ac_abs_top_srcdir
=$srcdir ;;
27101 *) # Relative name.
27102 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
27103 ac_top_srcdir
=$ac_top_build_prefix$srcdir
27104 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
27106 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
27116 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
27117 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
27121 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27122 # If the template does not know about datarootdir, expand it.
27123 # FIXME: This hack should be removed a few years after 2.60.
27124 ac_datarootdir_hack
=; ac_datarootdir_seen
=
27137 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
27138 *datarootdir
*) ac_datarootdir_seen
=yes;;
27139 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
27140 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
27141 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
27143 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27144 ac_datarootdir_hack='
27145 s&@datadir@&$datadir&g
27146 s&@docdir@&$docdir&g
27147 s&@infodir@&$infodir&g
27148 s&@localedir@&$localedir&g
27149 s&@mandir@&$mandir&g
27150 s&\\\${datarootdir}&$datarootdir&g' ;;
27154 # Neutralize VPATH when `$srcdir' = `.'.
27155 # Shell code in configure.ac might set extrasub.
27156 # FIXME: do we really want to maintain this feature?
27157 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27158 ac_sed_extra="$ac_vpsub
27161 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27163 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
27164 s|@configure_input@|
$ac_sed_conf_input|
;t t
27165 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
27166 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
27167 s
&@srcdir@
&$ac_srcdir&;t t
27168 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
27169 s
&@top_srcdir@
&$ac_top_srcdir&;t t
27170 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
27171 s
&@builddir@
&$ac_builddir&;t t
27172 s
&@abs_builddir@
&$ac_abs_builddir&;t t
27173 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
27174 s
&@INSTALL@
&$ac_INSTALL&;t t
27175 $ac_datarootdir_hack
27177 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.
awk" >$tmp/out \
27178 || { { $as_echo "$as_me:$LINENO: error
: could not create
$ac_file" >&5
27179 $as_echo "$as_me: error
: could not create
$ac_file" >&2;}
27180 { (exit 1); exit 1; }; }
27182 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
27183 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
27184 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
27185 { $as_echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
27186 which seems to be undefined. Please make sure it is defined." >&5
27187 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
27188 which seems to be undefined. Please make sure it is defined." >&2;}
27192 -) cat "$tmp/out" && rm -f "$tmp/out";;
27193 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
27195 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27196 $as_echo "$as_me: error: could not create $ac_file" >&2;}
27197 { (exit 1); exit 1; }; }
27203 if test x"$ac_file" != x-; then
27205 $as_echo "/* $configure_input */" \
27206 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
27207 } >"$tmp/config.h" \
27208 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27209 $as_echo "$as_me: error: could not create $ac_file" >&2;}
27210 { (exit 1); exit 1; }; }
27211 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
27212 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
27213 $as_echo "$as_me: $ac_file is unchanged" >&6;}
27216 mv "$tmp/config.h" "$ac_file" \
27217 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27218 $as_echo "$as_me: error: could not create $ac_file" >&2;}
27219 { (exit 1); exit 1; }; }
27222 $as_echo "/* $configure_input */" \
27223 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
27224 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
27225 $as_echo "$as_me: error: could not create -" >&2;}
27226 { (exit 1); exit 1; }; }
27230 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
27231 $as_echo "$as_me: executing $ac_file commands" >&6;}
27236 case $ac_file$ac_mode in
27239 ### Make the necessary directories, if they don't exist.
27240 for dir
in etc lisp
; do
27241 test -d ${dir} || mkdir
${dir}
27244 # Build src/Makefile from ${srcdir}/src/Makefile.c
27245 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
27246 # This must be done after src/config.h is built, since we rely on that file.
27248 echo creating src
/epaths.h
27249 ${MAKE-make} epaths-force
27251 # As of 2000-11-19, newest development versions of GNU cpp preprocess
27252 # `..' to `. .' unless invoked with -traditional
27254 if test "x$GCC" = xyes
&& test "x$CPP_NEED_TRADITIONAL" = xyes
; then
27255 CPPFLAGS
="$CPPFLAGS -traditional"
27258 echo creating lib-src
/Makefile
27260 rm -f junk.c junk1.c junk2.c
27261 sed -e '/start of cpp stuff/q' \
27262 < Makefile.c
> junk1.c
27263 sed -e '1,/start of cpp stuff/d'\
27264 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
27265 < Makefile.c
> junk.c
27266 $CPP -P $cpp_undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
27267 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
27268 cat junk1.c junk2.c
> Makefile.new
27269 rm -f junk.c junk1.c junk2.c
27270 chmod 444 Makefile.new
27271 mv -f Makefile.new Makefile
27274 echo creating src
/Makefile
27276 rm -f junk.c junk1.c junk2.c
27277 sed -e '/start of cpp stuff/q' \
27278 < Makefile.c
> junk1.c
27279 sed -e '1,/start of cpp stuff/d'\
27280 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
27281 < Makefile.c
> junk.c
27282 $CPP -P $cpp_undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
27283 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
27284 cat junk1.c junk2.c
> Makefile.new
27285 rm -f junk.c junk1.c junk2.c
27286 chmod 444 Makefile.new
27287 mv -f Makefile.new Makefile
27290 if test ! -f src
/.gdbinit
&& test -f $srcdir/src
/.gdbinit
; then
27291 echo creating src
/.gdbinit
27292 echo source $srcdir/src
/.gdbinit
> src
/.gdbinit
27301 { (exit 0); exit 0; }
27303 chmod +x
$CONFIG_STATUS
27304 ac_clean_files
=$ac_clean_files_save
27306 test $ac_write_fail = 0 ||
27307 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
27308 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
27309 { (exit 1); exit 1; }; }
27312 # configure is writing to config.log, and then calls config.status.
27313 # config.status does its own redirection, appending to config.log.
27314 # Unfortunately, on DOS this fails, as config.log is still kept open
27315 # by configure, so config.status won't be able to write to it; its
27316 # output is simply discarded. So we exec the FD to /dev/null,
27317 # effectively closing config.log, so it can be properly (re)opened and
27318 # appended to by config.status. When coming back to configure, we
27319 # need to make the FD available again.
27320 if test "$no_create" != yes; then
27322 ac_config_status_args
=
27323 test "$silent" = yes &&
27324 ac_config_status_args
="$ac_config_status_args --quiet"
27326 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
27328 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27329 # would make configure fail if this is the last instruction.
27330 $ac_cs_success ||
{ (exit 1); exit 1; }
27332 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
27333 { $as_echo "$as_me:$LINENO: WARNING: Unrecognized options: $ac_unrecognized_opts" >&5
27334 $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2;}