2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for emacs 23.0.60.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 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 # Zsh 3.x and 4.x performs 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
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
45 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
53 # Support unset when possible.
54 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
70 # Find who we are. Look in the path if we contain no directory separator.
72 *[\\/]* ) as_myself
=$0 ;;
73 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
77 test -z "$as_dir" && as_dir
=.
78 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x
; then
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var
in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C
; export $as_var
111 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
115 # Required to use basename.
116 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
123 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
130 # Name of the executable.
131 as_me
=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
154 if test "x$CONFIG_SHELL" = x
; then
155 if (eval ":") 2>/dev
/null
; then
161 if test $as_have_required = yes && (eval ":
171 as_func_ret_success () {
174 as_func_ret_failure () {
179 if as_func_success; then
183 echo as_func_success failed.
186 if as_func_failure; then
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev
/null
; then
221 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
222 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
225 test -z "$as_dir" && as_dir
=.
228 for as_base
in sh bash ksh sh5
; do
229 as_candidate_shells
="$as_candidate_shells $as_dir/$as_base"
236 for as_shell
in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev
/null
<<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
248 case `(set -o) 2>/dev/null` in
249 *posix
*) set -o posix
;;
258 CONFIG_SHELL
=$as_shell
260 if { "$as_shell" 2> /dev
/null
<<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
269 case `(set -o) 2>/dev/null` in
270 *posix
*) set -o posix
;;
286 as_func_ret_success
() {
289 as_func_ret_failure
() {
294 if as_func_success
; then
298 echo as_func_success failed.
301 if as_func_failure
; then
303 echo as_func_failure succeeded.
306 if as_func_ret_success
; then
310 echo as_func_ret_success failed.
313 if as_func_ret_failure
; then
315 echo as_func_ret_failure succeeded.
318 if ( set x
; as_func_ret_success y
&& test x
= "$1" ); then
322 echo positional parameters were not saved.
325 test $exitcode = 0) ||
{ (exit 1); exit 1; }
330 test "x$as_lineno_1" != "x$as_lineno_2" &&
331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") ||
{ (exit 1); exit 1; }
342 if test "x$CONFIG_SHELL" != x
; then
343 for as_var
in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
351 if test $as_have_required = no
; then
352 echo This
script requires a shell
more modern than all the
353 echo shells that I found on your system. Please
install a
354 echo modern shell
, or manually run the
script under such a
355 echo shell
if you
do have one.
356 { (exit 1); exit 1; }
366 (eval "as_func_return () {
375 as_func_ret_success () {
378 as_func_ret_failure () {
383 if as_func_success; then
387 echo as_func_success failed.
390 if as_func_failure; then
392 echo as_func_failure succeeded.
395 if as_func_ret_success; then
399 echo as_func_ret_success failed.
402 if as_func_ret_failure; then
404 echo as_func_ret_failure succeeded.
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
411 echo positional parameters were not saved.
414 test \$exitcode = 0") ||
{
415 echo No shell found that supports shell functions.
416 echo Please tell autoconf@gnu.org about your system
,
417 echo including any error possibly output before this
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
453 chmod +x
"$as_me.lineno" ||
454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
459 # original and so on. Autoconf is especially sensitive to this).
461 # Exit status is that of the last command.
466 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
472 ECHO_C
= ECHO_N
= ECHO_T
=
476 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
483 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
490 rm -f conf$$ conf$$.exe conf$$.
file
491 if test -d conf$$.dir
; then
492 rm -f conf$$.dir
/conf$$.
file
498 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
506 elif ln conf$$.
file conf$$
2>/dev
/null
; then
511 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
512 rmdir conf$$.dir
2>/dev
/null
514 if mkdir
-p .
2>/dev
/null
; then
517 test -d .
/-p && rmdir .
/-p
521 if test -x / >/dev
/null
2>&1; then
524 if ls -dL / >/dev
/null
2>&1; then
531 if test -d "$1"; then
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
542 as_executable_p
=$as_test_x
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
552 exec 7<&0 </dev
/null
6>&1
555 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
556 # so uname gets run too.
557 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
562 ac_default_prefix
=/usr
/local
564 ac_config_libobj_dir
=.
570 SHELL
=${CONFIG_SHELL-/bin/sh}
572 # Identity of this package.
574 PACKAGE_TARNAME
='emacs'
575 PACKAGE_VERSION
='23.0.60'
576 PACKAGE_STRING
='emacs 23.0.60'
579 ac_unique_file
="src/lisp.h"
580 # Factoring default headers for most tests.
581 ac_includes_default
="\
583 #ifdef HAVE_SYS_TYPES_H
584 # include <sys/types.h>
586 #ifdef HAVE_SYS_STAT_H
587 # include <sys/stat.h>
593 # ifdef HAVE_STDLIB_H
598 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
603 #ifdef HAVE_STRINGS_H
604 # include <strings.h>
606 #ifdef HAVE_INTTYPES_H
607 # include <inttypes.h>
616 ac_config_libobj_dir
=src
628 program_transform_name
722 x_default_search_path
741 GNUSTEP_SYSTEM_HEADERS
742 GNUSTEP_SYSTEM_LIBRARIES
744 LIB_SRC_EXTRA_INSTALLABLES
747 ac_precious_vars
='build_alias
759 # Initialize some variables set by options.
761 ac_init_version
=false
762 # The variables have the same names as the options, with
763 # dashes changed to underlines.
771 program_transform_name
=s
,x
,x
,
779 # Installation directory options.
780 # These are left unexpanded so users can "make install exec_prefix=/foo"
781 # and all the variables that are supposed to be based on exec_prefix
782 # by default will actually change.
783 # Use braces instead of parens because sh, perl, etc. also accept them.
784 # (The list follows the same order as the GNU Coding Standards.)
785 bindir
='${exec_prefix}/bin'
786 sbindir
='${exec_prefix}/sbin'
787 libexecdir
='${exec_prefix}/libexec'
788 datarootdir
='${prefix}/share'
789 datadir
='${datarootdir}'
790 sysconfdir
='${prefix}/etc'
791 sharedstatedir
='${prefix}/com'
792 localstatedir
='${prefix}/var'
793 includedir
='${prefix}/include'
794 oldincludedir
='/usr/include'
795 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
796 infodir
='${datarootdir}/info'
801 libdir
='${exec_prefix}/lib'
802 localedir
='${datarootdir}/locale'
803 mandir
='${datarootdir}/man'
809 # If the previous option needs an argument, assign it.
810 if test -n "$ac_prev"; then
811 eval $ac_prev=\
$ac_option
817 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
821 # Accept the important Cygnus configure options, so we can diagnose typos.
823 case $ac_dashdash$ac_option in
827 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
829 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
832 -build |
--build |
--buil |
--bui |
--bu)
833 ac_prev
=build_alias
;;
834 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
835 build_alias
=$ac_optarg ;;
837 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
838 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
839 ac_prev
=cache_file
;;
840 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
841 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
842 cache_file
=$ac_optarg ;;
845 cache_file
=config.cache
;;
847 -datadir |
--datadir |
--datadi |
--datad)
849 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
850 datadir
=$ac_optarg ;;
852 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
853 |
--dataroo |
--dataro |
--datar)
854 ac_prev
=datarootdir
;;
855 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
856 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
857 datarootdir
=$ac_optarg ;;
859 -disable-* |
--disable-*)
860 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
861 # Reject names that are not valid shell variable names.
862 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
863 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
864 { (exit 1); exit 1; }; }
865 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
866 eval enable_
$ac_feature=no
;;
868 -docdir |
--docdir |
--docdi |
--doc |
--do)
870 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
873 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
875 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
878 -enable-* |
--enable-*)
879 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
880 # Reject names that are not valid shell variable names.
881 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
882 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
883 { (exit 1); exit 1; }; }
884 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
885 eval enable_
$ac_feature=\
$ac_optarg ;;
887 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
888 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
889 |
--exec |
--exe |
--ex)
890 ac_prev
=exec_prefix
;;
891 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
892 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
893 |
--exec=* |
--exe=* |
--ex=*)
894 exec_prefix
=$ac_optarg ;;
896 -gas |
--gas |
--ga |
--g)
897 # Obsolete; use --with-gas.
900 -help |
--help |
--hel |
--he |
-h)
902 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
903 ac_init_help
=recursive
;;
904 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
905 ac_init_help
=short
;;
907 -host |
--host |
--hos |
--ho)
908 ac_prev
=host_alias
;;
909 -host=* |
--host=* |
--hos=* |
--ho=*)
910 host_alias
=$ac_optarg ;;
912 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
914 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
916 htmldir
=$ac_optarg ;;
918 -includedir |
--includedir |
--includedi |
--included |
--include \
919 |
--includ |
--inclu |
--incl |
--inc)
920 ac_prev
=includedir
;;
921 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
922 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
923 includedir
=$ac_optarg ;;
925 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
927 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
928 infodir
=$ac_optarg ;;
930 -libdir |
--libdir |
--libdi |
--libd)
932 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
935 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
936 |
--libexe |
--libex |
--libe)
937 ac_prev
=libexecdir
;;
938 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
939 |
--libexe=* |
--libex=* |
--libe=*)
940 libexecdir
=$ac_optarg ;;
942 -localedir |
--localedir |
--localedi |
--localed |
--locale)
944 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
945 localedir
=$ac_optarg ;;
947 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
948 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
949 ac_prev
=localstatedir
;;
950 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
951 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
952 localstatedir
=$ac_optarg ;;
954 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
956 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
960 # Obsolete; use --without-fp.
963 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
964 |
--no-cr |
--no-c |
-n)
967 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
968 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
971 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
972 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
973 |
--oldin |
--oldi |
--old |
--ol |
--o)
974 ac_prev
=oldincludedir
;;
975 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
976 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
977 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
978 oldincludedir
=$ac_optarg ;;
980 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
982 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
985 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
986 |
--program-pre |
--program-pr |
--program-p)
987 ac_prev
=program_prefix
;;
988 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
989 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
990 program_prefix
=$ac_optarg ;;
992 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
993 |
--program-suf |
--program-su |
--program-s)
994 ac_prev
=program_suffix
;;
995 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
996 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
997 program_suffix
=$ac_optarg ;;
999 -program-transform-name |
--program-transform-name \
1000 |
--program-transform-nam |
--program-transform-na \
1001 |
--program-transform-n |
--program-transform- \
1002 |
--program-transform |
--program-transfor \
1003 |
--program-transfo |
--program-transf \
1004 |
--program-trans |
--program-tran \
1005 |
--progr-tra |
--program-tr |
--program-t)
1006 ac_prev
=program_transform_name
;;
1007 -program-transform-name=* |
--program-transform-name=* \
1008 |
--program-transform-nam=* |
--program-transform-na=* \
1009 |
--program-transform-n=* |
--program-transform-=* \
1010 |
--program-transform=* |
--program-transfor=* \
1011 |
--program-transfo=* |
--program-transf=* \
1012 |
--program-trans=* |
--program-tran=* \
1013 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1014 program_transform_name
=$ac_optarg ;;
1016 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1018 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1019 pdfdir
=$ac_optarg ;;
1021 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1023 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1026 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1027 |
-silent |
--silent |
--silen |
--sile |
--sil)
1030 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1032 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1034 sbindir
=$ac_optarg ;;
1036 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1037 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1038 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1040 ac_prev
=sharedstatedir
;;
1041 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1042 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1043 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1045 sharedstatedir
=$ac_optarg ;;
1047 -site |
--site |
--sit)
1049 -site=* |
--site=* |
--sit=*)
1052 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1054 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1055 srcdir
=$ac_optarg ;;
1057 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1058 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1059 ac_prev
=sysconfdir
;;
1060 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1061 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1062 sysconfdir
=$ac_optarg ;;
1064 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1065 ac_prev
=target_alias
;;
1066 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1067 target_alias
=$ac_optarg ;;
1069 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1072 -version |
--version |
--versio |
--versi |
--vers |
-V)
1073 ac_init_version
=: ;;
1076 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1077 # Reject names that are not valid shell variable names.
1078 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1079 { echo "$as_me: error: invalid package name: $ac_package" >&2
1080 { (exit 1); exit 1; }; }
1081 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1082 eval with_
$ac_package=\
$ac_optarg ;;
1084 -without-* |
--without-*)
1085 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1086 # Reject names that are not valid shell variable names.
1087 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1088 { echo "$as_me: error: invalid package name: $ac_package" >&2
1089 { (exit 1); exit 1; }; }
1090 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1091 eval with_
$ac_package=no
;;
1094 # Obsolete; use --with-x.
1097 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1098 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1099 ac_prev
=x_includes
;;
1100 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1101 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1102 x_includes
=$ac_optarg ;;
1104 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1105 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1106 ac_prev
=x_libraries
;;
1107 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1108 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1109 x_libraries
=$ac_optarg ;;
1111 -*) { echo "$as_me: error: unrecognized option: $ac_option
1112 Try \`$0 --help' for more information." >&2
1113 { (exit 1); exit 1; }; }
1117 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1118 # Reject names that are not valid shell variable names.
1119 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1120 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1121 { (exit 1); exit 1; }; }
1122 eval $ac_envvar=\
$ac_optarg
1123 export $ac_envvar ;;
1126 # FIXME: should be removed in autoconf 3.0.
1127 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1128 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1129 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1130 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1136 if test -n "$ac_prev"; then
1137 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1138 { echo "$as_me: error: missing argument to $ac_option" >&2
1139 { (exit 1); exit 1; }; }
1142 # Be sure to have absolute directory names.
1143 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1144 datadir sysconfdir sharedstatedir localstatedir includedir \
1145 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1146 libdir localedir mandir
1148 eval ac_val
=\$
$ac_var
1150 [\\/$
]* | ?
:[\\/]* ) continue;;
1151 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1153 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1154 { (exit 1); exit 1; }; }
1157 # There might be people who depend on the old broken behavior: `$host'
1158 # used to hold the argument of --host etc.
1159 # FIXME: To remove some day.
1162 target
=$target_alias
1164 # FIXME: To remove some day.
1165 if test "x$host_alias" != x
; then
1166 if test "x$build_alias" = x
; then
1167 cross_compiling
=maybe
1168 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1169 If a cross compiler is detected then cross compile mode will be used." >&2
1170 elif test "x$build_alias" != "x$host_alias"; then
1176 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1178 test "$silent" = yes && exec 6>/dev
/null
1181 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1182 ac_ls_di
=`ls -di .` &&
1183 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1184 { echo "$as_me: error: Working directory cannot be determined" >&2
1185 { (exit 1); exit 1; }; }
1186 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1187 { echo "$as_me: error: pwd does not report name of working directory" >&2
1188 { (exit 1); exit 1; }; }
1191 # Find the source files, if location was not specified.
1192 if test -z "$srcdir"; then
1193 ac_srcdir_defaulted
=yes
1194 # Try the directory containing this script, then the parent directory.
1195 ac_confdir
=`$as_dirname -- "$0" ||
1196 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1197 X"$0" : 'X\(//\)[^/]' \| \
1198 X"$0" : 'X\(//\)$' \| \
1199 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1201 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1219 if test ! -r "$srcdir/$ac_unique_file"; then
1223 ac_srcdir_defaulted
=no
1225 if test ! -r "$srcdir/$ac_unique_file"; then
1226 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1227 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1228 { (exit 1); exit 1; }; }
1230 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1232 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1233 { (exit 1); exit 1; }; }
1235 # When building in place, set srcdir=.
1236 if test "$ac_abs_confdir" = "$ac_pwd"; then
1239 # Remove unnecessary trailing slashes from srcdir.
1240 # Double slashes in file names in object file debugging info
1241 # mess up M-x gdb in Emacs.
1243 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1245 for ac_var
in $ac_precious_vars; do
1246 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1247 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1248 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1249 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1253 # Report the --help message.
1255 if test "$ac_init_help" = "long"; then
1256 # Omit some internal or obsolete options to make the list less imposing.
1257 # This message is too long to be a string in the A/UX 3.1 sh.
1259 \`configure' configures emacs 23.0.60 to adapt to many kinds of systems.
1261 Usage: $0 [OPTION]... [VAR=VALUE]...
1263 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1264 VAR=VALUE. See below for descriptions of some of the useful variables.
1266 Defaults for the options are specified in brackets.
1269 -h, --help display this help and exit
1270 --help=short display options specific to this package
1271 --help=recursive display the short help of all the included packages
1272 -V, --version display version information and exit
1273 -q, --quiet, --silent do not print \`checking...' messages
1274 --cache-file=FILE cache test results in FILE [disabled]
1275 -C, --config-cache alias for \`--cache-file=config.cache'
1276 -n, --no-create do not create output files
1277 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1279 Installation directories:
1280 --prefix=PREFIX install architecture-independent files in PREFIX
1281 [$ac_default_prefix]
1282 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1285 By default, \`make install' will install all the files in
1286 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1287 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1288 for instance \`--prefix=\$HOME'.
1290 For better control, use the options below.
1292 Fine tuning of the installation directories:
1293 --bindir=DIR user executables [EPREFIX/bin]
1294 --sbindir=DIR system admin executables [EPREFIX/sbin]
1295 --libexecdir=DIR program executables [EPREFIX/libexec]
1296 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1297 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1298 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1299 --libdir=DIR object code libraries [EPREFIX/lib]
1300 --includedir=DIR C header files [PREFIX/include]
1301 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1302 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1303 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1304 --infodir=DIR info documentation [DATAROOTDIR/info]
1305 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1306 --mandir=DIR man documentation [DATAROOTDIR/man]
1307 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1308 --htmldir=DIR html documentation [DOCDIR]
1309 --dvidir=DIR dvi documentation [DOCDIR]
1310 --pdfdir=DIR pdf documentation [DOCDIR]
1311 --psdir=DIR ps documentation [DOCDIR]
1317 --program-prefix=PREFIX prepend PREFIX to installed program names
1318 --program-suffix=SUFFIX append SUFFIX to installed program names
1319 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1322 --x-includes=DIR X include files are
in DIR
1323 --x-libraries=DIR X library files are
in DIR
1326 --build=BUILD configure
for building on BUILD
[guessed
]
1327 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1331 if test -n "$ac_init_help"; then
1332 case $ac_init_help in
1333 short | recursive
) echo "Configuration of emacs 23.0.60:";;
1338 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1339 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1340 --enable-cocoa-experimental-ctrl-g
1341 enable experimental improved ctrl-g recognition
1342 --disable-ns-self-contained
1343 disable self contained build under NeXTstep
1344 --enable-asserts compile code with asserts enabled
1345 --enable-maintainer-mode
1346 enable make rules and dependencies not useful
(and
1347 sometimes confusing
) to the casual installer
1348 --enable-locallisppath=PATH
1349 directories Emacs should search
for lisp files
1350 specific to this site
1351 --disable-largefile omit support
for large files
1354 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1355 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1356 --without-pop don
't support POP mail retrieval with movemail
1357 --with-kerberos support Kerberos-authenticated POP
1358 --with-kerberos5 support Kerberos version 5 authenticated POP
1359 --with-hesiod support Hesiod to get the POP server host
1360 --without-sound don't compile with sound support
1361 --without-sync-input process async input synchronously
1362 --with-x-toolkit=KIT use an X toolkit
(KIT one of
: yes, lucid
, athena
,
1364 --without-xpm don
't compile with XPM image support
1365 --without-jpeg don't compile with JPEG image support
1366 --without-tiff don
't compile with TIFF image support
1367 --without-gif don't compile with GIF image support
1368 --without-png don
't compile with PNG image support
1369 --without-rsvg don't compile with SVG image support
1370 --without-freetype don
't use Freetype for local font support
1371 --without-xft don't use XFT
for anti aliased fonts
1372 --without-libotf don
't use libotf for OpenType font support
1373 --without-m17n-flt don't use m17n-flt
for text shaping
1374 --without-toolkit-scroll-bars
1375 don
't use Motif or Xaw3d scroll bars
1376 --without-xaw3d don't use Xaw3d
1377 --without-xim don
't use X11 XIM
1378 --with-ns use nextstep (Cocoa or GNUstep) windowing system
1379 --without-gpm don't use
-lgpm for mouse support on a GNU
/Linux
1381 --without-dbus don
't compile with D-Bus support
1382 --without-makeinfo don't require makeinfo
for building manuals
1384 --with-pkg-config-prog=PATH
1385 path to pkg-config
for finding GTK and librsvg
1386 --with-gnustep-conf=PATH
1387 path to GNUstep.conf
; default
$GNUSTEP_CONFIG_FILE,
1388 or
/etc
/GNUstep
/GNUstep.conf
1389 --with-x use the X Window System
1391 Some influential environment variables
:
1392 CC C compiler
command
1393 CFLAGS C compiler flags
1394 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1395 nonstandard directory
<lib dir
>
1396 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1397 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1398 you have headers
in a nonstandard directory
<include dir
>
1400 XMKMF Path to xmkmf
, Makefile generator
for X Window System
1402 Use these variables to override the choices made by
`configure' or to help
1403 it to find libraries and programs with nonstandard names/locations.
1409 if test "$ac_init_help" = "recursive"; then
1410 # If there are subdirs, report their specific --help.
1411 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1412 test -d "$ac_dir" || continue
1416 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1418 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
1419 # A ".." for each directory in $ac_dir_suffix.
1420 ac_top_builddir_sub=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,/..,g;s,/,,'`
1421 case $ac_top_builddir_sub in
1422 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1423 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1426 ac_abs_top_builddir=$ac_pwd
1427 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1428 # for backward compatibility:
1429 ac_top_builddir=$ac_top_build_prefix
1432 .) # We are building in place.
1434 ac_top_srcdir=$ac_top_builddir_sub
1435 ac_abs_top_srcdir=$ac_pwd ;;
1436 [\\/]* | ?:[\\/]* ) # Absolute name.
1437 ac_srcdir=$srcdir$ac_dir_suffix;
1438 ac_top_srcdir=$srcdir
1439 ac_abs_top_srcdir=$srcdir ;;
1441 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1442 ac_top_srcdir=$ac_top_build_prefix$srcdir
1443 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1445 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1447 cd "$ac_dir" || { ac_status=$?; continue; }
1448 # Check for guested configure.
1449 if test -f "$ac_srcdir/configure.gnu"; then
1451 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1452 elif test -f "$ac_srcdir/configure"; then
1454 $SHELL "$ac_srcdir/configure" --help=recursive
1456 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1458 cd "$ac_pwd" || { ac_status=$?; break; }
1462 test -n "$ac_init_help" && exit $ac_status
1463 if $ac_init_version; then
1465 emacs configure 23.0.60
1466 generated by GNU Autoconf 2.61
1468 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1469 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1470 This configure script is free software; the Free Software Foundation
1471 gives unlimited permission to copy, distribute and modify it.
1475 cat >config.log <<_ACEOF
1476 This file contains any messages produced by compilers while
1477 running configure, to aid debugging if configure makes a mistake.
1479 It was created by emacs $as_me 23.0.60, which was
1480 generated by GNU Autoconf 2.61. Invocation command line was
1492 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1493 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1494 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1495 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1496 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1498 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1499 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1501 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1502 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1503 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1504 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
1505 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1506 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1507 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1515 test -z "$as_dir" && as_dir=.
1516 echo "PATH: $as_dir"
1532 # Keep a trace of the command line.
1533 # Strip out --no-create and --no-recursion so they do not pile up.
1534 # Strip out --silent because we don't want to record it for future runs.
1535 # Also quote any args containing shell meta-characters.
1536 # Make two passes to allow for proper duplicate-argument suppression.
1540 ac_must_keep_next=false
1546 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1547 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1548 | -silent | --silent | --silen | --sile | --sil)
1551 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1554 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1556 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1557 if test $ac_must_keep_next = true; then
1558 ac_must_keep_next=false # Got value, back to normal.
1561 *=* | --config-cache | -C | -disable-* | --disable-* \
1562 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1563 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1564 | -with-* | --with-* | -without-* | --without-* | --x)
1565 case "$ac_configure_args0 " in
1566 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1569 -* ) ac_must_keep_next=true ;;
1572 ac_configure_args="$ac_configure_args '$ac_arg'"
1577 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1578 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1580 # When interrupted or exit'd, cleanup temporary files, and complete
1581 # config.log. We remove comments because anyway the quotes in there
1582 # would cause problems or look ugly.
1583 # WARNING: Use '\'' to represent an apostrophe within the trap.
1584 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1585 trap 'exit_status=$?
1586 # Save into config.log some information that might help in debugging.
1591 ## ---------------- ##
1592 ## Cache variables. ##
1593 ## ---------------- ##
1596 # The following way of writing the cache mishandles newlines in values,
1598 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
1599 eval ac_val=\$$ac_var
1603 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1604 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1607 _ | IFS | as_nl) ;; #(
1608 *) $as_unset $ac_var ;;
1613 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
1614 *${as_nl}ac_space=\ *)
1616 "s/'\''/'\''\\\\'\'''\''/g;
1617 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1620 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1628 ## ----------------- ##
1629 ## Output variables. ##
1630 ## ----------------- ##
1633 for ac_var in $ac_subst_vars
1635 eval ac_val=\$$ac_var
1637 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1639 echo "$ac_var='\''$ac_val'\''"
1643 if test -n "$ac_subst_files"; then
1645 ## ------------------- ##
1646 ## File substitutions. ##
1647 ## ------------------- ##
1650 for ac_var in $ac_subst_files
1652 eval ac_val=\$$ac_var
1654 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1656 echo "$ac_var='\''$ac_val'\''"
1661 if test -s confdefs.h; then
1671 test "$ac_signal" != 0 &&
1672 echo "$as_me: caught signal $ac_signal"
1673 echo "$as_me: exit $exit_status"
1675 rm -f core *.core core.conftest.* &&
1676 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1679 for ac_signal in 1 2 13 15; do
1680 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1684 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1685 rm -f -r conftest* confdefs.h
1687 # Predefined preprocessor variables.
1689 cat >>confdefs.h <<_ACEOF
1690 #define PACKAGE_NAME "$PACKAGE_NAME"
1694 cat >>confdefs.h <<_ACEOF
1695 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1699 cat >>confdefs.h <<_ACEOF
1700 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1704 cat >>confdefs.h <<_ACEOF
1705 #define PACKAGE_STRING "$PACKAGE_STRING"
1709 cat >>confdefs.h <<_ACEOF
1710 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1714 # Let the site file select an alternate cache file if it wants to.
1715 # Prefer explicitly selected file to automatically selected ones.
1716 if test -n "$CONFIG_SITE"; then
1717 set x "$CONFIG_SITE"
1718 elif test "x$prefix" != xNONE; then
1719 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1721 set x "$ac_default_prefix/share/config.site" \
1722 "$ac_default_prefix/etc/config.site"
1727 if test -r "$ac_site_file"; then
1728 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1729 echo "$as_me: loading site script $ac_site_file" >&6;}
1730 sed 's/^/| /' "$ac_site_file" >&5
1735 if test -r "$cache_file"; then
1736 # Some versions of bash will fail to source /dev/null (special
1737 # files actually), so we avoid doing that.
1738 if test -f "$cache_file"; then
1739 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1740 echo "$as_me: loading cache $cache_file" >&6;}
1742 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1743 *) . "./$cache_file";;
1747 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1748 echo "$as_me: creating cache $cache_file" >&6;}
1752 ac_header_list="$ac_header_list sys/time.h"
1753 ac_header_list="$ac_header_list unistd.h"
1754 ac_func_list="$ac_func_list alarm"
1755 # Check that the precious variables saved in the cache have kept the same
1757 ac_cache_corrupted=false
1758 for ac_var in $ac_precious_vars; do
1759 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1760 eval ac_new_set=\$ac_env_${ac_var}_set
1761 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1762 eval ac_new_val=\$ac_env_${ac_var}_value
1763 case $ac_old_set,$ac_new_set in
1765 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
1766 echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1767 ac_cache_corrupted=: ;;
1769 { echo "$as_me:$LINENO: error: \`$ac_var' was not
set in the previous run
" >&5
1770 echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
1771 ac_cache_corrupted=: ;;
1774 if test "x$ac_old_val" != "x$ac_new_val"; then
1775 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1776 echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
1777 { echo "$as_me:$LINENO: former value
: $ac_old_val" >&5
1778 echo "$as_me: former value
: $ac_old_val" >&2;}
1779 { echo "$as_me:$LINENO: current value
: $ac_new_val" >&5
1780 echo "$as_me: current value
: $ac_new_val" >&2;}
1781 ac_cache_corrupted=:
1784 # Pass precious variables to config.status.
1785 if test "$ac_new_set" = set; then
1787 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
1788 *) ac_arg=$ac_var=$ac_new_val ;;
1790 case " $ac_configure_args " in
1791 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1792 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1796 if $ac_cache_corrupted; then
1797 { echo "$as_me:$LINENO: error
: changes
in the environment can compromise the build
" >&5
1798 echo "$as_me: error
: changes
in the environment can compromise the build
" >&2;}
1799 { { echo "$as_me:$LINENO: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&5
1800 echo "$as_me: error: run \`make distclean' and
/or \
`rm $cache_file' and start over" >&2;}
1801 { (exit 1); exit 1; }; }
1829 ac_cpp='$CPP $CPPFLAGS'
1830 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1831 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1832 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1835 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
1839 test "$program_prefix" != NONE &&
1840 program_transform_name="s&^&$program_prefix&;$program_transform_name"
1841 # Use a double $ so make ignores it.
1842 test "$program_suffix" != NONE &&
1843 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1844 # Double any \ or $. echo might interpret backslashes.
1845 # By default was `s
,x
,x
', remove it if useless.
1846 cat <<\_ACEOF >conftest.sed
1847 s/[\\$]/&&/g;s/;s,x,x,$//
1849 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1853 lispdir='${datadir}/emacs
/${version}/lisp
'
1854 locallisppath='${datadir}/emacs
/${version}/site-lisp
:'\
1855 '${datadir}/emacs
/site-lisp
'
1856 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim
'
1857 etcdir='${datadir}/emacs
/${version}/etc
'
1858 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
1859 docdir='${datadir}/emacs
/${version}/etc
'
1860 gamedir='${localstatedir}/games
/emacs
'
1867 # Check whether --with-pop was given.
1868 if test "${with_pop+set}" = set; then
1874 if test "$with_pop" = yes; then
1875 cat >>confdefs.h <<\_ACEOF
1876 #define MAIL_USE_POP 1
1883 # Check whether --with-kerberos was given.
1884 if test "${with_kerberos+set}" = set; then
1885 withval=$with_kerberos;
1890 if test "$with_kerberos" != no; then
1891 cat >>confdefs.h <<\_ACEOF
1899 # Check whether --with-kerberos5 was given.
1900 if test "${with_kerberos5+set}" = set; then
1901 withval=$with_kerberos5;
1906 if test "${with_kerberos5}" != no; then
1907 if test "${with_kerberos}" = no; then
1909 cat >>confdefs.h <<\_ACEOF
1915 cat >>confdefs.h <<\_ACEOF
1922 # Check whether --with-hesiod was given.
1923 if test "${with_hesiod+set}" = set; then
1924 withval=$with_hesiod;
1929 if test "$with_hesiod" != no; then
1931 cat >>confdefs.h <<\_ACEOF
1938 # Check whether --with-sound was given.
1939 if test "${with_sound+set}" = set; then
1940 withval=$with_sound;
1947 # Check whether --with-sync-input was given.
1948 if test "${with_sync_input+set}" = set; then
1949 withval=$with_sync_input;
1954 if test "$with_sync_input" = yes; then
1956 cat >>confdefs.h <<\_ACEOF
1957 #define SYNC_INPUT 1
1963 # Check whether --with-x-toolkit was given.
1964 if test "${with_x_toolkit+set}" = set; then
1965 withval=$with_x_toolkit; case "${withval}" in
1966 y | ye | yes ) val=gtk ;;
1968 l | lu | luc | luci | lucid ) val=lucid ;;
1969 a | at | ath | athe | athen | athena ) val=athena ;;
1970 m | mo | mot | moti | motif ) val=motif ;;
1971 g | gt | gtk ) val=gtk ;;
1973 { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid
;
1974 this option
's value should be \`yes', \
`no', \`lucid
', \`athena', \
`motif' or \`gtk
'.
1975 \`yes' and \
`gtk' are synonyms. \`athena
' and \`lucid' are synonyms.
" >&5
1976 echo "$as_me: error
: \
`--with-x-toolkit=$withval' is invalid;
1977 this option's value should be \`yes', \`no', \
`lucid', \`athena
', \`motif' or \
`gtk'.
1978 \`yes' and \`gtk' are synonyms. \
`athena' and \`lucid
' are synonyms." >&2;}
1979 { (exit 1); exit 1; }; }
1988 # Check whether --with-xpm was given.
1989 if test "${with_xpm+set}" = set; then
1996 # Check whether --with-jpeg was given.
1997 if test "${with_jpeg+set}" = set; then
2004 # Check whether --with-tiff was given.
2005 if test "${with_tiff+set}" = set; then
2012 # Check whether --with-gif was given.
2013 if test "${with_gif+set}" = set; then
2020 # Check whether --with-png was given.
2021 if test "${with_png+set}" = set; then
2028 # Check whether --with-rsvg was given.
2029 if test "${with_rsvg+set}" = set; then
2037 # Check whether --with-freetype was given.
2038 if test "${with_freetype+set}" = set; then
2039 withval=$with_freetype;
2045 # Check whether --with-xft was given.
2046 if test "${with_xft+set}" = set; then
2053 # Check whether --with-libotf was given.
2054 if test "${with_libotf+set}" = set; then
2055 withval=$with_libotf;
2061 # Check whether --with-m17n-flt was given.
2062 if test "${with_m17n_flt+set}" = set; then
2063 withval=$with_m17n_flt;
2070 # Check whether --with-toolkit-scroll-bars was given.
2071 if test "${with_toolkit_scroll_bars+set}" = set; then
2072 withval=$with_toolkit_scroll_bars;
2074 with_toolkit_scroll_bars=yes
2078 # Check whether --with-xaw3d was given.
2079 if test "${with_xaw3d+set}" = set; then
2080 withval=$with_xaw3d;
2086 # Check whether --with-xim was given.
2087 if test "${with_xim+set}" = set; then
2094 # Check whether --with-ns was given.
2095 if test "${with_ns+set}" = set; then
2103 # Check whether --with-gpm was given.
2104 if test "${with_gpm+set}" = set; then
2111 # Check whether --with-dbus was given.
2112 if test "${with_dbus+set}" = set; then
2119 ## For the times when you want to build Emacs but don't have
2120 ## a suitable makeinfo, and can live without the manuals.
2122 # Check whether --with-makeinfo was given.
2123 if test "${with_makeinfo+set}" = set; then
2124 withval
=$with_makeinfo;
2131 # Check whether --with-gtk was given.
2132 if test "${with_gtk+set}" = set; then
2133 withval
=$with_gtk; { { echo "$as_me:$LINENO: error: --with-gtk has been removed. Use --with-x-toolkit to
2134 specify a toolkit." >&5
2135 echo "$as_me: error: --with-gtk has been removed. Use --with-x-toolkit to
2136 specify a toolkit." >&2;}
2137 { (exit 1); exit 1; }; }
2142 # Check whether --with-gcc was given.
2143 if test "${with_gcc+set}" = set; then
2144 withval
=$with_gcc; { { echo "$as_me:$LINENO: error: --with-gcc has been removed. Set the \`CC' environment
2145 variable to specify a compiler." >&5
2146 echo "$as_me: error: --with-gcc has been removed. Set the \`CC' environment
2147 variable to specify a compiler." >&2;}
2148 { (exit 1); exit 1; }; }
2153 # Check whether --with-pkg-config-prog was given.
2154 if test "${with_pkg_config_prog+set}" = set; then
2155 withval
=$with_pkg_config_prog;
2158 if test "X${with_pkg_config_prog}" != X
; then
2159 if test "${with_pkg_config_prog}" != yes; then
2160 PKG_CONFIG
="${with_pkg_config_prog}"
2165 # Check whether --with-gnustep-conf was given.
2166 if test "${with_gnustep_conf+set}" = set; then
2167 withval
=$with_gnustep_conf;
2170 test "X${with_gnustep_conf}" != X
&& test "${with_gnustep_conf}" != yes && \
2171 GNUSTEP_CONFIG_FILE
="${with_gnustep_conf}"
2172 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
2173 GNUSTEP_CONFIG_FILE
=/etc
/GNUstep
/GNUstep.conf
2175 # Check whether --enable-cocoa-experimental-ctrl-g was given.
2176 if test "${enable_cocoa_experimental_ctrl_g+set}" = set; then
2177 enableval
=$enable_cocoa_experimental_ctrl_g; EN_COCOA_EXPERIMENTAL_CTRL_G
=$enableval
2179 EN_COCOA_EXPERIMENTAL_CTRL_G
=no
2183 # Check whether --enable-ns-self-contained was given.
2184 if test "${enable_ns_self_contained+set}" = set; then
2185 enableval
=$enable_ns_self_contained; EN_NS_SELF_CONTAINED
=$enableval
2187 EN_NS_SELF_CONTAINED
=yes
2191 # Check whether --enable-asserts was given.
2192 if test "${enable_asserts+set}" = set; then
2193 enableval
=$enable_asserts; USE_XASSERTS
=$enableval
2199 # Check whether --enable-maintainer-mode was given.
2200 if test "${enable_maintainer_mode+set}" = set; then
2201 enableval
=$enable_maintainer_mode; USE_MAINTAINER_MODE
=$enableval
2203 USE_MAINTAINER_MODE
=no
2206 if test $USE_MAINTAINER_MODE = yes; then
2213 # Check whether --enable-locallisppath was given.
2214 if test "${enable_locallisppath+set}" = set; then
2215 enableval
=$enable_locallisppath; if test "${enableval}" = "no"; then
2217 elif test "${enableval}" != "yes"; then
2218 locallisppath
=${enableval}
2223 #### Make srcdir absolute, if it isn't already. It's important to
2224 #### avoid running the path through pwd unnecessarily, since pwd can
2225 #### give you automounter prefixes, which can go away. We do all this
2226 #### so Emacs can find its files when run uninstalled.
2227 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
2232 ## We may be able to use the $PWD environment variable to make this
2233 ## absolute. But sometimes PWD is inaccurate.
2234 ## Note: we used to use ${PWD} at the end instead of `pwd`,
2235 ## but that tested only for a well-formed and valid PWD,
2236 ## it did not object when PWD was well-formed and valid but just wrong.
2237 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
2241 srcdir
="`(cd ${srcdir}; pwd)`"
2244 * ) srcdir
="`(cd ${srcdir}; pwd)`" ;;
2247 #### Check if the source directory already has a configured system in it.
2248 if test `pwd` != `(cd ${srcdir} && pwd)` \
2249 && test -f "${srcdir}/src/config.h" ; then
2250 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
2251 as a build directory right now; it has been configured in its own
2252 right. To configure in another directory as well, you MUST
2253 use GNU make. If you do not have GNU make, then you must
2254 now do \`make distclean' in ${srcdir},
2255 and then run $0 again." >&5
2256 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
2257 as a build directory right now; it has been configured in its own
2258 right. To configure in another directory as well, you MUST
2259 use GNU make. If you do not have GNU make, then you must
2260 now do \`make distclean' in ${srcdir},
2261 and then run $0 again." >&2;}
2264 #### Given the configuration name, set machfile and opsysfile to the
2265 #### names of the m/*.h and s/*.h files we should use.
2267 ### Canonicalize the configuration name.
2270 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2271 if test -f "$ac_dir/install-sh"; then
2273 ac_install_sh
="$ac_aux_dir/install-sh -c"
2275 elif test -f "$ac_dir/install.sh"; then
2277 ac_install_sh
="$ac_aux_dir/install.sh -c"
2279 elif test -f "$ac_dir/shtool"; then
2281 ac_install_sh
="$ac_aux_dir/shtool install -c"
2285 if test -z "$ac_aux_dir"; then
2286 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2287 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2288 { (exit 1); exit 1; }; }
2291 # These three variables are undocumented and unsupported,
2292 # and are intended to be withdrawn in a future Autoconf release.
2293 # They can cause serious problems if a builder's source tree is in a directory
2294 # whose full name contains unusual characters.
2295 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2296 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2297 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2300 # Make sure we can run config.sub.
2301 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2302 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2303 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2304 { (exit 1); exit 1; }; }
2306 { echo "$as_me:$LINENO: checking build system type" >&5
2307 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2308 if test "${ac_cv_build+set}" = set; then
2309 echo $ECHO_N "(cached) $ECHO_C" >&6
2311 ac_build_alias
=$build_alias
2312 test "x$ac_build_alias" = x
&&
2313 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2314 test "x$ac_build_alias" = x
&&
2315 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2316 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2317 { (exit 1); exit 1; }; }
2318 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2319 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2320 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2321 { (exit 1); exit 1; }; }
2324 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2325 echo "${ECHO_T}$ac_cv_build" >&6; }
2326 case $ac_cv_build in
2328 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2329 echo "$as_me: error: invalid value of canonical build" >&2;}
2330 { (exit 1); exit 1; }; };;
2333 ac_save_IFS
=$IFS; IFS
='-'
2339 # Remember, the first character of IFS is used to create $*,
2340 # except with old shells:
2343 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2346 { echo "$as_me:$LINENO: checking host system type" >&5
2347 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2348 if test "${ac_cv_host+set}" = set; then
2349 echo $ECHO_N "(cached) $ECHO_C" >&6
2351 if test "x$host_alias" = x
; then
2352 ac_cv_host
=$ac_cv_build
2354 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2355 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2356 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2357 { (exit 1); exit 1; }; }
2361 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2362 echo "${ECHO_T}$ac_cv_host" >&6; }
2365 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2366 echo "$as_me: error: invalid value of canonical host" >&2;}
2367 { (exit 1); exit 1; }; };;
2370 ac_save_IFS
=$IFS; IFS
='-'
2376 # Remember, the first character of IFS is used to create $*,
2377 # except with old shells:
2380 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2384 configuration
=${host_alias-${build_alias-$host}}
2388 ### If you add support for a new configuration, add code to this
2389 ### switch statement to recognize your configuration name and select
2390 ### the appropriate operating system and machine description files.
2392 ### You would hope that you could choose an m/*.h file pretty much
2393 ### based on the machine portion of the configuration name, and an s-
2394 ### file based on the operating system portion. However, it turns out
2395 ### that each m/*.h file is pretty manufacturer-specific - for
2396 ### example mips.h is MIPS
2397 ### So we basically have to have a special case for each
2398 ### configuration name.
2400 ### As far as handling version numbers on operating systems is
2401 ### concerned, make sure things will fail in a fixable way. If
2402 ### /etc/MACHINES doesn't say anything about version numbers, be
2403 ### prepared to handle anything reasonably. If version numbers
2404 ### matter, be sure /etc/MACHINES says something about it.
2406 ### Eric Raymond says we should accept strings like "sysvr4" to mean
2407 ### "System V Release 4"; he writes, "The old convention encouraged
2408 ### confusion between `system' and `release' levels'."
2410 machine
='' opsys
='' unported
=no
2411 case "${canonical}" in
2416 case "${canonical}" in
2417 alpha
*-*-freebsd*) machine
=alpha
;;
2418 arm
*-*-freebsd*) machine
=arm
;;
2419 ia64-
*-freebsd*) machine
=ia64
;;
2420 sparc-
*-freebsd*) machine
=sparc
;;
2421 sparc64-
*-freebsd*) machine
=sparc
;;
2422 powerpc-
*-freebsd*) machine
=macppc
;;
2423 i
[3456]86-*-freebsd*) machine
=intel386
;;
2424 amd64-
*-freebsd*|x86_64-
*-freebsd*) machine
=amdx86-64
;;
2428 ## FreeBSD kernel + glibc based userland
2431 case "${canonical}" in
2432 alpha
*-*-kfreebsd*) machine
=alpha
;;
2433 ia64-
*-kfreebsd*) machine
=ia64
;;
2434 sparc-
*-kfreebsd*) machine
=sparc
;;
2435 sparc64-
*-kfreebsd*) machine
=sparc
;;
2436 powerpc-
*-kfreebsd*) machine
=macppc
;;
2437 i
[3456]86-*-kfreebsd*) machine
=intel386
;;
2438 amd64-
*-kfreebsd*|x86_64-
*-kfreebsd*) machine
=amdx86-64
;;
2445 if test -f /usr
/lib
/crti.o
; then
2447 cat >>confdefs.h
<<\_ACEOF
2453 case "${canonical}" in
2454 alpha
*-*-netbsd*) machine
=alpha
;;
2455 i
[3456]86-*-netbsd*) machine
=intel386
;;
2456 powerpc-
*-netbsd*) machine
=macppc
;;
2457 sparc
*-*-netbsd*) machine
=sparc
;;
2458 vax-
*-netbsd*) machine
=vax
;;
2459 arm-
*-netbsd*) machine
=arm
;;
2460 x86_64-
*-netbsd*) machine
=amdx86-64
;;
2461 hppa-
*-netbsd*) machine
=hp800
;;
2462 m68k-
*-netbsd*) machine
=m68k
;;
2469 case "${canonical}" in
2470 alpha
*-*-openbsd*) machine
=alpha
;;
2471 arm-
*-openbsd*) machine
=arm
;;
2472 i386-
*-openbsd*) machine
=intel386
;;
2473 powerpc-
*-openbsd*) machine
=macppc
;;
2474 sparc
*-*-openbsd*) machine
=sparc
;;
2475 vax-
*-openbsd*) machine
=vax
;;
2476 x86_64-
*-openbsd*) machine
=amdx86-64
;;
2483 case "${canonical}" in
2484 i
[3456]86-*-lynxos*) machine
=intel386
;;
2485 powerpc-
*-lynxos*) machine
=powerpc
;;
2489 alpha
*-*-linux-gnu* )
2490 machine
=alpha opsys
=gnu-linux
2494 machine
=arm opsys
=gnu-linux
2497 ## Apple Darwin / Mac OS X
2499 case "${canonical}" in
2500 i
[3456]86-* ) machine
=intel386
;;
2501 powerpc-
* ) machine
=macppc
;;
2505 # Define CPP as follows to make autoconf work correctly.
2506 CPP
="${CC-cc} -E -no-cpp-precomp"
2507 # Use fink packages if available.
2508 if test -d /sw
/include
&& test -d /sw
/lib
; then
2509 GCC_TEST_OPTIONS
="-I/sw/include -L/sw/lib"
2510 CPP
="${CPP} ${GCC_TEST_OPTIONS}"
2511 NON_GCC_TEST_OPTIONS
=${GCC_TEST_OPTIONS}
2515 ## HP 9000 series 700 and 800, running HP/UX
2516 hppa
*-hp-hpux10.2
* )
2517 machine
=hp800 opsys
=hpux10-20
2519 hppa
*-hp-hpux1[1-9]* )
2520 machine
=hp800 opsys
=hpux11
2521 CFLAGS
="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
2524 hppa
*-*-linux-gnu* )
2525 machine
=hp800 opsys
=gnu-linux
2530 machine
=ibms390 opsys
=gnu-linux
2532 s390x-
*-linux-gnu* )
2533 machine
=ibms390x opsys
=gnu-linux
2535 rs6000-ibm-aix4.2
* | powerpc-ibm-aix4.2
* )
2536 machine
=ibmrs6000 opsys
=aix4-2
2538 rs6000-ibm-aix4.3
* | powerpc-ibm-aix4.3
* )
2539 machine
=ibmrs6000 opsys
=aix4-2
2541 rs6000-ibm-aix5
* | powerpc-ibm-aix5
* )
2542 machine
=ibmrs6000 opsys
=aix4-2
2544 rs6000-ibm-aix5
* | powerpc-ibm-aix6
* )
2545 machine
=ibmrs6000 opsys
=aix4-2
2548 ## Macintosh PowerPC
2549 powerpc
*-*-linux-gnu* )
2550 machine
=macppc opsys
=gnu-linux
2553 ## Silicon Graphics machines
2556 machine
=iris4d opsys
=irix6-5
2557 # Without defining _LANGUAGE_C, things get masked out in the headers
2558 # so that, for instance, grepping for `free' in stdlib.h fails and
2559 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2560 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2561 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
2565 sparc-
*-linux-gnu* | sparc64-
*-linux-gnu* )
2566 machine
=sparc opsys
=gnu-linux
2570 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* \
2571 | x86_64-
*-solaris2* | x86_64-
*-sunos5* \
2572 | powerpc
*-*-solaris2* | rs6000-
*-solaris2*)
2573 case "${canonical}" in
2574 i
[3456]86-*-* ) machine
=intel386
;;
2575 amd64-
*-*|x86_64-
*-*) machine
=amdx86-64
;;
2576 powerpc
* | rs6000
* ) machine
=ibmrs6000
;;
2577 sparc
* ) machine
=sparc
;;
2580 case "${canonical}" in
2581 *-sunos5.3
* |
*-solaris2.3
* )
2583 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2585 *-sunos5.4
* |
*-solaris2.4
* )
2587 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2590 *-sunos5.5
* |
*-solaris2.5
* )
2592 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2595 *-sunos5.6
* |
*-solaris2.6
* )
2597 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2600 *-sunos5.
[7-9]* |
*-solaris2.
[7-9]* )
2602 emacs_check_sunpro_c
=yes
2603 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2605 *-sunos5* |
*-solaris* )
2607 emacs_check_sunpro_c
=yes
2608 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2611 ## Watch out for a compiler that we know will not work.
2612 case "${canonical}" in
2613 *-solaris* |
*-sunos5* )
2614 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
2615 ## /usr/ucb/cc doesn't work;
2616 ## we should find some other compiler that does work.
2627 case "${canonical}" in
2628 *-vms* ) opsys
=vms
;;
2635 machine
=ia64 opsys
=gnu-linux
2638 ## Intel 386 machines where we don't care about the manufacturer
2641 case "${canonical}" in
2642 *-cygwin ) opsys
=cygwin
;;
2643 *-darwin* ) opsys
=darwin
2644 CPP
="${CC-cc} -E -no-cpp-precomp"
2646 *-linux-gnu* ) opsys
=gnu-linux
;;
2647 *-sysv4.2uw
* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2648 *-sysv5uw* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2649 *-sysv5OpenUNIX* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2650 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2654 ## m68k Linux-based GNU system
2656 machine
=m68k opsys
=gnu-linux
2659 ## Mips Linux-based GNU system
2660 mips-
*-linux-gnu* | mipsel-
*-linux-gnu* )
2661 machine
=mips opsys
=gnu-linux
2664 ## AMD x86-64 Linux-based GNU system
2665 x86_64-
*-linux-gnu* )
2666 machine
=amdx86-64 opsys
=gnu-linux
2669 ## Tensilica Xtensa Linux-based GNU system
2670 xtensa
*-*-linux-gnu* )
2671 machine
=xtensa opsys
=gnu-linux
2674 ## SuperH Linux-based GNU system
2675 sh
[34]*-*-linux-gnu* )
2676 machine
=sh3 opsys
=gnu-linux
2684 ### If the code above didn't choose an operating system, just choose
2685 ### an operating system based on the configuration name. You really
2686 ### only want to use this when you have no idea what the right
2687 ### operating system is; if you know what operating systems a machine
2688 ### runs, it's cleaner to make it explicit in the case statement
2690 if test x
"${opsys}" = x
; then
2691 case "${canonical}" in
2692 *-gnu* ) opsys
=gnu
;;
2693 *-sysv4.2uw
* ) opsys
=unixware
;;
2694 *-sysv5uw* ) opsys
=unixware
;;
2695 *-sysv5OpenUNIX* ) opsys
=unixware
;;
2696 *-sysv4.1
* |
*-sysvr4.1
* )
2697 NON_GNU_CPP
=/usr
/lib
/cpp
2699 *-sysv4.
[2-9]* |
*-sysvr4.
[2-9]* )
2700 if [ x
$NON_GNU_CPP = x
]; then
2701 if [ -f /usr
/ccs
/lib
/cpp
]; then
2702 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2704 NON_GNU_CPP
=/lib
/cpp
2708 *-sysv4* |
*-sysvr4* ) opsys
=usg5-4
;;
2717 if test $unported = yes; then
2718 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
2719 Check \`etc/MACHINES' for recognized configuration names." >&5
2720 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2721 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2722 { (exit 1); exit 1; }; }
2725 machfile
="m/${machine}.h"
2726 opsysfile
="s/${opsys}.h"
2729 #### Choose a compiler.
2730 test -n "$CC" && cc_specified
=yes
2732 # Save the value of CFLAGS that the user specified.
2733 SPECIFIED_CFLAGS
="$CFLAGS"
2736 ac_cpp
='$CPP $CPPFLAGS'
2737 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2738 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2739 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2740 if test -n "$ac_tool_prefix"; then
2741 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2742 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2743 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2744 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2745 if test "${ac_cv_prog_CC+set}" = set; then
2746 echo $ECHO_N "(cached) $ECHO_C" >&6
2748 if test -n "$CC"; then
2749 ac_cv_prog_CC
="$CC" # Let the user override the test.
2751 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2755 test -z "$as_dir" && as_dir
=.
2756 for ac_exec_ext
in '' $ac_executable_extensions; do
2757 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2758 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2759 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2769 if test -n "$CC"; then
2770 { echo "$as_me:$LINENO: result: $CC" >&5
2771 echo "${ECHO_T}$CC" >&6; }
2773 { echo "$as_me:$LINENO: result: no" >&5
2774 echo "${ECHO_T}no" >&6; }
2779 if test -z "$ac_cv_prog_CC"; then
2781 # Extract the first word of "gcc", so it can be a program name with args.
2782 set dummy gcc
; ac_word
=$2
2783 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2784 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2785 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2786 echo $ECHO_N "(cached) $ECHO_C" >&6
2788 if test -n "$ac_ct_CC"; then
2789 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2791 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2795 test -z "$as_dir" && as_dir
=.
2796 for ac_exec_ext
in '' $ac_executable_extensions; do
2797 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2798 ac_cv_prog_ac_ct_CC
="gcc"
2799 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2808 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2809 if test -n "$ac_ct_CC"; then
2810 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2811 echo "${ECHO_T}$ac_ct_CC" >&6; }
2813 { echo "$as_me:$LINENO: result: no" >&5
2814 echo "${ECHO_T}no" >&6; }
2817 if test "x$ac_ct_CC" = x
; then
2820 case $cross_compiling:$ac_tool_warned in
2822 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2823 whose name does not start with the host triplet. If you think this
2824 configuration is useful to you, please write to autoconf@gnu.org." >&5
2825 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2826 whose name does not start with the host triplet. If you think this
2827 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2828 ac_tool_warned
=yes ;;
2836 if test -z "$CC"; then
2837 if test -n "$ac_tool_prefix"; then
2838 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2839 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2840 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2841 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2842 if test "${ac_cv_prog_CC+set}" = set; then
2843 echo $ECHO_N "(cached) $ECHO_C" >&6
2845 if test -n "$CC"; then
2846 ac_cv_prog_CC
="$CC" # Let the user override the test.
2848 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2852 test -z "$as_dir" && as_dir
=.
2853 for ac_exec_ext
in '' $ac_executable_extensions; do
2854 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2855 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2856 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2866 if test -n "$CC"; then
2867 { echo "$as_me:$LINENO: result: $CC" >&5
2868 echo "${ECHO_T}$CC" >&6; }
2870 { echo "$as_me:$LINENO: result: no" >&5
2871 echo "${ECHO_T}no" >&6; }
2877 if test -z "$CC"; then
2878 # Extract the first word of "cc", so it can be a program name with args.
2879 set dummy cc
; ac_word
=$2
2880 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2881 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2882 if test "${ac_cv_prog_CC+set}" = set; then
2883 echo $ECHO_N "(cached) $ECHO_C" >&6
2885 if test -n "$CC"; then
2886 ac_cv_prog_CC
="$CC" # Let the user override the test.
2889 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2893 test -z "$as_dir" && as_dir
=.
2894 for ac_exec_ext
in '' $ac_executable_extensions; do
2895 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2896 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2897 ac_prog_rejected
=yes
2901 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2908 if test $ac_prog_rejected = yes; then
2909 # We found a bogon in the path, so make sure we never use it.
2910 set dummy
$ac_cv_prog_CC
2912 if test $# != 0; then
2913 # We chose a different compiler from the bogus one.
2914 # However, it has the same basename, so the bogon will be chosen
2915 # first if we set CC to just the basename; use the full file name.
2917 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2923 if test -n "$CC"; then
2924 { echo "$as_me:$LINENO: result: $CC" >&5
2925 echo "${ECHO_T}$CC" >&6; }
2927 { echo "$as_me:$LINENO: result: no" >&5
2928 echo "${ECHO_T}no" >&6; }
2933 if test -z "$CC"; then
2934 if test -n "$ac_tool_prefix"; then
2935 for ac_prog
in cl.exe
2937 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2938 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2939 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2940 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2941 if test "${ac_cv_prog_CC+set}" = set; then
2942 echo $ECHO_N "(cached) $ECHO_C" >&6
2944 if test -n "$CC"; then
2945 ac_cv_prog_CC
="$CC" # Let the user override the test.
2947 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2951 test -z "$as_dir" && as_dir
=.
2952 for ac_exec_ext
in '' $ac_executable_extensions; do
2953 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2954 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2955 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2965 if test -n "$CC"; then
2966 { echo "$as_me:$LINENO: result: $CC" >&5
2967 echo "${ECHO_T}$CC" >&6; }
2969 { echo "$as_me:$LINENO: result: no" >&5
2970 echo "${ECHO_T}no" >&6; }
2974 test -n "$CC" && break
2977 if test -z "$CC"; then
2979 for ac_prog
in cl.exe
2981 # Extract the first word of "$ac_prog", so it can be a program name with args.
2982 set dummy
$ac_prog; ac_word
=$2
2983 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2984 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2985 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2986 echo $ECHO_N "(cached) $ECHO_C" >&6
2988 if test -n "$ac_ct_CC"; then
2989 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2991 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2995 test -z "$as_dir" && as_dir
=.
2996 for ac_exec_ext
in '' $ac_executable_extensions; do
2997 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2998 ac_cv_prog_ac_ct_CC
="$ac_prog"
2999 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3008 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3009 if test -n "$ac_ct_CC"; then
3010 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3011 echo "${ECHO_T}$ac_ct_CC" >&6; }
3013 { echo "$as_me:$LINENO: result: no" >&5
3014 echo "${ECHO_T}no" >&6; }
3018 test -n "$ac_ct_CC" && break
3021 if test "x$ac_ct_CC" = x
; then
3024 case $cross_compiling:$ac_tool_warned in
3026 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3027 whose name does not start with the host triplet. If you think this
3028 configuration is useful to you, please write to autoconf@gnu.org." >&5
3029 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3030 whose name does not start with the host triplet. If you think this
3031 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3032 ac_tool_warned
=yes ;;
3041 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3042 See \`config.log' for more details." >&5
3043 echo "$as_me: error: no acceptable C compiler found in \$PATH
3044 See \`config.log' for more details." >&2;}
3045 { (exit 1); exit 1; }; }
3047 # Provide some information about the compiler.
3048 echo "$as_me:$LINENO: checking for C compiler version" >&5
3049 ac_compiler
=`set X $ac_compile; echo $2`
3050 { (ac_try
="$ac_compiler --version >&5"
3052 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3053 *) ac_try_echo=$ac_try;;
3055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3056 (eval "$ac_compiler --version >&5") 2>&5
3058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3059 (exit $ac_status); }
3060 { (ac_try="$ac_compiler -v >&5"
3062 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3063 *) ac_try_echo
=$ac_try;;
3065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3066 (eval "$ac_compiler -v >&5") 2>&5
3068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3069 (exit $ac_status); }
3070 { (ac_try
="$ac_compiler -V >&5"
3072 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3073 *) ac_try_echo=$ac_try;;
3075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3076 (eval "$ac_compiler -V >&5") 2>&5
3078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3079 (exit $ac_status); }
3081 cat >conftest.$ac_ext <<_ACEOF
3084 cat confdefs.h >>conftest.$ac_ext
3085 cat >>conftest.$ac_ext <<_ACEOF
3086 /* end confdefs.h. */
3096 ac_clean_files_save=$ac_clean_files
3097 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3098 # Try to create an executable without -o first, disregard a.out.
3099 # It will help us diagnose broken compilers, and finding out an intuition
3101 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3102 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3103 ac_link_default=`echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3105 # List of possible output files, starting from the most likely.
3106 # The algorithm is not robust to junk in `.
', hence go to wildcards (a.*)
3107 # only as a last resort. b.out is created by i960 compilers.
3108 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
'
3110 # The IRIX 6 linker writes into existing files which may not be
3111 # executable, retaining their permissions. Remove them first so a
3112 # subsequent execution test works.
3114 for ac_file in $ac_files
3117 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3118 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3123 if { (ac_try="$ac_link_default"
3125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3126 *) ac_try_echo=$ac_try;;
3128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3129 (eval "$ac_link_default") 2>&5
3131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3132 (exit $ac_status); }; then
3133 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3134 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3135 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3136 # so that the user can short-circuit this test for compilers unknown to
3138 for ac_file
in $ac_files ''
3140 test -f "$ac_file" ||
continue
3142 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
)
3145 # We found the default executable, but exeext='' is most
3149 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3151 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3153 # We set ac_cv_exeext here because the later test for it is not
3154 # safe: cross compilers may not add the suffix if given an `-o'
3155 # argument, so we may need to know it at that point already.
3156 # Even if this section looks crufty: it has the advantage of
3163 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3169 { echo "$as_me:$LINENO: result: $ac_file" >&5
3170 echo "${ECHO_T}$ac_file" >&6; }
3171 if test -z "$ac_file"; then
3172 echo "$as_me: failed program was:" >&5
3173 sed 's/^/| /' conftest.
$ac_ext >&5
3175 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3176 See \`config.log' for more details." >&5
3177 echo "$as_me: error: C compiler cannot create executables
3178 See \`config.log' for more details." >&2;}
3179 { (exit 77); exit 77; }; }
3182 ac_exeext
=$ac_cv_exeext
3184 # Check that the compiler produces executables we can run. If not, either
3185 # the compiler is broken, or we cross compile.
3186 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3187 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3188 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3189 # If not cross compiling, check that we can run a simple program.
3190 if test "$cross_compiling" != yes; then
3191 if { ac_try
='./$ac_file'
3192 { (case "(($ac_try" in
3193 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3194 *) ac_try_echo=$ac_try;;
3196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3197 (eval "$ac_try") 2>&5
3199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3200 (exit $ac_status); }; }; then
3203 if test "$cross_compiling" = maybe; then
3206 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3207 If you meant to cross compile, use \`--host'.
3208 See \`config.log' for more details.
" >&5
3209 echo "$as_me: error
: cannot run C compiled programs.
3210 If you meant to cross compile
, use \
`--host'.
3211 See \`config.log
' for more details." >&2;}
3212 { (exit 1); exit 1; }; }
3216 { echo "$as_me:$LINENO: result: yes" >&5
3217 echo "${ECHO_T}yes" >&6; }
3219 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3220 ac_clean_files=$ac_clean_files_save
3221 # Check that the compiler produces executables we can run. If not, either
3222 # the compiler is broken, or we cross compile.
3223 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3224 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3225 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3226 echo "${ECHO_T}$cross_compiling" >&6; }
3228 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3229 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3230 if { (ac_try="$ac_link"
3232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3233 *) ac_try_echo=$ac_try;;
3235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3236 (eval "$ac_link") 2>&5
3238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3239 (exit $ac_status); }; then
3240 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3241 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3242 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3244 for ac_file
in conftest.exe conftest conftest.
*; do
3245 test -f "$ac_file" ||
continue
3247 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
) ;;
3248 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3254 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3255 See \`config.log' for more details." >&5
3256 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3257 See \`config.log' for more details." >&2;}
3258 { (exit 1); exit 1; }; }
3261 rm -f conftest
$ac_cv_exeext
3262 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3263 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3265 rm -f conftest.
$ac_ext
3266 EXEEXT
=$ac_cv_exeext
3268 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3269 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3270 if test "${ac_cv_objext+set}" = set; then
3271 echo $ECHO_N "(cached) $ECHO_C" >&6
3273 cat >conftest.
$ac_ext <<_ACEOF
3276 cat confdefs.h
>>conftest.
$ac_ext
3277 cat >>conftest.
$ac_ext <<_ACEOF
3278 /* end confdefs.h. */
3288 rm -f conftest.o conftest.obj
3289 if { (ac_try
="$ac_compile"
3291 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3292 *) ac_try_echo=$ac_try;;
3294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3295 (eval "$ac_compile") 2>&5
3297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3298 (exit $ac_status); }; then
3299 for ac_file in conftest.o conftest.obj conftest.*; do
3300 test -f "$ac_file" || continue;
3302 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3303 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3308 echo "$as_me: failed program was:" >&5
3309 sed 's/^/| /' conftest.$ac_ext >&5
3311 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3312 See \`config.log
' for more details." >&5
3313 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3314 See \`config.log' for more details.
" >&2;}
3315 { (exit 1); exit 1; }; }
3318 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3320 { echo "$as_me:$LINENO: result
: $ac_cv_objext" >&5
3321 echo "${ECHO_T}$ac_cv_objext" >&6; }
3322 OBJEXT=$ac_cv_objext
3324 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler
" >&5
3325 echo $ECHO_N "checking whether we are using the GNU C compiler...
$ECHO_C" >&6; }
3326 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3327 echo $ECHO_N "(cached
) $ECHO_C" >&6
3329 cat >conftest.$ac_ext <<_ACEOF
3332 cat confdefs.h >>conftest.$ac_ext
3333 cat >>conftest.$ac_ext <<_ACEOF
3334 /* end confdefs.h. */
3347 rm -f conftest.$ac_objext
3348 if { (ac_try="$ac_compile"
3350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3351 *) ac_try_echo=$ac_try;;
3353 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3354 (eval "$ac_compile") 2>conftest.er1
3356 grep -v '^ *+' conftest.er1 >conftest.err
3358 cat conftest.err >&5
3359 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3360 (exit $ac_status); } && {
3361 test -z "$ac_c_werror_flag" ||
3362 test ! -s conftest.err
3363 } && test -s conftest.$ac_objext; then
3366 echo "$as_me: failed program was
:" >&5
3367 sed 's/^/| /' conftest.$ac_ext >&5
3372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3373 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3376 { echo "$as_me:$LINENO: result
: $ac_cv_c_compiler_gnu" >&5
3377 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3378 GCC=`test $ac_compiler_gnu = yes && echo yes`
3379 ac_test_CFLAGS=${CFLAGS+set}
3380 ac_save_CFLAGS=$CFLAGS
3381 { echo "$as_me:$LINENO: checking whether
$CC accepts
-g" >&5
3382 echo $ECHO_N "checking whether
$CC accepts
-g...
$ECHO_C" >&6; }
3383 if test "${ac_cv_prog_cc_g+set}" = set; then
3384 echo $ECHO_N "(cached
) $ECHO_C" >&6
3386 ac_save_c_werror_flag=$ac_c_werror_flag
3387 ac_c_werror_flag=yes
3390 cat >conftest.$ac_ext <<_ACEOF
3393 cat confdefs.h >>conftest.$ac_ext
3394 cat >>conftest.$ac_ext <<_ACEOF
3395 /* end confdefs.h. */
3405 rm -f conftest.$ac_objext
3406 if { (ac_try="$ac_compile"
3408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3409 *) ac_try_echo=$ac_try;;
3411 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3412 (eval "$ac_compile") 2>conftest.er1
3414 grep -v '^ *+' conftest.er1 >conftest.err
3416 cat conftest.err >&5
3417 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3418 (exit $ac_status); } && {
3419 test -z "$ac_c_werror_flag" ||
3420 test ! -s conftest.err
3421 } && test -s conftest.$ac_objext; then
3424 echo "$as_me: failed program was
:" >&5
3425 sed 's/^/| /' conftest.$ac_ext >&5
3428 cat >conftest.$ac_ext <<_ACEOF
3431 cat confdefs.h >>conftest.$ac_ext
3432 cat >>conftest.$ac_ext <<_ACEOF
3433 /* end confdefs.h. */
3443 rm -f conftest.$ac_objext
3444 if { (ac_try="$ac_compile"
3446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3447 *) ac_try_echo=$ac_try;;
3449 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3450 (eval "$ac_compile") 2>conftest.er1
3452 grep -v '^ *+' conftest.er1 >conftest.err
3454 cat conftest.err >&5
3455 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3456 (exit $ac_status); } && {
3457 test -z "$ac_c_werror_flag" ||
3458 test ! -s conftest.err
3459 } && test -s conftest.$ac_objext; then
3462 echo "$as_me: failed program was
:" >&5
3463 sed 's/^/| /' conftest.$ac_ext >&5
3465 ac_c_werror_flag=$ac_save_c_werror_flag
3467 cat >conftest.$ac_ext <<_ACEOF
3470 cat confdefs.h >>conftest.$ac_ext
3471 cat >>conftest.$ac_ext <<_ACEOF
3472 /* end confdefs.h. */
3482 rm -f conftest.$ac_objext
3483 if { (ac_try="$ac_compile"
3485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3486 *) ac_try_echo=$ac_try;;
3488 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3489 (eval "$ac_compile") 2>conftest.er1
3491 grep -v '^ *+' conftest.er1 >conftest.err
3493 cat conftest.err >&5
3494 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3495 (exit $ac_status); } && {
3496 test -z "$ac_c_werror_flag" ||
3497 test ! -s conftest.err
3498 } && test -s conftest.$ac_objext; then
3501 echo "$as_me: failed program was
:" >&5
3502 sed 's/^/| /' conftest.$ac_ext >&5
3507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3514 ac_c_werror_flag=$ac_save_c_werror_flag
3516 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_g" >&5
3517 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3518 if test "$ac_test_CFLAGS" = set; then
3519 CFLAGS=$ac_save_CFLAGS
3520 elif test $ac_cv_prog_cc_g = yes; then
3521 if test "$GCC" = yes; then
3527 if test "$GCC" = yes; then
3533 { echo "$as_me:$LINENO: checking
for $CC option to accept ISO C89
" >&5
3534 echo $ECHO_N "checking
for $CC option to accept ISO C89...
$ECHO_C" >&6; }
3535 if test "${ac_cv_prog_cc_c89+set}" = set; then
3536 echo $ECHO_N "(cached
) $ECHO_C" >&6
3538 ac_cv_prog_cc_c89=no
3540 cat >conftest.$ac_ext <<_ACEOF
3543 cat confdefs.h >>conftest.$ac_ext
3544 cat >>conftest.$ac_ext <<_ACEOF
3545 /* end confdefs.h. */
3548 #include <sys/types.h>
3549 #include <sys/stat.h>
3550 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3551 struct buf { int x; };
3552 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3553 static char *e (p, i)
3559 static char *f (char * (*g) (char **, int), char **p, ...)
3564 s = g (p, va_arg (v,int));
3569 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3570 function prototypes and stuff, but not '\xHH' hex character constants.
3571 These don't provoke an error unfortunately, instead are silently treated
3572 as 'x'. The following induces an error, until -std is added to get
3573 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3574 array size at least. It's necessary to write '\x00'==0 to get something
3575 that's true only with -std. */
3576 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3578 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3579 inside strings and character constants. */
3581 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3583 int test (int i, double x);
3584 struct s1 {int (*f) (int a);};
3585 struct s2 {int (*f) (double a);};
3586 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3592 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3597 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3598 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3600 CC="$ac_save_CC $ac_arg"
3601 rm -f conftest.$ac_objext
3602 if { (ac_try="$ac_compile"
3604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3605 *) ac_try_echo=$ac_try;;
3607 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3608 (eval "$ac_compile") 2>conftest.er1
3610 grep -v '^ *+' conftest.er1 >conftest.err
3612 cat conftest.err >&5
3613 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3614 (exit $ac_status); } && {
3615 test -z "$ac_c_werror_flag" ||
3616 test ! -s conftest.err
3617 } && test -s conftest.$ac_objext; then
3618 ac_cv_prog_cc_c89=$ac_arg
3620 echo "$as_me: failed program was
:" >&5
3621 sed 's/^/| /' conftest.$ac_ext >&5
3626 rm -f core conftest.err conftest.$ac_objext
3627 test "x
$ac_cv_prog_cc_c89" != "xno
" && break
3629 rm -f conftest.$ac_ext
3634 case "x
$ac_cv_prog_cc_c89" in
3636 { echo "$as_me:$LINENO: result
: none needed
" >&5
3637 echo "${ECHO_T}none needed
" >&6; } ;;
3639 { echo "$as_me:$LINENO: result
: unsupported
" >&5
3640 echo "${ECHO_T}unsupported
" >&6; } ;;
3642 CC="$CC $ac_cv_prog_cc_c89"
3643 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_c89" >&5
3644 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3649 ac_cpp='$CPP $CPPFLAGS'
3650 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3651 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3652 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3655 # On Suns, sometimes $CPP names a directory.
3656 if test -n "$CPP" && test -d "$CPP"; then
3660 ## If not using gcc, and on Solaris, and no CPP specified, see if
3661 ## using a Sun compiler, which needs -Xs to prevent whitespace.
3662 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
3663 test x"$CPP" = x; then
3664 { echo "$as_me:$LINENO: checking whether we are using a Sun C compiler
" >&5
3665 echo $ECHO_N "checking whether we are using a Sun C compiler...
$ECHO_C" >&6; }
3667 if test "${emacs_cv_sunpro_c+set}" = set; then
3668 echo $ECHO_N "(cached
) $ECHO_C" >&6
3670 cat >conftest.$ac_ext <<_ACEOF
3673 cat confdefs.h >>conftest.$ac_ext
3674 cat >>conftest.$ac_ext <<_ACEOF
3675 /* end confdefs.h. */
3688 rm -f conftest.$ac_objext conftest$ac_exeext
3689 if { (ac_try="$ac_link"
3691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3692 *) ac_try_echo=$ac_try;;
3694 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3695 (eval "$ac_link") 2>conftest.er1
3697 grep -v '^ *+' conftest.er1 >conftest.err
3699 cat conftest.err >&5
3700 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3701 (exit $ac_status); } && {
3702 test -z "$ac_c_werror_flag" ||
3703 test ! -s conftest.err
3704 } && test -s conftest$ac_exeext &&
3705 $as_test_x conftest$ac_exeext; then
3706 emacs_cv_sunpro_c=yes
3708 echo "$as_me: failed program was
:" >&5
3709 sed 's/^/| /' conftest.$ac_ext >&5
3711 emacs_cv_sunpro_c=no
3714 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3715 conftest$ac_exeext conftest.$ac_ext
3718 { echo "$as_me:$LINENO: result
: $emacs_cv_sunpro_c" >&5
3719 echo "${ECHO_T}$emacs_cv_sunpro_c" >&6; }
3721 if test x"$emacs_cv_sunpro_c" = xyes; then
3722 NON_GNU_CPP="$CC -E -Xs"
3726 #### Some systems specify a CPP to use unless we are using GCC.
3727 #### Now that we know whether we are using GCC, we can decide whether
3728 #### to use that one.
3729 if test "x
$NON_GNU_CPP" != x && test x$GCC != xyes && test "x
$CPP" = x
3734 #### Some systems specify a CC to use unless we are using GCC.
3735 #### Now that we know whether we are using GCC, we can decide whether
3736 #### to use that one.
3737 if test "x
$NON_GNU_CC" != x && test x$GCC != xyes &&
3738 test x$cc_specified != xyes
3743 if test x$GCC = xyes && test "x
$GCC_TEST_OPTIONS" != x
3745 CC="$CC $GCC_TEST_OPTIONS"
3748 if test x$GCC = x && test "x
$NON_GCC_TEST_OPTIONS" != x
3750 CC="$CC $NON_GCC_TEST_OPTIONS"
3754 cat >>confdefs.h <<\_ACEOF
3755 #define _GNU_SOURCE 1
3760 ac_cpp='$CPP $CPPFLAGS'
3761 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3762 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3763 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3764 { echo "$as_me:$LINENO: checking how to run the C preprocessor
" >&5
3765 echo $ECHO_N "checking how to run the C preprocessor...
$ECHO_C" >&6; }
3766 # On Suns, sometimes $CPP names a directory.
3767 if test -n "$CPP" && test -d "$CPP"; then
3770 if test -z "$CPP"; then
3771 if test "${ac_cv_prog_CPP+set}" = set; then
3772 echo $ECHO_N "(cached
) $ECHO_C" >&6
3774 # Double quotes because CPP needs to be expanded
3775 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib
/cpp
"
3778 for ac_c_preproc_warn_flag in '' yes
3780 # Use a header file that comes with gcc, so configuring glibc
3781 # with a fresh cross-compiler works.
3782 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3783 # <limits.h> exists even on freestanding compilers.
3784 # On the NeXT, cc -E runs the code through the compiler's parser,
3785 # not just through cpp. "Syntax error
" is here to catch this case.
3786 cat >conftest.$ac_ext <<_ACEOF
3789 cat confdefs.h >>conftest.$ac_ext
3790 cat >>conftest.$ac_ext <<_ACEOF
3791 /* end confdefs.h. */
3793 # include <limits.h>
3795 # include <assert.h>
3799 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3802 *) ac_try_echo=$ac_try;;
3804 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3805 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
3807 grep -v '^ *+' conftest.er1 >conftest.err
3809 cat conftest.err >&5
3810 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3811 (exit $ac_status); } >/dev/null && {
3812 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3813 test ! -s conftest.err
3817 echo "$as_me: failed program was
:" >&5
3818 sed 's/^/| /' conftest.$ac_ext >&5
3820 # Broken: fails on valid input.
3824 rm -f conftest.err conftest.$ac_ext
3826 # OK, works on sane cases. Now check whether nonexistent headers
3827 # can be detected and how.
3828 cat >conftest.$ac_ext <<_ACEOF
3831 cat confdefs.h >>conftest.$ac_ext
3832 cat >>conftest.$ac_ext <<_ACEOF
3833 /* end confdefs.h. */
3834 #include <ac_nonexistent.h>
3836 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3839 *) ac_try_echo=$ac_try;;
3841 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3842 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
3844 grep -v '^ *+' conftest.er1 >conftest.err
3846 cat conftest.err >&5
3847 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3848 (exit $ac_status); } >/dev/null && {
3849 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3850 test ! -s conftest.err
3852 # Broken: success on invalid input.
3855 echo "$as_me: failed program was
:" >&5
3856 sed 's/^/| /' conftest.$ac_ext >&5
3858 # Passes both tests.
3863 rm -f conftest.err conftest.$ac_ext
3866 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3867 rm -f conftest.err conftest.$ac_ext
3868 if $ac_preproc_ok; then
3880 { echo "$as_me:$LINENO: result
: $CPP" >&5
3881 echo "${ECHO_T}$CPP" >&6; }
3883 for ac_c_preproc_warn_flag in '' yes
3885 # Use a header file that comes with gcc, so configuring glibc
3886 # with a fresh cross-compiler works.
3887 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3888 # <limits.h> exists even on freestanding compilers.
3889 # On the NeXT, cc -E runs the code through the compiler's parser,
3890 # not just through cpp. "Syntax error
" is here to catch this case.
3891 cat >conftest.$ac_ext <<_ACEOF
3894 cat confdefs.h >>conftest.$ac_ext
3895 cat >>conftest.$ac_ext <<_ACEOF
3896 /* end confdefs.h. */
3898 # include <limits.h>
3900 # include <assert.h>
3904 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3907 *) ac_try_echo=$ac_try;;
3909 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3910 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
3912 grep -v '^ *+' conftest.er1 >conftest.err
3914 cat conftest.err >&5
3915 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3916 (exit $ac_status); } >/dev/null && {
3917 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3918 test ! -s conftest.err
3922 echo "$as_me: failed program was
:" >&5
3923 sed 's/^/| /' conftest.$ac_ext >&5
3925 # Broken: fails on valid input.
3929 rm -f conftest.err conftest.$ac_ext
3931 # OK, works on sane cases. Now check whether nonexistent headers
3932 # can be detected and how.
3933 cat >conftest.$ac_ext <<_ACEOF
3936 cat confdefs.h >>conftest.$ac_ext
3937 cat >>conftest.$ac_ext <<_ACEOF
3938 /* end confdefs.h. */
3939 #include <ac_nonexistent.h>
3941 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3944 *) ac_try_echo=$ac_try;;
3946 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3947 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
3949 grep -v '^ *+' conftest.er1 >conftest.err
3951 cat conftest.err >&5
3952 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3953 (exit $ac_status); } >/dev/null && {
3954 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3955 test ! -s conftest.err
3957 # Broken: success on invalid input.
3960 echo "$as_me: failed program was
:" >&5
3961 sed 's/^/| /' conftest.$ac_ext >&5
3963 # Passes both tests.
3968 rm -f conftest.err conftest.$ac_ext
3971 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3972 rm -f conftest.err conftest.$ac_ext
3973 if $ac_preproc_ok; then
3976 { { echo "$as_me:$LINENO: error
: C preprocessor
\"$CPP\" fails sanity check
3977 See \
`config.log' for more details." >&5
3978 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3979 See \`config.log
' for more details." >&2;}
3980 { (exit 1); exit 1; }; }
3984 ac_cpp='$CPP $CPPFLAGS'
3985 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
3986 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
3987 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3990 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3991 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3992 if test "${ac_cv_path_GREP+set}" = set; then
3993 echo $ECHO_N "(cached) $ECHO_C" >&6
3995 # Extract the first word of "grep ggrep" to use in msg output
3996 if test -z "$GREP"; then
3997 set dummy grep ggrep; ac_prog_name=$2
3998 if test "${ac_cv_path_GREP+set}" = set; then
3999 echo $ECHO_N "(cached) $ECHO_C" >&6
4001 ac_path_GREP_found=false
4002 # Loop through the user's path and
test for each of PROGNAME-LIST
4003 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4004 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4007 test -z "$as_dir" && as_dir
=.
4008 for ac_prog
in grep ggrep
; do
4009 for ac_exec_ext
in '' $ac_executable_extensions; do
4010 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4011 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
4012 # Check for GNU ac_path_GREP and select it if it is found.
4013 # Check for GNU $ac_path_GREP
4014 case `"$ac_path_GREP" --version 2>&1` in
4016 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4019 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4022 cat "conftest.in" "conftest.in" >"conftest.tmp"
4023 mv "conftest.tmp" "conftest.in"
4024 cp "conftest.in" "conftest.nl"
4025 echo 'GREP' >> "conftest.nl"
4026 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4027 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4028 ac_count
=`expr $ac_count + 1`
4029 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4030 # Best one so far, save it but keep looking for a better one
4031 ac_cv_path_GREP
="$ac_path_GREP"
4032 ac_path_GREP_max
=$ac_count
4034 # 10*(2^10) chars as input seems more than enough
4035 test $ac_count -gt 10 && break
4037 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4041 $ac_path_GREP_found && break 3
4051 GREP
="$ac_cv_path_GREP"
4052 if test -z "$GREP"; then
4053 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4054 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4055 { (exit 1); exit 1; }; }
4059 ac_cv_path_GREP
=$GREP
4064 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4065 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4066 GREP
="$ac_cv_path_GREP"
4069 { echo "$as_me:$LINENO: checking for egrep" >&5
4070 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4071 if test "${ac_cv_path_EGREP+set}" = set; then
4072 echo $ECHO_N "(cached) $ECHO_C" >&6
4074 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4075 then ac_cv_path_EGREP
="$GREP -E"
4077 # Extract the first word of "egrep" to use in msg output
4078 if test -z "$EGREP"; then
4079 set dummy
egrep; ac_prog_name
=$2
4080 if test "${ac_cv_path_EGREP+set}" = set; then
4081 echo $ECHO_N "(cached) $ECHO_C" >&6
4083 ac_path_EGREP_found
=false
4084 # Loop through the user's path and test for each of PROGNAME-LIST
4085 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4086 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4089 test -z "$as_dir" && as_dir
=.
4090 for ac_prog
in egrep; do
4091 for ac_exec_ext
in '' $ac_executable_extensions; do
4092 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4093 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
4094 # Check for GNU ac_path_EGREP and select it if it is found.
4095 # Check for GNU $ac_path_EGREP
4096 case `"$ac_path_EGREP" --version 2>&1` in
4098 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4101 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4104 cat "conftest.in" "conftest.in" >"conftest.tmp"
4105 mv "conftest.tmp" "conftest.in"
4106 cp "conftest.in" "conftest.nl"
4107 echo 'EGREP' >> "conftest.nl"
4108 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4109 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4110 ac_count
=`expr $ac_count + 1`
4111 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4112 # Best one so far, save it but keep looking for a better one
4113 ac_cv_path_EGREP
="$ac_path_EGREP"
4114 ac_path_EGREP_max
=$ac_count
4116 # 10*(2^10) chars as input seems more than enough
4117 test $ac_count -gt 10 && break
4119 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4123 $ac_path_EGREP_found && break 3
4133 EGREP
="$ac_cv_path_EGREP"
4134 if test -z "$EGREP"; then
4135 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4136 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4137 { (exit 1); exit 1; }; }
4141 ac_cv_path_EGREP
=$EGREP
4147 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4148 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4149 EGREP
="$ac_cv_path_EGREP"
4153 { echo "$as_me:$LINENO: checking for AIX" >&5
4154 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
4155 cat >conftest.
$ac_ext <<_ACEOF
4158 cat confdefs.h
>>conftest.
$ac_ext
4159 cat >>conftest.
$ac_ext <<_ACEOF
4160 /* end confdefs.h. */
4166 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4167 $EGREP "yes" >/dev
/null
2>&1; then
4168 { echo "$as_me:$LINENO: result: yes" >&5
4169 echo "${ECHO_T}yes" >&6; }
4170 cat >>confdefs.h
<<\_ACEOF
4171 #define _ALL_SOURCE 1
4175 { echo "$as_me:$LINENO: result: no" >&5
4176 echo "${ECHO_T}no" >&6; }
4181 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4182 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4183 if test "${ac_cv_header_stdc+set}" = set; then
4184 echo $ECHO_N "(cached) $ECHO_C" >&6
4186 cat >conftest.
$ac_ext <<_ACEOF
4189 cat confdefs.h
>>conftest.
$ac_ext
4190 cat >>conftest.
$ac_ext <<_ACEOF
4191 /* end confdefs.h. */
4205 rm -f conftest.
$ac_objext
4206 if { (ac_try
="$ac_compile"
4208 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4209 *) ac_try_echo=$ac_try;;
4211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4212 (eval "$ac_compile") 2>conftest.er1
4214 grep -v '^ *+' conftest.er1 >conftest.err
4216 cat conftest.err >&5
4217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4218 (exit $ac_status); } && {
4219 test -z "$ac_c_werror_flag" ||
4220 test ! -s conftest.err
4221 } && test -s conftest.$ac_objext; then
4222 ac_cv_header_stdc=yes
4224 echo "$as_me: failed program was:" >&5
4225 sed 's/^/| /' conftest.$ac_ext >&5
4227 ac_cv_header_stdc=no
4230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4232 if test $ac_cv_header_stdc = yes; then
4233 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4234 cat >conftest.$ac_ext <<_ACEOF
4237 cat confdefs.h >>conftest.$ac_ext
4238 cat >>conftest.$ac_ext <<_ACEOF
4239 /* end confdefs.h. */
4243 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4244 $EGREP "memchr" >/dev/null 2>&1; then
4247 ac_cv_header_stdc=no
4253 if test $ac_cv_header_stdc = yes; then
4254 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4255 cat >conftest.$ac_ext <<_ACEOF
4258 cat confdefs.h >>conftest.$ac_ext
4259 cat >>conftest.$ac_ext <<_ACEOF
4260 /* end confdefs.h. */
4264 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4265 $EGREP "free" >/dev/null 2>&1; then
4268 ac_cv_header_stdc=no
4274 if test $ac_cv_header_stdc = yes; then
4275 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4276 if test "$cross_compiling" = yes; then
4279 cat >conftest.$ac_ext <<_ACEOF
4282 cat confdefs.h >>conftest.$ac_ext
4283 cat >>conftest.$ac_ext <<_ACEOF
4284 /* end confdefs.h. */
4287 #if ((' ' & 0x0FF) == 0x020)
4288 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4289 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4291 # define ISLOWER(c) \
4292 (('a' <= (c) && (c) <= 'i') \
4293 || ('j' <= (c) && (c) <= 'r') \
4294 || ('s' <= (c) && (c) <= 'z'))
4295 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4298 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4303 for (i = 0; i < 256; i++)
4304 if (XOR (islower (i), ISLOWER (i))
4305 || toupper (i) != TOUPPER (i))
4310 rm -f conftest$ac_exeext
4311 if { (ac_try="$ac_link"
4313 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4314 *) ac_try_echo
=$ac_try;;
4316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4317 (eval "$ac_link") 2>&5
4319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4320 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4321 { (case "(($ac_try" in
4322 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4323 *) ac_try_echo=$ac_try;;
4325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4326 (eval "$ac_try") 2>&5
4328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4329 (exit $ac_status); }; }; then
4332 echo "$as_me: program exited with status $ac_status" >&5
4333 echo "$as_me: failed program was:" >&5
4334 sed 's/^/| /' conftest.$ac_ext >&5
4337 ac_cv_header_stdc=no
4339 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4345 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4346 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4347 if test $ac_cv_header_stdc = yes; then
4349 cat >>confdefs.h <<\_ACEOF
4350 #define STDC_HEADERS 1
4355 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4365 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4366 inttypes.h stdint.h unistd.h
4368 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
4369 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4370 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4371 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4372 echo $ECHO_N "(cached) $ECHO_C" >&6
4374 cat >conftest.$ac_ext <<_ACEOF
4377 cat confdefs.h >>conftest.$ac_ext
4378 cat >>conftest.$ac_ext <<_ACEOF
4379 /* end confdefs.h. */
4380 $ac_includes_default
4382 #include <$ac_header>
4384 rm -f conftest.$ac_objext
4385 if { (ac_try="$ac_compile"
4387 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4388 *) ac_try_echo
=$ac_try;;
4390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4391 (eval "$ac_compile") 2>conftest.er1
4393 grep -v '^ *+' conftest.er1
>conftest.err
4395 cat conftest.err
>&5
4396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4397 (exit $ac_status); } && {
4398 test -z "$ac_c_werror_flag" ||
4399 test ! -s conftest.err
4400 } && test -s conftest.
$ac_objext; then
4401 eval "$as_ac_Header=yes"
4403 echo "$as_me: failed program was:" >&5
4404 sed 's/^/| /' conftest.
$ac_ext >&5
4406 eval "$as_ac_Header=no"
4409 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4411 ac_res
=`eval echo '${'$as_ac_Header'}'`
4412 { echo "$as_me:$LINENO: result: $ac_res" >&5
4413 echo "${ECHO_T}$ac_res" >&6; }
4414 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4415 cat >>confdefs.h
<<_ACEOF
4416 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4424 if test "${ac_cv_header_minix_config_h+set}" = set; then
4425 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
4426 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
4427 if test "${ac_cv_header_minix_config_h+set}" = set; then
4428 echo $ECHO_N "(cached) $ECHO_C" >&6
4430 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4431 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
4433 # Is the header compilable?
4434 { echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4435 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6; }
4436 cat >conftest.
$ac_ext <<_ACEOF
4439 cat confdefs.h
>>conftest.
$ac_ext
4440 cat >>conftest.
$ac_ext <<_ACEOF
4441 /* end confdefs.h. */
4442 $ac_includes_default
4443 #include <minix/config.h>
4445 rm -f conftest.
$ac_objext
4446 if { (ac_try
="$ac_compile"
4448 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4449 *) ac_try_echo=$ac_try;;
4451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4452 (eval "$ac_compile") 2>conftest.er1
4454 grep -v '^ *+' conftest.er1 >conftest.err
4456 cat conftest.err >&5
4457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4458 (exit $ac_status); } && {
4459 test -z "$ac_c_werror_flag" ||
4460 test ! -s conftest.err
4461 } && test -s conftest.$ac_objext; then
4462 ac_header_compiler=yes
4464 echo "$as_me: failed program was:" >&5
4465 sed 's/^/| /' conftest.$ac_ext >&5
4467 ac_header_compiler=no
4470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4471 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4472 echo "${ECHO_T}$ac_header_compiler" >&6; }
4474 # Is the header present?
4475 { echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4476 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6; }
4477 cat >conftest.$ac_ext <<_ACEOF
4480 cat confdefs.h >>conftest.$ac_ext
4481 cat >>conftest.$ac_ext <<_ACEOF
4482 /* end confdefs.h. */
4483 #include <minix/config.h>
4485 if { (ac_try="$ac_cpp conftest.$ac_ext"
4487 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4488 *) ac_try_echo
=$ac_try;;
4490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4491 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4493 grep -v '^ *+' conftest.er1
>conftest.err
4495 cat conftest.err
>&5
4496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4497 (exit $ac_status); } >/dev
/null
&& {
4498 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4499 test ! -s conftest.err
4501 ac_header_preproc
=yes
4503 echo "$as_me: failed program was:" >&5
4504 sed 's/^/| /' conftest.
$ac_ext >&5
4506 ac_header_preproc
=no
4509 rm -f conftest.err conftest.
$ac_ext
4510 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4511 echo "${ECHO_T}$ac_header_preproc" >&6; }
4513 # So? What about this header?
4514 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4516 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4517 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4518 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4519 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4520 ac_header_preproc
=yes
4523 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4524 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4525 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
4526 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
4527 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4528 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4529 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
4530 echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
4531 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4532 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4533 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4534 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4538 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
4539 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
4540 if test "${ac_cv_header_minix_config_h+set}" = set; then
4541 echo $ECHO_N "(cached) $ECHO_C" >&6
4543 ac_cv_header_minix_config_h
=$ac_header_preproc
4545 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4546 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
4549 if test $ac_cv_header_minix_config_h = yes; then
4556 if test "$MINIX" = yes; then
4558 cat >>confdefs.h
<<\_ACEOF
4559 #define _POSIX_SOURCE 1
4563 cat >>confdefs.h
<<\_ACEOF
4564 #define _POSIX_1_SOURCE 2
4568 cat >>confdefs.h
<<\_ACEOF
4584 { echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4585 echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6; }
4586 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
4587 echo $ECHO_N "(cached) $ECHO_C" >&6
4589 cat >conftest.
$ac_ext <<_ACEOF
4592 cat confdefs.h
>>conftest.
$ac_ext
4593 cat >>conftest.
$ac_ext <<_ACEOF
4594 /* end confdefs.h. */
4596 # define __EXTENSIONS__ 1
4597 $ac_includes_default
4606 rm -f conftest.
$ac_objext
4607 if { (ac_try
="$ac_compile"
4609 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4610 *) ac_try_echo=$ac_try;;
4612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4613 (eval "$ac_compile") 2>conftest.er1
4615 grep -v '^ *+' conftest.er1 >conftest.err
4617 cat conftest.err >&5
4618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4619 (exit $ac_status); } && {
4620 test -z "$ac_c_werror_flag" ||
4621 test ! -s conftest.err
4622 } && test -s conftest.$ac_objext; then
4623 ac_cv_safe_to_define___extensions__=yes
4625 echo "$as_me: failed program was:" >&5
4626 sed 's/^/| /' conftest.$ac_ext >&5
4628 ac_cv_safe_to_define___extensions__=no
4631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4633 { echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4634 echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6; }
4635 test $ac_cv_safe_to_define___extensions__ = yes &&
4636 cat >>confdefs.h <<\_ACEOF
4637 #define __EXTENSIONS__ 1
4640 cat >>confdefs.h <<\_ACEOF
4641 #define _POSIX_PTHREAD_SEMANTICS 1
4644 cat >>confdefs.h <<\_ACEOF
4645 #define _TANDEM_SOURCE 1
4650 ### Use -Wno-pointer-sign if the compiler supports it
4651 { echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
4652 echo $ECHO_N "checking whether gcc understands -Wno-pointer-sign... $ECHO_C" >&6; }
4653 SAVE_CFLAGS="$CFLAGS"
4654 CFLAGS="$CFLAGS -Wno-pointer-sign"
4655 cat >conftest.$ac_ext <<_ACEOF
4658 cat confdefs.h >>conftest.$ac_ext
4659 cat >>conftest.$ac_ext <<_ACEOF
4660 /* end confdefs.h. */
4670 rm -f conftest.$ac_objext
4671 if { (ac_try="$ac_compile"
4673 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4674 *) ac_try_echo
=$ac_try;;
4676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4677 (eval "$ac_compile") 2>conftest.er1
4679 grep -v '^ *+' conftest.er1
>conftest.err
4681 cat conftest.err
>&5
4682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4683 (exit $ac_status); } && {
4684 test -z "$ac_c_werror_flag" ||
4685 test ! -s conftest.err
4686 } && test -s conftest.
$ac_objext; then
4689 echo "$as_me: failed program was:" >&5
4690 sed 's/^/| /' conftest.
$ac_ext >&5
4695 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4696 if test $has_option = yes; then
4697 C_WARNINGS_SWITCH
="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4699 { echo "$as_me:$LINENO: result: $has_option" >&5
4700 echo "${ECHO_T}$has_option" >&6; }
4701 CFLAGS
="$SAVE_CFLAGS"
4705 #### Some other nice autoconf tests.
4707 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4708 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4710 if test "$LN_S" = "ln -s"; then
4711 { echo "$as_me:$LINENO: result: yes" >&5
4712 echo "${ECHO_T}yes" >&6; }
4714 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4715 echo "${ECHO_T}no, using $LN_S" >&6; }
4719 ac_cpp
='$CPP $CPPFLAGS'
4720 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4721 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4722 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4723 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4724 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4725 # On Suns, sometimes $CPP names a directory.
4726 if test -n "$CPP" && test -d "$CPP"; then
4729 if test -z "$CPP"; then
4730 if test "${ac_cv_prog_CPP+set}" = set; then
4731 echo $ECHO_N "(cached) $ECHO_C" >&6
4733 # Double quotes because CPP needs to be expanded
4734 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4737 for ac_c_preproc_warn_flag
in '' yes
4739 # Use a header file that comes with gcc, so configuring glibc
4740 # with a fresh cross-compiler works.
4741 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4742 # <limits.h> exists even on freestanding compilers.
4743 # On the NeXT, cc -E runs the code through the compiler's parser,
4744 # not just through cpp. "Syntax error" is here to catch this case.
4745 cat >conftest.
$ac_ext <<_ACEOF
4748 cat confdefs.h
>>conftest.
$ac_ext
4749 cat >>conftest.
$ac_ext <<_ACEOF
4750 /* end confdefs.h. */
4752 # include <limits.h>
4754 # include <assert.h>
4758 if { (ac_try
="$ac_cpp conftest.$ac_ext"
4760 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4761 *) ac_try_echo=$ac_try;;
4763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4764 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4766 grep -v '^ *+' conftest.er1 >conftest.err
4768 cat conftest.err >&5
4769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4770 (exit $ac_status); } >/dev/null && {
4771 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4772 test ! -s conftest.err
4776 echo "$as_me: failed program was:" >&5
4777 sed 's/^/| /' conftest.$ac_ext >&5
4779 # Broken: fails on valid input.
4783 rm -f conftest.err conftest.$ac_ext
4785 # OK, works on sane cases. Now check whether nonexistent headers
4786 # can be detected and how.
4787 cat >conftest.$ac_ext <<_ACEOF
4790 cat confdefs.h >>conftest.$ac_ext
4791 cat >>conftest.$ac_ext <<_ACEOF
4792 /* end confdefs.h. */
4793 #include <ac_nonexistent.h>
4795 if { (ac_try="$ac_cpp conftest.$ac_ext"
4797 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4798 *) ac_try_echo
=$ac_try;;
4800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4801 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4803 grep -v '^ *+' conftest.er1
>conftest.err
4805 cat conftest.err
>&5
4806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4807 (exit $ac_status); } >/dev
/null
&& {
4808 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4809 test ! -s conftest.err
4811 # Broken: success on invalid input.
4814 echo "$as_me: failed program was:" >&5
4815 sed 's/^/| /' conftest.
$ac_ext >&5
4817 # Passes both tests.
4822 rm -f conftest.err conftest.
$ac_ext
4825 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4826 rm -f conftest.err conftest.
$ac_ext
4827 if $ac_preproc_ok; then
4839 { echo "$as_me:$LINENO: result: $CPP" >&5
4840 echo "${ECHO_T}$CPP" >&6; }
4842 for ac_c_preproc_warn_flag
in '' yes
4844 # Use a header file that comes with gcc, so configuring glibc
4845 # with a fresh cross-compiler works.
4846 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4847 # <limits.h> exists even on freestanding compilers.
4848 # On the NeXT, cc -E runs the code through the compiler's parser,
4849 # not just through cpp. "Syntax error" is here to catch this case.
4850 cat >conftest.
$ac_ext <<_ACEOF
4853 cat confdefs.h
>>conftest.
$ac_ext
4854 cat >>conftest.
$ac_ext <<_ACEOF
4855 /* end confdefs.h. */
4857 # include <limits.h>
4859 # include <assert.h>
4863 if { (ac_try
="$ac_cpp conftest.$ac_ext"
4865 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4866 *) ac_try_echo=$ac_try;;
4868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4869 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4871 grep -v '^ *+' conftest.er1 >conftest.err
4873 cat conftest.err >&5
4874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4875 (exit $ac_status); } >/dev/null && {
4876 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4877 test ! -s conftest.err
4881 echo "$as_me: failed program was:" >&5
4882 sed 's/^/| /' conftest.$ac_ext >&5
4884 # Broken: fails on valid input.
4888 rm -f conftest.err conftest.$ac_ext
4890 # OK, works on sane cases. Now check whether nonexistent headers
4891 # can be detected and how.
4892 cat >conftest.$ac_ext <<_ACEOF
4895 cat confdefs.h >>conftest.$ac_ext
4896 cat >>conftest.$ac_ext <<_ACEOF
4897 /* end confdefs.h. */
4898 #include <ac_nonexistent.h>
4900 if { (ac_try="$ac_cpp conftest.$ac_ext"
4902 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4903 *) ac_try_echo
=$ac_try;;
4905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4906 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4908 grep -v '^ *+' conftest.er1
>conftest.err
4910 cat conftest.err
>&5
4911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4912 (exit $ac_status); } >/dev
/null
&& {
4913 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4914 test ! -s conftest.err
4916 # Broken: success on invalid input.
4919 echo "$as_me: failed program was:" >&5
4920 sed 's/^/| /' conftest.
$ac_ext >&5
4922 # Passes both tests.
4927 rm -f conftest.err conftest.
$ac_ext
4930 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4931 rm -f conftest.err conftest.
$ac_ext
4932 if $ac_preproc_ok; then
4935 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4936 See \`config.log' for more details." >&5
4937 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4938 See \`config.log' for more details." >&2;}
4939 { (exit 1); exit 1; }; }
4943 ac_cpp
='$CPP $CPPFLAGS'
4944 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4945 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4946 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4948 # Find a good install program. We prefer a C program (faster),
4949 # so one script is as good as another. But avoid the broken or
4950 # incompatible versions:
4951 # SysV /etc/install, /usr/sbin/install
4952 # SunOS /usr/etc/install
4953 # IRIX /sbin/install
4955 # AmigaOS /C/install, which installs bootblocks on floppy discs
4956 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4957 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4958 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4959 # OS/2's system install, which has a completely different semantic
4960 # ./install, which can be erroneously created by make from ./install.sh.
4961 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4962 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4963 if test -z "$INSTALL"; then
4964 if test "${ac_cv_path_install+set}" = set; then
4965 echo $ECHO_N "(cached) $ECHO_C" >&6
4967 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4971 test -z "$as_dir" && as_dir
=.
4972 # Account for people who put trailing slashes in PATH elements.
4974 .
/ | .
// |
/cC
/* | \
4975 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
4976 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
4979 # OSF1 and SCO ODT 3.0 have their own names for install.
4980 # Don't use installbsd from OSF since it installs stuff as root
4982 for ac_prog
in ginstall scoinst
install; do
4983 for ac_exec_ext
in '' $ac_executable_extensions; do
4984 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4985 if test $ac_prog = install &&
4986 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4987 # AIX install. It has an incompatible calling convention.
4989 elif test $ac_prog = install &&
4990 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4991 # program-specific install script used by HP pwplus--don't use.
4994 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
5007 if test "${ac_cv_path_install+set}" = set; then
5008 INSTALL
=$ac_cv_path_install
5010 # As a last resort, use the slow shell script. Don't cache a
5011 # value for INSTALL within a source directory, because that will
5012 # break other packages using the cache if that directory is
5013 # removed, or if the value is a relative name.
5014 INSTALL
=$ac_install_sh
5017 { echo "$as_me:$LINENO: result: $INSTALL" >&5
5018 echo "${ECHO_T}$INSTALL" >&6; }
5020 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5021 # It thinks the first close brace ends the variable substitution.
5022 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
5024 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
5026 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
5028 if test "x$RANLIB" = x
; then
5029 if test -n "$ac_tool_prefix"; then
5030 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5031 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
5032 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5033 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5034 if test "${ac_cv_prog_RANLIB+set}" = set; then
5035 echo $ECHO_N "(cached) $ECHO_C" >&6
5037 if test -n "$RANLIB"; then
5038 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
5040 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5044 test -z "$as_dir" && as_dir
=.
5045 for ac_exec_ext
in '' $ac_executable_extensions; do
5046 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5047 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
5048 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5057 RANLIB
=$ac_cv_prog_RANLIB
5058 if test -n "$RANLIB"; then
5059 { echo "$as_me:$LINENO: result: $RANLIB" >&5
5060 echo "${ECHO_T}$RANLIB" >&6; }
5062 { echo "$as_me:$LINENO: result: no" >&5
5063 echo "${ECHO_T}no" >&6; }
5068 if test -z "$ac_cv_prog_RANLIB"; then
5069 ac_ct_RANLIB
=$RANLIB
5070 # Extract the first word of "ranlib", so it can be a program name with args.
5071 set dummy ranlib
; ac_word
=$2
5072 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5073 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5074 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5075 echo $ECHO_N "(cached) $ECHO_C" >&6
5077 if test -n "$ac_ct_RANLIB"; then
5078 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
5080 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5084 test -z "$as_dir" && as_dir
=.
5085 for ac_exec_ext
in '' $ac_executable_extensions; do
5086 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5087 ac_cv_prog_ac_ct_RANLIB
="ranlib"
5088 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5097 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
5098 if test -n "$ac_ct_RANLIB"; then
5099 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5100 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5102 { echo "$as_me:$LINENO: result: no" >&5
5103 echo "${ECHO_T}no" >&6; }
5106 if test "x$ac_ct_RANLIB" = x
; then
5109 case $cross_compiling:$ac_tool_warned in
5111 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5112 whose name does not start with the host triplet. If you think this
5113 configuration is useful to you, please write to autoconf@gnu.org." >&5
5114 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5115 whose name does not start with the host triplet. If you think this
5116 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5117 ac_tool_warned
=yes ;;
5119 RANLIB
=$ac_ct_RANLIB
5122 RANLIB
="$ac_cv_prog_RANLIB"
5126 # Extract the first word of "install-info", so it can be a program name with args.
5127 set dummy install-info
; ac_word
=$2
5128 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5129 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5130 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5131 echo $ECHO_N "(cached) $ECHO_C" >&6
5133 case $INSTALL_INFO in
5135 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5138 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5142 test -z "$as_dir" && as_dir
=.
5143 for ac_exec_ext
in '' $ac_executable_extensions; do
5144 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5145 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5146 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5156 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5157 if test -n "$INSTALL_INFO"; then
5158 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5159 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5161 { echo "$as_me:$LINENO: result: no" >&5
5162 echo "${ECHO_T}no" >&6; }
5166 # Extract the first word of "install-info", so it can be a program name with args.
5167 set dummy install-info
; ac_word
=$2
5168 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5169 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5170 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5171 echo $ECHO_N "(cached) $ECHO_C" >&6
5173 case $INSTALL_INFO in
5175 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5178 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5179 for as_dir
in /usr
/sbin
5182 test -z "$as_dir" && as_dir
=.
5183 for ac_exec_ext
in '' $ac_executable_extensions; do
5184 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5185 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5186 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5196 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5197 if test -n "$INSTALL_INFO"; then
5198 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5199 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5201 { echo "$as_me:$LINENO: result: no" >&5
5202 echo "${ECHO_T}no" >&6; }
5206 # Extract the first word of "install-info", so it can be a program name with args.
5207 set dummy install-info
; ac_word
=$2
5208 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5209 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5210 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5211 echo $ECHO_N "(cached) $ECHO_C" >&6
5213 case $INSTALL_INFO in
5215 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5218 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5222 test -z "$as_dir" && as_dir
=.
5223 for ac_exec_ext
in '' $ac_executable_extensions; do
5224 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5225 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5226 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5233 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO
=":"
5237 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5238 if test -n "$INSTALL_INFO"; then
5239 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5240 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5242 { echo "$as_me:$LINENO: result: no" >&5
5243 echo "${ECHO_T}no" >&6; }
5247 # Extract the first word of "gzip", so it can be a program name with args.
5248 set dummy
gzip; ac_word
=$2
5249 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5250 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5251 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
5252 echo $ECHO_N "(cached) $ECHO_C" >&6
5256 ac_cv_path_GZIP_PROG
="$GZIP_PROG" # Let the user override the test with a path.
5259 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5263 test -z "$as_dir" && as_dir
=.
5264 for ac_exec_ext
in '' $ac_executable_extensions; do
5265 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5266 ac_cv_path_GZIP_PROG
="$as_dir/$ac_word$ac_exec_ext"
5267 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5277 GZIP_PROG
=$ac_cv_path_GZIP_PROG
5278 if test -n "$GZIP_PROG"; then
5279 { echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
5280 echo "${ECHO_T}$GZIP_PROG" >&6; }
5282 { echo "$as_me:$LINENO: result: no" >&5
5283 echo "${ECHO_T}no" >&6; }
5289 ## Need makeinfo >= 4.6 (?) to build the manuals.
5290 # Extract the first word of "makeinfo", so it can be a program name with args.
5291 set dummy makeinfo
; ac_word
=$2
5292 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5293 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5294 if test "${ac_cv_path_MAKEINFO+set}" = set; then
5295 echo $ECHO_N "(cached) $ECHO_C" >&6
5299 ac_cv_path_MAKEINFO
="$MAKEINFO" # Let the user override the test with a path.
5302 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5306 test -z "$as_dir" && as_dir
=.
5307 for ac_exec_ext
in '' $ac_executable_extensions; do
5308 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5309 ac_cv_path_MAKEINFO
="$as_dir/$ac_word$ac_exec_ext"
5310 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5317 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO
="no"
5321 MAKEINFO
=$ac_cv_path_MAKEINFO
5322 if test -n "$MAKEINFO"; then
5323 { echo "$as_me:$LINENO: result: $MAKEINFO" >&5
5324 echo "${ECHO_T}$MAKEINFO" >&6; }
5326 { echo "$as_me:$LINENO: result: no" >&5
5327 echo "${ECHO_T}no" >&6; }
5331 if test "$MAKEINFO" != "no" && \
5332 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
5336 ## Makeinfo is unusual. For a released Emacs, the manuals are
5337 ## pre-built, and not deleted by the normal clean rules. makeinfo is
5338 ## therefore in the category of "special tools" not normally required, which
5339 ## configure does not have to check for (eg autoconf itself).
5340 ## In a CVS checkout on the other hand, the manuals are not included.
5341 ## So makeinfo is a requirement to build from CVS, and configure
5342 ## should test for it as it does for any other build requirement.
5343 ## We use the presence of $srcdir/info/emacs to distinguish a release,
5344 ## with pre-built manuals, from a CVS checkout.
5345 if test "$MAKEINFO" = "no"; then
5346 if test "x${with_makeinfo}" = "xno"; then
5348 elif ! test -e $srcdir/info
/emacs
; then
5349 { { echo "$as_me:$LINENO: error: You do not seem to have makeinfo >= 4.6, and your
5350 source tree does not seem to have pre-built manuals in the \`info' directory.
5351 Either install a suitable version of makeinfo, or re-run configure
5352 with the \`--without-makeinfo' option to build without the manuals. " >&5
5353 echo "$as_me: error: You do not seem to have makeinfo >= 4.6, and your
5354 source tree does not seem to have pre-built manuals in the \`info' directory.
5355 Either install a suitable version of makeinfo, or re-run configure
5356 with the \`--without-makeinfo' option to build without the manuals. " >&2;}
5357 { (exit 1); exit 1; }; }
5362 if test x
$GCC = xyes
&& test "x$GCC_LINK_TEST_OPTIONS" != x
5364 ac_link
="$ac_link $GCC_LINK_TEST_OPTIONS"
5367 if test x
$GCC = x
&& test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5369 ac_link
="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5373 late_LDFLAGS
=$LDFLAGS
5374 if test "$GCC" = yes; then
5375 LDFLAGS
="$LDFLAGS -Wl,-znocombreloc"
5377 LDFLAGS
="$LDFLAGS -znocombreloc"
5380 { echo "$as_me:$LINENO: checking for -znocombreloc" >&5
5381 echo $ECHO_N "checking for -znocombreloc... $ECHO_C" >&6; }
5382 cat >conftest.
$ac_ext <<_ACEOF
5385 rm -f conftest.
$ac_objext conftest
$ac_exeext
5386 if { (ac_try
="$ac_link"
5388 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5389 *) ac_try_echo=$ac_try;;
5391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5392 (eval "$ac_link") 2>conftest.er1
5394 grep -v '^ *+' conftest.er1 >conftest.err
5396 cat conftest.err >&5
5397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5398 (exit $ac_status); } && {
5399 test -z "$ac_c_werror_flag" ||
5400 test ! -s conftest.err
5401 } && test -s conftest$ac_exeext &&
5402 $as_test_x conftest$ac_exeext; then
5403 { echo "$as_me:$LINENO: result: yes" >&5
5404 echo "${ECHO_T}yes" >&6; }
5406 echo "$as_me: failed program was:" >&5
5407 sed 's/^/| /' conftest.$ac_ext >&5
5409 LDFLAGS=$late_LDFLAGS
5410 { echo "$as_me:$LINENO: result: no" >&5
5411 echo "${ECHO_T}no" >&6; }
5414 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5415 conftest$ac_exeext conftest.$ac_ext
5417 #### Extract some information from the operating system and machine files.
5419 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
5420 - which libraries the lib-src programs will want, and
5421 - whether the GNU malloc routines are usable..." >&5
5422 echo "$as_me: checking the machine- and system-dependent files to find out
5423 - which libraries the lib-src programs will want, and
5424 - whether the GNU malloc routines are usable..." >&6;}
5426 ### First figure out CFLAGS (which we use for running the compiler here)
5427 ### and REAL_CFLAGS (which we use for real compilation).
5428 ### The two are the same except on a few systems, where they are made
5429 ### different to work around various lossages. For example,
5430 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5431 ### as implying static linking.
5433 ### If the CFLAGS env var is specified, we use that value
5434 ### instead of the default.
5436 ### It's not important that this name contain the PID; you can't run
5437 ### two configures in the same directory and have anything work
5439 tempcname="conftest.c"
5442 #include "'${srcdir}'/src/'${opsysfile}'"
5443 #include "'${srcdir}'/src/'${machfile}'"
5444 #ifndef LIBS_MACHINE
5445 #define LIBS_MACHINE
5450 #ifndef C_SWITCH_SYSTEM
5451 #define C_SWITCH_SYSTEM
5453 #ifndef C_SWITCH_MACHINE
5454 #define C_SWITCH_MACHINE
5456 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
5457 configure___ c_switch_system=C_SWITCH_SYSTEM
5458 configure___ c_switch_machine=C_SWITCH_MACHINE
5461 #define LIB_X11_LIB -lX11
5464 #ifndef LIBX11_SYSTEM
5465 #define LIBX11_SYSTEM
5467 configure___ LIBX=LIB_X11_LIB LIBX11_SYSTEM
5470 configure___ unexec=UNEXEC
5472 configure___ unexec=unexec.o
5475 #ifdef SYSTEM_MALLOC
5476 configure___ system_malloc=yes
5478 configure___ system_malloc=no
5481 #ifdef USE_MMAP_FOR_BUFFERS
5482 configure___ use_mmap_for_buffers=yes
5484 configure___ use_mmap_for_buffers=no
5487 #ifndef C_DEBUG_SWITCH
5488 #define C_DEBUG_SWITCH -g
5491 #ifndef C_OPTIMIZE_SWITCH
5493 #define C_OPTIMIZE_SWITCH -O2
5495 #define C_OPTIMIZE_SWITCH -O
5499 #ifndef C_WARNINGS_SWITCH
5500 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5503 #ifndef LD_SWITCH_MACHINE
5504 #define LD_SWITCH_MACHINE
5507 #ifndef LD_SWITCH_SYSTEM
5508 #define LD_SWITCH_SYSTEM
5511 #ifndef LD_SWITCH_X_SITE_AUX
5512 #define LD_SWITCH_X_SITE_AUX
5515 configure___ ld_switch_system=LD_SWITCH_SYSTEM
5516 configure___ ld_switch_machine=LD_SWITCH_MACHINE
5518 #ifdef THIS_IS_CONFIGURE
5520 /* Get the CFLAGS for tests in configure. */
5522 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
5524 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5527 #else /* not THIS_IS_CONFIGURE */
5529 /* Get the CFLAGS for real compilation. */
5531 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH '${SPECIFIED_CFLAGS}'
5533 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5536 #endif /* not THIS_IS_CONFIGURE */
5539 # The value of CPP is a quoted variable reference, so we need to do this
5540 # to get its actual value...
5541 CPP=`eval "echo $CPP"`
5542 eval `${CPP} -Isrc ${tempcname} \
5543 |
sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5544 if test "x$SPECIFIED_CFLAGS" = x; then
5545 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5546 |
sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5548 REAL_CFLAGS="$CFLAGS"
5552 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
5554 ### Make sure subsequent tests use flags consistent with the build flags.
5556 if test x"${OVERRIDE_CPPFLAGS}" != x; then
5557 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
5559 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
5564 # Check whether --enable-largefile was given.
5565 if test "${enable_largefile+set}" = set; then
5566 enableval=$enable_largefile;
5569 if test "$enable_largefile" != no; then
5571 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5572 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
5573 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5574 echo $ECHO_N "(cached) $ECHO_C" >&6
5576 ac_cv_sys_largefile_CC=no
5577 if test "$GCC" != yes; then
5580 # IRIX 6.2 and later do not support large files by default,
5581 # so use the C compiler's -n32 option if that helps.
5582 cat >conftest.$ac_ext <<_ACEOF
5585 cat confdefs.h >>conftest.$ac_ext
5586 cat >>conftest.$ac_ext <<_ACEOF
5587 /* end confdefs.h. */
5588 #include <sys/types.h>
5589 /* Check that off_t can represent 2**63 - 1 correctly.
5590 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5591 since some C++ compilers masquerading as C compilers
5592 incorrectly reject 9223372036854775807. */
5593 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5594 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5595 && LARGE_OFF_T % 2147483647 == 1)
5605 rm -f conftest.$ac_objext
5606 if { (ac_try="$ac_compile"
5608 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5609 *) ac_try_echo
=$ac_try;;
5611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5612 (eval "$ac_compile") 2>conftest.er1
5614 grep -v '^ *+' conftest.er1
>conftest.err
5616 cat conftest.err
>&5
5617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5618 (exit $ac_status); } && {
5619 test -z "$ac_c_werror_flag" ||
5620 test ! -s conftest.err
5621 } && test -s conftest.
$ac_objext; then
5624 echo "$as_me: failed program was:" >&5
5625 sed 's/^/| /' conftest.
$ac_ext >&5
5630 rm -f core conftest.err conftest.
$ac_objext
5632 rm -f conftest.
$ac_objext
5633 if { (ac_try
="$ac_compile"
5635 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5636 *) ac_try_echo=$ac_try;;
5638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5639 (eval "$ac_compile") 2>conftest.er1
5641 grep -v '^ *+' conftest.er1 >conftest.err
5643 cat conftest.err >&5
5644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5645 (exit $ac_status); } && {
5646 test -z "$ac_c_werror_flag" ||
5647 test ! -s conftest.err
5648 } && test -s conftest.$ac_objext; then
5649 ac_cv_sys_largefile_CC=' -n32'; break
5651 echo "$as_me: failed program was:" >&5
5652 sed 's/^/| /' conftest.$ac_ext >&5
5657 rm -f core conftest.err conftest.$ac_objext
5661 rm -f conftest.$ac_ext
5664 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5665 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
5666 if test "$ac_cv_sys_largefile_CC" != no; then
5667 CC=$CC$ac_cv_sys_largefile_CC
5670 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5671 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
5672 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5673 echo $ECHO_N "(cached) $ECHO_C" >&6
5676 cat >conftest.$ac_ext <<_ACEOF
5679 cat confdefs.h >>conftest.$ac_ext
5680 cat >>conftest.$ac_ext <<_ACEOF
5681 /* end confdefs.h. */
5682 #include <sys/types.h>
5683 /* Check that off_t can represent 2**63 - 1 correctly.
5684 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5685 since some C++ compilers masquerading as C compilers
5686 incorrectly reject 9223372036854775807. */
5687 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5688 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5689 && LARGE_OFF_T % 2147483647 == 1)
5699 rm -f conftest.$ac_objext
5700 if { (ac_try="$ac_compile"
5702 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5703 *) ac_try_echo
=$ac_try;;
5705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5706 (eval "$ac_compile") 2>conftest.er1
5708 grep -v '^ *+' conftest.er1
>conftest.err
5710 cat conftest.err
>&5
5711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5712 (exit $ac_status); } && {
5713 test -z "$ac_c_werror_flag" ||
5714 test ! -s conftest.err
5715 } && test -s conftest.
$ac_objext; then
5716 ac_cv_sys_file_offset_bits
=no
; break
5718 echo "$as_me: failed program was:" >&5
5719 sed 's/^/| /' conftest.
$ac_ext >&5
5724 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5725 cat >conftest.
$ac_ext <<_ACEOF
5728 cat confdefs.h
>>conftest.
$ac_ext
5729 cat >>conftest.
$ac_ext <<_ACEOF
5730 /* end confdefs.h. */
5731 #define _FILE_OFFSET_BITS 64
5732 #include <sys/types.h>
5733 /* Check that off_t can represent 2**63 - 1 correctly.
5734 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5735 since some C++ compilers masquerading as C compilers
5736 incorrectly reject 9223372036854775807. */
5737 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5738 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5739 && LARGE_OFF_T % 2147483647 == 1)
5749 rm -f conftest.
$ac_objext
5750 if { (ac_try
="$ac_compile"
5752 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5753 *) ac_try_echo=$ac_try;;
5755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5756 (eval "$ac_compile") 2>conftest.er1
5758 grep -v '^ *+' conftest.er1 >conftest.err
5760 cat conftest.err >&5
5761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5762 (exit $ac_status); } && {
5763 test -z "$ac_c_werror_flag" ||
5764 test ! -s conftest.err
5765 } && test -s conftest.$ac_objext; then
5766 ac_cv_sys_file_offset_bits=64; break
5768 echo "$as_me: failed program was:" >&5
5769 sed 's/^/| /' conftest.$ac_ext >&5
5774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5775 ac_cv_sys_file_offset_bits=unknown
5779 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5780 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
5781 case $ac_cv_sys_file_offset_bits in #(
5784 cat >>confdefs.h <<_ACEOF
5785 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5790 if test $ac_cv_sys_file_offset_bits = unknown; then
5791 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5792 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
5793 if test "${ac_cv_sys_large_files+set}" = set; then
5794 echo $ECHO_N "(cached) $ECHO_C" >&6
5797 cat >conftest.$ac_ext <<_ACEOF
5800 cat confdefs.h >>conftest.$ac_ext
5801 cat >>conftest.$ac_ext <<_ACEOF
5802 /* end confdefs.h. */
5803 #include <sys/types.h>
5804 /* Check that off_t can represent 2**63 - 1 correctly.
5805 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5806 since some C++ compilers masquerading as C compilers
5807 incorrectly reject 9223372036854775807. */
5808 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5809 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5810 && LARGE_OFF_T % 2147483647 == 1)
5820 rm -f conftest.$ac_objext
5821 if { (ac_try="$ac_compile"
5823 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5824 *) ac_try_echo
=$ac_try;;
5826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5827 (eval "$ac_compile") 2>conftest.er1
5829 grep -v '^ *+' conftest.er1
>conftest.err
5831 cat conftest.err
>&5
5832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5833 (exit $ac_status); } && {
5834 test -z "$ac_c_werror_flag" ||
5835 test ! -s conftest.err
5836 } && test -s conftest.
$ac_objext; then
5837 ac_cv_sys_large_files
=no
; break
5839 echo "$as_me: failed program was:" >&5
5840 sed 's/^/| /' conftest.
$ac_ext >&5
5845 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5846 cat >conftest.
$ac_ext <<_ACEOF
5849 cat confdefs.h
>>conftest.
$ac_ext
5850 cat >>conftest.
$ac_ext <<_ACEOF
5851 /* end confdefs.h. */
5852 #define _LARGE_FILES 1
5853 #include <sys/types.h>
5854 /* Check that off_t can represent 2**63 - 1 correctly.
5855 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5856 since some C++ compilers masquerading as C compilers
5857 incorrectly reject 9223372036854775807. */
5858 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5859 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5860 && LARGE_OFF_T % 2147483647 == 1)
5870 rm -f conftest.
$ac_objext
5871 if { (ac_try
="$ac_compile"
5873 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5874 *) ac_try_echo=$ac_try;;
5876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5877 (eval "$ac_compile") 2>conftest.er1
5879 grep -v '^ *+' conftest.er1 >conftest.err
5881 cat conftest.err >&5
5882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5883 (exit $ac_status); } && {
5884 test -z "$ac_c_werror_flag" ||
5885 test ! -s conftest.err
5886 } && test -s conftest.$ac_objext; then
5887 ac_cv_sys_large_files=1; break
5889 echo "$as_me: failed program was:" >&5
5890 sed 's/^/| /' conftest.$ac_ext >&5
5895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5896 ac_cv_sys_large_files=unknown
5900 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5901 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
5902 case $ac_cv_sys_large_files in #(
5905 cat >>confdefs.h <<_ACEOF
5906 #define _LARGE_FILES $ac_cv_sys_large_files
5916 ### The standard library on x86-64 and s390x GNU/Linux distributions can
5917 ### be located in either /usr/lib64 or /usr/lib.
5918 ### In some rare cases, /usr/lib64 exists but does not contain the
5919 ### relevant files (bug#1287). Hence test for crtn.o.
5920 case "${canonical}" in
5921 x86_64-*-linux-gnu* | s390x-*-linux-gnu* )
5922 if test -e /usr/lib64/crtn.o; then
5924 cat >>confdefs.h <<\_ACEOF
5925 #define HAVE_LIB64_DIR 1
5934 if test "${with_sound}" != "no"; then
5935 # Sound support for GNU/Linux and the free BSDs.
5939 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
5941 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
5942 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5943 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5944 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5945 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5946 echo $ECHO_N "(cached) $ECHO_C" >&6
5948 ac_res=`eval echo '${'$as_ac_Header'}'`
5949 { echo "$as_me:$LINENO: result: $ac_res" >&5
5950 echo "${ECHO_T}$ac_res" >&6; }
5952 # Is the header compilable?
5953 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5954 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5955 cat >conftest.$ac_ext <<_ACEOF
5958 cat confdefs.h >>conftest.$ac_ext
5959 cat >>conftest.$ac_ext <<_ACEOF
5960 /* end confdefs.h. */
5961 $ac_includes_default
5962 #include <$ac_header>
5964 rm -f conftest.$ac_objext
5965 if { (ac_try="$ac_compile"
5967 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5968 *) ac_try_echo
=$ac_try;;
5970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5971 (eval "$ac_compile") 2>conftest.er1
5973 grep -v '^ *+' conftest.er1
>conftest.err
5975 cat conftest.err
>&5
5976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5977 (exit $ac_status); } && {
5978 test -z "$ac_c_werror_flag" ||
5979 test ! -s conftest.err
5980 } && test -s conftest.
$ac_objext; then
5981 ac_header_compiler
=yes
5983 echo "$as_me: failed program was:" >&5
5984 sed 's/^/| /' conftest.
$ac_ext >&5
5986 ac_header_compiler
=no
5989 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5990 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5991 echo "${ECHO_T}$ac_header_compiler" >&6; }
5993 # Is the header present?
5994 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5995 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5996 cat >conftest.
$ac_ext <<_ACEOF
5999 cat confdefs.h
>>conftest.
$ac_ext
6000 cat >>conftest.
$ac_ext <<_ACEOF
6001 /* end confdefs.h. */
6002 #include <$ac_header>
6004 if { (ac_try
="$ac_cpp conftest.$ac_ext"
6006 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6007 *) ac_try_echo=$ac_try;;
6009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6010 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6012 grep -v '^ *+' conftest.er1 >conftest.err
6014 cat conftest.err >&5
6015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6016 (exit $ac_status); } >/dev/null && {
6017 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6018 test ! -s conftest.err
6020 ac_header_preproc=yes
6022 echo "$as_me: failed program was:" >&5
6023 sed 's/^/| /' conftest.$ac_ext >&5
6025 ac_header_preproc=no
6028 rm -f conftest.err conftest.$ac_ext
6029 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6030 echo "${ECHO_T}$ac_header_preproc" >&6; }
6032 # So? What about this header?
6033 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6035 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6036 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6037 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6038 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6039 ac_header_preproc=yes
6042 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6043 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6044 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6045 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6046 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6047 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6048 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6049 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6050 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6051 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6052 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6053 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6057 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6058 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6059 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6060 echo $ECHO_N "(cached) $ECHO_C" >&6
6062 eval "$as_ac_Header=\$ac_header_preproc"
6064 ac_res=`eval echo '${'$as_ac_Header'}'`
6065 { echo "$as_me:$LINENO: result: $ac_res" >&5
6066 echo "${ECHO_T}$ac_res" >&6; }
6069 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6070 cat >>confdefs.h <<_ACEOF
6071 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
6078 # Emulation library used on NetBSD.
6079 { echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
6080 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6; }
6081 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
6082 echo $ECHO_N "(cached) $ECHO_C" >&6
6084 ac_check_lib_save_LIBS=$LIBS
6085 LIBS="-lossaudio $LIBS"
6086 cat >conftest.$ac_ext <<_ACEOF
6089 cat confdefs.h >>conftest.$ac_ext
6090 cat >>conftest.$ac_ext <<_ACEOF
6091 /* end confdefs.h. */
6093 /* Override any GCC internal prototype to avoid an error.
6094 Use char because int might match the return type of a GCC
6095 builtin and then its argument prototype would still apply. */
6103 return _oss_ioctl ();
6108 rm -f conftest.$ac_objext conftest$ac_exeext
6109 if { (ac_try="$ac_link"
6111 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6112 *) ac_try_echo
=$ac_try;;
6114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6115 (eval "$ac_link") 2>conftest.er1
6117 grep -v '^ *+' conftest.er1
>conftest.err
6119 cat conftest.err
>&5
6120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6121 (exit $ac_status); } && {
6122 test -z "$ac_c_werror_flag" ||
6123 test ! -s conftest.err
6124 } && test -s conftest
$ac_exeext &&
6125 $as_test_x conftest
$ac_exeext; then
6126 ac_cv_lib_ossaudio__oss_ioctl
=yes
6128 echo "$as_me: failed program was:" >&5
6129 sed 's/^/| /' conftest.
$ac_ext >&5
6131 ac_cv_lib_ossaudio__oss_ioctl
=no
6134 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6135 conftest
$ac_exeext conftest.
$ac_ext
6136 LIBS
=$ac_check_lib_save_LIBS
6138 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6139 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6140 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
6149 ALSA_MODULES
="alsa >= $ALSA_REQUIRED"
6153 # Extract the first word of "pkg-config", so it can be a program name with args.
6154 set dummy pkg-config
; ac_word
=$2
6155 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6156 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6157 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6158 echo $ECHO_N "(cached) $ECHO_C" >&6
6162 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
6165 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6169 test -z "$as_dir" && as_dir
=.
6170 for ac_exec_ext
in '' $ac_executable_extensions; do
6171 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6172 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
6173 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6180 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
6184 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
6185 if test -n "$PKG_CONFIG"; then
6186 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6187 echo "${ECHO_T}$PKG_CONFIG" >&6; }
6189 { echo "$as_me:$LINENO: result: no" >&5
6190 echo "${ECHO_T}no" >&6; }
6195 if test "$PKG_CONFIG" = "no" ; then
6198 PKG_CONFIG_MIN_VERSION
=0.9.0
6199 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6200 { echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
6201 echo $ECHO_N "checking for $ALSA_MODULES... $ECHO_C" >&6; }
6203 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6204 { echo "$as_me:$LINENO: result: yes" >&5
6205 echo "${ECHO_T}yes" >&6; }
6208 { echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
6209 echo $ECHO_N "checking ALSA_CFLAGS... $ECHO_C" >&6; }
6210 ALSA_CFLAGS
=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6211 { echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
6212 echo "${ECHO_T}$ALSA_CFLAGS" >&6; }
6214 { echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
6215 echo $ECHO_N "checking ALSA_LIBS... $ECHO_C" >&6; }
6216 ALSA_LIBS
=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6217 { echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
6218 echo "${ECHO_T}$ALSA_LIBS" >&6; }
6220 { echo "$as_me:$LINENO: result: no" >&5
6221 echo "${ECHO_T}no" >&6; }
6224 ## If we have a custom action on failure, don't print errors, but
6225 ## do set a variable so people can do so.
6226 ALSA_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6233 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6234 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6238 if test $succeeded = yes; then
6244 if test $HAVE_ALSA = yes; then
6245 SAVE_CFLAGS
="$CFLAGS"
6246 SAVE_LDFLAGS
="$LDFLAGS"
6247 CFLAGS
="$ALSA_CFLAGS $CFLAGS"
6248 LDFLAGS
="$ALSA_LIBS $LDFLAGS"
6249 cat >conftest.
$ac_ext <<_ACEOF
6252 cat confdefs.h
>>conftest.
$ac_ext
6253 cat >>conftest.
$ac_ext <<_ACEOF
6254 /* end confdefs.h. */
6255 #include <asoundlib.h>
6259 snd_lib_error_set_handler (0);
6264 rm -f conftest.
$ac_objext
6265 if { (ac_try
="$ac_compile"
6267 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6268 *) ac_try_echo=$ac_try;;
6270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6271 (eval "$ac_compile") 2>conftest.er1
6273 grep -v '^ *+' conftest.er1 >conftest.err
6275 cat conftest.err >&5
6276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6277 (exit $ac_status); } && {
6278 test -z "$ac_c_werror_flag" ||
6279 test ! -s conftest.err
6280 } && test -s conftest.$ac_objext; then
6281 emacs_alsa_normal=yes
6283 echo "$as_me: failed program was:" >&5
6284 sed 's/^/| /' conftest.$ac_ext >&5
6286 emacs_alsa_normal=no
6289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6290 if test "$emacs_alsa_normal" != yes; then
6291 cat >conftest.$ac_ext <<_ACEOF
6294 cat confdefs.h >>conftest.$ac_ext
6295 cat >>conftest.$ac_ext <<_ACEOF
6296 /* end confdefs.h. */
6297 #include <alsa/asoundlib.h>
6301 snd_lib_error_set_handler (0);
6306 rm -f conftest.$ac_objext
6307 if { (ac_try="$ac_compile"
6309 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6310 *) ac_try_echo
=$ac_try;;
6312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6313 (eval "$ac_compile") 2>conftest.er1
6315 grep -v '^ *+' conftest.er1
>conftest.err
6317 cat conftest.err
>&5
6318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6319 (exit $ac_status); } && {
6320 test -z "$ac_c_werror_flag" ||
6321 test ! -s conftest.err
6322 } && test -s conftest.
$ac_objext; then
6323 emacs_alsa_subdir
=yes
6325 echo "$as_me: failed program was:" >&5
6326 sed 's/^/| /' conftest.
$ac_ext >&5
6328 emacs_alsa_subdir
=no
6331 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6332 if test "$emacs_alsa_subdir" != yes; then
6333 { { echo "$as_me:$LINENO: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&5
6334 echo "$as_me: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&2;}
6335 { (exit 1); exit 1; }; }
6337 ALSA_CFLAGS
="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6340 CFLAGS
="$SAVE_CFLAGS"
6341 LDFLAGS
="$SAVE_LDFLAGS"
6342 LIBSOUND
="$LIBSOUND $ALSA_LIBS"
6343 CFLAGS_SOUND
="$CFLAGS_SOUND $ALSA_CFLAGS"
6345 cat >>confdefs.h
<<\_ACEOF
6378 for ac_header
in sys
/select.h sys
/timeb.h sys
/time.h unistd.h utime.h \
6379 linux
/version.h sys
/systeminfo.h termios.h limits.h string.h stdlib.h \
6380 termcap.h stdio_ext.h fcntl.h
strings.h coff.h pty.h sys
/mman.h \
6381 sys
/param.h sys
/vlimit.h sys
/resource.h locale.h sys
/_mbstate_t.h \
6384 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6385 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6386 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6387 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6388 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6389 echo $ECHO_N "(cached) $ECHO_C" >&6
6391 ac_res
=`eval echo '${'$as_ac_Header'}'`
6392 { echo "$as_me:$LINENO: result: $ac_res" >&5
6393 echo "${ECHO_T}$ac_res" >&6; }
6395 # Is the header compilable?
6396 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6397 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6398 cat >conftest.
$ac_ext <<_ACEOF
6401 cat confdefs.h
>>conftest.
$ac_ext
6402 cat >>conftest.
$ac_ext <<_ACEOF
6403 /* end confdefs.h. */
6404 $ac_includes_default
6405 #include <$ac_header>
6407 rm -f conftest.
$ac_objext
6408 if { (ac_try
="$ac_compile"
6410 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6411 *) ac_try_echo=$ac_try;;
6413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6414 (eval "$ac_compile") 2>conftest.er1
6416 grep -v '^ *+' conftest.er1 >conftest.err
6418 cat conftest.err >&5
6419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6420 (exit $ac_status); } && {
6421 test -z "$ac_c_werror_flag" ||
6422 test ! -s conftest.err
6423 } && test -s conftest.$ac_objext; then
6424 ac_header_compiler=yes
6426 echo "$as_me: failed program was:" >&5
6427 sed 's/^/| /' conftest.$ac_ext >&5
6429 ac_header_compiler=no
6432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6433 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6434 echo "${ECHO_T}$ac_header_compiler" >&6; }
6436 # Is the header present?
6437 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6438 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6439 cat >conftest.$ac_ext <<_ACEOF
6442 cat confdefs.h >>conftest.$ac_ext
6443 cat >>conftest.$ac_ext <<_ACEOF
6444 /* end confdefs.h. */
6445 #include <$ac_header>
6447 if { (ac_try="$ac_cpp conftest.$ac_ext"
6449 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6450 *) ac_try_echo
=$ac_try;;
6452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6453 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6455 grep -v '^ *+' conftest.er1
>conftest.err
6457 cat conftest.err
>&5
6458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6459 (exit $ac_status); } >/dev
/null
&& {
6460 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6461 test ! -s conftest.err
6463 ac_header_preproc
=yes
6465 echo "$as_me: failed program was:" >&5
6466 sed 's/^/| /' conftest.
$ac_ext >&5
6468 ac_header_preproc
=no
6471 rm -f conftest.err conftest.
$ac_ext
6472 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6473 echo "${ECHO_T}$ac_header_preproc" >&6; }
6475 # So? What about this header?
6476 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6478 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6479 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6480 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6481 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6482 ac_header_preproc
=yes
6485 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6486 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6487 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6488 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6489 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6490 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6491 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6492 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6493 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6494 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6495 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6496 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6500 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6501 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6502 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6503 echo $ECHO_N "(cached) $ECHO_C" >&6
6505 eval "$as_ac_Header=\$ac_header_preproc"
6507 ac_res
=`eval echo '${'$as_ac_Header'}'`
6508 { echo "$as_me:$LINENO: result: $ac_res" >&5
6509 echo "${ECHO_T}$ac_res" >&6; }
6512 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6513 cat >>confdefs.h
<<_ACEOF
6514 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6522 { echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
6523 echo $ECHO_N "checking if personality LINUX32 can be set... $ECHO_C" >&6; }
6524 cat >conftest.
$ac_ext <<_ACEOF
6527 cat confdefs.h
>>conftest.
$ac_ext
6528 cat >>conftest.
$ac_ext <<_ACEOF
6529 /* end confdefs.h. */
6530 #include <sys/personality.h>
6534 personality (PER_LINUX32)
6539 rm -f conftest.
$ac_objext
6540 if { (ac_try
="$ac_compile"
6542 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6543 *) ac_try_echo=$ac_try;;
6545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6546 (eval "$ac_compile") 2>conftest.er1
6548 grep -v '^ *+' conftest.er1 >conftest.err
6550 cat conftest.err >&5
6551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6552 (exit $ac_status); } && {
6553 test -z "$ac_c_werror_flag" ||
6554 test ! -s conftest.err
6555 } && test -s conftest.$ac_objext; then
6556 emacs_cv_personality_linux32=yes
6558 echo "$as_me: failed program was:" >&5
6559 sed 's/^/| /' conftest.$ac_ext >&5
6561 emacs_cv_personality_linux32=no
6564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6565 { echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
6566 echo "${ECHO_T}$emacs_cv_personality_linux32" >&6; }
6568 if test $emacs_cv_personality_linux32 = yes; then
6570 cat >>confdefs.h <<\_ACEOF
6571 #define HAVE_PERSONALITY_LINUX32 1
6577 for ac_header in term.h
6579 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
6580 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6581 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6582 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6583 echo $ECHO_N "(cached) $ECHO_C" >&6
6585 cat >conftest.$ac_ext <<_ACEOF
6588 cat confdefs.h >>conftest.$ac_ext
6589 cat >>conftest.$ac_ext <<_ACEOF
6590 /* end confdefs.h. */
6591 #include <$ac_header>
6593 if { (ac_try="$ac_cpp conftest.$ac_ext"
6595 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6596 *) ac_try_echo
=$ac_try;;
6598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6599 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6601 grep -v '^ *+' conftest.er1
>conftest.err
6603 cat conftest.err
>&5
6604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6605 (exit $ac_status); } >/dev
/null
&& {
6606 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6607 test ! -s conftest.err
6609 eval "$as_ac_Header=yes"
6611 echo "$as_me: failed program was:" >&5
6612 sed 's/^/| /' conftest.
$ac_ext >&5
6614 eval "$as_ac_Header=no"
6617 rm -f conftest.err conftest.
$ac_ext
6619 ac_res
=`eval echo '${'$as_ac_Header'}'`
6620 { echo "$as_me:$LINENO: result: $ac_res" >&5
6621 echo "${ECHO_T}$ac_res" >&6; }
6622 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6623 cat >>confdefs.h
<<_ACEOF
6624 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6631 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6632 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6633 if test "${ac_cv_header_stdc+set}" = set; then
6634 echo $ECHO_N "(cached) $ECHO_C" >&6
6636 cat >conftest.
$ac_ext <<_ACEOF
6639 cat confdefs.h
>>conftest.
$ac_ext
6640 cat >>conftest.
$ac_ext <<_ACEOF
6641 /* end confdefs.h. */
6655 rm -f conftest.
$ac_objext
6656 if { (ac_try
="$ac_compile"
6658 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6659 *) ac_try_echo=$ac_try;;
6661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6662 (eval "$ac_compile") 2>conftest.er1
6664 grep -v '^ *+' conftest.er1 >conftest.err
6666 cat conftest.err >&5
6667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6668 (exit $ac_status); } && {
6669 test -z "$ac_c_werror_flag" ||
6670 test ! -s conftest.err
6671 } && test -s conftest.$ac_objext; then
6672 ac_cv_header_stdc=yes
6674 echo "$as_me: failed program was:" >&5
6675 sed 's/^/| /' conftest.$ac_ext >&5
6677 ac_cv_header_stdc=no
6680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6682 if test $ac_cv_header_stdc = yes; then
6683 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6684 cat >conftest.$ac_ext <<_ACEOF
6687 cat confdefs.h >>conftest.$ac_ext
6688 cat >>conftest.$ac_ext <<_ACEOF
6689 /* end confdefs.h. */
6693 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6694 $EGREP "memchr" >/dev/null 2>&1; then
6697 ac_cv_header_stdc=no
6703 if test $ac_cv_header_stdc = yes; then
6704 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6705 cat >conftest.$ac_ext <<_ACEOF
6708 cat confdefs.h >>conftest.$ac_ext
6709 cat >>conftest.$ac_ext <<_ACEOF
6710 /* end confdefs.h. */
6714 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6715 $EGREP "free" >/dev/null 2>&1; then
6718 ac_cv_header_stdc=no
6724 if test $ac_cv_header_stdc = yes; then
6725 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6726 if test "$cross_compiling" = yes; then
6729 cat >conftest.$ac_ext <<_ACEOF
6732 cat confdefs.h >>conftest.$ac_ext
6733 cat >>conftest.$ac_ext <<_ACEOF
6734 /* end confdefs.h. */
6737 #if ((' ' & 0x0FF) == 0x020)
6738 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6739 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6741 # define ISLOWER(c) \
6742 (('a' <= (c) && (c) <= 'i') \
6743 || ('j' <= (c) && (c) <= 'r') \
6744 || ('s' <= (c) && (c) <= 'z'))
6745 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6748 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6753 for (i = 0; i < 256; i++)
6754 if (XOR (islower (i), ISLOWER (i))
6755 || toupper (i) != TOUPPER (i))
6760 rm -f conftest$ac_exeext
6761 if { (ac_try="$ac_link"
6763 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6764 *) ac_try_echo
=$ac_try;;
6766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6767 (eval "$ac_link") 2>&5
6769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6770 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6771 { (case "(($ac_try" in
6772 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6773 *) ac_try_echo=$ac_try;;
6775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6776 (eval "$ac_try") 2>&5
6778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6779 (exit $ac_status); }; }; then
6782 echo "$as_me: program exited with status $ac_status" >&5
6783 echo "$as_me: failed program was:" >&5
6784 sed 's/^/| /' conftest.$ac_ext >&5
6787 ac_cv_header_stdc=no
6789 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6795 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6796 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6797 if test $ac_cv_header_stdc = yes; then
6799 cat >>confdefs.h <<\_ACEOF
6800 #define STDC_HEADERS 1
6805 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6806 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
6807 if test "${ac_cv_header_time+set}" = set; then
6808 echo $ECHO_N "(cached) $ECHO_C" >&6
6810 cat >conftest.$ac_ext <<_ACEOF
6813 cat confdefs.h >>conftest.$ac_ext
6814 cat >>conftest.$ac_ext <<_ACEOF
6815 /* end confdefs.h. */
6816 #include <sys/types.h>
6817 #include <sys/time.h>
6823 if ((struct tm *) 0)
6829 rm -f conftest.$ac_objext
6830 if { (ac_try="$ac_compile"
6832 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6833 *) ac_try_echo
=$ac_try;;
6835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6836 (eval "$ac_compile") 2>conftest.er1
6838 grep -v '^ *+' conftest.er1
>conftest.err
6840 cat conftest.err
>&5
6841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6842 (exit $ac_status); } && {
6843 test -z "$ac_c_werror_flag" ||
6844 test ! -s conftest.err
6845 } && test -s conftest.
$ac_objext; then
6846 ac_cv_header_time
=yes
6848 echo "$as_me: failed program was:" >&5
6849 sed 's/^/| /' conftest.
$ac_ext >&5
6851 ac_cv_header_time
=no
6854 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6856 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
6857 echo "${ECHO_T}$ac_cv_header_time" >&6; }
6858 if test $ac_cv_header_time = yes; then
6860 cat >>confdefs.h
<<\_ACEOF
6861 #define TIME_WITH_SYS_TIME 1
6866 { echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
6867 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6; }
6868 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
6869 echo $ECHO_N "(cached) $ECHO_C" >&6
6871 cat >conftest.
$ac_ext <<_ACEOF
6874 cat confdefs.h
>>conftest.
$ac_ext
6875 cat >>conftest.
$ac_ext <<_ACEOF
6876 /* end confdefs.h. */
6877 $ac_includes_default
6889 rm -f conftest.
$ac_objext
6890 if { (ac_try
="$ac_compile"
6892 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6893 *) ac_try_echo=$ac_try;;
6895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6896 (eval "$ac_compile") 2>conftest.er1
6898 grep -v '^ *+' conftest.er1 >conftest.err
6900 cat conftest.err >&5
6901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6902 (exit $ac_status); } && {
6903 test -z "$ac_c_werror_flag" ||
6904 test ! -s conftest.err
6905 } && test -s conftest.$ac_objext; then
6906 ac_cv_have_decl_sys_siglist=yes
6908 echo "$as_me: failed program was:" >&5
6909 sed 's/^/| /' conftest.$ac_ext >&5
6911 ac_cv_have_decl_sys_siglist=no
6914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6916 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
6917 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6; }
6918 if test $ac_cv_have_decl_sys_siglist = yes; then
6920 cat >>confdefs.h <<_ACEOF
6921 #define HAVE_DECL_SYS_SIGLIST 1
6926 cat >>confdefs.h <<_ACEOF
6927 #define HAVE_DECL_SYS_SIGLIST 0
6934 if test $ac_cv_have_decl_sys_siglist != yes; then
6935 # For Tru64, at least:
6936 { echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
6937 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6; }
6938 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
6939 echo $ECHO_N "(cached) $ECHO_C" >&6
6941 cat >conftest.$ac_ext <<_ACEOF
6944 cat confdefs.h >>conftest.$ac_ext
6945 cat >>conftest.$ac_ext <<_ACEOF
6946 /* end confdefs.h. */
6947 $ac_includes_default
6951 #ifndef __sys_siglist
6952 (void) __sys_siglist;
6959 rm -f conftest.$ac_objext
6960 if { (ac_try="$ac_compile"
6962 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6963 *) ac_try_echo
=$ac_try;;
6965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6966 (eval "$ac_compile") 2>conftest.er1
6968 grep -v '^ *+' conftest.er1
>conftest.err
6970 cat conftest.err
>&5
6971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6972 (exit $ac_status); } && {
6973 test -z "$ac_c_werror_flag" ||
6974 test ! -s conftest.err
6975 } && test -s conftest.
$ac_objext; then
6976 ac_cv_have_decl___sys_siglist
=yes
6978 echo "$as_me: failed program was:" >&5
6979 sed 's/^/| /' conftest.
$ac_ext >&5
6981 ac_cv_have_decl___sys_siglist
=no
6984 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6986 { echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
6987 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6; }
6988 if test $ac_cv_have_decl___sys_siglist = yes; then
6990 cat >>confdefs.h
<<_ACEOF
6991 #define HAVE_DECL___SYS_SIGLIST 1
6996 cat >>confdefs.h
<<_ACEOF
6997 #define HAVE_DECL___SYS_SIGLIST 0
7004 if test $ac_cv_have_decl___sys_siglist = yes; then
7006 cat >>confdefs.h
<<\_ACEOF
7007 #define sys_siglist __sys_siglist
7012 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7013 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
7014 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7015 echo $ECHO_N "(cached) $ECHO_C" >&6
7017 cat >conftest.
$ac_ext <<_ACEOF
7020 cat confdefs.h
>>conftest.
$ac_ext
7021 cat >>conftest.
$ac_ext <<_ACEOF
7022 /* end confdefs.h. */
7023 #include <sys/types.h>
7024 #include <sys/wait.h>
7026 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7029 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7037 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7042 rm -f conftest.
$ac_objext
7043 if { (ac_try
="$ac_compile"
7045 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7046 *) ac_try_echo=$ac_try;;
7048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7049 (eval "$ac_compile") 2>conftest.er1
7051 grep -v '^ *+' conftest.er1 >conftest.err
7053 cat conftest.err >&5
7054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7055 (exit $ac_status); } && {
7056 test -z "$ac_c_werror_flag" ||
7057 test ! -s conftest.err
7058 } && test -s conftest.$ac_objext; then
7059 ac_cv_header_sys_wait_h=yes
7061 echo "$as_me: failed program was:" >&5
7062 sed 's/^/| /' conftest.$ac_ext >&5
7064 ac_cv_header_sys_wait_h=no
7067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7069 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7070 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
7071 if test $ac_cv_header_sys_wait_h = yes; then
7073 cat >>confdefs.h <<\_ACEOF
7074 #define HAVE_SYS_WAIT_H 1
7080 { echo "$as_me:$LINENO: checking for struct utimbuf" >&5
7081 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6; }
7082 if test "${emacs_cv_struct_utimbuf+set}" = set; then
7083 echo $ECHO_N "(cached) $ECHO_C" >&6
7085 cat >conftest.$ac_ext <<_ACEOF
7088 cat confdefs.h >>conftest.$ac_ext
7089 cat >>conftest.$ac_ext <<_ACEOF
7090 /* end confdefs.h. */
7091 #ifdef TIME_WITH_SYS_TIME
7092 #include <sys/time.h>
7095 #ifdef HAVE_SYS_TIME_H
7096 #include <sys/time.h>
7107 static struct utimbuf x; x.actime = x.modtime;
7112 rm -f conftest.$ac_objext
7113 if { (ac_try="$ac_compile"
7115 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7116 *) ac_try_echo
=$ac_try;;
7118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7119 (eval "$ac_compile") 2>conftest.er1
7121 grep -v '^ *+' conftest.er1
>conftest.err
7123 cat conftest.err
>&5
7124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7125 (exit $ac_status); } && {
7126 test -z "$ac_c_werror_flag" ||
7127 test ! -s conftest.err
7128 } && test -s conftest.
$ac_objext; then
7129 emacs_cv_struct_utimbuf
=yes
7131 echo "$as_me: failed program was:" >&5
7132 sed 's/^/| /' conftest.
$ac_ext >&5
7134 emacs_cv_struct_utimbuf
=no
7137 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7139 { echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
7140 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6; }
7141 if test $emacs_cv_struct_utimbuf = yes; then
7143 cat >>confdefs.h
<<\_ACEOF
7144 #define HAVE_STRUCT_UTIMBUF 1
7149 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7150 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
7151 if test "${ac_cv_type_signal+set}" = set; then
7152 echo $ECHO_N "(cached) $ECHO_C" >&6
7154 cat >conftest.
$ac_ext <<_ACEOF
7157 cat confdefs.h
>>conftest.
$ac_ext
7158 cat >>conftest.
$ac_ext <<_ACEOF
7159 /* end confdefs.h. */
7160 #include <sys/types.h>
7166 return *(signal (0, 0)) (0) == 1;
7171 rm -f conftest.
$ac_objext
7172 if { (ac_try
="$ac_compile"
7174 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7175 *) ac_try_echo=$ac_try;;
7177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7178 (eval "$ac_compile") 2>conftest.er1
7180 grep -v '^ *+' conftest.er1 >conftest.err
7182 cat conftest.err >&5
7183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7184 (exit $ac_status); } && {
7185 test -z "$ac_c_werror_flag" ||
7186 test ! -s conftest.err
7187 } && test -s conftest.$ac_objext; then
7188 ac_cv_type_signal=int
7190 echo "$as_me: failed program was:" >&5
7191 sed 's/^/| /' conftest.$ac_ext >&5
7193 ac_cv_type_signal=void
7196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7198 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7199 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
7201 cat >>confdefs.h <<_ACEOF
7202 #define RETSIGTYPE $ac_cv_type_signal
7207 { echo "$as_me:$LINENO: checking for speed_t" >&5
7208 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6; }
7209 if test "${emacs_cv_speed_t+set}" = set; then
7210 echo $ECHO_N "(cached) $ECHO_C" >&6
7212 cat >conftest.$ac_ext <<_ACEOF
7215 cat confdefs.h >>conftest.$ac_ext
7216 cat >>conftest.$ac_ext <<_ACEOF
7217 /* end confdefs.h. */
7218 #include <termios.h>
7227 rm -f conftest.$ac_objext
7228 if { (ac_try="$ac_compile"
7230 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7231 *) ac_try_echo
=$ac_try;;
7233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7234 (eval "$ac_compile") 2>conftest.er1
7236 grep -v '^ *+' conftest.er1
>conftest.err
7238 cat conftest.err
>&5
7239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7240 (exit $ac_status); } && {
7241 test -z "$ac_c_werror_flag" ||
7242 test ! -s conftest.err
7243 } && test -s conftest.
$ac_objext; then
7244 emacs_cv_speed_t
=yes
7246 echo "$as_me: failed program was:" >&5
7247 sed 's/^/| /' conftest.
$ac_ext >&5
7252 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7254 { echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
7255 echo "${ECHO_T}$emacs_cv_speed_t" >&6; }
7256 if test $emacs_cv_speed_t = yes; then
7258 cat >>confdefs.h
<<\_ACEOF
7259 #define HAVE_SPEED_T 1
7264 { echo "$as_me:$LINENO: checking for struct timeval" >&5
7265 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6; }
7266 if test "${emacs_cv_struct_timeval+set}" = set; then
7267 echo $ECHO_N "(cached) $ECHO_C" >&6
7269 cat >conftest.
$ac_ext <<_ACEOF
7272 cat confdefs.h
>>conftest.
$ac_ext
7273 cat >>conftest.
$ac_ext <<_ACEOF
7274 /* end confdefs.h. */
7275 #ifdef TIME_WITH_SYS_TIME
7276 #include <sys/time.h>
7279 #ifdef HAVE_SYS_TIME_H
7280 #include <sys/time.h>
7288 static struct timeval x; x.tv_sec = x.tv_usec;
7293 rm -f conftest.
$ac_objext
7294 if { (ac_try
="$ac_compile"
7296 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7297 *) ac_try_echo=$ac_try;;
7299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7300 (eval "$ac_compile") 2>conftest.er1
7302 grep -v '^ *+' conftest.er1 >conftest.err
7304 cat conftest.err >&5
7305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7306 (exit $ac_status); } && {
7307 test -z "$ac_c_werror_flag" ||
7308 test ! -s conftest.err
7309 } && test -s conftest.$ac_objext; then
7310 emacs_cv_struct_timeval=yes
7312 echo "$as_me: failed program was:" >&5
7313 sed 's/^/| /' conftest.$ac_ext >&5
7315 emacs_cv_struct_timeval=no
7318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7320 { echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
7321 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6; }
7322 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7323 if test $emacs_cv_struct_timeval = yes; then
7325 cat >>confdefs.h <<\_ACEOF
7326 #define HAVE_TIMEVAL 1
7331 { echo "$as_me:$LINENO: checking for struct exception" >&5
7332 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6; }
7333 if test "${emacs_cv_struct_exception+set}" = set; then
7334 echo $ECHO_N "(cached) $ECHO_C" >&6
7336 cat >conftest.$ac_ext <<_ACEOF
7339 cat confdefs.h >>conftest.$ac_ext
7340 cat >>conftest.$ac_ext <<_ACEOF
7341 /* end confdefs.h. */
7346 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7358 (eval "$ac_compile") 2>conftest.er1
7360 grep -v '^ *+' conftest.er1
>conftest.err
7362 cat conftest.err
>&5
7363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7364 (exit $ac_status); } && {
7365 test -z "$ac_c_werror_flag" ||
7366 test ! -s conftest.err
7367 } && test -s conftest.
$ac_objext; then
7368 emacs_cv_struct_exception
=yes
7370 echo "$as_me: failed program was:" >&5
7371 sed 's/^/| /' conftest.
$ac_ext >&5
7373 emacs_cv_struct_exception
=no
7376 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7378 { echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
7379 echo "${ECHO_T}$emacs_cv_struct_exception" >&6; }
7380 HAVE_EXCEPTION
=$emacs_cv_struct_exception
7381 if test $emacs_cv_struct_exception != yes; then
7383 cat >>confdefs.h
<<\_ACEOF
7384 #define NO_MATHERR 1
7390 for ac_header
in sys
/socket.h
7392 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7393 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7394 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7395 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7396 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7397 echo $ECHO_N "(cached) $ECHO_C" >&6
7399 ac_res
=`eval echo '${'$as_ac_Header'}'`
7400 { echo "$as_me:$LINENO: result: $ac_res" >&5
7401 echo "${ECHO_T}$ac_res" >&6; }
7403 # Is the header compilable?
7404 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7405 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7406 cat >conftest.
$ac_ext <<_ACEOF
7409 cat confdefs.h
>>conftest.
$ac_ext
7410 cat >>conftest.
$ac_ext <<_ACEOF
7411 /* end confdefs.h. */
7412 $ac_includes_default
7413 #include <$ac_header>
7415 rm -f conftest.
$ac_objext
7416 if { (ac_try
="$ac_compile"
7418 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7419 *) ac_try_echo=$ac_try;;
7421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7422 (eval "$ac_compile") 2>conftest.er1
7424 grep -v '^ *+' conftest.er1 >conftest.err
7426 cat conftest.err >&5
7427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7428 (exit $ac_status); } && {
7429 test -z "$ac_c_werror_flag" ||
7430 test ! -s conftest.err
7431 } && test -s conftest.$ac_objext; then
7432 ac_header_compiler=yes
7434 echo "$as_me: failed program was:" >&5
7435 sed 's/^/| /' conftest.$ac_ext >&5
7437 ac_header_compiler=no
7440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7441 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7442 echo "${ECHO_T}$ac_header_compiler" >&6; }
7444 # Is the header present?
7445 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7446 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7447 cat >conftest.$ac_ext <<_ACEOF
7450 cat confdefs.h >>conftest.$ac_ext
7451 cat >>conftest.$ac_ext <<_ACEOF
7452 /* end confdefs.h. */
7453 #include <$ac_header>
7455 if { (ac_try="$ac_cpp conftest.$ac_ext"
7457 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7458 *) ac_try_echo
=$ac_try;;
7460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7461 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7463 grep -v '^ *+' conftest.er1
>conftest.err
7465 cat conftest.err
>&5
7466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7467 (exit $ac_status); } >/dev
/null
&& {
7468 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7469 test ! -s conftest.err
7471 ac_header_preproc
=yes
7473 echo "$as_me: failed program was:" >&5
7474 sed 's/^/| /' conftest.
$ac_ext >&5
7476 ac_header_preproc
=no
7479 rm -f conftest.err conftest.
$ac_ext
7480 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7481 echo "${ECHO_T}$ac_header_preproc" >&6; }
7483 # So? What about this header?
7484 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7486 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7487 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7488 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7489 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7490 ac_header_preproc
=yes
7493 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7494 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7495 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7496 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7497 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7498 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7499 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7500 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7501 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7502 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7503 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7504 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7508 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7509 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7510 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7511 echo $ECHO_N "(cached) $ECHO_C" >&6
7513 eval "$as_ac_Header=\$ac_header_preproc"
7515 ac_res
=`eval echo '${'$as_ac_Header'}'`
7516 { echo "$as_me:$LINENO: result: $ac_res" >&5
7517 echo "${ECHO_T}$ac_res" >&6; }
7520 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7521 cat >>confdefs.h
<<_ACEOF
7522 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7530 for ac_header
in net
/if.h
7532 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7533 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7534 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7535 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7536 echo $ECHO_N "(cached) $ECHO_C" >&6
7538 cat >conftest.
$ac_ext <<_ACEOF
7541 cat confdefs.h
>>conftest.
$ac_ext
7542 cat >>conftest.
$ac_ext <<_ACEOF
7543 /* end confdefs.h. */
7544 $ac_includes_default
7545 #if HAVE_SYS_SOCKET_H
7546 #include <sys/socket.h>
7549 #include <$ac_header>
7551 rm -f conftest.
$ac_objext
7552 if { (ac_try
="$ac_compile"
7554 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7555 *) ac_try_echo=$ac_try;;
7557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7558 (eval "$ac_compile") 2>conftest.er1
7560 grep -v '^ *+' conftest.er1 >conftest.err
7562 cat conftest.err >&5
7563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7564 (exit $ac_status); } && {
7565 test -z "$ac_c_werror_flag" ||
7566 test ! -s conftest.err
7567 } && test -s conftest.$ac_objext; then
7568 eval "$as_ac_Header=yes"
7570 echo "$as_me: failed program was:" >&5
7571 sed 's/^/| /' conftest.$ac_ext >&5
7573 eval "$as_ac_Header=no"
7576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7578 ac_res=`eval echo '${'$as_ac_Header'}'`
7579 { echo "$as_me:$LINENO: result: $ac_res" >&5
7580 echo "${ECHO_T}$ac_res" >&6; }
7581 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7582 cat >>confdefs.h <<_ACEOF
7583 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
7591 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7592 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
7593 if test "${ac_cv_struct_tm+set}" = set; then
7594 echo $ECHO_N "(cached) $ECHO_C" >&6
7596 cat >conftest.$ac_ext <<_ACEOF
7599 cat confdefs.h >>conftest.$ac_ext
7600 cat >>conftest.$ac_ext <<_ACEOF
7601 /* end confdefs.h. */
7602 #include <sys/types.h>
7609 int *p = &tm.tm_sec;
7615 rm -f conftest.$ac_objext
7616 if { (ac_try="$ac_compile"
7618 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7619 *) ac_try_echo
=$ac_try;;
7621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7622 (eval "$ac_compile") 2>conftest.er1
7624 grep -v '^ *+' conftest.er1
>conftest.err
7626 cat conftest.err
>&5
7627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7628 (exit $ac_status); } && {
7629 test -z "$ac_c_werror_flag" ||
7630 test ! -s conftest.err
7631 } && test -s conftest.
$ac_objext; then
7632 ac_cv_struct_tm
=time.h
7634 echo "$as_me: failed program was:" >&5
7635 sed 's/^/| /' conftest.
$ac_ext >&5
7637 ac_cv_struct_tm
=sys
/time.h
7640 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7642 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7643 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
7644 if test $ac_cv_struct_tm = sys
/time.h
; then
7646 cat >>confdefs.h
<<\_ACEOF
7647 #define TM_IN_SYS_TIME 1
7652 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
7653 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
7654 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
7655 echo $ECHO_N "(cached) $ECHO_C" >&6
7657 cat >conftest.
$ac_ext <<_ACEOF
7660 cat confdefs.h
>>conftest.
$ac_ext
7661 cat >>conftest.
$ac_ext <<_ACEOF
7662 /* end confdefs.h. */
7663 #include <sys/types.h>
7664 #include <$ac_cv_struct_tm>
7670 static struct tm ac_aggr;
7671 if (ac_aggr.tm_zone)
7677 rm -f conftest.
$ac_objext
7678 if { (ac_try
="$ac_compile"
7680 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7681 *) ac_try_echo=$ac_try;;
7683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7684 (eval "$ac_compile") 2>conftest.er1
7686 grep -v '^ *+' conftest.er1 >conftest.err
7688 cat conftest.err >&5
7689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7690 (exit $ac_status); } && {
7691 test -z "$ac_c_werror_flag" ||
7692 test ! -s conftest.err
7693 } && test -s conftest.$ac_objext; then
7694 ac_cv_member_struct_tm_tm_zone=yes
7696 echo "$as_me: failed program was:" >&5
7697 sed 's/^/| /' conftest.$ac_ext >&5
7699 cat >conftest.$ac_ext <<_ACEOF
7702 cat confdefs.h >>conftest.$ac_ext
7703 cat >>conftest.$ac_ext <<_ACEOF
7704 /* end confdefs.h. */
7705 #include <sys/types.h>
7706 #include <$ac_cv_struct_tm>
7712 static struct tm ac_aggr;
7713 if (sizeof ac_aggr.tm_zone)
7719 rm -f conftest.$ac_objext
7720 if { (ac_try="$ac_compile"
7722 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7723 *) ac_try_echo
=$ac_try;;
7725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7726 (eval "$ac_compile") 2>conftest.er1
7728 grep -v '^ *+' conftest.er1
>conftest.err
7730 cat conftest.err
>&5
7731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7732 (exit $ac_status); } && {
7733 test -z "$ac_c_werror_flag" ||
7734 test ! -s conftest.err
7735 } && test -s conftest.
$ac_objext; then
7736 ac_cv_member_struct_tm_tm_zone
=yes
7738 echo "$as_me: failed program was:" >&5
7739 sed 's/^/| /' conftest.
$ac_ext >&5
7741 ac_cv_member_struct_tm_tm_zone
=no
7744 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7747 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7749 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
7750 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
7751 if test $ac_cv_member_struct_tm_tm_zone = yes; then
7753 cat >>confdefs.h
<<_ACEOF
7754 #define HAVE_STRUCT_TM_TM_ZONE 1
7760 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7762 cat >>confdefs.h
<<\_ACEOF
7763 #define HAVE_TM_ZONE 1
7767 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
7768 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
7769 if test "${ac_cv_have_decl_tzname+set}" = set; then
7770 echo $ECHO_N "(cached) $ECHO_C" >&6
7772 cat >conftest.
$ac_ext <<_ACEOF
7775 cat confdefs.h
>>conftest.
$ac_ext
7776 cat >>conftest.
$ac_ext <<_ACEOF
7777 /* end confdefs.h. */
7791 rm -f conftest.
$ac_objext
7792 if { (ac_try
="$ac_compile"
7794 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7795 *) ac_try_echo=$ac_try;;
7797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7798 (eval "$ac_compile") 2>conftest.er1
7800 grep -v '^ *+' conftest.er1 >conftest.err
7802 cat conftest.err >&5
7803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7804 (exit $ac_status); } && {
7805 test -z "$ac_c_werror_flag" ||
7806 test ! -s conftest.err
7807 } && test -s conftest.$ac_objext; then
7808 ac_cv_have_decl_tzname=yes
7810 echo "$as_me: failed program was:" >&5
7811 sed 's/^/| /' conftest.$ac_ext >&5
7813 ac_cv_have_decl_tzname=no
7816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7818 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
7819 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
7820 if test $ac_cv_have_decl_tzname = yes; then
7822 cat >>confdefs.h <<_ACEOF
7823 #define HAVE_DECL_TZNAME 1
7828 cat >>confdefs.h <<_ACEOF
7829 #define HAVE_DECL_TZNAME 0
7836 { echo "$as_me:$LINENO: checking for tzname" >&5
7837 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
7838 if test "${ac_cv_var_tzname+set}" = set; then
7839 echo $ECHO_N "(cached) $ECHO_C" >&6
7841 cat >conftest.$ac_ext <<_ACEOF
7844 cat confdefs.h >>conftest.$ac_ext
7845 cat >>conftest.$ac_ext <<_ACEOF
7846 /* end confdefs.h. */
7848 #if !HAVE_DECL_TZNAME
7849 extern char *tzname[];
7855 return tzname[0][0];
7860 rm -f conftest.$ac_objext conftest$ac_exeext
7861 if { (ac_try="$ac_link"
7863 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7864 *) ac_try_echo
=$ac_try;;
7866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7867 (eval "$ac_link") 2>conftest.er1
7869 grep -v '^ *+' conftest.er1
>conftest.err
7871 cat conftest.err
>&5
7872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7873 (exit $ac_status); } && {
7874 test -z "$ac_c_werror_flag" ||
7875 test ! -s conftest.err
7876 } && test -s conftest
$ac_exeext &&
7877 $as_test_x conftest
$ac_exeext; then
7878 ac_cv_var_tzname
=yes
7880 echo "$as_me: failed program was:" >&5
7881 sed 's/^/| /' conftest.
$ac_ext >&5
7886 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7887 conftest
$ac_exeext conftest.
$ac_ext
7889 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
7890 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
7891 if test $ac_cv_var_tzname = yes; then
7893 cat >>confdefs.h
<<\_ACEOF
7894 #define HAVE_TZNAME 1
7900 { echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
7901 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6; }
7902 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
7903 echo $ECHO_N "(cached) $ECHO_C" >&6
7905 cat >conftest.
$ac_ext <<_ACEOF
7908 cat confdefs.h
>>conftest.
$ac_ext
7909 cat >>conftest.
$ac_ext <<_ACEOF
7910 /* end confdefs.h. */
7916 static struct tm ac_aggr;
7917 if (ac_aggr.tm_gmtoff)
7923 rm -f conftest.
$ac_objext
7924 if { (ac_try
="$ac_compile"
7926 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7927 *) ac_try_echo=$ac_try;;
7929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7930 (eval "$ac_compile") 2>conftest.er1
7932 grep -v '^ *+' conftest.er1 >conftest.err
7934 cat conftest.err >&5
7935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7936 (exit $ac_status); } && {
7937 test -z "$ac_c_werror_flag" ||
7938 test ! -s conftest.err
7939 } && test -s conftest.$ac_objext; then
7940 ac_cv_member_struct_tm_tm_gmtoff=yes
7942 echo "$as_me: failed program was:" >&5
7943 sed 's/^/| /' conftest.$ac_ext >&5
7945 cat >conftest.$ac_ext <<_ACEOF
7948 cat confdefs.h >>conftest.$ac_ext
7949 cat >>conftest.$ac_ext <<_ACEOF
7950 /* end confdefs.h. */
7956 static struct tm ac_aggr;
7957 if (sizeof ac_aggr.tm_gmtoff)
7963 rm -f conftest.$ac_objext
7964 if { (ac_try="$ac_compile"
7966 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7967 *) ac_try_echo
=$ac_try;;
7969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7970 (eval "$ac_compile") 2>conftest.er1
7972 grep -v '^ *+' conftest.er1
>conftest.err
7974 cat conftest.err
>&5
7975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7976 (exit $ac_status); } && {
7977 test -z "$ac_c_werror_flag" ||
7978 test ! -s conftest.err
7979 } && test -s conftest.
$ac_objext; then
7980 ac_cv_member_struct_tm_tm_gmtoff
=yes
7982 echo "$as_me: failed program was:" >&5
7983 sed 's/^/| /' conftest.
$ac_ext >&5
7985 ac_cv_member_struct_tm_tm_gmtoff
=no
7988 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7991 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7993 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
7994 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
7995 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
7997 cat >>confdefs.h
<<\_ACEOF
7998 #define HAVE_TM_GMTOFF 1
8003 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
8004 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6; }
8005 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
8006 echo $ECHO_N "(cached) $ECHO_C" >&6
8008 cat >conftest.
$ac_ext <<_ACEOF
8011 cat confdefs.h
>>conftest.
$ac_ext
8012 cat >>conftest.
$ac_ext <<_ACEOF
8013 /* end confdefs.h. */
8014 $ac_includes_default
8015 #if HAVE_SYS_SOCKET_H
8016 #include <sys/socket.h>
8025 static struct ifreq ac_aggr;
8026 if (ac_aggr.ifr_flags)
8032 rm -f conftest.
$ac_objext
8033 if { (ac_try
="$ac_compile"
8035 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8036 *) ac_try_echo=$ac_try;;
8038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8039 (eval "$ac_compile") 2>conftest.er1
8041 grep -v '^ *+' conftest.er1 >conftest.err
8043 cat conftest.err >&5
8044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8045 (exit $ac_status); } && {
8046 test -z "$ac_c_werror_flag" ||
8047 test ! -s conftest.err
8048 } && test -s conftest.$ac_objext; then
8049 ac_cv_member_struct_ifreq_ifr_flags=yes
8051 echo "$as_me: failed program was:" >&5
8052 sed 's/^/| /' conftest.$ac_ext >&5
8054 cat >conftest.$ac_ext <<_ACEOF
8057 cat confdefs.h >>conftest.$ac_ext
8058 cat >>conftest.$ac_ext <<_ACEOF
8059 /* end confdefs.h. */
8060 $ac_includes_default
8061 #if HAVE_SYS_SOCKET_H
8062 #include <sys/socket.h>
8071 static struct ifreq ac_aggr;
8072 if (sizeof ac_aggr.ifr_flags)
8078 rm -f conftest.$ac_objext
8079 if { (ac_try="$ac_compile"
8081 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8082 *) ac_try_echo
=$ac_try;;
8084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8085 (eval "$ac_compile") 2>conftest.er1
8087 grep -v '^ *+' conftest.er1
>conftest.err
8089 cat conftest.err
>&5
8090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8091 (exit $ac_status); } && {
8092 test -z "$ac_c_werror_flag" ||
8093 test ! -s conftest.err
8094 } && test -s conftest.
$ac_objext; then
8095 ac_cv_member_struct_ifreq_ifr_flags
=yes
8097 echo "$as_me: failed program was:" >&5
8098 sed 's/^/| /' conftest.
$ac_ext >&5
8100 ac_cv_member_struct_ifreq_ifr_flags
=no
8103 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8106 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8108 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
8109 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6; }
8110 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
8112 cat >>confdefs.h
<<_ACEOF
8113 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8118 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
8119 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6; }
8120 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
8121 echo $ECHO_N "(cached) $ECHO_C" >&6
8123 cat >conftest.
$ac_ext <<_ACEOF
8126 cat confdefs.h
>>conftest.
$ac_ext
8127 cat >>conftest.
$ac_ext <<_ACEOF
8128 /* end confdefs.h. */
8129 $ac_includes_default
8130 #if HAVE_SYS_SOCKET_H
8131 #include <sys/socket.h>
8140 static struct ifreq ac_aggr;
8141 if (ac_aggr.ifr_hwaddr)
8147 rm -f conftest.
$ac_objext
8148 if { (ac_try
="$ac_compile"
8150 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8151 *) ac_try_echo=$ac_try;;
8153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8154 (eval "$ac_compile") 2>conftest.er1
8156 grep -v '^ *+' conftest.er1 >conftest.err
8158 cat conftest.err >&5
8159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8160 (exit $ac_status); } && {
8161 test -z "$ac_c_werror_flag" ||
8162 test ! -s conftest.err
8163 } && test -s conftest.$ac_objext; then
8164 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8166 echo "$as_me: failed program was:" >&5
8167 sed 's/^/| /' conftest.$ac_ext >&5
8169 cat >conftest.$ac_ext <<_ACEOF
8172 cat confdefs.h >>conftest.$ac_ext
8173 cat >>conftest.$ac_ext <<_ACEOF
8174 /* end confdefs.h. */
8175 $ac_includes_default
8176 #if HAVE_SYS_SOCKET_H
8177 #include <sys/socket.h>
8186 static struct ifreq ac_aggr;
8187 if (sizeof ac_aggr.ifr_hwaddr)
8193 rm -f conftest.$ac_objext
8194 if { (ac_try="$ac_compile"
8196 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8197 *) ac_try_echo
=$ac_try;;
8199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8200 (eval "$ac_compile") 2>conftest.er1
8202 grep -v '^ *+' conftest.er1
>conftest.err
8204 cat conftest.err
>&5
8205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8206 (exit $ac_status); } && {
8207 test -z "$ac_c_werror_flag" ||
8208 test ! -s conftest.err
8209 } && test -s conftest.
$ac_objext; then
8210 ac_cv_member_struct_ifreq_ifr_hwaddr
=yes
8212 echo "$as_me: failed program was:" >&5
8213 sed 's/^/| /' conftest.
$ac_ext >&5
8215 ac_cv_member_struct_ifreq_ifr_hwaddr
=no
8218 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8221 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8223 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
8224 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; }
8225 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
8227 cat >>confdefs.h
<<_ACEOF
8228 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8233 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
8234 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6; }
8235 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
8236 echo $ECHO_N "(cached) $ECHO_C" >&6
8238 cat >conftest.
$ac_ext <<_ACEOF
8241 cat confdefs.h
>>conftest.
$ac_ext
8242 cat >>conftest.
$ac_ext <<_ACEOF
8243 /* end confdefs.h. */
8244 $ac_includes_default
8245 #if HAVE_SYS_SOCKET_H
8246 #include <sys/socket.h>
8255 static struct ifreq ac_aggr;
8256 if (ac_aggr.ifr_netmask)
8262 rm -f conftest.
$ac_objext
8263 if { (ac_try
="$ac_compile"
8265 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8266 *) ac_try_echo=$ac_try;;
8268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8269 (eval "$ac_compile") 2>conftest.er1
8271 grep -v '^ *+' conftest.er1 >conftest.err
8273 cat conftest.err >&5
8274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8275 (exit $ac_status); } && {
8276 test -z "$ac_c_werror_flag" ||
8277 test ! -s conftest.err
8278 } && test -s conftest.$ac_objext; then
8279 ac_cv_member_struct_ifreq_ifr_netmask=yes
8281 echo "$as_me: failed program was:" >&5
8282 sed 's/^/| /' conftest.$ac_ext >&5
8284 cat >conftest.$ac_ext <<_ACEOF
8287 cat confdefs.h >>conftest.$ac_ext
8288 cat >>conftest.$ac_ext <<_ACEOF
8289 /* end confdefs.h. */
8290 $ac_includes_default
8291 #if HAVE_SYS_SOCKET_H
8292 #include <sys/socket.h>
8301 static struct ifreq ac_aggr;
8302 if (sizeof ac_aggr.ifr_netmask)
8308 rm -f conftest.$ac_objext
8309 if { (ac_try="$ac_compile"
8311 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8312 *) ac_try_echo
=$ac_try;;
8314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8315 (eval "$ac_compile") 2>conftest.er1
8317 grep -v '^ *+' conftest.er1
>conftest.err
8319 cat conftest.err
>&5
8320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8321 (exit $ac_status); } && {
8322 test -z "$ac_c_werror_flag" ||
8323 test ! -s conftest.err
8324 } && test -s conftest.
$ac_objext; then
8325 ac_cv_member_struct_ifreq_ifr_netmask
=yes
8327 echo "$as_me: failed program was:" >&5
8328 sed 's/^/| /' conftest.
$ac_ext >&5
8330 ac_cv_member_struct_ifreq_ifr_netmask
=no
8333 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8336 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8338 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
8339 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6; }
8340 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
8342 cat >>confdefs.h
<<_ACEOF
8343 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8348 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
8349 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6; }
8350 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
8351 echo $ECHO_N "(cached) $ECHO_C" >&6
8353 cat >conftest.
$ac_ext <<_ACEOF
8356 cat confdefs.h
>>conftest.
$ac_ext
8357 cat >>conftest.
$ac_ext <<_ACEOF
8358 /* end confdefs.h. */
8359 $ac_includes_default
8360 #if HAVE_SYS_SOCKET_H
8361 #include <sys/socket.h>
8370 static struct ifreq ac_aggr;
8371 if (ac_aggr.ifr_broadaddr)
8377 rm -f conftest.
$ac_objext
8378 if { (ac_try
="$ac_compile"
8380 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8381 *) ac_try_echo=$ac_try;;
8383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8384 (eval "$ac_compile") 2>conftest.er1
8386 grep -v '^ *+' conftest.er1 >conftest.err
8388 cat conftest.err >&5
8389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8390 (exit $ac_status); } && {
8391 test -z "$ac_c_werror_flag" ||
8392 test ! -s conftest.err
8393 } && test -s conftest.$ac_objext; then
8394 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8396 echo "$as_me: failed program was:" >&5
8397 sed 's/^/| /' conftest.$ac_ext >&5
8399 cat >conftest.$ac_ext <<_ACEOF
8402 cat confdefs.h >>conftest.$ac_ext
8403 cat >>conftest.$ac_ext <<_ACEOF
8404 /* end confdefs.h. */
8405 $ac_includes_default
8406 #if HAVE_SYS_SOCKET_H
8407 #include <sys/socket.h>
8416 static struct ifreq ac_aggr;
8417 if (sizeof ac_aggr.ifr_broadaddr)
8423 rm -f conftest.$ac_objext
8424 if { (ac_try="$ac_compile"
8426 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8427 *) ac_try_echo
=$ac_try;;
8429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8430 (eval "$ac_compile") 2>conftest.er1
8432 grep -v '^ *+' conftest.er1
>conftest.err
8434 cat conftest.err
>&5
8435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8436 (exit $ac_status); } && {
8437 test -z "$ac_c_werror_flag" ||
8438 test ! -s conftest.err
8439 } && test -s conftest.
$ac_objext; then
8440 ac_cv_member_struct_ifreq_ifr_broadaddr
=yes
8442 echo "$as_me: failed program was:" >&5
8443 sed 's/^/| /' conftest.
$ac_ext >&5
8445 ac_cv_member_struct_ifreq_ifr_broadaddr
=no
8448 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8451 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8453 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
8454 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; }
8455 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
8457 cat >>confdefs.h
<<_ACEOF
8458 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8463 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
8464 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6; }
8465 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
8466 echo $ECHO_N "(cached) $ECHO_C" >&6
8468 cat >conftest.
$ac_ext <<_ACEOF
8471 cat confdefs.h
>>conftest.
$ac_ext
8472 cat >>conftest.
$ac_ext <<_ACEOF
8473 /* end confdefs.h. */
8474 $ac_includes_default
8475 #if HAVE_SYS_SOCKET_H
8476 #include <sys/socket.h>
8485 static struct ifreq ac_aggr;
8486 if (ac_aggr.ifr_addr)
8492 rm -f conftest.
$ac_objext
8493 if { (ac_try
="$ac_compile"
8495 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8496 *) ac_try_echo=$ac_try;;
8498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8499 (eval "$ac_compile") 2>conftest.er1
8501 grep -v '^ *+' conftest.er1 >conftest.err
8503 cat conftest.err >&5
8504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8505 (exit $ac_status); } && {
8506 test -z "$ac_c_werror_flag" ||
8507 test ! -s conftest.err
8508 } && test -s conftest.$ac_objext; then
8509 ac_cv_member_struct_ifreq_ifr_addr=yes
8511 echo "$as_me: failed program was:" >&5
8512 sed 's/^/| /' conftest.$ac_ext >&5
8514 cat >conftest.$ac_ext <<_ACEOF
8517 cat confdefs.h >>conftest.$ac_ext
8518 cat >>conftest.$ac_ext <<_ACEOF
8519 /* end confdefs.h. */
8520 $ac_includes_default
8521 #if HAVE_SYS_SOCKET_H
8522 #include <sys/socket.h>
8531 static struct ifreq ac_aggr;
8532 if (sizeof ac_aggr.ifr_addr)
8538 rm -f conftest.$ac_objext
8539 if { (ac_try="$ac_compile"
8541 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8542 *) ac_try_echo
=$ac_try;;
8544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8545 (eval "$ac_compile") 2>conftest.er1
8547 grep -v '^ *+' conftest.er1
>conftest.err
8549 cat conftest.err
>&5
8550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8551 (exit $ac_status); } && {
8552 test -z "$ac_c_werror_flag" ||
8553 test ! -s conftest.err
8554 } && test -s conftest.
$ac_objext; then
8555 ac_cv_member_struct_ifreq_ifr_addr
=yes
8557 echo "$as_me: failed program was:" >&5
8558 sed 's/^/| /' conftest.
$ac_ext >&5
8560 ac_cv_member_struct_ifreq_ifr_addr
=no
8563 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8566 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8568 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
8569 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6; }
8570 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
8572 cat >>confdefs.h
<<_ACEOF
8573 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8581 { echo "$as_me:$LINENO: checking for function prototypes" >&5
8582 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
8583 if test "$ac_cv_prog_cc_c89" != no
; then
8584 { echo "$as_me:$LINENO: result: yes" >&5
8585 echo "${ECHO_T}yes" >&6; }
8587 cat >>confdefs.h
<<\_ACEOF
8588 #define PROTOTYPES 1
8592 cat >>confdefs.h
<<\_ACEOF
8593 #define __PROTOTYPES 1
8597 { echo "$as_me:$LINENO: result: no" >&5
8598 echo "${ECHO_T}no" >&6; }
8601 { echo "$as_me:$LINENO: checking for working volatile" >&5
8602 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
8603 if test "${ac_cv_c_volatile+set}" = set; then
8604 echo $ECHO_N "(cached) $ECHO_C" >&6
8606 cat >conftest.
$ac_ext <<_ACEOF
8609 cat confdefs.h
>>conftest.
$ac_ext
8610 cat >>conftest.
$ac_ext <<_ACEOF
8611 /* end confdefs.h. */
8618 int * volatile y = (int *) 0;
8624 rm -f conftest.
$ac_objext
8625 if { (ac_try
="$ac_compile"
8627 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8628 *) ac_try_echo=$ac_try;;
8630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8631 (eval "$ac_compile") 2>conftest.er1
8633 grep -v '^ *+' conftest.er1 >conftest.err
8635 cat conftest.err >&5
8636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8637 (exit $ac_status); } && {
8638 test -z "$ac_c_werror_flag" ||
8639 test ! -s conftest.err
8640 } && test -s conftest.$ac_objext; then
8641 ac_cv_c_volatile=yes
8643 echo "$as_me: failed program was:" >&5
8644 sed 's/^/| /' conftest.$ac_ext >&5
8649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8651 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
8652 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
8653 if test $ac_cv_c_volatile = no; then
8655 cat >>confdefs.h <<\_ACEOF
8661 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8662 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8663 if test "${ac_cv_c_const+set}" = set; then
8664 echo $ECHO_N "(cached) $ECHO_C" >&6
8666 cat >conftest.$ac_ext <<_ACEOF
8669 cat confdefs.h >>conftest.$ac_ext
8670 cat >>conftest.$ac_ext <<_ACEOF
8671 /* end confdefs.h. */
8676 /* FIXME: Include the comments suggested by Paul. */
8678 /* Ultrix mips cc rejects this. */
8679 typedef int charset[2];
8681 /* SunOS 4.1.1 cc rejects this. */
8682 char const *const *pcpcc;
8684 /* NEC SVR4.0.2 mips cc rejects this. */
8685 struct point {int x, y;};
8686 static struct point const zero = {0,0};
8687 /* AIX XL C 1.02.0.0 rejects this.
8688 It does not let you subtract one const X* pointer from another in
8689 an arm of an if-expression whose if-part is not a constant
8691 const char *g = "string";
8692 pcpcc = &g + (g ? g-g : 0);
8693 /* HPUX 7.0 cc rejects these. */
8695 ppc = (char**) pcpcc;
8696 pcpcc = (char const *const *) ppc;
8697 { /* SCO 3.2v4 cc rejects this. */
8699 char const *s = 0 ? (char *) 0 : (char const *) 0;
8704 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8706 const int *foo = &x[0];
8709 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8710 typedef const int *iptr;
8714 { /* AIX XL C 1.02.0.0 rejects this saying
8715 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8716 struct s { int j; const int *ap[3]; };
8717 struct s *b; b->j = 5;
8719 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8723 return !cs[0] && !zero.x;
8730 rm -f conftest.$ac_objext
8731 if { (ac_try="$ac_compile"
8733 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8734 *) ac_try_echo
=$ac_try;;
8736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8737 (eval "$ac_compile") 2>conftest.er1
8739 grep -v '^ *+' conftest.er1
>conftest.err
8741 cat conftest.err
>&5
8742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8743 (exit $ac_status); } && {
8744 test -z "$ac_c_werror_flag" ||
8745 test ! -s conftest.err
8746 } && test -s conftest.
$ac_objext; then
8749 echo "$as_me: failed program was:" >&5
8750 sed 's/^/| /' conftest.
$ac_ext >&5
8755 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8757 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8758 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8759 if test $ac_cv_c_const = no
; then
8761 cat >>confdefs.h
<<\_ACEOF
8767 { echo "$as_me:$LINENO: checking for void * support" >&5
8768 echo $ECHO_N "checking for void * support... $ECHO_C" >&6; }
8769 if test "${emacs_cv_void_star+set}" = set; then
8770 echo $ECHO_N "(cached) $ECHO_C" >&6
8772 cat >conftest.
$ac_ext <<_ACEOF
8775 cat confdefs.h
>>conftest.
$ac_ext
8776 cat >>conftest.
$ac_ext <<_ACEOF
8777 /* end confdefs.h. */
8787 rm -f conftest.
$ac_objext
8788 if { (ac_try
="$ac_compile"
8790 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8791 *) ac_try_echo=$ac_try;;
8793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8794 (eval "$ac_compile") 2>conftest.er1
8796 grep -v '^ *+' conftest.er1 >conftest.err
8798 cat conftest.err >&5
8799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8800 (exit $ac_status); } && {
8801 test -z "$ac_c_werror_flag" ||
8802 test ! -s conftest.err
8803 } && test -s conftest.$ac_objext; then
8804 emacs_cv_void_star=yes
8806 echo "$as_me: failed program was:" >&5
8807 sed 's/^/| /' conftest.$ac_ext >&5
8809 emacs_cv_void_star=no
8812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8814 { echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
8815 echo "${ECHO_T}$emacs_cv_void_star" >&6; }
8816 if test $emacs_cv_void_star = yes; then
8817 cat >>confdefs.h <<\_ACEOF
8818 #define POINTER_TYPE void
8822 cat >>confdefs.h <<\_ACEOF
8823 #define POINTER_TYPE char
8832 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8833 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
8834 set x ${MAKE-make}; ac_make=`echo "$2" |
sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8835 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
8836 echo $ECHO_N "(cached) $ECHO_C" >&6
8838 cat >conftest.make <<\_ACEOF
8841 @echo '@@@%%%=$(MAKE)=@@@%%%'
8843 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8844 case `${MAKE-make} -f conftest.
make 2>/dev
/null
` in
8846 eval ac_cv_prog_make_${ac_make}_set=yes;;
8848 eval ac_cv_prog_make_${ac_make}_set=no;;
8852 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8853 { echo "$as_me:$LINENO: result: yes" >&5
8854 echo "${ECHO_T}yes" >&6; }
8857 { echo "$as_me:$LINENO: result: no" >&5
8858 echo "${ECHO_T}no" >&6; }
8859 SET_MAKE="MAKE=${MAKE-make}"
8863 { echo "$as_me:$LINENO: checking for long file names" >&5
8864 echo $ECHO_N "checking for long file names... $ECHO_C" >&6; }
8865 if test "${ac_cv_sys_long_file_names+set}" = set; then
8866 echo $ECHO_N "(cached) $ECHO_C" >&6
8868 ac_cv_sys_long_file_names=yes
8869 # Test for long file names in all the places we know might matter:
8870 # . the current directory, where building will happen
8871 # $prefix/lib where we will be installing things
8872 # $exec_prefix/lib likewise
8873 # $TMPDIR if set, where it might want to write temporary files
8874 # /tmp where it might want to write temporary files
8877 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
8878 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
8879 # in the usual case where exec_prefix is '${prefix}'.
8881 . | /* | ?:[\\/]*) ;; #(
8884 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
8885 ac_xdir=$ac_dir/cf$$
8886 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
8887 ac_tf1=$ac_xdir/conftest9012345
8888 ac_tf2=$ac_xdir/conftest9012346
8889 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
8890 ac_cv_sys_long_file_names=no
8891 rm -f -r "$ac_xdir" 2>/dev/null
8892 test $ac_cv_sys_long_file_names = no && break
8895 { echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
8896 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6; }
8897 if test $ac_cv_sys_long_file_names = yes; then
8899 cat >>confdefs.h <<\_ACEOF
8900 #define HAVE_LONG_FILE_NAMES 1
8906 #### Choose a window system.
8908 { echo "$as_me:$LINENO: checking for X" >&5
8909 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
8912 # Check whether --with-x was given.
8913 if test "${with_x+set}" = set; then
8917 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8918 if test "x$with_x" = xno; then
8919 # The user explicitly disabled X.
8922 case $x_includes,$x_libraries in #(
8923 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
8924 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
8925 { (exit 1); exit 1; }; };; #(
8926 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
8927 echo $ECHO_N "(cached) $ECHO_C" >&6
8929 # One or both of the vars are not set, and there is no cached value.
8930 ac_x_includes=no ac_x_libraries=no
8931 rm -f -r conftest.dir
8932 if mkdir conftest.dir; then
8934 cat >Imakefile <<'_ACEOF'
8936 @echo incroot='${INCROOT}'
8938 @echo usrlibdir='${USRLIBDIR}'
8940 @echo libdir='${LIBDIR}'
8942 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
8943 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8944 for ac_var in incroot usrlibdir libdir; do
8945 eval "ac_im_$ac_var=\`\
${MAKE-make} $ac_var 2>/dev
/null |
sed -n 's/^$ac_var=//p'\
`"
8947 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8948 for ac_extension in a so sl; do
8949 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
8950 test -f "$ac_im_libdir/libX11.$ac_extension"; then
8951 ac_im_usrlibdir=$ac_im_libdir; break
8954 # Screen out bogus values from the imake configuration. They are
8955 # bogus both because they are the default anyway, and because
8956 # using them would break gcc on systems where it needs fixed includes.
8957 case $ac_im_incroot in
8958 /usr/include) ac_x_includes= ;;
8959 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
8961 case $ac_im_usrlibdir in
8963 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
8967 rm -f -r conftest.dir
8970 # Standard set of common directories for X headers.
8971 # Check X11 before X11Rn because it is often a symlink to the current release.
8983 /usr/local/X11/include
8984 /usr/local/X11R6/include
8985 /usr/local/X11R5/include
8986 /usr/local/X11R4/include
8988 /usr/local/include/X11
8989 /usr/local/include/X11R6
8990 /usr/local/include/X11R5
8991 /usr/local/include/X11R4
8995 /usr/XFree86/include/X11
8999 /usr/unsupported/include
9001 /usr/local/x11r5/include
9002 /usr/lpp/Xamples/include
9004 /usr/openwin/include
9005 /usr/openwin/share/include'
9007 if test "$ac_x_includes" = no; then
9008 # Guess where to find include files, by looking for Xlib.h.
9009 # First, try using that file with no special directory specified.
9010 cat >conftest.$ac_ext <<_ACEOF
9013 cat confdefs.h >>conftest.$ac_ext
9014 cat >>conftest.$ac_ext <<_ACEOF
9015 /* end confdefs.h. */
9016 #include <X11/Xlib.h>
9018 if { (ac_try="$ac_cpp conftest.$ac_ext"
9020 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9021 *) ac_try_echo
=$ac_try;;
9023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9024 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9026 grep -v '^ *+' conftest.er1
>conftest.err
9028 cat conftest.err
>&5
9029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9030 (exit $ac_status); } >/dev
/null
&& {
9031 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9032 test ! -s conftest.err
9034 # We can compile using X headers with no special include directory.
9037 echo "$as_me: failed program was:" >&5
9038 sed 's/^/| /' conftest.
$ac_ext >&5
9040 for ac_dir
in $ac_x_header_dirs; do
9041 if test -r "$ac_dir/X11/Xlib.h"; then
9042 ac_x_includes
=$ac_dir
9048 rm -f conftest.err conftest.
$ac_ext
9049 fi # $ac_x_includes = no
9051 if test "$ac_x_libraries" = no
; then
9052 # Check for the libraries.
9053 # See if we find them without any special options.
9054 # Don't add to $LIBS permanently.
9057 cat >conftest.
$ac_ext <<_ACEOF
9060 cat confdefs.h
>>conftest.
$ac_ext
9061 cat >>conftest.
$ac_ext <<_ACEOF
9062 /* end confdefs.h. */
9063 #include <X11/Xlib.h>
9072 rm -f conftest.
$ac_objext conftest
$ac_exeext
9073 if { (ac_try
="$ac_link"
9075 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9076 *) ac_try_echo=$ac_try;;
9078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9079 (eval "$ac_link") 2>conftest.er1
9081 grep -v '^ *+' conftest.er1 >conftest.err
9083 cat conftest.err >&5
9084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9085 (exit $ac_status); } && {
9086 test -z "$ac_c_werror_flag" ||
9087 test ! -s conftest.err
9088 } && test -s conftest$ac_exeext &&
9089 $as_test_x conftest$ac_exeext; then
9091 # We can link X programs with no special library path.
9094 echo "$as_me: failed program was:" >&5
9095 sed 's/^/| /' conftest.$ac_ext >&5
9098 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" |
sed s
/include
/lib
/g
`
9100 # Don't even attempt the hair of trying to link an X program!
9101 for ac_extension in a so sl; do
9102 if test -r "$ac_dir/libX11.$ac_extension"; then
9103 ac_x_libraries=$ac_dir
9110 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9111 conftest$ac_exeext conftest.$ac_ext
9112 fi # $ac_x_libraries = no
9114 case $ac_x_includes,$ac_x_libraries in #(
9116 # Didn't find X, or a directory has "'" in its name.
9117 ac_cv_have_x="have_x=no";; #(
9119 # Record where we found X for the cache.
9120 ac_cv_have_x="have_x=yes\
9121 ac_x_includes='$ac_x_includes'\
9122 ac_x_libraries='$ac_x_libraries'"
9128 eval "$ac_cv_have_x"
9131 if test "$have_x" != yes; then
9132 { echo "$as_me:$LINENO: result: $have_x" >&5
9133 echo "${ECHO_T}$have_x" >&6; }
9136 # If each of the values was on the command line, it overrides each guess.
9137 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9138 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9139 # Update the cache value to reflect the command line values.
9140 ac_cv_have_x="have_x=yes\
9141 ac_x_includes='$x_includes'\
9142 ac_x_libraries='$x_libraries'"
9143 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9144 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
9147 if test "$no_x" = yes; then
9153 ## Workaround for bug in autoconf <= 2.62.
9154 ## http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01551.html
9155 ## No need to do anything special for these standard directories.
9156 ## This is an experiment, take it out if it causes problems.
9157 if test -n "${x_libraries}" && test x"${x_libraries}" != xNONE; then
9159 x_libraries=`echo :${x_libraries}: |
sed -e 's|:/usr/lib64:|:|g' -e 's|:/lib64:|:|g' -e 's|^:||' -e 's|:$||'`
9163 if test "${x_libraries}" != NONE; then
9164 if test -n "${x_libraries}"; then
9165 LD_SWITCH_X_SITE=-L`echo ${x_libraries} |
sed -e "s/:/ -L/g"`
9166 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} |
sed -e "s/:/ -R/g"`
9168 x_default_search_path=""
9169 x_search_path=${x_libraries}
9170 if test -z "${x_search_path}"; then
9171 x_search_path=/usr/lib
9173 for x_library in `echo ${x_search_path}: | \
9174 sed -e "s/:/ /g" -e p
-e "s:/lib[^ /]* :/share :g"`; do
9176 ${x_library}/X11/%L/%T/%N%C%S:\
9177 ${x_library}/X11/%l/%T/%N%C%S:\
9178 ${x_library}/X11/%T/%N%C%S:\
9179 ${x_library}/X11/%L/%T/%N%S:\
9180 ${x_library}/X11/%l/%T/%N%S:\
9181 ${x_library}/X11/%T/%N%S"
9182 if test x"${x_default_search_path}" = x; then
9183 x_default_search_path=${x_search_path}
9185 x_default_search_path="${x_search_path}:${x_default_search_path}"
9189 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9190 C_SWITCH_X_SITE=-I`echo ${x_includes} |
sed -e "s/:/ -I/g"`
9193 if test x"${x_includes}" = x; then
9194 bitmapdir=/usr/include/X11/bitmaps
9196 # accumulate include directories that have X11 bitmap subdirectories
9198 for bmd in `echo ${x_includes} |
sed -e "s/:/ /g"`; do
9199 if test -d "${bmd}/X11/bitmaps"; then
9200 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9202 if test -d "${bmd}/bitmaps"; then
9203 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9206 if test ${bmd_acc} != "dummyval"; then
9207 bitmapdir=`echo ${bmd_acc} |
sed -e "s/^dummyval://"`
9214 tmp_CPPFLAGS="$CPPFLAGS"
9215 tmp_CFLAGS="$CFLAGS"
9216 CPPFLAGS="$CPPFLAGS -x objective-c"
9217 CFLAGS="$CFLAGS -x objective-c"
9218 if test "${with_ns}" != no; then
9219 if test "${opsys}" = darwin; then
9221 ns_appdir=`pwd`/nextstep/Emacs.app
9222 ns_appbindir=`pwd`/nextstep/Emacs.app/Contents/MacOS
9223 ns_appresdir=`pwd`/nextstep/Emacs.app/Contents/Resources
9224 ns_appsrc=${srcdir}/nextstep/Cocoa/Emacs.base
9225 elif test -f $GNUSTEP_CONFIG_FILE; then
9227 ns_appdir=`pwd`/nextstep/Emacs.app
9228 ns_appbindir=`pwd`/nextstep/Emacs.app
9229 ns_appresdir=`pwd`/nextstep/Emacs.app/Resources
9230 ns_appsrc=${srcdir}/nextstep/GNUstep/Emacs.base
9231 GNUSTEP_MAKEFILES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_MAKEFILES)"
9232 GNUSTEP_SYSTEM_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
9233 GNUSTEP_SYSTEM_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
9234 CPPFLAGS="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9235 CFLAGS="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9236 REAL_CFLAGS="$REAL_CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9237 LDFLAGS="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES}"
9239 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9240 { echo "$as_me:$LINENO: checking for AppKit/AppKit.h" >&5
9241 echo $ECHO_N "checking for AppKit/AppKit.h... $ECHO_C" >&6; }
9242 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9243 echo $ECHO_N "(cached) $ECHO_C" >&6
9245 { echo "$as_me:$LINENO: result: $ac_cv_header_AppKit_AppKit_h" >&5
9246 echo "${ECHO_T}$ac_cv_header_AppKit_AppKit_h" >&6; }
9248 # Is the header compilable?
9249 { echo "$as_me:$LINENO: checking AppKit/AppKit.h usability" >&5
9250 echo $ECHO_N "checking AppKit/AppKit.h usability... $ECHO_C" >&6; }
9251 cat >conftest.$ac_ext <<_ACEOF
9254 cat confdefs.h >>conftest.$ac_ext
9255 cat >>conftest.$ac_ext <<_ACEOF
9256 /* end confdefs.h. */
9257 $ac_includes_default
9258 #include <AppKit/AppKit.h>
9260 rm -f conftest.$ac_objext
9261 if { (ac_try="$ac_compile"
9263 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9264 *) ac_try_echo
=$ac_try;;
9266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9267 (eval "$ac_compile") 2>conftest.er1
9269 grep -v '^ *+' conftest.er1
>conftest.err
9271 cat conftest.err
>&5
9272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9273 (exit $ac_status); } && {
9274 test -z "$ac_c_werror_flag" ||
9275 test ! -s conftest.err
9276 } && test -s conftest.
$ac_objext; then
9277 ac_header_compiler
=yes
9279 echo "$as_me: failed program was:" >&5
9280 sed 's/^/| /' conftest.
$ac_ext >&5
9282 ac_header_compiler
=no
9285 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9286 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9287 echo "${ECHO_T}$ac_header_compiler" >&6; }
9289 # Is the header present?
9290 { echo "$as_me:$LINENO: checking AppKit/AppKit.h presence" >&5
9291 echo $ECHO_N "checking AppKit/AppKit.h presence... $ECHO_C" >&6; }
9292 cat >conftest.
$ac_ext <<_ACEOF
9295 cat confdefs.h
>>conftest.
$ac_ext
9296 cat >>conftest.
$ac_ext <<_ACEOF
9297 /* end confdefs.h. */
9298 #include <AppKit/AppKit.h>
9300 if { (ac_try
="$ac_cpp conftest.$ac_ext"
9302 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9303 *) ac_try_echo=$ac_try;;
9305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9306 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9308 grep -v '^ *+' conftest.er1 >conftest.err
9310 cat conftest.err >&5
9311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9312 (exit $ac_status); } >/dev/null && {
9313 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9314 test ! -s conftest.err
9316 ac_header_preproc=yes
9318 echo "$as_me: failed program was:" >&5
9319 sed 's/^/| /' conftest.$ac_ext >&5
9321 ac_header_preproc=no
9324 rm -f conftest.err conftest.$ac_ext
9325 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9326 echo "${ECHO_T}$ac_header_preproc" >&6; }
9328 # So? What about this header?
9329 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9331 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: accepted by the compiler, rejected by the preprocessor!" >&5
9332 echo "$as_me: WARNING: AppKit/AppKit.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9333 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: proceeding with the compiler's result" >&5
9334 echo "$as_me: WARNING: AppKit/AppKit.h: proceeding with the compiler's result" >&2;}
9335 ac_header_preproc=yes
9338 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: present but cannot be compiled" >&5
9339 echo "$as_me: WARNING: AppKit/AppKit.h: present but cannot be compiled" >&2;}
9340 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: check for missing prerequisite headers?" >&5
9341 echo "$as_me: WARNING: AppKit/AppKit.h: check for missing prerequisite headers?" >&2;}
9342 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: see the Autoconf documentation" >&5
9343 echo "$as_me: WARNING: AppKit/AppKit.h: see the Autoconf documentation" >&2;}
9344 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: section \"Present But Cannot Be Compiled\"" >&5
9345 echo "$as_me: WARNING: AppKit/AppKit.h: section \"Present But Cannot Be Compiled\"" >&2;}
9346 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: proceeding with the preprocessor's result" >&5
9347 echo "$as_me: WARNING: AppKit/AppKit.h: proceeding with the preprocessor's result" >&2;}
9348 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: in the future, the compiler will take precedence" >&5
9349 echo "$as_me: WARNING: AppKit/AppKit.h: in the future, the compiler will take precedence" >&2;}
9353 { echo "$as_me:$LINENO: checking for AppKit/AppKit.h" >&5
9354 echo $ECHO_N "checking for AppKit/AppKit.h... $ECHO_C" >&6; }
9355 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9356 echo $ECHO_N "(cached) $ECHO_C" >&6
9358 ac_cv_header_AppKit_AppKit_h=$ac_header_preproc
9360 { echo "$as_me:$LINENO: result: $ac_cv_header_AppKit_AppKit_h" >&5
9361 echo "${ECHO_T}$ac_cv_header_AppKit_AppKit_h" >&6; }
9364 if test $ac_cv_header_AppKit_AppKit_h = yes; then
9367 { { echo "$as_me:$LINENO: error: \`--with-ns' was specified, but the include
9368 files are missing or cannot be compiled." >&5
9369 echo "$as_me: error: \`--with-ns' was specified
, but the include
9370 files are missing or cannot be compiled.
" >&2;}
9371 { (exit 1); exit 1; }; }
9375 NS_HAVE_NSINTEGER=yes
9376 cat >conftest.$ac_ext <<_ACEOF
9379 cat confdefs.h >>conftest.$ac_ext
9380 cat >>conftest.$ac_ext <<_ACEOF
9381 /* end confdefs.h. */
9382 #include <Foundation/NSObjCRuntime.h>
9391 rm -f conftest.$ac_objext
9392 if { (ac_try="$ac_compile"
9394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9395 *) ac_try_echo=$ac_try;;
9397 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9398 (eval "$ac_compile") 2>conftest.er1
9400 grep -v '^ *+' conftest.er1 >conftest.err
9402 cat conftest.err >&5
9403 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9404 (exit $ac_status); } && {
9405 test -z "$ac_c_werror_flag" ||
9406 test ! -s conftest.err
9407 } && test -s conftest.$ac_objext; then
9408 ns_have_nsinteger=yes
9410 echo "$as_me: failed program was
:" >&5
9411 sed 's/^/| /' conftest.$ac_ext >&5
9413 ns_have_nsinteger=no
9416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9417 if test $ns_have_nsinteger = no; then
9418 NS_HAVE_NSINTEGER=no
9421 if test "${HAVE_NS}" = yes; then
9422 window_system=nextstep
9425 # set up packaging dirs
9426 exec_prefix=${ns_appbindir}
9427 libexecdir=${ns_appbindir}/libexec
9428 if test "${EN_NS_SELF_CONTAINED}" = yes; then
9429 prefix=${ns_appresdir}
9432 CFLAGS="$tmp_CFLAGS"
9433 CPPFLAGS="$tmp_CPPFLAGS"
9435 case "${window_system}" in
9439 case "${with_x_toolkit}" in
9440 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9441 motif ) USE_X_TOOLKIT=MOTIF ;;
9443 USE_X_TOOLKIT=none ;;
9444 no ) USE_X_TOOLKIT=none ;;
9445 * ) USE_X_TOOLKIT=maybe ;;
9455 if test "$window_system" = none && test "X
$with_x" != "Xno
"; then
9456 # Extract the first word of "X
", so it can be a program name with args.
9457 set dummy X; ac_word=$2
9458 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
9459 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
9460 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then
9461 echo $ECHO_N "(cached
) $ECHO_C" >&6
9463 if test -n "$HAVE_XSERVER"; then
9464 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
9466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9470 test -z "$as_dir" && as_dir=.
9471 for ac_exec_ext in '' $ac_executable_extensions; do
9472 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9473 ac_cv_prog_HAVE_XSERVER="true
"
9474 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
9481 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false
"
9484 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
9485 if test -n "$HAVE_XSERVER"; then
9486 { echo "$as_me:$LINENO: result
: $HAVE_XSERVER" >&5
9487 echo "${ECHO_T}$HAVE_XSERVER" >&6; }
9489 { echo "$as_me:$LINENO: result
: no
" >&5
9490 echo "${ECHO_T}no
" >&6; }
9494 if test "$HAVE_XSERVER" = true ||
9495 test -n "$DISPLAY" ||
9496 test "`echo /usr/lib/libX11.*`" != "/usr
/lib
/libX11.
*"; then
9497 { { echo "$as_me:$LINENO: error
: You seem to be running X
, but no X development libraries
9498 were found. You should
install the relevant development files
for X
9499 and
for the toolkit you want
, such as Gtk
+, Lesstif or Motif. Also
make
9500 sure you have development files
for image handling
, i.e.
9501 tiff
, gif
, jpeg
, png and xpm.
9502 If you are sure you want Emacs compiled without X window support
, pass
9505 echo "$as_me: error
: You seem to be running X
, but no X development libraries
9506 were found. You should
install the relevant development files
for X
9507 and
for the toolkit you want
, such as Gtk
+, Lesstif or Motif. Also
make
9508 sure you have development files
for image handling
, i.e.
9509 tiff
, gif
, jpeg
, png and xpm.
9510 If you are sure you want Emacs compiled without X window support
, pass
9512 to configure.
" >&2;}
9513 { (exit 1); exit 1; }; }
9517 ### If we're using X11, we should use the X menu package.
9520 yes ) HAVE_MENUS=yes ;;
9523 # Do the opsystem or machine files prohibit the use of the GNU malloc?
9524 # Assume not, until told otherwise.
9527 { echo "$as_me:$LINENO: checking
for malloc_get_state
" >&5
9528 echo $ECHO_N "checking
for malloc_get_state...
$ECHO_C" >&6; }
9529 if test "${ac_cv_func_malloc_get_state+set}" = set; then
9530 echo $ECHO_N "(cached
) $ECHO_C" >&6
9532 cat >conftest.$ac_ext <<_ACEOF
9535 cat confdefs.h >>conftest.$ac_ext
9536 cat >>conftest.$ac_ext <<_ACEOF
9537 /* end confdefs.h. */
9538 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
9539 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9540 #define malloc_get_state innocuous_malloc_get_state
9542 /* System header to define __stub macros and hopefully few prototypes,
9543 which can conflict with char malloc_get_state (); below.
9544 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9545 <limits.h> exists even on freestanding compilers. */
9548 # include <limits.h>
9550 # include <assert.h>
9553 #undef malloc_get_state
9555 /* Override any GCC internal prototype to avoid an error.
9556 Use char because int might match the return type of a GCC
9557 builtin and then its argument prototype would still apply. */
9561 char malloc_get_state ();
9562 /* The GNU C library defines this for functions which it implements
9563 to always fail with ENOSYS. Some functions are actually named
9564 something starting with __ and the normal name is an alias. */
9565 #if defined __stub_malloc_get_state || defined __stub___malloc_get_state
9572 return malloc_get_state ();
9577 rm -f conftest.$ac_objext conftest$ac_exeext
9578 if { (ac_try="$ac_link"
9580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9581 *) ac_try_echo=$ac_try;;
9583 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9584 (eval "$ac_link") 2>conftest.er1
9586 grep -v '^ *+' conftest.er1 >conftest.err
9588 cat conftest.err >&5
9589 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9590 (exit $ac_status); } && {
9591 test -z "$ac_c_werror_flag" ||
9592 test ! -s conftest.err
9593 } && test -s conftest$ac_exeext &&
9594 $as_test_x conftest$ac_exeext; then
9595 ac_cv_func_malloc_get_state=yes
9597 echo "$as_me: failed program was
:" >&5
9598 sed 's/^/| /' conftest.$ac_ext >&5
9600 ac_cv_func_malloc_get_state=no
9603 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9604 conftest$ac_exeext conftest.$ac_ext
9606 { echo "$as_me:$LINENO: result
: $ac_cv_func_malloc_get_state" >&5
9607 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6; }
9608 if test $ac_cv_func_malloc_get_state = yes; then
9614 { echo "$as_me:$LINENO: checking
for malloc_set_state
" >&5
9615 echo $ECHO_N "checking
for malloc_set_state...
$ECHO_C" >&6; }
9616 if test "${ac_cv_func_malloc_set_state+set}" = set; then
9617 echo $ECHO_N "(cached
) $ECHO_C" >&6
9619 cat >conftest.$ac_ext <<_ACEOF
9622 cat confdefs.h >>conftest.$ac_ext
9623 cat >>conftest.$ac_ext <<_ACEOF
9624 /* end confdefs.h. */
9625 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
9626 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9627 #define malloc_set_state innocuous_malloc_set_state
9629 /* System header to define __stub macros and hopefully few prototypes,
9630 which can conflict with char malloc_set_state (); below.
9631 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9632 <limits.h> exists even on freestanding compilers. */
9635 # include <limits.h>
9637 # include <assert.h>
9640 #undef malloc_set_state
9642 /* Override any GCC internal prototype to avoid an error.
9643 Use char because int might match the return type of a GCC
9644 builtin and then its argument prototype would still apply. */
9648 char malloc_set_state ();
9649 /* The GNU C library defines this for functions which it implements
9650 to always fail with ENOSYS. Some functions are actually named
9651 something starting with __ and the normal name is an alias. */
9652 #if defined __stub_malloc_set_state || defined __stub___malloc_set_state
9659 return malloc_set_state ();
9664 rm -f conftest.$ac_objext conftest$ac_exeext
9665 if { (ac_try="$ac_link"
9667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9668 *) ac_try_echo=$ac_try;;
9670 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9671 (eval "$ac_link") 2>conftest.er1
9673 grep -v '^ *+' conftest.er1 >conftest.err
9675 cat conftest.err >&5
9676 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9677 (exit $ac_status); } && {
9678 test -z "$ac_c_werror_flag" ||
9679 test ! -s conftest.err
9680 } && test -s conftest$ac_exeext &&
9681 $as_test_x conftest$ac_exeext; then
9682 ac_cv_func_malloc_set_state=yes
9684 echo "$as_me: failed program was
:" >&5
9685 sed 's/^/| /' conftest.$ac_ext >&5
9687 ac_cv_func_malloc_set_state=no
9690 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9691 conftest$ac_exeext conftest.$ac_ext
9693 { echo "$as_me:$LINENO: result
: $ac_cv_func_malloc_set_state" >&5
9694 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6; }
9695 if test $ac_cv_func_malloc_set_state = yes; then
9701 { echo "$as_me:$LINENO: checking whether __after_morecore_hook exists
" >&5
9702 echo $ECHO_N "checking whether __after_morecore_hook exists...
$ECHO_C" >&6; }
9703 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
9704 echo $ECHO_N "(cached
) $ECHO_C" >&6
9706 cat >conftest.$ac_ext <<_ACEOF
9709 cat confdefs.h >>conftest.$ac_ext
9710 cat >>conftest.$ac_ext <<_ACEOF
9711 /* end confdefs.h. */
9712 extern void (* __after_morecore_hook)();
9716 __after_morecore_hook = 0
9721 rm -f conftest.$ac_objext conftest$ac_exeext
9722 if { (ac_try="$ac_link"
9724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9725 *) ac_try_echo=$ac_try;;
9727 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9728 (eval "$ac_link") 2>conftest.er1
9730 grep -v '^ *+' conftest.er1 >conftest.err
9732 cat conftest.err >&5
9733 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9734 (exit $ac_status); } && {
9735 test -z "$ac_c_werror_flag" ||
9736 test ! -s conftest.err
9737 } && test -s conftest$ac_exeext &&
9738 $as_test_x conftest$ac_exeext; then
9739 emacs_cv_var___after_morecore_hook=yes
9741 echo "$as_me: failed program was
:" >&5
9742 sed 's/^/| /' conftest.$ac_ext >&5
9744 emacs_cv_var___after_morecore_hook=no
9747 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9748 conftest$ac_exeext conftest.$ac_ext
9750 { echo "$as_me:$LINENO: result
: $emacs_cv_var___after_morecore_hook" >&5
9751 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6; }
9752 if test $emacs_cv_var___after_morecore_hook = no; then
9755 if test "${system_malloc}" = "yes"; then
9758 (The GNU allocators don
't work with this system configuration.)"
9760 if test "$doug_lea_malloc" = "yes" ; then
9761 if test "$GNU_MALLOC" = yes ; then
9763 (Using Doug Lea's new malloc from the GNU C Library.
)"
9766 cat >>confdefs.h <<\_ACEOF
9767 #define DOUG_LEA_MALLOC 1
9772 if test x"${REL_ALLOC}" = x; then
9773 REL_ALLOC=${GNU_MALLOC}
9779 for ac_header in stdlib.h unistd.h
9781 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
9782 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
9783 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
9784 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
9785 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
9786 echo $ECHO_N "(cached
) $ECHO_C" >&6
9788 ac_res=`eval echo '${'$as_ac_Header'}'`
9789 { echo "$as_me:$LINENO: result
: $ac_res" >&5
9790 echo "${ECHO_T}$ac_res" >&6; }
9792 # Is the header compilable?
9793 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
9794 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
9795 cat >conftest.$ac_ext <<_ACEOF
9798 cat confdefs.h >>conftest.$ac_ext
9799 cat >>conftest.$ac_ext <<_ACEOF
9800 /* end confdefs.h. */
9801 $ac_includes_default
9802 #include <$ac_header>
9804 rm -f conftest.$ac_objext
9805 if { (ac_try="$ac_compile"
9807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9808 *) ac_try_echo=$ac_try;;
9810 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9811 (eval "$ac_compile") 2>conftest.er1
9813 grep -v '^ *+' conftest.er1 >conftest.err
9815 cat conftest.err >&5
9816 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9817 (exit $ac_status); } && {
9818 test -z "$ac_c_werror_flag" ||
9819 test ! -s conftest.err
9820 } && test -s conftest.$ac_objext; then
9821 ac_header_compiler=yes
9823 echo "$as_me: failed program was
:" >&5
9824 sed 's/^/| /' conftest.$ac_ext >&5
9826 ac_header_compiler=no
9829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9830 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
9831 echo "${ECHO_T}$ac_header_compiler" >&6; }
9833 # Is the header present?
9834 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
9835 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
9836 cat >conftest.$ac_ext <<_ACEOF
9839 cat confdefs.h >>conftest.$ac_ext
9840 cat >>conftest.$ac_ext <<_ACEOF
9841 /* end confdefs.h. */
9842 #include <$ac_header>
9844 if { (ac_try="$ac_cpp conftest.
$ac_ext"
9846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9847 *) ac_try_echo=$ac_try;;
9849 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9850 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
9852 grep -v '^ *+' conftest.er1 >conftest.err
9854 cat conftest.err >&5
9855 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9856 (exit $ac_status); } >/dev/null && {
9857 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9858 test ! -s conftest.err
9860 ac_header_preproc=yes
9862 echo "$as_me: failed program was
:" >&5
9863 sed 's/^/| /' conftest.$ac_ext >&5
9865 ac_header_preproc=no
9868 rm -f conftest.err conftest.$ac_ext
9869 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
9870 echo "${ECHO_T}$ac_header_preproc" >&6; }
9872 # So? What about this header?
9873 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9875 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
9876 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
9877 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
9878 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
9879 ac_header_preproc=yes
9882 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
9883 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
9884 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
9885 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
9886 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
9887 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
9888 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
9889 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
9890 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
9891 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
9892 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
9893 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
9897 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
9898 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
9899 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
9900 echo $ECHO_N "(cached
) $ECHO_C" >&6
9902 eval "$as_ac_Header=\
$ac_header_preproc"
9904 ac_res=`eval echo '${'$as_ac_Header'}'`
9905 { echo "$as_me:$LINENO: result
: $ac_res" >&5
9906 echo "${ECHO_T}$ac_res" >&6; }
9909 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9910 cat >>confdefs.h <<_ACEOF
9911 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
9919 for ac_func in getpagesize
9921 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
9922 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
9923 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
9924 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
9925 echo $ECHO_N "(cached
) $ECHO_C" >&6
9927 cat >conftest.$ac_ext <<_ACEOF
9930 cat confdefs.h >>conftest.$ac_ext
9931 cat >>conftest.$ac_ext <<_ACEOF
9932 /* end confdefs.h. */
9933 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9934 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9935 #define $ac_func innocuous_$ac_func
9937 /* System header to define __stub macros and hopefully few prototypes,
9938 which can conflict with char $ac_func (); below.
9939 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9940 <limits.h> exists even on freestanding compilers. */
9943 # include <limits.h>
9945 # include <assert.h>
9950 /* Override any GCC internal prototype to avoid an error.
9951 Use char because int might match the return type of a GCC
9952 builtin and then its argument prototype would still apply. */
9957 /* The GNU C library defines this for functions which it implements
9958 to always fail with ENOSYS. Some functions are actually named
9959 something starting with __ and the normal name is an alias. */
9960 #if defined __stub_$ac_func || defined __stub___$ac_func
9972 rm -f conftest.$ac_objext conftest$ac_exeext
9973 if { (ac_try="$ac_link"
9975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9976 *) ac_try_echo=$ac_try;;
9978 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9979 (eval "$ac_link") 2>conftest.er1
9981 grep -v '^ *+' conftest.er1 >conftest.err
9983 cat conftest.err >&5
9984 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9985 (exit $ac_status); } && {
9986 test -z "$ac_c_werror_flag" ||
9987 test ! -s conftest.err
9988 } && test -s conftest$ac_exeext &&
9989 $as_test_x conftest$ac_exeext; then
9990 eval "$as_ac_var=yes"
9992 echo "$as_me: failed program was
:" >&5
9993 sed 's/^/| /' conftest.$ac_ext >&5
9995 eval "$as_ac_var=no
"
9998 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9999 conftest$ac_exeext conftest.$ac_ext
10001 ac_res=`eval echo '${'$as_ac_var'}'`
10002 { echo "$as_me:$LINENO: result
: $ac_res" >&5
10003 echo "${ECHO_T}$ac_res" >&6; }
10004 if test `eval echo '${'$as_ac_var'}'` = yes; then
10005 cat >>confdefs.h <<_ACEOF
10006 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
10012 { echo "$as_me:$LINENO: checking
for working mmap
" >&5
10013 echo $ECHO_N "checking
for working mmap...
$ECHO_C" >&6; }
10014 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
10015 echo $ECHO_N "(cached
) $ECHO_C" >&6
10017 if test "$cross_compiling" = yes; then
10018 ac_cv_func_mmap_fixed_mapped=no
10020 cat >conftest.$ac_ext <<_ACEOF
10023 cat confdefs.h >>conftest.$ac_ext
10024 cat >>conftest.$ac_ext <<_ACEOF
10025 /* end confdefs.h. */
10026 $ac_includes_default
10027 /* malloc might have been renamed as rpl_malloc. */
10030 /* Thanks to Mike Haertel and Jim Avera for this test.
10031 Here is a matrix of mmap possibilities:
10032 mmap private not fixed
10033 mmap private fixed at somewhere currently unmapped
10034 mmap private fixed at somewhere already mapped
10035 mmap shared not fixed
10036 mmap shared fixed at somewhere currently unmapped
10037 mmap shared fixed at somewhere already mapped
10038 For private mappings, we should verify that changes cannot be read()
10039 back from the file, nor mmap's back from the file at a different
10040 address. (There have been systems where private was not correctly
10041 implemented like the infamous i386 svr4.0, and systems where the
10042 VM page cache was not coherent with the file system buffer cache
10043 like early versions of FreeBSD and possibly contemporary NetBSD.)
10044 For shared mappings, we should conversely verify that changes get
10045 propagated back to all the places they're supposed to be.
10047 Grep wants private fixed already mapped.
10048 The main things grep needs to know about mmap are:
10049 * does it exist and is it safe to write into the mmap'd area
10050 * how to use it (BSD variants) */
10053 #include <sys/mman.h>
10055 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10059 /* This mess was copied from the GNU getpagesize.h. */
10060 #ifndef HAVE_GETPAGESIZE
10061 /* Assume that all systems that can run configure have sys/param.h. */
10062 # ifndef HAVE_SYS_PARAM_H
10063 # define HAVE_SYS_PARAM_H 1
10066 # ifdef _SC_PAGESIZE
10067 # define getpagesize() sysconf(_SC_PAGESIZE)
10068 # else /* no _SC_PAGESIZE */
10069 # ifdef HAVE_SYS_PARAM_H
10070 # include <sys/param.h>
10071 # ifdef EXEC_PAGESIZE
10072 # define getpagesize() EXEC_PAGESIZE
10073 # else /* no EXEC_PAGESIZE */
10075 # define getpagesize() NBPG * CLSIZE
10078 # endif /* no CLSIZE */
10079 # else /* no NBPG */
10081 # define getpagesize() NBPC
10082 # else /* no NBPC */
10084 # define getpagesize() PAGESIZE
10085 # endif /* PAGESIZE */
10086 # endif /* no NBPC */
10087 # endif /* no NBPG */
10088 # endif /* no EXEC_PAGESIZE */
10089 # else /* no HAVE_SYS_PARAM_H */
10090 # define getpagesize() 8192 /* punt totally */
10091 # endif /* no HAVE_SYS_PARAM_H */
10092 # endif /* no _SC_PAGESIZE */
10094 #endif /* no HAVE_GETPAGESIZE */
10099 char *data, *data2, *data3;
10103 pagesize = getpagesize ();
10105 /* First, make a file with some known garbage in it. */
10106 data = (char *) malloc (pagesize);
10109 for (i = 0; i < pagesize; ++i)
10110 *(data + i) = rand ();
10112 fd = creat ("conftest.mmap
", 0600);
10115 if (write (fd, data, pagesize) != pagesize)
10119 /* Next, try to mmap the file at a fixed address which already has
10120 something else allocated at it. If we can, also make sure that
10121 we see the same garbage. */
10122 fd = open ("conftest.mmap
", O_RDWR);
10125 data2 = (char *) malloc (2 * pagesize);
10128 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10129 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10130 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10132 for (i = 0; i < pagesize; ++i)
10133 if (*(data + i) != *(data2 + i))
10136 /* Finally, make sure that changes to the mapped area do not
10137 percolate back to the file as seen by read(). (This is a bug on
10138 some variants of i386 svr4.0.) */
10139 for (i = 0; i < pagesize; ++i)
10140 *(data2 + i) = *(data2 + i) + 1;
10141 data3 = (char *) malloc (pagesize);
10144 if (read (fd, data3, pagesize) != pagesize)
10146 for (i = 0; i < pagesize; ++i)
10147 if (*(data + i) != *(data3 + i))
10153 rm -f conftest$ac_exeext
10154 if { (ac_try="$ac_link"
10155 case "(($ac_try" in
10156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10157 *) ac_try_echo=$ac_try;;
10159 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10160 (eval "$ac_link") 2>&5
10162 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10163 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10164 { (case "(($ac_try" in
10165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10166 *) ac_try_echo=$ac_try;;
10168 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10169 (eval "$ac_try") 2>&5
10171 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10172 (exit $ac_status); }; }; then
10173 ac_cv_func_mmap_fixed_mapped=yes
10175 echo "$as_me: program exited with status
$ac_status" >&5
10176 echo "$as_me: failed program was
:" >&5
10177 sed 's/^/| /' conftest.$ac_ext >&5
10179 ( exit $ac_status )
10180 ac_cv_func_mmap_fixed_mapped=no
10182 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10187 { echo "$as_me:$LINENO: result
: $ac_cv_func_mmap_fixed_mapped" >&5
10188 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
10189 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10191 cat >>confdefs.h <<\_ACEOF
10192 #define HAVE_MMAP 1
10196 rm -f conftest.mmap
10198 if test $use_mmap_for_buffers = yes; then
10202 LIBS="$libsrc_libs $LIBS"
10205 { echo "$as_me:$LINENO: checking
for dnet_ntoa
in -ldnet" >&5
10206 echo $ECHO_N "checking
for dnet_ntoa
in -ldnet...
$ECHO_C" >&6; }
10207 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
10208 echo $ECHO_N "(cached
) $ECHO_C" >&6
10210 ac_check_lib_save_LIBS=$LIBS
10211 LIBS="-ldnet $LIBS"
10212 cat >conftest.$ac_ext <<_ACEOF
10215 cat confdefs.h >>conftest.$ac_ext
10216 cat >>conftest.$ac_ext <<_ACEOF
10217 /* end confdefs.h. */
10219 /* Override any GCC internal prototype to avoid an error.
10220 Use char because int might match the return type of a GCC
10221 builtin and then its argument prototype would still apply. */
10229 return dnet_ntoa ();
10234 rm -f conftest.$ac_objext conftest$ac_exeext
10235 if { (ac_try="$ac_link"
10236 case "(($ac_try" in
10237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10238 *) ac_try_echo=$ac_try;;
10240 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10241 (eval "$ac_link") 2>conftest.er1
10243 grep -v '^ *+' conftest.er1 >conftest.err
10245 cat conftest.err >&5
10246 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10247 (exit $ac_status); } && {
10248 test -z "$ac_c_werror_flag" ||
10249 test ! -s conftest.err
10250 } && test -s conftest$ac_exeext &&
10251 $as_test_x conftest$ac_exeext; then
10252 ac_cv_lib_dnet_dnet_ntoa=yes
10254 echo "$as_me: failed program was
:" >&5
10255 sed 's/^/| /' conftest.$ac_ext >&5
10257 ac_cv_lib_dnet_dnet_ntoa=no
10260 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10261 conftest$ac_exeext conftest.$ac_ext
10262 LIBS=$ac_check_lib_save_LIBS
10264 { echo "$as_me:$LINENO: result
: $ac_cv_lib_dnet_dnet_ntoa" >&5
10265 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10266 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
10267 cat >>confdefs.h <<_ACEOF
10268 #define HAVE_LIBDNET 1
10271 LIBS="-ldnet $LIBS"
10276 { echo "$as_me:$LINENO: checking
for main
in -lXbsd" >&5
10277 echo $ECHO_N "checking
for main
in -lXbsd...
$ECHO_C" >&6; }
10278 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
10279 echo $ECHO_N "(cached
) $ECHO_C" >&6
10281 ac_check_lib_save_LIBS=$LIBS
10282 LIBS="-lXbsd $LIBS"
10283 cat >conftest.$ac_ext <<_ACEOF
10286 cat confdefs.h >>conftest.$ac_ext
10287 cat >>conftest.$ac_ext <<_ACEOF
10288 /* end confdefs.h. */
10299 rm -f conftest.$ac_objext conftest$ac_exeext
10300 if { (ac_try="$ac_link"
10301 case "(($ac_try" in
10302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10303 *) ac_try_echo=$ac_try;;
10305 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10306 (eval "$ac_link") 2>conftest.er1
10308 grep -v '^ *+' conftest.er1 >conftest.err
10310 cat conftest.err >&5
10311 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10312 (exit $ac_status); } && {
10313 test -z "$ac_c_werror_flag" ||
10314 test ! -s conftest.err
10315 } && test -s conftest$ac_exeext &&
10316 $as_test_x conftest$ac_exeext; then
10317 ac_cv_lib_Xbsd_main=yes
10319 echo "$as_me: failed program was
:" >&5
10320 sed 's/^/| /' conftest.$ac_ext >&5
10322 ac_cv_lib_Xbsd_main=no
10325 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10326 conftest$ac_exeext conftest.$ac_ext
10327 LIBS=$ac_check_lib_save_LIBS
10329 { echo "$as_me:$LINENO: result
: $ac_cv_lib_Xbsd_main" >&5
10330 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6; }
10331 if test $ac_cv_lib_Xbsd_main = yes; then
10332 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
10337 { echo "$as_me:$LINENO: checking
for cma_open
in -lpthreads" >&5
10338 echo $ECHO_N "checking
for cma_open
in -lpthreads...
$ECHO_C" >&6; }
10339 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
10340 echo $ECHO_N "(cached
) $ECHO_C" >&6
10342 ac_check_lib_save_LIBS=$LIBS
10343 LIBS="-lpthreads $LIBS"
10344 cat >conftest.$ac_ext <<_ACEOF
10347 cat confdefs.h >>conftest.$ac_ext
10348 cat >>conftest.$ac_ext <<_ACEOF
10349 /* end confdefs.h. */
10351 /* Override any GCC internal prototype to avoid an error.
10352 Use char because int might match the return type of a GCC
10353 builtin and then its argument prototype would still apply. */
10361 return cma_open ();
10366 rm -f conftest.$ac_objext conftest$ac_exeext
10367 if { (ac_try="$ac_link"
10368 case "(($ac_try" in
10369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10370 *) ac_try_echo=$ac_try;;
10372 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10373 (eval "$ac_link") 2>conftest.er1
10375 grep -v '^ *+' conftest.er1 >conftest.err
10377 cat conftest.err >&5
10378 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10379 (exit $ac_status); } && {
10380 test -z "$ac_c_werror_flag" ||
10381 test ! -s conftest.err
10382 } && test -s conftest$ac_exeext &&
10383 $as_test_x conftest$ac_exeext; then
10384 ac_cv_lib_pthreads_cma_open=yes
10386 echo "$as_me: failed program was
:" >&5
10387 sed 's/^/| /' conftest.$ac_ext >&5
10389 ac_cv_lib_pthreads_cma_open=no
10392 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10393 conftest$ac_exeext conftest.$ac_ext
10394 LIBS=$ac_check_lib_save_LIBS
10396 { echo "$as_me:$LINENO: result
: $ac_cv_lib_pthreads_cma_open" >&5
10397 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6; }
10398 if test $ac_cv_lib_pthreads_cma_open = yes; then
10399 cat >>confdefs.h <<_ACEOF
10400 #define HAVE_LIBPTHREADS 1
10403 LIBS="-lpthreads $LIBS"
10411 { echo "$as_me:$LINENO: checking
for -bbigtoc option
" >&5
10412 echo $ECHO_N "checking
for -bbigtoc option...
$ECHO_C" >&6; }
10413 if test "${gdb_cv_bigtoc+set}" = set; then
10414 echo $ECHO_N "(cached
) $ECHO_C" >&6
10418 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
10419 *) gdb_cv_bigtoc=-bbigtoc ;;
10422 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
10423 cat >conftest.$ac_ext <<_ACEOF
10426 cat confdefs.h >>conftest.$ac_ext
10427 cat >>conftest.$ac_ext <<_ACEOF
10428 /* end confdefs.h. */
10438 rm -f conftest.$ac_objext conftest$ac_exeext
10439 if { (ac_try="$ac_link"
10440 case "(($ac_try" in
10441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10442 *) ac_try_echo=$ac_try;;
10444 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10445 (eval "$ac_link") 2>conftest.er1
10447 grep -v '^ *+' conftest.er1 >conftest.err
10449 cat conftest.err >&5
10450 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10451 (exit $ac_status); } && {
10452 test -z "$ac_c_werror_flag" ||
10453 test ! -s conftest.err
10454 } && test -s conftest$ac_exeext &&
10455 $as_test_x conftest$ac_exeext; then
10458 echo "$as_me: failed program was
:" >&5
10459 sed 's/^/| /' conftest.$ac_ext >&5
10464 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10465 conftest$ac_exeext conftest.$ac_ext
10468 { echo "$as_me:$LINENO: result
: $gdb_cv_bigtoc" >&5
10469 echo "${ECHO_T}$gdb_cv_bigtoc" >&6; }
10473 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10474 # used for the tests that follow. We set them back to REAL_CFLAGS and
10475 # REAL_CPPFLAGS later on.
10477 REAL_CPPFLAGS="$CPPFLAGS"
10479 if test "${HAVE_X11}" = "yes"; then
10480 DEFS="$C_SWITCH_X_SITE $DEFS"
10481 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
10483 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
10484 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
10486 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10487 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
10488 # but it's more convenient here to set LD_RUN_PATH
10489 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
10490 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
10491 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10495 if test "${opsys}" = "gnu-linux
"; then
10496 { echo "$as_me:$LINENO: checking whether X on GNU
/Linux needs
-b to link
" >&5
10497 echo $ECHO_N "checking whether X on GNU
/Linux needs
-b to link...
$ECHO_C" >&6; }
10498 cat >conftest.$ac_ext <<_ACEOF
10501 cat confdefs.h >>conftest.$ac_ext
10502 cat >>conftest.$ac_ext <<_ACEOF
10503 /* end confdefs.h. */
10508 XOpenDisplay ("foo
");
10513 rm -f conftest.$ac_objext conftest$ac_exeext
10514 if { (ac_try="$ac_link"
10515 case "(($ac_try" in
10516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10517 *) ac_try_echo=$ac_try;;
10519 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10520 (eval "$ac_link") 2>conftest.er1
10522 grep -v '^ *+' conftest.er1 >conftest.err
10524 cat conftest.err >&5
10525 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10526 (exit $ac_status); } && {
10527 test -z "$ac_c_werror_flag" ||
10528 test ! -s conftest.err
10529 } && test -s conftest$ac_exeext &&
10530 $as_test_x conftest$ac_exeext; then
10531 xlinux_first_failure=no
10533 echo "$as_me: failed program was
:" >&5
10534 sed 's/^/| /' conftest.$ac_ext >&5
10536 xlinux_first_failure=yes
10539 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10540 conftest$ac_exeext conftest.$ac_ext
10541 if test "${xlinux_first_failure}" = "yes"; then
10542 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
10543 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
10544 OLD_CPPFLAGS="$CPPFLAGS"
10546 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout
"
10547 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout
"
10548 CPPFLAGS="$CPPFLAGS -b i486-linuxaout
"
10549 LIBS="$LIBS -b i486-linuxaout
"
10550 cat >conftest.$ac_ext <<_ACEOF
10553 cat confdefs.h >>conftest.$ac_ext
10554 cat >>conftest.$ac_ext <<_ACEOF
10555 /* end confdefs.h. */
10560 XOpenDisplay ("foo
");
10565 rm -f conftest.$ac_objext conftest$ac_exeext
10566 if { (ac_try="$ac_link"
10567 case "(($ac_try" in
10568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10569 *) ac_try_echo=$ac_try;;
10571 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10572 (eval "$ac_link") 2>conftest.er1
10574 grep -v '^ *+' conftest.er1 >conftest.err
10576 cat conftest.err >&5
10577 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10578 (exit $ac_status); } && {
10579 test -z "$ac_c_werror_flag" ||
10580 test ! -s conftest.err
10581 } && test -s conftest$ac_exeext &&
10582 $as_test_x conftest$ac_exeext; then
10583 xlinux_second_failure=no
10585 echo "$as_me: failed program was
:" >&5
10586 sed 's/^/| /' conftest.$ac_ext >&5
10588 xlinux_second_failure=yes
10591 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10592 conftest$ac_exeext conftest.$ac_ext
10593 if test "${xlinux_second_failure}" = "yes"; then
10594 # If we get the same failure with -b, there is no use adding -b.
10595 # So take it out. This plays safe.
10596 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
10597 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
10598 CPPFLAGS="$OLD_CPPFLAGS"
10600 { echo "$as_me:$LINENO: result
: no
" >&5
10601 echo "${ECHO_T}no
" >&6; }
10603 { echo "$as_me:$LINENO: result
: yes" >&5
10604 echo "${ECHO_T}yes" >&6; }
10607 { echo "$as_me:$LINENO: result
: no
" >&5
10608 echo "${ECHO_T}no
" >&6; }
10612 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10613 # header files included from there.
10614 { echo "$as_me:$LINENO: checking
for Xkb
" >&5
10615 echo $ECHO_N "checking
for Xkb...
$ECHO_C" >&6; }
10616 cat >conftest.$ac_ext <<_ACEOF
10619 cat confdefs.h >>conftest.$ac_ext
10620 cat >>conftest.$ac_ext <<_ACEOF
10621 /* end confdefs.h. */
10622 #include <X11/Xlib.h>
10623 #include <X11/XKBlib.h>
10627 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10632 rm -f conftest.$ac_objext conftest$ac_exeext
10633 if { (ac_try="$ac_link"
10634 case "(($ac_try" in
10635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10636 *) ac_try_echo=$ac_try;;
10638 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10639 (eval "$ac_link") 2>conftest.er1
10641 grep -v '^ *+' conftest.er1 >conftest.err
10643 cat conftest.err >&5
10644 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10645 (exit $ac_status); } && {
10646 test -z "$ac_c_werror_flag" ||
10647 test ! -s conftest.err
10648 } && test -s conftest$ac_exeext &&
10649 $as_test_x conftest$ac_exeext; then
10652 echo "$as_me: failed program was
:" >&5
10653 sed 's/^/| /' conftest.$ac_ext >&5
10658 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10659 conftest$ac_exeext conftest.$ac_ext
10660 { echo "$as_me:$LINENO: result
: $emacs_xkb" >&5
10661 echo "${ECHO_T}$emacs_xkb" >&6; }
10662 if test $emacs_xkb = yes; then
10664 cat >>confdefs.h <<\_ACEOF
10665 #define HAVE_XKBGETKEYBOARD 1
10674 for ac_func in XrmSetDatabase XScreenResourceString \
10675 XScreenNumberOfScreen XSetWMProtocols
10677 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
10678 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
10679 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
10680 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
10681 echo $ECHO_N "(cached
) $ECHO_C" >&6
10683 cat >conftest.$ac_ext <<_ACEOF
10686 cat confdefs.h >>conftest.$ac_ext
10687 cat >>conftest.$ac_ext <<_ACEOF
10688 /* end confdefs.h. */
10689 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10690 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10691 #define $ac_func innocuous_$ac_func
10693 /* System header to define __stub macros and hopefully few prototypes,
10694 which can conflict with char $ac_func (); below.
10695 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10696 <limits.h> exists even on freestanding compilers. */
10699 # include <limits.h>
10701 # include <assert.h>
10706 /* Override any GCC internal prototype to avoid an error.
10707 Use char because int might match the return type of a GCC
10708 builtin and then its argument prototype would still apply. */
10713 /* The GNU C library defines this for functions which it implements
10714 to always fail with ENOSYS. Some functions are actually named
10715 something starting with __ and the normal name is an alias. */
10716 #if defined __stub_$ac_func || defined __stub___$ac_func
10723 return $ac_func ();
10728 rm -f conftest.$ac_objext conftest$ac_exeext
10729 if { (ac_try="$ac_link"
10730 case "(($ac_try" in
10731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10732 *) ac_try_echo=$ac_try;;
10734 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10735 (eval "$ac_link") 2>conftest.er1
10737 grep -v '^ *+' conftest.er1 >conftest.err
10739 cat conftest.err >&5
10740 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10741 (exit $ac_status); } && {
10742 test -z "$ac_c_werror_flag" ||
10743 test ! -s conftest.err
10744 } && test -s conftest$ac_exeext &&
10745 $as_test_x conftest$ac_exeext; then
10746 eval "$as_ac_var=yes"
10748 echo "$as_me: failed program was
:" >&5
10749 sed 's/^/| /' conftest.$ac_ext >&5
10751 eval "$as_ac_var=no
"
10754 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10755 conftest$ac_exeext conftest.$ac_ext
10757 ac_res=`eval echo '${'$as_ac_var'}'`
10758 { echo "$as_me:$LINENO: result
: $ac_res" >&5
10759 echo "${ECHO_T}$ac_res" >&6; }
10760 if test `eval echo '${'$as_ac_var'}'` = yes; then
10761 cat >>confdefs.h <<_ACEOF
10762 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
10770 if test "${window_system}" = "x11
"; then
10771 { echo "$as_me:$LINENO: checking X11 version
6" >&5
10772 echo $ECHO_N "checking X11 version
6...
$ECHO_C" >&6; }
10773 if test "${emacs_cv_x11_version_6+set}" = set; then
10774 echo $ECHO_N "(cached
) $ECHO_C" >&6
10776 cat >conftest.$ac_ext <<_ACEOF
10779 cat confdefs.h >>conftest.$ac_ext
10780 cat >>conftest.$ac_ext <<_ACEOF
10781 /* end confdefs.h. */
10782 #include <X11/Xlib.h>
10786 #if XlibSpecificationRelease < 6
10794 rm -f conftest.$ac_objext conftest$ac_exeext
10795 if { (ac_try="$ac_link"
10796 case "(($ac_try" in
10797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10798 *) ac_try_echo=$ac_try;;
10800 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10801 (eval "$ac_link") 2>conftest.er1
10803 grep -v '^ *+' conftest.er1 >conftest.err
10805 cat conftest.err >&5
10806 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10807 (exit $ac_status); } && {
10808 test -z "$ac_c_werror_flag" ||
10809 test ! -s conftest.err
10810 } && test -s conftest$ac_exeext &&
10811 $as_test_x conftest$ac_exeext; then
10812 emacs_cv_x11_version_6=yes
10814 echo "$as_me: failed program was
:" >&5
10815 sed 's/^/| /' conftest.$ac_ext >&5
10817 emacs_cv_x11_version_6=no
10820 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10821 conftest$ac_exeext conftest.$ac_ext
10824 if test $emacs_cv_x11_version_6 = yes; then
10825 { echo "$as_me:$LINENO: result
: 6 or newer
" >&5
10826 echo "${ECHO_T}6 or newer
" >&6; }
10828 cat >>confdefs.h <<\_ACEOF
10829 #define HAVE_X11R6 1
10833 { echo "$as_me:$LINENO: result
: before
6" >&5
10834 echo "${ECHO_T}before
6" >&6; }
10839 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
10841 if test "${HAVE_X11}" = "yes"; then
10842 if test "${with_rsvg}" != "no
"; then
10843 RSVG_REQUIRED=2.0.0
10844 RSVG_MODULE="librsvg-2.0
>= $RSVG_REQUIRED"
10849 # Extract the first word of "pkg-config
", so it can be a program name with args.
10850 set dummy pkg-config; ac_word=$2
10851 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
10852 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
10853 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10854 echo $ECHO_N "(cached
) $ECHO_C" >&6
10856 case $PKG_CONFIG in
10858 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10862 for as_dir in $PATH
10865 test -z "$as_dir" && as_dir=.
10866 for ac_exec_ext in '' $ac_executable_extensions; do
10867 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10868 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10869 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
10876 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no
"
10880 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10881 if test -n "$PKG_CONFIG"; then
10882 { echo "$as_me:$LINENO: result
: $PKG_CONFIG" >&5
10883 echo "${ECHO_T}$PKG_CONFIG" >&6; }
10885 { echo "$as_me:$LINENO: result
: no
" >&5
10886 echo "${ECHO_T}no
" >&6; }
10891 if test "$PKG_CONFIG" = "no
" ; then
10894 PKG_CONFIG_MIN_VERSION=0.9.0
10895 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10896 { echo "$as_me:$LINENO: checking
for $RSVG_MODULE" >&5
10897 echo $ECHO_N "checking
for $RSVG_MODULE...
$ECHO_C" >&6; }
10899 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
10900 { echo "$as_me:$LINENO: result
: yes" >&5
10901 echo "${ECHO_T}yes" >&6; }
10904 { echo "$as_me:$LINENO: checking RSVG_CFLAGS
" >&5
10905 echo $ECHO_N "checking RSVG_CFLAGS...
$ECHO_C" >&6; }
10906 RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
10907 { echo "$as_me:$LINENO: result
: $RSVG_CFLAGS" >&5
10908 echo "${ECHO_T}$RSVG_CFLAGS" >&6; }
10910 { echo "$as_me:$LINENO: checking RSVG_LIBS
" >&5
10911 echo $ECHO_N "checking RSVG_LIBS...
$ECHO_C" >&6; }
10912 RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
10913 { echo "$as_me:$LINENO: result
: $RSVG_LIBS" >&5
10914 echo "${ECHO_T}$RSVG_LIBS" >&6; }
10916 { echo "$as_me:$LINENO: result
: no
" >&5
10917 echo "${ECHO_T}no
" >&6; }
10920 ## If we have a custom action on failure, don't print errors, but
10921 ## do set a variable so people can do so.
10922 RSVG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
10929 echo "*** Your version of pkg-config is too old. You need version
$PKG_CONFIG_MIN_VERSION or newer.
"
10930 echo "*** See http
://www.freedesktop.org
/software
/pkgconfig
"
10934 if test $succeeded = yes; then
10943 if test ".
${RSVG_CFLAGS}" != ".
"; then
10946 cat >>confdefs.h <<\_ACEOF
10947 #define HAVE_RSVG 1
10950 CFLAGS="$CFLAGS $RSVG_CFLAGS"
10951 LIBS="$RSVG_LIBS $LIBS"
10958 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "maybe
"; then
10961 GTK_MODULES="gtk
+-2.0
>= $GTK_REQUIRED glib-2.0
>= $GLIB_REQUIRED"
10966 # Extract the first word of "pkg-config
", so it can be a program name with args.
10967 set dummy pkg-config; ac_word=$2
10968 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
10969 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
10970 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10971 echo $ECHO_N "(cached
) $ECHO_C" >&6
10973 case $PKG_CONFIG in
10975 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10979 for as_dir in $PATH
10982 test -z "$as_dir" && as_dir=.
10983 for ac_exec_ext in '' $ac_executable_extensions; do
10984 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10985 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10986 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
10993 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no
"
10997 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10998 if test -n "$PKG_CONFIG"; then
10999 { echo "$as_me:$LINENO: result
: $PKG_CONFIG" >&5
11000 echo "${ECHO_T}$PKG_CONFIG" >&6; }
11002 { echo "$as_me:$LINENO: result
: no
" >&5
11003 echo "${ECHO_T}no
" >&6; }
11008 if test "$PKG_CONFIG" = "no
" ; then
11011 PKG_CONFIG_MIN_VERSION=0.9.0
11012 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11013 { echo "$as_me:$LINENO: checking
for $GTK_MODULES" >&5
11014 echo $ECHO_N "checking
for $GTK_MODULES...
$ECHO_C" >&6; }
11016 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
11017 { echo "$as_me:$LINENO: result
: yes" >&5
11018 echo "${ECHO_T}yes" >&6; }
11021 { echo "$as_me:$LINENO: checking GTK_CFLAGS
" >&5
11022 echo $ECHO_N "checking GTK_CFLAGS...
$ECHO_C" >&6; }
11023 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
11024 { echo "$as_me:$LINENO: result
: $GTK_CFLAGS" >&5
11025 echo "${ECHO_T}$GTK_CFLAGS" >&6; }
11027 { echo "$as_me:$LINENO: checking GTK_LIBS
" >&5
11028 echo $ECHO_N "checking GTK_LIBS...
$ECHO_C" >&6; }
11029 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
11030 { echo "$as_me:$LINENO: result
: $GTK_LIBS" >&5
11031 echo "${ECHO_T}$GTK_LIBS" >&6; }
11033 { echo "$as_me:$LINENO: result
: no
" >&5
11034 echo "${ECHO_T}no
" >&6; }
11037 ## If we have a custom action on failure, don't print errors, but
11038 ## do set a variable so people can do so.
11039 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
11046 echo "*** Your version of pkg-config is too old. You need version
$PKG_CONFIG_MIN_VERSION or newer.
"
11047 echo "*** See http
://www.freedesktop.org
/software
/pkgconfig
"
11051 if test $succeeded = yes; then
11057 if test "$pkg_check_gtk" = "no
" && test "$USE_X_TOOLKIT" != "maybe
"; then
11058 { { echo "$as_me:$LINENO: error
: $GTK_PKG_ERRORS" >&5
11059 echo "$as_me: error
: $GTK_PKG_ERRORS" >&2;}
11060 { (exit 1); exit 1; }; }
11065 if test x"$pkg_check_gtk" = xyes; then
11069 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
11070 CFLAGS="$CFLAGS $GTK_CFLAGS"
11071 LIBS="$GTK_LIBS $LIBS"
11074 for ac_func in gtk_main
11076 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
11077 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
11078 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
11079 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
11080 echo $ECHO_N "(cached
) $ECHO_C" >&6
11082 cat >conftest.$ac_ext <<_ACEOF
11085 cat confdefs.h >>conftest.$ac_ext
11086 cat >>conftest.$ac_ext <<_ACEOF
11087 /* end confdefs.h. */
11088 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11089 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11090 #define $ac_func innocuous_$ac_func
11092 /* System header to define __stub macros and hopefully few prototypes,
11093 which can conflict with char $ac_func (); below.
11094 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11095 <limits.h> exists even on freestanding compilers. */
11098 # include <limits.h>
11100 # include <assert.h>
11105 /* Override any GCC internal prototype to avoid an error.
11106 Use char because int might match the return type of a GCC
11107 builtin and then its argument prototype would still apply. */
11112 /* The GNU C library defines this for functions which it implements
11113 to always fail with ENOSYS. Some functions are actually named
11114 something starting with __ and the normal name is an alias. */
11115 #if defined __stub_$ac_func || defined __stub___$ac_func
11122 return $ac_func ();
11127 rm -f conftest.$ac_objext conftest$ac_exeext
11128 if { (ac_try="$ac_link"
11129 case "(($ac_try" in
11130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11131 *) ac_try_echo=$ac_try;;
11133 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11134 (eval "$ac_link") 2>conftest.er1
11136 grep -v '^ *+' conftest.er1 >conftest.err
11138 cat conftest.err >&5
11139 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11140 (exit $ac_status); } && {
11141 test -z "$ac_c_werror_flag" ||
11142 test ! -s conftest.err
11143 } && test -s conftest$ac_exeext &&
11144 $as_test_x conftest$ac_exeext; then
11145 eval "$as_ac_var=yes"
11147 echo "$as_me: failed program was
:" >&5
11148 sed 's/^/| /' conftest.$ac_ext >&5
11150 eval "$as_ac_var=no
"
11153 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11154 conftest$ac_exeext conftest.$ac_ext
11156 ac_res=`eval echo '${'$as_ac_var'}'`
11157 { echo "$as_me:$LINENO: result
: $ac_res" >&5
11158 echo "${ECHO_T}$ac_res" >&6; }
11159 if test `eval echo '${'$as_ac_var'}'` = yes; then
11160 cat >>confdefs.h <<_ACEOF
11161 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
11167 if test "${GTK_COMPILES}" != "yes"; then
11168 if test "$USE_X_TOOLKIT" != "maybe
"; then
11169 { { echo "$as_me:$LINENO: error
: Gtk
+ wanted
, but it does not compile
, see config.log. Maybe some x11-devel files missing?
" >&5
11170 echo "$as_me: error
: Gtk
+ wanted
, but it does not compile
, see config.log. Maybe some x11-devel files missing?
" >&2;}
11171 { (exit 1); exit 1; }; };
11176 cat >>confdefs.h <<\_ACEOF
11181 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then
11184 { echo "$as_me:$LINENO: WARNING
: Your version of Gtk
+ will have problems with
11185 closing open displays. This is no problem
if you just use
11186 one display
, but
if you use
more than one and close one of them
11187 Emacs may crash.
" >&5
11188 echo "$as_me: WARNING
: Your version of Gtk
+ will have problems with
11189 closing open displays. This is no problem
if you just use
11190 one display
, but
if you use
more than one and close one of them
11191 Emacs may crash.
" >&2;}
11199 if test "${HAVE_GTK}" = "yes"; then
11201 if test "$with_toolkit_scroll_bars" != no; then
11202 with_toolkit_scroll_bars=yes
11205 HAVE_GTK_MULTIDISPLAY=no
11207 for ac_func in gdk_display_open
11209 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
11210 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
11211 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
11212 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
11213 echo $ECHO_N "(cached
) $ECHO_C" >&6
11215 cat >conftest.$ac_ext <<_ACEOF
11218 cat confdefs.h >>conftest.$ac_ext
11219 cat >>conftest.$ac_ext <<_ACEOF
11220 /* end confdefs.h. */
11221 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11222 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11223 #define $ac_func innocuous_$ac_func
11225 /* System header to define __stub macros and hopefully few prototypes,
11226 which can conflict with char $ac_func (); below.
11227 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11228 <limits.h> exists even on freestanding compilers. */
11231 # include <limits.h>
11233 # include <assert.h>
11238 /* Override any GCC internal prototype to avoid an error.
11239 Use char because int might match the return type of a GCC
11240 builtin and then its argument prototype would still apply. */
11245 /* The GNU C library defines this for functions which it implements
11246 to always fail with ENOSYS. Some functions are actually named
11247 something starting with __ and the normal name is an alias. */
11248 #if defined __stub_$ac_func || defined __stub___$ac_func
11255 return $ac_func ();
11260 rm -f conftest.$ac_objext conftest$ac_exeext
11261 if { (ac_try="$ac_link"
11262 case "(($ac_try" in
11263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11264 *) ac_try_echo=$ac_try;;
11266 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11267 (eval "$ac_link") 2>conftest.er1
11269 grep -v '^ *+' conftest.er1 >conftest.err
11271 cat conftest.err >&5
11272 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11273 (exit $ac_status); } && {
11274 test -z "$ac_c_werror_flag" ||
11275 test ! -s conftest.err
11276 } && test -s conftest$ac_exeext &&
11277 $as_test_x conftest$ac_exeext; then
11278 eval "$as_ac_var=yes"
11280 echo "$as_me: failed program was
:" >&5
11281 sed 's/^/| /' conftest.$ac_ext >&5
11283 eval "$as_ac_var=no
"
11286 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11287 conftest$ac_exeext conftest.$ac_ext
11289 ac_res=`eval echo '${'$as_ac_var'}'`
11290 { echo "$as_me:$LINENO: result
: $ac_res" >&5
11291 echo "${ECHO_T}$ac_res" >&6; }
11292 if test `eval echo '${'$as_ac_var'}'` = yes; then
11293 cat >>confdefs.h <<_ACEOF
11294 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
11296 HAVE_GTK_MULTIDISPLAY=yes
11300 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
11302 cat >>confdefs.h <<\_ACEOF
11303 #define HAVE_GTK_MULTIDISPLAY 1
11308 HAVE_GTK_FILE_SELECTION=no
11310 for ac_func in gtk_file_selection_new
11312 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
11313 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
11314 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
11315 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
11316 echo $ECHO_N "(cached
) $ECHO_C" >&6
11318 cat >conftest.$ac_ext <<_ACEOF
11321 cat confdefs.h >>conftest.$ac_ext
11322 cat >>conftest.$ac_ext <<_ACEOF
11323 /* end confdefs.h. */
11324 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11325 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11326 #define $ac_func innocuous_$ac_func
11328 /* System header to define __stub macros and hopefully few prototypes,
11329 which can conflict with char $ac_func (); below.
11330 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11331 <limits.h> exists even on freestanding compilers. */
11334 # include <limits.h>
11336 # include <assert.h>
11341 /* Override any GCC internal prototype to avoid an error.
11342 Use char because int might match the return type of a GCC
11343 builtin and then its argument prototype would still apply. */
11348 /* The GNU C library defines this for functions which it implements
11349 to always fail with ENOSYS. Some functions are actually named
11350 something starting with __ and the normal name is an alias. */
11351 #if defined __stub_$ac_func || defined __stub___$ac_func
11358 return $ac_func ();
11363 rm -f conftest.$ac_objext conftest$ac_exeext
11364 if { (ac_try="$ac_link"
11365 case "(($ac_try" in
11366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11367 *) ac_try_echo=$ac_try;;
11369 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11370 (eval "$ac_link") 2>conftest.er1
11372 grep -v '^ *+' conftest.er1 >conftest.err
11374 cat conftest.err >&5
11375 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11376 (exit $ac_status); } && {
11377 test -z "$ac_c_werror_flag" ||
11378 test ! -s conftest.err
11379 } && test -s conftest$ac_exeext &&
11380 $as_test_x conftest$ac_exeext; then
11381 eval "$as_ac_var=yes"
11383 echo "$as_me: failed program was
:" >&5
11384 sed 's/^/| /' conftest.$ac_ext >&5
11386 eval "$as_ac_var=no
"
11389 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11390 conftest$ac_exeext conftest.$ac_ext
11392 ac_res=`eval echo '${'$as_ac_var'}'`
11393 { echo "$as_me:$LINENO: result
: $ac_res" >&5
11394 echo "${ECHO_T}$ac_res" >&6; }
11395 if test `eval echo '${'$as_ac_var'}'` = yes; then
11396 cat >>confdefs.h <<_ACEOF
11397 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
11399 HAVE_GTK_FILE_SELECTION=yes
11404 HAVE_GTK_FILE_CHOOSER=no
11406 for ac_func in gtk_file_chooser_dialog_new
11408 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
11409 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
11410 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
11411 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
11412 echo $ECHO_N "(cached
) $ECHO_C" >&6
11414 cat >conftest.$ac_ext <<_ACEOF
11417 cat confdefs.h >>conftest.$ac_ext
11418 cat >>conftest.$ac_ext <<_ACEOF
11419 /* end confdefs.h. */
11420 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11421 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11422 #define $ac_func innocuous_$ac_func
11424 /* System header to define __stub macros and hopefully few prototypes,
11425 which can conflict with char $ac_func (); below.
11426 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11427 <limits.h> exists even on freestanding compilers. */
11430 # include <limits.h>
11432 # include <assert.h>
11437 /* Override any GCC internal prototype to avoid an error.
11438 Use char because int might match the return type of a GCC
11439 builtin and then its argument prototype would still apply. */
11444 /* The GNU C library defines this for functions which it implements
11445 to always fail with ENOSYS. Some functions are actually named
11446 something starting with __ and the normal name is an alias. */
11447 #if defined __stub_$ac_func || defined __stub___$ac_func
11454 return $ac_func ();
11459 rm -f conftest.$ac_objext conftest$ac_exeext
11460 if { (ac_try="$ac_link"
11461 case "(($ac_try" in
11462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11463 *) ac_try_echo=$ac_try;;
11465 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11466 (eval "$ac_link") 2>conftest.er1
11468 grep -v '^ *+' conftest.er1 >conftest.err
11470 cat conftest.err >&5
11471 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11472 (exit $ac_status); } && {
11473 test -z "$ac_c_werror_flag" ||
11474 test ! -s conftest.err
11475 } && test -s conftest$ac_exeext &&
11476 $as_test_x conftest$ac_exeext; then
11477 eval "$as_ac_var=yes"
11479 echo "$as_me: failed program was
:" >&5
11480 sed 's/^/| /' conftest.$ac_ext >&5
11482 eval "$as_ac_var=no
"
11485 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11486 conftest$ac_exeext conftest.$ac_ext
11488 ac_res=`eval echo '${'$as_ac_var'}'`
11489 { echo "$as_me:$LINENO: result
: $ac_res" >&5
11490 echo "${ECHO_T}$ac_res" >&6; }
11491 if test `eval echo '${'$as_ac_var'}'` = yes; then
11492 cat >>confdefs.h <<_ACEOF
11493 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
11495 HAVE_GTK_FILE_CHOOSER=yes
11500 if test "$HAVE_GTK_FILE_SELECTION" = yes \
11501 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11503 cat >>confdefs.h <<\_ACEOF
11504 #define HAVE_GTK_FILE_BOTH 1
11509 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11510 HAVE_GTK_AND_PTHREAD=no
11512 for ac_header in pthread.h
11514 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
11515 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
11516 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
11517 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
11518 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
11519 echo $ECHO_N "(cached
) $ECHO_C" >&6
11521 ac_res=`eval echo '${'$as_ac_Header'}'`
11522 { echo "$as_me:$LINENO: result
: $ac_res" >&5
11523 echo "${ECHO_T}$ac_res" >&6; }
11525 # Is the header compilable?
11526 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
11527 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
11528 cat >conftest.$ac_ext <<_ACEOF
11531 cat confdefs.h >>conftest.$ac_ext
11532 cat >>conftest.$ac_ext <<_ACEOF
11533 /* end confdefs.h. */
11534 $ac_includes_default
11535 #include <$ac_header>
11537 rm -f conftest.$ac_objext
11538 if { (ac_try="$ac_compile"
11539 case "(($ac_try" in
11540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11541 *) ac_try_echo=$ac_try;;
11543 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11544 (eval "$ac_compile") 2>conftest.er1
11546 grep -v '^ *+' conftest.er1 >conftest.err
11548 cat conftest.err >&5
11549 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11550 (exit $ac_status); } && {
11551 test -z "$ac_c_werror_flag" ||
11552 test ! -s conftest.err
11553 } && test -s conftest.$ac_objext; then
11554 ac_header_compiler=yes
11556 echo "$as_me: failed program was
:" >&5
11557 sed 's/^/| /' conftest.$ac_ext >&5
11559 ac_header_compiler=no
11562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11563 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
11564 echo "${ECHO_T}$ac_header_compiler" >&6; }
11566 # Is the header present?
11567 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
11568 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
11569 cat >conftest.$ac_ext <<_ACEOF
11572 cat confdefs.h >>conftest.$ac_ext
11573 cat >>conftest.$ac_ext <<_ACEOF
11574 /* end confdefs.h. */
11575 #include <$ac_header>
11577 if { (ac_try="$ac_cpp conftest.
$ac_ext"
11578 case "(($ac_try" in
11579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11580 *) ac_try_echo=$ac_try;;
11582 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11583 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
11585 grep -v '^ *+' conftest.er1 >conftest.err
11587 cat conftest.err >&5
11588 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11589 (exit $ac_status); } >/dev/null && {
11590 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11591 test ! -s conftest.err
11593 ac_header_preproc=yes
11595 echo "$as_me: failed program was
:" >&5
11596 sed 's/^/| /' conftest.$ac_ext >&5
11598 ac_header_preproc=no
11601 rm -f conftest.err conftest.$ac_ext
11602 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
11603 echo "${ECHO_T}$ac_header_preproc" >&6; }
11605 # So? What about this header?
11606 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11608 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
11609 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
11610 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
11611 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
11612 ac_header_preproc=yes
11615 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
11616 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
11617 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
11618 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
11619 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
11620 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
11621 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
11622 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
11623 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
11624 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
11625 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
11626 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
11630 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
11631 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
11632 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
11633 echo $ECHO_N "(cached
) $ECHO_C" >&6
11635 eval "$as_ac_Header=\
$ac_header_preproc"
11637 ac_res=`eval echo '${'$as_ac_Header'}'`
11638 { echo "$as_me:$LINENO: result
: $ac_res" >&5
11639 echo "${ECHO_T}$ac_res" >&6; }
11642 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11643 cat >>confdefs.h <<_ACEOF
11644 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
11651 if test "$ac_cv_header_pthread_h"; then
11652 { echo "$as_me:$LINENO: checking
for pthread_self
in -lpthread" >&5
11653 echo $ECHO_N "checking
for pthread_self
in -lpthread...
$ECHO_C" >&6; }
11654 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
11655 echo $ECHO_N "(cached
) $ECHO_C" >&6
11657 ac_check_lib_save_LIBS=$LIBS
11658 LIBS="-lpthread $LIBS"
11659 cat >conftest.$ac_ext <<_ACEOF
11662 cat confdefs.h >>conftest.$ac_ext
11663 cat >>conftest.$ac_ext <<_ACEOF
11664 /* end confdefs.h. */
11666 /* Override any GCC internal prototype to avoid an error.
11667 Use char because int might match the return type of a GCC
11668 builtin and then its argument prototype would still apply. */
11672 char pthread_self ();
11676 return pthread_self ();
11681 rm -f conftest.$ac_objext conftest$ac_exeext
11682 if { (ac_try="$ac_link"
11683 case "(($ac_try" in
11684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11685 *) ac_try_echo=$ac_try;;
11687 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11688 (eval "$ac_link") 2>conftest.er1
11690 grep -v '^ *+' conftest.er1 >conftest.err
11692 cat conftest.err >&5
11693 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11694 (exit $ac_status); } && {
11695 test -z "$ac_c_werror_flag" ||
11696 test ! -s conftest.err
11697 } && test -s conftest$ac_exeext &&
11698 $as_test_x conftest$ac_exeext; then
11699 ac_cv_lib_pthread_pthread_self=yes
11701 echo "$as_me: failed program was
:" >&5
11702 sed 's/^/| /' conftest.$ac_ext >&5
11704 ac_cv_lib_pthread_pthread_self=no
11707 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11708 conftest$ac_exeext conftest.$ac_ext
11709 LIBS=$ac_check_lib_save_LIBS
11711 { echo "$as_me:$LINENO: result
: $ac_cv_lib_pthread_pthread_self" >&5
11712 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6; }
11713 if test $ac_cv_lib_pthread_pthread_self = yes; then
11714 HAVE_GTK_AND_PTHREAD=yes
11718 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
11719 case "${canonical}" in
11721 *) GTK_LIBS="$GTK_LIBS -lpthread" ;;
11724 cat >>confdefs.h <<\_ACEOF
11725 #define HAVE_GTK_AND_PTHREAD 1
11733 if test "${with_dbus}" = "yes"; then
11737 # Extract the first word of "pkg-config
", so it can be a program name with args.
11738 set dummy pkg-config; ac_word=$2
11739 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
11740 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
11741 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11742 echo $ECHO_N "(cached
) $ECHO_C" >&6
11744 case $PKG_CONFIG in
11746 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11750 for as_dir in $PATH
11753 test -z "$as_dir" && as_dir=.
11754 for ac_exec_ext in '' $ac_executable_extensions; do
11755 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11756 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11757 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
11764 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no
"
11768 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11769 if test -n "$PKG_CONFIG"; then
11770 { echo "$as_me:$LINENO: result
: $PKG_CONFIG" >&5
11771 echo "${ECHO_T}$PKG_CONFIG" >&6; }
11773 { echo "$as_me:$LINENO: result
: no
" >&5
11774 echo "${ECHO_T}no
" >&6; }
11779 if test "$PKG_CONFIG" = "no
" ; then
11782 PKG_CONFIG_MIN_VERSION=0.9.0
11783 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11784 { echo "$as_me:$LINENO: checking
for dbus-1
>= 1.0" >&5
11785 echo $ECHO_N "checking
for dbus-1
>= 1.0...
$ECHO_C" >&6; }
11787 if $PKG_CONFIG --exists "dbus-1
>= 1.0" 2>&5; then
11788 { echo "$as_me:$LINENO: result
: yes" >&5
11789 echo "${ECHO_T}yes" >&6; }
11792 { echo "$as_me:$LINENO: checking DBUS_CFLAGS
" >&5
11793 echo $ECHO_N "checking DBUS_CFLAGS...
$ECHO_C" >&6; }
11794 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1
>= 1.0"|sed -e 's,///*,/,g'`
11795 { echo "$as_me:$LINENO: result
: $DBUS_CFLAGS" >&5
11796 echo "${ECHO_T}$DBUS_CFLAGS" >&6; }
11798 { echo "$as_me:$LINENO: checking DBUS_LIBS
" >&5
11799 echo $ECHO_N "checking DBUS_LIBS...
$ECHO_C" >&6; }
11800 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1
>= 1.0"|sed -e 's,///*,/,g'`
11801 { echo "$as_me:$LINENO: result
: $DBUS_LIBS" >&5
11802 echo "${ECHO_T}$DBUS_LIBS" >&6; }
11804 { echo "$as_me:$LINENO: result
: no
" >&5
11805 echo "${ECHO_T}no
" >&6; }
11808 ## If we have a custom action on failure, don't print errors, but
11809 ## do set a variable so people can do so.
11810 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1
>= 1.0"`
11817 echo "*** Your version of pkg-config is too old. You need version
$PKG_CONFIG_MIN_VERSION or newer.
"
11818 echo "*** See http
://www.freedesktop.org
/software
/pkgconfig
"
11822 if test $succeeded = yes; then
11828 if test "$HAVE_DBUS" = yes; then
11830 cat >>confdefs.h <<\_ACEOF
11831 #define HAVE_DBUS 1
11838 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
11839 if test "$with_xaw3d" != no; then
11840 { echo "$as_me:$LINENO: checking
for xaw3d
" >&5
11841 echo $ECHO_N "checking
for xaw3d...
$ECHO_C" >&6; }
11842 if test "${emacs_cv_xaw3d+set}" = set; then
11843 echo $ECHO_N "(cached
) $ECHO_C" >&6
11845 cat >conftest.$ac_ext <<_ACEOF
11848 cat confdefs.h >>conftest.$ac_ext
11849 cat >>conftest.$ac_ext <<_ACEOF
11850 /* end confdefs.h. */
11852 #include <X11/Intrinsic.h>
11853 #include <X11/Xaw3d/Simple.h>
11862 rm -f conftest.$ac_objext conftest$ac_exeext
11863 if { (ac_try="$ac_link"
11864 case "(($ac_try" in
11865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11866 *) ac_try_echo=$ac_try;;
11868 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11869 (eval "$ac_link") 2>conftest.er1
11871 grep -v '^ *+' conftest.er1 >conftest.err
11873 cat conftest.err >&5
11874 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11875 (exit $ac_status); } && {
11876 test -z "$ac_c_werror_flag" ||
11877 test ! -s conftest.err
11878 } && test -s conftest$ac_exeext &&
11879 $as_test_x conftest$ac_exeext; then
11882 echo "$as_me: failed program was
:" >&5
11883 sed 's/^/| /' conftest.$ac_ext >&5
11888 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11889 conftest$ac_exeext conftest.$ac_ext
11895 if test $emacs_cv_xaw3d = yes; then
11896 { echo "$as_me:$LINENO: result
: yes; using Lucid toolkit
" >&5
11897 echo "${ECHO_T}yes; using Lucid toolkit
" >&6; }
11898 USE_X_TOOLKIT=LUCID
11901 cat >>confdefs.h <<\_ACEOF
11902 #define HAVE_XAW3D 1
11906 { echo "$as_me:$LINENO: result
: no
" >&5
11907 echo "${ECHO_T}no
" >&6; }
11908 { echo "$as_me:$LINENO: checking
for libXaw
" >&5
11909 echo $ECHO_N "checking
for libXaw...
$ECHO_C" >&6; }
11910 if test "${emacs_cv_xaw+set}" = set; then
11911 echo $ECHO_N "(cached
) $ECHO_C" >&6
11913 cat >conftest.$ac_ext <<_ACEOF
11916 cat confdefs.h >>conftest.$ac_ext
11917 cat >>conftest.$ac_ext <<_ACEOF
11918 /* end confdefs.h. */
11920 #include <X11/Intrinsic.h>
11921 #include <X11/Xaw/Simple.h>
11930 rm -f conftest.$ac_objext conftest$ac_exeext
11931 if { (ac_try="$ac_link"
11932 case "(($ac_try" in
11933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11934 *) ac_try_echo=$ac_try;;
11936 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11937 (eval "$ac_link") 2>conftest.er1
11939 grep -v '^ *+' conftest.er1 >conftest.err
11941 cat conftest.err >&5
11942 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11943 (exit $ac_status); } && {
11944 test -z "$ac_c_werror_flag" ||
11945 test ! -s conftest.err
11946 } && test -s conftest$ac_exeext &&
11947 $as_test_x conftest$ac_exeext; then
11950 echo "$as_me: failed program was
:" >&5
11951 sed 's/^/| /' conftest.$ac_ext >&5
11956 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11957 conftest$ac_exeext conftest.$ac_ext
11960 if test $emacs_cv_xaw = yes; then
11961 { echo "$as_me:$LINENO: result
: yes; using Lucid toolkit
" >&5
11962 echo "${ECHO_T}yes; using Lucid toolkit
" >&6; }
11963 USE_X_TOOLKIT=LUCID
11964 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
11965 { { echo "$as_me:$LINENO: error
: Lucid toolkit requires X11
/Xaw include files
" >&5
11966 echo "$as_me: error
: Lucid toolkit requires X11
/Xaw include files
" >&2;}
11967 { (exit 1); exit 1; }; }
11969 { echo "$as_me:$LINENO: result
: no
; do not use toolkit by default
" >&5
11970 echo "${ECHO_T}no
; do not use toolkit by default
" >&6; }
11976 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
11978 if test "${USE_X_TOOLKIT}" != "none
"; then
11979 { echo "$as_me:$LINENO: checking X11 toolkit version
" >&5
11980 echo $ECHO_N "checking X11 toolkit version...
$ECHO_C" >&6; }
11981 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
11982 echo $ECHO_N "(cached
) $ECHO_C" >&6
11984 cat >conftest.$ac_ext <<_ACEOF
11987 cat confdefs.h >>conftest.$ac_ext
11988 cat >>conftest.$ac_ext <<_ACEOF
11989 /* end confdefs.h. */
11990 #include <X11/Intrinsic.h>
11994 #if XtSpecificationRelease < 6
12002 rm -f conftest.$ac_objext conftest$ac_exeext
12003 if { (ac_try="$ac_link"
12004 case "(($ac_try" in
12005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12006 *) ac_try_echo=$ac_try;;
12008 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12009 (eval "$ac_link") 2>conftest.er1
12011 grep -v '^ *+' conftest.er1 >conftest.err
12013 cat conftest.err >&5
12014 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12015 (exit $ac_status); } && {
12016 test -z "$ac_c_werror_flag" ||
12017 test ! -s conftest.err
12018 } && test -s conftest$ac_exeext &&
12019 $as_test_x conftest$ac_exeext; then
12020 emacs_cv_x11_toolkit_version_6=yes
12022 echo "$as_me: failed program was
:" >&5
12023 sed 's/^/| /' conftest.$ac_ext >&5
12025 emacs_cv_x11_toolkit_version_6=no
12028 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12029 conftest$ac_exeext conftest.$ac_ext
12032 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
12033 if test $emacs_cv_x11_toolkit_version_6 = yes; then
12034 { echo "$as_me:$LINENO: result
: 6 or newer
" >&5
12035 echo "${ECHO_T}6 or newer
" >&6; }
12037 cat >>confdefs.h <<\_ACEOF
12038 #define HAVE_X11XTR6 1
12042 { echo "$as_me:$LINENO: result
: before
6" >&5
12043 echo "${ECHO_T}before
6" >&6; }
12047 if test x$HAVE_X11XTR6 = xyes; then
12048 LIBS="-lXt -lSM -lICE $LIBS"
12053 { echo "$as_me:$LINENO: checking
for XmuConvertStandardSelection
in -lXmu" >&5
12054 echo $ECHO_N "checking
for XmuConvertStandardSelection
in -lXmu...
$ECHO_C" >&6; }
12055 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
12056 echo $ECHO_N "(cached
) $ECHO_C" >&6
12058 ac_check_lib_save_LIBS=$LIBS
12060 cat >conftest.$ac_ext <<_ACEOF
12063 cat confdefs.h >>conftest.$ac_ext
12064 cat >>conftest.$ac_ext <<_ACEOF
12065 /* end confdefs.h. */
12067 /* Override any GCC internal prototype to avoid an error.
12068 Use char because int might match the return type of a GCC
12069 builtin and then its argument prototype would still apply. */
12073 char XmuConvertStandardSelection ();
12077 return XmuConvertStandardSelection ();
12082 rm -f conftest.$ac_objext conftest$ac_exeext
12083 if { (ac_try="$ac_link"
12084 case "(($ac_try" in
12085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12086 *) ac_try_echo=$ac_try;;
12088 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12089 (eval "$ac_link") 2>conftest.er1
12091 grep -v '^ *+' conftest.er1 >conftest.err
12093 cat conftest.err >&5
12094 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12095 (exit $ac_status); } && {
12096 test -z "$ac_c_werror_flag" ||
12097 test ! -s conftest.err
12098 } && test -s conftest$ac_exeext &&
12099 $as_test_x conftest$ac_exeext; then
12100 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
12102 echo "$as_me: failed program was
:" >&5
12103 sed 's/^/| /' conftest.$ac_ext >&5
12105 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
12108 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12109 conftest$ac_exeext conftest.$ac_ext
12110 LIBS=$ac_check_lib_save_LIBS
12112 { echo "$as_me:$LINENO: result
: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
12113 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
12114 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
12115 cat >>confdefs.h <<_ACEOF
12116 #define HAVE_LIBXMU 1
12123 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
12126 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
12127 if test "${HAVE_X11}" = "yes"; then
12128 if test "${USE_X_TOOLKIT}" != "none
"; then
12130 { echo "$as_me:$LINENO: checking
for XShapeQueryExtension
in -lXext" >&5
12131 echo $ECHO_N "checking
for XShapeQueryExtension
in -lXext...
$ECHO_C" >&6; }
12132 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
12133 echo $ECHO_N "(cached
) $ECHO_C" >&6
12135 ac_check_lib_save_LIBS=$LIBS
12136 LIBS="-lXext $LIBS"
12137 cat >conftest.$ac_ext <<_ACEOF
12140 cat confdefs.h >>conftest.$ac_ext
12141 cat >>conftest.$ac_ext <<_ACEOF
12142 /* end confdefs.h. */
12144 /* Override any GCC internal prototype to avoid an error.
12145 Use char because int might match the return type of a GCC
12146 builtin and then its argument prototype would still apply. */
12150 char XShapeQueryExtension ();
12154 return XShapeQueryExtension ();
12159 rm -f conftest.$ac_objext conftest$ac_exeext
12160 if { (ac_try="$ac_link"
12161 case "(($ac_try" in
12162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12163 *) ac_try_echo=$ac_try;;
12165 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12166 (eval "$ac_link") 2>conftest.er1
12168 grep -v '^ *+' conftest.er1 >conftest.err
12170 cat conftest.err >&5
12171 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12172 (exit $ac_status); } && {
12173 test -z "$ac_c_werror_flag" ||
12174 test ! -s conftest.err
12175 } && test -s conftest$ac_exeext &&
12176 $as_test_x conftest$ac_exeext; then
12177 ac_cv_lib_Xext_XShapeQueryExtension=yes
12179 echo "$as_me: failed program was
:" >&5
12180 sed 's/^/| /' conftest.$ac_ext >&5
12182 ac_cv_lib_Xext_XShapeQueryExtension=no
12185 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12186 conftest$ac_exeext conftest.$ac_ext
12187 LIBS=$ac_check_lib_save_LIBS
12189 { echo "$as_me:$LINENO: result
: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
12190 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
12191 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
12192 cat >>confdefs.h <<_ACEOF
12193 #define HAVE_LIBXEXT 1
12196 LIBS="-lXext $LIBS"
12203 if test "${USE_X_TOOLKIT}" = "MOTIF
"; then
12204 { echo "$as_me:$LINENO: checking
for Motif version
2.1" >&5
12205 echo $ECHO_N "checking
for Motif version
2.1...
$ECHO_C" >&6; }
12206 if test "${emacs_cv_motif_version_2_1+set}" = set; then
12207 echo $ECHO_N "(cached
) $ECHO_C" >&6
12209 cat >conftest.$ac_ext <<_ACEOF
12212 cat confdefs.h >>conftest.$ac_ext
12213 cat >>conftest.$ac_ext <<_ACEOF
12214 /* end confdefs.h. */
12219 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
12222 Motif version prior to 2.1.
12228 rm -f conftest.$ac_objext
12229 if { (ac_try="$ac_compile"
12230 case "(($ac_try" in
12231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12232 *) ac_try_echo=$ac_try;;
12234 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12235 (eval "$ac_compile") 2>conftest.er1
12237 grep -v '^ *+' conftest.er1 >conftest.err
12239 cat conftest.err >&5
12240 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12241 (exit $ac_status); } && {
12242 test -z "$ac_c_werror_flag" ||
12243 test ! -s conftest.err
12244 } && test -s conftest.$ac_objext; then
12245 emacs_cv_motif_version_2_1=yes
12247 echo "$as_me: failed program was
:" >&5
12248 sed 's/^/| /' conftest.$ac_ext >&5
12250 emacs_cv_motif_version_2_1=no
12253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12255 { echo "$as_me:$LINENO: result
: $emacs_cv_motif_version_2_1" >&5
12256 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6; }
12257 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
12258 if test $emacs_cv_motif_version_2_1 = yes; then
12261 cat >>confdefs.h <<\_ACEOF
12262 #define HAVE_MOTIF_2_1 1
12265 { echo "$as_me:$LINENO: checking
for XpCreateContext
in -lXp" >&5
12266 echo $ECHO_N "checking
for XpCreateContext
in -lXp...
$ECHO_C" >&6; }
12267 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
12268 echo $ECHO_N "(cached
) $ECHO_C" >&6
12270 ac_check_lib_save_LIBS=$LIBS
12272 cat >conftest.$ac_ext <<_ACEOF
12275 cat confdefs.h >>conftest.$ac_ext
12276 cat >>conftest.$ac_ext <<_ACEOF
12277 /* end confdefs.h. */
12279 /* Override any GCC internal prototype to avoid an error.
12280 Use char because int might match the return type of a GCC
12281 builtin and then its argument prototype would still apply. */
12285 char XpCreateContext ();
12289 return XpCreateContext ();
12294 rm -f conftest.$ac_objext conftest$ac_exeext
12295 if { (ac_try="$ac_link"
12296 case "(($ac_try" in
12297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12298 *) ac_try_echo=$ac_try;;
12300 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12301 (eval "$ac_link") 2>conftest.er1
12303 grep -v '^ *+' conftest.er1 >conftest.err
12305 cat conftest.err >&5
12306 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12307 (exit $ac_status); } && {
12308 test -z "$ac_c_werror_flag" ||
12309 test ! -s conftest.err
12310 } && test -s conftest$ac_exeext &&
12311 $as_test_x conftest$ac_exeext; then
12312 ac_cv_lib_Xp_XpCreateContext=yes
12314 echo "$as_me: failed program was
:" >&5
12315 sed 's/^/| /' conftest.$ac_ext >&5
12317 ac_cv_lib_Xp_XpCreateContext=no
12320 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12321 conftest$ac_exeext conftest.$ac_ext
12322 LIBS=$ac_check_lib_save_LIBS
12324 { echo "$as_me:$LINENO: result
: $ac_cv_lib_Xp_XpCreateContext" >&5
12325 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6; }
12326 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
12330 if test ${HAVE_LIBXP} = yes; then
12332 cat >>confdefs.h <<\_ACEOF
12333 #define HAVE_LIBXP 1
12338 { echo "$as_me:$LINENO: checking
for LessTif where some systems put it
" >&5
12339 echo $ECHO_N "checking
for LessTif where some systems put it...
$ECHO_C" >&6; }
12340 if test "${emacs_cv_lesstif+set}" = set; then
12341 echo $ECHO_N "(cached
) $ECHO_C" >&6
12343 # We put this in CFLAGS temporarily to precede other -I options
12344 # that might be in CFLAGS temporarily.
12345 # We put this in CPPFLAGS where it precedes the other -I options.
12346 OLD_CPPFLAGS=$CPPFLAGS
12348 CPPFLAGS="-I/usr
/X11R
6/LessTif
/Motif1.2
/include
$CPPFLAGS"
12349 CFLAGS="-I/usr
/X11R
6/LessTif
/Motif1.2
/include
$CFLAGS"
12350 cat >conftest.$ac_ext <<_ACEOF
12353 cat confdefs.h >>conftest.$ac_ext
12354 cat >>conftest.$ac_ext <<_ACEOF
12355 /* end confdefs.h. */
12356 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
12365 rm -f conftest.$ac_objext
12366 if { (ac_try="$ac_compile"
12367 case "(($ac_try" in
12368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12369 *) ac_try_echo=$ac_try;;
12371 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12372 (eval "$ac_compile") 2>conftest.er1
12374 grep -v '^ *+' conftest.er1 >conftest.err
12376 cat conftest.err >&5
12377 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12378 (exit $ac_status); } && {
12379 test -z "$ac_c_werror_flag" ||
12380 test ! -s conftest.err
12381 } && test -s conftest.$ac_objext; then
12382 emacs_cv_lesstif=yes
12384 echo "$as_me: failed program was
:" >&5
12385 sed 's/^/| /' conftest.$ac_ext >&5
12387 emacs_cv_lesstif=no
12390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12392 { echo "$as_me:$LINENO: result
: $emacs_cv_lesstif" >&5
12393 echo "${ECHO_T}$emacs_cv_lesstif" >&6; }
12394 if test $emacs_cv_lesstif = yes; then
12395 # Make sure this -I option remains in CPPFLAGS after it is set
12396 # back to REAL_CPPFLAGS.
12397 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
12398 # have those other -I options anyway. Ultimately, having this
12399 # directory ultimately in CPPFLAGS will be enough.
12400 REAL_CPPFLAGS="-I/usr
/X11R
6/LessTif
/Motif1.2
/include
$REAL_CPPFLAGS"
12401 LDFLAGS="-L/usr
/X11R
6/LessTif
/Motif1.2
/lib
$LDFLAGS"
12404 CPPFLAGS=$OLD_CPPFLAGS
12411 USE_TOOLKIT_SCROLL_BARS=no
12412 if test "${with_toolkit_scroll_bars}" != "no
"; then
12413 if test "${USE_X_TOOLKIT}" != "none
"; then
12414 if test "${USE_X_TOOLKIT}" = "MOTIF
"; then
12415 cat >>confdefs.h <<\_ACEOF
12416 #define USE_TOOLKIT_SCROLL_BARS 1
12420 USE_TOOLKIT_SCROLL_BARS=yes
12421 elif test "${HAVE_XAW3D}" = "yes"; then
12422 cat >>confdefs.h <<\_ACEOF
12423 #define USE_TOOLKIT_SCROLL_BARS 1
12426 USE_TOOLKIT_SCROLL_BARS=yes
12428 elif test "${HAVE_GTK}" = "yes"; then
12429 cat >>confdefs.h <<\_ACEOF
12430 #define USE_TOOLKIT_SCROLL_BARS 1
12433 USE_TOOLKIT_SCROLL_BARS=yes
12434 elif test "${HAVE_NS}" = "yes"; then
12435 cat >>confdefs.h <<\_ACEOF
12436 #define USE_TOOLKIT_SCROLL_BARS 1
12439 USE_TOOLKIT_SCROLL_BARS=yes
12443 cat >conftest.$ac_ext <<_ACEOF
12446 cat confdefs.h >>conftest.$ac_ext
12447 cat >>conftest.$ac_ext <<_ACEOF
12448 /* end confdefs.h. */
12450 #include <X11/Xlib.h>
12451 #include <X11/Xresource.h>
12460 rm -f conftest.$ac_objext
12461 if { (ac_try="$ac_compile"
12462 case "(($ac_try" in
12463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12464 *) ac_try_echo=$ac_try;;
12466 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12467 (eval "$ac_compile") 2>conftest.er1
12469 grep -v '^ *+' conftest.er1 >conftest.err
12471 cat conftest.err >&5
12472 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12473 (exit $ac_status); } && {
12474 test -z "$ac_c_werror_flag" ||
12475 test ! -s conftest.err
12476 } && test -s conftest.$ac_objext; then
12479 cat >>confdefs.h <<\_ACEOF
12484 echo "$as_me: failed program was
:" >&5
12485 sed 's/^/| /' conftest.$ac_ext >&5
12490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12493 if test "${with_xim}" != "no
"; then
12495 cat >>confdefs.h <<\_ACEOF
12502 if test "${HAVE_XIM}" != "no
"; then
12503 late_CFLAGS=$CFLAGS
12504 if test "$GCC" = yes; then
12505 CFLAGS="$CFLAGS --pedantic-errors"
12507 cat >conftest.$ac_ext <<_ACEOF
12510 cat confdefs.h >>conftest.$ac_ext
12511 cat >>conftest.$ac_ext <<_ACEOF
12512 /* end confdefs.h. */
12514 #include <X11/Xlib.h>
12515 #include <X11/Xresource.h>
12524 XPointer *client_data;
12526 /* If we're not using GCC, it's probably not XFree86, and this is
12527 probably right, but we can't use something like --pedantic-errors. */
12528 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
12529 char*, XIMProc, XPointer*);
12531 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
12537 rm -f conftest.$ac_objext
12538 if { (ac_try="$ac_compile"
12539 case "(($ac_try" in
12540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12541 *) ac_try_echo=$ac_try;;
12543 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12544 (eval "$ac_compile") 2>conftest.er1
12546 grep -v '^ *+' conftest.er1 >conftest.err
12548 cat conftest.err >&5
12549 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12550 (exit $ac_status); } && {
12551 test -z "$ac_c_werror_flag" ||
12552 test ! -s conftest.err
12553 } && test -s conftest.$ac_objext; then
12554 emacs_cv_arg6_star=yes
12556 echo "$as_me: failed program was
:" >&5
12557 sed 's/^/| /' conftest.$ac_ext >&5
12562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12564 if test "$emacs_cv_arg6_star" = yes; then
12565 cat >>confdefs.h <<\_ACEOF
12566 #define XRegisterIMInstantiateCallback_arg6 XPointer*
12570 cat >>confdefs.h <<\_ACEOF
12571 #define XRegisterIMInstantiateCallback_arg6 XPointer
12575 CFLAGS=$late_CFLAGS
12578 ### Start of font-backend section.
12582 # Extract the first word of "pkg-config
", so it can be a program name with args.
12583 set dummy pkg-config; ac_word=$2
12584 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
12585 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
12586 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12587 echo $ECHO_N "(cached
) $ECHO_C" >&6
12589 case $PKG_CONFIG in
12591 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12595 for as_dir in $PATH
12598 test -z "$as_dir" && as_dir=.
12599 for ac_exec_ext in '' $ac_executable_extensions; do
12600 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12601 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12602 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
12609 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no
"
12613 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12614 if test -n "$PKG_CONFIG"; then
12615 { echo "$as_me:$LINENO: result
: $PKG_CONFIG" >&5
12616 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12618 { echo "$as_me:$LINENO: result
: no
" >&5
12619 echo "${ECHO_T}no
" >&6; }
12624 if test "$PKG_CONFIG" = "no
" ; then
12627 PKG_CONFIG_MIN_VERSION=0.9.0
12628 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12629 { echo "$as_me:$LINENO: checking
for fontconfig
>= 2.2.0" >&5
12630 echo $ECHO_N "checking
for fontconfig
>= 2.2.0...
$ECHO_C" >&6; }
12632 if $PKG_CONFIG --exists "fontconfig
>= 2.2.0" 2>&5; then
12633 { echo "$as_me:$LINENO: result
: yes" >&5
12634 echo "${ECHO_T}yes" >&6; }
12637 { echo "$as_me:$LINENO: checking FONTCONFIG_CFLAGS
" >&5
12638 echo $ECHO_N "checking FONTCONFIG_CFLAGS...
$ECHO_C" >&6; }
12639 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig
>= 2.2.0"|sed -e 's,///*,/,g'`
12640 { echo "$as_me:$LINENO: result
: $FONTCONFIG_CFLAGS" >&5
12641 echo "${ECHO_T}$FONTCONFIG_CFLAGS" >&6; }
12643 { echo "$as_me:$LINENO: checking FONTCONFIG_LIBS
" >&5
12644 echo $ECHO_N "checking FONTCONFIG_LIBS...
$ECHO_C" >&6; }
12645 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig
>= 2.2.0"|sed -e 's,///*,/,g'`
12646 { echo "$as_me:$LINENO: result
: $FONTCONFIG_LIBS" >&5
12647 echo "${ECHO_T}$FONTCONFIG_LIBS" >&6; }
12649 { echo "$as_me:$LINENO: result
: no
" >&5
12650 echo "${ECHO_T}no
" >&6; }
12651 FONTCONFIG_CFLAGS=""
12653 ## If we have a custom action on failure, don't print errors, but
12654 ## do set a variable so people can do so.
12655 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig
>= 2.2.0"`
12662 echo "*** Your version of pkg-config is too old. You need version
$PKG_CONFIG_MIN_VERSION or newer.
"
12663 echo "*** See http
://www.freedesktop.org
/software
/pkgconfig
"
12667 if test $succeeded = yes; then
12673 test "${HAVE_FC}" = "no
" && with_freetype=no
12675 ## Use -lXft if available, unless `--with-freetype=no' nor `--with-xft=no'.
12677 if test "x
${with_freetype}" = "xno
" || test "x
${with_x}" = "xno
"; then
12680 if test "x
${with_xft}" != "xno
"; then
12685 # Extract the first word of "pkg-config
", so it can be a program name with args.
12686 set dummy pkg-config; ac_word=$2
12687 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
12688 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
12689 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12690 echo $ECHO_N "(cached
) $ECHO_C" >&6
12692 case $PKG_CONFIG in
12694 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12698 for as_dir in $PATH
12701 test -z "$as_dir" && as_dir=.
12702 for ac_exec_ext in '' $ac_executable_extensions; do
12703 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12704 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12705 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
12712 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no
"
12716 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12717 if test -n "$PKG_CONFIG"; then
12718 { echo "$as_me:$LINENO: result
: $PKG_CONFIG" >&5
12719 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12721 { echo "$as_me:$LINENO: result
: no
" >&5
12722 echo "${ECHO_T}no
" >&6; }
12727 if test "$PKG_CONFIG" = "no
" ; then
12730 PKG_CONFIG_MIN_VERSION=0.9.0
12731 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12732 { echo "$as_me:$LINENO: checking
for xft
>= 0.13.0" >&5
12733 echo $ECHO_N "checking
for xft
>= 0.13.0...
$ECHO_C" >&6; }
12735 if $PKG_CONFIG --exists "xft
>= 0.13.0" 2>&5; then
12736 { echo "$as_me:$LINENO: result
: yes" >&5
12737 echo "${ECHO_T}yes" >&6; }
12740 { echo "$as_me:$LINENO: checking XFT_CFLAGS
" >&5
12741 echo $ECHO_N "checking XFT_CFLAGS...
$ECHO_C" >&6; }
12742 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft
>= 0.13.0"|sed -e 's,///*,/,g'`
12743 { echo "$as_me:$LINENO: result
: $XFT_CFLAGS" >&5
12744 echo "${ECHO_T}$XFT_CFLAGS" >&6; }
12746 { echo "$as_me:$LINENO: checking XFT_LIBS
" >&5
12747 echo $ECHO_N "checking XFT_LIBS...
$ECHO_C" >&6; }
12748 XFT_LIBS=`$PKG_CONFIG --libs "xft
>= 0.13.0"|sed -e 's,///*,/,g'`
12749 { echo "$as_me:$LINENO: result
: $XFT_LIBS" >&5
12750 echo "${ECHO_T}$XFT_LIBS" >&6; }
12752 { echo "$as_me:$LINENO: result
: no
" >&5
12753 echo "${ECHO_T}no
" >&6; }
12756 ## If we have a custom action on failure, don't print errors, but
12757 ## do set a variable so people can do so.
12758 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft
>= 0.13.0"`
12765 echo "*** Your version of pkg-config is too old. You need version
$PKG_CONFIG_MIN_VERSION or newer.
"
12766 echo "*** See http
://www.freedesktop.org
/software
/pkgconfig
"
12770 if test $succeeded = yes; then
12776 if test "$HAVE_XFT" != no; then
12777 OLD_CPPFLAGS="$CPPFLAGS"
12778 OLD_CFLAGS="$CFLAGS"
12780 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
12781 CFLAGS="$CFLAGS $XFT_CFLAGS"
12782 LIBS="$XFT_LIBS $LIBS"
12783 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12784 { echo "$as_me:$LINENO: checking
for X11
/Xft
/Xft.h
" >&5
12785 echo $ECHO_N "checking
for X11
/Xft
/Xft.h...
$ECHO_C" >&6; }
12786 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12787 echo $ECHO_N "(cached
) $ECHO_C" >&6
12789 { echo "$as_me:$LINENO: result
: $ac_cv_header_X11_Xft_Xft_h" >&5
12790 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
12792 # Is the header compilable?
12793 { echo "$as_me:$LINENO: checking X11
/Xft
/Xft.h usability
" >&5
12794 echo $ECHO_N "checking X11
/Xft
/Xft.h usability...
$ECHO_C" >&6; }
12795 cat >conftest.$ac_ext <<_ACEOF
12798 cat confdefs.h >>conftest.$ac_ext
12799 cat >>conftest.$ac_ext <<_ACEOF
12800 /* end confdefs.h. */
12801 $ac_includes_default
12802 #include <X11/Xft/Xft.h>
12804 rm -f conftest.$ac_objext
12805 if { (ac_try="$ac_compile"
12806 case "(($ac_try" in
12807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12808 *) ac_try_echo=$ac_try;;
12810 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12811 (eval "$ac_compile") 2>conftest.er1
12813 grep -v '^ *+' conftest.er1 >conftest.err
12815 cat conftest.err >&5
12816 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12817 (exit $ac_status); } && {
12818 test -z "$ac_c_werror_flag" ||
12819 test ! -s conftest.err
12820 } && test -s conftest.$ac_objext; then
12821 ac_header_compiler=yes
12823 echo "$as_me: failed program was
:" >&5
12824 sed 's/^/| /' conftest.$ac_ext >&5
12826 ac_header_compiler=no
12829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12830 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
12831 echo "${ECHO_T}$ac_header_compiler" >&6; }
12833 # Is the header present?
12834 { echo "$as_me:$LINENO: checking X11
/Xft
/Xft.h presence
" >&5
12835 echo $ECHO_N "checking X11
/Xft
/Xft.h presence...
$ECHO_C" >&6; }
12836 cat >conftest.$ac_ext <<_ACEOF
12839 cat confdefs.h >>conftest.$ac_ext
12840 cat >>conftest.$ac_ext <<_ACEOF
12841 /* end confdefs.h. */
12842 #include <X11/Xft/Xft.h>
12844 if { (ac_try="$ac_cpp conftest.
$ac_ext"
12845 case "(($ac_try" in
12846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12847 *) ac_try_echo=$ac_try;;
12849 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12850 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
12852 grep -v '^ *+' conftest.er1 >conftest.err
12854 cat conftest.err >&5
12855 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12856 (exit $ac_status); } >/dev/null && {
12857 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12858 test ! -s conftest.err
12860 ac_header_preproc=yes
12862 echo "$as_me: failed program was
:" >&5
12863 sed 's/^/| /' conftest.$ac_ext >&5
12865 ac_header_preproc=no
12868 rm -f conftest.err conftest.$ac_ext
12869 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
12870 echo "${ECHO_T}$ac_header_preproc" >&6; }
12872 # So? What about this header?
12873 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12875 { echo "$as_me:$LINENO: WARNING
: X11
/Xft
/Xft.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
12876 echo "$as_me: WARNING
: X11
/Xft
/Xft.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
12877 { echo "$as_me:$LINENO: WARNING
: X11
/Xft
/Xft.h
: proceeding with the compiler
's result" >&5
12878 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result
" >&2;}
12879 ac_header_preproc=yes
12882 { echo "$as_me:$LINENO: WARNING
: X11
/Xft
/Xft.h
: present but cannot be compiled
" >&5
12883 echo "$as_me: WARNING
: X11
/Xft
/Xft.h
: present but cannot be compiled
" >&2;}
12884 { echo "$as_me:$LINENO: WARNING
: X11
/Xft
/Xft.h
: check
for missing prerequisite headers?
" >&5
12885 echo "$as_me: WARNING
: X11
/Xft
/Xft.h
: check
for missing prerequisite headers?
" >&2;}
12886 { echo "$as_me:$LINENO: WARNING
: X11
/Xft
/Xft.h
: see the Autoconf documentation
" >&5
12887 echo "$as_me: WARNING
: X11
/Xft
/Xft.h
: see the Autoconf documentation
" >&2;}
12888 { echo "$as_me:$LINENO: WARNING
: X11
/Xft
/Xft.h
: section
\"Present But Cannot Be Compiled
\"" >&5
12889 echo "$as_me: WARNING
: X11
/Xft
/Xft.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
12890 { echo "$as_me:$LINENO: WARNING
: X11
/Xft
/Xft.h
: proceeding with the preprocessor
's result" >&5
12891 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result
" >&2;}
12892 { echo "$as_me:$LINENO: WARNING
: X11
/Xft
/Xft.h
: in the future
, the compiler will take precedence
" >&5
12893 echo "$as_me: WARNING
: X11
/Xft
/Xft.h
: in the future
, the compiler will take precedence
" >&2;}
12897 { echo "$as_me:$LINENO: checking
for X11
/Xft
/Xft.h
" >&5
12898 echo $ECHO_N "checking
for X11
/Xft
/Xft.h...
$ECHO_C" >&6; }
12899 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12900 echo $ECHO_N "(cached
) $ECHO_C" >&6
12902 ac_cv_header_X11_Xft_Xft_h=$ac_header_preproc
12904 { echo "$as_me:$LINENO: result
: $ac_cv_header_X11_Xft_Xft_h" >&5
12905 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
12908 if test $ac_cv_header_X11_Xft_Xft_h = yes; then
12909 { echo "$as_me:$LINENO: checking
for XftFontOpen
in -lXft" >&5
12910 echo $ECHO_N "checking
for XftFontOpen
in -lXft...
$ECHO_C" >&6; }
12911 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then
12912 echo $ECHO_N "(cached
) $ECHO_C" >&6
12914 ac_check_lib_save_LIBS=$LIBS
12915 LIBS="-lXft $XFT_LIBS $LIBS"
12916 cat >conftest.$ac_ext <<_ACEOF
12919 cat confdefs.h >>conftest.$ac_ext
12920 cat >>conftest.$ac_ext <<_ACEOF
12921 /* end confdefs.h. */
12923 /* Override any GCC internal prototype to avoid an error.
12924 Use char because int might match the return type of a GCC
12925 builtin and then its argument prototype would still apply. */
12929 char XftFontOpen ();
12933 return XftFontOpen ();
12938 rm -f conftest.$ac_objext conftest$ac_exeext
12939 if { (ac_try="$ac_link"
12940 case "(($ac_try" in
12941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12942 *) ac_try_echo=$ac_try;;
12944 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12945 (eval "$ac_link") 2>conftest.er1
12947 grep -v '^ *+' conftest.er1 >conftest.err
12949 cat conftest.err >&5
12950 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12951 (exit $ac_status); } && {
12952 test -z "$ac_c_werror_flag" ||
12953 test ! -s conftest.err
12954 } && test -s conftest$ac_exeext &&
12955 $as_test_x conftest$ac_exeext; then
12956 ac_cv_lib_Xft_XftFontOpen=yes
12958 echo "$as_me: failed program was
:" >&5
12959 sed 's/^/| /' conftest.$ac_ext >&5
12961 ac_cv_lib_Xft_XftFontOpen=no
12964 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12965 conftest$ac_exeext conftest.$ac_ext
12966 LIBS=$ac_check_lib_save_LIBS
12968 { echo "$as_me:$LINENO: result
: $ac_cv_lib_Xft_XftFontOpen" >&5
12969 echo "${ECHO_T}$ac_cv_lib_Xft_XftFontOpen" >&6; }
12970 if test $ac_cv_lib_Xft_XftFontOpen = yes; then
12978 if test "${HAVE_XFT}" = "yes"; then
12980 cat >>confdefs.h <<\_ACEOF
12985 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
12987 CPPFLAGS="$OLD_CPPFLAGS"
12988 CFLAGS="$OLD_CFLAGS"
12990 fi # "${HAVE_XFT}" = "yes"
12991 fi # "$HAVE_XFT" != no
12992 fi # "x
${with_xft}" != "xno
"
12994 if test "$HAVE_XFT" != "yes"; then
13000 ### Use -lfreetype if available, unless `--with-freetype=no'.
13001 if test "${HAVE_XFT}" = "yes"; then
13005 elif test "x
${with_freetype}" != "xno
" && test "x
${with_x}" != "xno
"; then
13010 # Extract the first word of "pkg-config
", so it can be a program name with args.
13011 set dummy pkg-config; ac_word=$2
13012 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
13013 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
13014 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13015 echo $ECHO_N "(cached
) $ECHO_C" >&6
13017 case $PKG_CONFIG in
13019 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13023 for as_dir in $PATH
13026 test -z "$as_dir" && as_dir=.
13027 for ac_exec_ext in '' $ac_executable_extensions; do
13028 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13029 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13030 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
13037 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no
"
13041 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13042 if test -n "$PKG_CONFIG"; then
13043 { echo "$as_me:$LINENO: result
: $PKG_CONFIG" >&5
13044 echo "${ECHO_T}$PKG_CONFIG" >&6; }
13046 { echo "$as_me:$LINENO: result
: no
" >&5
13047 echo "${ECHO_T}no
" >&6; }
13052 if test "$PKG_CONFIG" = "no
" ; then
13055 PKG_CONFIG_MIN_VERSION=0.9.0
13056 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13057 { echo "$as_me:$LINENO: checking
for freetype2
" >&5
13058 echo $ECHO_N "checking
for freetype2...
$ECHO_C" >&6; }
13060 if $PKG_CONFIG --exists "freetype2
" 2>&5; then
13061 { echo "$as_me:$LINENO: result
: yes" >&5
13062 echo "${ECHO_T}yes" >&6; }
13065 { echo "$as_me:$LINENO: checking FREETYPE_CFLAGS
" >&5
13066 echo $ECHO_N "checking FREETYPE_CFLAGS...
$ECHO_C" >&6; }
13067 FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2
"|sed -e 's,///*,/,g'`
13068 { echo "$as_me:$LINENO: result
: $FREETYPE_CFLAGS" >&5
13069 echo "${ECHO_T}$FREETYPE_CFLAGS" >&6; }
13071 { echo "$as_me:$LINENO: checking FREETYPE_LIBS
" >&5
13072 echo $ECHO_N "checking FREETYPE_LIBS...
$ECHO_C" >&6; }
13073 FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2
"|sed -e 's,///*,/,g'`
13074 { echo "$as_me:$LINENO: result
: $FREETYPE_LIBS" >&5
13075 echo "${ECHO_T}$FREETYPE_LIBS" >&6; }
13077 { echo "$as_me:$LINENO: result
: no
" >&5
13078 echo "${ECHO_T}no
" >&6; }
13081 ## If we have a custom action on failure, don't print errors, but
13082 ## do set a variable so people can do so.
13083 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2
"`
13090 echo "*** Your version of pkg-config is too old. You need version
$PKG_CONFIG_MIN_VERSION or newer.
"
13091 echo "*** See http
://www.freedesktop.org
/software
/pkgconfig
"
13095 if test $succeeded = yes; then
13104 if test "${HAVE_FREETYPE}" = "yes"; then
13106 cat >>confdefs.h <<\_ACEOF
13107 #define HAVE_FREETYPE 1
13110 if test "${with_libotf}" != "no
"; then
13114 # Extract the first word of "pkg-config
", so it can be a program name with args.
13115 set dummy pkg-config; ac_word=$2
13116 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
13117 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
13118 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13119 echo $ECHO_N "(cached
) $ECHO_C" >&6
13121 case $PKG_CONFIG in
13123 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13127 for as_dir in $PATH
13130 test -z "$as_dir" && as_dir=.
13131 for ac_exec_ext in '' $ac_executable_extensions; do
13132 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13133 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13134 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
13141 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no
"
13145 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13146 if test -n "$PKG_CONFIG"; then
13147 { echo "$as_me:$LINENO: result
: $PKG_CONFIG" >&5
13148 echo "${ECHO_T}$PKG_CONFIG" >&6; }
13150 { echo "$as_me:$LINENO: result
: no
" >&5
13151 echo "${ECHO_T}no
" >&6; }
13156 if test "$PKG_CONFIG" = "no
" ; then
13159 PKG_CONFIG_MIN_VERSION=0.9.0
13160 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13161 { echo "$as_me:$LINENO: checking
for libotf
" >&5
13162 echo $ECHO_N "checking
for libotf...
$ECHO_C" >&6; }
13164 if $PKG_CONFIG --exists "libotf
" 2>&5; then
13165 { echo "$as_me:$LINENO: result
: yes" >&5
13166 echo "${ECHO_T}yes" >&6; }
13169 { echo "$as_me:$LINENO: checking LIBOTF_CFLAGS
" >&5
13170 echo $ECHO_N "checking LIBOTF_CFLAGS...
$ECHO_C" >&6; }
13171 LIBOTF_CFLAGS=`$PKG_CONFIG --cflags "libotf
"|sed -e 's,///*,/,g'`
13172 { echo "$as_me:$LINENO: result
: $LIBOTF_CFLAGS" >&5
13173 echo "${ECHO_T}$LIBOTF_CFLAGS" >&6; }
13175 { echo "$as_me:$LINENO: checking LIBOTF_LIBS
" >&5
13176 echo $ECHO_N "checking LIBOTF_LIBS...
$ECHO_C" >&6; }
13177 LIBOTF_LIBS=`$PKG_CONFIG --libs "libotf
"|sed -e 's,///*,/,g'`
13178 { echo "$as_me:$LINENO: result
: $LIBOTF_LIBS" >&5
13179 echo "${ECHO_T}$LIBOTF_LIBS" >&6; }
13181 { echo "$as_me:$LINENO: result
: no
" >&5
13182 echo "${ECHO_T}no
" >&6; }
13185 ## If we have a custom action on failure, don't print errors, but
13186 ## do set a variable so people can do so.
13187 LIBOTF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf
"`
13194 echo "*** Your version of pkg-config is too old. You need version
$PKG_CONFIG_MIN_VERSION or newer.
"
13195 echo "*** See http
://www.freedesktop.org
/software
/pkgconfig
"
13199 if test $succeeded = yes; then
13205 if test "$HAVE_LIBOTF" = "yes"; then
13207 cat >>confdefs.h <<\_ACEOF
13208 #define HAVE_LIBOTF 1
13216 if test "${HAVE_LIBOTF}" = yes; then
13217 if test "${with_m17n_flt}" != "no
"; then
13221 # Extract the first word of "pkg-config
", so it can be a program name with args.
13222 set dummy pkg-config; ac_word=$2
13223 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
13224 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
13225 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13226 echo $ECHO_N "(cached
) $ECHO_C" >&6
13228 case $PKG_CONFIG in
13230 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13234 for as_dir in $PATH
13237 test -z "$as_dir" && as_dir=.
13238 for ac_exec_ext in '' $ac_executable_extensions; do
13239 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13240 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13241 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
13248 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no
"
13252 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13253 if test -n "$PKG_CONFIG"; then
13254 { echo "$as_me:$LINENO: result
: $PKG_CONFIG" >&5
13255 echo "${ECHO_T}$PKG_CONFIG" >&6; }
13257 { echo "$as_me:$LINENO: result
: no
" >&5
13258 echo "${ECHO_T}no
" >&6; }
13263 if test "$PKG_CONFIG" = "no
" ; then
13266 PKG_CONFIG_MIN_VERSION=0.9.0
13267 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13268 { echo "$as_me:$LINENO: checking
for m17n-flt
" >&5
13269 echo $ECHO_N "checking
for m17n-flt...
$ECHO_C" >&6; }
13271 if $PKG_CONFIG --exists "m17n-flt
" 2>&5; then
13272 { echo "$as_me:$LINENO: result
: yes" >&5
13273 echo "${ECHO_T}yes" >&6; }
13276 { echo "$as_me:$LINENO: checking M17N_FLT_CFLAGS
" >&5
13277 echo $ECHO_N "checking M17N_FLT_CFLAGS...
$ECHO_C" >&6; }
13278 M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt
"|sed -e 's,///*,/,g'`
13279 { echo "$as_me:$LINENO: result
: $M17N_FLT_CFLAGS" >&5
13280 echo "${ECHO_T}$M17N_FLT_CFLAGS" >&6; }
13282 { echo "$as_me:$LINENO: checking M17N_FLT_LIBS
" >&5
13283 echo $ECHO_N "checking M17N_FLT_LIBS...
$ECHO_C" >&6; }
13284 M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt
"|sed -e 's,///*,/,g'`
13285 { echo "$as_me:$LINENO: result
: $M17N_FLT_LIBS" >&5
13286 echo "${ECHO_T}$M17N_FLT_LIBS" >&6; }
13288 { echo "$as_me:$LINENO: result
: no
" >&5
13289 echo "${ECHO_T}no
" >&6; }
13292 ## If we have a custom action on failure, don't print errors, but
13293 ## do set a variable so people can do so.
13294 M17N_FLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt
"`
13301 echo "*** Your version of pkg-config is too old. You need version
$PKG_CONFIG_MIN_VERSION or newer.
"
13302 echo "*** See http
://www.freedesktop.org
/software
/pkgconfig
"
13306 if test $succeeded = yes; then
13312 if test "$HAVE_M17N_FLT" = "yes"; then
13314 cat >>confdefs.h <<\_ACEOF
13315 #define HAVE_M17N_FLT 1
13331 ### End of font-backend section.
13333 ### Use -lXpm if available, unless `--with-xpm=no'.
13335 if test "${HAVE_X11}" = "yes"; then
13336 if test "${with_xpm}" != "no
"; then
13337 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13338 { echo "$as_me:$LINENO: checking
for X11
/xpm.h
" >&5
13339 echo $ECHO_N "checking
for X11
/xpm.h...
$ECHO_C" >&6; }
13340 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13341 echo $ECHO_N "(cached
) $ECHO_C" >&6
13343 { echo "$as_me:$LINENO: result
: $ac_cv_header_X11_xpm_h" >&5
13344 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
13346 # Is the header compilable?
13347 { echo "$as_me:$LINENO: checking X11
/xpm.h usability
" >&5
13348 echo $ECHO_N "checking X11
/xpm.h usability...
$ECHO_C" >&6; }
13349 cat >conftest.$ac_ext <<_ACEOF
13352 cat confdefs.h >>conftest.$ac_ext
13353 cat >>conftest.$ac_ext <<_ACEOF
13354 /* end confdefs.h. */
13355 $ac_includes_default
13356 #include <X11/xpm.h>
13358 rm -f conftest.$ac_objext
13359 if { (ac_try="$ac_compile"
13360 case "(($ac_try" in
13361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13362 *) ac_try_echo=$ac_try;;
13364 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13365 (eval "$ac_compile") 2>conftest.er1
13367 grep -v '^ *+' conftest.er1 >conftest.err
13369 cat conftest.err >&5
13370 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13371 (exit $ac_status); } && {
13372 test -z "$ac_c_werror_flag" ||
13373 test ! -s conftest.err
13374 } && test -s conftest.$ac_objext; then
13375 ac_header_compiler=yes
13377 echo "$as_me: failed program was
:" >&5
13378 sed 's/^/| /' conftest.$ac_ext >&5
13380 ac_header_compiler=no
13383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13384 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
13385 echo "${ECHO_T}$ac_header_compiler" >&6; }
13387 # Is the header present?
13388 { echo "$as_me:$LINENO: checking X11
/xpm.h presence
" >&5
13389 echo $ECHO_N "checking X11
/xpm.h presence...
$ECHO_C" >&6; }
13390 cat >conftest.$ac_ext <<_ACEOF
13393 cat confdefs.h >>conftest.$ac_ext
13394 cat >>conftest.$ac_ext <<_ACEOF
13395 /* end confdefs.h. */
13396 #include <X11/xpm.h>
13398 if { (ac_try="$ac_cpp conftest.
$ac_ext"
13399 case "(($ac_try" in
13400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13401 *) ac_try_echo=$ac_try;;
13403 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13404 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
13406 grep -v '^ *+' conftest.er1 >conftest.err
13408 cat conftest.err >&5
13409 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13410 (exit $ac_status); } >/dev/null && {
13411 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13412 test ! -s conftest.err
13414 ac_header_preproc=yes
13416 echo "$as_me: failed program was
:" >&5
13417 sed 's/^/| /' conftest.$ac_ext >&5
13419 ac_header_preproc=no
13422 rm -f conftest.err conftest.$ac_ext
13423 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
13424 echo "${ECHO_T}$ac_header_preproc" >&6; }
13426 # So? What about this header?
13427 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13429 { echo "$as_me:$LINENO: WARNING
: X11
/xpm.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
13430 echo "$as_me: WARNING
: X11
/xpm.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
13431 { echo "$as_me:$LINENO: WARNING
: X11
/xpm.h
: proceeding with the compiler
's result" >&5
13432 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result
" >&2;}
13433 ac_header_preproc=yes
13436 { echo "$as_me:$LINENO: WARNING
: X11
/xpm.h
: present but cannot be compiled
" >&5
13437 echo "$as_me: WARNING
: X11
/xpm.h
: present but cannot be compiled
" >&2;}
13438 { echo "$as_me:$LINENO: WARNING
: X11
/xpm.h
: check
for missing prerequisite headers?
" >&5
13439 echo "$as_me: WARNING
: X11
/xpm.h
: check
for missing prerequisite headers?
" >&2;}
13440 { echo "$as_me:$LINENO: WARNING
: X11
/xpm.h
: see the Autoconf documentation
" >&5
13441 echo "$as_me: WARNING
: X11
/xpm.h
: see the Autoconf documentation
" >&2;}
13442 { echo "$as_me:$LINENO: WARNING
: X11
/xpm.h
: section
\"Present But Cannot Be Compiled
\"" >&5
13443 echo "$as_me: WARNING
: X11
/xpm.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
13444 { echo "$as_me:$LINENO: WARNING
: X11
/xpm.h
: proceeding with the preprocessor
's result" >&5
13445 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result
" >&2;}
13446 { echo "$as_me:$LINENO: WARNING
: X11
/xpm.h
: in the future
, the compiler will take precedence
" >&5
13447 echo "$as_me: WARNING
: X11
/xpm.h
: in the future
, the compiler will take precedence
" >&2;}
13451 { echo "$as_me:$LINENO: checking
for X11
/xpm.h
" >&5
13452 echo $ECHO_N "checking
for X11
/xpm.h...
$ECHO_C" >&6; }
13453 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13454 echo $ECHO_N "(cached
) $ECHO_C" >&6
13456 ac_cv_header_X11_xpm_h=$ac_header_preproc
13458 { echo "$as_me:$LINENO: result
: $ac_cv_header_X11_xpm_h" >&5
13459 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
13462 if test $ac_cv_header_X11_xpm_h = yes; then
13463 { echo "$as_me:$LINENO: checking
for XpmReadFileToPixmap
in -lXpm" >&5
13464 echo $ECHO_N "checking
for XpmReadFileToPixmap
in -lXpm...
$ECHO_C" >&6; }
13465 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
13466 echo $ECHO_N "(cached
) $ECHO_C" >&6
13468 ac_check_lib_save_LIBS=$LIBS
13469 LIBS="-lXpm -lX11 $LIBS"
13470 cat >conftest.$ac_ext <<_ACEOF
13473 cat confdefs.h >>conftest.$ac_ext
13474 cat >>conftest.$ac_ext <<_ACEOF
13475 /* end confdefs.h. */
13477 /* Override any GCC internal prototype to avoid an error.
13478 Use char because int might match the return type of a GCC
13479 builtin and then its argument prototype would still apply. */
13483 char XpmReadFileToPixmap ();
13487 return XpmReadFileToPixmap ();
13492 rm -f conftest.$ac_objext conftest$ac_exeext
13493 if { (ac_try="$ac_link"
13494 case "(($ac_try" in
13495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13496 *) ac_try_echo=$ac_try;;
13498 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13499 (eval "$ac_link") 2>conftest.er1
13501 grep -v '^ *+' conftest.er1 >conftest.err
13503 cat conftest.err >&5
13504 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13505 (exit $ac_status); } && {
13506 test -z "$ac_c_werror_flag" ||
13507 test ! -s conftest.err
13508 } && test -s conftest$ac_exeext &&
13509 $as_test_x conftest$ac_exeext; then
13510 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
13512 echo "$as_me: failed program was
:" >&5
13513 sed 's/^/| /' conftest.$ac_ext >&5
13515 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
13518 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13519 conftest$ac_exeext conftest.$ac_ext
13520 LIBS=$ac_check_lib_save_LIBS
13522 { echo "$as_me:$LINENO: result
: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
13523 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
13524 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
13531 if test "${HAVE_XPM}" = "yes"; then
13532 { echo "$as_me:$LINENO: checking
for XpmReturnAllocPixels preprocessor define
" >&5
13533 echo $ECHO_N "checking
for XpmReturnAllocPixels preprocessor define...
$ECHO_C" >&6; }
13534 cat >conftest.$ac_ext <<_ACEOF
13537 cat confdefs.h >>conftest.$ac_ext
13538 cat >>conftest.$ac_ext <<_ACEOF
13539 /* end confdefs.h. */
13540 #include "X11
/xpm.h
"
13541 #ifndef XpmReturnAllocPixels
13542 no_return_alloc_pixels
13546 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
13547 $EGREP "no_return_alloc_pixels
" >/dev/null 2>&1; then
13555 if test "${HAVE_XPM}" = "yes"; then
13556 { echo "$as_me:$LINENO: result
: yes" >&5
13557 echo "${ECHO_T}yes" >&6; }
13559 { echo "$as_me:$LINENO: result
: no
" >&5
13560 echo "${ECHO_T}no
" >&6; }
13565 if test "${HAVE_XPM}" = "yes"; then
13567 cat >>confdefs.h <<\_ACEOF
13574 ### Use -ljpeg if available, unless `--with-jpeg=no'.
13576 if test "${HAVE_X11}" = "yes"; then
13577 if test "${with_jpeg}" != "no
"; then
13578 if test "${ac_cv_header_jerror_h+set}" = set; then
13579 { echo "$as_me:$LINENO: checking
for jerror.h
" >&5
13580 echo $ECHO_N "checking
for jerror.h...
$ECHO_C" >&6; }
13581 if test "${ac_cv_header_jerror_h+set}" = set; then
13582 echo $ECHO_N "(cached
) $ECHO_C" >&6
13584 { echo "$as_me:$LINENO: result
: $ac_cv_header_jerror_h" >&5
13585 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13587 # Is the header compilable?
13588 { echo "$as_me:$LINENO: checking jerror.h usability
" >&5
13589 echo $ECHO_N "checking jerror.h usability...
$ECHO_C" >&6; }
13590 cat >conftest.$ac_ext <<_ACEOF
13593 cat confdefs.h >>conftest.$ac_ext
13594 cat >>conftest.$ac_ext <<_ACEOF
13595 /* end confdefs.h. */
13596 $ac_includes_default
13597 #include <jerror.h>
13599 rm -f conftest.$ac_objext
13600 if { (ac_try="$ac_compile"
13601 case "(($ac_try" in
13602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13603 *) ac_try_echo=$ac_try;;
13605 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13606 (eval "$ac_compile") 2>conftest.er1
13608 grep -v '^ *+' conftest.er1 >conftest.err
13610 cat conftest.err >&5
13611 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13612 (exit $ac_status); } && {
13613 test -z "$ac_c_werror_flag" ||
13614 test ! -s conftest.err
13615 } && test -s conftest.$ac_objext; then
13616 ac_header_compiler=yes
13618 echo "$as_me: failed program was
:" >&5
13619 sed 's/^/| /' conftest.$ac_ext >&5
13621 ac_header_compiler=no
13624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13625 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
13626 echo "${ECHO_T}$ac_header_compiler" >&6; }
13628 # Is the header present?
13629 { echo "$as_me:$LINENO: checking jerror.h presence
" >&5
13630 echo $ECHO_N "checking jerror.h presence...
$ECHO_C" >&6; }
13631 cat >conftest.$ac_ext <<_ACEOF
13634 cat confdefs.h >>conftest.$ac_ext
13635 cat >>conftest.$ac_ext <<_ACEOF
13636 /* end confdefs.h. */
13637 #include <jerror.h>
13639 if { (ac_try="$ac_cpp conftest.
$ac_ext"
13640 case "(($ac_try" in
13641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13642 *) ac_try_echo=$ac_try;;
13644 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13645 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
13647 grep -v '^ *+' conftest.er1 >conftest.err
13649 cat conftest.err >&5
13650 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13651 (exit $ac_status); } >/dev/null && {
13652 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13653 test ! -s conftest.err
13655 ac_header_preproc=yes
13657 echo "$as_me: failed program was
:" >&5
13658 sed 's/^/| /' conftest.$ac_ext >&5
13660 ac_header_preproc=no
13663 rm -f conftest.err conftest.$ac_ext
13664 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
13665 echo "${ECHO_T}$ac_header_preproc" >&6; }
13667 # So? What about this header?
13668 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13670 { echo "$as_me:$LINENO: WARNING
: jerror.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
13671 echo "$as_me: WARNING
: jerror.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
13672 { echo "$as_me:$LINENO: WARNING
: jerror.h
: proceeding with the compiler
's result" >&5
13673 echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result
" >&2;}
13674 ac_header_preproc=yes
13677 { echo "$as_me:$LINENO: WARNING
: jerror.h
: present but cannot be compiled
" >&5
13678 echo "$as_me: WARNING
: jerror.h
: present but cannot be compiled
" >&2;}
13679 { echo "$as_me:$LINENO: WARNING
: jerror.h
: check
for missing prerequisite headers?
" >&5
13680 echo "$as_me: WARNING
: jerror.h
: check
for missing prerequisite headers?
" >&2;}
13681 { echo "$as_me:$LINENO: WARNING
: jerror.h
: see the Autoconf documentation
" >&5
13682 echo "$as_me: WARNING
: jerror.h
: see the Autoconf documentation
" >&2;}
13683 { echo "$as_me:$LINENO: WARNING
: jerror.h
: section
\"Present But Cannot Be Compiled
\"" >&5
13684 echo "$as_me: WARNING
: jerror.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
13685 { echo "$as_me:$LINENO: WARNING
: jerror.h
: proceeding with the preprocessor
's result" >&5
13686 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result
" >&2;}
13687 { echo "$as_me:$LINENO: WARNING
: jerror.h
: in the future
, the compiler will take precedence
" >&5
13688 echo "$as_me: WARNING
: jerror.h
: in the future
, the compiler will take precedence
" >&2;}
13692 { echo "$as_me:$LINENO: checking
for jerror.h
" >&5
13693 echo $ECHO_N "checking
for jerror.h...
$ECHO_C" >&6; }
13694 if test "${ac_cv_header_jerror_h+set}" = set; then
13695 echo $ECHO_N "(cached
) $ECHO_C" >&6
13697 ac_cv_header_jerror_h=$ac_header_preproc
13699 { echo "$as_me:$LINENO: result
: $ac_cv_header_jerror_h" >&5
13700 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13703 if test $ac_cv_header_jerror_h = yes; then
13704 { echo "$as_me:$LINENO: checking
for jpeg_destroy_compress
in -ljpeg" >&5
13705 echo $ECHO_N "checking
for jpeg_destroy_compress
in -ljpeg...
$ECHO_C" >&6; }
13706 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
13707 echo $ECHO_N "(cached
) $ECHO_C" >&6
13709 ac_check_lib_save_LIBS=$LIBS
13710 LIBS="-ljpeg $LIBS"
13711 cat >conftest.$ac_ext <<_ACEOF
13714 cat confdefs.h >>conftest.$ac_ext
13715 cat >>conftest.$ac_ext <<_ACEOF
13716 /* end confdefs.h. */
13718 /* Override any GCC internal prototype to avoid an error.
13719 Use char because int might match the return type of a GCC
13720 builtin and then its argument prototype would still apply. */
13724 char jpeg_destroy_compress ();
13728 return jpeg_destroy_compress ();
13733 rm -f conftest.$ac_objext conftest$ac_exeext
13734 if { (ac_try="$ac_link"
13735 case "(($ac_try" in
13736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13737 *) ac_try_echo=$ac_try;;
13739 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13740 (eval "$ac_link") 2>conftest.er1
13742 grep -v '^ *+' conftest.er1 >conftest.err
13744 cat conftest.err >&5
13745 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13746 (exit $ac_status); } && {
13747 test -z "$ac_c_werror_flag" ||
13748 test ! -s conftest.err
13749 } && test -s conftest$ac_exeext &&
13750 $as_test_x conftest$ac_exeext; then
13751 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
13753 echo "$as_me: failed program was
:" >&5
13754 sed 's/^/| /' conftest.$ac_ext >&5
13756 ac_cv_lib_jpeg_jpeg_destroy_compress=no
13759 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13760 conftest$ac_exeext conftest.$ac_ext
13761 LIBS=$ac_check_lib_save_LIBS
13763 { echo "$as_me:$LINENO: result
: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
13764 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
13765 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
13775 if test "${HAVE_JPEG}" = "yes"; then
13776 cat >>confdefs.h <<\_ACEOF
13777 #define HAVE_JPEG 1
13780 cat >conftest.$ac_ext <<_ACEOF
13783 cat confdefs.h >>conftest.$ac_ext
13784 cat >>conftest.$ac_ext <<_ACEOF
13785 /* end confdefs.h. */
13786 #include <jpeglib.h>
13787 version=JPEG_LIB_VERSION
13790 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
13791 $EGREP "version
= *(6[2-9]|
[7-9][0-9])" >/dev/null 2>&1; then
13792 cat >>confdefs.h <<\_ACEOF
13793 #define HAVE_JPEG 1
13797 { echo "$as_me:$LINENO: WARNING
: libjpeg found
, but not version
6b or later
" >&5
13798 echo "$as_me: WARNING
: libjpeg found
, but not version
6b or later
" >&2;}
13806 ### Use -lpng if available, unless `--with-png=no'.
13808 if test "${HAVE_X11}" = "yes"; then
13809 if test "${with_png}" != "no
"; then
13810 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
13811 # in /usr/include/libpng.
13814 for ac_header in png.h libpng/png.h
13816 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
13817 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
13818 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
13819 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
13820 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
13821 echo $ECHO_N "(cached
) $ECHO_C" >&6
13823 ac_res=`eval echo '${'$as_ac_Header'}'`
13824 { echo "$as_me:$LINENO: result
: $ac_res" >&5
13825 echo "${ECHO_T}$ac_res" >&6; }
13827 # Is the header compilable?
13828 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
13829 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
13830 cat >conftest.$ac_ext <<_ACEOF
13833 cat confdefs.h >>conftest.$ac_ext
13834 cat >>conftest.$ac_ext <<_ACEOF
13835 /* end confdefs.h. */
13836 $ac_includes_default
13837 #include <$ac_header>
13839 rm -f conftest.$ac_objext
13840 if { (ac_try="$ac_compile"
13841 case "(($ac_try" in
13842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13843 *) ac_try_echo=$ac_try;;
13845 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13846 (eval "$ac_compile") 2>conftest.er1
13848 grep -v '^ *+' conftest.er1 >conftest.err
13850 cat conftest.err >&5
13851 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13852 (exit $ac_status); } && {
13853 test -z "$ac_c_werror_flag" ||
13854 test ! -s conftest.err
13855 } && test -s conftest.$ac_objext; then
13856 ac_header_compiler=yes
13858 echo "$as_me: failed program was
:" >&5
13859 sed 's/^/| /' conftest.$ac_ext >&5
13861 ac_header_compiler=no
13864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13865 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
13866 echo "${ECHO_T}$ac_header_compiler" >&6; }
13868 # Is the header present?
13869 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
13870 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
13871 cat >conftest.$ac_ext <<_ACEOF
13874 cat confdefs.h >>conftest.$ac_ext
13875 cat >>conftest.$ac_ext <<_ACEOF
13876 /* end confdefs.h. */
13877 #include <$ac_header>
13879 if { (ac_try="$ac_cpp conftest.
$ac_ext"
13880 case "(($ac_try" in
13881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13882 *) ac_try_echo=$ac_try;;
13884 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13885 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
13887 grep -v '^ *+' conftest.er1 >conftest.err
13889 cat conftest.err >&5
13890 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13891 (exit $ac_status); } >/dev/null && {
13892 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13893 test ! -s conftest.err
13895 ac_header_preproc=yes
13897 echo "$as_me: failed program was
:" >&5
13898 sed 's/^/| /' conftest.$ac_ext >&5
13900 ac_header_preproc=no
13903 rm -f conftest.err conftest.$ac_ext
13904 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
13905 echo "${ECHO_T}$ac_header_preproc" >&6; }
13907 # So? What about this header?
13908 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13910 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
13911 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
13912 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
13913 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
13914 ac_header_preproc=yes
13917 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
13918 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
13919 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
13920 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
13921 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
13922 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
13923 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
13924 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
13925 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
13926 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
13927 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
13928 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
13932 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
13933 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
13934 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
13935 echo $ECHO_N "(cached
) $ECHO_C" >&6
13937 eval "$as_ac_Header=\
$ac_header_preproc"
13939 ac_res=`eval echo '${'$as_ac_Header'}'`
13940 { echo "$as_me:$LINENO: result
: $ac_res" >&5
13941 echo "${ECHO_T}$ac_res" >&6; }
13944 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13945 cat >>confdefs.h <<_ACEOF
13946 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
13953 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
13954 { echo "$as_me:$LINENO: checking
for png_get_channels
in -lpng" >&5
13955 echo $ECHO_N "checking
for png_get_channels
in -lpng...
$ECHO_C" >&6; }
13956 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
13957 echo $ECHO_N "(cached
) $ECHO_C" >&6
13959 ac_check_lib_save_LIBS=$LIBS
13960 LIBS="-lpng -lz -lm $LIBS"
13961 cat >conftest.$ac_ext <<_ACEOF
13964 cat confdefs.h >>conftest.$ac_ext
13965 cat >>conftest.$ac_ext <<_ACEOF
13966 /* end confdefs.h. */
13968 /* Override any GCC internal prototype to avoid an error.
13969 Use char because int might match the return type of a GCC
13970 builtin and then its argument prototype would still apply. */
13974 char png_get_channels ();
13978 return png_get_channels ();
13983 rm -f conftest.$ac_objext conftest$ac_exeext
13984 if { (ac_try="$ac_link"
13985 case "(($ac_try" in
13986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13987 *) ac_try_echo=$ac_try;;
13989 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13990 (eval "$ac_link") 2>conftest.er1
13992 grep -v '^ *+' conftest.er1 >conftest.err
13994 cat conftest.err >&5
13995 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13996 (exit $ac_status); } && {
13997 test -z "$ac_c_werror_flag" ||
13998 test ! -s conftest.err
13999 } && test -s conftest$ac_exeext &&
14000 $as_test_x conftest$ac_exeext; then
14001 ac_cv_lib_png_png_get_channels=yes
14003 echo "$as_me: failed program was
:" >&5
14004 sed 's/^/| /' conftest.$ac_ext >&5
14006 ac_cv_lib_png_png_get_channels=no
14009 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14010 conftest$ac_exeext conftest.$ac_ext
14011 LIBS=$ac_check_lib_save_LIBS
14013 { echo "$as_me:$LINENO: result
: $ac_cv_lib_png_png_get_channels" >&5
14014 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6; }
14015 if test $ac_cv_lib_png_png_get_channels = yes; then
14022 if test "${HAVE_PNG}" = "yes"; then
14024 cat >>confdefs.h <<\_ACEOF
14031 ### Use -ltiff if available, unless `--with-tiff=no'.
14033 if test "${HAVE_X11}" = "yes"; then
14034 if test "${with_tiff}" != "no
"; then
14035 if test "${ac_cv_header_tiffio_h+set}" = set; then
14036 { echo "$as_me:$LINENO: checking
for tiffio.h
" >&5
14037 echo $ECHO_N "checking
for tiffio.h...
$ECHO_C" >&6; }
14038 if test "${ac_cv_header_tiffio_h+set}" = set; then
14039 echo $ECHO_N "(cached
) $ECHO_C" >&6
14041 { echo "$as_me:$LINENO: result
: $ac_cv_header_tiffio_h" >&5
14042 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
14044 # Is the header compilable?
14045 { echo "$as_me:$LINENO: checking tiffio.h usability
" >&5
14046 echo $ECHO_N "checking tiffio.h usability...
$ECHO_C" >&6; }
14047 cat >conftest.$ac_ext <<_ACEOF
14050 cat confdefs.h >>conftest.$ac_ext
14051 cat >>conftest.$ac_ext <<_ACEOF
14052 /* end confdefs.h. */
14053 $ac_includes_default
14054 #include <tiffio.h>
14056 rm -f conftest.$ac_objext
14057 if { (ac_try="$ac_compile"
14058 case "(($ac_try" in
14059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14060 *) ac_try_echo=$ac_try;;
14062 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14063 (eval "$ac_compile") 2>conftest.er1
14065 grep -v '^ *+' conftest.er1 >conftest.err
14067 cat conftest.err >&5
14068 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14069 (exit $ac_status); } && {
14070 test -z "$ac_c_werror_flag" ||
14071 test ! -s conftest.err
14072 } && test -s conftest.$ac_objext; then
14073 ac_header_compiler=yes
14075 echo "$as_me: failed program was
:" >&5
14076 sed 's/^/| /' conftest.$ac_ext >&5
14078 ac_header_compiler=no
14081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14082 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
14083 echo "${ECHO_T}$ac_header_compiler" >&6; }
14085 # Is the header present?
14086 { echo "$as_me:$LINENO: checking tiffio.h presence
" >&5
14087 echo $ECHO_N "checking tiffio.h presence...
$ECHO_C" >&6; }
14088 cat >conftest.$ac_ext <<_ACEOF
14091 cat confdefs.h >>conftest.$ac_ext
14092 cat >>conftest.$ac_ext <<_ACEOF
14093 /* end confdefs.h. */
14094 #include <tiffio.h>
14096 if { (ac_try="$ac_cpp conftest.
$ac_ext"
14097 case "(($ac_try" in
14098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14099 *) ac_try_echo=$ac_try;;
14101 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14102 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
14104 grep -v '^ *+' conftest.er1 >conftest.err
14106 cat conftest.err >&5
14107 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14108 (exit $ac_status); } >/dev/null && {
14109 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14110 test ! -s conftest.err
14112 ac_header_preproc=yes
14114 echo "$as_me: failed program was
:" >&5
14115 sed 's/^/| /' conftest.$ac_ext >&5
14117 ac_header_preproc=no
14120 rm -f conftest.err conftest.$ac_ext
14121 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
14122 echo "${ECHO_T}$ac_header_preproc" >&6; }
14124 # So? What about this header?
14125 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14127 { echo "$as_me:$LINENO: WARNING
: tiffio.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
14128 echo "$as_me: WARNING
: tiffio.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
14129 { echo "$as_me:$LINENO: WARNING
: tiffio.h
: proceeding with the compiler
's result" >&5
14130 echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result
" >&2;}
14131 ac_header_preproc=yes
14134 { echo "$as_me:$LINENO: WARNING
: tiffio.h
: present but cannot be compiled
" >&5
14135 echo "$as_me: WARNING
: tiffio.h
: present but cannot be compiled
" >&2;}
14136 { echo "$as_me:$LINENO: WARNING
: tiffio.h
: check
for missing prerequisite headers?
" >&5
14137 echo "$as_me: WARNING
: tiffio.h
: check
for missing prerequisite headers?
" >&2;}
14138 { echo "$as_me:$LINENO: WARNING
: tiffio.h
: see the Autoconf documentation
" >&5
14139 echo "$as_me: WARNING
: tiffio.h
: see the Autoconf documentation
" >&2;}
14140 { echo "$as_me:$LINENO: WARNING
: tiffio.h
: section
\"Present But Cannot Be Compiled
\"" >&5
14141 echo "$as_me: WARNING
: tiffio.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
14142 { echo "$as_me:$LINENO: WARNING
: tiffio.h
: proceeding with the preprocessor
's result" >&5
14143 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result
" >&2;}
14144 { echo "$as_me:$LINENO: WARNING
: tiffio.h
: in the future
, the compiler will take precedence
" >&5
14145 echo "$as_me: WARNING
: tiffio.h
: in the future
, the compiler will take precedence
" >&2;}
14149 { echo "$as_me:$LINENO: checking
for tiffio.h
" >&5
14150 echo $ECHO_N "checking
for tiffio.h...
$ECHO_C" >&6; }
14151 if test "${ac_cv_header_tiffio_h+set}" = set; then
14152 echo $ECHO_N "(cached
) $ECHO_C" >&6
14154 ac_cv_header_tiffio_h=$ac_header_preproc
14156 { echo "$as_me:$LINENO: result
: $ac_cv_header_tiffio_h" >&5
14157 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
14160 if test $ac_cv_header_tiffio_h = yes; then
14162 # At least one tiff package requires the jpeg library.
14163 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
14164 { echo "$as_me:$LINENO: checking
for TIFFGetVersion
in -ltiff" >&5
14165 echo $ECHO_N "checking
for TIFFGetVersion
in -ltiff...
$ECHO_C" >&6; }
14166 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
14167 echo $ECHO_N "(cached
) $ECHO_C" >&6
14169 ac_check_lib_save_LIBS=$LIBS
14170 LIBS="-ltiff $tifflibs $LIBS"
14171 cat >conftest.$ac_ext <<_ACEOF
14174 cat confdefs.h >>conftest.$ac_ext
14175 cat >>conftest.$ac_ext <<_ACEOF
14176 /* end confdefs.h. */
14178 /* Override any GCC internal prototype to avoid an error.
14179 Use char because int might match the return type of a GCC
14180 builtin and then its argument prototype would still apply. */
14184 char TIFFGetVersion ();
14188 return TIFFGetVersion ();
14193 rm -f conftest.$ac_objext conftest$ac_exeext
14194 if { (ac_try="$ac_link"
14195 case "(($ac_try" in
14196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14197 *) ac_try_echo=$ac_try;;
14199 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14200 (eval "$ac_link") 2>conftest.er1
14202 grep -v '^ *+' conftest.er1 >conftest.err
14204 cat conftest.err >&5
14205 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14206 (exit $ac_status); } && {
14207 test -z "$ac_c_werror_flag" ||
14208 test ! -s conftest.err
14209 } && test -s conftest$ac_exeext &&
14210 $as_test_x conftest$ac_exeext; then
14211 ac_cv_lib_tiff_TIFFGetVersion=yes
14213 echo "$as_me: failed program was
:" >&5
14214 sed 's/^/| /' conftest.$ac_ext >&5
14216 ac_cv_lib_tiff_TIFFGetVersion=no
14219 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14220 conftest$ac_exeext conftest.$ac_ext
14221 LIBS=$ac_check_lib_save_LIBS
14223 { echo "$as_me:$LINENO: result
: $ac_cv_lib_tiff_TIFFGetVersion" >&5
14224 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
14225 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
14234 if test "${HAVE_TIFF}" = "yes"; then
14236 cat >>confdefs.h <<\_ACEOF
14237 #define HAVE_TIFF 1
14243 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
14245 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no
"; then
14246 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14247 { echo "$as_me:$LINENO: checking
for gif_lib.h
" >&5
14248 echo $ECHO_N "checking
for gif_lib.h...
$ECHO_C" >&6; }
14249 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14250 echo $ECHO_N "(cached
) $ECHO_C" >&6
14252 { echo "$as_me:$LINENO: result
: $ac_cv_header_gif_lib_h" >&5
14253 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
14255 # Is the header compilable?
14256 { echo "$as_me:$LINENO: checking gif_lib.h usability
" >&5
14257 echo $ECHO_N "checking gif_lib.h usability...
$ECHO_C" >&6; }
14258 cat >conftest.$ac_ext <<_ACEOF
14261 cat confdefs.h >>conftest.$ac_ext
14262 cat >>conftest.$ac_ext <<_ACEOF
14263 /* end confdefs.h. */
14264 $ac_includes_default
14265 #include <gif_lib.h>
14267 rm -f conftest.$ac_objext
14268 if { (ac_try="$ac_compile"
14269 case "(($ac_try" in
14270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14271 *) ac_try_echo=$ac_try;;
14273 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14274 (eval "$ac_compile") 2>conftest.er1
14276 grep -v '^ *+' conftest.er1 >conftest.err
14278 cat conftest.err >&5
14279 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14280 (exit $ac_status); } && {
14281 test -z "$ac_c_werror_flag" ||
14282 test ! -s conftest.err
14283 } && test -s conftest.$ac_objext; then
14284 ac_header_compiler=yes
14286 echo "$as_me: failed program was
:" >&5
14287 sed 's/^/| /' conftest.$ac_ext >&5
14289 ac_header_compiler=no
14292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14293 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
14294 echo "${ECHO_T}$ac_header_compiler" >&6; }
14296 # Is the header present?
14297 { echo "$as_me:$LINENO: checking gif_lib.h presence
" >&5
14298 echo $ECHO_N "checking gif_lib.h presence...
$ECHO_C" >&6; }
14299 cat >conftest.$ac_ext <<_ACEOF
14302 cat confdefs.h >>conftest.$ac_ext
14303 cat >>conftest.$ac_ext <<_ACEOF
14304 /* end confdefs.h. */
14305 #include <gif_lib.h>
14307 if { (ac_try="$ac_cpp conftest.
$ac_ext"
14308 case "(($ac_try" in
14309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14310 *) ac_try_echo=$ac_try;;
14312 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14313 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
14315 grep -v '^ *+' conftest.er1 >conftest.err
14317 cat conftest.err >&5
14318 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14319 (exit $ac_status); } >/dev/null && {
14320 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14321 test ! -s conftest.err
14323 ac_header_preproc=yes
14325 echo "$as_me: failed program was
:" >&5
14326 sed 's/^/| /' conftest.$ac_ext >&5
14328 ac_header_preproc=no
14331 rm -f conftest.err conftest.$ac_ext
14332 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
14333 echo "${ECHO_T}$ac_header_preproc" >&6; }
14335 # So? What about this header?
14336 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14338 { echo "$as_me:$LINENO: WARNING
: gif_lib.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
14339 echo "$as_me: WARNING
: gif_lib.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
14340 { echo "$as_me:$LINENO: WARNING
: gif_lib.h
: proceeding with the compiler
's result" >&5
14341 echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result
" >&2;}
14342 ac_header_preproc=yes
14345 { echo "$as_me:$LINENO: WARNING
: gif_lib.h
: present but cannot be compiled
" >&5
14346 echo "$as_me: WARNING
: gif_lib.h
: present but cannot be compiled
" >&2;}
14347 { echo "$as_me:$LINENO: WARNING
: gif_lib.h
: check
for missing prerequisite headers?
" >&5
14348 echo "$as_me: WARNING
: gif_lib.h
: check
for missing prerequisite headers?
" >&2;}
14349 { echo "$as_me:$LINENO: WARNING
: gif_lib.h
: see the Autoconf documentation
" >&5
14350 echo "$as_me: WARNING
: gif_lib.h
: see the Autoconf documentation
" >&2;}
14351 { echo "$as_me:$LINENO: WARNING
: gif_lib.h
: section
\"Present But Cannot Be Compiled
\"" >&5
14352 echo "$as_me: WARNING
: gif_lib.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
14353 { echo "$as_me:$LINENO: WARNING
: gif_lib.h
: proceeding with the preprocessor
's result" >&5
14354 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result
" >&2;}
14355 { echo "$as_me:$LINENO: WARNING
: gif_lib.h
: in the future
, the compiler will take precedence
" >&5
14356 echo "$as_me: WARNING
: gif_lib.h
: in the future
, the compiler will take precedence
" >&2;}
14360 { echo "$as_me:$LINENO: checking
for gif_lib.h
" >&5
14361 echo $ECHO_N "checking
for gif_lib.h...
$ECHO_C" >&6; }
14362 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14363 echo $ECHO_N "(cached
) $ECHO_C" >&6
14365 ac_cv_header_gif_lib_h=$ac_header_preproc
14367 { echo "$as_me:$LINENO: result
: $ac_cv_header_gif_lib_h" >&5
14368 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
14371 if test $ac_cv_header_gif_lib_h = yes; then
14372 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
14373 # Earlier versions can crash Emacs.
14374 { echo "$as_me:$LINENO: checking
for EGifPutExtensionLast
in -lgif" >&5
14375 echo $ECHO_N "checking
for EGifPutExtensionLast
in -lgif...
$ECHO_C" >&6; }
14376 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then
14377 echo $ECHO_N "(cached
) $ECHO_C" >&6
14379 ac_check_lib_save_LIBS=$LIBS
14381 cat >conftest.$ac_ext <<_ACEOF
14384 cat confdefs.h >>conftest.$ac_ext
14385 cat >>conftest.$ac_ext <<_ACEOF
14386 /* end confdefs.h. */
14388 /* Override any GCC internal prototype to avoid an error.
14389 Use char because int might match the return type of a GCC
14390 builtin and then its argument prototype would still apply. */
14394 char EGifPutExtensionLast ();
14398 return EGifPutExtensionLast ();
14403 rm -f conftest.$ac_objext conftest$ac_exeext
14404 if { (ac_try="$ac_link"
14405 case "(($ac_try" in
14406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14407 *) ac_try_echo=$ac_try;;
14409 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14410 (eval "$ac_link") 2>conftest.er1
14412 grep -v '^ *+' conftest.er1 >conftest.err
14414 cat conftest.err >&5
14415 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14416 (exit $ac_status); } && {
14417 test -z "$ac_c_werror_flag" ||
14418 test ! -s conftest.err
14419 } && test -s conftest$ac_exeext &&
14420 $as_test_x conftest$ac_exeext; then
14421 ac_cv_lib_gif_EGifPutExtensionLast=yes
14423 echo "$as_me: failed program was
:" >&5
14424 sed 's/^/| /' conftest.$ac_ext >&5
14426 ac_cv_lib_gif_EGifPutExtensionLast=no
14429 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14430 conftest$ac_exeext conftest.$ac_ext
14431 LIBS=$ac_check_lib_save_LIBS
14433 { echo "$as_me:$LINENO: result
: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
14434 echo "${ECHO_T}$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
14435 if test $ac_cv_lib_gif_EGifPutExtensionLast = yes; then
14445 if test "$HAVE_GIF" = yes; then
14446 ac_gif_lib_name="-lgif"
14449 # If gif_lib.h but no libgif, try libungif.
14450 if test x"$try_libungif" = xyes; then
14451 { echo "$as_me:$LINENO: checking
for EGifPutExtensionLast
in -lungif" >&5
14452 echo $ECHO_N "checking
for EGifPutExtensionLast
in -lungif...
$ECHO_C" >&6; }
14453 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
14454 echo $ECHO_N "(cached
) $ECHO_C" >&6
14456 ac_check_lib_save_LIBS=$LIBS
14457 LIBS="-lungif $LIBS"
14458 cat >conftest.$ac_ext <<_ACEOF
14461 cat confdefs.h >>conftest.$ac_ext
14462 cat >>conftest.$ac_ext <<_ACEOF
14463 /* end confdefs.h. */
14465 /* Override any GCC internal prototype to avoid an error.
14466 Use char because int might match the return type of a GCC
14467 builtin and then its argument prototype would still apply. */
14471 char EGifPutExtensionLast ();
14475 return EGifPutExtensionLast ();
14480 rm -f conftest.$ac_objext conftest$ac_exeext
14481 if { (ac_try="$ac_link"
14482 case "(($ac_try" in
14483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14484 *) ac_try_echo=$ac_try;;
14486 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14487 (eval "$ac_link") 2>conftest.er1
14489 grep -v '^ *+' conftest.er1 >conftest.err
14491 cat conftest.err >&5
14492 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14493 (exit $ac_status); } && {
14494 test -z "$ac_c_werror_flag" ||
14495 test ! -s conftest.err
14496 } && test -s conftest$ac_exeext &&
14497 $as_test_x conftest$ac_exeext; then
14498 ac_cv_lib_ungif_EGifPutExtensionLast=yes
14500 echo "$as_me: failed program was
:" >&5
14501 sed 's/^/| /' conftest.$ac_ext >&5
14503 ac_cv_lib_ungif_EGifPutExtensionLast=no
14506 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14507 conftest$ac_exeext conftest.$ac_ext
14508 LIBS=$ac_check_lib_save_LIBS
14510 { echo "$as_me:$LINENO: result
: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
14511 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
14512 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
14517 if test "$HAVE_GIF" = yes; then
14519 cat >>confdefs.h <<\_ACEOF
14520 #define LIBGIF -lungif
14523 ac_gif_lib_name="-lungif"
14527 if test "${HAVE_GIF}" = "yes"; then
14529 cat >>confdefs.h <<\_ACEOF
14536 if test "${HAVE_X11}" = "yes"; then
14539 test "${with_xpm}" != "no
" && test "${HAVE_XPM}" != "yes" &&
14540 MISSING="libXpm
" && WITH_NO="--with-xpm=no
"
14541 test "${with_jpeg}" != "no
" && test "${HAVE_JPEG}" != "yes" &&
14542 MISSING="$MISSING libjpeg
" && WITH_NO="$WITH_NO --with-jpeg=no
"
14543 test "${with_png}" != "no
" && test "${HAVE_PNG}" != "yes" &&
14544 MISSING="$MISSING libpng
" && WITH_NO="$WITH_NO --with-png=no
"
14545 test "${with_gif}" != "no
" && test "${HAVE_GIF}" != "yes" &&
14546 MISSING="$MISSING libgif
/libungif
" && WITH_NO="$WITH_NO --with-gif=no
"
14547 test "${with_tiff}" != "no
" && test "${HAVE_TIFF}" != "yes" &&
14548 MISSING="$MISSING libtiff
" && WITH_NO="$WITH_NO --with-tiff=no
"
14550 if test "X
${MISSING}" != X; then
14551 { { echo "$as_me:$LINENO: error
: The following required libraries were not found
:
14553 Maybe some development libraries
/packages are missing?
14554 If you don
't want to link with them give
14556 as options to configure" >&5
14557 echo "$as_me: error: The following required libraries were not found:
14559 Maybe some development libraries/packages are missing?
14560 If you don't want to link with them give
14562 as options to configure
" >&2;}
14563 { (exit 1); exit 1; }; }
14567 ### Use -lgpm if available, unless `--with-gpm=no'.
14569 if test "${with_gpm}" != "no
"; then
14570 if test "${ac_cv_header_gpm_h+set}" = set; then
14571 { echo "$as_me:$LINENO: checking
for gpm.h
" >&5
14572 echo $ECHO_N "checking
for gpm.h...
$ECHO_C" >&6; }
14573 if test "${ac_cv_header_gpm_h+set}" = set; then
14574 echo $ECHO_N "(cached
) $ECHO_C" >&6
14576 { echo "$as_me:$LINENO: result
: $ac_cv_header_gpm_h" >&5
14577 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6; }
14579 # Is the header compilable?
14580 { echo "$as_me:$LINENO: checking gpm.h usability
" >&5
14581 echo $ECHO_N "checking gpm.h usability...
$ECHO_C" >&6; }
14582 cat >conftest.$ac_ext <<_ACEOF
14585 cat confdefs.h >>conftest.$ac_ext
14586 cat >>conftest.$ac_ext <<_ACEOF
14587 /* end confdefs.h. */
14588 $ac_includes_default
14591 rm -f conftest.$ac_objext
14592 if { (ac_try="$ac_compile"
14593 case "(($ac_try" in
14594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14595 *) ac_try_echo=$ac_try;;
14597 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14598 (eval "$ac_compile") 2>conftest.er1
14600 grep -v '^ *+' conftest.er1 >conftest.err
14602 cat conftest.err >&5
14603 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14604 (exit $ac_status); } && {
14605 test -z "$ac_c_werror_flag" ||
14606 test ! -s conftest.err
14607 } && test -s conftest.$ac_objext; then
14608 ac_header_compiler=yes
14610 echo "$as_me: failed program was
:" >&5
14611 sed 's/^/| /' conftest.$ac_ext >&5
14613 ac_header_compiler=no
14616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14617 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
14618 echo "${ECHO_T}$ac_header_compiler" >&6; }
14620 # Is the header present?
14621 { echo "$as_me:$LINENO: checking gpm.h presence
" >&5
14622 echo $ECHO_N "checking gpm.h presence...
$ECHO_C" >&6; }
14623 cat >conftest.$ac_ext <<_ACEOF
14626 cat confdefs.h >>conftest.$ac_ext
14627 cat >>conftest.$ac_ext <<_ACEOF
14628 /* end confdefs.h. */
14631 if { (ac_try="$ac_cpp conftest.
$ac_ext"
14632 case "(($ac_try" in
14633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14634 *) ac_try_echo=$ac_try;;
14636 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14637 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
14639 grep -v '^ *+' conftest.er1 >conftest.err
14641 cat conftest.err >&5
14642 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14643 (exit $ac_status); } >/dev/null && {
14644 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14645 test ! -s conftest.err
14647 ac_header_preproc=yes
14649 echo "$as_me: failed program was
:" >&5
14650 sed 's/^/| /' conftest.$ac_ext >&5
14652 ac_header_preproc=no
14655 rm -f conftest.err conftest.$ac_ext
14656 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
14657 echo "${ECHO_T}$ac_header_preproc" >&6; }
14659 # So? What about this header?
14660 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14662 { echo "$as_me:$LINENO: WARNING
: gpm.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
14663 echo "$as_me: WARNING
: gpm.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
14664 { echo "$as_me:$LINENO: WARNING
: gpm.h
: proceeding with the compiler
's result" >&5
14665 echo "$as_me: WARNING: gpm.h: proceeding with the compiler's result
" >&2;}
14666 ac_header_preproc=yes
14669 { echo "$as_me:$LINENO: WARNING
: gpm.h
: present but cannot be compiled
" >&5
14670 echo "$as_me: WARNING
: gpm.h
: present but cannot be compiled
" >&2;}
14671 { echo "$as_me:$LINENO: WARNING
: gpm.h
: check
for missing prerequisite headers?
" >&5
14672 echo "$as_me: WARNING
: gpm.h
: check
for missing prerequisite headers?
" >&2;}
14673 { echo "$as_me:$LINENO: WARNING
: gpm.h
: see the Autoconf documentation
" >&5
14674 echo "$as_me: WARNING
: gpm.h
: see the Autoconf documentation
" >&2;}
14675 { echo "$as_me:$LINENO: WARNING
: gpm.h
: section
\"Present But Cannot Be Compiled
\"" >&5
14676 echo "$as_me: WARNING
: gpm.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
14677 { echo "$as_me:$LINENO: WARNING
: gpm.h
: proceeding with the preprocessor
's result" >&5
14678 echo "$as_me: WARNING: gpm.h: proceeding with the preprocessor's result
" >&2;}
14679 { echo "$as_me:$LINENO: WARNING
: gpm.h
: in the future
, the compiler will take precedence
" >&5
14680 echo "$as_me: WARNING
: gpm.h
: in the future
, the compiler will take precedence
" >&2;}
14684 { echo "$as_me:$LINENO: checking
for gpm.h
" >&5
14685 echo $ECHO_N "checking
for gpm.h...
$ECHO_C" >&6; }
14686 if test "${ac_cv_header_gpm_h+set}" = set; then
14687 echo $ECHO_N "(cached
) $ECHO_C" >&6
14689 ac_cv_header_gpm_h=$ac_header_preproc
14691 { echo "$as_me:$LINENO: result
: $ac_cv_header_gpm_h" >&5
14692 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6; }
14695 if test $ac_cv_header_gpm_h = yes; then
14696 { echo "$as_me:$LINENO: checking
for Gpm_Open
in -lgpm" >&5
14697 echo $ECHO_N "checking
for Gpm_Open
in -lgpm...
$ECHO_C" >&6; }
14698 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
14699 echo $ECHO_N "(cached
) $ECHO_C" >&6
14701 ac_check_lib_save_LIBS=$LIBS
14703 cat >conftest.$ac_ext <<_ACEOF
14706 cat confdefs.h >>conftest.$ac_ext
14707 cat >>conftest.$ac_ext <<_ACEOF
14708 /* end confdefs.h. */
14710 /* Override any GCC internal prototype to avoid an error.
14711 Use char because int might match the return type of a GCC
14712 builtin and then its argument prototype would still apply. */
14720 return Gpm_Open ();
14725 rm -f conftest.$ac_objext conftest$ac_exeext
14726 if { (ac_try="$ac_link"
14727 case "(($ac_try" in
14728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14729 *) ac_try_echo=$ac_try;;
14731 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14732 (eval "$ac_link") 2>conftest.er1
14734 grep -v '^ *+' conftest.er1 >conftest.err
14736 cat conftest.err >&5
14737 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14738 (exit $ac_status); } && {
14739 test -z "$ac_c_werror_flag" ||
14740 test ! -s conftest.err
14741 } && test -s conftest$ac_exeext &&
14742 $as_test_x conftest$ac_exeext; then
14743 ac_cv_lib_gpm_Gpm_Open=yes
14745 echo "$as_me: failed program was
:" >&5
14746 sed 's/^/| /' conftest.$ac_ext >&5
14748 ac_cv_lib_gpm_Gpm_Open=no
14751 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14752 conftest$ac_exeext conftest.$ac_ext
14753 LIBS=$ac_check_lib_save_LIBS
14755 { echo "$as_me:$LINENO: result
: $ac_cv_lib_gpm_Gpm_Open" >&5
14756 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6; }
14757 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
14766 if test "${HAVE_GPM}" = "yes"; then
14768 cat >>confdefs.h <<\_ACEOF
14774 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14775 { echo "$as_me:$LINENO: checking
for malloc
/malloc.h
" >&5
14776 echo $ECHO_N "checking
for malloc
/malloc.h...
$ECHO_C" >&6; }
14777 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14778 echo $ECHO_N "(cached
) $ECHO_C" >&6
14780 { echo "$as_me:$LINENO: result
: $ac_cv_header_malloc_malloc_h" >&5
14781 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14783 # Is the header compilable?
14784 { echo "$as_me:$LINENO: checking malloc
/malloc.h usability
" >&5
14785 echo $ECHO_N "checking malloc
/malloc.h usability...
$ECHO_C" >&6; }
14786 cat >conftest.$ac_ext <<_ACEOF
14789 cat confdefs.h >>conftest.$ac_ext
14790 cat >>conftest.$ac_ext <<_ACEOF
14791 /* end confdefs.h. */
14792 $ac_includes_default
14793 #include <malloc/malloc.h>
14795 rm -f conftest.$ac_objext
14796 if { (ac_try="$ac_compile"
14797 case "(($ac_try" in
14798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14799 *) ac_try_echo=$ac_try;;
14801 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14802 (eval "$ac_compile") 2>conftest.er1
14804 grep -v '^ *+' conftest.er1 >conftest.err
14806 cat conftest.err >&5
14807 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14808 (exit $ac_status); } && {
14809 test -z "$ac_c_werror_flag" ||
14810 test ! -s conftest.err
14811 } && test -s conftest.$ac_objext; then
14812 ac_header_compiler=yes
14814 echo "$as_me: failed program was
:" >&5
14815 sed 's/^/| /' conftest.$ac_ext >&5
14817 ac_header_compiler=no
14820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14821 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
14822 echo "${ECHO_T}$ac_header_compiler" >&6; }
14824 # Is the header present?
14825 { echo "$as_me:$LINENO: checking malloc
/malloc.h presence
" >&5
14826 echo $ECHO_N "checking malloc
/malloc.h presence...
$ECHO_C" >&6; }
14827 cat >conftest.$ac_ext <<_ACEOF
14830 cat confdefs.h >>conftest.$ac_ext
14831 cat >>conftest.$ac_ext <<_ACEOF
14832 /* end confdefs.h. */
14833 #include <malloc/malloc.h>
14835 if { (ac_try="$ac_cpp conftest.
$ac_ext"
14836 case "(($ac_try" in
14837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14838 *) ac_try_echo=$ac_try;;
14840 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14841 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
14843 grep -v '^ *+' conftest.er1 >conftest.err
14845 cat conftest.err >&5
14846 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14847 (exit $ac_status); } >/dev/null && {
14848 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14849 test ! -s conftest.err
14851 ac_header_preproc=yes
14853 echo "$as_me: failed program was
:" >&5
14854 sed 's/^/| /' conftest.$ac_ext >&5
14856 ac_header_preproc=no
14859 rm -f conftest.err conftest.$ac_ext
14860 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
14861 echo "${ECHO_T}$ac_header_preproc" >&6; }
14863 # So? What about this header?
14864 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14866 { echo "$as_me:$LINENO: WARNING
: malloc
/malloc.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
14867 echo "$as_me: WARNING
: malloc
/malloc.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
14868 { echo "$as_me:$LINENO: WARNING
: malloc
/malloc.h
: proceeding with the compiler
's result" >&5
14869 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result
" >&2;}
14870 ac_header_preproc=yes
14873 { echo "$as_me:$LINENO: WARNING
: malloc
/malloc.h
: present but cannot be compiled
" >&5
14874 echo "$as_me: WARNING
: malloc
/malloc.h
: present but cannot be compiled
" >&2;}
14875 { echo "$as_me:$LINENO: WARNING
: malloc
/malloc.h
: check
for missing prerequisite headers?
" >&5
14876 echo "$as_me: WARNING
: malloc
/malloc.h
: check
for missing prerequisite headers?
" >&2;}
14877 { echo "$as_me:$LINENO: WARNING
: malloc
/malloc.h
: see the Autoconf documentation
" >&5
14878 echo "$as_me: WARNING
: malloc
/malloc.h
: see the Autoconf documentation
" >&2;}
14879 { echo "$as_me:$LINENO: WARNING
: malloc
/malloc.h
: section
\"Present But Cannot Be Compiled
\"" >&5
14880 echo "$as_me: WARNING
: malloc
/malloc.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
14881 { echo "$as_me:$LINENO: WARNING
: malloc
/malloc.h
: proceeding with the preprocessor
's result" >&5
14882 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result
" >&2;}
14883 { echo "$as_me:$LINENO: WARNING
: malloc
/malloc.h
: in the future
, the compiler will take precedence
" >&5
14884 echo "$as_me: WARNING
: malloc
/malloc.h
: in the future
, the compiler will take precedence
" >&2;}
14888 { echo "$as_me:$LINENO: checking
for malloc
/malloc.h
" >&5
14889 echo $ECHO_N "checking
for malloc
/malloc.h...
$ECHO_C" >&6; }
14890 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14891 echo $ECHO_N "(cached
) $ECHO_C" >&6
14893 ac_cv_header_malloc_malloc_h=$ac_header_preproc
14895 { echo "$as_me:$LINENO: result
: $ac_cv_header_malloc_malloc_h" >&5
14896 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14899 if test $ac_cv_header_malloc_malloc_h = yes; then
14901 cat >>confdefs.h <<\_ACEOF
14902 #define HAVE_MALLOC_MALLOC_H 1
14909 ### Use NeXTstep API to implement GUI.
14910 if test "${HAVE_NS}" = "yes"; then
14912 cat >>confdefs.h <<\_ACEOF
14916 if test "${NS_IMPL_COCOA}" = "yes"; then
14918 cat >>confdefs.h <<\_ACEOF
14919 #define NS_IMPL_COCOA 1
14923 LIB_SRC_EXTRA_INSTALLABLES=mac-fix-env
14925 if test "${EN_COCOA_EXPERIMENTAL_CTRL_G}" = "yes"; then
14927 cat >>confdefs.h <<\_ACEOF
14928 #define COCOA_EXPERIMENTAL_CTRL_G 1
14932 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
14934 cat >>confdefs.h <<\_ACEOF
14935 #define NS_IMPL_GNUSTEP 1
14938 GNU_OBJC_CFLAGS="-fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString
-DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE"
14940 if test "${NS_HAVE_NSINTEGER}" = "yes"; then
14942 cat >>confdefs.h <<\_ACEOF
14943 #define NS_HAVE_NSINTEGER 1
14947 # We also have mouse menus.
14952 ### Use session management (-lSM -lICE) if available
14954 if test "${HAVE_X11}" = "yes"; then
14955 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14956 { echo "$as_me:$LINENO: checking
for X11
/SM
/SMlib.h
" >&5
14957 echo $ECHO_N "checking
for X11
/SM
/SMlib.h...
$ECHO_C" >&6; }
14958 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14959 echo $ECHO_N "(cached
) $ECHO_C" >&6
14961 { echo "$as_me:$LINENO: result
: $ac_cv_header_X11_SM_SMlib_h" >&5
14962 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
14964 # Is the header compilable?
14965 { echo "$as_me:$LINENO: checking X11
/SM
/SMlib.h usability
" >&5
14966 echo $ECHO_N "checking X11
/SM
/SMlib.h usability...
$ECHO_C" >&6; }
14967 cat >conftest.$ac_ext <<_ACEOF
14970 cat confdefs.h >>conftest.$ac_ext
14971 cat >>conftest.$ac_ext <<_ACEOF
14972 /* end confdefs.h. */
14973 $ac_includes_default
14974 #include <X11/SM/SMlib.h>
14976 rm -f conftest.$ac_objext
14977 if { (ac_try="$ac_compile"
14978 case "(($ac_try" in
14979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14980 *) ac_try_echo=$ac_try;;
14982 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14983 (eval "$ac_compile") 2>conftest.er1
14985 grep -v '^ *+' conftest.er1 >conftest.err
14987 cat conftest.err >&5
14988 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14989 (exit $ac_status); } && {
14990 test -z "$ac_c_werror_flag" ||
14991 test ! -s conftest.err
14992 } && test -s conftest.$ac_objext; then
14993 ac_header_compiler=yes
14995 echo "$as_me: failed program was
:" >&5
14996 sed 's/^/| /' conftest.$ac_ext >&5
14998 ac_header_compiler=no
15001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15002 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
15003 echo "${ECHO_T}$ac_header_compiler" >&6; }
15005 # Is the header present?
15006 { echo "$as_me:$LINENO: checking X11
/SM
/SMlib.h presence
" >&5
15007 echo $ECHO_N "checking X11
/SM
/SMlib.h presence...
$ECHO_C" >&6; }
15008 cat >conftest.$ac_ext <<_ACEOF
15011 cat confdefs.h >>conftest.$ac_ext
15012 cat >>conftest.$ac_ext <<_ACEOF
15013 /* end confdefs.h. */
15014 #include <X11/SM/SMlib.h>
15016 if { (ac_try="$ac_cpp conftest.
$ac_ext"
15017 case "(($ac_try" in
15018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15019 *) ac_try_echo=$ac_try;;
15021 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15022 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
15024 grep -v '^ *+' conftest.er1 >conftest.err
15026 cat conftest.err >&5
15027 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15028 (exit $ac_status); } >/dev/null && {
15029 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15030 test ! -s conftest.err
15032 ac_header_preproc=yes
15034 echo "$as_me: failed program was
:" >&5
15035 sed 's/^/| /' conftest.$ac_ext >&5
15037 ac_header_preproc=no
15040 rm -f conftest.err conftest.$ac_ext
15041 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
15042 echo "${ECHO_T}$ac_header_preproc" >&6; }
15044 # So? What about this header?
15045 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15047 { echo "$as_me:$LINENO: WARNING
: X11
/SM
/SMlib.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
15048 echo "$as_me: WARNING
: X11
/SM
/SMlib.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
15049 { echo "$as_me:$LINENO: WARNING
: X11
/SM
/SMlib.h
: proceeding with the compiler
's result" >&5
15050 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result
" >&2;}
15051 ac_header_preproc=yes
15054 { echo "$as_me:$LINENO: WARNING
: X11
/SM
/SMlib.h
: present but cannot be compiled
" >&5
15055 echo "$as_me: WARNING
: X11
/SM
/SMlib.h
: present but cannot be compiled
" >&2;}
15056 { echo "$as_me:$LINENO: WARNING
: X11
/SM
/SMlib.h
: check
for missing prerequisite headers?
" >&5
15057 echo "$as_me: WARNING
: X11
/SM
/SMlib.h
: check
for missing prerequisite headers?
" >&2;}
15058 { echo "$as_me:$LINENO: WARNING
: X11
/SM
/SMlib.h
: see the Autoconf documentation
" >&5
15059 echo "$as_me: WARNING
: X11
/SM
/SMlib.h
: see the Autoconf documentation
" >&2;}
15060 { echo "$as_me:$LINENO: WARNING
: X11
/SM
/SMlib.h
: section
\"Present But Cannot Be Compiled
\"" >&5
15061 echo "$as_me: WARNING
: X11
/SM
/SMlib.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
15062 { echo "$as_me:$LINENO: WARNING
: X11
/SM
/SMlib.h
: proceeding with the preprocessor
's result" >&5
15063 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result
" >&2;}
15064 { echo "$as_me:$LINENO: WARNING
: X11
/SM
/SMlib.h
: in the future
, the compiler will take precedence
" >&5
15065 echo "$as_me: WARNING
: X11
/SM
/SMlib.h
: in the future
, the compiler will take precedence
" >&2;}
15069 { echo "$as_me:$LINENO: checking
for X11
/SM
/SMlib.h
" >&5
15070 echo $ECHO_N "checking
for X11
/SM
/SMlib.h...
$ECHO_C" >&6; }
15071 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
15072 echo $ECHO_N "(cached
) $ECHO_C" >&6
15074 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
15076 { echo "$as_me:$LINENO: result
: $ac_cv_header_X11_SM_SMlib_h" >&5
15077 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
15080 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
15081 { echo "$as_me:$LINENO: checking
for SmcOpenConnection
in -lSM" >&5
15082 echo $ECHO_N "checking
for SmcOpenConnection
in -lSM...
$ECHO_C" >&6; }
15083 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
15084 echo $ECHO_N "(cached
) $ECHO_C" >&6
15086 ac_check_lib_save_LIBS=$LIBS
15087 LIBS="-lSM -lICE $LIBS"
15088 cat >conftest.$ac_ext <<_ACEOF
15091 cat confdefs.h >>conftest.$ac_ext
15092 cat >>conftest.$ac_ext <<_ACEOF
15093 /* end confdefs.h. */
15095 /* Override any GCC internal prototype to avoid an error.
15096 Use char because int might match the return type of a GCC
15097 builtin and then its argument prototype would still apply. */
15101 char SmcOpenConnection ();
15105 return SmcOpenConnection ();
15110 rm -f conftest.$ac_objext conftest$ac_exeext
15111 if { (ac_try="$ac_link"
15112 case "(($ac_try" in
15113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15114 *) ac_try_echo=$ac_try;;
15116 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15117 (eval "$ac_link") 2>conftest.er1
15119 grep -v '^ *+' conftest.er1 >conftest.err
15121 cat conftest.err >&5
15122 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15123 (exit $ac_status); } && {
15124 test -z "$ac_c_werror_flag" ||
15125 test ! -s conftest.err
15126 } && test -s conftest$ac_exeext &&
15127 $as_test_x conftest$ac_exeext; then
15128 ac_cv_lib_SM_SmcOpenConnection=yes
15130 echo "$as_me: failed program was
:" >&5
15131 sed 's/^/| /' conftest.$ac_ext >&5
15133 ac_cv_lib_SM_SmcOpenConnection=no
15136 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15137 conftest$ac_exeext conftest.$ac_ext
15138 LIBS=$ac_check_lib_save_LIBS
15140 { echo "$as_me:$LINENO: result
: $ac_cv_lib_SM_SmcOpenConnection" >&5
15141 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6; }
15142 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
15150 if test "${HAVE_X_SM}" = "yes"; then
15152 cat >>confdefs.h <<\_ACEOF
15153 #define HAVE_X_SM 1
15158 *) LIBS="-lSM -lICE $LIBS" ;;
15163 # If netdb.h doesn't declare h_errno, we must declare it by hand.
15164 { echo "$as_me:$LINENO: checking whether netdb declares h_errno
" >&5
15165 echo $ECHO_N "checking whether netdb declares h_errno...
$ECHO_C" >&6; }
15166 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
15167 echo $ECHO_N "(cached
) $ECHO_C" >&6
15169 cat >conftest.$ac_ext <<_ACEOF
15172 cat confdefs.h >>conftest.$ac_ext
15173 cat >>conftest.$ac_ext <<_ACEOF
15174 /* end confdefs.h. */
15184 rm -f conftest.$ac_objext conftest$ac_exeext
15185 if { (ac_try="$ac_link"
15186 case "(($ac_try" in
15187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15188 *) ac_try_echo=$ac_try;;
15190 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15191 (eval "$ac_link") 2>conftest.er1
15193 grep -v '^ *+' conftest.er1 >conftest.err
15195 cat conftest.err >&5
15196 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15197 (exit $ac_status); } && {
15198 test -z "$ac_c_werror_flag" ||
15199 test ! -s conftest.err
15200 } && test -s conftest$ac_exeext &&
15201 $as_test_x conftest$ac_exeext; then
15202 emacs_cv_netdb_declares_h_errno=yes
15204 echo "$as_me: failed program was
:" >&5
15205 sed 's/^/| /' conftest.$ac_ext >&5
15207 emacs_cv_netdb_declares_h_errno=no
15210 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15211 conftest$ac_exeext conftest.$ac_ext
15213 { echo "$as_me:$LINENO: result
: $emacs_cv_netdb_declares_h_errno" >&5
15214 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6; }
15215 if test $emacs_cv_netdb_declares_h_errno = yes; then
15217 cat >>confdefs.h <<\_ACEOF
15218 #define HAVE_H_ERRNO 1
15223 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15224 # for constant arguments. Useless!
15225 { echo "$as_me:$LINENO: checking
for working alloca.h
" >&5
15226 echo $ECHO_N "checking
for working alloca.h...
$ECHO_C" >&6; }
15227 if test "${ac_cv_working_alloca_h+set}" = set; then
15228 echo $ECHO_N "(cached
) $ECHO_C" >&6
15230 cat >conftest.$ac_ext <<_ACEOF
15233 cat confdefs.h >>conftest.$ac_ext
15234 cat >>conftest.$ac_ext <<_ACEOF
15235 /* end confdefs.h. */
15236 #include <alloca.h>
15240 char *p = (char *) alloca (2 * sizeof (int));
15246 rm -f conftest.$ac_objext conftest$ac_exeext
15247 if { (ac_try="$ac_link"
15248 case "(($ac_try" in
15249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15250 *) ac_try_echo=$ac_try;;
15252 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15253 (eval "$ac_link") 2>conftest.er1
15255 grep -v '^ *+' conftest.er1 >conftest.err
15257 cat conftest.err >&5
15258 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15259 (exit $ac_status); } && {
15260 test -z "$ac_c_werror_flag" ||
15261 test ! -s conftest.err
15262 } && test -s conftest$ac_exeext &&
15263 $as_test_x conftest$ac_exeext; then
15264 ac_cv_working_alloca_h=yes
15266 echo "$as_me: failed program was
:" >&5
15267 sed 's/^/| /' conftest.$ac_ext >&5
15269 ac_cv_working_alloca_h=no
15272 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15273 conftest$ac_exeext conftest.$ac_ext
15275 { echo "$as_me:$LINENO: result
: $ac_cv_working_alloca_h" >&5
15276 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
15277 if test $ac_cv_working_alloca_h = yes; then
15279 cat >>confdefs.h <<\_ACEOF
15280 #define HAVE_ALLOCA_H 1
15285 { echo "$as_me:$LINENO: checking
for alloca
" >&5
15286 echo $ECHO_N "checking
for alloca...
$ECHO_C" >&6; }
15287 if test "${ac_cv_func_alloca_works+set}" = set; then
15288 echo $ECHO_N "(cached
) $ECHO_C" >&6
15290 cat >conftest.$ac_ext <<_ACEOF
15293 cat confdefs.h >>conftest.$ac_ext
15294 cat >>conftest.$ac_ext <<_ACEOF
15295 /* end confdefs.h. */
15297 # define alloca __builtin_alloca
15300 # include <malloc.h>
15301 # define alloca _alloca
15303 # ifdef HAVE_ALLOCA_H
15304 # include <alloca.h>
15309 # ifndef alloca /* predefined by HP cc +Olibcalls */
15320 char *p = (char *) alloca (1);
15326 rm -f conftest.$ac_objext conftest$ac_exeext
15327 if { (ac_try="$ac_link"
15328 case "(($ac_try" in
15329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15330 *) ac_try_echo=$ac_try;;
15332 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15333 (eval "$ac_link") 2>conftest.er1
15335 grep -v '^ *+' conftest.er1 >conftest.err
15337 cat conftest.err >&5
15338 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15339 (exit $ac_status); } && {
15340 test -z "$ac_c_werror_flag" ||
15341 test ! -s conftest.err
15342 } && test -s conftest$ac_exeext &&
15343 $as_test_x conftest$ac_exeext; then
15344 ac_cv_func_alloca_works=yes
15346 echo "$as_me: failed program was
:" >&5
15347 sed 's/^/| /' conftest.$ac_ext >&5
15349 ac_cv_func_alloca_works=no
15352 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15353 conftest$ac_exeext conftest.$ac_ext
15355 { echo "$as_me:$LINENO: result
: $ac_cv_func_alloca_works" >&5
15356 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
15358 if test $ac_cv_func_alloca_works = yes; then
15360 cat >>confdefs.h <<\_ACEOF
15361 #define HAVE_ALLOCA 1
15365 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15366 # that cause trouble. Some versions do not even contain alloca or
15367 # contain a buggy version. If you still want to use their alloca,
15368 # use ar to extract alloca.o from them instead of compiling alloca.c.
15370 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
15372 cat >>confdefs.h <<\_ACEOF
15377 { echo "$as_me:$LINENO: checking whether \
`alloca.c' needs Cray hooks" >&5
15378 echo $ECHO_N "checking whether \`alloca.c
' needs Cray hooks... $ECHO_C" >&6; }
15379 if test "${ac_cv_os_cray+set}" = set; then
15380 echo $ECHO_N "(cached) $ECHO_C" >&6
15382 cat >conftest.$ac_ext <<_ACEOF
15385 cat confdefs.h >>conftest.$ac_ext
15386 cat >>conftest.$ac_ext <<_ACEOF
15387 /* end confdefs.h. */
15388 #if defined CRAY && ! defined CRAY2
15395 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15396 $EGREP "webecray" >/dev/null 2>&1; then
15404 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
15405 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
15406 if test $ac_cv_os_cray = yes; then
15407 for ac_func in _getb67 GETB67 getb67; do
15408 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15409 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15410 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15411 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15412 echo $ECHO_N "(cached) $ECHO_C" >&6
15414 cat >conftest.$ac_ext <<_ACEOF
15417 cat confdefs.h >>conftest.$ac_ext
15418 cat >>conftest.$ac_ext <<_ACEOF
15419 /* end confdefs.h. */
15420 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15421 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15422 #define $ac_func innocuous_$ac_func
15424 /* System header to define __stub macros and hopefully few prototypes,
15425 which can conflict with char $ac_func (); below.
15426 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15427 <limits.h> exists even on freestanding compilers. */
15430 # include <limits.h>
15432 # include <assert.h>
15437 /* Override any GCC internal prototype to avoid an error.
15438 Use char because int might match the return type of a GCC
15439 builtin and then its argument prototype would still apply. */
15444 /* The GNU C library defines this for functions which it implements
15445 to always fail with ENOSYS. Some functions are actually named
15446 something starting with __ and the normal name is an alias. */
15447 #if defined __stub_$ac_func || defined __stub___$ac_func
15454 return $ac_func ();
15459 rm -f conftest.$ac_objext conftest$ac_exeext
15460 if { (ac_try="$ac_link"
15461 case "(($ac_try" in
15462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15463 *) ac_try_echo=$ac_try;;
15465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15466 (eval "$ac_link") 2>conftest.er1
15468 grep -v '^
*+' conftest.er1 >conftest.err
15470 cat conftest.err >&5
15471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15472 (exit $ac_status); } && {
15473 test -z "$ac_c_werror_flag" ||
15474 test ! -s conftest.err
15475 } && test -s conftest$ac_exeext &&
15476 $as_test_x conftest$ac_exeext; then
15477 eval "$as_ac_var=yes"
15479 echo "$as_me: failed program was:" >&5
15480 sed 's
/^
/|
/' conftest.$ac_ext >&5
15482 eval "$as_ac_var=no"
15485 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15486 conftest$ac_exeext conftest.$ac_ext
15488 ac_res=`eval echo '${'$as_ac_var'}'`
15489 { echo "$as_me:$LINENO: result: $ac_res" >&5
15490 echo "${ECHO_T}$ac_res" >&6; }
15491 if test `eval echo '${'$as_ac_var'}'` = yes; then
15493 cat >>confdefs.h <<_ACEOF
15494 #define CRAY_STACKSEG_END $ac_func
15503 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
15504 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
15505 if test "${ac_cv_c_stack_direction+set}" = set; then
15506 echo $ECHO_N "(cached) $ECHO_C" >&6
15508 if test "$cross_compiling" = yes; then
15509 ac_cv_c_stack_direction=0
15511 cat >conftest.$ac_ext <<_ACEOF
15514 cat confdefs.h >>conftest.$ac_ext
15515 cat >>conftest.$ac_ext <<_ACEOF
15516 /* end confdefs.h. */
15517 $ac_includes_default
15519 find_stack_direction ()
15521 static char *addr = 0;
15526 return find_stack_direction ();
15529 return (&dummy > addr) ? 1 : -1;
15535 return find_stack_direction () < 0;
15538 rm -f conftest$ac_exeext
15539 if { (ac_try="$ac_link"
15540 case "(($ac_try" in
15541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15542 *) ac_try_echo=$ac_try;;
15544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15545 (eval "$ac_link") 2>&5
15547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15548 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
15549 { (case "(($ac_try" in
15550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15551 *) ac_try_echo=$ac_try;;
15553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15554 (eval "$ac_try") 2>&5
15556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15557 (exit $ac_status); }; }; then
15558 ac_cv_c_stack_direction=1
15560 echo "$as_me: program exited with status $ac_status" >&5
15561 echo "$as_me: failed program was:" >&5
15562 sed 's
/^
/|
/' conftest.$ac_ext >&5
15564 ( exit $ac_status )
15565 ac_cv_c_stack_direction=-1
15567 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15572 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
15573 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
15575 cat >>confdefs.h <<_ACEOF
15576 #define STACK_DIRECTION $ac_cv_c_stack_direction
15583 if test x"$ac_cv_func_alloca_works" != xyes; then
15584 { { echo "$as_me:$LINENO: error: a system implementation of alloca is required " >&5
15585 echo "$as_me: error: a system implementation of alloca is required " >&2;}
15586 { (exit 1); exit 1; }; }
15589 # fmod, logb, and frexp are found in -lm on most systems.
15590 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
15592 { echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
15593 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6; }
15594 if test "${ac_cv_lib_m_sqrt+set}" = set; then
15595 echo $ECHO_N "(cached) $ECHO_C" >&6
15597 ac_check_lib_save_LIBS=$LIBS
15599 cat >conftest.$ac_ext <<_ACEOF
15602 cat confdefs.h >>conftest.$ac_ext
15603 cat >>conftest.$ac_ext <<_ACEOF
15604 /* end confdefs.h. */
15606 /* Override any GCC internal prototype to avoid an error.
15607 Use char because int might match the return type of a GCC
15608 builtin and then its argument prototype would still apply. */
15621 rm -f conftest.$ac_objext conftest$ac_exeext
15622 if { (ac_try="$ac_link"
15623 case "(($ac_try" in
15624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15625 *) ac_try_echo=$ac_try;;
15627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15628 (eval "$ac_link") 2>conftest.er1
15630 grep -v '^
*+' conftest.er1 >conftest.err
15632 cat conftest.err >&5
15633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15634 (exit $ac_status); } && {
15635 test -z "$ac_c_werror_flag" ||
15636 test ! -s conftest.err
15637 } && test -s conftest$ac_exeext &&
15638 $as_test_x conftest$ac_exeext; then
15639 ac_cv_lib_m_sqrt=yes
15641 echo "$as_me: failed program was:" >&5
15642 sed 's
/^
/|
/' conftest.$ac_ext >&5
15644 ac_cv_lib_m_sqrt=no
15647 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15648 conftest$ac_exeext conftest.$ac_ext
15649 LIBS=$ac_check_lib_save_LIBS
15651 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
15652 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6; }
15653 if test $ac_cv_lib_m_sqrt = yes; then
15654 cat >>confdefs.h <<_ACEOF
15655 #define HAVE_LIBM 1
15663 # Check for mail-locking functions in a "mail" library. Probably this should
15664 # have the same check as for liblockfile below.
15666 { echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
15667 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6; }
15668 if test "${ac_cv_lib_mail_maillock+set}" = set; then
15669 echo $ECHO_N "(cached) $ECHO_C" >&6
15671 ac_check_lib_save_LIBS=$LIBS
15672 LIBS="-lmail $LIBS"
15673 cat >conftest.$ac_ext <<_ACEOF
15676 cat confdefs.h >>conftest.$ac_ext
15677 cat >>conftest.$ac_ext <<_ACEOF
15678 /* end confdefs.h. */
15680 /* Override any GCC internal prototype to avoid an error.
15681 Use char because int might match the return type of a GCC
15682 builtin and then its argument prototype would still apply. */
15690 return maillock ();
15695 rm -f conftest.$ac_objext conftest$ac_exeext
15696 if { (ac_try="$ac_link"
15697 case "(($ac_try" in
15698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15699 *) ac_try_echo=$ac_try;;
15701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15702 (eval "$ac_link") 2>conftest.er1
15704 grep -v '^
*+' conftest.er1 >conftest.err
15706 cat conftest.err >&5
15707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15708 (exit $ac_status); } && {
15709 test -z "$ac_c_werror_flag" ||
15710 test ! -s conftest.err
15711 } && test -s conftest$ac_exeext &&
15712 $as_test_x conftest$ac_exeext; then
15713 ac_cv_lib_mail_maillock=yes
15715 echo "$as_me: failed program was:" >&5
15716 sed 's
/^
/|
/' conftest.$ac_ext >&5
15718 ac_cv_lib_mail_maillock=no
15721 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15722 conftest$ac_exeext conftest.$ac_ext
15723 LIBS=$ac_check_lib_save_LIBS
15725 { echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
15726 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6; }
15727 if test $ac_cv_lib_mail_maillock = yes; then
15728 cat >>confdefs.h <<_ACEOF
15729 #define HAVE_LIBMAIL 1
15732 LIBS="-lmail $LIBS"
15737 { echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
15738 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6; }
15739 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
15740 echo $ECHO_N "(cached) $ECHO_C" >&6
15742 ac_check_lib_save_LIBS=$LIBS
15743 LIBS="-llockfile $LIBS"
15744 cat >conftest.$ac_ext <<_ACEOF
15747 cat confdefs.h >>conftest.$ac_ext
15748 cat >>conftest.$ac_ext <<_ACEOF
15749 /* end confdefs.h. */
15751 /* Override any GCC internal prototype to avoid an error.
15752 Use char because int might match the return type of a GCC
15753 builtin and then its argument prototype would still apply. */
15761 return maillock ();
15766 rm -f conftest.$ac_objext conftest$ac_exeext
15767 if { (ac_try="$ac_link"
15768 case "(($ac_try" in
15769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15770 *) ac_try_echo=$ac_try;;
15772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15773 (eval "$ac_link") 2>conftest.er1
15775 grep -v '^
*+' conftest.er1 >conftest.err
15777 cat conftest.err >&5
15778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15779 (exit $ac_status); } && {
15780 test -z "$ac_c_werror_flag" ||
15781 test ! -s conftest.err
15782 } && test -s conftest$ac_exeext &&
15783 $as_test_x conftest$ac_exeext; then
15784 ac_cv_lib_lockfile_maillock=yes
15786 echo "$as_me: failed program was:" >&5
15787 sed 's
/^
/|
/' conftest.$ac_ext >&5
15789 ac_cv_lib_lockfile_maillock=no
15792 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15793 conftest$ac_exeext conftest.$ac_ext
15794 LIBS=$ac_check_lib_save_LIBS
15796 { echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
15797 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6; }
15798 if test $ac_cv_lib_lockfile_maillock = yes; then
15799 cat >>confdefs.h <<_ACEOF
15800 #define HAVE_LIBLOCKFILE 1
15803 LIBS="-llockfile $LIBS"
15807 # If we have the shared liblockfile, assume we must use it for mail
15808 # locking (e.g. Debian). If we couldn't link against liblockfile
15809 # (no liblockfile.a installed), ensure that we don't need to.
15810 if test "$ac_cv_lib_lockfile_maillock" = no
; then
15811 # Extract the first word of "liblockfile.so", so it can be a program name with args.
15812 set dummy liblockfile.so
; ac_word
=$2
15813 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15814 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15815 if test "${ac_cv_prog_liblockfile+set}" = set; then
15816 echo $ECHO_N "(cached) $ECHO_C" >&6
15818 if test -n "$liblockfile"; then
15819 ac_cv_prog_liblockfile
="$liblockfile" # Let the user override the test.
15821 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
15822 as_dummy
="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
15823 for as_dir
in $as_dummy
15826 test -z "$as_dir" && as_dir
=.
15827 for ac_exec_ext
in '' $ac_executable_extensions; do
15828 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15829 ac_cv_prog_liblockfile
="yes"
15830 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15837 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile
="no"
15840 liblockfile
=$ac_cv_prog_liblockfile
15841 if test -n "$liblockfile"; then
15842 { echo "$as_me:$LINENO: result: $liblockfile" >&5
15843 echo "${ECHO_T}$liblockfile" >&6; }
15845 { echo "$as_me:$LINENO: result: no" >&5
15846 echo "${ECHO_T}no" >&6; }
15850 if test $ac_cv_prog_liblockfile = yes; then
15851 { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
15852 This probably means that movemail could lose mail.
15853 There may be a \`development' package to install containing liblockfile." >&5
15854 echo "$as_me: error: Shared liblockfile found but can't link against it.
15855 This probably means that movemail could lose mail.
15856 There may be a \`development' package to install containing liblockfile." >&2;}
15857 { (exit 1); exit 1; }; }
15862 for ac_func
in touchlock
15864 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15865 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15866 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15867 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15868 echo $ECHO_N "(cached) $ECHO_C" >&6
15870 cat >conftest.
$ac_ext <<_ACEOF
15873 cat confdefs.h
>>conftest.
$ac_ext
15874 cat >>conftest.
$ac_ext <<_ACEOF
15875 /* end confdefs.h. */
15876 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15877 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15878 #define $ac_func innocuous_$ac_func
15880 /* System header to define __stub macros and hopefully few prototypes,
15881 which can conflict with char $ac_func (); below.
15882 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15883 <limits.h> exists even on freestanding compilers. */
15886 # include <limits.h>
15888 # include <assert.h>
15893 /* Override any GCC internal prototype to avoid an error.
15894 Use char because int might match the return type of a GCC
15895 builtin and then its argument prototype would still apply. */
15900 /* The GNU C library defines this for functions which it implements
15901 to always fail with ENOSYS. Some functions are actually named
15902 something starting with __ and the normal name is an alias. */
15903 #if defined __stub_$ac_func || defined __stub___$ac_func
15910 return $ac_func ();
15915 rm -f conftest.
$ac_objext conftest
$ac_exeext
15916 if { (ac_try
="$ac_link"
15917 case "(($ac_try" in
15918 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15919 *) ac_try_echo=$ac_try;;
15921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15922 (eval "$ac_link") 2>conftest.er1
15924 grep -v '^ *+' conftest.er1 >conftest.err
15926 cat conftest.err >&5
15927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15928 (exit $ac_status); } && {
15929 test -z "$ac_c_werror_flag" ||
15930 test ! -s conftest.err
15931 } && test -s conftest$ac_exeext &&
15932 $as_test_x conftest$ac_exeext; then
15933 eval "$as_ac_var=yes"
15935 echo "$as_me: failed program was:" >&5
15936 sed 's/^/| /' conftest.$ac_ext >&5
15938 eval "$as_ac_var=no"
15941 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15942 conftest$ac_exeext conftest.$ac_ext
15944 ac_res=`eval echo '${'$as_ac_var'}'`
15945 { echo "$as_me:$LINENO: result: $ac_res" >&5
15946 echo "${ECHO_T}$ac_res" >&6; }
15947 if test `eval echo '${'$as_ac_var'}'` = yes; then
15948 cat >>confdefs.h <<_ACEOF
15949 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
15956 for ac_header in maillock.h
15958 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
15959 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15960 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15961 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15962 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15963 echo $ECHO_N "(cached) $ECHO_C" >&6
15965 ac_res=`eval echo '${'$as_ac_Header'}'`
15966 { echo "$as_me:$LINENO: result: $ac_res" >&5
15967 echo "${ECHO_T}$ac_res" >&6; }
15969 # Is the header compilable?
15970 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15971 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15972 cat >conftest.$ac_ext <<_ACEOF
15975 cat confdefs.h >>conftest.$ac_ext
15976 cat >>conftest.$ac_ext <<_ACEOF
15977 /* end confdefs.h. */
15978 $ac_includes_default
15979 #include <$ac_header>
15981 rm -f conftest.$ac_objext
15982 if { (ac_try="$ac_compile"
15983 case "(($ac_try" in
15984 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15985 *) ac_try_echo
=$ac_try;;
15987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15988 (eval "$ac_compile") 2>conftest.er1
15990 grep -v '^ *+' conftest.er1
>conftest.err
15992 cat conftest.err
>&5
15993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15994 (exit $ac_status); } && {
15995 test -z "$ac_c_werror_flag" ||
15996 test ! -s conftest.err
15997 } && test -s conftest.
$ac_objext; then
15998 ac_header_compiler
=yes
16000 echo "$as_me: failed program was:" >&5
16001 sed 's/^/| /' conftest.
$ac_ext >&5
16003 ac_header_compiler
=no
16006 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16007 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16008 echo "${ECHO_T}$ac_header_compiler" >&6; }
16010 # Is the header present?
16011 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16012 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16013 cat >conftest.
$ac_ext <<_ACEOF
16016 cat confdefs.h
>>conftest.
$ac_ext
16017 cat >>conftest.
$ac_ext <<_ACEOF
16018 /* end confdefs.h. */
16019 #include <$ac_header>
16021 if { (ac_try
="$ac_cpp conftest.$ac_ext"
16022 case "(($ac_try" in
16023 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16024 *) ac_try_echo=$ac_try;;
16026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16027 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16029 grep -v '^ *+' conftest.er1 >conftest.err
16031 cat conftest.err >&5
16032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16033 (exit $ac_status); } >/dev/null && {
16034 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16035 test ! -s conftest.err
16037 ac_header_preproc=yes
16039 echo "$as_me: failed program was:" >&5
16040 sed 's/^/| /' conftest.$ac_ext >&5
16042 ac_header_preproc=no
16045 rm -f conftest.err conftest.$ac_ext
16046 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16047 echo "${ECHO_T}$ac_header_preproc" >&6; }
16049 # So? What about this header?
16050 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16052 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16053 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16054 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16055 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16056 ac_header_preproc=yes
16059 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16060 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16061 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16062 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16063 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16064 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16065 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16066 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16067 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16068 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16069 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16070 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16074 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16075 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16076 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16077 echo $ECHO_N "(cached) $ECHO_C" >&6
16079 eval "$as_ac_Header=\$ac_header_preproc"
16081 ac_res=`eval echo '${'$as_ac_Header'}'`
16082 { echo "$as_me:$LINENO: result: $ac_res" >&5
16083 echo "${ECHO_T}$ac_res" >&6; }
16086 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16087 cat >>confdefs.h <<_ACEOF
16088 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
16167 for ac_func in gethostname getdomainname dup2 \
16168 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
16169 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime setsid \
16170 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
16171 utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \
16172 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
16173 sendto recvfrom getsockopt setsockopt getsockname getpeername \
16174 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
16175 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign \
16176 cfmakeraw cfsetspeed
16178 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
16179 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16180 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16181 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16182 echo $ECHO_N "(cached) $ECHO_C" >&6
16184 cat >conftest.$ac_ext <<_ACEOF
16187 cat confdefs.h >>conftest.$ac_ext
16188 cat >>conftest.$ac_ext <<_ACEOF
16189 /* end confdefs.h. */
16190 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16191 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16192 #define $ac_func innocuous_$ac_func
16194 /* System header to define __stub macros and hopefully few prototypes,
16195 which can conflict with char $ac_func (); below.
16196 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16197 <limits.h> exists even on freestanding compilers. */
16200 # include <limits.h>
16202 # include <assert.h>
16207 /* Override any GCC internal prototype to avoid an error.
16208 Use char because int might match the return type of a GCC
16209 builtin and then its argument prototype would still apply. */
16214 /* The GNU C library defines this for functions which it implements
16215 to always fail with ENOSYS. Some functions are actually named
16216 something starting with __ and the normal name is an alias. */
16217 #if defined __stub_$ac_func || defined __stub___$ac_func
16224 return $ac_func ();
16229 rm -f conftest.$ac_objext conftest$ac_exeext
16230 if { (ac_try="$ac_link"
16231 case "(($ac_try" in
16232 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16233 *) ac_try_echo
=$ac_try;;
16235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16236 (eval "$ac_link") 2>conftest.er1
16238 grep -v '^ *+' conftest.er1
>conftest.err
16240 cat conftest.err
>&5
16241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16242 (exit $ac_status); } && {
16243 test -z "$ac_c_werror_flag" ||
16244 test ! -s conftest.err
16245 } && test -s conftest
$ac_exeext &&
16246 $as_test_x conftest
$ac_exeext; then
16247 eval "$as_ac_var=yes"
16249 echo "$as_me: failed program was:" >&5
16250 sed 's/^/| /' conftest.
$ac_ext >&5
16252 eval "$as_ac_var=no"
16255 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
16256 conftest
$ac_exeext conftest.
$ac_ext
16258 ac_res
=`eval echo '${'$as_ac_var'}'`
16259 { echo "$as_me:$LINENO: result: $ac_res" >&5
16260 echo "${ECHO_T}$ac_res" >&6; }
16261 if test `eval echo '${'$as_ac_var'}'` = yes; then
16262 cat >>confdefs.h
<<_ACEOF
16263 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16271 for ac_header
in sys
/un.h
16273 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16274 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16275 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16276 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16277 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16278 echo $ECHO_N "(cached) $ECHO_C" >&6
16280 ac_res
=`eval echo '${'$as_ac_Header'}'`
16281 { echo "$as_me:$LINENO: result: $ac_res" >&5
16282 echo "${ECHO_T}$ac_res" >&6; }
16284 # Is the header compilable?
16285 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16286 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16287 cat >conftest.
$ac_ext <<_ACEOF
16290 cat confdefs.h
>>conftest.
$ac_ext
16291 cat >>conftest.
$ac_ext <<_ACEOF
16292 /* end confdefs.h. */
16293 $ac_includes_default
16294 #include <$ac_header>
16296 rm -f conftest.
$ac_objext
16297 if { (ac_try
="$ac_compile"
16298 case "(($ac_try" in
16299 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16300 *) ac_try_echo=$ac_try;;
16302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16303 (eval "$ac_compile") 2>conftest.er1
16305 grep -v '^ *+' conftest.er1 >conftest.err
16307 cat conftest.err >&5
16308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16309 (exit $ac_status); } && {
16310 test -z "$ac_c_werror_flag" ||
16311 test ! -s conftest.err
16312 } && test -s conftest.$ac_objext; then
16313 ac_header_compiler=yes
16315 echo "$as_me: failed program was:" >&5
16316 sed 's/^/| /' conftest.$ac_ext >&5
16318 ac_header_compiler=no
16321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16322 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16323 echo "${ECHO_T}$ac_header_compiler" >&6; }
16325 # Is the header present?
16326 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16327 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16328 cat >conftest.$ac_ext <<_ACEOF
16331 cat confdefs.h >>conftest.$ac_ext
16332 cat >>conftest.$ac_ext <<_ACEOF
16333 /* end confdefs.h. */
16334 #include <$ac_header>
16336 if { (ac_try="$ac_cpp conftest.$ac_ext"
16337 case "(($ac_try" in
16338 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16339 *) ac_try_echo
=$ac_try;;
16341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16342 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16344 grep -v '^ *+' conftest.er1
>conftest.err
16346 cat conftest.err
>&5
16347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16348 (exit $ac_status); } >/dev
/null
&& {
16349 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16350 test ! -s conftest.err
16352 ac_header_preproc
=yes
16354 echo "$as_me: failed program was:" >&5
16355 sed 's/^/| /' conftest.
$ac_ext >&5
16357 ac_header_preproc
=no
16360 rm -f conftest.err conftest.
$ac_ext
16361 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16362 echo "${ECHO_T}$ac_header_preproc" >&6; }
16364 # So? What about this header?
16365 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16367 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16368 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16369 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16370 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16371 ac_header_preproc
=yes
16374 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16375 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16376 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16377 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16378 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16379 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16380 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16381 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16382 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16383 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16384 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16385 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16389 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16390 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16391 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16392 echo $ECHO_N "(cached) $ECHO_C" >&6
16394 eval "$as_ac_Header=\$ac_header_preproc"
16396 ac_res
=`eval echo '${'$as_ac_Header'}'`
16397 { echo "$as_me:$LINENO: result: $ac_res" >&5
16398 echo "${ECHO_T}$ac_res" >&6; }
16401 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16402 cat >>confdefs.h
<<_ACEOF
16403 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16415 for ac_header
in $ac_header_list
16417 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16418 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16419 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16420 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16421 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16422 echo $ECHO_N "(cached) $ECHO_C" >&6
16424 ac_res
=`eval echo '${'$as_ac_Header'}'`
16425 { echo "$as_me:$LINENO: result: $ac_res" >&5
16426 echo "${ECHO_T}$ac_res" >&6; }
16428 # Is the header compilable?
16429 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16430 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16431 cat >conftest.
$ac_ext <<_ACEOF
16434 cat confdefs.h
>>conftest.
$ac_ext
16435 cat >>conftest.
$ac_ext <<_ACEOF
16436 /* end confdefs.h. */
16437 $ac_includes_default
16438 #include <$ac_header>
16440 rm -f conftest.
$ac_objext
16441 if { (ac_try
="$ac_compile"
16442 case "(($ac_try" in
16443 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16444 *) ac_try_echo=$ac_try;;
16446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16447 (eval "$ac_compile") 2>conftest.er1
16449 grep -v '^ *+' conftest.er1 >conftest.err
16451 cat conftest.err >&5
16452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16453 (exit $ac_status); } && {
16454 test -z "$ac_c_werror_flag" ||
16455 test ! -s conftest.err
16456 } && test -s conftest.$ac_objext; then
16457 ac_header_compiler=yes
16459 echo "$as_me: failed program was:" >&5
16460 sed 's/^/| /' conftest.$ac_ext >&5
16462 ac_header_compiler=no
16465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16466 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16467 echo "${ECHO_T}$ac_header_compiler" >&6; }
16469 # Is the header present?
16470 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16471 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16472 cat >conftest.$ac_ext <<_ACEOF
16475 cat confdefs.h >>conftest.$ac_ext
16476 cat >>conftest.$ac_ext <<_ACEOF
16477 /* end confdefs.h. */
16478 #include <$ac_header>
16480 if { (ac_try="$ac_cpp conftest.$ac_ext"
16481 case "(($ac_try" in
16482 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16483 *) ac_try_echo
=$ac_try;;
16485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16486 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16488 grep -v '^ *+' conftest.er1
>conftest.err
16490 cat conftest.err
>&5
16491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16492 (exit $ac_status); } >/dev
/null
&& {
16493 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16494 test ! -s conftest.err
16496 ac_header_preproc
=yes
16498 echo "$as_me: failed program was:" >&5
16499 sed 's/^/| /' conftest.
$ac_ext >&5
16501 ac_header_preproc
=no
16504 rm -f conftest.err conftest.
$ac_ext
16505 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16506 echo "${ECHO_T}$ac_header_preproc" >&6; }
16508 # So? What about this header?
16509 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16511 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16512 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16513 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16514 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16515 ac_header_preproc
=yes
16518 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16519 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16520 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16521 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16522 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16523 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16524 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16525 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16526 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16527 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16528 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16529 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16533 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16534 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16535 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16536 echo $ECHO_N "(cached) $ECHO_C" >&6
16538 eval "$as_ac_Header=\$ac_header_preproc"
16540 ac_res
=`eval echo '${'$as_ac_Header'}'`
16541 { echo "$as_me:$LINENO: result: $ac_res" >&5
16542 echo "${ECHO_T}$ac_res" >&6; }
16545 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16546 cat >>confdefs.h
<<_ACEOF
16547 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16562 for ac_func
in $ac_func_list
16564 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16565 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16566 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16567 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16568 echo $ECHO_N "(cached) $ECHO_C" >&6
16570 cat >conftest.
$ac_ext <<_ACEOF
16573 cat confdefs.h
>>conftest.
$ac_ext
16574 cat >>conftest.
$ac_ext <<_ACEOF
16575 /* end confdefs.h. */
16576 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16577 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16578 #define $ac_func innocuous_$ac_func
16580 /* System header to define __stub macros and hopefully few prototypes,
16581 which can conflict with char $ac_func (); below.
16582 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16583 <limits.h> exists even on freestanding compilers. */
16586 # include <limits.h>
16588 # include <assert.h>
16593 /* Override any GCC internal prototype to avoid an error.
16594 Use char because int might match the return type of a GCC
16595 builtin and then its argument prototype would still apply. */
16600 /* The GNU C library defines this for functions which it implements
16601 to always fail with ENOSYS. Some functions are actually named
16602 something starting with __ and the normal name is an alias. */
16603 #if defined __stub_$ac_func || defined __stub___$ac_func
16610 return $ac_func ();
16615 rm -f conftest.
$ac_objext conftest
$ac_exeext
16616 if { (ac_try
="$ac_link"
16617 case "(($ac_try" in
16618 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16619 *) ac_try_echo=$ac_try;;
16621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16622 (eval "$ac_link") 2>conftest.er1
16624 grep -v '^ *+' conftest.er1 >conftest.err
16626 cat conftest.err >&5
16627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16628 (exit $ac_status); } && {
16629 test -z "$ac_c_werror_flag" ||
16630 test ! -s conftest.err
16631 } && test -s conftest$ac_exeext &&
16632 $as_test_x conftest$ac_exeext; then
16633 eval "$as_ac_var=yes"
16635 echo "$as_me: failed program was:" >&5
16636 sed 's/^/| /' conftest.$ac_ext >&5
16638 eval "$as_ac_var=no"
16641 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16642 conftest$ac_exeext conftest.$ac_ext
16644 ac_res=`eval echo '${'$as_ac_var'}'`
16645 { echo "$as_me:$LINENO: result: $ac_res" >&5
16646 echo "${ECHO_T}$ac_res" >&6; }
16647 if test `eval echo '${'$as_ac_var'}'` = yes; then
16648 cat >>confdefs.h <<_ACEOF
16649 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
16671 { echo "$as_me:$LINENO: checking for working mktime" >&5
16672 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6; }
16673 if test "${ac_cv_func_working_mktime+set}" = set; then
16674 echo $ECHO_N "(cached) $ECHO_C" >&6
16676 if test "$cross_compiling" = yes; then
16677 ac_cv_func_working_mktime=no
16679 cat >conftest.$ac_ext <<_ACEOF
16682 cat confdefs.h >>conftest.$ac_ext
16683 cat >>conftest.$ac_ext <<_ACEOF
16684 /* end confdefs.h. */
16685 /* Test program from Paul Eggert and Tony Leneis. */
16686 #ifdef TIME_WITH_SYS_TIME
16687 # include <sys/time.h>
16690 # ifdef HAVE_SYS_TIME_H
16691 # include <sys/time.h>
16697 #include <limits.h>
16698 #include <stdlib.h>
16700 #ifdef HAVE_UNISTD_H
16701 # include <unistd.h>
16705 # define alarm(X) /* empty */
16708 /* Work around redefinition to rpl_putenv by other config tests. */
16711 static time_t time_t_max;
16712 static time_t time_t_min;
16714 /* Values we'll use to set the TZ environment variable. */
16715 static char *tz_strings[] = {
16716 (char *) 0, "TZ=GMT0", "TZ=JST-9",
16717 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
16719 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
16721 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
16722 Based on a problem report from Andreas Jaeger. */
16724 spring_forward_gap ()
16726 /* glibc (up to about 1998-10-07) failed this test. */
16729 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
16730 instead of "TZ=America/Vancouver" in order to detect the bug even
16731 on systems that don't support the Olson extension, or don't have the
16732 full zoneinfo tables installed. */
16733 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
16742 return mktime (&tm) != (time_t) -1;
16750 return ! (lt = localtime (&now)) || mktime (lt) == now;
16757 return (mktime_test1 (now)
16758 && mktime_test1 ((time_t) (time_t_max - now))
16759 && mktime_test1 ((time_t) (time_t_min + now)));
16765 /* Based on code from Ariel Faigon. */
16775 return tm.tm_mon == 2 && tm.tm_mday == 31;
16784 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
16785 now = mktime (&tm);
16786 if (now != (time_t) -1)
16788 struct tm *lt = localtime (&now);
16790 && lt->tm_year == tm.tm_year
16791 && lt->tm_mon == tm.tm_mon
16792 && lt->tm_mday == tm.tm_mday
16793 && lt->tm_hour == tm.tm_hour
16794 && lt->tm_min == tm.tm_min
16795 && lt->tm_sec == tm.tm_sec
16796 && lt->tm_yday == tm.tm_yday
16797 && lt->tm_wday == tm.tm_wday
16798 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
16799 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
16808 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
16809 ignoring leap seconds. */
16810 unsigned long int answer = 2527315200UL;
16814 tm.tm_year = 2050 - 1900;
16817 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
16820 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
16821 instead of "TZ=America/Vancouver" in order to detect the bug even
16822 on systems that don't support the Olson extension, or don't have the
16823 full zoneinfo tables installed. */
16824 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
16828 /* Check that the result is either a failure, or close enough
16829 to the correct answer that we can assume the discrepancy is
16830 due to leap seconds. */
16831 return (t == (time_t) -1
16832 || (0 < t && answer - 120 <= t && t <= answer + 120));
16841 /* This test makes some buggy mktime implementations loop.
16842 Give up after 60 seconds; a mktime slower than that
16843 isn't worth using anyway. */
16848 t = (time_t_max << 1) + 1;
16849 if (t <= time_t_max)
16853 time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
16855 delta = time_t_max / 997; /* a suitable prime number */
16856 for (i = 0; i < N_STRINGS; i++)
16859 putenv (tz_strings[i]);
16861 for (t = 0; t <= time_t_max - delta; t += delta)
16862 if (! mktime_test (t))
16864 if (! (mktime_test ((time_t) 1)
16865 && mktime_test ((time_t) (60 * 60))
16866 && mktime_test ((time_t) (60 * 60 * 24))))
16869 for (j = 1; ; j <<= 1)
16870 if (! bigtime_test (j))
16872 else if (INT_MAX / 2 < j)
16874 if (! bigtime_test (INT_MAX))
16877 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
16880 rm -f conftest$ac_exeext
16881 if { (ac_try="$ac_link"
16882 case "(($ac_try" in
16883 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16884 *) ac_try_echo
=$ac_try;;
16886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16887 (eval "$ac_link") 2>&5
16889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16890 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
16891 { (case "(($ac_try" in
16892 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16893 *) ac_try_echo=$ac_try;;
16895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16896 (eval "$ac_try") 2>&5
16898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16899 (exit $ac_status); }; }; then
16900 ac_cv_func_working_mktime=yes
16902 echo "$as_me: program exited with status $ac_status" >&5
16903 echo "$as_me: failed program was:" >&5
16904 sed 's/^/| /' conftest.$ac_ext >&5
16906 ( exit $ac_status )
16907 ac_cv_func_working_mktime=no
16909 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16914 { echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
16915 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; }
16916 if test $ac_cv_func_working_mktime = no; then
16917 case " $LIBOBJS " in
16918 *" mktime.$ac_objext "* ) ;;
16919 *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
16925 if test "$ac_cv_func_working_mktime" = no; then
16927 cat >>confdefs.h <<\_ACEOF
16928 #define BROKEN_MKTIME 1
16933 ac_have_func=no # yes means we've found a way to get the load average.
16935 # Make sure getloadavg.c is where it belongs, at configure-time.
16936 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
16937 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
16938 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
16939 { (exit 1); exit 1; }; }
16943 # Check for getloadavg, but be sure not to touch the cache variable.
16944 ({ echo "$as_me:$LINENO: checking for getloadavg" >&5
16945 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6; }
16946 if test "${ac_cv_func_getloadavg+set}" = set; then
16947 echo $ECHO_N "(cached) $ECHO_C" >&6
16949 cat >conftest.$ac_ext <<_ACEOF
16952 cat confdefs.h >>conftest.$ac_ext
16953 cat >>conftest.$ac_ext <<_ACEOF
16954 /* end confdefs.h. */
16955 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
16956 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16957 #define getloadavg innocuous_getloadavg
16959 /* System header to define __stub macros and hopefully few prototypes,
16960 which can conflict with char getloadavg (); below.
16961 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16962 <limits.h> exists even on freestanding compilers. */
16965 # include <limits.h>
16967 # include <assert.h>
16972 /* Override any GCC internal prototype to avoid an error.
16973 Use char because int might match the return type of a GCC
16974 builtin and then its argument prototype would still apply. */
16978 char getloadavg ();
16979 /* The GNU C library defines this for functions which it implements
16980 to always fail with ENOSYS. Some functions are actually named
16981 something starting with __ and the normal name is an alias. */
16982 #if defined __stub_getloadavg || defined __stub___getloadavg
16989 return getloadavg ();
16994 rm -f conftest.$ac_objext conftest$ac_exeext
16995 if { (ac_try="$ac_link"
16996 case "(($ac_try" in
16997 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16998 *) ac_try_echo
=$ac_try;;
17000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17001 (eval "$ac_link") 2>conftest.er1
17003 grep -v '^ *+' conftest.er1
>conftest.err
17005 cat conftest.err
>&5
17006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17007 (exit $ac_status); } && {
17008 test -z "$ac_c_werror_flag" ||
17009 test ! -s conftest.err
17010 } && test -s conftest
$ac_exeext &&
17011 $as_test_x conftest
$ac_exeext; then
17012 ac_cv_func_getloadavg
=yes
17014 echo "$as_me: failed program was:" >&5
17015 sed 's/^/| /' conftest.
$ac_ext >&5
17017 ac_cv_func_getloadavg
=no
17020 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
17021 conftest
$ac_exeext conftest.
$ac_ext
17023 { echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
17024 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6; }
17025 if test $ac_cv_func_getloadavg = yes; then
17030 ) && ac_have_func
=yes
17032 # On HPUX9, an unprivileged user can get load averages through this function.
17034 for ac_func
in pstat_getdynamic
17036 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17037 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17038 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17039 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17040 echo $ECHO_N "(cached) $ECHO_C" >&6
17042 cat >conftest.
$ac_ext <<_ACEOF
17045 cat confdefs.h
>>conftest.
$ac_ext
17046 cat >>conftest.
$ac_ext <<_ACEOF
17047 /* end confdefs.h. */
17048 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17049 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17050 #define $ac_func innocuous_$ac_func
17052 /* System header to define __stub macros and hopefully few prototypes,
17053 which can conflict with char $ac_func (); below.
17054 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17055 <limits.h> exists even on freestanding compilers. */
17058 # include <limits.h>
17060 # include <assert.h>
17065 /* Override any GCC internal prototype to avoid an error.
17066 Use char because int might match the return type of a GCC
17067 builtin and then its argument prototype would still apply. */
17072 /* The GNU C library defines this for functions which it implements
17073 to always fail with ENOSYS. Some functions are actually named
17074 something starting with __ and the normal name is an alias. */
17075 #if defined __stub_$ac_func || defined __stub___$ac_func
17082 return $ac_func ();
17087 rm -f conftest.
$ac_objext conftest
$ac_exeext
17088 if { (ac_try
="$ac_link"
17089 case "(($ac_try" in
17090 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17091 *) ac_try_echo=$ac_try;;
17093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17094 (eval "$ac_link") 2>conftest.er1
17096 grep -v '^ *+' conftest.er1 >conftest.err
17098 cat conftest.err >&5
17099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17100 (exit $ac_status); } && {
17101 test -z "$ac_c_werror_flag" ||
17102 test ! -s conftest.err
17103 } && test -s conftest$ac_exeext &&
17104 $as_test_x conftest$ac_exeext; then
17105 eval "$as_ac_var=yes"
17107 echo "$as_me: failed program was:" >&5
17108 sed 's/^/| /' conftest.$ac_ext >&5
17110 eval "$as_ac_var=no"
17113 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17114 conftest$ac_exeext conftest.$ac_ext
17116 ac_res=`eval echo '${'$as_ac_var'}'`
17117 { echo "$as_me:$LINENO: result: $ac_res" >&5
17118 echo "${ECHO_T}$ac_res" >&6; }
17119 if test `eval echo '${'$as_ac_var'}'` = yes; then
17120 cat >>confdefs.h <<_ACEOF
17121 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
17128 # Solaris has libkstat which does not require root.
17130 { echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
17131 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6; }
17132 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
17133 echo $ECHO_N "(cached) $ECHO_C" >&6
17135 ac_check_lib_save_LIBS=$LIBS
17136 LIBS="-lkstat $LIBS"
17137 cat >conftest.$ac_ext <<_ACEOF
17140 cat confdefs.h >>conftest.$ac_ext
17141 cat >>conftest.$ac_ext <<_ACEOF
17142 /* end confdefs.h. */
17144 /* Override any GCC internal prototype to avoid an error.
17145 Use char because int might match the return type of a GCC
17146 builtin and then its argument prototype would still apply. */
17150 char kstat_open ();
17154 return kstat_open ();
17159 rm -f conftest.$ac_objext conftest$ac_exeext
17160 if { (ac_try="$ac_link"
17161 case "(($ac_try" in
17162 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17163 *) ac_try_echo
=$ac_try;;
17165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17166 (eval "$ac_link") 2>conftest.er1
17168 grep -v '^ *+' conftest.er1
>conftest.err
17170 cat conftest.err
>&5
17171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17172 (exit $ac_status); } && {
17173 test -z "$ac_c_werror_flag" ||
17174 test ! -s conftest.err
17175 } && test -s conftest
$ac_exeext &&
17176 $as_test_x conftest
$ac_exeext; then
17177 ac_cv_lib_kstat_kstat_open
=yes
17179 echo "$as_me: failed program was:" >&5
17180 sed 's/^/| /' conftest.
$ac_ext >&5
17182 ac_cv_lib_kstat_kstat_open
=no
17185 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
17186 conftest
$ac_exeext conftest.
$ac_ext
17187 LIBS
=$ac_check_lib_save_LIBS
17189 { echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
17190 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6; }
17191 if test $ac_cv_lib_kstat_kstat_open = yes; then
17192 cat >>confdefs.h
<<_ACEOF
17193 #define HAVE_LIBKSTAT 1
17196 LIBS
="-lkstat $LIBS"
17200 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func
=yes
17202 # Some systems with -lutil have (and need) -lkvm as well, some do not.
17203 # On Solaris, -lkvm requires nlist from -lelf, so check that first
17204 # to get the right answer into the cache.
17205 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
17206 if test $ac_have_func = no
; then
17207 { echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
17208 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
17209 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
17210 echo $ECHO_N "(cached) $ECHO_C" >&6
17212 ac_check_lib_save_LIBS
=$LIBS
17214 cat >conftest.
$ac_ext <<_ACEOF
17217 cat confdefs.h
>>conftest.
$ac_ext
17218 cat >>conftest.
$ac_ext <<_ACEOF
17219 /* end confdefs.h. */
17221 /* Override any GCC internal prototype to avoid an error.
17222 Use char because int might match the return type of a GCC
17223 builtin and then its argument prototype would still apply. */
17231 return elf_begin ();
17236 rm -f conftest.
$ac_objext conftest
$ac_exeext
17237 if { (ac_try
="$ac_link"
17238 case "(($ac_try" in
17239 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17240 *) ac_try_echo=$ac_try;;
17242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17243 (eval "$ac_link") 2>conftest.er1
17245 grep -v '^ *+' conftest.er1 >conftest.err
17247 cat conftest.err >&5
17248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17249 (exit $ac_status); } && {
17250 test -z "$ac_c_werror_flag" ||
17251 test ! -s conftest.err
17252 } && test -s conftest$ac_exeext &&
17253 $as_test_x conftest$ac_exeext; then
17254 ac_cv_lib_elf_elf_begin=yes
17256 echo "$as_me: failed program was:" >&5
17257 sed 's/^/| /' conftest.$ac_ext >&5
17259 ac_cv_lib_elf_elf_begin=no
17262 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17263 conftest$ac_exeext conftest.$ac_ext
17264 LIBS=$ac_check_lib_save_LIBS
17266 { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
17267 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
17268 if test $ac_cv_lib_elf_elf_begin = yes; then
17273 if test $ac_have_func = no; then
17274 { echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
17275 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6; }
17276 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
17277 echo $ECHO_N "(cached) $ECHO_C" >&6
17279 ac_check_lib_save_LIBS=$LIBS
17281 cat >conftest.$ac_ext <<_ACEOF
17284 cat confdefs.h >>conftest.$ac_ext
17285 cat >>conftest.$ac_ext <<_ACEOF
17286 /* end confdefs.h. */
17288 /* Override any GCC internal prototype to avoid an error.
17289 Use char because int might match the return type of a GCC
17290 builtin and then its argument prototype would still apply. */
17298 return kvm_open ();
17303 rm -f conftest.$ac_objext conftest$ac_exeext
17304 if { (ac_try="$ac_link"
17305 case "(($ac_try" in
17306 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17307 *) ac_try_echo
=$ac_try;;
17309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17310 (eval "$ac_link") 2>conftest.er1
17312 grep -v '^ *+' conftest.er1
>conftest.err
17314 cat conftest.err
>&5
17315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17316 (exit $ac_status); } && {
17317 test -z "$ac_c_werror_flag" ||
17318 test ! -s conftest.err
17319 } && test -s conftest
$ac_exeext &&
17320 $as_test_x conftest
$ac_exeext; then
17321 ac_cv_lib_kvm_kvm_open
=yes
17323 echo "$as_me: failed program was:" >&5
17324 sed 's/^/| /' conftest.
$ac_ext >&5
17326 ac_cv_lib_kvm_kvm_open
=no
17329 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
17330 conftest
$ac_exeext conftest.
$ac_ext
17331 LIBS
=$ac_check_lib_save_LIBS
17333 { echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
17334 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6; }
17335 if test $ac_cv_lib_kvm_kvm_open = yes; then
17339 # Check for the 4.4BSD definition of getloadavg.
17340 { echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
17341 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6; }
17342 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
17343 echo $ECHO_N "(cached) $ECHO_C" >&6
17345 ac_check_lib_save_LIBS
=$LIBS
17346 LIBS
="-lutil $LIBS"
17347 cat >conftest.
$ac_ext <<_ACEOF
17350 cat confdefs.h
>>conftest.
$ac_ext
17351 cat >>conftest.
$ac_ext <<_ACEOF
17352 /* end confdefs.h. */
17354 /* Override any GCC internal prototype to avoid an error.
17355 Use char because int might match the return type of a GCC
17356 builtin and then its argument prototype would still apply. */
17360 char getloadavg ();
17364 return getloadavg ();
17369 rm -f conftest.
$ac_objext conftest
$ac_exeext
17370 if { (ac_try
="$ac_link"
17371 case "(($ac_try" in
17372 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17373 *) ac_try_echo=$ac_try;;
17375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17376 (eval "$ac_link") 2>conftest.er1
17378 grep -v '^ *+' conftest.er1 >conftest.err
17380 cat conftest.err >&5
17381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17382 (exit $ac_status); } && {
17383 test -z "$ac_c_werror_flag" ||
17384 test ! -s conftest.err
17385 } && test -s conftest$ac_exeext &&
17386 $as_test_x conftest$ac_exeext; then
17387 ac_cv_lib_util_getloadavg=yes
17389 echo "$as_me: failed program was:" >&5
17390 sed 's/^/| /' conftest.$ac_ext >&5
17392 ac_cv_lib_util_getloadavg=no
17395 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17396 conftest$ac_exeext conftest.$ac_ext
17397 LIBS=$ac_check_lib_save_LIBS
17399 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
17400 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6; }
17401 if test $ac_cv_lib_util_getloadavg = yes; then
17402 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
17407 if test $ac_have_func = no; then
17408 # There is a commonly available library for RS/6000 AIX.
17409 # Since it is not a standard part of AIX, it might be installed locally.
17410 ac_getloadavg_LIBS=$LIBS
17411 LIBS="-L/usr/local/lib $LIBS"
17412 { echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
17413 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6; }
17414 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
17415 echo $ECHO_N "(cached) $ECHO_C" >&6
17417 ac_check_lib_save_LIBS=$LIBS
17418 LIBS="-lgetloadavg $LIBS"
17419 cat >conftest.$ac_ext <<_ACEOF
17422 cat confdefs.h >>conftest.$ac_ext
17423 cat >>conftest.$ac_ext <<_ACEOF
17424 /* end confdefs.h. */
17426 /* Override any GCC internal prototype to avoid an error.
17427 Use char because int might match the return type of a GCC
17428 builtin and then its argument prototype would still apply. */
17432 char getloadavg ();
17436 return getloadavg ();
17441 rm -f conftest.$ac_objext conftest$ac_exeext
17442 if { (ac_try="$ac_link"
17443 case "(($ac_try" in
17444 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17445 *) ac_try_echo
=$ac_try;;
17447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17448 (eval "$ac_link") 2>conftest.er1
17450 grep -v '^ *+' conftest.er1
>conftest.err
17452 cat conftest.err
>&5
17453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17454 (exit $ac_status); } && {
17455 test -z "$ac_c_werror_flag" ||
17456 test ! -s conftest.err
17457 } && test -s conftest
$ac_exeext &&
17458 $as_test_x conftest
$ac_exeext; then
17459 ac_cv_lib_getloadavg_getloadavg
=yes
17461 echo "$as_me: failed program was:" >&5
17462 sed 's/^/| /' conftest.
$ac_ext >&5
17464 ac_cv_lib_getloadavg_getloadavg
=no
17467 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
17468 conftest
$ac_exeext conftest.
$ac_ext
17469 LIBS
=$ac_check_lib_save_LIBS
17471 { echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
17472 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6; }
17473 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
17474 LIBS
="-lgetloadavg $LIBS"
17476 LIBS
=$ac_getloadavg_LIBS
17481 # Make sure it is really in the library, if we think we found it,
17482 # otherwise set up the replacement function.
17484 for ac_func
in getloadavg
17486 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17487 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17488 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17489 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17490 echo $ECHO_N "(cached) $ECHO_C" >&6
17492 cat >conftest.
$ac_ext <<_ACEOF
17495 cat confdefs.h
>>conftest.
$ac_ext
17496 cat >>conftest.
$ac_ext <<_ACEOF
17497 /* end confdefs.h. */
17498 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17499 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17500 #define $ac_func innocuous_$ac_func
17502 /* System header to define __stub macros and hopefully few prototypes,
17503 which can conflict with char $ac_func (); below.
17504 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17505 <limits.h> exists even on freestanding compilers. */
17508 # include <limits.h>
17510 # include <assert.h>
17515 /* Override any GCC internal prototype to avoid an error.
17516 Use char because int might match the return type of a GCC
17517 builtin and then its argument prototype would still apply. */
17522 /* The GNU C library defines this for functions which it implements
17523 to always fail with ENOSYS. Some functions are actually named
17524 something starting with __ and the normal name is an alias. */
17525 #if defined __stub_$ac_func || defined __stub___$ac_func
17532 return $ac_func ();
17537 rm -f conftest.
$ac_objext conftest
$ac_exeext
17538 if { (ac_try
="$ac_link"
17539 case "(($ac_try" in
17540 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17541 *) ac_try_echo=$ac_try;;
17543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17544 (eval "$ac_link") 2>conftest.er1
17546 grep -v '^ *+' conftest.er1 >conftest.err
17548 cat conftest.err >&5
17549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17550 (exit $ac_status); } && {
17551 test -z "$ac_c_werror_flag" ||
17552 test ! -s conftest.err
17553 } && test -s conftest$ac_exeext &&
17554 $as_test_x conftest$ac_exeext; then
17555 eval "$as_ac_var=yes"
17557 echo "$as_me: failed program was:" >&5
17558 sed 's/^/| /' conftest.$ac_ext >&5
17560 eval "$as_ac_var=no"
17563 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17564 conftest$ac_exeext conftest.$ac_ext
17566 ac_res=`eval echo '${'$as_ac_var'}'`
17567 { echo "$as_me:$LINENO: result: $ac_res" >&5
17568 echo "${ECHO_T}$ac_res" >&6; }
17569 if test `eval echo '${'$as_ac_var'}'` = yes; then
17570 cat >>confdefs.h <<_ACEOF
17571 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
17575 case " $LIBOBJS " in
17576 *" getloadavg.$ac_objext "* ) ;;
17577 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
17582 cat >>confdefs.h <<\_ACEOF
17583 #define C_GETLOADAVG 1
17586 # Figure out what our getloadavg.c needs.
17588 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17589 { echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
17590 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6; }
17591 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17592 echo $ECHO_N "(cached) $ECHO_C" >&6
17594 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
17595 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
17597 # Is the header compilable?
17598 { echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
17599 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6; }
17600 cat >conftest.$ac_ext <<_ACEOF
17603 cat confdefs.h >>conftest.$ac_ext
17604 cat >>conftest.$ac_ext <<_ACEOF
17605 /* end confdefs.h. */
17606 $ac_includes_default
17607 #include <sys/dg_sys_info.h>
17609 rm -f conftest.$ac_objext
17610 if { (ac_try="$ac_compile"
17611 case "(($ac_try" in
17612 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17613 *) ac_try_echo
=$ac_try;;
17615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17616 (eval "$ac_compile") 2>conftest.er1
17618 grep -v '^ *+' conftest.er1
>conftest.err
17620 cat conftest.err
>&5
17621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17622 (exit $ac_status); } && {
17623 test -z "$ac_c_werror_flag" ||
17624 test ! -s conftest.err
17625 } && test -s conftest.
$ac_objext; then
17626 ac_header_compiler
=yes
17628 echo "$as_me: failed program was:" >&5
17629 sed 's/^/| /' conftest.
$ac_ext >&5
17631 ac_header_compiler
=no
17634 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17635 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17636 echo "${ECHO_T}$ac_header_compiler" >&6; }
17638 # Is the header present?
17639 { echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
17640 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6; }
17641 cat >conftest.
$ac_ext <<_ACEOF
17644 cat confdefs.h
>>conftest.
$ac_ext
17645 cat >>conftest.
$ac_ext <<_ACEOF
17646 /* end confdefs.h. */
17647 #include <sys/dg_sys_info.h>
17649 if { (ac_try
="$ac_cpp conftest.$ac_ext"
17650 case "(($ac_try" in
17651 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17652 *) ac_try_echo=$ac_try;;
17654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17655 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17657 grep -v '^ *+' conftest.er1 >conftest.err
17659 cat conftest.err >&5
17660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17661 (exit $ac_status); } >/dev/null && {
17662 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17663 test ! -s conftest.err
17665 ac_header_preproc=yes
17667 echo "$as_me: failed program was:" >&5
17668 sed 's/^/| /' conftest.$ac_ext >&5
17670 ac_header_preproc=no
17673 rm -f conftest.err conftest.$ac_ext
17674 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17675 echo "${ECHO_T}$ac_header_preproc" >&6; }
17677 # So? What about this header?
17678 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17680 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
17681 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17682 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
17683 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
17684 ac_header_preproc=yes
17687 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
17688 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
17689 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
17690 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
17691 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
17692 echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
17693 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
17694 echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
17695 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
17696 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
17697 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
17698 echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
17702 { echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
17703 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6; }
17704 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17705 echo $ECHO_N "(cached) $ECHO_C" >&6
17707 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
17709 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
17710 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
17713 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
17716 cat >>confdefs.h <<\_ACEOF
17721 { echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
17722 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6; }
17723 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
17724 echo $ECHO_N "(cached) $ECHO_C" >&6
17726 ac_check_lib_save_LIBS=$LIBS
17728 cat >conftest.$ac_ext <<_ACEOF
17731 cat confdefs.h >>conftest.$ac_ext
17732 cat >>conftest.$ac_ext <<_ACEOF
17733 /* end confdefs.h. */
17735 /* Override any GCC internal prototype to avoid an error.
17736 Use char because int might match the return type of a GCC
17737 builtin and then its argument prototype would still apply. */
17741 char dg_sys_info ();
17745 return dg_sys_info ();
17750 rm -f conftest.$ac_objext conftest$ac_exeext
17751 if { (ac_try="$ac_link"
17752 case "(($ac_try" in
17753 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17754 *) ac_try_echo
=$ac_try;;
17756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17757 (eval "$ac_link") 2>conftest.er1
17759 grep -v '^ *+' conftest.er1
>conftest.err
17761 cat conftest.err
>&5
17762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17763 (exit $ac_status); } && {
17764 test -z "$ac_c_werror_flag" ||
17765 test ! -s conftest.err
17766 } && test -s conftest
$ac_exeext &&
17767 $as_test_x conftest
$ac_exeext; then
17768 ac_cv_lib_dgc_dg_sys_info
=yes
17770 echo "$as_me: failed program was:" >&5
17771 sed 's/^/| /' conftest.
$ac_ext >&5
17773 ac_cv_lib_dgc_dg_sys_info
=no
17776 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
17777 conftest
$ac_exeext conftest.
$ac_ext
17778 LIBS
=$ac_check_lib_save_LIBS
17780 { echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
17781 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6; }
17782 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
17783 cat >>confdefs.h
<<_ACEOF
17784 #define HAVE_LIBDGC 1
17795 if test "${ac_cv_header_locale_h+set}" = set; then
17796 { echo "$as_me:$LINENO: checking for locale.h" >&5
17797 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6; }
17798 if test "${ac_cv_header_locale_h+set}" = set; then
17799 echo $ECHO_N "(cached) $ECHO_C" >&6
17801 { echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
17802 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
17804 # Is the header compilable?
17805 { echo "$as_me:$LINENO: checking locale.h usability" >&5
17806 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6; }
17807 cat >conftest.
$ac_ext <<_ACEOF
17810 cat confdefs.h
>>conftest.
$ac_ext
17811 cat >>conftest.
$ac_ext <<_ACEOF
17812 /* end confdefs.h. */
17813 $ac_includes_default
17814 #include <locale.h>
17816 rm -f conftest.
$ac_objext
17817 if { (ac_try
="$ac_compile"
17818 case "(($ac_try" in
17819 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17820 *) ac_try_echo=$ac_try;;
17822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17823 (eval "$ac_compile") 2>conftest.er1
17825 grep -v '^ *+' conftest.er1 >conftest.err
17827 cat conftest.err >&5
17828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17829 (exit $ac_status); } && {
17830 test -z "$ac_c_werror_flag" ||
17831 test ! -s conftest.err
17832 } && test -s conftest.$ac_objext; then
17833 ac_header_compiler=yes
17835 echo "$as_me: failed program was:" >&5
17836 sed 's/^/| /' conftest.$ac_ext >&5
17838 ac_header_compiler=no
17841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17842 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17843 echo "${ECHO_T}$ac_header_compiler" >&6; }
17845 # Is the header present?
17846 { echo "$as_me:$LINENO: checking locale.h presence" >&5
17847 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6; }
17848 cat >conftest.$ac_ext <<_ACEOF
17851 cat confdefs.h >>conftest.$ac_ext
17852 cat >>conftest.$ac_ext <<_ACEOF
17853 /* end confdefs.h. */
17854 #include <locale.h>
17856 if { (ac_try="$ac_cpp conftest.$ac_ext"
17857 case "(($ac_try" in
17858 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17859 *) ac_try_echo
=$ac_try;;
17861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17862 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17864 grep -v '^ *+' conftest.er1
>conftest.err
17866 cat conftest.err
>&5
17867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17868 (exit $ac_status); } >/dev
/null
&& {
17869 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17870 test ! -s conftest.err
17872 ac_header_preproc
=yes
17874 echo "$as_me: failed program was:" >&5
17875 sed 's/^/| /' conftest.
$ac_ext >&5
17877 ac_header_preproc
=no
17880 rm -f conftest.err conftest.
$ac_ext
17881 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17882 echo "${ECHO_T}$ac_header_preproc" >&6; }
17884 # So? What about this header?
17885 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17887 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
17888 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17889 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
17890 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
17891 ac_header_preproc
=yes
17894 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
17895 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
17896 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
17897 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
17898 { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
17899 echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
17900 { echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
17901 echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
17902 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
17903 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
17904 { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
17905 echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
17909 { echo "$as_me:$LINENO: checking for locale.h" >&5
17910 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6; }
17911 if test "${ac_cv_header_locale_h+set}" = set; then
17912 echo $ECHO_N "(cached) $ECHO_C" >&6
17914 ac_cv_header_locale_h
=$ac_header_preproc
17916 { echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
17917 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
17923 for ac_func
in setlocale
17925 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17926 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17927 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17928 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17929 echo $ECHO_N "(cached) $ECHO_C" >&6
17931 cat >conftest.
$ac_ext <<_ACEOF
17934 cat confdefs.h
>>conftest.
$ac_ext
17935 cat >>conftest.
$ac_ext <<_ACEOF
17936 /* end confdefs.h. */
17937 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17938 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17939 #define $ac_func innocuous_$ac_func
17941 /* System header to define __stub macros and hopefully few prototypes,
17942 which can conflict with char $ac_func (); below.
17943 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17944 <limits.h> exists even on freestanding compilers. */
17947 # include <limits.h>
17949 # include <assert.h>
17954 /* Override any GCC internal prototype to avoid an error.
17955 Use char because int might match the return type of a GCC
17956 builtin and then its argument prototype would still apply. */
17961 /* The GNU C library defines this for functions which it implements
17962 to always fail with ENOSYS. Some functions are actually named
17963 something starting with __ and the normal name is an alias. */
17964 #if defined __stub_$ac_func || defined __stub___$ac_func
17971 return $ac_func ();
17976 rm -f conftest.
$ac_objext conftest
$ac_exeext
17977 if { (ac_try
="$ac_link"
17978 case "(($ac_try" in
17979 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17980 *) ac_try_echo=$ac_try;;
17982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17983 (eval "$ac_link") 2>conftest.er1
17985 grep -v '^ *+' conftest.er1 >conftest.err
17987 cat conftest.err >&5
17988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17989 (exit $ac_status); } && {
17990 test -z "$ac_c_werror_flag" ||
17991 test ! -s conftest.err
17992 } && test -s conftest$ac_exeext &&
17993 $as_test_x conftest$ac_exeext; then
17994 eval "$as_ac_var=yes"
17996 echo "$as_me: failed program was:" >&5
17997 sed 's/^/| /' conftest.$ac_ext >&5
17999 eval "$as_ac_var=no"
18002 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18003 conftest$ac_exeext conftest.$ac_ext
18005 ac_res=`eval echo '${'$as_ac_var'}'`
18006 { echo "$as_me:$LINENO: result: $ac_res" >&5
18007 echo "${ECHO_T}$ac_res" >&6; }
18008 if test `eval echo '${'$as_ac_var'}'` = yes; then
18009 cat >>confdefs.h <<_ACEOF
18010 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
18017 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
18018 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
18019 # Irix 4.0.5F has the header but not the library.
18020 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
18023 cat >>confdefs.h <<\_ACEOF
18029 if test $ac_have_func = no; then
18030 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
18031 { echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
18032 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6; }
18033 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
18034 echo $ECHO_N "(cached) $ECHO_C" >&6
18036 { echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
18037 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
18039 # Is the header compilable?
18040 { echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
18041 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6; }
18042 cat >conftest.$ac_ext <<_ACEOF
18045 cat confdefs.h >>conftest.$ac_ext
18046 cat >>conftest.$ac_ext <<_ACEOF
18047 /* end confdefs.h. */
18048 $ac_includes_default
18049 #include <inq_stats/cpustats.h>
18051 rm -f conftest.$ac_objext
18052 if { (ac_try="$ac_compile"
18053 case "(($ac_try" in
18054 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18055 *) ac_try_echo
=$ac_try;;
18057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18058 (eval "$ac_compile") 2>conftest.er1
18060 grep -v '^ *+' conftest.er1
>conftest.err
18062 cat conftest.err
>&5
18063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18064 (exit $ac_status); } && {
18065 test -z "$ac_c_werror_flag" ||
18066 test ! -s conftest.err
18067 } && test -s conftest.
$ac_objext; then
18068 ac_header_compiler
=yes
18070 echo "$as_me: failed program was:" >&5
18071 sed 's/^/| /' conftest.
$ac_ext >&5
18073 ac_header_compiler
=no
18076 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18077 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18078 echo "${ECHO_T}$ac_header_compiler" >&6; }
18080 # Is the header present?
18081 { echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
18082 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6; }
18083 cat >conftest.
$ac_ext <<_ACEOF
18086 cat confdefs.h
>>conftest.
$ac_ext
18087 cat >>conftest.
$ac_ext <<_ACEOF
18088 /* end confdefs.h. */
18089 #include <inq_stats/cpustats.h>
18091 if { (ac_try
="$ac_cpp conftest.$ac_ext"
18092 case "(($ac_try" in
18093 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18094 *) ac_try_echo=$ac_try;;
18096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18097 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18099 grep -v '^ *+' conftest.er1 >conftest.err
18101 cat conftest.err >&5
18102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18103 (exit $ac_status); } >/dev/null && {
18104 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18105 test ! -s conftest.err
18107 ac_header_preproc=yes
18109 echo "$as_me: failed program was:" >&5
18110 sed 's/^/| /' conftest.$ac_ext >&5
18112 ac_header_preproc=no
18115 rm -f conftest.err conftest.$ac_ext
18116 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18117 echo "${ECHO_T}$ac_header_preproc" >&6; }
18119 # So? What about this header?
18120 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18122 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
18123 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18124 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
18125 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
18126 ac_header_preproc=yes
18129 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
18130 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
18131 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
18132 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
18133 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
18134 echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
18135 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
18136 echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
18137 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
18138 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
18139 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
18140 echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
18144 { echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
18145 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6; }
18146 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
18147 echo $ECHO_N "(cached) $ECHO_C" >&6
18149 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
18151 { echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
18152 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
18155 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
18158 cat >>confdefs.h <<\_ACEOF
18163 cat >>confdefs.h <<\_ACEOF
18172 if test $ac_have_func = no; then
18173 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18174 { echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
18175 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6; }
18176 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18177 echo $ECHO_N "(cached) $ECHO_C" >&6
18179 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
18180 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
18182 # Is the header compilable?
18183 { echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
18184 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6; }
18185 cat >conftest.$ac_ext <<_ACEOF
18188 cat confdefs.h >>conftest.$ac_ext
18189 cat >>conftest.$ac_ext <<_ACEOF
18190 /* end confdefs.h. */
18191 $ac_includes_default
18192 #include <sys/cpustats.h>
18194 rm -f conftest.$ac_objext
18195 if { (ac_try="$ac_compile"
18196 case "(($ac_try" in
18197 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18198 *) ac_try_echo
=$ac_try;;
18200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18201 (eval "$ac_compile") 2>conftest.er1
18203 grep -v '^ *+' conftest.er1
>conftest.err
18205 cat conftest.err
>&5
18206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18207 (exit $ac_status); } && {
18208 test -z "$ac_c_werror_flag" ||
18209 test ! -s conftest.err
18210 } && test -s conftest.
$ac_objext; then
18211 ac_header_compiler
=yes
18213 echo "$as_me: failed program was:" >&5
18214 sed 's/^/| /' conftest.
$ac_ext >&5
18216 ac_header_compiler
=no
18219 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18220 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18221 echo "${ECHO_T}$ac_header_compiler" >&6; }
18223 # Is the header present?
18224 { echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
18225 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6; }
18226 cat >conftest.
$ac_ext <<_ACEOF
18229 cat confdefs.h
>>conftest.
$ac_ext
18230 cat >>conftest.
$ac_ext <<_ACEOF
18231 /* end confdefs.h. */
18232 #include <sys/cpustats.h>
18234 if { (ac_try
="$ac_cpp conftest.$ac_ext"
18235 case "(($ac_try" in
18236 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18237 *) ac_try_echo=$ac_try;;
18239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18240 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18242 grep -v '^ *+' conftest.er1 >conftest.err
18244 cat conftest.err >&5
18245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18246 (exit $ac_status); } >/dev/null && {
18247 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18248 test ! -s conftest.err
18250 ac_header_preproc=yes
18252 echo "$as_me: failed program was:" >&5
18253 sed 's/^/| /' conftest.$ac_ext >&5
18255 ac_header_preproc=no
18258 rm -f conftest.err conftest.$ac_ext
18259 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18260 echo "${ECHO_T}$ac_header_preproc" >&6; }
18262 # So? What about this header?
18263 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18265 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
18266 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18267 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
18268 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
18269 ac_header_preproc=yes
18272 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
18273 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
18274 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
18275 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
18276 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
18277 echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
18278 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
18279 echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
18280 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
18281 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
18282 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
18283 echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
18287 { echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
18288 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6; }
18289 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18290 echo $ECHO_N "(cached) $ECHO_C" >&6
18292 ac_cv_header_sys_cpustats_h=$ac_header_preproc
18294 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
18295 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
18298 if test $ac_cv_header_sys_cpustats_h = yes; then
18299 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
18308 if test $ac_have_func = no; then
18310 for ac_header in mach/mach.h
18312 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
18313 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18314 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18315 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18316 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18317 echo $ECHO_N "(cached) $ECHO_C" >&6
18319 ac_res=`eval echo '${'$as_ac_Header'}'`
18320 { echo "$as_me:$LINENO: result: $ac_res" >&5
18321 echo "${ECHO_T}$ac_res" >&6; }
18323 # Is the header compilable?
18324 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18325 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18326 cat >conftest.$ac_ext <<_ACEOF
18329 cat confdefs.h >>conftest.$ac_ext
18330 cat >>conftest.$ac_ext <<_ACEOF
18331 /* end confdefs.h. */
18332 $ac_includes_default
18333 #include <$ac_header>
18335 rm -f conftest.$ac_objext
18336 if { (ac_try="$ac_compile"
18337 case "(($ac_try" in
18338 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18339 *) ac_try_echo
=$ac_try;;
18341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18342 (eval "$ac_compile") 2>conftest.er1
18344 grep -v '^ *+' conftest.er1
>conftest.err
18346 cat conftest.err
>&5
18347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18348 (exit $ac_status); } && {
18349 test -z "$ac_c_werror_flag" ||
18350 test ! -s conftest.err
18351 } && test -s conftest.
$ac_objext; then
18352 ac_header_compiler
=yes
18354 echo "$as_me: failed program was:" >&5
18355 sed 's/^/| /' conftest.
$ac_ext >&5
18357 ac_header_compiler
=no
18360 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18361 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18362 echo "${ECHO_T}$ac_header_compiler" >&6; }
18364 # Is the header present?
18365 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18366 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18367 cat >conftest.
$ac_ext <<_ACEOF
18370 cat confdefs.h
>>conftest.
$ac_ext
18371 cat >>conftest.
$ac_ext <<_ACEOF
18372 /* end confdefs.h. */
18373 #include <$ac_header>
18375 if { (ac_try
="$ac_cpp conftest.$ac_ext"
18376 case "(($ac_try" in
18377 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18378 *) ac_try_echo=$ac_try;;
18380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18381 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18383 grep -v '^ *+' conftest.er1 >conftest.err
18385 cat conftest.err >&5
18386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18387 (exit $ac_status); } >/dev/null && {
18388 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18389 test ! -s conftest.err
18391 ac_header_preproc=yes
18393 echo "$as_me: failed program was:" >&5
18394 sed 's/^/| /' conftest.$ac_ext >&5
18396 ac_header_preproc=no
18399 rm -f conftest.err conftest.$ac_ext
18400 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18401 echo "${ECHO_T}$ac_header_preproc" >&6; }
18403 # So? What about this header?
18404 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18406 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18407 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18408 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18409 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18410 ac_header_preproc=yes
18413 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18414 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18415 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18416 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18417 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18418 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18419 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18420 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18421 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18422 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18423 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18424 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18428 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18429 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18430 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18431 echo $ECHO_N "(cached) $ECHO_C" >&6
18433 eval "$as_ac_Header=\$ac_header_preproc"
18435 ac_res=`eval echo '${'$as_ac_Header'}'`
18436 { echo "$as_me:$LINENO: result: $ac_res" >&5
18437 echo "${ECHO_T}$ac_res" >&6; }
18440 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18441 cat >>confdefs.h <<_ACEOF
18442 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
18452 for ac_header in nlist.h
18454 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
18455 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18456 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18457 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18458 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18459 echo $ECHO_N "(cached) $ECHO_C" >&6
18461 ac_res=`eval echo '${'$as_ac_Header'}'`
18462 { echo "$as_me:$LINENO: result: $ac_res" >&5
18463 echo "${ECHO_T}$ac_res" >&6; }
18465 # Is the header compilable?
18466 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18467 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18468 cat >conftest.$ac_ext <<_ACEOF
18471 cat confdefs.h >>conftest.$ac_ext
18472 cat >>conftest.$ac_ext <<_ACEOF
18473 /* end confdefs.h. */
18474 $ac_includes_default
18475 #include <$ac_header>
18477 rm -f conftest.$ac_objext
18478 if { (ac_try="$ac_compile"
18479 case "(($ac_try" in
18480 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18481 *) ac_try_echo
=$ac_try;;
18483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18484 (eval "$ac_compile") 2>conftest.er1
18486 grep -v '^ *+' conftest.er1
>conftest.err
18488 cat conftest.err
>&5
18489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18490 (exit $ac_status); } && {
18491 test -z "$ac_c_werror_flag" ||
18492 test ! -s conftest.err
18493 } && test -s conftest.
$ac_objext; then
18494 ac_header_compiler
=yes
18496 echo "$as_me: failed program was:" >&5
18497 sed 's/^/| /' conftest.
$ac_ext >&5
18499 ac_header_compiler
=no
18502 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18503 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18504 echo "${ECHO_T}$ac_header_compiler" >&6; }
18506 # Is the header present?
18507 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18508 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18509 cat >conftest.
$ac_ext <<_ACEOF
18512 cat confdefs.h
>>conftest.
$ac_ext
18513 cat >>conftest.
$ac_ext <<_ACEOF
18514 /* end confdefs.h. */
18515 #include <$ac_header>
18517 if { (ac_try
="$ac_cpp conftest.$ac_ext"
18518 case "(($ac_try" in
18519 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18520 *) ac_try_echo=$ac_try;;
18522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18523 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18525 grep -v '^ *+' conftest.er1 >conftest.err
18527 cat conftest.err >&5
18528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18529 (exit $ac_status); } >/dev/null && {
18530 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18531 test ! -s conftest.err
18533 ac_header_preproc=yes
18535 echo "$as_me: failed program was:" >&5
18536 sed 's/^/| /' conftest.$ac_ext >&5
18538 ac_header_preproc=no
18541 rm -f conftest.err conftest.$ac_ext
18542 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18543 echo "${ECHO_T}$ac_header_preproc" >&6; }
18545 # So? What about this header?
18546 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18548 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18549 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18550 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18551 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18552 ac_header_preproc=yes
18555 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18556 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18557 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18558 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18559 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18560 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18561 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18562 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18563 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18564 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18565 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18566 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18570 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18571 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18572 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18573 echo $ECHO_N "(cached) $ECHO_C" >&6
18575 eval "$as_ac_Header=\$ac_header_preproc"
18577 ac_res=`eval echo '${'$as_ac_Header'}'`
18578 { echo "$as_me:$LINENO: result: $ac_res" >&5
18579 echo "${ECHO_T}$ac_res" >&6; }
18582 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18583 cat >>confdefs.h <<_ACEOF
18584 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
18586 { echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
18587 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6; }
18588 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
18589 echo $ECHO_N "(cached) $ECHO_C" >&6
18591 cat >conftest.$ac_ext <<_ACEOF
18594 cat confdefs.h >>conftest.$ac_ext
18595 cat >>conftest.$ac_ext <<_ACEOF
18596 /* end confdefs.h. */
18602 static struct nlist ac_aggr;
18603 if (ac_aggr.n_un.n_name)
18609 rm -f conftest.$ac_objext
18610 if { (ac_try="$ac_compile"
18611 case "(($ac_try" in
18612 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18613 *) ac_try_echo
=$ac_try;;
18615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18616 (eval "$ac_compile") 2>conftest.er1
18618 grep -v '^ *+' conftest.er1
>conftest.err
18620 cat conftest.err
>&5
18621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18622 (exit $ac_status); } && {
18623 test -z "$ac_c_werror_flag" ||
18624 test ! -s conftest.err
18625 } && test -s conftest.
$ac_objext; then
18626 ac_cv_member_struct_nlist_n_un_n_name
=yes
18628 echo "$as_me: failed program was:" >&5
18629 sed 's/^/| /' conftest.
$ac_ext >&5
18631 cat >conftest.
$ac_ext <<_ACEOF
18634 cat confdefs.h
>>conftest.
$ac_ext
18635 cat >>conftest.
$ac_ext <<_ACEOF
18636 /* end confdefs.h. */
18642 static struct nlist ac_aggr;
18643 if (sizeof ac_aggr.n_un.n_name)
18649 rm -f conftest.
$ac_objext
18650 if { (ac_try
="$ac_compile"
18651 case "(($ac_try" in
18652 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18653 *) ac_try_echo=$ac_try;;
18655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18656 (eval "$ac_compile") 2>conftest.er1
18658 grep -v '^ *+' conftest.er1 >conftest.err
18660 cat conftest.err >&5
18661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18662 (exit $ac_status); } && {
18663 test -z "$ac_c_werror_flag" ||
18664 test ! -s conftest.err
18665 } && test -s conftest.$ac_objext; then
18666 ac_cv_member_struct_nlist_n_un_n_name=yes
18668 echo "$as_me: failed program was:" >&5
18669 sed 's/^/| /' conftest.$ac_ext >&5
18671 ac_cv_member_struct_nlist_n_un_n_name=no
18674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18679 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
18680 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
18681 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
18683 cat >>confdefs.h <<_ACEOF
18684 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
18688 cat >>confdefs.h <<\_ACEOF
18689 #define NLIST_NAME_UNION 1
18703 # Some definitions of getloadavg require that the program be installed setgid.
18704 { echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
18705 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6; }
18706 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
18707 echo $ECHO_N "(cached) $ECHO_C" >&6
18709 cat >conftest.$ac_ext <<_ACEOF
18712 cat confdefs.h >>conftest.$ac_ext
18713 cat >>conftest.$ac_ext <<_ACEOF
18714 /* end confdefs.h. */
18715 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
18716 #ifdef LDAV_PRIVILEGED
18717 Yowza Am I SETGID yet
18720 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18721 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
18722 ac_cv_func_getloadavg_setgid=yes
18724 ac_cv_func_getloadavg_setgid=no
18729 { echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
18730 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6; }
18731 if test $ac_cv_func_getloadavg_setgid = yes; then
18734 cat >>confdefs.h <<\_ACEOF
18735 #define GETLOADAVG_PRIVILEGED 1
18742 if test $ac_cv_func_getloadavg_setgid = yes; then
18743 { echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
18744 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6; }
18745 if test "${ac_cv_group_kmem+set}" = set; then
18746 echo $ECHO_N "(cached) $ECHO_C" >&6
18748 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
18749 ac_ls_output=`ls -lgL /dev
/kmem
2>/dev
/null
`
18750 # If we got an error (system does not support symlinks), try without -L.
18751 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev
/kmem
`
18752 ac_cv_group_kmem=`echo $ac_ls_output \
18753 |
sed -ne 's/[ ][ ]*/ /g;
18754 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
18758 { echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
18759 echo "${ECHO_T}$ac_cv_group_kmem" >&6; }
18760 KMEM_GROUP=$ac_cv_group_kmem
18762 if test "x$ac_save_LIBS" = x; then
18763 GETLOADAVG_LIBS=$LIBS
18765 GETLOADAVG_LIBS=`echo "$LIBS" |
sed "s!$ac_save_LIBS!!"`
18771 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
18772 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
18773 if test "${ac_cv_sys_largefile_source+set}" = set; then
18774 echo $ECHO_N "(cached) $ECHO_C" >&6
18777 cat >conftest.$ac_ext <<_ACEOF
18780 cat confdefs.h >>conftest.$ac_ext
18781 cat >>conftest.$ac_ext <<_ACEOF
18782 /* end confdefs.h. */
18783 #include <sys/types.h> /* for off_t */
18788 int (*fp) (FILE *, off_t, int) = fseeko;
18789 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
18794 rm -f conftest.$ac_objext conftest$ac_exeext
18795 if { (ac_try="$ac_link"
18796 case "(($ac_try" in
18797 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18798 *) ac_try_echo
=$ac_try;;
18800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18801 (eval "$ac_link") 2>conftest.er1
18803 grep -v '^ *+' conftest.er1
>conftest.err
18805 cat conftest.err
>&5
18806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18807 (exit $ac_status); } && {
18808 test -z "$ac_c_werror_flag" ||
18809 test ! -s conftest.err
18810 } && test -s conftest
$ac_exeext &&
18811 $as_test_x conftest
$ac_exeext; then
18812 ac_cv_sys_largefile_source
=no
; break
18814 echo "$as_me: failed program was:" >&5
18815 sed 's/^/| /' conftest.
$ac_ext >&5
18820 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
18821 conftest
$ac_exeext conftest.
$ac_ext
18822 cat >conftest.
$ac_ext <<_ACEOF
18825 cat confdefs.h
>>conftest.
$ac_ext
18826 cat >>conftest.
$ac_ext <<_ACEOF
18827 /* end confdefs.h. */
18828 #define _LARGEFILE_SOURCE 1
18829 #include <sys/types.h> /* for off_t */
18834 int (*fp) (FILE *, off_t, int) = fseeko;
18835 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
18840 rm -f conftest.
$ac_objext conftest
$ac_exeext
18841 if { (ac_try
="$ac_link"
18842 case "(($ac_try" in
18843 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18844 *) ac_try_echo=$ac_try;;
18846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18847 (eval "$ac_link") 2>conftest.er1
18849 grep -v '^ *+' conftest.er1 >conftest.err
18851 cat conftest.err >&5
18852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18853 (exit $ac_status); } && {
18854 test -z "$ac_c_werror_flag" ||
18855 test ! -s conftest.err
18856 } && test -s conftest$ac_exeext &&
18857 $as_test_x conftest$ac_exeext; then
18858 ac_cv_sys_largefile_source=1; break
18860 echo "$as_me: failed program was:" >&5
18861 sed 's/^/| /' conftest.$ac_ext >&5
18866 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18867 conftest$ac_exeext conftest.$ac_ext
18868 ac_cv_sys_largefile_source=unknown
18872 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
18873 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
18874 case $ac_cv_sys_largefile_source in #(
18877 cat >>confdefs.h <<_ACEOF
18878 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
18884 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
18885 # in glibc 2.1.3, but that breaks too many other things.
18886 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
18887 if test $ac_cv_sys_largefile_source != unknown; then
18889 cat >>confdefs.h <<\_ACEOF
18890 #define HAVE_FSEEKO 1
18896 # Configure getopt.
18897 # getopt.m4 serial 10
18899 # The getopt module assume you want GNU getopt, with getopt_long etc,
18900 # rather than vanilla POSIX getopt. This means your your code should
18901 # always include <getopt.h> for the getopt prototypes.
18913 # Prerequisites of lib/getopt*.
18920 for ac_header in getopt.h
18922 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
18923 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18924 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18925 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18926 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18927 echo $ECHO_N "(cached) $ECHO_C" >&6
18929 ac_res=`eval echo '${'$as_ac_Header'}'`
18930 { echo "$as_me:$LINENO: result: $ac_res" >&5
18931 echo "${ECHO_T}$ac_res" >&6; }
18933 # Is the header compilable?
18934 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18935 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18936 cat >conftest.$ac_ext <<_ACEOF
18939 cat confdefs.h >>conftest.$ac_ext
18940 cat >>conftest.$ac_ext <<_ACEOF
18941 /* end confdefs.h. */
18942 $ac_includes_default
18943 #include <$ac_header>
18945 rm -f conftest.$ac_objext
18946 if { (ac_try="$ac_compile"
18947 case "(($ac_try" in
18948 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18949 *) ac_try_echo
=$ac_try;;
18951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18952 (eval "$ac_compile") 2>conftest.er1
18954 grep -v '^ *+' conftest.er1
>conftest.err
18956 cat conftest.err
>&5
18957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18958 (exit $ac_status); } && {
18959 test -z "$ac_c_werror_flag" ||
18960 test ! -s conftest.err
18961 } && test -s conftest.
$ac_objext; then
18962 ac_header_compiler
=yes
18964 echo "$as_me: failed program was:" >&5
18965 sed 's/^/| /' conftest.
$ac_ext >&5
18967 ac_header_compiler
=no
18970 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18971 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18972 echo "${ECHO_T}$ac_header_compiler" >&6; }
18974 # Is the header present?
18975 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18976 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18977 cat >conftest.
$ac_ext <<_ACEOF
18980 cat confdefs.h
>>conftest.
$ac_ext
18981 cat >>conftest.
$ac_ext <<_ACEOF
18982 /* end confdefs.h. */
18983 #include <$ac_header>
18985 if { (ac_try
="$ac_cpp conftest.$ac_ext"
18986 case "(($ac_try" in
18987 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18988 *) ac_try_echo=$ac_try;;
18990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18991 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18993 grep -v '^ *+' conftest.er1 >conftest.err
18995 cat conftest.err >&5
18996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18997 (exit $ac_status); } >/dev/null && {
18998 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18999 test ! -s conftest.err
19001 ac_header_preproc=yes
19003 echo "$as_me: failed program was:" >&5
19004 sed 's/^/| /' conftest.$ac_ext >&5
19006 ac_header_preproc=no
19009 rm -f conftest.err conftest.$ac_ext
19010 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19011 echo "${ECHO_T}$ac_header_preproc" >&6; }
19013 # So? What about this header?
19014 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19016 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19017 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19018 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19019 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19020 ac_header_preproc=yes
19023 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19024 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19025 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19026 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19027 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19028 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19029 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19030 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19031 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19032 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19033 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19034 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19038 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19039 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19040 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19041 echo $ECHO_N "(cached) $ECHO_C" >&6
19043 eval "$as_ac_Header=\$ac_header_preproc"
19045 ac_res=`eval echo '${'$as_ac_Header'}'`
19046 { echo "$as_me:$LINENO: result: $ac_res" >&5
19047 echo "${ECHO_T}$ac_res" >&6; }
19050 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19051 cat >>confdefs.h <<_ACEOF
19052 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
19061 if test -z "$GETOPT_H"; then
19063 for ac_func in getopt_long_only
19065 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
19066 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19067 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19068 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19069 echo $ECHO_N "(cached) $ECHO_C" >&6
19071 cat >conftest.$ac_ext <<_ACEOF
19074 cat confdefs.h >>conftest.$ac_ext
19075 cat >>conftest.$ac_ext <<_ACEOF
19076 /* end confdefs.h. */
19077 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19078 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19079 #define $ac_func innocuous_$ac_func
19081 /* System header to define __stub macros and hopefully few prototypes,
19082 which can conflict with char $ac_func (); below.
19083 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19084 <limits.h> exists even on freestanding compilers. */
19087 # include <limits.h>
19089 # include <assert.h>
19094 /* Override any GCC internal prototype to avoid an error.
19095 Use char because int might match the return type of a GCC
19096 builtin and then its argument prototype would still apply. */
19101 /* The GNU C library defines this for functions which it implements
19102 to always fail with ENOSYS. Some functions are actually named
19103 something starting with __ and the normal name is an alias. */
19104 #if defined __stub_$ac_func || defined __stub___$ac_func
19111 return $ac_func ();
19116 rm -f conftest.$ac_objext conftest$ac_exeext
19117 if { (ac_try="$ac_link"
19118 case "(($ac_try" in
19119 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19120 *) ac_try_echo
=$ac_try;;
19122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19123 (eval "$ac_link") 2>conftest.er1
19125 grep -v '^ *+' conftest.er1
>conftest.err
19127 cat conftest.err
>&5
19128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19129 (exit $ac_status); } && {
19130 test -z "$ac_c_werror_flag" ||
19131 test ! -s conftest.err
19132 } && test -s conftest
$ac_exeext &&
19133 $as_test_x conftest
$ac_exeext; then
19134 eval "$as_ac_var=yes"
19136 echo "$as_me: failed program was:" >&5
19137 sed 's/^/| /' conftest.
$ac_ext >&5
19139 eval "$as_ac_var=no"
19142 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
19143 conftest
$ac_exeext conftest.
$ac_ext
19145 ac_res
=`eval echo '${'$as_ac_var'}'`
19146 { echo "$as_me:$LINENO: result: $ac_res" >&5
19147 echo "${ECHO_T}$ac_res" >&6; }
19148 if test `eval echo '${'$as_ac_var'}'` = yes; then
19149 cat >>confdefs.h
<<_ACEOF
19150 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19160 if test -z "$GETOPT_H"; then
19161 { echo "$as_me:$LINENO: checking whether optreset is declared" >&5
19162 echo $ECHO_N "checking whether optreset is declared... $ECHO_C" >&6; }
19163 if test "${ac_cv_have_decl_optreset+set}" = set; then
19164 echo $ECHO_N "(cached) $ECHO_C" >&6
19166 cat >conftest.
$ac_ext <<_ACEOF
19169 cat confdefs.h
>>conftest.
$ac_ext
19170 cat >>conftest.
$ac_ext <<_ACEOF
19171 /* end confdefs.h. */
19172 #include <getopt.h>
19185 rm -f conftest.
$ac_objext
19186 if { (ac_try
="$ac_compile"
19187 case "(($ac_try" in
19188 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19189 *) ac_try_echo=$ac_try;;
19191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19192 (eval "$ac_compile") 2>conftest.er1
19194 grep -v '^ *+' conftest.er1 >conftest.err
19196 cat conftest.err >&5
19197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19198 (exit $ac_status); } && {
19199 test -z "$ac_c_werror_flag" ||
19200 test ! -s conftest.err
19201 } && test -s conftest.$ac_objext; then
19202 ac_cv_have_decl_optreset=yes
19204 echo "$as_me: failed program was:" >&5
19205 sed 's/^/| /' conftest.$ac_ext >&5
19207 ac_cv_have_decl_optreset=no
19210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19212 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
19213 echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6; }
19214 if test $ac_cv_have_decl_optreset = yes; then
19220 if test -z "$GETOPT_H"; then
19221 { echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
19222 echo $ECHO_N "checking for working GNU getopt function... $ECHO_C" >&6; }
19223 if test "${gl_cv_func_gnu_getopt+set}" = set; then
19224 echo $ECHO_N "(cached) $ECHO_C" >&6
19226 if test "$cross_compiling" = yes; then
19227 { echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5
19228 echo $ECHO_N "checking whether getopt_clip is declared... $ECHO_C" >&6; }
19229 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
19230 echo $ECHO_N "(cached) $ECHO_C" >&6
19232 cat >conftest.$ac_ext <<_ACEOF
19235 cat confdefs.h >>conftest.$ac_ext
19236 cat >>conftest.$ac_ext <<_ACEOF
19237 /* end confdefs.h. */
19238 #include <getopt.h>
19243 #ifndef getopt_clip
19244 (void) getopt_clip;
19251 rm -f conftest.$ac_objext
19252 if { (ac_try="$ac_compile"
19253 case "(($ac_try" in
19254 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19255 *) ac_try_echo
=$ac_try;;
19257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19258 (eval "$ac_compile") 2>conftest.er1
19260 grep -v '^ *+' conftest.er1
>conftest.err
19262 cat conftest.err
>&5
19263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19264 (exit $ac_status); } && {
19265 test -z "$ac_c_werror_flag" ||
19266 test ! -s conftest.err
19267 } && test -s conftest.
$ac_objext; then
19268 ac_cv_have_decl_getopt_clip
=yes
19270 echo "$as_me: failed program was:" >&5
19271 sed 's/^/| /' conftest.
$ac_ext >&5
19273 ac_cv_have_decl_getopt_clip
=no
19276 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19278 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5
19279 echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6; }
19280 if test $ac_cv_have_decl_getopt_clip = yes; then
19281 gl_cv_func_gnu_getopt
=no
19283 gl_cv_func_gnu_getopt
=yes
19287 cat >conftest.
$ac_ext <<_ACEOF
19290 cat confdefs.h
>>conftest.
$ac_ext
19291 cat >>conftest.
$ac_ext <<_ACEOF
19292 /* end confdefs.h. */
19293 #include <getopt.h>
19299 myargv[0] = "conftest";
19302 return getopt (2, myargv, "+a") != '?';
19308 rm -f conftest
$ac_exeext
19309 if { (ac_try
="$ac_link"
19310 case "(($ac_try" in
19311 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19312 *) ac_try_echo=$ac_try;;
19314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19315 (eval "$ac_link") 2>&5
19317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19318 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19319 { (case "(($ac_try" in
19320 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19321 *) ac_try_echo
=$ac_try;;
19323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19324 (eval "$ac_try") 2>&5
19326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19327 (exit $ac_status); }; }; then
19328 gl_cv_func_gnu_getopt
=yes
19330 echo "$as_me: program exited with status $ac_status" >&5
19331 echo "$as_me: failed program was:" >&5
19332 sed 's/^/| /' conftest.
$ac_ext >&5
19334 ( exit $ac_status )
19335 gl_cv_func_gnu_getopt
=no
19337 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
19342 { echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5
19343 echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6; }
19344 if test "$gl_cv_func_gnu_getopt" = "no"; then
19351 if test -n "$GETOPT_H"; then
19356 cat >>confdefs.h
<<\_ACEOF
19357 #define __GETOPT_PREFIX rpl_
19363 GETOPTOBJS
='getopt.o getopt1.o'
19370 { echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
19371 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6; }
19372 if test "${ac_cv_func_getpgrp_void+set}" = set; then
19373 echo $ECHO_N "(cached) $ECHO_C" >&6
19375 # Use it with a single arg.
19376 cat >conftest.
$ac_ext <<_ACEOF
19379 cat confdefs.h
>>conftest.
$ac_ext
19380 cat >>conftest.
$ac_ext <<_ACEOF
19381 /* end confdefs.h. */
19382 $ac_includes_default
19391 rm -f conftest.
$ac_objext
19392 if { (ac_try
="$ac_compile"
19393 case "(($ac_try" in
19394 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19395 *) ac_try_echo=$ac_try;;
19397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19398 (eval "$ac_compile") 2>conftest.er1
19400 grep -v '^ *+' conftest.er1 >conftest.err
19402 cat conftest.err >&5
19403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19404 (exit $ac_status); } && {
19405 test -z "$ac_c_werror_flag" ||
19406 test ! -s conftest.err
19407 } && test -s conftest.$ac_objext; then
19408 ac_cv_func_getpgrp_void=no
19410 echo "$as_me: failed program was:" >&5
19411 sed 's/^/| /' conftest.$ac_ext >&5
19413 ac_cv_func_getpgrp_void=yes
19416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19419 { echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
19420 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6; }
19421 if test $ac_cv_func_getpgrp_void = yes; then
19423 cat >>confdefs.h <<\_ACEOF
19424 #define GETPGRP_VOID 1
19431 for ac_func in strftime
19433 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
19434 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19435 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19436 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19437 echo $ECHO_N "(cached) $ECHO_C" >&6
19439 cat >conftest.$ac_ext <<_ACEOF
19442 cat confdefs.h >>conftest.$ac_ext
19443 cat >>conftest.$ac_ext <<_ACEOF
19444 /* end confdefs.h. */
19445 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19446 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19447 #define $ac_func innocuous_$ac_func
19449 /* System header to define __stub macros and hopefully few prototypes,
19450 which can conflict with char $ac_func (); below.
19451 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19452 <limits.h> exists even on freestanding compilers. */
19455 # include <limits.h>
19457 # include <assert.h>
19462 /* Override any GCC internal prototype to avoid an error.
19463 Use char because int might match the return type of a GCC
19464 builtin and then its argument prototype would still apply. */
19469 /* The GNU C library defines this for functions which it implements
19470 to always fail with ENOSYS. Some functions are actually named
19471 something starting with __ and the normal name is an alias. */
19472 #if defined __stub_$ac_func || defined __stub___$ac_func
19479 return $ac_func ();
19484 rm -f conftest.$ac_objext conftest$ac_exeext
19485 if { (ac_try="$ac_link"
19486 case "(($ac_try" in
19487 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19488 *) ac_try_echo
=$ac_try;;
19490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19491 (eval "$ac_link") 2>conftest.er1
19493 grep -v '^ *+' conftest.er1
>conftest.err
19495 cat conftest.err
>&5
19496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19497 (exit $ac_status); } && {
19498 test -z "$ac_c_werror_flag" ||
19499 test ! -s conftest.err
19500 } && test -s conftest
$ac_exeext &&
19501 $as_test_x conftest
$ac_exeext; then
19502 eval "$as_ac_var=yes"
19504 echo "$as_me: failed program was:" >&5
19505 sed 's/^/| /' conftest.
$ac_ext >&5
19507 eval "$as_ac_var=no"
19510 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
19511 conftest
$ac_exeext conftest.
$ac_ext
19513 ac_res
=`eval echo '${'$as_ac_var'}'`
19514 { echo "$as_me:$LINENO: result: $ac_res" >&5
19515 echo "${ECHO_T}$ac_res" >&6; }
19516 if test `eval echo '${'$as_ac_var'}'` = yes; then
19517 cat >>confdefs.h
<<_ACEOF
19518 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19522 # strftime is in -lintl on SCO UNIX.
19523 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
19524 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
19525 if test "${ac_cv_lib_intl_strftime+set}" = set; then
19526 echo $ECHO_N "(cached) $ECHO_C" >&6
19528 ac_check_lib_save_LIBS
=$LIBS
19529 LIBS
="-lintl $LIBS"
19530 cat >conftest.
$ac_ext <<_ACEOF
19533 cat confdefs.h
>>conftest.
$ac_ext
19534 cat >>conftest.
$ac_ext <<_ACEOF
19535 /* end confdefs.h. */
19537 /* Override any GCC internal prototype to avoid an error.
19538 Use char because int might match the return type of a GCC
19539 builtin and then its argument prototype would still apply. */
19547 return strftime ();
19552 rm -f conftest.
$ac_objext conftest
$ac_exeext
19553 if { (ac_try
="$ac_link"
19554 case "(($ac_try" in
19555 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19556 *) ac_try_echo=$ac_try;;
19558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19559 (eval "$ac_link") 2>conftest.er1
19561 grep -v '^ *+' conftest.er1 >conftest.err
19563 cat conftest.err >&5
19564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19565 (exit $ac_status); } && {
19566 test -z "$ac_c_werror_flag" ||
19567 test ! -s conftest.err
19568 } && test -s conftest$ac_exeext &&
19569 $as_test_x conftest$ac_exeext; then
19570 ac_cv_lib_intl_strftime=yes
19572 echo "$as_me: failed program was:" >&5
19573 sed 's/^/| /' conftest.$ac_ext >&5
19575 ac_cv_lib_intl_strftime=no
19578 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19579 conftest$ac_exeext conftest.$ac_ext
19580 LIBS=$ac_check_lib_save_LIBS
19582 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
19583 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
19584 if test $ac_cv_lib_intl_strftime = yes; then
19585 cat >>confdefs.h <<\_ACEOF
19586 #define HAVE_STRFTIME 1
19589 LIBS="-lintl $LIBS"
19598 for ac_func in grantpt
19600 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
19601 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19602 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19603 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19604 echo $ECHO_N "(cached) $ECHO_C" >&6
19606 cat >conftest.$ac_ext <<_ACEOF
19609 cat confdefs.h >>conftest.$ac_ext
19610 cat >>conftest.$ac_ext <<_ACEOF
19611 /* end confdefs.h. */
19612 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19613 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19614 #define $ac_func innocuous_$ac_func
19616 /* System header to define __stub macros and hopefully few prototypes,
19617 which can conflict with char $ac_func (); below.
19618 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19619 <limits.h> exists even on freestanding compilers. */
19622 # include <limits.h>
19624 # include <assert.h>
19629 /* Override any GCC internal prototype to avoid an error.
19630 Use char because int might match the return type of a GCC
19631 builtin and then its argument prototype would still apply. */
19636 /* The GNU C library defines this for functions which it implements
19637 to always fail with ENOSYS. Some functions are actually named
19638 something starting with __ and the normal name is an alias. */
19639 #if defined __stub_$ac_func || defined __stub___$ac_func
19646 return $ac_func ();
19651 rm -f conftest.$ac_objext conftest$ac_exeext
19652 if { (ac_try="$ac_link"
19653 case "(($ac_try" in
19654 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19655 *) ac_try_echo
=$ac_try;;
19657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19658 (eval "$ac_link") 2>conftest.er1
19660 grep -v '^ *+' conftest.er1
>conftest.err
19662 cat conftest.err
>&5
19663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19664 (exit $ac_status); } && {
19665 test -z "$ac_c_werror_flag" ||
19666 test ! -s conftest.err
19667 } && test -s conftest
$ac_exeext &&
19668 $as_test_x conftest
$ac_exeext; then
19669 eval "$as_ac_var=yes"
19671 echo "$as_me: failed program was:" >&5
19672 sed 's/^/| /' conftest.
$ac_ext >&5
19674 eval "$as_ac_var=no"
19677 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
19678 conftest
$ac_exeext conftest.
$ac_ext
19680 ac_res
=`eval echo '${'$as_ac_var'}'`
19681 { echo "$as_me:$LINENO: result: $ac_res" >&5
19682 echo "${ECHO_T}$ac_res" >&6; }
19683 if test `eval echo '${'$as_ac_var'}'` = yes; then
19684 cat >>confdefs.h
<<_ACEOF
19685 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19692 # PTY-related GNU extensions.
19694 for ac_func
in getpt
19696 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19697 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19698 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19699 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19700 echo $ECHO_N "(cached) $ECHO_C" >&6
19702 cat >conftest.
$ac_ext <<_ACEOF
19705 cat confdefs.h
>>conftest.
$ac_ext
19706 cat >>conftest.
$ac_ext <<_ACEOF
19707 /* end confdefs.h. */
19708 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19709 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19710 #define $ac_func innocuous_$ac_func
19712 /* System header to define __stub macros and hopefully few prototypes,
19713 which can conflict with char $ac_func (); below.
19714 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19715 <limits.h> exists even on freestanding compilers. */
19718 # include <limits.h>
19720 # include <assert.h>
19725 /* Override any GCC internal prototype to avoid an error.
19726 Use char because int might match the return type of a GCC
19727 builtin and then its argument prototype would still apply. */
19732 /* The GNU C library defines this for functions which it implements
19733 to always fail with ENOSYS. Some functions are actually named
19734 something starting with __ and the normal name is an alias. */
19735 #if defined __stub_$ac_func || defined __stub___$ac_func
19742 return $ac_func ();
19747 rm -f conftest.
$ac_objext conftest
$ac_exeext
19748 if { (ac_try
="$ac_link"
19749 case "(($ac_try" in
19750 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19751 *) ac_try_echo=$ac_try;;
19753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19754 (eval "$ac_link") 2>conftest.er1
19756 grep -v '^ *+' conftest.er1 >conftest.err
19758 cat conftest.err >&5
19759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19760 (exit $ac_status); } && {
19761 test -z "$ac_c_werror_flag" ||
19762 test ! -s conftest.err
19763 } && test -s conftest$ac_exeext &&
19764 $as_test_x conftest$ac_exeext; then
19765 eval "$as_ac_var=yes"
19767 echo "$as_me: failed program was:" >&5
19768 sed 's/^/| /' conftest.$ac_ext >&5
19770 eval "$as_ac_var=no"
19773 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19774 conftest$ac_exeext conftest.$ac_ext
19776 ac_res=`eval echo '${'$as_ac_var'}'`
19777 { echo "$as_me:$LINENO: result: $ac_res" >&5
19778 echo "${ECHO_T}$ac_res" >&6; }
19779 if test `eval echo '${'$as_ac_var'}'` = yes; then
19780 cat >>confdefs.h <<_ACEOF
19781 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
19788 # Check this now, so that we will NOT find the above functions in ncurses.
19789 # That is because we have not set up to link ncurses in lib-src.
19790 # It's better to believe a function is not available
19791 # than to expect to find it in ncurses.
19793 { echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
19794 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6; }
19795 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
19796 echo $ECHO_N "(cached) $ECHO_C" >&6
19798 ac_check_lib_save_LIBS=$LIBS
19799 LIBS="-lncurses $LIBS"
19800 cat >conftest.$ac_ext <<_ACEOF
19803 cat confdefs.h >>conftest.$ac_ext
19804 cat >>conftest.$ac_ext <<_ACEOF
19805 /* end confdefs.h. */
19807 /* Override any GCC internal prototype to avoid an error.
19808 Use char because int might match the return type of a GCC
19809 builtin and then its argument prototype would still apply. */
19822 rm -f conftest.$ac_objext conftest$ac_exeext
19823 if { (ac_try="$ac_link"
19824 case "(($ac_try" in
19825 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19826 *) ac_try_echo
=$ac_try;;
19828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19829 (eval "$ac_link") 2>conftest.er1
19831 grep -v '^ *+' conftest.er1
>conftest.err
19833 cat conftest.err
>&5
19834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19835 (exit $ac_status); } && {
19836 test -z "$ac_c_werror_flag" ||
19837 test ! -s conftest.err
19838 } && test -s conftest
$ac_exeext &&
19839 $as_test_x conftest
$ac_exeext; then
19840 ac_cv_lib_ncurses_tparm
=yes
19842 echo "$as_me: failed program was:" >&5
19843 sed 's/^/| /' conftest.
$ac_ext >&5
19845 ac_cv_lib_ncurses_tparm
=no
19848 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
19849 conftest
$ac_exeext conftest.
$ac_ext
19850 LIBS
=$ac_check_lib_save_LIBS
19852 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
19853 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6; }
19854 if test $ac_cv_lib_ncurses_tparm = yes; then
19855 cat >>confdefs.h
<<_ACEOF
19856 #define HAVE_LIBNCURSES 1
19859 LIBS
="-lncurses $LIBS"
19864 # Do we have res_init, for detecting changes in /etc/resolv.conf?
19867 cat >conftest.
$ac_ext <<_ACEOF
19870 cat confdefs.h
>>conftest.
$ac_ext
19871 cat >>conftest.
$ac_ext <<_ACEOF
19872 /* end confdefs.h. */
19873 #include <netinet/in.h>
19874 #include <arpa/nameser.h>
19875 #include <resolv.h>
19884 rm -f conftest.
$ac_objext conftest
$ac_exeext
19885 if { (ac_try
="$ac_link"
19886 case "(($ac_try" in
19887 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19888 *) ac_try_echo=$ac_try;;
19890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19891 (eval "$ac_link") 2>conftest.er1
19893 grep -v '^ *+' conftest.er1 >conftest.err
19895 cat conftest.err >&5
19896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19897 (exit $ac_status); } && {
19898 test -z "$ac_c_werror_flag" ||
19899 test ! -s conftest.err
19900 } && test -s conftest$ac_exeext &&
19901 $as_test_x conftest$ac_exeext; then
19904 echo "$as_me: failed program was:" >&5
19905 sed 's/^/| /' conftest.$ac_ext >&5
19910 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19911 conftest$ac_exeext conftest.$ac_ext
19912 if test "$have_res_init" = no; then
19914 LIBS="$LIBS -lresolv"
19915 { echo "$as_me:$LINENO: checking for res_init with -lresolv" >&5
19916 echo $ECHO_N "checking for res_init with -lresolv... $ECHO_C" >&6; }
19917 cat >conftest.$ac_ext <<_ACEOF
19920 cat confdefs.h >>conftest.$ac_ext
19921 cat >>conftest.$ac_ext <<_ACEOF
19922 /* end confdefs.h. */
19923 #include <netinet/in.h>
19924 #include <arpa/nameser.h>
19925 #include <resolv.h>
19934 rm -f conftest.$ac_objext conftest$ac_exeext
19935 if { (ac_try="$ac_link"
19936 case "(($ac_try" in
19937 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19938 *) ac_try_echo
=$ac_try;;
19940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19941 (eval "$ac_link") 2>conftest.er1
19943 grep -v '^ *+' conftest.er1
>conftest.err
19945 cat conftest.err
>&5
19946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19947 (exit $ac_status); } && {
19948 test -z "$ac_c_werror_flag" ||
19949 test ! -s conftest.err
19950 } && test -s conftest
$ac_exeext &&
19951 $as_test_x conftest
$ac_exeext; then
19954 echo "$as_me: failed program was:" >&5
19955 sed 's/^/| /' conftest.
$ac_ext >&5
19960 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
19961 conftest
$ac_exeext conftest.
$ac_ext
19962 { echo "$as_me:$LINENO: result: $have_res_init" >&5
19963 echo "${ECHO_T}$have_res_init" >&6; }
19964 if test "$have_res_init" = yes ; then
19970 if test "$have_res_init" = yes; then
19972 cat >>confdefs.h
<<\_ACEOF
19973 #define HAVE_RES_INIT 1
19978 # Do we need the Hesiod library to provide the support routines?
19979 if test "$with_hesiod" != no
; then
19980 # Don't set $LIBS here -- see comments above.
19981 { echo "$as_me:$LINENO: checking for res_send" >&5
19982 echo $ECHO_N "checking for res_send... $ECHO_C" >&6; }
19983 if test "${ac_cv_func_res_send+set}" = set; then
19984 echo $ECHO_N "(cached) $ECHO_C" >&6
19986 cat >conftest.
$ac_ext <<_ACEOF
19989 cat confdefs.h
>>conftest.
$ac_ext
19990 cat >>conftest.
$ac_ext <<_ACEOF
19991 /* end confdefs.h. */
19992 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
19993 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19994 #define res_send innocuous_res_send
19996 /* System header to define __stub macros and hopefully few prototypes,
19997 which can conflict with char res_send (); below.
19998 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19999 <limits.h> exists even on freestanding compilers. */
20002 # include <limits.h>
20004 # include <assert.h>
20009 /* Override any GCC internal prototype to avoid an error.
20010 Use char because int might match the return type of a GCC
20011 builtin and then its argument prototype would still apply. */
20016 /* The GNU C library defines this for functions which it implements
20017 to always fail with ENOSYS. Some functions are actually named
20018 something starting with __ and the normal name is an alias. */
20019 #if defined __stub_res_send || defined __stub___res_send
20026 return res_send ();
20031 rm -f conftest.
$ac_objext conftest
$ac_exeext
20032 if { (ac_try
="$ac_link"
20033 case "(($ac_try" in
20034 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20035 *) ac_try_echo=$ac_try;;
20037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20038 (eval "$ac_link") 2>conftest.er1
20040 grep -v '^ *+' conftest.er1 >conftest.err
20042 cat conftest.err >&5
20043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20044 (exit $ac_status); } && {
20045 test -z "$ac_c_werror_flag" ||
20046 test ! -s conftest.err
20047 } && test -s conftest$ac_exeext &&
20048 $as_test_x conftest$ac_exeext; then
20049 ac_cv_func_res_send=yes
20051 echo "$as_me: failed program was:" >&5
20052 sed 's/^/| /' conftest.$ac_ext >&5
20054 ac_cv_func_res_send=no
20057 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20058 conftest$ac_exeext conftest.$ac_ext
20060 { echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
20061 echo "${ECHO_T}$ac_cv_func_res_send" >&6; }
20062 if test $ac_cv_func_res_send = yes; then
20065 { echo "$as_me:$LINENO: checking for __res_send" >&5
20066 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6; }
20067 if test "${ac_cv_func___res_send+set}" = set; then
20068 echo $ECHO_N "(cached) $ECHO_C" >&6
20070 cat >conftest.$ac_ext <<_ACEOF
20073 cat confdefs.h >>conftest.$ac_ext
20074 cat >>conftest.$ac_ext <<_ACEOF
20075 /* end confdefs.h. */
20076 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
20077 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20078 #define __res_send innocuous___res_send
20080 /* System header to define __stub macros and hopefully few prototypes,
20081 which can conflict with char __res_send (); below.
20082 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20083 <limits.h> exists even on freestanding compilers. */
20086 # include <limits.h>
20088 # include <assert.h>
20093 /* Override any GCC internal prototype to avoid an error.
20094 Use char because int might match the return type of a GCC
20095 builtin and then its argument prototype would still apply. */
20099 char __res_send ();
20100 /* The GNU C library defines this for functions which it implements
20101 to always fail with ENOSYS. Some functions are actually named
20102 something starting with __ and the normal name is an alias. */
20103 #if defined __stub___res_send || defined __stub_____res_send
20110 return __res_send ();
20115 rm -f conftest.$ac_objext conftest$ac_exeext
20116 if { (ac_try="$ac_link"
20117 case "(($ac_try" in
20118 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20119 *) ac_try_echo
=$ac_try;;
20121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20122 (eval "$ac_link") 2>conftest.er1
20124 grep -v '^ *+' conftest.er1
>conftest.err
20126 cat conftest.err
>&5
20127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20128 (exit $ac_status); } && {
20129 test -z "$ac_c_werror_flag" ||
20130 test ! -s conftest.err
20131 } && test -s conftest
$ac_exeext &&
20132 $as_test_x conftest
$ac_exeext; then
20133 ac_cv_func___res_send
=yes
20135 echo "$as_me: failed program was:" >&5
20136 sed 's/^/| /' conftest.
$ac_ext >&5
20138 ac_cv_func___res_send
=no
20141 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
20142 conftest
$ac_exeext conftest.
$ac_ext
20144 { echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
20145 echo "${ECHO_T}$ac_cv_func___res_send" >&6; }
20146 if test $ac_cv_func___res_send = yes; then
20149 { echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
20150 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6; }
20151 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
20152 echo $ECHO_N "(cached) $ECHO_C" >&6
20154 ac_check_lib_save_LIBS
=$LIBS
20155 LIBS
="-lresolv $LIBS"
20156 cat >conftest.
$ac_ext <<_ACEOF
20159 cat confdefs.h
>>conftest.
$ac_ext
20160 cat >>conftest.
$ac_ext <<_ACEOF
20161 /* end confdefs.h. */
20163 /* Override any GCC internal prototype to avoid an error.
20164 Use char because int might match the return type of a GCC
20165 builtin and then its argument prototype would still apply. */
20173 return res_send ();
20178 rm -f conftest.
$ac_objext conftest
$ac_exeext
20179 if { (ac_try
="$ac_link"
20180 case "(($ac_try" in
20181 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20182 *) ac_try_echo=$ac_try;;
20184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20185 (eval "$ac_link") 2>conftest.er1
20187 grep -v '^ *+' conftest.er1 >conftest.err
20189 cat conftest.err >&5
20190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20191 (exit $ac_status); } && {
20192 test -z "$ac_c_werror_flag" ||
20193 test ! -s conftest.err
20194 } && test -s conftest$ac_exeext &&
20195 $as_test_x conftest$ac_exeext; then
20196 ac_cv_lib_resolv_res_send=yes
20198 echo "$as_me: failed program was:" >&5
20199 sed 's/^/| /' conftest.$ac_ext >&5
20201 ac_cv_lib_resolv_res_send=no
20204 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20205 conftest$ac_exeext conftest.$ac_ext
20206 LIBS=$ac_check_lib_save_LIBS
20208 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
20209 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6; }
20210 if test $ac_cv_lib_resolv_res_send = yes; then
20213 { echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
20214 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6; }
20215 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
20216 echo $ECHO_N "(cached) $ECHO_C" >&6
20218 ac_check_lib_save_LIBS=$LIBS
20219 LIBS="-lresolv $LIBS"
20220 cat >conftest.$ac_ext <<_ACEOF
20223 cat confdefs.h >>conftest.$ac_ext
20224 cat >>conftest.$ac_ext <<_ACEOF
20225 /* end confdefs.h. */
20227 /* Override any GCC internal prototype to avoid an error.
20228 Use char because int might match the return type of a GCC
20229 builtin and then its argument prototype would still apply. */
20233 char __res_send ();
20237 return __res_send ();
20242 rm -f conftest.$ac_objext conftest$ac_exeext
20243 if { (ac_try="$ac_link"
20244 case "(($ac_try" in
20245 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20246 *) ac_try_echo
=$ac_try;;
20248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20249 (eval "$ac_link") 2>conftest.er1
20251 grep -v '^ *+' conftest.er1
>conftest.err
20253 cat conftest.err
>&5
20254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20255 (exit $ac_status); } && {
20256 test -z "$ac_c_werror_flag" ||
20257 test ! -s conftest.err
20258 } && test -s conftest
$ac_exeext &&
20259 $as_test_x conftest
$ac_exeext; then
20260 ac_cv_lib_resolv___res_send
=yes
20262 echo "$as_me: failed program was:" >&5
20263 sed 's/^/| /' conftest.
$ac_ext >&5
20265 ac_cv_lib_resolv___res_send
=no
20268 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
20269 conftest
$ac_exeext conftest.
$ac_ext
20270 LIBS
=$ac_check_lib_save_LIBS
20272 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
20273 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6; }
20274 if test $ac_cv_lib_resolv___res_send = yes; then
20284 if test "$resolv" = yes ; then
20289 { echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
20290 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6; }
20291 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
20292 echo $ECHO_N "(cached) $ECHO_C" >&6
20294 cat >conftest.
$ac_ext <<_ACEOF
20297 cat confdefs.h
>>conftest.
$ac_ext
20298 cat >>conftest.
$ac_ext <<_ACEOF
20299 /* end confdefs.h. */
20300 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
20301 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20302 #define hes_getmailhost innocuous_hes_getmailhost
20304 /* System header to define __stub macros and hopefully few prototypes,
20305 which can conflict with char hes_getmailhost (); below.
20306 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20307 <limits.h> exists even on freestanding compilers. */
20310 # include <limits.h>
20312 # include <assert.h>
20315 #undef hes_getmailhost
20317 /* Override any GCC internal prototype to avoid an error.
20318 Use char because int might match the return type of a GCC
20319 builtin and then its argument prototype would still apply. */
20323 char hes_getmailhost ();
20324 /* The GNU C library defines this for functions which it implements
20325 to always fail with ENOSYS. Some functions are actually named
20326 something starting with __ and the normal name is an alias. */
20327 #if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost
20334 return hes_getmailhost ();
20339 rm -f conftest.
$ac_objext conftest
$ac_exeext
20340 if { (ac_try
="$ac_link"
20341 case "(($ac_try" in
20342 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20343 *) ac_try_echo=$ac_try;;
20345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20346 (eval "$ac_link") 2>conftest.er1
20348 grep -v '^ *+' conftest.er1 >conftest.err
20350 cat conftest.err >&5
20351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20352 (exit $ac_status); } && {
20353 test -z "$ac_c_werror_flag" ||
20354 test ! -s conftest.err
20355 } && test -s conftest$ac_exeext &&
20356 $as_test_x conftest$ac_exeext; then
20357 ac_cv_func_hes_getmailhost=yes
20359 echo "$as_me: failed program was:" >&5
20360 sed 's/^/| /' conftest.$ac_ext >&5
20362 ac_cv_func_hes_getmailhost=no
20365 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20366 conftest$ac_exeext conftest.$ac_ext
20368 { echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
20369 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6; }
20370 if test $ac_cv_func_hes_getmailhost = yes; then
20373 { echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
20374 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6; }
20375 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
20376 echo $ECHO_N "(cached) $ECHO_C" >&6
20378 ac_check_lib_save_LIBS=$LIBS
20379 LIBS="-lhesiod $RESOLVLIB $LIBS"
20380 cat >conftest.$ac_ext <<_ACEOF
20383 cat confdefs.h >>conftest.$ac_ext
20384 cat >>conftest.$ac_ext <<_ACEOF
20385 /* end confdefs.h. */
20387 /* Override any GCC internal prototype to avoid an error.
20388 Use char because int might match the return type of a GCC
20389 builtin and then its argument prototype would still apply. */
20393 char hes_getmailhost ();
20397 return hes_getmailhost ();
20402 rm -f conftest.$ac_objext conftest$ac_exeext
20403 if { (ac_try="$ac_link"
20404 case "(($ac_try" in
20405 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20406 *) ac_try_echo
=$ac_try;;
20408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20409 (eval "$ac_link") 2>conftest.er1
20411 grep -v '^ *+' conftest.er1
>conftest.err
20413 cat conftest.err
>&5
20414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20415 (exit $ac_status); } && {
20416 test -z "$ac_c_werror_flag" ||
20417 test ! -s conftest.err
20418 } && test -s conftest
$ac_exeext &&
20419 $as_test_x conftest
$ac_exeext; then
20420 ac_cv_lib_hesiod_hes_getmailhost
=yes
20422 echo "$as_me: failed program was:" >&5
20423 sed 's/^/| /' conftest.
$ac_ext >&5
20425 ac_cv_lib_hesiod_hes_getmailhost
=no
20428 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
20429 conftest
$ac_exeext conftest.
$ac_ext
20430 LIBS
=$ac_check_lib_save_LIBS
20432 { echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
20433 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
20434 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
20436 cat >>confdefs.h
<<\_ACEOF
20437 #define HAVE_LIBHESIOD 1
20448 # Do we need libresolv (due to res_init or Hesiod)?
20449 if test "$resolv" = yes ; then
20451 cat >>confdefs.h
<<\_ACEOF
20452 #define HAVE_LIBRESOLV 1
20457 # These tell us which Kerberos-related libraries to use.
20458 if test "${with_kerberos}" != no
; then
20460 { echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
20461 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6; }
20462 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
20463 echo $ECHO_N "(cached) $ECHO_C" >&6
20465 ac_check_lib_save_LIBS
=$LIBS
20466 LIBS
="-lcom_err $LIBS"
20467 cat >conftest.
$ac_ext <<_ACEOF
20470 cat confdefs.h
>>conftest.
$ac_ext
20471 cat >>conftest.
$ac_ext <<_ACEOF
20472 /* end confdefs.h. */
20474 /* Override any GCC internal prototype to avoid an error.
20475 Use char because int might match the return type of a GCC
20476 builtin and then its argument prototype would still apply. */
20489 rm -f conftest.
$ac_objext conftest
$ac_exeext
20490 if { (ac_try
="$ac_link"
20491 case "(($ac_try" in
20492 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20493 *) ac_try_echo=$ac_try;;
20495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20496 (eval "$ac_link") 2>conftest.er1
20498 grep -v '^ *+' conftest.er1 >conftest.err
20500 cat conftest.err >&5
20501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20502 (exit $ac_status); } && {
20503 test -z "$ac_c_werror_flag" ||
20504 test ! -s conftest.err
20505 } && test -s conftest$ac_exeext &&
20506 $as_test_x conftest$ac_exeext; then
20507 ac_cv_lib_com_err_com_err=yes
20509 echo "$as_me: failed program was:" >&5
20510 sed 's/^/| /' conftest.$ac_ext >&5
20512 ac_cv_lib_com_err_com_err=no
20515 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20516 conftest$ac_exeext conftest.$ac_ext
20517 LIBS=$ac_check_lib_save_LIBS
20519 { echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
20520 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6; }
20521 if test $ac_cv_lib_com_err_com_err = yes; then
20522 cat >>confdefs.h <<_ACEOF
20523 #define HAVE_LIBCOM_ERR 1
20526 LIBS="-lcom_err $LIBS"
20531 { echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
20532 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6; }
20533 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
20534 echo $ECHO_N "(cached) $ECHO_C" >&6
20536 ac_check_lib_save_LIBS=$LIBS
20537 LIBS="-lk5crypto $LIBS"
20538 cat >conftest.$ac_ext <<_ACEOF
20541 cat confdefs.h >>conftest.$ac_ext
20542 cat >>conftest.$ac_ext <<_ACEOF
20543 /* end confdefs.h. */
20545 /* Override any GCC internal prototype to avoid an error.
20546 Use char because int might match the return type of a GCC
20547 builtin and then its argument prototype would still apply. */
20551 char mit_des_cbc_encrypt ();
20555 return mit_des_cbc_encrypt ();
20560 rm -f conftest.$ac_objext conftest$ac_exeext
20561 if { (ac_try="$ac_link"
20562 case "(($ac_try" in
20563 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20564 *) ac_try_echo
=$ac_try;;
20566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20567 (eval "$ac_link") 2>conftest.er1
20569 grep -v '^ *+' conftest.er1
>conftest.err
20571 cat conftest.err
>&5
20572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20573 (exit $ac_status); } && {
20574 test -z "$ac_c_werror_flag" ||
20575 test ! -s conftest.err
20576 } && test -s conftest
$ac_exeext &&
20577 $as_test_x conftest
$ac_exeext; then
20578 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=yes
20580 echo "$as_me: failed program was:" >&5
20581 sed 's/^/| /' conftest.
$ac_ext >&5
20583 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=no
20586 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
20587 conftest
$ac_exeext conftest.
$ac_ext
20588 LIBS
=$ac_check_lib_save_LIBS
20590 { echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
20591 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
20592 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
20593 cat >>confdefs.h
<<_ACEOF
20594 #define HAVE_LIBK5CRYPTO 1
20597 LIBS
="-lk5crypto $LIBS"
20602 { echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
20603 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6; }
20604 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
20605 echo $ECHO_N "(cached) $ECHO_C" >&6
20607 ac_check_lib_save_LIBS
=$LIBS
20608 LIBS
="-lcrypto $LIBS"
20609 cat >conftest.
$ac_ext <<_ACEOF
20612 cat confdefs.h
>>conftest.
$ac_ext
20613 cat >>conftest.
$ac_ext <<_ACEOF
20614 /* end confdefs.h. */
20616 /* Override any GCC internal prototype to avoid an error.
20617 Use char because int might match the return type of a GCC
20618 builtin and then its argument prototype would still apply. */
20622 char mit_des_cbc_encrypt ();
20626 return mit_des_cbc_encrypt ();
20631 rm -f conftest.
$ac_objext conftest
$ac_exeext
20632 if { (ac_try
="$ac_link"
20633 case "(($ac_try" in
20634 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20635 *) ac_try_echo=$ac_try;;
20637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20638 (eval "$ac_link") 2>conftest.er1
20640 grep -v '^ *+' conftest.er1 >conftest.err
20642 cat conftest.err >&5
20643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20644 (exit $ac_status); } && {
20645 test -z "$ac_c_werror_flag" ||
20646 test ! -s conftest.err
20647 } && test -s conftest$ac_exeext &&
20648 $as_test_x conftest$ac_exeext; then
20649 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
20651 echo "$as_me: failed program was:" >&5
20652 sed 's/^/| /' conftest.$ac_ext >&5
20654 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
20657 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20658 conftest$ac_exeext conftest.$ac_ext
20659 LIBS=$ac_check_lib_save_LIBS
20661 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
20662 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
20663 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
20664 cat >>confdefs.h <<_ACEOF
20665 #define HAVE_LIBCRYPTO 1
20668 LIBS="-lcrypto $LIBS"
20673 { echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
20674 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6; }
20675 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
20676 echo $ECHO_N "(cached) $ECHO_C" >&6
20678 ac_check_lib_save_LIBS=$LIBS
20679 LIBS="-lkrb5 $LIBS"
20680 cat >conftest.$ac_ext <<_ACEOF
20683 cat confdefs.h >>conftest.$ac_ext
20684 cat >>conftest.$ac_ext <<_ACEOF
20685 /* end confdefs.h. */
20687 /* Override any GCC internal prototype to avoid an error.
20688 Use char because int might match the return type of a GCC
20689 builtin and then its argument prototype would still apply. */
20693 char krb5_init_context ();
20697 return krb5_init_context ();
20702 rm -f conftest.$ac_objext conftest$ac_exeext
20703 if { (ac_try="$ac_link"
20704 case "(($ac_try" in
20705 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20706 *) ac_try_echo
=$ac_try;;
20708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20709 (eval "$ac_link") 2>conftest.er1
20711 grep -v '^ *+' conftest.er1
>conftest.err
20713 cat conftest.err
>&5
20714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20715 (exit $ac_status); } && {
20716 test -z "$ac_c_werror_flag" ||
20717 test ! -s conftest.err
20718 } && test -s conftest
$ac_exeext &&
20719 $as_test_x conftest
$ac_exeext; then
20720 ac_cv_lib_krb5_krb5_init_context
=yes
20722 echo "$as_me: failed program was:" >&5
20723 sed 's/^/| /' conftest.
$ac_ext >&5
20725 ac_cv_lib_krb5_krb5_init_context
=no
20728 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
20729 conftest
$ac_exeext conftest.
$ac_ext
20730 LIBS
=$ac_check_lib_save_LIBS
20732 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
20733 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6; }
20734 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
20735 cat >>confdefs.h
<<_ACEOF
20736 #define HAVE_LIBKRB5 1
20739 LIBS
="-lkrb5 $LIBS"
20743 if test "${with_kerberos5}" = no
; then
20745 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
20746 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6; }
20747 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
20748 echo $ECHO_N "(cached) $ECHO_C" >&6
20750 ac_check_lib_save_LIBS
=$LIBS
20751 LIBS
="-ldes425 $LIBS"
20752 cat >conftest.
$ac_ext <<_ACEOF
20755 cat confdefs.h
>>conftest.
$ac_ext
20756 cat >>conftest.
$ac_ext <<_ACEOF
20757 /* end confdefs.h. */
20759 /* Override any GCC internal prototype to avoid an error.
20760 Use char because int might match the return type of a GCC
20761 builtin and then its argument prototype would still apply. */
20765 char des_cbc_encrypt ();
20769 return des_cbc_encrypt ();
20774 rm -f conftest.
$ac_objext conftest
$ac_exeext
20775 if { (ac_try
="$ac_link"
20776 case "(($ac_try" in
20777 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20778 *) ac_try_echo=$ac_try;;
20780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20781 (eval "$ac_link") 2>conftest.er1
20783 grep -v '^ *+' conftest.er1 >conftest.err
20785 cat conftest.err >&5
20786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20787 (exit $ac_status); } && {
20788 test -z "$ac_c_werror_flag" ||
20789 test ! -s conftest.err
20790 } && test -s conftest$ac_exeext &&
20791 $as_test_x conftest$ac_exeext; then
20792 ac_cv_lib_des425_des_cbc_encrypt=yes
20794 echo "$as_me: failed program was:" >&5
20795 sed 's/^/| /' conftest.$ac_ext >&5
20797 ac_cv_lib_des425_des_cbc_encrypt=no
20800 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20801 conftest$ac_exeext conftest.$ac_ext
20802 LIBS=$ac_check_lib_save_LIBS
20804 { echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
20805 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
20806 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
20807 cat >>confdefs.h <<_ACEOF
20808 #define HAVE_LIBDES425 1
20811 LIBS="-ldes425 $LIBS"
20815 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
20816 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6; }
20817 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
20818 echo $ECHO_N "(cached) $ECHO_C" >&6
20820 ac_check_lib_save_LIBS=$LIBS
20822 cat >conftest.$ac_ext <<_ACEOF
20825 cat confdefs.h >>conftest.$ac_ext
20826 cat >>conftest.$ac_ext <<_ACEOF
20827 /* end confdefs.h. */
20829 /* Override any GCC internal prototype to avoid an error.
20830 Use char because int might match the return type of a GCC
20831 builtin and then its argument prototype would still apply. */
20835 char des_cbc_encrypt ();
20839 return des_cbc_encrypt ();
20844 rm -f conftest.$ac_objext conftest$ac_exeext
20845 if { (ac_try="$ac_link"
20846 case "(($ac_try" in
20847 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20848 *) ac_try_echo
=$ac_try;;
20850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20851 (eval "$ac_link") 2>conftest.er1
20853 grep -v '^ *+' conftest.er1
>conftest.err
20855 cat conftest.err
>&5
20856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20857 (exit $ac_status); } && {
20858 test -z "$ac_c_werror_flag" ||
20859 test ! -s conftest.err
20860 } && test -s conftest
$ac_exeext &&
20861 $as_test_x conftest
$ac_exeext; then
20862 ac_cv_lib_des_des_cbc_encrypt
=yes
20864 echo "$as_me: failed program was:" >&5
20865 sed 's/^/| /' conftest.
$ac_ext >&5
20867 ac_cv_lib_des_des_cbc_encrypt
=no
20870 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
20871 conftest
$ac_exeext conftest.
$ac_ext
20872 LIBS
=$ac_check_lib_save_LIBS
20874 { echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
20875 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6; }
20876 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
20877 cat >>confdefs.h
<<_ACEOF
20878 #define HAVE_LIBDES 1
20888 { echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
20889 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6; }
20890 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
20891 echo $ECHO_N "(cached) $ECHO_C" >&6
20893 ac_check_lib_save_LIBS
=$LIBS
20894 LIBS
="-lkrb4 $LIBS"
20895 cat >conftest.
$ac_ext <<_ACEOF
20898 cat confdefs.h
>>conftest.
$ac_ext
20899 cat >>conftest.
$ac_ext <<_ACEOF
20900 /* end confdefs.h. */
20902 /* Override any GCC internal prototype to avoid an error.
20903 Use char because int might match the return type of a GCC
20904 builtin and then its argument prototype would still apply. */
20908 char krb_get_cred ();
20912 return krb_get_cred ();
20917 rm -f conftest.
$ac_objext conftest
$ac_exeext
20918 if { (ac_try
="$ac_link"
20919 case "(($ac_try" in
20920 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20921 *) ac_try_echo=$ac_try;;
20923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20924 (eval "$ac_link") 2>conftest.er1
20926 grep -v '^ *+' conftest.er1 >conftest.err
20928 cat conftest.err >&5
20929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20930 (exit $ac_status); } && {
20931 test -z "$ac_c_werror_flag" ||
20932 test ! -s conftest.err
20933 } && test -s conftest$ac_exeext &&
20934 $as_test_x conftest$ac_exeext; then
20935 ac_cv_lib_krb4_krb_get_cred=yes
20937 echo "$as_me: failed program was:" >&5
20938 sed 's/^/| /' conftest.$ac_ext >&5
20940 ac_cv_lib_krb4_krb_get_cred=no
20943 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20944 conftest$ac_exeext conftest.$ac_ext
20945 LIBS=$ac_check_lib_save_LIBS
20947 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
20948 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6; }
20949 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
20950 cat >>confdefs.h <<_ACEOF
20951 #define HAVE_LIBKRB4 1
20954 LIBS="-lkrb4 $LIBS"
20958 { echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
20959 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6; }
20960 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
20961 echo $ECHO_N "(cached) $ECHO_C" >&6
20963 ac_check_lib_save_LIBS=$LIBS
20965 cat >conftest.$ac_ext <<_ACEOF
20968 cat confdefs.h >>conftest.$ac_ext
20969 cat >>conftest.$ac_ext <<_ACEOF
20970 /* end confdefs.h. */
20972 /* Override any GCC internal prototype to avoid an error.
20973 Use char because int might match the return type of a GCC
20974 builtin and then its argument prototype would still apply. */
20978 char krb_get_cred ();
20982 return krb_get_cred ();
20987 rm -f conftest.$ac_objext conftest$ac_exeext
20988 if { (ac_try="$ac_link"
20989 case "(($ac_try" in
20990 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20991 *) ac_try_echo
=$ac_try;;
20993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20994 (eval "$ac_link") 2>conftest.er1
20996 grep -v '^ *+' conftest.er1
>conftest.err
20998 cat conftest.err
>&5
20999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21000 (exit $ac_status); } && {
21001 test -z "$ac_c_werror_flag" ||
21002 test ! -s conftest.err
21003 } && test -s conftest
$ac_exeext &&
21004 $as_test_x conftest
$ac_exeext; then
21005 ac_cv_lib_krb_krb_get_cred
=yes
21007 echo "$as_me: failed program was:" >&5
21008 sed 's/^/| /' conftest.
$ac_ext >&5
21010 ac_cv_lib_krb_krb_get_cred
=no
21013 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
21014 conftest
$ac_exeext conftest.
$ac_ext
21015 LIBS
=$ac_check_lib_save_LIBS
21017 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
21018 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6; }
21019 if test $ac_cv_lib_krb_krb_get_cred = yes; then
21020 cat >>confdefs.h
<<_ACEOF
21021 #define HAVE_LIBKRB 1
21032 if test "${with_kerberos5}" != no
; then
21034 for ac_header
in krb5.h
21036 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21037 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21038 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21039 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21040 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21041 echo $ECHO_N "(cached) $ECHO_C" >&6
21043 ac_res
=`eval echo '${'$as_ac_Header'}'`
21044 { echo "$as_me:$LINENO: result: $ac_res" >&5
21045 echo "${ECHO_T}$ac_res" >&6; }
21047 # Is the header compilable?
21048 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21049 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21050 cat >conftest.
$ac_ext <<_ACEOF
21053 cat confdefs.h
>>conftest.
$ac_ext
21054 cat >>conftest.
$ac_ext <<_ACEOF
21055 /* end confdefs.h. */
21056 $ac_includes_default
21057 #include <$ac_header>
21059 rm -f conftest.
$ac_objext
21060 if { (ac_try
="$ac_compile"
21061 case "(($ac_try" in
21062 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21063 *) ac_try_echo=$ac_try;;
21065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21066 (eval "$ac_compile") 2>conftest.er1
21068 grep -v '^ *+' conftest.er1 >conftest.err
21070 cat conftest.err >&5
21071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21072 (exit $ac_status); } && {
21073 test -z "$ac_c_werror_flag" ||
21074 test ! -s conftest.err
21075 } && test -s conftest.$ac_objext; then
21076 ac_header_compiler=yes
21078 echo "$as_me: failed program was:" >&5
21079 sed 's/^/| /' conftest.$ac_ext >&5
21081 ac_header_compiler=no
21084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21085 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21086 echo "${ECHO_T}$ac_header_compiler" >&6; }
21088 # Is the header present?
21089 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21090 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21091 cat >conftest.$ac_ext <<_ACEOF
21094 cat confdefs.h >>conftest.$ac_ext
21095 cat >>conftest.$ac_ext <<_ACEOF
21096 /* end confdefs.h. */
21097 #include <$ac_header>
21099 if { (ac_try="$ac_cpp conftest.$ac_ext"
21100 case "(($ac_try" in
21101 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21102 *) ac_try_echo
=$ac_try;;
21104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21105 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21107 grep -v '^ *+' conftest.er1
>conftest.err
21109 cat conftest.err
>&5
21110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21111 (exit $ac_status); } >/dev
/null
&& {
21112 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21113 test ! -s conftest.err
21115 ac_header_preproc
=yes
21117 echo "$as_me: failed program was:" >&5
21118 sed 's/^/| /' conftest.
$ac_ext >&5
21120 ac_header_preproc
=no
21123 rm -f conftest.err conftest.
$ac_ext
21124 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21125 echo "${ECHO_T}$ac_header_preproc" >&6; }
21127 # So? What about this header?
21128 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21130 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21131 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21132 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21133 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21134 ac_header_preproc
=yes
21137 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21138 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21139 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21140 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21141 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21142 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21143 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21144 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21145 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21146 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21147 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21148 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21152 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21153 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21154 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21155 echo $ECHO_N "(cached) $ECHO_C" >&6
21157 eval "$as_ac_Header=\$ac_header_preproc"
21159 ac_res
=`eval echo '${'$as_ac_Header'}'`
21160 { echo "$as_me:$LINENO: result: $ac_res" >&5
21161 echo "${ECHO_T}$ac_res" >&6; }
21164 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21165 cat >>confdefs.h
<<_ACEOF
21166 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21168 { echo "$as_me:$LINENO: checking for krb5_error.text" >&5
21169 echo $ECHO_N "checking for krb5_error.text... $ECHO_C" >&6; }
21170 if test "${ac_cv_member_krb5_error_text+set}" = set; then
21171 echo $ECHO_N "(cached) $ECHO_C" >&6
21173 cat >conftest.
$ac_ext <<_ACEOF
21176 cat confdefs.h
>>conftest.
$ac_ext
21177 cat >>conftest.
$ac_ext <<_ACEOF
21178 /* end confdefs.h. */
21184 static krb5_error ac_aggr;
21191 rm -f conftest.
$ac_objext
21192 if { (ac_try
="$ac_compile"
21193 case "(($ac_try" in
21194 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21195 *) ac_try_echo=$ac_try;;
21197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21198 (eval "$ac_compile") 2>conftest.er1
21200 grep -v '^ *+' conftest.er1 >conftest.err
21202 cat conftest.err >&5
21203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21204 (exit $ac_status); } && {
21205 test -z "$ac_c_werror_flag" ||
21206 test ! -s conftest.err
21207 } && test -s conftest.$ac_objext; then
21208 ac_cv_member_krb5_error_text=yes
21210 echo "$as_me: failed program was:" >&5
21211 sed 's/^/| /' conftest.$ac_ext >&5
21213 cat >conftest.$ac_ext <<_ACEOF
21216 cat confdefs.h >>conftest.$ac_ext
21217 cat >>conftest.$ac_ext <<_ACEOF
21218 /* end confdefs.h. */
21224 static krb5_error ac_aggr;
21225 if (sizeof ac_aggr.text)
21231 rm -f conftest.$ac_objext
21232 if { (ac_try="$ac_compile"
21233 case "(($ac_try" in
21234 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21235 *) ac_try_echo
=$ac_try;;
21237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21238 (eval "$ac_compile") 2>conftest.er1
21240 grep -v '^ *+' conftest.er1
>conftest.err
21242 cat conftest.err
>&5
21243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21244 (exit $ac_status); } && {
21245 test -z "$ac_c_werror_flag" ||
21246 test ! -s conftest.err
21247 } && test -s conftest.
$ac_objext; then
21248 ac_cv_member_krb5_error_text
=yes
21250 echo "$as_me: failed program was:" >&5
21251 sed 's/^/| /' conftest.
$ac_ext >&5
21253 ac_cv_member_krb5_error_text
=no
21256 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21259 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21261 { echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text" >&5
21262 echo "${ECHO_T}$ac_cv_member_krb5_error_text" >&6; }
21263 if test $ac_cv_member_krb5_error_text = yes; then
21265 cat >>confdefs.h
<<_ACEOF
21266 #define HAVE_KRB5_ERROR_TEXT 1
21271 { echo "$as_me:$LINENO: checking for krb5_error.e_text" >&5
21272 echo $ECHO_N "checking for krb5_error.e_text... $ECHO_C" >&6; }
21273 if test "${ac_cv_member_krb5_error_e_text+set}" = set; then
21274 echo $ECHO_N "(cached) $ECHO_C" >&6
21276 cat >conftest.
$ac_ext <<_ACEOF
21279 cat confdefs.h
>>conftest.
$ac_ext
21280 cat >>conftest.
$ac_ext <<_ACEOF
21281 /* end confdefs.h. */
21287 static krb5_error ac_aggr;
21288 if (ac_aggr.e_text)
21294 rm -f conftest.
$ac_objext
21295 if { (ac_try
="$ac_compile"
21296 case "(($ac_try" in
21297 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21298 *) ac_try_echo=$ac_try;;
21300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21301 (eval "$ac_compile") 2>conftest.er1
21303 grep -v '^ *+' conftest.er1 >conftest.err
21305 cat conftest.err >&5
21306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21307 (exit $ac_status); } && {
21308 test -z "$ac_c_werror_flag" ||
21309 test ! -s conftest.err
21310 } && test -s conftest.$ac_objext; then
21311 ac_cv_member_krb5_error_e_text=yes
21313 echo "$as_me: failed program was:" >&5
21314 sed 's/^/| /' conftest.$ac_ext >&5
21316 cat >conftest.$ac_ext <<_ACEOF
21319 cat confdefs.h >>conftest.$ac_ext
21320 cat >>conftest.$ac_ext <<_ACEOF
21321 /* end confdefs.h. */
21327 static krb5_error ac_aggr;
21328 if (sizeof ac_aggr.e_text)
21334 rm -f conftest.$ac_objext
21335 if { (ac_try="$ac_compile"
21336 case "(($ac_try" in
21337 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21338 *) ac_try_echo
=$ac_try;;
21340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21341 (eval "$ac_compile") 2>conftest.er1
21343 grep -v '^ *+' conftest.er1
>conftest.err
21345 cat conftest.err
>&5
21346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21347 (exit $ac_status); } && {
21348 test -z "$ac_c_werror_flag" ||
21349 test ! -s conftest.err
21350 } && test -s conftest.
$ac_objext; then
21351 ac_cv_member_krb5_error_e_text
=yes
21353 echo "$as_me: failed program was:" >&5
21354 sed 's/^/| /' conftest.
$ac_ext >&5
21356 ac_cv_member_krb5_error_e_text
=no
21359 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21362 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21364 { echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_text" >&5
21365 echo "${ECHO_T}$ac_cv_member_krb5_error_e_text" >&6; }
21366 if test $ac_cv_member_krb5_error_e_text = yes; then
21368 cat >>confdefs.h
<<_ACEOF
21369 #define HAVE_KRB5_ERROR_E_TEXT 1
21381 for ac_header
in des.h
21383 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21384 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21385 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21386 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21387 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21388 echo $ECHO_N "(cached) $ECHO_C" >&6
21390 ac_res
=`eval echo '${'$as_ac_Header'}'`
21391 { echo "$as_me:$LINENO: result: $ac_res" >&5
21392 echo "${ECHO_T}$ac_res" >&6; }
21394 # Is the header compilable?
21395 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21396 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21397 cat >conftest.
$ac_ext <<_ACEOF
21400 cat confdefs.h
>>conftest.
$ac_ext
21401 cat >>conftest.
$ac_ext <<_ACEOF
21402 /* end confdefs.h. */
21403 $ac_includes_default
21404 #include <$ac_header>
21406 rm -f conftest.
$ac_objext
21407 if { (ac_try
="$ac_compile"
21408 case "(($ac_try" in
21409 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21410 *) ac_try_echo=$ac_try;;
21412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21413 (eval "$ac_compile") 2>conftest.er1
21415 grep -v '^ *+' conftest.er1 >conftest.err
21417 cat conftest.err >&5
21418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21419 (exit $ac_status); } && {
21420 test -z "$ac_c_werror_flag" ||
21421 test ! -s conftest.err
21422 } && test -s conftest.$ac_objext; then
21423 ac_header_compiler=yes
21425 echo "$as_me: failed program was:" >&5
21426 sed 's/^/| /' conftest.$ac_ext >&5
21428 ac_header_compiler=no
21431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21432 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21433 echo "${ECHO_T}$ac_header_compiler" >&6; }
21435 # Is the header present?
21436 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21437 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21438 cat >conftest.$ac_ext <<_ACEOF
21441 cat confdefs.h >>conftest.$ac_ext
21442 cat >>conftest.$ac_ext <<_ACEOF
21443 /* end confdefs.h. */
21444 #include <$ac_header>
21446 if { (ac_try="$ac_cpp conftest.$ac_ext"
21447 case "(($ac_try" in
21448 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21449 *) ac_try_echo
=$ac_try;;
21451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21452 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21454 grep -v '^ *+' conftest.er1
>conftest.err
21456 cat conftest.err
>&5
21457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21458 (exit $ac_status); } >/dev
/null
&& {
21459 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21460 test ! -s conftest.err
21462 ac_header_preproc
=yes
21464 echo "$as_me: failed program was:" >&5
21465 sed 's/^/| /' conftest.
$ac_ext >&5
21467 ac_header_preproc
=no
21470 rm -f conftest.err conftest.
$ac_ext
21471 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21472 echo "${ECHO_T}$ac_header_preproc" >&6; }
21474 # So? What about this header?
21475 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21477 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21478 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21479 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21480 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21481 ac_header_preproc
=yes
21484 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21485 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21486 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21487 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21488 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21489 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21490 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21491 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21492 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21493 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21494 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21495 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21499 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21500 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21501 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21502 echo $ECHO_N "(cached) $ECHO_C" >&6
21504 eval "$as_ac_Header=\$ac_header_preproc"
21506 ac_res
=`eval echo '${'$as_ac_Header'}'`
21507 { echo "$as_me:$LINENO: result: $ac_res" >&5
21508 echo "${ECHO_T}$ac_res" >&6; }
21511 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21512 cat >>confdefs.h
<<_ACEOF
21513 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21518 for ac_header
in kerberosIV
/des.h
21520 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21521 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21522 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21523 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21524 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21525 echo $ECHO_N "(cached) $ECHO_C" >&6
21527 ac_res
=`eval echo '${'$as_ac_Header'}'`
21528 { echo "$as_me:$LINENO: result: $ac_res" >&5
21529 echo "${ECHO_T}$ac_res" >&6; }
21531 # Is the header compilable?
21532 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21533 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21534 cat >conftest.
$ac_ext <<_ACEOF
21537 cat confdefs.h
>>conftest.
$ac_ext
21538 cat >>conftest.
$ac_ext <<_ACEOF
21539 /* end confdefs.h. */
21540 $ac_includes_default
21541 #include <$ac_header>
21543 rm -f conftest.
$ac_objext
21544 if { (ac_try
="$ac_compile"
21545 case "(($ac_try" in
21546 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21547 *) ac_try_echo=$ac_try;;
21549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21550 (eval "$ac_compile") 2>conftest.er1
21552 grep -v '^ *+' conftest.er1 >conftest.err
21554 cat conftest.err >&5
21555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21556 (exit $ac_status); } && {
21557 test -z "$ac_c_werror_flag" ||
21558 test ! -s conftest.err
21559 } && test -s conftest.$ac_objext; then
21560 ac_header_compiler=yes
21562 echo "$as_me: failed program was:" >&5
21563 sed 's/^/| /' conftest.$ac_ext >&5
21565 ac_header_compiler=no
21568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21569 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21570 echo "${ECHO_T}$ac_header_compiler" >&6; }
21572 # Is the header present?
21573 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21574 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21575 cat >conftest.$ac_ext <<_ACEOF
21578 cat confdefs.h >>conftest.$ac_ext
21579 cat >>conftest.$ac_ext <<_ACEOF
21580 /* end confdefs.h. */
21581 #include <$ac_header>
21583 if { (ac_try="$ac_cpp conftest.$ac_ext"
21584 case "(($ac_try" in
21585 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21586 *) ac_try_echo
=$ac_try;;
21588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21589 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21591 grep -v '^ *+' conftest.er1
>conftest.err
21593 cat conftest.err
>&5
21594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21595 (exit $ac_status); } >/dev
/null
&& {
21596 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21597 test ! -s conftest.err
21599 ac_header_preproc
=yes
21601 echo "$as_me: failed program was:" >&5
21602 sed 's/^/| /' conftest.
$ac_ext >&5
21604 ac_header_preproc
=no
21607 rm -f conftest.err conftest.
$ac_ext
21608 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21609 echo "${ECHO_T}$ac_header_preproc" >&6; }
21611 # So? What about this header?
21612 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21614 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21615 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21616 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21617 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21618 ac_header_preproc
=yes
21621 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21622 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21623 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21624 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21625 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21626 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21627 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21628 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21629 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21630 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21631 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21632 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21636 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21637 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21638 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21639 echo $ECHO_N "(cached) $ECHO_C" >&6
21641 eval "$as_ac_Header=\$ac_header_preproc"
21643 ac_res
=`eval echo '${'$as_ac_Header'}'`
21644 { echo "$as_me:$LINENO: result: $ac_res" >&5
21645 echo "${ECHO_T}$ac_res" >&6; }
21648 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21649 cat >>confdefs.h
<<_ACEOF
21650 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21655 for ac_header
in kerberos
/des.h
21657 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21658 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21659 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21660 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21661 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21662 echo $ECHO_N "(cached) $ECHO_C" >&6
21664 ac_res
=`eval echo '${'$as_ac_Header'}'`
21665 { echo "$as_me:$LINENO: result: $ac_res" >&5
21666 echo "${ECHO_T}$ac_res" >&6; }
21668 # Is the header compilable?
21669 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21670 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21671 cat >conftest.
$ac_ext <<_ACEOF
21674 cat confdefs.h
>>conftest.
$ac_ext
21675 cat >>conftest.
$ac_ext <<_ACEOF
21676 /* end confdefs.h. */
21677 $ac_includes_default
21678 #include <$ac_header>
21680 rm -f conftest.
$ac_objext
21681 if { (ac_try
="$ac_compile"
21682 case "(($ac_try" in
21683 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21684 *) ac_try_echo=$ac_try;;
21686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21687 (eval "$ac_compile") 2>conftest.er1
21689 grep -v '^ *+' conftest.er1 >conftest.err
21691 cat conftest.err >&5
21692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21693 (exit $ac_status); } && {
21694 test -z "$ac_c_werror_flag" ||
21695 test ! -s conftest.err
21696 } && test -s conftest.$ac_objext; then
21697 ac_header_compiler=yes
21699 echo "$as_me: failed program was:" >&5
21700 sed 's/^/| /' conftest.$ac_ext >&5
21702 ac_header_compiler=no
21705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21706 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21707 echo "${ECHO_T}$ac_header_compiler" >&6; }
21709 # Is the header present?
21710 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21711 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21712 cat >conftest.$ac_ext <<_ACEOF
21715 cat confdefs.h >>conftest.$ac_ext
21716 cat >>conftest.$ac_ext <<_ACEOF
21717 /* end confdefs.h. */
21718 #include <$ac_header>
21720 if { (ac_try="$ac_cpp conftest.$ac_ext"
21721 case "(($ac_try" in
21722 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21723 *) ac_try_echo
=$ac_try;;
21725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21726 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21728 grep -v '^ *+' conftest.er1
>conftest.err
21730 cat conftest.err
>&5
21731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21732 (exit $ac_status); } >/dev
/null
&& {
21733 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21734 test ! -s conftest.err
21736 ac_header_preproc
=yes
21738 echo "$as_me: failed program was:" >&5
21739 sed 's/^/| /' conftest.
$ac_ext >&5
21741 ac_header_preproc
=no
21744 rm -f conftest.err conftest.
$ac_ext
21745 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21746 echo "${ECHO_T}$ac_header_preproc" >&6; }
21748 # So? What about this header?
21749 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21751 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21752 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21753 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21754 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21755 ac_header_preproc
=yes
21758 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21759 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21760 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21761 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21762 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21763 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21764 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21765 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21766 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21767 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21768 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21769 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21773 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21774 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21775 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21776 echo $ECHO_N "(cached) $ECHO_C" >&6
21778 eval "$as_ac_Header=\$ac_header_preproc"
21780 ac_res
=`eval echo '${'$as_ac_Header'}'`
21781 { echo "$as_me:$LINENO: result: $ac_res" >&5
21782 echo "${ECHO_T}$ac_res" >&6; }
21785 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21786 cat >>confdefs.h
<<_ACEOF
21787 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21803 for ac_header
in krb.h
21805 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21806 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21807 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21808 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21809 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21810 echo $ECHO_N "(cached) $ECHO_C" >&6
21812 ac_res
=`eval echo '${'$as_ac_Header'}'`
21813 { echo "$as_me:$LINENO: result: $ac_res" >&5
21814 echo "${ECHO_T}$ac_res" >&6; }
21816 # Is the header compilable?
21817 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21818 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21819 cat >conftest.
$ac_ext <<_ACEOF
21822 cat confdefs.h
>>conftest.
$ac_ext
21823 cat >>conftest.
$ac_ext <<_ACEOF
21824 /* end confdefs.h. */
21825 $ac_includes_default
21826 #include <$ac_header>
21828 rm -f conftest.
$ac_objext
21829 if { (ac_try
="$ac_compile"
21830 case "(($ac_try" in
21831 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21832 *) ac_try_echo=$ac_try;;
21834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21835 (eval "$ac_compile") 2>conftest.er1
21837 grep -v '^ *+' conftest.er1 >conftest.err
21839 cat conftest.err >&5
21840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21841 (exit $ac_status); } && {
21842 test -z "$ac_c_werror_flag" ||
21843 test ! -s conftest.err
21844 } && test -s conftest.$ac_objext; then
21845 ac_header_compiler=yes
21847 echo "$as_me: failed program was:" >&5
21848 sed 's/^/| /' conftest.$ac_ext >&5
21850 ac_header_compiler=no
21853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21854 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21855 echo "${ECHO_T}$ac_header_compiler" >&6; }
21857 # Is the header present?
21858 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21859 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21860 cat >conftest.$ac_ext <<_ACEOF
21863 cat confdefs.h >>conftest.$ac_ext
21864 cat >>conftest.$ac_ext <<_ACEOF
21865 /* end confdefs.h. */
21866 #include <$ac_header>
21868 if { (ac_try="$ac_cpp conftest.$ac_ext"
21869 case "(($ac_try" in
21870 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21871 *) ac_try_echo
=$ac_try;;
21873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21874 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21876 grep -v '^ *+' conftest.er1
>conftest.err
21878 cat conftest.err
>&5
21879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21880 (exit $ac_status); } >/dev
/null
&& {
21881 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21882 test ! -s conftest.err
21884 ac_header_preproc
=yes
21886 echo "$as_me: failed program was:" >&5
21887 sed 's/^/| /' conftest.
$ac_ext >&5
21889 ac_header_preproc
=no
21892 rm -f conftest.err conftest.
$ac_ext
21893 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21894 echo "${ECHO_T}$ac_header_preproc" >&6; }
21896 # So? What about this header?
21897 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21899 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21900 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21901 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21902 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21903 ac_header_preproc
=yes
21906 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21907 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21908 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21909 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21910 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21911 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21912 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21913 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21914 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21915 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21916 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21917 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21921 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21922 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21923 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21924 echo $ECHO_N "(cached) $ECHO_C" >&6
21926 eval "$as_ac_Header=\$ac_header_preproc"
21928 ac_res
=`eval echo '${'$as_ac_Header'}'`
21929 { echo "$as_me:$LINENO: result: $ac_res" >&5
21930 echo "${ECHO_T}$ac_res" >&6; }
21933 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21934 cat >>confdefs.h
<<_ACEOF
21935 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21940 for ac_header
in kerberosIV
/krb.h
21942 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21943 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21944 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21945 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21946 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21947 echo $ECHO_N "(cached) $ECHO_C" >&6
21949 ac_res
=`eval echo '${'$as_ac_Header'}'`
21950 { echo "$as_me:$LINENO: result: $ac_res" >&5
21951 echo "${ECHO_T}$ac_res" >&6; }
21953 # Is the header compilable?
21954 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21955 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21956 cat >conftest.
$ac_ext <<_ACEOF
21959 cat confdefs.h
>>conftest.
$ac_ext
21960 cat >>conftest.
$ac_ext <<_ACEOF
21961 /* end confdefs.h. */
21962 $ac_includes_default
21963 #include <$ac_header>
21965 rm -f conftest.
$ac_objext
21966 if { (ac_try
="$ac_compile"
21967 case "(($ac_try" in
21968 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21969 *) ac_try_echo=$ac_try;;
21971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21972 (eval "$ac_compile") 2>conftest.er1
21974 grep -v '^ *+' conftest.er1 >conftest.err
21976 cat conftest.err >&5
21977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21978 (exit $ac_status); } && {
21979 test -z "$ac_c_werror_flag" ||
21980 test ! -s conftest.err
21981 } && test -s conftest.$ac_objext; then
21982 ac_header_compiler=yes
21984 echo "$as_me: failed program was:" >&5
21985 sed 's/^/| /' conftest.$ac_ext >&5
21987 ac_header_compiler=no
21990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21991 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21992 echo "${ECHO_T}$ac_header_compiler" >&6; }
21994 # Is the header present?
21995 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21996 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21997 cat >conftest.$ac_ext <<_ACEOF
22000 cat confdefs.h >>conftest.$ac_ext
22001 cat >>conftest.$ac_ext <<_ACEOF
22002 /* end confdefs.h. */
22003 #include <$ac_header>
22005 if { (ac_try="$ac_cpp conftest.$ac_ext"
22006 case "(($ac_try" in
22007 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22008 *) ac_try_echo
=$ac_try;;
22010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22011 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22013 grep -v '^ *+' conftest.er1
>conftest.err
22015 cat conftest.err
>&5
22016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22017 (exit $ac_status); } >/dev
/null
&& {
22018 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22019 test ! -s conftest.err
22021 ac_header_preproc
=yes
22023 echo "$as_me: failed program was:" >&5
22024 sed 's/^/| /' conftest.
$ac_ext >&5
22026 ac_header_preproc
=no
22029 rm -f conftest.err conftest.
$ac_ext
22030 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22031 echo "${ECHO_T}$ac_header_preproc" >&6; }
22033 # So? What about this header?
22034 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22036 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22037 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22038 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22039 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22040 ac_header_preproc
=yes
22043 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22044 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22045 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22046 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22047 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22048 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22049 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22050 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22051 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22052 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22053 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22054 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22058 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22059 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22060 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22061 echo $ECHO_N "(cached) $ECHO_C" >&6
22063 eval "$as_ac_Header=\$ac_header_preproc"
22065 ac_res
=`eval echo '${'$as_ac_Header'}'`
22066 { echo "$as_me:$LINENO: result: $ac_res" >&5
22067 echo "${ECHO_T}$ac_res" >&6; }
22070 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22071 cat >>confdefs.h
<<_ACEOF
22072 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22077 for ac_header
in kerberos
/krb.h
22079 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22080 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22081 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22082 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22083 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22084 echo $ECHO_N "(cached) $ECHO_C" >&6
22086 ac_res
=`eval echo '${'$as_ac_Header'}'`
22087 { echo "$as_me:$LINENO: result: $ac_res" >&5
22088 echo "${ECHO_T}$ac_res" >&6; }
22090 # Is the header compilable?
22091 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22092 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22093 cat >conftest.
$ac_ext <<_ACEOF
22096 cat confdefs.h
>>conftest.
$ac_ext
22097 cat >>conftest.
$ac_ext <<_ACEOF
22098 /* end confdefs.h. */
22099 $ac_includes_default
22100 #include <$ac_header>
22102 rm -f conftest.
$ac_objext
22103 if { (ac_try
="$ac_compile"
22104 case "(($ac_try" in
22105 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22106 *) ac_try_echo=$ac_try;;
22108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22109 (eval "$ac_compile") 2>conftest.er1
22111 grep -v '^ *+' conftest.er1 >conftest.err
22113 cat conftest.err >&5
22114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22115 (exit $ac_status); } && {
22116 test -z "$ac_c_werror_flag" ||
22117 test ! -s conftest.err
22118 } && test -s conftest.$ac_objext; then
22119 ac_header_compiler=yes
22121 echo "$as_me: failed program was:" >&5
22122 sed 's/^/| /' conftest.$ac_ext >&5
22124 ac_header_compiler=no
22127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22128 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22129 echo "${ECHO_T}$ac_header_compiler" >&6; }
22131 # Is the header present?
22132 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22133 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22134 cat >conftest.$ac_ext <<_ACEOF
22137 cat confdefs.h >>conftest.$ac_ext
22138 cat >>conftest.$ac_ext <<_ACEOF
22139 /* end confdefs.h. */
22140 #include <$ac_header>
22142 if { (ac_try="$ac_cpp conftest.$ac_ext"
22143 case "(($ac_try" in
22144 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22145 *) ac_try_echo
=$ac_try;;
22147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22148 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22150 grep -v '^ *+' conftest.er1
>conftest.err
22152 cat conftest.err
>&5
22153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22154 (exit $ac_status); } >/dev
/null
&& {
22155 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22156 test ! -s conftest.err
22158 ac_header_preproc
=yes
22160 echo "$as_me: failed program was:" >&5
22161 sed 's/^/| /' conftest.
$ac_ext >&5
22163 ac_header_preproc
=no
22166 rm -f conftest.err conftest.
$ac_ext
22167 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22168 echo "${ECHO_T}$ac_header_preproc" >&6; }
22170 # So? What about this header?
22171 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22173 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22174 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22175 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22176 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22177 ac_header_preproc
=yes
22180 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22181 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22182 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22183 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22184 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22185 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22186 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22187 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22188 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22189 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22190 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22191 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22195 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22196 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22197 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22198 echo $ECHO_N "(cached) $ECHO_C" >&6
22200 eval "$as_ac_Header=\$ac_header_preproc"
22202 ac_res
=`eval echo '${'$as_ac_Header'}'`
22203 { echo "$as_me:$LINENO: result: $ac_res" >&5
22204 echo "${ECHO_T}$ac_res" >&6; }
22207 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22208 cat >>confdefs.h
<<_ACEOF
22209 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22226 for ac_header
in com_err.h
22228 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22229 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22230 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22231 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22232 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22233 echo $ECHO_N "(cached) $ECHO_C" >&6
22235 ac_res
=`eval echo '${'$as_ac_Header'}'`
22236 { echo "$as_me:$LINENO: result: $ac_res" >&5
22237 echo "${ECHO_T}$ac_res" >&6; }
22239 # Is the header compilable?
22240 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22241 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22242 cat >conftest.
$ac_ext <<_ACEOF
22245 cat confdefs.h
>>conftest.
$ac_ext
22246 cat >>conftest.
$ac_ext <<_ACEOF
22247 /* end confdefs.h. */
22248 $ac_includes_default
22249 #include <$ac_header>
22251 rm -f conftest.
$ac_objext
22252 if { (ac_try
="$ac_compile"
22253 case "(($ac_try" in
22254 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22255 *) ac_try_echo=$ac_try;;
22257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22258 (eval "$ac_compile") 2>conftest.er1
22260 grep -v '^ *+' conftest.er1 >conftest.err
22262 cat conftest.err >&5
22263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22264 (exit $ac_status); } && {
22265 test -z "$ac_c_werror_flag" ||
22266 test ! -s conftest.err
22267 } && test -s conftest.$ac_objext; then
22268 ac_header_compiler=yes
22270 echo "$as_me: failed program was:" >&5
22271 sed 's/^/| /' conftest.$ac_ext >&5
22273 ac_header_compiler=no
22276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22277 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22278 echo "${ECHO_T}$ac_header_compiler" >&6; }
22280 # Is the header present?
22281 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22282 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22283 cat >conftest.$ac_ext <<_ACEOF
22286 cat confdefs.h >>conftest.$ac_ext
22287 cat >>conftest.$ac_ext <<_ACEOF
22288 /* end confdefs.h. */
22289 #include <$ac_header>
22291 if { (ac_try="$ac_cpp conftest.$ac_ext"
22292 case "(($ac_try" in
22293 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22294 *) ac_try_echo
=$ac_try;;
22296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22297 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22299 grep -v '^ *+' conftest.er1
>conftest.err
22301 cat conftest.err
>&5
22302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22303 (exit $ac_status); } >/dev
/null
&& {
22304 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22305 test ! -s conftest.err
22307 ac_header_preproc
=yes
22309 echo "$as_me: failed program was:" >&5
22310 sed 's/^/| /' conftest.
$ac_ext >&5
22312 ac_header_preproc
=no
22315 rm -f conftest.err conftest.
$ac_ext
22316 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22317 echo "${ECHO_T}$ac_header_preproc" >&6; }
22319 # So? What about this header?
22320 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22322 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22323 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22324 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22325 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22326 ac_header_preproc
=yes
22329 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22330 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22331 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22332 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22333 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22334 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22335 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22336 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22337 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22338 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22339 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22340 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22344 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22345 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22346 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22347 echo $ECHO_N "(cached) $ECHO_C" >&6
22349 eval "$as_ac_Header=\$ac_header_preproc"
22351 ac_res
=`eval echo '${'$as_ac_Header'}'`
22352 { echo "$as_me:$LINENO: result: $ac_res" >&5
22353 echo "${ECHO_T}$ac_res" >&6; }
22356 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22357 cat >>confdefs.h
<<_ACEOF
22358 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22367 # Solaris requires -lintl if you want strerror (which calls dgettext)
22368 # to return localized messages.
22370 { echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
22371 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6; }
22372 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
22373 echo $ECHO_N "(cached) $ECHO_C" >&6
22375 ac_check_lib_save_LIBS
=$LIBS
22376 LIBS
="-lintl $LIBS"
22377 cat >conftest.
$ac_ext <<_ACEOF
22380 cat confdefs.h
>>conftest.
$ac_ext
22381 cat >>conftest.
$ac_ext <<_ACEOF
22382 /* end confdefs.h. */
22384 /* Override any GCC internal prototype to avoid an error.
22385 Use char because int might match the return type of a GCC
22386 builtin and then its argument prototype would still apply. */
22394 return dgettext ();
22399 rm -f conftest.
$ac_objext conftest
$ac_exeext
22400 if { (ac_try
="$ac_link"
22401 case "(($ac_try" in
22402 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22403 *) ac_try_echo=$ac_try;;
22405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22406 (eval "$ac_link") 2>conftest.er1
22408 grep -v '^ *+' conftest.er1 >conftest.err
22410 cat conftest.err >&5
22411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22412 (exit $ac_status); } && {
22413 test -z "$ac_c_werror_flag" ||
22414 test ! -s conftest.err
22415 } && test -s conftest$ac_exeext &&
22416 $as_test_x conftest$ac_exeext; then
22417 ac_cv_lib_intl_dgettext=yes
22419 echo "$as_me: failed program was:" >&5
22420 sed 's/^/| /' conftest.$ac_ext >&5
22422 ac_cv_lib_intl_dgettext=no
22425 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22426 conftest$ac_exeext conftest.$ac_ext
22427 LIBS=$ac_check_lib_save_LIBS
22429 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
22430 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
22431 if test $ac_cv_lib_intl_dgettext = yes; then
22432 cat >>confdefs.h <<_ACEOF
22433 #define HAVE_LIBINTL 1
22436 LIBS="-lintl $LIBS"
22441 { echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
22442 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6; }
22443 if test "${emacs_cv_localtime_cache+set}" = set; then
22444 echo $ECHO_N "(cached) $ECHO_C" >&6
22446 if test x$ac_cv_func_tzset = xyes; then
22447 if test "$cross_compiling" = yes; then
22448 # If we have tzset, assume the worst when cross-compiling.
22449 emacs_cv_localtime_cache=yes
22451 cat >conftest.$ac_ext <<_ACEOF
22454 cat confdefs.h >>conftest.$ac_ext
22455 cat >>conftest.$ac_ext <<_ACEOF
22456 /* end confdefs.h. */
22458 extern char **environ;
22462 for (to = from = environ; (*to = *from); from++)
22463 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
22466 char TZ_GMT0[] = "TZ=GMT0";
22467 char TZ_PST8[] = "TZ=PST8";
22470 time_t now = time ((time_t *) 0);
22471 int hour_GMT0, hour_unset;
22472 if (putenv (TZ_GMT0) != 0)
22474 hour_GMT0 = localtime (&now)->tm_hour;
22476 hour_unset = localtime (&now)->tm_hour;
22477 if (putenv (TZ_PST8) != 0)
22479 if (localtime (&now)->tm_hour == hour_GMT0)
22482 if (localtime (&now)->tm_hour != hour_unset)
22487 rm -f conftest$ac_exeext
22488 if { (ac_try="$ac_link"
22489 case "(($ac_try" in
22490 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22491 *) ac_try_echo
=$ac_try;;
22493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22494 (eval "$ac_link") 2>&5
22496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22497 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
22498 { (case "(($ac_try" in
22499 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22500 *) ac_try_echo=$ac_try;;
22502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22503 (eval "$ac_try") 2>&5
22505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22506 (exit $ac_status); }; }; then
22507 emacs_cv_localtime_cache=no
22509 echo "$as_me: program exited with status $ac_status" >&5
22510 echo "$as_me: failed program was:" >&5
22511 sed 's/^/| /' conftest.$ac_ext >&5
22513 ( exit $ac_status )
22514 emacs_cv_localtime_cache=yes
22516 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22521 # If we lack tzset, report that localtime does not cache TZ,
22522 # since we can't invalidate the cache if we don't have tzset.
22523 emacs_cv_localtime_cache=no
22526 { echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
22527 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6; }
22528 if test $emacs_cv_localtime_cache = yes; then
22530 cat >>confdefs.h <<\_ACEOF
22531 #define LOCALTIME_CACHE 1
22536 if test "x$HAVE_TIMEVAL" = xyes; then
22538 for ac_func in gettimeofday
22540 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
22541 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22542 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22543 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22544 echo $ECHO_N "(cached) $ECHO_C" >&6
22546 cat >conftest.$ac_ext <<_ACEOF
22549 cat confdefs.h >>conftest.$ac_ext
22550 cat >>conftest.$ac_ext <<_ACEOF
22551 /* end confdefs.h. */
22552 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22553 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22554 #define $ac_func innocuous_$ac_func
22556 /* System header to define __stub macros and hopefully few prototypes,
22557 which can conflict with char $ac_func (); below.
22558 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22559 <limits.h> exists even on freestanding compilers. */
22562 # include <limits.h>
22564 # include <assert.h>
22569 /* Override any GCC internal prototype to avoid an error.
22570 Use char because int might match the return type of a GCC
22571 builtin and then its argument prototype would still apply. */
22576 /* The GNU C library defines this for functions which it implements
22577 to always fail with ENOSYS. Some functions are actually named
22578 something starting with __ and the normal name is an alias. */
22579 #if defined __stub_$ac_func || defined __stub___$ac_func
22586 return $ac_func ();
22591 rm -f conftest.$ac_objext conftest$ac_exeext
22592 if { (ac_try="$ac_link"
22593 case "(($ac_try" in
22594 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22595 *) ac_try_echo
=$ac_try;;
22597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22598 (eval "$ac_link") 2>conftest.er1
22600 grep -v '^ *+' conftest.er1
>conftest.err
22602 cat conftest.err
>&5
22603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22604 (exit $ac_status); } && {
22605 test -z "$ac_c_werror_flag" ||
22606 test ! -s conftest.err
22607 } && test -s conftest
$ac_exeext &&
22608 $as_test_x conftest
$ac_exeext; then
22609 eval "$as_ac_var=yes"
22611 echo "$as_me: failed program was:" >&5
22612 sed 's/^/| /' conftest.
$ac_ext >&5
22614 eval "$as_ac_var=no"
22617 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
22618 conftest
$ac_exeext conftest.
$ac_ext
22620 ac_res
=`eval echo '${'$as_ac_var'}'`
22621 { echo "$as_me:$LINENO: result: $ac_res" >&5
22622 echo "${ECHO_T}$ac_res" >&6; }
22623 if test `eval echo '${'$as_ac_var'}'` = yes; then
22624 cat >>confdefs.h
<<_ACEOF
22625 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22631 if test $ac_cv_func_gettimeofday = yes; then
22632 { echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
22633 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6; }
22634 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
22635 echo $ECHO_N "(cached) $ECHO_C" >&6
22637 cat >conftest.
$ac_ext <<_ACEOF
22640 cat confdefs.h
>>conftest.
$ac_ext
22641 cat >>conftest.
$ac_ext <<_ACEOF
22642 /* end confdefs.h. */
22644 #ifdef TIME_WITH_SYS_TIME
22645 #include <sys/time.h>
22648 #ifdef HAVE_SYS_TIME_H
22649 #include <sys/time.h>
22657 struct timeval time;
22658 gettimeofday (&time, 0);
22663 rm -f conftest.
$ac_objext
22664 if { (ac_try
="$ac_compile"
22665 case "(($ac_try" in
22666 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22667 *) ac_try_echo=$ac_try;;
22669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22670 (eval "$ac_compile") 2>conftest.er1
22672 grep -v '^ *+' conftest.er1 >conftest.err
22674 cat conftest.err >&5
22675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22676 (exit $ac_status); } && {
22677 test -z "$ac_c_werror_flag" ||
22678 test ! -s conftest.err
22679 } && test -s conftest.$ac_objext; then
22680 emacs_cv_gettimeofday_two_arguments=yes
22682 echo "$as_me: failed program was:" >&5
22683 sed 's/^/| /' conftest.$ac_ext >&5
22685 emacs_cv_gettimeofday_two_arguments=no
22688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22690 { echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
22691 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6; }
22692 if test $emacs_cv_gettimeofday_two_arguments = no; then
22694 cat >>confdefs.h <<\_ACEOF
22695 #define GETTIMEOFDAY_ONE_ARGUMENT 1
22703 { echo "$as_me:$LINENO: checking for socket" >&5
22704 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
22705 if test "${ac_cv_func_socket+set}" = set; then
22706 echo $ECHO_N "(cached) $ECHO_C" >&6
22708 cat >conftest.$ac_ext <<_ACEOF
22711 cat confdefs.h >>conftest.$ac_ext
22712 cat >>conftest.$ac_ext <<_ACEOF
22713 /* end confdefs.h. */
22714 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
22715 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22716 #define socket innocuous_socket
22718 /* System header to define __stub macros and hopefully few prototypes,
22719 which can conflict with char socket (); below.
22720 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22721 <limits.h> exists even on freestanding compilers. */
22724 # include <limits.h>
22726 # include <assert.h>
22731 /* Override any GCC internal prototype to avoid an error.
22732 Use char because int might match the return type of a GCC
22733 builtin and then its argument prototype would still apply. */
22738 /* The GNU C library defines this for functions which it implements
22739 to always fail with ENOSYS. Some functions are actually named
22740 something starting with __ and the normal name is an alias. */
22741 #if defined __stub_socket || defined __stub___socket
22753 rm -f conftest.$ac_objext conftest$ac_exeext
22754 if { (ac_try="$ac_link"
22755 case "(($ac_try" in
22756 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22757 *) ac_try_echo
=$ac_try;;
22759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22760 (eval "$ac_link") 2>conftest.er1
22762 grep -v '^ *+' conftest.er1
>conftest.err
22764 cat conftest.err
>&5
22765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22766 (exit $ac_status); } && {
22767 test -z "$ac_c_werror_flag" ||
22768 test ! -s conftest.err
22769 } && test -s conftest
$ac_exeext &&
22770 $as_test_x conftest
$ac_exeext; then
22771 ac_cv_func_socket
=yes
22773 echo "$as_me: failed program was:" >&5
22774 sed 's/^/| /' conftest.
$ac_ext >&5
22776 ac_cv_func_socket
=no
22779 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
22780 conftest
$ac_exeext conftest.
$ac_ext
22782 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
22783 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
22784 if test $ac_cv_func_socket = yes; then
22790 if test $ok_so_far = yes; then
22791 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22792 { echo "$as_me:$LINENO: checking for netinet/in.h" >&5
22793 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6; }
22794 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22795 echo $ECHO_N "(cached) $ECHO_C" >&6
22797 { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
22798 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
22800 # Is the header compilable?
22801 { echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
22802 echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6; }
22803 cat >conftest.
$ac_ext <<_ACEOF
22806 cat confdefs.h
>>conftest.
$ac_ext
22807 cat >>conftest.
$ac_ext <<_ACEOF
22808 /* end confdefs.h. */
22809 $ac_includes_default
22810 #include <netinet/in.h>
22812 rm -f conftest.
$ac_objext
22813 if { (ac_try
="$ac_compile"
22814 case "(($ac_try" in
22815 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22816 *) ac_try_echo=$ac_try;;
22818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22819 (eval "$ac_compile") 2>conftest.er1
22821 grep -v '^ *+' conftest.er1 >conftest.err
22823 cat conftest.err >&5
22824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22825 (exit $ac_status); } && {
22826 test -z "$ac_c_werror_flag" ||
22827 test ! -s conftest.err
22828 } && test -s conftest.$ac_objext; then
22829 ac_header_compiler=yes
22831 echo "$as_me: failed program was:" >&5
22832 sed 's/^/| /' conftest.$ac_ext >&5
22834 ac_header_compiler=no
22837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22838 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22839 echo "${ECHO_T}$ac_header_compiler" >&6; }
22841 # Is the header present?
22842 { echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
22843 echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6; }
22844 cat >conftest.$ac_ext <<_ACEOF
22847 cat confdefs.h >>conftest.$ac_ext
22848 cat >>conftest.$ac_ext <<_ACEOF
22849 /* end confdefs.h. */
22850 #include <netinet/in.h>
22852 if { (ac_try="$ac_cpp conftest.$ac_ext"
22853 case "(($ac_try" in
22854 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22855 *) ac_try_echo
=$ac_try;;
22857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22858 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22860 grep -v '^ *+' conftest.er1
>conftest.err
22862 cat conftest.err
>&5
22863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22864 (exit $ac_status); } >/dev
/null
&& {
22865 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22866 test ! -s conftest.err
22868 ac_header_preproc
=yes
22870 echo "$as_me: failed program was:" >&5
22871 sed 's/^/| /' conftest.
$ac_ext >&5
22873 ac_header_preproc
=no
22876 rm -f conftest.err conftest.
$ac_ext
22877 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22878 echo "${ECHO_T}$ac_header_preproc" >&6; }
22880 # So? What about this header?
22881 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22883 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
22884 echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22885 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
22886 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
22887 ac_header_preproc
=yes
22890 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
22891 echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
22892 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
22893 echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
22894 { echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
22895 echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
22896 { echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
22897 echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
22898 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
22899 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
22900 { echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
22901 echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
22905 { echo "$as_me:$LINENO: checking for netinet/in.h" >&5
22906 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6; }
22907 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22908 echo $ECHO_N "(cached) $ECHO_C" >&6
22910 ac_cv_header_netinet_in_h
=$ac_header_preproc
22912 { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
22913 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
22916 if test $ac_cv_header_netinet_in_h = yes; then
22924 if test $ok_so_far = yes; then
22925 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22926 { echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
22927 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6; }
22928 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22929 echo $ECHO_N "(cached) $ECHO_C" >&6
22931 { echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
22932 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
22934 # Is the header compilable?
22935 { echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
22936 echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6; }
22937 cat >conftest.
$ac_ext <<_ACEOF
22940 cat confdefs.h
>>conftest.
$ac_ext
22941 cat >>conftest.
$ac_ext <<_ACEOF
22942 /* end confdefs.h. */
22943 $ac_includes_default
22944 #include <arpa/inet.h>
22946 rm -f conftest.
$ac_objext
22947 if { (ac_try
="$ac_compile"
22948 case "(($ac_try" in
22949 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22950 *) ac_try_echo=$ac_try;;
22952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22953 (eval "$ac_compile") 2>conftest.er1
22955 grep -v '^ *+' conftest.er1 >conftest.err
22957 cat conftest.err >&5
22958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22959 (exit $ac_status); } && {
22960 test -z "$ac_c_werror_flag" ||
22961 test ! -s conftest.err
22962 } && test -s conftest.$ac_objext; then
22963 ac_header_compiler=yes
22965 echo "$as_me: failed program was:" >&5
22966 sed 's/^/| /' conftest.$ac_ext >&5
22968 ac_header_compiler=no
22971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22972 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22973 echo "${ECHO_T}$ac_header_compiler" >&6; }
22975 # Is the header present?
22976 { echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
22977 echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6; }
22978 cat >conftest.$ac_ext <<_ACEOF
22981 cat confdefs.h >>conftest.$ac_ext
22982 cat >>conftest.$ac_ext <<_ACEOF
22983 /* end confdefs.h. */
22984 #include <arpa/inet.h>
22986 if { (ac_try="$ac_cpp conftest.$ac_ext"
22987 case "(($ac_try" in
22988 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22989 *) ac_try_echo
=$ac_try;;
22991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22992 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22994 grep -v '^ *+' conftest.er1
>conftest.err
22996 cat conftest.err
>&5
22997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22998 (exit $ac_status); } >/dev
/null
&& {
22999 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23000 test ! -s conftest.err
23002 ac_header_preproc
=yes
23004 echo "$as_me: failed program was:" >&5
23005 sed 's/^/| /' conftest.
$ac_ext >&5
23007 ac_header_preproc
=no
23010 rm -f conftest.err conftest.
$ac_ext
23011 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23012 echo "${ECHO_T}$ac_header_preproc" >&6; }
23014 # So? What about this header?
23015 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23017 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
23018 echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23019 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
23020 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
23021 ac_header_preproc
=yes
23024 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
23025 echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
23026 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
23027 echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
23028 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
23029 echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
23030 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
23031 echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
23032 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
23033 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
23034 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
23035 echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
23039 { echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
23040 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6; }
23041 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
23042 echo $ECHO_N "(cached) $ECHO_C" >&6
23044 ac_cv_header_arpa_inet_h
=$ac_header_preproc
23046 { echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
23047 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
23050 if test $ac_cv_header_arpa_inet_h = yes; then
23058 if test $ok_so_far = yes; then
23060 cat >>confdefs.h
<<\_ACEOF
23061 #define HAVE_INET_SOCKETS 1
23067 for ac_header
in sys
/ioctl.h
23069 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23070 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23071 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23072 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23073 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23074 echo $ECHO_N "(cached) $ECHO_C" >&6
23076 ac_res
=`eval echo '${'$as_ac_Header'}'`
23077 { echo "$as_me:$LINENO: result: $ac_res" >&5
23078 echo "${ECHO_T}$ac_res" >&6; }
23080 # Is the header compilable?
23081 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
23082 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23083 cat >conftest.
$ac_ext <<_ACEOF
23086 cat confdefs.h
>>conftest.
$ac_ext
23087 cat >>conftest.
$ac_ext <<_ACEOF
23088 /* end confdefs.h. */
23089 $ac_includes_default
23090 #include <$ac_header>
23092 rm -f conftest.
$ac_objext
23093 if { (ac_try
="$ac_compile"
23094 case "(($ac_try" in
23095 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23096 *) ac_try_echo=$ac_try;;
23098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23099 (eval "$ac_compile") 2>conftest.er1
23101 grep -v '^ *+' conftest.er1 >conftest.err
23103 cat conftest.err >&5
23104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23105 (exit $ac_status); } && {
23106 test -z "$ac_c_werror_flag" ||
23107 test ! -s conftest.err
23108 } && test -s conftest.$ac_objext; then
23109 ac_header_compiler=yes
23111 echo "$as_me: failed program was:" >&5
23112 sed 's/^/| /' conftest.$ac_ext >&5
23114 ac_header_compiler=no
23117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23118 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23119 echo "${ECHO_T}$ac_header_compiler" >&6; }
23121 # Is the header present?
23122 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
23123 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23124 cat >conftest.$ac_ext <<_ACEOF
23127 cat confdefs.h >>conftest.$ac_ext
23128 cat >>conftest.$ac_ext <<_ACEOF
23129 /* end confdefs.h. */
23130 #include <$ac_header>
23132 if { (ac_try="$ac_cpp conftest.$ac_ext"
23133 case "(($ac_try" in
23134 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23135 *) ac_try_echo
=$ac_try;;
23137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23138 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23140 grep -v '^ *+' conftest.er1
>conftest.err
23142 cat conftest.err
>&5
23143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23144 (exit $ac_status); } >/dev
/null
&& {
23145 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23146 test ! -s conftest.err
23148 ac_header_preproc
=yes
23150 echo "$as_me: failed program was:" >&5
23151 sed 's/^/| /' conftest.
$ac_ext >&5
23153 ac_header_preproc
=no
23156 rm -f conftest.err conftest.
$ac_ext
23157 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23158 echo "${ECHO_T}$ac_header_preproc" >&6; }
23160 # So? What about this header?
23161 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23163 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23164 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23165 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23166 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23167 ac_header_preproc
=yes
23170 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23171 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23172 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23173 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23174 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23175 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23176 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23177 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23178 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23179 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23180 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23181 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23185 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23186 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23187 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23188 echo $ECHO_N "(cached) $ECHO_C" >&6
23190 eval "$as_ac_Header=\$ac_header_preproc"
23192 ac_res
=`eval echo '${'$as_ac_Header'}'`
23193 { echo "$as_me:$LINENO: result: $ac_res" >&5
23194 echo "${ECHO_T}$ac_res" >&6; }
23197 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23198 cat >>confdefs.h
<<_ACEOF
23199 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23207 if test -f /usr
/lpp
/X11
/bin
/smt.exp
; then
23209 cat >>confdefs.h
<<\_ACEOF
23210 #define HAVE_AIX_SMT_EXP 1
23215 { echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
23216 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6; }
23217 if test -d /dev
/pts
&& ls -d /dev
/ptmx
> /dev
/null
2>&1 ; then
23218 { echo "$as_me:$LINENO: result: yes" >&5
23219 echo "${ECHO_T}yes" >&6; }
23221 cat >>confdefs.h
<<\_ACEOF
23222 #define HAVE_DEV_PTMX 1
23226 { echo "$as_me:$LINENO: result: no" >&5
23227 echo "${ECHO_T}no" >&6; }
23230 { echo "$as_me:$LINENO: checking for pid_t" >&5
23231 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
23232 if test "${ac_cv_type_pid_t+set}" = set; then
23233 echo $ECHO_N "(cached) $ECHO_C" >&6
23235 cat >conftest.
$ac_ext <<_ACEOF
23238 cat confdefs.h
>>conftest.
$ac_ext
23239 cat >>conftest.
$ac_ext <<_ACEOF
23240 /* end confdefs.h. */
23241 $ac_includes_default
23242 typedef pid_t ac__type_new_;
23246 if ((ac__type_new_ *) 0)
23248 if (sizeof (ac__type_new_))
23254 rm -f conftest.
$ac_objext
23255 if { (ac_try
="$ac_compile"
23256 case "(($ac_try" in
23257 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23258 *) ac_try_echo=$ac_try;;
23260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23261 (eval "$ac_compile") 2>conftest.er1
23263 grep -v '^ *+' conftest.er1 >conftest.err
23265 cat conftest.err >&5
23266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23267 (exit $ac_status); } && {
23268 test -z "$ac_c_werror_flag" ||
23269 test ! -s conftest.err
23270 } && test -s conftest.$ac_objext; then
23271 ac_cv_type_pid_t=yes
23273 echo "$as_me: failed program was:" >&5
23274 sed 's/^/| /' conftest.$ac_ext >&5
23276 ac_cv_type_pid_t=no
23279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23281 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
23282 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
23283 if test $ac_cv_type_pid_t = yes; then
23287 cat >>confdefs.h <<_ACEOF
23294 for ac_header in vfork.h
23296 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
23297 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23298 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23299 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23300 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23301 echo $ECHO_N "(cached) $ECHO_C" >&6
23303 ac_res=`eval echo '${'$as_ac_Header'}'`
23304 { echo "$as_me:$LINENO: result: $ac_res" >&5
23305 echo "${ECHO_T}$ac_res" >&6; }
23307 # Is the header compilable?
23308 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
23309 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23310 cat >conftest.$ac_ext <<_ACEOF
23313 cat confdefs.h >>conftest.$ac_ext
23314 cat >>conftest.$ac_ext <<_ACEOF
23315 /* end confdefs.h. */
23316 $ac_includes_default
23317 #include <$ac_header>
23319 rm -f conftest.$ac_objext
23320 if { (ac_try="$ac_compile"
23321 case "(($ac_try" in
23322 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23323 *) ac_try_echo
=$ac_try;;
23325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23326 (eval "$ac_compile") 2>conftest.er1
23328 grep -v '^ *+' conftest.er1
>conftest.err
23330 cat conftest.err
>&5
23331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23332 (exit $ac_status); } && {
23333 test -z "$ac_c_werror_flag" ||
23334 test ! -s conftest.err
23335 } && test -s conftest.
$ac_objext; then
23336 ac_header_compiler
=yes
23338 echo "$as_me: failed program was:" >&5
23339 sed 's/^/| /' conftest.
$ac_ext >&5
23341 ac_header_compiler
=no
23344 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23345 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23346 echo "${ECHO_T}$ac_header_compiler" >&6; }
23348 # Is the header present?
23349 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
23350 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23351 cat >conftest.
$ac_ext <<_ACEOF
23354 cat confdefs.h
>>conftest.
$ac_ext
23355 cat >>conftest.
$ac_ext <<_ACEOF
23356 /* end confdefs.h. */
23357 #include <$ac_header>
23359 if { (ac_try
="$ac_cpp conftest.$ac_ext"
23360 case "(($ac_try" in
23361 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23362 *) ac_try_echo=$ac_try;;
23364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23365 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23367 grep -v '^ *+' conftest.er1 >conftest.err
23369 cat conftest.err >&5
23370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23371 (exit $ac_status); } >/dev/null && {
23372 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23373 test ! -s conftest.err
23375 ac_header_preproc=yes
23377 echo "$as_me: failed program was:" >&5
23378 sed 's/^/| /' conftest.$ac_ext >&5
23380 ac_header_preproc=no
23383 rm -f conftest.err conftest.$ac_ext
23384 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23385 echo "${ECHO_T}$ac_header_preproc" >&6; }
23387 # So? What about this header?
23388 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23390 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23391 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23392 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23393 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23394 ac_header_preproc=yes
23397 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23398 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23399 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23400 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23401 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23402 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23403 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23404 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23405 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23406 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23407 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23408 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23412 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23413 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23414 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23415 echo $ECHO_N "(cached) $ECHO_C" >&6
23417 eval "$as_ac_Header=\$ac_header_preproc"
23419 ac_res=`eval echo '${'$as_ac_Header'}'`
23420 { echo "$as_me:$LINENO: result: $ac_res" >&5
23421 echo "${ECHO_T}$ac_res" >&6; }
23424 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23425 cat >>confdefs.h <<_ACEOF
23426 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
23435 for ac_func in fork vfork
23437 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
23438 { echo "$as_me:$LINENO: checking for $ac_func" >&5
23439 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23440 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23441 echo $ECHO_N "(cached) $ECHO_C" >&6
23443 cat >conftest.$ac_ext <<_ACEOF
23446 cat confdefs.h >>conftest.$ac_ext
23447 cat >>conftest.$ac_ext <<_ACEOF
23448 /* end confdefs.h. */
23449 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23450 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23451 #define $ac_func innocuous_$ac_func
23453 /* System header to define __stub macros and hopefully few prototypes,
23454 which can conflict with char $ac_func (); below.
23455 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23456 <limits.h> exists even on freestanding compilers. */
23459 # include <limits.h>
23461 # include <assert.h>
23466 /* Override any GCC internal prototype to avoid an error.
23467 Use char because int might match the return type of a GCC
23468 builtin and then its argument prototype would still apply. */
23473 /* The GNU C library defines this for functions which it implements
23474 to always fail with ENOSYS. Some functions are actually named
23475 something starting with __ and the normal name is an alias. */
23476 #if defined __stub_$ac_func || defined __stub___$ac_func
23483 return $ac_func ();
23488 rm -f conftest.$ac_objext conftest$ac_exeext
23489 if { (ac_try="$ac_link"
23490 case "(($ac_try" in
23491 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23492 *) ac_try_echo
=$ac_try;;
23494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23495 (eval "$ac_link") 2>conftest.er1
23497 grep -v '^ *+' conftest.er1
>conftest.err
23499 cat conftest.err
>&5
23500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23501 (exit $ac_status); } && {
23502 test -z "$ac_c_werror_flag" ||
23503 test ! -s conftest.err
23504 } && test -s conftest
$ac_exeext &&
23505 $as_test_x conftest
$ac_exeext; then
23506 eval "$as_ac_var=yes"
23508 echo "$as_me: failed program was:" >&5
23509 sed 's/^/| /' conftest.
$ac_ext >&5
23511 eval "$as_ac_var=no"
23514 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
23515 conftest
$ac_exeext conftest.
$ac_ext
23517 ac_res
=`eval echo '${'$as_ac_var'}'`
23518 { echo "$as_me:$LINENO: result: $ac_res" >&5
23519 echo "${ECHO_T}$ac_res" >&6; }
23520 if test `eval echo '${'$as_ac_var'}'` = yes; then
23521 cat >>confdefs.h
<<_ACEOF
23522 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23528 if test "x$ac_cv_func_fork" = xyes
; then
23529 { echo "$as_me:$LINENO: checking for working fork" >&5
23530 echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
23531 if test "${ac_cv_func_fork_works+set}" = set; then
23532 echo $ECHO_N "(cached) $ECHO_C" >&6
23534 if test "$cross_compiling" = yes; then
23535 ac_cv_func_fork_works
=cross
23537 cat >conftest.
$ac_ext <<_ACEOF
23540 cat confdefs.h
>>conftest.
$ac_ext
23541 cat >>conftest.
$ac_ext <<_ACEOF
23542 /* end confdefs.h. */
23543 $ac_includes_default
23548 /* By Ruediger Kuhlmann. */
23549 return fork () < 0;
23555 rm -f conftest
$ac_exeext
23556 if { (ac_try
="$ac_link"
23557 case "(($ac_try" in
23558 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23559 *) ac_try_echo=$ac_try;;
23561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23562 (eval "$ac_link") 2>&5
23564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23565 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23566 { (case "(($ac_try" in
23567 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23568 *) ac_try_echo
=$ac_try;;
23570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23571 (eval "$ac_try") 2>&5
23573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23574 (exit $ac_status); }; }; then
23575 ac_cv_func_fork_works
=yes
23577 echo "$as_me: program exited with status $ac_status" >&5
23578 echo "$as_me: failed program was:" >&5
23579 sed 's/^/| /' conftest.
$ac_ext >&5
23581 ( exit $ac_status )
23582 ac_cv_func_fork_works
=no
23584 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
23589 { echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
23590 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
23593 ac_cv_func_fork_works
=$ac_cv_func_fork
23595 if test "x$ac_cv_func_fork_works" = xcross
; then
23597 *-*-amigaos* |
*-*-msdosdjgpp*)
23598 # Override, as these systems have only a dummy fork() stub
23599 ac_cv_func_fork_works
=no
23602 ac_cv_func_fork_works
=yes
23605 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
23606 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
23608 ac_cv_func_vfork_works
=$ac_cv_func_vfork
23609 if test "x$ac_cv_func_vfork" = xyes
; then
23610 { echo "$as_me:$LINENO: checking for working vfork" >&5
23611 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
23612 if test "${ac_cv_func_vfork_works+set}" = set; then
23613 echo $ECHO_N "(cached) $ECHO_C" >&6
23615 if test "$cross_compiling" = yes; then
23616 ac_cv_func_vfork_works
=cross
23618 cat >conftest.
$ac_ext <<_ACEOF
23621 cat confdefs.h
>>conftest.
$ac_ext
23622 cat >>conftest.
$ac_ext <<_ACEOF
23623 /* end confdefs.h. */
23624 /* Thanks to Paul Eggert for this test. */
23625 $ac_includes_default
23626 #include <sys/wait.h>
23627 #ifdef HAVE_VFORK_H
23628 # include <vfork.h>
23630 /* On some sparc systems, changes by the child to local and incoming
23631 argument registers are propagated back to the parent. The compiler
23632 is told about this with #include <vfork.h>, but some compilers
23633 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
23634 static variable whose address is put into a register that is
23635 clobbered by the vfork. */
23638 sparc_address_test (int arg)
23640 sparc_address_test (arg) int arg;
23643 static pid_t child;
23661 pid_t parent = getpid ();
23664 sparc_address_test (0);
23669 /* Here is another test for sparc vfork register problems. This
23670 test uses lots of local variables, at least as many local
23671 variables as main has allocated so far including compiler
23672 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
23673 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
23674 reuse the register of parent for one of the local variables,
23675 since it will think that parent can't possibly be used any more
23676 in this routine. Assigning to the local variable will thus
23677 munge parent in the parent process. */
23679 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
23680 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
23681 /* Convince the compiler that p..p7 are live; otherwise, it might
23682 use the same hardware register for all 8 local variables. */
23683 if (p != p1 || p != p2 || p != p3 || p != p4
23684 || p != p5 || p != p6 || p != p7)
23687 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
23688 from child file descriptors. If the child closes a descriptor
23689 before it execs or exits, this munges the parent's descriptor
23690 as well. Test for this by closing stdout in the child. */
23691 _exit(close(fileno(stdout)) != 0);
23696 while (wait(&status) != child)
23699 /* Was there some problem with vforking? */
23702 /* Did the child fail? (This shouldn't happen.) */
23705 /* Did the vfork/compiler bug occur? */
23706 || parent != getpid()
23708 /* Did the file descriptor bug occur? */
23709 || fstat(fileno(stdout), &st) != 0
23714 rm -f conftest
$ac_exeext
23715 if { (ac_try
="$ac_link"
23716 case "(($ac_try" in
23717 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23718 *) ac_try_echo=$ac_try;;
23720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23721 (eval "$ac_link") 2>&5
23723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23724 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23725 { (case "(($ac_try" in
23726 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23727 *) ac_try_echo
=$ac_try;;
23729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23730 (eval "$ac_try") 2>&5
23732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23733 (exit $ac_status); }; }; then
23734 ac_cv_func_vfork_works
=yes
23736 echo "$as_me: program exited with status $ac_status" >&5
23737 echo "$as_me: failed program was:" >&5
23738 sed 's/^/| /' conftest.
$ac_ext >&5
23740 ( exit $ac_status )
23741 ac_cv_func_vfork_works
=no
23743 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
23748 { echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
23749 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
23752 if test "x$ac_cv_func_fork_works" = xcross
; then
23753 ac_cv_func_vfork_works
=$ac_cv_func_vfork
23754 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
23755 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
23758 if test "x$ac_cv_func_vfork_works" = xyes
; then
23760 cat >>confdefs.h
<<\_ACEOF
23761 #define HAVE_WORKING_VFORK 1
23766 cat >>confdefs.h
<<\_ACEOF
23771 if test "x$ac_cv_func_fork_works" = xyes
; then
23773 cat >>confdefs.h
<<\_ACEOF
23774 #define HAVE_WORKING_FORK 1
23780 { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
23781 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
23782 if test "${emacs_cv_langinfo_codeset+set}" = set; then
23783 echo $ECHO_N "(cached) $ECHO_C" >&6
23785 cat >conftest.
$ac_ext <<_ACEOF
23788 cat confdefs.h
>>conftest.
$ac_ext
23789 cat >>conftest.
$ac_ext <<_ACEOF
23790 /* end confdefs.h. */
23791 #include <langinfo.h>
23795 char* cs = nl_langinfo(CODESET);
23800 rm -f conftest.
$ac_objext conftest
$ac_exeext
23801 if { (ac_try
="$ac_link"
23802 case "(($ac_try" in
23803 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23804 *) ac_try_echo=$ac_try;;
23806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23807 (eval "$ac_link") 2>conftest.er1
23809 grep -v '^ *+' conftest.er1 >conftest.err
23811 cat conftest.err >&5
23812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23813 (exit $ac_status); } && {
23814 test -z "$ac_c_werror_flag" ||
23815 test ! -s conftest.err
23816 } && test -s conftest$ac_exeext &&
23817 $as_test_x conftest$ac_exeext; then
23818 emacs_cv_langinfo_codeset=yes
23820 echo "$as_me: failed program was:" >&5
23821 sed 's/^/| /' conftest.$ac_ext >&5
23823 emacs_cv_langinfo_codeset=no
23826 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23827 conftest$ac_exeext conftest.$ac_ext
23830 { echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
23831 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6; }
23832 if test $emacs_cv_langinfo_codeset = yes; then
23834 cat >>confdefs.h <<\_ACEOF
23835 #define HAVE_LANGINFO_CODESET 1
23840 { echo "$as_me:$LINENO: checking for size_t" >&5
23841 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
23842 if test "${ac_cv_type_size_t+set}" = set; then
23843 echo $ECHO_N "(cached) $ECHO_C" >&6
23845 cat >conftest.$ac_ext <<_ACEOF
23848 cat confdefs.h >>conftest.$ac_ext
23849 cat >>conftest.$ac_ext <<_ACEOF
23850 /* end confdefs.h. */
23851 $ac_includes_default
23852 typedef size_t ac__type_new_;
23856 if ((ac__type_new_ *) 0)
23858 if (sizeof (ac__type_new_))
23864 rm -f conftest.$ac_objext
23865 if { (ac_try="$ac_compile"
23866 case "(($ac_try" in
23867 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23868 *) ac_try_echo
=$ac_try;;
23870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23871 (eval "$ac_compile") 2>conftest.er1
23873 grep -v '^ *+' conftest.er1
>conftest.err
23875 cat conftest.err
>&5
23876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23877 (exit $ac_status); } && {
23878 test -z "$ac_c_werror_flag" ||
23879 test ! -s conftest.err
23880 } && test -s conftest.
$ac_objext; then
23881 ac_cv_type_size_t
=yes
23883 echo "$as_me: failed program was:" >&5
23884 sed 's/^/| /' conftest.
$ac_ext >&5
23886 ac_cv_type_size_t
=no
23889 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23891 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
23892 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
23893 if test $ac_cv_type_size_t = yes; then
23895 cat >>confdefs.h
<<_ACEOF
23896 #define HAVE_SIZE_T 1
23903 { echo "$as_me:$LINENO: checking for mbstate_t" >&5
23904 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6; }
23905 if test "${ac_cv_type_mbstate_t+set}" = set; then
23906 echo $ECHO_N "(cached) $ECHO_C" >&6
23908 cat >conftest.
$ac_ext <<_ACEOF
23911 cat confdefs.h
>>conftest.
$ac_ext
23912 cat >>conftest.
$ac_ext <<_ACEOF
23913 /* end confdefs.h. */
23914 $ac_includes_default
23915 # include <wchar.h>
23919 mbstate_t x; return sizeof x;
23924 rm -f conftest.
$ac_objext
23925 if { (ac_try
="$ac_compile"
23926 case "(($ac_try" in
23927 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23928 *) ac_try_echo=$ac_try;;
23930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23931 (eval "$ac_compile") 2>conftest.er1
23933 grep -v '^ *+' conftest.er1 >conftest.err
23935 cat conftest.err >&5
23936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23937 (exit $ac_status); } && {
23938 test -z "$ac_c_werror_flag" ||
23939 test ! -s conftest.err
23940 } && test -s conftest.$ac_objext; then
23941 ac_cv_type_mbstate_t=yes
23943 echo "$as_me: failed program was:" >&5
23944 sed 's/^/| /' conftest.$ac_ext >&5
23946 ac_cv_type_mbstate_t=no
23949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23951 { echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
23952 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
23953 if test $ac_cv_type_mbstate_t = yes; then
23955 cat >>confdefs.h <<\_ACEOF
23956 #define HAVE_MBSTATE_T 1
23961 cat >>confdefs.h <<\_ACEOF
23962 #define mbstate_t int
23967 { echo "$as_me:$LINENO: checking for C restrict keyword" >&5
23968 echo $ECHO_N "checking for C restrict keyword... $ECHO_C" >&6; }
23969 if test "${emacs_cv_c_restrict+set}" = set; then
23970 echo $ECHO_N "(cached) $ECHO_C" >&6
23972 cat >conftest.$ac_ext <<_ACEOF
23975 cat confdefs.h >>conftest.$ac_ext
23976 cat >>conftest.$ac_ext <<_ACEOF
23977 /* end confdefs.h. */
23978 void fred (int *restrict x);
23987 rm -f conftest.$ac_objext
23988 if { (ac_try="$ac_compile"
23989 case "(($ac_try" in
23990 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23991 *) ac_try_echo
=$ac_try;;
23993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23994 (eval "$ac_compile") 2>conftest.er1
23996 grep -v '^ *+' conftest.er1
>conftest.err
23998 cat conftest.err
>&5
23999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24000 (exit $ac_status); } && {
24001 test -z "$ac_c_werror_flag" ||
24002 test ! -s conftest.err
24003 } && test -s conftest.
$ac_objext; then
24004 emacs_cv_c_restrict
=yes
24006 echo "$as_me: failed program was:" >&5
24007 sed 's/^/| /' conftest.
$ac_ext >&5
24009 cat >conftest.
$ac_ext <<_ACEOF
24012 cat confdefs.h
>>conftest.
$ac_ext
24013 cat >>conftest.
$ac_ext <<_ACEOF
24014 /* end confdefs.h. */
24015 void fred (int *__restrict x);
24024 rm -f conftest.
$ac_objext
24025 if { (ac_try
="$ac_compile"
24026 case "(($ac_try" in
24027 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24028 *) ac_try_echo=$ac_try;;
24030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24031 (eval "$ac_compile") 2>conftest.er1
24033 grep -v '^ *+' conftest.er1 >conftest.err
24035 cat conftest.err >&5
24036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24037 (exit $ac_status); } && {
24038 test -z "$ac_c_werror_flag" ||
24039 test ! -s conftest.err
24040 } && test -s conftest.$ac_objext; then
24041 emacs_cv_c_restrict=__restrict
24043 echo "$as_me: failed program was:" >&5
24044 sed 's/^/| /' conftest.$ac_ext >&5
24046 emacs_cv_c_restrict=no
24049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24054 { echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
24055 echo "${ECHO_T}$emacs_cv_c_restrict" >&6; }
24056 case "$emacs_cv_c_restrict" in
24057 yes) emacs_restrict=restrict;;
24058 no) emacs_restrict="";;
24059 *) emacs_restrict="$emacs_cv_c_restrict";;
24061 if test "$emacs_restrict" != __restrict; then
24063 cat >>confdefs.h <<_ACEOF
24064 #define __restrict $emacs_restrict
24069 { echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
24070 echo $ECHO_N "checking for C restricted array declarations... $ECHO_C" >&6; }
24071 if test "${emacs_cv_c_restrict_arr+set}" = set; then
24072 echo $ECHO_N "(cached) $ECHO_C" >&6
24074 cat >conftest.$ac_ext <<_ACEOF
24077 cat confdefs.h >>conftest.$ac_ext
24078 cat >>conftest.$ac_ext <<_ACEOF
24079 /* end confdefs.h. */
24080 void fred (int x[__restrict]);
24089 rm -f conftest.$ac_objext
24090 if { (ac_try="$ac_compile"
24091 case "(($ac_try" in
24092 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24093 *) ac_try_echo
=$ac_try;;
24095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24096 (eval "$ac_compile") 2>conftest.er1
24098 grep -v '^ *+' conftest.er1
>conftest.err
24100 cat conftest.err
>&5
24101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24102 (exit $ac_status); } && {
24103 test -z "$ac_c_werror_flag" ||
24104 test ! -s conftest.err
24105 } && test -s conftest.
$ac_objext; then
24106 emacs_cv_c_restrict_arr
=yes
24108 echo "$as_me: failed program was:" >&5
24109 sed 's/^/| /' conftest.
$ac_ext >&5
24111 emacs_cv_c_restrict_arr
=no
24114 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24116 { echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
24117 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6; }
24118 if test "$emacs_cv_c_restrict_arr" = yes; then
24120 cat >>confdefs.h
<<\_ACEOF
24121 #define __restrict_arr __restrict
24128 # Set up the CFLAGS for real compilation, so we can substitute it.
24129 CFLAGS
="$REAL_CFLAGS"
24130 CPPFLAGS
="$REAL_CPPFLAGS"
24132 #### Find out which version of Emacs this is.
24133 version
=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
24134 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
24135 if test x
"${version}" = x
; then
24136 { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
24137 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
24138 { (exit 1); exit 1; }; }
24141 ### Specify what sort of things we'll be editing into Makefile and config.h.
24142 ### Use configuration here uncanonicalized to avoid exceeding size limits.
24186 cat >>confdefs.h
<<_ACEOF
24187 #define EMACS_CONFIGURATION "${canonical}"
24191 cat >>confdefs.h
<<_ACEOF
24192 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
24196 cat >>confdefs.h
<<_ACEOF
24197 #define config_machfile "${machfile}"
24201 cat >>confdefs.h
<<_ACEOF
24202 #define config_opsysfile "${opsysfile}"
24206 cat >>confdefs.h
<<_ACEOF
24207 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
24211 cat >>confdefs.h
<<_ACEOF
24212 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
24216 cat >>confdefs.h
<<_ACEOF
24217 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
24221 cat >>confdefs.h
<<_ACEOF
24222 #define UNEXEC_SRC ${UNEXEC_SRC}
24226 if test "${HAVE_X_WINDOWS}" = "yes" ; then
24228 cat >>confdefs.h
<<\_ACEOF
24229 #define HAVE_X_WINDOWS 1
24233 if test "${USE_X_TOOLKIT}" != "none" ; then
24235 cat >>confdefs.h
<<\_ACEOF
24236 #define USE_X_TOOLKIT 1
24239 if test "${USE_X_TOOLKIT}" = "LUCID"; then
24241 cat >>confdefs.h
<<\_ACEOF
24242 #define USE_LUCID 1
24245 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
24247 cat >>confdefs.h
<<\_ACEOF
24248 #define USE_MOTIF 1
24253 if test "${HAVE_X11}" = "yes" ; then
24255 cat >>confdefs.h
<<\_ACEOF
24260 if test "${HAVE_MENUS}" = "yes" ; then
24262 cat >>confdefs.h
<<\_ACEOF
24263 #define HAVE_MENUS 1
24267 if test "${GNU_MALLOC}" = "yes" ; then
24269 cat >>confdefs.h
<<\_ACEOF
24270 #define GNU_MALLOC 1
24274 if test "${REL_ALLOC}" = "yes" ; then
24276 cat >>confdefs.h
<<\_ACEOF
24277 #define REL_ALLOC 1
24287 #### Report on what we decided to do.
24288 #### Report GTK as a toolkit, even if it doesn't use Xt.
24289 #### It makes printing result more understandable as using GTK sets
24290 #### toolkit_scroll_bars to yes by default.
24291 if test "${HAVE_GTK}" = "yes"; then
24296 Configured for \`${canonical}'.
24298 Where should the build process find the source code? ${srcdir}
24299 What operating system and machine description files should Emacs use?
24300 \`${opsysfile}' and \`${machfile}'
24301 What compiler should emacs be built with? ${CC} ${CFLAGS}
24302 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
24303 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
24304 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
24305 What window system should Emacs use? ${window_system}
24306 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
24308 if test -n "${x_includes}"; then
24309 echo " Where do we find X Windows header files? ${x_includes}"
24311 echo " Where do we find X Windows header files? Standard dirs"
24313 if test -n "${x_libraries}"; then
24314 echo " Where do we find X Windows libraries? ${x_libraries}"
24316 echo " Where do we find X Windows libraries? Standard dirs"
24319 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
24320 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
24321 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
24322 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
24323 echo " Does Emacs use a gif library? ${HAVE_GIF} $ac_gif_lib_name"
24324 echo " Does Emacs use -lpng? ${HAVE_PNG}"
24325 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
24326 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
24327 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
24329 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
24330 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
24331 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
24332 echo " Does Emacs use -lxft? ${HAVE_XFT}"
24334 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
24337 if test $USE_XASSERTS = yes; then
24338 echo " Compiling with asserts turned on."
24339 CPPFLAGS
="$CPPFLAGS -DXASSERTS=1"
24344 if test "$USE_X_TOOLKIT" = GTK
; then
24345 case "$canonical" in
24347 echo "There are known problems with Emacs and Gtk+ on cygwin, so you
24348 will probably get a crash on startup. If this happens, please use another
24349 toolkit for Emacs. See etc/PROBLEMS for more information."
24354 if test "$HAVE_NS" = "yes"; then
24356 echo "You must run \"make install\" in order to test the built application.
24357 The installed application will go to nextstep/Emacs.app and can be
24358 run or moved from there."
24359 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
24360 echo "The application will be fully self-contained."
24362 echo "The lisp resources for the application will be installed under ${prefix}.
24363 You may need to run \"make install\" with sudo. The application will fail
24364 to run if these resources are not installed."
24369 if test "$HAVE_DBUS" = yes && test "${opsys}" != "gnu-linux"; then
24370 echo "D-Bus integration has been tested for GNU/Linux only."
24375 # Remove any trailing slashes in these variables.
24376 test "${prefix}" != NONE
&&
24377 prefix
=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
24378 test "${exec_prefix}" != NONE
&&
24379 exec_prefix
=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
24381 # Now get this: Some word that is part of the ${srcdir} directory name
24382 # or the ${configuration} value might, just might, happen to be an
24383 # identifier like `sun4' or `i386' or something, and be predefined by
24384 # the C preprocessor to some helpful value like 1, or maybe the empty
24385 # string. Needless to say consequent macro substitutions are less
24386 # than conducive to the makefile finding the correct directory.
24387 cpp_undefs
="`echo $srcdir $configuration $canonical |
24388 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
24389 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g'`"
24391 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
24392 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
24393 ## from Makefile.c can correctly provide the arg `-traditional' to the
24396 cat >conftest.
$ac_ext <<_ACEOF
24399 cat confdefs.h
>>conftest.
$ac_ext
24400 cat >>conftest.
$ac_ext <<_ACEOF
24401 /* end confdefs.h. */
24404 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24405 $EGREP "yes..yes" >/dev
/null
2>&1; then
24406 CPP_NEED_TRADITIONAL
=no
24408 CPP_NEED_TRADITIONAL
=yes
24413 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"
24415 ac_config_commands
="$ac_config_commands default"
24417 cat >confcache
<<\_ACEOF
24418 # This file is a shell script that caches the results of configure
24419 # tests run on this system so they can be shared between configure
24420 # scripts and configure runs, see configure's option --config-cache.
24421 # It is not useful on other systems. If it contains results you don't
24422 # want to keep, you may remove or edit it.
24424 # config.status only pays attention to the cache file if you give it
24425 # the --recheck option to rerun configure.
24427 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24428 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24429 # following values.
24433 # The following way of writing the cache mishandles newlines in values,
24434 # but we know of no workaround that is simple, portable, and efficient.
24435 # So, we kill variables containing newlines.
24436 # Ultrix sh set writes to stderr and can't be redirected directly,
24437 # and sets the high bit in the cache file unless we assign to the vars.
24439 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24440 eval ac_val
=\$
$ac_var
24444 *_cv_
*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
24445 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
24448 _ | IFS | as_nl
) ;; #(
24449 *) $as_unset $ac_var ;;
24455 case $as_nl`(ac_space=' '; set) 2>&1` in #(
24456 *${as_nl}ac_space
=\
*)
24457 # `set' does not quote correctly, so add quotes (double-quote
24458 # substitution turns \\\\ into \\, and sed turns \\ into \).
24461 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24464 # `set' quotes correctly as required by POSIX, so do not add quotes.
24465 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
24474 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24476 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24478 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
24479 if test -w "$cache_file"; then
24480 test "x$cache_file" != "x/dev/null" &&
24481 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
24482 echo "$as_me: updating cache $cache_file" >&6;}
24483 cat confcache
>$cache_file
24485 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
24486 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
24491 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
24492 # Let make expand exec_prefix.
24493 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
24495 DEFS
=-DHAVE_CONFIG_H
24499 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
24500 # 1. Remove the extension, and $U if already installed.
24501 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
24502 ac_i
=`echo "$ac_i" | sed "$ac_script"`
24503 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
24504 # will be set to the directory where LIBOBJS objects are built.
24505 ac_libobjs
="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
24506 ac_ltlibobjs
="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
24508 LIBOBJS
=$ac_libobjs
24510 LTLIBOBJS
=$ac_ltlibobjs
24514 : ${CONFIG_STATUS=./config.status}
24515 ac_clean_files_save
=$ac_clean_files
24516 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
24517 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
24518 echo "$as_me: creating $CONFIG_STATUS" >&6;}
24519 cat >$CONFIG_STATUS <<_ACEOF
24521 # Generated by $as_me.
24522 # Run this file to recreate the current configuration.
24523 # Compiler output produced by configure, useful for debugging
24524 # configure, is in config.log if it exists.
24527 ac_cs_recheck=false
24529 SHELL=\${CONFIG_SHELL-$SHELL}
24532 cat >>$CONFIG_STATUS <<\_ACEOF
24533 ## --------------------- ##
24534 ## M4sh Initialization. ##
24535 ## --------------------- ##
24537 # Be more Bourne compatible
24538 DUALCASE
=1; export DUALCASE
# for MKS sh
24539 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
24542 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24543 # is contrary to our usage. Disable this feature.
24544 alias -g '${1+"$@"}'='"$@"'
24545 setopt NO_GLOB_SUBST
24547 case `(set -o) 2>/dev/null` in
24548 *posix
*) set -o posix
;;
24557 # Avoid depending upon Character Ranges.
24558 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
24559 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24560 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
24561 as_cr_digits
='0123456789'
24562 as_cr_alnum
=$as_cr_Letters$as_cr_digits
24564 # The user is always right.
24565 if test "${PATH_SEPARATOR+set}" != set; then
24566 echo "#! /bin/sh" >conf$$.sh
24567 echo "exit 0" >>conf$$.sh
24569 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
24577 # Support unset when possible.
24578 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
24586 # We need space, tab and new line, in precisely that order. Quoting is
24587 # there to prevent editors from complaining about space-tab.
24588 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
24589 # splitting by setting IFS to empty value.)
24594 # Find who we are. Look in the path if we contain no directory separator.
24596 *[\\/]* ) as_myself
=$0 ;;
24597 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
24598 for as_dir
in $PATH
24601 test -z "$as_dir" && as_dir
=.
24602 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
24608 # We did not find ourselves, most probably we were run as `sh COMMAND'
24609 # in which case we are not to be found in the path.
24610 if test "x$as_myself" = x
; then
24613 if test ! -f "$as_myself"; then
24614 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24615 { (exit 1); exit 1; }
24618 # Work around bugs in pre-3.0 UWIN ksh.
24619 for as_var
in ENV MAIL MAILPATH
24620 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
24628 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
24629 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
24630 LC_TELEPHONE LC_TIME
24632 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
24633 eval $as_var=C
; export $as_var
24635 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
24639 # Required to use basename.
24640 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
24641 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
24647 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
24648 as_basename
=basename
24654 # Name of the executable.
24655 as_me
=`$as_basename -- "$0" ||
24656 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24657 X"$0" : 'X\(//\)$' \| \
24658 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
24660 sed '/^.*\/\([^/][^/]*\)\/*$/{
24679 as_lineno_1
=$LINENO
24680 as_lineno_2
=$LINENO
24681 test "x$as_lineno_1" != "x$as_lineno_2" &&
24682 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
24684 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24685 # uniformly replaced by the line number. The first 'sed' inserts a
24686 # line-number line after each line using $LINENO; the second 'sed'
24687 # does the real work. The second script uses 'N' to pair each
24688 # line-number line with the line containing $LINENO, and appends
24689 # trailing '-' during substitution so that $LINENO is not a special
24690 # case at line end.
24691 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24692 # scripts with optimization help from Paolo Bonzini. Blame Lee
24693 # E. McMahon (1931-1989) for sed's syntax. :-)
24705 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
24708 ' >$as_me.lineno
&&
24709 chmod +x
"$as_me.lineno" ||
24710 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
24711 { (exit 1); exit 1; }; }
24713 # Don't try to exec as it changes $[0], causing all sort of problems
24714 # (the dirname of $[0] is not the place where we might find the
24715 # original and so on. Autoconf is especially sensitive to this).
24716 .
"./$as_me.lineno"
24717 # Exit status is that of the last command.
24722 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
24728 ECHO_C
= ECHO_N
= ECHO_T
=
24729 case `echo -n x` in
24731 case `echo 'x\c'` in
24732 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
24739 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
24740 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
24746 rm -f conf$$ conf$$.exe conf$$.
file
24747 if test -d conf$$.dir
; then
24748 rm -f conf$$.dir
/conf$$.
file
24754 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
24756 # ... but there are two gotchas:
24757 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
24758 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
24759 # In both cases, we have to default to `cp -p'.
24760 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
24762 elif ln conf$$.
file conf$$
2>/dev
/null
; then
24767 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
24768 rmdir conf$$.dir
2>/dev
/null
24770 if mkdir
-p .
2>/dev
/null
; then
24773 test -d .
/-p && rmdir .
/-p
24777 if test -x / >/dev
/null
2>&1; then
24778 as_test_x
='test -x'
24780 if ls -dL / >/dev
/null
2>&1; then
24787 if test -d "$1"; then
24793 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
24794 ???[sx]*):;;*)false;;esac;fi
24798 as_executable_p
=$as_test_x
24800 # Sed expression to map a string onto a valid CPP name.
24801 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24803 # Sed expression to map a string onto a valid variable name.
24804 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24809 # Save the log message, to keep $[0] and so on meaningful, and to
24810 # report actual input values of CONFIG_FILES etc. instead of their
24811 # values after options handling.
24813 This file was extended by emacs $as_me 23.0.60, which was
24814 generated by GNU Autoconf 2.61. Invocation command line was
24816 CONFIG_FILES = $CONFIG_FILES
24817 CONFIG_HEADERS = $CONFIG_HEADERS
24818 CONFIG_LINKS = $CONFIG_LINKS
24819 CONFIG_COMMANDS = $CONFIG_COMMANDS
24822 on `(hostname || uname -n) 2>/dev/null | sed 1q`
24827 cat >>$CONFIG_STATUS <<_ACEOF
24828 # Files that config.status was made for.
24829 config_files="$ac_config_files"
24830 config_headers="$ac_config_headers"
24831 config_commands="$ac_config_commands"
24835 cat >>$CONFIG_STATUS <<\_ACEOF
24837 \`$as_me' instantiates files from templates according to the
24838 current configuration.
24840 Usage: $0 [OPTIONS] [FILE]...
24842 -h, --help print this help, then exit
24843 -V, --version print version number and configuration settings, then exit
24844 -q, --quiet do not print progress messages
24845 -d, --debug don't remove temporary files
24846 --recheck update $as_me by reconfiguring in the same conditions
24847 --file=FILE[:TEMPLATE]
24848 instantiate the configuration file FILE
24849 --header=FILE[:TEMPLATE]
24850 instantiate the configuration header FILE
24852 Configuration files:
24855 Configuration headers:
24858 Configuration commands:
24861 Report bugs to <bug-autoconf@gnu.org>."
24864 cat >>$CONFIG_STATUS <<_ACEOF
24866 emacs config.status 23.0.60
24867 configured by $0, generated by GNU Autoconf 2.61,
24868 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
24870 Copyright (C) 2006 Free Software Foundation, Inc.
24871 This config.status script is free software; the Free Software Foundation
24872 gives unlimited permission to copy, distribute and modify it."
24879 cat >>$CONFIG_STATUS <<\_ACEOF
24880 # If no file are specified by the user, then we need to provide default
24881 # value. By we need to know if files were specified by the user.
24887 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
24888 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
24899 # Handling of the options.
24900 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
24902 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
24903 echo "$ac_cs_version"; exit ;;
24904 --debug |
--debu |
--deb |
--de |
--d |
-d )
24906 --file |
--fil |
--fi |
--f )
24908 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
24909 ac_need_defaults
=false
;;
24910 --header |
--heade |
--head |
--hea )
24912 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
24913 ac_need_defaults
=false
;;
24915 # Conflict between --help and --header
24916 { echo "$as_me: error: ambiguous option: $1
24917 Try \`$0 --help' for more information." >&2
24918 { (exit 1); exit 1; }; };;
24919 --help |
--hel |
-h )
24920 echo "$ac_cs_usage"; exit ;;
24921 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
24922 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
24925 # This is an error.
24926 -*) { echo "$as_me: error: unrecognized option: $1
24927 Try \`$0 --help' for more information." >&2
24928 { (exit 1); exit 1; }; } ;;
24930 *) ac_config_targets
="$ac_config_targets $1"
24931 ac_need_defaults
=false
;;
24937 ac_configure_extra_args
=
24939 if $ac_cs_silent; then
24941 ac_configure_extra_args
="$ac_configure_extra_args --silent"
24945 cat >>$CONFIG_STATUS <<_ACEOF
24946 if \$ac_cs_recheck; then
24947 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24948 CONFIG_SHELL=$SHELL
24949 export CONFIG_SHELL
24950 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24954 cat >>$CONFIG_STATUS <<\_ACEOF
24958 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24959 ## Running $as_me. ##
24965 cat >>$CONFIG_STATUS <<_ACEOF
24969 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS" cpp_undefs="$cpp_undefs"
24973 cat >>$CONFIG_STATUS <<\_ACEOF
24975 # Handling of arguments.
24976 for ac_config_target
in $ac_config_targets
24978 case $ac_config_target in
24979 "src/config.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
24980 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
24981 "lib-src/Makefile.c") CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
24982 "oldXMenu/Makefile") CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
24983 "doc/emacs/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/emacs/Makefile" ;;
24984 "doc/misc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/misc/Makefile" ;;
24985 "doc/lispintro/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispintro/Makefile" ;;
24986 "doc/lispref/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispref/Makefile" ;;
24987 "src/Makefile.c") CONFIG_FILES
="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
24988 "lwlib/Makefile") CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
24989 "lisp/Makefile") CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
24990 "leim/Makefile") CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
24991 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
24993 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24994 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24995 { (exit 1); exit 1; }; };;
25000 # If the user did not use the arguments to specify the items to instantiate,
25001 # then the envvar interface is used. Set only those that are not.
25002 # We use the long form for the default assignment because of an extremely
25003 # bizarre bug on SunOS 4.1.3.
25004 if $ac_need_defaults; then
25005 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
25006 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
25007 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
25010 # Have a temporary directory for convenience. Make it in the build tree
25011 # simply because there is no reason against having it here, and in addition,
25012 # creating and moving files from /tmp can sometimes cause problems.
25013 # Hook for its removal unless debugging.
25014 # Note that there is a small window in which the directory will not be cleaned:
25015 # after its creation but before its name has been assigned to `$tmp'.
25019 trap 'exit_status=$?
25020 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
25022 trap '{ (exit 1); exit 1; }' 1 2 13 15
25024 # Create a (secure) tmp directory for tmp files.
25027 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
25028 test -n "$tmp" && test -d "$tmp"
25031 tmp
=.
/conf$$
-$RANDOM
25032 (umask 077 && mkdir
"$tmp")
25035 echo "$me: cannot create a temporary directory in ." >&2
25036 { (exit 1); exit 1; }
25040 # Set up the sed scripts for CONFIG_FILES section.
25043 # No need to generate the scripts if there are no CONFIG_FILES.
25044 # This happens for instance when ./config.status config.h
25045 if test -n "$CONFIG_FILES"; then
25052 for ac_last_try
in false false false false false
:; do
25053 cat >conf$
$subs.
sed <<_ACEOF
25054 SHELL!$SHELL$ac_delim
25055 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
25056 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
25057 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
25058 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
25059 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
25060 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
25061 exec_prefix!$exec_prefix$ac_delim
25062 prefix!$prefix$ac_delim
25063 program_transform_name!$program_transform_name$ac_delim
25064 bindir!$bindir$ac_delim
25065 sbindir!$sbindir$ac_delim
25066 libexecdir!$libexecdir$ac_delim
25067 datarootdir!$datarootdir$ac_delim
25068 datadir!$datadir$ac_delim
25069 sysconfdir!$sysconfdir$ac_delim
25070 sharedstatedir!$sharedstatedir$ac_delim
25071 localstatedir!$localstatedir$ac_delim
25072 includedir!$includedir$ac_delim
25073 oldincludedir!$oldincludedir$ac_delim
25074 docdir!$docdir$ac_delim
25075 infodir!$infodir$ac_delim
25076 htmldir!$htmldir$ac_delim
25077 dvidir!$dvidir$ac_delim
25078 pdfdir!$pdfdir$ac_delim
25079 psdir!$psdir$ac_delim
25080 libdir!$libdir$ac_delim
25081 localedir!$localedir$ac_delim
25082 mandir!$mandir$ac_delim
25083 DEFS!$DEFS$ac_delim
25084 ECHO_C!$ECHO_C$ac_delim
25085 ECHO_N!$ECHO_N$ac_delim
25086 ECHO_T!$ECHO_T$ac_delim
25087 LIBS!$LIBS$ac_delim
25088 build_alias!$build_alias$ac_delim
25089 host_alias!$host_alias$ac_delim
25090 target_alias!$target_alias$ac_delim
25091 MAINT!$MAINT$ac_delim
25092 build!$build$ac_delim
25093 build_cpu!$build_cpu$ac_delim
25094 build_vendor!$build_vendor$ac_delim
25095 build_os!$build_os$ac_delim
25096 host!$host$ac_delim
25097 host_cpu!$host_cpu$ac_delim
25098 host_vendor!$host_vendor$ac_delim
25099 host_os!$host_os$ac_delim
25101 CFLAGS!$CFLAGS$ac_delim
25102 LDFLAGS!$LDFLAGS$ac_delim
25103 CPPFLAGS!$CPPFLAGS$ac_delim
25104 ac_ct_CC!$ac_ct_CC$ac_delim
25105 EXEEXT!$EXEEXT$ac_delim
25106 OBJEXT!$OBJEXT$ac_delim
25108 GREP!$GREP$ac_delim
25109 EGREP!$EGREP$ac_delim
25110 LN_S!$LN_S$ac_delim
25111 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
25112 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
25113 INSTALL_DATA!$INSTALL_DATA$ac_delim
25114 RANLIB!$RANLIB$ac_delim
25115 INSTALL_INFO!$INSTALL_INFO$ac_delim
25116 GZIP_PROG!$GZIP_PROG$ac_delim
25117 MAKEINFO!$MAKEINFO$ac_delim
25118 LIBSOUND!$LIBSOUND$ac_delim
25119 PKG_CONFIG!$PKG_CONFIG$ac_delim
25120 ALSA_CFLAGS!$ALSA_CFLAGS$ac_delim
25121 ALSA_LIBS!$ALSA_LIBS$ac_delim
25122 CFLAGS_SOUND!$CFLAGS_SOUND$ac_delim
25123 SET_MAKE!$SET_MAKE$ac_delim
25124 XMKMF!$XMKMF$ac_delim
25125 HAVE_XSERVER!$HAVE_XSERVER$ac_delim
25126 RSVG_CFLAGS!$RSVG_CFLAGS$ac_delim
25127 RSVG_LIBS!$RSVG_LIBS$ac_delim
25128 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
25129 GTK_LIBS!$GTK_LIBS$ac_delim
25130 DBUS_CFLAGS!$DBUS_CFLAGS$ac_delim
25131 DBUS_LIBS!$DBUS_LIBS$ac_delim
25132 FONTCONFIG_CFLAGS!$FONTCONFIG_CFLAGS$ac_delim
25133 FONTCONFIG_LIBS!$FONTCONFIG_LIBS$ac_delim
25134 XFT_CFLAGS!$XFT_CFLAGS$ac_delim
25135 XFT_LIBS!$XFT_LIBS$ac_delim
25136 FREETYPE_CFLAGS!$FREETYPE_CFLAGS$ac_delim
25137 FREETYPE_LIBS!$FREETYPE_LIBS$ac_delim
25138 LIBOTF_CFLAGS!$LIBOTF_CFLAGS$ac_delim
25139 LIBOTF_LIBS!$LIBOTF_LIBS$ac_delim
25140 M17N_FLT_CFLAGS!$M17N_FLT_CFLAGS$ac_delim
25141 M17N_FLT_LIBS!$M17N_FLT_LIBS$ac_delim
25142 ALLOCA!$ALLOCA$ac_delim
25143 liblockfile!$liblockfile$ac_delim
25144 LIBOBJS!$LIBOBJS$ac_delim
25145 NEED_SETGID!$NEED_SETGID$ac_delim
25146 KMEM_GROUP!$KMEM_GROUP$ac_delim
25147 GETLOADAVG_LIBS!$GETLOADAVG_LIBS$ac_delim
25148 GETOPT_H!$GETOPT_H$ac_delim
25149 GETOPTOBJS!$GETOPTOBJS$ac_delim
25150 version!$version$ac_delim
25153 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
25155 elif $ac_last_try; then
25156 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
25157 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
25158 { (exit 1); exit 1; }; }
25160 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
25164 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
25165 if test -n "$ac_eof"; then
25166 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
25167 ac_eof
=`expr $ac_eof + 1`
25170 cat >>$CONFIG_STATUS <<_ACEOF
25171 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
25172 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25175 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
25176 s/^/s,@/; s/!/@,|#_!!_#|/
25179 s/'"$ac_delim"'$/,g/; t
25181 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
25182 ' >>$CONFIG_STATUS <conf$
$subs.
sed
25183 rm -f conf$
$subs.
sed
25184 cat >>$CONFIG_STATUS <<_ACEOF
25190 for ac_last_try
in false false false false false
:; do
25191 cat >conf$
$subs.
sed <<_ACEOF
25192 configuration!$configuration$ac_delim
25193 canonical!$canonical$ac_delim
25194 srcdir!$srcdir$ac_delim
25195 lispdir!$lispdir$ac_delim
25196 locallisppath!$locallisppath$ac_delim
25197 lisppath!$lisppath$ac_delim
25198 x_default_search_path!$x_default_search_path$ac_delim
25199 etcdir!$etcdir$ac_delim
25200 archlibdir!$archlibdir$ac_delim
25201 bitmapdir!$bitmapdir$ac_delim
25202 gamedir!$gamedir$ac_delim
25203 gameuser!$gameuser$ac_delim
25204 c_switch_system!$c_switch_system$ac_delim
25205 c_switch_machine!$c_switch_machine$ac_delim
25206 LD_SWITCH_X_SITE!$LD_SWITCH_X_SITE$ac_delim
25207 LD_SWITCH_X_SITE_AUX!$LD_SWITCH_X_SITE_AUX$ac_delim
25208 C_SWITCH_X_SITE!$C_SWITCH_X_SITE$ac_delim
25209 X_TOOLKIT_TYPE!$X_TOOLKIT_TYPE$ac_delim
25210 machfile!$machfile$ac_delim
25211 opsysfile!$opsysfile$ac_delim
25212 ns_appdir!$ns_appdir$ac_delim
25213 ns_appbindir!$ns_appbindir$ac_delim
25214 ns_appresdir!$ns_appresdir$ac_delim
25215 ns_appsrc!$ns_appsrc$ac_delim
25216 GNUSTEP_MAKEFILES!$GNUSTEP_MAKEFILES$ac_delim
25217 GNUSTEP_SYSTEM_HEADERS!$GNUSTEP_SYSTEM_HEADERS$ac_delim
25218 GNUSTEP_SYSTEM_LIBRARIES!$GNUSTEP_SYSTEM_LIBRARIES$ac_delim
25219 GNU_OBJC_CFLAGS!$GNU_OBJC_CFLAGS$ac_delim
25220 LIB_SRC_EXTRA_INSTALLABLES!$LIB_SRC_EXTRA_INSTALLABLES$ac_delim
25221 LTLIBOBJS!$LTLIBOBJS$ac_delim
25224 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 30; then
25226 elif $ac_last_try; then
25227 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
25228 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
25229 { (exit 1); exit 1; }; }
25231 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
25235 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
25236 if test -n "$ac_eof"; then
25237 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
25238 ac_eof
=`expr $ac_eof + 1`
25241 cat >>$CONFIG_STATUS <<_ACEOF
25242 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
25243 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
25246 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
25247 s/^/s,@/; s/!/@,|#_!!_#|/
25250 s/'"$ac_delim"'$/,g/; t
25252 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
25253 ' >>$CONFIG_STATUS <conf$
$subs.
sed
25254 rm -f conf$
$subs.
sed
25255 cat >>$CONFIG_STATUS <<_ACEOF
25262 # VPATH may cause trouble with some makes, so we remove $(srcdir),
25263 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
25264 # trailing colons and then remove the whole line if VPATH becomes empty
25265 # (actually we leave an empty line to preserve line numbers).
25266 if test "x$srcdir" = x.
; then
25267 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
25268 s/:*\$(srcdir):*/:/
25269 s/:*\${srcdir}:*/:/
25271 s/^\([^=]*=[ ]*\):*/\1/
25277 cat >>$CONFIG_STATUS <<\_ACEOF
25278 fi # test -n "$CONFIG_FILES"
25281 for ac_tag
in :F
$CONFIG_FILES :H
$CONFIG_HEADERS :C
$CONFIG_COMMANDS
25284 :[FHLC
]) ac_mode
=$ac_tag; continue;;
25286 case $ac_mode$ac_tag in
25288 :L
* |
:C
*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
25289 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
25290 { (exit 1); exit 1; }; };;
25291 :[FH
]-) ac_tag
=-:-;;
25292 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
25309 -) ac_f
="$tmp/stdin";;
25310 *) # Look for the file first in the build tree, then in the source tree
25311 # (if the path is not absolute). The absolute path cannot be DOS-style,
25312 # because $ac_f cannot contain `:'.
25316 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
25318 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
25319 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
25320 { (exit 1); exit 1; }; };;
25322 ac_file_inputs
="$ac_file_inputs $ac_f"
25325 # Let's still pretend it is `configure' which instantiates (i.e., don't
25326 # use $as_me), people would be surprised to read:
25327 # /* config.h. Generated by config.status. */
25328 configure_input
="Generated from "`IFS=:
25329 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
25330 if test x
"$ac_file" != x-
; then
25331 configure_input
="$ac_file. $configure_input"
25332 { echo "$as_me:$LINENO: creating $ac_file" >&5
25333 echo "$as_me: creating $ac_file" >&6;}
25337 *:-:* |
*:-) cat >"$tmp/stdin";;
25342 ac_dir
=`$as_dirname -- "$ac_file" ||
25343 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25344 X"$ac_file" : 'X\(//\)[^/]' \| \
25345 X"$ac_file" : 'X\(//\)$' \| \
25346 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
25348 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25352 /^X\(\/\/\)[^/].*/{
25367 -*) as_dir
=.
/$as_dir;;
25369 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
25373 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
25374 *) as_qdir
=$as_dir;;
25376 as_dirs
="'$as_qdir' $as_dirs"
25377 as_dir
=`$as_dirname -- "$as_dir" ||
25378 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25379 X"$as_dir" : 'X\(//\)[^/]' \| \
25380 X"$as_dir" : 'X\(//\)$' \| \
25381 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25383 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25387 /^X\(\/\/\)[^/].*/{
25400 test -d "$as_dir" && break
25402 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
25403 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
25404 echo "$as_me: error: cannot create directory $as_dir" >&2;}
25405 { (exit 1); exit 1; }; }; }
25409 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
25411 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25412 # A ".." for each directory in $ac_dir_suffix.
25413 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
25414 case $ac_top_builddir_sub in
25415 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
25416 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
25419 ac_abs_top_builddir
=$ac_pwd
25420 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
25421 # for backward compatibility:
25422 ac_top_builddir
=$ac_top_build_prefix
25425 .
) # We are building in place.
25427 ac_top_srcdir
=$ac_top_builddir_sub
25428 ac_abs_top_srcdir
=$ac_pwd ;;
25429 [\\/]* | ?
:[\\/]* ) # Absolute name.
25430 ac_srcdir
=$srcdir$ac_dir_suffix;
25431 ac_top_srcdir
=$srcdir
25432 ac_abs_top_srcdir
=$srcdir ;;
25433 *) # Relative name.
25434 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
25435 ac_top_srcdir
=$ac_top_build_prefix$srcdir
25436 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
25438 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
25448 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
25449 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
25453 cat >>$CONFIG_STATUS <<\_ACEOF
25454 # If the template does not know about datarootdir, expand it.
25455 # FIXME: This hack should be removed a few years after 2.60.
25456 ac_datarootdir_hack
=; ac_datarootdir_seen
=
25458 case `sed -n '/datarootdir/ {
25467 ' $ac_file_inputs` in
25468 *datarootdir
*) ac_datarootdir_seen
=yes;;
25469 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
25470 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
25471 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
25473 cat >>$CONFIG_STATUS <<_ACEOF
25474 ac_datarootdir_hack='
25475 s&@datadir@&$datadir&g
25476 s&@docdir@&$docdir&g
25477 s&@infodir@&$infodir&g
25478 s&@localedir@&$localedir&g
25479 s&@mandir@&$mandir&g
25480 s&\\\${datarootdir}&$datarootdir&g' ;;
25484 # Neutralize VPATH when `$srcdir' = `.'.
25485 # Shell code in configure.ac might set extrasub.
25486 # FIXME: do we really want to maintain this feature?
25487 cat >>$CONFIG_STATUS <<_ACEOF
25491 cat >>$CONFIG_STATUS <<\_ACEOF
25493 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
25494 s
&@configure_input@
&$configure_input&;t t
25495 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
25496 s
&@srcdir@
&$ac_srcdir&;t t
25497 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
25498 s
&@top_srcdir@
&$ac_top_srcdir&;t t
25499 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
25500 s
&@builddir@
&$ac_builddir&;t t
25501 s
&@abs_builddir@
&$ac_abs_builddir&;t t
25502 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
25503 s
&@INSTALL@
&$ac_INSTALL&;t t
25504 $ac_datarootdir_hack
25505 " $ac_file_inputs | sed -f "$tmp/subs-1.
sed" | sed -f "$tmp/subs-2.
sed" >$tmp/out
25507 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
25508 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
25509 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
25510 { echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
25511 which seems to be undefined. Please make sure it is defined." >&5
25512 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
25513 which seems to be undefined. Please make sure it is defined." >&2;}
25517 -) cat "$tmp/out"; rm -f "$tmp/out";;
25518 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
25527 # Transform confdefs.h into a sed script `conftest.defines', that
25528 # substitutes the proper values into config.h.in to produce config.h.
25529 rm -f conftest.defines conftest.
tail
25530 # First, append a space to every undef/define line, to ease matching.
25531 echo 's/$/ /' >conftest.defines
25532 # Then, protect against being on the right side of a sed subst, or in
25533 # an unquoted here document, in config.status. If some macros were
25534 # called several times there might be several #defines for the same
25535 # symbol, which is useless. But do not sort them, since the last
25536 # AC_DEFINE must be honored.
25537 ac_word_re
=[_
$as_cr_Letters][_
$as_cr_alnum]*
25538 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
25539 # NAME is the cpp macro being defined, VALUE is the value it is being given.
25540 # PARAMS is the parameter list in the macro definition--in most cases, it's
25541 # just an empty string.
25542 ac_dA
='s,^\\([ #]*\\)[^ ]*\\([ ]*'
25543 ac_dB
='\\)[ (].*,\\1define\\2'
25551 s/^[ ]*#[ ]*define[ ][ ]*//
25556 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
25557 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
25558 ' >>conftest.defines
25560 # Remove the space that was appended to ease matching.
25561 # Then replace #undef with comments. This is necessary, for
25562 # example, in the case of _POSIX_SOURCE, which is predefined and required
25563 # on some systems where configure will not decide to define it.
25564 # (The regexp can be short, since the line contains either #define or #undef.)
25566 s,^[ #]*u.*,/* & */,' >>conftest.defines
25568 # Break up conftest.defines:
25569 ac_max_sed_lines
=50
25571 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
25572 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
25573 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
25575 ac_in
='$ac_file_inputs'
25576 ac_out
='"$tmp/out1"'
25577 ac_nxt
='"$tmp/out2"'
25581 # Write a here document:
25582 cat >>$CONFIG_STATUS <<_ACEOF
25583 # First, check the format of the line:
25584 cat >"\$tmp/defines.sed" <<\\CEOF
25585 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
25586 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
25590 sed ${ac_max_sed_lines}q conftest.defines
>>$CONFIG_STATUS
25592 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
25593 ac_in
=$ac_out; ac_out
=$ac_nxt; ac_nxt
=$ac_in
25594 sed 1,${ac_max_sed_lines}d conftest.defines
>conftest.
tail
25595 grep . conftest.
tail >/dev
/null ||
break
25596 rm -f conftest.defines
25597 mv conftest.
tail conftest.defines
25599 rm -f conftest.defines conftest.
tail
25601 echo "ac_result=$ac_in" >>$CONFIG_STATUS
25602 cat >>$CONFIG_STATUS <<\_ACEOF
25603 if test x
"$ac_file" != x-
; then
25604 echo "/* $configure_input */" >"$tmp/config.h"
25605 cat "$ac_result" >>"$tmp/config.h"
25606 if diff $ac_file "$tmp/config.h" >/dev
/null
2>&1; then
25607 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25608 echo "$as_me: $ac_file is unchanged" >&6;}
25611 mv "$tmp/config.h" $ac_file
25614 echo "/* $configure_input */"
25620 :C
) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
25621 echo "$as_me: executing $ac_file commands" >&6;}
25626 case $ac_file$ac_mode in
25629 ### Make the necessary directories, if they don't exist.
25630 for dir
in etc lisp
; do
25631 test -d ${dir} || mkdir
${dir}
25634 # Build src/Makefile from ${srcdir}/src/Makefile.c
25635 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
25636 # This must be done after src/config.h is built, since we rely on that file.
25638 echo creating src
/epaths.h
25639 ${MAKE-make} epaths-force
25641 # As of 2000-11-19, newest development versions of GNU cpp preprocess
25642 # `..' to `. .' unless invoked with -traditional
25644 if test "x$GCC" = xyes
&& test "x$CPP_NEED_TRADITIONAL" = xyes
; then
25645 CPPFLAGS
="$CPPFLAGS -traditional"
25648 echo creating lib-src
/Makefile
25650 rm -f junk.c junk1.c junk2.c
25651 sed -e '/start of cpp stuff/q' \
25652 < Makefile.c
> junk1.c
25653 sed -e '1,/start of cpp stuff/d'\
25654 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
25655 < Makefile.c
> junk.c
25656 $CPP $cpp_undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
25657 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
25658 cat junk1.c junk2.c
> Makefile.new
25659 rm -f junk.c junk1.c junk2.c
25660 chmod 444 Makefile.new
25661 mv -f Makefile.new Makefile
25664 echo creating src
/Makefile
25666 rm -f junk.c junk1.c junk2.c
25667 sed -e '/start of cpp stuff/q' \
25668 < Makefile.c
> junk1.c
25669 sed -e '1,/start of cpp stuff/d'\
25670 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
25671 < Makefile.c
> junk.c
25672 $CPP $cpp_undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
25673 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
25674 cat junk1.c junk2.c
> Makefile.new
25675 rm -f junk.c junk1.c junk2.c
25676 chmod 444 Makefile.new
25677 mv -f Makefile.new Makefile
25680 if test ! -f src
/.gdbinit
&& test -f $srcdir/src
/.gdbinit
; then
25681 echo creating src
/.gdbinit
25682 echo source $srcdir/src
/.gdbinit
> src
/.gdbinit
25691 { (exit 0); exit 0; }
25693 chmod +x
$CONFIG_STATUS
25694 ac_clean_files
=$ac_clean_files_save
25697 # configure is writing to config.log, and then calls config.status.
25698 # config.status does its own redirection, appending to config.log.
25699 # Unfortunately, on DOS this fails, as config.log is still kept open
25700 # by configure, so config.status won't be able to write to it; its
25701 # output is simply discarded. So we exec the FD to /dev/null,
25702 # effectively closing config.log, so it can be properly (re)opened and
25703 # appended to by config.status. When coming back to configure, we
25704 # need to make the FD available again.
25705 if test "$no_create" != yes; then
25707 ac_config_status_args
=
25708 test "$silent" = yes &&
25709 ac_config_status_args
="$ac_config_status_args --quiet"
25711 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
25713 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25714 # would make configure fail if this is the last instruction.
25715 $ac_cs_success ||
{ (exit 1); exit 1; }