2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.62 for emacs 23.1.50.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be more Bourne compatible
14 DUALCASE
=1; export DUALCASE
# for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
18 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
23 case `(set -o) 2>/dev/null` in
24 *posix
*) set -o posix
;;
33 # Avoid depending upon Character Ranges.
34 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits
='0123456789'
38 as_cr_alnum
=$as_cr_Letters$as_cr_digits
43 # Printing a long string crashes Solaris 7 /usr/bin/printf.
44 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
53 as_echo_n='/usr
/ucb
/echo -n'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
66 as_echo_n='sh
-c $as_echo_n_body as_echo
'
69 as_echo='sh
-c $as_echo_body as_echo
'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 # Support unset when possible.
82 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
90 # We need space, tab and new line, in precisely that order. Quoting is
91 # there to prevent editors from complaining about space-tab.
92 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
93 # splitting by setting IFS to empty value.)
96 # Find who we are. Look in the path if we contain no directory separator.
98 *[\\/]* ) as_myself=$0 ;;
99 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
103 test -z "$as_dir" && as_dir=.
104 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
110 # We did not find ourselves, most probably we were run as `sh COMMAND'
111 # in which case we are not to be found in the path.
112 if test "x$as_myself" = x
; then
115 if test ! -f "$as_myself"; then
116 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117 { (exit 1); exit 1; }
120 # Work around bugs in pre-3.0 UWIN ksh.
121 for as_var
in ENV MAIL MAILPATH
122 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
134 # Required to use basename.
135 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
136 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
142 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
149 # Name of the executable.
150 as_me
=`$as_basename -- "$0" ||
151 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
152 X"$0" : 'X\(//\)$' \| \
153 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
155 sed '/^.*\/\([^/][^/]*\)\/*$/{
173 if test "x$CONFIG_SHELL" = x
; then
174 if (eval ":") 2>/dev
/null
; then
180 if test $as_have_required = yes && (eval ":
190 as_func_ret_success () {
193 as_func_ret_failure () {
198 if as_func_success; then
202 echo as_func_success failed.
205 if as_func_failure; then
207 echo as_func_failure succeeded.
210 if as_func_ret_success; then
214 echo as_func_ret_success failed.
217 if as_func_ret_failure; then
219 echo as_func_ret_failure succeeded.
222 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
226 echo positional parameters were not saved.
229 test \$exitcode = 0) || { (exit 1); exit 1; }
234 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
235 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
236 ") 2> /dev
/null
; then
240 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
241 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
244 test -z "$as_dir" && as_dir
=.
247 for as_base
in sh bash ksh sh5
; do
248 as_candidate_shells
="$as_candidate_shells $as_dir/$as_base"
255 for as_shell
in $as_candidate_shells $SHELL; do
256 # Try only shells that exist, to save several forks.
257 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
258 { ("$as_shell") 2> /dev
/null
<<\_ASEOF
259 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
262 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
263 # is contrary to our usage. Disable this feature.
264 alias -g '${1+"$@"}'='"$@"'
267 case `(set -o) 2>/dev/null` in
268 *posix
*) set -o posix
;;
277 CONFIG_SHELL
=$as_shell
279 if { "$as_shell" 2> /dev
/null
<<\_ASEOF
280 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
283 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
284 # is contrary to our usage. Disable this feature.
285 alias -g '${1+"$@"}'='"$@"'
288 case `(set -o) 2>/dev/null` in
289 *posix
*) set -o posix
;;
305 as_func_ret_success
() {
308 as_func_ret_failure
() {
313 if as_func_success
; then
317 echo as_func_success failed.
320 if as_func_failure
; then
322 echo as_func_failure succeeded.
325 if as_func_ret_success
; then
329 echo as_func_ret_success failed.
332 if as_func_ret_failure
; then
334 echo as_func_ret_failure succeeded.
337 if ( set x
; as_func_ret_success y
&& test x
= "$1" ); then
341 echo positional parameters were not saved.
344 test $exitcode = 0) ||
{ (exit 1); exit 1; }
349 test "x$as_lineno_1" != "x$as_lineno_2" &&
350 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") ||
{ (exit 1); exit 1; }
361 if test "x$CONFIG_SHELL" != x
; then
362 for as_var
in BASH_ENV ENV
363 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
366 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
370 if test $as_have_required = no
; then
371 echo This
script requires a shell
more modern than all the
372 echo shells that I found on your system. Please
install a
373 echo modern shell
, or manually run the
script under such a
374 echo shell
if you
do have one.
375 { (exit 1); exit 1; }
385 (eval "as_func_return () {
394 as_func_ret_success () {
397 as_func_ret_failure () {
402 if as_func_success; then
406 echo as_func_success failed.
409 if as_func_failure; then
411 echo as_func_failure succeeded.
414 if as_func_ret_success; then
418 echo as_func_ret_success failed.
421 if as_func_ret_failure; then
423 echo as_func_ret_failure succeeded.
426 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
430 echo positional parameters were not saved.
433 test \$exitcode = 0") ||
{
434 echo No shell found that supports shell functions.
435 echo Please tell bug-autoconf@gnu.org about your system
,
436 echo including any error possibly output before this message.
437 echo This can
help us improve future autoconf versions.
438 echo Configuration will now proceed without shell functions.
445 test "x$as_lineno_1" != "x$as_lineno_2" &&
446 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
448 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
449 # uniformly replaced by the line number. The first 'sed' inserts a
450 # line-number line after each line using $LINENO; the second 'sed'
451 # does the real work. The second script uses 'N' to pair each
452 # line-number line with the line containing $LINENO, and appends
453 # trailing '-' during substitution so that $LINENO is not a special
455 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
456 # scripts with optimization help from Paolo Bonzini. Blame Lee
457 # E. McMahon (1931-1989) for sed's syntax. :-)
469 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
473 chmod +x
"$as_me.lineno" ||
474 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
475 { (exit 1); exit 1; }; }
477 # Don't try to exec as it changes $[0], causing all sort of problems
478 # (the dirname of $[0] is not the place where we might find the
479 # original and so on. Autoconf is especially sensitive to this).
481 # Exit status is that of the last command.
486 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
492 ECHO_C
= ECHO_N
= ECHO_T
=
496 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
502 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
503 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
509 rm -f conf$$ conf$$.exe conf$$.
file
510 if test -d conf$$.dir
; then
511 rm -f conf$$.dir
/conf$$.
file
514 mkdir conf$$.dir
2>/dev
/null
516 if (echo >conf$$.
file) 2>/dev
/null
; then
517 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
519 # ... but there are two gotchas:
520 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
521 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
522 # In both cases, we have to default to `cp -p'.
523 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
525 elif ln conf$$.
file conf$$
2>/dev
/null
; then
533 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
534 rmdir conf$$.dir
2>/dev
/null
536 if mkdir
-p .
2>/dev
/null
; then
539 test -d .
/-p && rmdir .
/-p
543 if test -x / >/dev
/null
2>&1; then
546 if ls -dL / >/dev
/null
2>&1; then
553 if test -d "$1"; then
559 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
560 ???[sx]*):;;*)false;;esac;fi
564 as_executable_p
=$as_test_x
566 # Sed expression to map a string onto a valid CPP name.
567 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
569 # Sed expression to map a string onto a valid variable name.
570 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
574 exec 7<&0 </dev
/null
6>&1
577 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
578 # so uname gets run too.
579 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
584 ac_default_prefix
=/usr
/local
586 ac_config_libobj_dir
=.
592 SHELL
=${CONFIG_SHELL-/bin/sh}
594 # Identity of this package.
596 PACKAGE_TARNAME
='emacs'
597 PACKAGE_VERSION
='23.1.50'
598 PACKAGE_STRING
='emacs 23.1.50'
601 ac_unique_file
="src/lisp.h"
602 # Factoring default headers for most tests.
603 ac_includes_default
="\
605 #ifdef HAVE_SYS_TYPES_H
606 # include <sys/types.h>
608 #ifdef HAVE_SYS_STAT_H
609 # include <sys/stat.h>
615 # ifdef HAVE_STDLIB_H
620 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
625 #ifdef HAVE_STRINGS_H
626 # include <strings.h>
628 #ifdef HAVE_INTTYPES_H
629 # include <inttypes.h>
638 ac_config_libobj_dir
=src
650 program_transform_name
744 x_default_search_path
763 GNUSTEP_SYSTEM_HEADERS
764 GNUSTEP_SYSTEM_LIBRARIES
766 LIB_SRC_EXTRA_INSTALLABLES
771 enable_option_checking
788 with_toolkit_scroll_bars
799 enable_ns_self_contained
801 enable_maintainer_mode
809 ac_precious_vars
='build_alias
821 # Initialize some variables set by options.
823 ac_init_version
=false
824 ac_unrecognized_opts
=
826 # The variables have the same names as the options, with
827 # dashes changed to underlines.
835 program_transform_name
=s
,x
,x
,
843 # Installation directory options.
844 # These are left unexpanded so users can "make install exec_prefix=/foo"
845 # and all the variables that are supposed to be based on exec_prefix
846 # by default will actually change.
847 # Use braces instead of parens because sh, perl, etc. also accept them.
848 # (The list follows the same order as the GNU Coding Standards.)
849 bindir
='${exec_prefix}/bin'
850 sbindir
='${exec_prefix}/sbin'
851 libexecdir
='${exec_prefix}/libexec'
852 datarootdir
='${prefix}/share'
853 datadir
='${datarootdir}'
854 sysconfdir
='${prefix}/etc'
855 sharedstatedir
='${prefix}/com'
856 localstatedir
='${prefix}/var'
857 includedir
='${prefix}/include'
858 oldincludedir
='/usr/include'
859 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
860 infodir
='${datarootdir}/info'
865 libdir
='${exec_prefix}/lib'
866 localedir
='${datarootdir}/locale'
867 mandir
='${datarootdir}/man'
873 # If the previous option needs an argument, assign it.
874 if test -n "$ac_prev"; then
875 eval $ac_prev=\
$ac_option
881 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
885 # Accept the important Cygnus configure options, so we can diagnose typos.
887 case $ac_dashdash$ac_option in
891 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
893 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
896 -build |
--build |
--buil |
--bui |
--bu)
897 ac_prev
=build_alias
;;
898 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
899 build_alias
=$ac_optarg ;;
901 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
902 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
903 ac_prev
=cache_file
;;
904 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
905 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
906 cache_file
=$ac_optarg ;;
909 cache_file
=config.cache
;;
911 -datadir |
--datadir |
--datadi |
--datad)
913 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
914 datadir
=$ac_optarg ;;
916 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
917 |
--dataroo |
--dataro |
--datar)
918 ac_prev
=datarootdir
;;
919 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
920 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
921 datarootdir
=$ac_optarg ;;
923 -disable-* |
--disable-*)
924 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
925 # Reject names that are not valid shell variable names.
926 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
927 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
928 { (exit 1); exit 1; }; }
929 ac_useropt_orig
=$ac_useropt
930 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
931 case $ac_user_opts in
935 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
936 ac_unrecognized_sep
=', ';;
938 eval enable_
$ac_useropt=no
;;
940 -docdir |
--docdir |
--docdi |
--doc |
--do)
942 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
945 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
947 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
950 -enable-* |
--enable-*)
951 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
952 # Reject names that are not valid shell variable names.
953 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
954 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
955 { (exit 1); exit 1; }; }
956 ac_useropt_orig
=$ac_useropt
957 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
958 case $ac_user_opts in
962 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
963 ac_unrecognized_sep
=', ';;
965 eval enable_
$ac_useropt=\
$ac_optarg ;;
967 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
968 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
969 |
--exec |
--exe |
--ex)
970 ac_prev
=exec_prefix
;;
971 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
972 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
973 |
--exec=* |
--exe=* |
--ex=*)
974 exec_prefix
=$ac_optarg ;;
976 -gas |
--gas |
--ga |
--g)
977 # Obsolete; use --with-gas.
980 -help |
--help |
--hel |
--he |
-h)
982 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
983 ac_init_help
=recursive
;;
984 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
985 ac_init_help
=short
;;
987 -host |
--host |
--hos |
--ho)
988 ac_prev
=host_alias
;;
989 -host=* |
--host=* |
--hos=* |
--ho=*)
990 host_alias
=$ac_optarg ;;
992 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
994 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
996 htmldir
=$ac_optarg ;;
998 -includedir |
--includedir |
--includedi |
--included |
--include \
999 |
--includ |
--inclu |
--incl |
--inc)
1000 ac_prev
=includedir
;;
1001 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1002 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1003 includedir
=$ac_optarg ;;
1005 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1007 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1008 infodir
=$ac_optarg ;;
1010 -libdir |
--libdir |
--libdi |
--libd)
1012 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1013 libdir
=$ac_optarg ;;
1015 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1016 |
--libexe |
--libex |
--libe)
1017 ac_prev
=libexecdir
;;
1018 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1019 |
--libexe=* |
--libex=* |
--libe=*)
1020 libexecdir
=$ac_optarg ;;
1022 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1023 ac_prev
=localedir
;;
1024 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1025 localedir
=$ac_optarg ;;
1027 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1028 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1029 ac_prev
=localstatedir
;;
1030 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1031 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1032 localstatedir
=$ac_optarg ;;
1034 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1036 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1037 mandir
=$ac_optarg ;;
1039 -nfp |
--nfp |
--nf)
1040 # Obsolete; use --without-fp.
1043 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1044 |
--no-cr |
--no-c |
-n)
1047 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1048 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1051 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1052 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1053 |
--oldin |
--oldi |
--old |
--ol |
--o)
1054 ac_prev
=oldincludedir
;;
1055 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1056 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1057 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1058 oldincludedir
=$ac_optarg ;;
1060 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1062 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1063 prefix
=$ac_optarg ;;
1065 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1066 |
--program-pre |
--program-pr |
--program-p)
1067 ac_prev
=program_prefix
;;
1068 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1069 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1070 program_prefix
=$ac_optarg ;;
1072 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1073 |
--program-suf |
--program-su |
--program-s)
1074 ac_prev
=program_suffix
;;
1075 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1076 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1077 program_suffix
=$ac_optarg ;;
1079 -program-transform-name |
--program-transform-name \
1080 |
--program-transform-nam |
--program-transform-na \
1081 |
--program-transform-n |
--program-transform- \
1082 |
--program-transform |
--program-transfor \
1083 |
--program-transfo |
--program-transf \
1084 |
--program-trans |
--program-tran \
1085 |
--progr-tra |
--program-tr |
--program-t)
1086 ac_prev
=program_transform_name
;;
1087 -program-transform-name=* |
--program-transform-name=* \
1088 |
--program-transform-nam=* |
--program-transform-na=* \
1089 |
--program-transform-n=* |
--program-transform-=* \
1090 |
--program-transform=* |
--program-transfor=* \
1091 |
--program-transfo=* |
--program-transf=* \
1092 |
--program-trans=* |
--program-tran=* \
1093 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1094 program_transform_name
=$ac_optarg ;;
1096 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1098 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1099 pdfdir
=$ac_optarg ;;
1101 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1103 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1106 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1107 |
-silent |
--silent |
--silen |
--sile |
--sil)
1110 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1112 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1114 sbindir
=$ac_optarg ;;
1116 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1117 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1118 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1120 ac_prev
=sharedstatedir
;;
1121 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1122 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1123 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1125 sharedstatedir
=$ac_optarg ;;
1127 -site |
--site |
--sit)
1129 -site=* |
--site=* |
--sit=*)
1132 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1134 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1135 srcdir
=$ac_optarg ;;
1137 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1138 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1139 ac_prev
=sysconfdir
;;
1140 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1141 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1142 sysconfdir
=$ac_optarg ;;
1144 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1145 ac_prev
=target_alias
;;
1146 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1147 target_alias
=$ac_optarg ;;
1149 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1152 -version |
--version |
--versio |
--versi |
--vers |
-V)
1153 ac_init_version
=: ;;
1156 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1157 # Reject names that are not valid shell variable names.
1158 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1159 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1160 { (exit 1); exit 1; }; }
1161 ac_useropt_orig
=$ac_useropt
1162 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1163 case $ac_user_opts in
1167 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1168 ac_unrecognized_sep
=', ';;
1170 eval with_
$ac_useropt=\
$ac_optarg ;;
1172 -without-* |
--without-*)
1173 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1174 # Reject names that are not valid shell variable names.
1175 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1176 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1177 { (exit 1); exit 1; }; }
1178 ac_useropt_orig
=$ac_useropt
1179 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1180 case $ac_user_opts in
1184 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1185 ac_unrecognized_sep
=', ';;
1187 eval with_
$ac_useropt=no
;;
1190 # Obsolete; use --with-x.
1193 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1194 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1195 ac_prev
=x_includes
;;
1196 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1197 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1198 x_includes
=$ac_optarg ;;
1200 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1201 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1202 ac_prev
=x_libraries
;;
1203 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1204 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1205 x_libraries
=$ac_optarg ;;
1207 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1208 Try \`$0 --help' for more information." >&2
1209 { (exit 1); exit 1; }; }
1213 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1214 # Reject names that are not valid shell variable names.
1215 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1216 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1217 { (exit 1); exit 1; }; }
1218 eval $ac_envvar=\
$ac_optarg
1219 export $ac_envvar ;;
1222 # FIXME: should be removed in autoconf 3.0.
1223 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1224 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1225 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1226 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1232 if test -n "$ac_prev"; then
1233 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1234 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1235 { (exit 1); exit 1; }; }
1238 if test -n "$ac_unrecognized_opts"; then
1239 case $enable_option_checking in
1241 fatal
) { $as_echo "$as_me: error: Unrecognized options: $ac_unrecognized_opts" >&2
1242 { (exit 1); exit 1; }; } ;;
1243 *) $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2 ;;
1247 # Check all directory arguments for consistency.
1248 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1249 datadir sysconfdir sharedstatedir localstatedir includedir \
1250 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1251 libdir localedir mandir
1253 eval ac_val
=\$
$ac_var
1254 # Remove trailing slashes.
1257 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1258 eval $ac_var=\
$ac_val;;
1260 # Be sure to have absolute directory names.
1262 [\\/$
]* | ?
:[\\/]* ) continue;;
1263 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1265 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1266 { (exit 1); exit 1; }; }
1269 # There might be people who depend on the old broken behavior: `$host'
1270 # used to hold the argument of --host etc.
1271 # FIXME: To remove some day.
1274 target
=$target_alias
1276 # FIXME: To remove some day.
1277 if test "x$host_alias" != x
; then
1278 if test "x$build_alias" = x
; then
1279 cross_compiling
=maybe
1280 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1281 If a cross compiler is detected then cross compile mode will be used." >&2
1282 elif test "x$build_alias" != "x$host_alias"; then
1288 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1290 test "$silent" = yes && exec 6>/dev
/null
1293 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1294 ac_ls_di
=`ls -di .` &&
1295 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1296 { $as_echo "$as_me: error: Working directory cannot be determined" >&2
1297 { (exit 1); exit 1; }; }
1298 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1299 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1300 { (exit 1); exit 1; }; }
1303 # Find the source files, if location was not specified.
1304 if test -z "$srcdir"; then
1305 ac_srcdir_defaulted
=yes
1306 # Try the directory containing this script, then the parent directory.
1307 ac_confdir
=`$as_dirname -- "$as_myself" ||
1308 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1309 X"$as_myself" : 'X\(//\)[^/]' \| \
1310 X"$as_myself" : 'X\(//\)$' \| \
1311 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1312 $as_echo X"$as_myself" |
1313 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1331 if test ! -r "$srcdir/$ac_unique_file"; then
1335 ac_srcdir_defaulted
=no
1337 if test ! -r "$srcdir/$ac_unique_file"; then
1338 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1339 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1340 { (exit 1); exit 1; }; }
1342 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1344 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1345 { (exit 1); exit 1; }; }
1347 # When building in place, set srcdir=.
1348 if test "$ac_abs_confdir" = "$ac_pwd"; then
1351 # Remove unnecessary trailing slashes from srcdir.
1352 # Double slashes in file names in object file debugging info
1353 # mess up M-x gdb in Emacs.
1355 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1357 for ac_var
in $ac_precious_vars; do
1358 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1359 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1360 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1361 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1365 # Report the --help message.
1367 if test "$ac_init_help" = "long"; then
1368 # Omit some internal or obsolete options to make the list less imposing.
1369 # This message is too long to be a string in the A/UX 3.1 sh.
1371 \`configure' configures emacs 23.1.50 to adapt to many kinds of systems.
1373 Usage: $0 [OPTION]... [VAR=VALUE]...
1375 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1376 VAR=VALUE. See below for descriptions of some of the useful variables.
1378 Defaults for the options are specified in brackets.
1381 -h, --help display this help and exit
1382 --help=short display options specific to this package
1383 --help=recursive display the short help of all the included packages
1384 -V, --version display version information and exit
1385 -q, --quiet, --silent do not print \`checking...' messages
1386 --cache-file=FILE cache test results in FILE [disabled]
1387 -C, --config-cache alias for \`--cache-file=config.cache'
1388 -n, --no-create do not create output files
1389 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1391 Installation directories:
1392 --prefix=PREFIX install architecture-independent files in PREFIX
1393 [$ac_default_prefix]
1394 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1397 By default, \`make install' will install all the files in
1398 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1399 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1400 for instance \`--prefix=\$HOME'.
1402 For better control, use the options below.
1404 Fine tuning of the installation directories:
1405 --bindir=DIR user executables [EPREFIX/bin]
1406 --sbindir=DIR system admin executables [EPREFIX/sbin]
1407 --libexecdir=DIR program executables [EPREFIX/libexec]
1408 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1409 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1410 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1411 --libdir=DIR object code libraries [EPREFIX/lib]
1412 --includedir=DIR C header files [PREFIX/include]
1413 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1414 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1415 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1416 --infodir=DIR info documentation [DATAROOTDIR/info]
1417 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1418 --mandir=DIR man documentation [DATAROOTDIR/man]
1419 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1420 --htmldir=DIR html documentation [DOCDIR]
1421 --dvidir=DIR dvi documentation [DOCDIR]
1422 --pdfdir=DIR pdf documentation [DOCDIR]
1423 --psdir=DIR ps documentation [DOCDIR]
1429 --program-prefix=PREFIX prepend PREFIX to installed program names
1430 --program-suffix=SUFFIX append SUFFIX to installed program names
1431 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1434 --x-includes=DIR X include files are
in DIR
1435 --x-libraries=DIR X library files are
in DIR
1438 --build=BUILD configure
for building on BUILD
[guessed
]
1439 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1443 if test -n "$ac_init_help"; then
1444 case $ac_init_help in
1445 short | recursive
) echo "Configuration of emacs 23.1.50:";;
1450 --disable-option-checking ignore unrecognized
--enable/--with options
1451 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1452 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1453 --disable-ns-self-contained
1454 disable self contained build under NeXTstep
1455 --enable-asserts compile code with asserts enabled
1456 --enable-maintainer-mode
1457 enable make rules and dependencies not useful
(and
1458 sometimes confusing
) to the casual installer
1459 --enable-locallisppath=PATH
1460 directories Emacs should search
for lisp files
1461 specific to this site
1462 --enable-checking[=LIST
]
1463 enable expensive run-time checks. With LIST
, enable
1464 only specific categories of checks. Categories are
:
1465 all
,yes,no. Flags are
: stringbytes
, stringoverrun
,
1466 stringfreelist
, xmallocoverrun
, conslist
1467 --enable-profiling build emacs with profiling support. This might not
1468 work on all platforms
1469 --enable-autodepend automatically generate dependencies to .h-files.
1470 Requires GNU Make and Gcc. Enabled
if GNU Make and
1472 --disable-largefile omit support
for large files
1475 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1476 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1477 --without-pop don
't support POP mail retrieval with movemail
1478 --with-kerberos support Kerberos-authenticated POP
1479 --with-kerberos5 support Kerberos version 5 authenticated POP
1480 --with-hesiod support Hesiod to get the POP server host
1481 --without-sound don't compile with sound support
1482 --without-sync-input process async input synchronously
1483 --with-x-toolkit=KIT use an X toolkit
(KIT one of
: yes, lucid
, athena
,
1485 --without-xpm don
't compile with XPM image support
1486 --without-jpeg don't compile with JPEG image support
1487 --without-tiff don
't compile with TIFF image support
1488 --without-gif don't compile with GIF image support
1489 --without-png don
't compile with PNG image support
1490 --without-rsvg don't compile with SVG image support
1491 --without-xft don
't use XFT for anti aliased fonts
1492 --without-libotf don't use libotf
for OpenType font support
1493 --without-m17n-flt don
't use m17n-flt for text shaping
1494 --without-toolkit-scroll-bars
1495 don't use Motif or Xaw3d scroll bars
1496 --without-xaw3d don
't use Xaw3d
1497 --without-xim don't use X11 XIM
1498 --with-ns use nextstep
(Cocoa or GNUstep
) windowing system
1499 --without-gpm don
't use -lgpm for mouse support on a GNU/Linux
1501 --without-dbus don't compile with D-Bus support
1502 --without-makeinfo don
't require makeinfo for building manuals
1504 --with-pkg-config-prog=PATH
1505 path to pkg-config for finding GTK and librsvg
1506 --with-gnustep-conf=PATH
1507 path to GNUstep.conf; default $GNUSTEP_CONFIG_FILE,
1508 or /etc/GNUstep/GNUstep.conf
1509 --with-x use the X Window System
1511 Some influential environment variables:
1512 CC C compiler command
1513 CFLAGS C compiler flags
1514 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1515 nonstandard directory <lib dir>
1516 LIBS libraries to pass to the linker, e.g. -l<library>
1517 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1518 you have headers in a nonstandard directory <include dir>
1520 XMKMF Path to xmkmf, Makefile generator for X Window System
1522 Use these variables to override the choices made by `configure' or to
help
1523 it to
find libraries and programs with nonstandard names
/locations.
1529 if test "$ac_init_help" = "recursive"; then
1530 # If there are subdirs, report their specific --help.
1531 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1532 test -d "$ac_dir" ||
1533 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1538 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1540 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1541 # A ".." for each directory in $ac_dir_suffix.
1542 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1543 case $ac_top_builddir_sub in
1544 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1545 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1548 ac_abs_top_builddir
=$ac_pwd
1549 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1550 # for backward compatibility:
1551 ac_top_builddir
=$ac_top_build_prefix
1554 .
) # We are building in place.
1556 ac_top_srcdir
=$ac_top_builddir_sub
1557 ac_abs_top_srcdir
=$ac_pwd ;;
1558 [\\/]* | ?
:[\\/]* ) # Absolute name.
1559 ac_srcdir
=$srcdir$ac_dir_suffix;
1560 ac_top_srcdir
=$srcdir
1561 ac_abs_top_srcdir
=$srcdir ;;
1563 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1564 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1565 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1567 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1569 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1570 # Check for guested configure.
1571 if test -f "$ac_srcdir/configure.gnu"; then
1573 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1574 elif test -f "$ac_srcdir/configure"; then
1576 $SHELL "$ac_srcdir/configure" --help=recursive
1578 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1580 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1584 test -n "$ac_init_help" && exit $ac_status
1585 if $ac_init_version; then
1587 emacs configure
23.1.50
1588 generated by GNU Autoconf
2.62
1590 Copyright
(C
) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1591 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation
, Inc.
1592 This configure
script is free software
; the Free Software Foundation
1593 gives unlimited permission to copy
, distribute and modify it.
1597 cat >config.log
<<_ACEOF
1598 This file contains any messages produced by compilers while
1599 running configure, to aid debugging if configure makes a mistake.
1601 It was created by emacs $as_me 23.1.50, which was
1602 generated by GNU Autoconf 2.62. Invocation command line was
1614 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1615 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1616 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1617 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1618 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1620 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1621 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1623 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1624 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1625 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1626 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1627 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1628 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1629 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1633 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1637 test -z "$as_dir" && as_dir
=.
1638 $as_echo "PATH: $as_dir"
1654 # Keep a trace of the command line.
1655 # Strip out --no-create and --no-recursion so they do not pile up.
1656 # Strip out --silent because we don't want to record it for future runs.
1657 # Also quote any args containing shell meta-characters.
1658 # Make two passes to allow for proper duplicate-argument suppression.
1662 ac_must_keep_next
=false
1668 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
1669 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1670 |
-silent |
--silent |
--silen |
--sile |
--sil)
1673 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1676 1) ac_configure_args0
="$ac_configure_args0 '$ac_arg'" ;;
1678 ac_configure_args1
="$ac_configure_args1 '$ac_arg'"
1679 if test $ac_must_keep_next = true
; then
1680 ac_must_keep_next
=false
# Got value, back to normal.
1683 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
1684 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
1685 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
1686 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
1687 case "$ac_configure_args0 " in
1688 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1691 -* ) ac_must_keep_next
=true
;;
1694 ac_configure_args
="$ac_configure_args '$ac_arg'"
1699 $as_unset ac_configure_args0 ||
test "${ac_configure_args0+set}" != set ||
{ ac_configure_args0
=; export ac_configure_args0
; }
1700 $as_unset ac_configure_args1 ||
test "${ac_configure_args1+set}" != set ||
{ ac_configure_args1
=; export ac_configure_args1
; }
1702 # When interrupted or exit'd, cleanup temporary files, and complete
1703 # config.log. We remove comments because anyway the quotes in there
1704 # would cause problems or look ugly.
1705 # WARNING: Use '\'' to represent an apostrophe within the trap.
1706 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1707 trap 'exit_status=$?
1708 # Save into config.log some information that might help in debugging.
1713 ## ---------------- ##
1714 ## Cache variables. ##
1715 ## ---------------- ##
1718 # The following way of writing the cache mishandles newlines in values,
1720 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1721 eval ac_val=\$$ac_var
1725 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1726 $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1729 _ | IFS | as_nl) ;; #(
1730 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1731 *) $as_unset $ac_var ;;
1736 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1737 *${as_nl}ac_space=\ *)
1739 "s/'\''/'\''\\\\'\'''\''/g;
1740 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1743 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1751 ## ----------------- ##
1752 ## Output variables. ##
1753 ## ----------------- ##
1756 for ac_var in $ac_subst_vars
1758 eval ac_val=\$$ac_var
1760 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1762 $as_echo "$ac_var='\''$ac_val'\''"
1766 if test -n "$ac_subst_files"; then
1768 ## ------------------- ##
1769 ## File substitutions. ##
1770 ## ------------------- ##
1773 for ac_var
in $ac_subst_files
1775 eval ac_val
=\$
$ac_var
1777 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1779 $as_echo "$ac_var='\''$ac_val'\''"
1784 if test -s confdefs.h; then
1794 test "$ac_signal" != 0 &&
1795 $as_echo "$as_me: caught signal $ac_signal"
1796 $as_echo "$as_me: exit $exit_status"
1798 rm -f core *.core core.conftest.* &&
1799 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1802 for ac_signal
in 1 2 13 15; do
1803 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1807 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1808 rm -f -r conftest
* confdefs.h
1810 # Predefined preprocessor variables.
1812 cat >>confdefs.h
<<_ACEOF
1813 #define PACKAGE_NAME "$PACKAGE_NAME"
1817 cat >>confdefs.h
<<_ACEOF
1818 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1822 cat >>confdefs.h
<<_ACEOF
1823 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1827 cat >>confdefs.h
<<_ACEOF
1828 #define PACKAGE_STRING "$PACKAGE_STRING"
1832 cat >>confdefs.h
<<_ACEOF
1833 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1837 # Let the site file select an alternate cache file if it wants to.
1838 # Prefer an explicitly selected file to automatically selected ones.
1841 if test -n "$CONFIG_SITE"; then
1842 ac_site_file1
=$CONFIG_SITE
1843 elif test "x$prefix" != xNONE
; then
1844 ac_site_file1
=$prefix/share
/config.site
1845 ac_site_file2
=$prefix/etc
/config.site
1847 ac_site_file1
=$ac_default_prefix/share
/config.site
1848 ac_site_file2
=$ac_default_prefix/etc
/config.site
1850 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
1852 test "x$ac_site_file" = xNONE
&& continue
1853 if test -r "$ac_site_file"; then
1854 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1855 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1856 sed 's/^/| /' "$ac_site_file" >&5
1861 if test -r "$cache_file"; then
1862 # Some versions of bash will fail to source /dev/null (special
1863 # files actually), so we avoid doing that.
1864 if test -f "$cache_file"; then
1865 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1866 $as_echo "$as_me: loading cache $cache_file" >&6;}
1868 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
1869 *) .
"./$cache_file";;
1873 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1874 $as_echo "$as_me: creating cache $cache_file" >&6;}
1878 ac_header_list
="$ac_header_list sys/time.h"
1879 ac_header_list
="$ac_header_list unistd.h"
1880 ac_func_list
="$ac_func_list alarm"
1881 # Check that the precious variables saved in the cache have kept the same
1883 ac_cache_corrupted
=false
1884 for ac_var
in $ac_precious_vars; do
1885 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
1886 eval ac_new_set
=\
$ac_env_${ac_var}_set
1887 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
1888 eval ac_new_val
=\
$ac_env_${ac_var}_value
1889 case $ac_old_set,$ac_new_set in
1891 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1892 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1893 ac_cache_corrupted
=: ;;
1895 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1896 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1897 ac_cache_corrupted
=: ;;
1900 if test "x$ac_old_val" != "x$ac_new_val"; then
1901 # differences in whitespace do not lead to failure.
1902 ac_old_val_w
=`echo x $ac_old_val`
1903 ac_new_val_w
=`echo x $ac_new_val`
1904 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1905 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1906 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1907 ac_cache_corrupted
=:
1909 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1910 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1911 eval $ac_var=\
$ac_old_val
1913 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1914 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1915 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1916 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1919 # Pass precious variables to config.status.
1920 if test "$ac_new_set" = set; then
1922 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1923 *) ac_arg
=$ac_var=$ac_new_val ;;
1925 case " $ac_configure_args " in
1926 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1927 *) ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
1931 if $ac_cache_corrupted; then
1932 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1933 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1934 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1935 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1936 { (exit 1); exit 1; }; }
1964 ac_cpp
='$CPP $CPPFLAGS'
1965 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1966 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1967 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1970 ac_config_headers
="$ac_config_headers src/config.h:src/config.in"
1974 test "$program_prefix" != NONE
&&
1975 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
1976 # Use a double $ so make ignores it.
1977 test "$program_suffix" != NONE
&&
1978 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
1979 # Double any \ or $.
1980 # By default was `s,x,x', remove it if useless.
1981 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
1982 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
1985 lispdir
='${datadir}/emacs/${version}/lisp'
1986 locallisppath
='${datadir}/emacs/${version}/site-lisp:'\
1987 '${datadir}/emacs/site-lisp'
1988 lisppath
='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
1989 etcdir
='${datadir}/emacs/${version}/etc'
1990 archlibdir
='${libexecdir}/emacs/${version}/${configuration}'
1991 docdir
='${datadir}/emacs/${version}/etc'
1992 gamedir
='${localstatedir}/games/emacs'
1999 # Check whether --with-pop was given.
2000 if test "${with_pop+set}" = set; then
2006 if test "$with_pop" = yes; then
2007 cat >>confdefs.h
<<\_ACEOF
2008 #define MAIL_USE_POP 1
2015 # Check whether --with-kerberos was given.
2016 if test "${with_kerberos+set}" = set; then
2017 withval
=$with_kerberos;
2022 if test "$with_kerberos" != no
; then
2023 cat >>confdefs.h
<<\_ACEOF
2031 # Check whether --with-kerberos5 was given.
2032 if test "${with_kerberos5+set}" = set; then
2033 withval
=$with_kerberos5;
2038 if test "${with_kerberos5}" != no
; then
2039 if test "${with_kerberos}" = no
; then
2041 cat >>confdefs.h
<<\_ACEOF
2047 cat >>confdefs.h
<<\_ACEOF
2054 # Check whether --with-hesiod was given.
2055 if test "${with_hesiod+set}" = set; then
2056 withval
=$with_hesiod;
2061 if test "$with_hesiod" != no
; then
2063 cat >>confdefs.h
<<\_ACEOF
2070 # Check whether --with-sound was given.
2071 if test "${with_sound+set}" = set; then
2072 withval
=$with_sound;
2079 # Check whether --with-sync-input was given.
2080 if test "${with_sync_input+set}" = set; then
2081 withval
=$with_sync_input;
2086 if test "$with_sync_input" = yes; then
2088 cat >>confdefs.h
<<\_ACEOF
2089 #define SYNC_INPUT 1
2095 # Check whether --with-x-toolkit was given.
2096 if test "${with_x_toolkit+set}" = set; then
2097 withval
=$with_x_toolkit; case "${withval}" in
2098 y | ye |
yes ) val
=gtk
;;
2100 l | lu | luc | luci | lucid
) val
=lucid
;;
2101 a |
at | ath | athe | athen | athena
) val
=athena
;;
2102 m | mo | mot | moti | motif
) val
=motif
;;
2103 g | gt | gtk
) val
=gtk
;;
2105 { { $as_echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid;
2106 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
2107 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&5
2108 $as_echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid;
2109 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
2110 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&2;}
2111 { (exit 1); exit 1; }; }
2120 # Check whether --with-xpm was given.
2121 if test "${with_xpm+set}" = set; then
2128 # Check whether --with-jpeg was given.
2129 if test "${with_jpeg+set}" = set; then
2136 # Check whether --with-tiff was given.
2137 if test "${with_tiff+set}" = set; then
2144 # Check whether --with-gif was given.
2145 if test "${with_gif+set}" = set; then
2152 # Check whether --with-png was given.
2153 if test "${with_png+set}" = set; then
2160 # Check whether --with-rsvg was given.
2161 if test "${with_rsvg+set}" = set; then
2169 # Check whether --with-xft was given.
2170 if test "${with_xft+set}" = set; then
2177 # Check whether --with-libotf was given.
2178 if test "${with_libotf+set}" = set; then
2179 withval
=$with_libotf;
2185 # Check whether --with-m17n-flt was given.
2186 if test "${with_m17n_flt+set}" = set; then
2187 withval
=$with_m17n_flt;
2194 # Check whether --with-toolkit-scroll-bars was given.
2195 if test "${with_toolkit_scroll_bars+set}" = set; then
2196 withval
=$with_toolkit_scroll_bars;
2198 with_toolkit_scroll_bars
=yes
2202 # Check whether --with-xaw3d was given.
2203 if test "${with_xaw3d+set}" = set; then
2204 withval
=$with_xaw3d;
2210 # Check whether --with-xim was given.
2211 if test "${with_xim+set}" = set; then
2218 # Check whether --with-ns was given.
2219 if test "${with_ns+set}" = set; then
2227 # Check whether --with-gpm was given.
2228 if test "${with_gpm+set}" = set; then
2235 # Check whether --with-dbus was given.
2236 if test "${with_dbus+set}" = set; then
2243 ## For the times when you want to build Emacs but don't have
2244 ## a suitable makeinfo, and can live without the manuals.
2246 # Check whether --with-makeinfo was given.
2247 if test "${with_makeinfo+set}" = set; then
2248 withval
=$with_makeinfo;
2255 # Check whether --with-gtk was given.
2256 if test "${with_gtk+set}" = set; then
2257 withval
=$with_gtk; { { $as_echo "$as_me:$LINENO: error: --with-gtk has been removed. Use --with-x-toolkit to
2258 specify a toolkit." >&5
2259 $as_echo "$as_me: error: --with-gtk has been removed. Use --with-x-toolkit to
2260 specify a toolkit." >&2;}
2261 { (exit 1); exit 1; }; }
2266 # Check whether --with-gcc was given.
2267 if test "${with_gcc+set}" = set; then
2268 withval
=$with_gcc; { { $as_echo "$as_me:$LINENO: error: --with-gcc has been removed. Set the \`CC' environment
2269 variable to specify a compiler." >&5
2270 $as_echo "$as_me: error: --with-gcc has been removed. Set the \`CC' environment
2271 variable to specify a compiler." >&2;}
2272 { (exit 1); exit 1; }; }
2277 # Check whether --with-pkg-config-prog was given.
2278 if test "${with_pkg_config_prog+set}" = set; then
2279 withval
=$with_pkg_config_prog;
2282 if test "X${with_pkg_config_prog}" != X
; then
2283 if test "${with_pkg_config_prog}" != yes; then
2284 PKG_CONFIG
="${with_pkg_config_prog}"
2289 # Check whether --with-gnustep-conf was given.
2290 if test "${with_gnustep_conf+set}" = set; then
2291 withval
=$with_gnustep_conf;
2294 test "X${with_gnustep_conf}" != X
&& test "${with_gnustep_conf}" != yes && \
2295 GNUSTEP_CONFIG_FILE
="${with_gnustep_conf}"
2296 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
2297 GNUSTEP_CONFIG_FILE
=/etc
/GNUstep
/GNUstep.conf
2299 # Check whether --enable-ns-self-contained was given.
2300 if test "${enable_ns_self_contained+set}" = set; then
2301 enableval
=$enable_ns_self_contained; EN_NS_SELF_CONTAINED
=$enableval
2303 EN_NS_SELF_CONTAINED
=yes
2307 # Check whether --enable-asserts was given.
2308 if test "${enable_asserts+set}" = set; then
2309 enableval
=$enable_asserts; USE_XASSERTS
=$enableval
2315 # Check whether --enable-maintainer-mode was given.
2316 if test "${enable_maintainer_mode+set}" = set; then
2317 enableval
=$enable_maintainer_mode; USE_MAINTAINER_MODE
=$enableval
2319 USE_MAINTAINER_MODE
=no
2322 if test $USE_MAINTAINER_MODE = yes; then
2329 # Check whether --enable-locallisppath was given.
2330 if test "${enable_locallisppath+set}" = set; then
2331 enableval
=$enable_locallisppath; if test "${enableval}" = "no"; then
2333 elif test "${enableval}" != "yes"; then
2334 locallisppath
=${enableval}
2339 # Check whether --enable-checking was given.
2340 if test "${enable_checking+set}" = set; then
2341 enableval
=$enable_checking; ac_checking_flags
="${enableval}"
2344 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
2345 for check
in $ac_checking_flags
2348 # these set all the flags to specific states
2349 yes) ac_enable_checking
=1 ;;
2350 no
) ac_enable_checking
= ;
2351 ac_gc_check_stringbytes
= ;
2352 ac_gc_check_string_overrun
= ;
2353 ac_gc_check_string_free_list
= ;
2354 ac_xmalloc_overrun
= ;
2355 ac_gc_check_cons_list
= ;;
2356 all
) ac_enable_checking
=1 ;
2357 ac_gc_check_stringbytes
=1 ;
2358 ac_gc_check_string_overrun
=1 ;
2359 ac_gc_check_string_free_list
=1 ;
2360 ac_xmalloc_overrun
=1 ;
2361 ac_gc_check_cons_list
=1 ;;
2362 # these enable particular checks
2363 stringbytes
) ac_gc_check_stringbytes
=1 ;;
2364 stringoverrun
) ac_gc_check_string_overrun
=1 ;;
2365 stringfreelist
) ac_gc_check_string_free_list
=1 ;;
2366 xmallocoverrun
) ac_xmalloc_overrun
=1 ;;
2367 conslist
) ac_gc_check_cons_list
=1 ;;
2368 *) { { $as_echo "$as_me:$LINENO: error: unknown check category $check" >&5
2369 $as_echo "$as_me: error: unknown check category $check" >&2;}
2370 { (exit 1); exit 1; }; } ;;
2375 if test x
$ac_enable_checking != x
; then
2377 cat >>confdefs.h
<<\_ACEOF
2378 #define ENABLE_CHECKING 1
2382 if test x
$ac_gc_check_stringbytes != x
; then
2384 cat >>confdefs.h
<<\_ACEOF
2385 #define GC_CHECK_STRING_BYTES 1
2389 if test x
$ac_gc_check_stringoverrun != x
; then
2391 cat >>confdefs.h
<<\_ACEOF
2392 #define GC_CHECK_STRING_OVERRUN 1
2396 if test x
$ac_gc_check_string_free_list != x
; then
2398 cat >>confdefs.h
<<\_ACEOF
2399 #define GC_CHECK_STRING_FREE_LIST 1
2403 if test x
$ac_xmalloc_overrun != x
; then
2405 cat >>confdefs.h
<<\_ACEOF
2406 #define XMALLOC_OVERRUN_CHECK 1
2410 if test x
$ac_gc_check_cons_list != x
; then
2412 cat >>confdefs.h
<<\_ACEOF
2413 #define GC_CHECK_CONS_LIST 1
2418 # Check whether --enable-profiling was given.
2419 if test "${enable_profiling+set}" = set; then
2420 enableval
=$enable_profiling; ac_enable_profiling
="${enableval}"
2423 if test x
$ac_enable_profiling != x
; then
2424 PROFILING_CFLAGS
="-DPROFILING=1 -pg"
2425 PROFILING_LDFLAGS
="-pg"
2431 # Check whether --enable-autodepend was given.
2432 if test "${enable_autodepend+set}" = set; then
2433 enableval
=$enable_autodepend; ac_enable_autodepend
="${enableval}"
2435 ac_enable_autodepend
=yes
2439 #### Make srcdir absolute, if it isn't already. It's important to
2440 #### avoid running the path through pwd unnecessarily, since pwd can
2441 #### give you automounter prefixes, which can go away. We do all this
2442 #### so Emacs can find its files when run uninstalled.
2443 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
2448 ## We may be able to use the $PWD environment variable to make this
2449 ## absolute. But sometimes PWD is inaccurate.
2450 ## Note: we used to use ${PWD} at the end instead of `pwd`,
2451 ## but that tested only for a well-formed and valid PWD,
2452 ## it did not object when PWD was well-formed and valid but just wrong.
2453 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
2457 srcdir
="`(cd ${srcdir}; pwd)`"
2460 * ) srcdir
="`(cd ${srcdir}; pwd)`" ;;
2463 #### Check if the source directory already has a configured system in it.
2464 if test `pwd` != `(cd ${srcdir} && pwd)` \
2465 && test -f "${srcdir}/src/config.h" ; then
2466 { $as_echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
2467 as a build directory right now; it has been configured in its own
2468 right. To configure in another directory as well, you MUST
2469 use GNU make. If you do not have GNU make, then you must
2470 now do \`make distclean' in ${srcdir},
2471 and then run $0 again." >&5
2472 $as_echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
2473 as a build directory right now; it has been configured in its own
2474 right. To configure in another directory as well, you MUST
2475 use GNU make. If you do not have GNU make, then you must
2476 now do \`make distclean' in ${srcdir},
2477 and then run $0 again." >&2;}
2480 #### Given the configuration name, set machfile and opsysfile to the
2481 #### names of the m/*.h and s/*.h files we should use.
2483 ### Canonicalize the configuration name.
2486 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2487 if test -f "$ac_dir/install-sh"; then
2489 ac_install_sh
="$ac_aux_dir/install-sh -c"
2491 elif test -f "$ac_dir/install.sh"; then
2493 ac_install_sh
="$ac_aux_dir/install.sh -c"
2495 elif test -f "$ac_dir/shtool"; then
2497 ac_install_sh
="$ac_aux_dir/shtool install -c"
2501 if test -z "$ac_aux_dir"; then
2502 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2503 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2504 { (exit 1); exit 1; }; }
2507 # These three variables are undocumented and unsupported,
2508 # and are intended to be withdrawn in a future Autoconf release.
2509 # They can cause serious problems if a builder's source tree is in a directory
2510 # whose full name contains unusual characters.
2511 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2512 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2513 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2516 # Make sure we can run config.sub.
2517 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2518 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2519 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2520 { (exit 1); exit 1; }; }
2522 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2523 $as_echo_n "checking build system type... " >&6; }
2524 if test "${ac_cv_build+set}" = set; then
2525 $as_echo_n "(cached) " >&6
2527 ac_build_alias
=$build_alias
2528 test "x$ac_build_alias" = x
&&
2529 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2530 test "x$ac_build_alias" = x
&&
2531 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2532 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2533 { (exit 1); exit 1; }; }
2534 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2535 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2536 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2537 { (exit 1); exit 1; }; }
2540 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2541 $as_echo "$ac_cv_build" >&6; }
2542 case $ac_cv_build in
2544 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2545 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2546 { (exit 1); exit 1; }; };;
2549 ac_save_IFS
=$IFS; IFS
='-'
2555 # Remember, the first character of IFS is used to create $*,
2556 # except with old shells:
2559 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2562 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2563 $as_echo_n "checking host system type... " >&6; }
2564 if test "${ac_cv_host+set}" = set; then
2565 $as_echo_n "(cached) " >&6
2567 if test "x$host_alias" = x
; then
2568 ac_cv_host
=$ac_cv_build
2570 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2571 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2572 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2573 { (exit 1); exit 1; }; }
2577 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2578 $as_echo "$ac_cv_host" >&6; }
2581 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2582 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2583 { (exit 1); exit 1; }; };;
2586 ac_save_IFS
=$IFS; IFS
='-'
2592 # Remember, the first character of IFS is used to create $*,
2593 # except with old shells:
2596 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2600 configuration
=${host_alias-${build_alias-$host}}
2604 ### If you add support for a new configuration, add code to this
2605 ### switch statement to recognize your configuration name and select
2606 ### the appropriate operating system and machine description files.
2608 ### You would hope that you could choose an m/*.h file pretty much
2609 ### based on the machine portion of the configuration name, and an s-
2610 ### file based on the operating system portion. However, it turns out
2611 ### that each m/*.h file is pretty manufacturer-specific - for
2612 ### example mips.h is MIPS
2613 ### So we basically have to have a special case for each
2614 ### configuration name.
2616 ### As far as handling version numbers on operating systems is
2617 ### concerned, make sure things will fail in a fixable way. If
2618 ### /etc/MACHINES doesn't say anything about version numbers, be
2619 ### prepared to handle anything reasonably. If version numbers
2620 ### matter, be sure /etc/MACHINES says something about it.
2622 ### Eric Raymond says we should accept strings like "sysvr4" to mean
2623 ### "System V Release 4"; he writes, "The old convention encouraged
2624 ### confusion between `system' and `release' levels'."
2626 machine
='' opsys
='' unported
=no
2627 case "${canonical}" in
2632 case "${canonical}" in
2633 alpha
*-*-freebsd*) machine
=alpha
;;
2634 arm
*-*-freebsd*) machine
=arm
;;
2635 ia64-
*-freebsd*) machine
=ia64
;;
2636 sparc-
*-freebsd*) machine
=sparc
;;
2637 sparc64-
*-freebsd*) machine
=sparc
;;
2638 powerpc-
*-freebsd*) machine
=macppc
;;
2639 i
[3456]86-*-freebsd*) machine
=intel386
;;
2640 amd64-
*-freebsd*|x86_64-
*-freebsd*) machine
=amdx86-64
;;
2644 ## FreeBSD kernel + glibc based userland
2647 case "${canonical}" in
2648 alpha
*-*-kfreebsd*) machine
=alpha
;;
2649 ia64-
*-kfreebsd*) machine
=ia64
;;
2650 sparc-
*-kfreebsd*) machine
=sparc
;;
2651 sparc64-
*-kfreebsd*) machine
=sparc
;;
2652 powerpc-
*-kfreebsd*) machine
=macppc
;;
2653 i
[3456]86-*-kfreebsd*) machine
=intel386
;;
2654 amd64-
*-kfreebsd*|x86_64-
*-kfreebsd*) machine
=amdx86-64
;;
2661 if test -f /usr
/lib
/crti.o
; then
2663 cat >>confdefs.h
<<\_ACEOF
2664 #define HAVE_CRTIN /**/
2669 case "${canonical}" in
2670 alpha
*-*-netbsd*) machine
=alpha
;;
2671 i
[3456]86-*-netbsd*) machine
=intel386
;;
2672 mips-
*-netbsd*) machine
=mips
;;
2673 mipsel-
*-netbsd*) machine
=mips
;;
2674 mipseb-
*-netbsd*) machine
=mips
;;
2675 powerpc-
*-netbsd*) machine
=macppc
;;
2676 sparc
*-*-netbsd*) machine
=sparc
;;
2677 vax-
*-netbsd*) machine
=vax
;;
2678 arm-
*-netbsd*) machine
=arm
;;
2679 x86_64-
*-netbsd*) machine
=amdx86-64
;;
2680 hppa-
*-netbsd*) machine
=hp800
;;
2681 m68k-
*-netbsd*) machine
=m68k
;;
2688 case "${canonical}" in
2689 alpha
*-*-openbsd*) machine
=alpha
;;
2690 arm-
*-openbsd*) machine
=arm
;;
2691 i386-
*-openbsd*) machine
=intel386
;;
2692 powerpc-
*-openbsd*) machine
=macppc
;;
2693 sparc
*-*-openbsd*) machine
=sparc
;;
2694 vax-
*-openbsd*) machine
=vax
;;
2695 x86_64-
*-openbsd*) machine
=amdx86-64
;;
2696 hppa-
*-openbsd*) machine
=hp800
;;
2703 case "${canonical}" in
2704 i
[3456]86-*-lynxos*) machine
=intel386
;;
2705 powerpc-
*-lynxos*) machine
=powerpc
;;
2709 alpha
*-*-linux-gnu* )
2710 machine
=alpha opsys
=gnu-linux
2714 machine
=arm opsys
=gnu-linux
2717 ## Apple Darwin / Mac OS X
2719 case "${canonical}" in
2720 i
[3456]86-* ) machine
=intel386
;;
2721 powerpc-
* ) machine
=macppc
;;
2722 x86_64-
* ) machine
=amdx86-64
;;
2726 # Define CPP as follows to make autoconf work correctly.
2727 CPP
="${CC-cc} -E -no-cpp-precomp"
2728 # Use fink packages if available.
2729 if test -d /sw
/include
&& test -d /sw
/lib
; then
2730 GCC_TEST_OPTIONS
="-I/sw/include -L/sw/lib"
2731 CPP
="${CPP} ${GCC_TEST_OPTIONS}"
2732 NON_GCC_TEST_OPTIONS
=${GCC_TEST_OPTIONS}
2736 ## HP 9000 series 700 and 800, running HP/UX
2737 hppa
*-hp-hpux10.2
* )
2738 machine
=hp800 opsys
=hpux10-20
2740 hppa
*-hp-hpux1[1-9]* )
2741 machine
=hp800 opsys
=hpux11
2742 CFLAGS
="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
2745 hppa
*-*-linux-gnu* )
2746 machine
=hp800 opsys
=gnu-linux
2751 machine
=ibms390 opsys
=gnu-linux
2753 s390x-
*-linux-gnu* )
2754 machine
=ibms390x opsys
=gnu-linux
2756 rs6000-ibm-aix4.2
* | powerpc-ibm-aix4.2
* )
2757 machine
=ibmrs6000 opsys
=aix4-2
2759 rs6000-ibm-aix4.3
* | powerpc-ibm-aix4.3
* )
2760 machine
=ibmrs6000 opsys
=aix4-2
2762 rs6000-ibm-aix5
* | powerpc-ibm-aix5
* )
2763 machine
=ibmrs6000 opsys
=aix4-2
2765 rs6000-ibm-aix6
* | powerpc-ibm-aix6
* )
2766 machine
=ibmrs6000 opsys
=aix4-2
2769 ## Macintosh PowerPC
2770 powerpc
*-*-linux-gnu* )
2771 machine
=macppc opsys
=gnu-linux
2774 ## Silicon Graphics machines
2777 machine
=iris4d opsys
=irix6-5
2778 # Without defining _LANGUAGE_C, things get masked out in the headers
2779 # so that, for instance, grepping for `free' in stdlib.h fails and
2780 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2781 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2782 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
2786 sparc-
*-linux-gnu* | sparc64-
*-linux-gnu* )
2787 machine
=sparc opsys
=gnu-linux
2791 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* \
2792 | x86_64-
*-solaris2* | x86_64-
*-sunos5* \
2793 | powerpc
*-*-solaris2* | rs6000-
*-solaris2*)
2794 case "${canonical}" in
2795 i
[3456]86-*-* ) machine
=intel386
;;
2796 amd64-
*-*|x86_64-
*-*) machine
=amdx86-64
;;
2797 powerpc
* | rs6000
* ) machine
=ibmrs6000
;;
2798 sparc
* ) machine
=sparc
;;
2801 case "${canonical}" in
2802 *-sunos5.3
* |
*-solaris2.3
* )
2804 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2806 *-sunos5.4
* |
*-solaris2.4
* )
2808 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2811 *-sunos5.5
* |
*-solaris2.5
* )
2813 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2816 *-sunos5.6
* |
*-solaris2.6
* )
2818 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2821 *-sunos5.
[7-9]* |
*-solaris2.
[7-9]* )
2823 emacs_check_sunpro_c
=yes
2824 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2826 *-sunos5* |
*-solaris* )
2828 emacs_check_sunpro_c
=yes
2829 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2832 ## Watch out for a compiler that we know will not work.
2833 case "${canonical}" in
2834 *-solaris* |
*-sunos5* )
2835 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
2836 ## /usr/ucb/cc doesn't work;
2837 ## we should find some other compiler that does work.
2847 machine
=ia64 opsys
=gnu-linux
2850 ## Intel 386 machines where we don't care about the manufacturer
2853 case "${canonical}" in
2854 *-cygwin ) opsys
=cygwin
;;
2855 *-darwin* ) opsys
=darwin
2856 CPP
="${CC-cc} -E -no-cpp-precomp"
2858 *-linux-gnu* ) opsys
=gnu-linux
;;
2859 *-sysv4.2uw
* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2860 *-sysv5uw* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2861 *-sysv5OpenUNIX* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2862 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2866 ## m68k Linux-based GNU system
2868 machine
=m68k opsys
=gnu-linux
2871 ## Mips Linux-based GNU system
2872 mips-
*-linux-gnu* | mipsel-
*-linux-gnu* \
2873 | mips64-
*-linux-gnu* | mips64el-
*-linux-gnu* )
2874 machine
=mips opsys
=gnu-linux
2877 ## AMD x86-64 Linux-based GNU system
2878 x86_64-
*-linux-gnu* )
2879 machine
=amdx86-64 opsys
=gnu-linux
2882 ## Tensilica Xtensa Linux-based GNU system
2883 xtensa
*-*-linux-gnu* )
2884 machine
=xtensa opsys
=gnu-linux
2887 ## SuperH Linux-based GNU system
2888 sh
[34]*-*-linux-gnu* )
2889 machine
=sh3 opsys
=gnu-linux
2897 ### If the code above didn't choose an operating system, just choose
2898 ### an operating system based on the configuration name. You really
2899 ### only want to use this when you have no idea what the right
2900 ### operating system is; if you know what operating systems a machine
2901 ### runs, it's cleaner to make it explicit in the case statement
2903 if test x
"${opsys}" = x
; then
2904 case "${canonical}" in
2905 *-gnu* ) opsys
=gnu
;;
2906 *-sysv4.2uw
* ) opsys
=unixware
;;
2907 *-sysv5uw* ) opsys
=unixware
;;
2908 *-sysv5OpenUNIX* ) opsys
=unixware
;;
2909 *-sysv4.1
* |
*-sysvr4.1
* )
2910 NON_GNU_CPP
=/usr
/lib
/cpp
2912 *-sysv4.
[2-9]* |
*-sysvr4.
[2-9]* )
2913 if [ x
$NON_GNU_CPP = x
]; then
2914 if [ -f /usr
/ccs
/lib
/cpp
]; then
2915 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2917 NON_GNU_CPP
=/lib
/cpp
2921 *-sysv4* |
*-sysvr4* ) opsys
=usg5-4
;;
2930 if test $unported = yes; then
2931 { { $as_echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
2932 Check \`etc/MACHINES' for recognized configuration names." >&5
2933 $as_echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2934 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2935 { (exit 1); exit 1; }; }
2938 machfile
="m/${machine}.h"
2939 opsysfile
="s/${opsys}.h"
2942 #### Choose a compiler.
2943 test -n "$CC" && cc_specified
=yes
2945 # Save the value of CFLAGS that the user specified.
2946 SPECIFIED_CFLAGS
="$CFLAGS"
2949 ac_cpp
='$CPP $CPPFLAGS'
2950 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2951 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2952 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2953 if test -n "$ac_tool_prefix"; then
2954 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2955 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2956 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2957 $as_echo_n "checking for $ac_word... " >&6; }
2958 if test "${ac_cv_prog_CC+set}" = set; then
2959 $as_echo_n "(cached) " >&6
2961 if test -n "$CC"; then
2962 ac_cv_prog_CC
="$CC" # Let the user override the test.
2964 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2968 test -z "$as_dir" && as_dir
=.
2969 for ac_exec_ext
in '' $ac_executable_extensions; do
2970 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2971 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2972 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2982 if test -n "$CC"; then
2983 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2984 $as_echo "$CC" >&6; }
2986 { $as_echo "$as_me:$LINENO: result: no" >&5
2987 $as_echo "no" >&6; }
2992 if test -z "$ac_cv_prog_CC"; then
2994 # Extract the first word of "gcc", so it can be a program name with args.
2995 set dummy gcc
; ac_word
=$2
2996 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2997 $as_echo_n "checking for $ac_word... " >&6; }
2998 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2999 $as_echo_n "(cached) " >&6
3001 if test -n "$ac_ct_CC"; then
3002 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3004 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3008 test -z "$as_dir" && as_dir
=.
3009 for ac_exec_ext
in '' $ac_executable_extensions; do
3010 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3011 ac_cv_prog_ac_ct_CC
="gcc"
3012 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3021 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3022 if test -n "$ac_ct_CC"; then
3023 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3024 $as_echo "$ac_ct_CC" >&6; }
3026 { $as_echo "$as_me:$LINENO: result: no" >&5
3027 $as_echo "no" >&6; }
3030 if test "x$ac_ct_CC" = x
; then
3033 case $cross_compiling:$ac_tool_warned in
3035 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3036 whose name does not start with the host triplet. If you think this
3037 configuration is useful to you, please write to autoconf@gnu.org." >&5
3038 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3039 whose name does not start with the host triplet. If you think this
3040 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3041 ac_tool_warned
=yes ;;
3049 if test -z "$CC"; then
3050 if test -n "$ac_tool_prefix"; then
3051 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3052 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3053 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3054 $as_echo_n "checking for $ac_word... " >&6; }
3055 if test "${ac_cv_prog_CC+set}" = set; then
3056 $as_echo_n "(cached) " >&6
3058 if test -n "$CC"; then
3059 ac_cv_prog_CC
="$CC" # Let the user override the test.
3061 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3065 test -z "$as_dir" && as_dir
=.
3066 for ac_exec_ext
in '' $ac_executable_extensions; do
3067 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3068 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3069 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3079 if test -n "$CC"; then
3080 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3081 $as_echo "$CC" >&6; }
3083 { $as_echo "$as_me:$LINENO: result: no" >&5
3084 $as_echo "no" >&6; }
3090 if test -z "$CC"; then
3091 # Extract the first word of "cc", so it can be a program name with args.
3092 set dummy cc
; ac_word
=$2
3093 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3094 $as_echo_n "checking for $ac_word... " >&6; }
3095 if test "${ac_cv_prog_CC+set}" = set; then
3096 $as_echo_n "(cached) " >&6
3098 if test -n "$CC"; then
3099 ac_cv_prog_CC
="$CC" # Let the user override the test.
3102 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3106 test -z "$as_dir" && as_dir
=.
3107 for ac_exec_ext
in '' $ac_executable_extensions; do
3108 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3109 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3110 ac_prog_rejected
=yes
3114 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3121 if test $ac_prog_rejected = yes; then
3122 # We found a bogon in the path, so make sure we never use it.
3123 set dummy
$ac_cv_prog_CC
3125 if test $# != 0; then
3126 # We chose a different compiler from the bogus one.
3127 # However, it has the same basename, so the bogon will be chosen
3128 # first if we set CC to just the basename; use the full file name.
3130 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3136 if test -n "$CC"; then
3137 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3138 $as_echo "$CC" >&6; }
3140 { $as_echo "$as_me:$LINENO: result: no" >&5
3141 $as_echo "no" >&6; }
3146 if test -z "$CC"; then
3147 if test -n "$ac_tool_prefix"; then
3148 for ac_prog
in cl.exe
3150 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3151 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3152 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3153 $as_echo_n "checking for $ac_word... " >&6; }
3154 if test "${ac_cv_prog_CC+set}" = set; then
3155 $as_echo_n "(cached) " >&6
3157 if test -n "$CC"; then
3158 ac_cv_prog_CC
="$CC" # Let the user override the test.
3160 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3164 test -z "$as_dir" && as_dir
=.
3165 for ac_exec_ext
in '' $ac_executable_extensions; do
3166 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3167 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3168 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3178 if test -n "$CC"; then
3179 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3180 $as_echo "$CC" >&6; }
3182 { $as_echo "$as_me:$LINENO: result: no" >&5
3183 $as_echo "no" >&6; }
3187 test -n "$CC" && break
3190 if test -z "$CC"; then
3192 for ac_prog
in cl.exe
3194 # Extract the first word of "$ac_prog", so it can be a program name with args.
3195 set dummy
$ac_prog; ac_word
=$2
3196 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3197 $as_echo_n "checking for $ac_word... " >&6; }
3198 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3199 $as_echo_n "(cached) " >&6
3201 if test -n "$ac_ct_CC"; then
3202 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3204 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3208 test -z "$as_dir" && as_dir
=.
3209 for ac_exec_ext
in '' $ac_executable_extensions; do
3210 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3211 ac_cv_prog_ac_ct_CC
="$ac_prog"
3212 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3221 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3222 if test -n "$ac_ct_CC"; then
3223 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3224 $as_echo "$ac_ct_CC" >&6; }
3226 { $as_echo "$as_me:$LINENO: result: no" >&5
3227 $as_echo "no" >&6; }
3231 test -n "$ac_ct_CC" && break
3234 if test "x$ac_ct_CC" = x
; then
3237 case $cross_compiling:$ac_tool_warned in
3239 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3240 whose name does not start with the host triplet. If you think this
3241 configuration is useful to you, please write to autoconf@gnu.org." >&5
3242 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3243 whose name does not start with the host triplet. If you think this
3244 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3245 ac_tool_warned
=yes ;;
3254 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3255 See \`config.log' for more details." >&5
3256 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3257 See \`config.log' for more details." >&2;}
3258 { (exit 1); exit 1; }; }
3260 # Provide some information about the compiler.
3261 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3264 { (ac_try
="$ac_compiler --version >&5"
3266 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3267 *) ac_try_echo=$ac_try;;
3269 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3270 $as_echo "$ac_try_echo") >&5
3271 (eval "$ac_compiler --version >&5") 2>&5
3273 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3274 (exit $ac_status); }
3275 { (ac_try="$ac_compiler -v >&5"
3277 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3278 *) ac_try_echo
=$ac_try;;
3280 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
3281 $as_echo "$ac_try_echo") >&5
3282 (eval "$ac_compiler -v >&5") 2>&5
3284 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3285 (exit $ac_status); }
3286 { (ac_try
="$ac_compiler -V >&5"
3288 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3289 *) ac_try_echo=$ac_try;;
3291 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3292 $as_echo "$ac_try_echo") >&5
3293 (eval "$ac_compiler -V >&5") 2>&5
3295 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3296 (exit $ac_status); }
3298 cat >conftest.$ac_ext <<_ACEOF
3301 cat confdefs.h >>conftest.$ac_ext
3302 cat >>conftest.$ac_ext <<_ACEOF
3303 /* end confdefs.h. */
3313 ac_clean_files_save=$ac_clean_files
3314 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3315 # Try to create an executable without -o first, disregard a.out.
3316 # It will help us diagnose broken compilers, and finding out an intuition
3318 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3319 $as_echo_n "checking for C compiler default output file name... " >&6; }
3320 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3322 # The possible output files:
3323 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3326 for ac_file in $ac_files
3329 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3330 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3335 if { (ac_try="$ac_link_default"
3337 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3338 *) ac_try_echo
=$ac_try;;
3340 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
3341 $as_echo "$ac_try_echo") >&5
3342 (eval "$ac_link_default") 2>&5
3344 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3345 (exit $ac_status); }; then
3346 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3347 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3348 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3349 # so that the user can short-circuit this test for compilers unknown to
3351 for ac_file
in $ac_files ''
3353 test -f "$ac_file" ||
continue
3355 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3358 # We found the default executable, but exeext='' is most
3362 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3364 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3366 # We set ac_cv_exeext here because the later test for it is not
3367 # safe: cross compilers may not add the suffix if given an `-o'
3368 # argument, so we may need to know it at that point already.
3369 # Even if this section looks crufty: it has the advantage of
3376 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3382 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3383 $as_echo "$ac_file" >&6; }
3384 if test -z "$ac_file"; then
3385 $as_echo "$as_me: failed program was:" >&5
3386 sed 's/^/| /' conftest.
$ac_ext >&5
3388 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3389 See \`config.log' for more details." >&5
3390 $as_echo "$as_me: error: C compiler cannot create executables
3391 See \`config.log' for more details." >&2;}
3392 { (exit 77); exit 77; }; }
3395 ac_exeext
=$ac_cv_exeext
3397 # Check that the compiler produces executables we can run. If not, either
3398 # the compiler is broken, or we cross compile.
3399 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3400 $as_echo_n "checking whether the C compiler works... " >&6; }
3401 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3402 # If not cross compiling, check that we can run a simple program.
3403 if test "$cross_compiling" != yes; then
3404 if { ac_try
='./$ac_file'
3405 { (case "(($ac_try" in
3406 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3407 *) ac_try_echo=$ac_try;;
3409 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3410 $as_echo "$ac_try_echo") >&5
3411 (eval "$ac_try") 2>&5
3413 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3414 (exit $ac_status); }; }; then
3417 if test "$cross_compiling" = maybe; then
3420 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3421 If you meant to cross compile, use \`--host'.
3422 See \`config.log' for more details.
" >&5
3423 $as_echo "$as_me: error
: cannot run C compiled programs.
3424 If you meant to cross compile
, use \
`--host'.
3425 See \`config.log
' for more details." >&2;}
3426 { (exit 1); exit 1; }; }
3430 { $as_echo "$as_me:$LINENO: result: yes" >&5
3431 $as_echo "yes" >&6; }
3433 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3434 ac_clean_files=$ac_clean_files_save
3435 # Check that the compiler produces executables we can run. If not, either
3436 # the compiler is broken, or we cross compile.
3437 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3438 $as_echo_n "checking whether we are cross compiling... " >&6; }
3439 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3440 $as_echo "$cross_compiling" >&6; }
3442 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3443 $as_echo_n "checking for suffix of executables... " >&6; }
3444 if { (ac_try="$ac_link"
3446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3447 *) ac_try_echo=$ac_try;;
3449 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3450 $as_echo "$ac_try_echo") >&5
3451 (eval "$ac_link") 2>&5
3453 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3454 (exit $ac_status); }; then
3455 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3456 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3457 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3459 for ac_file
in conftest.exe conftest conftest.
*; do
3460 test -f "$ac_file" ||
continue
3462 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3463 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3469 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3470 See \`config.log' for more details." >&5
3471 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3472 See \`config.log' for more details." >&2;}
3473 { (exit 1); exit 1; }; }
3476 rm -f conftest
$ac_cv_exeext
3477 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3478 $as_echo "$ac_cv_exeext" >&6; }
3480 rm -f conftest.
$ac_ext
3481 EXEEXT
=$ac_cv_exeext
3483 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3484 $as_echo_n "checking for suffix of object files... " >&6; }
3485 if test "${ac_cv_objext+set}" = set; then
3486 $as_echo_n "(cached) " >&6
3488 cat >conftest.
$ac_ext <<_ACEOF
3491 cat confdefs.h
>>conftest.
$ac_ext
3492 cat >>conftest.
$ac_ext <<_ACEOF
3493 /* end confdefs.h. */
3503 rm -f conftest.o conftest.obj
3504 if { (ac_try
="$ac_compile"
3506 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3507 *) ac_try_echo=$ac_try;;
3509 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3510 $as_echo "$ac_try_echo") >&5
3511 (eval "$ac_compile") 2>&5
3513 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3514 (exit $ac_status); }; then
3515 for ac_file in conftest.o conftest.obj conftest.*; do
3516 test -f "$ac_file" || continue;
3518 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3519 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3524 $as_echo "$as_me: failed program was:" >&5
3525 sed 's/^/| /' conftest.$ac_ext >&5
3527 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3528 See \`config.log
' for more details." >&5
3529 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3530 See \`config.log' for more details.
" >&2;}
3531 { (exit 1); exit 1; }; }
3534 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3536 { $as_echo "$as_me:$LINENO: result
: $ac_cv_objext" >&5
3537 $as_echo "$ac_cv_objext" >&6; }
3538 OBJEXT=$ac_cv_objext
3540 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler
" >&5
3541 $as_echo_n "checking whether we are using the GNU C compiler...
" >&6; }
3542 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3543 $as_echo_n "(cached
) " >&6
3545 cat >conftest.$ac_ext <<_ACEOF
3548 cat confdefs.h >>conftest.$ac_ext
3549 cat >>conftest.$ac_ext <<_ACEOF
3550 /* end confdefs.h. */
3563 rm -f conftest.$ac_objext
3564 if { (ac_try="$ac_compile"
3566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3567 *) ac_try_echo=$ac_try;;
3569 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
3570 $as_echo "$ac_try_echo") >&5
3571 (eval "$ac_compile") 2>conftest.er1
3573 grep -v '^ *+' conftest.er1 >conftest.err
3575 cat conftest.err >&5
3576 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3577 (exit $ac_status); } && {
3578 test -z "$ac_c_werror_flag" ||
3579 test ! -s conftest.err
3580 } && test -s conftest.$ac_objext; then
3583 $as_echo "$as_me: failed program was
:" >&5
3584 sed 's/^/| /' conftest.$ac_ext >&5
3589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3590 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3593 { $as_echo "$as_me:$LINENO: result
: $ac_cv_c_compiler_gnu" >&5
3594 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3595 if test $ac_compiler_gnu = yes; then
3600 ac_test_CFLAGS=${CFLAGS+set}
3601 ac_save_CFLAGS=$CFLAGS
3602 { $as_echo "$as_me:$LINENO: checking whether
$CC accepts
-g" >&5
3603 $as_echo_n "checking whether
$CC accepts
-g...
" >&6; }
3604 if test "${ac_cv_prog_cc_g+set}" = set; then
3605 $as_echo_n "(cached
) " >&6
3607 ac_save_c_werror_flag=$ac_c_werror_flag
3608 ac_c_werror_flag=yes
3611 cat >conftest.$ac_ext <<_ACEOF
3614 cat confdefs.h >>conftest.$ac_ext
3615 cat >>conftest.$ac_ext <<_ACEOF
3616 /* end confdefs.h. */
3626 rm -f conftest.$ac_objext
3627 if { (ac_try="$ac_compile"
3629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3630 *) ac_try_echo=$ac_try;;
3632 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
3633 $as_echo "$ac_try_echo") >&5
3634 (eval "$ac_compile") 2>conftest.er1
3636 grep -v '^ *+' conftest.er1 >conftest.err
3638 cat conftest.err >&5
3639 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3640 (exit $ac_status); } && {
3641 test -z "$ac_c_werror_flag" ||
3642 test ! -s conftest.err
3643 } && test -s conftest.$ac_objext; then
3646 $as_echo "$as_me: failed program was
:" >&5
3647 sed 's/^/| /' conftest.$ac_ext >&5
3650 cat >conftest.$ac_ext <<_ACEOF
3653 cat confdefs.h >>conftest.$ac_ext
3654 cat >>conftest.$ac_ext <<_ACEOF
3655 /* end confdefs.h. */
3665 rm -f conftest.$ac_objext
3666 if { (ac_try="$ac_compile"
3668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3669 *) ac_try_echo=$ac_try;;
3671 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
3672 $as_echo "$ac_try_echo") >&5
3673 (eval "$ac_compile") 2>conftest.er1
3675 grep -v '^ *+' conftest.er1 >conftest.err
3677 cat conftest.err >&5
3678 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3679 (exit $ac_status); } && {
3680 test -z "$ac_c_werror_flag" ||
3681 test ! -s conftest.err
3682 } && test -s conftest.$ac_objext; then
3685 $as_echo "$as_me: failed program was
:" >&5
3686 sed 's/^/| /' conftest.$ac_ext >&5
3688 ac_c_werror_flag=$ac_save_c_werror_flag
3690 cat >conftest.$ac_ext <<_ACEOF
3693 cat confdefs.h >>conftest.$ac_ext
3694 cat >>conftest.$ac_ext <<_ACEOF
3695 /* end confdefs.h. */
3705 rm -f conftest.$ac_objext
3706 if { (ac_try="$ac_compile"
3708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3709 *) ac_try_echo=$ac_try;;
3711 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
3712 $as_echo "$ac_try_echo") >&5
3713 (eval "$ac_compile") 2>conftest.er1
3715 grep -v '^ *+' conftest.er1 >conftest.err
3717 cat conftest.err >&5
3718 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3719 (exit $ac_status); } && {
3720 test -z "$ac_c_werror_flag" ||
3721 test ! -s conftest.err
3722 } && test -s conftest.$ac_objext; then
3725 $as_echo "$as_me: failed program was
:" >&5
3726 sed 's/^/| /' conftest.$ac_ext >&5
3731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3738 ac_c_werror_flag=$ac_save_c_werror_flag
3740 { $as_echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_g" >&5
3741 $as_echo "$ac_cv_prog_cc_g" >&6; }
3742 if test "$ac_test_CFLAGS" = set; then
3743 CFLAGS=$ac_save_CFLAGS
3744 elif test $ac_cv_prog_cc_g = yes; then
3745 if test "$GCC" = yes; then
3751 if test "$GCC" = yes; then
3757 { $as_echo "$as_me:$LINENO: checking
for $CC option to accept ISO C89
" >&5
3758 $as_echo_n "checking
for $CC option to accept ISO C89...
" >&6; }
3759 if test "${ac_cv_prog_cc_c89+set}" = set; then
3760 $as_echo_n "(cached
) " >&6
3762 ac_cv_prog_cc_c89=no
3764 cat >conftest.$ac_ext <<_ACEOF
3767 cat confdefs.h >>conftest.$ac_ext
3768 cat >>conftest.$ac_ext <<_ACEOF
3769 /* end confdefs.h. */
3772 #include <sys/types.h>
3773 #include <sys/stat.h>
3774 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3775 struct buf { int x; };
3776 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3777 static char *e (p, i)
3783 static char *f (char * (*g) (char **, int), char **p, ...)
3788 s = g (p, va_arg (v,int));
3793 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3794 function prototypes and stuff, but not '\xHH' hex character constants.
3795 These don't provoke an error unfortunately, instead are silently treated
3796 as 'x'. The following induces an error, until -std is added to get
3797 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3798 array size at least. It's necessary to write '\x00'==0 to get something
3799 that's true only with -std. */
3800 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3802 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3803 inside strings and character constants. */
3805 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3807 int test (int i, double x);
3808 struct s1 {int (*f) (int a);};
3809 struct s2 {int (*f) (double a);};
3810 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3816 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3821 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3822 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3824 CC="$ac_save_CC $ac_arg"
3825 rm -f conftest.$ac_objext
3826 if { (ac_try="$ac_compile"
3828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3829 *) ac_try_echo=$ac_try;;
3831 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
3832 $as_echo "$ac_try_echo") >&5
3833 (eval "$ac_compile") 2>conftest.er1
3835 grep -v '^ *+' conftest.er1 >conftest.err
3837 cat conftest.err >&5
3838 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3839 (exit $ac_status); } && {
3840 test -z "$ac_c_werror_flag" ||
3841 test ! -s conftest.err
3842 } && test -s conftest.$ac_objext; then
3843 ac_cv_prog_cc_c89=$ac_arg
3845 $as_echo "$as_me: failed program was
:" >&5
3846 sed 's/^/| /' conftest.$ac_ext >&5
3851 rm -f core conftest.err conftest.$ac_objext
3852 test "x
$ac_cv_prog_cc_c89" != "xno
" && break
3854 rm -f conftest.$ac_ext
3859 case "x
$ac_cv_prog_cc_c89" in
3861 { $as_echo "$as_me:$LINENO: result
: none needed
" >&5
3862 $as_echo "none needed
" >&6; } ;;
3864 { $as_echo "$as_me:$LINENO: result
: unsupported
" >&5
3865 $as_echo "unsupported
" >&6; } ;;
3867 CC="$CC $ac_cv_prog_cc_c89"
3868 { $as_echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_c89" >&5
3869 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3874 ac_cpp='$CPP $CPPFLAGS'
3875 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3876 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3877 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3880 # On Suns, sometimes $CPP names a directory.
3881 if test -n "$CPP" && test -d "$CPP"; then
3885 ## If not using gcc, and on Solaris, and no CPP specified, see if
3886 ## using a Sun compiler, which needs -Xs to prevent whitespace.
3887 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
3888 test x"$CPP" = x; then
3889 { $as_echo "$as_me:$LINENO: checking whether we are using a Sun C compiler
" >&5
3890 $as_echo_n "checking whether we are using a Sun C compiler...
" >&6; }
3892 if test "${emacs_cv_sunpro_c+set}" = set; then
3893 $as_echo_n "(cached
) " >&6
3895 cat >conftest.$ac_ext <<_ACEOF
3898 cat confdefs.h >>conftest.$ac_ext
3899 cat >>conftest.$ac_ext <<_ACEOF
3900 /* end confdefs.h. */
3913 rm -f conftest.$ac_objext conftest$ac_exeext
3914 if { (ac_try="$ac_link"
3916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3917 *) ac_try_echo=$ac_try;;
3919 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
3920 $as_echo "$ac_try_echo") >&5
3921 (eval "$ac_link") 2>conftest.er1
3923 grep -v '^ *+' conftest.er1 >conftest.err
3925 cat conftest.err >&5
3926 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3927 (exit $ac_status); } && {
3928 test -z "$ac_c_werror_flag" ||
3929 test ! -s conftest.err
3930 } && test -s conftest$ac_exeext && {
3931 test "$cross_compiling" = yes ||
3932 $as_test_x conftest$ac_exeext
3934 emacs_cv_sunpro_c=yes
3936 $as_echo "$as_me: failed program was
:" >&5
3937 sed 's/^/| /' conftest.$ac_ext >&5
3939 emacs_cv_sunpro_c=no
3942 rm -rf conftest.dSYM
3943 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3944 conftest$ac_exeext conftest.$ac_ext
3947 { $as_echo "$as_me:$LINENO: result
: $emacs_cv_sunpro_c" >&5
3948 $as_echo "$emacs_cv_sunpro_c" >&6; }
3950 if test x"$emacs_cv_sunpro_c" = xyes; then
3951 NON_GNU_CPP="$CC -E -Xs"
3955 #### Some systems specify a CPP to use unless we are using GCC.
3956 #### Now that we know whether we are using GCC, we can decide whether
3957 #### to use that one.
3958 if test "x
$NON_GNU_CPP" != x && test x$GCC != xyes && test "x
$CPP" = x
3963 #### Some systems specify a CC to use unless we are using GCC.
3964 #### Now that we know whether we are using GCC, we can decide whether
3965 #### to use that one.
3966 if test "x
$NON_GNU_CC" != x && test x$GCC != xyes &&
3967 test x$cc_specified != xyes
3972 if test x$GCC = xyes && test "x
$GCC_TEST_OPTIONS" != x
3974 CC="$CC $GCC_TEST_OPTIONS"
3977 if test x$GCC = x && test "x
$NON_GCC_TEST_OPTIONS" != x
3979 CC="$CC $NON_GCC_TEST_OPTIONS"
3983 ac_cpp='$CPP $CPPFLAGS'
3984 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3985 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3986 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3987 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor
" >&5
3988 $as_echo_n "checking how to run the C preprocessor...
" >&6; }
3989 # On Suns, sometimes $CPP names a directory.
3990 if test -n "$CPP" && test -d "$CPP"; then
3993 if test -z "$CPP"; then
3994 if test "${ac_cv_prog_CPP+set}" = set; then
3995 $as_echo_n "(cached
) " >&6
3997 # Double quotes because CPP needs to be expanded
3998 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib
/cpp
"
4001 for ac_c_preproc_warn_flag in '' yes
4003 # Use a header file that comes with gcc, so configuring glibc
4004 # with a fresh cross-compiler works.
4005 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4006 # <limits.h> exists even on freestanding compilers.
4007 # On the NeXT, cc -E runs the code through the compiler's parser,
4008 # not just through cpp. "Syntax error
" is here to catch this case.
4009 cat >conftest.$ac_ext <<_ACEOF
4012 cat confdefs.h >>conftest.$ac_ext
4013 cat >>conftest.$ac_ext <<_ACEOF
4014 /* end confdefs.h. */
4016 # include <limits.h>
4018 # include <assert.h>
4022 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4025 *) ac_try_echo=$ac_try;;
4027 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
4028 $as_echo "$ac_try_echo") >&5
4029 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4031 grep -v '^ *+' conftest.er1 >conftest.err
4033 cat conftest.err >&5
4034 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4035 (exit $ac_status); } >/dev/null && {
4036 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4037 test ! -s conftest.err
4041 $as_echo "$as_me: failed program was
:" >&5
4042 sed 's/^/| /' conftest.$ac_ext >&5
4044 # Broken: fails on valid input.
4048 rm -f conftest.err conftest.$ac_ext
4050 # OK, works on sane cases. Now check whether nonexistent headers
4051 # can be detected and how.
4052 cat >conftest.$ac_ext <<_ACEOF
4055 cat confdefs.h >>conftest.$ac_ext
4056 cat >>conftest.$ac_ext <<_ACEOF
4057 /* end confdefs.h. */
4058 #include <ac_nonexistent.h>
4060 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4063 *) ac_try_echo=$ac_try;;
4065 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
4066 $as_echo "$ac_try_echo") >&5
4067 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4069 grep -v '^ *+' conftest.er1 >conftest.err
4071 cat conftest.err >&5
4072 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4073 (exit $ac_status); } >/dev/null && {
4074 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4075 test ! -s conftest.err
4077 # Broken: success on invalid input.
4080 $as_echo "$as_me: failed program was
:" >&5
4081 sed 's/^/| /' conftest.$ac_ext >&5
4083 # Passes both tests.
4088 rm -f conftest.err conftest.$ac_ext
4091 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4092 rm -f conftest.err conftest.$ac_ext
4093 if $ac_preproc_ok; then
4105 { $as_echo "$as_me:$LINENO: result
: $CPP" >&5
4106 $as_echo "$CPP" >&6; }
4108 for ac_c_preproc_warn_flag in '' yes
4110 # Use a header file that comes with gcc, so configuring glibc
4111 # with a fresh cross-compiler works.
4112 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4113 # <limits.h> exists even on freestanding compilers.
4114 # On the NeXT, cc -E runs the code through the compiler's parser,
4115 # not just through cpp. "Syntax error
" is here to catch this case.
4116 cat >conftest.$ac_ext <<_ACEOF
4119 cat confdefs.h >>conftest.$ac_ext
4120 cat >>conftest.$ac_ext <<_ACEOF
4121 /* end confdefs.h. */
4123 # include <limits.h>
4125 # include <assert.h>
4129 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4132 *) ac_try_echo=$ac_try;;
4134 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
4135 $as_echo "$ac_try_echo") >&5
4136 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4138 grep -v '^ *+' conftest.er1 >conftest.err
4140 cat conftest.err >&5
4141 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4142 (exit $ac_status); } >/dev/null && {
4143 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4144 test ! -s conftest.err
4148 $as_echo "$as_me: failed program was
:" >&5
4149 sed 's/^/| /' conftest.$ac_ext >&5
4151 # Broken: fails on valid input.
4155 rm -f conftest.err conftest.$ac_ext
4157 # OK, works on sane cases. Now check whether nonexistent headers
4158 # can be detected and how.
4159 cat >conftest.$ac_ext <<_ACEOF
4162 cat confdefs.h >>conftest.$ac_ext
4163 cat >>conftest.$ac_ext <<_ACEOF
4164 /* end confdefs.h. */
4165 #include <ac_nonexistent.h>
4167 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4170 *) ac_try_echo=$ac_try;;
4172 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
4173 $as_echo "$ac_try_echo") >&5
4174 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4176 grep -v '^ *+' conftest.er1 >conftest.err
4178 cat conftest.err >&5
4179 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4180 (exit $ac_status); } >/dev/null && {
4181 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4182 test ! -s conftest.err
4184 # Broken: success on invalid input.
4187 $as_echo "$as_me: failed program was
:" >&5
4188 sed 's/^/| /' conftest.$ac_ext >&5
4190 # Passes both tests.
4195 rm -f conftest.err conftest.$ac_ext
4198 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4199 rm -f conftest.err conftest.$ac_ext
4200 if $ac_preproc_ok; then
4203 { { $as_echo "$as_me:$LINENO: error
: C preprocessor
\"$CPP\" fails sanity check
4204 See \
`config.log' for more details." >&5
4205 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4206 See \`config.log
' for more details." >&2;}
4207 { (exit 1); exit 1; }; }
4211 ac_cpp='$CPP $CPPFLAGS'
4212 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
4213 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
4214 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4217 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4218 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4219 if test "${ac_cv_path_GREP+set}" = set; then
4220 $as_echo_n "(cached) " >&6
4222 if test -z "$GREP"; then
4223 ac_path_GREP_found=false
4224 # Loop through the user's path and
test for each of PROGNAME-LIST
4225 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4226 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4229 test -z "$as_dir" && as_dir
=.
4230 for ac_prog
in grep ggrep
; do
4231 for ac_exec_ext
in '' $ac_executable_extensions; do
4232 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4233 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
4234 # Check for GNU ac_path_GREP and select it if it is found.
4235 # Check for GNU $ac_path_GREP
4236 case `"$ac_path_GREP" --version 2>&1` in
4238 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4241 $as_echo_n 0123456789 >"conftest.in"
4244 cat "conftest.in" "conftest.in" >"conftest.tmp"
4245 mv "conftest.tmp" "conftest.in"
4246 cp "conftest.in" "conftest.nl"
4247 $as_echo 'GREP' >> "conftest.nl"
4248 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4249 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4250 ac_count
=`expr $ac_count + 1`
4251 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4252 # Best one so far, save it but keep looking for a better one
4253 ac_cv_path_GREP
="$ac_path_GREP"
4254 ac_path_GREP_max
=$ac_count
4256 # 10*(2^10) chars as input seems more than enough
4257 test $ac_count -gt 10 && break
4259 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4262 $ac_path_GREP_found && break 3
4267 if test -z "$ac_cv_path_GREP"; then
4268 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4269 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4270 { (exit 1); exit 1; }; }
4273 ac_cv_path_GREP
=$GREP
4277 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4278 $as_echo "$ac_cv_path_GREP" >&6; }
4279 GREP
="$ac_cv_path_GREP"
4282 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
4283 $as_echo_n "checking for egrep... " >&6; }
4284 if test "${ac_cv_path_EGREP+set}" = set; then
4285 $as_echo_n "(cached) " >&6
4287 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4288 then ac_cv_path_EGREP
="$GREP -E"
4290 if test -z "$EGREP"; then
4291 ac_path_EGREP_found
=false
4292 # Loop through the user's path and test for each of PROGNAME-LIST
4293 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4294 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4297 test -z "$as_dir" && as_dir
=.
4298 for ac_prog
in egrep; do
4299 for ac_exec_ext
in '' $ac_executable_extensions; do
4300 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4301 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
4302 # Check for GNU ac_path_EGREP and select it if it is found.
4303 # Check for GNU $ac_path_EGREP
4304 case `"$ac_path_EGREP" --version 2>&1` in
4306 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4309 $as_echo_n 0123456789 >"conftest.in"
4312 cat "conftest.in" "conftest.in" >"conftest.tmp"
4313 mv "conftest.tmp" "conftest.in"
4314 cp "conftest.in" "conftest.nl"
4315 $as_echo 'EGREP' >> "conftest.nl"
4316 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4317 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4318 ac_count
=`expr $ac_count + 1`
4319 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4320 # Best one so far, save it but keep looking for a better one
4321 ac_cv_path_EGREP
="$ac_path_EGREP"
4322 ac_path_EGREP_max
=$ac_count
4324 # 10*(2^10) chars as input seems more than enough
4325 test $ac_count -gt 10 && break
4327 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4330 $ac_path_EGREP_found && break 3
4335 if test -z "$ac_cv_path_EGREP"; then
4336 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4337 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4338 { (exit 1); exit 1; }; }
4341 ac_cv_path_EGREP
=$EGREP
4346 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4347 $as_echo "$ac_cv_path_EGREP" >&6; }
4348 EGREP
="$ac_cv_path_EGREP"
4351 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4352 $as_echo_n "checking for ANSI C header files... " >&6; }
4353 if test "${ac_cv_header_stdc+set}" = set; then
4354 $as_echo_n "(cached) " >&6
4356 cat >conftest.
$ac_ext <<_ACEOF
4359 cat confdefs.h
>>conftest.
$ac_ext
4360 cat >>conftest.
$ac_ext <<_ACEOF
4361 /* end confdefs.h. */
4375 rm -f conftest.
$ac_objext
4376 if { (ac_try
="$ac_compile"
4378 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4379 *) ac_try_echo=$ac_try;;
4381 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4382 $as_echo "$ac_try_echo") >&5
4383 (eval "$ac_compile") 2>conftest.er1
4385 grep -v '^ *+' conftest.er1 >conftest.err
4387 cat conftest.err >&5
4388 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4389 (exit $ac_status); } && {
4390 test -z "$ac_c_werror_flag" ||
4391 test ! -s conftest.err
4392 } && test -s conftest.$ac_objext; then
4393 ac_cv_header_stdc=yes
4395 $as_echo "$as_me: failed program was:" >&5
4396 sed 's/^/| /' conftest.$ac_ext >&5
4398 ac_cv_header_stdc=no
4401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4403 if test $ac_cv_header_stdc = yes; then
4404 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4405 cat >conftest.$ac_ext <<_ACEOF
4408 cat confdefs.h >>conftest.$ac_ext
4409 cat >>conftest.$ac_ext <<_ACEOF
4410 /* end confdefs.h. */
4414 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4415 $EGREP "memchr" >/dev/null 2>&1; then
4418 ac_cv_header_stdc=no
4424 if test $ac_cv_header_stdc = yes; then
4425 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4426 cat >conftest.$ac_ext <<_ACEOF
4429 cat confdefs.h >>conftest.$ac_ext
4430 cat >>conftest.$ac_ext <<_ACEOF
4431 /* end confdefs.h. */
4435 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4436 $EGREP "free" >/dev/null 2>&1; then
4439 ac_cv_header_stdc=no
4445 if test $ac_cv_header_stdc = yes; then
4446 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4447 if test "$cross_compiling" = yes; then
4450 cat >conftest.$ac_ext <<_ACEOF
4453 cat confdefs.h >>conftest.$ac_ext
4454 cat >>conftest.$ac_ext <<_ACEOF
4455 /* end confdefs.h. */
4458 #if ((' ' & 0x0FF) == 0x020)
4459 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4460 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4462 # define ISLOWER(c) \
4463 (('a' <= (c) && (c) <= 'i') \
4464 || ('j' <= (c) && (c) <= 'r') \
4465 || ('s' <= (c) && (c) <= 'z'))
4466 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4469 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4474 for (i = 0; i < 256; i++)
4475 if (XOR (islower (i), ISLOWER (i))
4476 || toupper (i) != TOUPPER (i))
4481 rm -f conftest$ac_exeext
4482 if { (ac_try="$ac_link"
4484 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4485 *) ac_try_echo
=$ac_try;;
4487 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4488 $as_echo "$ac_try_echo") >&5
4489 (eval "$ac_link") 2>&5
4491 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4492 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4493 { (case "(($ac_try" in
4494 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4495 *) ac_try_echo=$ac_try;;
4497 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4498 $as_echo "$ac_try_echo") >&5
4499 (eval "$ac_try") 2>&5
4501 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4502 (exit $ac_status); }; }; then
4505 $as_echo "$as_me: program exited with status $ac_status" >&5
4506 $as_echo "$as_me: failed program was:" >&5
4507 sed 's/^/| /' conftest.$ac_ext >&5
4510 ac_cv_header_stdc=no
4512 rm -rf conftest.dSYM
4513 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4519 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4520 $as_echo "$ac_cv_header_stdc" >&6; }
4521 if test $ac_cv_header_stdc = yes; then
4523 cat >>confdefs.h <<\_ACEOF
4524 #define STDC_HEADERS 1
4529 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4539 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4540 inttypes.h stdint.h unistd.h
4542 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
4543 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4544 $as_echo_n "checking for $ac_header... " >&6; }
4545 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4546 $as_echo_n "(cached) " >&6
4548 cat >conftest.$ac_ext <<_ACEOF
4551 cat confdefs.h >>conftest.$ac_ext
4552 cat >>conftest.$ac_ext <<_ACEOF
4553 /* end confdefs.h. */
4554 $ac_includes_default
4556 #include <$ac_header>
4558 rm -f conftest.$ac_objext
4559 if { (ac_try="$ac_compile"
4561 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4562 *) ac_try_echo
=$ac_try;;
4564 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4565 $as_echo "$ac_try_echo") >&5
4566 (eval "$ac_compile") 2>conftest.er1
4568 grep -v '^ *+' conftest.er1
>conftest.err
4570 cat conftest.err
>&5
4571 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4572 (exit $ac_status); } && {
4573 test -z "$ac_c_werror_flag" ||
4574 test ! -s conftest.err
4575 } && test -s conftest.
$ac_objext; then
4576 eval "$as_ac_Header=yes"
4578 $as_echo "$as_me: failed program was:" >&5
4579 sed 's/^/| /' conftest.
$ac_ext >&5
4581 eval "$as_ac_Header=no"
4584 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4586 ac_res
=`eval 'as_val=${'$as_ac_Header'}
4587 $as_echo "$as_val"'`
4588 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4589 $as_echo "$ac_res" >&6; }
4590 if test `eval 'as_val=${'$as_ac_Header'}
4591 $as_echo "$as_val"'` = yes; then
4592 cat >>confdefs.h
<<_ACEOF
4593 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4602 if test "${ac_cv_header_minix_config_h+set}" = set; then
4603 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4604 $as_echo_n "checking for minix/config.h... " >&6; }
4605 if test "${ac_cv_header_minix_config_h+set}" = set; then
4606 $as_echo_n "(cached) " >&6
4608 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4609 $as_echo "$ac_cv_header_minix_config_h" >&6; }
4611 # Is the header compilable?
4612 { $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4613 $as_echo_n "checking minix/config.h usability... " >&6; }
4614 cat >conftest.
$ac_ext <<_ACEOF
4617 cat confdefs.h
>>conftest.
$ac_ext
4618 cat >>conftest.
$ac_ext <<_ACEOF
4619 /* end confdefs.h. */
4620 $ac_includes_default
4621 #include <minix/config.h>
4623 rm -f conftest.
$ac_objext
4624 if { (ac_try
="$ac_compile"
4626 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4627 *) ac_try_echo=$ac_try;;
4629 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4630 $as_echo "$ac_try_echo") >&5
4631 (eval "$ac_compile") 2>conftest.er1
4633 grep -v '^ *+' conftest.er1 >conftest.err
4635 cat conftest.err >&5
4636 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4637 (exit $ac_status); } && {
4638 test -z "$ac_c_werror_flag" ||
4639 test ! -s conftest.err
4640 } && test -s conftest.$ac_objext; then
4641 ac_header_compiler=yes
4643 $as_echo "$as_me: failed program was:" >&5
4644 sed 's/^/| /' conftest.$ac_ext >&5
4646 ac_header_compiler=no
4649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4650 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4651 $as_echo "$ac_header_compiler" >&6; }
4653 # Is the header present?
4654 { $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4655 $as_echo_n "checking minix/config.h presence... " >&6; }
4656 cat >conftest.$ac_ext <<_ACEOF
4659 cat confdefs.h >>conftest.$ac_ext
4660 cat >>conftest.$ac_ext <<_ACEOF
4661 /* end confdefs.h. */
4662 #include <minix/config.h>
4664 if { (ac_try="$ac_cpp conftest.$ac_ext"
4666 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4667 *) ac_try_echo
=$ac_try;;
4669 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4670 $as_echo "$ac_try_echo") >&5
4671 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4673 grep -v '^ *+' conftest.er1
>conftest.err
4675 cat conftest.err
>&5
4676 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4677 (exit $ac_status); } >/dev
/null
&& {
4678 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4679 test ! -s conftest.err
4681 ac_header_preproc
=yes
4683 $as_echo "$as_me: failed program was:" >&5
4684 sed 's/^/| /' conftest.
$ac_ext >&5
4686 ac_header_preproc
=no
4689 rm -f conftest.err conftest.
$ac_ext
4690 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4691 $as_echo "$ac_header_preproc" >&6; }
4693 # So? What about this header?
4694 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4696 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4697 $as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4698 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4699 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4700 ac_header_preproc
=yes
4703 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4704 $as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4705 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
4706 $as_echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
4707 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4708 $as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4709 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
4710 $as_echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
4711 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4712 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4713 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4714 $as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4718 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4719 $as_echo_n "checking for minix/config.h... " >&6; }
4720 if test "${ac_cv_header_minix_config_h+set}" = set; then
4721 $as_echo_n "(cached) " >&6
4723 ac_cv_header_minix_config_h
=$ac_header_preproc
4725 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4726 $as_echo "$ac_cv_header_minix_config_h" >&6; }
4729 if test $ac_cv_header_minix_config_h = yes; then
4736 if test "$MINIX" = yes; then
4738 cat >>confdefs.h
<<\_ACEOF
4739 #define _POSIX_SOURCE 1
4743 cat >>confdefs.h
<<\_ACEOF
4744 #define _POSIX_1_SOURCE 2
4748 cat >>confdefs.h
<<\_ACEOF
4756 { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4757 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4758 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
4759 $as_echo_n "(cached) " >&6
4761 cat >conftest.
$ac_ext <<_ACEOF
4764 cat confdefs.h
>>conftest.
$ac_ext
4765 cat >>conftest.
$ac_ext <<_ACEOF
4766 /* end confdefs.h. */
4768 # define __EXTENSIONS__ 1
4769 $ac_includes_default
4778 rm -f conftest.
$ac_objext
4779 if { (ac_try
="$ac_compile"
4781 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4782 *) ac_try_echo=$ac_try;;
4784 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4785 $as_echo "$ac_try_echo") >&5
4786 (eval "$ac_compile") 2>conftest.er1
4788 grep -v '^ *+' conftest.er1 >conftest.err
4790 cat conftest.err >&5
4791 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4792 (exit $ac_status); } && {
4793 test -z "$ac_c_werror_flag" ||
4794 test ! -s conftest.err
4795 } && test -s conftest.$ac_objext; then
4796 ac_cv_safe_to_define___extensions__=yes
4798 $as_echo "$as_me: failed program was:" >&5
4799 sed 's/^/| /' conftest.$ac_ext >&5
4801 ac_cv_safe_to_define___extensions__=no
4804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4806 { $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4807 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4808 test $ac_cv_safe_to_define___extensions__ = yes &&
4809 cat >>confdefs.h <<\_ACEOF
4810 #define __EXTENSIONS__ 1
4813 cat >>confdefs.h <<\_ACEOF
4814 #define _ALL_SOURCE 1
4817 cat >>confdefs.h <<\_ACEOF
4818 #define _GNU_SOURCE 1
4821 cat >>confdefs.h <<\_ACEOF
4822 #define _POSIX_PTHREAD_SEMANTICS 1
4825 cat >>confdefs.h <<\_ACEOF
4826 #define _TANDEM_SOURCE 1
4831 ### Use -Wno-pointer-sign if the compiler supports it
4832 { $as_echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
4833 $as_echo_n "checking whether gcc understands -Wno-pointer-sign... " >&6; }
4834 SAVE_CFLAGS="$CFLAGS"
4835 CFLAGS="$CFLAGS -Wno-pointer-sign"
4836 cat >conftest.$ac_ext <<_ACEOF
4839 cat confdefs.h >>conftest.$ac_ext
4840 cat >>conftest.$ac_ext <<_ACEOF
4841 /* end confdefs.h. */
4851 rm -f conftest.$ac_objext
4852 if { (ac_try="$ac_compile"
4854 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4855 *) ac_try_echo
=$ac_try;;
4857 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4858 $as_echo "$ac_try_echo") >&5
4859 (eval "$ac_compile") 2>conftest.er1
4861 grep -v '^ *+' conftest.er1
>conftest.err
4863 cat conftest.err
>&5
4864 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4865 (exit $ac_status); } && {
4866 test -z "$ac_c_werror_flag" ||
4867 test ! -s conftest.err
4868 } && test -s conftest.
$ac_objext; then
4871 $as_echo "$as_me: failed program was:" >&5
4872 sed 's/^/| /' conftest.
$ac_ext >&5
4877 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4878 if test $has_option = yes; then
4879 C_WARNINGS_SWITCH
="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4881 { $as_echo "$as_me:$LINENO: result: $has_option" >&5
4882 $as_echo "$has_option" >&6; }
4883 CFLAGS
="$SAVE_CFLAGS"
4887 #### Some other nice autoconf tests.
4889 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
4890 $as_echo_n "checking whether ln -s works... " >&6; }
4892 if test "$LN_S" = "ln -s"; then
4893 { $as_echo "$as_me:$LINENO: result: yes" >&5
4894 $as_echo "yes" >&6; }
4896 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4897 $as_echo "no, using $LN_S" >&6; }
4901 ac_cpp
='$CPP $CPPFLAGS'
4902 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4903 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4904 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4905 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4906 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4907 # On Suns, sometimes $CPP names a directory.
4908 if test -n "$CPP" && test -d "$CPP"; then
4911 if test -z "$CPP"; then
4912 if test "${ac_cv_prog_CPP+set}" = set; then
4913 $as_echo_n "(cached) " >&6
4915 # Double quotes because CPP needs to be expanded
4916 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4919 for ac_c_preproc_warn_flag
in '' yes
4921 # Use a header file that comes with gcc, so configuring glibc
4922 # with a fresh cross-compiler works.
4923 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4924 # <limits.h> exists even on freestanding compilers.
4925 # On the NeXT, cc -E runs the code through the compiler's parser,
4926 # not just through cpp. "Syntax error" is here to catch this case.
4927 cat >conftest.
$ac_ext <<_ACEOF
4930 cat confdefs.h
>>conftest.
$ac_ext
4931 cat >>conftest.
$ac_ext <<_ACEOF
4932 /* end confdefs.h. */
4934 # include <limits.h>
4936 # include <assert.h>
4940 if { (ac_try
="$ac_cpp conftest.$ac_ext"
4942 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4943 *) ac_try_echo=$ac_try;;
4945 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4946 $as_echo "$ac_try_echo") >&5
4947 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4949 grep -v '^ *+' conftest.er1 >conftest.err
4951 cat conftest.err >&5
4952 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4953 (exit $ac_status); } >/dev/null && {
4954 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4955 test ! -s conftest.err
4959 $as_echo "$as_me: failed program was:" >&5
4960 sed 's/^/| /' conftest.$ac_ext >&5
4962 # Broken: fails on valid input.
4966 rm -f conftest.err conftest.$ac_ext
4968 # OK, works on sane cases. Now check whether nonexistent headers
4969 # can be detected and how.
4970 cat >conftest.$ac_ext <<_ACEOF
4973 cat confdefs.h >>conftest.$ac_ext
4974 cat >>conftest.$ac_ext <<_ACEOF
4975 /* end confdefs.h. */
4976 #include <ac_nonexistent.h>
4978 if { (ac_try="$ac_cpp conftest.$ac_ext"
4980 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4981 *) ac_try_echo
=$ac_try;;
4983 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4984 $as_echo "$ac_try_echo") >&5
4985 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4987 grep -v '^ *+' conftest.er1
>conftest.err
4989 cat conftest.err
>&5
4990 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4991 (exit $ac_status); } >/dev
/null
&& {
4992 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4993 test ! -s conftest.err
4995 # Broken: success on invalid input.
4998 $as_echo "$as_me: failed program was:" >&5
4999 sed 's/^/| /' conftest.
$ac_ext >&5
5001 # Passes both tests.
5006 rm -f conftest.err conftest.
$ac_ext
5009 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5010 rm -f conftest.err conftest.
$ac_ext
5011 if $ac_preproc_ok; then
5023 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
5024 $as_echo "$CPP" >&6; }
5026 for ac_c_preproc_warn_flag
in '' yes
5028 # Use a header file that comes with gcc, so configuring glibc
5029 # with a fresh cross-compiler works.
5030 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5031 # <limits.h> exists even on freestanding compilers.
5032 # On the NeXT, cc -E runs the code through the compiler's parser,
5033 # not just through cpp. "Syntax error" is here to catch this case.
5034 cat >conftest.
$ac_ext <<_ACEOF
5037 cat confdefs.h
>>conftest.
$ac_ext
5038 cat >>conftest.
$ac_ext <<_ACEOF
5039 /* end confdefs.h. */
5041 # include <limits.h>
5043 # include <assert.h>
5047 if { (ac_try
="$ac_cpp conftest.$ac_ext"
5049 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5050 *) ac_try_echo=$ac_try;;
5052 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5053 $as_echo "$ac_try_echo") >&5
5054 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5056 grep -v '^ *+' conftest.er1 >conftest.err
5058 cat conftest.err >&5
5059 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5060 (exit $ac_status); } >/dev/null && {
5061 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5062 test ! -s conftest.err
5066 $as_echo "$as_me: failed program was:" >&5
5067 sed 's/^/| /' conftest.$ac_ext >&5
5069 # Broken: fails on valid input.
5073 rm -f conftest.err conftest.$ac_ext
5075 # OK, works on sane cases. Now check whether nonexistent headers
5076 # can be detected and how.
5077 cat >conftest.$ac_ext <<_ACEOF
5080 cat confdefs.h >>conftest.$ac_ext
5081 cat >>conftest.$ac_ext <<_ACEOF
5082 /* end confdefs.h. */
5083 #include <ac_nonexistent.h>
5085 if { (ac_try="$ac_cpp conftest.$ac_ext"
5087 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5088 *) ac_try_echo
=$ac_try;;
5090 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
5091 $as_echo "$ac_try_echo") >&5
5092 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5094 grep -v '^ *+' conftest.er1
>conftest.err
5096 cat conftest.err
>&5
5097 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5098 (exit $ac_status); } >/dev
/null
&& {
5099 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5100 test ! -s conftest.err
5102 # Broken: success on invalid input.
5105 $as_echo "$as_me: failed program was:" >&5
5106 sed 's/^/| /' conftest.
$ac_ext >&5
5108 # Passes both tests.
5113 rm -f conftest.err conftest.
$ac_ext
5116 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5117 rm -f conftest.err conftest.
$ac_ext
5118 if $ac_preproc_ok; then
5121 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5122 See \`config.log' for more details." >&5
5123 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5124 See \`config.log' for more details." >&2;}
5125 { (exit 1); exit 1; }; }
5129 ac_cpp
='$CPP $CPPFLAGS'
5130 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5131 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5132 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5134 # Find a good install program. We prefer a C program (faster),
5135 # so one script is as good as another. But avoid the broken or
5136 # incompatible versions:
5137 # SysV /etc/install, /usr/sbin/install
5138 # SunOS /usr/etc/install
5139 # IRIX /sbin/install
5141 # AmigaOS /C/install, which installs bootblocks on floppy discs
5142 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5143 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5144 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5145 # OS/2's system install, which has a completely different semantic
5146 # ./install, which can be erroneously created by make from ./install.sh.
5147 # Reject install programs that cannot install multiple files.
5148 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5149 $as_echo_n "checking for a BSD-compatible install... " >&6; }
5150 if test -z "$INSTALL"; then
5151 if test "${ac_cv_path_install+set}" = set; then
5152 $as_echo_n "(cached) " >&6
5154 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5158 test -z "$as_dir" && as_dir
=.
5159 # Account for people who put trailing slashes in PATH elements.
5161 .
/ | .
// |
/cC
/* | \
5162 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
5163 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
5166 # OSF1 and SCO ODT 3.0 have their own names for install.
5167 # Don't use installbsd from OSF since it installs stuff as root
5169 for ac_prog
in ginstall scoinst
install; do
5170 for ac_exec_ext
in '' $ac_executable_extensions; do
5171 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5172 if test $ac_prog = install &&
5173 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
5174 # AIX install. It has an incompatible calling convention.
5176 elif test $ac_prog = install &&
5177 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
5178 # program-specific install script used by HP pwplus--don't use.
5181 rm -rf conftest.one conftest.two conftest.dir
5182 echo one
> conftest.one
5183 echo two
> conftest.two
5185 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
5186 test -s conftest.one
&& test -s conftest.two
&&
5187 test -s conftest.dir
/conftest.one
&&
5188 test -s conftest.dir
/conftest.two
5190 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
5203 rm -rf conftest.one conftest.two conftest.dir
5206 if test "${ac_cv_path_install+set}" = set; then
5207 INSTALL
=$ac_cv_path_install
5209 # As a last resort, use the slow shell script. Don't cache a
5210 # value for INSTALL within a source directory, because that will
5211 # break other packages using the cache if that directory is
5212 # removed, or if the value is a relative name.
5213 INSTALL
=$ac_install_sh
5216 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
5217 $as_echo "$INSTALL" >&6; }
5219 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5220 # It thinks the first close brace ends the variable substitution.
5221 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
5223 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
5225 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
5227 if test "x$RANLIB" = x
; then
5228 if test -n "$ac_tool_prefix"; then
5229 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5230 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
5231 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5232 $as_echo_n "checking for $ac_word... " >&6; }
5233 if test "${ac_cv_prog_RANLIB+set}" = set; then
5234 $as_echo_n "(cached) " >&6
5236 if test -n "$RANLIB"; then
5237 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
5239 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5243 test -z "$as_dir" && as_dir
=.
5244 for ac_exec_ext
in '' $ac_executable_extensions; do
5245 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5246 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
5247 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5256 RANLIB
=$ac_cv_prog_RANLIB
5257 if test -n "$RANLIB"; then
5258 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5259 $as_echo "$RANLIB" >&6; }
5261 { $as_echo "$as_me:$LINENO: result: no" >&5
5262 $as_echo "no" >&6; }
5267 if test -z "$ac_cv_prog_RANLIB"; then
5268 ac_ct_RANLIB
=$RANLIB
5269 # Extract the first word of "ranlib", so it can be a program name with args.
5270 set dummy ranlib
; ac_word
=$2
5271 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5272 $as_echo_n "checking for $ac_word... " >&6; }
5273 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5274 $as_echo_n "(cached) " >&6
5276 if test -n "$ac_ct_RANLIB"; then
5277 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
5279 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5283 test -z "$as_dir" && as_dir
=.
5284 for ac_exec_ext
in '' $ac_executable_extensions; do
5285 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5286 ac_cv_prog_ac_ct_RANLIB
="ranlib"
5287 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5296 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
5297 if test -n "$ac_ct_RANLIB"; then
5298 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5299 $as_echo "$ac_ct_RANLIB" >&6; }
5301 { $as_echo "$as_me:$LINENO: result: no" >&5
5302 $as_echo "no" >&6; }
5305 if test "x$ac_ct_RANLIB" = x
; then
5308 case $cross_compiling:$ac_tool_warned in
5310 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5311 whose name does not start with the host triplet. If you think this
5312 configuration is useful to you, please write to autoconf@gnu.org." >&5
5313 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5314 whose name does not start with the host triplet. If you think this
5315 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5316 ac_tool_warned
=yes ;;
5318 RANLIB
=$ac_ct_RANLIB
5321 RANLIB
="$ac_cv_prog_RANLIB"
5325 # Extract the first word of "install-info", so it can be a program name with args.
5326 set dummy install-info
; ac_word
=$2
5327 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5328 $as_echo_n "checking for $ac_word... " >&6; }
5329 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5330 $as_echo_n "(cached) " >&6
5332 case $INSTALL_INFO in
5334 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5337 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5341 test -z "$as_dir" && as_dir
=.
5342 for ac_exec_ext
in '' $ac_executable_extensions; do
5343 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5344 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5345 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5355 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5356 if test -n "$INSTALL_INFO"; then
5357 { $as_echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5358 $as_echo "$INSTALL_INFO" >&6; }
5360 { $as_echo "$as_me:$LINENO: result: no" >&5
5361 $as_echo "no" >&6; }
5365 # Extract the first word of "install-info", so it can be a program name with args.
5366 set dummy install-info
; ac_word
=$2
5367 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5368 $as_echo_n "checking for $ac_word... " >&6; }
5369 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5370 $as_echo_n "(cached) " >&6
5372 case $INSTALL_INFO in
5374 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5377 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5378 for as_dir
in /usr
/sbin
5381 test -z "$as_dir" && as_dir
=.
5382 for ac_exec_ext
in '' $ac_executable_extensions; do
5383 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5384 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5385 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5395 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5396 if test -n "$INSTALL_INFO"; then
5397 { $as_echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5398 $as_echo "$INSTALL_INFO" >&6; }
5400 { $as_echo "$as_me:$LINENO: result: no" >&5
5401 $as_echo "no" >&6; }
5405 # Extract the first word of "install-info", so it can be a program name with args.
5406 set dummy install-info
; ac_word
=$2
5407 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5408 $as_echo_n "checking for $ac_word... " >&6; }
5409 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5410 $as_echo_n "(cached) " >&6
5412 case $INSTALL_INFO in
5414 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5417 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5421 test -z "$as_dir" && as_dir
=.
5422 for ac_exec_ext
in '' $ac_executable_extensions; do
5423 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5424 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5425 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5432 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO
=":"
5436 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5437 if test -n "$INSTALL_INFO"; then
5438 { $as_echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5439 $as_echo "$INSTALL_INFO" >&6; }
5441 { $as_echo "$as_me:$LINENO: result: no" >&5
5442 $as_echo "no" >&6; }
5446 # Extract the first word of "gzip", so it can be a program name with args.
5447 set dummy
gzip; ac_word
=$2
5448 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5449 $as_echo_n "checking for $ac_word... " >&6; }
5450 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
5451 $as_echo_n "(cached) " >&6
5455 ac_cv_path_GZIP_PROG
="$GZIP_PROG" # Let the user override the test with a path.
5458 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5462 test -z "$as_dir" && as_dir
=.
5463 for ac_exec_ext
in '' $ac_executable_extensions; do
5464 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5465 ac_cv_path_GZIP_PROG
="$as_dir/$ac_word$ac_exec_ext"
5466 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5476 GZIP_PROG
=$ac_cv_path_GZIP_PROG
5477 if test -n "$GZIP_PROG"; then
5478 { $as_echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
5479 $as_echo "$GZIP_PROG" >&6; }
5481 { $as_echo "$as_me:$LINENO: result: no" >&5
5482 $as_echo "no" >&6; }
5488 ## Need makeinfo >= 4.6 (?) to build the manuals.
5489 # Extract the first word of "makeinfo", so it can be a program name with args.
5490 set dummy makeinfo
; ac_word
=$2
5491 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5492 $as_echo_n "checking for $ac_word... " >&6; }
5493 if test "${ac_cv_path_MAKEINFO+set}" = set; then
5494 $as_echo_n "(cached) " >&6
5498 ac_cv_path_MAKEINFO
="$MAKEINFO" # Let the user override the test with a path.
5501 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5505 test -z "$as_dir" && as_dir
=.
5506 for ac_exec_ext
in '' $ac_executable_extensions; do
5507 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5508 ac_cv_path_MAKEINFO
="$as_dir/$ac_word$ac_exec_ext"
5509 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5516 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO
="no"
5520 MAKEINFO
=$ac_cv_path_MAKEINFO
5521 if test -n "$MAKEINFO"; then
5522 { $as_echo "$as_me:$LINENO: result: $MAKEINFO" >&5
5523 $as_echo "$MAKEINFO" >&6; }
5525 { $as_echo "$as_me:$LINENO: result: no" >&5
5526 $as_echo "no" >&6; }
5530 if test "$MAKEINFO" != "no" && \
5531 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
5535 ## Makeinfo is unusual. For a released Emacs, the manuals are
5536 ## pre-built, and not deleted by the normal clean rules. makeinfo is
5537 ## therefore in the category of "special tools" not normally required, which
5538 ## configure does not have to check for (eg autoconf itself).
5539 ## In a CVS checkout on the other hand, the manuals are not included.
5540 ## So makeinfo is a requirement to build from CVS, and configure
5541 ## should test for it as it does for any other build requirement.
5542 ## We use the presence of $srcdir/info/emacs to distinguish a release,
5543 ## with pre-built manuals, from a CVS checkout.
5544 if test "$MAKEINFO" = "no"; then
5545 if test "x${with_makeinfo}" = "xno"; then
5547 elif ! test -e $srcdir/info
/emacs
; then
5548 { { $as_echo "$as_me:$LINENO: error: You do not seem to have makeinfo >= 4.6, and your
5549 source tree does not seem to have pre-built manuals in the \`info' directory.
5550 Either install a suitable version of makeinfo, or re-run configure
5551 with the \`--without-makeinfo' option to build without the manuals. " >&5
5552 $as_echo "$as_me: error: You do not seem to have makeinfo >= 4.6, and your
5553 source tree does not seem to have pre-built manuals in the \`info' directory.
5554 Either install a suitable version of makeinfo, or re-run configure
5555 with the \`--without-makeinfo' option to build without the manuals. " >&2;}
5556 { (exit 1); exit 1; }; }
5561 if test x
$GCC = xyes
&& test "x$GCC_LINK_TEST_OPTIONS" != x
5563 ac_link
="$ac_link $GCC_LINK_TEST_OPTIONS"
5566 if test x
$GCC = x
&& test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5568 ac_link
="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5572 late_LDFLAGS
=$LDFLAGS
5573 if test "$GCC" = yes; then
5574 LDFLAGS
="$LDFLAGS -Wl,-znocombreloc"
5576 LDFLAGS
="$LDFLAGS -znocombreloc"
5579 { $as_echo "$as_me:$LINENO: checking for -znocombreloc" >&5
5580 $as_echo_n "checking for -znocombreloc... " >&6; }
5581 cat >conftest.
$ac_ext <<_ACEOF
5584 rm -f conftest.
$ac_objext conftest
$ac_exeext
5585 if { (ac_try
="$ac_link"
5587 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5588 *) ac_try_echo=$ac_try;;
5590 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5591 $as_echo "$ac_try_echo") >&5
5592 (eval "$ac_link") 2>conftest.er1
5594 grep -v '^ *+' conftest.er1 >conftest.err
5596 cat conftest.err >&5
5597 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5598 (exit $ac_status); } && {
5599 test -z "$ac_c_werror_flag" ||
5600 test ! -s conftest.err
5601 } && test -s conftest$ac_exeext && {
5602 test "$cross_compiling" = yes ||
5603 $as_test_x conftest$ac_exeext
5605 { $as_echo "$as_me:$LINENO: result: yes" >&5
5606 $as_echo "yes" >&6; }
5608 $as_echo "$as_me: failed program was:" >&5
5609 sed 's/^/| /' conftest.$ac_ext >&5
5611 LDFLAGS=$late_LDFLAGS
5612 { $as_echo "$as_me:$LINENO: result: no" >&5
5613 $as_echo "no" >&6; }
5616 rm -rf conftest.dSYM
5617 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5618 conftest$ac_exeext conftest.$ac_ext
5620 #### Extract some information from the operating system and machine files.
5622 { $as_echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
5623 - which libraries the lib-src programs will want, and
5624 - whether the GNU malloc routines are usable..." >&5
5625 $as_echo "$as_me: checking the machine- and system-dependent files to find out
5626 - which libraries the lib-src programs will want, and
5627 - whether the GNU malloc routines are usable..." >&6;}
5629 ### First figure out CFLAGS (which we use for running the compiler here)
5630 ### and REAL_CFLAGS (which we use for real compilation).
5631 ### The two are the same except on a few systems, where they are made
5632 ### different to work around various lossages. For example,
5633 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5634 ### as implying static linking.
5636 ### If the CFLAGS env var is specified, we use that value
5637 ### instead of the default.
5639 ### It's not important that this name contain the PID; you can't run
5640 ### two configures in the same directory and have anything work
5642 tempcname="conftest.c"
5645 #include "'${srcdir}'/src/'${opsysfile}'"
5646 #include "'${srcdir}'/src/'${machfile}'"
5647 #ifndef LIBS_MACHINE
5648 #define LIBS_MACHINE
5653 #ifndef C_SWITCH_SYSTEM
5654 #define C_SWITCH_SYSTEM
5656 #ifndef C_SWITCH_MACHINE
5657 #define C_SWITCH_MACHINE
5659 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
5660 configure___ c_switch_system=C_SWITCH_SYSTEM
5661 configure___ c_switch_machine=C_SWITCH_MACHINE
5664 #define LIB_X11_LIB -lX11
5667 #ifndef LIBX11_SYSTEM
5668 #define LIBX11_SYSTEM
5670 configure___ LIBX=LIB_X11_LIB LIBX11_SYSTEM
5673 configure___ unexec=UNEXEC
5675 configure___ unexec=unexec.o
5678 #ifdef SYSTEM_MALLOC
5679 configure___ system_malloc=yes
5681 configure___ system_malloc=no
5684 #ifdef USE_MMAP_FOR_BUFFERS
5685 configure___ use_mmap_for_buffers=yes
5687 configure___ use_mmap_for_buffers=no
5690 #ifndef C_DEBUG_SWITCH
5691 #define C_DEBUG_SWITCH -g
5694 #ifndef C_OPTIMIZE_SWITCH
5696 #define C_OPTIMIZE_SWITCH -O2
5698 #define C_OPTIMIZE_SWITCH -O
5702 #ifndef C_WARNINGS_SWITCH
5703 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5706 #ifndef LD_SWITCH_MACHINE
5707 #define LD_SWITCH_MACHINE
5710 #ifndef LD_SWITCH_SYSTEM
5711 #define LD_SWITCH_SYSTEM
5714 #ifndef LD_SWITCH_X_SITE_AUX
5715 #define LD_SWITCH_X_SITE_AUX
5718 configure___ ld_switch_system=LD_SWITCH_SYSTEM
5719 configure___ ld_switch_machine=LD_SWITCH_MACHINE
5721 #ifdef THIS_IS_CONFIGURE
5723 /* Get the CFLAGS for tests in configure. */
5725 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
5727 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5730 #else /* not THIS_IS_CONFIGURE */
5732 /* Get the CFLAGS for real compilation. */
5734 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH ${PROFILING_CFLAGS} '${SPECIFIED_CFLAGS}'
5736 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5739 #endif /* not THIS_IS_CONFIGURE */
5742 LDFLAGS="${LDFLAGS} ${PROFILING_LDFLAGS}"
5744 # The value of CPP is a quoted variable reference, so we need to do this
5745 # to get its actual value...
5746 CPP=`eval "echo $CPP"`
5747 eval `${CPP} -Isrc ${tempcname} \
5748 |
sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5749 if test "x$SPECIFIED_CFLAGS" = x; then
5750 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5751 |
sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5753 REAL_CFLAGS="$CFLAGS"
5757 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
5759 ### Make sure subsequent tests use flags consistent with the build flags.
5761 if test x"${OVERRIDE_CPPFLAGS}" != x; then
5762 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
5764 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
5769 # Check whether --enable-largefile was given.
5770 if test "${enable_largefile+set}" = set; then
5771 enableval=$enable_largefile;
5774 if test "$enable_largefile" != no; then
5776 { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5777 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5778 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5779 $as_echo_n "(cached) " >&6
5781 ac_cv_sys_largefile_CC=no
5782 if test "$GCC" != yes; then
5785 # IRIX 6.2 and later do not support large files by default,
5786 # so use the C compiler's -n32 option if that helps.
5787 cat >conftest.$ac_ext <<_ACEOF
5790 cat confdefs.h >>conftest.$ac_ext
5791 cat >>conftest.$ac_ext <<_ACEOF
5792 /* end confdefs.h. */
5793 #include <sys/types.h>
5794 /* Check that off_t can represent 2**63 - 1 correctly.
5795 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5796 since some C++ compilers masquerading as C compilers
5797 incorrectly reject 9223372036854775807. */
5798 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5799 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5800 && LARGE_OFF_T % 2147483647 == 1)
5810 rm -f conftest.$ac_objext
5811 if { (ac_try="$ac_compile"
5813 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5814 *) ac_try_echo
=$ac_try;;
5816 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
5817 $as_echo "$ac_try_echo") >&5
5818 (eval "$ac_compile") 2>conftest.er1
5820 grep -v '^ *+' conftest.er1
>conftest.err
5822 cat conftest.err
>&5
5823 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5824 (exit $ac_status); } && {
5825 test -z "$ac_c_werror_flag" ||
5826 test ! -s conftest.err
5827 } && test -s conftest.
$ac_objext; then
5830 $as_echo "$as_me: failed program was:" >&5
5831 sed 's/^/| /' conftest.
$ac_ext >&5
5836 rm -f core conftest.err conftest.
$ac_objext
5838 rm -f conftest.
$ac_objext
5839 if { (ac_try
="$ac_compile"
5841 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5842 *) ac_try_echo=$ac_try;;
5844 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5845 $as_echo "$ac_try_echo") >&5
5846 (eval "$ac_compile") 2>conftest.er1
5848 grep -v '^ *+' conftest.er1 >conftest.err
5850 cat conftest.err >&5
5851 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5852 (exit $ac_status); } && {
5853 test -z "$ac_c_werror_flag" ||
5854 test ! -s conftest.err
5855 } && test -s conftest.$ac_objext; then
5856 ac_cv_sys_largefile_CC=' -n32'; break
5858 $as_echo "$as_me: failed program was:" >&5
5859 sed 's/^/| /' conftest.$ac_ext >&5
5864 rm -f core conftest.err conftest.$ac_objext
5868 rm -f conftest.$ac_ext
5871 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5872 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5873 if test "$ac_cv_sys_largefile_CC" != no; then
5874 CC=$CC$ac_cv_sys_largefile_CC
5877 { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5878 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5879 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5880 $as_echo_n "(cached) " >&6
5883 cat >conftest.$ac_ext <<_ACEOF
5886 cat confdefs.h >>conftest.$ac_ext
5887 cat >>conftest.$ac_ext <<_ACEOF
5888 /* end confdefs.h. */
5889 #include <sys/types.h>
5890 /* Check that off_t can represent 2**63 - 1 correctly.
5891 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5892 since some C++ compilers masquerading as C compilers
5893 incorrectly reject 9223372036854775807. */
5894 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5895 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5896 && LARGE_OFF_T % 2147483647 == 1)
5906 rm -f conftest.$ac_objext
5907 if { (ac_try="$ac_compile"
5909 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5910 *) ac_try_echo
=$ac_try;;
5912 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
5913 $as_echo "$ac_try_echo") >&5
5914 (eval "$ac_compile") 2>conftest.er1
5916 grep -v '^ *+' conftest.er1
>conftest.err
5918 cat conftest.err
>&5
5919 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5920 (exit $ac_status); } && {
5921 test -z "$ac_c_werror_flag" ||
5922 test ! -s conftest.err
5923 } && test -s conftest.
$ac_objext; then
5924 ac_cv_sys_file_offset_bits
=no
; break
5926 $as_echo "$as_me: failed program was:" >&5
5927 sed 's/^/| /' conftest.
$ac_ext >&5
5932 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5933 cat >conftest.
$ac_ext <<_ACEOF
5936 cat confdefs.h
>>conftest.
$ac_ext
5937 cat >>conftest.
$ac_ext <<_ACEOF
5938 /* end confdefs.h. */
5939 #define _FILE_OFFSET_BITS 64
5940 #include <sys/types.h>
5941 /* Check that off_t can represent 2**63 - 1 correctly.
5942 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5943 since some C++ compilers masquerading as C compilers
5944 incorrectly reject 9223372036854775807. */
5945 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5946 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5947 && LARGE_OFF_T % 2147483647 == 1)
5957 rm -f conftest.
$ac_objext
5958 if { (ac_try
="$ac_compile"
5960 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5961 *) ac_try_echo=$ac_try;;
5963 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5964 $as_echo "$ac_try_echo") >&5
5965 (eval "$ac_compile") 2>conftest.er1
5967 grep -v '^ *+' conftest.er1 >conftest.err
5969 cat conftest.err >&5
5970 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5971 (exit $ac_status); } && {
5972 test -z "$ac_c_werror_flag" ||
5973 test ! -s conftest.err
5974 } && test -s conftest.$ac_objext; then
5975 ac_cv_sys_file_offset_bits=64; break
5977 $as_echo "$as_me: failed program was:" >&5
5978 sed 's/^/| /' conftest.$ac_ext >&5
5983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5984 ac_cv_sys_file_offset_bits=unknown
5988 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5989 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5990 case $ac_cv_sys_file_offset_bits in #(
5993 cat >>confdefs.h <<_ACEOF
5994 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5999 if test $ac_cv_sys_file_offset_bits = unknown; then
6000 { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
6001 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6002 if test "${ac_cv_sys_large_files+set}" = set; then
6003 $as_echo_n "(cached) " >&6
6006 cat >conftest.$ac_ext <<_ACEOF
6009 cat confdefs.h >>conftest.$ac_ext
6010 cat >>conftest.$ac_ext <<_ACEOF
6011 /* end confdefs.h. */
6012 #include <sys/types.h>
6013 /* Check that off_t can represent 2**63 - 1 correctly.
6014 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6015 since some C++ compilers masquerading as C compilers
6016 incorrectly reject 9223372036854775807. */
6017 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6018 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6019 && LARGE_OFF_T % 2147483647 == 1)
6029 rm -f conftest.$ac_objext
6030 if { (ac_try="$ac_compile"
6032 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6033 *) ac_try_echo
=$ac_try;;
6035 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6036 $as_echo "$ac_try_echo") >&5
6037 (eval "$ac_compile") 2>conftest.er1
6039 grep -v '^ *+' conftest.er1
>conftest.err
6041 cat conftest.err
>&5
6042 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6043 (exit $ac_status); } && {
6044 test -z "$ac_c_werror_flag" ||
6045 test ! -s conftest.err
6046 } && test -s conftest.
$ac_objext; then
6047 ac_cv_sys_large_files
=no
; break
6049 $as_echo "$as_me: failed program was:" >&5
6050 sed 's/^/| /' conftest.
$ac_ext >&5
6055 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6056 cat >conftest.
$ac_ext <<_ACEOF
6059 cat confdefs.h
>>conftest.
$ac_ext
6060 cat >>conftest.
$ac_ext <<_ACEOF
6061 /* end confdefs.h. */
6062 #define _LARGE_FILES 1
6063 #include <sys/types.h>
6064 /* Check that off_t can represent 2**63 - 1 correctly.
6065 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6066 since some C++ compilers masquerading as C compilers
6067 incorrectly reject 9223372036854775807. */
6068 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6069 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6070 && LARGE_OFF_T % 2147483647 == 1)
6080 rm -f conftest.
$ac_objext
6081 if { (ac_try
="$ac_compile"
6083 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6084 *) ac_try_echo=$ac_try;;
6086 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6087 $as_echo "$ac_try_echo") >&5
6088 (eval "$ac_compile") 2>conftest.er1
6090 grep -v '^ *+' conftest.er1 >conftest.err
6092 cat conftest.err >&5
6093 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6094 (exit $ac_status); } && {
6095 test -z "$ac_c_werror_flag" ||
6096 test ! -s conftest.err
6097 } && test -s conftest.$ac_objext; then
6098 ac_cv_sys_large_files=1; break
6100 $as_echo "$as_me: failed program was:" >&5
6101 sed 's/^/| /' conftest.$ac_ext >&5
6106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6107 ac_cv_sys_large_files=unknown
6111 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
6112 $as_echo "$ac_cv_sys_large_files" >&6; }
6113 case $ac_cv_sys_large_files in #(
6116 cat >>confdefs.h <<_ACEOF
6117 #define _LARGE_FILES $ac_cv_sys_large_files
6127 ### The standard library on x86-64 and s390x GNU/Linux distributions can
6128 ### be located in either /usr/lib64 or /usr/lib.
6129 ### In some rare cases, /usr/lib64 exists but does not contain the
6130 ### relevant files (bug#1287). Hence test for crtn.o.
6131 case "${canonical}" in
6132 x86_64-*-linux-gnu* | s390x-*-linux-gnu* )
6133 if test -e /usr/lib64/crtn.o; then
6135 cat >>confdefs.h <<\_ACEOF
6136 #define HAVE_LIB64_DIR 1
6145 if test "${with_sound}" != "no"; then
6146 # Sound support for GNU/Linux and the free BSDs.
6150 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
6152 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
6153 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6154 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6155 $as_echo_n "checking for $ac_header... " >&6; }
6156 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6157 $as_echo_n "(cached) " >&6
6159 ac_res=`eval 'as_val=${'$as_ac_Header'}
6160 $as_echo "$as_val"'`
6161 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6162 $as_echo "$ac_res" >&6; }
6164 # Is the header compilable?
6165 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6166 $as_echo_n "checking $ac_header usability... " >&6; }
6167 cat >conftest.$ac_ext <<_ACEOF
6170 cat confdefs.h >>conftest.$ac_ext
6171 cat >>conftest.$ac_ext <<_ACEOF
6172 /* end confdefs.h. */
6173 $ac_includes_default
6174 #include <$ac_header>
6176 rm -f conftest.$ac_objext
6177 if { (ac_try="$ac_compile"
6179 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6180 *) ac_try_echo
=$ac_try;;
6182 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6183 $as_echo "$ac_try_echo") >&5
6184 (eval "$ac_compile") 2>conftest.er1
6186 grep -v '^ *+' conftest.er1
>conftest.err
6188 cat conftest.err
>&5
6189 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6190 (exit $ac_status); } && {
6191 test -z "$ac_c_werror_flag" ||
6192 test ! -s conftest.err
6193 } && test -s conftest.
$ac_objext; then
6194 ac_header_compiler
=yes
6196 $as_echo "$as_me: failed program was:" >&5
6197 sed 's/^/| /' conftest.
$ac_ext >&5
6199 ac_header_compiler
=no
6202 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6203 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6204 $as_echo "$ac_header_compiler" >&6; }
6206 # Is the header present?
6207 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6208 $as_echo_n "checking $ac_header presence... " >&6; }
6209 cat >conftest.
$ac_ext <<_ACEOF
6212 cat confdefs.h
>>conftest.
$ac_ext
6213 cat >>conftest.
$ac_ext <<_ACEOF
6214 /* end confdefs.h. */
6215 #include <$ac_header>
6217 if { (ac_try
="$ac_cpp conftest.$ac_ext"
6219 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6220 *) ac_try_echo=$ac_try;;
6222 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6223 $as_echo "$ac_try_echo") >&5
6224 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6226 grep -v '^ *+' conftest.er1 >conftest.err
6228 cat conftest.err >&5
6229 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6230 (exit $ac_status); } >/dev/null && {
6231 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6232 test ! -s conftest.err
6234 ac_header_preproc=yes
6236 $as_echo "$as_me: failed program was:" >&5
6237 sed 's/^/| /' conftest.$ac_ext >&5
6239 ac_header_preproc=no
6242 rm -f conftest.err conftest.$ac_ext
6243 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6244 $as_echo "$ac_header_preproc" >&6; }
6246 # So? What about this header?
6247 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6249 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6250 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6251 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6252 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6253 ac_header_preproc=yes
6256 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6257 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6258 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6259 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6260 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6261 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6262 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6263 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6264 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6265 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6266 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6267 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6271 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6272 $as_echo_n "checking for $ac_header... " >&6; }
6273 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6274 $as_echo_n "(cached) " >&6
6276 eval "$as_ac_Header=\$ac_header_preproc"
6278 ac_res=`eval 'as_val=${'$as_ac_Header'}
6279 $as_echo "$as_val"'`
6280 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6281 $as_echo "$ac_res" >&6; }
6284 if test `eval 'as_val=${'$as_ac_Header'}
6285 $as_echo "$as_val"'` = yes; then
6286 cat >>confdefs.h <<_ACEOF
6287 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
6294 # Emulation library used on NetBSD.
6295 { $as_echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
6296 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
6297 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
6298 $as_echo_n "(cached) " >&6
6300 ac_check_lib_save_LIBS=$LIBS
6301 LIBS="-lossaudio $LIBS"
6302 cat >conftest.$ac_ext <<_ACEOF
6305 cat confdefs.h >>conftest.$ac_ext
6306 cat >>conftest.$ac_ext <<_ACEOF
6307 /* end confdefs.h. */
6309 /* Override any GCC internal prototype to avoid an error.
6310 Use char because int might match the return type of a GCC
6311 builtin and then its argument prototype would still apply. */
6319 return _oss_ioctl ();
6324 rm -f conftest.$ac_objext conftest$ac_exeext
6325 if { (ac_try="$ac_link"
6327 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6328 *) ac_try_echo
=$ac_try;;
6330 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6331 $as_echo "$ac_try_echo") >&5
6332 (eval "$ac_link") 2>conftest.er1
6334 grep -v '^ *+' conftest.er1
>conftest.err
6336 cat conftest.err
>&5
6337 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6338 (exit $ac_status); } && {
6339 test -z "$ac_c_werror_flag" ||
6340 test ! -s conftest.err
6341 } && test -s conftest
$ac_exeext && {
6342 test "$cross_compiling" = yes ||
6343 $as_test_x conftest
$ac_exeext
6345 ac_cv_lib_ossaudio__oss_ioctl
=yes
6347 $as_echo "$as_me: failed program was:" >&5
6348 sed 's/^/| /' conftest.
$ac_ext >&5
6350 ac_cv_lib_ossaudio__oss_ioctl
=no
6353 rm -rf conftest.dSYM
6354 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6355 conftest
$ac_exeext conftest.
$ac_ext
6356 LIBS
=$ac_check_lib_save_LIBS
6358 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6359 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6360 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
6369 ALSA_MODULES
="alsa >= $ALSA_REQUIRED"
6373 # Extract the first word of "pkg-config", so it can be a program name with args.
6374 set dummy pkg-config
; ac_word
=$2
6375 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6376 $as_echo_n "checking for $ac_word... " >&6; }
6377 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6378 $as_echo_n "(cached) " >&6
6382 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
6385 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6389 test -z "$as_dir" && as_dir
=.
6390 for ac_exec_ext
in '' $ac_executable_extensions; do
6391 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6392 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
6393 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6400 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
6404 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
6405 if test -n "$PKG_CONFIG"; then
6406 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6407 $as_echo "$PKG_CONFIG" >&6; }
6409 { $as_echo "$as_me:$LINENO: result: no" >&5
6410 $as_echo "no" >&6; }
6415 if test "$PKG_CONFIG" = "no" ; then
6418 PKG_CONFIG_MIN_VERSION
=0.9.0
6419 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6420 { $as_echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
6421 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
6423 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6424 { $as_echo "$as_me:$LINENO: result: yes" >&5
6425 $as_echo "yes" >&6; }
6428 { $as_echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
6429 $as_echo_n "checking ALSA_CFLAGS... " >&6; }
6430 ALSA_CFLAGS
=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6431 { $as_echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
6432 $as_echo "$ALSA_CFLAGS" >&6; }
6434 { $as_echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
6435 $as_echo_n "checking ALSA_LIBS... " >&6; }
6436 ALSA_LIBS
=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6437 { $as_echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
6438 $as_echo "$ALSA_LIBS" >&6; }
6440 { $as_echo "$as_me:$LINENO: result: no" >&5
6441 $as_echo "no" >&6; }
6444 ## If we have a custom action on failure, don't print errors, but
6445 ## do set a variable so people can do so.
6446 ALSA_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6453 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6454 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6458 if test $succeeded = yes; then
6464 if test $HAVE_ALSA = yes; then
6465 SAVE_CFLAGS
="$CFLAGS"
6466 SAVE_LDFLAGS
="$LDFLAGS"
6467 CFLAGS
="$ALSA_CFLAGS $CFLAGS"
6468 LDFLAGS
="$ALSA_LIBS $LDFLAGS"
6469 cat >conftest.
$ac_ext <<_ACEOF
6472 cat confdefs.h
>>conftest.
$ac_ext
6473 cat >>conftest.
$ac_ext <<_ACEOF
6474 /* end confdefs.h. */
6475 #include <asoundlib.h>
6479 snd_lib_error_set_handler (0);
6484 rm -f conftest.
$ac_objext
6485 if { (ac_try
="$ac_compile"
6487 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6488 *) ac_try_echo=$ac_try;;
6490 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6491 $as_echo "$ac_try_echo") >&5
6492 (eval "$ac_compile") 2>conftest.er1
6494 grep -v '^ *+' conftest.er1 >conftest.err
6496 cat conftest.err >&5
6497 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6498 (exit $ac_status); } && {
6499 test -z "$ac_c_werror_flag" ||
6500 test ! -s conftest.err
6501 } && test -s conftest.$ac_objext; then
6502 emacs_alsa_normal=yes
6504 $as_echo "$as_me: failed program was:" >&5
6505 sed 's/^/| /' conftest.$ac_ext >&5
6507 emacs_alsa_normal=no
6510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6511 if test "$emacs_alsa_normal" != yes; then
6512 cat >conftest.$ac_ext <<_ACEOF
6515 cat confdefs.h >>conftest.$ac_ext
6516 cat >>conftest.$ac_ext <<_ACEOF
6517 /* end confdefs.h. */
6518 #include <alsa/asoundlib.h>
6522 snd_lib_error_set_handler (0);
6527 rm -f conftest.$ac_objext
6528 if { (ac_try="$ac_compile"
6530 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6531 *) ac_try_echo
=$ac_try;;
6533 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6534 $as_echo "$ac_try_echo") >&5
6535 (eval "$ac_compile") 2>conftest.er1
6537 grep -v '^ *+' conftest.er1
>conftest.err
6539 cat conftest.err
>&5
6540 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6541 (exit $ac_status); } && {
6542 test -z "$ac_c_werror_flag" ||
6543 test ! -s conftest.err
6544 } && test -s conftest.
$ac_objext; then
6545 emacs_alsa_subdir
=yes
6547 $as_echo "$as_me: failed program was:" >&5
6548 sed 's/^/| /' conftest.
$ac_ext >&5
6550 emacs_alsa_subdir
=no
6553 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6554 if test "$emacs_alsa_subdir" != yes; then
6555 { { $as_echo "$as_me:$LINENO: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&5
6556 $as_echo "$as_me: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&2;}
6557 { (exit 1); exit 1; }; }
6559 ALSA_CFLAGS
="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6562 CFLAGS
="$SAVE_CFLAGS"
6563 LDFLAGS
="$SAVE_LDFLAGS"
6564 LIBSOUND
="$LIBSOUND $ALSA_LIBS"
6565 CFLAGS_SOUND
="$CFLAGS_SOUND $ALSA_CFLAGS"
6567 cat >>confdefs.h
<<\_ACEOF
6600 for ac_header
in sys
/select.h sys
/timeb.h sys
/time.h unistd.h utime.h \
6601 linux
/version.h sys
/systeminfo.h termios.h limits.h string.h stdlib.h \
6602 termcap.h stdio_ext.h fcntl.h
strings.h coff.h pty.h sys
/mman.h \
6603 sys
/param.h sys
/vlimit.h sys
/resource.h locale.h sys
/_mbstate_t.h \
6606 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6607 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6608 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6609 $as_echo_n "checking for $ac_header... " >&6; }
6610 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6611 $as_echo_n "(cached) " >&6
6613 ac_res
=`eval 'as_val=${'$as_ac_Header'}
6614 $as_echo "$as_val"'`
6615 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6616 $as_echo "$ac_res" >&6; }
6618 # Is the header compilable?
6619 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6620 $as_echo_n "checking $ac_header usability... " >&6; }
6621 cat >conftest.
$ac_ext <<_ACEOF
6624 cat confdefs.h
>>conftest.
$ac_ext
6625 cat >>conftest.
$ac_ext <<_ACEOF
6626 /* end confdefs.h. */
6627 $ac_includes_default
6628 #include <$ac_header>
6630 rm -f conftest.
$ac_objext
6631 if { (ac_try
="$ac_compile"
6633 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6634 *) ac_try_echo=$ac_try;;
6636 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6637 $as_echo "$ac_try_echo") >&5
6638 (eval "$ac_compile") 2>conftest.er1
6640 grep -v '^ *+' conftest.er1 >conftest.err
6642 cat conftest.err >&5
6643 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6644 (exit $ac_status); } && {
6645 test -z "$ac_c_werror_flag" ||
6646 test ! -s conftest.err
6647 } && test -s conftest.$ac_objext; then
6648 ac_header_compiler=yes
6650 $as_echo "$as_me: failed program was:" >&5
6651 sed 's/^/| /' conftest.$ac_ext >&5
6653 ac_header_compiler=no
6656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6657 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6658 $as_echo "$ac_header_compiler" >&6; }
6660 # Is the header present?
6661 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6662 $as_echo_n "checking $ac_header presence... " >&6; }
6663 cat >conftest.$ac_ext <<_ACEOF
6666 cat confdefs.h >>conftest.$ac_ext
6667 cat >>conftest.$ac_ext <<_ACEOF
6668 /* end confdefs.h. */
6669 #include <$ac_header>
6671 if { (ac_try="$ac_cpp conftest.$ac_ext"
6673 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6674 *) ac_try_echo
=$ac_try;;
6676 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6677 $as_echo "$ac_try_echo") >&5
6678 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6680 grep -v '^ *+' conftest.er1
>conftest.err
6682 cat conftest.err
>&5
6683 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6684 (exit $ac_status); } >/dev
/null
&& {
6685 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6686 test ! -s conftest.err
6688 ac_header_preproc
=yes
6690 $as_echo "$as_me: failed program was:" >&5
6691 sed 's/^/| /' conftest.
$ac_ext >&5
6693 ac_header_preproc
=no
6696 rm -f conftest.err conftest.
$ac_ext
6697 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6698 $as_echo "$ac_header_preproc" >&6; }
6700 # So? What about this header?
6701 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6703 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6704 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6705 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6706 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6707 ac_header_preproc
=yes
6710 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6711 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6712 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6713 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6714 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6715 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6716 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6717 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6718 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6719 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6720 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6721 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6725 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6726 $as_echo_n "checking for $ac_header... " >&6; }
6727 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6728 $as_echo_n "(cached) " >&6
6730 eval "$as_ac_Header=\$ac_header_preproc"
6732 ac_res
=`eval 'as_val=${'$as_ac_Header'}
6733 $as_echo "$as_val"'`
6734 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6735 $as_echo "$ac_res" >&6; }
6738 if test `eval 'as_val=${'$as_ac_Header'}
6739 $as_echo "$as_val"'` = yes; then
6740 cat >>confdefs.h
<<_ACEOF
6741 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6749 { $as_echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
6750 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
6751 cat >conftest.
$ac_ext <<_ACEOF
6754 cat confdefs.h
>>conftest.
$ac_ext
6755 cat >>conftest.
$ac_ext <<_ACEOF
6756 /* end confdefs.h. */
6757 #include <sys/personality.h>
6761 personality (PER_LINUX32)
6766 rm -f conftest.
$ac_objext
6767 if { (ac_try
="$ac_compile"
6769 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6770 *) ac_try_echo=$ac_try;;
6772 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6773 $as_echo "$ac_try_echo") >&5
6774 (eval "$ac_compile") 2>conftest.er1
6776 grep -v '^ *+' conftest.er1 >conftest.err
6778 cat conftest.err >&5
6779 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6780 (exit $ac_status); } && {
6781 test -z "$ac_c_werror_flag" ||
6782 test ! -s conftest.err
6783 } && test -s conftest.$ac_objext; then
6784 emacs_cv_personality_linux32=yes
6786 $as_echo "$as_me: failed program was:" >&5
6787 sed 's/^/| /' conftest.$ac_ext >&5
6789 emacs_cv_personality_linux32=no
6792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6793 { $as_echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
6794 $as_echo "$emacs_cv_personality_linux32" >&6; }
6796 if test $emacs_cv_personality_linux32 = yes; then
6798 cat >>confdefs.h <<\_ACEOF
6799 #define HAVE_PERSONALITY_LINUX32 1
6805 for ac_header in term.h
6807 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
6808 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6809 $as_echo_n "checking for $ac_header... " >&6; }
6810 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6811 $as_echo_n "(cached) " >&6
6813 cat >conftest.$ac_ext <<_ACEOF
6816 cat confdefs.h >>conftest.$ac_ext
6817 cat >>conftest.$ac_ext <<_ACEOF
6818 /* end confdefs.h. */
6819 #include <$ac_header>
6821 if { (ac_try="$ac_cpp conftest.$ac_ext"
6823 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6824 *) ac_try_echo
=$ac_try;;
6826 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6827 $as_echo "$ac_try_echo") >&5
6828 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6830 grep -v '^ *+' conftest.er1
>conftest.err
6832 cat conftest.err
>&5
6833 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6834 (exit $ac_status); } >/dev
/null
&& {
6835 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6836 test ! -s conftest.err
6838 eval "$as_ac_Header=yes"
6840 $as_echo "$as_me: failed program was:" >&5
6841 sed 's/^/| /' conftest.
$ac_ext >&5
6843 eval "$as_ac_Header=no"
6846 rm -f conftest.err conftest.
$ac_ext
6848 ac_res
=`eval 'as_val=${'$as_ac_Header'}
6849 $as_echo "$as_val"'`
6850 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6851 $as_echo "$ac_res" >&6; }
6852 if test `eval 'as_val=${'$as_ac_Header'}
6853 $as_echo "$as_val"'` = yes; then
6854 cat >>confdefs.h
<<_ACEOF
6855 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6862 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6863 $as_echo_n "checking for ANSI C header files... " >&6; }
6864 if test "${ac_cv_header_stdc+set}" = set; then
6865 $as_echo_n "(cached) " >&6
6867 cat >conftest.
$ac_ext <<_ACEOF
6870 cat confdefs.h
>>conftest.
$ac_ext
6871 cat >>conftest.
$ac_ext <<_ACEOF
6872 /* end confdefs.h. */
6886 rm -f conftest.
$ac_objext
6887 if { (ac_try
="$ac_compile"
6889 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6890 *) ac_try_echo=$ac_try;;
6892 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6893 $as_echo "$ac_try_echo") >&5
6894 (eval "$ac_compile") 2>conftest.er1
6896 grep -v '^ *+' conftest.er1 >conftest.err
6898 cat conftest.err >&5
6899 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6900 (exit $ac_status); } && {
6901 test -z "$ac_c_werror_flag" ||
6902 test ! -s conftest.err
6903 } && test -s conftest.$ac_objext; then
6904 ac_cv_header_stdc=yes
6906 $as_echo "$as_me: failed program was:" >&5
6907 sed 's/^/| /' conftest.$ac_ext >&5
6909 ac_cv_header_stdc=no
6912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6914 if test $ac_cv_header_stdc = yes; then
6915 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6916 cat >conftest.$ac_ext <<_ACEOF
6919 cat confdefs.h >>conftest.$ac_ext
6920 cat >>conftest.$ac_ext <<_ACEOF
6921 /* end confdefs.h. */
6925 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6926 $EGREP "memchr" >/dev/null 2>&1; then
6929 ac_cv_header_stdc=no
6935 if test $ac_cv_header_stdc = yes; then
6936 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6937 cat >conftest.$ac_ext <<_ACEOF
6940 cat confdefs.h >>conftest.$ac_ext
6941 cat >>conftest.$ac_ext <<_ACEOF
6942 /* end confdefs.h. */
6946 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6947 $EGREP "free" >/dev/null 2>&1; then
6950 ac_cv_header_stdc=no
6956 if test $ac_cv_header_stdc = yes; then
6957 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6958 if test "$cross_compiling" = yes; then
6961 cat >conftest.$ac_ext <<_ACEOF
6964 cat confdefs.h >>conftest.$ac_ext
6965 cat >>conftest.$ac_ext <<_ACEOF
6966 /* end confdefs.h. */
6969 #if ((' ' & 0x0FF) == 0x020)
6970 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6971 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6973 # define ISLOWER(c) \
6974 (('a' <= (c) && (c) <= 'i') \
6975 || ('j' <= (c) && (c) <= 'r') \
6976 || ('s' <= (c) && (c) <= 'z'))
6977 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6980 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6985 for (i = 0; i < 256; i++)
6986 if (XOR (islower (i), ISLOWER (i))
6987 || toupper (i) != TOUPPER (i))
6992 rm -f conftest$ac_exeext
6993 if { (ac_try="$ac_link"
6995 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6996 *) ac_try_echo
=$ac_try;;
6998 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6999 $as_echo "$ac_try_echo") >&5
7000 (eval "$ac_link") 2>&5
7002 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7003 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7004 { (case "(($ac_try" in
7005 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7006 *) ac_try_echo=$ac_try;;
7008 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7009 $as_echo "$ac_try_echo") >&5
7010 (eval "$ac_try") 2>&5
7012 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7013 (exit $ac_status); }; }; then
7016 $as_echo "$as_me: program exited with status $ac_status" >&5
7017 $as_echo "$as_me: failed program was:" >&5
7018 sed 's/^/| /' conftest.$ac_ext >&5
7021 ac_cv_header_stdc=no
7023 rm -rf conftest.dSYM
7024 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7030 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7031 $as_echo "$ac_cv_header_stdc" >&6; }
7032 if test $ac_cv_header_stdc = yes; then
7034 cat >>confdefs.h <<\_ACEOF
7035 #define STDC_HEADERS 1
7040 { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
7041 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
7042 if test "${ac_cv_header_time+set}" = set; then
7043 $as_echo_n "(cached) " >&6
7045 cat >conftest.$ac_ext <<_ACEOF
7048 cat confdefs.h >>conftest.$ac_ext
7049 cat >>conftest.$ac_ext <<_ACEOF
7050 /* end confdefs.h. */
7051 #include <sys/types.h>
7052 #include <sys/time.h>
7058 if ((struct tm *) 0)
7064 rm -f conftest.$ac_objext
7065 if { (ac_try="$ac_compile"
7067 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7068 *) ac_try_echo
=$ac_try;;
7070 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7071 $as_echo "$ac_try_echo") >&5
7072 (eval "$ac_compile") 2>conftest.er1
7074 grep -v '^ *+' conftest.er1
>conftest.err
7076 cat conftest.err
>&5
7077 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7078 (exit $ac_status); } && {
7079 test -z "$ac_c_werror_flag" ||
7080 test ! -s conftest.err
7081 } && test -s conftest.
$ac_objext; then
7082 ac_cv_header_time
=yes
7084 $as_echo "$as_me: failed program was:" >&5
7085 sed 's/^/| /' conftest.
$ac_ext >&5
7087 ac_cv_header_time
=no
7090 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7092 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7093 $as_echo "$ac_cv_header_time" >&6; }
7094 if test $ac_cv_header_time = yes; then
7096 cat >>confdefs.h
<<\_ACEOF
7097 #define TIME_WITH_SYS_TIME 1
7102 { $as_echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
7103 $as_echo_n "checking whether sys_siglist is declared... " >&6; }
7104 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
7105 $as_echo_n "(cached) " >&6
7107 cat >conftest.
$ac_ext <<_ACEOF
7110 cat confdefs.h
>>conftest.
$ac_ext
7111 cat >>conftest.
$ac_ext <<_ACEOF
7112 /* end confdefs.h. */
7113 $ac_includes_default
7125 rm -f conftest.
$ac_objext
7126 if { (ac_try
="$ac_compile"
7128 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7129 *) ac_try_echo=$ac_try;;
7131 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7132 $as_echo "$ac_try_echo") >&5
7133 (eval "$ac_compile") 2>conftest.er1
7135 grep -v '^ *+' conftest.er1 >conftest.err
7137 cat conftest.err >&5
7138 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7139 (exit $ac_status); } && {
7140 test -z "$ac_c_werror_flag" ||
7141 test ! -s conftest.err
7142 } && test -s conftest.$ac_objext; then
7143 ac_cv_have_decl_sys_siglist=yes
7145 $as_echo "$as_me: failed program was:" >&5
7146 sed 's/^/| /' conftest.$ac_ext >&5
7148 ac_cv_have_decl_sys_siglist=no
7151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7153 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
7154 $as_echo "$ac_cv_have_decl_sys_siglist" >&6; }
7155 if test $ac_cv_have_decl_sys_siglist = yes; then
7157 cat >>confdefs.h <<_ACEOF
7158 #define HAVE_DECL_SYS_SIGLIST 1
7163 cat >>confdefs.h <<_ACEOF
7164 #define HAVE_DECL_SYS_SIGLIST 0
7171 if test $ac_cv_have_decl_sys_siglist != yes; then
7172 # For Tru64, at least:
7173 { $as_echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
7174 $as_echo_n "checking whether __sys_siglist is declared... " >&6; }
7175 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
7176 $as_echo_n "(cached) " >&6
7178 cat >conftest.$ac_ext <<_ACEOF
7181 cat confdefs.h >>conftest.$ac_ext
7182 cat >>conftest.$ac_ext <<_ACEOF
7183 /* end confdefs.h. */
7184 $ac_includes_default
7188 #ifndef __sys_siglist
7189 (void) __sys_siglist;
7196 rm -f conftest.$ac_objext
7197 if { (ac_try="$ac_compile"
7199 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7200 *) ac_try_echo
=$ac_try;;
7202 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7203 $as_echo "$ac_try_echo") >&5
7204 (eval "$ac_compile") 2>conftest.er1
7206 grep -v '^ *+' conftest.er1
>conftest.err
7208 cat conftest.err
>&5
7209 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7210 (exit $ac_status); } && {
7211 test -z "$ac_c_werror_flag" ||
7212 test ! -s conftest.err
7213 } && test -s conftest.
$ac_objext; then
7214 ac_cv_have_decl___sys_siglist
=yes
7216 $as_echo "$as_me: failed program was:" >&5
7217 sed 's/^/| /' conftest.
$ac_ext >&5
7219 ac_cv_have_decl___sys_siglist
=no
7222 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7224 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
7225 $as_echo "$ac_cv_have_decl___sys_siglist" >&6; }
7226 if test $ac_cv_have_decl___sys_siglist = yes; then
7228 cat >>confdefs.h
<<_ACEOF
7229 #define HAVE_DECL___SYS_SIGLIST 1
7234 cat >>confdefs.h
<<_ACEOF
7235 #define HAVE_DECL___SYS_SIGLIST 0
7242 if test $ac_cv_have_decl___sys_siglist = yes; then
7244 cat >>confdefs.h
<<\_ACEOF
7245 #define sys_siglist __sys_siglist
7250 { $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7251 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
7252 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7253 $as_echo_n "(cached) " >&6
7255 cat >conftest.
$ac_ext <<_ACEOF
7258 cat confdefs.h
>>conftest.
$ac_ext
7259 cat >>conftest.
$ac_ext <<_ACEOF
7260 /* end confdefs.h. */
7261 #include <sys/types.h>
7262 #include <sys/wait.h>
7264 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7267 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7275 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7280 rm -f conftest.
$ac_objext
7281 if { (ac_try
="$ac_compile"
7283 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7284 *) ac_try_echo=$ac_try;;
7286 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7287 $as_echo "$ac_try_echo") >&5
7288 (eval "$ac_compile") 2>conftest.er1
7290 grep -v '^ *+' conftest.er1 >conftest.err
7292 cat conftest.err >&5
7293 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7294 (exit $ac_status); } && {
7295 test -z "$ac_c_werror_flag" ||
7296 test ! -s conftest.err
7297 } && test -s conftest.$ac_objext; then
7298 ac_cv_header_sys_wait_h=yes
7300 $as_echo "$as_me: failed program was:" >&5
7301 sed 's/^/| /' conftest.$ac_ext >&5
7303 ac_cv_header_sys_wait_h=no
7306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7308 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7309 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
7310 if test $ac_cv_header_sys_wait_h = yes; then
7312 cat >>confdefs.h <<\_ACEOF
7313 #define HAVE_SYS_WAIT_H 1
7319 { $as_echo "$as_me:$LINENO: checking for struct utimbuf" >&5
7320 $as_echo_n "checking for struct utimbuf... " >&6; }
7321 if test "${emacs_cv_struct_utimbuf+set}" = set; then
7322 $as_echo_n "(cached) " >&6
7324 cat >conftest.$ac_ext <<_ACEOF
7327 cat confdefs.h >>conftest.$ac_ext
7328 cat >>conftest.$ac_ext <<_ACEOF
7329 /* end confdefs.h. */
7330 #ifdef TIME_WITH_SYS_TIME
7331 #include <sys/time.h>
7334 #ifdef HAVE_SYS_TIME_H
7335 #include <sys/time.h>
7346 static struct utimbuf x; x.actime = x.modtime;
7351 rm -f conftest.$ac_objext
7352 if { (ac_try="$ac_compile"
7354 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7355 *) ac_try_echo
=$ac_try;;
7357 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7358 $as_echo "$ac_try_echo") >&5
7359 (eval "$ac_compile") 2>conftest.er1
7361 grep -v '^ *+' conftest.er1
>conftest.err
7363 cat conftest.err
>&5
7364 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7365 (exit $ac_status); } && {
7366 test -z "$ac_c_werror_flag" ||
7367 test ! -s conftest.err
7368 } && test -s conftest.
$ac_objext; then
7369 emacs_cv_struct_utimbuf
=yes
7371 $as_echo "$as_me: failed program was:" >&5
7372 sed 's/^/| /' conftest.
$ac_ext >&5
7374 emacs_cv_struct_utimbuf
=no
7377 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7379 { $as_echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
7380 $as_echo "$emacs_cv_struct_utimbuf" >&6; }
7381 if test $emacs_cv_struct_utimbuf = yes; then
7383 cat >>confdefs.h
<<\_ACEOF
7384 #define HAVE_STRUCT_UTIMBUF 1
7389 { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7390 $as_echo_n "checking return type of signal handlers... " >&6; }
7391 if test "${ac_cv_type_signal+set}" = set; then
7392 $as_echo_n "(cached) " >&6
7394 cat >conftest.
$ac_ext <<_ACEOF
7397 cat confdefs.h
>>conftest.
$ac_ext
7398 cat >>conftest.
$ac_ext <<_ACEOF
7399 /* end confdefs.h. */
7400 #include <sys/types.h>
7406 return *(signal (0, 0)) (0) == 1;
7411 rm -f conftest.
$ac_objext
7412 if { (ac_try
="$ac_compile"
7414 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7415 *) ac_try_echo=$ac_try;;
7417 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7418 $as_echo "$ac_try_echo") >&5
7419 (eval "$ac_compile") 2>conftest.er1
7421 grep -v '^ *+' conftest.er1 >conftest.err
7423 cat conftest.err >&5
7424 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7425 (exit $ac_status); } && {
7426 test -z "$ac_c_werror_flag" ||
7427 test ! -s conftest.err
7428 } && test -s conftest.$ac_objext; then
7429 ac_cv_type_signal=int
7431 $as_echo "$as_me: failed program was:" >&5
7432 sed 's/^/| /' conftest.$ac_ext >&5
7434 ac_cv_type_signal=void
7437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7439 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7440 $as_echo "$ac_cv_type_signal" >&6; }
7442 cat >>confdefs.h <<_ACEOF
7443 #define RETSIGTYPE $ac_cv_type_signal
7448 { $as_echo "$as_me:$LINENO: checking for speed_t" >&5
7449 $as_echo_n "checking for speed_t... " >&6; }
7450 if test "${emacs_cv_speed_t+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 #include <termios.h>
7468 rm -f conftest.$ac_objext
7469 if { (ac_try="$ac_compile"
7471 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7472 *) ac_try_echo
=$ac_try;;
7474 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7475 $as_echo "$ac_try_echo") >&5
7476 (eval "$ac_compile") 2>conftest.er1
7478 grep -v '^ *+' conftest.er1
>conftest.err
7480 cat conftest.err
>&5
7481 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7482 (exit $ac_status); } && {
7483 test -z "$ac_c_werror_flag" ||
7484 test ! -s conftest.err
7485 } && test -s conftest.
$ac_objext; then
7486 emacs_cv_speed_t
=yes
7488 $as_echo "$as_me: failed program was:" >&5
7489 sed 's/^/| /' conftest.
$ac_ext >&5
7494 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7496 { $as_echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
7497 $as_echo "$emacs_cv_speed_t" >&6; }
7498 if test $emacs_cv_speed_t = yes; then
7500 cat >>confdefs.h
<<\_ACEOF
7501 #define HAVE_SPEED_T 1
7506 { $as_echo "$as_me:$LINENO: checking for struct timeval" >&5
7507 $as_echo_n "checking for struct timeval... " >&6; }
7508 if test "${emacs_cv_struct_timeval+set}" = set; then
7509 $as_echo_n "(cached) " >&6
7511 cat >conftest.
$ac_ext <<_ACEOF
7514 cat confdefs.h
>>conftest.
$ac_ext
7515 cat >>conftest.
$ac_ext <<_ACEOF
7516 /* end confdefs.h. */
7517 #ifdef TIME_WITH_SYS_TIME
7518 #include <sys/time.h>
7521 #ifdef HAVE_SYS_TIME_H
7522 #include <sys/time.h>
7530 static struct timeval x; x.tv_sec = x.tv_usec;
7535 rm -f conftest.
$ac_objext
7536 if { (ac_try
="$ac_compile"
7538 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7539 *) ac_try_echo=$ac_try;;
7541 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7542 $as_echo "$ac_try_echo") >&5
7543 (eval "$ac_compile") 2>conftest.er1
7545 grep -v '^ *+' conftest.er1 >conftest.err
7547 cat conftest.err >&5
7548 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7549 (exit $ac_status); } && {
7550 test -z "$ac_c_werror_flag" ||
7551 test ! -s conftest.err
7552 } && test -s conftest.$ac_objext; then
7553 emacs_cv_struct_timeval=yes
7555 $as_echo "$as_me: failed program was:" >&5
7556 sed 's/^/| /' conftest.$ac_ext >&5
7558 emacs_cv_struct_timeval=no
7561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7563 { $as_echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
7564 $as_echo "$emacs_cv_struct_timeval" >&6; }
7565 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7566 if test $emacs_cv_struct_timeval = yes; then
7568 cat >>confdefs.h <<\_ACEOF
7569 #define HAVE_TIMEVAL 1
7574 { $as_echo "$as_me:$LINENO: checking for struct exception" >&5
7575 $as_echo_n "checking for struct exception... " >&6; }
7576 if test "${emacs_cv_struct_exception+set}" = set; then
7577 $as_echo_n "(cached) " >&6
7579 cat >conftest.$ac_ext <<_ACEOF
7582 cat confdefs.h >>conftest.$ac_ext
7583 cat >>conftest.$ac_ext <<_ACEOF
7584 /* end confdefs.h. */
7589 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7594 rm -f conftest.$ac_objext
7595 if { (ac_try="$ac_compile"
7597 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7598 *) ac_try_echo
=$ac_try;;
7600 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7601 $as_echo "$ac_try_echo") >&5
7602 (eval "$ac_compile") 2>conftest.er1
7604 grep -v '^ *+' conftest.er1
>conftest.err
7606 cat conftest.err
>&5
7607 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7608 (exit $ac_status); } && {
7609 test -z "$ac_c_werror_flag" ||
7610 test ! -s conftest.err
7611 } && test -s conftest.
$ac_objext; then
7612 emacs_cv_struct_exception
=yes
7614 $as_echo "$as_me: failed program was:" >&5
7615 sed 's/^/| /' conftest.
$ac_ext >&5
7617 emacs_cv_struct_exception
=no
7620 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7622 { $as_echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
7623 $as_echo "$emacs_cv_struct_exception" >&6; }
7624 HAVE_EXCEPTION
=$emacs_cv_struct_exception
7625 if test $emacs_cv_struct_exception != yes; then
7627 cat >>confdefs.h
<<\_ACEOF
7628 #define NO_MATHERR 1
7634 for ac_header
in sys
/socket.h
7636 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7637 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7638 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7639 $as_echo_n "checking for $ac_header... " >&6; }
7640 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7641 $as_echo_n "(cached) " >&6
7643 ac_res
=`eval 'as_val=${'$as_ac_Header'}
7644 $as_echo "$as_val"'`
7645 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7646 $as_echo "$ac_res" >&6; }
7648 # Is the header compilable?
7649 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
7650 $as_echo_n "checking $ac_header usability... " >&6; }
7651 cat >conftest.
$ac_ext <<_ACEOF
7654 cat confdefs.h
>>conftest.
$ac_ext
7655 cat >>conftest.
$ac_ext <<_ACEOF
7656 /* end confdefs.h. */
7657 $ac_includes_default
7658 #include <$ac_header>
7660 rm -f conftest.
$ac_objext
7661 if { (ac_try
="$ac_compile"
7663 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7664 *) ac_try_echo=$ac_try;;
7666 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7667 $as_echo "$ac_try_echo") >&5
7668 (eval "$ac_compile") 2>conftest.er1
7670 grep -v '^ *+' conftest.er1 >conftest.err
7672 cat conftest.err >&5
7673 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7674 (exit $ac_status); } && {
7675 test -z "$ac_c_werror_flag" ||
7676 test ! -s conftest.err
7677 } && test -s conftest.$ac_objext; then
7678 ac_header_compiler=yes
7680 $as_echo "$as_me: failed program was:" >&5
7681 sed 's/^/| /' conftest.$ac_ext >&5
7683 ac_header_compiler=no
7686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7687 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7688 $as_echo "$ac_header_compiler" >&6; }
7690 # Is the header present?
7691 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
7692 $as_echo_n "checking $ac_header presence... " >&6; }
7693 cat >conftest.$ac_ext <<_ACEOF
7696 cat confdefs.h >>conftest.$ac_ext
7697 cat >>conftest.$ac_ext <<_ACEOF
7698 /* end confdefs.h. */
7699 #include <$ac_header>
7701 if { (ac_try="$ac_cpp conftest.$ac_ext"
7703 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7704 *) ac_try_echo
=$ac_try;;
7706 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7707 $as_echo "$ac_try_echo") >&5
7708 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7710 grep -v '^ *+' conftest.er1
>conftest.err
7712 cat conftest.err
>&5
7713 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7714 (exit $ac_status); } >/dev
/null
&& {
7715 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7716 test ! -s conftest.err
7718 ac_header_preproc
=yes
7720 $as_echo "$as_me: failed program was:" >&5
7721 sed 's/^/| /' conftest.
$ac_ext >&5
7723 ac_header_preproc
=no
7726 rm -f conftest.err conftest.
$ac_ext
7727 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7728 $as_echo "$ac_header_preproc" >&6; }
7730 # So? What about this header?
7731 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7733 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7734 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7735 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7736 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7737 ac_header_preproc
=yes
7740 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7741 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7742 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7743 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7744 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7745 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7746 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7747 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7748 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7749 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7750 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7751 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7755 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7756 $as_echo_n "checking for $ac_header... " >&6; }
7757 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7758 $as_echo_n "(cached) " >&6
7760 eval "$as_ac_Header=\$ac_header_preproc"
7762 ac_res
=`eval 'as_val=${'$as_ac_Header'}
7763 $as_echo "$as_val"'`
7764 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7765 $as_echo "$ac_res" >&6; }
7768 if test `eval 'as_val=${'$as_ac_Header'}
7769 $as_echo "$as_val"'` = yes; then
7770 cat >>confdefs.h
<<_ACEOF
7771 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7779 for ac_header
in net
/if.h
7781 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7782 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7783 $as_echo_n "checking for $ac_header... " >&6; }
7784 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7785 $as_echo_n "(cached) " >&6
7787 cat >conftest.
$ac_ext <<_ACEOF
7790 cat confdefs.h
>>conftest.
$ac_ext
7791 cat >>conftest.
$ac_ext <<_ACEOF
7792 /* end confdefs.h. */
7793 $ac_includes_default
7794 #if HAVE_SYS_SOCKET_H
7795 #include <sys/socket.h>
7798 #include <$ac_header>
7800 rm -f conftest.
$ac_objext
7801 if { (ac_try
="$ac_compile"
7803 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7804 *) ac_try_echo=$ac_try;;
7806 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7807 $as_echo "$ac_try_echo") >&5
7808 (eval "$ac_compile") 2>conftest.er1
7810 grep -v '^ *+' conftest.er1 >conftest.err
7812 cat conftest.err >&5
7813 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7814 (exit $ac_status); } && {
7815 test -z "$ac_c_werror_flag" ||
7816 test ! -s conftest.err
7817 } && test -s conftest.$ac_objext; then
7818 eval "$as_ac_Header=yes"
7820 $as_echo "$as_me: failed program was:" >&5
7821 sed 's/^/| /' conftest.$ac_ext >&5
7823 eval "$as_ac_Header=no"
7826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7828 ac_res=`eval 'as_val=${'$as_ac_Header'}
7829 $as_echo "$as_val"'`
7830 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7831 $as_echo "$ac_res" >&6; }
7832 if test `eval 'as_val=${'$as_ac_Header'}
7833 $as_echo "$as_val"'` = yes; then
7834 cat >>confdefs.h <<_ACEOF
7835 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
7843 { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7844 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
7845 if test "${ac_cv_struct_tm+set}" = set; then
7846 $as_echo_n "(cached) " >&6
7848 cat >conftest.$ac_ext <<_ACEOF
7851 cat confdefs.h >>conftest.$ac_ext
7852 cat >>conftest.$ac_ext <<_ACEOF
7853 /* end confdefs.h. */
7854 #include <sys/types.h>
7861 int *p = &tm.tm_sec;
7867 rm -f conftest.$ac_objext
7868 if { (ac_try="$ac_compile"
7870 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7871 *) ac_try_echo
=$ac_try;;
7873 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7874 $as_echo "$ac_try_echo") >&5
7875 (eval "$ac_compile") 2>conftest.er1
7877 grep -v '^ *+' conftest.er1
>conftest.err
7879 cat conftest.err
>&5
7880 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7881 (exit $ac_status); } && {
7882 test -z "$ac_c_werror_flag" ||
7883 test ! -s conftest.err
7884 } && test -s conftest.
$ac_objext; then
7885 ac_cv_struct_tm
=time.h
7887 $as_echo "$as_me: failed program was:" >&5
7888 sed 's/^/| /' conftest.
$ac_ext >&5
7890 ac_cv_struct_tm
=sys
/time.h
7893 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7895 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7896 $as_echo "$ac_cv_struct_tm" >&6; }
7897 if test $ac_cv_struct_tm = sys
/time.h
; then
7899 cat >>confdefs.h
<<\_ACEOF
7900 #define TM_IN_SYS_TIME 1
7905 { $as_echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
7906 $as_echo_n "checking for struct tm.tm_zone... " >&6; }
7907 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
7908 $as_echo_n "(cached) " >&6
7910 cat >conftest.
$ac_ext <<_ACEOF
7913 cat confdefs.h
>>conftest.
$ac_ext
7914 cat >>conftest.
$ac_ext <<_ACEOF
7915 /* end confdefs.h. */
7916 #include <sys/types.h>
7917 #include <$ac_cv_struct_tm>
7923 static struct tm ac_aggr;
7924 if (ac_aggr.tm_zone)
7930 rm -f conftest.
$ac_objext
7931 if { (ac_try
="$ac_compile"
7933 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7934 *) ac_try_echo=$ac_try;;
7936 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7937 $as_echo "$ac_try_echo") >&5
7938 (eval "$ac_compile") 2>conftest.er1
7940 grep -v '^ *+' conftest.er1 >conftest.err
7942 cat conftest.err >&5
7943 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7944 (exit $ac_status); } && {
7945 test -z "$ac_c_werror_flag" ||
7946 test ! -s conftest.err
7947 } && test -s conftest.$ac_objext; then
7948 ac_cv_member_struct_tm_tm_zone=yes
7950 $as_echo "$as_me: failed program was:" >&5
7951 sed 's/^/| /' conftest.$ac_ext >&5
7953 cat >conftest.$ac_ext <<_ACEOF
7956 cat confdefs.h >>conftest.$ac_ext
7957 cat >>conftest.$ac_ext <<_ACEOF
7958 /* end confdefs.h. */
7959 #include <sys/types.h>
7960 #include <$ac_cv_struct_tm>
7966 static struct tm ac_aggr;
7967 if (sizeof ac_aggr.tm_zone)
7973 rm -f conftest.$ac_objext
7974 if { (ac_try="$ac_compile"
7976 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7977 *) ac_try_echo
=$ac_try;;
7979 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7980 $as_echo "$ac_try_echo") >&5
7981 (eval "$ac_compile") 2>conftest.er1
7983 grep -v '^ *+' conftest.er1
>conftest.err
7985 cat conftest.err
>&5
7986 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7987 (exit $ac_status); } && {
7988 test -z "$ac_c_werror_flag" ||
7989 test ! -s conftest.err
7990 } && test -s conftest.
$ac_objext; then
7991 ac_cv_member_struct_tm_tm_zone
=yes
7993 $as_echo "$as_me: failed program was:" >&5
7994 sed 's/^/| /' conftest.
$ac_ext >&5
7996 ac_cv_member_struct_tm_tm_zone
=no
7999 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8002 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8004 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
8005 $as_echo "$ac_cv_member_struct_tm_tm_zone" >&6; }
8006 if test $ac_cv_member_struct_tm_tm_zone = yes; then
8008 cat >>confdefs.h
<<_ACEOF
8009 #define HAVE_STRUCT_TM_TM_ZONE 1
8015 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
8017 cat >>confdefs.h
<<\_ACEOF
8018 #define HAVE_TM_ZONE 1
8022 { $as_echo "$as_me:$LINENO: checking whether tzname is declared" >&5
8023 $as_echo_n "checking whether tzname is declared... " >&6; }
8024 if test "${ac_cv_have_decl_tzname+set}" = set; then
8025 $as_echo_n "(cached) " >&6
8027 cat >conftest.
$ac_ext <<_ACEOF
8030 cat confdefs.h
>>conftest.
$ac_ext
8031 cat >>conftest.
$ac_ext <<_ACEOF
8032 /* end confdefs.h. */
8046 rm -f conftest.
$ac_objext
8047 if { (ac_try
="$ac_compile"
8049 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8050 *) ac_try_echo=$ac_try;;
8052 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8053 $as_echo "$ac_try_echo") >&5
8054 (eval "$ac_compile") 2>conftest.er1
8056 grep -v '^ *+' conftest.er1 >conftest.err
8058 cat conftest.err >&5
8059 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8060 (exit $ac_status); } && {
8061 test -z "$ac_c_werror_flag" ||
8062 test ! -s conftest.err
8063 } && test -s conftest.$ac_objext; then
8064 ac_cv_have_decl_tzname=yes
8066 $as_echo "$as_me: failed program was:" >&5
8067 sed 's/^/| /' conftest.$ac_ext >&5
8069 ac_cv_have_decl_tzname=no
8072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8074 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
8075 $as_echo "$ac_cv_have_decl_tzname" >&6; }
8076 if test $ac_cv_have_decl_tzname = yes; then
8078 cat >>confdefs.h <<_ACEOF
8079 #define HAVE_DECL_TZNAME 1
8084 cat >>confdefs.h <<_ACEOF
8085 #define HAVE_DECL_TZNAME 0
8092 { $as_echo "$as_me:$LINENO: checking for tzname" >&5
8093 $as_echo_n "checking for tzname... " >&6; }
8094 if test "${ac_cv_var_tzname+set}" = set; then
8095 $as_echo_n "(cached) " >&6
8097 cat >conftest.$ac_ext <<_ACEOF
8100 cat confdefs.h >>conftest.$ac_ext
8101 cat >>conftest.$ac_ext <<_ACEOF
8102 /* end confdefs.h. */
8104 #if !HAVE_DECL_TZNAME
8105 extern char *tzname[];
8111 return tzname[0][0];
8116 rm -f conftest.$ac_objext conftest$ac_exeext
8117 if { (ac_try="$ac_link"
8119 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8120 *) ac_try_echo
=$ac_try;;
8122 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8123 $as_echo "$ac_try_echo") >&5
8124 (eval "$ac_link") 2>conftest.er1
8126 grep -v '^ *+' conftest.er1
>conftest.err
8128 cat conftest.err
>&5
8129 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8130 (exit $ac_status); } && {
8131 test -z "$ac_c_werror_flag" ||
8132 test ! -s conftest.err
8133 } && test -s conftest
$ac_exeext && {
8134 test "$cross_compiling" = yes ||
8135 $as_test_x conftest
$ac_exeext
8137 ac_cv_var_tzname
=yes
8139 $as_echo "$as_me: failed program was:" >&5
8140 sed 's/^/| /' conftest.
$ac_ext >&5
8145 rm -rf conftest.dSYM
8146 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
8147 conftest
$ac_exeext conftest.
$ac_ext
8149 { $as_echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
8150 $as_echo "$ac_cv_var_tzname" >&6; }
8151 if test $ac_cv_var_tzname = yes; then
8153 cat >>confdefs.h
<<\_ACEOF
8154 #define HAVE_TZNAME 1
8160 { $as_echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
8161 $as_echo_n "checking for struct tm.tm_gmtoff... " >&6; }
8162 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
8163 $as_echo_n "(cached) " >&6
8165 cat >conftest.
$ac_ext <<_ACEOF
8168 cat confdefs.h
>>conftest.
$ac_ext
8169 cat >>conftest.
$ac_ext <<_ACEOF
8170 /* end confdefs.h. */
8176 static struct tm ac_aggr;
8177 if (ac_aggr.tm_gmtoff)
8183 rm -f conftest.
$ac_objext
8184 if { (ac_try
="$ac_compile"
8186 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8187 *) ac_try_echo=$ac_try;;
8189 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8190 $as_echo "$ac_try_echo") >&5
8191 (eval "$ac_compile") 2>conftest.er1
8193 grep -v '^ *+' conftest.er1 >conftest.err
8195 cat conftest.err >&5
8196 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8197 (exit $ac_status); } && {
8198 test -z "$ac_c_werror_flag" ||
8199 test ! -s conftest.err
8200 } && test -s conftest.$ac_objext; then
8201 ac_cv_member_struct_tm_tm_gmtoff=yes
8203 $as_echo "$as_me: failed program was:" >&5
8204 sed 's/^/| /' conftest.$ac_ext >&5
8206 cat >conftest.$ac_ext <<_ACEOF
8209 cat confdefs.h >>conftest.$ac_ext
8210 cat >>conftest.$ac_ext <<_ACEOF
8211 /* end confdefs.h. */
8217 static struct tm ac_aggr;
8218 if (sizeof ac_aggr.tm_gmtoff)
8224 rm -f conftest.$ac_objext
8225 if { (ac_try="$ac_compile"
8227 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8228 *) ac_try_echo
=$ac_try;;
8230 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8231 $as_echo "$ac_try_echo") >&5
8232 (eval "$ac_compile") 2>conftest.er1
8234 grep -v '^ *+' conftest.er1
>conftest.err
8236 cat conftest.err
>&5
8237 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8238 (exit $ac_status); } && {
8239 test -z "$ac_c_werror_flag" ||
8240 test ! -s conftest.err
8241 } && test -s conftest.
$ac_objext; then
8242 ac_cv_member_struct_tm_tm_gmtoff
=yes
8244 $as_echo "$as_me: failed program was:" >&5
8245 sed 's/^/| /' conftest.
$ac_ext >&5
8247 ac_cv_member_struct_tm_tm_gmtoff
=no
8250 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8253 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8255 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
8256 $as_echo "$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
8257 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
8259 cat >>confdefs.h
<<\_ACEOF
8260 #define HAVE_TM_GMTOFF 1
8265 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
8266 $as_echo_n "checking for struct ifreq.ifr_flags... " >&6; }
8267 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
8268 $as_echo_n "(cached) " >&6
8270 cat >conftest.
$ac_ext <<_ACEOF
8273 cat confdefs.h
>>conftest.
$ac_ext
8274 cat >>conftest.
$ac_ext <<_ACEOF
8275 /* end confdefs.h. */
8276 $ac_includes_default
8277 #if HAVE_SYS_SOCKET_H
8278 #include <sys/socket.h>
8287 static struct ifreq ac_aggr;
8288 if (ac_aggr.ifr_flags)
8294 rm -f conftest.
$ac_objext
8295 if { (ac_try
="$ac_compile"
8297 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8298 *) ac_try_echo=$ac_try;;
8300 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8301 $as_echo "$ac_try_echo") >&5
8302 (eval "$ac_compile") 2>conftest.er1
8304 grep -v '^ *+' conftest.er1 >conftest.err
8306 cat conftest.err >&5
8307 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8308 (exit $ac_status); } && {
8309 test -z "$ac_c_werror_flag" ||
8310 test ! -s conftest.err
8311 } && test -s conftest.$ac_objext; then
8312 ac_cv_member_struct_ifreq_ifr_flags=yes
8314 $as_echo "$as_me: failed program was:" >&5
8315 sed 's/^/| /' conftest.$ac_ext >&5
8317 cat >conftest.$ac_ext <<_ACEOF
8320 cat confdefs.h >>conftest.$ac_ext
8321 cat >>conftest.$ac_ext <<_ACEOF
8322 /* end confdefs.h. */
8323 $ac_includes_default
8324 #if HAVE_SYS_SOCKET_H
8325 #include <sys/socket.h>
8334 static struct ifreq ac_aggr;
8335 if (sizeof ac_aggr.ifr_flags)
8341 rm -f conftest.$ac_objext
8342 if { (ac_try="$ac_compile"
8344 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8345 *) ac_try_echo
=$ac_try;;
8347 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8348 $as_echo "$ac_try_echo") >&5
8349 (eval "$ac_compile") 2>conftest.er1
8351 grep -v '^ *+' conftest.er1
>conftest.err
8353 cat conftest.err
>&5
8354 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8355 (exit $ac_status); } && {
8356 test -z "$ac_c_werror_flag" ||
8357 test ! -s conftest.err
8358 } && test -s conftest.
$ac_objext; then
8359 ac_cv_member_struct_ifreq_ifr_flags
=yes
8361 $as_echo "$as_me: failed program was:" >&5
8362 sed 's/^/| /' conftest.
$ac_ext >&5
8364 ac_cv_member_struct_ifreq_ifr_flags
=no
8367 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8370 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8372 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
8373 $as_echo "$ac_cv_member_struct_ifreq_ifr_flags" >&6; }
8374 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
8376 cat >>confdefs.h
<<_ACEOF
8377 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8382 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
8383 $as_echo_n "checking for struct ifreq.ifr_hwaddr... " >&6; }
8384 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
8385 $as_echo_n "(cached) " >&6
8387 cat >conftest.
$ac_ext <<_ACEOF
8390 cat confdefs.h
>>conftest.
$ac_ext
8391 cat >>conftest.
$ac_ext <<_ACEOF
8392 /* end confdefs.h. */
8393 $ac_includes_default
8394 #if HAVE_SYS_SOCKET_H
8395 #include <sys/socket.h>
8404 static struct ifreq ac_aggr;
8405 if (ac_aggr.ifr_hwaddr)
8411 rm -f conftest.
$ac_objext
8412 if { (ac_try
="$ac_compile"
8414 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8415 *) ac_try_echo=$ac_try;;
8417 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8418 $as_echo "$ac_try_echo") >&5
8419 (eval "$ac_compile") 2>conftest.er1
8421 grep -v '^ *+' conftest.er1 >conftest.err
8423 cat conftest.err >&5
8424 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8425 (exit $ac_status); } && {
8426 test -z "$ac_c_werror_flag" ||
8427 test ! -s conftest.err
8428 } && test -s conftest.$ac_objext; then
8429 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8431 $as_echo "$as_me: failed program was:" >&5
8432 sed 's/^/| /' conftest.$ac_ext >&5
8434 cat >conftest.$ac_ext <<_ACEOF
8437 cat confdefs.h >>conftest.$ac_ext
8438 cat >>conftest.$ac_ext <<_ACEOF
8439 /* end confdefs.h. */
8440 $ac_includes_default
8441 #if HAVE_SYS_SOCKET_H
8442 #include <sys/socket.h>
8451 static struct ifreq ac_aggr;
8452 if (sizeof ac_aggr.ifr_hwaddr)
8458 rm -f conftest.$ac_objext
8459 if { (ac_try="$ac_compile"
8461 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8462 *) ac_try_echo
=$ac_try;;
8464 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8465 $as_echo "$ac_try_echo") >&5
8466 (eval "$ac_compile") 2>conftest.er1
8468 grep -v '^ *+' conftest.er1
>conftest.err
8470 cat conftest.err
>&5
8471 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8472 (exit $ac_status); } && {
8473 test -z "$ac_c_werror_flag" ||
8474 test ! -s conftest.err
8475 } && test -s conftest.
$ac_objext; then
8476 ac_cv_member_struct_ifreq_ifr_hwaddr
=yes
8478 $as_echo "$as_me: failed program was:" >&5
8479 sed 's/^/| /' conftest.
$ac_ext >&5
8481 ac_cv_member_struct_ifreq_ifr_hwaddr
=no
8484 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8487 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8489 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
8490 $as_echo "$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; }
8491 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
8493 cat >>confdefs.h
<<_ACEOF
8494 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8499 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
8500 $as_echo_n "checking for struct ifreq.ifr_netmask... " >&6; }
8501 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
8502 $as_echo_n "(cached) " >&6
8504 cat >conftest.
$ac_ext <<_ACEOF
8507 cat confdefs.h
>>conftest.
$ac_ext
8508 cat >>conftest.
$ac_ext <<_ACEOF
8509 /* end confdefs.h. */
8510 $ac_includes_default
8511 #if HAVE_SYS_SOCKET_H
8512 #include <sys/socket.h>
8521 static struct ifreq ac_aggr;
8522 if (ac_aggr.ifr_netmask)
8528 rm -f conftest.
$ac_objext
8529 if { (ac_try
="$ac_compile"
8531 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8532 *) ac_try_echo=$ac_try;;
8534 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8535 $as_echo "$ac_try_echo") >&5
8536 (eval "$ac_compile") 2>conftest.er1
8538 grep -v '^ *+' conftest.er1 >conftest.err
8540 cat conftest.err >&5
8541 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8542 (exit $ac_status); } && {
8543 test -z "$ac_c_werror_flag" ||
8544 test ! -s conftest.err
8545 } && test -s conftest.$ac_objext; then
8546 ac_cv_member_struct_ifreq_ifr_netmask=yes
8548 $as_echo "$as_me: failed program was:" >&5
8549 sed 's/^/| /' conftest.$ac_ext >&5
8551 cat >conftest.$ac_ext <<_ACEOF
8554 cat confdefs.h >>conftest.$ac_ext
8555 cat >>conftest.$ac_ext <<_ACEOF
8556 /* end confdefs.h. */
8557 $ac_includes_default
8558 #if HAVE_SYS_SOCKET_H
8559 #include <sys/socket.h>
8568 static struct ifreq ac_aggr;
8569 if (sizeof ac_aggr.ifr_netmask)
8575 rm -f conftest.$ac_objext
8576 if { (ac_try="$ac_compile"
8578 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8579 *) ac_try_echo
=$ac_try;;
8581 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8582 $as_echo "$ac_try_echo") >&5
8583 (eval "$ac_compile") 2>conftest.er1
8585 grep -v '^ *+' conftest.er1
>conftest.err
8587 cat conftest.err
>&5
8588 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8589 (exit $ac_status); } && {
8590 test -z "$ac_c_werror_flag" ||
8591 test ! -s conftest.err
8592 } && test -s conftest.
$ac_objext; then
8593 ac_cv_member_struct_ifreq_ifr_netmask
=yes
8595 $as_echo "$as_me: failed program was:" >&5
8596 sed 's/^/| /' conftest.
$ac_ext >&5
8598 ac_cv_member_struct_ifreq_ifr_netmask
=no
8601 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8604 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8606 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
8607 $as_echo "$ac_cv_member_struct_ifreq_ifr_netmask" >&6; }
8608 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
8610 cat >>confdefs.h
<<_ACEOF
8611 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8616 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
8617 $as_echo_n "checking for struct ifreq.ifr_broadaddr... " >&6; }
8618 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
8619 $as_echo_n "(cached) " >&6
8621 cat >conftest.
$ac_ext <<_ACEOF
8624 cat confdefs.h
>>conftest.
$ac_ext
8625 cat >>conftest.
$ac_ext <<_ACEOF
8626 /* end confdefs.h. */
8627 $ac_includes_default
8628 #if HAVE_SYS_SOCKET_H
8629 #include <sys/socket.h>
8638 static struct ifreq ac_aggr;
8639 if (ac_aggr.ifr_broadaddr)
8645 rm -f conftest.
$ac_objext
8646 if { (ac_try
="$ac_compile"
8648 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8649 *) ac_try_echo=$ac_try;;
8651 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8652 $as_echo "$ac_try_echo") >&5
8653 (eval "$ac_compile") 2>conftest.er1
8655 grep -v '^ *+' conftest.er1 >conftest.err
8657 cat conftest.err >&5
8658 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8659 (exit $ac_status); } && {
8660 test -z "$ac_c_werror_flag" ||
8661 test ! -s conftest.err
8662 } && test -s conftest.$ac_objext; then
8663 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8665 $as_echo "$as_me: failed program was:" >&5
8666 sed 's/^/| /' conftest.$ac_ext >&5
8668 cat >conftest.$ac_ext <<_ACEOF
8671 cat confdefs.h >>conftest.$ac_ext
8672 cat >>conftest.$ac_ext <<_ACEOF
8673 /* end confdefs.h. */
8674 $ac_includes_default
8675 #if HAVE_SYS_SOCKET_H
8676 #include <sys/socket.h>
8685 static struct ifreq ac_aggr;
8686 if (sizeof ac_aggr.ifr_broadaddr)
8692 rm -f conftest.$ac_objext
8693 if { (ac_try="$ac_compile"
8695 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8696 *) ac_try_echo
=$ac_try;;
8698 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8699 $as_echo "$ac_try_echo") >&5
8700 (eval "$ac_compile") 2>conftest.er1
8702 grep -v '^ *+' conftest.er1
>conftest.err
8704 cat conftest.err
>&5
8705 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8706 (exit $ac_status); } && {
8707 test -z "$ac_c_werror_flag" ||
8708 test ! -s conftest.err
8709 } && test -s conftest.
$ac_objext; then
8710 ac_cv_member_struct_ifreq_ifr_broadaddr
=yes
8712 $as_echo "$as_me: failed program was:" >&5
8713 sed 's/^/| /' conftest.
$ac_ext >&5
8715 ac_cv_member_struct_ifreq_ifr_broadaddr
=no
8718 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8721 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8723 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
8724 $as_echo "$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; }
8725 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
8727 cat >>confdefs.h
<<_ACEOF
8728 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8733 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
8734 $as_echo_n "checking for struct ifreq.ifr_addr... " >&6; }
8735 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
8736 $as_echo_n "(cached) " >&6
8738 cat >conftest.
$ac_ext <<_ACEOF
8741 cat confdefs.h
>>conftest.
$ac_ext
8742 cat >>conftest.
$ac_ext <<_ACEOF
8743 /* end confdefs.h. */
8744 $ac_includes_default
8745 #if HAVE_SYS_SOCKET_H
8746 #include <sys/socket.h>
8755 static struct ifreq ac_aggr;
8756 if (ac_aggr.ifr_addr)
8762 rm -f conftest.
$ac_objext
8763 if { (ac_try
="$ac_compile"
8765 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8766 *) ac_try_echo=$ac_try;;
8768 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8769 $as_echo "$ac_try_echo") >&5
8770 (eval "$ac_compile") 2>conftest.er1
8772 grep -v '^ *+' conftest.er1 >conftest.err
8774 cat conftest.err >&5
8775 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8776 (exit $ac_status); } && {
8777 test -z "$ac_c_werror_flag" ||
8778 test ! -s conftest.err
8779 } && test -s conftest.$ac_objext; then
8780 ac_cv_member_struct_ifreq_ifr_addr=yes
8782 $as_echo "$as_me: failed program was:" >&5
8783 sed 's/^/| /' conftest.$ac_ext >&5
8785 cat >conftest.$ac_ext <<_ACEOF
8788 cat confdefs.h >>conftest.$ac_ext
8789 cat >>conftest.$ac_ext <<_ACEOF
8790 /* end confdefs.h. */
8791 $ac_includes_default
8792 #if HAVE_SYS_SOCKET_H
8793 #include <sys/socket.h>
8802 static struct ifreq ac_aggr;
8803 if (sizeof ac_aggr.ifr_addr)
8809 rm -f conftest.$ac_objext
8810 if { (ac_try="$ac_compile"
8812 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8813 *) ac_try_echo
=$ac_try;;
8815 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8816 $as_echo "$ac_try_echo") >&5
8817 (eval "$ac_compile") 2>conftest.er1
8819 grep -v '^ *+' conftest.er1
>conftest.err
8821 cat conftest.err
>&5
8822 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8823 (exit $ac_status); } && {
8824 test -z "$ac_c_werror_flag" ||
8825 test ! -s conftest.err
8826 } && test -s conftest.
$ac_objext; then
8827 ac_cv_member_struct_ifreq_ifr_addr
=yes
8829 $as_echo "$as_me: failed program was:" >&5
8830 sed 's/^/| /' conftest.
$ac_ext >&5
8832 ac_cv_member_struct_ifreq_ifr_addr
=no
8835 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8838 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8840 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
8841 $as_echo "$ac_cv_member_struct_ifreq_ifr_addr" >&6; }
8842 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
8844 cat >>confdefs.h
<<_ACEOF
8845 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8853 { $as_echo "$as_me:$LINENO: checking for function prototypes" >&5
8854 $as_echo_n "checking for function prototypes... " >&6; }
8855 if test "$ac_cv_prog_cc_c89" != no
; then
8856 { $as_echo "$as_me:$LINENO: result: yes" >&5
8857 $as_echo "yes" >&6; }
8859 cat >>confdefs.h
<<\_ACEOF
8860 #define PROTOTYPES 1
8864 cat >>confdefs.h
<<\_ACEOF
8865 #define __PROTOTYPES 1
8869 { $as_echo "$as_me:$LINENO: result: no" >&5
8870 $as_echo "no" >&6; }
8873 { $as_echo "$as_me:$LINENO: checking for working volatile" >&5
8874 $as_echo_n "checking for working volatile... " >&6; }
8875 if test "${ac_cv_c_volatile+set}" = set; then
8876 $as_echo_n "(cached) " >&6
8878 cat >conftest.
$ac_ext <<_ACEOF
8881 cat confdefs.h
>>conftest.
$ac_ext
8882 cat >>conftest.
$ac_ext <<_ACEOF
8883 /* end confdefs.h. */
8890 int * volatile y = (int *) 0;
8896 rm -f conftest.
$ac_objext
8897 if { (ac_try
="$ac_compile"
8899 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8900 *) ac_try_echo=$ac_try;;
8902 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8903 $as_echo "$ac_try_echo") >&5
8904 (eval "$ac_compile") 2>conftest.er1
8906 grep -v '^ *+' conftest.er1 >conftest.err
8908 cat conftest.err >&5
8909 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8910 (exit $ac_status); } && {
8911 test -z "$ac_c_werror_flag" ||
8912 test ! -s conftest.err
8913 } && test -s conftest.$ac_objext; then
8914 ac_cv_c_volatile=yes
8916 $as_echo "$as_me: failed program was:" >&5
8917 sed 's/^/| /' conftest.$ac_ext >&5
8922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8924 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
8925 $as_echo "$ac_cv_c_volatile" >&6; }
8926 if test $ac_cv_c_volatile = no; then
8928 cat >>confdefs.h <<\_ACEOF
8929 #define volatile /**/
8934 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8935 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
8936 if test "${ac_cv_c_const+set}" = set; then
8937 $as_echo_n "(cached) " >&6
8939 cat >conftest.$ac_ext <<_ACEOF
8942 cat confdefs.h >>conftest.$ac_ext
8943 cat >>conftest.$ac_ext <<_ACEOF
8944 /* end confdefs.h. */
8949 /* FIXME: Include the comments suggested by Paul. */
8951 /* Ultrix mips cc rejects this. */
8952 typedef int charset[2];
8954 /* SunOS 4.1.1 cc rejects this. */
8955 char const *const *pcpcc;
8957 /* NEC SVR4.0.2 mips cc rejects this. */
8958 struct point {int x, y;};
8959 static struct point const zero = {0,0};
8960 /* AIX XL C 1.02.0.0 rejects this.
8961 It does not let you subtract one const X* pointer from another in
8962 an arm of an if-expression whose if-part is not a constant
8964 const char *g = "string";
8965 pcpcc = &g + (g ? g-g : 0);
8966 /* HPUX 7.0 cc rejects these. */
8968 ppc = (char**) pcpcc;
8969 pcpcc = (char const *const *) ppc;
8970 { /* SCO 3.2v4 cc rejects this. */
8972 char const *s = 0 ? (char *) 0 : (char const *) 0;
8977 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8979 const int *foo = &x[0];
8982 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8983 typedef const int *iptr;
8987 { /* AIX XL C 1.02.0.0 rejects this saying
8988 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8989 struct s { int j; const int *ap[3]; };
8990 struct s *b; b->j = 5;
8992 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8996 return !cs[0] && !zero.x;
9003 rm -f conftest.$ac_objext
9004 if { (ac_try="$ac_compile"
9006 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9007 *) ac_try_echo
=$ac_try;;
9009 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
9010 $as_echo "$ac_try_echo") >&5
9011 (eval "$ac_compile") 2>conftest.er1
9013 grep -v '^ *+' conftest.er1
>conftest.err
9015 cat conftest.err
>&5
9016 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9017 (exit $ac_status); } && {
9018 test -z "$ac_c_werror_flag" ||
9019 test ! -s conftest.err
9020 } && test -s conftest.
$ac_objext; then
9023 $as_echo "$as_me: failed program was:" >&5
9024 sed 's/^/| /' conftest.
$ac_ext >&5
9029 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9031 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9032 $as_echo "$ac_cv_c_const" >&6; }
9033 if test $ac_cv_c_const = no
; then
9035 cat >>confdefs.h
<<\_ACEOF
9041 { $as_echo "$as_me:$LINENO: checking for void * support" >&5
9042 $as_echo_n "checking for void * support... " >&6; }
9043 if test "${emacs_cv_void_star+set}" = set; then
9044 $as_echo_n "(cached) " >&6
9046 cat >conftest.
$ac_ext <<_ACEOF
9049 cat confdefs.h
>>conftest.
$ac_ext
9050 cat >>conftest.
$ac_ext <<_ACEOF
9051 /* end confdefs.h. */
9061 rm -f conftest.
$ac_objext
9062 if { (ac_try
="$ac_compile"
9064 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9065 *) ac_try_echo=$ac_try;;
9067 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9068 $as_echo "$ac_try_echo") >&5
9069 (eval "$ac_compile") 2>conftest.er1
9071 grep -v '^ *+' conftest.er1 >conftest.err
9073 cat conftest.err >&5
9074 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9075 (exit $ac_status); } && {
9076 test -z "$ac_c_werror_flag" ||
9077 test ! -s conftest.err
9078 } && test -s conftest.$ac_objext; then
9079 emacs_cv_void_star=yes
9081 $as_echo "$as_me: failed program was:" >&5
9082 sed 's/^/| /' conftest.$ac_ext >&5
9084 emacs_cv_void_star=no
9087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9089 { $as_echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
9090 $as_echo "$emacs_cv_void_star" >&6; }
9091 if test $emacs_cv_void_star = yes; then
9092 cat >>confdefs.h <<\_ACEOF
9093 #define POINTER_TYPE void
9097 cat >>confdefs.h <<\_ACEOF
9098 #define POINTER_TYPE char
9107 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9108 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
9110 ac_make=`$as_echo "$2" |
sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
9111 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
9112 $as_echo_n "(cached) " >&6
9114 cat >conftest.make <<\_ACEOF
9117 @echo '@@@%%%=$(MAKE)=@@@%%%'
9119 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9120 case `${MAKE-make} -f conftest.
make 2>/dev
/null
` in
9122 eval ac_cv_prog_make_${ac_make}_set=yes;;
9124 eval ac_cv_prog_make_${ac_make}_set=no;;
9128 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
9129 { $as_echo "$as_me:$LINENO: result: yes" >&5
9130 $as_echo "yes" >&6; }
9133 { $as_echo "$as_me:$LINENO: result: no" >&5
9134 $as_echo "no" >&6; }
9135 SET_MAKE="MAKE=${MAKE-make}"
9139 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
9140 { $as_echo "$as_me:$LINENO: checking whether we are using GNU Make" >&5
9141 $as_echo_n "checking whether we are using GNU Make... " >&6; }
9143 testval=`make --version 2>/dev
/null |
grep 'GNU Make'`
9144 if test "x$testval" != x; then
9147 ac_enable_autodepend=no
9149 { $as_echo "$as_me:$LINENO: result: $HAVE_GNU_MAKE" >&5
9150 $as_echo "$HAVE_GNU_MAKE" >&6; }
9151 if test $HAVE_GNU_MAKE = yes; then
9152 { $as_echo "$as_me:$LINENO: checking whether gcc understands -MMD -MF" >&5
9153 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
9154 SAVE_CFLAGS="$CFLAGS"
9155 CFLAGS="$CFLAGS -MMD -MF deps.d"
9156 cat >conftest.$ac_ext <<_ACEOF
9159 cat confdefs.h >>conftest.$ac_ext
9160 cat >>conftest.$ac_ext <<_ACEOF
9161 /* end confdefs.h. */
9171 rm -f conftest.$ac_objext
9172 if { (ac_try="$ac_compile"
9174 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9175 *) ac_try_echo
=$ac_try;;
9177 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
9178 $as_echo "$ac_try_echo") >&5
9179 (eval "$ac_compile") 2>conftest.er1
9181 grep -v '^ *+' conftest.er1
>conftest.err
9183 cat conftest.err
>&5
9184 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9185 (exit $ac_status); } && {
9186 test -z "$ac_c_werror_flag" ||
9187 test ! -s conftest.err
9188 } && test -s conftest.
$ac_objext; then
9191 $as_echo "$as_me: failed program was:" >&5
9192 sed 's/^/| /' conftest.
$ac_ext >&5
9194 ac_enable_autodepend
=no
9197 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9198 CFLAGS
="$SAVE_CFLAGS"
9199 test -f deps.d || ac_enable_autodepend
=no
9201 { $as_echo "$as_me:$LINENO: result: $ac_enable_autodepend" >&5
9202 $as_echo "$ac_enable_autodepend" >&6; }
9204 if test $ac_enable_autodepend = yes; then
9206 cat >>confdefs.h
<<\_ACEOF
9207 #define AUTO_DEPEND 1
9213 { $as_echo "$as_me:$LINENO: checking for long file names" >&5
9214 $as_echo_n "checking for long file names... " >&6; }
9215 if test "${ac_cv_sys_long_file_names+set}" = set; then
9216 $as_echo_n "(cached) " >&6
9218 ac_cv_sys_long_file_names
=yes
9219 # Test for long file names in all the places we know might matter:
9220 # . the current directory, where building will happen
9221 # $prefix/lib where we will be installing things
9222 # $exec_prefix/lib likewise
9223 # $TMPDIR if set, where it might want to write temporary files
9224 # /tmp where it might want to write temporary files
9227 for ac_dir
in .
"$TMPDIR" /tmp
/var
/tmp
/usr
/tmp
"$prefix/lib" "$exec_prefix/lib"; do
9228 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
9229 # in the usual case where exec_prefix is '${prefix}'.
9231 . |
/* | ?
:[\\/]*) ;; #(
9234 test -w "$ac_dir/." ||
continue # It is less confusing to not echo anything here.
9235 ac_xdir
=$ac_dir/cf$$
9236 (umask 077 && mkdir
"$ac_xdir" 2>/dev
/null
) ||
continue
9237 ac_tf1
=$ac_xdir/conftest9012345
9238 ac_tf2
=$ac_xdir/conftest9012346
9239 touch "$ac_tf1" 2>/dev
/null
&& test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9240 ac_cv_sys_long_file_names
=no
9241 rm -f -r "$ac_xdir" 2>/dev
/null
9242 test $ac_cv_sys_long_file_names = no
&& break
9245 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
9246 $as_echo "$ac_cv_sys_long_file_names" >&6; }
9247 if test $ac_cv_sys_long_file_names = yes; then
9249 cat >>confdefs.h
<<\_ACEOF
9250 #define HAVE_LONG_FILE_NAMES 1
9256 #### Choose a window system.
9258 { $as_echo "$as_me:$LINENO: checking for X" >&5
9259 $as_echo_n "checking for X... " >&6; }
9262 # Check whether --with-x was given.
9263 if test "${with_x+set}" = set; then
9267 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9268 if test "x$with_x" = xno
; then
9269 # The user explicitly disabled X.
9272 case $x_includes,$x_libraries in #(
9273 *\'*) { { $as_echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
9274 $as_echo "$as_me: error: Cannot use X directory names containing '" >&2;}
9275 { (exit 1); exit 1; }; };; #(
9276 *,NONE | NONE
,*) if test "${ac_cv_have_x+set}" = set; then
9277 $as_echo_n "(cached) " >&6
9279 # One or both of the vars are not set, and there is no cached value.
9280 ac_x_includes
=no ac_x_libraries
=no
9281 rm -f -r conftest.dir
9282 if mkdir conftest.dir
; then
9284 cat >Imakefile
<<'_ACEOF'
9286 @echo incroot='${INCROOT}'
9288 @echo usrlibdir='${USRLIBDIR}'
9290 @echo libdir='${LIBDIR}'
9292 if (export CC
; ${XMKMF-xmkmf}) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
9293 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9294 for ac_var
in incroot usrlibdir libdir
; do
9295 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
9297 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9298 for ac_extension
in a so sl dylib la dll
; do
9299 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9300 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9301 ac_im_usrlibdir
=$ac_im_libdir; break
9304 # Screen out bogus values from the imake configuration. They are
9305 # bogus both because they are the default anyway, and because
9306 # using them would break gcc on systems where it needs fixed includes.
9307 case $ac_im_incroot in
9308 /usr
/include
) ac_x_includes
= ;;
9309 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
9311 case $ac_im_usrlibdir in
9313 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
9317 rm -f -r conftest.dir
9320 # Standard set of common directories for X headers.
9321 # Check X11 before X11Rn because it is often a symlink to the current release.
9333 /usr/local/X11/include
9334 /usr/local/X11R6/include
9335 /usr/local/X11R5/include
9336 /usr/local/X11R4/include
9338 /usr/local/include/X11
9339 /usr/local/include/X11R6
9340 /usr/local/include/X11R5
9341 /usr/local/include/X11R4
9345 /usr/XFree86/include/X11
9349 /usr/unsupported/include
9351 /usr/local/x11r5/include
9352 /usr/lpp/Xamples/include
9354 /usr/openwin/include
9355 /usr/openwin/share/include'
9357 if test "$ac_x_includes" = no
; then
9358 # Guess where to find include files, by looking for Xlib.h.
9359 # First, try using that file with no special directory specified.
9360 cat >conftest.
$ac_ext <<_ACEOF
9363 cat confdefs.h
>>conftest.
$ac_ext
9364 cat >>conftest.
$ac_ext <<_ACEOF
9365 /* end confdefs.h. */
9366 #include <X11/Xlib.h>
9368 if { (ac_try
="$ac_cpp conftest.$ac_ext"
9370 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9371 *) ac_try_echo=$ac_try;;
9373 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9374 $as_echo "$ac_try_echo") >&5
9375 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9377 grep -v '^ *+' conftest.er1 >conftest.err
9379 cat conftest.err >&5
9380 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9381 (exit $ac_status); } >/dev/null && {
9382 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9383 test ! -s conftest.err
9385 # We can compile using X headers with no special include directory.
9388 $as_echo "$as_me: failed program was:" >&5
9389 sed 's/^/| /' conftest.$ac_ext >&5
9391 for ac_dir in $ac_x_header_dirs; do
9392 if test -r "$ac_dir/X11/Xlib.h"; then
9393 ac_x_includes=$ac_dir
9399 rm -f conftest.err conftest.$ac_ext
9400 fi # $ac_x_includes = no
9402 if test "$ac_x_libraries" = no; then
9403 # Check for the libraries.
9404 # See if we find them without any special options.
9405 # Don't add to $LIBS permanently.
9408 cat >conftest.$ac_ext <<_ACEOF
9411 cat confdefs.h >>conftest.$ac_ext
9412 cat >>conftest.$ac_ext <<_ACEOF
9413 /* end confdefs.h. */
9414 #include <X11/Xlib.h>
9423 rm -f conftest.$ac_objext conftest$ac_exeext
9424 if { (ac_try="$ac_link"
9426 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9427 *) ac_try_echo
=$ac_try;;
9429 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
9430 $as_echo "$ac_try_echo") >&5
9431 (eval "$ac_link") 2>conftest.er1
9433 grep -v '^ *+' conftest.er1
>conftest.err
9435 cat conftest.err
>&5
9436 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9437 (exit $ac_status); } && {
9438 test -z "$ac_c_werror_flag" ||
9439 test ! -s conftest.err
9440 } && test -s conftest
$ac_exeext && {
9441 test "$cross_compiling" = yes ||
9442 $as_test_x conftest
$ac_exeext
9445 # We can link X programs with no special library path.
9448 $as_echo "$as_me: failed program was:" >&5
9449 sed 's/^/| /' conftest.
$ac_ext >&5
9452 for ac_dir
in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9454 # Don't even attempt the hair of trying to link an X program!
9455 for ac_extension
in a so sl dylib la dll
; do
9456 if test -r "$ac_dir/libX11.$ac_extension"; then
9457 ac_x_libraries
=$ac_dir
9464 rm -rf conftest.dSYM
9465 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9466 conftest
$ac_exeext conftest.
$ac_ext
9467 fi # $ac_x_libraries = no
9469 case $ac_x_includes,$ac_x_libraries in #(
9471 # Didn't find X, or a directory has "'" in its name.
9472 ac_cv_have_x
="have_x=no";; #(
9474 # Record where we found X for the cache.
9475 ac_cv_have_x
="have_x=yes\
9476 ac_x_includes='$ac_x_includes'\
9477 ac_x_libraries='$ac_x_libraries'"
9483 eval "$ac_cv_have_x"
9486 if test "$have_x" != yes; then
9487 { $as_echo "$as_me:$LINENO: result: $have_x" >&5
9488 $as_echo "$have_x" >&6; }
9491 # If each of the values was on the command line, it overrides each guess.
9492 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
9493 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
9494 # Update the cache value to reflect the command line values.
9495 ac_cv_have_x
="have_x=yes\
9496 ac_x_includes='$x_includes'\
9497 ac_x_libraries='$x_libraries'"
9498 { $as_echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9499 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
9502 if test "$no_x" = yes; then
9508 ## Workaround for bug in autoconf <= 2.62.
9509 ## http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01551.html
9510 ## No need to do anything special for these standard directories.
9511 ## This is an experiment, take it out if it causes problems.
9512 if test -n "${x_libraries}" && test x
"${x_libraries}" != xNONE
; then
9514 x_libraries
=`echo :${x_libraries}: | sed -e 's|:/usr/lib64:|:|g' -e 's|:/lib64:|:|g' -e 's|^:||' -e 's|:$||'`
9518 if test "${x_libraries}" != NONE
; then
9519 if test -n "${x_libraries}"; then
9520 LD_SWITCH_X_SITE
=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
9521 LD_SWITCH_X_SITE_AUX
=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
9523 x_default_search_path
=""
9524 x_search_path
=${x_libraries}
9525 if test -z "${x_search_path}"; then
9526 x_search_path
=/usr
/lib
9528 for x_library
in `echo ${x_search_path}: | \
9529 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
9531 ${x_library}/X11/%L/%T/%N%C%S:\
9532 ${x_library}/X11/%l/%T/%N%C%S:\
9533 ${x_library}/X11/%T/%N%C%S:\
9534 ${x_library}/X11/%L/%T/%N%S:\
9535 ${x_library}/X11/%l/%T/%N%S:\
9536 ${x_library}/X11/%T/%N%S"
9537 if test x
"${x_default_search_path}" = x
; then
9538 x_default_search_path
=${x_search_path}
9540 x_default_search_path
="${x_search_path}:${x_default_search_path}"
9544 if test "${x_includes}" != NONE
&& test -n "${x_includes}"; then
9545 C_SWITCH_X_SITE
=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
9548 if test x
"${x_includes}" = x
; then
9549 bitmapdir
=/usr
/include
/X11
/bitmaps
9551 # accumulate include directories that have X11 bitmap subdirectories
9553 for bmd
in `echo ${x_includes} | sed -e "s/:/ /g"`; do
9554 if test -d "${bmd}/X11/bitmaps"; then
9555 bmd_acc
="${bmd_acc}:${bmd}/X11/bitmaps"
9557 if test -d "${bmd}/bitmaps"; then
9558 bmd_acc
="${bmd_acc}:${bmd}/bitmaps"
9561 if test ${bmd_acc} != "dummyval"; then
9562 bitmapdir
=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9569 tmp_CPPFLAGS
="$CPPFLAGS"
9570 tmp_CFLAGS
="$CFLAGS"
9571 CPPFLAGS
="$CPPFLAGS -x objective-c"
9572 CFLAGS
="$CFLAGS -x objective-c"
9573 if test "${with_ns}" != no
; then
9574 if test "${opsys}" = darwin
; then
9576 ns_appdir
=`pwd`/nextstep
/Emacs.app
9577 ns_appbindir
=`pwd`/nextstep
/Emacs.app
/Contents
/MacOS
9578 ns_appresdir
=`pwd`/nextstep
/Emacs.app
/Contents
/Resources
9579 ns_appsrc
=${srcdir}/nextstep
/Cocoa
/Emacs.base
9580 elif test -f $GNUSTEP_CONFIG_FILE; then
9582 ns_appdir
=`pwd`/nextstep
/Emacs.app
9583 ns_appbindir
=`pwd`/nextstep
/Emacs.app
9584 ns_appresdir
=`pwd`/nextstep
/Emacs.app
/Resources
9585 ns_appsrc
=${srcdir}/nextstep
/GNUstep
/Emacs.base
9586 GNUSTEP_MAKEFILES
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_MAKEFILES)"
9587 GNUSTEP_SYSTEM_HEADERS
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
9588 GNUSTEP_SYSTEM_LIBRARIES
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
9589 CPPFLAGS
="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9590 CFLAGS
="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9591 REAL_CFLAGS
="$REAL_CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9592 LDFLAGS
="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES}"
9594 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9595 { $as_echo "$as_me:$LINENO: checking for AppKit/AppKit.h" >&5
9596 $as_echo_n "checking for AppKit/AppKit.h... " >&6; }
9597 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9598 $as_echo_n "(cached) " >&6
9600 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_AppKit_AppKit_h" >&5
9601 $as_echo "$ac_cv_header_AppKit_AppKit_h" >&6; }
9603 # Is the header compilable?
9604 { $as_echo "$as_me:$LINENO: checking AppKit/AppKit.h usability" >&5
9605 $as_echo_n "checking AppKit/AppKit.h usability... " >&6; }
9606 cat >conftest.
$ac_ext <<_ACEOF
9609 cat confdefs.h
>>conftest.
$ac_ext
9610 cat >>conftest.
$ac_ext <<_ACEOF
9611 /* end confdefs.h. */
9612 $ac_includes_default
9613 #include <AppKit/AppKit.h>
9615 rm -f conftest.
$ac_objext
9616 if { (ac_try
="$ac_compile"
9618 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9619 *) ac_try_echo=$ac_try;;
9621 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9622 $as_echo "$ac_try_echo") >&5
9623 (eval "$ac_compile") 2>conftest.er1
9625 grep -v '^ *+' conftest.er1 >conftest.err
9627 cat conftest.err >&5
9628 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9629 (exit $ac_status); } && {
9630 test -z "$ac_c_werror_flag" ||
9631 test ! -s conftest.err
9632 } && test -s conftest.$ac_objext; then
9633 ac_header_compiler=yes
9635 $as_echo "$as_me: failed program was:" >&5
9636 sed 's/^/| /' conftest.$ac_ext >&5
9638 ac_header_compiler=no
9641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9642 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9643 $as_echo "$ac_header_compiler" >&6; }
9645 # Is the header present?
9646 { $as_echo "$as_me:$LINENO: checking AppKit/AppKit.h presence" >&5
9647 $as_echo_n "checking AppKit/AppKit.h presence... " >&6; }
9648 cat >conftest.$ac_ext <<_ACEOF
9651 cat confdefs.h >>conftest.$ac_ext
9652 cat >>conftest.$ac_ext <<_ACEOF
9653 /* end confdefs.h. */
9654 #include <AppKit/AppKit.h>
9656 if { (ac_try="$ac_cpp conftest.$ac_ext"
9658 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9659 *) ac_try_echo
=$ac_try;;
9661 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
9662 $as_echo "$ac_try_echo") >&5
9663 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9665 grep -v '^ *+' conftest.er1
>conftest.err
9667 cat conftest.err
>&5
9668 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9669 (exit $ac_status); } >/dev
/null
&& {
9670 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9671 test ! -s conftest.err
9673 ac_header_preproc
=yes
9675 $as_echo "$as_me: failed program was:" >&5
9676 sed 's/^/| /' conftest.
$ac_ext >&5
9678 ac_header_preproc
=no
9681 rm -f conftest.err conftest.
$ac_ext
9682 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9683 $as_echo "$ac_header_preproc" >&6; }
9685 # So? What about this header?
9686 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9688 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: accepted by the compiler, rejected by the preprocessor!" >&5
9689 $as_echo "$as_me: WARNING: AppKit/AppKit.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9690 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: proceeding with the compiler's result" >&5
9691 $as_echo "$as_me: WARNING: AppKit/AppKit.h: proceeding with the compiler's result" >&2;}
9692 ac_header_preproc
=yes
9695 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: present but cannot be compiled" >&5
9696 $as_echo "$as_me: WARNING: AppKit/AppKit.h: present but cannot be compiled" >&2;}
9697 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: check for missing prerequisite headers?" >&5
9698 $as_echo "$as_me: WARNING: AppKit/AppKit.h: check for missing prerequisite headers?" >&2;}
9699 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: see the Autoconf documentation" >&5
9700 $as_echo "$as_me: WARNING: AppKit/AppKit.h: see the Autoconf documentation" >&2;}
9701 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: section \"Present But Cannot Be Compiled\"" >&5
9702 $as_echo "$as_me: WARNING: AppKit/AppKit.h: section \"Present But Cannot Be Compiled\"" >&2;}
9703 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: proceeding with the preprocessor's result" >&5
9704 $as_echo "$as_me: WARNING: AppKit/AppKit.h: proceeding with the preprocessor's result" >&2;}
9705 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: in the future, the compiler will take precedence" >&5
9706 $as_echo "$as_me: WARNING: AppKit/AppKit.h: in the future, the compiler will take precedence" >&2;}
9710 { $as_echo "$as_me:$LINENO: checking for AppKit/AppKit.h" >&5
9711 $as_echo_n "checking for AppKit/AppKit.h... " >&6; }
9712 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9713 $as_echo_n "(cached) " >&6
9715 ac_cv_header_AppKit_AppKit_h
=$ac_header_preproc
9717 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_AppKit_AppKit_h" >&5
9718 $as_echo "$ac_cv_header_AppKit_AppKit_h" >&6; }
9721 if test $ac_cv_header_AppKit_AppKit_h = yes; then
9724 { { $as_echo "$as_me:$LINENO: error: \`--with-ns' was specified, but the include
9725 files are missing or cannot be compiled." >&5
9726 $as_echo "$as_me: error: \`--with-ns' was specified, but the include
9727 files are missing or cannot be compiled." >&2;}
9728 { (exit 1); exit 1; }; }
9732 NS_HAVE_NSINTEGER
=yes
9733 cat >conftest.
$ac_ext <<_ACEOF
9736 cat confdefs.h
>>conftest.
$ac_ext
9737 cat >>conftest.
$ac_ext <<_ACEOF
9738 /* end confdefs.h. */
9739 #include <Foundation/NSObjCRuntime.h>
9748 rm -f conftest.
$ac_objext
9749 if { (ac_try
="$ac_compile"
9751 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9752 *) ac_try_echo=$ac_try;;
9754 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9755 $as_echo "$ac_try_echo") >&5
9756 (eval "$ac_compile") 2>conftest.er1
9758 grep -v '^ *+' conftest.er1 >conftest.err
9760 cat conftest.err >&5
9761 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9762 (exit $ac_status); } && {
9763 test -z "$ac_c_werror_flag" ||
9764 test ! -s conftest.err
9765 } && test -s conftest.$ac_objext; then
9766 ns_have_nsinteger=yes
9768 $as_echo "$as_me: failed program was:" >&5
9769 sed 's/^/| /' conftest.$ac_ext >&5
9771 ns_have_nsinteger=no
9774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9775 if test $ns_have_nsinteger = no; then
9776 NS_HAVE_NSINTEGER=no
9779 if test "${HAVE_NS}" = yes; then
9780 window_system=nextstep
9782 # set up packaging dirs
9783 exec_prefix=${ns_appbindir}
9784 libexecdir=${ns_appbindir}/libexec
9785 if test "${EN_NS_SELF_CONTAINED}" = yes; then
9786 prefix=${ns_appresdir}
9789 CFLAGS="$tmp_CFLAGS"
9790 CPPFLAGS="$tmp_CPPFLAGS"
9792 case "${window_system}" in
9796 case "${with_x_toolkit}" in
9797 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9798 motif ) USE_X_TOOLKIT=MOTIF ;;
9800 USE_X_TOOLKIT=none ;;
9801 no ) USE_X_TOOLKIT=none ;;
9802 * ) USE_X_TOOLKIT=maybe ;;
9812 if test "$window_system" = none && test "X$with_x" != "Xno"; then
9813 # Extract the first word of "X", so it can be a program name with args.
9814 set dummy X; ac_word=$2
9815 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9816 $as_echo_n "checking for $ac_word... " >&6; }
9817 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then
9818 $as_echo_n "(cached) " >&6
9820 if test -n "$HAVE_XSERVER"; then
9821 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
9823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9827 test -z "$as_dir" && as_dir=.
9828 for ac_exec_ext in '' $ac_executable_extensions; do
9829 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9830 ac_cv_prog_HAVE_XSERVER="true"
9831 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9838 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
9841 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
9842 if test -n "$HAVE_XSERVER"; then
9843 { $as_echo "$as_me:$LINENO: result: $HAVE_XSERVER" >&5
9844 $as_echo "$HAVE_XSERVER" >&6; }
9846 { $as_echo "$as_me:$LINENO: result: no" >&5
9847 $as_echo "no" >&6; }
9851 if test "$HAVE_XSERVER" = true ||
9852 test -n "$DISPLAY" ||
9853 test "`echo /usr
/lib
/libX11.
*`" != "/usr/lib/libX11.*"; then
9854 { { $as_echo "$as_me:$LINENO: error: You seem to be running X, but no X development libraries
9855 were found. You should install the relevant development files for X
9856 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9857 sure you have development files for image handling, i.e.
9858 tiff, gif, jpeg, png and xpm.
9859 If you are sure you want Emacs compiled without X window support, pass
9862 $as_echo "$as_me: error: You seem to be running X, but no X development libraries
9863 were found. You should install the relevant development files for X
9864 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9865 sure you have development files for image handling, i.e.
9866 tiff, gif, jpeg, png and xpm.
9867 If you are sure you want Emacs compiled without X window support, pass
9869 to configure." >&2;}
9870 { (exit 1); exit 1; }; }
9874 ### If we're using X11, we should use the X menu package.
9877 yes ) HAVE_MENUS=yes ;;
9880 # Do the opsystem or machine files prohibit the use of the GNU malloc?
9881 # Assume not, until told otherwise.
9884 { $as_echo "$as_me:$LINENO: checking for malloc_get_state" >&5
9885 $as_echo_n "checking for malloc_get_state... " >&6; }
9886 if test "${ac_cv_func_malloc_get_state+set}" = set; then
9887 $as_echo_n "(cached) " >&6
9889 cat >conftest.$ac_ext <<_ACEOF
9892 cat confdefs.h >>conftest.$ac_ext
9893 cat >>conftest.$ac_ext <<_ACEOF
9894 /* end confdefs.h. */
9895 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
9896 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9897 #define malloc_get_state innocuous_malloc_get_state
9899 /* System header to define __stub macros and hopefully few prototypes,
9900 which can conflict with char malloc_get_state (); below.
9901 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9902 <limits.h> exists even on freestanding compilers. */
9905 # include <limits.h>
9907 # include <assert.h>
9910 #undef malloc_get_state
9912 /* Override any GCC internal prototype to avoid an error.
9913 Use char because int might match the return type of a GCC
9914 builtin and then its argument prototype would still apply. */
9918 char malloc_get_state ();
9919 /* The GNU C library defines this for functions which it implements
9920 to always fail with ENOSYS. Some functions are actually named
9921 something starting with __ and the normal name is an alias. */
9922 #if defined __stub_malloc_get_state || defined __stub___malloc_get_state
9929 return malloc_get_state ();
9934 rm -f conftest.$ac_objext conftest$ac_exeext
9935 if { (ac_try="$ac_link"
9937 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9938 *) ac_try_echo
=$ac_try;;
9940 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
9941 $as_echo "$ac_try_echo") >&5
9942 (eval "$ac_link") 2>conftest.er1
9944 grep -v '^ *+' conftest.er1
>conftest.err
9946 cat conftest.err
>&5
9947 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9948 (exit $ac_status); } && {
9949 test -z "$ac_c_werror_flag" ||
9950 test ! -s conftest.err
9951 } && test -s conftest
$ac_exeext && {
9952 test "$cross_compiling" = yes ||
9953 $as_test_x conftest
$ac_exeext
9955 ac_cv_func_malloc_get_state
=yes
9957 $as_echo "$as_me: failed program was:" >&5
9958 sed 's/^/| /' conftest.
$ac_ext >&5
9960 ac_cv_func_malloc_get_state
=no
9963 rm -rf conftest.dSYM
9964 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9965 conftest
$ac_exeext conftest.
$ac_ext
9967 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
9968 $as_echo "$ac_cv_func_malloc_get_state" >&6; }
9969 if test $ac_cv_func_malloc_get_state = yes; then
9975 { $as_echo "$as_me:$LINENO: checking for malloc_set_state" >&5
9976 $as_echo_n "checking for malloc_set_state... " >&6; }
9977 if test "${ac_cv_func_malloc_set_state+set}" = set; then
9978 $as_echo_n "(cached) " >&6
9980 cat >conftest.
$ac_ext <<_ACEOF
9983 cat confdefs.h
>>conftest.
$ac_ext
9984 cat >>conftest.
$ac_ext <<_ACEOF
9985 /* end confdefs.h. */
9986 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
9987 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9988 #define malloc_set_state innocuous_malloc_set_state
9990 /* System header to define __stub macros and hopefully few prototypes,
9991 which can conflict with char malloc_set_state (); below.
9992 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9993 <limits.h> exists even on freestanding compilers. */
9996 # include <limits.h>
9998 # include <assert.h>
10001 #undef malloc_set_state
10003 /* Override any GCC internal prototype to avoid an error.
10004 Use char because int might match the return type of a GCC
10005 builtin and then its argument prototype would still apply. */
10009 char malloc_set_state ();
10010 /* The GNU C library defines this for functions which it implements
10011 to always fail with ENOSYS. Some functions are actually named
10012 something starting with __ and the normal name is an alias. */
10013 #if defined __stub_malloc_set_state || defined __stub___malloc_set_state
10020 return malloc_set_state ();
10025 rm -f conftest.
$ac_objext conftest
$ac_exeext
10026 if { (ac_try
="$ac_link"
10027 case "(($ac_try" in
10028 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10029 *) ac_try_echo=$ac_try;;
10031 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10032 $as_echo "$ac_try_echo") >&5
10033 (eval "$ac_link") 2>conftest.er1
10035 grep -v '^ *+' conftest.er1 >conftest.err
10037 cat conftest.err >&5
10038 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10039 (exit $ac_status); } && {
10040 test -z "$ac_c_werror_flag" ||
10041 test ! -s conftest.err
10042 } && test -s conftest$ac_exeext && {
10043 test "$cross_compiling" = yes ||
10044 $as_test_x conftest$ac_exeext
10046 ac_cv_func_malloc_set_state=yes
10048 $as_echo "$as_me: failed program was:" >&5
10049 sed 's/^/| /' conftest.$ac_ext >&5
10051 ac_cv_func_malloc_set_state=no
10054 rm -rf conftest.dSYM
10055 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10056 conftest$ac_exeext conftest.$ac_ext
10058 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
10059 $as_echo "$ac_cv_func_malloc_set_state" >&6; }
10060 if test $ac_cv_func_malloc_set_state = yes; then
10066 { $as_echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
10067 $as_echo_n "checking whether __after_morecore_hook exists... " >&6; }
10068 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
10069 $as_echo_n "(cached) " >&6
10071 cat >conftest.$ac_ext <<_ACEOF
10074 cat confdefs.h >>conftest.$ac_ext
10075 cat >>conftest.$ac_ext <<_ACEOF
10076 /* end confdefs.h. */
10077 extern void (* __after_morecore_hook)();
10081 __after_morecore_hook = 0
10086 rm -f conftest.$ac_objext conftest$ac_exeext
10087 if { (ac_try="$ac_link"
10088 case "(($ac_try" in
10089 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10090 *) ac_try_echo
=$ac_try;;
10092 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10093 $as_echo "$ac_try_echo") >&5
10094 (eval "$ac_link") 2>conftest.er1
10096 grep -v '^ *+' conftest.er1
>conftest.err
10098 cat conftest.err
>&5
10099 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10100 (exit $ac_status); } && {
10101 test -z "$ac_c_werror_flag" ||
10102 test ! -s conftest.err
10103 } && test -s conftest
$ac_exeext && {
10104 test "$cross_compiling" = yes ||
10105 $as_test_x conftest
$ac_exeext
10107 emacs_cv_var___after_morecore_hook
=yes
10109 $as_echo "$as_me: failed program was:" >&5
10110 sed 's/^/| /' conftest.
$ac_ext >&5
10112 emacs_cv_var___after_morecore_hook
=no
10115 rm -rf conftest.dSYM
10116 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10117 conftest
$ac_exeext conftest.
$ac_ext
10119 { $as_echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
10120 $as_echo "$emacs_cv_var___after_morecore_hook" >&6; }
10121 if test $emacs_cv_var___after_morecore_hook = no
; then
10124 if test "${system_malloc}" = "yes"; then
10126 GNU_MALLOC_reason
="
10127 (The GNU allocators don't work with this system configuration.)"
10129 if test "$doug_lea_malloc" = "yes" ; then
10130 if test "$GNU_MALLOC" = yes ; then
10131 GNU_MALLOC_reason
="
10132 (Using Doug Lea's new malloc from the GNU C Library.)"
10135 cat >>confdefs.h
<<\_ACEOF
10136 #define DOUG_LEA_MALLOC 1
10141 if test x
"${REL_ALLOC}" = x
; then
10142 REL_ALLOC
=${GNU_MALLOC}
10148 for ac_header
in stdlib.h unistd.h
10150 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10151 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10152 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10153 $as_echo_n "checking for $ac_header... " >&6; }
10154 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10155 $as_echo_n "(cached) " >&6
10157 ac_res
=`eval 'as_val=${'$as_ac_Header'}
10158 $as_echo "$as_val"'`
10159 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10160 $as_echo "$ac_res" >&6; }
10162 # Is the header compilable?
10163 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10164 $as_echo_n "checking $ac_header usability... " >&6; }
10165 cat >conftest.
$ac_ext <<_ACEOF
10168 cat confdefs.h
>>conftest.
$ac_ext
10169 cat >>conftest.
$ac_ext <<_ACEOF
10170 /* end confdefs.h. */
10171 $ac_includes_default
10172 #include <$ac_header>
10174 rm -f conftest.
$ac_objext
10175 if { (ac_try
="$ac_compile"
10176 case "(($ac_try" in
10177 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10178 *) ac_try_echo=$ac_try;;
10180 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10181 $as_echo "$ac_try_echo") >&5
10182 (eval "$ac_compile") 2>conftest.er1
10184 grep -v '^ *+' conftest.er1 >conftest.err
10186 cat conftest.err >&5
10187 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10188 (exit $ac_status); } && {
10189 test -z "$ac_c_werror_flag" ||
10190 test ! -s conftest.err
10191 } && test -s conftest.$ac_objext; then
10192 ac_header_compiler=yes
10194 $as_echo "$as_me: failed program was:" >&5
10195 sed 's/^/| /' conftest.$ac_ext >&5
10197 ac_header_compiler=no
10200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10201 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10202 $as_echo "$ac_header_compiler" >&6; }
10204 # Is the header present?
10205 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10206 $as_echo_n "checking $ac_header presence... " >&6; }
10207 cat >conftest.$ac_ext <<_ACEOF
10210 cat confdefs.h >>conftest.$ac_ext
10211 cat >>conftest.$ac_ext <<_ACEOF
10212 /* end confdefs.h. */
10213 #include <$ac_header>
10215 if { (ac_try="$ac_cpp conftest.$ac_ext"
10216 case "(($ac_try" in
10217 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10218 *) ac_try_echo
=$ac_try;;
10220 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10221 $as_echo "$ac_try_echo") >&5
10222 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10224 grep -v '^ *+' conftest.er1
>conftest.err
10226 cat conftest.err
>&5
10227 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10228 (exit $ac_status); } >/dev
/null
&& {
10229 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10230 test ! -s conftest.err
10232 ac_header_preproc
=yes
10234 $as_echo "$as_me: failed program was:" >&5
10235 sed 's/^/| /' conftest.
$ac_ext >&5
10237 ac_header_preproc
=no
10240 rm -f conftest.err conftest.
$ac_ext
10241 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10242 $as_echo "$ac_header_preproc" >&6; }
10244 # So? What about this header?
10245 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10247 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10248 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10249 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10250 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10251 ac_header_preproc
=yes
10254 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10255 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10256 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10257 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10258 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10259 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10260 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10261 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10262 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10263 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10264 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10265 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10269 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10270 $as_echo_n "checking for $ac_header... " >&6; }
10271 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10272 $as_echo_n "(cached) " >&6
10274 eval "$as_ac_Header=\$ac_header_preproc"
10276 ac_res
=`eval 'as_val=${'$as_ac_Header'}
10277 $as_echo "$as_val"'`
10278 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10279 $as_echo "$ac_res" >&6; }
10282 if test `eval 'as_val=${'$as_ac_Header'}
10283 $as_echo "$as_val"'` = yes; then
10284 cat >>confdefs.h
<<_ACEOF
10285 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10293 for ac_func
in getpagesize
10295 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10296 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
10297 $as_echo_n "checking for $ac_func... " >&6; }
10298 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10299 $as_echo_n "(cached) " >&6
10301 cat >conftest.
$ac_ext <<_ACEOF
10304 cat confdefs.h
>>conftest.
$ac_ext
10305 cat >>conftest.
$ac_ext <<_ACEOF
10306 /* end confdefs.h. */
10307 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10308 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10309 #define $ac_func innocuous_$ac_func
10311 /* System header to define __stub macros and hopefully few prototypes,
10312 which can conflict with char $ac_func (); below.
10313 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10314 <limits.h> exists even on freestanding compilers. */
10317 # include <limits.h>
10319 # include <assert.h>
10324 /* Override any GCC internal prototype to avoid an error.
10325 Use char because int might match the return type of a GCC
10326 builtin and then its argument prototype would still apply. */
10331 /* The GNU C library defines this for functions which it implements
10332 to always fail with ENOSYS. Some functions are actually named
10333 something starting with __ and the normal name is an alias. */
10334 #if defined __stub_$ac_func || defined __stub___$ac_func
10341 return $ac_func ();
10346 rm -f conftest.
$ac_objext conftest
$ac_exeext
10347 if { (ac_try
="$ac_link"
10348 case "(($ac_try" in
10349 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10350 *) ac_try_echo=$ac_try;;
10352 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10353 $as_echo "$ac_try_echo") >&5
10354 (eval "$ac_link") 2>conftest.er1
10356 grep -v '^ *+' conftest.er1 >conftest.err
10358 cat conftest.err >&5
10359 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10360 (exit $ac_status); } && {
10361 test -z "$ac_c_werror_flag" ||
10362 test ! -s conftest.err
10363 } && test -s conftest$ac_exeext && {
10364 test "$cross_compiling" = yes ||
10365 $as_test_x conftest$ac_exeext
10367 eval "$as_ac_var=yes"
10369 $as_echo "$as_me: failed program was:" >&5
10370 sed 's/^/| /' conftest.$ac_ext >&5
10372 eval "$as_ac_var=no"
10375 rm -rf conftest.dSYM
10376 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10377 conftest$ac_exeext conftest.$ac_ext
10379 ac_res=`eval 'as_val=${'$as_ac_var'}
10380 $as_echo "$as_val"'`
10381 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10382 $as_echo "$ac_res" >&6; }
10383 if test `eval 'as_val=${'$as_ac_var'}
10384 $as_echo "$as_val"'` = yes; then
10385 cat >>confdefs.h <<_ACEOF
10386 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
10392 { $as_echo "$as_me:$LINENO: checking for working mmap" >&5
10393 $as_echo_n "checking for working mmap... " >&6; }
10394 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
10395 $as_echo_n "(cached) " >&6
10397 if test "$cross_compiling" = yes; then
10398 ac_cv_func_mmap_fixed_mapped=no
10400 cat >conftest.$ac_ext <<_ACEOF
10403 cat confdefs.h >>conftest.$ac_ext
10404 cat >>conftest.$ac_ext <<_ACEOF
10405 /* end confdefs.h. */
10406 $ac_includes_default
10407 /* malloc might have been renamed as rpl_malloc. */
10410 /* Thanks to Mike Haertel and Jim Avera for this test.
10411 Here is a matrix of mmap possibilities:
10412 mmap private not fixed
10413 mmap private fixed at somewhere currently unmapped
10414 mmap private fixed at somewhere already mapped
10415 mmap shared not fixed
10416 mmap shared fixed at somewhere currently unmapped
10417 mmap shared fixed at somewhere already mapped
10418 For private mappings, we should verify that changes cannot be read()
10419 back from the file, nor mmap's back from the file at a different
10420 address. (There have been systems where private was not correctly
10421 implemented like the infamous i386 svr4.0, and systems where the
10422 VM page cache was not coherent with the file system buffer cache
10423 like early versions of FreeBSD and possibly contemporary NetBSD.)
10424 For shared mappings, we should conversely verify that changes get
10425 propagated back to all the places they're supposed to be.
10427 Grep wants private fixed already mapped.
10428 The main things grep needs to know about mmap are:
10429 * does it exist and is it safe to write into the mmap'd area
10430 * how to use it (BSD variants) */
10433 #include <sys/mman.h>
10435 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10439 /* This mess was copied from the GNU getpagesize.h. */
10440 #ifndef HAVE_GETPAGESIZE
10441 /* Assume that all systems that can run configure have sys/param.h. */
10442 # ifndef HAVE_SYS_PARAM_H
10443 # define HAVE_SYS_PARAM_H 1
10446 # ifdef _SC_PAGESIZE
10447 # define getpagesize() sysconf(_SC_PAGESIZE)
10448 # else /* no _SC_PAGESIZE */
10449 # ifdef HAVE_SYS_PARAM_H
10450 # include <sys/param.h>
10451 # ifdef EXEC_PAGESIZE
10452 # define getpagesize() EXEC_PAGESIZE
10453 # else /* no EXEC_PAGESIZE */
10455 # define getpagesize() NBPG * CLSIZE
10458 # endif /* no CLSIZE */
10459 # else /* no NBPG */
10461 # define getpagesize() NBPC
10462 # else /* no NBPC */
10464 # define getpagesize() PAGESIZE
10465 # endif /* PAGESIZE */
10466 # endif /* no NBPC */
10467 # endif /* no NBPG */
10468 # endif /* no EXEC_PAGESIZE */
10469 # else /* no HAVE_SYS_PARAM_H */
10470 # define getpagesize() 8192 /* punt totally */
10471 # endif /* no HAVE_SYS_PARAM_H */
10472 # endif /* no _SC_PAGESIZE */
10474 #endif /* no HAVE_GETPAGESIZE */
10479 char *data, *data2, *data3;
10483 pagesize = getpagesize ();
10485 /* First, make a file with some known garbage in it. */
10486 data = (char *) malloc (pagesize);
10489 for (i = 0; i < pagesize; ++i)
10490 *(data + i) = rand ();
10492 fd = creat ("conftest.mmap", 0600);
10495 if (write (fd, data, pagesize) != pagesize)
10499 /* Next, try to mmap the file at a fixed address which already has
10500 something else allocated at it. If we can, also make sure that
10501 we see the same garbage. */
10502 fd = open ("conftest.mmap", O_RDWR);
10505 data2 = (char *) malloc (2 * pagesize);
10508 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10509 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10510 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10512 for (i = 0; i < pagesize; ++i)
10513 if (*(data + i) != *(data2 + i))
10516 /* Finally, make sure that changes to the mapped area do not
10517 percolate back to the file as seen by read(). (This is a bug on
10518 some variants of i386 svr4.0.) */
10519 for (i = 0; i < pagesize; ++i)
10520 *(data2 + i) = *(data2 + i) + 1;
10521 data3 = (char *) malloc (pagesize);
10524 if (read (fd, data3, pagesize) != pagesize)
10526 for (i = 0; i < pagesize; ++i)
10527 if (*(data + i) != *(data3 + i))
10533 rm -f conftest$ac_exeext
10534 if { (ac_try="$ac_link"
10535 case "(($ac_try" in
10536 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10537 *) ac_try_echo
=$ac_try;;
10539 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10540 $as_echo "$ac_try_echo") >&5
10541 (eval "$ac_link") 2>&5
10543 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10544 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10545 { (case "(($ac_try" in
10546 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10547 *) ac_try_echo=$ac_try;;
10549 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10550 $as_echo "$ac_try_echo") >&5
10551 (eval "$ac_try") 2>&5
10553 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10554 (exit $ac_status); }; }; then
10555 ac_cv_func_mmap_fixed_mapped=yes
10557 $as_echo "$as_me: program exited with status $ac_status" >&5
10558 $as_echo "$as_me: failed program was:" >&5
10559 sed 's/^/| /' conftest.$ac_ext >&5
10561 ( exit $ac_status )
10562 ac_cv_func_mmap_fixed_mapped=no
10564 rm -rf conftest.dSYM
10565 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10570 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10571 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
10572 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10574 cat >>confdefs.h <<\_ACEOF
10575 #define HAVE_MMAP 1
10579 rm -f conftest.mmap
10581 if test $use_mmap_for_buffers = yes; then
10585 LIBS="$libsrc_libs $LIBS"
10588 { $as_echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
10589 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
10590 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
10591 $as_echo_n "(cached) " >&6
10593 ac_check_lib_save_LIBS=$LIBS
10594 LIBS="-ldnet $LIBS"
10595 cat >conftest.$ac_ext <<_ACEOF
10598 cat confdefs.h >>conftest.$ac_ext
10599 cat >>conftest.$ac_ext <<_ACEOF
10600 /* end confdefs.h. */
10602 /* Override any GCC internal prototype to avoid an error.
10603 Use char because int might match the return type of a GCC
10604 builtin and then its argument prototype would still apply. */
10612 return dnet_ntoa ();
10617 rm -f conftest.$ac_objext conftest$ac_exeext
10618 if { (ac_try="$ac_link"
10619 case "(($ac_try" in
10620 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10621 *) ac_try_echo
=$ac_try;;
10623 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10624 $as_echo "$ac_try_echo") >&5
10625 (eval "$ac_link") 2>conftest.er1
10627 grep -v '^ *+' conftest.er1
>conftest.err
10629 cat conftest.err
>&5
10630 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10631 (exit $ac_status); } && {
10632 test -z "$ac_c_werror_flag" ||
10633 test ! -s conftest.err
10634 } && test -s conftest
$ac_exeext && {
10635 test "$cross_compiling" = yes ||
10636 $as_test_x conftest
$ac_exeext
10638 ac_cv_lib_dnet_dnet_ntoa
=yes
10640 $as_echo "$as_me: failed program was:" >&5
10641 sed 's/^/| /' conftest.
$ac_ext >&5
10643 ac_cv_lib_dnet_dnet_ntoa
=no
10646 rm -rf conftest.dSYM
10647 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10648 conftest
$ac_exeext conftest.
$ac_ext
10649 LIBS
=$ac_check_lib_save_LIBS
10651 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10652 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10653 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
10654 cat >>confdefs.h
<<_ACEOF
10655 #define HAVE_LIBDNET 1
10658 LIBS
="-ldnet $LIBS"
10663 { $as_echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
10664 $as_echo_n "checking for main in -lXbsd... " >&6; }
10665 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
10666 $as_echo_n "(cached) " >&6
10668 ac_check_lib_save_LIBS
=$LIBS
10669 LIBS
="-lXbsd $LIBS"
10670 cat >conftest.
$ac_ext <<_ACEOF
10673 cat confdefs.h
>>conftest.
$ac_ext
10674 cat >>conftest.
$ac_ext <<_ACEOF
10675 /* end confdefs.h. */
10686 rm -f conftest.
$ac_objext conftest
$ac_exeext
10687 if { (ac_try
="$ac_link"
10688 case "(($ac_try" in
10689 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10690 *) ac_try_echo=$ac_try;;
10692 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10693 $as_echo "$ac_try_echo") >&5
10694 (eval "$ac_link") 2>conftest.er1
10696 grep -v '^ *+' conftest.er1 >conftest.err
10698 cat conftest.err >&5
10699 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10700 (exit $ac_status); } && {
10701 test -z "$ac_c_werror_flag" ||
10702 test ! -s conftest.err
10703 } && test -s conftest$ac_exeext && {
10704 test "$cross_compiling" = yes ||
10705 $as_test_x conftest$ac_exeext
10707 ac_cv_lib_Xbsd_main=yes
10709 $as_echo "$as_me: failed program was:" >&5
10710 sed 's/^/| /' conftest.$ac_ext >&5
10712 ac_cv_lib_Xbsd_main=no
10715 rm -rf conftest.dSYM
10716 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10717 conftest$ac_exeext conftest.$ac_ext
10718 LIBS=$ac_check_lib_save_LIBS
10720 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
10721 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
10722 if test $ac_cv_lib_Xbsd_main = yes; then
10723 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
10728 { $as_echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
10729 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
10730 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
10731 $as_echo_n "(cached) " >&6
10733 ac_check_lib_save_LIBS=$LIBS
10734 LIBS="-lpthreads $LIBS"
10735 cat >conftest.$ac_ext <<_ACEOF
10738 cat confdefs.h >>conftest.$ac_ext
10739 cat >>conftest.$ac_ext <<_ACEOF
10740 /* end confdefs.h. */
10742 /* Override any GCC internal prototype to avoid an error.
10743 Use char because int might match the return type of a GCC
10744 builtin and then its argument prototype would still apply. */
10752 return cma_open ();
10757 rm -f conftest.$ac_objext conftest$ac_exeext
10758 if { (ac_try="$ac_link"
10759 case "(($ac_try" in
10760 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10761 *) ac_try_echo
=$ac_try;;
10763 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10764 $as_echo "$ac_try_echo") >&5
10765 (eval "$ac_link") 2>conftest.er1
10767 grep -v '^ *+' conftest.er1
>conftest.err
10769 cat conftest.err
>&5
10770 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10771 (exit $ac_status); } && {
10772 test -z "$ac_c_werror_flag" ||
10773 test ! -s conftest.err
10774 } && test -s conftest
$ac_exeext && {
10775 test "$cross_compiling" = yes ||
10776 $as_test_x conftest
$ac_exeext
10778 ac_cv_lib_pthreads_cma_open
=yes
10780 $as_echo "$as_me: failed program was:" >&5
10781 sed 's/^/| /' conftest.
$ac_ext >&5
10783 ac_cv_lib_pthreads_cma_open
=no
10786 rm -rf conftest.dSYM
10787 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10788 conftest
$ac_exeext conftest.
$ac_ext
10789 LIBS
=$ac_check_lib_save_LIBS
10791 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
10792 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
10793 if test $ac_cv_lib_pthreads_cma_open = yes; then
10794 cat >>confdefs.h
<<_ACEOF
10795 #define HAVE_LIBPTHREADS 1
10798 LIBS
="-lpthreads $LIBS"
10806 { $as_echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
10807 $as_echo_n "checking for -bbigtoc option... " >&6; }
10808 if test "${gdb_cv_bigtoc+set}" = set; then
10809 $as_echo_n "(cached) " >&6
10813 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
10814 *) gdb_cv_bigtoc
=-bbigtoc ;;
10817 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
10818 cat >conftest.
$ac_ext <<_ACEOF
10821 cat confdefs.h
>>conftest.
$ac_ext
10822 cat >>conftest.
$ac_ext <<_ACEOF
10823 /* end confdefs.h. */
10833 rm -f conftest.
$ac_objext conftest
$ac_exeext
10834 if { (ac_try
="$ac_link"
10835 case "(($ac_try" in
10836 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10837 *) ac_try_echo=$ac_try;;
10839 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10840 $as_echo "$ac_try_echo") >&5
10841 (eval "$ac_link") 2>conftest.er1
10843 grep -v '^ *+' conftest.er1 >conftest.err
10845 cat conftest.err >&5
10846 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10847 (exit $ac_status); } && {
10848 test -z "$ac_c_werror_flag" ||
10849 test ! -s conftest.err
10850 } && test -s conftest$ac_exeext && {
10851 test "$cross_compiling" = yes ||
10852 $as_test_x conftest$ac_exeext
10856 $as_echo "$as_me: failed program was:" >&5
10857 sed 's/^/| /' conftest.$ac_ext >&5
10862 rm -rf conftest.dSYM
10863 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10864 conftest$ac_exeext conftest.$ac_ext
10867 { $as_echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
10868 $as_echo "$gdb_cv_bigtoc" >&6; }
10872 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10873 # used for the tests that follow. We set them back to REAL_CFLAGS and
10874 # REAL_CPPFLAGS later on.
10876 REAL_CPPFLAGS="$CPPFLAGS"
10878 if test "${HAVE_X11}" = "yes"; then
10879 DEFS="$C_SWITCH_X_SITE $DEFS"
10880 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
10882 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
10883 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
10885 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10886 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
10887 # but it's more convenient here to set LD_RUN_PATH
10888 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
10889 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
10890 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10894 if test "${opsys}" = "gnu-linux"; then
10895 { $as_echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
10896 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
10897 cat >conftest.$ac_ext <<_ACEOF
10900 cat confdefs.h >>conftest.$ac_ext
10901 cat >>conftest.$ac_ext <<_ACEOF
10902 /* end confdefs.h. */
10907 XOpenDisplay ("foo");
10912 rm -f conftest.$ac_objext conftest$ac_exeext
10913 if { (ac_try="$ac_link"
10914 case "(($ac_try" in
10915 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10916 *) ac_try_echo
=$ac_try;;
10918 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10919 $as_echo "$ac_try_echo") >&5
10920 (eval "$ac_link") 2>conftest.er1
10922 grep -v '^ *+' conftest.er1
>conftest.err
10924 cat conftest.err
>&5
10925 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10926 (exit $ac_status); } && {
10927 test -z "$ac_c_werror_flag" ||
10928 test ! -s conftest.err
10929 } && test -s conftest
$ac_exeext && {
10930 test "$cross_compiling" = yes ||
10931 $as_test_x conftest
$ac_exeext
10933 xlinux_first_failure
=no
10935 $as_echo "$as_me: failed program was:" >&5
10936 sed 's/^/| /' conftest.
$ac_ext >&5
10938 xlinux_first_failure
=yes
10941 rm -rf conftest.dSYM
10942 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10943 conftest
$ac_exeext conftest.
$ac_ext
10944 if test "${xlinux_first_failure}" = "yes"; then
10945 OLD_LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE"
10946 OLD_C_SWITCH_X_SITE
="$C_SWITCH_X_SITE"
10947 OLD_CPPFLAGS
="$CPPFLAGS"
10949 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -b i486-linuxaout"
10950 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE -b i486-linuxaout"
10951 CPPFLAGS
="$CPPFLAGS -b i486-linuxaout"
10952 LIBS
="$LIBS -b i486-linuxaout"
10953 cat >conftest.
$ac_ext <<_ACEOF
10956 cat confdefs.h
>>conftest.
$ac_ext
10957 cat >>conftest.
$ac_ext <<_ACEOF
10958 /* end confdefs.h. */
10963 XOpenDisplay ("foo");
10968 rm -f conftest.
$ac_objext conftest
$ac_exeext
10969 if { (ac_try
="$ac_link"
10970 case "(($ac_try" in
10971 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10972 *) ac_try_echo=$ac_try;;
10974 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10975 $as_echo "$ac_try_echo") >&5
10976 (eval "$ac_link") 2>conftest.er1
10978 grep -v '^ *+' conftest.er1 >conftest.err
10980 cat conftest.err >&5
10981 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10982 (exit $ac_status); } && {
10983 test -z "$ac_c_werror_flag" ||
10984 test ! -s conftest.err
10985 } && test -s conftest$ac_exeext && {
10986 test "$cross_compiling" = yes ||
10987 $as_test_x conftest$ac_exeext
10989 xlinux_second_failure=no
10991 $as_echo "$as_me: failed program was:" >&5
10992 sed 's/^/| /' conftest.$ac_ext >&5
10994 xlinux_second_failure=yes
10997 rm -rf conftest.dSYM
10998 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10999 conftest$ac_exeext conftest.$ac_ext
11000 if test "${xlinux_second_failure}" = "yes"; then
11001 # If we get the same failure with -b, there is no use adding -b.
11002 # So take it out. This plays safe.
11003 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
11004 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
11005 CPPFLAGS="$OLD_CPPFLAGS"
11007 { $as_echo "$as_me:$LINENO: result: no" >&5
11008 $as_echo "no" >&6; }
11010 { $as_echo "$as_me:$LINENO: result: yes" >&5
11011 $as_echo "yes" >&6; }
11014 { $as_echo "$as_me:$LINENO: result: no" >&5
11015 $as_echo "no" >&6; }
11019 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
11020 # header files included from there.
11021 { $as_echo "$as_me:$LINENO: checking for Xkb" >&5
11022 $as_echo_n "checking for Xkb... " >&6; }
11023 cat >conftest.$ac_ext <<_ACEOF
11026 cat confdefs.h >>conftest.$ac_ext
11027 cat >>conftest.$ac_ext <<_ACEOF
11028 /* end confdefs.h. */
11029 #include <X11/Xlib.h>
11030 #include <X11/XKBlib.h>
11034 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
11039 rm -f conftest.$ac_objext conftest$ac_exeext
11040 if { (ac_try="$ac_link"
11041 case "(($ac_try" in
11042 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11043 *) ac_try_echo
=$ac_try;;
11045 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11046 $as_echo "$ac_try_echo") >&5
11047 (eval "$ac_link") 2>conftest.er1
11049 grep -v '^ *+' conftest.er1
>conftest.err
11051 cat conftest.err
>&5
11052 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11053 (exit $ac_status); } && {
11054 test -z "$ac_c_werror_flag" ||
11055 test ! -s conftest.err
11056 } && test -s conftest
$ac_exeext && {
11057 test "$cross_compiling" = yes ||
11058 $as_test_x conftest
$ac_exeext
11062 $as_echo "$as_me: failed program was:" >&5
11063 sed 's/^/| /' conftest.
$ac_ext >&5
11068 rm -rf conftest.dSYM
11069 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11070 conftest
$ac_exeext conftest.
$ac_ext
11071 { $as_echo "$as_me:$LINENO: result: $emacs_xkb" >&5
11072 $as_echo "$emacs_xkb" >&6; }
11073 if test $emacs_xkb = yes; then
11075 cat >>confdefs.h
<<\_ACEOF
11076 #define HAVE_XKBGETKEYBOARD 1
11085 for ac_func
in XrmSetDatabase XScreenResourceString \
11086 XScreenNumberOfScreen XSetWMProtocols
11088 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11089 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11090 $as_echo_n "checking for $ac_func... " >&6; }
11091 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11092 $as_echo_n "(cached) " >&6
11094 cat >conftest.
$ac_ext <<_ACEOF
11097 cat confdefs.h
>>conftest.
$ac_ext
11098 cat >>conftest.
$ac_ext <<_ACEOF
11099 /* end confdefs.h. */
11100 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11101 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11102 #define $ac_func innocuous_$ac_func
11104 /* System header to define __stub macros and hopefully few prototypes,
11105 which can conflict with char $ac_func (); below.
11106 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11107 <limits.h> exists even on freestanding compilers. */
11110 # include <limits.h>
11112 # include <assert.h>
11117 /* Override any GCC internal prototype to avoid an error.
11118 Use char because int might match the return type of a GCC
11119 builtin and then its argument prototype would still apply. */
11124 /* The GNU C library defines this for functions which it implements
11125 to always fail with ENOSYS. Some functions are actually named
11126 something starting with __ and the normal name is an alias. */
11127 #if defined __stub_$ac_func || defined __stub___$ac_func
11134 return $ac_func ();
11139 rm -f conftest.
$ac_objext conftest
$ac_exeext
11140 if { (ac_try
="$ac_link"
11141 case "(($ac_try" in
11142 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11143 *) ac_try_echo=$ac_try;;
11145 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11146 $as_echo "$ac_try_echo") >&5
11147 (eval "$ac_link") 2>conftest.er1
11149 grep -v '^ *+' conftest.er1 >conftest.err
11151 cat conftest.err >&5
11152 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11153 (exit $ac_status); } && {
11154 test -z "$ac_c_werror_flag" ||
11155 test ! -s conftest.err
11156 } && test -s conftest$ac_exeext && {
11157 test "$cross_compiling" = yes ||
11158 $as_test_x conftest$ac_exeext
11160 eval "$as_ac_var=yes"
11162 $as_echo "$as_me: failed program was:" >&5
11163 sed 's/^/| /' conftest.$ac_ext >&5
11165 eval "$as_ac_var=no"
11168 rm -rf conftest.dSYM
11169 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11170 conftest$ac_exeext conftest.$ac_ext
11172 ac_res=`eval 'as_val=${'$as_ac_var'}
11173 $as_echo "$as_val"'`
11174 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11175 $as_echo "$ac_res" >&6; }
11176 if test `eval 'as_val=${'$as_ac_var'}
11177 $as_echo "$as_val"'` = yes; then
11178 cat >>confdefs.h <<_ACEOF
11179 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
11187 if test "${window_system}" = "x11"; then
11188 { $as_echo "$as_me:$LINENO: checking X11 version 6" >&5
11189 $as_echo_n "checking X11 version 6... " >&6; }
11190 if test "${emacs_cv_x11_version_6+set}" = set; then
11191 $as_echo_n "(cached) " >&6
11193 cat >conftest.$ac_ext <<_ACEOF
11196 cat confdefs.h >>conftest.$ac_ext
11197 cat >>conftest.$ac_ext <<_ACEOF
11198 /* end confdefs.h. */
11199 #include <X11/Xlib.h>
11203 #if XlibSpecificationRelease < 6
11211 rm -f conftest.$ac_objext conftest$ac_exeext
11212 if { (ac_try="$ac_link"
11213 case "(($ac_try" in
11214 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11215 *) ac_try_echo
=$ac_try;;
11217 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11218 $as_echo "$ac_try_echo") >&5
11219 (eval "$ac_link") 2>conftest.er1
11221 grep -v '^ *+' conftest.er1
>conftest.err
11223 cat conftest.err
>&5
11224 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11225 (exit $ac_status); } && {
11226 test -z "$ac_c_werror_flag" ||
11227 test ! -s conftest.err
11228 } && test -s conftest
$ac_exeext && {
11229 test "$cross_compiling" = yes ||
11230 $as_test_x conftest
$ac_exeext
11232 emacs_cv_x11_version_6
=yes
11234 $as_echo "$as_me: failed program was:" >&5
11235 sed 's/^/| /' conftest.
$ac_ext >&5
11237 emacs_cv_x11_version_6
=no
11240 rm -rf conftest.dSYM
11241 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11242 conftest
$ac_exeext conftest.
$ac_ext
11245 if test $emacs_cv_x11_version_6 = yes; then
11246 { $as_echo "$as_me:$LINENO: result: 6 or newer" >&5
11247 $as_echo "6 or newer" >&6; }
11249 cat >>confdefs.h
<<\_ACEOF
11250 #define HAVE_X11R6 1
11254 { $as_echo "$as_me:$LINENO: result: before 6" >&5
11255 $as_echo "before 6" >&6; }
11260 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
11262 if test "${HAVE_X11}" = "yes" ||
test "${HAVE_NS}" = "yes"; then
11263 if test "${with_rsvg}" != "no"; then
11264 RSVG_REQUIRED
=2.11.0
11265 RSVG_MODULE
="librsvg-2.0 >= $RSVG_REQUIRED"
11270 # Extract the first word of "pkg-config", so it can be a program name with args.
11271 set dummy pkg-config
; ac_word
=$2
11272 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11273 $as_echo_n "checking for $ac_word... " >&6; }
11274 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11275 $as_echo_n "(cached) " >&6
11277 case $PKG_CONFIG in
11279 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
11282 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11283 for as_dir
in $PATH
11286 test -z "$as_dir" && as_dir
=.
11287 for ac_exec_ext
in '' $ac_executable_extensions; do
11288 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11289 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
11290 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11297 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
11301 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
11302 if test -n "$PKG_CONFIG"; then
11303 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11304 $as_echo "$PKG_CONFIG" >&6; }
11306 { $as_echo "$as_me:$LINENO: result: no" >&5
11307 $as_echo "no" >&6; }
11312 if test "$PKG_CONFIG" = "no" ; then
11315 PKG_CONFIG_MIN_VERSION
=0.9.0
11316 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11317 { $as_echo "$as_me:$LINENO: checking for $RSVG_MODULE" >&5
11318 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
11320 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
11321 { $as_echo "$as_me:$LINENO: result: yes" >&5
11322 $as_echo "yes" >&6; }
11325 { $as_echo "$as_me:$LINENO: checking RSVG_CFLAGS" >&5
11326 $as_echo_n "checking RSVG_CFLAGS... " >&6; }
11327 RSVG_CFLAGS
=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
11328 { $as_echo "$as_me:$LINENO: result: $RSVG_CFLAGS" >&5
11329 $as_echo "$RSVG_CFLAGS" >&6; }
11331 { $as_echo "$as_me:$LINENO: checking RSVG_LIBS" >&5
11332 $as_echo_n "checking RSVG_LIBS... " >&6; }
11333 RSVG_LIBS
=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
11334 { $as_echo "$as_me:$LINENO: result: $RSVG_LIBS" >&5
11335 $as_echo "$RSVG_LIBS" >&6; }
11337 { $as_echo "$as_me:$LINENO: result: no" >&5
11338 $as_echo "no" >&6; }
11341 ## If we have a custom action on failure, don't print errors, but
11342 ## do set a variable so people can do so.
11343 RSVG_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
11350 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11351 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11355 if test $succeeded = yes; then
11364 if test ".${RSVG_CFLAGS}" != "."; then
11367 cat >>confdefs.h
<<\_ACEOF
11368 #define HAVE_RSVG 1
11371 CFLAGS
="$CFLAGS $RSVG_CFLAGS"
11372 LIBS
="$RSVG_LIBS $LIBS"
11379 if test "${with_gtk}" = "yes" ||
test "$USE_X_TOOLKIT" = "maybe"; then
11382 GTK_MODULES
="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
11387 # Extract the first word of "pkg-config", so it can be a program name with args.
11388 set dummy pkg-config
; ac_word
=$2
11389 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11390 $as_echo_n "checking for $ac_word... " >&6; }
11391 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11392 $as_echo_n "(cached) " >&6
11394 case $PKG_CONFIG in
11396 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
11399 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11400 for as_dir
in $PATH
11403 test -z "$as_dir" && as_dir
=.
11404 for ac_exec_ext
in '' $ac_executable_extensions; do
11405 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11406 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
11407 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11414 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
11418 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
11419 if test -n "$PKG_CONFIG"; then
11420 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11421 $as_echo "$PKG_CONFIG" >&6; }
11423 { $as_echo "$as_me:$LINENO: result: no" >&5
11424 $as_echo "no" >&6; }
11429 if test "$PKG_CONFIG" = "no" ; then
11432 PKG_CONFIG_MIN_VERSION
=0.9.0
11433 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11434 { $as_echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
11435 $as_echo_n "checking for $GTK_MODULES... " >&6; }
11437 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
11438 { $as_echo "$as_me:$LINENO: result: yes" >&5
11439 $as_echo "yes" >&6; }
11442 { $as_echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
11443 $as_echo_n "checking GTK_CFLAGS... " >&6; }
11444 GTK_CFLAGS
=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
11445 { $as_echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
11446 $as_echo "$GTK_CFLAGS" >&6; }
11448 { $as_echo "$as_me:$LINENO: checking GTK_LIBS" >&5
11449 $as_echo_n "checking GTK_LIBS... " >&6; }
11450 GTK_LIBS
=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
11451 { $as_echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
11452 $as_echo "$GTK_LIBS" >&6; }
11454 { $as_echo "$as_me:$LINENO: result: no" >&5
11455 $as_echo "no" >&6; }
11458 ## If we have a custom action on failure, don't print errors, but
11459 ## do set a variable so people can do so.
11460 GTK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
11467 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11468 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11472 if test $succeeded = yes; then
11478 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
11479 { { $as_echo "$as_me:$LINENO: error: $GTK_PKG_ERRORS" >&5
11480 $as_echo "$as_me: error: $GTK_PKG_ERRORS" >&2;}
11481 { (exit 1); exit 1; }; }
11486 if test x
"$pkg_check_gtk" = xyes
; then
11490 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $GTK_CFLAGS"
11491 CFLAGS
="$CFLAGS $GTK_CFLAGS"
11492 LIBS
="$GTK_LIBS $LIBS"
11495 for ac_func
in gtk_main
11497 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11498 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11499 $as_echo_n "checking for $ac_func... " >&6; }
11500 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11501 $as_echo_n "(cached) " >&6
11503 cat >conftest.
$ac_ext <<_ACEOF
11506 cat confdefs.h
>>conftest.
$ac_ext
11507 cat >>conftest.
$ac_ext <<_ACEOF
11508 /* end confdefs.h. */
11509 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11510 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11511 #define $ac_func innocuous_$ac_func
11513 /* System header to define __stub macros and hopefully few prototypes,
11514 which can conflict with char $ac_func (); below.
11515 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11516 <limits.h> exists even on freestanding compilers. */
11519 # include <limits.h>
11521 # include <assert.h>
11526 /* Override any GCC internal prototype to avoid an error.
11527 Use char because int might match the return type of a GCC
11528 builtin and then its argument prototype would still apply. */
11533 /* The GNU C library defines this for functions which it implements
11534 to always fail with ENOSYS. Some functions are actually named
11535 something starting with __ and the normal name is an alias. */
11536 #if defined __stub_$ac_func || defined __stub___$ac_func
11543 return $ac_func ();
11548 rm -f conftest.
$ac_objext conftest
$ac_exeext
11549 if { (ac_try
="$ac_link"
11550 case "(($ac_try" in
11551 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11552 *) ac_try_echo=$ac_try;;
11554 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11555 $as_echo "$ac_try_echo") >&5
11556 (eval "$ac_link") 2>conftest.er1
11558 grep -v '^ *+' conftest.er1 >conftest.err
11560 cat conftest.err >&5
11561 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11562 (exit $ac_status); } && {
11563 test -z "$ac_c_werror_flag" ||
11564 test ! -s conftest.err
11565 } && test -s conftest$ac_exeext && {
11566 test "$cross_compiling" = yes ||
11567 $as_test_x conftest$ac_exeext
11569 eval "$as_ac_var=yes"
11571 $as_echo "$as_me: failed program was:" >&5
11572 sed 's/^/| /' conftest.$ac_ext >&5
11574 eval "$as_ac_var=no"
11577 rm -rf conftest.dSYM
11578 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11579 conftest$ac_exeext conftest.$ac_ext
11581 ac_res=`eval 'as_val=${'$as_ac_var'}
11582 $as_echo "$as_val"'`
11583 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11584 $as_echo "$ac_res" >&6; }
11585 if test `eval 'as_val=${'$as_ac_var'}
11586 $as_echo "$as_val"'` = yes; then
11587 cat >>confdefs.h <<_ACEOF
11588 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
11594 if test "${GTK_COMPILES}" != "yes"; then
11595 if test "$USE_X_TOOLKIT" != "maybe"; then
11596 { { $as_echo "$as_me:$LINENO: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&5
11597 $as_echo "$as_me: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&2;}
11598 { (exit 1); exit 1; }; };
11603 cat >>confdefs.h <<\_ACEOF
11608 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then
11611 { $as_echo "$as_me:$LINENO: WARNING: Your version of Gtk+ will have problems with
11612 closing open displays. This is no problem if you just use
11613 one display, but if you use more than one and close one of them
11614 Emacs may crash." >&5
11615 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
11616 closing open displays. This is no problem if you just use
11617 one display, but if you use more than one and close one of them
11618 Emacs may crash." >&2;}
11626 if test "${HAVE_GTK}" = "yes"; then
11628 if test "$with_toolkit_scroll_bars" != no; then
11629 with_toolkit_scroll_bars=yes
11632 HAVE_GTK_MULTIDISPLAY=no
11634 for ac_func in gdk_display_open
11636 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
11637 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11638 $as_echo_n "checking for $ac_func... " >&6; }
11639 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11640 $as_echo_n "(cached) " >&6
11642 cat >conftest.$ac_ext <<_ACEOF
11645 cat confdefs.h >>conftest.$ac_ext
11646 cat >>conftest.$ac_ext <<_ACEOF
11647 /* end confdefs.h. */
11648 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11649 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11650 #define $ac_func innocuous_$ac_func
11652 /* System header to define __stub macros and hopefully few prototypes,
11653 which can conflict with char $ac_func (); below.
11654 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11655 <limits.h> exists even on freestanding compilers. */
11658 # include <limits.h>
11660 # include <assert.h>
11665 /* Override any GCC internal prototype to avoid an error.
11666 Use char because int might match the return type of a GCC
11667 builtin and then its argument prototype would still apply. */
11672 /* The GNU C library defines this for functions which it implements
11673 to always fail with ENOSYS. Some functions are actually named
11674 something starting with __ and the normal name is an alias. */
11675 #if defined __stub_$ac_func || defined __stub___$ac_func
11682 return $ac_func ();
11687 rm -f conftest.$ac_objext conftest$ac_exeext
11688 if { (ac_try="$ac_link"
11689 case "(($ac_try" in
11690 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11691 *) ac_try_echo
=$ac_try;;
11693 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11694 $as_echo "$ac_try_echo") >&5
11695 (eval "$ac_link") 2>conftest.er1
11697 grep -v '^ *+' conftest.er1
>conftest.err
11699 cat conftest.err
>&5
11700 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11701 (exit $ac_status); } && {
11702 test -z "$ac_c_werror_flag" ||
11703 test ! -s conftest.err
11704 } && test -s conftest
$ac_exeext && {
11705 test "$cross_compiling" = yes ||
11706 $as_test_x conftest
$ac_exeext
11708 eval "$as_ac_var=yes"
11710 $as_echo "$as_me: failed program was:" >&5
11711 sed 's/^/| /' conftest.
$ac_ext >&5
11713 eval "$as_ac_var=no"
11716 rm -rf conftest.dSYM
11717 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11718 conftest
$ac_exeext conftest.
$ac_ext
11720 ac_res
=`eval 'as_val=${'$as_ac_var'}
11721 $as_echo "$as_val"'`
11722 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11723 $as_echo "$ac_res" >&6; }
11724 if test `eval 'as_val=${'$as_ac_var'}
11725 $as_echo "$as_val"'` = yes; then
11726 cat >>confdefs.h
<<_ACEOF
11727 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11729 HAVE_GTK_MULTIDISPLAY
=yes
11733 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
11735 cat >>confdefs.h
<<\_ACEOF
11736 #define HAVE_GTK_MULTIDISPLAY 1
11741 HAVE_GTK_FILE_SELECTION
=no
11742 { $as_echo "$as_me:$LINENO: checking whether GTK_TYPE_FILE_SELECTION is declared" >&5
11743 $as_echo_n "checking whether GTK_TYPE_FILE_SELECTION is declared... " >&6; }
11744 if test "${ac_cv_have_decl_GTK_TYPE_FILE_SELECTION+set}" = set; then
11745 $as_echo_n "(cached) " >&6
11747 cat >conftest.
$ac_ext <<_ACEOF
11750 cat confdefs.h
>>conftest.
$ac_ext
11751 cat >>conftest.
$ac_ext <<_ACEOF
11752 /* end confdefs.h. */
11753 $ac_includes_default
11754 #include <gtk/gtk.h>
11759 #ifndef GTK_TYPE_FILE_SELECTION
11760 (void) GTK_TYPE_FILE_SELECTION;
11767 rm -f conftest.
$ac_objext
11768 if { (ac_try
="$ac_compile"
11769 case "(($ac_try" in
11770 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11771 *) ac_try_echo=$ac_try;;
11773 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11774 $as_echo "$ac_try_echo") >&5
11775 (eval "$ac_compile") 2>conftest.er1
11777 grep -v '^ *+' conftest.er1 >conftest.err
11779 cat conftest.err >&5
11780 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11781 (exit $ac_status); } && {
11782 test -z "$ac_c_werror_flag" ||
11783 test ! -s conftest.err
11784 } && test -s conftest.$ac_objext; then
11785 ac_cv_have_decl_GTK_TYPE_FILE_SELECTION=yes
11787 $as_echo "$as_me: failed program was:" >&5
11788 sed 's/^/| /' conftest.$ac_ext >&5
11790 ac_cv_have_decl_GTK_TYPE_FILE_SELECTION=no
11793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11795 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" >&5
11796 $as_echo "$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" >&6; }
11797 if test $ac_cv_have_decl_GTK_TYPE_FILE_SELECTION = yes; then
11798 HAVE_GTK_FILE_SELECTION=yes
11800 HAVE_GTK_FILE_SELECTION=no
11803 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
11805 for ac_func in gtk_file_selection_new
11807 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
11808 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11809 $as_echo_n "checking for $ac_func... " >&6; }
11810 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11811 $as_echo_n "(cached) " >&6
11813 cat >conftest.$ac_ext <<_ACEOF
11816 cat confdefs.h >>conftest.$ac_ext
11817 cat >>conftest.$ac_ext <<_ACEOF
11818 /* end confdefs.h. */
11819 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11820 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11821 #define $ac_func innocuous_$ac_func
11823 /* System header to define __stub macros and hopefully few prototypes,
11824 which can conflict with char $ac_func (); below.
11825 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11826 <limits.h> exists even on freestanding compilers. */
11829 # include <limits.h>
11831 # include <assert.h>
11836 /* Override any GCC internal prototype to avoid an error.
11837 Use char because int might match the return type of a GCC
11838 builtin and then its argument prototype would still apply. */
11843 /* The GNU C library defines this for functions which it implements
11844 to always fail with ENOSYS. Some functions are actually named
11845 something starting with __ and the normal name is an alias. */
11846 #if defined __stub_$ac_func || defined __stub___$ac_func
11853 return $ac_func ();
11858 rm -f conftest.$ac_objext conftest$ac_exeext
11859 if { (ac_try="$ac_link"
11860 case "(($ac_try" in
11861 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11862 *) ac_try_echo
=$ac_try;;
11864 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11865 $as_echo "$ac_try_echo") >&5
11866 (eval "$ac_link") 2>conftest.er1
11868 grep -v '^ *+' conftest.er1
>conftest.err
11870 cat conftest.err
>&5
11871 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11872 (exit $ac_status); } && {
11873 test -z "$ac_c_werror_flag" ||
11874 test ! -s conftest.err
11875 } && test -s conftest
$ac_exeext && {
11876 test "$cross_compiling" = yes ||
11877 $as_test_x conftest
$ac_exeext
11879 eval "$as_ac_var=yes"
11881 $as_echo "$as_me: failed program was:" >&5
11882 sed 's/^/| /' conftest.
$ac_ext >&5
11884 eval "$as_ac_var=no"
11887 rm -rf conftest.dSYM
11888 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11889 conftest
$ac_exeext conftest.
$ac_ext
11891 ac_res
=`eval 'as_val=${'$as_ac_var'}
11892 $as_echo "$as_val"'`
11893 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11894 $as_echo "$ac_res" >&6; }
11895 if test `eval 'as_val=${'$as_ac_var'}
11896 $as_echo "$as_val"'` = yes; then
11897 cat >>confdefs.h
<<_ACEOF
11898 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11900 HAVE_GTK_FILE_SELECTION
=yes
11902 HAVE_GTK_FILE_SELECTION
=no
11908 HAVE_GTK_FILE_CHOOSER
=no
11909 { $as_echo "$as_me:$LINENO: checking whether GTK_TYPE_FILE_CHOOSER is declared" >&5
11910 $as_echo_n "checking whether GTK_TYPE_FILE_CHOOSER is declared... " >&6; }
11911 if test "${ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER+set}" = set; then
11912 $as_echo_n "(cached) " >&6
11914 cat >conftest.
$ac_ext <<_ACEOF
11917 cat confdefs.h
>>conftest.
$ac_ext
11918 cat >>conftest.
$ac_ext <<_ACEOF
11919 /* end confdefs.h. */
11920 $ac_includes_default
11921 #include <gtk/gtk.h>
11926 #ifndef GTK_TYPE_FILE_CHOOSER
11927 (void) GTK_TYPE_FILE_CHOOSER;
11934 rm -f conftest.
$ac_objext
11935 if { (ac_try
="$ac_compile"
11936 case "(($ac_try" in
11937 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11938 *) ac_try_echo=$ac_try;;
11940 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11941 $as_echo "$ac_try_echo") >&5
11942 (eval "$ac_compile") 2>conftest.er1
11944 grep -v '^ *+' conftest.er1 >conftest.err
11946 cat conftest.err >&5
11947 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11948 (exit $ac_status); } && {
11949 test -z "$ac_c_werror_flag" ||
11950 test ! -s conftest.err
11951 } && test -s conftest.$ac_objext; then
11952 ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER=yes
11954 $as_echo "$as_me: failed program was:" >&5
11955 sed 's/^/| /' conftest.$ac_ext >&5
11957 ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER=no
11960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11962 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER" >&5
11963 $as_echo "$ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER" >&6; }
11964 if test $ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER = yes; then
11965 HAVE_GTK_FILE_CHOOSER=yes
11967 HAVE_GTK_FILE_CHOOSER=no
11970 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11972 for ac_func in gtk_file_chooser_dialog_new
11974 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
11975 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11976 $as_echo_n "checking for $ac_func... " >&6; }
11977 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11978 $as_echo_n "(cached) " >&6
11980 cat >conftest.$ac_ext <<_ACEOF
11983 cat confdefs.h >>conftest.$ac_ext
11984 cat >>conftest.$ac_ext <<_ACEOF
11985 /* end confdefs.h. */
11986 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11987 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11988 #define $ac_func innocuous_$ac_func
11990 /* System header to define __stub macros and hopefully few prototypes,
11991 which can conflict with char $ac_func (); below.
11992 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11993 <limits.h> exists even on freestanding compilers. */
11996 # include <limits.h>
11998 # include <assert.h>
12003 /* Override any GCC internal prototype to avoid an error.
12004 Use char because int might match the return type of a GCC
12005 builtin and then its argument prototype would still apply. */
12010 /* The GNU C library defines this for functions which it implements
12011 to always fail with ENOSYS. Some functions are actually named
12012 something starting with __ and the normal name is an alias. */
12013 #if defined __stub_$ac_func || defined __stub___$ac_func
12020 return $ac_func ();
12025 rm -f conftest.$ac_objext conftest$ac_exeext
12026 if { (ac_try="$ac_link"
12027 case "(($ac_try" in
12028 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12029 *) ac_try_echo
=$ac_try;;
12031 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12032 $as_echo "$ac_try_echo") >&5
12033 (eval "$ac_link") 2>conftest.er1
12035 grep -v '^ *+' conftest.er1
>conftest.err
12037 cat conftest.err
>&5
12038 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12039 (exit $ac_status); } && {
12040 test -z "$ac_c_werror_flag" ||
12041 test ! -s conftest.err
12042 } && test -s conftest
$ac_exeext && {
12043 test "$cross_compiling" = yes ||
12044 $as_test_x conftest
$ac_exeext
12046 eval "$as_ac_var=yes"
12048 $as_echo "$as_me: failed program was:" >&5
12049 sed 's/^/| /' conftest.
$ac_ext >&5
12051 eval "$as_ac_var=no"
12054 rm -rf conftest.dSYM
12055 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12056 conftest
$ac_exeext conftest.
$ac_ext
12058 ac_res
=`eval 'as_val=${'$as_ac_var'}
12059 $as_echo "$as_val"'`
12060 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12061 $as_echo "$ac_res" >&6; }
12062 if test `eval 'as_val=${'$as_ac_var'}
12063 $as_echo "$as_val"'` = yes; then
12064 cat >>confdefs.h
<<_ACEOF
12065 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12067 HAVE_GTK_FILE_CHOOSER
=yes
12069 HAVE_GTK_FILE_CHOOSER
=no
12075 if test "$HAVE_GTK_FILE_SELECTION" = yes \
12076 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
12078 cat >>confdefs.h
<<\_ACEOF
12079 #define HAVE_GTK_FILE_BOTH 1
12084 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
12085 HAVE_GTK_AND_PTHREAD
=no
12087 for ac_header
in pthread.h
12089 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12090 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12091 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12092 $as_echo_n "checking for $ac_header... " >&6; }
12093 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12094 $as_echo_n "(cached) " >&6
12096 ac_res
=`eval 'as_val=${'$as_ac_Header'}
12097 $as_echo "$as_val"'`
12098 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12099 $as_echo "$ac_res" >&6; }
12101 # Is the header compilable?
12102 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12103 $as_echo_n "checking $ac_header usability... " >&6; }
12104 cat >conftest.
$ac_ext <<_ACEOF
12107 cat confdefs.h
>>conftest.
$ac_ext
12108 cat >>conftest.
$ac_ext <<_ACEOF
12109 /* end confdefs.h. */
12110 $ac_includes_default
12111 #include <$ac_header>
12113 rm -f conftest.
$ac_objext
12114 if { (ac_try
="$ac_compile"
12115 case "(($ac_try" in
12116 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12117 *) ac_try_echo=$ac_try;;
12119 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12120 $as_echo "$ac_try_echo") >&5
12121 (eval "$ac_compile") 2>conftest.er1
12123 grep -v '^ *+' conftest.er1 >conftest.err
12125 cat conftest.err >&5
12126 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12127 (exit $ac_status); } && {
12128 test -z "$ac_c_werror_flag" ||
12129 test ! -s conftest.err
12130 } && test -s conftest.$ac_objext; then
12131 ac_header_compiler=yes
12133 $as_echo "$as_me: failed program was:" >&5
12134 sed 's/^/| /' conftest.$ac_ext >&5
12136 ac_header_compiler=no
12139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12140 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12141 $as_echo "$ac_header_compiler" >&6; }
12143 # Is the header present?
12144 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12145 $as_echo_n "checking $ac_header presence... " >&6; }
12146 cat >conftest.$ac_ext <<_ACEOF
12149 cat confdefs.h >>conftest.$ac_ext
12150 cat >>conftest.$ac_ext <<_ACEOF
12151 /* end confdefs.h. */
12152 #include <$ac_header>
12154 if { (ac_try="$ac_cpp conftest.$ac_ext"
12155 case "(($ac_try" in
12156 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12157 *) ac_try_echo
=$ac_try;;
12159 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12160 $as_echo "$ac_try_echo") >&5
12161 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12163 grep -v '^ *+' conftest.er1
>conftest.err
12165 cat conftest.err
>&5
12166 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12167 (exit $ac_status); } >/dev
/null
&& {
12168 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12169 test ! -s conftest.err
12171 ac_header_preproc
=yes
12173 $as_echo "$as_me: failed program was:" >&5
12174 sed 's/^/| /' conftest.
$ac_ext >&5
12176 ac_header_preproc
=no
12179 rm -f conftest.err conftest.
$ac_ext
12180 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12181 $as_echo "$ac_header_preproc" >&6; }
12183 # So? What about this header?
12184 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12186 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12187 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12188 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12189 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12190 ac_header_preproc
=yes
12193 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12194 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12195 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12196 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12197 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12198 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12199 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12200 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12201 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12202 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12203 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12204 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12208 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12209 $as_echo_n "checking for $ac_header... " >&6; }
12210 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12211 $as_echo_n "(cached) " >&6
12213 eval "$as_ac_Header=\$ac_header_preproc"
12215 ac_res
=`eval 'as_val=${'$as_ac_Header'}
12216 $as_echo "$as_val"'`
12217 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12218 $as_echo "$ac_res" >&6; }
12221 if test `eval 'as_val=${'$as_ac_Header'}
12222 $as_echo "$as_val"'` = yes; then
12223 cat >>confdefs.h
<<_ACEOF
12224 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12231 if test "$ac_cv_header_pthread_h"; then
12232 { $as_echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
12233 $as_echo_n "checking for pthread_self in -lpthread... " >&6; }
12234 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
12235 $as_echo_n "(cached) " >&6
12237 ac_check_lib_save_LIBS
=$LIBS
12238 LIBS
="-lpthread $LIBS"
12239 cat >conftest.
$ac_ext <<_ACEOF
12242 cat confdefs.h
>>conftest.
$ac_ext
12243 cat >>conftest.
$ac_ext <<_ACEOF
12244 /* end confdefs.h. */
12246 /* Override any GCC internal prototype to avoid an error.
12247 Use char because int might match the return type of a GCC
12248 builtin and then its argument prototype would still apply. */
12252 char pthread_self ();
12256 return pthread_self ();
12261 rm -f conftest.
$ac_objext conftest
$ac_exeext
12262 if { (ac_try
="$ac_link"
12263 case "(($ac_try" in
12264 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12265 *) ac_try_echo=$ac_try;;
12267 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12268 $as_echo "$ac_try_echo") >&5
12269 (eval "$ac_link") 2>conftest.er1
12271 grep -v '^ *+' conftest.er1 >conftest.err
12273 cat conftest.err >&5
12274 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12275 (exit $ac_status); } && {
12276 test -z "$ac_c_werror_flag" ||
12277 test ! -s conftest.err
12278 } && test -s conftest$ac_exeext && {
12279 test "$cross_compiling" = yes ||
12280 $as_test_x conftest$ac_exeext
12282 ac_cv_lib_pthread_pthread_self=yes
12284 $as_echo "$as_me: failed program was:" >&5
12285 sed 's/^/| /' conftest.$ac_ext >&5
12287 ac_cv_lib_pthread_pthread_self=no
12290 rm -rf conftest.dSYM
12291 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12292 conftest$ac_exeext conftest.$ac_ext
12293 LIBS=$ac_check_lib_save_LIBS
12295 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
12296 $as_echo "$ac_cv_lib_pthread_pthread_self" >&6; }
12297 if test $ac_cv_lib_pthread_pthread_self = yes; then
12298 HAVE_GTK_AND_PTHREAD=yes
12302 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
12303 case "${canonical}" in
12305 *) GTK_LIBS="$GTK_LIBS -lpthread" ;;
12308 cat >>confdefs.h <<\_ACEOF
12309 #define HAVE_GTK_AND_PTHREAD 1
12317 if test "${with_dbus}" = "yes"; then
12321 # Extract the first word of "pkg-config", so it can be a program name with args.
12322 set dummy pkg-config; ac_word=$2
12323 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12324 $as_echo_n "checking for $ac_word... " >&6; }
12325 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12326 $as_echo_n "(cached) " >&6
12328 case $PKG_CONFIG in
12330 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12334 for as_dir in $PATH
12337 test -z "$as_dir" && as_dir=.
12338 for ac_exec_ext in '' $ac_executable_extensions; do
12339 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12340 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12341 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12348 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12352 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12353 if test -n "$PKG_CONFIG"; then
12354 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12355 $as_echo "$PKG_CONFIG" >&6; }
12357 { $as_echo "$as_me:$LINENO: result: no" >&5
12358 $as_echo "no" >&6; }
12363 if test "$PKG_CONFIG" = "no" ; then
12366 PKG_CONFIG_MIN_VERSION=0.9.0
12367 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12368 { $as_echo "$as_me:$LINENO: checking for dbus-1 >= 1.0" >&5
12369 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
12371 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
12372 { $as_echo "$as_me:$LINENO: result: yes" >&5
12373 $as_echo "yes" >&6; }
12376 { $as_echo "$as_me:$LINENO: checking DBUS_CFLAGS" >&5
12377 $as_echo_n "checking DBUS_CFLAGS... " >&6; }
12378 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|
sed -e 's,///*,/,g'`
12379 { $as_echo "$as_me:$LINENO: result: $DBUS_CFLAGS" >&5
12380 $as_echo "$DBUS_CFLAGS" >&6; }
12382 { $as_echo "$as_me:$LINENO: checking DBUS_LIBS" >&5
12383 $as_echo_n "checking DBUS_LIBS... " >&6; }
12384 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|
sed -e 's,///*,/,g'`
12385 { $as_echo "$as_me:$LINENO: result: $DBUS_LIBS" >&5
12386 $as_echo "$DBUS_LIBS" >&6; }
12388 { $as_echo "$as_me:$LINENO: result: no" >&5
12389 $as_echo "no" >&6; }
12392 ## If we have a custom action on failure, don't print errors, but
12393 ## do set a variable so people can do so.
12394 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
12401 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12402 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12406 if test $succeeded = yes; then
12412 if test "$HAVE_DBUS" = yes; then
12413 LIBS="$LIBS $DBUS_LIBS"
12415 cat >>confdefs.h <<\_ACEOF
12416 #define HAVE_DBUS 1
12420 for ac_func in dbus_watch_get_unix_fd
12422 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
12423 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12424 $as_echo_n "checking for $ac_func... " >&6; }
12425 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12426 $as_echo_n "(cached) " >&6
12428 cat >conftest.$ac_ext <<_ACEOF
12431 cat confdefs.h >>conftest.$ac_ext
12432 cat >>conftest.$ac_ext <<_ACEOF
12433 /* end confdefs.h. */
12434 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12435 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12436 #define $ac_func innocuous_$ac_func
12438 /* System header to define __stub macros and hopefully few prototypes,
12439 which can conflict with char $ac_func (); below.
12440 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12441 <limits.h> exists even on freestanding compilers. */
12444 # include <limits.h>
12446 # include <assert.h>
12451 /* Override any GCC internal prototype to avoid an error.
12452 Use char because int might match the return type of a GCC
12453 builtin and then its argument prototype would still apply. */
12458 /* The GNU C library defines this for functions which it implements
12459 to always fail with ENOSYS. Some functions are actually named
12460 something starting with __ and the normal name is an alias. */
12461 #if defined __stub_$ac_func || defined __stub___$ac_func
12468 return $ac_func ();
12473 rm -f conftest.$ac_objext conftest$ac_exeext
12474 if { (ac_try="$ac_link"
12475 case "(($ac_try" in
12476 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12477 *) ac_try_echo
=$ac_try;;
12479 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12480 $as_echo "$ac_try_echo") >&5
12481 (eval "$ac_link") 2>conftest.er1
12483 grep -v '^ *+' conftest.er1
>conftest.err
12485 cat conftest.err
>&5
12486 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12487 (exit $ac_status); } && {
12488 test -z "$ac_c_werror_flag" ||
12489 test ! -s conftest.err
12490 } && test -s conftest
$ac_exeext && {
12491 test "$cross_compiling" = yes ||
12492 $as_test_x conftest
$ac_exeext
12494 eval "$as_ac_var=yes"
12496 $as_echo "$as_me: failed program was:" >&5
12497 sed 's/^/| /' conftest.
$ac_ext >&5
12499 eval "$as_ac_var=no"
12502 rm -rf conftest.dSYM
12503 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12504 conftest
$ac_exeext conftest.
$ac_ext
12506 ac_res
=`eval 'as_val=${'$as_ac_var'}
12507 $as_echo "$as_val"'`
12508 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12509 $as_echo "$ac_res" >&6; }
12510 if test `eval 'as_val=${'$as_ac_var'}
12511 $as_echo "$as_val"'` = yes; then
12512 cat >>confdefs.h
<<_ACEOF
12513 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12523 if test x
"${USE_X_TOOLKIT}" = xmaybe ||
test x
"${USE_X_TOOLKIT}" = xLUCID
; then
12524 if test "$with_xaw3d" != no
; then
12525 { $as_echo "$as_me:$LINENO: checking for xaw3d" >&5
12526 $as_echo_n "checking for xaw3d... " >&6; }
12527 if test "${emacs_cv_xaw3d+set}" = set; then
12528 $as_echo_n "(cached) " >&6
12530 cat >conftest.
$ac_ext <<_ACEOF
12533 cat confdefs.h
>>conftest.
$ac_ext
12534 cat >>conftest.
$ac_ext <<_ACEOF
12535 /* end confdefs.h. */
12537 #include <X11/Intrinsic.h>
12538 #include <X11/Xaw3d/Simple.h>
12547 rm -f conftest.
$ac_objext conftest
$ac_exeext
12548 if { (ac_try
="$ac_link"
12549 case "(($ac_try" in
12550 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12551 *) ac_try_echo=$ac_try;;
12553 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12554 $as_echo "$ac_try_echo") >&5
12555 (eval "$ac_link") 2>conftest.er1
12557 grep -v '^ *+' conftest.er1 >conftest.err
12559 cat conftest.err >&5
12560 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12561 (exit $ac_status); } && {
12562 test -z "$ac_c_werror_flag" ||
12563 test ! -s conftest.err
12564 } && test -s conftest$ac_exeext && {
12565 test "$cross_compiling" = yes ||
12566 $as_test_x conftest$ac_exeext
12570 $as_echo "$as_me: failed program was:" >&5
12571 sed 's/^/| /' conftest.$ac_ext >&5
12576 rm -rf conftest.dSYM
12577 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12578 conftest$ac_exeext conftest.$ac_ext
12584 if test $emacs_cv_xaw3d = yes; then
12585 { $as_echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
12586 $as_echo "yes; using Lucid toolkit" >&6; }
12587 USE_X_TOOLKIT=LUCID
12590 cat >>confdefs.h <<\_ACEOF
12591 #define HAVE_XAW3D 1
12595 { $as_echo "$as_me:$LINENO: result: no" >&5
12596 $as_echo "no" >&6; }
12597 { $as_echo "$as_me:$LINENO: checking for libXaw" >&5
12598 $as_echo_n "checking for libXaw... " >&6; }
12599 if test "${emacs_cv_xaw+set}" = set; then
12600 $as_echo_n "(cached) " >&6
12602 cat >conftest.$ac_ext <<_ACEOF
12605 cat confdefs.h >>conftest.$ac_ext
12606 cat >>conftest.$ac_ext <<_ACEOF
12607 /* end confdefs.h. */
12609 #include <X11/Intrinsic.h>
12610 #include <X11/Xaw/Simple.h>
12619 rm -f conftest.$ac_objext conftest$ac_exeext
12620 if { (ac_try="$ac_link"
12621 case "(($ac_try" in
12622 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12623 *) ac_try_echo
=$ac_try;;
12625 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12626 $as_echo "$ac_try_echo") >&5
12627 (eval "$ac_link") 2>conftest.er1
12629 grep -v '^ *+' conftest.er1
>conftest.err
12631 cat conftest.err
>&5
12632 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12633 (exit $ac_status); } && {
12634 test -z "$ac_c_werror_flag" ||
12635 test ! -s conftest.err
12636 } && test -s conftest
$ac_exeext && {
12637 test "$cross_compiling" = yes ||
12638 $as_test_x conftest
$ac_exeext
12642 $as_echo "$as_me: failed program was:" >&5
12643 sed 's/^/| /' conftest.
$ac_ext >&5
12648 rm -rf conftest.dSYM
12649 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12650 conftest
$ac_exeext conftest.
$ac_ext
12653 if test $emacs_cv_xaw = yes; then
12654 { $as_echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
12655 $as_echo "yes; using Lucid toolkit" >&6; }
12656 USE_X_TOOLKIT
=LUCID
12657 elif test x
"${USE_X_TOOLKIT}" = xLUCID
; then
12658 { { $as_echo "$as_me:$LINENO: error: Lucid toolkit requires X11/Xaw include files" >&5
12659 $as_echo "$as_me: error: Lucid toolkit requires X11/Xaw include files" >&2;}
12660 { (exit 1); exit 1; }; }
12662 { $as_echo "$as_me:$LINENO: result: no; do not use toolkit by default" >&5
12663 $as_echo "no; do not use toolkit by default" >&6; }
12669 X_TOOLKIT_TYPE
=$USE_X_TOOLKIT
12671 if test "${USE_X_TOOLKIT}" != "none"; then
12672 { $as_echo "$as_me:$LINENO: checking X11 toolkit version" >&5
12673 $as_echo_n "checking X11 toolkit version... " >&6; }
12674 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
12675 $as_echo_n "(cached) " >&6
12677 cat >conftest.
$ac_ext <<_ACEOF
12680 cat confdefs.h
>>conftest.
$ac_ext
12681 cat >>conftest.
$ac_ext <<_ACEOF
12682 /* end confdefs.h. */
12683 #include <X11/Intrinsic.h>
12687 #if XtSpecificationRelease < 6
12695 rm -f conftest.
$ac_objext conftest
$ac_exeext
12696 if { (ac_try
="$ac_link"
12697 case "(($ac_try" in
12698 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12699 *) ac_try_echo=$ac_try;;
12701 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12702 $as_echo "$ac_try_echo") >&5
12703 (eval "$ac_link") 2>conftest.er1
12705 grep -v '^ *+' conftest.er1 >conftest.err
12707 cat conftest.err >&5
12708 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12709 (exit $ac_status); } && {
12710 test -z "$ac_c_werror_flag" ||
12711 test ! -s conftest.err
12712 } && test -s conftest$ac_exeext && {
12713 test "$cross_compiling" = yes ||
12714 $as_test_x conftest$ac_exeext
12716 emacs_cv_x11_toolkit_version_6=yes
12718 $as_echo "$as_me: failed program was:" >&5
12719 sed 's/^/| /' conftest.$ac_ext >&5
12721 emacs_cv_x11_toolkit_version_6=no
12724 rm -rf conftest.dSYM
12725 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12726 conftest$ac_exeext conftest.$ac_ext
12729 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
12730 if test $emacs_cv_x11_toolkit_version_6 = yes; then
12731 { $as_echo "$as_me:$LINENO: result: 6 or newer" >&5
12732 $as_echo "6 or newer" >&6; }
12734 cat >>confdefs.h <<\_ACEOF
12735 #define HAVE_X11XTR6 1
12739 { $as_echo "$as_me:$LINENO: result: before 6" >&5
12740 $as_echo "before 6" >&6; }
12744 if test x$HAVE_X11XTR6 = xyes; then
12745 LIBS="-lXt -lSM -lICE $LIBS"
12750 { $as_echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
12751 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
12752 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
12753 $as_echo_n "(cached) " >&6
12755 ac_check_lib_save_LIBS=$LIBS
12757 cat >conftest.$ac_ext <<_ACEOF
12760 cat confdefs.h >>conftest.$ac_ext
12761 cat >>conftest.$ac_ext <<_ACEOF
12762 /* end confdefs.h. */
12764 /* Override any GCC internal prototype to avoid an error.
12765 Use char because int might match the return type of a GCC
12766 builtin and then its argument prototype would still apply. */
12770 char XmuConvertStandardSelection ();
12774 return XmuConvertStandardSelection ();
12779 rm -f conftest.$ac_objext conftest$ac_exeext
12780 if { (ac_try="$ac_link"
12781 case "(($ac_try" in
12782 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12783 *) ac_try_echo
=$ac_try;;
12785 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12786 $as_echo "$ac_try_echo") >&5
12787 (eval "$ac_link") 2>conftest.er1
12789 grep -v '^ *+' conftest.er1
>conftest.err
12791 cat conftest.err
>&5
12792 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12793 (exit $ac_status); } && {
12794 test -z "$ac_c_werror_flag" ||
12795 test ! -s conftest.err
12796 } && test -s conftest
$ac_exeext && {
12797 test "$cross_compiling" = yes ||
12798 $as_test_x conftest
$ac_exeext
12800 ac_cv_lib_Xmu_XmuConvertStandardSelection
=yes
12802 $as_echo "$as_me: failed program was:" >&5
12803 sed 's/^/| /' conftest.
$ac_ext >&5
12805 ac_cv_lib_Xmu_XmuConvertStandardSelection
=no
12808 rm -rf conftest.dSYM
12809 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12810 conftest
$ac_exeext conftest.
$ac_ext
12811 LIBS
=$ac_check_lib_save_LIBS
12813 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
12814 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
12815 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
12816 cat >>confdefs.h
<<_ACEOF
12817 #define HAVE_LIBXMU 1
12824 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no
&& LIBS
="$OLDLIBS"
12827 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
12828 if test "${HAVE_X11}" = "yes"; then
12829 if test "${USE_X_TOOLKIT}" != "none"; then
12831 { $as_echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
12832 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
12833 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
12834 $as_echo_n "(cached) " >&6
12836 ac_check_lib_save_LIBS
=$LIBS
12837 LIBS
="-lXext $LIBS"
12838 cat >conftest.
$ac_ext <<_ACEOF
12841 cat confdefs.h
>>conftest.
$ac_ext
12842 cat >>conftest.
$ac_ext <<_ACEOF
12843 /* end confdefs.h. */
12845 /* Override any GCC internal prototype to avoid an error.
12846 Use char because int might match the return type of a GCC
12847 builtin and then its argument prototype would still apply. */
12851 char XShapeQueryExtension ();
12855 return XShapeQueryExtension ();
12860 rm -f conftest.
$ac_objext conftest
$ac_exeext
12861 if { (ac_try
="$ac_link"
12862 case "(($ac_try" in
12863 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12864 *) ac_try_echo=$ac_try;;
12866 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12867 $as_echo "$ac_try_echo") >&5
12868 (eval "$ac_link") 2>conftest.er1
12870 grep -v '^ *+' conftest.er1 >conftest.err
12872 cat conftest.err >&5
12873 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12874 (exit $ac_status); } && {
12875 test -z "$ac_c_werror_flag" ||
12876 test ! -s conftest.err
12877 } && test -s conftest$ac_exeext && {
12878 test "$cross_compiling" = yes ||
12879 $as_test_x conftest$ac_exeext
12881 ac_cv_lib_Xext_XShapeQueryExtension=yes
12883 $as_echo "$as_me: failed program was:" >&5
12884 sed 's/^/| /' conftest.$ac_ext >&5
12886 ac_cv_lib_Xext_XShapeQueryExtension=no
12889 rm -rf conftest.dSYM
12890 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12891 conftest$ac_exeext conftest.$ac_ext
12892 LIBS=$ac_check_lib_save_LIBS
12894 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
12895 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
12896 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
12897 cat >>confdefs.h <<_ACEOF
12898 #define HAVE_LIBXEXT 1
12901 LIBS="-lXext $LIBS"
12908 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12909 { $as_echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
12910 $as_echo_n "checking for Motif version 2.1... " >&6; }
12911 if test "${emacs_cv_motif_version_2_1+set}" = set; then
12912 $as_echo_n "(cached) " >&6
12914 cat >conftest.$ac_ext <<_ACEOF
12917 cat confdefs.h >>conftest.$ac_ext
12918 cat >>conftest.$ac_ext <<_ACEOF
12919 /* end confdefs.h. */
12924 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
12927 Motif version prior to 2.1.
12933 rm -f conftest.$ac_objext
12934 if { (ac_try="$ac_compile"
12935 case "(($ac_try" in
12936 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12937 *) ac_try_echo
=$ac_try;;
12939 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12940 $as_echo "$ac_try_echo") >&5
12941 (eval "$ac_compile") 2>conftest.er1
12943 grep -v '^ *+' conftest.er1
>conftest.err
12945 cat conftest.err
>&5
12946 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12947 (exit $ac_status); } && {
12948 test -z "$ac_c_werror_flag" ||
12949 test ! -s conftest.err
12950 } && test -s conftest.
$ac_objext; then
12951 emacs_cv_motif_version_2_1
=yes
12953 $as_echo "$as_me: failed program was:" >&5
12954 sed 's/^/| /' conftest.
$ac_ext >&5
12956 emacs_cv_motif_version_2_1
=no
12959 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12961 { $as_echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
12962 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
12963 HAVE_MOTIF_2_1
=$emacs_cv_motif_version_2_1
12964 if test $emacs_cv_motif_version_2_1 = yes; then
12967 cat >>confdefs.h
<<\_ACEOF
12968 #define HAVE_MOTIF_2_1 1
12971 { $as_echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
12972 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
12973 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
12974 $as_echo_n "(cached) " >&6
12976 ac_check_lib_save_LIBS
=$LIBS
12978 cat >conftest.
$ac_ext <<_ACEOF
12981 cat confdefs.h
>>conftest.
$ac_ext
12982 cat >>conftest.
$ac_ext <<_ACEOF
12983 /* end confdefs.h. */
12985 /* Override any GCC internal prototype to avoid an error.
12986 Use char because int might match the return type of a GCC
12987 builtin and then its argument prototype would still apply. */
12991 char XpCreateContext ();
12995 return XpCreateContext ();
13000 rm -f conftest.
$ac_objext conftest
$ac_exeext
13001 if { (ac_try
="$ac_link"
13002 case "(($ac_try" in
13003 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13004 *) ac_try_echo=$ac_try;;
13006 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13007 $as_echo "$ac_try_echo") >&5
13008 (eval "$ac_link") 2>conftest.er1
13010 grep -v '^ *+' conftest.er1 >conftest.err
13012 cat conftest.err >&5
13013 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13014 (exit $ac_status); } && {
13015 test -z "$ac_c_werror_flag" ||
13016 test ! -s conftest.err
13017 } && test -s conftest$ac_exeext && {
13018 test "$cross_compiling" = yes ||
13019 $as_test_x conftest$ac_exeext
13021 ac_cv_lib_Xp_XpCreateContext=yes
13023 $as_echo "$as_me: failed program was:" >&5
13024 sed 's/^/| /' conftest.$ac_ext >&5
13026 ac_cv_lib_Xp_XpCreateContext=no
13029 rm -rf conftest.dSYM
13030 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13031 conftest$ac_exeext conftest.$ac_ext
13032 LIBS=$ac_check_lib_save_LIBS
13034 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
13035 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
13036 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
13040 if test ${HAVE_LIBXP} = yes; then
13042 cat >>confdefs.h <<\_ACEOF
13043 #define HAVE_LIBXP 1
13048 { $as_echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
13049 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
13050 if test "${emacs_cv_lesstif+set}" = set; then
13051 $as_echo_n "(cached) " >&6
13053 # We put this in CFLAGS temporarily to precede other -I options
13054 # that might be in CFLAGS temporarily.
13055 # We put this in CPPFLAGS where it precedes the other -I options.
13056 OLD_CPPFLAGS=$CPPFLAGS
13058 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
13059 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
13060 cat >conftest.$ac_ext <<_ACEOF
13063 cat confdefs.h >>conftest.$ac_ext
13064 cat >>conftest.$ac_ext <<_ACEOF
13065 /* end confdefs.h. */
13066 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
13075 rm -f conftest.$ac_objext
13076 if { (ac_try="$ac_compile"
13077 case "(($ac_try" in
13078 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13079 *) ac_try_echo
=$ac_try;;
13081 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
13082 $as_echo "$ac_try_echo") >&5
13083 (eval "$ac_compile") 2>conftest.er1
13085 grep -v '^ *+' conftest.er1
>conftest.err
13087 cat conftest.err
>&5
13088 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13089 (exit $ac_status); } && {
13090 test -z "$ac_c_werror_flag" ||
13091 test ! -s conftest.err
13092 } && test -s conftest.
$ac_objext; then
13093 emacs_cv_lesstif
=yes
13095 $as_echo "$as_me: failed program was:" >&5
13096 sed 's/^/| /' conftest.
$ac_ext >&5
13098 emacs_cv_lesstif
=no
13101 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13103 { $as_echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
13104 $as_echo "$emacs_cv_lesstif" >&6; }
13105 if test $emacs_cv_lesstif = yes; then
13106 # Make sure this -I option remains in CPPFLAGS after it is set
13107 # back to REAL_CPPFLAGS.
13108 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
13109 # have those other -I options anyway. Ultimately, having this
13110 # directory ultimately in CPPFLAGS will be enough.
13111 REAL_CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
13112 LDFLAGS
="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
13115 CPPFLAGS
=$OLD_CPPFLAGS
13122 USE_TOOLKIT_SCROLL_BARS
=no
13123 if test "${with_toolkit_scroll_bars}" != "no"; then
13124 if test "${USE_X_TOOLKIT}" != "none"; then
13125 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
13126 cat >>confdefs.h
<<\_ACEOF
13127 #define USE_TOOLKIT_SCROLL_BARS 1
13131 USE_TOOLKIT_SCROLL_BARS
=yes
13132 elif test "${HAVE_XAW3D}" = "yes"; then
13133 cat >>confdefs.h
<<\_ACEOF
13134 #define USE_TOOLKIT_SCROLL_BARS 1
13137 USE_TOOLKIT_SCROLL_BARS
=yes
13139 elif test "${HAVE_GTK}" = "yes"; then
13140 cat >>confdefs.h
<<\_ACEOF
13141 #define USE_TOOLKIT_SCROLL_BARS 1
13144 USE_TOOLKIT_SCROLL_BARS
=yes
13145 elif test "${HAVE_NS}" = "yes"; then
13146 cat >>confdefs.h
<<\_ACEOF
13147 #define USE_TOOLKIT_SCROLL_BARS 1
13150 USE_TOOLKIT_SCROLL_BARS
=yes
13154 cat >conftest.
$ac_ext <<_ACEOF
13157 cat confdefs.h
>>conftest.
$ac_ext
13158 cat >>conftest.
$ac_ext <<_ACEOF
13159 /* end confdefs.h. */
13161 #include <X11/Xlib.h>
13162 #include <X11/Xresource.h>
13171 rm -f conftest.
$ac_objext
13172 if { (ac_try
="$ac_compile"
13173 case "(($ac_try" in
13174 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13175 *) ac_try_echo=$ac_try;;
13177 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13178 $as_echo "$ac_try_echo") >&5
13179 (eval "$ac_compile") 2>conftest.er1
13181 grep -v '^ *+' conftest.er1 >conftest.err
13183 cat conftest.err >&5
13184 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13185 (exit $ac_status); } && {
13186 test -z "$ac_c_werror_flag" ||
13187 test ! -s conftest.err
13188 } && test -s conftest.$ac_objext; then
13191 cat >>confdefs.h <<\_ACEOF
13196 $as_echo "$as_me: failed program was:" >&5
13197 sed 's/^/| /' conftest.$ac_ext >&5
13202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13205 if test "${with_xim}" != "no"; then
13207 cat >>confdefs.h <<\_ACEOF
13214 if test "${HAVE_XIM}" != "no"; then
13215 late_CFLAGS=$CFLAGS
13216 if test "$GCC" = yes; then
13217 CFLAGS="$CFLAGS --pedantic-errors"
13219 cat >conftest.$ac_ext <<_ACEOF
13222 cat confdefs.h >>conftest.$ac_ext
13223 cat >>conftest.$ac_ext <<_ACEOF
13224 /* end confdefs.h. */
13226 #include <X11/Xlib.h>
13227 #include <X11/Xresource.h>
13236 XPointer *client_data;
13238 /* If we're not using GCC, it's probably not XFree86, and this is
13239 probably right, but we can't use something like --pedantic-errors. */
13240 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
13241 char*, XIMProc, XPointer*);
13243 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
13249 rm -f conftest.$ac_objext
13250 if { (ac_try="$ac_compile"
13251 case "(($ac_try" in
13252 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13253 *) ac_try_echo
=$ac_try;;
13255 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
13256 $as_echo "$ac_try_echo") >&5
13257 (eval "$ac_compile") 2>conftest.er1
13259 grep -v '^ *+' conftest.er1
>conftest.err
13261 cat conftest.err
>&5
13262 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13263 (exit $ac_status); } && {
13264 test -z "$ac_c_werror_flag" ||
13265 test ! -s conftest.err
13266 } && test -s conftest.
$ac_objext; then
13267 emacs_cv_arg6_star
=yes
13269 $as_echo "$as_me: failed program was:" >&5
13270 sed 's/^/| /' conftest.
$ac_ext >&5
13275 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13277 if test "$emacs_cv_arg6_star" = yes; then
13278 cat >>confdefs.h
<<\_ACEOF
13279 #define XRegisterIMInstantiateCallback_arg6 XPointer*
13283 cat >>confdefs.h
<<\_ACEOF
13284 #define XRegisterIMInstantiateCallback_arg6 XPointer
13288 CFLAGS
=$late_CFLAGS
13291 ### Start of font-backend (under any platform) section.
13292 # (nothing here yet -- this is a placeholder)
13293 ### End of font-backend (under any platform) section.
13295 ### Start of font-backend (under X11) section.
13296 if test "${HAVE_X11}" = "yes"; then
13300 # Extract the first word of "pkg-config", so it can be a program name with args.
13301 set dummy pkg-config
; ac_word
=$2
13302 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13303 $as_echo_n "checking for $ac_word... " >&6; }
13304 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13305 $as_echo_n "(cached) " >&6
13307 case $PKG_CONFIG in
13309 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
13312 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13313 for as_dir
in $PATH
13316 test -z "$as_dir" && as_dir
=.
13317 for ac_exec_ext
in '' $ac_executable_extensions; do
13318 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13319 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
13320 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13327 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
13331 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
13332 if test -n "$PKG_CONFIG"; then
13333 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13334 $as_echo "$PKG_CONFIG" >&6; }
13336 { $as_echo "$as_me:$LINENO: result: no" >&5
13337 $as_echo "no" >&6; }
13342 if test "$PKG_CONFIG" = "no" ; then
13345 PKG_CONFIG_MIN_VERSION
=0.9.0
13346 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13347 { $as_echo "$as_me:$LINENO: checking for fontconfig >= 2.2.0" >&5
13348 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
13350 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5; then
13351 { $as_echo "$as_me:$LINENO: result: yes" >&5
13352 $as_echo "yes" >&6; }
13355 { $as_echo "$as_me:$LINENO: checking FONTCONFIG_CFLAGS" >&5
13356 $as_echo_n "checking FONTCONFIG_CFLAGS... " >&6; }
13357 FONTCONFIG_CFLAGS
=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
13358 { $as_echo "$as_me:$LINENO: result: $FONTCONFIG_CFLAGS" >&5
13359 $as_echo "$FONTCONFIG_CFLAGS" >&6; }
13361 { $as_echo "$as_me:$LINENO: checking FONTCONFIG_LIBS" >&5
13362 $as_echo_n "checking FONTCONFIG_LIBS... " >&6; }
13363 FONTCONFIG_LIBS
=`$PKG_CONFIG --libs "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
13364 { $as_echo "$as_me:$LINENO: result: $FONTCONFIG_LIBS" >&5
13365 $as_echo "$FONTCONFIG_LIBS" >&6; }
13367 { $as_echo "$as_me:$LINENO: result: no" >&5
13368 $as_echo "no" >&6; }
13369 FONTCONFIG_CFLAGS
=""
13371 ## If we have a custom action on failure, don't print errors, but
13372 ## do set a variable so people can do so.
13373 FONTCONFIG_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.2.0"`
13380 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13381 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13385 if test $succeeded = yes; then
13392 ## Use -lXft if available, unless `--with-xft=no'.
13394 if test "${HAVE_FC}" = "no" ||
test "x${with_x}" = "xno"; then
13397 if test "x${with_xft}" != "xno"; then
13402 # Extract the first word of "pkg-config", so it can be a program name with args.
13403 set dummy pkg-config
; ac_word
=$2
13404 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13405 $as_echo_n "checking for $ac_word... " >&6; }
13406 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13407 $as_echo_n "(cached) " >&6
13409 case $PKG_CONFIG in
13411 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
13414 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13415 for as_dir
in $PATH
13418 test -z "$as_dir" && as_dir
=.
13419 for ac_exec_ext
in '' $ac_executable_extensions; do
13420 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13421 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
13422 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13429 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
13433 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
13434 if test -n "$PKG_CONFIG"; then
13435 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13436 $as_echo "$PKG_CONFIG" >&6; }
13438 { $as_echo "$as_me:$LINENO: result: no" >&5
13439 $as_echo "no" >&6; }
13444 if test "$PKG_CONFIG" = "no" ; then
13447 PKG_CONFIG_MIN_VERSION
=0.9.0
13448 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13449 { $as_echo "$as_me:$LINENO: checking for xft >= 0.13.0" >&5
13450 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
13452 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
13453 { $as_echo "$as_me:$LINENO: result: yes" >&5
13454 $as_echo "yes" >&6; }
13457 { $as_echo "$as_me:$LINENO: checking XFT_CFLAGS" >&5
13458 $as_echo_n "checking XFT_CFLAGS... " >&6; }
13459 XFT_CFLAGS
=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
13460 { $as_echo "$as_me:$LINENO: result: $XFT_CFLAGS" >&5
13461 $as_echo "$XFT_CFLAGS" >&6; }
13463 { $as_echo "$as_me:$LINENO: checking XFT_LIBS" >&5
13464 $as_echo_n "checking XFT_LIBS... " >&6; }
13465 XFT_LIBS
=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
13466 { $as_echo "$as_me:$LINENO: result: $XFT_LIBS" >&5
13467 $as_echo "$XFT_LIBS" >&6; }
13469 { $as_echo "$as_me:$LINENO: result: no" >&5
13470 $as_echo "no" >&6; }
13473 ## If we have a custom action on failure, don't print errors, but
13474 ## do set a variable so people can do so.
13475 XFT_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
13482 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13483 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13487 if test $succeeded = yes; then
13493 if test "$HAVE_XFT" != no
; then
13494 OLD_CPPFLAGS
="$CPPFLAGS"
13495 OLD_CFLAGS
="$CFLAGS"
13497 CPPFLAGS
="$CPPFLAGS $XFT_CFLAGS"
13498 CFLAGS
="$CFLAGS $XFT_CFLAGS"
13499 LIBS
="$XFT_LIBS $LIBS"
13500 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
13501 { $as_echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
13502 $as_echo_n "checking for X11/Xft/Xft.h... " >&6; }
13503 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
13504 $as_echo_n "(cached) " >&6
13506 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
13507 $as_echo "$ac_cv_header_X11_Xft_Xft_h" >&6; }
13509 # Is the header compilable?
13510 { $as_echo "$as_me:$LINENO: checking X11/Xft/Xft.h usability" >&5
13511 $as_echo_n "checking X11/Xft/Xft.h usability... " >&6; }
13512 cat >conftest.
$ac_ext <<_ACEOF
13515 cat confdefs.h
>>conftest.
$ac_ext
13516 cat >>conftest.
$ac_ext <<_ACEOF
13517 /* end confdefs.h. */
13518 $ac_includes_default
13519 #include <X11/Xft/Xft.h>
13521 rm -f conftest.
$ac_objext
13522 if { (ac_try
="$ac_compile"
13523 case "(($ac_try" in
13524 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13525 *) ac_try_echo=$ac_try;;
13527 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13528 $as_echo "$ac_try_echo") >&5
13529 (eval "$ac_compile") 2>conftest.er1
13531 grep -v '^ *+' conftest.er1 >conftest.err
13533 cat conftest.err >&5
13534 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13535 (exit $ac_status); } && {
13536 test -z "$ac_c_werror_flag" ||
13537 test ! -s conftest.err
13538 } && test -s conftest.$ac_objext; then
13539 ac_header_compiler=yes
13541 $as_echo "$as_me: failed program was:" >&5
13542 sed 's/^/| /' conftest.$ac_ext >&5
13544 ac_header_compiler=no
13547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13548 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13549 $as_echo "$ac_header_compiler" >&6; }
13551 # Is the header present?
13552 { $as_echo "$as_me:$LINENO: checking X11/Xft/Xft.h presence" >&5
13553 $as_echo_n "checking X11/Xft/Xft.h presence... " >&6; }
13554 cat >conftest.$ac_ext <<_ACEOF
13557 cat confdefs.h >>conftest.$ac_ext
13558 cat >>conftest.$ac_ext <<_ACEOF
13559 /* end confdefs.h. */
13560 #include <X11/Xft/Xft.h>
13562 if { (ac_try="$ac_cpp conftest.$ac_ext"
13563 case "(($ac_try" in
13564 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13565 *) ac_try_echo
=$ac_try;;
13567 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
13568 $as_echo "$ac_try_echo") >&5
13569 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13571 grep -v '^ *+' conftest.er1
>conftest.err
13573 cat conftest.err
>&5
13574 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13575 (exit $ac_status); } >/dev
/null
&& {
13576 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13577 test ! -s conftest.err
13579 ac_header_preproc
=yes
13581 $as_echo "$as_me: failed program was:" >&5
13582 sed 's/^/| /' conftest.
$ac_ext >&5
13584 ac_header_preproc
=no
13587 rm -f conftest.err conftest.
$ac_ext
13588 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13589 $as_echo "$ac_header_preproc" >&6; }
13591 # So? What about this header?
13592 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13594 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&5
13595 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13596 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&5
13597 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&2;}
13598 ac_header_preproc
=yes
13601 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&5
13602 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&2;}
13603 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&5
13604 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&2;}
13605 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&5
13606 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&2;}
13607 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&5
13608 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&2;}
13609 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&5
13610 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&2;}
13611 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&5
13612 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&2;}
13616 { $as_echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
13617 $as_echo_n "checking for X11/Xft/Xft.h... " >&6; }
13618 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
13619 $as_echo_n "(cached) " >&6
13621 ac_cv_header_X11_Xft_Xft_h
=$ac_header_preproc
13623 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
13624 $as_echo "$ac_cv_header_X11_Xft_Xft_h" >&6; }
13627 if test $ac_cv_header_X11_Xft_Xft_h = yes; then
13628 { $as_echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5
13629 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
13630 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then
13631 $as_echo_n "(cached) " >&6
13633 ac_check_lib_save_LIBS
=$LIBS
13634 LIBS
="-lXft $XFT_LIBS $LIBS"
13635 cat >conftest.
$ac_ext <<_ACEOF
13638 cat confdefs.h
>>conftest.
$ac_ext
13639 cat >>conftest.
$ac_ext <<_ACEOF
13640 /* end confdefs.h. */
13642 /* Override any GCC internal prototype to avoid an error.
13643 Use char because int might match the return type of a GCC
13644 builtin and then its argument prototype would still apply. */
13648 char XftFontOpen ();
13652 return XftFontOpen ();
13657 rm -f conftest.
$ac_objext conftest
$ac_exeext
13658 if { (ac_try
="$ac_link"
13659 case "(($ac_try" in
13660 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13661 *) ac_try_echo=$ac_try;;
13663 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13664 $as_echo "$ac_try_echo") >&5
13665 (eval "$ac_link") 2>conftest.er1
13667 grep -v '^ *+' conftest.er1 >conftest.err
13669 cat conftest.err >&5
13670 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13671 (exit $ac_status); } && {
13672 test -z "$ac_c_werror_flag" ||
13673 test ! -s conftest.err
13674 } && test -s conftest$ac_exeext && {
13675 test "$cross_compiling" = yes ||
13676 $as_test_x conftest$ac_exeext
13678 ac_cv_lib_Xft_XftFontOpen=yes
13680 $as_echo "$as_me: failed program was:" >&5
13681 sed 's/^/| /' conftest.$ac_ext >&5
13683 ac_cv_lib_Xft_XftFontOpen=no
13686 rm -rf conftest.dSYM
13687 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13688 conftest$ac_exeext conftest.$ac_ext
13689 LIBS=$ac_check_lib_save_LIBS
13691 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftFontOpen" >&5
13692 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
13693 if test $ac_cv_lib_Xft_XftFontOpen = yes; then
13701 if test "${HAVE_XFT}" = "yes"; then
13703 cat >>confdefs.h <<\_ACEOF
13708 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
13710 CPPFLAGS="$OLD_CPPFLAGS"
13711 CFLAGS="$OLD_CFLAGS"
13713 fi # "${HAVE_XFT}" = "yes"
13714 fi # "$HAVE_XFT" != no
13715 fi # "x${with_xft}" != "xno"
13717 if test "$HAVE_XFT" != "yes"; then
13723 ## We used to allow building with FreeType and without Xft.
13724 ## However, the ftx font backend driver is not in good shape.
13725 if test "${HAVE_XFT}" = "yes"; then
13732 if test "${HAVE_FREETYPE}" = "yes"; then
13734 cat >>confdefs.h <<\_ACEOF
13735 #define HAVE_FREETYPE 1
13738 if test "${with_libotf}" != "no"; then
13742 # Extract the first word of "pkg-config", so it can be a program name with args.
13743 set dummy pkg-config; ac_word=$2
13744 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13745 $as_echo_n "checking for $ac_word... " >&6; }
13746 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13747 $as_echo_n "(cached) " >&6
13749 case $PKG_CONFIG in
13751 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13755 for as_dir in $PATH
13758 test -z "$as_dir" && as_dir=.
13759 for ac_exec_ext in '' $ac_executable_extensions; do
13760 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13761 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13762 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13769 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13773 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13774 if test -n "$PKG_CONFIG"; then
13775 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13776 $as_echo "$PKG_CONFIG" >&6; }
13778 { $as_echo "$as_me:$LINENO: result: no" >&5
13779 $as_echo "no" >&6; }
13784 if test "$PKG_CONFIG" = "no" ; then
13787 PKG_CONFIG_MIN_VERSION=0.9.0
13788 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13789 { $as_echo "$as_me:$LINENO: checking for libotf" >&5
13790 $as_echo_n "checking for libotf... " >&6; }
13792 if $PKG_CONFIG --exists "libotf" 2>&5; then
13793 { $as_echo "$as_me:$LINENO: result: yes" >&5
13794 $as_echo "yes" >&6; }
13797 { $as_echo "$as_me:$LINENO: checking LIBOTF_CFLAGS" >&5
13798 $as_echo_n "checking LIBOTF_CFLAGS... " >&6; }
13799 LIBOTF_CFLAGS=`$PKG_CONFIG --cflags "libotf"|
sed -e 's,///*,/,g'`
13800 { $as_echo "$as_me:$LINENO: result: $LIBOTF_CFLAGS" >&5
13801 $as_echo "$LIBOTF_CFLAGS" >&6; }
13803 { $as_echo "$as_me:$LINENO: checking LIBOTF_LIBS" >&5
13804 $as_echo_n "checking LIBOTF_LIBS... " >&6; }
13805 LIBOTF_LIBS=`$PKG_CONFIG --libs "libotf"|
sed -e 's,///*,/,g'`
13806 { $as_echo "$as_me:$LINENO: result: $LIBOTF_LIBS" >&5
13807 $as_echo "$LIBOTF_LIBS" >&6; }
13809 { $as_echo "$as_me:$LINENO: result: no" >&5
13810 $as_echo "no" >&6; }
13813 ## If we have a custom action on failure, don't print errors, but
13814 ## do set a variable so people can do so.
13815 LIBOTF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
13822 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13823 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13827 if test $succeeded = yes; then
13833 if test "$HAVE_LIBOTF" = "yes"; then
13835 cat >>confdefs.h <<\_ACEOF
13836 #define HAVE_LIBOTF 1
13839 { $as_echo "$as_me:$LINENO: checking for OTF_get_variation_glyphs in -lotf" >&5
13840 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
13841 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then
13842 $as_echo_n "(cached) " >&6
13844 ac_check_lib_save_LIBS=$LIBS
13846 cat >conftest.$ac_ext <<_ACEOF
13849 cat confdefs.h >>conftest.$ac_ext
13850 cat >>conftest.$ac_ext <<_ACEOF
13851 /* end confdefs.h. */
13853 /* Override any GCC internal prototype to avoid an error.
13854 Use char because int might match the return type of a GCC
13855 builtin and then its argument prototype would still apply. */
13859 char OTF_get_variation_glyphs ();
13863 return OTF_get_variation_glyphs ();
13868 rm -f conftest.$ac_objext conftest$ac_exeext
13869 if { (ac_try="$ac_link"
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_link") 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); } && {
13883 test -z "$ac_c_werror_flag" ||
13884 test ! -s conftest.err
13885 } && test -s conftest
$ac_exeext && {
13886 test "$cross_compiling" = yes ||
13887 $as_test_x conftest
$ac_exeext
13889 ac_cv_lib_otf_OTF_get_variation_glyphs
=yes
13891 $as_echo "$as_me: failed program was:" >&5
13892 sed 's/^/| /' conftest.
$ac_ext >&5
13894 ac_cv_lib_otf_OTF_get_variation_glyphs
=no
13897 rm -rf conftest.dSYM
13898 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
13899 conftest
$ac_exeext conftest.
$ac_ext
13900 LIBS
=$ac_check_lib_save_LIBS
13902 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
13903 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
13904 if test $ac_cv_lib_otf_OTF_get_variation_glyphs = yes; then
13905 HAVE_OTF_GET_VARIATION_GLYPHS
=yes
13907 HAVE_OTF_GET_VARIATION_GLYPHS
=no
13910 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
13912 cat >>confdefs.h
<<\_ACEOF
13913 #define HAVE_OTF_GET_VARIATION_GLYPHS 1
13922 if test "${HAVE_LIBOTF}" = yes; then
13923 if test "${with_m17n_flt}" != "no"; then
13927 # Extract the first word of "pkg-config", so it can be a program name with args.
13928 set dummy pkg-config
; ac_word
=$2
13929 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13930 $as_echo_n "checking for $ac_word... " >&6; }
13931 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13932 $as_echo_n "(cached) " >&6
13934 case $PKG_CONFIG in
13936 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
13939 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13940 for as_dir
in $PATH
13943 test -z "$as_dir" && as_dir
=.
13944 for ac_exec_ext
in '' $ac_executable_extensions; do
13945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13946 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
13947 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13954 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
13958 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
13959 if test -n "$PKG_CONFIG"; then
13960 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13961 $as_echo "$PKG_CONFIG" >&6; }
13963 { $as_echo "$as_me:$LINENO: result: no" >&5
13964 $as_echo "no" >&6; }
13969 if test "$PKG_CONFIG" = "no" ; then
13972 PKG_CONFIG_MIN_VERSION
=0.9.0
13973 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13974 { $as_echo "$as_me:$LINENO: checking for m17n-flt" >&5
13975 $as_echo_n "checking for m17n-flt... " >&6; }
13977 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
13978 { $as_echo "$as_me:$LINENO: result: yes" >&5
13979 $as_echo "yes" >&6; }
13982 { $as_echo "$as_me:$LINENO: checking M17N_FLT_CFLAGS" >&5
13983 $as_echo_n "checking M17N_FLT_CFLAGS... " >&6; }
13984 M17N_FLT_CFLAGS
=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'`
13985 { $as_echo "$as_me:$LINENO: result: $M17N_FLT_CFLAGS" >&5
13986 $as_echo "$M17N_FLT_CFLAGS" >&6; }
13988 { $as_echo "$as_me:$LINENO: checking M17N_FLT_LIBS" >&5
13989 $as_echo_n "checking M17N_FLT_LIBS... " >&6; }
13990 M17N_FLT_LIBS
=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'`
13991 { $as_echo "$as_me:$LINENO: result: $M17N_FLT_LIBS" >&5
13992 $as_echo "$M17N_FLT_LIBS" >&6; }
13994 { $as_echo "$as_me:$LINENO: result: no" >&5
13995 $as_echo "no" >&6; }
13998 ## If we have a custom action on failure, don't print errors, but
13999 ## do set a variable so people can do so.
14000 M17N_FLT_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
14007 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14008 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14012 if test $succeeded = yes; then
14018 if test "$HAVE_M17N_FLT" = "yes"; then
14020 cat >>confdefs.h
<<\_ACEOF
14021 #define HAVE_M17N_FLT 1
14033 ### End of font-backend (under X11) section.
14044 ### Use -lXpm if available, unless `--with-xpm=no'.
14046 if test "${HAVE_X11}" = "yes"; then
14047 if test "${with_xpm}" != "no"; then
14048 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
14049 { $as_echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
14050 $as_echo_n "checking for X11/xpm.h... " >&6; }
14051 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
14052 $as_echo_n "(cached) " >&6
14054 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
14055 $as_echo "$ac_cv_header_X11_xpm_h" >&6; }
14057 # Is the header compilable?
14058 { $as_echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
14059 $as_echo_n "checking X11/xpm.h usability... " >&6; }
14060 cat >conftest.
$ac_ext <<_ACEOF
14063 cat confdefs.h
>>conftest.
$ac_ext
14064 cat >>conftest.
$ac_ext <<_ACEOF
14065 /* end confdefs.h. */
14066 $ac_includes_default
14067 #include <X11/xpm.h>
14069 rm -f conftest.
$ac_objext
14070 if { (ac_try
="$ac_compile"
14071 case "(($ac_try" in
14072 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14073 *) ac_try_echo=$ac_try;;
14075 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14076 $as_echo "$ac_try_echo") >&5
14077 (eval "$ac_compile") 2>conftest.er1
14079 grep -v '^ *+' conftest.er1 >conftest.err
14081 cat conftest.err >&5
14082 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14083 (exit $ac_status); } && {
14084 test -z "$ac_c_werror_flag" ||
14085 test ! -s conftest.err
14086 } && test -s conftest.$ac_objext; then
14087 ac_header_compiler=yes
14089 $as_echo "$as_me: failed program was:" >&5
14090 sed 's/^/| /' conftest.$ac_ext >&5
14092 ac_header_compiler=no
14095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14096 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14097 $as_echo "$ac_header_compiler" >&6; }
14099 # Is the header present?
14100 { $as_echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
14101 $as_echo_n "checking X11/xpm.h presence... " >&6; }
14102 cat >conftest.$ac_ext <<_ACEOF
14105 cat confdefs.h >>conftest.$ac_ext
14106 cat >>conftest.$ac_ext <<_ACEOF
14107 /* end confdefs.h. */
14108 #include <X11/xpm.h>
14110 if { (ac_try="$ac_cpp conftest.$ac_ext"
14111 case "(($ac_try" in
14112 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14113 *) ac_try_echo
=$ac_try;;
14115 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
14116 $as_echo "$ac_try_echo") >&5
14117 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14119 grep -v '^ *+' conftest.er1
>conftest.err
14121 cat conftest.err
>&5
14122 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14123 (exit $ac_status); } >/dev
/null
&& {
14124 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14125 test ! -s conftest.err
14127 ac_header_preproc
=yes
14129 $as_echo "$as_me: failed program was:" >&5
14130 sed 's/^/| /' conftest.
$ac_ext >&5
14132 ac_header_preproc
=no
14135 rm -f conftest.err conftest.
$ac_ext
14136 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14137 $as_echo "$ac_header_preproc" >&6; }
14139 # So? What about this header?
14140 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14142 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
14143 $as_echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14144 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
14145 $as_echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
14146 ac_header_preproc
=yes
14149 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
14150 $as_echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
14151 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
14152 $as_echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
14153 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
14154 $as_echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
14155 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
14156 $as_echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
14157 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
14158 $as_echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
14159 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
14160 $as_echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
14164 { $as_echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
14165 $as_echo_n "checking for X11/xpm.h... " >&6; }
14166 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
14167 $as_echo_n "(cached) " >&6
14169 ac_cv_header_X11_xpm_h
=$ac_header_preproc
14171 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
14172 $as_echo "$ac_cv_header_X11_xpm_h" >&6; }
14175 if test $ac_cv_header_X11_xpm_h = yes; then
14176 { $as_echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
14177 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
14178 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
14179 $as_echo_n "(cached) " >&6
14181 ac_check_lib_save_LIBS
=$LIBS
14182 LIBS
="-lXpm -lX11 $LIBS"
14183 cat >conftest.
$ac_ext <<_ACEOF
14186 cat confdefs.h
>>conftest.
$ac_ext
14187 cat >>conftest.
$ac_ext <<_ACEOF
14188 /* end confdefs.h. */
14190 /* Override any GCC internal prototype to avoid an error.
14191 Use char because int might match the return type of a GCC
14192 builtin and then its argument prototype would still apply. */
14196 char XpmReadFileToPixmap ();
14200 return XpmReadFileToPixmap ();
14205 rm -f conftest.
$ac_objext conftest
$ac_exeext
14206 if { (ac_try
="$ac_link"
14207 case "(($ac_try" in
14208 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14209 *) ac_try_echo=$ac_try;;
14211 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14212 $as_echo "$ac_try_echo") >&5
14213 (eval "$ac_link") 2>conftest.er1
14215 grep -v '^ *+' conftest.er1 >conftest.err
14217 cat conftest.err >&5
14218 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14219 (exit $ac_status); } && {
14220 test -z "$ac_c_werror_flag" ||
14221 test ! -s conftest.err
14222 } && test -s conftest$ac_exeext && {
14223 test "$cross_compiling" = yes ||
14224 $as_test_x conftest$ac_exeext
14226 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
14228 $as_echo "$as_me: failed program was:" >&5
14229 sed 's/^/| /' conftest.$ac_ext >&5
14231 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
14234 rm -rf conftest.dSYM
14235 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14236 conftest$ac_exeext conftest.$ac_ext
14237 LIBS=$ac_check_lib_save_LIBS
14239 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
14240 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
14241 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
14248 if test "${HAVE_XPM}" = "yes"; then
14249 { $as_echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
14250 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
14251 cat >conftest.$ac_ext <<_ACEOF
14254 cat confdefs.h >>conftest.$ac_ext
14255 cat >>conftest.$ac_ext <<_ACEOF
14256 /* end confdefs.h. */
14257 #include "X11/xpm.h"
14258 #ifndef XpmReturnAllocPixels
14259 no_return_alloc_pixels
14263 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14264 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
14272 if test "${HAVE_XPM}" = "yes"; then
14273 { $as_echo "$as_me:$LINENO: result: yes" >&5
14274 $as_echo "yes" >&6; }
14276 { $as_echo "$as_me:$LINENO: result: no" >&5
14277 $as_echo "no" >&6; }
14282 if test "${HAVE_XPM}" = "yes"; then
14284 cat >>confdefs.h <<\_ACEOF
14291 ### Use -ljpeg if available, unless `--with-jpeg=no
'.
14293 if test "${HAVE_X11}" = "yes"; then
14294 if test "${with_jpeg}" != "no"; then
14295 if test "${ac_cv_header_jerror_h+set}" = set; then
14296 { $as_echo "$as_me:$LINENO: checking for jerror.h" >&5
14297 $as_echo_n "checking for jerror.h... " >&6; }
14298 if test "${ac_cv_header_jerror_h+set}" = set; then
14299 $as_echo_n "(cached) " >&6
14301 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
14302 $as_echo "$ac_cv_header_jerror_h" >&6; }
14304 # Is the header compilable?
14305 { $as_echo "$as_me:$LINENO: checking jerror.h usability" >&5
14306 $as_echo_n "checking jerror.h usability... " >&6; }
14307 cat >conftest.$ac_ext <<_ACEOF
14310 cat confdefs.h >>conftest.$ac_ext
14311 cat >>conftest.$ac_ext <<_ACEOF
14312 /* end confdefs.h. */
14313 $ac_includes_default
14314 #include <jerror.h>
14316 rm -f conftest.$ac_objext
14317 if { (ac_try="$ac_compile"
14318 case "(($ac_try" in
14319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14320 *) ac_try_echo=$ac_try;;
14322 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14323 $as_echo "$ac_try_echo") >&5
14324 (eval "$ac_compile") 2>conftest.er1
14326 grep -v '^
*+' conftest.er1 >conftest.err
14328 cat conftest.err >&5
14329 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14330 (exit $ac_status); } && {
14331 test -z "$ac_c_werror_flag" ||
14332 test ! -s conftest.err
14333 } && test -s conftest.$ac_objext; then
14334 ac_header_compiler=yes
14336 $as_echo "$as_me: failed program was:" >&5
14337 sed 's
/^
/|
/' conftest.$ac_ext >&5
14339 ac_header_compiler=no
14342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14343 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14344 $as_echo "$ac_header_compiler" >&6; }
14346 # Is the header present?
14347 { $as_echo "$as_me:$LINENO: checking jerror.h presence" >&5
14348 $as_echo_n "checking jerror.h presence... " >&6; }
14349 cat >conftest.$ac_ext <<_ACEOF
14352 cat confdefs.h >>conftest.$ac_ext
14353 cat >>conftest.$ac_ext <<_ACEOF
14354 /* end confdefs.h. */
14355 #include <jerror.h>
14357 if { (ac_try="$ac_cpp conftest.$ac_ext"
14358 case "(($ac_try" in
14359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14360 *) ac_try_echo=$ac_try;;
14362 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14363 $as_echo "$ac_try_echo") >&5
14364 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14366 grep -v '^
*+' conftest.er1 >conftest.err
14368 cat conftest.err >&5
14369 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14370 (exit $ac_status); } >/dev/null && {
14371 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14372 test ! -s conftest.err
14374 ac_header_preproc=yes
14376 $as_echo "$as_me: failed program was:" >&5
14377 sed 's
/^
/|
/' conftest.$ac_ext >&5
14379 ac_header_preproc=no
14382 rm -f conftest.err conftest.$ac_ext
14383 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14384 $as_echo "$ac_header_preproc" >&6; }
14386 # So? What about this header?
14387 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14389 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
14390 $as_echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14391 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result
" >&5
14392 $as_echo "$as_me: WARNING
: jerror.h
: proceeding with the compiler
's result" >&2;}
14393 ac_header_preproc=yes
14396 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
14397 $as_echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
14398 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
14399 $as_echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
14400 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
14401 $as_echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
14402 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
14403 $as_echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
14404 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result
" >&5
14405 $as_echo "$as_me: WARNING
: jerror.h
: proceeding with the preprocessor
's result" >&2;}
14406 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
14407 $as_echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
14411 { $as_echo "$as_me:$LINENO: checking for jerror.h" >&5
14412 $as_echo_n "checking for jerror.h... " >&6; }
14413 if test "${ac_cv_header_jerror_h+set}" = set; then
14414 $as_echo_n "(cached) " >&6
14416 ac_cv_header_jerror_h=$ac_header_preproc
14418 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
14419 $as_echo "$ac_cv_header_jerror_h" >&6; }
14422 if test $ac_cv_header_jerror_h = yes; then
14423 { $as_echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
14424 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
14425 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
14426 $as_echo_n "(cached) " >&6
14428 ac_check_lib_save_LIBS=$LIBS
14429 LIBS="-ljpeg $LIBS"
14430 cat >conftest.$ac_ext <<_ACEOF
14433 cat confdefs.h >>conftest.$ac_ext
14434 cat >>conftest.$ac_ext <<_ACEOF
14435 /* end confdefs.h. */
14437 /* Override any GCC internal prototype to avoid an error.
14438 Use char because int might match the return type of a GCC
14439 builtin and then its argument prototype would still apply. */
14443 char jpeg_destroy_compress ();
14447 return jpeg_destroy_compress ();
14452 rm -f conftest.$ac_objext conftest$ac_exeext
14453 if { (ac_try="$ac_link"
14454 case "(($ac_try" in
14455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14456 *) ac_try_echo=$ac_try;;
14458 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14459 $as_echo "$ac_try_echo") >&5
14460 (eval "$ac_link") 2>conftest.er1
14462 grep -v '^
*+' conftest.er1 >conftest.err
14464 cat conftest.err >&5
14465 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14466 (exit $ac_status); } && {
14467 test -z "$ac_c_werror_flag" ||
14468 test ! -s conftest.err
14469 } && test -s conftest$ac_exeext && {
14470 test "$cross_compiling" = yes ||
14471 $as_test_x conftest$ac_exeext
14473 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
14475 $as_echo "$as_me: failed program was:" >&5
14476 sed 's
/^
/|
/' conftest.$ac_ext >&5
14478 ac_cv_lib_jpeg_jpeg_destroy_compress=no
14481 rm -rf conftest.dSYM
14482 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14483 conftest$ac_exeext conftest.$ac_ext
14484 LIBS=$ac_check_lib_save_LIBS
14486 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
14487 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
14488 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
14498 if test "${HAVE_JPEG}" = "yes"; then
14499 cat >>confdefs.h <<\_ACEOF
14500 #define HAVE_JPEG 1
14503 cat >conftest.$ac_ext <<_ACEOF
14506 cat confdefs.h >>conftest.$ac_ext
14507 cat >>conftest.$ac_ext <<_ACEOF
14508 /* end confdefs.h. */
14509 #include <jpeglib.h>
14510 version=JPEG_LIB_VERSION
14513 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14514 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
14515 cat >>confdefs.h <<\_ACEOF
14516 #define HAVE_JPEG 1
14520 { $as_echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
14521 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
14529 ### Use -lpng if available, unless `--with-png=no'.
14531 if test "${HAVE_X11}" = "yes"; then
14532 if test "${with_png}" != "no"; then
14533 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
14534 # in /usr/include/libpng.
14537 for ac_header
in png.h libpng
/png.h
14539 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14540 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14541 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14542 $as_echo_n "checking for $ac_header... " >&6; }
14543 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14544 $as_echo_n "(cached) " >&6
14546 ac_res
=`eval 'as_val=${'$as_ac_Header'}
14547 $as_echo "$as_val"'`
14548 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14549 $as_echo "$ac_res" >&6; }
14551 # Is the header compilable?
14552 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14553 $as_echo_n "checking $ac_header usability... " >&6; }
14554 cat >conftest.
$ac_ext <<_ACEOF
14557 cat confdefs.h
>>conftest.
$ac_ext
14558 cat >>conftest.
$ac_ext <<_ACEOF
14559 /* end confdefs.h. */
14560 $ac_includes_default
14561 #include <$ac_header>
14563 rm -f conftest.
$ac_objext
14564 if { (ac_try
="$ac_compile"
14565 case "(($ac_try" in
14566 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14567 *) ac_try_echo=$ac_try;;
14569 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14570 $as_echo "$ac_try_echo") >&5
14571 (eval "$ac_compile") 2>conftest.er1
14573 grep -v '^ *+' conftest.er1 >conftest.err
14575 cat conftest.err >&5
14576 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14577 (exit $ac_status); } && {
14578 test -z "$ac_c_werror_flag" ||
14579 test ! -s conftest.err
14580 } && test -s conftest.$ac_objext; then
14581 ac_header_compiler=yes
14583 $as_echo "$as_me: failed program was:" >&5
14584 sed 's/^/| /' conftest.$ac_ext >&5
14586 ac_header_compiler=no
14589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14590 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14591 $as_echo "$ac_header_compiler" >&6; }
14593 # Is the header present?
14594 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14595 $as_echo_n "checking $ac_header presence... " >&6; }
14596 cat >conftest.$ac_ext <<_ACEOF
14599 cat confdefs.h >>conftest.$ac_ext
14600 cat >>conftest.$ac_ext <<_ACEOF
14601 /* end confdefs.h. */
14602 #include <$ac_header>
14604 if { (ac_try="$ac_cpp conftest.$ac_ext"
14605 case "(($ac_try" in
14606 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14607 *) ac_try_echo
=$ac_try;;
14609 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
14610 $as_echo "$ac_try_echo") >&5
14611 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14613 grep -v '^ *+' conftest.er1
>conftest.err
14615 cat conftest.err
>&5
14616 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14617 (exit $ac_status); } >/dev
/null
&& {
14618 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14619 test ! -s conftest.err
14621 ac_header_preproc
=yes
14623 $as_echo "$as_me: failed program was:" >&5
14624 sed 's/^/| /' conftest.
$ac_ext >&5
14626 ac_header_preproc
=no
14629 rm -f conftest.err conftest.
$ac_ext
14630 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14631 $as_echo "$ac_header_preproc" >&6; }
14633 # So? What about this header?
14634 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14636 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14637 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14638 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14639 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14640 ac_header_preproc
=yes
14643 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14644 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14645 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14646 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14647 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14648 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14649 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14650 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14651 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14652 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14653 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14654 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14658 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14659 $as_echo_n "checking for $ac_header... " >&6; }
14660 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14661 $as_echo_n "(cached) " >&6
14663 eval "$as_ac_Header=\$ac_header_preproc"
14665 ac_res
=`eval 'as_val=${'$as_ac_Header'}
14666 $as_echo "$as_val"'`
14667 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14668 $as_echo "$ac_res" >&6; }
14671 if test `eval 'as_val=${'$as_ac_Header'}
14672 $as_echo "$as_val"'` = yes; then
14673 cat >>confdefs.h
<<_ACEOF
14674 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14681 if test "$ac_cv_header_png_h" = yes ||
test "$ac_cv_header_libpng_png_h" = yes ; then
14682 { $as_echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
14683 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
14684 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
14685 $as_echo_n "(cached) " >&6
14687 ac_check_lib_save_LIBS
=$LIBS
14688 LIBS
="-lpng -lz -lm $LIBS"
14689 cat >conftest.
$ac_ext <<_ACEOF
14692 cat confdefs.h
>>conftest.
$ac_ext
14693 cat >>conftest.
$ac_ext <<_ACEOF
14694 /* end confdefs.h. */
14696 /* Override any GCC internal prototype to avoid an error.
14697 Use char because int might match the return type of a GCC
14698 builtin and then its argument prototype would still apply. */
14702 char png_get_channels ();
14706 return png_get_channels ();
14711 rm -f conftest.
$ac_objext conftest
$ac_exeext
14712 if { (ac_try
="$ac_link"
14713 case "(($ac_try" in
14714 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14715 *) ac_try_echo=$ac_try;;
14717 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14718 $as_echo "$ac_try_echo") >&5
14719 (eval "$ac_link") 2>conftest.er1
14721 grep -v '^ *+' conftest.er1 >conftest.err
14723 cat conftest.err >&5
14724 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14725 (exit $ac_status); } && {
14726 test -z "$ac_c_werror_flag" ||
14727 test ! -s conftest.err
14728 } && test -s conftest$ac_exeext && {
14729 test "$cross_compiling" = yes ||
14730 $as_test_x conftest$ac_exeext
14732 ac_cv_lib_png_png_get_channels=yes
14734 $as_echo "$as_me: failed program was:" >&5
14735 sed 's/^/| /' conftest.$ac_ext >&5
14737 ac_cv_lib_png_png_get_channels=no
14740 rm -rf conftest.dSYM
14741 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14742 conftest$ac_exeext conftest.$ac_ext
14743 LIBS=$ac_check_lib_save_LIBS
14745 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
14746 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
14747 if test $ac_cv_lib_png_png_get_channels = yes; then
14754 if test "${HAVE_PNG}" = "yes"; then
14756 cat >>confdefs.h <<\_ACEOF
14763 ### Use -ltiff if available, unless `--with-tiff=no
'.
14765 if test "${HAVE_X11}" = "yes"; then
14766 if test "${with_tiff}" != "no"; then
14767 if test "${ac_cv_header_tiffio_h+set}" = set; then
14768 { $as_echo "$as_me:$LINENO: checking for tiffio.h" >&5
14769 $as_echo_n "checking for tiffio.h... " >&6; }
14770 if test "${ac_cv_header_tiffio_h+set}" = set; then
14771 $as_echo_n "(cached) " >&6
14773 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
14774 $as_echo "$ac_cv_header_tiffio_h" >&6; }
14776 # Is the header compilable?
14777 { $as_echo "$as_me:$LINENO: checking tiffio.h usability" >&5
14778 $as_echo_n "checking tiffio.h usability... " >&6; }
14779 cat >conftest.$ac_ext <<_ACEOF
14782 cat confdefs.h >>conftest.$ac_ext
14783 cat >>conftest.$ac_ext <<_ACEOF
14784 /* end confdefs.h. */
14785 $ac_includes_default
14786 #include <tiffio.h>
14788 rm -f conftest.$ac_objext
14789 if { (ac_try="$ac_compile"
14790 case "(($ac_try" in
14791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14792 *) ac_try_echo=$ac_try;;
14794 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14795 $as_echo "$ac_try_echo") >&5
14796 (eval "$ac_compile") 2>conftest.er1
14798 grep -v '^
*+' conftest.er1 >conftest.err
14800 cat conftest.err >&5
14801 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14802 (exit $ac_status); } && {
14803 test -z "$ac_c_werror_flag" ||
14804 test ! -s conftest.err
14805 } && test -s conftest.$ac_objext; then
14806 ac_header_compiler=yes
14808 $as_echo "$as_me: failed program was:" >&5
14809 sed 's
/^
/|
/' conftest.$ac_ext >&5
14811 ac_header_compiler=no
14814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14815 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14816 $as_echo "$ac_header_compiler" >&6; }
14818 # Is the header present?
14819 { $as_echo "$as_me:$LINENO: checking tiffio.h presence" >&5
14820 $as_echo_n "checking tiffio.h presence... " >&6; }
14821 cat >conftest.$ac_ext <<_ACEOF
14824 cat confdefs.h >>conftest.$ac_ext
14825 cat >>conftest.$ac_ext <<_ACEOF
14826 /* end confdefs.h. */
14827 #include <tiffio.h>
14829 if { (ac_try="$ac_cpp conftest.$ac_ext"
14830 case "(($ac_try" in
14831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14832 *) ac_try_echo=$ac_try;;
14834 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14835 $as_echo "$ac_try_echo") >&5
14836 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14838 grep -v '^
*+' conftest.er1 >conftest.err
14840 cat conftest.err >&5
14841 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14842 (exit $ac_status); } >/dev/null && {
14843 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14844 test ! -s conftest.err
14846 ac_header_preproc=yes
14848 $as_echo "$as_me: failed program was:" >&5
14849 sed 's
/^
/|
/' conftest.$ac_ext >&5
14851 ac_header_preproc=no
14854 rm -f conftest.err conftest.$ac_ext
14855 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14856 $as_echo "$ac_header_preproc" >&6; }
14858 # So? What about this header?
14859 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14861 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
14862 $as_echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14863 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result
" >&5
14864 $as_echo "$as_me: WARNING
: tiffio.h
: proceeding with the compiler
's result" >&2;}
14865 ac_header_preproc=yes
14868 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
14869 $as_echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
14870 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
14871 $as_echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
14872 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
14873 $as_echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
14874 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
14875 $as_echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
14876 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result
" >&5
14877 $as_echo "$as_me: WARNING
: tiffio.h
: proceeding with the preprocessor
's result" >&2;}
14878 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
14879 $as_echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
14883 { $as_echo "$as_me:$LINENO: checking for tiffio.h" >&5
14884 $as_echo_n "checking for tiffio.h... " >&6; }
14885 if test "${ac_cv_header_tiffio_h+set}" = set; then
14886 $as_echo_n "(cached) " >&6
14888 ac_cv_header_tiffio_h=$ac_header_preproc
14890 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
14891 $as_echo "$ac_cv_header_tiffio_h" >&6; }
14894 if test $ac_cv_header_tiffio_h = yes; then
14896 # At least one tiff package requires the jpeg library.
14897 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
14898 { $as_echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
14899 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
14900 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
14901 $as_echo_n "(cached) " >&6
14903 ac_check_lib_save_LIBS=$LIBS
14904 LIBS="-ltiff $tifflibs $LIBS"
14905 cat >conftest.$ac_ext <<_ACEOF
14908 cat confdefs.h >>conftest.$ac_ext
14909 cat >>conftest.$ac_ext <<_ACEOF
14910 /* end confdefs.h. */
14912 /* Override any GCC internal prototype to avoid an error.
14913 Use char because int might match the return type of a GCC
14914 builtin and then its argument prototype would still apply. */
14918 char TIFFGetVersion ();
14922 return TIFFGetVersion ();
14927 rm -f conftest.$ac_objext conftest$ac_exeext
14928 if { (ac_try="$ac_link"
14929 case "(($ac_try" in
14930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14931 *) ac_try_echo=$ac_try;;
14933 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14934 $as_echo "$ac_try_echo") >&5
14935 (eval "$ac_link") 2>conftest.er1
14937 grep -v '^
*+' conftest.er1 >conftest.err
14939 cat conftest.err >&5
14940 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14941 (exit $ac_status); } && {
14942 test -z "$ac_c_werror_flag" ||
14943 test ! -s conftest.err
14944 } && test -s conftest$ac_exeext && {
14945 test "$cross_compiling" = yes ||
14946 $as_test_x conftest$ac_exeext
14948 ac_cv_lib_tiff_TIFFGetVersion=yes
14950 $as_echo "$as_me: failed program was:" >&5
14951 sed 's
/^
/|
/' conftest.$ac_ext >&5
14953 ac_cv_lib_tiff_TIFFGetVersion=no
14956 rm -rf conftest.dSYM
14957 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14958 conftest$ac_exeext conftest.$ac_ext
14959 LIBS=$ac_check_lib_save_LIBS
14961 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
14962 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
14963 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
14972 if test "${HAVE_TIFF}" = "yes"; then
14974 cat >>confdefs.h <<\_ACEOF
14975 #define HAVE_TIFF 1
14981 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
14983 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
14984 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14985 { $as_echo "$as_me:$LINENO: checking for gif_lib.h" >&5
14986 $as_echo_n "checking for gif_lib.h... " >&6; }
14987 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14988 $as_echo_n "(cached) " >&6
14990 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
14991 $as_echo "$ac_cv_header_gif_lib_h" >&6; }
14993 # Is the header compilable?
14994 { $as_echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
14995 $as_echo_n "checking gif_lib.h usability... " >&6; }
14996 cat >conftest.
$ac_ext <<_ACEOF
14999 cat confdefs.h
>>conftest.
$ac_ext
15000 cat >>conftest.
$ac_ext <<_ACEOF
15001 /* end confdefs.h. */
15002 $ac_includes_default
15003 #include <gif_lib.h>
15005 rm -f conftest.
$ac_objext
15006 if { (ac_try
="$ac_compile"
15007 case "(($ac_try" in
15008 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15009 *) ac_try_echo=$ac_try;;
15011 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15012 $as_echo "$ac_try_echo") >&5
15013 (eval "$ac_compile") 2>conftest.er1
15015 grep -v '^ *+' conftest.er1 >conftest.err
15017 cat conftest.err >&5
15018 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15019 (exit $ac_status); } && {
15020 test -z "$ac_c_werror_flag" ||
15021 test ! -s conftest.err
15022 } && test -s conftest.$ac_objext; then
15023 ac_header_compiler=yes
15025 $as_echo "$as_me: failed program was:" >&5
15026 sed 's/^/| /' conftest.$ac_ext >&5
15028 ac_header_compiler=no
15031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15032 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15033 $as_echo "$ac_header_compiler" >&6; }
15035 # Is the header present?
15036 { $as_echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
15037 $as_echo_n "checking gif_lib.h presence... " >&6; }
15038 cat >conftest.$ac_ext <<_ACEOF
15041 cat confdefs.h >>conftest.$ac_ext
15042 cat >>conftest.$ac_ext <<_ACEOF
15043 /* end confdefs.h. */
15044 #include <gif_lib.h>
15046 if { (ac_try="$ac_cpp conftest.$ac_ext"
15047 case "(($ac_try" in
15048 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15049 *) ac_try_echo
=$ac_try;;
15051 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
15052 $as_echo "$ac_try_echo") >&5
15053 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15055 grep -v '^ *+' conftest.er1
>conftest.err
15057 cat conftest.err
>&5
15058 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15059 (exit $ac_status); } >/dev
/null
&& {
15060 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15061 test ! -s conftest.err
15063 ac_header_preproc
=yes
15065 $as_echo "$as_me: failed program was:" >&5
15066 sed 's/^/| /' conftest.
$ac_ext >&5
15068 ac_header_preproc
=no
15071 rm -f conftest.err conftest.
$ac_ext
15072 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15073 $as_echo "$ac_header_preproc" >&6; }
15075 # So? What about this header?
15076 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15078 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
15079 $as_echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15080 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
15081 $as_echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
15082 ac_header_preproc
=yes
15085 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
15086 $as_echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
15087 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
15088 $as_echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
15089 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
15090 $as_echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
15091 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
15092 $as_echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
15093 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
15094 $as_echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
15095 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
15096 $as_echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
15100 { $as_echo "$as_me:$LINENO: checking for gif_lib.h" >&5
15101 $as_echo_n "checking for gif_lib.h... " >&6; }
15102 if test "${ac_cv_header_gif_lib_h+set}" = set; then
15103 $as_echo_n "(cached) " >&6
15105 ac_cv_header_gif_lib_h
=$ac_header_preproc
15107 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
15108 $as_echo "$ac_cv_header_gif_lib_h" >&6; }
15111 if test $ac_cv_header_gif_lib_h = yes; then
15112 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
15113 # Earlier versions can crash Emacs.
15114 { $as_echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lgif" >&5
15115 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
15116 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then
15117 $as_echo_n "(cached) " >&6
15119 ac_check_lib_save_LIBS
=$LIBS
15121 cat >conftest.
$ac_ext <<_ACEOF
15124 cat confdefs.h
>>conftest.
$ac_ext
15125 cat >>conftest.
$ac_ext <<_ACEOF
15126 /* end confdefs.h. */
15128 /* Override any GCC internal prototype to avoid an error.
15129 Use char because int might match the return type of a GCC
15130 builtin and then its argument prototype would still apply. */
15134 char EGifPutExtensionLast ();
15138 return EGifPutExtensionLast ();
15143 rm -f conftest.
$ac_objext conftest
$ac_exeext
15144 if { (ac_try
="$ac_link"
15145 case "(($ac_try" in
15146 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15147 *) ac_try_echo=$ac_try;;
15149 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15150 $as_echo "$ac_try_echo") >&5
15151 (eval "$ac_link") 2>conftest.er1
15153 grep -v '^ *+' conftest.er1 >conftest.err
15155 cat conftest.err >&5
15156 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15157 (exit $ac_status); } && {
15158 test -z "$ac_c_werror_flag" ||
15159 test ! -s conftest.err
15160 } && test -s conftest$ac_exeext && {
15161 test "$cross_compiling" = yes ||
15162 $as_test_x conftest$ac_exeext
15164 ac_cv_lib_gif_EGifPutExtensionLast=yes
15166 $as_echo "$as_me: failed program was:" >&5
15167 sed 's/^/| /' conftest.$ac_ext >&5
15169 ac_cv_lib_gif_EGifPutExtensionLast=no
15172 rm -rf conftest.dSYM
15173 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15174 conftest$ac_exeext conftest.$ac_ext
15175 LIBS=$ac_check_lib_save_LIBS
15177 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
15178 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
15179 if test $ac_cv_lib_gif_EGifPutExtensionLast = yes; then
15189 if test "$HAVE_GIF" = yes; then
15190 ac_gif_lib_name="-lgif"
15193 # If gif_lib.h but no libgif, try libungif.
15194 if test x"$try_libungif" = xyes; then
15195 { $as_echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
15196 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
15197 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
15198 $as_echo_n "(cached) " >&6
15200 ac_check_lib_save_LIBS=$LIBS
15201 LIBS="-lungif $LIBS"
15202 cat >conftest.$ac_ext <<_ACEOF
15205 cat confdefs.h >>conftest.$ac_ext
15206 cat >>conftest.$ac_ext <<_ACEOF
15207 /* end confdefs.h. */
15209 /* Override any GCC internal prototype to avoid an error.
15210 Use char because int might match the return type of a GCC
15211 builtin and then its argument prototype would still apply. */
15215 char EGifPutExtensionLast ();
15219 return EGifPutExtensionLast ();
15224 rm -f conftest.$ac_objext conftest$ac_exeext
15225 if { (ac_try="$ac_link"
15226 case "(($ac_try" in
15227 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15228 *) ac_try_echo
=$ac_try;;
15230 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
15231 $as_echo "$ac_try_echo") >&5
15232 (eval "$ac_link") 2>conftest.er1
15234 grep -v '^ *+' conftest.er1
>conftest.err
15236 cat conftest.err
>&5
15237 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15238 (exit $ac_status); } && {
15239 test -z "$ac_c_werror_flag" ||
15240 test ! -s conftest.err
15241 } && test -s conftest
$ac_exeext && {
15242 test "$cross_compiling" = yes ||
15243 $as_test_x conftest
$ac_exeext
15245 ac_cv_lib_ungif_EGifPutExtensionLast
=yes
15247 $as_echo "$as_me: failed program was:" >&5
15248 sed 's/^/| /' conftest.
$ac_ext >&5
15250 ac_cv_lib_ungif_EGifPutExtensionLast
=no
15253 rm -rf conftest.dSYM
15254 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15255 conftest
$ac_exeext conftest.
$ac_ext
15256 LIBS
=$ac_check_lib_save_LIBS
15258 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
15259 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
15260 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
15265 if test "$HAVE_GIF" = yes; then
15267 cat >>confdefs.h
<<\_ACEOF
15268 #define LIBGIF -lungif
15271 ac_gif_lib_name
="-lungif"
15275 if test "${HAVE_GIF}" = "yes"; then
15277 cat >>confdefs.h
<<\_ACEOF
15284 if test "${HAVE_X11}" = "yes"; then
15287 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
15288 MISSING
="libXpm" && WITH_NO
="--with-xpm=no"
15289 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
15290 MISSING
="$MISSING libjpeg" && WITH_NO
="$WITH_NO --with-jpeg=no"
15291 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
15292 MISSING
="$MISSING libpng" && WITH_NO
="$WITH_NO --with-png=no"
15293 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
15294 MISSING
="$MISSING libgif/libungif" && WITH_NO
="$WITH_NO --with-gif=no"
15295 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
15296 MISSING
="$MISSING libtiff" && WITH_NO
="$WITH_NO --with-tiff=no"
15298 if test "X${MISSING}" != X
; then
15299 { { $as_echo "$as_me:$LINENO: error: The following required libraries were not found:
15301 Maybe some development libraries/packages are missing?
15302 If you don't want to link with them give
15304 as options to configure" >&5
15305 $as_echo "$as_me: error: The following required libraries were not found:
15307 Maybe some development libraries/packages are missing?
15308 If you don't want to link with them give
15310 as options to configure" >&2;}
15311 { (exit 1); exit 1; }; }
15315 ### Use -lgpm if available, unless `--with-gpm=no'.
15317 if test "${with_gpm}" != "no"; then
15318 if test "${ac_cv_header_gpm_h+set}" = set; then
15319 { $as_echo "$as_me:$LINENO: checking for gpm.h" >&5
15320 $as_echo_n "checking for gpm.h... " >&6; }
15321 if test "${ac_cv_header_gpm_h+set}" = set; then
15322 $as_echo_n "(cached) " >&6
15324 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
15325 $as_echo "$ac_cv_header_gpm_h" >&6; }
15327 # Is the header compilable?
15328 { $as_echo "$as_me:$LINENO: checking gpm.h usability" >&5
15329 $as_echo_n "checking gpm.h usability... " >&6; }
15330 cat >conftest.
$ac_ext <<_ACEOF
15333 cat confdefs.h
>>conftest.
$ac_ext
15334 cat >>conftest.
$ac_ext <<_ACEOF
15335 /* end confdefs.h. */
15336 $ac_includes_default
15339 rm -f conftest.
$ac_objext
15340 if { (ac_try
="$ac_compile"
15341 case "(($ac_try" in
15342 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15343 *) ac_try_echo=$ac_try;;
15345 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15346 $as_echo "$ac_try_echo") >&5
15347 (eval "$ac_compile") 2>conftest.er1
15349 grep -v '^ *+' conftest.er1 >conftest.err
15351 cat conftest.err >&5
15352 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15353 (exit $ac_status); } && {
15354 test -z "$ac_c_werror_flag" ||
15355 test ! -s conftest.err
15356 } && test -s conftest.$ac_objext; then
15357 ac_header_compiler=yes
15359 $as_echo "$as_me: failed program was:" >&5
15360 sed 's/^/| /' conftest.$ac_ext >&5
15362 ac_header_compiler=no
15365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15366 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15367 $as_echo "$ac_header_compiler" >&6; }
15369 # Is the header present?
15370 { $as_echo "$as_me:$LINENO: checking gpm.h presence" >&5
15371 $as_echo_n "checking gpm.h presence... " >&6; }
15372 cat >conftest.$ac_ext <<_ACEOF
15375 cat confdefs.h >>conftest.$ac_ext
15376 cat >>conftest.$ac_ext <<_ACEOF
15377 /* end confdefs.h. */
15380 if { (ac_try="$ac_cpp conftest.$ac_ext"
15381 case "(($ac_try" in
15382 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15383 *) ac_try_echo
=$ac_try;;
15385 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
15386 $as_echo "$ac_try_echo") >&5
15387 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15389 grep -v '^ *+' conftest.er1
>conftest.err
15391 cat conftest.err
>&5
15392 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15393 (exit $ac_status); } >/dev
/null
&& {
15394 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15395 test ! -s conftest.err
15397 ac_header_preproc
=yes
15399 $as_echo "$as_me: failed program was:" >&5
15400 sed 's/^/| /' conftest.
$ac_ext >&5
15402 ac_header_preproc
=no
15405 rm -f conftest.err conftest.
$ac_ext
15406 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15407 $as_echo "$ac_header_preproc" >&6; }
15409 # So? What about this header?
15410 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15412 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
15413 $as_echo "$as_me: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15414 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the compiler's result" >&5
15415 $as_echo "$as_me: WARNING: gpm.h: proceeding with the compiler's result" >&2;}
15416 ac_header_preproc
=yes
15419 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: present but cannot be compiled" >&5
15420 $as_echo "$as_me: WARNING: gpm.h: present but cannot be compiled" >&2;}
15421 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: check for missing prerequisite headers?" >&5
15422 $as_echo "$as_me: WARNING: gpm.h: check for missing prerequisite headers?" >&2;}
15423 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: see the Autoconf documentation" >&5
15424 $as_echo "$as_me: WARNING: gpm.h: see the Autoconf documentation" >&2;}
15425 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&5
15426 $as_echo "$as_me: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
15427 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the preprocessor's result" >&5
15428 $as_echo "$as_me: WARNING: gpm.h: proceeding with the preprocessor's result" >&2;}
15429 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: in the future, the compiler will take precedence" >&5
15430 $as_echo "$as_me: WARNING: gpm.h: in the future, the compiler will take precedence" >&2;}
15434 { $as_echo "$as_me:$LINENO: checking for gpm.h" >&5
15435 $as_echo_n "checking for gpm.h... " >&6; }
15436 if test "${ac_cv_header_gpm_h+set}" = set; then
15437 $as_echo_n "(cached) " >&6
15439 ac_cv_header_gpm_h
=$ac_header_preproc
15441 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
15442 $as_echo "$ac_cv_header_gpm_h" >&6; }
15445 if test $ac_cv_header_gpm_h = yes; then
15446 { $as_echo "$as_me:$LINENO: checking for Gpm_Open in -lgpm" >&5
15447 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
15448 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
15449 $as_echo_n "(cached) " >&6
15451 ac_check_lib_save_LIBS
=$LIBS
15453 cat >conftest.
$ac_ext <<_ACEOF
15456 cat confdefs.h
>>conftest.
$ac_ext
15457 cat >>conftest.
$ac_ext <<_ACEOF
15458 /* end confdefs.h. */
15460 /* Override any GCC internal prototype to avoid an error.
15461 Use char because int might match the return type of a GCC
15462 builtin and then its argument prototype would still apply. */
15470 return Gpm_Open ();
15475 rm -f conftest.
$ac_objext conftest
$ac_exeext
15476 if { (ac_try
="$ac_link"
15477 case "(($ac_try" in
15478 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15479 *) ac_try_echo=$ac_try;;
15481 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15482 $as_echo "$ac_try_echo") >&5
15483 (eval "$ac_link") 2>conftest.er1
15485 grep -v '^ *+' conftest.er1 >conftest.err
15487 cat conftest.err >&5
15488 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15489 (exit $ac_status); } && {
15490 test -z "$ac_c_werror_flag" ||
15491 test ! -s conftest.err
15492 } && test -s conftest$ac_exeext && {
15493 test "$cross_compiling" = yes ||
15494 $as_test_x conftest$ac_exeext
15496 ac_cv_lib_gpm_Gpm_Open=yes
15498 $as_echo "$as_me: failed program was:" >&5
15499 sed 's/^/| /' conftest.$ac_ext >&5
15501 ac_cv_lib_gpm_Gpm_Open=no
15504 rm -rf conftest.dSYM
15505 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15506 conftest$ac_exeext conftest.$ac_ext
15507 LIBS=$ac_check_lib_save_LIBS
15509 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gpm_Gpm_Open" >&5
15510 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
15511 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
15520 if test "${HAVE_GPM}" = "yes"; then
15522 cat >>confdefs.h <<\_ACEOF
15528 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
15529 { $as_echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
15530 $as_echo_n "checking for malloc/malloc.h... " >&6; }
15531 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
15532 $as_echo_n "(cached) " >&6
15534 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
15535 $as_echo "$ac_cv_header_malloc_malloc_h" >&6; }
15537 # Is the header compilable?
15538 { $as_echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
15539 $as_echo_n "checking malloc/malloc.h usability... " >&6; }
15540 cat >conftest.$ac_ext <<_ACEOF
15543 cat confdefs.h >>conftest.$ac_ext
15544 cat >>conftest.$ac_ext <<_ACEOF
15545 /* end confdefs.h. */
15546 $ac_includes_default
15547 #include <malloc/malloc.h>
15549 rm -f conftest.$ac_objext
15550 if { (ac_try="$ac_compile"
15551 case "(($ac_try" in
15552 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15553 *) ac_try_echo
=$ac_try;;
15555 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
15556 $as_echo "$ac_try_echo") >&5
15557 (eval "$ac_compile") 2>conftest.er1
15559 grep -v '^ *+' conftest.er1
>conftest.err
15561 cat conftest.err
>&5
15562 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15563 (exit $ac_status); } && {
15564 test -z "$ac_c_werror_flag" ||
15565 test ! -s conftest.err
15566 } && test -s conftest.
$ac_objext; then
15567 ac_header_compiler
=yes
15569 $as_echo "$as_me: failed program was:" >&5
15570 sed 's/^/| /' conftest.
$ac_ext >&5
15572 ac_header_compiler
=no
15575 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15576 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15577 $as_echo "$ac_header_compiler" >&6; }
15579 # Is the header present?
15580 { $as_echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
15581 $as_echo_n "checking malloc/malloc.h presence... " >&6; }
15582 cat >conftest.
$ac_ext <<_ACEOF
15585 cat confdefs.h
>>conftest.
$ac_ext
15586 cat >>conftest.
$ac_ext <<_ACEOF
15587 /* end confdefs.h. */
15588 #include <malloc/malloc.h>
15590 if { (ac_try
="$ac_cpp conftest.$ac_ext"
15591 case "(($ac_try" in
15592 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15593 *) ac_try_echo=$ac_try;;
15595 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15596 $as_echo "$ac_try_echo") >&5
15597 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15599 grep -v '^ *+' conftest.er1 >conftest.err
15601 cat conftest.err >&5
15602 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15603 (exit $ac_status); } >/dev/null && {
15604 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15605 test ! -s conftest.err
15607 ac_header_preproc=yes
15609 $as_echo "$as_me: failed program was:" >&5
15610 sed 's/^/| /' conftest.$ac_ext >&5
15612 ac_header_preproc=no
15615 rm -f conftest.err conftest.$ac_ext
15616 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15617 $as_echo "$ac_header_preproc" >&6; }
15619 # So? What about this header?
15620 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15622 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
15623 $as_echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15624 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
15625 $as_echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
15626 ac_header_preproc=yes
15629 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
15630 $as_echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
15631 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
15632 $as_echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
15633 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
15634 $as_echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
15635 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
15636 $as_echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
15637 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
15638 $as_echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
15639 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
15640 $as_echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
15644 { $as_echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
15645 $as_echo_n "checking for malloc/malloc.h... " >&6; }
15646 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
15647 $as_echo_n "(cached) " >&6
15649 ac_cv_header_malloc_malloc_h=$ac_header_preproc
15651 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
15652 $as_echo "$ac_cv_header_malloc_malloc_h" >&6; }
15655 if test $ac_cv_header_malloc_malloc_h = yes; then
15657 cat >>confdefs.h <<\_ACEOF
15658 #define HAVE_MALLOC_MALLOC_H 1
15665 ### Use NeXTstep API to implement GUI.
15666 if test "${HAVE_NS}" = "yes"; then
15668 cat >>confdefs.h <<\_ACEOF
15672 if test "${NS_IMPL_COCOA}" = "yes"; then
15674 cat >>confdefs.h <<\_ACEOF
15675 #define NS_IMPL_COCOA 1
15680 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
15682 cat >>confdefs.h <<\_ACEOF
15683 #define NS_IMPL_GNUSTEP 1
15686 GNU_OBJC_CFLAGS="-fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE"
15688 if test "${NS_HAVE_NSINTEGER}" = "yes"; then
15690 cat >>confdefs.h <<\_ACEOF
15691 #define NS_HAVE_NSINTEGER 1
15695 # We also have mouse menus.
15701 ### Use session management (-lSM -lICE) if available
15703 if test "${HAVE_X11}" = "yes"; then
15704 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
15705 { $as_echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
15706 $as_echo_n "checking for X11/SM/SMlib.h... " >&6; }
15707 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
15708 $as_echo_n "(cached) " >&6
15710 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
15711 $as_echo "$ac_cv_header_X11_SM_SMlib_h" >&6; }
15713 # Is the header compilable?
15714 { $as_echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
15715 $as_echo_n "checking X11/SM/SMlib.h usability... " >&6; }
15716 cat >conftest.$ac_ext <<_ACEOF
15719 cat confdefs.h >>conftest.$ac_ext
15720 cat >>conftest.$ac_ext <<_ACEOF
15721 /* end confdefs.h. */
15722 $ac_includes_default
15723 #include <X11/SM/SMlib.h>
15725 rm -f conftest.$ac_objext
15726 if { (ac_try="$ac_compile"
15727 case "(($ac_try" in
15728 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15729 *) ac_try_echo
=$ac_try;;
15731 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
15732 $as_echo "$ac_try_echo") >&5
15733 (eval "$ac_compile") 2>conftest.er1
15735 grep -v '^ *+' conftest.er1
>conftest.err
15737 cat conftest.err
>&5
15738 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15739 (exit $ac_status); } && {
15740 test -z "$ac_c_werror_flag" ||
15741 test ! -s conftest.err
15742 } && test -s conftest.
$ac_objext; then
15743 ac_header_compiler
=yes
15745 $as_echo "$as_me: failed program was:" >&5
15746 sed 's/^/| /' conftest.
$ac_ext >&5
15748 ac_header_compiler
=no
15751 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15752 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15753 $as_echo "$ac_header_compiler" >&6; }
15755 # Is the header present?
15756 { $as_echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
15757 $as_echo_n "checking X11/SM/SMlib.h presence... " >&6; }
15758 cat >conftest.
$ac_ext <<_ACEOF
15761 cat confdefs.h
>>conftest.
$ac_ext
15762 cat >>conftest.
$ac_ext <<_ACEOF
15763 /* end confdefs.h. */
15764 #include <X11/SM/SMlib.h>
15766 if { (ac_try
="$ac_cpp conftest.$ac_ext"
15767 case "(($ac_try" in
15768 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15769 *) ac_try_echo=$ac_try;;
15771 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15772 $as_echo "$ac_try_echo") >&5
15773 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15775 grep -v '^ *+' conftest.er1 >conftest.err
15777 cat conftest.err >&5
15778 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15779 (exit $ac_status); } >/dev/null && {
15780 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15781 test ! -s conftest.err
15783 ac_header_preproc=yes
15785 $as_echo "$as_me: failed program was:" >&5
15786 sed 's/^/| /' conftest.$ac_ext >&5
15788 ac_header_preproc=no
15791 rm -f conftest.err conftest.$ac_ext
15792 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15793 $as_echo "$ac_header_preproc" >&6; }
15795 # So? What about this header?
15796 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15798 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
15799 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15800 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
15801 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
15802 ac_header_preproc=yes
15805 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
15806 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
15807 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
15808 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
15809 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
15810 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
15811 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
15812 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
15813 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
15814 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
15815 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
15816 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
15820 { $as_echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
15821 $as_echo_n "checking for X11/SM/SMlib.h... " >&6; }
15822 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
15823 $as_echo_n "(cached) " >&6
15825 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
15827 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
15828 $as_echo "$ac_cv_header_X11_SM_SMlib_h" >&6; }
15831 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
15832 { $as_echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
15833 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
15834 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
15835 $as_echo_n "(cached) " >&6
15837 ac_check_lib_save_LIBS=$LIBS
15838 LIBS="-lSM -lICE $LIBS"
15839 cat >conftest.$ac_ext <<_ACEOF
15842 cat confdefs.h >>conftest.$ac_ext
15843 cat >>conftest.$ac_ext <<_ACEOF
15844 /* end confdefs.h. */
15846 /* Override any GCC internal prototype to avoid an error.
15847 Use char because int might match the return type of a GCC
15848 builtin and then its argument prototype would still apply. */
15852 char SmcOpenConnection ();
15856 return SmcOpenConnection ();
15861 rm -f conftest.$ac_objext conftest$ac_exeext
15862 if { (ac_try="$ac_link"
15863 case "(($ac_try" in
15864 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15865 *) ac_try_echo
=$ac_try;;
15867 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
15868 $as_echo "$ac_try_echo") >&5
15869 (eval "$ac_link") 2>conftest.er1
15871 grep -v '^ *+' conftest.er1
>conftest.err
15873 cat conftest.err
>&5
15874 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15875 (exit $ac_status); } && {
15876 test -z "$ac_c_werror_flag" ||
15877 test ! -s conftest.err
15878 } && test -s conftest
$ac_exeext && {
15879 test "$cross_compiling" = yes ||
15880 $as_test_x conftest
$ac_exeext
15882 ac_cv_lib_SM_SmcOpenConnection
=yes
15884 $as_echo "$as_me: failed program was:" >&5
15885 sed 's/^/| /' conftest.
$ac_ext >&5
15887 ac_cv_lib_SM_SmcOpenConnection
=no
15890 rm -rf conftest.dSYM
15891 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15892 conftest
$ac_exeext conftest.
$ac_ext
15893 LIBS
=$ac_check_lib_save_LIBS
15895 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
15896 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
15897 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
15905 if test "${HAVE_X_SM}" = "yes"; then
15907 cat >>confdefs.h
<<\_ACEOF
15908 #define HAVE_X_SM 1
15913 *) LIBS
="-lSM -lICE $LIBS" ;;
15918 # If netdb.h doesn't declare h_errno, we must declare it by hand.
15919 { $as_echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
15920 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
15921 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
15922 $as_echo_n "(cached) " >&6
15924 cat >conftest.
$ac_ext <<_ACEOF
15927 cat confdefs.h
>>conftest.
$ac_ext
15928 cat >>conftest.
$ac_ext <<_ACEOF
15929 /* end confdefs.h. */
15939 rm -f conftest.
$ac_objext conftest
$ac_exeext
15940 if { (ac_try
="$ac_link"
15941 case "(($ac_try" in
15942 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15943 *) ac_try_echo=$ac_try;;
15945 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15946 $as_echo "$ac_try_echo") >&5
15947 (eval "$ac_link") 2>conftest.er1
15949 grep -v '^ *+' conftest.er1 >conftest.err
15951 cat conftest.err >&5
15952 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15953 (exit $ac_status); } && {
15954 test -z "$ac_c_werror_flag" ||
15955 test ! -s conftest.err
15956 } && test -s conftest$ac_exeext && {
15957 test "$cross_compiling" = yes ||
15958 $as_test_x conftest$ac_exeext
15960 emacs_cv_netdb_declares_h_errno=yes
15962 $as_echo "$as_me: failed program was:" >&5
15963 sed 's/^/| /' conftest.$ac_ext >&5
15965 emacs_cv_netdb_declares_h_errno=no
15968 rm -rf conftest.dSYM
15969 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15970 conftest$ac_exeext conftest.$ac_ext
15972 { $as_echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
15973 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
15974 if test $emacs_cv_netdb_declares_h_errno = yes; then
15976 cat >>confdefs.h <<\_ACEOF
15977 #define HAVE_H_ERRNO 1
15982 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15983 # for constant arguments. Useless!
15984 { $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
15985 $as_echo_n "checking for working alloca.h... " >&6; }
15986 if test "${ac_cv_working_alloca_h+set}" = set; then
15987 $as_echo_n "(cached) " >&6
15989 cat >conftest.$ac_ext <<_ACEOF
15992 cat confdefs.h >>conftest.$ac_ext
15993 cat >>conftest.$ac_ext <<_ACEOF
15994 /* end confdefs.h. */
15995 #include <alloca.h>
15999 char *p = (char *) alloca (2 * sizeof (int));
16005 rm -f conftest.$ac_objext conftest$ac_exeext
16006 if { (ac_try="$ac_link"
16007 case "(($ac_try" in
16008 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16009 *) ac_try_echo
=$ac_try;;
16011 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
16012 $as_echo "$ac_try_echo") >&5
16013 (eval "$ac_link") 2>conftest.er1
16015 grep -v '^ *+' conftest.er1
>conftest.err
16017 cat conftest.err
>&5
16018 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16019 (exit $ac_status); } && {
16020 test -z "$ac_c_werror_flag" ||
16021 test ! -s conftest.err
16022 } && test -s conftest
$ac_exeext && {
16023 test "$cross_compiling" = yes ||
16024 $as_test_x conftest
$ac_exeext
16026 ac_cv_working_alloca_h
=yes
16028 $as_echo "$as_me: failed program was:" >&5
16029 sed 's/^/| /' conftest.
$ac_ext >&5
16031 ac_cv_working_alloca_h
=no
16034 rm -rf conftest.dSYM
16035 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
16036 conftest
$ac_exeext conftest.
$ac_ext
16038 { $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
16039 $as_echo "$ac_cv_working_alloca_h" >&6; }
16040 if test $ac_cv_working_alloca_h = yes; then
16042 cat >>confdefs.h
<<\_ACEOF
16043 #define HAVE_ALLOCA_H 1
16048 { $as_echo "$as_me:$LINENO: checking for alloca" >&5
16049 $as_echo_n "checking for alloca... " >&6; }
16050 if test "${ac_cv_func_alloca_works+set}" = set; then
16051 $as_echo_n "(cached) " >&6
16053 cat >conftest.
$ac_ext <<_ACEOF
16056 cat confdefs.h
>>conftest.
$ac_ext
16057 cat >>conftest.
$ac_ext <<_ACEOF
16058 /* end confdefs.h. */
16060 # define alloca __builtin_alloca
16063 # include <malloc.h>
16064 # define alloca _alloca
16066 # ifdef HAVE_ALLOCA_H
16067 # include <alloca.h>
16072 # ifndef alloca /* predefined by HP cc +Olibcalls */
16083 char *p = (char *) alloca (1);
16089 rm -f conftest.
$ac_objext conftest
$ac_exeext
16090 if { (ac_try
="$ac_link"
16091 case "(($ac_try" in
16092 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16093 *) ac_try_echo=$ac_try;;
16095 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16096 $as_echo "$ac_try_echo") >&5
16097 (eval "$ac_link") 2>conftest.er1
16099 grep -v '^ *+' conftest.er1 >conftest.err
16101 cat conftest.err >&5
16102 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16103 (exit $ac_status); } && {
16104 test -z "$ac_c_werror_flag" ||
16105 test ! -s conftest.err
16106 } && test -s conftest$ac_exeext && {
16107 test "$cross_compiling" = yes ||
16108 $as_test_x conftest$ac_exeext
16110 ac_cv_func_alloca_works=yes
16112 $as_echo "$as_me: failed program was:" >&5
16113 sed 's/^/| /' conftest.$ac_ext >&5
16115 ac_cv_func_alloca_works=no
16118 rm -rf conftest.dSYM
16119 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16120 conftest$ac_exeext conftest.$ac_ext
16122 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
16123 $as_echo "$ac_cv_func_alloca_works" >&6; }
16125 if test $ac_cv_func_alloca_works = yes; then
16127 cat >>confdefs.h <<\_ACEOF
16128 #define HAVE_ALLOCA 1
16132 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
16133 # that cause trouble. Some versions do not even contain alloca or
16134 # contain a buggy version. If you still want to use their alloca,
16135 # use ar to extract alloca.o from them instead of compiling alloca.c.
16137 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
16139 cat >>confdefs.h <<\_ACEOF
16144 { $as_echo "$as_me:$LINENO: checking whether \`alloca.c
' needs Cray hooks" >&5
16145 $as_echo_n "checking whether \`alloca.c' needs Cray hooks...
" >&6; }
16146 if test "${ac_cv_os_cray+set}" = set; then
16147 $as_echo_n "(cached
) " >&6
16149 cat >conftest.$ac_ext <<_ACEOF
16152 cat confdefs.h >>conftest.$ac_ext
16153 cat >>conftest.$ac_ext <<_ACEOF
16154 /* end confdefs.h. */
16155 #if defined CRAY && ! defined CRAY2
16162 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
16163 $EGREP "webecray
" >/dev/null 2>&1; then
16171 { $as_echo "$as_me:$LINENO: result
: $ac_cv_os_cray" >&5
16172 $as_echo "$ac_cv_os_cray" >&6; }
16173 if test $ac_cv_os_cray = yes; then
16174 for ac_func in _getb67 GETB67 getb67; do
16175 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
16176 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
16177 $as_echo_n "checking
for $ac_func...
" >&6; }
16178 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
16179 $as_echo_n "(cached
) " >&6
16181 cat >conftest.$ac_ext <<_ACEOF
16184 cat confdefs.h >>conftest.$ac_ext
16185 cat >>conftest.$ac_ext <<_ACEOF
16186 /* end confdefs.h. */
16187 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16188 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16189 #define $ac_func innocuous_$ac_func
16191 /* System header to define __stub macros and hopefully few prototypes,
16192 which can conflict with char $ac_func (); below.
16193 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16194 <limits.h> exists even on freestanding compilers. */
16197 # include <limits.h>
16199 # include <assert.h>
16204 /* Override any GCC internal prototype to avoid an error.
16205 Use char because int might match the return type of a GCC
16206 builtin and then its argument prototype would still apply. */
16211 /* The GNU C library defines this for functions which it implements
16212 to always fail with ENOSYS. Some functions are actually named
16213 something starting with __ and the normal name is an alias. */
16214 #if defined __stub_$ac_func || defined __stub___$ac_func
16221 return $ac_func ();
16226 rm -f conftest.$ac_objext conftest$ac_exeext
16227 if { (ac_try="$ac_link"
16228 case "(($ac_try" in
16229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16230 *) ac_try_echo=$ac_try;;
16232 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
16233 $as_echo "$ac_try_echo") >&5
16234 (eval "$ac_link") 2>conftest.er1
16236 grep -v '^ *+' conftest.er1 >conftest.err
16238 cat conftest.err >&5
16239 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16240 (exit $ac_status); } && {
16241 test -z "$ac_c_werror_flag" ||
16242 test ! -s conftest.err
16243 } && test -s conftest$ac_exeext && {
16244 test "$cross_compiling" = yes ||
16245 $as_test_x conftest$ac_exeext
16247 eval "$as_ac_var=yes"
16249 $as_echo "$as_me: failed program was
:" >&5
16250 sed 's/^/| /' conftest.$ac_ext >&5
16252 eval "$as_ac_var=no
"
16255 rm -rf conftest.dSYM
16256 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16257 conftest$ac_exeext conftest.$ac_ext
16259 ac_res=`eval 'as_val=${'$as_ac_var'}
16260 $as_echo "$as_val"'`
16261 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
16262 $as_echo "$ac_res" >&6; }
16263 if test `eval 'as_val=${'$as_ac_var'}
16264 $as_echo "$as_val"'` = yes; then
16266 cat >>confdefs.h <<_ACEOF
16267 #define CRAY_STACKSEG_END $ac_func
16276 { $as_echo "$as_me:$LINENO: checking stack direction
for C alloca
" >&5
16277 $as_echo_n "checking stack direction
for C alloca...
" >&6; }
16278 if test "${ac_cv_c_stack_direction+set}" = set; then
16279 $as_echo_n "(cached
) " >&6
16281 if test "$cross_compiling" = yes; then
16282 ac_cv_c_stack_direction=0
16284 cat >conftest.$ac_ext <<_ACEOF
16287 cat confdefs.h >>conftest.$ac_ext
16288 cat >>conftest.$ac_ext <<_ACEOF
16289 /* end confdefs.h. */
16290 $ac_includes_default
16292 find_stack_direction ()
16294 static char *addr = 0;
16299 return find_stack_direction ();
16302 return (&dummy > addr) ? 1 : -1;
16308 return find_stack_direction () < 0;
16311 rm -f conftest$ac_exeext
16312 if { (ac_try="$ac_link"
16313 case "(($ac_try" in
16314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16315 *) ac_try_echo=$ac_try;;
16317 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
16318 $as_echo "$ac_try_echo") >&5
16319 (eval "$ac_link") 2>&5
16321 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16322 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16323 { (case "(($ac_try" in
16324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16325 *) ac_try_echo=$ac_try;;
16327 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
16328 $as_echo "$ac_try_echo") >&5
16329 (eval "$ac_try") 2>&5
16331 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16332 (exit $ac_status); }; }; then
16333 ac_cv_c_stack_direction=1
16335 $as_echo "$as_me: program exited with status
$ac_status" >&5
16336 $as_echo "$as_me: failed program was
:" >&5
16337 sed 's/^/| /' conftest.$ac_ext >&5
16339 ( exit $ac_status )
16340 ac_cv_c_stack_direction=-1
16342 rm -rf conftest.dSYM
16343 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16348 { $as_echo "$as_me:$LINENO: result
: $ac_cv_c_stack_direction" >&5
16349 $as_echo "$ac_cv_c_stack_direction" >&6; }
16351 cat >>confdefs.h <<_ACEOF
16352 #define STACK_DIRECTION $ac_cv_c_stack_direction
16359 if test x"$ac_cv_func_alloca_works" != xyes; then
16360 { { $as_echo "$as_me:$LINENO: error
: a system implementation of alloca is required
" >&5
16361 $as_echo "$as_me: error
: a system implementation of alloca is required
" >&2;}
16362 { (exit 1); exit 1; }; }
16365 # fmod, logb, and frexp are found in -lm on most systems.
16366 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
16368 { $as_echo "$as_me:$LINENO: checking
for sqrt
in -lm" >&5
16369 $as_echo_n "checking
for sqrt
in -lm...
" >&6; }
16370 if test "${ac_cv_lib_m_sqrt+set}" = set; then
16371 $as_echo_n "(cached
) " >&6
16373 ac_check_lib_save_LIBS=$LIBS
16375 cat >conftest.$ac_ext <<_ACEOF
16378 cat confdefs.h >>conftest.$ac_ext
16379 cat >>conftest.$ac_ext <<_ACEOF
16380 /* end confdefs.h. */
16382 /* Override any GCC internal prototype to avoid an error.
16383 Use char because int might match the return type of a GCC
16384 builtin and then its argument prototype would still apply. */
16397 rm -f conftest.$ac_objext conftest$ac_exeext
16398 if { (ac_try="$ac_link"
16399 case "(($ac_try" in
16400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16401 *) ac_try_echo=$ac_try;;
16403 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
16404 $as_echo "$ac_try_echo") >&5
16405 (eval "$ac_link") 2>conftest.er1
16407 grep -v '^ *+' conftest.er1 >conftest.err
16409 cat conftest.err >&5
16410 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16411 (exit $ac_status); } && {
16412 test -z "$ac_c_werror_flag" ||
16413 test ! -s conftest.err
16414 } && test -s conftest$ac_exeext && {
16415 test "$cross_compiling" = yes ||
16416 $as_test_x conftest$ac_exeext
16418 ac_cv_lib_m_sqrt=yes
16420 $as_echo "$as_me: failed program was
:" >&5
16421 sed 's/^/| /' conftest.$ac_ext >&5
16423 ac_cv_lib_m_sqrt=no
16426 rm -rf conftest.dSYM
16427 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16428 conftest$ac_exeext conftest.$ac_ext
16429 LIBS=$ac_check_lib_save_LIBS
16431 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_m_sqrt" >&5
16432 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
16433 if test $ac_cv_lib_m_sqrt = yes; then
16434 cat >>confdefs.h <<_ACEOF
16435 #define HAVE_LIBM 1
16443 # Check for mail-locking functions in a "mail" library. Probably this should
16444 # have the same check as for liblockfile below.
16446 { $as_echo "$as_me:$LINENO: checking
for maillock
in -lmail" >&5
16447 $as_echo_n "checking
for maillock
in -lmail...
" >&6; }
16448 if test "${ac_cv_lib_mail_maillock+set}" = set; then
16449 $as_echo_n "(cached
) " >&6
16451 ac_check_lib_save_LIBS=$LIBS
16452 LIBS="-lmail $LIBS"
16453 cat >conftest.$ac_ext <<_ACEOF
16456 cat confdefs.h >>conftest.$ac_ext
16457 cat >>conftest.$ac_ext <<_ACEOF
16458 /* end confdefs.h. */
16460 /* Override any GCC internal prototype to avoid an error.
16461 Use char because int might match the return type of a GCC
16462 builtin and then its argument prototype would still apply. */
16470 return maillock ();
16475 rm -f conftest.$ac_objext conftest$ac_exeext
16476 if { (ac_try="$ac_link"
16477 case "(($ac_try" in
16478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16479 *) ac_try_echo=$ac_try;;
16481 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
16482 $as_echo "$ac_try_echo") >&5
16483 (eval "$ac_link") 2>conftest.er1
16485 grep -v '^ *+' conftest.er1 >conftest.err
16487 cat conftest.err >&5
16488 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16489 (exit $ac_status); } && {
16490 test -z "$ac_c_werror_flag" ||
16491 test ! -s conftest.err
16492 } && test -s conftest$ac_exeext && {
16493 test "$cross_compiling" = yes ||
16494 $as_test_x conftest$ac_exeext
16496 ac_cv_lib_mail_maillock=yes
16498 $as_echo "$as_me: failed program was
:" >&5
16499 sed 's/^/| /' conftest.$ac_ext >&5
16501 ac_cv_lib_mail_maillock=no
16504 rm -rf conftest.dSYM
16505 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16506 conftest$ac_exeext conftest.$ac_ext
16507 LIBS=$ac_check_lib_save_LIBS
16509 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_mail_maillock" >&5
16510 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
16511 if test $ac_cv_lib_mail_maillock = yes; then
16512 cat >>confdefs.h <<_ACEOF
16513 #define HAVE_LIBMAIL 1
16516 LIBS="-lmail $LIBS"
16521 { $as_echo "$as_me:$LINENO: checking
for maillock
in -llockfile" >&5
16522 $as_echo_n "checking
for maillock
in -llockfile...
" >&6; }
16523 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
16524 $as_echo_n "(cached
) " >&6
16526 ac_check_lib_save_LIBS=$LIBS
16527 LIBS="-llockfile $LIBS"
16528 cat >conftest.$ac_ext <<_ACEOF
16531 cat confdefs.h >>conftest.$ac_ext
16532 cat >>conftest.$ac_ext <<_ACEOF
16533 /* end confdefs.h. */
16535 /* Override any GCC internal prototype to avoid an error.
16536 Use char because int might match the return type of a GCC
16537 builtin and then its argument prototype would still apply. */
16545 return maillock ();
16550 rm -f conftest.$ac_objext conftest$ac_exeext
16551 if { (ac_try="$ac_link"
16552 case "(($ac_try" in
16553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16554 *) ac_try_echo=$ac_try;;
16556 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
16557 $as_echo "$ac_try_echo") >&5
16558 (eval "$ac_link") 2>conftest.er1
16560 grep -v '^ *+' conftest.er1 >conftest.err
16562 cat conftest.err >&5
16563 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16564 (exit $ac_status); } && {
16565 test -z "$ac_c_werror_flag" ||
16566 test ! -s conftest.err
16567 } && test -s conftest$ac_exeext && {
16568 test "$cross_compiling" = yes ||
16569 $as_test_x conftest$ac_exeext
16571 ac_cv_lib_lockfile_maillock=yes
16573 $as_echo "$as_me: failed program was
:" >&5
16574 sed 's/^/| /' conftest.$ac_ext >&5
16576 ac_cv_lib_lockfile_maillock=no
16579 rm -rf conftest.dSYM
16580 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16581 conftest$ac_exeext conftest.$ac_ext
16582 LIBS=$ac_check_lib_save_LIBS
16584 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_lockfile_maillock" >&5
16585 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
16586 if test $ac_cv_lib_lockfile_maillock = yes; then
16587 cat >>confdefs.h <<_ACEOF
16588 #define HAVE_LIBLOCKFILE 1
16591 LIBS="-llockfile $LIBS"
16595 # If we have the shared liblockfile, assume we must use it for mail
16596 # locking (e.g. Debian). If we couldn't link against liblockfile
16597 # (no liblockfile.a installed), ensure that we don't need to.
16598 if test "$ac_cv_lib_lockfile_maillock" = no; then
16599 # Extract the first word of "liblockfile.so
", so it can be a program name with args.
16600 set dummy liblockfile.so; ac_word=$2
16601 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
16602 $as_echo_n "checking
for $ac_word...
" >&6; }
16603 if test "${ac_cv_prog_liblockfile+set}" = set; then
16604 $as_echo_n "(cached
) " >&6
16606 if test -n "$liblockfile"; then
16607 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
16609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16610 as_dummy="/usr
/lib
:/lib
:/usr
/local
/lib
:$LD_LIBRARY_PATH"
16611 for as_dir in $as_dummy
16614 test -z "$as_dir" && as_dir=.
16615 for ac_exec_ext in '' $ac_executable_extensions; do
16616 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16617 ac_cv_prog_liblockfile="yes"
16618 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
16625 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no
"
16628 liblockfile=$ac_cv_prog_liblockfile
16629 if test -n "$liblockfile"; then
16630 { $as_echo "$as_me:$LINENO: result
: $liblockfile" >&5
16631 $as_echo "$liblockfile" >&6; }
16633 { $as_echo "$as_me:$LINENO: result
: no
" >&5
16634 $as_echo "no
" >&6; }
16638 if test $ac_cv_prog_liblockfile = yes; then
16639 { { $as_echo "$as_me:$LINENO: error
: Shared liblockfile found but can
't link against it.
16640 This probably means that movemail could lose mail.
16641 There may be a \`development' package to
install containing liblockfile.
" >&5
16642 $as_echo "$as_me: error
: Shared liblockfile found but can
't link against it.
16643 This probably means that movemail could lose mail.
16644 There may be a \`development' package to
install containing liblockfile.
" >&2;}
16645 { (exit 1); exit 1; }; }
16650 for ac_func in touchlock
16652 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
16653 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
16654 $as_echo_n "checking
for $ac_func...
" >&6; }
16655 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
16656 $as_echo_n "(cached
) " >&6
16658 cat >conftest.$ac_ext <<_ACEOF
16661 cat confdefs.h >>conftest.$ac_ext
16662 cat >>conftest.$ac_ext <<_ACEOF
16663 /* end confdefs.h. */
16664 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16665 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16666 #define $ac_func innocuous_$ac_func
16668 /* System header to define __stub macros and hopefully few prototypes,
16669 which can conflict with char $ac_func (); below.
16670 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16671 <limits.h> exists even on freestanding compilers. */
16674 # include <limits.h>
16676 # include <assert.h>
16681 /* Override any GCC internal prototype to avoid an error.
16682 Use char because int might match the return type of a GCC
16683 builtin and then its argument prototype would still apply. */
16688 /* The GNU C library defines this for functions which it implements
16689 to always fail with ENOSYS. Some functions are actually named
16690 something starting with __ and the normal name is an alias. */
16691 #if defined __stub_$ac_func || defined __stub___$ac_func
16698 return $ac_func ();
16703 rm -f conftest.$ac_objext conftest$ac_exeext
16704 if { (ac_try="$ac_link"
16705 case "(($ac_try" in
16706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16707 *) ac_try_echo=$ac_try;;
16709 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
16710 $as_echo "$ac_try_echo") >&5
16711 (eval "$ac_link") 2>conftest.er1
16713 grep -v '^ *+' conftest.er1 >conftest.err
16715 cat conftest.err >&5
16716 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16717 (exit $ac_status); } && {
16718 test -z "$ac_c_werror_flag" ||
16719 test ! -s conftest.err
16720 } && test -s conftest$ac_exeext && {
16721 test "$cross_compiling" = yes ||
16722 $as_test_x conftest$ac_exeext
16724 eval "$as_ac_var=yes"
16726 $as_echo "$as_me: failed program was
:" >&5
16727 sed 's/^/| /' conftest.$ac_ext >&5
16729 eval "$as_ac_var=no
"
16732 rm -rf conftest.dSYM
16733 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16734 conftest$ac_exeext conftest.$ac_ext
16736 ac_res=`eval 'as_val=${'$as_ac_var'}
16737 $as_echo "$as_val"'`
16738 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
16739 $as_echo "$ac_res" >&6; }
16740 if test `eval 'as_val=${'$as_ac_var'}
16741 $as_echo "$as_val"'` = yes; then
16742 cat >>confdefs.h <<_ACEOF
16743 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
16750 for ac_header in maillock.h
16752 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
16753 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16754 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
16755 $as_echo_n "checking
for $ac_header...
" >&6; }
16756 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16757 $as_echo_n "(cached
) " >&6
16759 ac_res=`eval 'as_val=${'$as_ac_Header'}
16760 $as_echo "$as_val"'`
16761 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
16762 $as_echo "$ac_res" >&6; }
16764 # Is the header compilable?
16765 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
16766 $as_echo_n "checking
$ac_header usability...
" >&6; }
16767 cat >conftest.$ac_ext <<_ACEOF
16770 cat confdefs.h >>conftest.$ac_ext
16771 cat >>conftest.$ac_ext <<_ACEOF
16772 /* end confdefs.h. */
16773 $ac_includes_default
16774 #include <$ac_header>
16776 rm -f conftest.$ac_objext
16777 if { (ac_try="$ac_compile"
16778 case "(($ac_try" in
16779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16780 *) ac_try_echo=$ac_try;;
16782 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
16783 $as_echo "$ac_try_echo") >&5
16784 (eval "$ac_compile") 2>conftest.er1
16786 grep -v '^ *+' conftest.er1 >conftest.err
16788 cat conftest.err >&5
16789 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16790 (exit $ac_status); } && {
16791 test -z "$ac_c_werror_flag" ||
16792 test ! -s conftest.err
16793 } && test -s conftest.$ac_objext; then
16794 ac_header_compiler=yes
16796 $as_echo "$as_me: failed program was
:" >&5
16797 sed 's/^/| /' conftest.$ac_ext >&5
16799 ac_header_compiler=no
16802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16803 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
16804 $as_echo "$ac_header_compiler" >&6; }
16806 # Is the header present?
16807 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
16808 $as_echo_n "checking
$ac_header presence...
" >&6; }
16809 cat >conftest.$ac_ext <<_ACEOF
16812 cat confdefs.h >>conftest.$ac_ext
16813 cat >>conftest.$ac_ext <<_ACEOF
16814 /* end confdefs.h. */
16815 #include <$ac_header>
16817 if { (ac_try="$ac_cpp conftest.
$ac_ext"
16818 case "(($ac_try" in
16819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16820 *) ac_try_echo=$ac_try;;
16822 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
16823 $as_echo "$ac_try_echo") >&5
16824 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
16826 grep -v '^ *+' conftest.er1 >conftest.err
16828 cat conftest.err >&5
16829 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16830 (exit $ac_status); } >/dev/null && {
16831 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16832 test ! -s conftest.err
16834 ac_header_preproc=yes
16836 $as_echo "$as_me: failed program was
:" >&5
16837 sed 's/^/| /' conftest.$ac_ext >&5
16839 ac_header_preproc=no
16842 rm -f conftest.err conftest.$ac_ext
16843 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
16844 $as_echo "$ac_header_preproc" >&6; }
16846 # So? What about this header?
16847 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16849 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
16850 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
16851 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
16852 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
16853 ac_header_preproc=yes
16856 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
16857 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
16858 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
16859 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
16860 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
16861 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
16862 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
16863 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
16864 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
16865 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
16866 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
16867 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
16871 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
16872 $as_echo_n "checking
for $ac_header...
" >&6; }
16873 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16874 $as_echo_n "(cached
) " >&6
16876 eval "$as_ac_Header=\
$ac_header_preproc"
16878 ac_res=`eval 'as_val=${'$as_ac_Header'}
16879 $as_echo "$as_val"'`
16880 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
16881 $as_echo "$ac_res" >&6; }
16884 if test `eval 'as_val=${'$as_ac_Header'}
16885 $as_echo "$as_val"'` = yes; then
16886 cat >>confdefs.h <<_ACEOF
16887 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
16966 for ac_func in gethostname getdomainname dup2 \
16967 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
16968 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime setsid \
16969 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
16970 utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \
16971 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
16972 sendto recvfrom getsockopt setsockopt getsockname getpeername \
16973 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
16974 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign \
16975 cfmakeraw cfsetspeed
16977 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
16978 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
16979 $as_echo_n "checking
for $ac_func...
" >&6; }
16980 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
16981 $as_echo_n "(cached
) " >&6
16983 cat >conftest.$ac_ext <<_ACEOF
16986 cat confdefs.h >>conftest.$ac_ext
16987 cat >>conftest.$ac_ext <<_ACEOF
16988 /* end confdefs.h. */
16989 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16990 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16991 #define $ac_func innocuous_$ac_func
16993 /* System header to define __stub macros and hopefully few prototypes,
16994 which can conflict with char $ac_func (); below.
16995 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16996 <limits.h> exists even on freestanding compilers. */
16999 # include <limits.h>
17001 # include <assert.h>
17006 /* Override any GCC internal prototype to avoid an error.
17007 Use char because int might match the return type of a GCC
17008 builtin and then its argument prototype would still apply. */
17013 /* The GNU C library defines this for functions which it implements
17014 to always fail with ENOSYS. Some functions are actually named
17015 something starting with __ and the normal name is an alias. */
17016 #if defined __stub_$ac_func || defined __stub___$ac_func
17023 return $ac_func ();
17028 rm -f conftest.$ac_objext conftest$ac_exeext
17029 if { (ac_try="$ac_link"
17030 case "(($ac_try" in
17031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17032 *) ac_try_echo=$ac_try;;
17034 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
17035 $as_echo "$ac_try_echo") >&5
17036 (eval "$ac_link") 2>conftest.er1
17038 grep -v '^ *+' conftest.er1 >conftest.err
17040 cat conftest.err >&5
17041 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17042 (exit $ac_status); } && {
17043 test -z "$ac_c_werror_flag" ||
17044 test ! -s conftest.err
17045 } && test -s conftest$ac_exeext && {
17046 test "$cross_compiling" = yes ||
17047 $as_test_x conftest$ac_exeext
17049 eval "$as_ac_var=yes"
17051 $as_echo "$as_me: failed program was
:" >&5
17052 sed 's/^/| /' conftest.$ac_ext >&5
17054 eval "$as_ac_var=no
"
17057 rm -rf conftest.dSYM
17058 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17059 conftest$ac_exeext conftest.$ac_ext
17061 ac_res=`eval 'as_val=${'$as_ac_var'}
17062 $as_echo "$as_val"'`
17063 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
17064 $as_echo "$ac_res" >&6; }
17065 if test `eval 'as_val=${'$as_ac_var'}
17066 $as_echo "$as_val"'` = yes; then
17067 cat >>confdefs.h <<_ACEOF
17068 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
17076 for ac_header in sys/un.h
17078 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
17079 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17080 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
17081 $as_echo_n "checking
for $ac_header...
" >&6; }
17082 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17083 $as_echo_n "(cached
) " >&6
17085 ac_res=`eval 'as_val=${'$as_ac_Header'}
17086 $as_echo "$as_val"'`
17087 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
17088 $as_echo "$ac_res" >&6; }
17090 # Is the header compilable?
17091 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
17092 $as_echo_n "checking
$ac_header usability...
" >&6; }
17093 cat >conftest.$ac_ext <<_ACEOF
17096 cat confdefs.h >>conftest.$ac_ext
17097 cat >>conftest.$ac_ext <<_ACEOF
17098 /* end confdefs.h. */
17099 $ac_includes_default
17100 #include <$ac_header>
17102 rm -f conftest.$ac_objext
17103 if { (ac_try="$ac_compile"
17104 case "(($ac_try" in
17105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17106 *) ac_try_echo=$ac_try;;
17108 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
17109 $as_echo "$ac_try_echo") >&5
17110 (eval "$ac_compile") 2>conftest.er1
17112 grep -v '^ *+' conftest.er1 >conftest.err
17114 cat conftest.err >&5
17115 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17116 (exit $ac_status); } && {
17117 test -z "$ac_c_werror_flag" ||
17118 test ! -s conftest.err
17119 } && test -s conftest.$ac_objext; then
17120 ac_header_compiler=yes
17122 $as_echo "$as_me: failed program was
:" >&5
17123 sed 's/^/| /' conftest.$ac_ext >&5
17125 ac_header_compiler=no
17128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17129 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17130 $as_echo "$ac_header_compiler" >&6; }
17132 # Is the header present?
17133 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
17134 $as_echo_n "checking
$ac_header presence...
" >&6; }
17135 cat >conftest.$ac_ext <<_ACEOF
17138 cat confdefs.h >>conftest.$ac_ext
17139 cat >>conftest.$ac_ext <<_ACEOF
17140 /* end confdefs.h. */
17141 #include <$ac_header>
17143 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17144 case "(($ac_try" in
17145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17146 *) ac_try_echo=$ac_try;;
17148 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
17149 $as_echo "$ac_try_echo") >&5
17150 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17152 grep -v '^ *+' conftest.er1 >conftest.err
17154 cat conftest.err >&5
17155 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17156 (exit $ac_status); } >/dev/null && {
17157 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17158 test ! -s conftest.err
17160 ac_header_preproc=yes
17162 $as_echo "$as_me: failed program was
:" >&5
17163 sed 's/^/| /' conftest.$ac_ext >&5
17165 ac_header_preproc=no
17168 rm -f conftest.err conftest.$ac_ext
17169 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17170 $as_echo "$ac_header_preproc" >&6; }
17172 # So? What about this header?
17173 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17175 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
17176 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17177 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
17178 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
17179 ac_header_preproc=yes
17182 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
17183 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
17184 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
17185 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
17186 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
17187 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
17188 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
17189 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
17190 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
17191 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
17192 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
17193 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
17197 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
17198 $as_echo_n "checking
for $ac_header...
" >&6; }
17199 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17200 $as_echo_n "(cached
) " >&6
17202 eval "$as_ac_Header=\
$ac_header_preproc"
17204 ac_res=`eval 'as_val=${'$as_ac_Header'}
17205 $as_echo "$as_val"'`
17206 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
17207 $as_echo "$ac_res" >&6; }
17210 if test `eval 'as_val=${'$as_ac_Header'}
17211 $as_echo "$as_val"'` = yes; then
17212 cat >>confdefs.h <<_ACEOF
17213 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
17225 for ac_header in $ac_header_list
17227 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
17228 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17229 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
17230 $as_echo_n "checking
for $ac_header...
" >&6; }
17231 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17232 $as_echo_n "(cached
) " >&6
17234 ac_res=`eval 'as_val=${'$as_ac_Header'}
17235 $as_echo "$as_val"'`
17236 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
17237 $as_echo "$ac_res" >&6; }
17239 # Is the header compilable?
17240 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
17241 $as_echo_n "checking
$ac_header usability...
" >&6; }
17242 cat >conftest.$ac_ext <<_ACEOF
17245 cat confdefs.h >>conftest.$ac_ext
17246 cat >>conftest.$ac_ext <<_ACEOF
17247 /* end confdefs.h. */
17248 $ac_includes_default
17249 #include <$ac_header>
17251 rm -f conftest.$ac_objext
17252 if { (ac_try="$ac_compile"
17253 case "(($ac_try" in
17254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17255 *) ac_try_echo=$ac_try;;
17257 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
17258 $as_echo "$ac_try_echo") >&5
17259 (eval "$ac_compile") 2>conftest.er1
17261 grep -v '^ *+' conftest.er1 >conftest.err
17263 cat conftest.err >&5
17264 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17265 (exit $ac_status); } && {
17266 test -z "$ac_c_werror_flag" ||
17267 test ! -s conftest.err
17268 } && test -s conftest.$ac_objext; then
17269 ac_header_compiler=yes
17271 $as_echo "$as_me: failed program was
:" >&5
17272 sed 's/^/| /' conftest.$ac_ext >&5
17274 ac_header_compiler=no
17277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17278 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17279 $as_echo "$ac_header_compiler" >&6; }
17281 # Is the header present?
17282 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
17283 $as_echo_n "checking
$ac_header presence...
" >&6; }
17284 cat >conftest.$ac_ext <<_ACEOF
17287 cat confdefs.h >>conftest.$ac_ext
17288 cat >>conftest.$ac_ext <<_ACEOF
17289 /* end confdefs.h. */
17290 #include <$ac_header>
17292 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17293 case "(($ac_try" in
17294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17295 *) ac_try_echo=$ac_try;;
17297 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
17298 $as_echo "$ac_try_echo") >&5
17299 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17301 grep -v '^ *+' conftest.er1 >conftest.err
17303 cat conftest.err >&5
17304 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17305 (exit $ac_status); } >/dev/null && {
17306 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17307 test ! -s conftest.err
17309 ac_header_preproc=yes
17311 $as_echo "$as_me: failed program was
:" >&5
17312 sed 's/^/| /' conftest.$ac_ext >&5
17314 ac_header_preproc=no
17317 rm -f conftest.err conftest.$ac_ext
17318 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17319 $as_echo "$ac_header_preproc" >&6; }
17321 # So? What about this header?
17322 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17324 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
17325 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17326 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
17327 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
17328 ac_header_preproc=yes
17331 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
17332 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
17333 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
17334 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
17335 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
17336 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
17337 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
17338 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
17339 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
17340 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
17341 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
17342 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
17346 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
17347 $as_echo_n "checking
for $ac_header...
" >&6; }
17348 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17349 $as_echo_n "(cached
) " >&6
17351 eval "$as_ac_Header=\
$ac_header_preproc"
17353 ac_res=`eval 'as_val=${'$as_ac_Header'}
17354 $as_echo "$as_val"'`
17355 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
17356 $as_echo "$ac_res" >&6; }
17359 if test `eval 'as_val=${'$as_ac_Header'}
17360 $as_echo "$as_val"'` = yes; then
17361 cat >>confdefs.h <<_ACEOF
17362 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
17377 for ac_func in $ac_func_list
17379 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
17380 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
17381 $as_echo_n "checking
for $ac_func...
" >&6; }
17382 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
17383 $as_echo_n "(cached
) " >&6
17385 cat >conftest.$ac_ext <<_ACEOF
17388 cat confdefs.h >>conftest.$ac_ext
17389 cat >>conftest.$ac_ext <<_ACEOF
17390 /* end confdefs.h. */
17391 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17392 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17393 #define $ac_func innocuous_$ac_func
17395 /* System header to define __stub macros and hopefully few prototypes,
17396 which can conflict with char $ac_func (); below.
17397 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17398 <limits.h> exists even on freestanding compilers. */
17401 # include <limits.h>
17403 # include <assert.h>
17408 /* Override any GCC internal prototype to avoid an error.
17409 Use char because int might match the return type of a GCC
17410 builtin and then its argument prototype would still apply. */
17415 /* The GNU C library defines this for functions which it implements
17416 to always fail with ENOSYS. Some functions are actually named
17417 something starting with __ and the normal name is an alias. */
17418 #if defined __stub_$ac_func || defined __stub___$ac_func
17425 return $ac_func ();
17430 rm -f conftest.$ac_objext conftest$ac_exeext
17431 if { (ac_try="$ac_link"
17432 case "(($ac_try" in
17433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17434 *) ac_try_echo=$ac_try;;
17436 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
17437 $as_echo "$ac_try_echo") >&5
17438 (eval "$ac_link") 2>conftest.er1
17440 grep -v '^ *+' conftest.er1 >conftest.err
17442 cat conftest.err >&5
17443 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17444 (exit $ac_status); } && {
17445 test -z "$ac_c_werror_flag" ||
17446 test ! -s conftest.err
17447 } && test -s conftest$ac_exeext && {
17448 test "$cross_compiling" = yes ||
17449 $as_test_x conftest$ac_exeext
17451 eval "$as_ac_var=yes"
17453 $as_echo "$as_me: failed program was
:" >&5
17454 sed 's/^/| /' conftest.$ac_ext >&5
17456 eval "$as_ac_var=no
"
17459 rm -rf conftest.dSYM
17460 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17461 conftest$ac_exeext conftest.$ac_ext
17463 ac_res=`eval 'as_val=${'$as_ac_var'}
17464 $as_echo "$as_val"'`
17465 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
17466 $as_echo "$ac_res" >&6; }
17467 if test `eval 'as_val=${'$as_ac_var'}
17468 $as_echo "$as_val"'` = yes; then
17469 cat >>confdefs.h <<_ACEOF
17470 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
17492 { $as_echo "$as_me:$LINENO: checking
for working mktime
" >&5
17493 $as_echo_n "checking
for working mktime...
" >&6; }
17494 if test "${ac_cv_func_working_mktime+set}" = set; then
17495 $as_echo_n "(cached
) " >&6
17497 if test "$cross_compiling" = yes; then
17498 ac_cv_func_working_mktime=no
17500 cat >conftest.$ac_ext <<_ACEOF
17503 cat confdefs.h >>conftest.$ac_ext
17504 cat >>conftest.$ac_ext <<_ACEOF
17505 /* end confdefs.h. */
17506 /* Test program from Paul Eggert and Tony Leneis. */
17507 #ifdef TIME_WITH_SYS_TIME
17508 # include <sys/time.h>
17511 # ifdef HAVE_SYS_TIME_H
17512 # include <sys/time.h>
17518 #include <limits.h>
17519 #include <stdlib.h>
17521 #ifdef HAVE_UNISTD_H
17522 # include <unistd.h>
17526 # define alarm(X) /* empty */
17529 /* Work around redefinition to rpl_putenv by other config tests. */
17532 static time_t time_t_max;
17533 static time_t time_t_min;
17535 /* Values we'll use to set the TZ environment variable. */
17536 static char *tz_strings[] = {
17537 (char *) 0, "TZ
=GMT0
", "TZ
=JST-9
",
17538 "TZ
=EST
+3EDT
+2,M10.1
.0/00:00:00,M2.3
.0/00:00:00"
17540 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
17542 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
17543 Based on a problem report from Andreas Jaeger. */
17545 spring_forward_gap ()
17547 /* glibc (up to about 1998-10-07) failed this test. */
17550 /* Use the portable POSIX.1 specification "TZ
=PST8PDT
,M4.1
.0,M10.5
.0"
17551 instead of "TZ
=America
/Vancouver
" in order to detect the bug even
17552 on systems that don't support the Olson extension, or don't have the
17553 full zoneinfo tables installed. */
17554 putenv ("TZ
=PST8PDT
,M4.1
.0,M10.5
.0");
17563 return mktime (&tm) != (time_t) -1;
17571 return ! (lt = localtime (&now)) || mktime (lt) == now;
17578 return (mktime_test1 (now)
17579 && mktime_test1 ((time_t) (time_t_max - now))
17580 && mktime_test1 ((time_t) (time_t_min + now)));
17586 /* Based on code from Ariel Faigon. */
17596 return tm.tm_mon == 2 && tm.tm_mday == 31;
17605 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
17606 now = mktime (&tm);
17607 if (now != (time_t) -1)
17609 struct tm *lt = localtime (&now);
17611 && lt->tm_year == tm.tm_year
17612 && lt->tm_mon == tm.tm_mon
17613 && lt->tm_mday == tm.tm_mday
17614 && lt->tm_hour == tm.tm_hour
17615 && lt->tm_min == tm.tm_min
17616 && lt->tm_sec == tm.tm_sec
17617 && lt->tm_yday == tm.tm_yday
17618 && lt->tm_wday == tm.tm_wday
17619 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
17620 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
17629 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
17630 ignoring leap seconds. */
17631 unsigned long int answer = 2527315200UL;
17635 tm.tm_year = 2050 - 1900;
17638 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
17641 /* Use the portable POSIX.1 specification "TZ
=PST8PDT
,M4.1
.0,M10.5
.0"
17642 instead of "TZ
=America
/Vancouver
" in order to detect the bug even
17643 on systems that don't support the Olson extension, or don't have the
17644 full zoneinfo tables installed. */
17645 putenv ("TZ
=PST8PDT
,M4.1
.0,M10.5
.0");
17649 /* Check that the result is either a failure, or close enough
17650 to the correct answer that we can assume the discrepancy is
17651 due to leap seconds. */
17652 return (t == (time_t) -1
17653 || (0 < t && answer - 120 <= t && t <= answer + 120));
17662 /* This test makes some buggy mktime implementations loop.
17663 Give up after 60 seconds; a mktime slower than that
17664 isn't worth using anyway. */
17669 t = (time_t_max << 1) + 1;
17670 if (t <= time_t_max)
17674 time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
17676 delta = time_t_max / 997; /* a suitable prime number */
17677 for (i = 0; i < N_STRINGS; i++)
17680 putenv (tz_strings[i]);
17682 for (t = 0; t <= time_t_max - delta; t += delta)
17683 if (! mktime_test (t))
17685 if (! (mktime_test ((time_t) 1)
17686 && mktime_test ((time_t) (60 * 60))
17687 && mktime_test ((time_t) (60 * 60 * 24))))
17690 for (j = 1; ; j <<= 1)
17691 if (! bigtime_test (j))
17693 else if (INT_MAX / 2 < j)
17695 if (! bigtime_test (INT_MAX))
17698 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
17701 rm -f conftest$ac_exeext
17702 if { (ac_try="$ac_link"
17703 case "(($ac_try" in
17704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17705 *) ac_try_echo=$ac_try;;
17707 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
17708 $as_echo "$ac_try_echo") >&5
17709 (eval "$ac_link") 2>&5
17711 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17712 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17713 { (case "(($ac_try" in
17714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17715 *) ac_try_echo=$ac_try;;
17717 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
17718 $as_echo "$ac_try_echo") >&5
17719 (eval "$ac_try") 2>&5
17721 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17722 (exit $ac_status); }; }; then
17723 ac_cv_func_working_mktime=yes
17725 $as_echo "$as_me: program exited with status
$ac_status" >&5
17726 $as_echo "$as_me: failed program was
:" >&5
17727 sed 's/^/| /' conftest.$ac_ext >&5
17729 ( exit $ac_status )
17730 ac_cv_func_working_mktime=no
17732 rm -rf conftest.dSYM
17733 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17738 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func_working_mktime" >&5
17739 $as_echo "$ac_cv_func_working_mktime" >&6; }
17740 if test $ac_cv_func_working_mktime = no; then
17741 case " $LIBOBJS " in
17742 *" mktime.
$ac_objext "* ) ;;
17743 *) LIBOBJS="$LIBOBJS mktime.
$ac_objext"
17749 if test "$ac_cv_func_working_mktime" = no; then
17751 cat >>confdefs.h <<\_ACEOF
17752 #define BROKEN_MKTIME 1
17757 ac_have_func=no # yes means we've found a way to get the load average.
17759 # Make sure getloadavg.c is where it belongs, at configure-time.
17760 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c
" ||
17761 { { $as_echo "$as_me:$LINENO: error
: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing
" >&5
17762 $as_echo "$as_me: error
: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing
" >&2;}
17763 { (exit 1); exit 1; }; }
17767 # Check for getloadavg, but be sure not to touch the cache variable.
17768 ({ $as_echo "$as_me:$LINENO: checking
for getloadavg
" >&5
17769 $as_echo_n "checking
for getloadavg...
" >&6; }
17770 if test "${ac_cv_func_getloadavg+set}" = set; then
17771 $as_echo_n "(cached
) " >&6
17773 cat >conftest.$ac_ext <<_ACEOF
17776 cat confdefs.h >>conftest.$ac_ext
17777 cat >>conftest.$ac_ext <<_ACEOF
17778 /* end confdefs.h. */
17779 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
17780 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17781 #define getloadavg innocuous_getloadavg
17783 /* System header to define __stub macros and hopefully few prototypes,
17784 which can conflict with char getloadavg (); below.
17785 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17786 <limits.h> exists even on freestanding compilers. */
17789 # include <limits.h>
17791 # include <assert.h>
17796 /* Override any GCC internal prototype to avoid an error.
17797 Use char because int might match the return type of a GCC
17798 builtin and then its argument prototype would still apply. */
17802 char getloadavg ();
17803 /* The GNU C library defines this for functions which it implements
17804 to always fail with ENOSYS. Some functions are actually named
17805 something starting with __ and the normal name is an alias. */
17806 #if defined __stub_getloadavg || defined __stub___getloadavg
17813 return getloadavg ();
17818 rm -f conftest.$ac_objext conftest$ac_exeext
17819 if { (ac_try="$ac_link"
17820 case "(($ac_try" in
17821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17822 *) ac_try_echo=$ac_try;;
17824 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
17825 $as_echo "$ac_try_echo") >&5
17826 (eval "$ac_link") 2>conftest.er1
17828 grep -v '^ *+' conftest.er1 >conftest.err
17830 cat conftest.err >&5
17831 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17832 (exit $ac_status); } && {
17833 test -z "$ac_c_werror_flag" ||
17834 test ! -s conftest.err
17835 } && test -s conftest$ac_exeext && {
17836 test "$cross_compiling" = yes ||
17837 $as_test_x conftest$ac_exeext
17839 ac_cv_func_getloadavg=yes
17841 $as_echo "$as_me: failed program was
:" >&5
17842 sed 's/^/| /' conftest.$ac_ext >&5
17844 ac_cv_func_getloadavg=no
17847 rm -rf conftest.dSYM
17848 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17849 conftest$ac_exeext conftest.$ac_ext
17851 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func_getloadavg" >&5
17852 $as_echo "$ac_cv_func_getloadavg" >&6; }
17853 if test $ac_cv_func_getloadavg = yes; then
17858 ) && ac_have_func=yes
17860 # On HPUX9, an unprivileged user can get load averages through this function.
17862 for ac_func in pstat_getdynamic
17864 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
17865 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
17866 $as_echo_n "checking
for $ac_func...
" >&6; }
17867 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
17868 $as_echo_n "(cached
) " >&6
17870 cat >conftest.$ac_ext <<_ACEOF
17873 cat confdefs.h >>conftest.$ac_ext
17874 cat >>conftest.$ac_ext <<_ACEOF
17875 /* end confdefs.h. */
17876 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17877 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17878 #define $ac_func innocuous_$ac_func
17880 /* System header to define __stub macros and hopefully few prototypes,
17881 which can conflict with char $ac_func (); below.
17882 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17883 <limits.h> exists even on freestanding compilers. */
17886 # include <limits.h>
17888 # include <assert.h>
17893 /* Override any GCC internal prototype to avoid an error.
17894 Use char because int might match the return type of a GCC
17895 builtin and then its argument prototype would still apply. */
17900 /* The GNU C library defines this for functions which it implements
17901 to always fail with ENOSYS. Some functions are actually named
17902 something starting with __ and the normal name is an alias. */
17903 #if defined __stub_$ac_func || defined __stub___$ac_func
17910 return $ac_func ();
17915 rm -f conftest.$ac_objext conftest$ac_exeext
17916 if { (ac_try="$ac_link"
17917 case "(($ac_try" in
17918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17919 *) ac_try_echo=$ac_try;;
17921 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
17922 $as_echo "$ac_try_echo") >&5
17923 (eval "$ac_link") 2>conftest.er1
17925 grep -v '^ *+' conftest.er1 >conftest.err
17927 cat conftest.err >&5
17928 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17929 (exit $ac_status); } && {
17930 test -z "$ac_c_werror_flag" ||
17931 test ! -s conftest.err
17932 } && test -s conftest$ac_exeext && {
17933 test "$cross_compiling" = yes ||
17934 $as_test_x conftest$ac_exeext
17936 eval "$as_ac_var=yes"
17938 $as_echo "$as_me: failed program was
:" >&5
17939 sed 's/^/| /' conftest.$ac_ext >&5
17941 eval "$as_ac_var=no
"
17944 rm -rf conftest.dSYM
17945 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17946 conftest$ac_exeext conftest.$ac_ext
17948 ac_res=`eval 'as_val=${'$as_ac_var'}
17949 $as_echo "$as_val"'`
17950 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
17951 $as_echo "$ac_res" >&6; }
17952 if test `eval 'as_val=${'$as_ac_var'}
17953 $as_echo "$as_val"'` = yes; then
17954 cat >>confdefs.h <<_ACEOF
17955 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
17962 # Solaris has libkstat which does not require root.
17964 { $as_echo "$as_me:$LINENO: checking
for kstat_open
in -lkstat" >&5
17965 $as_echo_n "checking
for kstat_open
in -lkstat...
" >&6; }
17966 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
17967 $as_echo_n "(cached
) " >&6
17969 ac_check_lib_save_LIBS=$LIBS
17970 LIBS="-lkstat $LIBS"
17971 cat >conftest.$ac_ext <<_ACEOF
17974 cat confdefs.h >>conftest.$ac_ext
17975 cat >>conftest.$ac_ext <<_ACEOF
17976 /* end confdefs.h. */
17978 /* Override any GCC internal prototype to avoid an error.
17979 Use char because int might match the return type of a GCC
17980 builtin and then its argument prototype would still apply. */
17984 char kstat_open ();
17988 return kstat_open ();
17993 rm -f conftest.$ac_objext conftest$ac_exeext
17994 if { (ac_try="$ac_link"
17995 case "(($ac_try" in
17996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17997 *) ac_try_echo=$ac_try;;
17999 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18000 $as_echo "$ac_try_echo") >&5
18001 (eval "$ac_link") 2>conftest.er1
18003 grep -v '^ *+' conftest.er1 >conftest.err
18005 cat conftest.err >&5
18006 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18007 (exit $ac_status); } && {
18008 test -z "$ac_c_werror_flag" ||
18009 test ! -s conftest.err
18010 } && test -s conftest$ac_exeext && {
18011 test "$cross_compiling" = yes ||
18012 $as_test_x conftest$ac_exeext
18014 ac_cv_lib_kstat_kstat_open=yes
18016 $as_echo "$as_me: failed program was
:" >&5
18017 sed 's/^/| /' conftest.$ac_ext >&5
18019 ac_cv_lib_kstat_kstat_open=no
18022 rm -rf conftest.dSYM
18023 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18024 conftest$ac_exeext conftest.$ac_ext
18025 LIBS=$ac_check_lib_save_LIBS
18027 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_kstat_kstat_open" >&5
18028 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
18029 if test $ac_cv_lib_kstat_kstat_open = yes; then
18030 cat >>confdefs.h <<_ACEOF
18031 #define HAVE_LIBKSTAT 1
18034 LIBS="-lkstat $LIBS"
18038 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
18040 # Some systems with -lutil have (and need) -lkvm as well, some do not.
18041 # On Solaris, -lkvm requires nlist from -lelf, so check that first
18042 # to get the right answer into the cache.
18043 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
18044 if test $ac_have_func = no; then
18045 { $as_echo "$as_me:$LINENO: checking
for elf_begin
in -lelf" >&5
18046 $as_echo_n "checking
for elf_begin
in -lelf...
" >&6; }
18047 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
18048 $as_echo_n "(cached
) " >&6
18050 ac_check_lib_save_LIBS=$LIBS
18052 cat >conftest.$ac_ext <<_ACEOF
18055 cat confdefs.h >>conftest.$ac_ext
18056 cat >>conftest.$ac_ext <<_ACEOF
18057 /* end confdefs.h. */
18059 /* Override any GCC internal prototype to avoid an error.
18060 Use char because int might match the return type of a GCC
18061 builtin and then its argument prototype would still apply. */
18069 return elf_begin ();
18074 rm -f conftest.$ac_objext conftest$ac_exeext
18075 if { (ac_try="$ac_link"
18076 case "(($ac_try" in
18077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18078 *) ac_try_echo=$ac_try;;
18080 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18081 $as_echo "$ac_try_echo") >&5
18082 (eval "$ac_link") 2>conftest.er1
18084 grep -v '^ *+' conftest.er1 >conftest.err
18086 cat conftest.err >&5
18087 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18088 (exit $ac_status); } && {
18089 test -z "$ac_c_werror_flag" ||
18090 test ! -s conftest.err
18091 } && test -s conftest$ac_exeext && {
18092 test "$cross_compiling" = yes ||
18093 $as_test_x conftest$ac_exeext
18095 ac_cv_lib_elf_elf_begin=yes
18097 $as_echo "$as_me: failed program was
:" >&5
18098 sed 's/^/| /' conftest.$ac_ext >&5
18100 ac_cv_lib_elf_elf_begin=no
18103 rm -rf conftest.dSYM
18104 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18105 conftest$ac_exeext conftest.$ac_ext
18106 LIBS=$ac_check_lib_save_LIBS
18108 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_elf_elf_begin" >&5
18109 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
18110 if test $ac_cv_lib_elf_elf_begin = yes; then
18115 if test $ac_have_func = no; then
18116 { $as_echo "$as_me:$LINENO: checking
for kvm_open
in -lkvm" >&5
18117 $as_echo_n "checking
for kvm_open
in -lkvm...
" >&6; }
18118 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
18119 $as_echo_n "(cached
) " >&6
18121 ac_check_lib_save_LIBS=$LIBS
18123 cat >conftest.$ac_ext <<_ACEOF
18126 cat confdefs.h >>conftest.$ac_ext
18127 cat >>conftest.$ac_ext <<_ACEOF
18128 /* end confdefs.h. */
18130 /* Override any GCC internal prototype to avoid an error.
18131 Use char because int might match the return type of a GCC
18132 builtin and then its argument prototype would still apply. */
18140 return kvm_open ();
18145 rm -f conftest.$ac_objext conftest$ac_exeext
18146 if { (ac_try="$ac_link"
18147 case "(($ac_try" in
18148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18149 *) ac_try_echo=$ac_try;;
18151 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18152 $as_echo "$ac_try_echo") >&5
18153 (eval "$ac_link") 2>conftest.er1
18155 grep -v '^ *+' conftest.er1 >conftest.err
18157 cat conftest.err >&5
18158 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18159 (exit $ac_status); } && {
18160 test -z "$ac_c_werror_flag" ||
18161 test ! -s conftest.err
18162 } && test -s conftest$ac_exeext && {
18163 test "$cross_compiling" = yes ||
18164 $as_test_x conftest$ac_exeext
18166 ac_cv_lib_kvm_kvm_open=yes
18168 $as_echo "$as_me: failed program was
:" >&5
18169 sed 's/^/| /' conftest.$ac_ext >&5
18171 ac_cv_lib_kvm_kvm_open=no
18174 rm -rf conftest.dSYM
18175 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18176 conftest$ac_exeext conftest.$ac_ext
18177 LIBS=$ac_check_lib_save_LIBS
18179 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_kvm_kvm_open" >&5
18180 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
18181 if test $ac_cv_lib_kvm_kvm_open = yes; then
18185 # Check for the 4.4BSD definition of getloadavg.
18186 { $as_echo "$as_me:$LINENO: checking
for getloadavg
in -lutil" >&5
18187 $as_echo_n "checking
for getloadavg
in -lutil...
" >&6; }
18188 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
18189 $as_echo_n "(cached
) " >&6
18191 ac_check_lib_save_LIBS=$LIBS
18192 LIBS="-lutil $LIBS"
18193 cat >conftest.$ac_ext <<_ACEOF
18196 cat confdefs.h >>conftest.$ac_ext
18197 cat >>conftest.$ac_ext <<_ACEOF
18198 /* end confdefs.h. */
18200 /* Override any GCC internal prototype to avoid an error.
18201 Use char because int might match the return type of a GCC
18202 builtin and then its argument prototype would still apply. */
18206 char getloadavg ();
18210 return getloadavg ();
18215 rm -f conftest.$ac_objext conftest$ac_exeext
18216 if { (ac_try="$ac_link"
18217 case "(($ac_try" in
18218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18219 *) ac_try_echo=$ac_try;;
18221 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18222 $as_echo "$ac_try_echo") >&5
18223 (eval "$ac_link") 2>conftest.er1
18225 grep -v '^ *+' conftest.er1 >conftest.err
18227 cat conftest.err >&5
18228 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18229 (exit $ac_status); } && {
18230 test -z "$ac_c_werror_flag" ||
18231 test ! -s conftest.err
18232 } && test -s conftest$ac_exeext && {
18233 test "$cross_compiling" = yes ||
18234 $as_test_x conftest$ac_exeext
18236 ac_cv_lib_util_getloadavg=yes
18238 $as_echo "$as_me: failed program was
:" >&5
18239 sed 's/^/| /' conftest.$ac_ext >&5
18241 ac_cv_lib_util_getloadavg=no
18244 rm -rf conftest.dSYM
18245 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18246 conftest$ac_exeext conftest.$ac_ext
18247 LIBS=$ac_check_lib_save_LIBS
18249 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_util_getloadavg" >&5
18250 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
18251 if test $ac_cv_lib_util_getloadavg = yes; then
18252 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
18257 if test $ac_have_func = no; then
18258 # There is a commonly available library for RS/6000 AIX.
18259 # Since it is not a standard part of AIX, it might be installed locally.
18260 ac_getloadavg_LIBS=$LIBS
18261 LIBS="-L/usr
/local
/lib
$LIBS"
18262 { $as_echo "$as_me:$LINENO: checking
for getloadavg
in -lgetloadavg" >&5
18263 $as_echo_n "checking
for getloadavg
in -lgetloadavg...
" >&6; }
18264 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
18265 $as_echo_n "(cached
) " >&6
18267 ac_check_lib_save_LIBS=$LIBS
18268 LIBS="-lgetloadavg $LIBS"
18269 cat >conftest.$ac_ext <<_ACEOF
18272 cat confdefs.h >>conftest.$ac_ext
18273 cat >>conftest.$ac_ext <<_ACEOF
18274 /* end confdefs.h. */
18276 /* Override any GCC internal prototype to avoid an error.
18277 Use char because int might match the return type of a GCC
18278 builtin and then its argument prototype would still apply. */
18282 char getloadavg ();
18286 return getloadavg ();
18291 rm -f conftest.$ac_objext conftest$ac_exeext
18292 if { (ac_try="$ac_link"
18293 case "(($ac_try" in
18294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18295 *) ac_try_echo=$ac_try;;
18297 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18298 $as_echo "$ac_try_echo") >&5
18299 (eval "$ac_link") 2>conftest.er1
18301 grep -v '^ *+' conftest.er1 >conftest.err
18303 cat conftest.err >&5
18304 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18305 (exit $ac_status); } && {
18306 test -z "$ac_c_werror_flag" ||
18307 test ! -s conftest.err
18308 } && test -s conftest$ac_exeext && {
18309 test "$cross_compiling" = yes ||
18310 $as_test_x conftest$ac_exeext
18312 ac_cv_lib_getloadavg_getloadavg=yes
18314 $as_echo "$as_me: failed program was
:" >&5
18315 sed 's/^/| /' conftest.$ac_ext >&5
18317 ac_cv_lib_getloadavg_getloadavg=no
18320 rm -rf conftest.dSYM
18321 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18322 conftest$ac_exeext conftest.$ac_ext
18323 LIBS=$ac_check_lib_save_LIBS
18325 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_getloadavg_getloadavg" >&5
18326 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
18327 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
18328 LIBS="-lgetloadavg $LIBS"
18330 LIBS=$ac_getloadavg_LIBS
18335 # Make sure it is really in the library, if we think we found it,
18336 # otherwise set up the replacement function.
18338 for ac_func in getloadavg
18340 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
18341 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
18342 $as_echo_n "checking
for $ac_func...
" >&6; }
18343 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
18344 $as_echo_n "(cached
) " >&6
18346 cat >conftest.$ac_ext <<_ACEOF
18349 cat confdefs.h >>conftest.$ac_ext
18350 cat >>conftest.$ac_ext <<_ACEOF
18351 /* end confdefs.h. */
18352 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18353 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18354 #define $ac_func innocuous_$ac_func
18356 /* System header to define __stub macros and hopefully few prototypes,
18357 which can conflict with char $ac_func (); below.
18358 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18359 <limits.h> exists even on freestanding compilers. */
18362 # include <limits.h>
18364 # include <assert.h>
18369 /* Override any GCC internal prototype to avoid an error.
18370 Use char because int might match the return type of a GCC
18371 builtin and then its argument prototype would still apply. */
18376 /* The GNU C library defines this for functions which it implements
18377 to always fail with ENOSYS. Some functions are actually named
18378 something starting with __ and the normal name is an alias. */
18379 #if defined __stub_$ac_func || defined __stub___$ac_func
18386 return $ac_func ();
18391 rm -f conftest.$ac_objext conftest$ac_exeext
18392 if { (ac_try="$ac_link"
18393 case "(($ac_try" in
18394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18395 *) ac_try_echo=$ac_try;;
18397 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18398 $as_echo "$ac_try_echo") >&5
18399 (eval "$ac_link") 2>conftest.er1
18401 grep -v '^ *+' conftest.er1 >conftest.err
18403 cat conftest.err >&5
18404 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18405 (exit $ac_status); } && {
18406 test -z "$ac_c_werror_flag" ||
18407 test ! -s conftest.err
18408 } && test -s conftest$ac_exeext && {
18409 test "$cross_compiling" = yes ||
18410 $as_test_x conftest$ac_exeext
18412 eval "$as_ac_var=yes"
18414 $as_echo "$as_me: failed program was
:" >&5
18415 sed 's/^/| /' conftest.$ac_ext >&5
18417 eval "$as_ac_var=no
"
18420 rm -rf conftest.dSYM
18421 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18422 conftest$ac_exeext conftest.$ac_ext
18424 ac_res=`eval 'as_val=${'$as_ac_var'}
18425 $as_echo "$as_val"'`
18426 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
18427 $as_echo "$ac_res" >&6; }
18428 if test `eval 'as_val=${'$as_ac_var'}
18429 $as_echo "$as_val"'` = yes; then
18430 cat >>confdefs.h <<_ACEOF
18431 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
18435 case " $LIBOBJS " in
18436 *" getloadavg.
$ac_objext "* ) ;;
18437 *) LIBOBJS="$LIBOBJS getloadavg.
$ac_objext"
18442 cat >>confdefs.h <<\_ACEOF
18443 #define C_GETLOADAVG 1
18446 # Figure out what our getloadavg.c needs.
18448 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
18449 { $as_echo "$as_me:$LINENO: checking
for sys
/dg_sys_info.h
" >&5
18450 $as_echo_n "checking
for sys
/dg_sys_info.h...
" >&6; }
18451 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
18452 $as_echo_n "(cached
) " >&6
18454 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_sys_dg_sys_info_h" >&5
18455 $as_echo "$ac_cv_header_sys_dg_sys_info_h" >&6; }
18457 # Is the header compilable?
18458 { $as_echo "$as_me:$LINENO: checking sys
/dg_sys_info.h usability
" >&5
18459 $as_echo_n "checking sys
/dg_sys_info.h usability...
" >&6; }
18460 cat >conftest.$ac_ext <<_ACEOF
18463 cat confdefs.h >>conftest.$ac_ext
18464 cat >>conftest.$ac_ext <<_ACEOF
18465 /* end confdefs.h. */
18466 $ac_includes_default
18467 #include <sys/dg_sys_info.h>
18469 rm -f conftest.$ac_objext
18470 if { (ac_try="$ac_compile"
18471 case "(($ac_try" in
18472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18473 *) ac_try_echo=$ac_try;;
18475 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18476 $as_echo "$ac_try_echo") >&5
18477 (eval "$ac_compile") 2>conftest.er1
18479 grep -v '^ *+' conftest.er1 >conftest.err
18481 cat conftest.err >&5
18482 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18483 (exit $ac_status); } && {
18484 test -z "$ac_c_werror_flag" ||
18485 test ! -s conftest.err
18486 } && test -s conftest.$ac_objext; then
18487 ac_header_compiler=yes
18489 $as_echo "$as_me: failed program was
:" >&5
18490 sed 's/^/| /' conftest.$ac_ext >&5
18492 ac_header_compiler=no
18495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18496 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
18497 $as_echo "$ac_header_compiler" >&6; }
18499 # Is the header present?
18500 { $as_echo "$as_me:$LINENO: checking sys
/dg_sys_info.h presence
" >&5
18501 $as_echo_n "checking sys
/dg_sys_info.h presence...
" >&6; }
18502 cat >conftest.$ac_ext <<_ACEOF
18505 cat confdefs.h >>conftest.$ac_ext
18506 cat >>conftest.$ac_ext <<_ACEOF
18507 /* end confdefs.h. */
18508 #include <sys/dg_sys_info.h>
18510 if { (ac_try="$ac_cpp conftest.
$ac_ext"
18511 case "(($ac_try" in
18512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18513 *) ac_try_echo=$ac_try;;
18515 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18516 $as_echo "$ac_try_echo") >&5
18517 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
18519 grep -v '^ *+' conftest.er1 >conftest.err
18521 cat conftest.err >&5
18522 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18523 (exit $ac_status); } >/dev/null && {
18524 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18525 test ! -s conftest.err
18527 ac_header_preproc=yes
18529 $as_echo "$as_me: failed program was
:" >&5
18530 sed 's/^/| /' conftest.$ac_ext >&5
18532 ac_header_preproc=no
18535 rm -f conftest.err conftest.$ac_ext
18536 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
18537 $as_echo "$ac_header_preproc" >&6; }
18539 # So? What about this header?
18540 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18542 { $as_echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
18543 $as_echo "$as_me: WARNING
: sys
/dg_sys_info.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
18544 { $as_echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: proceeding with the compiler
's result" >&5
18545 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result
" >&2;}
18546 ac_header_preproc=yes
18549 { $as_echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: present but cannot be compiled
" >&5
18550 $as_echo "$as_me: WARNING
: sys
/dg_sys_info.h
: present but cannot be compiled
" >&2;}
18551 { $as_echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: check
for missing prerequisite headers?
" >&5
18552 $as_echo "$as_me: WARNING
: sys
/dg_sys_info.h
: check
for missing prerequisite headers?
" >&2;}
18553 { $as_echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: see the Autoconf documentation
" >&5
18554 $as_echo "$as_me: WARNING
: sys
/dg_sys_info.h
: see the Autoconf documentation
" >&2;}
18555 { $as_echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: section
\"Present But Cannot Be Compiled
\"" >&5
18556 $as_echo "$as_me: WARNING
: sys
/dg_sys_info.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
18557 { $as_echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: proceeding with the preprocessor
's result" >&5
18558 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result
" >&2;}
18559 { $as_echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: in the future
, the compiler will take precedence
" >&5
18560 $as_echo "$as_me: WARNING
: sys
/dg_sys_info.h
: in the future
, the compiler will take precedence
" >&2;}
18564 { $as_echo "$as_me:$LINENO: checking
for sys
/dg_sys_info.h
" >&5
18565 $as_echo_n "checking
for sys
/dg_sys_info.h...
" >&6; }
18566 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
18567 $as_echo_n "(cached
) " >&6
18569 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
18571 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_sys_dg_sys_info_h" >&5
18572 $as_echo "$ac_cv_header_sys_dg_sys_info_h" >&6; }
18575 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
18578 cat >>confdefs.h <<\_ACEOF
18583 { $as_echo "$as_me:$LINENO: checking
for dg_sys_info
in -ldgc" >&5
18584 $as_echo_n "checking
for dg_sys_info
in -ldgc...
" >&6; }
18585 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
18586 $as_echo_n "(cached
) " >&6
18588 ac_check_lib_save_LIBS=$LIBS
18590 cat >conftest.$ac_ext <<_ACEOF
18593 cat confdefs.h >>conftest.$ac_ext
18594 cat >>conftest.$ac_ext <<_ACEOF
18595 /* end confdefs.h. */
18597 /* Override any GCC internal prototype to avoid an error.
18598 Use char because int might match the return type of a GCC
18599 builtin and then its argument prototype would still apply. */
18603 char dg_sys_info ();
18607 return dg_sys_info ();
18612 rm -f conftest.$ac_objext conftest$ac_exeext
18613 if { (ac_try="$ac_link"
18614 case "(($ac_try" in
18615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18616 *) ac_try_echo=$ac_try;;
18618 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18619 $as_echo "$ac_try_echo") >&5
18620 (eval "$ac_link") 2>conftest.er1
18622 grep -v '^ *+' conftest.er1 >conftest.err
18624 cat conftest.err >&5
18625 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18626 (exit $ac_status); } && {
18627 test -z "$ac_c_werror_flag" ||
18628 test ! -s conftest.err
18629 } && test -s conftest$ac_exeext && {
18630 test "$cross_compiling" = yes ||
18631 $as_test_x conftest$ac_exeext
18633 ac_cv_lib_dgc_dg_sys_info=yes
18635 $as_echo "$as_me: failed program was
:" >&5
18636 sed 's/^/| /' conftest.$ac_ext >&5
18638 ac_cv_lib_dgc_dg_sys_info=no
18641 rm -rf conftest.dSYM
18642 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18643 conftest$ac_exeext conftest.$ac_ext
18644 LIBS=$ac_check_lib_save_LIBS
18646 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_dgc_dg_sys_info" >&5
18647 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
18648 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
18649 cat >>confdefs.h <<_ACEOF
18650 #define HAVE_LIBDGC 1
18661 if test "${ac_cv_header_locale_h+set}" = set; then
18662 { $as_echo "$as_me:$LINENO: checking
for locale.h
" >&5
18663 $as_echo_n "checking
for locale.h...
" >&6; }
18664 if test "${ac_cv_header_locale_h+set}" = set; then
18665 $as_echo_n "(cached
) " >&6
18667 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_locale_h" >&5
18668 $as_echo "$ac_cv_header_locale_h" >&6; }
18670 # Is the header compilable?
18671 { $as_echo "$as_me:$LINENO: checking locale.h usability
" >&5
18672 $as_echo_n "checking locale.h usability...
" >&6; }
18673 cat >conftest.$ac_ext <<_ACEOF
18676 cat confdefs.h >>conftest.$ac_ext
18677 cat >>conftest.$ac_ext <<_ACEOF
18678 /* end confdefs.h. */
18679 $ac_includes_default
18680 #include <locale.h>
18682 rm -f conftest.$ac_objext
18683 if { (ac_try="$ac_compile"
18684 case "(($ac_try" in
18685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18686 *) ac_try_echo=$ac_try;;
18688 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18689 $as_echo "$ac_try_echo") >&5
18690 (eval "$ac_compile") 2>conftest.er1
18692 grep -v '^ *+' conftest.er1 >conftest.err
18694 cat conftest.err >&5
18695 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18696 (exit $ac_status); } && {
18697 test -z "$ac_c_werror_flag" ||
18698 test ! -s conftest.err
18699 } && test -s conftest.$ac_objext; then
18700 ac_header_compiler=yes
18702 $as_echo "$as_me: failed program was
:" >&5
18703 sed 's/^/| /' conftest.$ac_ext >&5
18705 ac_header_compiler=no
18708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18709 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
18710 $as_echo "$ac_header_compiler" >&6; }
18712 # Is the header present?
18713 { $as_echo "$as_me:$LINENO: checking locale.h presence
" >&5
18714 $as_echo_n "checking locale.h presence...
" >&6; }
18715 cat >conftest.$ac_ext <<_ACEOF
18718 cat confdefs.h >>conftest.$ac_ext
18719 cat >>conftest.$ac_ext <<_ACEOF
18720 /* end confdefs.h. */
18721 #include <locale.h>
18723 if { (ac_try="$ac_cpp conftest.
$ac_ext"
18724 case "(($ac_try" in
18725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18726 *) ac_try_echo=$ac_try;;
18728 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18729 $as_echo "$ac_try_echo") >&5
18730 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
18732 grep -v '^ *+' conftest.er1 >conftest.err
18734 cat conftest.err >&5
18735 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18736 (exit $ac_status); } >/dev/null && {
18737 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18738 test ! -s conftest.err
18740 ac_header_preproc=yes
18742 $as_echo "$as_me: failed program was
:" >&5
18743 sed 's/^/| /' conftest.$ac_ext >&5
18745 ac_header_preproc=no
18748 rm -f conftest.err conftest.$ac_ext
18749 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
18750 $as_echo "$ac_header_preproc" >&6; }
18752 # So? What about this header?
18753 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18755 { $as_echo "$as_me:$LINENO: WARNING
: locale.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
18756 $as_echo "$as_me: WARNING
: locale.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
18757 { $as_echo "$as_me:$LINENO: WARNING
: locale.h
: proceeding with the compiler
's result" >&5
18758 $as_echo "$as_me: WARNING: locale.h: proceeding with the compiler's result
" >&2;}
18759 ac_header_preproc=yes
18762 { $as_echo "$as_me:$LINENO: WARNING
: locale.h
: present but cannot be compiled
" >&5
18763 $as_echo "$as_me: WARNING
: locale.h
: present but cannot be compiled
" >&2;}
18764 { $as_echo "$as_me:$LINENO: WARNING
: locale.h
: check
for missing prerequisite headers?
" >&5
18765 $as_echo "$as_me: WARNING
: locale.h
: check
for missing prerequisite headers?
" >&2;}
18766 { $as_echo "$as_me:$LINENO: WARNING
: locale.h
: see the Autoconf documentation
" >&5
18767 $as_echo "$as_me: WARNING
: locale.h
: see the Autoconf documentation
" >&2;}
18768 { $as_echo "$as_me:$LINENO: WARNING
: locale.h
: section
\"Present But Cannot Be Compiled
\"" >&5
18769 $as_echo "$as_me: WARNING
: locale.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
18770 { $as_echo "$as_me:$LINENO: WARNING
: locale.h
: proceeding with the preprocessor
's result" >&5
18771 $as_echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result
" >&2;}
18772 { $as_echo "$as_me:$LINENO: WARNING
: locale.h
: in the future
, the compiler will take precedence
" >&5
18773 $as_echo "$as_me: WARNING
: locale.h
: in the future
, the compiler will take precedence
" >&2;}
18777 { $as_echo "$as_me:$LINENO: checking
for locale.h
" >&5
18778 $as_echo_n "checking
for locale.h...
" >&6; }
18779 if test "${ac_cv_header_locale_h+set}" = set; then
18780 $as_echo_n "(cached
) " >&6
18782 ac_cv_header_locale_h=$ac_header_preproc
18784 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_locale_h" >&5
18785 $as_echo "$ac_cv_header_locale_h" >&6; }
18791 for ac_func in setlocale
18793 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
18794 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
18795 $as_echo_n "checking
for $ac_func...
" >&6; }
18796 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
18797 $as_echo_n "(cached
) " >&6
18799 cat >conftest.$ac_ext <<_ACEOF
18802 cat confdefs.h >>conftest.$ac_ext
18803 cat >>conftest.$ac_ext <<_ACEOF
18804 /* end confdefs.h. */
18805 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18806 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18807 #define $ac_func innocuous_$ac_func
18809 /* System header to define __stub macros and hopefully few prototypes,
18810 which can conflict with char $ac_func (); below.
18811 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18812 <limits.h> exists even on freestanding compilers. */
18815 # include <limits.h>
18817 # include <assert.h>
18822 /* Override any GCC internal prototype to avoid an error.
18823 Use char because int might match the return type of a GCC
18824 builtin and then its argument prototype would still apply. */
18829 /* The GNU C library defines this for functions which it implements
18830 to always fail with ENOSYS. Some functions are actually named
18831 something starting with __ and the normal name is an alias. */
18832 #if defined __stub_$ac_func || defined __stub___$ac_func
18839 return $ac_func ();
18844 rm -f conftest.$ac_objext conftest$ac_exeext
18845 if { (ac_try="$ac_link"
18846 case "(($ac_try" in
18847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18848 *) ac_try_echo=$ac_try;;
18850 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18851 $as_echo "$ac_try_echo") >&5
18852 (eval "$ac_link") 2>conftest.er1
18854 grep -v '^ *+' conftest.er1 >conftest.err
18856 cat conftest.err >&5
18857 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18858 (exit $ac_status); } && {
18859 test -z "$ac_c_werror_flag" ||
18860 test ! -s conftest.err
18861 } && test -s conftest$ac_exeext && {
18862 test "$cross_compiling" = yes ||
18863 $as_test_x conftest$ac_exeext
18865 eval "$as_ac_var=yes"
18867 $as_echo "$as_me: failed program was
:" >&5
18868 sed 's/^/| /' conftest.$ac_ext >&5
18870 eval "$as_ac_var=no
"
18873 rm -rf conftest.dSYM
18874 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18875 conftest$ac_exeext conftest.$ac_ext
18877 ac_res=`eval 'as_val=${'$as_ac_var'}
18878 $as_echo "$as_val"'`
18879 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
18880 $as_echo "$ac_res" >&6; }
18881 if test `eval 'as_val=${'$as_ac_var'}
18882 $as_echo "$as_val"'` = yes; then
18883 cat >>confdefs.h <<_ACEOF
18884 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
18891 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
18892 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
18893 # Irix 4.0.5F has the header but not the library.
18894 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
18897 cat >>confdefs.h <<\_ACEOF
18903 if test $ac_have_func = no; then
18904 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
18905 { $as_echo "$as_me:$LINENO: checking
for inq_stats
/cpustats.h
" >&5
18906 $as_echo_n "checking
for inq_stats
/cpustats.h...
" >&6; }
18907 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
18908 $as_echo_n "(cached
) " >&6
18910 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_inq_stats_cpustats_h" >&5
18911 $as_echo "$ac_cv_header_inq_stats_cpustats_h" >&6; }
18913 # Is the header compilable?
18914 { $as_echo "$as_me:$LINENO: checking inq_stats
/cpustats.h usability
" >&5
18915 $as_echo_n "checking inq_stats
/cpustats.h usability...
" >&6; }
18916 cat >conftest.$ac_ext <<_ACEOF
18919 cat confdefs.h >>conftest.$ac_ext
18920 cat >>conftest.$ac_ext <<_ACEOF
18921 /* end confdefs.h. */
18922 $ac_includes_default
18923 #include <inq_stats/cpustats.h>
18925 rm -f conftest.$ac_objext
18926 if { (ac_try="$ac_compile"
18927 case "(($ac_try" in
18928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18929 *) ac_try_echo=$ac_try;;
18931 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18932 $as_echo "$ac_try_echo") >&5
18933 (eval "$ac_compile") 2>conftest.er1
18935 grep -v '^ *+' conftest.er1 >conftest.err
18937 cat conftest.err >&5
18938 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18939 (exit $ac_status); } && {
18940 test -z "$ac_c_werror_flag" ||
18941 test ! -s conftest.err
18942 } && test -s conftest.$ac_objext; then
18943 ac_header_compiler=yes
18945 $as_echo "$as_me: failed program was
:" >&5
18946 sed 's/^/| /' conftest.$ac_ext >&5
18948 ac_header_compiler=no
18951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18952 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
18953 $as_echo "$ac_header_compiler" >&6; }
18955 # Is the header present?
18956 { $as_echo "$as_me:$LINENO: checking inq_stats
/cpustats.h presence
" >&5
18957 $as_echo_n "checking inq_stats
/cpustats.h presence...
" >&6; }
18958 cat >conftest.$ac_ext <<_ACEOF
18961 cat confdefs.h >>conftest.$ac_ext
18962 cat >>conftest.$ac_ext <<_ACEOF
18963 /* end confdefs.h. */
18964 #include <inq_stats/cpustats.h>
18966 if { (ac_try="$ac_cpp conftest.
$ac_ext"
18967 case "(($ac_try" in
18968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18969 *) ac_try_echo=$ac_try;;
18971 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18972 $as_echo "$ac_try_echo") >&5
18973 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
18975 grep -v '^ *+' conftest.er1 >conftest.err
18977 cat conftest.err >&5
18978 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18979 (exit $ac_status); } >/dev/null && {
18980 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18981 test ! -s conftest.err
18983 ac_header_preproc=yes
18985 $as_echo "$as_me: failed program was
:" >&5
18986 sed 's/^/| /' conftest.$ac_ext >&5
18988 ac_header_preproc=no
18991 rm -f conftest.err conftest.$ac_ext
18992 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
18993 $as_echo "$ac_header_preproc" >&6; }
18995 # So? What about this header?
18996 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18998 { $as_echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
18999 $as_echo "$as_me: WARNING
: inq_stats
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
19000 { $as_echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: proceeding with the compiler
's result" >&5
19001 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result
" >&2;}
19002 ac_header_preproc=yes
19005 { $as_echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: present but cannot be compiled
" >&5
19006 $as_echo "$as_me: WARNING
: inq_stats
/cpustats.h
: present but cannot be compiled
" >&2;}
19007 { $as_echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: check
for missing prerequisite headers?
" >&5
19008 $as_echo "$as_me: WARNING
: inq_stats
/cpustats.h
: check
for missing prerequisite headers?
" >&2;}
19009 { $as_echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: see the Autoconf documentation
" >&5
19010 $as_echo "$as_me: WARNING
: inq_stats
/cpustats.h
: see the Autoconf documentation
" >&2;}
19011 { $as_echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&5
19012 $as_echo "$as_me: WARNING
: inq_stats
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
19013 { $as_echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: proceeding with the preprocessor
's result" >&5
19014 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result
" >&2;}
19015 { $as_echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: in the future
, the compiler will take precedence
" >&5
19016 $as_echo "$as_me: WARNING
: inq_stats
/cpustats.h
: in the future
, the compiler will take precedence
" >&2;}
19020 { $as_echo "$as_me:$LINENO: checking
for inq_stats
/cpustats.h
" >&5
19021 $as_echo_n "checking
for inq_stats
/cpustats.h...
" >&6; }
19022 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
19023 $as_echo_n "(cached
) " >&6
19025 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
19027 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_inq_stats_cpustats_h" >&5
19028 $as_echo "$ac_cv_header_inq_stats_cpustats_h" >&6; }
19031 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
19034 cat >>confdefs.h <<\_ACEOF
19039 cat >>confdefs.h <<\_ACEOF
19048 if test $ac_have_func = no; then
19049 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
19050 { $as_echo "$as_me:$LINENO: checking
for sys
/cpustats.h
" >&5
19051 $as_echo_n "checking
for sys
/cpustats.h...
" >&6; }
19052 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
19053 $as_echo_n "(cached
) " >&6
19055 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_sys_cpustats_h" >&5
19056 $as_echo "$ac_cv_header_sys_cpustats_h" >&6; }
19058 # Is the header compilable?
19059 { $as_echo "$as_me:$LINENO: checking sys
/cpustats.h usability
" >&5
19060 $as_echo_n "checking sys
/cpustats.h usability...
" >&6; }
19061 cat >conftest.$ac_ext <<_ACEOF
19064 cat confdefs.h >>conftest.$ac_ext
19065 cat >>conftest.$ac_ext <<_ACEOF
19066 /* end confdefs.h. */
19067 $ac_includes_default
19068 #include <sys/cpustats.h>
19070 rm -f conftest.$ac_objext
19071 if { (ac_try="$ac_compile"
19072 case "(($ac_try" in
19073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19074 *) ac_try_echo=$ac_try;;
19076 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19077 $as_echo "$ac_try_echo") >&5
19078 (eval "$ac_compile") 2>conftest.er1
19080 grep -v '^ *+' conftest.er1 >conftest.err
19082 cat conftest.err >&5
19083 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19084 (exit $ac_status); } && {
19085 test -z "$ac_c_werror_flag" ||
19086 test ! -s conftest.err
19087 } && test -s conftest.$ac_objext; then
19088 ac_header_compiler=yes
19090 $as_echo "$as_me: failed program was
:" >&5
19091 sed 's/^/| /' conftest.$ac_ext >&5
19093 ac_header_compiler=no
19096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19097 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
19098 $as_echo "$ac_header_compiler" >&6; }
19100 # Is the header present?
19101 { $as_echo "$as_me:$LINENO: checking sys
/cpustats.h presence
" >&5
19102 $as_echo_n "checking sys
/cpustats.h presence...
" >&6; }
19103 cat >conftest.$ac_ext <<_ACEOF
19106 cat confdefs.h >>conftest.$ac_ext
19107 cat >>conftest.$ac_ext <<_ACEOF
19108 /* end confdefs.h. */
19109 #include <sys/cpustats.h>
19111 if { (ac_try="$ac_cpp conftest.
$ac_ext"
19112 case "(($ac_try" in
19113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19114 *) ac_try_echo=$ac_try;;
19116 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19117 $as_echo "$ac_try_echo") >&5
19118 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
19120 grep -v '^ *+' conftest.er1 >conftest.err
19122 cat conftest.err >&5
19123 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19124 (exit $ac_status); } >/dev/null && {
19125 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19126 test ! -s conftest.err
19128 ac_header_preproc=yes
19130 $as_echo "$as_me: failed program was
:" >&5
19131 sed 's/^/| /' conftest.$ac_ext >&5
19133 ac_header_preproc=no
19136 rm -f conftest.err conftest.$ac_ext
19137 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
19138 $as_echo "$ac_header_preproc" >&6; }
19140 # So? What about this header?
19141 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19143 { $as_echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
19144 $as_echo "$as_me: WARNING
: sys
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
19145 { $as_echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: proceeding with the compiler
's result" >&5
19146 $as_echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result
" >&2;}
19147 ac_header_preproc=yes
19150 { $as_echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: present but cannot be compiled
" >&5
19151 $as_echo "$as_me: WARNING
: sys
/cpustats.h
: present but cannot be compiled
" >&2;}
19152 { $as_echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: check
for missing prerequisite headers?
" >&5
19153 $as_echo "$as_me: WARNING
: sys
/cpustats.h
: check
for missing prerequisite headers?
" >&2;}
19154 { $as_echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: see the Autoconf documentation
" >&5
19155 $as_echo "$as_me: WARNING
: sys
/cpustats.h
: see the Autoconf documentation
" >&2;}
19156 { $as_echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&5
19157 $as_echo "$as_me: WARNING
: sys
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
19158 { $as_echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: proceeding with the preprocessor
's result" >&5
19159 $as_echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result
" >&2;}
19160 { $as_echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: in the future
, the compiler will take precedence
" >&5
19161 $as_echo "$as_me: WARNING
: sys
/cpustats.h
: in the future
, the compiler will take precedence
" >&2;}
19165 { $as_echo "$as_me:$LINENO: checking
for sys
/cpustats.h
" >&5
19166 $as_echo_n "checking
for sys
/cpustats.h...
" >&6; }
19167 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
19168 $as_echo_n "(cached
) " >&6
19170 ac_cv_header_sys_cpustats_h=$ac_header_preproc
19172 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_sys_cpustats_h" >&5
19173 $as_echo "$ac_cv_header_sys_cpustats_h" >&6; }
19176 if test $ac_cv_header_sys_cpustats_h = yes; then
19177 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
19186 if test $ac_have_func = no; then
19188 for ac_header in mach/mach.h
19190 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
19191 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
19192 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
19193 $as_echo_n "checking
for $ac_header...
" >&6; }
19194 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
19195 $as_echo_n "(cached
) " >&6
19197 ac_res=`eval 'as_val=${'$as_ac_Header'}
19198 $as_echo "$as_val"'`
19199 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
19200 $as_echo "$ac_res" >&6; }
19202 # Is the header compilable?
19203 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
19204 $as_echo_n "checking
$ac_header usability...
" >&6; }
19205 cat >conftest.$ac_ext <<_ACEOF
19208 cat confdefs.h >>conftest.$ac_ext
19209 cat >>conftest.$ac_ext <<_ACEOF
19210 /* end confdefs.h. */
19211 $ac_includes_default
19212 #include <$ac_header>
19214 rm -f conftest.$ac_objext
19215 if { (ac_try="$ac_compile"
19216 case "(($ac_try" in
19217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19218 *) ac_try_echo=$ac_try;;
19220 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19221 $as_echo "$ac_try_echo") >&5
19222 (eval "$ac_compile") 2>conftest.er1
19224 grep -v '^ *+' conftest.er1 >conftest.err
19226 cat conftest.err >&5
19227 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19228 (exit $ac_status); } && {
19229 test -z "$ac_c_werror_flag" ||
19230 test ! -s conftest.err
19231 } && test -s conftest.$ac_objext; then
19232 ac_header_compiler=yes
19234 $as_echo "$as_me: failed program was
:" >&5
19235 sed 's/^/| /' conftest.$ac_ext >&5
19237 ac_header_compiler=no
19240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19241 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
19242 $as_echo "$ac_header_compiler" >&6; }
19244 # Is the header present?
19245 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
19246 $as_echo_n "checking
$ac_header presence...
" >&6; }
19247 cat >conftest.$ac_ext <<_ACEOF
19250 cat confdefs.h >>conftest.$ac_ext
19251 cat >>conftest.$ac_ext <<_ACEOF
19252 /* end confdefs.h. */
19253 #include <$ac_header>
19255 if { (ac_try="$ac_cpp conftest.
$ac_ext"
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_cpp conftest.
$ac_ext") 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); } >/dev/null && {
19269 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19270 test ! -s conftest.err
19272 ac_header_preproc=yes
19274 $as_echo "$as_me: failed program was
:" >&5
19275 sed 's/^/| /' conftest.$ac_ext >&5
19277 ac_header_preproc=no
19280 rm -f conftest.err conftest.$ac_ext
19281 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
19282 $as_echo "$ac_header_preproc" >&6; }
19284 # So? What about this header?
19285 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19287 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
19288 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
19289 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
19290 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
19291 ac_header_preproc=yes
19294 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
19295 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
19296 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
19297 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
19298 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
19299 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
19300 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
19301 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
19302 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
19303 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
19304 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
19305 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
19309 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
19310 $as_echo_n "checking
for $ac_header...
" >&6; }
19311 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
19312 $as_echo_n "(cached
) " >&6
19314 eval "$as_ac_Header=\
$ac_header_preproc"
19316 ac_res=`eval 'as_val=${'$as_ac_Header'}
19317 $as_echo "$as_val"'`
19318 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
19319 $as_echo "$ac_res" >&6; }
19322 if test `eval 'as_val=${'$as_ac_Header'}
19323 $as_echo "$as_val"'` = yes; then
19324 cat >>confdefs.h <<_ACEOF
19325 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
19335 for ac_header in nlist.h
19337 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
19338 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
19339 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
19340 $as_echo_n "checking
for $ac_header...
" >&6; }
19341 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
19342 $as_echo_n "(cached
) " >&6
19344 ac_res=`eval 'as_val=${'$as_ac_Header'}
19345 $as_echo "$as_val"'`
19346 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
19347 $as_echo "$ac_res" >&6; }
19349 # Is the header compilable?
19350 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
19351 $as_echo_n "checking
$ac_header usability...
" >&6; }
19352 cat >conftest.$ac_ext <<_ACEOF
19355 cat confdefs.h >>conftest.$ac_ext
19356 cat >>conftest.$ac_ext <<_ACEOF
19357 /* end confdefs.h. */
19358 $ac_includes_default
19359 #include <$ac_header>
19361 rm -f conftest.$ac_objext
19362 if { (ac_try="$ac_compile"
19363 case "(($ac_try" in
19364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19365 *) ac_try_echo=$ac_try;;
19367 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19368 $as_echo "$ac_try_echo") >&5
19369 (eval "$ac_compile") 2>conftest.er1
19371 grep -v '^ *+' conftest.er1 >conftest.err
19373 cat conftest.err >&5
19374 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19375 (exit $ac_status); } && {
19376 test -z "$ac_c_werror_flag" ||
19377 test ! -s conftest.err
19378 } && test -s conftest.$ac_objext; then
19379 ac_header_compiler=yes
19381 $as_echo "$as_me: failed program was
:" >&5
19382 sed 's/^/| /' conftest.$ac_ext >&5
19384 ac_header_compiler=no
19387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19388 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
19389 $as_echo "$ac_header_compiler" >&6; }
19391 # Is the header present?
19392 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
19393 $as_echo_n "checking
$ac_header presence...
" >&6; }
19394 cat >conftest.$ac_ext <<_ACEOF
19397 cat confdefs.h >>conftest.$ac_ext
19398 cat >>conftest.$ac_ext <<_ACEOF
19399 /* end confdefs.h. */
19400 #include <$ac_header>
19402 if { (ac_try="$ac_cpp conftest.
$ac_ext"
19403 case "(($ac_try" in
19404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19405 *) ac_try_echo=$ac_try;;
19407 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19408 $as_echo "$ac_try_echo") >&5
19409 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
19411 grep -v '^ *+' conftest.er1 >conftest.err
19413 cat conftest.err >&5
19414 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19415 (exit $ac_status); } >/dev/null && {
19416 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19417 test ! -s conftest.err
19419 ac_header_preproc=yes
19421 $as_echo "$as_me: failed program was
:" >&5
19422 sed 's/^/| /' conftest.$ac_ext >&5
19424 ac_header_preproc=no
19427 rm -f conftest.err conftest.$ac_ext
19428 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
19429 $as_echo "$ac_header_preproc" >&6; }
19431 # So? What about this header?
19432 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19434 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
19435 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
19436 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
19437 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
19438 ac_header_preproc=yes
19441 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
19442 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
19443 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
19444 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
19445 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
19446 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
19447 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
19448 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
19449 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
19450 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
19451 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
19452 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
19456 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
19457 $as_echo_n "checking
for $ac_header...
" >&6; }
19458 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
19459 $as_echo_n "(cached
) " >&6
19461 eval "$as_ac_Header=\
$ac_header_preproc"
19463 ac_res=`eval 'as_val=${'$as_ac_Header'}
19464 $as_echo "$as_val"'`
19465 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
19466 $as_echo "$ac_res" >&6; }
19469 if test `eval 'as_val=${'$as_ac_Header'}
19470 $as_echo "$as_val"'` = yes; then
19471 cat >>confdefs.h <<_ACEOF
19472 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
19474 { $as_echo "$as_me:$LINENO: checking
for struct nlist.n_un.n_name
" >&5
19475 $as_echo_n "checking
for struct nlist.n_un.n_name...
" >&6; }
19476 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
19477 $as_echo_n "(cached
) " >&6
19479 cat >conftest.$ac_ext <<_ACEOF
19482 cat confdefs.h >>conftest.$ac_ext
19483 cat >>conftest.$ac_ext <<_ACEOF
19484 /* end confdefs.h. */
19490 static struct nlist ac_aggr;
19491 if (ac_aggr.n_un.n_name)
19497 rm -f conftest.$ac_objext
19498 if { (ac_try="$ac_compile"
19499 case "(($ac_try" in
19500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19501 *) ac_try_echo=$ac_try;;
19503 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19504 $as_echo "$ac_try_echo") >&5
19505 (eval "$ac_compile") 2>conftest.er1
19507 grep -v '^ *+' conftest.er1 >conftest.err
19509 cat conftest.err >&5
19510 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19511 (exit $ac_status); } && {
19512 test -z "$ac_c_werror_flag" ||
19513 test ! -s conftest.err
19514 } && test -s conftest.$ac_objext; then
19515 ac_cv_member_struct_nlist_n_un_n_name=yes
19517 $as_echo "$as_me: failed program was
:" >&5
19518 sed 's/^/| /' conftest.$ac_ext >&5
19520 cat >conftest.$ac_ext <<_ACEOF
19523 cat confdefs.h >>conftest.$ac_ext
19524 cat >>conftest.$ac_ext <<_ACEOF
19525 /* end confdefs.h. */
19531 static struct nlist ac_aggr;
19532 if (sizeof ac_aggr.n_un.n_name)
19538 rm -f conftest.$ac_objext
19539 if { (ac_try="$ac_compile"
19540 case "(($ac_try" in
19541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19542 *) ac_try_echo=$ac_try;;
19544 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19545 $as_echo "$ac_try_echo") >&5
19546 (eval "$ac_compile") 2>conftest.er1
19548 grep -v '^ *+' conftest.er1 >conftest.err
19550 cat conftest.err >&5
19551 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19552 (exit $ac_status); } && {
19553 test -z "$ac_c_werror_flag" ||
19554 test ! -s conftest.err
19555 } && test -s conftest.$ac_objext; then
19556 ac_cv_member_struct_nlist_n_un_n_name=yes
19558 $as_echo "$as_me: failed program was
:" >&5
19559 sed 's/^/| /' conftest.$ac_ext >&5
19561 ac_cv_member_struct_nlist_n_un_n_name=no
19564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19569 { $as_echo "$as_me:$LINENO: result
: $ac_cv_member_struct_nlist_n_un_n_name" >&5
19570 $as_echo "$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
19571 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
19573 cat >>confdefs.h <<_ACEOF
19574 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
19578 cat >>confdefs.h <<\_ACEOF
19579 #define NLIST_NAME_UNION 1
19593 # Some definitions of getloadavg require that the program be installed setgid.
19594 { $as_echo "$as_me:$LINENO: checking whether getloadavg requires setgid
" >&5
19595 $as_echo_n "checking whether getloadavg requires setgid...
" >&6; }
19596 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
19597 $as_echo_n "(cached
) " >&6
19599 cat >conftest.$ac_ext <<_ACEOF
19602 cat confdefs.h >>conftest.$ac_ext
19603 cat >>conftest.$ac_ext <<_ACEOF
19604 /* end confdefs.h. */
19605 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c
"
19606 #ifdef LDAV_PRIVILEGED
19607 Yowza Am I SETGID yet
19610 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
19611 $EGREP "Yowza Am I SETGID yet
" >/dev/null 2>&1; then
19612 ac_cv_func_getloadavg_setgid=yes
19614 ac_cv_func_getloadavg_setgid=no
19619 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func_getloadavg_setgid" >&5
19620 $as_echo "$ac_cv_func_getloadavg_setgid" >&6; }
19621 if test $ac_cv_func_getloadavg_setgid = yes; then
19624 cat >>confdefs.h <<\_ACEOF
19625 #define GETLOADAVG_PRIVILEGED 1
19632 if test $ac_cv_func_getloadavg_setgid = yes; then
19633 { $as_echo "$as_me:$LINENO: checking group of
/dev
/kmem
" >&5
19634 $as_echo_n "checking group of
/dev
/kmem...
" >&6; }
19635 if test "${ac_cv_group_kmem+set}" = set; then
19636 $as_echo_n "(cached
) " >&6
19638 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
19639 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
19640 # If we got an error (system does not support symlinks), try without -L.
19641 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
19642 ac_cv_group_kmem=`$as_echo "$ac_ls_output" \
19643 | sed -ne 's/[ ][ ]*/ /g;
19644 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
19648 { $as_echo "$as_me:$LINENO: result
: $ac_cv_group_kmem" >&5
19649 $as_echo "$ac_cv_group_kmem" >&6; }
19650 KMEM_GROUP=$ac_cv_group_kmem
19652 if test "x
$ac_save_LIBS" = x; then
19653 GETLOADAVG_LIBS=$LIBS
19655 GETLOADAVG_LIBS=`$as_echo "$LIBS" | sed "s|
$ac_save_LIBS||
"`
19661 { $as_echo "$as_me:$LINENO: checking
for _LARGEFILE_SOURCE value needed
for large files
" >&5
19662 $as_echo_n "checking
for _LARGEFILE_SOURCE value needed
for large files...
" >&6; }
19663 if test "${ac_cv_sys_largefile_source+set}" = set; then
19664 $as_echo_n "(cached
) " >&6
19667 cat >conftest.$ac_ext <<_ACEOF
19670 cat confdefs.h >>conftest.$ac_ext
19671 cat >>conftest.$ac_ext <<_ACEOF
19672 /* end confdefs.h. */
19673 #include <sys/types.h> /* for off_t */
19678 int (*fp) (FILE *, off_t, int) = fseeko;
19679 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
19684 rm -f conftest.$ac_objext conftest$ac_exeext
19685 if { (ac_try="$ac_link"
19686 case "(($ac_try" in
19687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19688 *) ac_try_echo=$ac_try;;
19690 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19691 $as_echo "$ac_try_echo") >&5
19692 (eval "$ac_link") 2>conftest.er1
19694 grep -v '^ *+' conftest.er1 >conftest.err
19696 cat conftest.err >&5
19697 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19698 (exit $ac_status); } && {
19699 test -z "$ac_c_werror_flag" ||
19700 test ! -s conftest.err
19701 } && test -s conftest$ac_exeext && {
19702 test "$cross_compiling" = yes ||
19703 $as_test_x conftest$ac_exeext
19705 ac_cv_sys_largefile_source=no; break
19707 $as_echo "$as_me: failed program was
:" >&5
19708 sed 's/^/| /' conftest.$ac_ext >&5
19713 rm -rf conftest.dSYM
19714 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19715 conftest$ac_exeext conftest.$ac_ext
19716 cat >conftest.$ac_ext <<_ACEOF
19719 cat confdefs.h >>conftest.$ac_ext
19720 cat >>conftest.$ac_ext <<_ACEOF
19721 /* end confdefs.h. */
19722 #define _LARGEFILE_SOURCE 1
19723 #include <sys/types.h> /* for off_t */
19728 int (*fp) (FILE *, off_t, int) = fseeko;
19729 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
19734 rm -f conftest.$ac_objext conftest$ac_exeext
19735 if { (ac_try="$ac_link"
19736 case "(($ac_try" in
19737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19738 *) ac_try_echo=$ac_try;;
19740 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19741 $as_echo "$ac_try_echo") >&5
19742 (eval "$ac_link") 2>conftest.er1
19744 grep -v '^ *+' conftest.er1 >conftest.err
19746 cat conftest.err >&5
19747 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19748 (exit $ac_status); } && {
19749 test -z "$ac_c_werror_flag" ||
19750 test ! -s conftest.err
19751 } && test -s conftest$ac_exeext && {
19752 test "$cross_compiling" = yes ||
19753 $as_test_x conftest$ac_exeext
19755 ac_cv_sys_largefile_source=1; break
19757 $as_echo "$as_me: failed program was
:" >&5
19758 sed 's/^/| /' conftest.$ac_ext >&5
19763 rm -rf conftest.dSYM
19764 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19765 conftest$ac_exeext conftest.$ac_ext
19766 ac_cv_sys_largefile_source=unknown
19770 { $as_echo "$as_me:$LINENO: result
: $ac_cv_sys_largefile_source" >&5
19771 $as_echo "$ac_cv_sys_largefile_source" >&6; }
19772 case $ac_cv_sys_largefile_source in #(
19775 cat >>confdefs.h <<_ACEOF
19776 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
19782 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
19783 # in glibc 2.1.3, but that breaks too many other things.
19784 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
19785 if test $ac_cv_sys_largefile_source != unknown; then
19787 cat >>confdefs.h <<\_ACEOF
19788 #define HAVE_FSEEKO 1
19794 # Configure getopt.
19795 # getopt.m4 serial 10
19797 # The getopt module assume you want GNU getopt, with getopt_long etc,
19798 # rather than vanilla POSIX getopt. This means your your code should
19799 # always include <getopt.h> for the getopt prototypes.
19811 # Prerequisites of lib/getopt*.
19818 for ac_header in getopt.h
19820 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
19821 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
19822 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
19823 $as_echo_n "checking
for $ac_header...
" >&6; }
19824 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
19825 $as_echo_n "(cached
) " >&6
19827 ac_res=`eval 'as_val=${'$as_ac_Header'}
19828 $as_echo "$as_val"'`
19829 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
19830 $as_echo "$ac_res" >&6; }
19832 # Is the header compilable?
19833 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
19834 $as_echo_n "checking
$ac_header usability...
" >&6; }
19835 cat >conftest.$ac_ext <<_ACEOF
19838 cat confdefs.h >>conftest.$ac_ext
19839 cat >>conftest.$ac_ext <<_ACEOF
19840 /* end confdefs.h. */
19841 $ac_includes_default
19842 #include <$ac_header>
19844 rm -f conftest.$ac_objext
19845 if { (ac_try="$ac_compile"
19846 case "(($ac_try" in
19847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19848 *) ac_try_echo=$ac_try;;
19850 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19851 $as_echo "$ac_try_echo") >&5
19852 (eval "$ac_compile") 2>conftest.er1
19854 grep -v '^ *+' conftest.er1 >conftest.err
19856 cat conftest.err >&5
19857 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19858 (exit $ac_status); } && {
19859 test -z "$ac_c_werror_flag" ||
19860 test ! -s conftest.err
19861 } && test -s conftest.$ac_objext; then
19862 ac_header_compiler=yes
19864 $as_echo "$as_me: failed program was
:" >&5
19865 sed 's/^/| /' conftest.$ac_ext >&5
19867 ac_header_compiler=no
19870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19871 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
19872 $as_echo "$ac_header_compiler" >&6; }
19874 # Is the header present?
19875 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
19876 $as_echo_n "checking
$ac_header presence...
" >&6; }
19877 cat >conftest.$ac_ext <<_ACEOF
19880 cat confdefs.h >>conftest.$ac_ext
19881 cat >>conftest.$ac_ext <<_ACEOF
19882 /* end confdefs.h. */
19883 #include <$ac_header>
19885 if { (ac_try="$ac_cpp conftest.
$ac_ext"
19886 case "(($ac_try" in
19887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19888 *) ac_try_echo=$ac_try;;
19890 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19891 $as_echo "$ac_try_echo") >&5
19892 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
19894 grep -v '^ *+' conftest.er1 >conftest.err
19896 cat conftest.err >&5
19897 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19898 (exit $ac_status); } >/dev/null && {
19899 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19900 test ! -s conftest.err
19902 ac_header_preproc=yes
19904 $as_echo "$as_me: failed program was
:" >&5
19905 sed 's/^/| /' conftest.$ac_ext >&5
19907 ac_header_preproc=no
19910 rm -f conftest.err conftest.$ac_ext
19911 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
19912 $as_echo "$ac_header_preproc" >&6; }
19914 # So? What about this header?
19915 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19917 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
19918 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
19919 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
19920 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
19921 ac_header_preproc=yes
19924 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
19925 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
19926 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
19927 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
19928 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
19929 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
19930 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
19931 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
19932 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
19933 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
19934 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
19935 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
19939 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
19940 $as_echo_n "checking
for $ac_header...
" >&6; }
19941 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
19942 $as_echo_n "(cached
) " >&6
19944 eval "$as_ac_Header=\
$ac_header_preproc"
19946 ac_res=`eval 'as_val=${'$as_ac_Header'}
19947 $as_echo "$as_val"'`
19948 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
19949 $as_echo "$ac_res" >&6; }
19952 if test `eval 'as_val=${'$as_ac_Header'}
19953 $as_echo "$as_val"'` = yes; then
19954 cat >>confdefs.h <<_ACEOF
19955 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
19964 if test -z "$GETOPT_H"; then
19966 for ac_func in getopt_long_only
19968 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
19969 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
19970 $as_echo_n "checking
for $ac_func...
" >&6; }
19971 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
19972 $as_echo_n "(cached
) " >&6
19974 cat >conftest.$ac_ext <<_ACEOF
19977 cat confdefs.h >>conftest.$ac_ext
19978 cat >>conftest.$ac_ext <<_ACEOF
19979 /* end confdefs.h. */
19980 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19981 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19982 #define $ac_func innocuous_$ac_func
19984 /* System header to define __stub macros and hopefully few prototypes,
19985 which can conflict with char $ac_func (); below.
19986 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19987 <limits.h> exists even on freestanding compilers. */
19990 # include <limits.h>
19992 # include <assert.h>
19997 /* Override any GCC internal prototype to avoid an error.
19998 Use char because int might match the return type of a GCC
19999 builtin and then its argument prototype would still apply. */
20004 /* The GNU C library defines this for functions which it implements
20005 to always fail with ENOSYS. Some functions are actually named
20006 something starting with __ and the normal name is an alias. */
20007 #if defined __stub_$ac_func || defined __stub___$ac_func
20014 return $ac_func ();
20019 rm -f conftest.$ac_objext conftest$ac_exeext
20020 if { (ac_try="$ac_link"
20021 case "(($ac_try" in
20022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20023 *) ac_try_echo=$ac_try;;
20025 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20026 $as_echo "$ac_try_echo") >&5
20027 (eval "$ac_link") 2>conftest.er1
20029 grep -v '^ *+' conftest.er1 >conftest.err
20031 cat conftest.err >&5
20032 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20033 (exit $ac_status); } && {
20034 test -z "$ac_c_werror_flag" ||
20035 test ! -s conftest.err
20036 } && test -s conftest$ac_exeext && {
20037 test "$cross_compiling" = yes ||
20038 $as_test_x conftest$ac_exeext
20040 eval "$as_ac_var=yes"
20042 $as_echo "$as_me: failed program was
:" >&5
20043 sed 's/^/| /' conftest.$ac_ext >&5
20045 eval "$as_ac_var=no
"
20048 rm -rf conftest.dSYM
20049 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20050 conftest$ac_exeext conftest.$ac_ext
20052 ac_res=`eval 'as_val=${'$as_ac_var'}
20053 $as_echo "$as_val"'`
20054 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
20055 $as_echo "$ac_res" >&6; }
20056 if test `eval 'as_val=${'$as_ac_var'}
20057 $as_echo "$as_val"'` = yes; then
20058 cat >>confdefs.h <<_ACEOF
20059 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
20069 if test -z "$GETOPT_H"; then
20070 { $as_echo "$as_me:$LINENO: checking whether optreset is declared
" >&5
20071 $as_echo_n "checking whether optreset is declared...
" >&6; }
20072 if test "${ac_cv_have_decl_optreset+set}" = set; then
20073 $as_echo_n "(cached
) " >&6
20075 cat >conftest.$ac_ext <<_ACEOF
20078 cat confdefs.h >>conftest.$ac_ext
20079 cat >>conftest.$ac_ext <<_ACEOF
20080 /* end confdefs.h. */
20081 #include <getopt.h>
20094 rm -f conftest.$ac_objext
20095 if { (ac_try="$ac_compile"
20096 case "(($ac_try" in
20097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20098 *) ac_try_echo=$ac_try;;
20100 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20101 $as_echo "$ac_try_echo") >&5
20102 (eval "$ac_compile") 2>conftest.er1
20104 grep -v '^ *+' conftest.er1 >conftest.err
20106 cat conftest.err >&5
20107 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20108 (exit $ac_status); } && {
20109 test -z "$ac_c_werror_flag" ||
20110 test ! -s conftest.err
20111 } && test -s conftest.$ac_objext; then
20112 ac_cv_have_decl_optreset=yes
20114 $as_echo "$as_me: failed program was
:" >&5
20115 sed 's/^/| /' conftest.$ac_ext >&5
20117 ac_cv_have_decl_optreset=no
20120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20122 { $as_echo "$as_me:$LINENO: result
: $ac_cv_have_decl_optreset" >&5
20123 $as_echo "$ac_cv_have_decl_optreset" >&6; }
20124 if test $ac_cv_have_decl_optreset = yes; then
20130 if test -z "$GETOPT_H"; then
20131 { $as_echo "$as_me:$LINENO: checking
for working GNU getopt
function" >&5
20132 $as_echo_n "checking
for working GNU getopt
function...
" >&6; }
20133 if test "${gl_cv_func_gnu_getopt+set}" = set; then
20134 $as_echo_n "(cached
) " >&6
20136 if test "$cross_compiling" = yes; then
20137 { $as_echo "$as_me:$LINENO: checking whether getopt_clip is declared
" >&5
20138 $as_echo_n "checking whether getopt_clip is declared...
" >&6; }
20139 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
20140 $as_echo_n "(cached
) " >&6
20142 cat >conftest.$ac_ext <<_ACEOF
20145 cat confdefs.h >>conftest.$ac_ext
20146 cat >>conftest.$ac_ext <<_ACEOF
20147 /* end confdefs.h. */
20148 #include <getopt.h>
20153 #ifndef getopt_clip
20154 (void) getopt_clip;
20161 rm -f conftest.$ac_objext
20162 if { (ac_try="$ac_compile"
20163 case "(($ac_try" in
20164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20165 *) ac_try_echo=$ac_try;;
20167 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20168 $as_echo "$ac_try_echo") >&5
20169 (eval "$ac_compile") 2>conftest.er1
20171 grep -v '^ *+' conftest.er1 >conftest.err
20173 cat conftest.err >&5
20174 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20175 (exit $ac_status); } && {
20176 test -z "$ac_c_werror_flag" ||
20177 test ! -s conftest.err
20178 } && test -s conftest.$ac_objext; then
20179 ac_cv_have_decl_getopt_clip=yes
20181 $as_echo "$as_me: failed program was
:" >&5
20182 sed 's/^/| /' conftest.$ac_ext >&5
20184 ac_cv_have_decl_getopt_clip=no
20187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20189 { $as_echo "$as_me:$LINENO: result
: $ac_cv_have_decl_getopt_clip" >&5
20190 $as_echo "$ac_cv_have_decl_getopt_clip" >&6; }
20191 if test $ac_cv_have_decl_getopt_clip = yes; then
20192 gl_cv_func_gnu_getopt=no
20194 gl_cv_func_gnu_getopt=yes
20198 cat >conftest.$ac_ext <<_ACEOF
20201 cat confdefs.h >>conftest.$ac_ext
20202 cat >>conftest.$ac_ext <<_ACEOF
20203 /* end confdefs.h. */
20204 #include <getopt.h>
20210 myargv[0] = "conftest
";
20213 return getopt (2, myargv, "+a
") != '?';
20219 rm -f conftest$ac_exeext
20220 if { (ac_try="$ac_link"
20221 case "(($ac_try" in
20222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20223 *) ac_try_echo=$ac_try;;
20225 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20226 $as_echo "$ac_try_echo") >&5
20227 (eval "$ac_link") 2>&5
20229 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20230 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20231 { (case "(($ac_try" in
20232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20233 *) ac_try_echo=$ac_try;;
20235 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20236 $as_echo "$ac_try_echo") >&5
20237 (eval "$ac_try") 2>&5
20239 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20240 (exit $ac_status); }; }; then
20241 gl_cv_func_gnu_getopt=yes
20243 $as_echo "$as_me: program exited with status
$ac_status" >&5
20244 $as_echo "$as_me: failed program was
:" >&5
20245 sed 's/^/| /' conftest.$ac_ext >&5
20247 ( exit $ac_status )
20248 gl_cv_func_gnu_getopt=no
20250 rm -rf conftest.dSYM
20251 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20256 { $as_echo "$as_me:$LINENO: result
: $gl_cv_func_gnu_getopt" >&5
20257 $as_echo "$gl_cv_func_gnu_getopt" >&6; }
20258 if test "$gl_cv_func_gnu_getopt" = "no
"; then
20265 if test -n "$GETOPT_H"; then
20270 cat >>confdefs.h <<\_ACEOF
20271 #define __GETOPT_PREFIX rpl_
20277 GETOPTOBJS='getopt.o getopt1.o'
20284 { $as_echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments
" >&5
20285 $as_echo_n "checking whether getpgrp requires zero arguments...
" >&6; }
20286 if test "${ac_cv_func_getpgrp_void+set}" = set; then
20287 $as_echo_n "(cached
) " >&6
20289 # Use it with a single arg.
20290 cat >conftest.$ac_ext <<_ACEOF
20293 cat confdefs.h >>conftest.$ac_ext
20294 cat >>conftest.$ac_ext <<_ACEOF
20295 /* end confdefs.h. */
20296 $ac_includes_default
20305 rm -f conftest.$ac_objext
20306 if { (ac_try="$ac_compile"
20307 case "(($ac_try" in
20308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20309 *) ac_try_echo=$ac_try;;
20311 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20312 $as_echo "$ac_try_echo") >&5
20313 (eval "$ac_compile") 2>conftest.er1
20315 grep -v '^ *+' conftest.er1 >conftest.err
20317 cat conftest.err >&5
20318 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20319 (exit $ac_status); } && {
20320 test -z "$ac_c_werror_flag" ||
20321 test ! -s conftest.err
20322 } && test -s conftest.$ac_objext; then
20323 ac_cv_func_getpgrp_void=no
20325 $as_echo "$as_me: failed program was
:" >&5
20326 sed 's/^/| /' conftest.$ac_ext >&5
20328 ac_cv_func_getpgrp_void=yes
20331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20334 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func_getpgrp_void" >&5
20335 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
20336 if test $ac_cv_func_getpgrp_void = yes; then
20338 cat >>confdefs.h <<\_ACEOF
20339 #define GETPGRP_VOID 1
20346 for ac_func in strftime
20348 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
20349 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
20350 $as_echo_n "checking
for $ac_func...
" >&6; }
20351 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
20352 $as_echo_n "(cached
) " >&6
20354 cat >conftest.$ac_ext <<_ACEOF
20357 cat confdefs.h >>conftest.$ac_ext
20358 cat >>conftest.$ac_ext <<_ACEOF
20359 /* end confdefs.h. */
20360 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20361 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20362 #define $ac_func innocuous_$ac_func
20364 /* System header to define __stub macros and hopefully few prototypes,
20365 which can conflict with char $ac_func (); below.
20366 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20367 <limits.h> exists even on freestanding compilers. */
20370 # include <limits.h>
20372 # include <assert.h>
20377 /* Override any GCC internal prototype to avoid an error.
20378 Use char because int might match the return type of a GCC
20379 builtin and then its argument prototype would still apply. */
20384 /* The GNU C library defines this for functions which it implements
20385 to always fail with ENOSYS. Some functions are actually named
20386 something starting with __ and the normal name is an alias. */
20387 #if defined __stub_$ac_func || defined __stub___$ac_func
20394 return $ac_func ();
20399 rm -f conftest.$ac_objext conftest$ac_exeext
20400 if { (ac_try="$ac_link"
20401 case "(($ac_try" in
20402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20403 *) ac_try_echo=$ac_try;;
20405 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20406 $as_echo "$ac_try_echo") >&5
20407 (eval "$ac_link") 2>conftest.er1
20409 grep -v '^ *+' conftest.er1 >conftest.err
20411 cat conftest.err >&5
20412 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20413 (exit $ac_status); } && {
20414 test -z "$ac_c_werror_flag" ||
20415 test ! -s conftest.err
20416 } && test -s conftest$ac_exeext && {
20417 test "$cross_compiling" = yes ||
20418 $as_test_x conftest$ac_exeext
20420 eval "$as_ac_var=yes"
20422 $as_echo "$as_me: failed program was
:" >&5
20423 sed 's/^/| /' conftest.$ac_ext >&5
20425 eval "$as_ac_var=no
"
20428 rm -rf conftest.dSYM
20429 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20430 conftest$ac_exeext conftest.$ac_ext
20432 ac_res=`eval 'as_val=${'$as_ac_var'}
20433 $as_echo "$as_val"'`
20434 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
20435 $as_echo "$ac_res" >&6; }
20436 if test `eval 'as_val=${'$as_ac_var'}
20437 $as_echo "$as_val"'` = yes; then
20438 cat >>confdefs.h <<_ACEOF
20439 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
20443 # strftime is in -lintl on SCO UNIX.
20444 { $as_echo "$as_me:$LINENO: checking
for strftime
in -lintl" >&5
20445 $as_echo_n "checking
for strftime
in -lintl...
" >&6; }
20446 if test "${ac_cv_lib_intl_strftime+set}" = set; then
20447 $as_echo_n "(cached
) " >&6
20449 ac_check_lib_save_LIBS=$LIBS
20450 LIBS="-lintl $LIBS"
20451 cat >conftest.$ac_ext <<_ACEOF
20454 cat confdefs.h >>conftest.$ac_ext
20455 cat >>conftest.$ac_ext <<_ACEOF
20456 /* end confdefs.h. */
20458 /* Override any GCC internal prototype to avoid an error.
20459 Use char because int might match the return type of a GCC
20460 builtin and then its argument prototype would still apply. */
20468 return strftime ();
20473 rm -f conftest.$ac_objext conftest$ac_exeext
20474 if { (ac_try="$ac_link"
20475 case "(($ac_try" in
20476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20477 *) ac_try_echo=$ac_try;;
20479 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20480 $as_echo "$ac_try_echo") >&5
20481 (eval "$ac_link") 2>conftest.er1
20483 grep -v '^ *+' conftest.er1 >conftest.err
20485 cat conftest.err >&5
20486 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20487 (exit $ac_status); } && {
20488 test -z "$ac_c_werror_flag" ||
20489 test ! -s conftest.err
20490 } && test -s conftest$ac_exeext && {
20491 test "$cross_compiling" = yes ||
20492 $as_test_x conftest$ac_exeext
20494 ac_cv_lib_intl_strftime=yes
20496 $as_echo "$as_me: failed program was
:" >&5
20497 sed 's/^/| /' conftest.$ac_ext >&5
20499 ac_cv_lib_intl_strftime=no
20502 rm -rf conftest.dSYM
20503 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20504 conftest$ac_exeext conftest.$ac_ext
20505 LIBS=$ac_check_lib_save_LIBS
20507 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_intl_strftime" >&5
20508 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
20509 if test $ac_cv_lib_intl_strftime = yes; then
20510 cat >>confdefs.h <<\_ACEOF
20511 #define HAVE_STRFTIME 1
20514 LIBS="-lintl $LIBS"
20523 for ac_func in grantpt
20525 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
20526 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
20527 $as_echo_n "checking
for $ac_func...
" >&6; }
20528 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
20529 $as_echo_n "(cached
) " >&6
20531 cat >conftest.$ac_ext <<_ACEOF
20534 cat confdefs.h >>conftest.$ac_ext
20535 cat >>conftest.$ac_ext <<_ACEOF
20536 /* end confdefs.h. */
20537 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20538 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20539 #define $ac_func innocuous_$ac_func
20541 /* System header to define __stub macros and hopefully few prototypes,
20542 which can conflict with char $ac_func (); below.
20543 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20544 <limits.h> exists even on freestanding compilers. */
20547 # include <limits.h>
20549 # include <assert.h>
20554 /* Override any GCC internal prototype to avoid an error.
20555 Use char because int might match the return type of a GCC
20556 builtin and then its argument prototype would still apply. */
20561 /* The GNU C library defines this for functions which it implements
20562 to always fail with ENOSYS. Some functions are actually named
20563 something starting with __ and the normal name is an alias. */
20564 #if defined __stub_$ac_func || defined __stub___$ac_func
20571 return $ac_func ();
20576 rm -f conftest.$ac_objext conftest$ac_exeext
20577 if { (ac_try="$ac_link"
20578 case "(($ac_try" in
20579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20580 *) ac_try_echo=$ac_try;;
20582 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20583 $as_echo "$ac_try_echo") >&5
20584 (eval "$ac_link") 2>conftest.er1
20586 grep -v '^ *+' conftest.er1 >conftest.err
20588 cat conftest.err >&5
20589 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20590 (exit $ac_status); } && {
20591 test -z "$ac_c_werror_flag" ||
20592 test ! -s conftest.err
20593 } && test -s conftest$ac_exeext && {
20594 test "$cross_compiling" = yes ||
20595 $as_test_x conftest$ac_exeext
20597 eval "$as_ac_var=yes"
20599 $as_echo "$as_me: failed program was
:" >&5
20600 sed 's/^/| /' conftest.$ac_ext >&5
20602 eval "$as_ac_var=no
"
20605 rm -rf conftest.dSYM
20606 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20607 conftest$ac_exeext conftest.$ac_ext
20609 ac_res=`eval 'as_val=${'$as_ac_var'}
20610 $as_echo "$as_val"'`
20611 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
20612 $as_echo "$ac_res" >&6; }
20613 if test `eval 'as_val=${'$as_ac_var'}
20614 $as_echo "$as_val"'` = yes; then
20615 cat >>confdefs.h <<_ACEOF
20616 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
20623 # PTY-related GNU extensions.
20625 for ac_func in getpt
20627 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
20628 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
20629 $as_echo_n "checking
for $ac_func...
" >&6; }
20630 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
20631 $as_echo_n "(cached
) " >&6
20633 cat >conftest.$ac_ext <<_ACEOF
20636 cat confdefs.h >>conftest.$ac_ext
20637 cat >>conftest.$ac_ext <<_ACEOF
20638 /* end confdefs.h. */
20639 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20640 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20641 #define $ac_func innocuous_$ac_func
20643 /* System header to define __stub macros and hopefully few prototypes,
20644 which can conflict with char $ac_func (); below.
20645 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20646 <limits.h> exists even on freestanding compilers. */
20649 # include <limits.h>
20651 # include <assert.h>
20656 /* Override any GCC internal prototype to avoid an error.
20657 Use char because int might match the return type of a GCC
20658 builtin and then its argument prototype would still apply. */
20663 /* The GNU C library defines this for functions which it implements
20664 to always fail with ENOSYS. Some functions are actually named
20665 something starting with __ and the normal name is an alias. */
20666 #if defined __stub_$ac_func || defined __stub___$ac_func
20673 return $ac_func ();
20678 rm -f conftest.$ac_objext conftest$ac_exeext
20679 if { (ac_try="$ac_link"
20680 case "(($ac_try" in
20681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20682 *) ac_try_echo=$ac_try;;
20684 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20685 $as_echo "$ac_try_echo") >&5
20686 (eval "$ac_link") 2>conftest.er1
20688 grep -v '^ *+' conftest.er1 >conftest.err
20690 cat conftest.err >&5
20691 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20692 (exit $ac_status); } && {
20693 test -z "$ac_c_werror_flag" ||
20694 test ! -s conftest.err
20695 } && test -s conftest$ac_exeext && {
20696 test "$cross_compiling" = yes ||
20697 $as_test_x conftest$ac_exeext
20699 eval "$as_ac_var=yes"
20701 $as_echo "$as_me: failed program was
:" >&5
20702 sed 's/^/| /' conftest.$ac_ext >&5
20704 eval "$as_ac_var=no
"
20707 rm -rf conftest.dSYM
20708 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20709 conftest$ac_exeext conftest.$ac_ext
20711 ac_res=`eval 'as_val=${'$as_ac_var'}
20712 $as_echo "$as_val"'`
20713 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
20714 $as_echo "$ac_res" >&6; }
20715 if test `eval 'as_val=${'$as_ac_var'}
20716 $as_echo "$as_val"'` = yes; then
20717 cat >>confdefs.h <<_ACEOF
20718 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
20725 # Check this now, so that we will NOT find the above functions in ncurses.
20726 # That is because we have not set up to link ncurses in lib-src.
20727 # It's better to believe a function is not available
20728 # than to expect to find it in ncurses.
20730 { $as_echo "$as_me:$LINENO: checking
for tparm
in -lncurses" >&5
20731 $as_echo_n "checking
for tparm
in -lncurses...
" >&6; }
20732 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
20733 $as_echo_n "(cached
) " >&6
20735 ac_check_lib_save_LIBS=$LIBS
20736 LIBS="-lncurses $LIBS"
20737 cat >conftest.$ac_ext <<_ACEOF
20740 cat confdefs.h >>conftest.$ac_ext
20741 cat >>conftest.$ac_ext <<_ACEOF
20742 /* end confdefs.h. */
20744 /* Override any GCC internal prototype to avoid an error.
20745 Use char because int might match the return type of a GCC
20746 builtin and then its argument prototype would still apply. */
20759 rm -f conftest.$ac_objext conftest$ac_exeext
20760 if { (ac_try="$ac_link"
20761 case "(($ac_try" in
20762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20763 *) ac_try_echo=$ac_try;;
20765 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20766 $as_echo "$ac_try_echo") >&5
20767 (eval "$ac_link") 2>conftest.er1
20769 grep -v '^ *+' conftest.er1 >conftest.err
20771 cat conftest.err >&5
20772 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20773 (exit $ac_status); } && {
20774 test -z "$ac_c_werror_flag" ||
20775 test ! -s conftest.err
20776 } && test -s conftest$ac_exeext && {
20777 test "$cross_compiling" = yes ||
20778 $as_test_x conftest$ac_exeext
20780 ac_cv_lib_ncurses_tparm=yes
20782 $as_echo "$as_me: failed program was
:" >&5
20783 sed 's/^/| /' conftest.$ac_ext >&5
20785 ac_cv_lib_ncurses_tparm=no
20788 rm -rf conftest.dSYM
20789 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20790 conftest$ac_exeext conftest.$ac_ext
20791 LIBS=$ac_check_lib_save_LIBS
20793 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_ncurses_tparm" >&5
20794 $as_echo "$ac_cv_lib_ncurses_tparm" >&6; }
20795 if test $ac_cv_lib_ncurses_tparm = yes; then
20796 cat >>confdefs.h <<_ACEOF
20797 #define HAVE_LIBNCURSES 1
20800 LIBS="-lncurses $LIBS"
20805 # Do we have res_init, for detecting changes in /etc/resolv.conf?
20808 cat >conftest.$ac_ext <<_ACEOF
20811 cat confdefs.h >>conftest.$ac_ext
20812 cat >>conftest.$ac_ext <<_ACEOF
20813 /* end confdefs.h. */
20814 #include <netinet/in.h>
20815 #include <arpa/nameser.h>
20816 #include <resolv.h>
20825 rm -f conftest.$ac_objext conftest$ac_exeext
20826 if { (ac_try="$ac_link"
20827 case "(($ac_try" in
20828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20829 *) ac_try_echo=$ac_try;;
20831 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20832 $as_echo "$ac_try_echo") >&5
20833 (eval "$ac_link") 2>conftest.er1
20835 grep -v '^ *+' conftest.er1 >conftest.err
20837 cat conftest.err >&5
20838 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20839 (exit $ac_status); } && {
20840 test -z "$ac_c_werror_flag" ||
20841 test ! -s conftest.err
20842 } && test -s conftest$ac_exeext && {
20843 test "$cross_compiling" = yes ||
20844 $as_test_x conftest$ac_exeext
20848 $as_echo "$as_me: failed program was
:" >&5
20849 sed 's/^/| /' conftest.$ac_ext >&5
20854 rm -rf conftest.dSYM
20855 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20856 conftest$ac_exeext conftest.$ac_ext
20857 if test "$have_res_init" = no; then
20859 LIBS="$LIBS -lresolv"
20860 { $as_echo "$as_me:$LINENO: checking
for res_init with
-lresolv" >&5
20861 $as_echo_n "checking
for res_init with
-lresolv...
" >&6; }
20862 cat >conftest.$ac_ext <<_ACEOF
20865 cat confdefs.h >>conftest.$ac_ext
20866 cat >>conftest.$ac_ext <<_ACEOF
20867 /* end confdefs.h. */
20868 #include <netinet/in.h>
20869 #include <arpa/nameser.h>
20870 #include <resolv.h>
20879 rm -f conftest.$ac_objext conftest$ac_exeext
20880 if { (ac_try="$ac_link"
20881 case "(($ac_try" in
20882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20883 *) ac_try_echo=$ac_try;;
20885 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20886 $as_echo "$ac_try_echo") >&5
20887 (eval "$ac_link") 2>conftest.er1
20889 grep -v '^ *+' conftest.er1 >conftest.err
20891 cat conftest.err >&5
20892 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20893 (exit $ac_status); } && {
20894 test -z "$ac_c_werror_flag" ||
20895 test ! -s conftest.err
20896 } && test -s conftest$ac_exeext && {
20897 test "$cross_compiling" = yes ||
20898 $as_test_x conftest$ac_exeext
20902 $as_echo "$as_me: failed program was
:" >&5
20903 sed 's/^/| /' conftest.$ac_ext >&5
20908 rm -rf conftest.dSYM
20909 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20910 conftest$ac_exeext conftest.$ac_ext
20911 { $as_echo "$as_me:$LINENO: result
: $have_res_init" >&5
20912 $as_echo "$have_res_init" >&6; }
20913 if test "$have_res_init" = yes ; then
20919 if test "$have_res_init" = yes; then
20921 cat >>confdefs.h <<\_ACEOF
20922 #define HAVE_RES_INIT 1
20927 # Do we need the Hesiod library to provide the support routines?
20928 if test "$with_hesiod" != no ; then
20929 # Don't set $LIBS here -- see comments above.
20930 { $as_echo "$as_me:$LINENO: checking
for res_send
" >&5
20931 $as_echo_n "checking
for res_send...
" >&6; }
20932 if test "${ac_cv_func_res_send+set}" = set; then
20933 $as_echo_n "(cached
) " >&6
20935 cat >conftest.$ac_ext <<_ACEOF
20938 cat confdefs.h >>conftest.$ac_ext
20939 cat >>conftest.$ac_ext <<_ACEOF
20940 /* end confdefs.h. */
20941 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
20942 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20943 #define res_send innocuous_res_send
20945 /* System header to define __stub macros and hopefully few prototypes,
20946 which can conflict with char res_send (); below.
20947 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20948 <limits.h> exists even on freestanding compilers. */
20951 # include <limits.h>
20953 # include <assert.h>
20958 /* Override any GCC internal prototype to avoid an error.
20959 Use char because int might match the return type of a GCC
20960 builtin and then its argument prototype would still apply. */
20965 /* The GNU C library defines this for functions which it implements
20966 to always fail with ENOSYS. Some functions are actually named
20967 something starting with __ and the normal name is an alias. */
20968 #if defined __stub_res_send || defined __stub___res_send
20975 return res_send ();
20980 rm -f conftest.$ac_objext conftest$ac_exeext
20981 if { (ac_try="$ac_link"
20982 case "(($ac_try" in
20983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20984 *) ac_try_echo=$ac_try;;
20986 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20987 $as_echo "$ac_try_echo") >&5
20988 (eval "$ac_link") 2>conftest.er1
20990 grep -v '^ *+' conftest.er1 >conftest.err
20992 cat conftest.err >&5
20993 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20994 (exit $ac_status); } && {
20995 test -z "$ac_c_werror_flag" ||
20996 test ! -s conftest.err
20997 } && test -s conftest$ac_exeext && {
20998 test "$cross_compiling" = yes ||
20999 $as_test_x conftest$ac_exeext
21001 ac_cv_func_res_send=yes
21003 $as_echo "$as_me: failed program was
:" >&5
21004 sed 's/^/| /' conftest.$ac_ext >&5
21006 ac_cv_func_res_send=no
21009 rm -rf conftest.dSYM
21010 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21011 conftest$ac_exeext conftest.$ac_ext
21013 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func_res_send" >&5
21014 $as_echo "$ac_cv_func_res_send" >&6; }
21015 if test $ac_cv_func_res_send = yes; then
21018 { $as_echo "$as_me:$LINENO: checking
for __res_send
" >&5
21019 $as_echo_n "checking
for __res_send...
" >&6; }
21020 if test "${ac_cv_func___res_send+set}" = set; then
21021 $as_echo_n "(cached
) " >&6
21023 cat >conftest.$ac_ext <<_ACEOF
21026 cat confdefs.h >>conftest.$ac_ext
21027 cat >>conftest.$ac_ext <<_ACEOF
21028 /* end confdefs.h. */
21029 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
21030 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21031 #define __res_send innocuous___res_send
21033 /* System header to define __stub macros and hopefully few prototypes,
21034 which can conflict with char __res_send (); below.
21035 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21036 <limits.h> exists even on freestanding compilers. */
21039 # include <limits.h>
21041 # include <assert.h>
21046 /* Override any GCC internal prototype to avoid an error.
21047 Use char because int might match the return type of a GCC
21048 builtin and then its argument prototype would still apply. */
21052 char __res_send ();
21053 /* The GNU C library defines this for functions which it implements
21054 to always fail with ENOSYS. Some functions are actually named
21055 something starting with __ and the normal name is an alias. */
21056 #if defined __stub___res_send || defined __stub_____res_send
21063 return __res_send ();
21068 rm -f conftest.$ac_objext conftest$ac_exeext
21069 if { (ac_try="$ac_link"
21070 case "(($ac_try" in
21071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21072 *) ac_try_echo=$ac_try;;
21074 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21075 $as_echo "$ac_try_echo") >&5
21076 (eval "$ac_link") 2>conftest.er1
21078 grep -v '^ *+' conftest.er1 >conftest.err
21080 cat conftest.err >&5
21081 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21082 (exit $ac_status); } && {
21083 test -z "$ac_c_werror_flag" ||
21084 test ! -s conftest.err
21085 } && test -s conftest$ac_exeext && {
21086 test "$cross_compiling" = yes ||
21087 $as_test_x conftest$ac_exeext
21089 ac_cv_func___res_send=yes
21091 $as_echo "$as_me: failed program was
:" >&5
21092 sed 's/^/| /' conftest.$ac_ext >&5
21094 ac_cv_func___res_send=no
21097 rm -rf conftest.dSYM
21098 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21099 conftest$ac_exeext conftest.$ac_ext
21101 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func___res_send" >&5
21102 $as_echo "$ac_cv_func___res_send" >&6; }
21103 if test $ac_cv_func___res_send = yes; then
21106 { $as_echo "$as_me:$LINENO: checking
for res_send
in -lresolv" >&5
21107 $as_echo_n "checking
for res_send
in -lresolv...
" >&6; }
21108 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
21109 $as_echo_n "(cached
) " >&6
21111 ac_check_lib_save_LIBS=$LIBS
21112 LIBS="-lresolv $LIBS"
21113 cat >conftest.$ac_ext <<_ACEOF
21116 cat confdefs.h >>conftest.$ac_ext
21117 cat >>conftest.$ac_ext <<_ACEOF
21118 /* end confdefs.h. */
21120 /* Override any GCC internal prototype to avoid an error.
21121 Use char because int might match the return type of a GCC
21122 builtin and then its argument prototype would still apply. */
21130 return res_send ();
21135 rm -f conftest.$ac_objext conftest$ac_exeext
21136 if { (ac_try="$ac_link"
21137 case "(($ac_try" in
21138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21139 *) ac_try_echo=$ac_try;;
21141 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21142 $as_echo "$ac_try_echo") >&5
21143 (eval "$ac_link") 2>conftest.er1
21145 grep -v '^ *+' conftest.er1 >conftest.err
21147 cat conftest.err >&5
21148 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21149 (exit $ac_status); } && {
21150 test -z "$ac_c_werror_flag" ||
21151 test ! -s conftest.err
21152 } && test -s conftest$ac_exeext && {
21153 test "$cross_compiling" = yes ||
21154 $as_test_x conftest$ac_exeext
21156 ac_cv_lib_resolv_res_send=yes
21158 $as_echo "$as_me: failed program was
:" >&5
21159 sed 's/^/| /' conftest.$ac_ext >&5
21161 ac_cv_lib_resolv_res_send=no
21164 rm -rf conftest.dSYM
21165 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21166 conftest$ac_exeext conftest.$ac_ext
21167 LIBS=$ac_check_lib_save_LIBS
21169 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_resolv_res_send" >&5
21170 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
21171 if test $ac_cv_lib_resolv_res_send = yes; then
21174 { $as_echo "$as_me:$LINENO: checking
for __res_send
in -lresolv" >&5
21175 $as_echo_n "checking
for __res_send
in -lresolv...
" >&6; }
21176 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
21177 $as_echo_n "(cached
) " >&6
21179 ac_check_lib_save_LIBS=$LIBS
21180 LIBS="-lresolv $LIBS"
21181 cat >conftest.$ac_ext <<_ACEOF
21184 cat confdefs.h >>conftest.$ac_ext
21185 cat >>conftest.$ac_ext <<_ACEOF
21186 /* end confdefs.h. */
21188 /* Override any GCC internal prototype to avoid an error.
21189 Use char because int might match the return type of a GCC
21190 builtin and then its argument prototype would still apply. */
21194 char __res_send ();
21198 return __res_send ();
21203 rm -f conftest.$ac_objext conftest$ac_exeext
21204 if { (ac_try="$ac_link"
21205 case "(($ac_try" in
21206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21207 *) ac_try_echo=$ac_try;;
21209 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21210 $as_echo "$ac_try_echo") >&5
21211 (eval "$ac_link") 2>conftest.er1
21213 grep -v '^ *+' conftest.er1 >conftest.err
21215 cat conftest.err >&5
21216 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21217 (exit $ac_status); } && {
21218 test -z "$ac_c_werror_flag" ||
21219 test ! -s conftest.err
21220 } && test -s conftest$ac_exeext && {
21221 test "$cross_compiling" = yes ||
21222 $as_test_x conftest$ac_exeext
21224 ac_cv_lib_resolv___res_send=yes
21226 $as_echo "$as_me: failed program was
:" >&5
21227 sed 's/^/| /' conftest.$ac_ext >&5
21229 ac_cv_lib_resolv___res_send=no
21232 rm -rf conftest.dSYM
21233 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21234 conftest$ac_exeext conftest.$ac_ext
21235 LIBS=$ac_check_lib_save_LIBS
21237 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_resolv___res_send" >&5
21238 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
21239 if test $ac_cv_lib_resolv___res_send = yes; then
21249 if test "$resolv" = yes ; then
21254 { $as_echo "$as_me:$LINENO: checking
for hes_getmailhost
" >&5
21255 $as_echo_n "checking
for hes_getmailhost...
" >&6; }
21256 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
21257 $as_echo_n "(cached
) " >&6
21259 cat >conftest.$ac_ext <<_ACEOF
21262 cat confdefs.h >>conftest.$ac_ext
21263 cat >>conftest.$ac_ext <<_ACEOF
21264 /* end confdefs.h. */
21265 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
21266 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21267 #define hes_getmailhost innocuous_hes_getmailhost
21269 /* System header to define __stub macros and hopefully few prototypes,
21270 which can conflict with char hes_getmailhost (); below.
21271 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21272 <limits.h> exists even on freestanding compilers. */
21275 # include <limits.h>
21277 # include <assert.h>
21280 #undef hes_getmailhost
21282 /* Override any GCC internal prototype to avoid an error.
21283 Use char because int might match the return type of a GCC
21284 builtin and then its argument prototype would still apply. */
21288 char hes_getmailhost ();
21289 /* The GNU C library defines this for functions which it implements
21290 to always fail with ENOSYS. Some functions are actually named
21291 something starting with __ and the normal name is an alias. */
21292 #if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost
21299 return hes_getmailhost ();
21304 rm -f conftest.$ac_objext conftest$ac_exeext
21305 if { (ac_try="$ac_link"
21306 case "(($ac_try" in
21307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21308 *) ac_try_echo=$ac_try;;
21310 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21311 $as_echo "$ac_try_echo") >&5
21312 (eval "$ac_link") 2>conftest.er1
21314 grep -v '^ *+' conftest.er1 >conftest.err
21316 cat conftest.err >&5
21317 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21318 (exit $ac_status); } && {
21319 test -z "$ac_c_werror_flag" ||
21320 test ! -s conftest.err
21321 } && test -s conftest$ac_exeext && {
21322 test "$cross_compiling" = yes ||
21323 $as_test_x conftest$ac_exeext
21325 ac_cv_func_hes_getmailhost=yes
21327 $as_echo "$as_me: failed program was
:" >&5
21328 sed 's/^/| /' conftest.$ac_ext >&5
21330 ac_cv_func_hes_getmailhost=no
21333 rm -rf conftest.dSYM
21334 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21335 conftest$ac_exeext conftest.$ac_ext
21337 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func_hes_getmailhost" >&5
21338 $as_echo "$ac_cv_func_hes_getmailhost" >&6; }
21339 if test $ac_cv_func_hes_getmailhost = yes; then
21342 { $as_echo "$as_me:$LINENO: checking
for hes_getmailhost
in -lhesiod" >&5
21343 $as_echo_n "checking
for hes_getmailhost
in -lhesiod...
" >&6; }
21344 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
21345 $as_echo_n "(cached
) " >&6
21347 ac_check_lib_save_LIBS=$LIBS
21348 LIBS="-lhesiod $RESOLVLIB $LIBS"
21349 cat >conftest.$ac_ext <<_ACEOF
21352 cat confdefs.h >>conftest.$ac_ext
21353 cat >>conftest.$ac_ext <<_ACEOF
21354 /* end confdefs.h. */
21356 /* Override any GCC internal prototype to avoid an error.
21357 Use char because int might match the return type of a GCC
21358 builtin and then its argument prototype would still apply. */
21362 char hes_getmailhost ();
21366 return hes_getmailhost ();
21371 rm -f conftest.$ac_objext conftest$ac_exeext
21372 if { (ac_try="$ac_link"
21373 case "(($ac_try" in
21374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21375 *) ac_try_echo=$ac_try;;
21377 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21378 $as_echo "$ac_try_echo") >&5
21379 (eval "$ac_link") 2>conftest.er1
21381 grep -v '^ *+' conftest.er1 >conftest.err
21383 cat conftest.err >&5
21384 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21385 (exit $ac_status); } && {
21386 test -z "$ac_c_werror_flag" ||
21387 test ! -s conftest.err
21388 } && test -s conftest$ac_exeext && {
21389 test "$cross_compiling" = yes ||
21390 $as_test_x conftest$ac_exeext
21392 ac_cv_lib_hesiod_hes_getmailhost=yes
21394 $as_echo "$as_me: failed program was
:" >&5
21395 sed 's/^/| /' conftest.$ac_ext >&5
21397 ac_cv_lib_hesiod_hes_getmailhost=no
21400 rm -rf conftest.dSYM
21401 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21402 conftest$ac_exeext conftest.$ac_ext
21403 LIBS=$ac_check_lib_save_LIBS
21405 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_hesiod_hes_getmailhost" >&5
21406 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
21407 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
21409 cat >>confdefs.h <<\_ACEOF
21410 #define HAVE_LIBHESIOD 1
21421 # Do we need libresolv (due to res_init or Hesiod)?
21422 if test "$resolv" = yes ; then
21424 cat >>confdefs.h <<\_ACEOF
21425 #define HAVE_LIBRESOLV 1
21430 # These tell us which Kerberos-related libraries to use.
21431 if test "${with_kerberos}" != no; then
21433 { $as_echo "$as_me:$LINENO: checking
for com_err
in -lcom_err" >&5
21434 $as_echo_n "checking
for com_err
in -lcom_err...
" >&6; }
21435 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
21436 $as_echo_n "(cached
) " >&6
21438 ac_check_lib_save_LIBS=$LIBS
21439 LIBS="-lcom_err $LIBS"
21440 cat >conftest.$ac_ext <<_ACEOF
21443 cat confdefs.h >>conftest.$ac_ext
21444 cat >>conftest.$ac_ext <<_ACEOF
21445 /* end confdefs.h. */
21447 /* Override any GCC internal prototype to avoid an error.
21448 Use char because int might match the return type of a GCC
21449 builtin and then its argument prototype would still apply. */
21462 rm -f conftest.$ac_objext conftest$ac_exeext
21463 if { (ac_try="$ac_link"
21464 case "(($ac_try" in
21465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21466 *) ac_try_echo=$ac_try;;
21468 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21469 $as_echo "$ac_try_echo") >&5
21470 (eval "$ac_link") 2>conftest.er1
21472 grep -v '^ *+' conftest.er1 >conftest.err
21474 cat conftest.err >&5
21475 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21476 (exit $ac_status); } && {
21477 test -z "$ac_c_werror_flag" ||
21478 test ! -s conftest.err
21479 } && test -s conftest$ac_exeext && {
21480 test "$cross_compiling" = yes ||
21481 $as_test_x conftest$ac_exeext
21483 ac_cv_lib_com_err_com_err=yes
21485 $as_echo "$as_me: failed program was
:" >&5
21486 sed 's/^/| /' conftest.$ac_ext >&5
21488 ac_cv_lib_com_err_com_err=no
21491 rm -rf conftest.dSYM
21492 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21493 conftest$ac_exeext conftest.$ac_ext
21494 LIBS=$ac_check_lib_save_LIBS
21496 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_com_err_com_err" >&5
21497 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
21498 if test $ac_cv_lib_com_err_com_err = yes; then
21499 cat >>confdefs.h <<_ACEOF
21500 #define HAVE_LIBCOM_ERR 1
21503 LIBS="-lcom_err $LIBS"
21508 { $as_echo "$as_me:$LINENO: checking
for mit_des_cbc_encrypt
in -lk5crypto" >&5
21509 $as_echo_n "checking
for mit_des_cbc_encrypt
in -lk5crypto...
" >&6; }
21510 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
21511 $as_echo_n "(cached
) " >&6
21513 ac_check_lib_save_LIBS=$LIBS
21514 LIBS="-lk5crypto $LIBS"
21515 cat >conftest.$ac_ext <<_ACEOF
21518 cat confdefs.h >>conftest.$ac_ext
21519 cat >>conftest.$ac_ext <<_ACEOF
21520 /* end confdefs.h. */
21522 /* Override any GCC internal prototype to avoid an error.
21523 Use char because int might match the return type of a GCC
21524 builtin and then its argument prototype would still apply. */
21528 char mit_des_cbc_encrypt ();
21532 return mit_des_cbc_encrypt ();
21537 rm -f conftest.$ac_objext conftest$ac_exeext
21538 if { (ac_try="$ac_link"
21539 case "(($ac_try" in
21540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21541 *) ac_try_echo=$ac_try;;
21543 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21544 $as_echo "$ac_try_echo") >&5
21545 (eval "$ac_link") 2>conftest.er1
21547 grep -v '^ *+' conftest.er1 >conftest.err
21549 cat conftest.err >&5
21550 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21551 (exit $ac_status); } && {
21552 test -z "$ac_c_werror_flag" ||
21553 test ! -s conftest.err
21554 } && test -s conftest$ac_exeext && {
21555 test "$cross_compiling" = yes ||
21556 $as_test_x conftest$ac_exeext
21558 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
21560 $as_echo "$as_me: failed program was
:" >&5
21561 sed 's/^/| /' conftest.$ac_ext >&5
21563 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
21566 rm -rf conftest.dSYM
21567 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21568 conftest$ac_exeext conftest.$ac_ext
21569 LIBS=$ac_check_lib_save_LIBS
21571 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
21572 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
21573 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
21574 cat >>confdefs.h <<_ACEOF
21575 #define HAVE_LIBK5CRYPTO 1
21578 LIBS="-lk5crypto $LIBS"
21583 { $as_echo "$as_me:$LINENO: checking
for mit_des_cbc_encrypt
in -lcrypto" >&5
21584 $as_echo_n "checking
for mit_des_cbc_encrypt
in -lcrypto...
" >&6; }
21585 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
21586 $as_echo_n "(cached
) " >&6
21588 ac_check_lib_save_LIBS=$LIBS
21589 LIBS="-lcrypto $LIBS"
21590 cat >conftest.$ac_ext <<_ACEOF
21593 cat confdefs.h >>conftest.$ac_ext
21594 cat >>conftest.$ac_ext <<_ACEOF
21595 /* end confdefs.h. */
21597 /* Override any GCC internal prototype to avoid an error.
21598 Use char because int might match the return type of a GCC
21599 builtin and then its argument prototype would still apply. */
21603 char mit_des_cbc_encrypt ();
21607 return mit_des_cbc_encrypt ();
21612 rm -f conftest.$ac_objext conftest$ac_exeext
21613 if { (ac_try="$ac_link"
21614 case "(($ac_try" in
21615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21616 *) ac_try_echo=$ac_try;;
21618 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21619 $as_echo "$ac_try_echo") >&5
21620 (eval "$ac_link") 2>conftest.er1
21622 grep -v '^ *+' conftest.er1 >conftest.err
21624 cat conftest.err >&5
21625 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21626 (exit $ac_status); } && {
21627 test -z "$ac_c_werror_flag" ||
21628 test ! -s conftest.err
21629 } && test -s conftest$ac_exeext && {
21630 test "$cross_compiling" = yes ||
21631 $as_test_x conftest$ac_exeext
21633 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
21635 $as_echo "$as_me: failed program was
:" >&5
21636 sed 's/^/| /' conftest.$ac_ext >&5
21638 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
21641 rm -rf conftest.dSYM
21642 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21643 conftest$ac_exeext conftest.$ac_ext
21644 LIBS=$ac_check_lib_save_LIBS
21646 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
21647 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
21648 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
21649 cat >>confdefs.h <<_ACEOF
21650 #define HAVE_LIBCRYPTO 1
21653 LIBS="-lcrypto $LIBS"
21658 { $as_echo "$as_me:$LINENO: checking
for krb5_init_context
in -lkrb5" >&5
21659 $as_echo_n "checking
for krb5_init_context
in -lkrb5...
" >&6; }
21660 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
21661 $as_echo_n "(cached
) " >&6
21663 ac_check_lib_save_LIBS=$LIBS
21664 LIBS="-lkrb5 $LIBS"
21665 cat >conftest.$ac_ext <<_ACEOF
21668 cat confdefs.h >>conftest.$ac_ext
21669 cat >>conftest.$ac_ext <<_ACEOF
21670 /* end confdefs.h. */
21672 /* Override any GCC internal prototype to avoid an error.
21673 Use char because int might match the return type of a GCC
21674 builtin and then its argument prototype would still apply. */
21678 char krb5_init_context ();
21682 return krb5_init_context ();
21687 rm -f conftest.$ac_objext conftest$ac_exeext
21688 if { (ac_try="$ac_link"
21689 case "(($ac_try" in
21690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21691 *) ac_try_echo=$ac_try;;
21693 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21694 $as_echo "$ac_try_echo") >&5
21695 (eval "$ac_link") 2>conftest.er1
21697 grep -v '^ *+' conftest.er1 >conftest.err
21699 cat conftest.err >&5
21700 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21701 (exit $ac_status); } && {
21702 test -z "$ac_c_werror_flag" ||
21703 test ! -s conftest.err
21704 } && test -s conftest$ac_exeext && {
21705 test "$cross_compiling" = yes ||
21706 $as_test_x conftest$ac_exeext
21708 ac_cv_lib_krb5_krb5_init_context=yes
21710 $as_echo "$as_me: failed program was
:" >&5
21711 sed 's/^/| /' conftest.$ac_ext >&5
21713 ac_cv_lib_krb5_krb5_init_context=no
21716 rm -rf conftest.dSYM
21717 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21718 conftest$ac_exeext conftest.$ac_ext
21719 LIBS=$ac_check_lib_save_LIBS
21721 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_krb5_krb5_init_context" >&5
21722 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
21723 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
21724 cat >>confdefs.h <<_ACEOF
21725 #define HAVE_LIBKRB5 1
21728 LIBS="-lkrb5 $LIBS"
21732 if test "${with_kerberos5}" = no; then
21734 { $as_echo "$as_me:$LINENO: checking
for des_cbc_encrypt
in -ldes425" >&5
21735 $as_echo_n "checking
for des_cbc_encrypt
in -ldes425...
" >&6; }
21736 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
21737 $as_echo_n "(cached
) " >&6
21739 ac_check_lib_save_LIBS=$LIBS
21740 LIBS="-ldes425 $LIBS"
21741 cat >conftest.$ac_ext <<_ACEOF
21744 cat confdefs.h >>conftest.$ac_ext
21745 cat >>conftest.$ac_ext <<_ACEOF
21746 /* end confdefs.h. */
21748 /* Override any GCC internal prototype to avoid an error.
21749 Use char because int might match the return type of a GCC
21750 builtin and then its argument prototype would still apply. */
21754 char des_cbc_encrypt ();
21758 return des_cbc_encrypt ();
21763 rm -f conftest.$ac_objext conftest$ac_exeext
21764 if { (ac_try="$ac_link"
21765 case "(($ac_try" in
21766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21767 *) ac_try_echo=$ac_try;;
21769 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21770 $as_echo "$ac_try_echo") >&5
21771 (eval "$ac_link") 2>conftest.er1
21773 grep -v '^ *+' conftest.er1 >conftest.err
21775 cat conftest.err >&5
21776 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21777 (exit $ac_status); } && {
21778 test -z "$ac_c_werror_flag" ||
21779 test ! -s conftest.err
21780 } && test -s conftest$ac_exeext && {
21781 test "$cross_compiling" = yes ||
21782 $as_test_x conftest$ac_exeext
21784 ac_cv_lib_des425_des_cbc_encrypt=yes
21786 $as_echo "$as_me: failed program was
:" >&5
21787 sed 's/^/| /' conftest.$ac_ext >&5
21789 ac_cv_lib_des425_des_cbc_encrypt=no
21792 rm -rf conftest.dSYM
21793 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21794 conftest$ac_exeext conftest.$ac_ext
21795 LIBS=$ac_check_lib_save_LIBS
21797 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_des425_des_cbc_encrypt" >&5
21798 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
21799 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
21800 cat >>confdefs.h <<_ACEOF
21801 #define HAVE_LIBDES425 1
21804 LIBS="-ldes425 $LIBS"
21808 { $as_echo "$as_me:$LINENO: checking
for des_cbc_encrypt
in -ldes" >&5
21809 $as_echo_n "checking
for des_cbc_encrypt
in -ldes...
" >&6; }
21810 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
21811 $as_echo_n "(cached
) " >&6
21813 ac_check_lib_save_LIBS=$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. */
21828 char des_cbc_encrypt ();
21832 return des_cbc_encrypt ();
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_des_des_cbc_encrypt=yes
21860 $as_echo "$as_me: failed program was
:" >&5
21861 sed 's/^/| /' conftest.$ac_ext >&5
21863 ac_cv_lib_des_des_cbc_encrypt=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_des_des_cbc_encrypt" >&5
21872 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
21873 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
21874 cat >>confdefs.h <<_ACEOF
21875 #define HAVE_LIBDES 1
21885 { $as_echo "$as_me:$LINENO: checking
for krb_get_cred
in -lkrb4" >&5
21886 $as_echo_n "checking
for krb_get_cred
in -lkrb4...
" >&6; }
21887 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
21888 $as_echo_n "(cached
) " >&6
21890 ac_check_lib_save_LIBS=$LIBS
21891 LIBS="-lkrb4 $LIBS"
21892 cat >conftest.$ac_ext <<_ACEOF
21895 cat confdefs.h >>conftest.$ac_ext
21896 cat >>conftest.$ac_ext <<_ACEOF
21897 /* end confdefs.h. */
21899 /* Override any GCC internal prototype to avoid an error.
21900 Use char because int might match the return type of a GCC
21901 builtin and then its argument prototype would still apply. */
21905 char krb_get_cred ();
21909 return krb_get_cred ();
21914 rm -f conftest.$ac_objext conftest$ac_exeext
21915 if { (ac_try="$ac_link"
21916 case "(($ac_try" in
21917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21918 *) ac_try_echo=$ac_try;;
21920 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21921 $as_echo "$ac_try_echo") >&5
21922 (eval "$ac_link") 2>conftest.er1
21924 grep -v '^ *+' conftest.er1 >conftest.err
21926 cat conftest.err >&5
21927 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21928 (exit $ac_status); } && {
21929 test -z "$ac_c_werror_flag" ||
21930 test ! -s conftest.err
21931 } && test -s conftest$ac_exeext && {
21932 test "$cross_compiling" = yes ||
21933 $as_test_x conftest$ac_exeext
21935 ac_cv_lib_krb4_krb_get_cred=yes
21937 $as_echo "$as_me: failed program was
:" >&5
21938 sed 's/^/| /' conftest.$ac_ext >&5
21940 ac_cv_lib_krb4_krb_get_cred=no
21943 rm -rf conftest.dSYM
21944 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21945 conftest$ac_exeext conftest.$ac_ext
21946 LIBS=$ac_check_lib_save_LIBS
21948 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_krb4_krb_get_cred" >&5
21949 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
21950 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
21951 cat >>confdefs.h <<_ACEOF
21952 #define HAVE_LIBKRB4 1
21955 LIBS="-lkrb4 $LIBS"
21959 { $as_echo "$as_me:$LINENO: checking
for krb_get_cred
in -lkrb" >&5
21960 $as_echo_n "checking
for krb_get_cred
in -lkrb...
" >&6; }
21961 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
21962 $as_echo_n "(cached
) " >&6
21964 ac_check_lib_save_LIBS=$LIBS
21966 cat >conftest.$ac_ext <<_ACEOF
21969 cat confdefs.h >>conftest.$ac_ext
21970 cat >>conftest.$ac_ext <<_ACEOF
21971 /* end confdefs.h. */
21973 /* Override any GCC internal prototype to avoid an error.
21974 Use char because int might match the return type of a GCC
21975 builtin and then its argument prototype would still apply. */
21979 char krb_get_cred ();
21983 return krb_get_cred ();
21988 rm -f conftest.$ac_objext conftest$ac_exeext
21989 if { (ac_try="$ac_link"
21990 case "(($ac_try" in
21991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21992 *) ac_try_echo=$ac_try;;
21994 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21995 $as_echo "$ac_try_echo") >&5
21996 (eval "$ac_link") 2>conftest.er1
21998 grep -v '^ *+' conftest.er1 >conftest.err
22000 cat conftest.err >&5
22001 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22002 (exit $ac_status); } && {
22003 test -z "$ac_c_werror_flag" ||
22004 test ! -s conftest.err
22005 } && test -s conftest$ac_exeext && {
22006 test "$cross_compiling" = yes ||
22007 $as_test_x conftest$ac_exeext
22009 ac_cv_lib_krb_krb_get_cred=yes
22011 $as_echo "$as_me: failed program was
:" >&5
22012 sed 's/^/| /' conftest.$ac_ext >&5
22014 ac_cv_lib_krb_krb_get_cred=no
22017 rm -rf conftest.dSYM
22018 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22019 conftest$ac_exeext conftest.$ac_ext
22020 LIBS=$ac_check_lib_save_LIBS
22022 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_krb_krb_get_cred" >&5
22023 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
22024 if test $ac_cv_lib_krb_krb_get_cred = yes; then
22025 cat >>confdefs.h <<_ACEOF
22026 #define HAVE_LIBKRB 1
22037 if test "${with_kerberos5}" != no; then
22039 for ac_header in krb5.h
22041 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
22042 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22043 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
22044 $as_echo_n "checking
for $ac_header...
" >&6; }
22045 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22046 $as_echo_n "(cached
) " >&6
22048 ac_res=`eval 'as_val=${'$as_ac_Header'}
22049 $as_echo "$as_val"'`
22050 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
22051 $as_echo "$ac_res" >&6; }
22053 # Is the header compilable?
22054 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
22055 $as_echo_n "checking
$ac_header usability...
" >&6; }
22056 cat >conftest.$ac_ext <<_ACEOF
22059 cat confdefs.h >>conftest.$ac_ext
22060 cat >>conftest.$ac_ext <<_ACEOF
22061 /* end confdefs.h. */
22062 $ac_includes_default
22063 #include <$ac_header>
22065 rm -f conftest.$ac_objext
22066 if { (ac_try="$ac_compile"
22067 case "(($ac_try" in
22068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22069 *) ac_try_echo=$ac_try;;
22071 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22072 $as_echo "$ac_try_echo") >&5
22073 (eval "$ac_compile") 2>conftest.er1
22075 grep -v '^ *+' conftest.er1 >conftest.err
22077 cat conftest.err >&5
22078 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22079 (exit $ac_status); } && {
22080 test -z "$ac_c_werror_flag" ||
22081 test ! -s conftest.err
22082 } && test -s conftest.$ac_objext; then
22083 ac_header_compiler=yes
22085 $as_echo "$as_me: failed program was
:" >&5
22086 sed 's/^/| /' conftest.$ac_ext >&5
22088 ac_header_compiler=no
22091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22092 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22093 $as_echo "$ac_header_compiler" >&6; }
22095 # Is the header present?
22096 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
22097 $as_echo_n "checking
$ac_header presence...
" >&6; }
22098 cat >conftest.$ac_ext <<_ACEOF
22101 cat confdefs.h >>conftest.$ac_ext
22102 cat >>conftest.$ac_ext <<_ACEOF
22103 /* end confdefs.h. */
22104 #include <$ac_header>
22106 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22107 case "(($ac_try" in
22108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22109 *) ac_try_echo=$ac_try;;
22111 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22112 $as_echo "$ac_try_echo") >&5
22113 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22115 grep -v '^ *+' conftest.er1 >conftest.err
22117 cat conftest.err >&5
22118 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22119 (exit $ac_status); } >/dev/null && {
22120 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22121 test ! -s conftest.err
22123 ac_header_preproc=yes
22125 $as_echo "$as_me: failed program was
:" >&5
22126 sed 's/^/| /' conftest.$ac_ext >&5
22128 ac_header_preproc=no
22131 rm -f conftest.err conftest.$ac_ext
22132 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22133 $as_echo "$ac_header_preproc" >&6; }
22135 # So? What about this header?
22136 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22138 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
22139 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22140 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
22141 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
22142 ac_header_preproc=yes
22145 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
22146 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
22147 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
22148 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
22149 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
22150 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
22151 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
22152 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
22153 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
22154 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
22155 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
22156 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
22160 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
22161 $as_echo_n "checking
for $ac_header...
" >&6; }
22162 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22163 $as_echo_n "(cached
) " >&6
22165 eval "$as_ac_Header=\
$ac_header_preproc"
22167 ac_res=`eval 'as_val=${'$as_ac_Header'}
22168 $as_echo "$as_val"'`
22169 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
22170 $as_echo "$ac_res" >&6; }
22173 if test `eval 'as_val=${'$as_ac_Header'}
22174 $as_echo "$as_val"'` = yes; then
22175 cat >>confdefs.h <<_ACEOF
22176 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
22178 { $as_echo "$as_me:$LINENO: checking
for krb5_error.text
" >&5
22179 $as_echo_n "checking
for krb5_error.text...
" >&6; }
22180 if test "${ac_cv_member_krb5_error_text+set}" = set; then
22181 $as_echo_n "(cached
) " >&6
22183 cat >conftest.$ac_ext <<_ACEOF
22186 cat confdefs.h >>conftest.$ac_ext
22187 cat >>conftest.$ac_ext <<_ACEOF
22188 /* end confdefs.h. */
22194 static krb5_error ac_aggr;
22201 rm -f conftest.$ac_objext
22202 if { (ac_try="$ac_compile"
22203 case "(($ac_try" in
22204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22205 *) ac_try_echo=$ac_try;;
22207 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22208 $as_echo "$ac_try_echo") >&5
22209 (eval "$ac_compile") 2>conftest.er1
22211 grep -v '^ *+' conftest.er1 >conftest.err
22213 cat conftest.err >&5
22214 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22215 (exit $ac_status); } && {
22216 test -z "$ac_c_werror_flag" ||
22217 test ! -s conftest.err
22218 } && test -s conftest.$ac_objext; then
22219 ac_cv_member_krb5_error_text=yes
22221 $as_echo "$as_me: failed program was
:" >&5
22222 sed 's/^/| /' conftest.$ac_ext >&5
22224 cat >conftest.$ac_ext <<_ACEOF
22227 cat confdefs.h >>conftest.$ac_ext
22228 cat >>conftest.$ac_ext <<_ACEOF
22229 /* end confdefs.h. */
22235 static krb5_error ac_aggr;
22236 if (sizeof ac_aggr.text)
22242 rm -f conftest.$ac_objext
22243 if { (ac_try="$ac_compile"
22244 case "(($ac_try" in
22245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22246 *) ac_try_echo=$ac_try;;
22248 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22249 $as_echo "$ac_try_echo") >&5
22250 (eval "$ac_compile") 2>conftest.er1
22252 grep -v '^ *+' conftest.er1 >conftest.err
22254 cat conftest.err >&5
22255 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22256 (exit $ac_status); } && {
22257 test -z "$ac_c_werror_flag" ||
22258 test ! -s conftest.err
22259 } && test -s conftest.$ac_objext; then
22260 ac_cv_member_krb5_error_text=yes
22262 $as_echo "$as_me: failed program was
:" >&5
22263 sed 's/^/| /' conftest.$ac_ext >&5
22265 ac_cv_member_krb5_error_text=no
22268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22273 { $as_echo "$as_me:$LINENO: result
: $ac_cv_member_krb5_error_text" >&5
22274 $as_echo "$ac_cv_member_krb5_error_text" >&6; }
22275 if test $ac_cv_member_krb5_error_text = yes; then
22277 cat >>confdefs.h <<_ACEOF
22278 #define HAVE_KRB5_ERROR_TEXT 1
22283 { $as_echo "$as_me:$LINENO: checking
for krb5_error.e_text
" >&5
22284 $as_echo_n "checking
for krb5_error.e_text...
" >&6; }
22285 if test "${ac_cv_member_krb5_error_e_text+set}" = set; then
22286 $as_echo_n "(cached
) " >&6
22288 cat >conftest.$ac_ext <<_ACEOF
22291 cat confdefs.h >>conftest.$ac_ext
22292 cat >>conftest.$ac_ext <<_ACEOF
22293 /* end confdefs.h. */
22299 static krb5_error ac_aggr;
22300 if (ac_aggr.e_text)
22306 rm -f conftest.$ac_objext
22307 if { (ac_try="$ac_compile"
22308 case "(($ac_try" in
22309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22310 *) ac_try_echo=$ac_try;;
22312 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22313 $as_echo "$ac_try_echo") >&5
22314 (eval "$ac_compile") 2>conftest.er1
22316 grep -v '^ *+' conftest.er1 >conftest.err
22318 cat conftest.err >&5
22319 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22320 (exit $ac_status); } && {
22321 test -z "$ac_c_werror_flag" ||
22322 test ! -s conftest.err
22323 } && test -s conftest.$ac_objext; then
22324 ac_cv_member_krb5_error_e_text=yes
22326 $as_echo "$as_me: failed program was
:" >&5
22327 sed 's/^/| /' conftest.$ac_ext >&5
22329 cat >conftest.$ac_ext <<_ACEOF
22332 cat confdefs.h >>conftest.$ac_ext
22333 cat >>conftest.$ac_ext <<_ACEOF
22334 /* end confdefs.h. */
22340 static krb5_error ac_aggr;
22341 if (sizeof ac_aggr.e_text)
22347 rm -f conftest.$ac_objext
22348 if { (ac_try="$ac_compile"
22349 case "(($ac_try" in
22350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22351 *) ac_try_echo=$ac_try;;
22353 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22354 $as_echo "$ac_try_echo") >&5
22355 (eval "$ac_compile") 2>conftest.er1
22357 grep -v '^ *+' conftest.er1 >conftest.err
22359 cat conftest.err >&5
22360 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22361 (exit $ac_status); } && {
22362 test -z "$ac_c_werror_flag" ||
22363 test ! -s conftest.err
22364 } && test -s conftest.$ac_objext; then
22365 ac_cv_member_krb5_error_e_text=yes
22367 $as_echo "$as_me: failed program was
:" >&5
22368 sed 's/^/| /' conftest.$ac_ext >&5
22370 ac_cv_member_krb5_error_e_text=no
22373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22378 { $as_echo "$as_me:$LINENO: result
: $ac_cv_member_krb5_error_e_text" >&5
22379 $as_echo "$ac_cv_member_krb5_error_e_text" >&6; }
22380 if test $ac_cv_member_krb5_error_e_text = yes; then
22382 cat >>confdefs.h <<_ACEOF
22383 #define HAVE_KRB5_ERROR_E_TEXT 1
22395 for ac_header in des.h
22397 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
22398 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22399 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
22400 $as_echo_n "checking
for $ac_header...
" >&6; }
22401 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22402 $as_echo_n "(cached
) " >&6
22404 ac_res=`eval 'as_val=${'$as_ac_Header'}
22405 $as_echo "$as_val"'`
22406 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
22407 $as_echo "$ac_res" >&6; }
22409 # Is the header compilable?
22410 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
22411 $as_echo_n "checking
$ac_header usability...
" >&6; }
22412 cat >conftest.$ac_ext <<_ACEOF
22415 cat confdefs.h >>conftest.$ac_ext
22416 cat >>conftest.$ac_ext <<_ACEOF
22417 /* end confdefs.h. */
22418 $ac_includes_default
22419 #include <$ac_header>
22421 rm -f conftest.$ac_objext
22422 if { (ac_try="$ac_compile"
22423 case "(($ac_try" in
22424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22425 *) ac_try_echo=$ac_try;;
22427 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22428 $as_echo "$ac_try_echo") >&5
22429 (eval "$ac_compile") 2>conftest.er1
22431 grep -v '^ *+' conftest.er1 >conftest.err
22433 cat conftest.err >&5
22434 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22435 (exit $ac_status); } && {
22436 test -z "$ac_c_werror_flag" ||
22437 test ! -s conftest.err
22438 } && test -s conftest.$ac_objext; then
22439 ac_header_compiler=yes
22441 $as_echo "$as_me: failed program was
:" >&5
22442 sed 's/^/| /' conftest.$ac_ext >&5
22444 ac_header_compiler=no
22447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22448 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22449 $as_echo "$ac_header_compiler" >&6; }
22451 # Is the header present?
22452 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
22453 $as_echo_n "checking
$ac_header presence...
" >&6; }
22454 cat >conftest.$ac_ext <<_ACEOF
22457 cat confdefs.h >>conftest.$ac_ext
22458 cat >>conftest.$ac_ext <<_ACEOF
22459 /* end confdefs.h. */
22460 #include <$ac_header>
22462 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22463 case "(($ac_try" in
22464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22465 *) ac_try_echo=$ac_try;;
22467 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22468 $as_echo "$ac_try_echo") >&5
22469 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22471 grep -v '^ *+' conftest.er1 >conftest.err
22473 cat conftest.err >&5
22474 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22475 (exit $ac_status); } >/dev/null && {
22476 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22477 test ! -s conftest.err
22479 ac_header_preproc=yes
22481 $as_echo "$as_me: failed program was
:" >&5
22482 sed 's/^/| /' conftest.$ac_ext >&5
22484 ac_header_preproc=no
22487 rm -f conftest.err conftest.$ac_ext
22488 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22489 $as_echo "$ac_header_preproc" >&6; }
22491 # So? What about this header?
22492 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22494 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
22495 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22496 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
22497 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
22498 ac_header_preproc=yes
22501 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
22502 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
22503 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
22504 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
22505 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
22506 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
22507 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
22508 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
22509 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
22510 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
22511 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
22512 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
22516 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
22517 $as_echo_n "checking
for $ac_header...
" >&6; }
22518 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22519 $as_echo_n "(cached
) " >&6
22521 eval "$as_ac_Header=\
$ac_header_preproc"
22523 ac_res=`eval 'as_val=${'$as_ac_Header'}
22524 $as_echo "$as_val"'`
22525 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
22526 $as_echo "$ac_res" >&6; }
22529 if test `eval 'as_val=${'$as_ac_Header'}
22530 $as_echo "$as_val"'` = yes; then
22531 cat >>confdefs.h <<_ACEOF
22532 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
22537 for ac_header in kerberosIV/des.h
22539 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
22540 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22541 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
22542 $as_echo_n "checking
for $ac_header...
" >&6; }
22543 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22544 $as_echo_n "(cached
) " >&6
22546 ac_res=`eval 'as_val=${'$as_ac_Header'}
22547 $as_echo "$as_val"'`
22548 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
22549 $as_echo "$ac_res" >&6; }
22551 # Is the header compilable?
22552 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
22553 $as_echo_n "checking
$ac_header usability...
" >&6; }
22554 cat >conftest.$ac_ext <<_ACEOF
22557 cat confdefs.h >>conftest.$ac_ext
22558 cat >>conftest.$ac_ext <<_ACEOF
22559 /* end confdefs.h. */
22560 $ac_includes_default
22561 #include <$ac_header>
22563 rm -f conftest.$ac_objext
22564 if { (ac_try="$ac_compile"
22565 case "(($ac_try" in
22566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22567 *) ac_try_echo=$ac_try;;
22569 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22570 $as_echo "$ac_try_echo") >&5
22571 (eval "$ac_compile") 2>conftest.er1
22573 grep -v '^ *+' conftest.er1 >conftest.err
22575 cat conftest.err >&5
22576 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22577 (exit $ac_status); } && {
22578 test -z "$ac_c_werror_flag" ||
22579 test ! -s conftest.err
22580 } && test -s conftest.$ac_objext; then
22581 ac_header_compiler=yes
22583 $as_echo "$as_me: failed program was
:" >&5
22584 sed 's/^/| /' conftest.$ac_ext >&5
22586 ac_header_compiler=no
22589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22590 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22591 $as_echo "$ac_header_compiler" >&6; }
22593 # Is the header present?
22594 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
22595 $as_echo_n "checking
$ac_header presence...
" >&6; }
22596 cat >conftest.$ac_ext <<_ACEOF
22599 cat confdefs.h >>conftest.$ac_ext
22600 cat >>conftest.$ac_ext <<_ACEOF
22601 /* end confdefs.h. */
22602 #include <$ac_header>
22604 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22605 case "(($ac_try" in
22606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22607 *) ac_try_echo=$ac_try;;
22609 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22610 $as_echo "$ac_try_echo") >&5
22611 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22613 grep -v '^ *+' conftest.er1 >conftest.err
22615 cat conftest.err >&5
22616 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22617 (exit $ac_status); } >/dev/null && {
22618 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22619 test ! -s conftest.err
22621 ac_header_preproc=yes
22623 $as_echo "$as_me: failed program was
:" >&5
22624 sed 's/^/| /' conftest.$ac_ext >&5
22626 ac_header_preproc=no
22629 rm -f conftest.err conftest.$ac_ext
22630 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22631 $as_echo "$ac_header_preproc" >&6; }
22633 # So? What about this header?
22634 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22636 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
22637 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22638 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
22639 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
22640 ac_header_preproc=yes
22643 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
22644 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
22645 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
22646 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
22647 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
22648 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
22649 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
22650 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
22651 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
22652 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
22653 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
22654 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
22658 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
22659 $as_echo_n "checking
for $ac_header...
" >&6; }
22660 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22661 $as_echo_n "(cached
) " >&6
22663 eval "$as_ac_Header=\
$ac_header_preproc"
22665 ac_res=`eval 'as_val=${'$as_ac_Header'}
22666 $as_echo "$as_val"'`
22667 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
22668 $as_echo "$ac_res" >&6; }
22671 if test `eval 'as_val=${'$as_ac_Header'}
22672 $as_echo "$as_val"'` = yes; then
22673 cat >>confdefs.h <<_ACEOF
22674 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
22679 for ac_header in kerberos/des.h
22681 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
22682 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22683 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
22684 $as_echo_n "checking
for $ac_header...
" >&6; }
22685 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22686 $as_echo_n "(cached
) " >&6
22688 ac_res=`eval 'as_val=${'$as_ac_Header'}
22689 $as_echo "$as_val"'`
22690 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
22691 $as_echo "$ac_res" >&6; }
22693 # Is the header compilable?
22694 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
22695 $as_echo_n "checking
$ac_header usability...
" >&6; }
22696 cat >conftest.$ac_ext <<_ACEOF
22699 cat confdefs.h >>conftest.$ac_ext
22700 cat >>conftest.$ac_ext <<_ACEOF
22701 /* end confdefs.h. */
22702 $ac_includes_default
22703 #include <$ac_header>
22705 rm -f conftest.$ac_objext
22706 if { (ac_try="$ac_compile"
22707 case "(($ac_try" in
22708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22709 *) ac_try_echo=$ac_try;;
22711 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22712 $as_echo "$ac_try_echo") >&5
22713 (eval "$ac_compile") 2>conftest.er1
22715 grep -v '^ *+' conftest.er1 >conftest.err
22717 cat conftest.err >&5
22718 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22719 (exit $ac_status); } && {
22720 test -z "$ac_c_werror_flag" ||
22721 test ! -s conftest.err
22722 } && test -s conftest.$ac_objext; then
22723 ac_header_compiler=yes
22725 $as_echo "$as_me: failed program was
:" >&5
22726 sed 's/^/| /' conftest.$ac_ext >&5
22728 ac_header_compiler=no
22731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22732 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22733 $as_echo "$ac_header_compiler" >&6; }
22735 # Is the header present?
22736 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
22737 $as_echo_n "checking
$ac_header presence...
" >&6; }
22738 cat >conftest.$ac_ext <<_ACEOF
22741 cat confdefs.h >>conftest.$ac_ext
22742 cat >>conftest.$ac_ext <<_ACEOF
22743 /* end confdefs.h. */
22744 #include <$ac_header>
22746 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22747 case "(($ac_try" in
22748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22749 *) ac_try_echo=$ac_try;;
22751 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22752 $as_echo "$ac_try_echo") >&5
22753 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22755 grep -v '^ *+' conftest.er1 >conftest.err
22757 cat conftest.err >&5
22758 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22759 (exit $ac_status); } >/dev/null && {
22760 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22761 test ! -s conftest.err
22763 ac_header_preproc=yes
22765 $as_echo "$as_me: failed program was
:" >&5
22766 sed 's/^/| /' conftest.$ac_ext >&5
22768 ac_header_preproc=no
22771 rm -f conftest.err conftest.$ac_ext
22772 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22773 $as_echo "$ac_header_preproc" >&6; }
22775 # So? What about this header?
22776 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22778 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
22779 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22780 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
22781 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
22782 ac_header_preproc=yes
22785 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
22786 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
22787 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
22788 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
22789 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
22790 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
22791 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
22792 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
22793 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
22794 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
22795 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
22796 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
22800 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
22801 $as_echo_n "checking
for $ac_header...
" >&6; }
22802 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22803 $as_echo_n "(cached
) " >&6
22805 eval "$as_ac_Header=\
$ac_header_preproc"
22807 ac_res=`eval 'as_val=${'$as_ac_Header'}
22808 $as_echo "$as_val"'`
22809 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
22810 $as_echo "$ac_res" >&6; }
22813 if test `eval 'as_val=${'$as_ac_Header'}
22814 $as_echo "$as_val"'` = yes; then
22815 cat >>confdefs.h <<_ACEOF
22816 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
22832 for ac_header in krb.h
22834 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
22835 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22836 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
22837 $as_echo_n "checking
for $ac_header...
" >&6; }
22838 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22839 $as_echo_n "(cached
) " >&6
22841 ac_res=`eval 'as_val=${'$as_ac_Header'}
22842 $as_echo "$as_val"'`
22843 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
22844 $as_echo "$ac_res" >&6; }
22846 # Is the header compilable?
22847 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
22848 $as_echo_n "checking
$ac_header usability...
" >&6; }
22849 cat >conftest.$ac_ext <<_ACEOF
22852 cat confdefs.h >>conftest.$ac_ext
22853 cat >>conftest.$ac_ext <<_ACEOF
22854 /* end confdefs.h. */
22855 $ac_includes_default
22856 #include <$ac_header>
22858 rm -f conftest.$ac_objext
22859 if { (ac_try="$ac_compile"
22860 case "(($ac_try" in
22861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22862 *) ac_try_echo=$ac_try;;
22864 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22865 $as_echo "$ac_try_echo") >&5
22866 (eval "$ac_compile") 2>conftest.er1
22868 grep -v '^ *+' conftest.er1 >conftest.err
22870 cat conftest.err >&5
22871 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22872 (exit $ac_status); } && {
22873 test -z "$ac_c_werror_flag" ||
22874 test ! -s conftest.err
22875 } && test -s conftest.$ac_objext; then
22876 ac_header_compiler=yes
22878 $as_echo "$as_me: failed program was
:" >&5
22879 sed 's/^/| /' conftest.$ac_ext >&5
22881 ac_header_compiler=no
22884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22885 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22886 $as_echo "$ac_header_compiler" >&6; }
22888 # Is the header present?
22889 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
22890 $as_echo_n "checking
$ac_header presence...
" >&6; }
22891 cat >conftest.$ac_ext <<_ACEOF
22894 cat confdefs.h >>conftest.$ac_ext
22895 cat >>conftest.$ac_ext <<_ACEOF
22896 /* end confdefs.h. */
22897 #include <$ac_header>
22899 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22900 case "(($ac_try" in
22901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22902 *) ac_try_echo=$ac_try;;
22904 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22905 $as_echo "$ac_try_echo") >&5
22906 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22908 grep -v '^ *+' conftest.er1 >conftest.err
22910 cat conftest.err >&5
22911 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22912 (exit $ac_status); } >/dev/null && {
22913 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22914 test ! -s conftest.err
22916 ac_header_preproc=yes
22918 $as_echo "$as_me: failed program was
:" >&5
22919 sed 's/^/| /' conftest.$ac_ext >&5
22921 ac_header_preproc=no
22924 rm -f conftest.err conftest.$ac_ext
22925 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22926 $as_echo "$ac_header_preproc" >&6; }
22928 # So? What about this header?
22929 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22931 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
22932 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22933 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
22934 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
22935 ac_header_preproc=yes
22938 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
22939 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
22940 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
22941 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
22942 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
22943 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
22944 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
22945 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
22946 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
22947 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
22948 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
22949 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
22953 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
22954 $as_echo_n "checking
for $ac_header...
" >&6; }
22955 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22956 $as_echo_n "(cached
) " >&6
22958 eval "$as_ac_Header=\
$ac_header_preproc"
22960 ac_res=`eval 'as_val=${'$as_ac_Header'}
22961 $as_echo "$as_val"'`
22962 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
22963 $as_echo "$ac_res" >&6; }
22966 if test `eval 'as_val=${'$as_ac_Header'}
22967 $as_echo "$as_val"'` = yes; then
22968 cat >>confdefs.h <<_ACEOF
22969 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
22974 for ac_header in kerberosIV/krb.h
22976 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
22977 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22978 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
22979 $as_echo_n "checking
for $ac_header...
" >&6; }
22980 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22981 $as_echo_n "(cached
) " >&6
22983 ac_res=`eval 'as_val=${'$as_ac_Header'}
22984 $as_echo "$as_val"'`
22985 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
22986 $as_echo "$ac_res" >&6; }
22988 # Is the header compilable?
22989 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
22990 $as_echo_n "checking
$ac_header usability...
" >&6; }
22991 cat >conftest.$ac_ext <<_ACEOF
22994 cat confdefs.h >>conftest.$ac_ext
22995 cat >>conftest.$ac_ext <<_ACEOF
22996 /* end confdefs.h. */
22997 $ac_includes_default
22998 #include <$ac_header>
23000 rm -f conftest.$ac_objext
23001 if { (ac_try="$ac_compile"
23002 case "(($ac_try" in
23003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23004 *) ac_try_echo=$ac_try;;
23006 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23007 $as_echo "$ac_try_echo") >&5
23008 (eval "$ac_compile") 2>conftest.er1
23010 grep -v '^ *+' conftest.er1 >conftest.err
23012 cat conftest.err >&5
23013 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23014 (exit $ac_status); } && {
23015 test -z "$ac_c_werror_flag" ||
23016 test ! -s conftest.err
23017 } && test -s conftest.$ac_objext; then
23018 ac_header_compiler=yes
23020 $as_echo "$as_me: failed program was
:" >&5
23021 sed 's/^/| /' conftest.$ac_ext >&5
23023 ac_header_compiler=no
23026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23027 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
23028 $as_echo "$ac_header_compiler" >&6; }
23030 # Is the header present?
23031 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
23032 $as_echo_n "checking
$ac_header presence...
" >&6; }
23033 cat >conftest.$ac_ext <<_ACEOF
23036 cat confdefs.h >>conftest.$ac_ext
23037 cat >>conftest.$ac_ext <<_ACEOF
23038 /* end confdefs.h. */
23039 #include <$ac_header>
23041 if { (ac_try="$ac_cpp conftest.
$ac_ext"
23042 case "(($ac_try" in
23043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23044 *) ac_try_echo=$ac_try;;
23046 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23047 $as_echo "$ac_try_echo") >&5
23048 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
23050 grep -v '^ *+' conftest.er1 >conftest.err
23052 cat conftest.err >&5
23053 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23054 (exit $ac_status); } >/dev/null && {
23055 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23056 test ! -s conftest.err
23058 ac_header_preproc=yes
23060 $as_echo "$as_me: failed program was
:" >&5
23061 sed 's/^/| /' conftest.$ac_ext >&5
23063 ac_header_preproc=no
23066 rm -f conftest.err conftest.$ac_ext
23067 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
23068 $as_echo "$ac_header_preproc" >&6; }
23070 # So? What about this header?
23071 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23073 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
23074 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
23075 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
23076 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
23077 ac_header_preproc=yes
23080 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
23081 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
23082 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
23083 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
23084 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
23085 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
23086 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
23087 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
23088 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
23089 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
23090 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
23091 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
23095 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
23096 $as_echo_n "checking
for $ac_header...
" >&6; }
23097 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23098 $as_echo_n "(cached
) " >&6
23100 eval "$as_ac_Header=\
$ac_header_preproc"
23102 ac_res=`eval 'as_val=${'$as_ac_Header'}
23103 $as_echo "$as_val"'`
23104 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
23105 $as_echo "$ac_res" >&6; }
23108 if test `eval 'as_val=${'$as_ac_Header'}
23109 $as_echo "$as_val"'` = yes; then
23110 cat >>confdefs.h <<_ACEOF
23111 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
23116 for ac_header in kerberos/krb.h
23118 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
23119 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23120 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
23121 $as_echo_n "checking
for $ac_header...
" >&6; }
23122 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23123 $as_echo_n "(cached
) " >&6
23125 ac_res=`eval 'as_val=${'$as_ac_Header'}
23126 $as_echo "$as_val"'`
23127 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
23128 $as_echo "$ac_res" >&6; }
23130 # Is the header compilable?
23131 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
23132 $as_echo_n "checking
$ac_header usability...
" >&6; }
23133 cat >conftest.$ac_ext <<_ACEOF
23136 cat confdefs.h >>conftest.$ac_ext
23137 cat >>conftest.$ac_ext <<_ACEOF
23138 /* end confdefs.h. */
23139 $ac_includes_default
23140 #include <$ac_header>
23142 rm -f conftest.$ac_objext
23143 if { (ac_try="$ac_compile"
23144 case "(($ac_try" in
23145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23146 *) ac_try_echo=$ac_try;;
23148 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23149 $as_echo "$ac_try_echo") >&5
23150 (eval "$ac_compile") 2>conftest.er1
23152 grep -v '^ *+' conftest.er1 >conftest.err
23154 cat conftest.err >&5
23155 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23156 (exit $ac_status); } && {
23157 test -z "$ac_c_werror_flag" ||
23158 test ! -s conftest.err
23159 } && test -s conftest.$ac_objext; then
23160 ac_header_compiler=yes
23162 $as_echo "$as_me: failed program was
:" >&5
23163 sed 's/^/| /' conftest.$ac_ext >&5
23165 ac_header_compiler=no
23168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23169 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
23170 $as_echo "$ac_header_compiler" >&6; }
23172 # Is the header present?
23173 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
23174 $as_echo_n "checking
$ac_header presence...
" >&6; }
23175 cat >conftest.$ac_ext <<_ACEOF
23178 cat confdefs.h >>conftest.$ac_ext
23179 cat >>conftest.$ac_ext <<_ACEOF
23180 /* end confdefs.h. */
23181 #include <$ac_header>
23183 if { (ac_try="$ac_cpp conftest.
$ac_ext"
23184 case "(($ac_try" in
23185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23186 *) ac_try_echo=$ac_try;;
23188 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23189 $as_echo "$ac_try_echo") >&5
23190 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
23192 grep -v '^ *+' conftest.er1 >conftest.err
23194 cat conftest.err >&5
23195 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23196 (exit $ac_status); } >/dev/null && {
23197 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23198 test ! -s conftest.err
23200 ac_header_preproc=yes
23202 $as_echo "$as_me: failed program was
:" >&5
23203 sed 's/^/| /' conftest.$ac_ext >&5
23205 ac_header_preproc=no
23208 rm -f conftest.err conftest.$ac_ext
23209 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
23210 $as_echo "$ac_header_preproc" >&6; }
23212 # So? What about this header?
23213 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23215 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
23216 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
23217 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
23218 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
23219 ac_header_preproc=yes
23222 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
23223 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
23224 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
23225 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
23226 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
23227 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
23228 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
23229 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
23230 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
23231 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
23232 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
23233 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
23237 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
23238 $as_echo_n "checking
for $ac_header...
" >&6; }
23239 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23240 $as_echo_n "(cached
) " >&6
23242 eval "$as_ac_Header=\
$ac_header_preproc"
23244 ac_res=`eval 'as_val=${'$as_ac_Header'}
23245 $as_echo "$as_val"'`
23246 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
23247 $as_echo "$ac_res" >&6; }
23250 if test `eval 'as_val=${'$as_ac_Header'}
23251 $as_echo "$as_val"'` = yes; then
23252 cat >>confdefs.h <<_ACEOF
23253 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
23270 for ac_header in com_err.h
23272 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
23273 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23274 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
23275 $as_echo_n "checking
for $ac_header...
" >&6; }
23276 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23277 $as_echo_n "(cached
) " >&6
23279 ac_res=`eval 'as_val=${'$as_ac_Header'}
23280 $as_echo "$as_val"'`
23281 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
23282 $as_echo "$ac_res" >&6; }
23284 # Is the header compilable?
23285 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
23286 $as_echo_n "checking
$ac_header usability...
" >&6; }
23287 cat >conftest.$ac_ext <<_ACEOF
23290 cat confdefs.h >>conftest.$ac_ext
23291 cat >>conftest.$ac_ext <<_ACEOF
23292 /* end confdefs.h. */
23293 $ac_includes_default
23294 #include <$ac_header>
23296 rm -f conftest.$ac_objext
23297 if { (ac_try="$ac_compile"
23298 case "(($ac_try" in
23299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23300 *) ac_try_echo=$ac_try;;
23302 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23303 $as_echo "$ac_try_echo") >&5
23304 (eval "$ac_compile") 2>conftest.er1
23306 grep -v '^ *+' conftest.er1 >conftest.err
23308 cat conftest.err >&5
23309 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23310 (exit $ac_status); } && {
23311 test -z "$ac_c_werror_flag" ||
23312 test ! -s conftest.err
23313 } && test -s conftest.$ac_objext; then
23314 ac_header_compiler=yes
23316 $as_echo "$as_me: failed program was
:" >&5
23317 sed 's/^/| /' conftest.$ac_ext >&5
23319 ac_header_compiler=no
23322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23323 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
23324 $as_echo "$ac_header_compiler" >&6; }
23326 # Is the header present?
23327 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
23328 $as_echo_n "checking
$ac_header presence...
" >&6; }
23329 cat >conftest.$ac_ext <<_ACEOF
23332 cat confdefs.h >>conftest.$ac_ext
23333 cat >>conftest.$ac_ext <<_ACEOF
23334 /* end confdefs.h. */
23335 #include <$ac_header>
23337 if { (ac_try="$ac_cpp conftest.
$ac_ext"
23338 case "(($ac_try" in
23339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23340 *) ac_try_echo=$ac_try;;
23342 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23343 $as_echo "$ac_try_echo") >&5
23344 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
23346 grep -v '^ *+' conftest.er1 >conftest.err
23348 cat conftest.err >&5
23349 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23350 (exit $ac_status); } >/dev/null && {
23351 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23352 test ! -s conftest.err
23354 ac_header_preproc=yes
23356 $as_echo "$as_me: failed program was
:" >&5
23357 sed 's/^/| /' conftest.$ac_ext >&5
23359 ac_header_preproc=no
23362 rm -f conftest.err conftest.$ac_ext
23363 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
23364 $as_echo "$ac_header_preproc" >&6; }
23366 # So? What about this header?
23367 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23369 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
23370 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
23371 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
23372 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
23373 ac_header_preproc=yes
23376 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
23377 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
23378 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
23379 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
23380 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
23381 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
23382 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
23383 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
23384 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
23385 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
23386 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
23387 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
23391 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
23392 $as_echo_n "checking
for $ac_header...
" >&6; }
23393 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23394 $as_echo_n "(cached
) " >&6
23396 eval "$as_ac_Header=\
$ac_header_preproc"
23398 ac_res=`eval 'as_val=${'$as_ac_Header'}
23399 $as_echo "$as_val"'`
23400 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
23401 $as_echo "$ac_res" >&6; }
23404 if test `eval 'as_val=${'$as_ac_Header'}
23405 $as_echo "$as_val"'` = yes; then
23406 cat >>confdefs.h <<_ACEOF
23407 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
23416 # Solaris requires -lintl if you want strerror (which calls dgettext)
23417 # to return localized messages.
23419 { $as_echo "$as_me:$LINENO: checking
for dgettext
in -lintl" >&5
23420 $as_echo_n "checking
for dgettext
in -lintl...
" >&6; }
23421 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
23422 $as_echo_n "(cached
) " >&6
23424 ac_check_lib_save_LIBS=$LIBS
23425 LIBS="-lintl $LIBS"
23426 cat >conftest.$ac_ext <<_ACEOF
23429 cat confdefs.h >>conftest.$ac_ext
23430 cat >>conftest.$ac_ext <<_ACEOF
23431 /* end confdefs.h. */
23433 /* Override any GCC internal prototype to avoid an error.
23434 Use char because int might match the return type of a GCC
23435 builtin and then its argument prototype would still apply. */
23443 return dgettext ();
23448 rm -f conftest.$ac_objext conftest$ac_exeext
23449 if { (ac_try="$ac_link"
23450 case "(($ac_try" in
23451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23452 *) ac_try_echo=$ac_try;;
23454 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23455 $as_echo "$ac_try_echo") >&5
23456 (eval "$ac_link") 2>conftest.er1
23458 grep -v '^ *+' conftest.er1 >conftest.err
23460 cat conftest.err >&5
23461 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23462 (exit $ac_status); } && {
23463 test -z "$ac_c_werror_flag" ||
23464 test ! -s conftest.err
23465 } && test -s conftest$ac_exeext && {
23466 test "$cross_compiling" = yes ||
23467 $as_test_x conftest$ac_exeext
23469 ac_cv_lib_intl_dgettext=yes
23471 $as_echo "$as_me: failed program was
:" >&5
23472 sed 's/^/| /' conftest.$ac_ext >&5
23474 ac_cv_lib_intl_dgettext=no
23477 rm -rf conftest.dSYM
23478 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23479 conftest$ac_exeext conftest.$ac_ext
23480 LIBS=$ac_check_lib_save_LIBS
23482 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_intl_dgettext" >&5
23483 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
23484 if test $ac_cv_lib_intl_dgettext = yes; then
23485 cat >>confdefs.h <<_ACEOF
23486 #define HAVE_LIBINTL 1
23489 LIBS="-lintl $LIBS"
23494 { $as_echo "$as_me:$LINENO: checking whether localtime caches TZ
" >&5
23495 $as_echo_n "checking whether localtime caches TZ...
" >&6; }
23496 if test "${emacs_cv_localtime_cache+set}" = set; then
23497 $as_echo_n "(cached
) " >&6
23499 if test x$ac_cv_func_tzset = xyes; then
23500 if test "$cross_compiling" = yes; then
23501 # If we have tzset, assume the worst when cross-compiling.
23502 emacs_cv_localtime_cache=yes
23504 cat >conftest.$ac_ext <<_ACEOF
23507 cat confdefs.h >>conftest.$ac_ext
23508 cat >>conftest.$ac_ext <<_ACEOF
23509 /* end confdefs.h. */
23511 extern char **environ;
23515 for (to = from = environ; (*to = *from); from++)
23516 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
23519 char TZ_GMT0[] = "TZ
=GMT0
";
23520 char TZ_PST8[] = "TZ
=PST8
";
23523 time_t now = time ((time_t *) 0);
23524 int hour_GMT0, hour_unset;
23525 if (putenv (TZ_GMT0) != 0)
23527 hour_GMT0 = localtime (&now)->tm_hour;
23529 hour_unset = localtime (&now)->tm_hour;
23530 if (putenv (TZ_PST8) != 0)
23532 if (localtime (&now)->tm_hour == hour_GMT0)
23535 if (localtime (&now)->tm_hour != hour_unset)
23540 rm -f conftest$ac_exeext
23541 if { (ac_try="$ac_link"
23542 case "(($ac_try" in
23543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23544 *) ac_try_echo=$ac_try;;
23546 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23547 $as_echo "$ac_try_echo") >&5
23548 (eval "$ac_link") 2>&5
23550 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23551 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23552 { (case "(($ac_try" in
23553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23554 *) ac_try_echo=$ac_try;;
23556 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23557 $as_echo "$ac_try_echo") >&5
23558 (eval "$ac_try") 2>&5
23560 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23561 (exit $ac_status); }; }; then
23562 emacs_cv_localtime_cache=no
23564 $as_echo "$as_me: program exited with status
$ac_status" >&5
23565 $as_echo "$as_me: failed program was
:" >&5
23566 sed 's/^/| /' conftest.$ac_ext >&5
23568 ( exit $ac_status )
23569 emacs_cv_localtime_cache=yes
23571 rm -rf conftest.dSYM
23572 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23577 # If we lack tzset, report that localtime does not cache TZ,
23578 # since we can't invalidate the cache if we don't have tzset.
23579 emacs_cv_localtime_cache=no
23582 { $as_echo "$as_me:$LINENO: result
: $emacs_cv_localtime_cache" >&5
23583 $as_echo "$emacs_cv_localtime_cache" >&6; }
23584 if test $emacs_cv_localtime_cache = yes; then
23586 cat >>confdefs.h <<\_ACEOF
23587 #define LOCALTIME_CACHE 1
23592 if test "x
$HAVE_TIMEVAL" = xyes; then
23594 for ac_func in gettimeofday
23596 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
23597 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
23598 $as_echo_n "checking
for $ac_func...
" >&6; }
23599 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
23600 $as_echo_n "(cached
) " >&6
23602 cat >conftest.$ac_ext <<_ACEOF
23605 cat confdefs.h >>conftest.$ac_ext
23606 cat >>conftest.$ac_ext <<_ACEOF
23607 /* end confdefs.h. */
23608 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23609 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23610 #define $ac_func innocuous_$ac_func
23612 /* System header to define __stub macros and hopefully few prototypes,
23613 which can conflict with char $ac_func (); below.
23614 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23615 <limits.h> exists even on freestanding compilers. */
23618 # include <limits.h>
23620 # include <assert.h>
23625 /* Override any GCC internal prototype to avoid an error.
23626 Use char because int might match the return type of a GCC
23627 builtin and then its argument prototype would still apply. */
23632 /* The GNU C library defines this for functions which it implements
23633 to always fail with ENOSYS. Some functions are actually named
23634 something starting with __ and the normal name is an alias. */
23635 #if defined __stub_$ac_func || defined __stub___$ac_func
23642 return $ac_func ();
23647 rm -f conftest.$ac_objext conftest$ac_exeext
23648 if { (ac_try="$ac_link"
23649 case "(($ac_try" in
23650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23651 *) ac_try_echo=$ac_try;;
23653 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23654 $as_echo "$ac_try_echo") >&5
23655 (eval "$ac_link") 2>conftest.er1
23657 grep -v '^ *+' conftest.er1 >conftest.err
23659 cat conftest.err >&5
23660 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23661 (exit $ac_status); } && {
23662 test -z "$ac_c_werror_flag" ||
23663 test ! -s conftest.err
23664 } && test -s conftest$ac_exeext && {
23665 test "$cross_compiling" = yes ||
23666 $as_test_x conftest$ac_exeext
23668 eval "$as_ac_var=yes"
23670 $as_echo "$as_me: failed program was
:" >&5
23671 sed 's/^/| /' conftest.$ac_ext >&5
23673 eval "$as_ac_var=no
"
23676 rm -rf conftest.dSYM
23677 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23678 conftest$ac_exeext conftest.$ac_ext
23680 ac_res=`eval 'as_val=${'$as_ac_var'}
23681 $as_echo "$as_val"'`
23682 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
23683 $as_echo "$ac_res" >&6; }
23684 if test `eval 'as_val=${'$as_ac_var'}
23685 $as_echo "$as_val"'` = yes; then
23686 cat >>confdefs.h <<_ACEOF
23687 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
23693 if test $ac_cv_func_gettimeofday = yes; then
23694 { $as_echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments
" >&5
23695 $as_echo_n "checking whether gettimeofday can accept two arguments...
" >&6; }
23696 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
23697 $as_echo_n "(cached
) " >&6
23699 cat >conftest.$ac_ext <<_ACEOF
23702 cat confdefs.h >>conftest.$ac_ext
23703 cat >>conftest.$ac_ext <<_ACEOF
23704 /* end confdefs.h. */
23706 #ifdef TIME_WITH_SYS_TIME
23707 #include <sys/time.h>
23710 #ifdef HAVE_SYS_TIME_H
23711 #include <sys/time.h>
23719 struct timeval time;
23720 gettimeofday (&time, 0);
23725 rm -f conftest.$ac_objext
23726 if { (ac_try="$ac_compile"
23727 case "(($ac_try" in
23728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23729 *) ac_try_echo=$ac_try;;
23731 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23732 $as_echo "$ac_try_echo") >&5
23733 (eval "$ac_compile") 2>conftest.er1
23735 grep -v '^ *+' conftest.er1 >conftest.err
23737 cat conftest.err >&5
23738 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23739 (exit $ac_status); } && {
23740 test -z "$ac_c_werror_flag" ||
23741 test ! -s conftest.err
23742 } && test -s conftest.$ac_objext; then
23743 emacs_cv_gettimeofday_two_arguments=yes
23745 $as_echo "$as_me: failed program was
:" >&5
23746 sed 's/^/| /' conftest.$ac_ext >&5
23748 emacs_cv_gettimeofday_two_arguments=no
23751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23753 { $as_echo "$as_me:$LINENO: result
: $emacs_cv_gettimeofday_two_arguments" >&5
23754 $as_echo "$emacs_cv_gettimeofday_two_arguments" >&6; }
23755 if test $emacs_cv_gettimeofday_two_arguments = no; then
23757 cat >>confdefs.h <<\_ACEOF
23758 #define GETTIMEOFDAY_ONE_ARGUMENT 1
23766 { $as_echo "$as_me:$LINENO: checking
for socket
" >&5
23767 $as_echo_n "checking
for socket...
" >&6; }
23768 if test "${ac_cv_func_socket+set}" = set; then
23769 $as_echo_n "(cached
) " >&6
23771 cat >conftest.$ac_ext <<_ACEOF
23774 cat confdefs.h >>conftest.$ac_ext
23775 cat >>conftest.$ac_ext <<_ACEOF
23776 /* end confdefs.h. */
23777 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
23778 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23779 #define socket innocuous_socket
23781 /* System header to define __stub macros and hopefully few prototypes,
23782 which can conflict with char socket (); below.
23783 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23784 <limits.h> exists even on freestanding compilers. */
23787 # include <limits.h>
23789 # include <assert.h>
23794 /* Override any GCC internal prototype to avoid an error.
23795 Use char because int might match the return type of a GCC
23796 builtin and then its argument prototype would still apply. */
23801 /* The GNU C library defines this for functions which it implements
23802 to always fail with ENOSYS. Some functions are actually named
23803 something starting with __ and the normal name is an alias. */
23804 #if defined __stub_socket || defined __stub___socket
23816 rm -f conftest.$ac_objext conftest$ac_exeext
23817 if { (ac_try="$ac_link"
23818 case "(($ac_try" in
23819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23820 *) ac_try_echo=$ac_try;;
23822 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23823 $as_echo "$ac_try_echo") >&5
23824 (eval "$ac_link") 2>conftest.er1
23826 grep -v '^ *+' conftest.er1 >conftest.err
23828 cat conftest.err >&5
23829 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23830 (exit $ac_status); } && {
23831 test -z "$ac_c_werror_flag" ||
23832 test ! -s conftest.err
23833 } && test -s conftest$ac_exeext && {
23834 test "$cross_compiling" = yes ||
23835 $as_test_x conftest$ac_exeext
23837 ac_cv_func_socket=yes
23839 $as_echo "$as_me: failed program was
:" >&5
23840 sed 's/^/| /' conftest.$ac_ext >&5
23842 ac_cv_func_socket=no
23845 rm -rf conftest.dSYM
23846 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23847 conftest$ac_exeext conftest.$ac_ext
23849 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func_socket" >&5
23850 $as_echo "$ac_cv_func_socket" >&6; }
23851 if test $ac_cv_func_socket = yes; then
23857 if test $ok_so_far = yes; then
23858 if test "${ac_cv_header_netinet_in_h+set}" = set; then
23859 { $as_echo "$as_me:$LINENO: checking
for netinet
/in.h
" >&5
23860 $as_echo_n "checking
for netinet
/in.h...
" >&6; }
23861 if test "${ac_cv_header_netinet_in_h+set}" = set; then
23862 $as_echo_n "(cached
) " >&6
23864 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_netinet_in_h" >&5
23865 $as_echo "$ac_cv_header_netinet_in_h" >&6; }
23867 # Is the header compilable?
23868 { $as_echo "$as_me:$LINENO: checking netinet
/in.h usability
" >&5
23869 $as_echo_n "checking netinet
/in.h usability...
" >&6; }
23870 cat >conftest.$ac_ext <<_ACEOF
23873 cat confdefs.h >>conftest.$ac_ext
23874 cat >>conftest.$ac_ext <<_ACEOF
23875 /* end confdefs.h. */
23876 $ac_includes_default
23877 #include <netinet/in.h>
23879 rm -f conftest.$ac_objext
23880 if { (ac_try="$ac_compile"
23881 case "(($ac_try" in
23882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23883 *) ac_try_echo=$ac_try;;
23885 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23886 $as_echo "$ac_try_echo") >&5
23887 (eval "$ac_compile") 2>conftest.er1
23889 grep -v '^ *+' conftest.er1 >conftest.err
23891 cat conftest.err >&5
23892 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23893 (exit $ac_status); } && {
23894 test -z "$ac_c_werror_flag" ||
23895 test ! -s conftest.err
23896 } && test -s conftest.$ac_objext; then
23897 ac_header_compiler=yes
23899 $as_echo "$as_me: failed program was
:" >&5
23900 sed 's/^/| /' conftest.$ac_ext >&5
23902 ac_header_compiler=no
23905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23906 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
23907 $as_echo "$ac_header_compiler" >&6; }
23909 # Is the header present?
23910 { $as_echo "$as_me:$LINENO: checking netinet
/in.h presence
" >&5
23911 $as_echo_n "checking netinet
/in.h presence...
" >&6; }
23912 cat >conftest.$ac_ext <<_ACEOF
23915 cat confdefs.h >>conftest.$ac_ext
23916 cat >>conftest.$ac_ext <<_ACEOF
23917 /* end confdefs.h. */
23918 #include <netinet/in.h>
23920 if { (ac_try="$ac_cpp conftest.
$ac_ext"
23921 case "(($ac_try" in
23922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23923 *) ac_try_echo=$ac_try;;
23925 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23926 $as_echo "$ac_try_echo") >&5
23927 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
23929 grep -v '^ *+' conftest.er1 >conftest.err
23931 cat conftest.err >&5
23932 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23933 (exit $ac_status); } >/dev/null && {
23934 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23935 test ! -s conftest.err
23937 ac_header_preproc=yes
23939 $as_echo "$as_me: failed program was
:" >&5
23940 sed 's/^/| /' conftest.$ac_ext >&5
23942 ac_header_preproc=no
23945 rm -f conftest.err conftest.$ac_ext
23946 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
23947 $as_echo "$ac_header_preproc" >&6; }
23949 # So? What about this header?
23950 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23952 { $as_echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
23953 $as_echo "$as_me: WARNING
: netinet
/in.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
23954 { $as_echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: proceeding with the compiler
's result" >&5
23955 $as_echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result
" >&2;}
23956 ac_header_preproc=yes
23959 { $as_echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: present but cannot be compiled
" >&5
23960 $as_echo "$as_me: WARNING
: netinet
/in.h
: present but cannot be compiled
" >&2;}
23961 { $as_echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: check
for missing prerequisite headers?
" >&5
23962 $as_echo "$as_me: WARNING
: netinet
/in.h
: check
for missing prerequisite headers?
" >&2;}
23963 { $as_echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: see the Autoconf documentation
" >&5
23964 $as_echo "$as_me: WARNING
: netinet
/in.h
: see the Autoconf documentation
" >&2;}
23965 { $as_echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: section
\"Present But Cannot Be Compiled
\"" >&5
23966 $as_echo "$as_me: WARNING
: netinet
/in.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
23967 { $as_echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: proceeding with the preprocessor
's result" >&5
23968 $as_echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result
" >&2;}
23969 { $as_echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: in the future
, the compiler will take precedence
" >&5
23970 $as_echo "$as_me: WARNING
: netinet
/in.h
: in the future
, the compiler will take precedence
" >&2;}
23974 { $as_echo "$as_me:$LINENO: checking
for netinet
/in.h
" >&5
23975 $as_echo_n "checking
for netinet
/in.h...
" >&6; }
23976 if test "${ac_cv_header_netinet_in_h+set}" = set; then
23977 $as_echo_n "(cached
) " >&6
23979 ac_cv_header_netinet_in_h=$ac_header_preproc
23981 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_netinet_in_h" >&5
23982 $as_echo "$ac_cv_header_netinet_in_h" >&6; }
23985 if test $ac_cv_header_netinet_in_h = yes; then
23993 if test $ok_so_far = yes; then
23994 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
23995 { $as_echo "$as_me:$LINENO: checking
for arpa
/inet.h
" >&5
23996 $as_echo_n "checking
for arpa
/inet.h...
" >&6; }
23997 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
23998 $as_echo_n "(cached
) " >&6
24000 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_arpa_inet_h" >&5
24001 $as_echo "$ac_cv_header_arpa_inet_h" >&6; }
24003 # Is the header compilable?
24004 { $as_echo "$as_me:$LINENO: checking arpa
/inet.h usability
" >&5
24005 $as_echo_n "checking arpa
/inet.h usability...
" >&6; }
24006 cat >conftest.$ac_ext <<_ACEOF
24009 cat confdefs.h >>conftest.$ac_ext
24010 cat >>conftest.$ac_ext <<_ACEOF
24011 /* end confdefs.h. */
24012 $ac_includes_default
24013 #include <arpa/inet.h>
24015 rm -f conftest.$ac_objext
24016 if { (ac_try="$ac_compile"
24017 case "(($ac_try" in
24018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24019 *) ac_try_echo=$ac_try;;
24021 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24022 $as_echo "$ac_try_echo") >&5
24023 (eval "$ac_compile") 2>conftest.er1
24025 grep -v '^ *+' conftest.er1 >conftest.err
24027 cat conftest.err >&5
24028 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24029 (exit $ac_status); } && {
24030 test -z "$ac_c_werror_flag" ||
24031 test ! -s conftest.err
24032 } && test -s conftest.$ac_objext; then
24033 ac_header_compiler=yes
24035 $as_echo "$as_me: failed program was
:" >&5
24036 sed 's/^/| /' conftest.$ac_ext >&5
24038 ac_header_compiler=no
24041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24042 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
24043 $as_echo "$ac_header_compiler" >&6; }
24045 # Is the header present?
24046 { $as_echo "$as_me:$LINENO: checking arpa
/inet.h presence
" >&5
24047 $as_echo_n "checking arpa
/inet.h presence...
" >&6; }
24048 cat >conftest.$ac_ext <<_ACEOF
24051 cat confdefs.h >>conftest.$ac_ext
24052 cat >>conftest.$ac_ext <<_ACEOF
24053 /* end confdefs.h. */
24054 #include <arpa/inet.h>
24056 if { (ac_try="$ac_cpp conftest.
$ac_ext"
24057 case "(($ac_try" in
24058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24059 *) ac_try_echo=$ac_try;;
24061 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24062 $as_echo "$ac_try_echo") >&5
24063 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
24065 grep -v '^ *+' conftest.er1 >conftest.err
24067 cat conftest.err >&5
24068 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24069 (exit $ac_status); } >/dev/null && {
24070 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24071 test ! -s conftest.err
24073 ac_header_preproc=yes
24075 $as_echo "$as_me: failed program was
:" >&5
24076 sed 's/^/| /' conftest.$ac_ext >&5
24078 ac_header_preproc=no
24081 rm -f conftest.err conftest.$ac_ext
24082 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
24083 $as_echo "$ac_header_preproc" >&6; }
24085 # So? What about this header?
24086 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24088 { $as_echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
24089 $as_echo "$as_me: WARNING
: arpa
/inet.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
24090 { $as_echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: proceeding with the compiler
's result" >&5
24091 $as_echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result
" >&2;}
24092 ac_header_preproc=yes
24095 { $as_echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: present but cannot be compiled
" >&5
24096 $as_echo "$as_me: WARNING
: arpa
/inet.h
: present but cannot be compiled
" >&2;}
24097 { $as_echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: check
for missing prerequisite headers?
" >&5
24098 $as_echo "$as_me: WARNING
: arpa
/inet.h
: check
for missing prerequisite headers?
" >&2;}
24099 { $as_echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: see the Autoconf documentation
" >&5
24100 $as_echo "$as_me: WARNING
: arpa
/inet.h
: see the Autoconf documentation
" >&2;}
24101 { $as_echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: section
\"Present But Cannot Be Compiled
\"" >&5
24102 $as_echo "$as_me: WARNING
: arpa
/inet.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
24103 { $as_echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: proceeding with the preprocessor
's result" >&5
24104 $as_echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result
" >&2;}
24105 { $as_echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: in the future
, the compiler will take precedence
" >&5
24106 $as_echo "$as_me: WARNING
: arpa
/inet.h
: in the future
, the compiler will take precedence
" >&2;}
24110 { $as_echo "$as_me:$LINENO: checking
for arpa
/inet.h
" >&5
24111 $as_echo_n "checking
for arpa
/inet.h...
" >&6; }
24112 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
24113 $as_echo_n "(cached
) " >&6
24115 ac_cv_header_arpa_inet_h=$ac_header_preproc
24117 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_arpa_inet_h" >&5
24118 $as_echo "$ac_cv_header_arpa_inet_h" >&6; }
24121 if test $ac_cv_header_arpa_inet_h = yes; then
24129 if test $ok_so_far = yes; then
24131 cat >>confdefs.h <<\_ACEOF
24132 #define HAVE_INET_SOCKETS 1
24138 for ac_header in sys/ioctl.h
24140 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
24141 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
24142 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
24143 $as_echo_n "checking
for $ac_header...
" >&6; }
24144 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
24145 $as_echo_n "(cached
) " >&6
24147 ac_res=`eval 'as_val=${'$as_ac_Header'}
24148 $as_echo "$as_val"'`
24149 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
24150 $as_echo "$ac_res" >&6; }
24152 # Is the header compilable?
24153 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
24154 $as_echo_n "checking
$ac_header usability...
" >&6; }
24155 cat >conftest.$ac_ext <<_ACEOF
24158 cat confdefs.h >>conftest.$ac_ext
24159 cat >>conftest.$ac_ext <<_ACEOF
24160 /* end confdefs.h. */
24161 $ac_includes_default
24162 #include <$ac_header>
24164 rm -f conftest.$ac_objext
24165 if { (ac_try="$ac_compile"
24166 case "(($ac_try" in
24167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24168 *) ac_try_echo=$ac_try;;
24170 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24171 $as_echo "$ac_try_echo") >&5
24172 (eval "$ac_compile") 2>conftest.er1
24174 grep -v '^ *+' conftest.er1 >conftest.err
24176 cat conftest.err >&5
24177 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24178 (exit $ac_status); } && {
24179 test -z "$ac_c_werror_flag" ||
24180 test ! -s conftest.err
24181 } && test -s conftest.$ac_objext; then
24182 ac_header_compiler=yes
24184 $as_echo "$as_me: failed program was
:" >&5
24185 sed 's/^/| /' conftest.$ac_ext >&5
24187 ac_header_compiler=no
24190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24191 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
24192 $as_echo "$ac_header_compiler" >&6; }
24194 # Is the header present?
24195 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
24196 $as_echo_n "checking
$ac_header presence...
" >&6; }
24197 cat >conftest.$ac_ext <<_ACEOF
24200 cat confdefs.h >>conftest.$ac_ext
24201 cat >>conftest.$ac_ext <<_ACEOF
24202 /* end confdefs.h. */
24203 #include <$ac_header>
24205 if { (ac_try="$ac_cpp conftest.
$ac_ext"
24206 case "(($ac_try" in
24207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24208 *) ac_try_echo=$ac_try;;
24210 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24211 $as_echo "$ac_try_echo") >&5
24212 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
24214 grep -v '^ *+' conftest.er1 >conftest.err
24216 cat conftest.err >&5
24217 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24218 (exit $ac_status); } >/dev/null && {
24219 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24220 test ! -s conftest.err
24222 ac_header_preproc=yes
24224 $as_echo "$as_me: failed program was
:" >&5
24225 sed 's/^/| /' conftest.$ac_ext >&5
24227 ac_header_preproc=no
24230 rm -f conftest.err conftest.$ac_ext
24231 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
24232 $as_echo "$ac_header_preproc" >&6; }
24234 # So? What about this header?
24235 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24237 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
24238 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
24239 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
24240 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
24241 ac_header_preproc=yes
24244 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
24245 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
24246 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
24247 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
24248 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
24249 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
24250 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
24251 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
24252 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
24253 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
24254 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
24255 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
24259 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
24260 $as_echo_n "checking
for $ac_header...
" >&6; }
24261 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
24262 $as_echo_n "(cached
) " >&6
24264 eval "$as_ac_Header=\
$ac_header_preproc"
24266 ac_res=`eval 'as_val=${'$as_ac_Header'}
24267 $as_echo "$as_val"'`
24268 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
24269 $as_echo "$ac_res" >&6; }
24272 if test `eval 'as_val=${'$as_ac_Header'}
24273 $as_echo "$as_val"'` = yes; then
24274 cat >>confdefs.h <<_ACEOF
24275 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
24283 if test -f /usr/lpp/X11/bin/smt.exp; then
24285 cat >>confdefs.h <<\_ACEOF
24286 #define HAVE_AIX_SMT_EXP 1
24291 { $as_echo "$as_me:$LINENO: checking whether system supports dynamic ptys
" >&5
24292 $as_echo_n "checking whether system supports dynamic ptys...
" >&6; }
24293 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
24294 { $as_echo "$as_me:$LINENO: result
: yes" >&5
24295 $as_echo "yes" >&6; }
24297 cat >>confdefs.h <<\_ACEOF
24298 #define HAVE_DEV_PTMX 1
24302 { $as_echo "$as_me:$LINENO: result
: no
" >&5
24303 $as_echo "no
" >&6; }
24306 { $as_echo "$as_me:$LINENO: checking
for pid_t
" >&5
24307 $as_echo_n "checking
for pid_t...
" >&6; }
24308 if test "${ac_cv_type_pid_t+set}" = set; then
24309 $as_echo_n "(cached
) " >&6
24311 ac_cv_type_pid_t=no
24312 cat >conftest.$ac_ext <<_ACEOF
24315 cat confdefs.h >>conftest.$ac_ext
24316 cat >>conftest.$ac_ext <<_ACEOF
24317 /* end confdefs.h. */
24318 $ac_includes_default
24322 if (sizeof (pid_t))
24328 rm -f conftest.$ac_objext
24329 if { (ac_try="$ac_compile"
24330 case "(($ac_try" in
24331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24332 *) ac_try_echo=$ac_try;;
24334 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24335 $as_echo "$ac_try_echo") >&5
24336 (eval "$ac_compile") 2>conftest.er1
24338 grep -v '^ *+' conftest.er1 >conftest.err
24340 cat conftest.err >&5
24341 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24342 (exit $ac_status); } && {
24343 test -z "$ac_c_werror_flag" ||
24344 test ! -s conftest.err
24345 } && test -s conftest.$ac_objext; then
24346 cat >conftest.$ac_ext <<_ACEOF
24349 cat confdefs.h >>conftest.$ac_ext
24350 cat >>conftest.$ac_ext <<_ACEOF
24351 /* end confdefs.h. */
24352 $ac_includes_default
24356 if (sizeof ((pid_t)))
24362 rm -f conftest.$ac_objext
24363 if { (ac_try="$ac_compile"
24364 case "(($ac_try" in
24365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24366 *) ac_try_echo=$ac_try;;
24368 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24369 $as_echo "$ac_try_echo") >&5
24370 (eval "$ac_compile") 2>conftest.er1
24372 grep -v '^ *+' conftest.er1 >conftest.err
24374 cat conftest.err >&5
24375 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24376 (exit $ac_status); } && {
24377 test -z "$ac_c_werror_flag" ||
24378 test ! -s conftest.err
24379 } && test -s conftest.$ac_objext; then
24382 $as_echo "$as_me: failed program was
:" >&5
24383 sed 's/^/| /' conftest.$ac_ext >&5
24385 ac_cv_type_pid_t=yes
24388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24390 $as_echo "$as_me: failed program was
:" >&5
24391 sed 's/^/| /' conftest.$ac_ext >&5
24396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24398 { $as_echo "$as_me:$LINENO: result
: $ac_cv_type_pid_t" >&5
24399 $as_echo "$ac_cv_type_pid_t" >&6; }
24400 if test $ac_cv_type_pid_t = yes; then
24404 cat >>confdefs.h <<_ACEOF
24411 for ac_header in vfork.h
24413 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
24414 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
24415 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
24416 $as_echo_n "checking
for $ac_header...
" >&6; }
24417 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
24418 $as_echo_n "(cached
) " >&6
24420 ac_res=`eval 'as_val=${'$as_ac_Header'}
24421 $as_echo "$as_val"'`
24422 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
24423 $as_echo "$ac_res" >&6; }
24425 # Is the header compilable?
24426 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
24427 $as_echo_n "checking
$ac_header 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 <$ac_header>
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
$ac_header presence
" >&5
24469 $as_echo_n "checking
$ac_header 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 <$ac_header>
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
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
24511 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
24512 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
24513 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
24514 ac_header_preproc=yes
24517 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
24518 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
24519 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
24520 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
24521 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
24522 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
24523 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
24524 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
24525 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
24526 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
24527 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
24528 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
24532 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
24533 $as_echo_n "checking
for $ac_header...
" >&6; }
24534 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
24535 $as_echo_n "(cached
) " >&6
24537 eval "$as_ac_Header=\
$ac_header_preproc"
24539 ac_res=`eval 'as_val=${'$as_ac_Header'}
24540 $as_echo "$as_val"'`
24541 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
24542 $as_echo "$ac_res" >&6; }
24545 if test `eval 'as_val=${'$as_ac_Header'}
24546 $as_echo "$as_val"'` = yes; then
24547 cat >>confdefs.h <<_ACEOF
24548 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
24557 for ac_func in fork vfork
24559 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
24560 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
24561 $as_echo_n "checking
for $ac_func...
" >&6; }
24562 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
24563 $as_echo_n "(cached
) " >&6
24565 cat >conftest.$ac_ext <<_ACEOF
24568 cat confdefs.h >>conftest.$ac_ext
24569 cat >>conftest.$ac_ext <<_ACEOF
24570 /* end confdefs.h. */
24571 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24572 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24573 #define $ac_func innocuous_$ac_func
24575 /* System header to define __stub macros and hopefully few prototypes,
24576 which can conflict with char $ac_func (); below.
24577 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24578 <limits.h> exists even on freestanding compilers. */
24581 # include <limits.h>
24583 # include <assert.h>
24588 /* Override any GCC internal prototype to avoid an error.
24589 Use char because int might match the return type of a GCC
24590 builtin and then its argument prototype would still apply. */
24595 /* The GNU C library defines this for functions which it implements
24596 to always fail with ENOSYS. Some functions are actually named
24597 something starting with __ and the normal name is an alias. */
24598 #if defined __stub_$ac_func || defined __stub___$ac_func
24605 return $ac_func ();
24610 rm -f conftest.$ac_objext conftest$ac_exeext
24611 if { (ac_try="$ac_link"
24612 case "(($ac_try" in
24613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24614 *) ac_try_echo=$ac_try;;
24616 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24617 $as_echo "$ac_try_echo") >&5
24618 (eval "$ac_link") 2>conftest.er1
24620 grep -v '^ *+' conftest.er1 >conftest.err
24622 cat conftest.err >&5
24623 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24624 (exit $ac_status); } && {
24625 test -z "$ac_c_werror_flag" ||
24626 test ! -s conftest.err
24627 } && test -s conftest$ac_exeext && {
24628 test "$cross_compiling" = yes ||
24629 $as_test_x conftest$ac_exeext
24631 eval "$as_ac_var=yes"
24633 $as_echo "$as_me: failed program was
:" >&5
24634 sed 's/^/| /' conftest.$ac_ext >&5
24636 eval "$as_ac_var=no
"
24639 rm -rf conftest.dSYM
24640 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24641 conftest$ac_exeext conftest.$ac_ext
24643 ac_res=`eval 'as_val=${'$as_ac_var'}
24644 $as_echo "$as_val"'`
24645 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
24646 $as_echo "$ac_res" >&6; }
24647 if test `eval 'as_val=${'$as_ac_var'}
24648 $as_echo "$as_val"'` = yes; then
24649 cat >>confdefs.h <<_ACEOF
24650 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
24656 if test "x
$ac_cv_func_fork" = xyes; then
24657 { $as_echo "$as_me:$LINENO: checking
for working fork
" >&5
24658 $as_echo_n "checking
for working fork...
" >&6; }
24659 if test "${ac_cv_func_fork_works+set}" = set; then
24660 $as_echo_n "(cached
) " >&6
24662 if test "$cross_compiling" = yes; then
24663 ac_cv_func_fork_works=cross
24665 cat >conftest.$ac_ext <<_ACEOF
24668 cat confdefs.h >>conftest.$ac_ext
24669 cat >>conftest.$ac_ext <<_ACEOF
24670 /* end confdefs.h. */
24671 $ac_includes_default
24676 /* By Ruediger Kuhlmann. */
24677 return fork () < 0;
24683 rm -f conftest$ac_exeext
24684 if { (ac_try="$ac_link"
24685 case "(($ac_try" in
24686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24687 *) ac_try_echo=$ac_try;;
24689 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24690 $as_echo "$ac_try_echo") >&5
24691 (eval "$ac_link") 2>&5
24693 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24694 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24695 { (case "(($ac_try" in
24696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24697 *) ac_try_echo=$ac_try;;
24699 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24700 $as_echo "$ac_try_echo") >&5
24701 (eval "$ac_try") 2>&5
24703 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24704 (exit $ac_status); }; }; then
24705 ac_cv_func_fork_works=yes
24707 $as_echo "$as_me: program exited with status
$ac_status" >&5
24708 $as_echo "$as_me: failed program was
:" >&5
24709 sed 's/^/| /' conftest.$ac_ext >&5
24711 ( exit $ac_status )
24712 ac_cv_func_fork_works=no
24714 rm -rf conftest.dSYM
24715 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24720 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func_fork_works" >&5
24721 $as_echo "$ac_cv_func_fork_works" >&6; }
24724 ac_cv_func_fork_works=$ac_cv_func_fork
24726 if test "x
$ac_cv_func_fork_works" = xcross; then
24728 *-*-amigaos* | *-*-msdosdjgpp*)
24729 # Override, as these systems have only a dummy fork() stub
24730 ac_cv_func_fork_works=no
24733 ac_cv_func_fork_works=yes
24736 { $as_echo "$as_me:$LINENO: WARNING
: result
$ac_cv_func_fork_works guessed because of cross compilation
" >&5
24737 $as_echo "$as_me: WARNING
: result
$ac_cv_func_fork_works guessed because of cross compilation
" >&2;}
24739 ac_cv_func_vfork_works=$ac_cv_func_vfork
24740 if test "x
$ac_cv_func_vfork" = xyes; then
24741 { $as_echo "$as_me:$LINENO: checking
for working vfork
" >&5
24742 $as_echo_n "checking
for working vfork...
" >&6; }
24743 if test "${ac_cv_func_vfork_works+set}" = set; then
24744 $as_echo_n "(cached
) " >&6
24746 if test "$cross_compiling" = yes; then
24747 ac_cv_func_vfork_works=cross
24749 cat >conftest.$ac_ext <<_ACEOF
24752 cat confdefs.h >>conftest.$ac_ext
24753 cat >>conftest.$ac_ext <<_ACEOF
24754 /* end confdefs.h. */
24755 /* Thanks to Paul Eggert for this test. */
24756 $ac_includes_default
24757 #include <sys/wait.h>
24758 #ifdef HAVE_VFORK_H
24759 # include <vfork.h>
24761 /* On some sparc systems, changes by the child to local and incoming
24762 argument registers are propagated back to the parent. The compiler
24763 is told about this with #include <vfork.h>, but some compilers
24764 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
24765 static variable whose address is put into a register that is
24766 clobbered by the vfork. */
24769 sparc_address_test (int arg)
24771 sparc_address_test (arg) int arg;
24774 static pid_t child;
24792 pid_t parent = getpid ();
24795 sparc_address_test (0);
24800 /* Here is another test for sparc vfork register problems. This
24801 test uses lots of local variables, at least as many local
24802 variables as main has allocated so far including compiler
24803 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
24804 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
24805 reuse the register of parent for one of the local variables,
24806 since it will think that parent can't possibly be used any more
24807 in this routine. Assigning to the local variable will thus
24808 munge parent in the parent process. */
24810 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
24811 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
24812 /* Convince the compiler that p..p7 are live; otherwise, it might
24813 use the same hardware register for all 8 local variables. */
24814 if (p != p1 || p != p2 || p != p3 || p != p4
24815 || p != p5 || p != p6 || p != p7)
24818 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
24819 from child file descriptors. If the child closes a descriptor
24820 before it execs or exits, this munges the parent's descriptor
24821 as well. Test for this by closing stdout in the child. */
24822 _exit(close(fileno(stdout)) != 0);
24827 while (wait(&status) != child)
24830 /* Was there some problem with vforking? */
24833 /* Did the child fail? (This shouldn't happen.) */
24836 /* Did the vfork/compiler bug occur? */
24837 || parent != getpid()
24839 /* Did the file descriptor bug occur? */
24840 || fstat(fileno(stdout), &st) != 0
24845 rm -f conftest$ac_exeext
24846 if { (ac_try="$ac_link"
24847 case "(($ac_try" in
24848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24849 *) ac_try_echo=$ac_try;;
24851 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24852 $as_echo "$ac_try_echo") >&5
24853 (eval "$ac_link") 2>&5
24855 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24856 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24857 { (case "(($ac_try" in
24858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24859 *) ac_try_echo=$ac_try;;
24861 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24862 $as_echo "$ac_try_echo") >&5
24863 (eval "$ac_try") 2>&5
24865 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24866 (exit $ac_status); }; }; then
24867 ac_cv_func_vfork_works=yes
24869 $as_echo "$as_me: program exited with status
$ac_status" >&5
24870 $as_echo "$as_me: failed program was
:" >&5
24871 sed 's/^/| /' conftest.$ac_ext >&5
24873 ( exit $ac_status )
24874 ac_cv_func_vfork_works=no
24876 rm -rf conftest.dSYM
24877 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24882 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func_vfork_works" >&5
24883 $as_echo "$ac_cv_func_vfork_works" >&6; }
24886 if test "x
$ac_cv_func_fork_works" = xcross; then
24887 ac_cv_func_vfork_works=$ac_cv_func_vfork
24888 { $as_echo "$as_me:$LINENO: WARNING
: result
$ac_cv_func_vfork_works guessed because of cross compilation
" >&5
24889 $as_echo "$as_me: WARNING
: result
$ac_cv_func_vfork_works guessed because of cross compilation
" >&2;}
24892 if test "x
$ac_cv_func_vfork_works" = xyes; then
24894 cat >>confdefs.h <<\_ACEOF
24895 #define HAVE_WORKING_VFORK 1
24900 cat >>confdefs.h <<\_ACEOF
24905 if test "x
$ac_cv_func_fork_works" = xyes; then
24907 cat >>confdefs.h <<\_ACEOF
24908 #define HAVE_WORKING_FORK 1
24914 { $as_echo "$as_me:$LINENO: checking
for nl_langinfo and CODESET
" >&5
24915 $as_echo_n "checking
for nl_langinfo and CODESET...
" >&6; }
24916 if test "${emacs_cv_langinfo_codeset+set}" = set; then
24917 $as_echo_n "(cached
) " >&6
24919 cat >conftest.$ac_ext <<_ACEOF
24922 cat confdefs.h >>conftest.$ac_ext
24923 cat >>conftest.$ac_ext <<_ACEOF
24924 /* end confdefs.h. */
24925 #include <langinfo.h>
24929 char* cs = nl_langinfo(CODESET);
24934 rm -f conftest.$ac_objext conftest$ac_exeext
24935 if { (ac_try="$ac_link"
24936 case "(($ac_try" in
24937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24938 *) ac_try_echo=$ac_try;;
24940 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24941 $as_echo "$ac_try_echo") >&5
24942 (eval "$ac_link") 2>conftest.er1
24944 grep -v '^ *+' conftest.er1 >conftest.err
24946 cat conftest.err >&5
24947 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24948 (exit $ac_status); } && {
24949 test -z "$ac_c_werror_flag" ||
24950 test ! -s conftest.err
24951 } && test -s conftest$ac_exeext && {
24952 test "$cross_compiling" = yes ||
24953 $as_test_x conftest$ac_exeext
24955 emacs_cv_langinfo_codeset=yes
24957 $as_echo "$as_me: failed program was
:" >&5
24958 sed 's/^/| /' conftest.$ac_ext >&5
24960 emacs_cv_langinfo_codeset=no
24963 rm -rf conftest.dSYM
24964 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24965 conftest$ac_exeext conftest.$ac_ext
24968 { $as_echo "$as_me:$LINENO: result
: $emacs_cv_langinfo_codeset" >&5
24969 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
24970 if test $emacs_cv_langinfo_codeset = yes; then
24972 cat >>confdefs.h <<\_ACEOF
24973 #define HAVE_LANGINFO_CODESET 1
24978 { $as_echo "$as_me:$LINENO: checking
for size_t
" >&5
24979 $as_echo_n "checking
for size_t...
" >&6; }
24980 if test "${ac_cv_type_size_t+set}" = set; then
24981 $as_echo_n "(cached
) " >&6
24983 ac_cv_type_size_t=no
24984 cat >conftest.$ac_ext <<_ACEOF
24987 cat confdefs.h >>conftest.$ac_ext
24988 cat >>conftest.$ac_ext <<_ACEOF
24989 /* end confdefs.h. */
24990 $ac_includes_default
24994 if (sizeof (size_t))
25000 rm -f conftest.$ac_objext
25001 if { (ac_try="$ac_compile"
25002 case "(($ac_try" in
25003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25004 *) ac_try_echo=$ac_try;;
25006 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25007 $as_echo "$ac_try_echo") >&5
25008 (eval "$ac_compile") 2>conftest.er1
25010 grep -v '^ *+' conftest.er1 >conftest.err
25012 cat conftest.err >&5
25013 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25014 (exit $ac_status); } && {
25015 test -z "$ac_c_werror_flag" ||
25016 test ! -s conftest.err
25017 } && test -s conftest.$ac_objext; then
25018 cat >conftest.$ac_ext <<_ACEOF
25021 cat confdefs.h >>conftest.$ac_ext
25022 cat >>conftest.$ac_ext <<_ACEOF
25023 /* end confdefs.h. */
25024 $ac_includes_default
25028 if (sizeof ((size_t)))
25034 rm -f conftest.$ac_objext
25035 if { (ac_try="$ac_compile"
25036 case "(($ac_try" in
25037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25038 *) ac_try_echo=$ac_try;;
25040 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25041 $as_echo "$ac_try_echo") >&5
25042 (eval "$ac_compile") 2>conftest.er1
25044 grep -v '^ *+' conftest.er1 >conftest.err
25046 cat conftest.err >&5
25047 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25048 (exit $ac_status); } && {
25049 test -z "$ac_c_werror_flag" ||
25050 test ! -s conftest.err
25051 } && test -s conftest.$ac_objext; then
25054 $as_echo "$as_me: failed program was
:" >&5
25055 sed 's/^/| /' conftest.$ac_ext >&5
25057 ac_cv_type_size_t=yes
25060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25062 $as_echo "$as_me: failed program was
:" >&5
25063 sed 's/^/| /' conftest.$ac_ext >&5
25068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25070 { $as_echo "$as_me:$LINENO: result
: $ac_cv_type_size_t" >&5
25071 $as_echo "$ac_cv_type_size_t" >&6; }
25072 if test $ac_cv_type_size_t = yes; then
25074 cat >>confdefs.h <<_ACEOF
25075 #define HAVE_SIZE_T 1
25082 { $as_echo "$as_me:$LINENO: checking
for mbstate_t
" >&5
25083 $as_echo_n "checking
for mbstate_t...
" >&6; }
25084 if test "${ac_cv_type_mbstate_t+set}" = set; then
25085 $as_echo_n "(cached
) " >&6
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
25094 # include <wchar.h>
25098 mbstate_t x; return sizeof x;
25103 rm -f conftest.$ac_objext
25104 if { (ac_try="$ac_compile"
25105 case "(($ac_try" in
25106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25107 *) ac_try_echo=$ac_try;;
25109 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25110 $as_echo "$ac_try_echo") >&5
25111 (eval "$ac_compile") 2>conftest.er1
25113 grep -v '^ *+' conftest.er1 >conftest.err
25115 cat conftest.err >&5
25116 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25117 (exit $ac_status); } && {
25118 test -z "$ac_c_werror_flag" ||
25119 test ! -s conftest.err
25120 } && test -s conftest.$ac_objext; then
25121 ac_cv_type_mbstate_t=yes
25123 $as_echo "$as_me: failed program was
:" >&5
25124 sed 's/^/| /' conftest.$ac_ext >&5
25126 ac_cv_type_mbstate_t=no
25129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25131 { $as_echo "$as_me:$LINENO: result
: $ac_cv_type_mbstate_t" >&5
25132 $as_echo "$ac_cv_type_mbstate_t" >&6; }
25133 if test $ac_cv_type_mbstate_t = yes; then
25135 cat >>confdefs.h <<\_ACEOF
25136 #define HAVE_MBSTATE_T 1
25141 cat >>confdefs.h <<\_ACEOF
25142 #define mbstate_t int
25147 { $as_echo "$as_me:$LINENO: checking
for C restrict keyword
" >&5
25148 $as_echo_n "checking
for C restrict keyword...
" >&6; }
25149 if test "${emacs_cv_c_restrict+set}" = set; then
25150 $as_echo_n "(cached
) " >&6
25152 cat >conftest.$ac_ext <<_ACEOF
25155 cat confdefs.h >>conftest.$ac_ext
25156 cat >>conftest.$ac_ext <<_ACEOF
25157 /* end confdefs.h. */
25158 void fred (int *restrict x);
25167 rm -f conftest.$ac_objext
25168 if { (ac_try="$ac_compile"
25169 case "(($ac_try" in
25170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25171 *) ac_try_echo=$ac_try;;
25173 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25174 $as_echo "$ac_try_echo") >&5
25175 (eval "$ac_compile") 2>conftest.er1
25177 grep -v '^ *+' conftest.er1 >conftest.err
25179 cat conftest.err >&5
25180 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25181 (exit $ac_status); } && {
25182 test -z "$ac_c_werror_flag" ||
25183 test ! -s conftest.err
25184 } && test -s conftest.$ac_objext; then
25185 emacs_cv_c_restrict=yes
25187 $as_echo "$as_me: failed program was
:" >&5
25188 sed 's/^/| /' conftest.$ac_ext >&5
25190 cat >conftest.$ac_ext <<_ACEOF
25193 cat confdefs.h >>conftest.$ac_ext
25194 cat >>conftest.$ac_ext <<_ACEOF
25195 /* end confdefs.h. */
25196 void fred (int *__restrict x);
25205 rm -f conftest.$ac_objext
25206 if { (ac_try="$ac_compile"
25207 case "(($ac_try" in
25208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25209 *) ac_try_echo=$ac_try;;
25211 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25212 $as_echo "$ac_try_echo") >&5
25213 (eval "$ac_compile") 2>conftest.er1
25215 grep -v '^ *+' conftest.er1 >conftest.err
25217 cat conftest.err >&5
25218 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25219 (exit $ac_status); } && {
25220 test -z "$ac_c_werror_flag" ||
25221 test ! -s conftest.err
25222 } && test -s conftest.$ac_objext; then
25223 emacs_cv_c_restrict=__restrict
25225 $as_echo "$as_me: failed program was
:" >&5
25226 sed 's/^/| /' conftest.$ac_ext >&5
25228 emacs_cv_c_restrict=no
25231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25236 { $as_echo "$as_me:$LINENO: result
: $emacs_cv_c_restrict" >&5
25237 $as_echo "$emacs_cv_c_restrict" >&6; }
25238 case "$emacs_cv_c_restrict" in
25239 yes) emacs_restrict=restrict;;
25240 no) emacs_restrict="";;
25241 *) emacs_restrict="$emacs_cv_c_restrict";;
25243 if test "$emacs_restrict" != __restrict; then
25245 cat >>confdefs.h <<_ACEOF
25246 #define __restrict $emacs_restrict
25251 { $as_echo "$as_me:$LINENO: checking
for C restricted array declarations
" >&5
25252 $as_echo_n "checking
for C restricted array declarations...
" >&6; }
25253 if test "${emacs_cv_c_restrict_arr+set}" = set; then
25254 $as_echo_n "(cached
) " >&6
25256 cat >conftest.$ac_ext <<_ACEOF
25259 cat confdefs.h >>conftest.$ac_ext
25260 cat >>conftest.$ac_ext <<_ACEOF
25261 /* end confdefs.h. */
25262 void fred (int x[__restrict]);
25271 rm -f conftest.$ac_objext
25272 if { (ac_try="$ac_compile"
25273 case "(($ac_try" in
25274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25275 *) ac_try_echo=$ac_try;;
25277 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25278 $as_echo "$ac_try_echo") >&5
25279 (eval "$ac_compile") 2>conftest.er1
25281 grep -v '^ *+' conftest.er1 >conftest.err
25283 cat conftest.err >&5
25284 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25285 (exit $ac_status); } && {
25286 test -z "$ac_c_werror_flag" ||
25287 test ! -s conftest.err
25288 } && test -s conftest.$ac_objext; then
25289 emacs_cv_c_restrict_arr=yes
25291 $as_echo "$as_me: failed program was
:" >&5
25292 sed 's/^/| /' conftest.$ac_ext >&5
25294 emacs_cv_c_restrict_arr=no
25297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25299 { $as_echo "$as_me:$LINENO: result
: $emacs_cv_c_restrict_arr" >&5
25300 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
25301 if test "$emacs_cv_c_restrict_arr" = yes; then
25303 cat >>confdefs.h <<\_ACEOF
25304 #define __restrict_arr __restrict
25311 # Set up the CFLAGS for real compilation, so we can substitute it.
25312 CFLAGS="$REAL_CFLAGS"
25313 CPPFLAGS="$REAL_CPPFLAGS"
25315 #### Find out which version of Emacs this is.
25316 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
25317 | sed -e 's/^[^"]*"\([^"]*\
)".*$/\1/'`
25318 if test x"${version}" = x; then
25319 { { $as_echo "$as_me:$LINENO: error
: can
't find current emacs version in \`${srcdir}/lisp/version.el'.
" >&5
25320 $as_echo "$as_me: error
: can
't find current emacs version in \`${srcdir}/lisp/version.el'.
" >&2;}
25321 { (exit 1); exit 1; }; }
25323 if test x"${version}" != x"$PACKAGE_VERSION"; then
25324 { $as_echo "$as_me:$LINENO: WARNING
: version mismatch between \
`${srcdir}/configure.in' and \`${srcdir}/lisp
/version.el
'." >&5
25325 $as_echo "$as_me: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/lisp/version.el'." >&2;}
25328 ### Specify what sort of things we'll be editing into Makefile and config.h.
25329 ### Use configuration here uncanonicalized to avoid exceeding size limits.
25374 cat >>confdefs.h
<<_ACEOF
25375 #define EMACS_CONFIGURATION "${canonical}"
25379 cat >>confdefs.h
<<_ACEOF
25380 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
25384 cat >>confdefs.h
<<_ACEOF
25385 #define config_machfile "${machfile}"
25389 cat >>confdefs.h
<<_ACEOF
25390 #define config_opsysfile "${opsysfile}"
25394 cat >>confdefs.h
<<_ACEOF
25395 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
25399 cat >>confdefs.h
<<_ACEOF
25400 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
25404 cat >>confdefs.h
<<_ACEOF
25405 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
25409 cat >>confdefs.h
<<_ACEOF
25410 #define UNEXEC_SRC ${UNEXEC_SRC}
25414 if test "${HAVE_X_WINDOWS}" = "yes" ; then
25416 cat >>confdefs.h
<<\_ACEOF
25417 #define HAVE_X_WINDOWS 1
25421 if test "${USE_X_TOOLKIT}" != "none" ; then
25423 cat >>confdefs.h
<<\_ACEOF
25424 #define USE_X_TOOLKIT 1
25427 if test "${USE_X_TOOLKIT}" = "LUCID"; then
25429 cat >>confdefs.h
<<\_ACEOF
25430 #define USE_LUCID 1
25433 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
25435 cat >>confdefs.h
<<\_ACEOF
25436 #define USE_MOTIF 1
25441 if test "${HAVE_X11}" = "yes" ; then
25443 cat >>confdefs.h
<<\_ACEOF
25448 if test "${HAVE_MENUS}" = "yes" ; then
25450 cat >>confdefs.h
<<\_ACEOF
25451 #define HAVE_MENUS 1
25455 if test "${GNU_MALLOC}" = "yes" ; then
25457 cat >>confdefs.h
<<\_ACEOF
25458 #define GNU_MALLOC 1
25462 if test "${REL_ALLOC}" = "yes" ; then
25464 cat >>confdefs.h
<<\_ACEOF
25465 #define REL_ALLOC 1
25475 #### Report on what we decided to do.
25476 #### Report GTK as a toolkit, even if it doesn't use Xt.
25477 #### It makes printing result more understandable as using GTK sets
25478 #### toolkit_scroll_bars to yes by default.
25479 if test "${HAVE_GTK}" = "yes"; then
25484 Configured for \`${canonical}'.
25486 Where should the build process find the source code? ${srcdir}
25487 What operating system and machine description files should Emacs use?
25488 \`${opsysfile}' and \`${machfile}'
25489 What compiler should emacs be built with? ${CC} ${CFLAGS}
25490 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
25491 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
25492 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
25493 What window system should Emacs use? ${window_system}
25494 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
25496 if test -n "${x_includes}"; then
25497 echo " Where do we find X Windows header files? ${x_includes}"
25499 echo " Where do we find X Windows header files? Standard dirs"
25501 if test -n "${x_libraries}"; then
25502 echo " Where do we find X Windows libraries? ${x_libraries}"
25504 echo " Where do we find X Windows libraries? Standard dirs"
25507 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
25508 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
25509 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
25510 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
25511 echo " Does Emacs use a gif library? ${HAVE_GIF} $ac_gif_lib_name"
25512 echo " Does Emacs use -lpng? ${HAVE_PNG}"
25513 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
25514 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
25515 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
25517 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
25518 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
25519 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
25520 echo " Does Emacs use -lxft? ${HAVE_XFT}"
25522 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
25525 if test $USE_XASSERTS = yes; then
25526 echo " Compiling with asserts turned on."
25527 CPPFLAGS
="$CPPFLAGS -DXASSERTS=1"
25532 if test "$USE_X_TOOLKIT" = GTK
; then
25533 case "$canonical" in
25535 echo "There are known problems with Emacs and Gtk+ on cygwin, so you
25536 will probably get a crash on startup. If this happens, please use another
25537 toolkit for Emacs. See etc/PROBLEMS for more information."
25542 if test "$HAVE_NS" = "yes"; then
25544 echo "You must run \"make install\" in order to test the built application.
25545 The installed application will go to nextstep/Emacs.app and can be
25546 run or moved from there."
25547 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
25548 echo "The application will be fully self-contained."
25550 echo "The lisp resources for the application will be installed under ${prefix}.
25551 You may need to run \"make install\" with sudo. The application will fail
25552 to run if these resources are not installed."
25557 if test "$HAVE_DBUS" = yes && test "${opsys}" != "gnu-linux"; then
25558 echo "D-Bus integration has been tested for GNU/Linux only."
25563 # Remove any trailing slashes in these variables.
25564 test "${prefix}" != NONE
&&
25565 prefix
=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
25566 test "${exec_prefix}" != NONE
&&
25567 exec_prefix
=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
25569 # Now get this: Some word that is part of the ${srcdir} directory name
25570 # or the ${configuration} value might, just might, happen to be an
25571 # identifier like `sun4' or `i386' or something, and be predefined by
25572 # the C preprocessor to some helpful value like 1, or maybe the empty
25573 # string. Needless to say consequent macro substitutions are less
25574 # than conducive to the makefile finding the correct directory.
25575 cpp_undefs
="`echo $srcdir $configuration $canonical |
25576 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
25577 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g'`"
25579 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
25580 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
25581 ## from Makefile.c can correctly provide the arg `-traditional' to the
25584 cat >conftest.
$ac_ext <<_ACEOF
25587 cat confdefs.h
>>conftest.
$ac_ext
25588 cat >>conftest.
$ac_ext <<_ACEOF
25589 /* end confdefs.h. */
25592 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25593 $EGREP "yes..yes" >/dev
/null
2>&1; then
25594 CPP_NEED_TRADITIONAL
=no
25596 CPP_NEED_TRADITIONAL
=yes
25601 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"
25603 ac_config_commands
="$ac_config_commands default"
25605 cat >confcache
<<\_ACEOF
25606 # This file is a shell script that caches the results of configure
25607 # tests run on this system so they can be shared between configure
25608 # scripts and configure runs, see configure's option --config-cache.
25609 # It is not useful on other systems. If it contains results you don't
25610 # want to keep, you may remove or edit it.
25612 # config.status only pays attention to the cache file if you give it
25613 # the --recheck option to rerun configure.
25615 # `ac_cv_env_foo' variables (set or unset) will be overridden when
25616 # loading this file, other *unset* `ac_cv_foo' will be assigned the
25617 # following values.
25621 # The following way of writing the cache mishandles newlines in values,
25622 # but we know of no workaround that is simple, portable, and efficient.
25623 # So, we kill variables containing newlines.
25624 # Ultrix sh set writes to stderr and can't be redirected directly,
25625 # and sets the high bit in the cache file unless we assign to the vars.
25627 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
25628 eval ac_val
=\$
$ac_var
25632 *_cv_
*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
25633 $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
25636 _ | IFS | as_nl
) ;; #(
25637 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
25638 *) $as_unset $ac_var ;;
25644 case $as_nl`(ac_space=' '; set) 2>&1` in #(
25645 *${as_nl}ac_space
=\
*)
25646 # `set' does not quote correctly, so add quotes (double-quote
25647 # substitution turns \\\\ into \\, and sed turns \\ into \).
25650 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25653 # `set' quotes correctly as required by POSIX, so do not add quotes.
25654 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
25663 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25665 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25667 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
25668 if test -w "$cache_file"; then
25669 test "x$cache_file" != "x/dev/null" &&
25670 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
25671 $as_echo "$as_me: updating cache $cache_file" >&6;}
25672 cat confcache
>$cache_file
25674 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
25675 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
25680 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
25681 # Let make expand exec_prefix.
25682 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
25684 DEFS
=-DHAVE_CONFIG_H
25688 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
25689 # 1. Remove the extension, and $U if already installed.
25690 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
25691 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
25692 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
25693 # will be set to the directory where LIBOBJS objects are built.
25694 ac_libobjs
="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
25695 ac_ltlibobjs
="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
25697 LIBOBJS
=$ac_libobjs
25699 LTLIBOBJS
=$ac_ltlibobjs
25703 : ${CONFIG_STATUS=./config.status}
25705 ac_clean_files_save
=$ac_clean_files
25706 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
25707 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
25708 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
25709 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25711 # Generated by $as_me.
25712 # Run this file to recreate the current configuration.
25713 # Compiler output produced by configure, useful for debugging
25714 # configure, is in config.log if it exists.
25717 ac_cs_recheck=false
25719 SHELL=\${CONFIG_SHELL-$SHELL}
25722 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
25723 ## --------------------- ##
25724 ## M4sh Initialization. ##
25725 ## --------------------- ##
25727 # Be more Bourne compatible
25728 DUALCASE
=1; export DUALCASE
# for MKS sh
25729 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
25732 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25733 # is contrary to our usage. Disable this feature.
25734 alias -g '${1+"$@"}'='"$@"'
25735 setopt NO_GLOB_SUBST
25737 case `(set -o) 2>/dev/null` in
25738 *posix
*) set -o posix
;;
25747 # Avoid depending upon Character Ranges.
25748 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
25749 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25750 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
25751 as_cr_digits
='0123456789'
25752 as_cr_alnum
=$as_cr_Letters$as_cr_digits
25757 # Printing a long string crashes Solaris 7 /usr/bin/printf.
25758 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
25759 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
25760 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
25761 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
25762 as_echo='printf %s
\n'
25763 as_echo_n='printf %s
'
25765 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
25766 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
25767 as_echo_n='/usr
/ucb
/echo -n'
25769 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
25770 as_echo_n_body='eval
25774 expr "X$arg" : "X\\(.*\\)$as_nl";
25775 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
25777 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
25779 export as_echo_n_body
25780 as_echo_n='sh
-c $as_echo_n_body as_echo
'
25782 export as_echo_body
25783 as_echo='sh
-c $as_echo_body as_echo
'
25786 # The user is always right.
25787 if test "${PATH_SEPARATOR+set}" != set; then
25789 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
25790 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
25795 # Support unset when possible.
25796 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
25804 # We need space, tab and new line, in precisely that order. Quoting is
25805 # there to prevent editors from complaining about space-tab.
25806 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
25807 # splitting by setting IFS to empty value.)
25810 # Find who we are. Look in the path if we contain no directory separator.
25812 *[\\/]* ) as_myself=$0 ;;
25813 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25814 for as_dir in $PATH
25817 test -z "$as_dir" && as_dir=.
25818 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
25824 # We did not find ourselves, most probably we were run as `sh COMMAND'
25825 # in which case we are not to be found in the path.
25826 if test "x$as_myself" = x
; then
25829 if test ! -f "$as_myself"; then
25830 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
25831 { (exit 1); exit 1; }
25834 # Work around bugs in pre-3.0 UWIN ksh.
25835 for as_var
in ENV MAIL MAILPATH
25836 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
25848 # Required to use basename.
25849 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
25850 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
25856 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
25857 as_basename
=basename
25863 # Name of the executable.
25864 as_me
=`$as_basename -- "$0" ||
25865 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25866 X"$0" : 'X\(//\)$' \| \
25867 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
25869 sed '/^.*\/\([^/][^/]*\)\/*$/{
25888 as_lineno_1
=$LINENO
25889 as_lineno_2
=$LINENO
25890 test "x$as_lineno_1" != "x$as_lineno_2" &&
25891 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
25893 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
25894 # uniformly replaced by the line number. The first 'sed' inserts a
25895 # line-number line after each line using $LINENO; the second 'sed'
25896 # does the real work. The second script uses 'N' to pair each
25897 # line-number line with the line containing $LINENO, and appends
25898 # trailing '-' during substitution so that $LINENO is not a special
25899 # case at line end.
25900 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
25901 # scripts with optimization help from Paolo Bonzini. Blame Lee
25902 # E. McMahon (1931-1989) for sed's syntax. :-)
25914 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
25917 ' >$as_me.lineno
&&
25918 chmod +x
"$as_me.lineno" ||
25919 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
25920 { (exit 1); exit 1; }; }
25922 # Don't try to exec as it changes $[0], causing all sort of problems
25923 # (the dirname of $[0] is not the place where we might find the
25924 # original and so on. Autoconf is especially sensitive to this).
25925 .
"./$as_me.lineno"
25926 # Exit status is that of the last command.
25931 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
25937 ECHO_C
= ECHO_N
= ECHO_T
=
25938 case `echo -n x` in
25940 case `echo 'x\c'` in
25941 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
25947 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
25948 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
25954 rm -f conf$$ conf$$.exe conf$$.
file
25955 if test -d conf$$.dir
; then
25956 rm -f conf$$.dir
/conf$$.
file
25959 mkdir conf$$.dir
2>/dev
/null
25961 if (echo >conf$$.
file) 2>/dev
/null
; then
25962 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
25964 # ... but there are two gotchas:
25965 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
25966 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
25967 # In both cases, we have to default to `cp -p'.
25968 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
25970 elif ln conf$$.
file conf$$
2>/dev
/null
; then
25978 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
25979 rmdir conf$$.dir
2>/dev
/null
25981 if mkdir
-p .
2>/dev
/null
; then
25984 test -d .
/-p && rmdir .
/-p
25988 if test -x / >/dev
/null
2>&1; then
25989 as_test_x
='test -x'
25991 if ls -dL / >/dev
/null
2>&1; then
25998 if test -d "$1"; then
26004 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
26005 ???[sx]*):;;*)false;;esac;fi
26009 as_executable_p
=$as_test_x
26011 # Sed expression to map a string onto a valid CPP name.
26012 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26014 # Sed expression to map a string onto a valid variable name.
26015 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26020 # Save the log message, to keep $[0] and so on meaningful, and to
26021 # report actual input values of CONFIG_FILES etc. instead of their
26022 # values after options handling.
26024 This file was extended by emacs $as_me 23.1.50, which was
26025 generated by GNU Autoconf 2.62. Invocation command line was
26027 CONFIG_FILES = $CONFIG_FILES
26028 CONFIG_HEADERS = $CONFIG_HEADERS
26029 CONFIG_LINKS = $CONFIG_LINKS
26030 CONFIG_COMMANDS = $CONFIG_COMMANDS
26033 on `(hostname || uname -n) 2>/dev/null | sed 1q`
26038 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26039 # Files that config.status was made for.
26040 config_files="$ac_config_files"
26041 config_headers="$ac_config_headers"
26042 config_commands="$ac_config_commands"
26046 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
26048 \`$as_me' instantiates files from templates according to the
26049 current configuration.
26051 Usage: $0 [OPTIONS] [FILE]...
26053 -h, --help print this help, then exit
26054 -V, --version print version number and configuration settings, then exit
26055 -q, --quiet do not print progress messages
26056 -d, --debug don't remove temporary files
26057 --recheck update $as_me by reconfiguring in the same conditions
26058 --file=FILE[:TEMPLATE]
26059 instantiate the configuration file FILE
26060 --header=FILE[:TEMPLATE]
26061 instantiate the configuration header FILE
26063 Configuration files:
26066 Configuration headers:
26069 Configuration commands:
26072 Report bugs to <bug-autoconf@gnu.org>."
26075 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26077 emacs config.status 23.1.50
26078 configured by $0, generated by GNU Autoconf 2.62,
26079 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
26081 Copyright (C) 2008 Free Software Foundation, Inc.
26082 This config.status script is free software; the Free Software Foundation
26083 gives unlimited permission to copy, distribute and modify it."
26088 test -n "\$AWK" || AWK=awk
26091 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
26092 # The default lists apply if the user does not specify any file.
26098 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
26099 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
26110 # Handling of the options.
26111 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
26113 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
26114 $as_echo "$ac_cs_version"; exit ;;
26115 --debug |
--debu |
--deb |
--de |
--d |
-d )
26117 --file |
--fil |
--fi |
--f )
26120 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26122 CONFIG_FILES
="$CONFIG_FILES '$ac_optarg'"
26123 ac_need_defaults
=false
;;
26124 --header |
--heade |
--head |
--hea )
26127 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26129 CONFIG_HEADERS
="$CONFIG_HEADERS '$ac_optarg'"
26130 ac_need_defaults
=false
;;
26132 # Conflict between --help and --header
26133 { $as_echo "$as_me: error: ambiguous option: $1
26134 Try \`$0 --help' for more information." >&2
26135 { (exit 1); exit 1; }; };;
26136 --help |
--hel |
-h )
26137 $as_echo "$ac_cs_usage"; exit ;;
26138 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
26139 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
26142 # This is an error.
26143 -*) { $as_echo "$as_me: error: unrecognized option: $1
26144 Try \`$0 --help' for more information." >&2
26145 { (exit 1); exit 1; }; } ;;
26147 *) ac_config_targets
="$ac_config_targets $1"
26148 ac_need_defaults
=false
;;
26154 ac_configure_extra_args
=
26156 if $ac_cs_silent; then
26158 ac_configure_extra_args
="$ac_configure_extra_args --silent"
26162 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26163 if \$ac_cs_recheck; then
26164 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26166 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
26167 CONFIG_SHELL='$SHELL'
26168 export CONFIG_SHELL
26173 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
26177 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26178 ## Running $as_me. ##
26184 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26188 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS" cpp_undefs="$cpp_undefs"
26192 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
26194 # Handling of arguments.
26195 for ac_config_target
in $ac_config_targets
26197 case $ac_config_target in
26198 "src/config.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
26199 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
26200 "lib-src/Makefile.c") CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
26201 "oldXMenu/Makefile") CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
26202 "doc/emacs/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/emacs/Makefile" ;;
26203 "doc/misc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/misc/Makefile" ;;
26204 "doc/lispintro/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispintro/Makefile" ;;
26205 "doc/lispref/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispref/Makefile" ;;
26206 "src/Makefile.c") CONFIG_FILES
="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
26207 "lwlib/Makefile") CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
26208 "lisp/Makefile") CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
26209 "leim/Makefile") CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
26210 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
26212 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
26213 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
26214 { (exit 1); exit 1; }; };;
26219 # If the user did not use the arguments to specify the items to instantiate,
26220 # then the envvar interface is used. Set only those that are not.
26221 # We use the long form for the default assignment because of an extremely
26222 # bizarre bug on SunOS 4.1.3.
26223 if $ac_need_defaults; then
26224 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
26225 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
26226 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
26229 # Have a temporary directory for convenience. Make it in the build tree
26230 # simply because there is no reason against having it here, and in addition,
26231 # creating and moving files from /tmp can sometimes cause problems.
26232 # Hook for its removal unless debugging.
26233 # Note that there is a small window in which the directory will not be cleaned:
26234 # after its creation but before its name has been assigned to `$tmp'.
26238 trap 'exit_status=$?
26239 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
26241 trap '{ (exit 1); exit 1; }' 1 2 13 15
26243 # Create a (secure) tmp directory for tmp files.
26246 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
26247 test -n "$tmp" && test -d "$tmp"
26250 tmp
=.
/conf$$
-$RANDOM
26251 (umask 077 && mkdir
"$tmp")
26254 $as_echo "$as_me: cannot create a temporary directory in ." >&2
26255 { (exit 1); exit 1; }
26258 # Set up the scripts for CONFIG_FILES section.
26259 # No need to generate them if there are no CONFIG_FILES.
26260 # This happens for instance with `./config.status config.h'.
26261 if test -n "$CONFIG_FILES"; then
26265 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
26266 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
26269 ac_cs_awk_cr
=$ac_cr
26272 echo 'BEGIN {' >"$tmp/subs1.awk" &&
26277 echo "cat >conf$$subs.awk <<_ACEOF" &&
26278 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
26280 } >conf$$subs.sh ||
26281 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_STATUS" >&5
26282 $as_echo "$as_me: error
: could not
make $CONFIG_STATUS" >&2;}
26283 { (exit 1); exit 1; }; }
26284 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
26286 for ac_last_try in false false false false false :; do
26287 . ./conf$$subs.sh ||
26288 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_STATUS" >&5
26289 $as_echo "$as_me: error
: could not
make $CONFIG_STATUS" >&2;}
26290 { (exit 1); exit 1; }; }
26292 if test `sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X` = $ac_delim_num; then
26294 elif $ac_last_try; then
26295 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_STATUS" >&5
26296 $as_echo "$as_me: error
: could not
make $CONFIG_STATUS" >&2;}
26297 { (exit 1); exit 1; }; }
26299 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
26302 rm -f conf$$subs.sh
26304 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26305 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
26309 s/^/S["/; s
/!.
*/"]=/
26319 s/\(.\{148\}\).*/\1/
26321 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
26326 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
26333 s/\(.\{148\}\).*/\1/
26335 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
26339 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
26344 ' <conf$$subs.awk | sed '
26349 ' >>$CONFIG_STATUS || ac_write_fail=1
26350 rm -f conf$$subs.awk
26351 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26353 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
26354 for (key in S) S_is_set[key] = 1
26360 nfields = split(line, field, "@
")
26362 len = length(field[1])
26363 for (i = 2; i < nfields; i++) {
26365 keylen = length(key)
26366 if (S_is_set[key]) {
26368 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
26369 len += length(value) + length(field[++i])
26380 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26381 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
26382 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
26385 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
26386 || { { $as_echo "$as_me:$LINENO: error
: could not setup config files machinery
" >&5
26387 $as_echo "$as_me: error
: could not setup config files machinery
" >&2;}
26388 { (exit 1); exit 1; }; }
26391 # VPATH may cause trouble with some makes, so we remove $(srcdir),
26392 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
26393 # trailing colons and then remove the whole line if VPATH becomes empty
26394 # (actually we leave an empty line to preserve line numbers).
26395 if test "x
$srcdir" = x.; then
26396 ac_vpsub='/^[ ]*VPATH[ ]*=/{
26397 s/:*\$(srcdir):*/:/
26398 s/:*\${srcdir}:*/:/
26400 s/^\([^=]*=[ ]*\):*/\1/
26406 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26407 fi # test -n "$CONFIG_FILES"
26409 # Set up the scripts for CONFIG_HEADERS section.
26410 # No need to generate them if there are no CONFIG_HEADERS.
26411 # This happens for instance with `./config.status Makefile'.
26412 if test -n "$CONFIG_HEADERS"; then
26413 cat >"$tmp/defines.
awk" <<\_ACAWK ||
26417 # Transform confdefs.h into an awk script `defines.awk', embedded as
26418 # here-document in config.status, that substitutes the proper values into
26419 # config.h.in to produce config.h.
26421 # Create a delimiter string that does not exist in confdefs.h, to ease
26422 # handling of long lines.
26424 for ac_last_try in false false :; do
26425 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
26426 if test -z "$ac_t"; then
26428 elif $ac_last_try; then
26429 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_HEADERS" >&5
26430 $as_echo "$as_me: error
: could not
make $CONFIG_HEADERS" >&2;}
26431 { (exit 1); exit 1; }; }
26433 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
26437 # For the awk script, D is an array of macro values keyed by name,
26438 # likewise P contains macro parameters if any. Preserve backslash
26439 # newline sequences.
26441 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
26443 s/.\{148\}/&'"$ac_delim"'/g
26446 s/^[ ]*#[ ]*define[ ][ ]*/ /
26453 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
26455 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
26459 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
26460 D["\
1"]=" \
3\\\\\\n
"\\/p
26462 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
26467 s/.\{148\}/&'"$ac_delim"'/g
26472 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
26475 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
26477 ' <confdefs.h | sed '
26478 s/'"$ac_delim"'/"\\\
26479 "/g' >>$CONFIG_STATUS || ac_write_fail=1
26481 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26482 for (key in D) D_is_set[key] = 1
26485 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
26487 split(line, arg, " ")
26488 if (arg[1] == "#") {
26492 defundef
= substr
(arg
[1], 2)
26495 split(mac1
, mac2
, "(") #)
26497 if (D_is_set
[macro
]) {
26498 # Preserve the white space surrounding the "#".
26499 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
26500 print prefix
"define", macro P
[macro
] D
[macro
]
26503 # Replace #undef with comments. This is necessary, for example,
26504 # in the case of _POSIX_SOURCE, which is predefined and required
26505 # on some systems where configure will not decide to define it.
26506 if (defundef
== "undef") {
26507 print
"/*", line
, "*/"
26515 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
26516 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
26517 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
26518 { (exit 1); exit 1; }; }
26519 fi # test -n "$CONFIG_HEADERS"
26522 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
26527 :[FHLC
]) ac_mode
=$ac_tag; continue;;
26529 case $ac_mode$ac_tag in
26531 :L
* |
:C
*:*) { { $as_echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
26532 $as_echo "$as_me: error: Invalid tag $ac_tag." >&2;}
26533 { (exit 1); exit 1; }; };;
26534 :[FH
]-) ac_tag
=-:-;;
26535 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
26552 -) ac_f
="$tmp/stdin";;
26553 *) # Look for the file first in the build tree, then in the source tree
26554 # (if the path is not absolute). The absolute path cannot be DOS-style,
26555 # because $ac_f cannot contain `:'.
26559 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
26561 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
26562 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
26563 { (exit 1); exit 1; }; };;
26565 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
26566 ac_file_inputs
="$ac_file_inputs '$ac_f'"
26569 # Let's still pretend it is `configure' which instantiates (i.e., don't
26570 # use $as_me), people would be surprised to read:
26571 # /* config.h. Generated by config.status. */
26572 configure_input
='Generated from '`
26573 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
26575 if test x
"$ac_file" != x-
; then
26576 configure_input
="$ac_file. $configure_input"
26577 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
26578 $as_echo "$as_me: creating $ac_file" >&6;}
26580 # Neutralize special characters interpreted by sed in replacement strings.
26581 case $configure_input in #(
26582 *\
&* |
*\|
* |
*\\* )
26583 ac_sed_conf_input
=`$as_echo "$configure_input" |
26584 sed 's/[\\\\&|]/\\\\&/g'`;; #(
26585 *) ac_sed_conf_input
=$configure_input;;
26589 *:-:* |
*:-) cat >"$tmp/stdin" \
26590 ||
{ { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
26591 $as_echo "$as_me: error: could not create $ac_file" >&2;}
26592 { (exit 1); exit 1; }; } ;;
26597 ac_dir
=`$as_dirname -- "$ac_file" ||
26598 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26599 X"$ac_file" : 'X\(//\)[^/]' \| \
26600 X"$ac_file" : 'X\(//\)$' \| \
26601 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
26602 $as_echo X"$ac_file" |
26603 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26607 /^X\(\/\/\)[^/].*/{
26622 -*) as_dir
=.
/$as_dir;;
26624 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
26628 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
26629 *) as_qdir
=$as_dir;;
26631 as_dirs
="'$as_qdir' $as_dirs"
26632 as_dir
=`$as_dirname -- "$as_dir" ||
26633 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26634 X"$as_dir" : 'X\(//\)[^/]' \| \
26635 X"$as_dir" : 'X\(//\)$' \| \
26636 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26637 $as_echo X"$as_dir" |
26638 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26642 /^X\(\/\/\)[^/].*/{
26655 test -d "$as_dir" && break
26657 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
26658 } ||
test -d "$as_dir" ||
{ { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
26659 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
26660 { (exit 1); exit 1; }; }; }
26664 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
26666 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
26667 # A ".." for each directory in $ac_dir_suffix.
26668 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
26669 case $ac_top_builddir_sub in
26670 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
26671 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
26674 ac_abs_top_builddir
=$ac_pwd
26675 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
26676 # for backward compatibility:
26677 ac_top_builddir
=$ac_top_build_prefix
26680 .
) # We are building in place.
26682 ac_top_srcdir
=$ac_top_builddir_sub
26683 ac_abs_top_srcdir
=$ac_pwd ;;
26684 [\\/]* | ?
:[\\/]* ) # Absolute name.
26685 ac_srcdir
=$srcdir$ac_dir_suffix;
26686 ac_top_srcdir
=$srcdir
26687 ac_abs_top_srcdir
=$srcdir ;;
26688 *) # Relative name.
26689 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
26690 ac_top_srcdir
=$ac_top_build_prefix$srcdir
26691 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
26693 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
26703 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
26704 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
26708 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
26709 # If the template does not know about datarootdir, expand it.
26710 # FIXME: This hack should be removed a few years after 2.60.
26711 ac_datarootdir_hack
=; ac_datarootdir_seen
=
26724 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
26725 *datarootdir
*) ac_datarootdir_seen
=yes;;
26726 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
26727 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
26728 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
26730 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26731 ac_datarootdir_hack='
26732 s&@datadir@&$datadir&g
26733 s&@docdir@&$docdir&g
26734 s&@infodir@&$infodir&g
26735 s&@localedir@&$localedir&g
26736 s&@mandir@&$mandir&g
26737 s&\\\${datarootdir}&$datarootdir&g' ;;
26741 # Neutralize VPATH when `$srcdir' = `.'.
26742 # Shell code in configure.ac might set extrasub.
26743 # FIXME: do we really want to maintain this feature?
26744 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26745 ac_sed_extra="$ac_vpsub
26748 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
26750 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
26751 s|@configure_input@|
$ac_sed_conf_input|
;t t
26752 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
26753 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
26754 s
&@srcdir@
&$ac_srcdir&;t t
26755 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
26756 s
&@top_srcdir@
&$ac_top_srcdir&;t t
26757 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
26758 s
&@builddir@
&$ac_builddir&;t t
26759 s
&@abs_builddir@
&$ac_abs_builddir&;t t
26760 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
26761 s
&@INSTALL@
&$ac_INSTALL&;t t
26762 $ac_datarootdir_hack
26764 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.
awk" >$tmp/out \
26765 || { { $as_echo "$as_me:$LINENO: error
: could not create
$ac_file" >&5
26766 $as_echo "$as_me: error
: could not create
$ac_file" >&2;}
26767 { (exit 1); exit 1; }; }
26769 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
26770 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
26771 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
26772 { $as_echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
26773 which seems to be undefined. Please make sure it is defined." >&5
26774 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
26775 which seems to be undefined. Please make sure it is defined." >&2;}
26779 -) cat "$tmp/out" && rm -f "$tmp/out";;
26780 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
26782 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
26783 $as_echo "$as_me: error: could not create $ac_file" >&2;}
26784 { (exit 1); exit 1; }; }
26790 if test x"$ac_file" != x-; then
26792 $as_echo "/* $configure_input */" \
26793 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
26794 } >"$tmp/config.h" \
26795 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
26796 $as_echo "$as_me: error: could not create $ac_file" >&2;}
26797 { (exit 1); exit 1; }; }
26798 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
26799 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
26800 $as_echo "$as_me: $ac_file is unchanged" >&6;}
26803 mv "$tmp/config.h" "$ac_file" \
26804 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
26805 $as_echo "$as_me: error: could not create $ac_file" >&2;}
26806 { (exit 1); exit 1; }; }
26809 $as_echo "/* $configure_input */" \
26810 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
26811 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
26812 $as_echo "$as_me: error: could not create -" >&2;}
26813 { (exit 1); exit 1; }; }
26817 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
26818 $as_echo "$as_me: executing $ac_file commands" >&6;}
26823 case $ac_file$ac_mode in
26826 ### Make the necessary directories, if they don't exist.
26827 for dir
in etc lisp
; do
26828 test -d ${dir} || mkdir
${dir}
26831 # Build src/Makefile from ${srcdir}/src/Makefile.c
26832 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
26833 # This must be done after src/config.h is built, since we rely on that file.
26835 echo creating src
/epaths.h
26836 ${MAKE-make} epaths-force
26838 # As of 2000-11-19, newest development versions of GNU cpp preprocess
26839 # `..' to `. .' unless invoked with -traditional
26841 if test "x$GCC" = xyes
&& test "x$CPP_NEED_TRADITIONAL" = xyes
; then
26842 CPPFLAGS
="$CPPFLAGS -traditional"
26845 echo creating lib-src
/Makefile
26847 rm -f junk.c junk1.c junk2.c
26848 sed -e '/start of cpp stuff/q' \
26849 < Makefile.c
> junk1.c
26850 sed -e '1,/start of cpp stuff/d'\
26851 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
26852 < Makefile.c
> junk.c
26853 $CPP -P $cpp_undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
26854 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
26855 cat junk1.c junk2.c
> Makefile.new
26856 rm -f junk.c junk1.c junk2.c
26857 chmod 444 Makefile.new
26858 mv -f Makefile.new Makefile
26861 echo creating src
/Makefile
26863 rm -f junk.c junk1.c junk2.c
26864 sed -e '/start of cpp stuff/q' \
26865 < Makefile.c
> junk1.c
26866 sed -e '1,/start of cpp stuff/d'\
26867 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
26868 < Makefile.c
> junk.c
26869 $CPP -P $cpp_undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
26870 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
26871 cat junk1.c junk2.c
> Makefile.new
26872 rm -f junk.c junk1.c junk2.c
26873 chmod 444 Makefile.new
26874 mv -f Makefile.new Makefile
26877 if test ! -f src
/.gdbinit
&& test -f $srcdir/src
/.gdbinit
; then
26878 echo creating src
/.gdbinit
26879 echo source $srcdir/src
/.gdbinit
> src
/.gdbinit
26888 { (exit 0); exit 0; }
26890 chmod +x
$CONFIG_STATUS
26891 ac_clean_files
=$ac_clean_files_save
26893 test $ac_write_fail = 0 ||
26894 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
26895 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
26896 { (exit 1); exit 1; }; }
26899 # configure is writing to config.log, and then calls config.status.
26900 # config.status does its own redirection, appending to config.log.
26901 # Unfortunately, on DOS this fails, as config.log is still kept open
26902 # by configure, so config.status won't be able to write to it; its
26903 # output is simply discarded. So we exec the FD to /dev/null,
26904 # effectively closing config.log, so it can be properly (re)opened and
26905 # appended to by config.status. When coming back to configure, we
26906 # need to make the FD available again.
26907 if test "$no_create" != yes; then
26909 ac_config_status_args
=
26910 test "$silent" = yes &&
26911 ac_config_status_args
="$ac_config_status_args --quiet"
26913 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
26915 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
26916 # would make configure fail if this is the last instruction.
26917 $ac_cs_success ||
{ (exit 1); exit 1; }
26919 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
26920 { $as_echo "$as_me:$LINENO: WARNING: Unrecognized options: $ac_unrecognized_opts" >&5
26921 $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2;}