2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
22 DUALCASE
=1; export DUALCASE
# for MKS sh
24 # Support unset when possible.
25 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C
; export $as_var
51 # Required to use basename.
52 if expr a
: '\(a\)' >/dev
/null
2>&1; then
58 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
65 # Name of the executable.
66 as_me
=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits
='0123456789'
84 as_cr_alnum
=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
91 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
102 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
105 # Find who we are. Look in the path if we contain no path at all
108 *[\\/]* ) as_myself
=$0 ;;
109 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
113 test -z "$as_dir" && as_dir
=.
114 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x
; then
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
131 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
134 test -z "$as_dir" && as_dir
=.
135 for as_base
in sh bash ksh sh5
; do
138 if ("$as_dir/$as_base" -c '
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
144 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
145 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
146 CONFIG_SHELL
=$as_dir/$as_base
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 s,^['$as_cr_digits']*\n,,
174 chmod +x
$as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
182 # Exit status is that of the last command.
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c
*,-n*) ECHO_N
= ECHO_C
='
190 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
191 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
194 if expr a
: '\(a\)' >/dev
/null
2>&1; then
200 rm -f conf$$ conf$$.exe conf$$.
file
202 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe
; then
206 # Don't use ln at all; we don't have any links
211 elif ln conf$$.
file conf$$
2>/dev
/null
; then
216 rm -f conf$$ conf$$.exe conf$$.
file
218 if mkdir
-p .
2>/dev
/null
; then
221 test -d .
/-p && rmdir .
/-p
225 as_executable_p
="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
235 # We need space, tab and new line, in precisely that order.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
254 ac_default_prefix
=/usr
/local
255 ac_config_libobj_dir
=.
260 SHELL
=${CONFIG_SHELL-/bin/sh}
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
267 # Identity of this package.
274 ac_unique_file
="src/lisp.h"
275 ac_config_libobj_dir
=src
276 # Factoring default headers for most tests.
277 ac_includes_default
="\
280 # include <sys/types.h>
283 # include <sys/stat.h>
294 # if !STDC_HEADERS && HAVE_MEMORY_H
300 # include <strings.h>
303 # include <inttypes.h>
313 ac_subst_vars
='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS MAINT build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT LN_S CPP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA RANLIB ac_ct_RANLIB INSTALL_INFO EGREP SETARCH LIBSOUND SET_MAKE PKG_CONFIG GTK_CFLAGS GTK_LIBS ALLOCA liblockfile LIBOBJS NEED_SETGID KMEM_GROUP GETLOADAVG_LIBS version configuration canonical srcdir lispdir locallisppath lisppath x_default_search_path etcdir archlibdir docdir bitmapdir gamedir gameuser c_switch_system c_switch_machine LD_SWITCH_X_SITE LD_SWITCH_X_SITE_AUX C_SWITCH_X_SITE X_TOOLKIT_TYPE machfile opsysfile carbon_appdir LTLIBOBJS'
316 # Initialize some variables set by options.
318 ac_init_version
=false
319 # The variables have the same names as the options, with
320 # dashes changed to underlines.
328 program_transform_name
=s
,x
,x
,
336 # Installation directory options.
337 # These are left unexpanded so users can "make install exec_prefix=/foo"
338 # and all the variables that are supposed to be based on exec_prefix
339 # by default will actually change.
340 # Use braces instead of parens because sh, perl, etc. also accept them.
341 bindir
='${exec_prefix}/bin'
342 sbindir
='${exec_prefix}/sbin'
343 libexecdir
='${exec_prefix}/libexec'
344 datadir
='${prefix}/share'
345 sysconfdir
='${prefix}/etc'
346 sharedstatedir
='${prefix}/com'
347 localstatedir
='${prefix}/var'
348 libdir
='${exec_prefix}/lib'
349 includedir
='${prefix}/include'
350 oldincludedir
='/usr/include'
351 infodir
='${prefix}/info'
352 mandir
='${prefix}/man'
357 # If the previous option needs an argument, assign it.
358 if test -n "$ac_prev"; then
359 eval "$ac_prev=\$ac_option"
364 ac_optarg
=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
366 # Accept the important Cygnus configure options, so we can diagnose typos.
370 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
372 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
375 -build |
--build |
--buil |
--bui |
--bu)
376 ac_prev
=build_alias
;;
377 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
378 build_alias
=$ac_optarg ;;
380 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
381 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
382 ac_prev
=cache_file
;;
383 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
384 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
385 cache_file
=$ac_optarg ;;
388 cache_file
=config.cache
;;
390 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
392 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
394 datadir
=$ac_optarg ;;
396 -disable-* |
--disable-*)
397 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
398 # Reject names that are not valid shell variable names.
399 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
400 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
401 { (exit 1); exit 1; }; }
402 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
403 eval "enable_$ac_feature=no" ;;
405 -enable-* |
--enable-*)
406 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
407 # Reject names that are not valid shell variable names.
408 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
409 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
410 { (exit 1); exit 1; }; }
411 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
413 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
416 eval "enable_$ac_feature='$ac_optarg'" ;;
418 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
419 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
420 |
--exec |
--exe |
--ex)
421 ac_prev
=exec_prefix
;;
422 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
423 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
424 |
--exec=* |
--exe=* |
--ex=*)
425 exec_prefix
=$ac_optarg ;;
427 -gas |
--gas |
--ga |
--g)
428 # Obsolete; use --with-gas.
431 -help |
--help |
--hel |
--he |
-h)
433 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
434 ac_init_help
=recursive
;;
435 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
436 ac_init_help
=short
;;
438 -host |
--host |
--hos |
--ho)
439 ac_prev
=host_alias
;;
440 -host=* |
--host=* |
--hos=* |
--ho=*)
441 host_alias
=$ac_optarg ;;
443 -includedir |
--includedir |
--includedi |
--included |
--include \
444 |
--includ |
--inclu |
--incl |
--inc)
445 ac_prev
=includedir
;;
446 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
447 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
448 includedir
=$ac_optarg ;;
450 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
452 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
453 infodir
=$ac_optarg ;;
455 -libdir |
--libdir |
--libdi |
--libd)
457 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
460 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
461 |
--libexe |
--libex |
--libe)
462 ac_prev
=libexecdir
;;
463 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
464 |
--libexe=* |
--libex=* |
--libe=*)
465 libexecdir
=$ac_optarg ;;
467 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
468 |
--localstate |
--localstat |
--localsta |
--localst \
469 |
--locals |
--local |
--loca |
--loc |
--lo)
470 ac_prev
=localstatedir
;;
471 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
472 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
473 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
474 localstatedir
=$ac_optarg ;;
476 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
478 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
482 # Obsolete; use --without-fp.
485 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
486 |
--no-cr |
--no-c |
-n)
489 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
490 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
493 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
494 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
495 |
--oldin |
--oldi |
--old |
--ol |
--o)
496 ac_prev
=oldincludedir
;;
497 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
498 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
499 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
500 oldincludedir
=$ac_optarg ;;
502 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
504 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
507 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
508 |
--program-pre |
--program-pr |
--program-p)
509 ac_prev
=program_prefix
;;
510 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
511 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
512 program_prefix
=$ac_optarg ;;
514 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
515 |
--program-suf |
--program-su |
--program-s)
516 ac_prev
=program_suffix
;;
517 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
518 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
519 program_suffix
=$ac_optarg ;;
521 -program-transform-name |
--program-transform-name \
522 |
--program-transform-nam |
--program-transform-na \
523 |
--program-transform-n |
--program-transform- \
524 |
--program-transform |
--program-transfor \
525 |
--program-transfo |
--program-transf \
526 |
--program-trans |
--program-tran \
527 |
--progr-tra |
--program-tr |
--program-t)
528 ac_prev
=program_transform_name
;;
529 -program-transform-name=* |
--program-transform-name=* \
530 |
--program-transform-nam=* |
--program-transform-na=* \
531 |
--program-transform-n=* |
--program-transform-=* \
532 |
--program-transform=* |
--program-transfor=* \
533 |
--program-transfo=* |
--program-transf=* \
534 |
--program-trans=* |
--program-tran=* \
535 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
536 program_transform_name
=$ac_optarg ;;
538 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
539 |
-silent |
--silent |
--silen |
--sile |
--sil)
542 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
544 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
546 sbindir
=$ac_optarg ;;
548 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
549 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
550 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
552 ac_prev
=sharedstatedir
;;
553 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
554 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
555 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
557 sharedstatedir
=$ac_optarg ;;
559 -site |
--site |
--sit)
561 -site=* |
--site=* |
--sit=*)
564 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
566 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
569 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
570 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
571 ac_prev
=sysconfdir
;;
572 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
573 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
574 sysconfdir
=$ac_optarg ;;
576 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
577 ac_prev
=target_alias
;;
578 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
579 target_alias
=$ac_optarg ;;
581 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
584 -version |
--version |
--versio |
--versi |
--vers |
-V)
588 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
589 # Reject names that are not valid shell variable names.
590 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
591 { echo "$as_me: error: invalid package name: $ac_package" >&2
592 { (exit 1); exit 1; }; }
593 ac_package
=`echo $ac_package| sed 's/-/_/g'`
595 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
598 eval "with_$ac_package='$ac_optarg'" ;;
600 -without-* |
--without-*)
601 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
602 # Reject names that are not valid shell variable names.
603 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
604 { echo "$as_me: error: invalid package name: $ac_package" >&2
605 { (exit 1); exit 1; }; }
606 ac_package
=`echo $ac_package | sed 's/-/_/g'`
607 eval "with_$ac_package=no" ;;
610 # Obsolete; use --with-x.
613 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
614 |
--x-incl |
--x-inc |
--x-in |
--x-i)
615 ac_prev
=x_includes
;;
616 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
617 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
618 x_includes
=$ac_optarg ;;
620 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
621 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
622 ac_prev
=x_libraries
;;
623 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
624 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
625 x_libraries
=$ac_optarg ;;
627 -*) { echo "$as_me: error: unrecognized option: $ac_option
628 Try \`$0 --help' for more information." >&2
629 { (exit 1); exit 1; }; }
633 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
634 # Reject names that are not valid shell variable names.
635 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
636 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
637 { (exit 1); exit 1; }; }
638 ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
639 eval "$ac_envvar='$ac_optarg'"
643 # FIXME: should be removed in autoconf 3.0.
644 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
645 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
646 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
647 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
653 if test -n "$ac_prev"; then
654 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
655 { echo "$as_me: error: missing argument to $ac_option" >&2
656 { (exit 1); exit 1; }; }
659 # Be sure to have absolute paths.
660 for ac_var
in exec_prefix prefix
662 eval ac_val
=$
`echo $ac_var`
664 [\\/$
]* | ?
:[\\/]* | NONE |
'' ) ;;
665 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
666 { (exit 1); exit 1; }; };;
670 # Be sure to have absolute paths.
671 for ac_var
in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
672 localstatedir libdir includedir oldincludedir infodir mandir
674 eval ac_val
=$
`echo $ac_var`
676 [\\/$
]* | ?
:[\\/]* ) ;;
677 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
678 { (exit 1); exit 1; }; };;
682 # There might be people who depend on the old broken behavior: `$host'
683 # used to hold the argument of --host etc.
684 # FIXME: To remove some day.
689 # FIXME: To remove some day.
690 if test "x$host_alias" != x
; then
691 if test "x$build_alias" = x
; then
692 cross_compiling
=maybe
693 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
694 If a cross compiler is detected then cross compile mode will be used." >&2
695 elif test "x$build_alias" != "x$host_alias"; then
701 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
703 test "$silent" = yes && exec 6>/dev
/null
706 # Find the source files, if location was not specified.
707 if test -z "$srcdir"; then
708 ac_srcdir_defaulted
=yes
709 # Try the directory containing this script, then its parent.
710 ac_confdir
=`(dirname "$0") 2>/dev/null ||
711 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
712 X"$0" : 'X\(//\)[^/]' \| \
713 X"$0" : 'X\(//\)$' \| \
714 X"$0" : 'X\(/\)' \| \
715 . : '\(.\)' 2>/dev/null ||
717 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
718 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
719 /^X\(\/\/\)$/{ s//\1/; q; }
720 /^X\(\/\).*/{ s//\1/; q; }
723 if test ! -r $srcdir/$ac_unique_file; then
727 ac_srcdir_defaulted
=no
729 if test ! -r $srcdir/$ac_unique_file; then
730 if test "$ac_srcdir_defaulted" = yes; then
731 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
732 { (exit 1); exit 1; }; }
734 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
735 { (exit 1); exit 1; }; }
738 (cd $srcdir && test -r .
/$ac_unique_file) 2>/dev
/null ||
739 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
740 { (exit 1); exit 1; }; }
741 srcdir
=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
742 ac_env_build_alias_set
=${build_alias+set}
743 ac_env_build_alias_value
=$build_alias
744 ac_cv_env_build_alias_set
=${build_alias+set}
745 ac_cv_env_build_alias_value
=$build_alias
746 ac_env_host_alias_set
=${host_alias+set}
747 ac_env_host_alias_value
=$host_alias
748 ac_cv_env_host_alias_set
=${host_alias+set}
749 ac_cv_env_host_alias_value
=$host_alias
750 ac_env_target_alias_set
=${target_alias+set}
751 ac_env_target_alias_value
=$target_alias
752 ac_cv_env_target_alias_set
=${target_alias+set}
753 ac_cv_env_target_alias_value
=$target_alias
754 ac_env_CC_set
=${CC+set}
756 ac_cv_env_CC_set
=${CC+set}
757 ac_cv_env_CC_value
=$CC
758 ac_env_CFLAGS_set
=${CFLAGS+set}
759 ac_env_CFLAGS_value
=$CFLAGS
760 ac_cv_env_CFLAGS_set
=${CFLAGS+set}
761 ac_cv_env_CFLAGS_value
=$CFLAGS
762 ac_env_LDFLAGS_set
=${LDFLAGS+set}
763 ac_env_LDFLAGS_value
=$LDFLAGS
764 ac_cv_env_LDFLAGS_set
=${LDFLAGS+set}
765 ac_cv_env_LDFLAGS_value
=$LDFLAGS
766 ac_env_CPPFLAGS_set
=${CPPFLAGS+set}
767 ac_env_CPPFLAGS_value
=$CPPFLAGS
768 ac_cv_env_CPPFLAGS_set
=${CPPFLAGS+set}
769 ac_cv_env_CPPFLAGS_value
=$CPPFLAGS
770 ac_env_CPP_set
=${CPP+set}
771 ac_env_CPP_value
=$CPP
772 ac_cv_env_CPP_set
=${CPP+set}
773 ac_cv_env_CPP_value
=$CPP
776 # Report the --help message.
778 if test "$ac_init_help" = "long"; then
779 # Omit some internal or obsolete options to make the list less imposing.
780 # This message is too long to be a string in the A/UX 3.1 sh.
782 \`configure' configures this package to adapt to many kinds of systems.
784 Usage: $0 [OPTION]... [VAR=VALUE]...
786 To assign environment variables (e.g., CC, CFLAGS...), specify them as
787 VAR=VALUE. See below for descriptions of some of the useful variables.
789 Defaults for the options are specified in brackets.
792 -h, --help display this help and exit
793 --help=short display options specific to this package
794 --help=recursive display the short help of all the included packages
795 -V, --version display version information and exit
796 -q, --quiet, --silent do not print \`checking...' messages
797 --cache-file=FILE cache test results in FILE [disabled]
798 -C, --config-cache alias for \`--cache-file=config.cache'
799 -n, --no-create do not create output files
800 --srcdir=DIR find the sources in DIR [configure dir or \`..']
805 Installation directories:
806 --prefix=PREFIX install architecture-independent files in PREFIX
808 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
811 By default, \`make install' will install all the files in
812 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
813 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
814 for instance \`--prefix=\$HOME'.
816 For better control, use the options below.
818 Fine tuning of the installation directories:
819 --bindir=DIR user executables [EPREFIX/bin]
820 --sbindir=DIR system admin executables [EPREFIX/sbin]
821 --libexecdir=DIR program executables [EPREFIX/libexec]
822 --datadir=DIR read-only architecture-independent data [PREFIX/share]
823 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
824 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
825 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
826 --libdir=DIR object code libraries [EPREFIX/lib]
827 --includedir=DIR C header files [PREFIX/include]
828 --oldincludedir=DIR C header files for non-gcc [/usr/include]
829 --infodir=DIR info documentation [PREFIX/info]
830 --mandir=DIR man documentation [PREFIX/man]
836 --program-prefix=PREFIX prepend PREFIX to installed program names
837 --program-suffix=SUFFIX append SUFFIX to installed program names
838 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
841 --x-includes=DIR X include files are
in DIR
842 --x-libraries=DIR X library files are
in DIR
845 --build=BUILD configure
for building on BUILD
[guessed
]
846 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
850 if test -n "$ac_init_help"; then
855 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
856 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
857 --enable-carbon-app[=DIR
] [DIR
=/Application
]
858 specify
install directory
for Emacs.app on Mac OS X
859 --enable-maintainer-mode enable make rules and dependencies not useful
860 (and sometimes confusing
) to the casual installer
861 --disable-largefile omit support
for large files
864 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
865 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
866 --without-gcc don
't use GCC to compile Emacs if GCC is found
867 --without-pop don't support POP
mail retrieval with movemail
868 --with-kerberos support Kerberos-authenticated POP
869 --with-kerberos5 support Kerberos version
5 authenticated POP
870 --with-hesiod support Hesiod to get the POP server
host
871 --without-sound don
't compile with sound support
872 --with-x-toolkit=KIT use an X toolkit
873 (KIT = yes/lucid/athena/motif/gtk/no)
874 --with-xpm use -lXpm for displaying XPM images
875 --with-jpeg use -ljpeg for displaying JPEG images
876 --with-tiff use -ltiff for displaying TIFF images
877 --with-gif use -lungif for displaying GIF images
878 --with-png use -lpng for displaying PNG images
879 --with-gtk use GTK (same as --with-x-toolkit=gtk)
880 --with-pkg-config-prog Path to pkg-config to use for finding GTK
881 --without-toolkit-scroll-bars
882 don't use Motif or Xaw3d scroll bars
883 --without-xim don
't use X11 XIM
884 --without-carbon don't use Carbon GUI on Mac OS X
885 --with-x use the X Window System
887 Some influential environment variables
:
888 CC C compiler
command
889 CFLAGS C compiler flags
890 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
891 nonstandard directory
<lib dir
>
892 CPPFLAGS C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if you have
893 headers
in a nonstandard directory
<include dir
>
896 Use these variables to override the choices made by
`configure' or to help
897 it to find libraries and programs with nonstandard names/locations.
902 if test "$ac_init_help" = "recursive"; then
903 # If there are subdirs, report their specific --help.
905 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
906 test -d $ac_dir || continue
909 if test "$ac_dir" != .; then
910 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
911 # A "../" for each directory in $ac_dir_suffix.
912 ac_top_builddir=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,../,g'`
914 ac_dir_suffix= ac_top_builddir=
918 .) # No --srcdir option. We are building in place.
920 if test -z "$ac_top_builddir"; then
923 ac_top_srcdir=`echo $ac_top_builddir |
sed 's,/$,,'`
925 [\\/]* | ?:[\\/]* ) # Absolute path.
926 ac_srcdir=$srcdir$ac_dir_suffix;
927 ac_top_srcdir=$srcdir ;;
929 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
930 ac_top_srcdir=$ac_top_builddir$srcdir ;;
933 # Do not use `cd foo
&& pwd` to compute absolute paths, because
934 # the directories may not exist.
936 .) ac_abs_builddir="$ac_dir";;
939 .) ac_abs_builddir=`pwd`;;
940 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
941 *) ac_abs_builddir=`pwd`/"$ac_dir";;
944 case $ac_abs_builddir in
945 .) ac_abs_top_builddir=${ac_top_builddir}.;;
947 case ${ac_top_builddir}. in
948 .) ac_abs_top_builddir=$ac_abs_builddir;;
949 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
950 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
953 case $ac_abs_builddir in
954 .) ac_abs_srcdir=$ac_srcdir;;
957 .) ac_abs_srcdir=$ac_abs_builddir;;
958 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
959 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
962 case $ac_abs_builddir in
963 .) ac_abs_top_srcdir=$ac_top_srcdir;;
965 case $ac_top_srcdir in
966 .) ac_abs_top_srcdir=$ac_abs_builddir;;
967 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
968 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
973 # Check for guested configure; otherwise get Cygnus style configure.
974 if test -f $ac_srcdir/configure.gnu; then
976 $SHELL $ac_srcdir/configure.gnu --help=recursive
977 elif test -f $ac_srcdir/configure; then
979 $SHELL $ac_srcdir/configure --help=recursive
980 elif test -f $ac_srcdir/configure.ac ||
981 test -f $ac_srcdir/configure.in; then
985 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
991 test -n "$ac_init_help" && exit 0
992 if $ac_init_version; then
995 Copyright (C) 2003 Free Software Foundation, Inc.
996 This configure script is free software; the Free Software Foundation
997 gives unlimited permission to copy, distribute and modify it.
1003 This file contains any messages produced by compilers while
1004 running configure, to aid debugging if configure makes a mistake.
1006 It was created by $as_me, which was
1007 generated by GNU Autoconf 2.59. Invocation command line was
1018 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1019 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1020 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1021 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1022 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1024 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1025 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1027 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1028 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1029 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1030 hostinfo = `(hostinfo
) 2>/dev
/null ||
echo unknown
`
1031 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1032 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1033 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1041 test -z "$as_dir" && as_dir=.
1042 echo "PATH: $as_dir"
1057 # Keep a trace of the command line.
1058 # Strip out --no-create and --no-recursion so they do not pile up.
1059 # Strip out --silent because we don't want to record it for future runs.
1060 # Also quote any args containing shell meta-characters.
1061 # Make two passes to allow for proper duplicate-argument suppression.
1066 ac_must_keep_next=false
1072 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1073 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1074 | -silent | --silent | --silen | --sile | --sil)
1076 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1077 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1080 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1082 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1083 if test $ac_must_keep_next = true; then
1084 ac_must_keep_next=false # Got value, back to normal.
1087 *=* | --config-cache | -C | -disable-* | --disable-* \
1088 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1089 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1090 | -with-* | --with-* | -without-* | --without-* | --x)
1091 case "$ac_configure_args0 " in
1092 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1095 -* ) ac_must_keep_next=true ;;
1098 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1099 # Get rid of the leading space.
1105 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1106 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1108 # When interrupted or exit'd, cleanup temporary files, and complete
1109 # config.log. We remove comments because anyway the quotes in there
1110 # would cause problems or look ugly.
1111 # WARNING: Be sure not to use single quotes in there, as some shells,
1112 # such as our DU 5.0 friend, will then `close
' the trap.
1113 trap 'exit_status
=$?
1114 # Save into config.log some information that might help in debugging.
1119 ## ---------------- ##
1120 ## Cache variables. ##
1121 ## ---------------- ##
1124 # The following way of writing the cache mishandles newlines in values,
1127 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1130 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1131 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1135 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1142 ## ----------------- ##
1143 ## Output variables. ##
1144 ## ----------------- ##
1147 for ac_var
in $ac_subst_vars
1149 eval ac_val
=$
`echo $ac_var`
1150 echo "$ac_var='"'"'$ac_val'"'"'"
1154 if test -n "$ac_subst_files"; then
1161 for ac_var
in $ac_subst_files
1163 eval ac_val
=$
`echo $ac_var`
1164 echo "$ac_var='"'"'$ac_val'"'"'"
1169 if test -s confdefs.h
; then
1176 sed "/^$/d" confdefs.h |
sort
1179 test "$ac_signal" != 0 &&
1180 echo "$as_me: caught signal $ac_signal"
1181 echo "$as_me: exit $exit_status"
1183 rm -f core
*.core
&&
1184 rm -rf conftest
* confdefs
* conf$$
* $ac_clean_files &&
1187 for ac_signal in 1 2 13 15; do
1188 trap 'ac_signal
='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1192 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1193 rm -rf conftest* confdefs.h
1194 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1197 # Predefined preprocessor variables.
1199 cat >>confdefs.h <<_ACEOF
1200 #define PACKAGE_NAME "$PACKAGE_NAME"
1204 cat >>confdefs.h <<_ACEOF
1205 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1209 cat >>confdefs.h <<_ACEOF
1210 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1214 cat >>confdefs.h <<_ACEOF
1215 #define PACKAGE_STRING "$PACKAGE_STRING"
1219 cat >>confdefs.h <<_ACEOF
1220 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1224 # Let the site file select an alternate cache file if it wants to.
1225 # Prefer explicitly selected file to automatically selected ones.
1226 if test -z "$CONFIG_SITE"; then
1227 if test "x$prefix" != xNONE; then
1228 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1230 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1233 for ac_site_file in $CONFIG_SITE; do
1234 if test -r "$ac_site_file"; then
1235 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1236 echo "$as_me: loading site script $ac_site_file" >&6;}
1237 sed 's
/^
/|
/' "$ac_site_file" >&5
1242 if test -r "$cache_file"; then
1243 # Some versions of bash will fail to source /dev/null (special
1244 # files actually), so we avoid doing that.
1245 if test -f "$cache_file"; then
1246 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1247 echo "$as_me: loading cache $cache_file" >&6;}
1249 [\\/]* | ?:[\\/]* ) . $cache_file;;
1250 *) . ./$cache_file;;
1254 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1255 echo "$as_me: creating cache $cache_file" >&6;}
1259 # Check that the precious variables saved in the cache have kept the same
1261 ac_cache_corrupted=false
1262 for ac_var in `(set) 2>&1 |
1263 sed -n 's
/^ac_env_\
([a-zA-Z_0-9
]*\
)_set
=.
*/\
1/p
'`; do
1264 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1265 eval ac_new_set=\$ac_env_${ac_var}_set
1266 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1267 eval ac_new_val="\$ac_env_${ac_var}_value"
1268 case $ac_old_set,$ac_new_set in
1270 { echo "$as_me:$LINENO: error: \`$ac_var' was
set to \
`$ac_old_val' in the previous run" >&5
1271 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&2;}
1272 ac_cache_corrupted=: ;;
1274 { echo "$as_me:$LINENO: error
: \
`$ac_var' was not set in the previous run" >&5
1275 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1276 ac_cache_corrupted=: ;;
1279 if test "x$ac_old_val" != "x$ac_new_val"; then
1280 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run
:" >&5
1281 echo "$as_me: error
: \
`$ac_var' has changed since the previous run:" >&2;}
1282 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1283 echo "$as_me: former value: $ac_old_val" >&2;}
1284 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1285 echo "$as_me: current value: $ac_new_val" >&2;}
1286 ac_cache_corrupted=:
1289 # Pass precious variables to config.status.
1290 if test "$ac_new_set" = set; then
1292 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1293 ac_arg=$ac_var=`echo "$ac_new_val" |
sed "s/'/'\\\\\\\\''/g"` ;;
1294 *) ac_arg=$ac_var=$ac_new_val ;;
1296 case " $ac_configure_args " in
1297 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1298 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1302 if $ac_cache_corrupted; then
1303 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1304 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1305 { { echo "$as_me:$LINENO: error: run \`make distclean
' and/or \`rm $cache_file' and start over
" >&5
1306 echo "$as_me: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1307 { (exit 1); exit 1; }; }
1311 ac_cpp='$CPP $CPPFLAGS'
1312 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
1313 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
1314 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1334 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
1337 test "$program_prefix" != NONE &&
1338 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1339 # Use a double $ so make ignores it.
1340 test "$program_suffix" != NONE &&
1341 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1342 # Double any \ or $. echo might interpret backslashes.
1343 # By default was `s,x,x', remove it
if useless.
1344 cat <<\_ACEOF
>conftest.
sed
1345 s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//
1347 program_transform_name
=`echo $program_transform_name | sed -f conftest.sed`
1351 lispdir
='${datadir}/emacs/${version}/lisp'
1352 locallisppath
='${datadir}/emacs/${version}/site-lisp:'\
1353 '${datadir}/emacs/site-lisp:${datadir}/emacs/${version}/leim'
1354 lisppath
='${locallisppath}:${lispdir}'
1355 etcdir
='${datadir}/emacs/${version}/etc'
1356 archlibdir
='${libexecdir}/emacs/${version}/${configuration}'
1357 docdir
='${datadir}/emacs/${version}/etc'
1358 gamedir
='${localstatedir}/games/emacs'
1363 # Check whether --with-gcc or --without-gcc was given.
1364 if test "${with_gcc+set}" = set; then
1369 # Check whether --with-pop or --without-pop was given.
1370 if test "${with_pop+set}" = set; then
1372 if test "$withval" = yes; then
1373 cat >>confdefs.h
<<\_ACEOF
1374 #define MAIL_USE_POP 1
1380 cat >>confdefs.h
<<\_ACEOF
1381 #define MAIL_USE_POP 1
1387 # Check whether --with-kerberos or --without-kerberos was given.
1388 if test "${with_kerberos+set}" = set; then
1389 withval
="$with_kerberos"
1390 cat >>confdefs.h
<<\_ACEOF
1397 # Check whether --with-kerberos5 or --without-kerberos5 was given.
1398 if test "${with_kerberos5+set}" = set; then
1399 withval
="$with_kerberos5"
1400 if test "${with_kerberos5+set}" = set; then
1401 if test "${with_kerberos+set}" != set; then
1403 cat >>confdefs.h
<<\_ACEOF
1410 cat >>confdefs.h
<<\_ACEOF
1416 # Check whether --with-hesiod or --without-hesiod was given.
1417 if test "${with_hesiod+set}" = set; then
1418 withval
="$with_hesiod"
1420 cat >>confdefs.h
<<\_ACEOF
1427 # Check whether --with-sound or --without-sound was given.
1428 if test "${with_sound+set}" = set; then
1429 withval
="$with_sound"
1434 # Check whether --with-x-toolkit or --without-x-toolkit was given.
1435 if test "${with_x_toolkit+set}" = set; then
1436 withval
="$with_x_toolkit"
1437 case "${withval}" in
1438 y | ye |
yes ) val
=athena
;;
1440 l | lu | luc | luci | lucid
) val
=lucid
;;
1441 a |
at | ath | athe | athen | athena
) val
=athena
;;
1442 m | mo | mot | moti | motif
) val
=motif
;;
1443 g | gt | gtk
) val
=gtk
;;
1445 { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid\;
1446 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1447 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&5
1448 echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid\;
1449 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1450 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&2;}
1451 { (exit 1); exit 1; }; }
1458 # Check whether --with-xpm or --without-xpm was given.
1459 if test "${with_xpm+set}" = set; then
1464 # Check whether --with-jpeg or --without-jpeg was given.
1465 if test "${with_jpeg+set}" = set; then
1466 withval
="$with_jpeg"
1470 # Check whether --with-tiff or --without-tiff was given.
1471 if test "${with_tiff+set}" = set; then
1472 withval
="$with_tiff"
1476 # Check whether --with-gif or --without-gif was given.
1477 if test "${with_gif+set}" = set; then
1482 # Check whether --with-png or --without-png was given.
1483 if test "${with_png+set}" = set; then
1488 # Check whether --with-gtk or --without-gtk was given.
1489 if test "${with_gtk+set}" = set; then
1494 # Check whether --with-pkg-config-prog or --without-pkg-config-prog was given.
1495 if test "${with_pkg_config_prog+set}" = set; then
1496 withval
="$with_pkg_config_prog"
1500 # Check whether --with-toolkit-scroll-bars or --without-toolkit-scroll-bars was given.
1501 if test "${with_toolkit_scroll_bars+set}" = set; then
1502 withval
="$with_toolkit_scroll_bars"
1506 # Check whether --with-xim or --without-xim was given.
1507 if test "${with_xim+set}" = set; then
1512 # Check whether --with-carbon or --without-carbon was given.
1513 if test "${with_carbon+set}" = set; then
1514 withval
="$with_carbon"
1517 # Check whether --enable-carbon-app or --disable-carbon-app was given.
1518 if test "${enable_carbon_app+set}" = set; then
1519 enableval
="$enable_carbon_app"
1520 carbon_appdir_x
=${enableval}
1523 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1524 if test "${enable_maintainer_mode+set}" = set; then
1525 enableval
="$enable_maintainer_mode"
1526 USE_MAINTAINER_MODE
=$enableval
1528 USE_MAINTAINER_MODE
=no
1530 if test $USE_MAINTAINER_MODE = yes; then
1537 #### Make srcdir absolute, if it isn't already. It's important to
1538 #### avoid running the path through pwd unnecessarily, since pwd can
1539 #### give you automounter prefixes, which can go away. We do all this
1540 #### so Emacs can find its files when run uninstalled.
1541 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
1546 ## We may be able to use the $PWD environment variable to make this
1547 ## absolute. But sometimes PWD is inaccurate.
1548 ## Note: we used to use ${PWD} at the end instead of `pwd`,
1549 ## but that tested only for a well-formed and valid PWD,
1550 ## it did not object when PWD was well-formed and valid but just wrong.
1551 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
1555 srcdir
="`(cd ${srcdir}; pwd)`"
1558 * ) srcdir
="`(cd ${srcdir}; pwd)`" ;;
1561 #### Check if the source directory already has a configured system in it.
1562 if test `pwd` != `(cd ${srcdir} && pwd)` \
1563 && test -f "${srcdir}/src/config.h" ; then
1564 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
1565 as a build directory right now; it has been configured in its own
1566 right. To configure in another directory as well, you MUST
1567 use GNU make. If you do not have GNU make, then you must
1568 now do \`make distclean' in ${srcdir},
1569 and then run $0 again." >&5
1570 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
1571 as a build directory right now; it has been configured in its own
1572 right. To configure in another directory as well, you MUST
1573 use GNU make. If you do not have GNU make, then you must
1574 now do \`make distclean' in ${srcdir},
1575 and then run $0 again." >&2;}
1578 #### Given the configuration name, set machfile and opsysfile to the
1579 #### names of the m/*.h and s/*.h files we should use.
1581 ### Canonicalize the configuration name.
1584 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
1585 if test -f $ac_dir/install-sh
; then
1587 ac_install_sh
="$ac_aux_dir/install-sh -c"
1589 elif test -f $ac_dir/install.sh
; then
1591 ac_install_sh
="$ac_aux_dir/install.sh -c"
1593 elif test -f $ac_dir/shtool
; then
1595 ac_install_sh
="$ac_aux_dir/shtool install -c"
1599 if test -z "$ac_aux_dir"; then
1600 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1601 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1602 { (exit 1); exit 1; }; }
1604 ac_config_guess
="$SHELL $ac_aux_dir/config.guess"
1605 ac_config_sub
="$SHELL $ac_aux_dir/config.sub"
1606 ac_configure
="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1608 # Make sure we can run config.sub.
1609 $ac_config_sub sun4
>/dev
/null
2>&1 ||
1610 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1611 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1612 { (exit 1); exit 1; }; }
1614 echo "$as_me:$LINENO: checking build system type" >&5
1615 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1616 if test "${ac_cv_build+set}" = set; then
1617 echo $ECHO_N "(cached) $ECHO_C" >&6
1619 ac_cv_build_alias
=$build_alias
1620 test -z "$ac_cv_build_alias" &&
1621 ac_cv_build_alias
=`$ac_config_guess`
1622 test -z "$ac_cv_build_alias" &&
1623 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1624 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1625 { (exit 1); exit 1; }; }
1626 ac_cv_build
=`$ac_config_sub $ac_cv_build_alias` ||
1627 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1628 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1629 { (exit 1); exit 1; }; }
1632 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1633 echo "${ECHO_T}$ac_cv_build" >&6
1635 build_cpu
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1636 build_vendor
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1637 build_os
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1640 echo "$as_me:$LINENO: checking host system type" >&5
1641 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1642 if test "${ac_cv_host+set}" = set; then
1643 echo $ECHO_N "(cached) $ECHO_C" >&6
1645 ac_cv_host_alias
=$host_alias
1646 test -z "$ac_cv_host_alias" &&
1647 ac_cv_host_alias
=$ac_cv_build_alias
1648 ac_cv_host
=`$ac_config_sub $ac_cv_host_alias` ||
1649 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1650 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1651 { (exit 1); exit 1; }; }
1654 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1655 echo "${ECHO_T}$ac_cv_host" >&6
1657 host_cpu
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1658 host_vendor
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1659 host_os
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1663 configuration
=${host_alias-$host}
1667 ### If you add support for a new configuration, add code to this
1668 ### switch statement to recognize your configuration name and select
1669 ### the appropriate operating system and machine description files.
1671 ### You would hope that you could choose an m/*.h file pretty much
1672 ### based on the machine portion of the configuration name, and an s-
1673 ### file based on the operating system portion. However, it turns out
1674 ### that each m/*.h file is pretty manufacturer-specific - for
1675 ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are
1676 ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS
1677 ### machines. So we basically have to have a special case for each
1678 ### configuration name.
1680 ### As far as handling version numbers on operating systems is
1681 ### concerned, make sure things will fail in a fixable way. If
1682 ### /etc/MACHINES doesn't say anything about version numbers, be
1683 ### prepared to handle anything reasonably. If version numbers
1684 ### matter, be sure /etc/MACHINES says something about it.
1686 ### Eric Raymond says we should accept strings like "sysvr4" to mean
1687 ### "System V Release 4"; he writes, "The old convention encouraged
1688 ### confusion between `system' and `release' levels'."
1690 machine
='' opsys
='' unported
=no
1691 case "${canonical}" in
1696 case "${canonical}" in
1697 alpha
*-*-freebsd*) machine
=alpha
;;
1698 i
[3456]86-*-freebsd*) machine
=intel386
;;
1705 if test -f /usr
/lib
/crti.o
; then
1707 cat >>confdefs.h
<<\_ACEOF
1713 case "${canonical}" in
1714 alpha
*-*-netbsd*) machine
=alpha
;;
1715 i
[3456]86-*-netbsd*) machine
=intel386
;;
1717 # This is somewhat bogus.
1718 machine
=hp9000s300
;;
1719 powerpc-apple-netbsd
*) machine
=macppc
;;
1720 mips-
*-netbsd*) machine
=pmax
;;
1721 mipsel-
*-netbsd*) machine
=pmax
;;
1722 mipseb-
*-netbsd*) machine
=pmax
;;
1723 ns32k-
*-netbsd*) machine
=ns32000
;;
1724 powerpc-
*-netbsd*) machine
=macppc
;;
1725 sparc
*-*-netbsd*) machine
=sparc
;;
1726 vax-
*-netbsd*) machine
=vax
;;
1727 arm-
*-netbsd*) machine
=arm
;;
1734 case "${canonical}" in
1735 alpha
*-*-openbsd*) machine
=alpha
;;
1736 i386-
*-openbsd*) machine
=intel386
;;
1737 m68k-
*-openbsd*) machine
=hp9000s300
;;
1738 mipsel-
*-openbsd*) machine
=pmax
;;
1739 ns32k-
*-openbsd*) machine
=ns32000
;;
1740 sparc-
*-openbsd*) machine
=sparc
;;
1741 vax-
*-openbsd*) machine
=vax
;;
1746 arm-acorn-riscix1.1
* )
1747 machine
=acorn opsys
=riscix1-1
1749 arm-acorn-riscix1.2
* | arm-acorn-riscix
)
1750 ## This name is riscix12 instead of riscix1.2
1751 ## to avoid a file name conflict on MSDOS.
1752 machine
=acorn opsys
=riscix12
1758 case "${canonical}" in
1759 i
[345]86-*-bsdi*) machine
=intel386
;;
1760 sparc-
*-bsdi*) machine
=sparc
;;
1761 powerpc-
*-bsdi*) machine
=macppc
;;
1763 case "${canonical}" in
1764 *-*-bsd386* |
*-*-bsdi1* ) opsys
=bsd386
;;
1765 *-*-bsdi2.0
* ) opsys
=bsdos2
;;
1766 *-*-bsdi2* ) opsys
=bsdos2-1
;;
1767 *-*-bsdi3* ) opsys
=bsdos3
;;
1768 *-*-bsdi[45]* ) opsys
=bsdos4
;;
1773 ## Strictly speaking, we need the version of the alliant operating
1774 ## system to choose the right machine file, but currently the
1775 ## configuration name doesn't tell us enough to choose the right
1776 ## one; we need to give alliants their own operating system name to
1777 ## do this right. When someone cares, they can help us.
1779 machine
=alliant4 opsys
=bsd4-2
1782 machine
=alliant-2800 opsys
=bsd4-3
1785 ## Alpha (DEC) machines.
1787 machine
=alpha opsys
=osf1
1788 # This is needed to find X11R6.1 libraries for certain tests.
1789 NON_GCC_LINK_TEST_OPTIONS
=-Wl,-rpath,/usr
/X11R
6/lib
1790 GCC_LINK_TEST_OPTIONS
=-Wl,-rpath,/usr
/X11R
6/lib
1791 # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile
1792 # due to non-traditional preprocessing with the current compiler
1793 # defaults. OSF 4 can also have that compiler version, and there
1794 # seems always to have been a usable /usr/bin/cpp.
1795 NON_GNU_CPP
=/usr
/bin
/cpp
1796 case "${canonical}" in
1797 alpha
*-dec-osf[5-9]*)
1802 alpha
*-*-linux-gnu* )
1803 machine
=alpha opsys
=gnu-linux
1807 machine
=arm opsys
=gnu-linux
1812 machine
=macppc opsys
=gnu-linux
1817 machine
=altos opsys
=usg5-2
1822 machine
=amdahl opsys
=usg5-2-2
1825 ## Apollo, Domain/OS
1827 machine
=apollo opsys
=bsd4-3
1830 ## AT&T 3b2, 3b5, 3b15, 3b20
1832 machine
=att3b opsys
=usg5-2-2
1835 ## AT&T 3b1 - The Mighty Unix PC!
1837 machine
=7300 opsys
=usg5-2-2
1842 machine
=ibmrs6000 opsys
=aix3-2
1847 machine
=dpx2 opsys
=usg5-3
1852 machine
=sps7 opsys
=usg5-2
1855 ## CCI 5/32, 6/32 -- see "Tahoe".
1858 ## I don't know what configuration name to use for this; config.sub
1859 ## doesn't seem to know anything about it. Hey, Celerity users, get
1860 ## in touch with us!
1861 celerity-celerity-bsd
* )
1862 machine
=celerity opsys
=bsd4-2
1866 ## What operating systems does this chip run that Emacs has been
1870 ## We'll use the catch-all code at the bottom to guess the
1871 ## operating system.
1875 mips-compaq-nonstopux
* )
1876 machine
=nonstopux opsys
=nonstopux
1880 *-convex-bsd* |
*-convex-convexos* )
1881 machine
=convex opsys
=bsd4-3
1882 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
1883 NON_GNU_CPP
="cc -E -P"
1887 i
[3456]86-cubix-sysv* )
1888 machine
=intel386 opsys
=usg5-3
1892 cydra
*-cydrome-sysv* )
1893 machine
=cydra5 opsys
=usg5-3
1896 ## Data General AViiON Machines
1897 ## DG changed naming conventions with the release of 5.4.4.10, they
1898 ## dropped the initial 5.4 but left the intervening R. Because of the
1899 ## R this shouldn't conflict with older versions of the OS (which I
1900 ## think were named like dgux4.*). In addition, DG new AViiONs series
1901 ## uses either Motorola M88k or Intel Pentium CPUs.
1902 m88k-dg-dguxR4.
* | m88k-dg-dgux4
* )
1903 machine
=aviion opsys
=dgux4
1905 m88k-dg-dgux5.4R3
* | m88k-dg-dgux5.4
.3* )
1906 ## This name is dgux5-4-3 instead of dgux5-4r3
1907 ## to avoid a file name conflict on MSDOS.
1908 machine
=aviion opsys
=dgux5-4-3
1910 m88k-dg-dgux5.4R2
* | m88k-dg-dgux5.4
.2* )
1911 machine
=aviion opsys
=dgux5-4r2
1914 machine
=aviion opsys
=dgux
1917 ## Data General AViiON Intel (x86) Machines
1918 ## Exists from 5.4.3 (current i586-dg-dguxR4.11)
1919 ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il
1920 i
[345]86-dg-dguxR4* )
1921 machine
=aviion-intel opsys
=dgux4
1925 mips-dec-ultrix
[0-3].
* | mips-dec-ultrix4.0
* | mips-dec-bsd4.2
* )
1926 machine
=pmax opsys
=bsd4-2
1928 mips-dec-ultrix4.
[12]* | mips-dec-bsd
* )
1929 machine
=pmax opsys
=bsd4-3
1932 machine
=pmax opsys
=ultrix4-3
1935 machine
=pmax opsys
=osf1
1937 mips-dec-mach_bsd4.3
* )
1938 machine
=pmax opsys
=mach-bsd4-3
1941 ## Motorola Delta machines
1942 m68k-motorola-sysv
* | m68000-motorola-sysv
* )
1943 machine
=delta opsys
=usg5-3
1944 if test -z "`type gnucc | grep 'not found'`"
1946 if test -s /etc
/167config
1947 then CC
="gnucc -m68040"
1948 else CC
="gnucc -m68881"
1951 if test -z "`type gcc | grep 'not found'`"
1957 m88k-motorola-sysv4
* )
1958 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
1959 # needs POSIX_SIGNALS and therefore needs usg5-4-2.
1960 # I hope there are not other 4.0 versions for this machine
1961 # which really need usg5-4 instead.
1962 machine
=delta88k opsys
=usg5-4-2
1964 m88k-motorola-sysv
* | m88k-motorola-m88kbcs
* )
1965 machine
=delta88k opsys
=usg5-3
1970 machine
=dual opsys
=usg5-2
1972 m68
*-dual-uniplus* )
1973 machine
=dual opsys
=unipl5-2
1978 machine
=elxsi opsys
=usg5-2
1983 machine
=ns16000 opsys
=umax
1986 ## The GEC 63 - apparently, this port isn't really finished yet.
1987 # I'm sure we finished off the last of the machines, though. -- fx
1989 ## Gould Power Node and NP1
1991 machine
=gould opsys
=bsd4-2
1994 machine
=gould opsys
=bsd4-3
1997 machine
=gould-np1 opsys
=bsd4-3
2000 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
2001 ## as far as Emacs is concerned).
2003 # Build needs to be different on 7.0 and later releases
2004 case "`uname -r`" in
2005 [56].
[0-9] ) machine
=nh4000 opsys
=cxux
;;
2006 [7].
[0-9] ) machine
=nh4000 opsys
=cxux7
;;
2008 NON_GNU_CPP
="/lib/cpp"
2010 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
2012 machine
=nh3000 opsys
=cxux
2014 ## Harris power pc NightHawk running Power UNIX (Series 6000)
2015 powerpc-harris-powerunix
)
2016 machine
=nh6000 opsys
=powerunix
2017 NON_GNU_CPP
="cc -Xo -E -P"
2019 ## SR2001/SR2201 running HI-UX/MPP
2020 hppa1.1
-hitachi-hiuxmpp* )
2021 machine
=sr2k opsys
=hiuxmpp
2023 hppa1.1
-hitachi-hiuxwe2* )
2024 machine
=sr2k opsys
=hiuxwe2
2027 xps
*-honeywell-sysv* )
2028 machine
=xps100 opsys
=usg5-2
2031 ## HP 9000 series 200 or 300
2033 machine
=hp9000s300 opsys
=bsd4-3
2035 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
2037 case "`uname -r`" in
2038 ## Someone's system reports A.B8.05 for this.
2039 ## I wonder what other possibilities there are.
2040 *.B8.
* ) machine
=hp9000s300 opsys
=hpux8
;;
2041 *.08.
* ) machine
=hp9000s300 opsys
=hpux8
;;
2042 *.09.
* ) machine
=hp9000s300 opsys
=hpux9
;;
2043 *.1[0-9].
* ) machine
=hp9000s300 opsys
=hpux9shr
;;
2044 *) machine
=hp9000s300 opsys
=hpux
;;
2048 ## HP 9000 series 700 and 800, running HP/UX
2050 machine
=hp800 opsys
=hpux
2053 machine
=hp800 opsys
=hpux8
2055 hppa
*-hp-hpux9shr* )
2056 machine
=hp800 opsys
=hpux9shr
2059 machine
=hp800 opsys
=hpux9
2061 hppa
*-hp-hpux10.2
* )
2062 machine
=hp800 opsys
=hpux10-20
2065 machine
=hp800 opsys
=hpux10
2067 hppa
*-hp-hpux1[1-9]* )
2068 machine
=hp800 opsys
=hpux11
2071 hppa
*-*-linux-gnu* )
2072 machine
=hp800 opsys
=gnu-linux
2075 ## HP 9000 series 700 and 800, running HP/UX
2077 ## Cross-compilation? Nah!
2078 case "`uname -r`" in
2079 ## Someone's system reports A.B8.05 for this.
2080 ## I wonder what other possibilities there are.
2081 *.B8.
* ) machine
=hp800 opsys
=hpux8
;;
2082 *.08.
* ) machine
=hp800 opsys
=hpux8
;;
2083 *.09.
* ) machine
=hp800 opsys
=hpux9
;;
2084 *) machine
=hp800 opsys
=hpux10
;;
2088 machine
=hp800 opsys
=nextstep
2093 machine
=orion opsys
=bsd4-2
2095 clipper-orion-bsd
* )
2096 machine
=orion105 opsys
=bsd4-2
2100 i
[3456]86-ibm-aix1.1
* )
2101 machine
=ibmps2-aix opsys
=usg5-2-2
2103 i
[3456]86-ibm-aix1.
[23]* | i
[3456]86-ibm-aix* )
2104 machine
=ibmps2-aix opsys
=usg5-3
2107 machine
=ibm370aix opsys
=usg5-3
2110 machine
=ibms390 opsys
=gnu-linux
2112 rs6000-ibm-aix3.1
* | powerpc-ibm-aix3.1
* )
2113 machine
=ibmrs6000 opsys
=aix3-1
2115 rs6000-ibm-aix3.2
.5 | powerpc-ibm-aix3.2
.5 )
2116 machine
=ibmrs6000 opsys
=aix3-2-5
2118 rs6000-ibm-aix4.1
* | powerpc-ibm-aix4.1
* )
2119 machine
=ibmrs6000 opsys
=aix4-1
2121 rs6000-ibm-aix4.2
* | powerpc-ibm-aix4.2
* )
2122 machine
=ibmrs6000 opsys
=aix4-2
2124 rs6000-ibm-aix5
* | powerpc-ibm-aix5
* )
2125 machine
=ibmrs6000 opsys
=aix4-2
2127 rs6000-ibm-aix4.0
* | powerpc-ibm-aix4.0
* )
2128 machine
=ibmrs6000 opsys
=aix4
2130 rs6000-ibm-aix4
* | powerpc-ibm-aix4
* )
2131 machine
=ibmrs6000 opsys
=aix4-1
2133 rs6000-ibm-aix
* | powerpc-ibm-aix
* )
2134 machine
=ibmrs6000 opsys
=aix3-2
2137 machine
=ibmrt opsys
=bsd4-3
2140 machine
=ibmrt opsys
=bsd4-2
2143 machine
=ibmrt opsys
=bsd4-3
2146 machine
=ibmrt opsys
=bsd4-2
2149 machine
=ibmrt opsys
=bsd4-3
2152 machine
=ibmrt opsys
=bsd4-3
2155 machine
=ibmrt-aix opsys
=usg5-2-2
2158 ## Integrated Solutions `Optimum V'
2160 machine
=isi-ov opsys
=bsd4-2
2163 machine
=isi-ov opsys
=bsd4-3
2166 ## Intel 386 machines where we do care about the manufacturer
2167 i
[3456]86-intsys-sysv* )
2168 machine
=is386 opsys
=usg5-2-2
2172 i
[3456]86-prime-sysv* )
2173 machine
=i386 opsys
=usg5-3
2176 ## Sequent Symmetry running Dynix
2177 i
[3456]86-sequent-bsd* )
2178 machine
=symmetry opsys
=bsd4-3
2181 ## Sequent Symmetry running ptx 4, which is a modified SVR4.
2182 i
[3456]86-sequent-ptx4* | i
[3456]86-sequent-sysv4* )
2183 machine
=sequent-ptx opsys
=ptx4
2184 NON_GNU_CPP
=/lib
/cpp
2187 ## Sequent Symmetry running DYNIX/ptx
2188 ## Use the old cpp rather than the newer ANSI one.
2189 i
[3456]86-sequent-ptx* )
2190 machine
=sequent-ptx opsys
=ptx
2191 NON_GNU_CPP
="/lib/cpp"
2194 ## ncr machine running svr4.3.
2195 i
[3456]86-ncr-sysv4.3
)
2196 machine
=ncr386 opsys
=usg5-4-3
2199 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2200 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2201 i
[3456]86-ncr-sysv* )
2202 machine
=ncr386 opsys
=usg5-4-2
2205 ## Intel Paragon OSF/1
2207 machine
=paragon opsys
=osf1 NON_GNU_CPP
=/usr
/mach
/lib
/cpp
2212 machine
=i860 opsys
=usg5-4
2213 NON_GNU_CC
="/bin/cc" # Ie, not the one in /usr/ucb/cc.
2214 NON_GNU_CPP
="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
2217 ## Macintosh PowerPC
2218 powerpc
*-*-linux-gnu* )
2219 machine
=macppc opsys
=gnu-linux
2222 ## Masscomp machines
2223 m68
*-masscomp-rtu* )
2224 machine
=masscomp opsys
=rtu
2227 ## Megatest machines
2228 m68
*-megatest-bsd* )
2229 machine
=mega68 opsys
=bsd4-2
2232 ## Workstations sold by MIPS
2233 ## This is not necessarily all workstations using the MIPS processor -
2234 ## Irises are produced by SGI, and DECstations by DEC.
2236 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
2237 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
2238 ## it gives for choosing between the alternatives seems to be "Use
2239 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
2240 ## the BSD world." I'll assume that these are instructions for
2241 ## handling two odd situations, and that every other situation
2242 ## should use mips.h and usg5-2-2, they being listed first.
2245 ## Fall through to the general code at the bottom to decide on the OS.
2247 mips-mips-riscos4
* )
2248 machine
=mips4 opsys
=bsd4-3
2249 NON_GNU_CC
="cc -systype bsd43"
2250 NON_GNU_CPP
="cc -systype bsd43 -E"
2252 mips-mips-riscos5
* )
2253 machine
=mips4 opsys
=riscos5
2254 NON_GNU_CC
="cc -systype bsd43"
2255 NON_GNU_CPP
="cc -systype bsd43 -E"
2258 machine
=mips opsys
=bsd4-3
2261 machine
=mips opsys
=usg5-2-2
2265 m68
*-next-* | m68k-
*-nextstep* )
2266 machine
=m68k opsys
=nextstep
2269 ## The complete machine from National Semiconductor
2271 machine
=ns32000 opsys
=usg5-2
2275 m68
*-ncr-sysv2* | m68
*-ncr-sysvr2* )
2276 machine
=tower32 opsys
=usg5-2-2
2278 m68
*-ncr-sysv3* | m68
*-ncr-sysvr3* )
2279 machine
=tower32v3 opsys
=usg5-3
2284 machine
=ews4800 opsys
=ux4800
2287 ## Nixdorf Targon 31
2288 m68
*-nixdorf-sysv* )
2289 machine
=targon31 opsys
=usg5-2-2
2294 machine
=nu opsys
=usg5-2
2299 machine
=plexus opsys
=usg5-2
2303 ## I don't really have any idea what sort of processor the Pyramid has,
2304 ## so I'm assuming it is its own architecture.
2305 pyramid-pyramid-bsd
* )
2306 machine
=pyramid opsys
=bsd4-2
2310 ns32k-sequent-bsd4.2
* )
2311 machine
=sequent opsys
=bsd4-2
2313 ns32k-sequent-bsd4.3
* )
2314 machine
=sequent opsys
=bsd4-3
2318 mips-siemens-sysv
* | mips-sni-sysv
*)
2319 machine
=mips-siemens opsys
=usg5-4
2320 NON_GNU_CC
=/usr
/ccs
/bin
/cc
2321 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2324 ## Silicon Graphics machines
2325 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
2327 machine
=irist opsys
=iris3-5
2329 m68
*-sgi-iris3.6
* | m68
*-sgi-iris*)
2330 machine
=irist opsys
=iris3-6
2334 machine
=iris4d opsys
=irix3-3
2337 machine
=iris4d opsys
=irix4-0
2340 machine
=iris4d opsys
=irix6-5
2341 # Without defining _LANGUAGE_C, things get masked out in the headers
2342 # so that, for instance, grepping for `free' in stdlib.h fails and
2343 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2344 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2345 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
2348 machine
=iris4d opsys
=irix6-0
2349 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
2350 # but presumably it does no harm.
2351 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2352 # -32 probably isn't necessary in later v.6s -- anyone know which?
2353 NON_GCC_TEST_OPTIONS
=-32
2355 mips-sgi-irix5.
[01]* )
2356 machine
=iris4d opsys
=irix5-0
2358 mips-sgi-irix5
* | mips-sgi-irix
* )
2359 machine
=iris4d opsys
=irix5-2
2364 machine
=news opsys
=bsd4-2
2367 machine
=news opsys
=bsd4-3
2369 m68
*-sony-newsos3* | m68
*-sony-news3*)
2370 machine
=news opsys
=bsd4-3
2372 mips-sony-bsd
* | mips-sony-newsos4
* | mips-sony-news4
*)
2373 machine
=news-risc opsys
=bsd4-3
2375 mips-sony-newsos6
* )
2376 machine
=news-r6 opsys
=newsos6
2379 machine
=news-risc opsys
=newsos5
2384 machine
=stride opsys
=usg5-2
2388 sparc-
*-linux-gnu* | sparc64-
*-linux-gnu* )
2389 machine
=sparc opsys
=gnu-linux
2392 *-auspex-sunos* |
*-sun-sunos* |
*-sun-bsd* |
*-sun-solaris* \
2393 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* | powerpc
*-*-solaris2* \
2394 | rs6000-
*-solaris2*)
2395 case "${canonical}" in
2396 m68
*-sunos1* ) machine
=sun1
;;
2397 m68
*-sunos2* ) machine
=sun2
;;
2398 m68
* ) machine
=sun3
;;
2399 i
[3456]86-sun-sunos[34]* ) machine
=sun386
;;
2400 i
[3456]86-*-* ) machine
=intel386
;;
2401 powerpcle
* ) machine
=powerpcle
;;
2402 powerpc
* | rs6000
* ) machine
=ibmrs6000
;;
2403 sparc
* ) machine
=sparc
;;
2406 case "${canonical}" in
2407 ## The Sun386 didn't get past 4.0.
2408 i
[3456]86-*-sunos4 ) opsys
=sunos4-0
;;
2409 *-sunos4.0
* ) opsys
=sunos4-0
;;
2410 *-sunos4.1.
[3-9]*noshare
)
2411 ## This name is sunos413 instead of sunos4-1-3
2412 ## to avoid a file name conflict on MSDOS.
2414 NON_GNU_CPP
=/usr
/lib
/cpp
2415 NON_GCC_TEST_OPTIONS
=-Bstatic
2416 GCC_TEST_OPTIONS
=-static
2418 *-sunos4.1.
[3-9]* |
*-sunos4shr*)
2420 NON_GNU_CPP
=/usr
/lib
/cpp
2422 *-sunos4* |
*-sunos )
2424 NON_GCC_TEST_OPTIONS
=-Bstatic
2425 GCC_TEST_OPTIONS
=-static
2427 *-sunos5.3
* |
*-solaris2.3
* )
2429 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2431 *-sunos5.4
* |
*-solaris2.4
* )
2433 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2436 *-sunos5.5
* |
*-solaris2.5
* )
2438 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2441 *-sunos5.6
* |
*-solaris2.6
* )
2443 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2446 *-sunos5* |
*-solaris* )
2448 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2452 ## Watch out for a compiler that we know will not work.
2453 case "${canonical}" in
2454 *-solaris* |
*-sunos5* )
2455 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
2456 ## /usr/ucb/cc doesn't work;
2457 ## we should find some other compiler that does work.
2465 machine
=sparc opsys
=nextstep
2469 m68
*-tadpole-sysv* )
2470 machine
=tad68k opsys
=usg5-3
2474 tahoe-tahoe-bsd4.2
* )
2475 machine
=tahoe opsys
=bsd4-2
2477 tahoe-tahoe-bsd4.3
* )
2478 machine
=tahoe opsys
=bsd4-3
2481 ## Tandem Integrity S2
2483 machine
=tandem-s2 opsys
=usg5-3
2487 m88k-tektronix-sysv3
* )
2488 machine
=tekxd88 opsys
=usg5-3
2491 ## Tektronix 16000 box (6130?)
2492 ns16k-tektronix-bsd
* )
2493 machine
=ns16000 opsys
=bsd4-2
2496 ## src/m/tek4300.h hints that this is a m68k machine.
2497 m68
*-tektronix-bsd* )
2498 machine
=tek4300 opsys
=bsd4-3
2502 ## We seem to have lost the machine-description file titan.h!
2504 machine
=titan opsys
=usg5-3
2507 ## Ustation E30 (SS5E)
2508 m68
*-unisys-uniplus* )
2509 machine
=ustation opsystem
=unipl5-2
2515 case "${canonical}" in
2516 *-bsd4.1
* ) opsys
=bsd4-1
;;
2517 *-bsd4.2
* |
*-ultrix[0-3].
* |
*-ultrix4.0
* ) opsys
=bsd4-2
;;
2518 *-bsd4.3
* |
*-ultrix* ) opsys
=bsd4-3
;;
2519 *-sysv[01]* |
*-sysvr[01]* ) opsys
=usg5-0
;;
2520 *-sysv2* |
*-sysvr2* ) opsys
=usg5-2
;;
2521 *-vms* ) opsys
=vms
;;
2527 ns16k-whitechapel-
* )
2529 ## We don't know what sort of OS runs on these; we'll let the
2530 ## operating system guessing code below try.
2535 machine
=wicat opsys
=usg5-2
2540 machine
=ia64 opsys
=gnu-linux
2543 ## Intel 386 machines where we don't care about the manufacturer
2546 case "${canonical}" in
2547 *-cygwin ) opsys
=cygwin
;;
2548 *-lynxos* ) opsys
=lynxos
;;
2549 *-isc1.
* |
*-isc2.
[01]* ) opsys
=386-ix ;;
2550 *-isc2.2
* ) opsys
=isc2-2
;;
2551 *-isc4.0
* ) opsys
=isc4-0
;;
2552 *-isc4.
* ) opsys
=isc4-1
2553 GCC_TEST_OPTIONS
=-posix
2554 NON_GCC_TEST_OPTIONS
=-Xp
2556 *-isc* ) opsys
=isc3-0
;;
2557 *-esix5* ) opsys
=esix5r4
; NON_GNU_CPP
=/usr
/lib
/cpp
;;
2558 *-esix* ) opsys
=esix
;;
2559 *-xenix* ) opsys
=xenix
;;
2560 *-linux-gnu* ) opsys
=gnu-linux
;;
2561 *-sco3.2v4
* ) opsys
=sco4
; NON_GNU_CPP
=/lib
/cpp
;;
2562 *-sco3.2v5
* ) opsys
=sco5
2563 NON_GNU_CPP
=/lib
/cpp
2564 # Prevent -belf from being passed to $CPP.
2565 # /lib/cpp does not accept it.
2566 OVERRIDE_CPPFLAGS
=" "
2568 *-sysv4.2uw
* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2569 *-sysv5uw* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2570 *-sysv5OpenUNIX* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2571 *-386bsd* ) opsys
=386bsd
;;
2572 *-nextstep* ) opsys
=nextstep
;;
2573 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2577 ## m68k Linux-based GNU system
2579 machine
=m68k opsys
=gnu-linux
2582 ## Mips Linux-based GNU system
2583 mips-
*-linux-gnu* | mipsel-
*-linux-gnu* )
2584 machine
=mips opsys
=gnu-linux
2588 sparc-fujitsu-sysv4
* )
2589 machine
=sparc opsys
=uxpds
2590 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2595 f301-fujitsu-uxpv4.1
)
2596 machine
=f301 opsys
=uxpv
2599 ## Darwin / Mac OS X
2600 powerpc-apple-darwin
* )
2601 machine
=powermac opsys
=darwin
2602 # Define CPP as follows to make autoconf work correctly.
2603 CPP
="${CC-cc} -E -no-cpp-precomp"
2604 # Use fink packages if available.
2605 if test -d /sw
/include
&& test -d /sw
/lib
; then
2606 GCC_TEST_OPTIONS
="-I/sw/include -L/sw/lib"
2607 CPP
="${CPP} ${GCC_TEST_OPTIONS}"
2608 NON_GCC_TEST_OPTIONS
=${GCC_TEST_OPTIONS}
2612 ## AMD x86-64 Linux-based GNU system
2613 x86_64-
*-linux-gnu* )
2614 machine
=amdx86-64 opsys
=gnu-linux
2622 ### If the code above didn't choose an operating system, just choose
2623 ### an operating system based on the configuration name. You really
2624 ### only want to use this when you have no idea what the right
2625 ### operating system is; if you know what operating systems a machine
2626 ### runs, it's cleaner to make it explicit in the case statement
2628 if test x
"${opsys}" = x
; then
2629 case "${canonical}" in
2630 *-gnu* ) opsys
=gnu
;;
2631 *-bsd4.
[01] ) opsys
=bsd4-1
;;
2632 *-bsd4.2
) opsys
=bsd4-2
;;
2633 *-bsd4.3
) opsys
=bsd4-3
;;
2634 *-sysv0 |
*-sysvr0 ) opsys
=usg5-0
;;
2635 *-sysv2 |
*-sysvr2 ) opsys
=usg5-2
;;
2636 *-sysv2.2 |
*-sysvr2.2
) opsys
=usg5-2-2
;;
2637 *-sysv3* |
*-sysvr3* ) opsys
=usg5-3
;;
2638 *-sysv4.2uw
* ) opsys
=unixware
;;
2639 *-sysv5uw* ) opsys
=unixware
;;
2640 *-sysv5OpenUNIX* ) opsys
=unixware
;;
2641 *-sysv4.1
* |
*-sysvr4.1
* )
2642 NON_GNU_CPP
=/usr
/lib
/cpp
2644 *-sysv4.
[2-9]* |
*-sysvr4.
[2-9]* )
2645 if [ x
$NON_GNU_CPP = x
]; then
2646 if [ -f /usr
/ccs
/lib
/cpp
]; then
2647 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2649 NON_GNU_CPP
=/lib
/cpp
2653 *-sysv4* |
*-sysvr4* ) opsys
=usg5-4
;;
2662 if test $unported = yes; then
2663 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
2664 Check \`etc/MACHINES' for recognized configuration names." >&5
2665 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2666 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2667 { (exit 1); exit 1; }; }
2670 machfile
="m/${machine}.h"
2671 opsysfile
="s/${opsys}.h"
2674 #### Choose a compiler.
2675 test -n "$CC" && cc_specified
=yes
2677 # Save the value of CFLAGS that the user specified.
2678 SPECIFIED_CFLAGS
="$CFLAGS"
2681 "yes" ) CC
="gcc" GCC
=yes ;;
2682 "no" ) : ${CC=cc} ;;
2686 ac_cpp
='$CPP $CPPFLAGS'
2687 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2688 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2689 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2690 if test -n "$ac_tool_prefix"; then
2691 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2692 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2693 echo "$as_me:$LINENO: checking for $ac_word" >&5
2694 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2695 if test "${ac_cv_prog_CC+set}" = set; then
2696 echo $ECHO_N "(cached) $ECHO_C" >&6
2698 if test -n "$CC"; then
2699 ac_cv_prog_CC
="$CC" # Let the user override the test.
2701 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2705 test -z "$as_dir" && as_dir
=.
2706 for ac_exec_ext
in '' $ac_executable_extensions; do
2707 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2708 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2709 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2718 if test -n "$CC"; then
2719 echo "$as_me:$LINENO: result: $CC" >&5
2720 echo "${ECHO_T}$CC" >&6
2722 echo "$as_me:$LINENO: result: no" >&5
2723 echo "${ECHO_T}no" >&6
2727 if test -z "$ac_cv_prog_CC"; then
2729 # Extract the first word of "gcc", so it can be a program name with args.
2730 set dummy gcc
; ac_word
=$2
2731 echo "$as_me:$LINENO: checking for $ac_word" >&5
2732 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2733 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2734 echo $ECHO_N "(cached) $ECHO_C" >&6
2736 if test -n "$ac_ct_CC"; then
2737 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2739 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2743 test -z "$as_dir" && as_dir
=.
2744 for ac_exec_ext
in '' $ac_executable_extensions; do
2745 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2746 ac_cv_prog_ac_ct_CC
="gcc"
2747 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2755 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2756 if test -n "$ac_ct_CC"; then
2757 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2758 echo "${ECHO_T}$ac_ct_CC" >&6
2760 echo "$as_me:$LINENO: result: no" >&5
2761 echo "${ECHO_T}no" >&6
2769 if test -z "$CC"; then
2770 if test -n "$ac_tool_prefix"; then
2771 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2772 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2773 echo "$as_me:$LINENO: checking for $ac_word" >&5
2774 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2775 if test "${ac_cv_prog_CC+set}" = set; then
2776 echo $ECHO_N "(cached) $ECHO_C" >&6
2778 if test -n "$CC"; then
2779 ac_cv_prog_CC
="$CC" # Let the user override the test.
2781 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2785 test -z "$as_dir" && as_dir
=.
2786 for ac_exec_ext
in '' $ac_executable_extensions; do
2787 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2788 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2789 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2798 if test -n "$CC"; then
2799 echo "$as_me:$LINENO: result: $CC" >&5
2800 echo "${ECHO_T}$CC" >&6
2802 echo "$as_me:$LINENO: result: no" >&5
2803 echo "${ECHO_T}no" >&6
2807 if test -z "$ac_cv_prog_CC"; then
2809 # Extract the first word of "cc", so it can be a program name with args.
2810 set dummy cc
; ac_word
=$2
2811 echo "$as_me:$LINENO: checking for $ac_word" >&5
2812 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2813 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2814 echo $ECHO_N "(cached) $ECHO_C" >&6
2816 if test -n "$ac_ct_CC"; then
2817 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2819 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2823 test -z "$as_dir" && as_dir
=.
2824 for ac_exec_ext
in '' $ac_executable_extensions; do
2825 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2826 ac_cv_prog_ac_ct_CC
="cc"
2827 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2835 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2836 if test -n "$ac_ct_CC"; then
2837 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2838 echo "${ECHO_T}$ac_ct_CC" >&6
2840 echo "$as_me:$LINENO: result: no" >&5
2841 echo "${ECHO_T}no" >&6
2850 if test -z "$CC"; then
2851 # Extract the first word of "cc", so it can be a program name with args.
2852 set dummy cc
; ac_word
=$2
2853 echo "$as_me:$LINENO: checking for $ac_word" >&5
2854 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2855 if test "${ac_cv_prog_CC+set}" = set; then
2856 echo $ECHO_N "(cached) $ECHO_C" >&6
2858 if test -n "$CC"; then
2859 ac_cv_prog_CC
="$CC" # Let the user override the test.
2862 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2866 test -z "$as_dir" && as_dir
=.
2867 for ac_exec_ext
in '' $ac_executable_extensions; do
2868 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2869 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2870 ac_prog_rejected
=yes
2874 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2880 if test $ac_prog_rejected = yes; then
2881 # We found a bogon in the path, so make sure we never use it.
2882 set dummy
$ac_cv_prog_CC
2884 if test $# != 0; then
2885 # We chose a different compiler from the bogus one.
2886 # However, it has the same basename, so the bogon will be chosen
2887 # first if we set CC to just the basename; use the full file name.
2889 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2895 if test -n "$CC"; then
2896 echo "$as_me:$LINENO: result: $CC" >&5
2897 echo "${ECHO_T}$CC" >&6
2899 echo "$as_me:$LINENO: result: no" >&5
2900 echo "${ECHO_T}no" >&6
2904 if test -z "$CC"; then
2905 if test -n "$ac_tool_prefix"; then
2908 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2909 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2910 echo "$as_me:$LINENO: checking for $ac_word" >&5
2911 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2912 if test "${ac_cv_prog_CC+set}" = set; then
2913 echo $ECHO_N "(cached) $ECHO_C" >&6
2915 if test -n "$CC"; then
2916 ac_cv_prog_CC
="$CC" # Let the user override the test.
2918 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2922 test -z "$as_dir" && as_dir
=.
2923 for ac_exec_ext
in '' $ac_executable_extensions; do
2924 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2925 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2926 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2935 if test -n "$CC"; then
2936 echo "$as_me:$LINENO: result: $CC" >&5
2937 echo "${ECHO_T}$CC" >&6
2939 echo "$as_me:$LINENO: result: no" >&5
2940 echo "${ECHO_T}no" >&6
2943 test -n "$CC" && break
2946 if test -z "$CC"; then
2950 # Extract the first word of "$ac_prog", so it can be a program name with args.
2951 set dummy
$ac_prog; ac_word
=$2
2952 echo "$as_me:$LINENO: checking for $ac_word" >&5
2953 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2954 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2955 echo $ECHO_N "(cached) $ECHO_C" >&6
2957 if test -n "$ac_ct_CC"; then
2958 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2960 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2964 test -z "$as_dir" && as_dir
=.
2965 for ac_exec_ext
in '' $ac_executable_extensions; do
2966 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2967 ac_cv_prog_ac_ct_CC
="$ac_prog"
2968 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2976 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2977 if test -n "$ac_ct_CC"; then
2978 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2979 echo "${ECHO_T}$ac_ct_CC" >&6
2981 echo "$as_me:$LINENO: result: no" >&5
2982 echo "${ECHO_T}no" >&6
2985 test -n "$ac_ct_CC" && break
2994 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2995 See \`config.log' for more details." >&5
2996 echo "$as_me: error: no acceptable C compiler found in \$PATH
2997 See \`config.log' for more details." >&2;}
2998 { (exit 1); exit 1; }; }
3000 # Provide some information about the compiler.
3001 echo "$as_me:$LINENO:" \
3002 "checking for C compiler version" >&5
3003 ac_compiler
=`set X $ac_compile; echo $2`
3004 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3005 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
3007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3008 (exit $ac_status); }
3009 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3010 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
3012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3013 (exit $ac_status); }
3014 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3015 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
3017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3018 (exit $ac_status); }
3020 cat >conftest.
$ac_ext <<_ACEOF
3023 cat confdefs.h
>>conftest.
$ac_ext
3024 cat >>conftest.
$ac_ext <<_ACEOF
3025 /* end confdefs.h. */
3035 ac_clean_files_save
=$ac_clean_files
3036 ac_clean_files
="$ac_clean_files a.out a.exe b.out"
3037 # Try to create an executable without -o first, disregard a.out.
3038 # It will help us diagnose broken compilers, and finding out an intuition
3040 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3041 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
3042 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3043 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
3044 (eval $ac_link_default) 2>&5
3046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3047 (exit $ac_status); }; then
3048 # Find the output, starting from the most likely. This scheme is
3049 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
3052 # Be careful to initialize this variable, since it used to be cached.
3053 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
3055 # b.out is created by i960 compilers.
3056 for ac_file
in a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
3058 test -f "$ac_file" ||
continue
3060 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
)
3063 # This is the source file.
3066 # We found the default executable, but exeext='' is most
3070 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3071 # FIXME: I believe we export ac_cv_exeext for Libtool,
3072 # but it would be cool to find out if it's true. Does anybody
3073 # maintain Libtool? --akim.
3081 echo "$as_me: failed program was:" >&5
3082 sed 's/^/| /' conftest.
$ac_ext >&5
3084 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3085 See \`config.log' for more details." >&5
3086 echo "$as_me: error: C compiler cannot create executables
3087 See \`config.log' for more details." >&2;}
3088 { (exit 77); exit 77; }; }
3091 ac_exeext
=$ac_cv_exeext
3092 echo "$as_me:$LINENO: result: $ac_file" >&5
3093 echo "${ECHO_T}$ac_file" >&6
3095 # Check the compiler produces executables we can run. If not, either
3096 # the compiler is broken, or we cross compile.
3097 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3098 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
3099 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3100 # If not cross compiling, check that we can run a simple program.
3101 if test "$cross_compiling" != yes; then
3102 if { ac_try
='./$ac_file'
3103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3107 (exit $ac_status); }; }; then
3110 if test "$cross_compiling" = maybe
; then
3113 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3114 If you meant to cross compile, use \`--host'.
3115 See \`config.log' for more details." >&5
3116 echo "$as_me: error: cannot run C compiled programs.
3117 If you meant to cross compile, use \`--host'.
3118 See \`config.log' for more details." >&2;}
3119 { (exit 1); exit 1; }; }
3123 echo "$as_me:$LINENO: result: yes" >&5
3124 echo "${ECHO_T}yes" >&6
3126 rm -f a.out a.exe conftest
$ac_cv_exeext b.out
3127 ac_clean_files
=$ac_clean_files_save
3128 # Check the compiler produces executables we can run. If not, either
3129 # the compiler is broken, or we cross compile.
3130 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3131 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3132 echo "$as_me:$LINENO: result: $cross_compiling" >&5
3133 echo "${ECHO_T}$cross_compiling" >&6
3135 echo "$as_me:$LINENO: checking for suffix of executables" >&5
3136 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3137 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3138 (eval $ac_link) 2>&5
3140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3141 (exit $ac_status); }; then
3142 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3143 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3144 # work properly (i.e., refer to `conftest.exe'), while it won't with
3146 for ac_file
in conftest.exe conftest conftest.
*; do
3147 test -f "$ac_file" ||
continue
3149 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
3150 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3157 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3158 See \`config.log' for more details." >&5
3159 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3160 See \`config.log' for more details." >&2;}
3161 { (exit 1); exit 1; }; }
3164 rm -f conftest
$ac_cv_exeext
3165 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3166 echo "${ECHO_T}$ac_cv_exeext" >&6
3168 rm -f conftest.
$ac_ext
3169 EXEEXT
=$ac_cv_exeext
3171 echo "$as_me:$LINENO: checking for suffix of object files" >&5
3172 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
3173 if test "${ac_cv_objext+set}" = set; then
3174 echo $ECHO_N "(cached) $ECHO_C" >&6
3176 cat >conftest.
$ac_ext <<_ACEOF
3179 cat confdefs.h
>>conftest.
$ac_ext
3180 cat >>conftest.
$ac_ext <<_ACEOF
3181 /* end confdefs.h. */
3191 rm -f conftest.o conftest.obj
3192 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3193 (eval $ac_compile) 2>&5
3195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3196 (exit $ac_status); }; then
3197 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3199 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg
) ;;
3200 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
3205 echo "$as_me: failed program was:" >&5
3206 sed 's/^/| /' conftest.
$ac_ext >&5
3208 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3209 See \`config.log' for more details." >&5
3210 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3211 See \`config.log' for more details." >&2;}
3212 { (exit 1); exit 1; }; }
3215 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
3217 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3218 echo "${ECHO_T}$ac_cv_objext" >&6
3219 OBJEXT
=$ac_cv_objext
3221 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3222 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3223 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3224 echo $ECHO_N "(cached) $ECHO_C" >&6
3226 cat >conftest.
$ac_ext <<_ACEOF
3229 cat confdefs.h
>>conftest.
$ac_ext
3230 cat >>conftest.
$ac_ext <<_ACEOF
3231 /* end confdefs.h. */
3244 rm -f conftest.
$ac_objext
3245 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3246 (eval $ac_compile) 2>conftest.er1
3248 grep -v '^ *+' conftest.er1
>conftest.err
3250 cat conftest.err
>&5
3251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3252 (exit $ac_status); } &&
3253 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3258 (exit $ac_status); }; } &&
3259 { ac_try
='test -s conftest.$ac_objext'
3260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3264 (exit $ac_status); }; }; then
3267 echo "$as_me: failed program was:" >&5
3268 sed 's/^/| /' conftest.
$ac_ext >&5
3272 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3273 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
3276 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3277 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3278 GCC
=`test $ac_compiler_gnu = yes && echo yes`
3279 ac_test_CFLAGS
=${CFLAGS+set}
3280 ac_save_CFLAGS
=$CFLAGS
3282 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3283 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3284 if test "${ac_cv_prog_cc_g+set}" = set; then
3285 echo $ECHO_N "(cached) $ECHO_C" >&6
3287 cat >conftest.
$ac_ext <<_ACEOF
3290 cat confdefs.h
>>conftest.
$ac_ext
3291 cat >>conftest.
$ac_ext <<_ACEOF
3292 /* end confdefs.h. */
3302 rm -f conftest.
$ac_objext
3303 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3304 (eval $ac_compile) 2>conftest.er1
3306 grep -v '^ *+' conftest.er1
>conftest.err
3308 cat conftest.err
>&5
3309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3310 (exit $ac_status); } &&
3311 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3316 (exit $ac_status); }; } &&
3317 { ac_try
='test -s conftest.$ac_objext'
3318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3322 (exit $ac_status); }; }; then
3325 echo "$as_me: failed program was:" >&5
3326 sed 's/^/| /' conftest.
$ac_ext >&5
3330 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3332 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3333 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3334 if test "$ac_test_CFLAGS" = set; then
3335 CFLAGS
=$ac_save_CFLAGS
3336 elif test $ac_cv_prog_cc_g = yes; then
3337 if test "$GCC" = yes; then
3343 if test "$GCC" = yes; then
3349 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3350 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3351 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3352 echo $ECHO_N "(cached) $ECHO_C" >&6
3354 ac_cv_prog_cc_stdc
=no
3356 cat >conftest.
$ac_ext <<_ACEOF
3359 cat confdefs.h
>>conftest.
$ac_ext
3360 cat >>conftest.
$ac_ext <<_ACEOF
3361 /* end confdefs.h. */
3364 #include <sys/types.h>
3365 #include <sys/stat.h>
3366 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3367 struct buf { int x; };
3368 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3369 static char *e (p, i)
3375 static char *f (char * (*g) (char **, int), char **p, ...)
3380 s = g (p, va_arg (v,int));
3385 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3386 function prototypes and stuff, but not '\xHH' hex character constants.
3387 These don't provoke an error unfortunately, instead are silently treated
3388 as 'x'. The following induces an error, until -std1 is added to get
3389 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3390 array size at least. It's necessary to write '\x00'==0 to get something
3391 that's true only with -std1. */
3392 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3394 int test (int i, double x);
3395 struct s1 {int (*f) (int a);};
3396 struct s2 {int (*f) (double a);};
3397 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3403 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3408 # Don't try gcc -ansi; that turns off useful extensions and
3409 # breaks some systems' header files.
3410 # AIX -qlanglvl=ansi
3411 # Ultrix and OSF/1 -std1
3412 # HP-UX 10.20 and later -Ae
3413 # HP-UX older versions -Aa -D_HPUX_SOURCE
3414 # SVR4 -Xc -D__EXTENSIONS__
3415 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3417 CC
="$ac_save_CC $ac_arg"
3418 rm -f conftest.
$ac_objext
3419 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3420 (eval $ac_compile) 2>conftest.er1
3422 grep -v '^ *+' conftest.er1
>conftest.err
3424 cat conftest.err
>&5
3425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3426 (exit $ac_status); } &&
3427 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3432 (exit $ac_status); }; } &&
3433 { ac_try
='test -s conftest.$ac_objext'
3434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3438 (exit $ac_status); }; }; then
3439 ac_cv_prog_cc_stdc
=$ac_arg
3442 echo "$as_me: failed program was:" >&5
3443 sed 's/^/| /' conftest.
$ac_ext >&5
3446 rm -f conftest.err conftest.
$ac_objext
3448 rm -f conftest.
$ac_ext conftest.
$ac_objext
3453 case "x$ac_cv_prog_cc_stdc" in
3455 echo "$as_me:$LINENO: result: none needed" >&5
3456 echo "${ECHO_T}none needed" >&6 ;;
3458 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3459 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3460 CC
="$CC $ac_cv_prog_cc_stdc" ;;
3463 # Some people use a C++ compiler to compile C. Since we use `exit',
3464 # in C++ we need to declare it. In case someone uses the same compiler
3465 # for both compiling C and C++ we need to have the C++ compiler decide
3466 # the declaration of exit, since it's the most demanding environment.
3467 cat >conftest.
$ac_ext <<_ACEOF
3472 rm -f conftest.
$ac_objext
3473 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3474 (eval $ac_compile) 2>conftest.er1
3476 grep -v '^ *+' conftest.er1
>conftest.err
3478 cat conftest.err
>&5
3479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3480 (exit $ac_status); } &&
3481 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3486 (exit $ac_status); }; } &&
3487 { ac_try
='test -s conftest.$ac_objext'
3488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3492 (exit $ac_status); }; }; then
3493 for ac_declaration
in \
3495 'extern "C" void std::exit (int) throw (); using std::exit;' \
3496 'extern "C" void std::exit (int); using std::exit;' \
3497 'extern "C" void exit (int) throw ();' \
3498 'extern "C" void exit (int);' \
3501 cat >conftest.
$ac_ext <<_ACEOF
3504 cat confdefs.h
>>conftest.
$ac_ext
3505 cat >>conftest.
$ac_ext <<_ACEOF
3506 /* end confdefs.h. */
3517 rm -f conftest.
$ac_objext
3518 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3519 (eval $ac_compile) 2>conftest.er1
3521 grep -v '^ *+' conftest.er1
>conftest.err
3523 cat conftest.err
>&5
3524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3525 (exit $ac_status); } &&
3526 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3531 (exit $ac_status); }; } &&
3532 { ac_try
='test -s conftest.$ac_objext'
3533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3537 (exit $ac_status); }; }; then
3540 echo "$as_me: failed program was:" >&5
3541 sed 's/^/| /' conftest.
$ac_ext >&5
3545 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3546 cat >conftest.
$ac_ext <<_ACEOF
3549 cat confdefs.h
>>conftest.
$ac_ext
3550 cat >>conftest.
$ac_ext <<_ACEOF
3551 /* end confdefs.h. */
3561 rm -f conftest.
$ac_objext
3562 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3563 (eval $ac_compile) 2>conftest.er1
3565 grep -v '^ *+' conftest.er1
>conftest.err
3567 cat conftest.err
>&5
3568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3569 (exit $ac_status); } &&
3570 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3575 (exit $ac_status); }; } &&
3576 { ac_try
='test -s conftest.$ac_objext'
3577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3581 (exit $ac_status); }; }; then
3584 echo "$as_me: failed program was:" >&5
3585 sed 's/^/| /' conftest.
$ac_ext >&5
3588 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3591 if test -n "$ac_declaration"; then
3592 echo '#ifdef __cplusplus' >>confdefs.h
3593 echo $ac_declaration >>confdefs.h
3594 echo '#endif' >>confdefs.h
3598 echo "$as_me: failed program was:" >&5
3599 sed 's/^/| /' conftest.
$ac_ext >&5
3602 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3604 ac_cpp
='$CPP $CPPFLAGS'
3605 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3606 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3607 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3610 # On Suns, sometimes $CPP names a directory.
3611 if test -n "$CPP" && test -d "$CPP"; then
3615 #### Some systems specify a CPP to use unless we are using GCC.
3616 #### Now that we know whether we are using GCC, we can decide whether
3617 #### to use that one.
3618 if test "x$NON_GNU_CPP" != x
&& test x
$GCC != xyes
&& test "x$CPP" = x
3623 #### Some systems specify a CC to use unless we are using GCC.
3624 #### Now that we know whether we are using GCC, we can decide whether
3625 #### to use that one.
3626 if test "x$NON_GNU_CC" != x
&& test x
$GCC != xyes
&&
3627 test x
$cc_specified != xyes
3632 if test x
$GCC = xyes
&& test "x$GCC_TEST_OPTIONS" != x
3634 CC
="$CC $GCC_TEST_OPTIONS"
3637 if test x
$GCC = x
&& test "x$NON_GCC_TEST_OPTIONS" != x
3639 CC
="$CC $NON_GCC_TEST_OPTIONS"
3642 #### Some other nice autoconf tests.
3644 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3645 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3647 if test "$LN_S" = "ln -s"; then
3648 echo "$as_me:$LINENO: result: yes" >&5
3649 echo "${ECHO_T}yes" >&6
3651 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3652 echo "${ECHO_T}no, using $LN_S" >&6
3656 ac_cpp
='$CPP $CPPFLAGS'
3657 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3658 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3659 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3660 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3661 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3662 # On Suns, sometimes $CPP names a directory.
3663 if test -n "$CPP" && test -d "$CPP"; then
3666 if test -z "$CPP"; then
3667 if test "${ac_cv_prog_CPP+set}" = set; then
3668 echo $ECHO_N "(cached) $ECHO_C" >&6
3670 # Double quotes because CPP needs to be expanded
3671 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3674 for ac_c_preproc_warn_flag
in '' yes
3676 # Use a header file that comes with gcc, so configuring glibc
3677 # with a fresh cross-compiler works.
3678 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3679 # <limits.h> exists even on freestanding compilers.
3680 # On the NeXT, cc -E runs the code through the compiler's parser,
3681 # not just through cpp. "Syntax error" is here to catch this case.
3682 cat >conftest.
$ac_ext <<_ACEOF
3685 cat confdefs.h
>>conftest.
$ac_ext
3686 cat >>conftest.
$ac_ext <<_ACEOF
3687 /* end confdefs.h. */
3689 # include <limits.h>
3691 # include <assert.h>
3695 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3696 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3698 grep -v '^ *+' conftest.er1
>conftest.err
3700 cat conftest.err
>&5
3701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3702 (exit $ac_status); } >/dev
/null
; then
3703 if test -s conftest.err
; then
3704 ac_cpp_err
=$ac_c_preproc_warn_flag
3705 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3712 if test -z "$ac_cpp_err"; then
3715 echo "$as_me: failed program was:" >&5
3716 sed 's/^/| /' conftest.
$ac_ext >&5
3718 # Broken: fails on valid input.
3721 rm -f conftest.err conftest.
$ac_ext
3723 # OK, works on sane cases. Now check whether non-existent headers
3724 # can be detected and how.
3725 cat >conftest.
$ac_ext <<_ACEOF
3728 cat confdefs.h
>>conftest.
$ac_ext
3729 cat >>conftest.
$ac_ext <<_ACEOF
3730 /* end confdefs.h. */
3731 #include <ac_nonexistent.h>
3733 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3734 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3736 grep -v '^ *+' conftest.er1
>conftest.err
3738 cat conftest.err
>&5
3739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3740 (exit $ac_status); } >/dev
/null
; then
3741 if test -s conftest.err
; then
3742 ac_cpp_err
=$ac_c_preproc_warn_flag
3743 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3750 if test -z "$ac_cpp_err"; then
3751 # Broken: success on invalid input.
3754 echo "$as_me: failed program was:" >&5
3755 sed 's/^/| /' conftest.
$ac_ext >&5
3757 # Passes both tests.
3761 rm -f conftest.err conftest.
$ac_ext
3764 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3765 rm -f conftest.err conftest.
$ac_ext
3766 if $ac_preproc_ok; then
3778 echo "$as_me:$LINENO: result: $CPP" >&5
3779 echo "${ECHO_T}$CPP" >&6
3781 for ac_c_preproc_warn_flag
in '' yes
3783 # Use a header file that comes with gcc, so configuring glibc
3784 # with a fresh cross-compiler works.
3785 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3786 # <limits.h> exists even on freestanding compilers.
3787 # On the NeXT, cc -E runs the code through the compiler's parser,
3788 # not just through cpp. "Syntax error" is here to catch this case.
3789 cat >conftest.
$ac_ext <<_ACEOF
3792 cat confdefs.h
>>conftest.
$ac_ext
3793 cat >>conftest.
$ac_ext <<_ACEOF
3794 /* end confdefs.h. */
3796 # include <limits.h>
3798 # include <assert.h>
3802 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3803 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3805 grep -v '^ *+' conftest.er1
>conftest.err
3807 cat conftest.err
>&5
3808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3809 (exit $ac_status); } >/dev
/null
; then
3810 if test -s conftest.err
; then
3811 ac_cpp_err
=$ac_c_preproc_warn_flag
3812 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3819 if test -z "$ac_cpp_err"; then
3822 echo "$as_me: failed program was:" >&5
3823 sed 's/^/| /' conftest.
$ac_ext >&5
3825 # Broken: fails on valid input.
3828 rm -f conftest.err conftest.
$ac_ext
3830 # OK, works on sane cases. Now check whether non-existent headers
3831 # can be detected and how.
3832 cat >conftest.
$ac_ext <<_ACEOF
3835 cat confdefs.h
>>conftest.
$ac_ext
3836 cat >>conftest.
$ac_ext <<_ACEOF
3837 /* end confdefs.h. */
3838 #include <ac_nonexistent.h>
3840 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3841 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3843 grep -v '^ *+' conftest.er1
>conftest.err
3845 cat conftest.err
>&5
3846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3847 (exit $ac_status); } >/dev
/null
; then
3848 if test -s conftest.err
; then
3849 ac_cpp_err
=$ac_c_preproc_warn_flag
3850 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3857 if test -z "$ac_cpp_err"; then
3858 # Broken: success on invalid input.
3861 echo "$as_me: failed program was:" >&5
3862 sed 's/^/| /' conftest.
$ac_ext >&5
3864 # Passes both tests.
3868 rm -f conftest.err conftest.
$ac_ext
3871 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3872 rm -f conftest.err conftest.
$ac_ext
3873 if $ac_preproc_ok; then
3876 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3877 See \`config.log' for more details." >&5
3878 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3879 See \`config.log' for more details." >&2;}
3880 { (exit 1); exit 1; }; }
3884 ac_cpp
='$CPP $CPPFLAGS'
3885 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3886 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3887 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3889 # Find a good install program. We prefer a C program (faster),
3890 # so one script is as good as another. But avoid the broken or
3891 # incompatible versions:
3892 # SysV /etc/install, /usr/sbin/install
3893 # SunOS /usr/etc/install
3894 # IRIX /sbin/install
3896 # AmigaOS /C/install, which installs bootblocks on floppy discs
3897 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3898 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3899 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3900 # OS/2's system install, which has a completely different semantic
3901 # ./install, which can be erroneously created by make from ./install.sh.
3902 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3903 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3904 if test -z "$INSTALL"; then
3905 if test "${ac_cv_path_install+set}" = set; then
3906 echo $ECHO_N "(cached) $ECHO_C" >&6
3908 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3912 test -z "$as_dir" && as_dir
=.
3913 # Account for people who put trailing slashes in PATH elements.
3915 .
/ | .
// |
/cC
/* | \
3916 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
3917 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
3920 # OSF1 and SCO ODT 3.0 have their own names for install.
3921 # Don't use installbsd from OSF since it installs stuff as root
3923 for ac_prog
in ginstall scoinst
install; do
3924 for ac_exec_ext
in '' $ac_executable_extensions; do
3925 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3926 if test $ac_prog = install &&
3927 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3928 # AIX install. It has an incompatible calling convention.
3930 elif test $ac_prog = install &&
3931 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3932 # program-specific install script used by HP pwplus--don't use.
3935 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
3947 if test "${ac_cv_path_install+set}" = set; then
3948 INSTALL
=$ac_cv_path_install
3950 # As a last resort, use the slow shell script. We don't cache a
3951 # path for INSTALL within a source directory, because that will
3952 # break other packages using the cache if that directory is
3953 # removed, or if the path is relative.
3954 INSTALL
=$ac_install_sh
3957 echo "$as_me:$LINENO: result: $INSTALL" >&5
3958 echo "${ECHO_T}$INSTALL" >&6
3960 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3961 # It thinks the first close brace ends the variable substitution.
3962 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
3964 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
3966 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
3968 if test "x$RANLIB" = x
; then
3969 if test -n "$ac_tool_prefix"; then
3970 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3971 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
3972 echo "$as_me:$LINENO: checking for $ac_word" >&5
3973 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3974 if test "${ac_cv_prog_RANLIB+set}" = set; then
3975 echo $ECHO_N "(cached) $ECHO_C" >&6
3977 if test -n "$RANLIB"; then
3978 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
3980 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3984 test -z "$as_dir" && as_dir
=.
3985 for ac_exec_ext
in '' $ac_executable_extensions; do
3986 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3987 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
3988 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3996 RANLIB
=$ac_cv_prog_RANLIB
3997 if test -n "$RANLIB"; then
3998 echo "$as_me:$LINENO: result: $RANLIB" >&5
3999 echo "${ECHO_T}$RANLIB" >&6
4001 echo "$as_me:$LINENO: result: no" >&5
4002 echo "${ECHO_T}no" >&6
4006 if test -z "$ac_cv_prog_RANLIB"; then
4007 ac_ct_RANLIB
=$RANLIB
4008 # Extract the first word of "ranlib", so it can be a program name with args.
4009 set dummy ranlib
; ac_word
=$2
4010 echo "$as_me:$LINENO: checking for $ac_word" >&5
4011 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4012 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4013 echo $ECHO_N "(cached) $ECHO_C" >&6
4015 if test -n "$ac_ct_RANLIB"; then
4016 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
4018 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4022 test -z "$as_dir" && as_dir
=.
4023 for ac_exec_ext
in '' $ac_executable_extensions; do
4024 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4025 ac_cv_prog_ac_ct_RANLIB
="ranlib"
4026 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4032 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
4035 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
4036 if test -n "$ac_ct_RANLIB"; then
4037 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4038 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4040 echo "$as_me:$LINENO: result: no" >&5
4041 echo "${ECHO_T}no" >&6
4044 RANLIB
=$ac_ct_RANLIB
4046 RANLIB
="$ac_cv_prog_RANLIB"
4050 # Extract the first word of "install-info", so it can be a program name with args.
4051 set dummy install-info
; ac_word
=$2
4052 echo "$as_me:$LINENO: checking for $ac_word" >&5
4053 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4054 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4055 echo $ECHO_N "(cached) $ECHO_C" >&6
4057 case $INSTALL_INFO in
4059 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
4062 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4066 test -z "$as_dir" && as_dir
=.
4067 for ac_exec_ext
in '' $ac_executable_extensions; do
4068 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4069 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
4070 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4079 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
4081 if test -n "$INSTALL_INFO"; then
4082 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4083 echo "${ECHO_T}$INSTALL_INFO" >&6
4085 echo "$as_me:$LINENO: result: no" >&5
4086 echo "${ECHO_T}no" >&6
4089 # Extract the first word of "install-info", so it can be a program name with args.
4090 set dummy install-info
; ac_word
=$2
4091 echo "$as_me:$LINENO: checking for $ac_word" >&5
4092 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4093 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4094 echo $ECHO_N "(cached) $ECHO_C" >&6
4096 case $INSTALL_INFO in
4098 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
4101 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4102 for as_dir
in /usr
/sbin
4105 test -z "$as_dir" && as_dir
=.
4106 for ac_exec_ext
in '' $ac_executable_extensions; do
4107 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4108 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
4109 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4118 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
4120 if test -n "$INSTALL_INFO"; then
4121 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4122 echo "${ECHO_T}$INSTALL_INFO" >&6
4124 echo "$as_me:$LINENO: result: no" >&5
4125 echo "${ECHO_T}no" >&6
4128 # Extract the first word of "install-info", so it can be a program name with args.
4129 set dummy install-info
; ac_word
=$2
4130 echo "$as_me:$LINENO: checking for $ac_word" >&5
4131 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4132 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4133 echo $ECHO_N "(cached) $ECHO_C" >&6
4135 case $INSTALL_INFO in
4137 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
4140 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4144 test -z "$as_dir" && as_dir
=.
4145 for ac_exec_ext
in '' $ac_executable_extensions; do
4146 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4147 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
4148 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4154 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO
=":"
4158 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
4160 if test -n "$INSTALL_INFO"; then
4161 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4162 echo "${ECHO_T}$INSTALL_INFO" >&6
4164 echo "$as_me:$LINENO: result: no" >&5
4165 echo "${ECHO_T}no" >&6
4170 if test x
$GCC = xyes
&& test "x$GCC_LINK_TEST_OPTIONS" != x
4172 ac_link
="$ac_link $GCC_LINK_TEST_OPTIONS"
4175 if test x
$GCC = x
&& test "x$NON_GCC_LINK_TEST_OPTIONS" != x
4177 ac_link
="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
4181 late_LDFLAGS
=$LDFLAGS
4182 if test "$GCC" = yes; then
4183 LDFLAGS
="$LDFLAGS -Wl,-znocombreloc"
4185 LDFLAGS
="$LDFLAGS -znocombreloc"
4188 echo "$as_me:$LINENO: checking For -znocombreloc" >&5
4189 echo $ECHO_N "checking For -znocombreloc... $ECHO_C" >&6
4191 cat >conftest.
$ac_ext <<_ACEOF
4194 rm -f conftest.
$ac_objext conftest
$ac_exeext
4195 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4196 (eval $ac_link) 2>conftest.er1
4198 grep -v '^ *+' conftest.er1
>conftest.err
4200 cat conftest.err
>&5
4201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4202 (exit $ac_status); } &&
4203 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4208 (exit $ac_status); }; } &&
4209 { ac_try
='test -s conftest$ac_exeext'
4210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4214 (exit $ac_status); }; }; then
4215 echo "$as_me:$LINENO: result: yes" >&5
4216 echo "${ECHO_T}yes" >&6
4218 echo "$as_me: failed program was:" >&5
4219 sed 's/^/| /' conftest.
$ac_ext >&5
4221 LDFLAGS
=$late_LDFLAGS
4222 echo "$as_me:$LINENO: result: no" >&5
4223 echo "${ECHO_T}no" >&6
4225 rm -f conftest.err conftest.
$ac_objext \
4226 conftest
$ac_exeext conftest.
$ac_ext
4229 echo "$as_me:$LINENO: checking for egrep" >&5
4230 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4231 if test "${ac_cv_prog_egrep+set}" = set; then
4232 echo $ECHO_N "(cached) $ECHO_C" >&6
4234 if echo a |
(grep -E '(a|b)') >/dev
/null
2>&1
4235 then ac_cv_prog_egrep
='grep -E'
4236 else ac_cv_prog_egrep
='egrep'
4239 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4240 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4241 EGREP
=$ac_cv_prog_egrep
4245 echo "$as_me:$LINENO: checking for AIX" >&5
4246 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
4247 cat >conftest.
$ac_ext <<_ACEOF
4250 cat confdefs.h
>>conftest.
$ac_ext
4251 cat >>conftest.
$ac_ext <<_ACEOF
4252 /* end confdefs.h. */
4258 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4259 $EGREP "yes" >/dev
/null
2>&1; then
4260 echo "$as_me:$LINENO: result: yes" >&5
4261 echo "${ECHO_T}yes" >&6
4262 cat >>confdefs.h
<<\_ACEOF
4263 #define _ALL_SOURCE 1
4267 echo "$as_me:$LINENO: result: no" >&5
4268 echo "${ECHO_T}no" >&6
4274 echo "$as_me:$LINENO: checking for /proc/sys/kernel/exec-shield" >&5
4275 echo $ECHO_N "checking for /proc/sys/kernel/exec-shield... $ECHO_C" >&6
4276 if test "${ac_cv_file__proc_sys_kernel_exec_shield+set}" = set; then
4277 echo $ECHO_N "(cached) $ECHO_C" >&6
4279 test "$cross_compiling" = yes &&
4280 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
4281 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
4282 { (exit 1); exit 1; }; }
4283 if test -r "/proc/sys/kernel/exec-shield"; then
4284 ac_cv_file__proc_sys_kernel_exec_shield
=yes
4286 ac_cv_file__proc_sys_kernel_exec_shield
=no
4289 echo "$as_me:$LINENO: result: $ac_cv_file__proc_sys_kernel_exec_shield" >&5
4290 echo "${ECHO_T}$ac_cv_file__proc_sys_kernel_exec_shield" >&6
4291 if test $ac_cv_file__proc_sys_kernel_exec_shield = yes; then
4292 emacs_cv_execshield
=1
4294 emacs_cv_execshield
=0
4297 if test "$emacs_cv_execshield" = 1; then
4298 # Extract the first word of "setarch", so it can be a program name with args.
4299 set dummy setarch
; ac_word
=$2
4300 echo "$as_me:$LINENO: checking for $ac_word" >&5
4301 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4302 if test "${ac_cv_path_SETARCH+set}" = set; then
4303 echo $ECHO_N "(cached) $ECHO_C" >&6
4307 ac_cv_path_SETARCH
="$SETARCH" # Let the user override the test with a path.
4310 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4314 test -z "$as_dir" && as_dir
=.
4315 for ac_exec_ext
in '' $ac_executable_extensions; do
4316 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4317 ac_cv_path_SETARCH
="$as_dir/$ac_word$ac_exec_ext"
4318 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4324 test -z "$ac_cv_path_SETARCH" && ac_cv_path_SETARCH
="no"
4328 SETARCH
=$ac_cv_path_SETARCH
4330 if test -n "$SETARCH"; then
4331 echo "$as_me:$LINENO: result: $SETARCH" >&5
4332 echo "${ECHO_T}$SETARCH" >&6
4334 echo "$as_me:$LINENO: result: no" >&5
4335 echo "${ECHO_T}no" >&6
4339 if test "$SETARCH" != no
&& test "$machine" = "intel386"; then
4341 cat >>confdefs.h
<<\_ACEOF
4342 #define HAVE_EXECSHIELD 1
4346 case "`cat /proc/sys/kernel/exec-shield`" in
4349 { { echo "$as_me:$LINENO: error: Exec-shield is turned on.
4350 Emacs can not dump itself if exec-shield is turned on.
4351 See \`etc/PROBLEMS' for further information." >&5
4352 echo "$as_me: error: Exec-shield is turned on.
4353 Emacs can not dump itself if exec-shield is turned on.
4354 See \`etc/PROBLEMS' for further information." >&2;}
4355 { (exit 1); exit 1; }; }
4360 #### Extract some information from the operating system and machine files.
4362 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
4363 - which libraries the lib-src programs will want, and
4364 - whether the GNU malloc routines are usable..." >&5
4365 echo "$as_me: checking the machine- and system-dependent files to find out
4366 - which libraries the lib-src programs will want, and
4367 - whether the GNU malloc routines are usable..." >&6;}
4369 ### First figure out CFLAGS (which we use for running the compiler here)
4370 ### and REAL_CFLAGS (which we use for real compilation).
4371 ### The two are the same except on a few systems, where they are made
4372 ### different to work around various lossages. For example,
4373 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
4374 ### as implying static linking.
4376 ### If the CFLAGS env var is specified, we use that value
4377 ### instead of the default.
4379 ### It's not important that this name contain the PID; you can't run
4380 ### two configures in the same directory and have anything work
4382 tempcname
="conftest.c"
4385 #include "'${srcdir}'/src/'${opsysfile}'"
4386 #include "'${srcdir}'/src/'${machfile}'"
4387 #ifndef LIBS_MACHINE
4388 #define LIBS_MACHINE
4393 #ifndef C_SWITCH_SYSTEM
4394 #define C_SWITCH_SYSTEM
4396 #ifndef C_SWITCH_MACHINE
4397 #define C_SWITCH_MACHINE
4399 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
4400 configure___ c_switch_system=C_SWITCH_SYSTEM
4401 configure___ c_switch_machine=C_SWITCH_MACHINE
4404 #define LIB_X11_LIB -lX11
4407 #ifndef LIBX11_MACHINE
4408 #define LIBX11_MACHINE
4411 #ifndef LIBX11_SYSTEM
4412 #define LIBX11_SYSTEM
4414 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
4417 configure___ unexec=UNEXEC
4419 configure___ unexec=unexec.o
4422 #ifdef SYSTEM_MALLOC
4423 configure___ system_malloc=yes
4425 configure___ system_malloc=no
4428 #ifdef USE_MMAP_FOR_BUFFERS
4429 configure___ use_mmap_for_buffers=yes
4431 configure___ use_mmap_for_buffers=no
4434 #ifndef C_DEBUG_SWITCH
4435 #define C_DEBUG_SWITCH -g
4438 #ifndef C_OPTIMIZE_SWITCH
4440 #define C_OPTIMIZE_SWITCH -O2
4442 #define C_OPTIMIZE_SWITCH -O
4446 #ifndef LD_SWITCH_MACHINE
4447 #define LD_SWITCH_MACHINE
4450 #ifndef LD_SWITCH_SYSTEM
4451 #define LD_SWITCH_SYSTEM
4454 #ifndef LD_SWITCH_X_SITE_AUX
4455 #define LD_SWITCH_X_SITE_AUX
4458 configure___ ld_switch_system=LD_SWITCH_SYSTEM
4459 configure___ ld_switch_machine=LD_SWITCH_MACHINE
4461 #ifdef THIS_IS_CONFIGURE
4463 /* Get the CFLAGS for tests in configure. */
4465 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
4467 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4470 #else /* not THIS_IS_CONFIGURE */
4472 /* Get the CFLAGS for real compilation. */
4474 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
4476 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4479 #endif /* not THIS_IS_CONFIGURE */
4482 # The value of CPP is a quoted variable reference, so we need to do this
4483 # to get its actual value...
4484 CPP
=`eval "echo $CPP"`
4485 eval `${CPP} -Isrc ${tempcname} \
4486 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4487 if test "x$SPECIFIED_CFLAGS" = x
; then
4488 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
4489 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4491 REAL_CFLAGS
="$CFLAGS"
4495 ac_link
="$ac_link $ld_switch_machine $ld_switch_system"
4497 ### Make sure subsequent tests use flags consistent with the build flags.
4499 if test x
"${OVERRIDE_CPPFLAGS}" != x
; then
4500 CPPFLAGS
="${OVERRIDE_CPPFLAGS}"
4502 CPPFLAGS
="$c_switch_system $c_switch_machine $CPPFLAGS"
4508 cat >>confdefs.h
<<\_ACEOF
4509 #define _GNU_SOURCE 1
4514 # Check whether --enable-largefile or --disable-largefile was given.
4515 if test "${enable_largefile+set}" = set; then
4516 enableval
="$enable_largefile"
4519 if test "$enable_largefile" != no
; then
4521 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4522 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
4523 if test "${ac_cv_sys_largefile_CC+set}" = set; then
4524 echo $ECHO_N "(cached) $ECHO_C" >&6
4526 ac_cv_sys_largefile_CC
=no
4527 if test "$GCC" != yes; then
4530 # IRIX 6.2 and later do not support large files by default,
4531 # so use the C compiler's -n32 option if that helps.
4532 cat >conftest.
$ac_ext <<_ACEOF
4535 cat confdefs.h
>>conftest.
$ac_ext
4536 cat >>conftest.
$ac_ext <<_ACEOF
4537 /* end confdefs.h. */
4538 #include <sys/types.h>
4539 /* Check that off_t can represent 2**63 - 1 correctly.
4540 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4541 since some C++ compilers masquerading as C compilers
4542 incorrectly reject 9223372036854775807. */
4543 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4544 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4545 && LARGE_OFF_T % 2147483647 == 1)
4555 rm -f conftest.
$ac_objext
4556 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4557 (eval $ac_compile) 2>conftest.er1
4559 grep -v '^ *+' conftest.er1
>conftest.err
4561 cat conftest.err
>&5
4562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4563 (exit $ac_status); } &&
4564 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4569 (exit $ac_status); }; } &&
4570 { ac_try
='test -s conftest.$ac_objext'
4571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4575 (exit $ac_status); }; }; then
4578 echo "$as_me: failed program was:" >&5
4579 sed 's/^/| /' conftest.
$ac_ext >&5
4582 rm -f conftest.err conftest.
$ac_objext
4584 rm -f conftest.
$ac_objext
4585 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4586 (eval $ac_compile) 2>conftest.er1
4588 grep -v '^ *+' conftest.er1
>conftest.err
4590 cat conftest.err
>&5
4591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4592 (exit $ac_status); } &&
4593 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4598 (exit $ac_status); }; } &&
4599 { ac_try
='test -s conftest.$ac_objext'
4600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4604 (exit $ac_status); }; }; then
4605 ac_cv_sys_largefile_CC
=' -n32'; break
4607 echo "$as_me: failed program was:" >&5
4608 sed 's/^/| /' conftest.
$ac_ext >&5
4611 rm -f conftest.err conftest.
$ac_objext
4615 rm -f conftest.
$ac_ext
4618 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4619 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
4620 if test "$ac_cv_sys_largefile_CC" != no
; then
4621 CC
=$CC$ac_cv_sys_largefile_CC
4624 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4625 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
4626 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4627 echo $ECHO_N "(cached) $ECHO_C" >&6
4630 ac_cv_sys_file_offset_bits
=no
4631 cat >conftest.
$ac_ext <<_ACEOF
4634 cat confdefs.h
>>conftest.
$ac_ext
4635 cat >>conftest.
$ac_ext <<_ACEOF
4636 /* end confdefs.h. */
4637 #include <sys/types.h>
4638 /* Check that off_t can represent 2**63 - 1 correctly.
4639 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4640 since some C++ compilers masquerading as C compilers
4641 incorrectly reject 9223372036854775807. */
4642 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4643 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4644 && LARGE_OFF_T % 2147483647 == 1)
4654 rm -f conftest.
$ac_objext
4655 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4656 (eval $ac_compile) 2>conftest.er1
4658 grep -v '^ *+' conftest.er1
>conftest.err
4660 cat conftest.err
>&5
4661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4662 (exit $ac_status); } &&
4663 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4668 (exit $ac_status); }; } &&
4669 { ac_try
='test -s conftest.$ac_objext'
4670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4674 (exit $ac_status); }; }; then
4677 echo "$as_me: failed program was:" >&5
4678 sed 's/^/| /' conftest.
$ac_ext >&5
4681 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4682 cat >conftest.
$ac_ext <<_ACEOF
4685 cat confdefs.h
>>conftest.
$ac_ext
4686 cat >>conftest.
$ac_ext <<_ACEOF
4687 /* end confdefs.h. */
4688 #define _FILE_OFFSET_BITS 64
4689 #include <sys/types.h>
4690 /* Check that off_t can represent 2**63 - 1 correctly.
4691 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4692 since some C++ compilers masquerading as C compilers
4693 incorrectly reject 9223372036854775807. */
4694 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4695 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4696 && LARGE_OFF_T % 2147483647 == 1)
4706 rm -f conftest.
$ac_objext
4707 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4708 (eval $ac_compile) 2>conftest.er1
4710 grep -v '^ *+' conftest.er1
>conftest.err
4712 cat conftest.err
>&5
4713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4714 (exit $ac_status); } &&
4715 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4720 (exit $ac_status); }; } &&
4721 { ac_try
='test -s conftest.$ac_objext'
4722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4726 (exit $ac_status); }; }; then
4727 ac_cv_sys_file_offset_bits
=64; break
4729 echo "$as_me: failed program was:" >&5
4730 sed 's/^/| /' conftest.
$ac_ext >&5
4733 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4737 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
4738 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
4739 if test "$ac_cv_sys_file_offset_bits" != no
; then
4741 cat >>confdefs.h
<<_ACEOF
4742 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4747 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
4748 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
4749 if test "${ac_cv_sys_large_files+set}" = set; then
4750 echo $ECHO_N "(cached) $ECHO_C" >&6
4753 ac_cv_sys_large_files
=no
4754 cat >conftest.
$ac_ext <<_ACEOF
4757 cat confdefs.h
>>conftest.
$ac_ext
4758 cat >>conftest.
$ac_ext <<_ACEOF
4759 /* end confdefs.h. */
4760 #include <sys/types.h>
4761 /* Check that off_t can represent 2**63 - 1 correctly.
4762 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4763 since some C++ compilers masquerading as C compilers
4764 incorrectly reject 9223372036854775807. */
4765 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4766 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4767 && LARGE_OFF_T % 2147483647 == 1)
4777 rm -f conftest.
$ac_objext
4778 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4779 (eval $ac_compile) 2>conftest.er1
4781 grep -v '^ *+' conftest.er1
>conftest.err
4783 cat conftest.err
>&5
4784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4785 (exit $ac_status); } &&
4786 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4791 (exit $ac_status); }; } &&
4792 { ac_try
='test -s conftest.$ac_objext'
4793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4797 (exit $ac_status); }; }; then
4800 echo "$as_me: failed program was:" >&5
4801 sed 's/^/| /' conftest.
$ac_ext >&5
4804 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4805 cat >conftest.
$ac_ext <<_ACEOF
4808 cat confdefs.h
>>conftest.
$ac_ext
4809 cat >>conftest.
$ac_ext <<_ACEOF
4810 /* end confdefs.h. */
4811 #define _LARGE_FILES 1
4812 #include <sys/types.h>
4813 /* Check that off_t can represent 2**63 - 1 correctly.
4814 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4815 since some C++ compilers masquerading as C compilers
4816 incorrectly reject 9223372036854775807. */
4817 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4818 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4819 && LARGE_OFF_T % 2147483647 == 1)
4829 rm -f conftest.
$ac_objext
4830 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4831 (eval $ac_compile) 2>conftest.er1
4833 grep -v '^ *+' conftest.er1
>conftest.err
4835 cat conftest.err
>&5
4836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4837 (exit $ac_status); } &&
4838 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4843 (exit $ac_status); }; } &&
4844 { ac_try
='test -s conftest.$ac_objext'
4845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4849 (exit $ac_status); }; }; then
4850 ac_cv_sys_large_files
=1; break
4852 echo "$as_me: failed program was:" >&5
4853 sed 's/^/| /' conftest.
$ac_ext >&5
4856 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4860 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
4861 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
4862 if test "$ac_cv_sys_large_files" != no
; then
4864 cat >>confdefs.h
<<_ACEOF
4865 #define _LARGE_FILES $ac_cv_sys_large_files
4873 if test "${with_sound}" != "no"; then
4874 # Sound support for GNU/Linux and the free BSDs.
4875 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4876 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4877 if test "${ac_cv_header_stdc+set}" = set; then
4878 echo $ECHO_N "(cached) $ECHO_C" >&6
4880 cat >conftest.
$ac_ext <<_ACEOF
4883 cat confdefs.h
>>conftest.
$ac_ext
4884 cat >>conftest.
$ac_ext <<_ACEOF
4885 /* end confdefs.h. */
4899 rm -f conftest.
$ac_objext
4900 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4901 (eval $ac_compile) 2>conftest.er1
4903 grep -v '^ *+' conftest.er1
>conftest.err
4905 cat conftest.err
>&5
4906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4907 (exit $ac_status); } &&
4908 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4913 (exit $ac_status); }; } &&
4914 { ac_try
='test -s conftest.$ac_objext'
4915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4919 (exit $ac_status); }; }; then
4920 ac_cv_header_stdc
=yes
4922 echo "$as_me: failed program was:" >&5
4923 sed 's/^/| /' conftest.
$ac_ext >&5
4925 ac_cv_header_stdc
=no
4927 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4929 if test $ac_cv_header_stdc = yes; then
4930 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4931 cat >conftest.
$ac_ext <<_ACEOF
4934 cat confdefs.h
>>conftest.
$ac_ext
4935 cat >>conftest.
$ac_ext <<_ACEOF
4936 /* end confdefs.h. */
4940 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4941 $EGREP "memchr" >/dev
/null
2>&1; then
4944 ac_cv_header_stdc
=no
4950 if test $ac_cv_header_stdc = yes; then
4951 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4952 cat >conftest.
$ac_ext <<_ACEOF
4955 cat confdefs.h
>>conftest.
$ac_ext
4956 cat >>conftest.
$ac_ext <<_ACEOF
4957 /* end confdefs.h. */
4961 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4962 $EGREP "free" >/dev
/null
2>&1; then
4965 ac_cv_header_stdc
=no
4971 if test $ac_cv_header_stdc = yes; then
4972 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4973 if test "$cross_compiling" = yes; then
4976 cat >conftest.
$ac_ext <<_ACEOF
4979 cat confdefs.h
>>conftest.
$ac_ext
4980 cat >>conftest.
$ac_ext <<_ACEOF
4981 /* end confdefs.h. */
4983 #if ((' ' & 0x0FF) == 0x020)
4984 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4985 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4987 # define ISLOWER(c) \
4988 (('a' <= (c) && (c) <= 'i') \
4989 || ('j' <= (c) && (c) <= 'r') \
4990 || ('s' <= (c) && (c) <= 'z'))
4991 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4994 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4999 for (i = 0; i < 256; i++)
5000 if (XOR (islower (i), ISLOWER (i))
5001 || toupper (i) != TOUPPER (i))
5006 rm -f conftest
$ac_exeext
5007 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5008 (eval $ac_link) 2>&5
5010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5011 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5016 (exit $ac_status); }; }; then
5019 echo "$as_me: program exited with status $ac_status" >&5
5020 echo "$as_me: failed program was:" >&5
5021 sed 's/^/| /' conftest.
$ac_ext >&5
5024 ac_cv_header_stdc
=no
5026 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5030 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5031 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5032 if test $ac_cv_header_stdc = yes; then
5034 cat >>confdefs.h
<<\_ACEOF
5035 #define STDC_HEADERS 1
5040 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5050 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5051 inttypes.h stdint.h unistd.h
5053 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5054 echo "$as_me:$LINENO: checking for $ac_header" >&5
5055 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5056 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5057 echo $ECHO_N "(cached) $ECHO_C" >&6
5059 cat >conftest.
$ac_ext <<_ACEOF
5062 cat confdefs.h
>>conftest.
$ac_ext
5063 cat >>conftest.
$ac_ext <<_ACEOF
5064 /* end confdefs.h. */
5065 $ac_includes_default
5067 #include <$ac_header>
5069 rm -f conftest.
$ac_objext
5070 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5071 (eval $ac_compile) 2>conftest.er1
5073 grep -v '^ *+' conftest.er1
>conftest.err
5075 cat conftest.err
>&5
5076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5077 (exit $ac_status); } &&
5078 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5083 (exit $ac_status); }; } &&
5084 { ac_try
='test -s conftest.$ac_objext'
5085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5089 (exit $ac_status); }; }; then
5090 eval "$as_ac_Header=yes"
5092 echo "$as_me: failed program was:" >&5
5093 sed 's/^/| /' conftest.
$ac_ext >&5
5095 eval "$as_ac_Header=no"
5097 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5099 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5100 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5101 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5102 cat >>confdefs.h
<<_ACEOF
5103 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5114 for ac_header
in machine
/soundcard.h sys
/soundcard.h soundcard.h
5116 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5117 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5118 echo "$as_me:$LINENO: checking for $ac_header" >&5
5119 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5120 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5121 echo $ECHO_N "(cached) $ECHO_C" >&6
5123 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5124 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5126 # Is the header compilable?
5127 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5128 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5129 cat >conftest.
$ac_ext <<_ACEOF
5132 cat confdefs.h
>>conftest.
$ac_ext
5133 cat >>conftest.
$ac_ext <<_ACEOF
5134 /* end confdefs.h. */
5135 $ac_includes_default
5136 #include <$ac_header>
5138 rm -f conftest.
$ac_objext
5139 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5140 (eval $ac_compile) 2>conftest.er1
5142 grep -v '^ *+' conftest.er1
>conftest.err
5144 cat conftest.err
>&5
5145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5146 (exit $ac_status); } &&
5147 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5152 (exit $ac_status); }; } &&
5153 { ac_try
='test -s conftest.$ac_objext'
5154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5158 (exit $ac_status); }; }; then
5159 ac_header_compiler
=yes
5161 echo "$as_me: failed program was:" >&5
5162 sed 's/^/| /' conftest.
$ac_ext >&5
5164 ac_header_compiler
=no
5166 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5167 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5168 echo "${ECHO_T}$ac_header_compiler" >&6
5170 # Is the header present?
5171 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5172 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5173 cat >conftest.
$ac_ext <<_ACEOF
5176 cat confdefs.h
>>conftest.
$ac_ext
5177 cat >>conftest.
$ac_ext <<_ACEOF
5178 /* end confdefs.h. */
5179 #include <$ac_header>
5181 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5182 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5184 grep -v '^ *+' conftest.er1
>conftest.err
5186 cat conftest.err
>&5
5187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5188 (exit $ac_status); } >/dev
/null
; then
5189 if test -s conftest.err
; then
5190 ac_cpp_err
=$ac_c_preproc_warn_flag
5191 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
5198 if test -z "$ac_cpp_err"; then
5199 ac_header_preproc
=yes
5201 echo "$as_me: failed program was:" >&5
5202 sed 's/^/| /' conftest.
$ac_ext >&5
5204 ac_header_preproc
=no
5206 rm -f conftest.err conftest.
$ac_ext
5207 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5208 echo "${ECHO_T}$ac_header_preproc" >&6
5210 # So? What about this header?
5211 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5213 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5214 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5215 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5216 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5217 ac_header_preproc
=yes
5220 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5221 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5222 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5223 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5224 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5225 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5226 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5227 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5228 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5229 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5230 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5231 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5234 ## ------------------------------------------ ##
5235 ## Report this to the AC_PACKAGE_NAME lists. ##
5236 ## ------------------------------------------ ##
5239 sed "s/^/$as_me: WARNING: /" >&2
5242 echo "$as_me:$LINENO: checking for $ac_header" >&5
5243 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5244 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5245 echo $ECHO_N "(cached) $ECHO_C" >&6
5247 eval "$as_ac_Header=\$ac_header_preproc"
5249 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5250 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5253 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5254 cat >>confdefs.h
<<_ACEOF
5255 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5262 # Emulation library used on NetBSD.
5263 echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
5264 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
5265 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
5266 echo $ECHO_N "(cached) $ECHO_C" >&6
5268 ac_check_lib_save_LIBS
=$LIBS
5269 LIBS
="-lossaudio $LIBS"
5270 cat >conftest.
$ac_ext <<_ACEOF
5273 cat confdefs.h
>>conftest.
$ac_ext
5274 cat >>conftest.
$ac_ext <<_ACEOF
5275 /* end confdefs.h. */
5277 /* Override any gcc2 internal prototype to avoid an error. */
5281 /* We use char because int might match the return type of a gcc2
5282 builtin and then its argument prototype would still apply. */
5292 rm -f conftest.
$ac_objext conftest
$ac_exeext
5293 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5294 (eval $ac_link) 2>conftest.er1
5296 grep -v '^ *+' conftest.er1
>conftest.err
5298 cat conftest.err
>&5
5299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5300 (exit $ac_status); } &&
5301 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5306 (exit $ac_status); }; } &&
5307 { ac_try
='test -s conftest$ac_exeext'
5308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5312 (exit $ac_status); }; }; then
5313 ac_cv_lib_ossaudio__oss_ioctl
=yes
5315 echo "$as_me: failed program was:" >&5
5316 sed 's/^/| /' conftest.
$ac_ext >&5
5318 ac_cv_lib_ossaudio__oss_ioctl
=no
5320 rm -f conftest.err conftest.
$ac_objext \
5321 conftest
$ac_exeext conftest.
$ac_ext
5322 LIBS
=$ac_check_lib_save_LIBS
5324 echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
5325 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
5326 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
5358 for ac_header
in sys
/select.h sys
/timeb.h sys
/time.h unistd.h utime.h \
5359 linux
/version.h sys
/systeminfo.h termios.h limits.h string.h stdlib.h \
5360 termcap.h stdio_ext.h fcntl.h
strings.h coff.h pty.h sys
/mman.h \
5361 sys
/param.h sys
/vlimit.h sys
/resource.h locale.h sys
/_mbstate_t.h
5363 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5364 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5365 echo "$as_me:$LINENO: checking for $ac_header" >&5
5366 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5367 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5368 echo $ECHO_N "(cached) $ECHO_C" >&6
5370 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5371 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5373 # Is the header compilable?
5374 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5375 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5376 cat >conftest.
$ac_ext <<_ACEOF
5379 cat confdefs.h
>>conftest.
$ac_ext
5380 cat >>conftest.
$ac_ext <<_ACEOF
5381 /* end confdefs.h. */
5382 $ac_includes_default
5383 #include <$ac_header>
5385 rm -f conftest.
$ac_objext
5386 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5387 (eval $ac_compile) 2>conftest.er1
5389 grep -v '^ *+' conftest.er1
>conftest.err
5391 cat conftest.err
>&5
5392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5393 (exit $ac_status); } &&
5394 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5399 (exit $ac_status); }; } &&
5400 { ac_try
='test -s conftest.$ac_objext'
5401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5405 (exit $ac_status); }; }; then
5406 ac_header_compiler
=yes
5408 echo "$as_me: failed program was:" >&5
5409 sed 's/^/| /' conftest.
$ac_ext >&5
5411 ac_header_compiler
=no
5413 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5414 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5415 echo "${ECHO_T}$ac_header_compiler" >&6
5417 # Is the header present?
5418 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5419 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5420 cat >conftest.
$ac_ext <<_ACEOF
5423 cat confdefs.h
>>conftest.
$ac_ext
5424 cat >>conftest.
$ac_ext <<_ACEOF
5425 /* end confdefs.h. */
5426 #include <$ac_header>
5428 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5429 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5431 grep -v '^ *+' conftest.er1
>conftest.err
5433 cat conftest.err
>&5
5434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5435 (exit $ac_status); } >/dev
/null
; then
5436 if test -s conftest.err
; then
5437 ac_cpp_err
=$ac_c_preproc_warn_flag
5438 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
5445 if test -z "$ac_cpp_err"; then
5446 ac_header_preproc
=yes
5448 echo "$as_me: failed program was:" >&5
5449 sed 's/^/| /' conftest.
$ac_ext >&5
5451 ac_header_preproc
=no
5453 rm -f conftest.err conftest.
$ac_ext
5454 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5455 echo "${ECHO_T}$ac_header_preproc" >&6
5457 # So? What about this header?
5458 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5460 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5461 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5462 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5463 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5464 ac_header_preproc
=yes
5467 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5468 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5469 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5470 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5471 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5472 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5473 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5474 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5475 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5476 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5477 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5478 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5481 ## ------------------------------------------ ##
5482 ## Report this to the AC_PACKAGE_NAME lists. ##
5483 ## ------------------------------------------ ##
5486 sed "s/^/$as_me: WARNING: /" >&2
5489 echo "$as_me:$LINENO: checking for $ac_header" >&5
5490 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5491 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5492 echo $ECHO_N "(cached) $ECHO_C" >&6
5494 eval "$as_ac_Header=\$ac_header_preproc"
5496 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5497 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5500 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5501 cat >>confdefs.h
<<_ACEOF
5502 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5510 for ac_header
in term.h
5512 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5513 echo "$as_me:$LINENO: checking for $ac_header" >&5
5514 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5515 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5516 echo $ECHO_N "(cached) $ECHO_C" >&6
5518 cat >conftest.
$ac_ext <<_ACEOF
5521 cat confdefs.h
>>conftest.
$ac_ext
5522 cat >>conftest.
$ac_ext <<_ACEOF
5523 /* end confdefs.h. */
5524 #include <$ac_header>
5526 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5527 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5529 grep -v '^ *+' conftest.er1
>conftest.err
5531 cat conftest.err
>&5
5532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5533 (exit $ac_status); } >/dev
/null
; then
5534 if test -s conftest.err
; then
5535 ac_cpp_err
=$ac_c_preproc_warn_flag
5536 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
5543 if test -z "$ac_cpp_err"; then
5544 eval "$as_ac_Header=yes"
5546 echo "$as_me: failed program was:" >&5
5547 sed 's/^/| /' conftest.
$ac_ext >&5
5549 eval "$as_ac_Header=no"
5551 rm -f conftest.err conftest.
$ac_ext
5553 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5554 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5555 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5556 cat >>confdefs.h
<<_ACEOF
5557 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5564 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5565 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5566 if test "${ac_cv_header_stdc+set}" = set; then
5567 echo $ECHO_N "(cached) $ECHO_C" >&6
5569 cat >conftest.
$ac_ext <<_ACEOF
5572 cat confdefs.h
>>conftest.
$ac_ext
5573 cat >>conftest.
$ac_ext <<_ACEOF
5574 /* end confdefs.h. */
5588 rm -f conftest.
$ac_objext
5589 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5590 (eval $ac_compile) 2>conftest.er1
5592 grep -v '^ *+' conftest.er1
>conftest.err
5594 cat conftest.err
>&5
5595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5596 (exit $ac_status); } &&
5597 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5602 (exit $ac_status); }; } &&
5603 { ac_try
='test -s conftest.$ac_objext'
5604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5608 (exit $ac_status); }; }; then
5609 ac_cv_header_stdc
=yes
5611 echo "$as_me: failed program was:" >&5
5612 sed 's/^/| /' conftest.
$ac_ext >&5
5614 ac_cv_header_stdc
=no
5616 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5618 if test $ac_cv_header_stdc = yes; then
5619 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5620 cat >conftest.
$ac_ext <<_ACEOF
5623 cat confdefs.h
>>conftest.
$ac_ext
5624 cat >>conftest.
$ac_ext <<_ACEOF
5625 /* end confdefs.h. */
5629 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5630 $EGREP "memchr" >/dev
/null
2>&1; then
5633 ac_cv_header_stdc
=no
5639 if test $ac_cv_header_stdc = yes; then
5640 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5641 cat >conftest.
$ac_ext <<_ACEOF
5644 cat confdefs.h
>>conftest.
$ac_ext
5645 cat >>conftest.
$ac_ext <<_ACEOF
5646 /* end confdefs.h. */
5650 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5651 $EGREP "free" >/dev
/null
2>&1; then
5654 ac_cv_header_stdc
=no
5660 if test $ac_cv_header_stdc = yes; then
5661 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5662 if test "$cross_compiling" = yes; then
5665 cat >conftest.
$ac_ext <<_ACEOF
5668 cat confdefs.h
>>conftest.
$ac_ext
5669 cat >>conftest.
$ac_ext <<_ACEOF
5670 /* end confdefs.h. */
5672 #if ((' ' & 0x0FF) == 0x020)
5673 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5674 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5676 # define ISLOWER(c) \
5677 (('a' <= (c) && (c) <= 'i') \
5678 || ('j' <= (c) && (c) <= 'r') \
5679 || ('s' <= (c) && (c) <= 'z'))
5680 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5683 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5688 for (i = 0; i < 256; i++)
5689 if (XOR (islower (i), ISLOWER (i))
5690 || toupper (i) != TOUPPER (i))
5695 rm -f conftest
$ac_exeext
5696 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5697 (eval $ac_link) 2>&5
5699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5700 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5705 (exit $ac_status); }; }; then
5708 echo "$as_me: program exited with status $ac_status" >&5
5709 echo "$as_me: failed program was:" >&5
5710 sed 's/^/| /' conftest.
$ac_ext >&5
5713 ac_cv_header_stdc
=no
5715 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5719 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5720 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5721 if test $ac_cv_header_stdc = yes; then
5723 cat >>confdefs.h
<<\_ACEOF
5724 #define STDC_HEADERS 1
5729 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
5730 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
5731 if test "${ac_cv_header_time+set}" = set; then
5732 echo $ECHO_N "(cached) $ECHO_C" >&6
5734 cat >conftest.
$ac_ext <<_ACEOF
5737 cat confdefs.h
>>conftest.
$ac_ext
5738 cat >>conftest.
$ac_ext <<_ACEOF
5739 /* end confdefs.h. */
5740 #include <sys/types.h>
5741 #include <sys/time.h>
5747 if ((struct tm *) 0)
5753 rm -f conftest.
$ac_objext
5754 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5755 (eval $ac_compile) 2>conftest.er1
5757 grep -v '^ *+' conftest.er1
>conftest.err
5759 cat conftest.err
>&5
5760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5761 (exit $ac_status); } &&
5762 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5767 (exit $ac_status); }; } &&
5768 { ac_try
='test -s conftest.$ac_objext'
5769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5773 (exit $ac_status); }; }; then
5774 ac_cv_header_time
=yes
5776 echo "$as_me: failed program was:" >&5
5777 sed 's/^/| /' conftest.
$ac_ext >&5
5779 ac_cv_header_time
=no
5781 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5783 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
5784 echo "${ECHO_T}$ac_cv_header_time" >&6
5785 if test $ac_cv_header_time = yes; then
5787 cat >>confdefs.h
<<\_ACEOF
5788 #define TIME_WITH_SYS_TIME 1
5793 echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
5794 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6
5795 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
5796 echo $ECHO_N "(cached) $ECHO_C" >&6
5798 cat >conftest.
$ac_ext <<_ACEOF
5801 cat confdefs.h
>>conftest.
$ac_ext
5802 cat >>conftest.
$ac_ext <<_ACEOF
5803 /* end confdefs.h. */
5804 $ac_includes_default
5809 char *p = (char *) sys_siglist;
5816 rm -f conftest.
$ac_objext
5817 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5818 (eval $ac_compile) 2>conftest.er1
5820 grep -v '^ *+' conftest.er1
>conftest.err
5822 cat conftest.err
>&5
5823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5824 (exit $ac_status); } &&
5825 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5830 (exit $ac_status); }; } &&
5831 { ac_try
='test -s conftest.$ac_objext'
5832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5836 (exit $ac_status); }; }; then
5837 ac_cv_have_decl_sys_siglist
=yes
5839 echo "$as_me: failed program was:" >&5
5840 sed 's/^/| /' conftest.
$ac_ext >&5
5842 ac_cv_have_decl_sys_siglist
=no
5844 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5846 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
5847 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6
5848 if test $ac_cv_have_decl_sys_siglist = yes; then
5850 cat >>confdefs.h
<<_ACEOF
5851 #define HAVE_DECL_SYS_SIGLIST 1
5856 cat >>confdefs.h
<<_ACEOF
5857 #define HAVE_DECL_SYS_SIGLIST 0
5864 if test $ac_cv_have_decl_sys_siglist != yes; then
5865 # For Tru64, at least:
5866 echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
5867 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6
5868 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
5869 echo $ECHO_N "(cached) $ECHO_C" >&6
5871 cat >conftest.
$ac_ext <<_ACEOF
5874 cat confdefs.h
>>conftest.
$ac_ext
5875 cat >>conftest.
$ac_ext <<_ACEOF
5876 /* end confdefs.h. */
5877 $ac_includes_default
5881 #ifndef __sys_siglist
5882 char *p = (char *) __sys_siglist;
5889 rm -f conftest.
$ac_objext
5890 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5891 (eval $ac_compile) 2>conftest.er1
5893 grep -v '^ *+' conftest.er1
>conftest.err
5895 cat conftest.err
>&5
5896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5897 (exit $ac_status); } &&
5898 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5903 (exit $ac_status); }; } &&
5904 { ac_try
='test -s conftest.$ac_objext'
5905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5909 (exit $ac_status); }; }; then
5910 ac_cv_have_decl___sys_siglist
=yes
5912 echo "$as_me: failed program was:" >&5
5913 sed 's/^/| /' conftest.
$ac_ext >&5
5915 ac_cv_have_decl___sys_siglist
=no
5917 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5919 echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
5920 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6
5921 if test $ac_cv_have_decl___sys_siglist = yes; then
5923 cat >>confdefs.h
<<_ACEOF
5924 #define HAVE_DECL___SYS_SIGLIST 1
5929 cat >>confdefs.h
<<_ACEOF
5930 #define HAVE_DECL___SYS_SIGLIST 0
5937 if test $ac_cv_have_decl___sys_siglist = yes; then
5939 cat >>confdefs.h
<<\_ACEOF
5940 #define sys_siglist __sys_siglist
5945 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
5946 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
5947 if test "${ac_cv_header_sys_wait_h+set}" = set; then
5948 echo $ECHO_N "(cached) $ECHO_C" >&6
5950 cat >conftest.
$ac_ext <<_ACEOF
5953 cat confdefs.h
>>conftest.
$ac_ext
5954 cat >>conftest.
$ac_ext <<_ACEOF
5955 /* end confdefs.h. */
5956 #include <sys/types.h>
5957 #include <sys/wait.h>
5959 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
5962 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5970 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5975 rm -f conftest.
$ac_objext
5976 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5977 (eval $ac_compile) 2>conftest.er1
5979 grep -v '^ *+' conftest.er1
>conftest.err
5981 cat conftest.err
>&5
5982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5983 (exit $ac_status); } &&
5984 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5989 (exit $ac_status); }; } &&
5990 { ac_try
='test -s conftest.$ac_objext'
5991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5995 (exit $ac_status); }; }; then
5996 ac_cv_header_sys_wait_h
=yes
5998 echo "$as_me: failed program was:" >&5
5999 sed 's/^/| /' conftest.
$ac_ext >&5
6001 ac_cv_header_sys_wait_h
=no
6003 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6005 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
6006 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
6007 if test $ac_cv_header_sys_wait_h = yes; then
6009 cat >>confdefs.h
<<\_ACEOF
6010 #define HAVE_SYS_WAIT_H 1
6016 echo "$as_me:$LINENO: checking for struct utimbuf" >&5
6017 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6
6018 if test "${emacs_cv_struct_utimbuf+set}" = set; then
6019 echo $ECHO_N "(cached) $ECHO_C" >&6
6021 cat >conftest.
$ac_ext <<_ACEOF
6024 cat confdefs.h
>>conftest.
$ac_ext
6025 cat >>conftest.
$ac_ext <<_ACEOF
6026 /* end confdefs.h. */
6027 #ifdef TIME_WITH_SYS_TIME
6028 #include <sys/time.h>
6031 #ifdef HAVE_SYS_TIME_H
6032 #include <sys/time.h>
6043 static struct utimbuf x; x.actime = x.modtime;
6048 rm -f conftest.
$ac_objext
6049 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6050 (eval $ac_compile) 2>conftest.er1
6052 grep -v '^ *+' conftest.er1
>conftest.err
6054 cat conftest.err
>&5
6055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6056 (exit $ac_status); } &&
6057 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6062 (exit $ac_status); }; } &&
6063 { ac_try
='test -s conftest.$ac_objext'
6064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6068 (exit $ac_status); }; }; then
6069 emacs_cv_struct_utimbuf
=yes
6071 echo "$as_me: failed program was:" >&5
6072 sed 's/^/| /' conftest.
$ac_ext >&5
6074 emacs_cv_struct_utimbuf
=no
6076 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6078 echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
6079 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6
6080 if test $emacs_cv_struct_utimbuf = yes; then
6082 cat >>confdefs.h
<<\_ACEOF
6083 #define HAVE_STRUCT_UTIMBUF 1
6088 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6089 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
6090 if test "${ac_cv_type_signal+set}" = set; then
6091 echo $ECHO_N "(cached) $ECHO_C" >&6
6093 cat >conftest.
$ac_ext <<_ACEOF
6096 cat confdefs.h
>>conftest.
$ac_ext
6097 cat >>conftest.
$ac_ext <<_ACEOF
6098 /* end confdefs.h. */
6099 #include <sys/types.h>
6105 extern "C" void (*signal (int, void (*)(int)))(int);
6107 void (*signal ()) ();
6118 rm -f conftest.
$ac_objext
6119 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6120 (eval $ac_compile) 2>conftest.er1
6122 grep -v '^ *+' conftest.er1
>conftest.err
6124 cat conftest.err
>&5
6125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6126 (exit $ac_status); } &&
6127 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6132 (exit $ac_status); }; } &&
6133 { ac_try
='test -s conftest.$ac_objext'
6134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6138 (exit $ac_status); }; }; then
6139 ac_cv_type_signal
=void
6141 echo "$as_me: failed program was:" >&5
6142 sed 's/^/| /' conftest.
$ac_ext >&5
6144 ac_cv_type_signal
=int
6146 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6148 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6149 echo "${ECHO_T}$ac_cv_type_signal" >&6
6151 cat >>confdefs.h
<<_ACEOF
6152 #define RETSIGTYPE $ac_cv_type_signal
6157 echo "$as_me:$LINENO: checking for speed_t" >&5
6158 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6
6159 if test "${emacs_cv_speed_t+set}" = set; then
6160 echo $ECHO_N "(cached) $ECHO_C" >&6
6162 cat >conftest.
$ac_ext <<_ACEOF
6165 cat confdefs.h
>>conftest.
$ac_ext
6166 cat >>conftest.
$ac_ext <<_ACEOF
6167 /* end confdefs.h. */
6168 #include <termios.h>
6177 rm -f conftest.
$ac_objext
6178 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6179 (eval $ac_compile) 2>conftest.er1
6181 grep -v '^ *+' conftest.er1
>conftest.err
6183 cat conftest.err
>&5
6184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6185 (exit $ac_status); } &&
6186 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6191 (exit $ac_status); }; } &&
6192 { ac_try
='test -s conftest.$ac_objext'
6193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6197 (exit $ac_status); }; }; then
6198 emacs_cv_speed_t
=yes
6200 echo "$as_me: failed program was:" >&5
6201 sed 's/^/| /' conftest.
$ac_ext >&5
6205 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6207 echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
6208 echo "${ECHO_T}$emacs_cv_speed_t" >&6
6209 if test $emacs_cv_speed_t = yes; then
6211 cat >>confdefs.h
<<\_ACEOF
6212 #define HAVE_SPEED_T 1
6217 echo "$as_me:$LINENO: checking for struct timeval" >&5
6218 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6
6219 if test "${emacs_cv_struct_timeval+set}" = set; then
6220 echo $ECHO_N "(cached) $ECHO_C" >&6
6222 cat >conftest.
$ac_ext <<_ACEOF
6225 cat confdefs.h
>>conftest.
$ac_ext
6226 cat >>conftest.
$ac_ext <<_ACEOF
6227 /* end confdefs.h. */
6228 #ifdef TIME_WITH_SYS_TIME
6229 #include <sys/time.h>
6232 #ifdef HAVE_SYS_TIME_H
6233 #include <sys/time.h>
6241 static struct timeval x; x.tv_sec = x.tv_usec;
6246 rm -f conftest.
$ac_objext
6247 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6248 (eval $ac_compile) 2>conftest.er1
6250 grep -v '^ *+' conftest.er1
>conftest.err
6252 cat conftest.err
>&5
6253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6254 (exit $ac_status); } &&
6255 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6260 (exit $ac_status); }; } &&
6261 { ac_try
='test -s conftest.$ac_objext'
6262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6266 (exit $ac_status); }; }; then
6267 emacs_cv_struct_timeval
=yes
6269 echo "$as_me: failed program was:" >&5
6270 sed 's/^/| /' conftest.
$ac_ext >&5
6272 emacs_cv_struct_timeval
=no
6274 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6276 echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
6277 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6
6278 HAVE_TIMEVAL
=$emacs_cv_struct_timeval
6279 if test $emacs_cv_struct_timeval = yes; then
6281 cat >>confdefs.h
<<\_ACEOF
6282 #define HAVE_TIMEVAL 1
6287 echo "$as_me:$LINENO: checking for struct exception" >&5
6288 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6
6289 if test "${emacs_cv_struct_exception+set}" = set; then
6290 echo $ECHO_N "(cached) $ECHO_C" >&6
6292 cat >conftest.
$ac_ext <<_ACEOF
6295 cat confdefs.h
>>conftest.
$ac_ext
6296 cat >>conftest.
$ac_ext <<_ACEOF
6297 /* end confdefs.h. */
6302 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
6307 rm -f conftest.
$ac_objext
6308 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6309 (eval $ac_compile) 2>conftest.er1
6311 grep -v '^ *+' conftest.er1
>conftest.err
6313 cat conftest.err
>&5
6314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6315 (exit $ac_status); } &&
6316 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6321 (exit $ac_status); }; } &&
6322 { ac_try
='test -s conftest.$ac_objext'
6323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6327 (exit $ac_status); }; }; then
6328 emacs_cv_struct_exception
=yes
6330 echo "$as_me: failed program was:" >&5
6331 sed 's/^/| /' conftest.
$ac_ext >&5
6333 emacs_cv_struct_exception
=no
6335 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6337 echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
6338 echo "${ECHO_T}$emacs_cv_struct_exception" >&6
6339 HAVE_EXCEPTION
=$emacs_cv_struct_exception
6340 if test $emacs_cv_struct_exception != yes; then
6342 cat >>confdefs.h
<<\_ACEOF
6343 #define NO_MATHERR 1
6349 for ac_header
in sys
/socket.h
6351 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6352 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6353 echo "$as_me:$LINENO: checking for $ac_header" >&5
6354 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6355 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6356 echo $ECHO_N "(cached) $ECHO_C" >&6
6358 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6359 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6361 # Is the header compilable?
6362 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6363 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6364 cat >conftest.
$ac_ext <<_ACEOF
6367 cat confdefs.h
>>conftest.
$ac_ext
6368 cat >>conftest.
$ac_ext <<_ACEOF
6369 /* end confdefs.h. */
6370 $ac_includes_default
6371 #include <$ac_header>
6373 rm -f conftest.
$ac_objext
6374 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6375 (eval $ac_compile) 2>conftest.er1
6377 grep -v '^ *+' conftest.er1
>conftest.err
6379 cat conftest.err
>&5
6380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6381 (exit $ac_status); } &&
6382 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6387 (exit $ac_status); }; } &&
6388 { ac_try
='test -s conftest.$ac_objext'
6389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6393 (exit $ac_status); }; }; then
6394 ac_header_compiler
=yes
6396 echo "$as_me: failed program was:" >&5
6397 sed 's/^/| /' conftest.
$ac_ext >&5
6399 ac_header_compiler
=no
6401 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6402 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6403 echo "${ECHO_T}$ac_header_compiler" >&6
6405 # Is the header present?
6406 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6407 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6408 cat >conftest.
$ac_ext <<_ACEOF
6411 cat confdefs.h
>>conftest.
$ac_ext
6412 cat >>conftest.
$ac_ext <<_ACEOF
6413 /* end confdefs.h. */
6414 #include <$ac_header>
6416 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6417 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6419 grep -v '^ *+' conftest.er1
>conftest.err
6421 cat conftest.err
>&5
6422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6423 (exit $ac_status); } >/dev
/null
; then
6424 if test -s conftest.err
; then
6425 ac_cpp_err
=$ac_c_preproc_warn_flag
6426 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6433 if test -z "$ac_cpp_err"; then
6434 ac_header_preproc
=yes
6436 echo "$as_me: failed program was:" >&5
6437 sed 's/^/| /' conftest.
$ac_ext >&5
6439 ac_header_preproc
=no
6441 rm -f conftest.err conftest.
$ac_ext
6442 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6443 echo "${ECHO_T}$ac_header_preproc" >&6
6445 # So? What about this header?
6446 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6448 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6449 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6450 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6451 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6452 ac_header_preproc
=yes
6455 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6456 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6457 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6458 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6459 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6460 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6461 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6462 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6463 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6464 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6465 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6466 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6469 ## ------------------------------------------ ##
6470 ## Report this to the AC_PACKAGE_NAME lists. ##
6471 ## ------------------------------------------ ##
6474 sed "s/^/$as_me: WARNING: /" >&2
6477 echo "$as_me:$LINENO: checking for $ac_header" >&5
6478 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6479 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6480 echo $ECHO_N "(cached) $ECHO_C" >&6
6482 eval "$as_ac_Header=\$ac_header_preproc"
6484 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6485 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6488 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6489 cat >>confdefs.h
<<_ACEOF
6490 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6498 for ac_header
in net
/if.h
6500 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6501 echo "$as_me:$LINENO: checking for $ac_header" >&5
6502 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6503 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6504 echo $ECHO_N "(cached) $ECHO_C" >&6
6506 cat >conftest.
$ac_ext <<_ACEOF
6509 cat confdefs.h
>>conftest.
$ac_ext
6510 cat >>conftest.
$ac_ext <<_ACEOF
6511 /* end confdefs.h. */
6512 $ac_includes_default
6513 #if HAVE_SYS_SOCKET_H
6514 #include <sys/socket.h>
6517 #include <$ac_header>
6519 rm -f conftest.
$ac_objext
6520 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6521 (eval $ac_compile) 2>conftest.er1
6523 grep -v '^ *+' conftest.er1
>conftest.err
6525 cat conftest.err
>&5
6526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6527 (exit $ac_status); } &&
6528 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6533 (exit $ac_status); }; } &&
6534 { ac_try
='test -s conftest.$ac_objext'
6535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6539 (exit $ac_status); }; }; then
6540 eval "$as_ac_Header=yes"
6542 echo "$as_me: failed program was:" >&5
6543 sed 's/^/| /' conftest.
$ac_ext >&5
6545 eval "$as_ac_Header=no"
6547 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6549 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6550 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6551 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6552 cat >>confdefs.h
<<_ACEOF
6553 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6561 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
6562 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
6563 if test "${ac_cv_struct_tm+set}" = set; then
6564 echo $ECHO_N "(cached) $ECHO_C" >&6
6566 cat >conftest.
$ac_ext <<_ACEOF
6569 cat confdefs.h
>>conftest.
$ac_ext
6570 cat >>conftest.
$ac_ext <<_ACEOF
6571 /* end confdefs.h. */
6572 #include <sys/types.h>
6578 struct tm *tp; tp->tm_sec;
6583 rm -f conftest.
$ac_objext
6584 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6585 (eval $ac_compile) 2>conftest.er1
6587 grep -v '^ *+' conftest.er1
>conftest.err
6589 cat conftest.err
>&5
6590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6591 (exit $ac_status); } &&
6592 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6597 (exit $ac_status); }; } &&
6598 { ac_try
='test -s conftest.$ac_objext'
6599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6603 (exit $ac_status); }; }; then
6604 ac_cv_struct_tm
=time.h
6606 echo "$as_me: failed program was:" >&5
6607 sed 's/^/| /' conftest.
$ac_ext >&5
6609 ac_cv_struct_tm
=sys
/time.h
6611 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6613 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
6614 echo "${ECHO_T}$ac_cv_struct_tm" >&6
6615 if test $ac_cv_struct_tm = sys
/time.h
; then
6617 cat >>confdefs.h
<<\_ACEOF
6618 #define TM_IN_SYS_TIME 1
6623 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
6624 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
6625 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
6626 echo $ECHO_N "(cached) $ECHO_C" >&6
6628 cat >conftest.
$ac_ext <<_ACEOF
6631 cat confdefs.h
>>conftest.
$ac_ext
6632 cat >>conftest.
$ac_ext <<_ACEOF
6633 /* end confdefs.h. */
6634 #include <sys/types.h>
6635 #include <$ac_cv_struct_tm>
6641 static struct tm ac_aggr;
6642 if (ac_aggr.tm_zone)
6648 rm -f conftest.
$ac_objext
6649 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6650 (eval $ac_compile) 2>conftest.er1
6652 grep -v '^ *+' conftest.er1
>conftest.err
6654 cat conftest.err
>&5
6655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6656 (exit $ac_status); } &&
6657 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6662 (exit $ac_status); }; } &&
6663 { ac_try
='test -s conftest.$ac_objext'
6664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6668 (exit $ac_status); }; }; then
6669 ac_cv_member_struct_tm_tm_zone
=yes
6671 echo "$as_me: failed program was:" >&5
6672 sed 's/^/| /' conftest.
$ac_ext >&5
6674 cat >conftest.
$ac_ext <<_ACEOF
6677 cat confdefs.h
>>conftest.
$ac_ext
6678 cat >>conftest.
$ac_ext <<_ACEOF
6679 /* end confdefs.h. */
6680 #include <sys/types.h>
6681 #include <$ac_cv_struct_tm>
6687 static struct tm ac_aggr;
6688 if (sizeof ac_aggr.tm_zone)
6694 rm -f conftest.
$ac_objext
6695 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6696 (eval $ac_compile) 2>conftest.er1
6698 grep -v '^ *+' conftest.er1
>conftest.err
6700 cat conftest.err
>&5
6701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6702 (exit $ac_status); } &&
6703 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6708 (exit $ac_status); }; } &&
6709 { ac_try
='test -s conftest.$ac_objext'
6710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6714 (exit $ac_status); }; }; then
6715 ac_cv_member_struct_tm_tm_zone
=yes
6717 echo "$as_me: failed program was:" >&5
6718 sed 's/^/| /' conftest.
$ac_ext >&5
6720 ac_cv_member_struct_tm_tm_zone
=no
6722 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6724 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6726 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
6727 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
6728 if test $ac_cv_member_struct_tm_tm_zone = yes; then
6730 cat >>confdefs.h
<<_ACEOF
6731 #define HAVE_STRUCT_TM_TM_ZONE 1
6737 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6739 cat >>confdefs.h
<<\_ACEOF
6740 #define HAVE_TM_ZONE 1
6744 echo "$as_me:$LINENO: checking for tzname" >&5
6745 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
6746 if test "${ac_cv_var_tzname+set}" = set; then
6747 echo $ECHO_N "(cached) $ECHO_C" >&6
6749 cat >conftest.
$ac_ext <<_ACEOF
6752 cat confdefs.h
>>conftest.
$ac_ext
6753 cat >>conftest.
$ac_ext <<_ACEOF
6754 /* end confdefs.h. */
6756 #ifndef tzname /* For SGI. */
6757 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
6768 rm -f conftest.
$ac_objext conftest
$ac_exeext
6769 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6770 (eval $ac_link) 2>conftest.er1
6772 grep -v '^ *+' conftest.er1
>conftest.err
6774 cat conftest.err
>&5
6775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6776 (exit $ac_status); } &&
6777 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6782 (exit $ac_status); }; } &&
6783 { ac_try
='test -s conftest$ac_exeext'
6784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6788 (exit $ac_status); }; }; then
6789 ac_cv_var_tzname
=yes
6791 echo "$as_me: failed program was:" >&5
6792 sed 's/^/| /' conftest.
$ac_ext >&5
6796 rm -f conftest.err conftest.
$ac_objext \
6797 conftest
$ac_exeext conftest.
$ac_ext
6799 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
6800 echo "${ECHO_T}$ac_cv_var_tzname" >&6
6801 if test $ac_cv_var_tzname = yes; then
6803 cat >>confdefs.h
<<\_ACEOF
6804 #define HAVE_TZNAME 1
6810 echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
6811 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6
6812 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
6813 echo $ECHO_N "(cached) $ECHO_C" >&6
6815 cat >conftest.
$ac_ext <<_ACEOF
6818 cat confdefs.h
>>conftest.
$ac_ext
6819 cat >>conftest.
$ac_ext <<_ACEOF
6820 /* end confdefs.h. */
6826 static struct tm ac_aggr;
6827 if (ac_aggr.tm_gmtoff)
6833 rm -f conftest.
$ac_objext
6834 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6835 (eval $ac_compile) 2>conftest.er1
6837 grep -v '^ *+' conftest.er1
>conftest.err
6839 cat conftest.err
>&5
6840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6841 (exit $ac_status); } &&
6842 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6847 (exit $ac_status); }; } &&
6848 { ac_try
='test -s conftest.$ac_objext'
6849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6853 (exit $ac_status); }; }; then
6854 ac_cv_member_struct_tm_tm_gmtoff
=yes
6856 echo "$as_me: failed program was:" >&5
6857 sed 's/^/| /' conftest.
$ac_ext >&5
6859 cat >conftest.
$ac_ext <<_ACEOF
6862 cat confdefs.h
>>conftest.
$ac_ext
6863 cat >>conftest.
$ac_ext <<_ACEOF
6864 /* end confdefs.h. */
6870 static struct tm ac_aggr;
6871 if (sizeof ac_aggr.tm_gmtoff)
6877 rm -f conftest.
$ac_objext
6878 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6879 (eval $ac_compile) 2>conftest.er1
6881 grep -v '^ *+' conftest.er1
>conftest.err
6883 cat conftest.err
>&5
6884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6885 (exit $ac_status); } &&
6886 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6891 (exit $ac_status); }; } &&
6892 { ac_try
='test -s conftest.$ac_objext'
6893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6897 (exit $ac_status); }; }; then
6898 ac_cv_member_struct_tm_tm_gmtoff
=yes
6900 echo "$as_me: failed program was:" >&5
6901 sed 's/^/| /' conftest.
$ac_ext >&5
6903 ac_cv_member_struct_tm_tm_gmtoff
=no
6905 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6907 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6909 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
6910 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6
6911 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
6913 cat >>confdefs.h
<<\_ACEOF
6914 #define HAVE_TM_GMTOFF 1
6919 echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
6920 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6
6921 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
6922 echo $ECHO_N "(cached) $ECHO_C" >&6
6924 cat >conftest.
$ac_ext <<_ACEOF
6927 cat confdefs.h
>>conftest.
$ac_ext
6928 cat >>conftest.
$ac_ext <<_ACEOF
6929 /* end confdefs.h. */
6930 $ac_includes_default
6931 #if HAVE_SYS_SOCKET_H
6932 #include <sys/socket.h>
6941 static struct ifreq ac_aggr;
6942 if (ac_aggr.ifr_flags)
6948 rm -f conftest.
$ac_objext
6949 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6950 (eval $ac_compile) 2>conftest.er1
6952 grep -v '^ *+' conftest.er1
>conftest.err
6954 cat conftest.err
>&5
6955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6956 (exit $ac_status); } &&
6957 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6962 (exit $ac_status); }; } &&
6963 { ac_try
='test -s conftest.$ac_objext'
6964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6968 (exit $ac_status); }; }; then
6969 ac_cv_member_struct_ifreq_ifr_flags
=yes
6971 echo "$as_me: failed program was:" >&5
6972 sed 's/^/| /' conftest.
$ac_ext >&5
6974 cat >conftest.
$ac_ext <<_ACEOF
6977 cat confdefs.h
>>conftest.
$ac_ext
6978 cat >>conftest.
$ac_ext <<_ACEOF
6979 /* end confdefs.h. */
6980 $ac_includes_default
6981 #if HAVE_SYS_SOCKET_H
6982 #include <sys/socket.h>
6991 static struct ifreq ac_aggr;
6992 if (sizeof ac_aggr.ifr_flags)
6998 rm -f conftest.
$ac_objext
6999 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7000 (eval $ac_compile) 2>conftest.er1
7002 grep -v '^ *+' conftest.er1
>conftest.err
7004 cat conftest.err
>&5
7005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7006 (exit $ac_status); } &&
7007 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7012 (exit $ac_status); }; } &&
7013 { ac_try
='test -s conftest.$ac_objext'
7014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7018 (exit $ac_status); }; }; then
7019 ac_cv_member_struct_ifreq_ifr_flags
=yes
7021 echo "$as_me: failed program was:" >&5
7022 sed 's/^/| /' conftest.
$ac_ext >&5
7024 ac_cv_member_struct_ifreq_ifr_flags
=no
7026 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7028 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7030 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
7031 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6
7032 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
7034 cat >>confdefs.h
<<_ACEOF
7035 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
7040 echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
7041 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6
7042 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
7043 echo $ECHO_N "(cached) $ECHO_C" >&6
7045 cat >conftest.
$ac_ext <<_ACEOF
7048 cat confdefs.h
>>conftest.
$ac_ext
7049 cat >>conftest.
$ac_ext <<_ACEOF
7050 /* end confdefs.h. */
7051 $ac_includes_default
7052 #if HAVE_SYS_SOCKET_H
7053 #include <sys/socket.h>
7062 static struct ifreq ac_aggr;
7063 if (ac_aggr.ifr_hwaddr)
7069 rm -f conftest.
$ac_objext
7070 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7071 (eval $ac_compile) 2>conftest.er1
7073 grep -v '^ *+' conftest.er1
>conftest.err
7075 cat conftest.err
>&5
7076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7077 (exit $ac_status); } &&
7078 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7083 (exit $ac_status); }; } &&
7084 { ac_try
='test -s conftest.$ac_objext'
7085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7089 (exit $ac_status); }; }; then
7090 ac_cv_member_struct_ifreq_ifr_hwaddr
=yes
7092 echo "$as_me: failed program was:" >&5
7093 sed 's/^/| /' conftest.
$ac_ext >&5
7095 cat >conftest.
$ac_ext <<_ACEOF
7098 cat confdefs.h
>>conftest.
$ac_ext
7099 cat >>conftest.
$ac_ext <<_ACEOF
7100 /* end confdefs.h. */
7101 $ac_includes_default
7102 #if HAVE_SYS_SOCKET_H
7103 #include <sys/socket.h>
7112 static struct ifreq ac_aggr;
7113 if (sizeof ac_aggr.ifr_hwaddr)
7119 rm -f conftest.
$ac_objext
7120 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7121 (eval $ac_compile) 2>conftest.er1
7123 grep -v '^ *+' conftest.er1
>conftest.err
7125 cat conftest.err
>&5
7126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7127 (exit $ac_status); } &&
7128 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7133 (exit $ac_status); }; } &&
7134 { ac_try
='test -s conftest.$ac_objext'
7135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7139 (exit $ac_status); }; }; then
7140 ac_cv_member_struct_ifreq_ifr_hwaddr
=yes
7142 echo "$as_me: failed program was:" >&5
7143 sed 's/^/| /' conftest.
$ac_ext >&5
7145 ac_cv_member_struct_ifreq_ifr_hwaddr
=no
7147 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7149 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7151 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
7152 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6
7153 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
7155 cat >>confdefs.h
<<_ACEOF
7156 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
7161 echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
7162 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6
7163 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
7164 echo $ECHO_N "(cached) $ECHO_C" >&6
7166 cat >conftest.
$ac_ext <<_ACEOF
7169 cat confdefs.h
>>conftest.
$ac_ext
7170 cat >>conftest.
$ac_ext <<_ACEOF
7171 /* end confdefs.h. */
7172 $ac_includes_default
7173 #if HAVE_SYS_SOCKET_H
7174 #include <sys/socket.h>
7183 static struct ifreq ac_aggr;
7184 if (ac_aggr.ifr_netmask)
7190 rm -f conftest.
$ac_objext
7191 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7192 (eval $ac_compile) 2>conftest.er1
7194 grep -v '^ *+' conftest.er1
>conftest.err
7196 cat conftest.err
>&5
7197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7198 (exit $ac_status); } &&
7199 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7204 (exit $ac_status); }; } &&
7205 { ac_try
='test -s conftest.$ac_objext'
7206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7210 (exit $ac_status); }; }; then
7211 ac_cv_member_struct_ifreq_ifr_netmask
=yes
7213 echo "$as_me: failed program was:" >&5
7214 sed 's/^/| /' conftest.
$ac_ext >&5
7216 cat >conftest.
$ac_ext <<_ACEOF
7219 cat confdefs.h
>>conftest.
$ac_ext
7220 cat >>conftest.
$ac_ext <<_ACEOF
7221 /* end confdefs.h. */
7222 $ac_includes_default
7223 #if HAVE_SYS_SOCKET_H
7224 #include <sys/socket.h>
7233 static struct ifreq ac_aggr;
7234 if (sizeof ac_aggr.ifr_netmask)
7240 rm -f conftest.
$ac_objext
7241 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7242 (eval $ac_compile) 2>conftest.er1
7244 grep -v '^ *+' conftest.er1
>conftest.err
7246 cat conftest.err
>&5
7247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7248 (exit $ac_status); } &&
7249 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7254 (exit $ac_status); }; } &&
7255 { ac_try
='test -s conftest.$ac_objext'
7256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7260 (exit $ac_status); }; }; then
7261 ac_cv_member_struct_ifreq_ifr_netmask
=yes
7263 echo "$as_me: failed program was:" >&5
7264 sed 's/^/| /' conftest.
$ac_ext >&5
7266 ac_cv_member_struct_ifreq_ifr_netmask
=no
7268 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7270 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7272 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
7273 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6
7274 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
7276 cat >>confdefs.h
<<_ACEOF
7277 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
7282 echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
7283 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6
7284 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
7285 echo $ECHO_N "(cached) $ECHO_C" >&6
7287 cat >conftest.
$ac_ext <<_ACEOF
7290 cat confdefs.h
>>conftest.
$ac_ext
7291 cat >>conftest.
$ac_ext <<_ACEOF
7292 /* end confdefs.h. */
7293 $ac_includes_default
7294 #if HAVE_SYS_SOCKET_H
7295 #include <sys/socket.h>
7304 static struct ifreq ac_aggr;
7305 if (ac_aggr.ifr_broadaddr)
7311 rm -f conftest.
$ac_objext
7312 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7313 (eval $ac_compile) 2>conftest.er1
7315 grep -v '^ *+' conftest.er1
>conftest.err
7317 cat conftest.err
>&5
7318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7319 (exit $ac_status); } &&
7320 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7325 (exit $ac_status); }; } &&
7326 { ac_try
='test -s conftest.$ac_objext'
7327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7331 (exit $ac_status); }; }; then
7332 ac_cv_member_struct_ifreq_ifr_broadaddr
=yes
7334 echo "$as_me: failed program was:" >&5
7335 sed 's/^/| /' conftest.
$ac_ext >&5
7337 cat >conftest.
$ac_ext <<_ACEOF
7340 cat confdefs.h
>>conftest.
$ac_ext
7341 cat >>conftest.
$ac_ext <<_ACEOF
7342 /* end confdefs.h. */
7343 $ac_includes_default
7344 #if HAVE_SYS_SOCKET_H
7345 #include <sys/socket.h>
7354 static struct ifreq ac_aggr;
7355 if (sizeof ac_aggr.ifr_broadaddr)
7361 rm -f conftest.
$ac_objext
7362 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7363 (eval $ac_compile) 2>conftest.er1
7365 grep -v '^ *+' conftest.er1
>conftest.err
7367 cat conftest.err
>&5
7368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7369 (exit $ac_status); } &&
7370 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7375 (exit $ac_status); }; } &&
7376 { ac_try
='test -s conftest.$ac_objext'
7377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7381 (exit $ac_status); }; }; then
7382 ac_cv_member_struct_ifreq_ifr_broadaddr
=yes
7384 echo "$as_me: failed program was:" >&5
7385 sed 's/^/| /' conftest.
$ac_ext >&5
7387 ac_cv_member_struct_ifreq_ifr_broadaddr
=no
7389 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7391 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7393 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
7394 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6
7395 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
7397 cat >>confdefs.h
<<_ACEOF
7398 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
7403 echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
7404 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6
7405 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
7406 echo $ECHO_N "(cached) $ECHO_C" >&6
7408 cat >conftest.
$ac_ext <<_ACEOF
7411 cat confdefs.h
>>conftest.
$ac_ext
7412 cat >>conftest.
$ac_ext <<_ACEOF
7413 /* end confdefs.h. */
7414 $ac_includes_default
7415 #if HAVE_SYS_SOCKET_H
7416 #include <sys/socket.h>
7425 static struct ifreq ac_aggr;
7426 if (ac_aggr.ifr_addr)
7432 rm -f conftest.
$ac_objext
7433 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7434 (eval $ac_compile) 2>conftest.er1
7436 grep -v '^ *+' conftest.er1
>conftest.err
7438 cat conftest.err
>&5
7439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7440 (exit $ac_status); } &&
7441 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7446 (exit $ac_status); }; } &&
7447 { ac_try
='test -s conftest.$ac_objext'
7448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7452 (exit $ac_status); }; }; then
7453 ac_cv_member_struct_ifreq_ifr_addr
=yes
7455 echo "$as_me: failed program was:" >&5
7456 sed 's/^/| /' conftest.
$ac_ext >&5
7458 cat >conftest.
$ac_ext <<_ACEOF
7461 cat confdefs.h
>>conftest.
$ac_ext
7462 cat >>conftest.
$ac_ext <<_ACEOF
7463 /* end confdefs.h. */
7464 $ac_includes_default
7465 #if HAVE_SYS_SOCKET_H
7466 #include <sys/socket.h>
7475 static struct ifreq ac_aggr;
7476 if (sizeof ac_aggr.ifr_addr)
7482 rm -f conftest.
$ac_objext
7483 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7484 (eval $ac_compile) 2>conftest.er1
7486 grep -v '^ *+' conftest.er1
>conftest.err
7488 cat conftest.err
>&5
7489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7490 (exit $ac_status); } &&
7491 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7496 (exit $ac_status); }; } &&
7497 { ac_try
='test -s conftest.$ac_objext'
7498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7502 (exit $ac_status); }; }; then
7503 ac_cv_member_struct_ifreq_ifr_addr
=yes
7505 echo "$as_me: failed program was:" >&5
7506 sed 's/^/| /' conftest.
$ac_ext >&5
7508 ac_cv_member_struct_ifreq_ifr_addr
=no
7510 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7512 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7514 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
7515 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6
7516 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
7518 cat >>confdefs.h
<<_ACEOF
7519 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
7527 echo "$as_me:$LINENO: checking for function prototypes" >&5
7528 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
7529 if test "$ac_cv_prog_cc_stdc" != no
; then
7530 echo "$as_me:$LINENO: result: yes" >&5
7531 echo "${ECHO_T}yes" >&6
7533 cat >>confdefs.h
<<\_ACEOF
7534 #define PROTOTYPES 1
7538 cat >>confdefs.h
<<\_ACEOF
7539 #define __PROTOTYPES 1
7543 echo "$as_me:$LINENO: result: no" >&5
7544 echo "${ECHO_T}no" >&6
7547 echo "$as_me:$LINENO: checking for working volatile" >&5
7548 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
7549 if test "${ac_cv_c_volatile+set}" = set; then
7550 echo $ECHO_N "(cached) $ECHO_C" >&6
7552 cat >conftest.
$ac_ext <<_ACEOF
7555 cat confdefs.h
>>conftest.
$ac_ext
7556 cat >>conftest.
$ac_ext <<_ACEOF
7557 /* end confdefs.h. */
7569 rm -f conftest.
$ac_objext
7570 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7571 (eval $ac_compile) 2>conftest.er1
7573 grep -v '^ *+' conftest.er1
>conftest.err
7575 cat conftest.err
>&5
7576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7577 (exit $ac_status); } &&
7578 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7583 (exit $ac_status); }; } &&
7584 { ac_try
='test -s conftest.$ac_objext'
7585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7589 (exit $ac_status); }; }; then
7590 ac_cv_c_volatile
=yes
7592 echo "$as_me: failed program was:" >&5
7593 sed 's/^/| /' conftest.
$ac_ext >&5
7597 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7599 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
7600 echo "${ECHO_T}$ac_cv_c_volatile" >&6
7601 if test $ac_cv_c_volatile = no
; then
7603 cat >>confdefs.h
<<\_ACEOF
7609 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7610 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
7611 if test "${ac_cv_c_const+set}" = set; then
7612 echo $ECHO_N "(cached) $ECHO_C" >&6
7614 cat >conftest.
$ac_ext <<_ACEOF
7617 cat confdefs.h
>>conftest.
$ac_ext
7618 cat >>conftest.
$ac_ext <<_ACEOF
7619 /* end confdefs.h. */
7624 /* FIXME: Include the comments suggested by Paul. */
7626 /* Ultrix mips cc rejects this. */
7627 typedef int charset[2];
7629 /* SunOS 4.1.1 cc rejects this. */
7630 char const *const *ccp;
7632 /* NEC SVR4.0.2 mips cc rejects this. */
7633 struct point {int x, y;};
7634 static struct point const zero = {0,0};
7635 /* AIX XL C 1.02.0.0 rejects this.
7636 It does not let you subtract one const X* pointer from another in
7637 an arm of an if-expression whose if-part is not a constant
7639 const char *g = "string";
7640 ccp = &g + (g ? g-g : 0);
7641 /* HPUX 7.0 cc rejects these. */
7644 ccp = (char const *const *) p;
7645 { /* SCO 3.2v4 cc rejects this. */
7647 char const *s = 0 ? (char *) 0 : (char const *) 0;
7651 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7653 const int *foo = &x[0];
7656 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7657 typedef const int *iptr;
7661 { /* AIX XL C 1.02.0.0 rejects this saying
7662 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7663 struct s { int j; const int *ap[3]; };
7664 struct s *b; b->j = 5;
7666 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7675 rm -f conftest.
$ac_objext
7676 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7677 (eval $ac_compile) 2>conftest.er1
7679 grep -v '^ *+' conftest.er1
>conftest.err
7681 cat conftest.err
>&5
7682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7683 (exit $ac_status); } &&
7684 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7689 (exit $ac_status); }; } &&
7690 { ac_try
='test -s conftest.$ac_objext'
7691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7695 (exit $ac_status); }; }; then
7698 echo "$as_me: failed program was:" >&5
7699 sed 's/^/| /' conftest.
$ac_ext >&5
7703 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7705 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7706 echo "${ECHO_T}$ac_cv_c_const" >&6
7707 if test $ac_cv_c_const = no
; then
7709 cat >>confdefs.h
<<\_ACEOF
7715 echo "$as_me:$LINENO: checking for void * support" >&5
7716 echo $ECHO_N "checking for void * support... $ECHO_C" >&6
7717 if test "${emacs_cv_void_star+set}" = set; then
7718 echo $ECHO_N "(cached) $ECHO_C" >&6
7720 cat >conftest.
$ac_ext <<_ACEOF
7723 cat confdefs.h
>>conftest.
$ac_ext
7724 cat >>conftest.
$ac_ext <<_ACEOF
7725 /* end confdefs.h. */
7735 rm -f conftest.
$ac_objext
7736 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7737 (eval $ac_compile) 2>conftest.er1
7739 grep -v '^ *+' conftest.er1
>conftest.err
7741 cat conftest.err
>&5
7742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7743 (exit $ac_status); } &&
7744 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7749 (exit $ac_status); }; } &&
7750 { ac_try
='test -s conftest.$ac_objext'
7751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7755 (exit $ac_status); }; }; then
7756 emacs_cv_void_star
=yes
7758 echo "$as_me: failed program was:" >&5
7759 sed 's/^/| /' conftest.
$ac_ext >&5
7761 emacs_cv_void_star
=no
7763 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7765 echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
7766 echo "${ECHO_T}$emacs_cv_void_star" >&6
7767 if test $emacs_cv_void_star = yes; then
7768 cat >>confdefs.h
<<\_ACEOF
7769 #define POINTER_TYPE void
7773 cat >>confdefs.h
<<\_ACEOF
7774 #define POINTER_TYPE char
7781 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7782 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
7783 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y,:./+-,___p_,'`
7784 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
7785 echo $ECHO_N "(cached) $ECHO_C" >&6
7787 cat >conftest.
make <<\_ACEOF
7789 @
echo 'ac_maketemp="$(MAKE)"'
7791 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7792 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
7793 if test -n "$ac_maketemp"; then
7794 eval ac_cv_prog_make_
${ac_make}_set
=yes
7796 eval ac_cv_prog_make_
${ac_make}_set
=no
7800 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
7801 echo "$as_me:$LINENO: result: yes" >&5
7802 echo "${ECHO_T}yes" >&6
7805 echo "$as_me:$LINENO: result: no" >&5
7806 echo "${ECHO_T}no" >&6
7807 SET_MAKE
="MAKE=${MAKE-make}"
7811 echo "$as_me:$LINENO: checking for long file names" >&5
7812 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
7813 if test "${ac_cv_sys_long_file_names+set}" = set; then
7814 echo $ECHO_N "(cached) $ECHO_C" >&6
7816 ac_cv_sys_long_file_names
=yes
7817 # Test for long file names in all the places we know might matter:
7818 # . the current directory, where building will happen
7819 # $prefix/lib where we will be installing things
7820 # $exec_prefix/lib likewise
7821 # eval it to expand exec_prefix.
7822 # $TMPDIR if set, where it might want to write temporary files
7823 # if $TMPDIR is not set:
7824 # /tmp where it might want to write temporary files
7827 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
7830 ac_tmpdirs
='/tmp /var/tmp /usr/tmp'
7832 for ac_dir
in .
$ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
7833 test -d $ac_dir ||
continue
7834 test -w $ac_dir ||
continue # It is less confusing to not echo anything here.
7835 ac_xdir
=$ac_dir/cf$$
7836 (umask 077 && mkdir
$ac_xdir 2>/dev
/null
) ||
continue
7837 ac_tf1
=$ac_xdir/conftest9012345
7838 ac_tf2
=$ac_xdir/conftest9012346
7839 (echo 1 >$ac_tf1) 2>/dev
/null
7840 (echo 2 >$ac_tf2) 2>/dev
/null
7841 ac_val
=`cat $ac_tf1 2>/dev/null`
7842 if test ! -f $ac_tf1 ||
test "$ac_val" != 1; then
7843 ac_cv_sys_long_file_names
=no
7844 rm -rf $ac_xdir 2>/dev
/null
7847 rm -rf $ac_xdir 2>/dev
/null
7850 echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
7851 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
7852 if test $ac_cv_sys_long_file_names = yes; then
7854 cat >>confdefs.h
<<\_ACEOF
7855 #define HAVE_LONG_FILE_NAMES 1
7861 #### Choose a window system.
7863 echo "$as_me:$LINENO: checking for X" >&5
7864 echo $ECHO_N "checking for X... $ECHO_C" >&6
7866 ac_path_x_has_been_run
=yes
7868 # Check whether --with-x or --without-x was given.
7869 if test "${with_x+set}" = set; then
7873 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7874 if test "x$with_x" = xno
; then
7875 # The user explicitly disabled X.
7878 if test "x$x_includes" != xNONE
&& test "x$x_libraries" != xNONE
; then
7879 # Both variables are already set.
7882 if test "${ac_cv_have_x+set}" = set; then
7883 echo $ECHO_N "(cached) $ECHO_C" >&6
7885 # One or both of the vars are not set, and there is no cached value.
7886 ac_x_includes
=no ac_x_libraries
=no
7888 if mkdir conftest.dir
; then
7890 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
7891 cat >Imakefile
<<'_ACEOF'
7893 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
7895 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
7896 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7897 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
7898 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7899 for ac_extension
in a so sl
; do
7900 if test ! -f $ac_im_usrlibdir/libX11.
$ac_extension &&
7901 test -f $ac_im_libdir/libX11.
$ac_extension; then
7902 ac_im_usrlibdir
=$ac_im_libdir; break
7905 # Screen out bogus values from the imake configuration. They are
7906 # bogus both because they are the default anyway, and because
7907 # using them would break gcc on systems where it needs fixed includes.
7908 case $ac_im_incroot in
7910 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
7912 case $ac_im_usrlibdir in
7914 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
7921 # Standard set of common directories for X headers.
7922 # Check X11 before X11Rn because it is often a symlink to the current release.
7934 /usr/local/X11/include
7935 /usr/local/X11R6/include
7936 /usr/local/X11R5/include
7937 /usr/local/X11R4/include
7939 /usr/local/include/X11
7940 /usr/local/include/X11R6
7941 /usr/local/include/X11R5
7942 /usr/local/include/X11R4
7946 /usr/XFree86/include/X11
7950 /usr/unsupported/include
7952 /usr/local/x11r5/include
7953 /usr/lpp/Xamples/include
7955 /usr/openwin/include
7956 /usr/openwin/share/include'
7958 if test "$ac_x_includes" = no
; then
7959 # Guess where to find include files, by looking for a specified header file.
7960 # First, try using that file with no special directory specified.
7961 cat >conftest.
$ac_ext <<_ACEOF
7964 cat confdefs.h
>>conftest.
$ac_ext
7965 cat >>conftest.
$ac_ext <<_ACEOF
7966 /* end confdefs.h. */
7967 #include <X11/Intrinsic.h>
7969 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7970 (eval $ac_cpp conftest.
$ac_ext) 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); } >/dev
/null
; then
7977 if test -s conftest.err
; then
7978 ac_cpp_err
=$ac_c_preproc_warn_flag
7979 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
7986 if test -z "$ac_cpp_err"; then
7987 # We can compile using X headers with no special include directory.
7990 echo "$as_me: failed program was:" >&5
7991 sed 's/^/| /' conftest.
$ac_ext >&5
7993 for ac_dir
in $ac_x_header_dirs; do
7994 if test -r "$ac_dir/X11/Intrinsic.h"; then
7995 ac_x_includes
=$ac_dir
8000 rm -f conftest.err conftest.
$ac_ext
8001 fi # $ac_x_includes = no
8003 if test "$ac_x_libraries" = no
; then
8004 # Check for the libraries.
8005 # See if we find them without any special options.
8006 # Don't add to $LIBS permanently.
8009 cat >conftest.
$ac_ext <<_ACEOF
8012 cat confdefs.h
>>conftest.
$ac_ext
8013 cat >>conftest.
$ac_ext <<_ACEOF
8014 /* end confdefs.h. */
8015 #include <X11/Intrinsic.h>
8024 rm -f conftest.
$ac_objext conftest
$ac_exeext
8025 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8026 (eval $ac_link) 2>conftest.er1
8028 grep -v '^ *+' conftest.er1
>conftest.err
8030 cat conftest.err
>&5
8031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8032 (exit $ac_status); } &&
8033 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8038 (exit $ac_status); }; } &&
8039 { ac_try
='test -s conftest$ac_exeext'
8040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8044 (exit $ac_status); }; }; then
8046 # We can link X programs with no special library path.
8049 echo "$as_me: failed program was:" >&5
8050 sed 's/^/| /' conftest.
$ac_ext >&5
8053 for ac_dir
in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8055 # Don't even attempt the hair of trying to link an X program!
8056 for ac_extension
in a so sl
; do
8057 if test -r $ac_dir/libXt.
$ac_extension; then
8058 ac_x_libraries
=$ac_dir
8064 rm -f conftest.err conftest.
$ac_objext \
8065 conftest
$ac_exeext conftest.
$ac_ext
8066 fi # $ac_x_libraries = no
8068 if test "$ac_x_includes" = no ||
test "$ac_x_libraries" = no
; then
8069 # Didn't find X anywhere. Cache the known absence of X.
8070 ac_cv_have_x
="have_x=no"
8072 # Record where we found X for the cache.
8073 ac_cv_have_x
="have_x=yes \
8074 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
8079 eval "$ac_cv_have_x"
8082 if test "$have_x" != yes; then
8083 echo "$as_me:$LINENO: result: $have_x" >&5
8084 echo "${ECHO_T}$have_x" >&6
8087 # If each of the values was on the command line, it overrides each guess.
8088 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
8089 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
8090 # Update the cache value to reflect the command line values.
8091 ac_cv_have_x
="have_x=yes \
8092 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
8093 # It might be that x_includes is empty (headers are found in the
8094 # standard search path. Then output the corresponding message
8095 ac_out_x_includes
=$x_includes
8096 test "x$x_includes" = x
&& ac_out_x_includes
="in standard search path"
8097 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5
8098 echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6
8101 if test "$no_x" = yes; then
8107 if test "${x_libraries}" != NONE
&& test -n "${x_libraries}"; then
8108 LD_SWITCH_X_SITE
=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
8109 LD_SWITCH_X_SITE_AUX
=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
8110 x_default_search_path
=""
8111 for x_library
in `echo ${x_libraries} | sed -e "s/:/ /g"`; do
8113 ${x_library}/X11/%L/%T/%N%C%S:\
8114 ${x_library}/X11/%l/%T/%N%C%S:\
8115 ${x_library}/X11/%T/%N%C%S:\
8116 ${x_library}/X11/%L/%T/%N%S:\
8117 ${x_library}/X11/%l/%T/%N%S:\
8118 ${x_library}/X11/%T/%N%S"
8119 if test x
"${x_default_search_path}" = x
; then
8120 x_default_search_path
=${x_search_path}
8122 x_default_search_path
="${x_search_path}:${x_default_search_path}"
8126 if test "${x_includes}" != NONE
&& test -n "${x_includes}"; then
8127 C_SWITCH_X_SITE
=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
8130 if test x
"${x_includes}" = x
; then
8131 bitmapdir
=/usr
/include
/X11
/bitmaps
8133 # accumulate include directories that have X11 bitmap subdirectories
8135 for bmd
in `echo ${x_includes} | sed -e "s/:/ /g"`; do
8136 if test -d "${bmd}/X11/bitmaps"; then
8137 bmd_acc
="${bmd_acc}:${bmd}/X11/bitmaps"
8139 if test -d "${bmd}/bitmaps"; then
8140 bmd_acc
="${bmd_acc}:${bmd}/bitmaps"
8143 if test ${bmd_acc} != "dummyval"; then
8144 bitmapdir
=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
8148 case "${window_system}" in
8152 case "${with_x_toolkit}" in
8153 athena | lucid
) USE_X_TOOLKIT
=LUCID
;;
8154 motif
) USE_X_TOOLKIT
=MOTIF
;;
8156 USE_X_TOOLKIT
=none
;;
8157 no
) USE_X_TOOLKIT
=none
;;
8158 * ) USE_X_TOOLKIT
=maybe
;;
8168 ### If we're using X11, we should use the X menu package.
8171 yes ) HAVE_MENUS
=yes ;;
8174 if test "${opsys}" = "hpux9"; then
8175 case "${x_libraries}" in
8177 opsysfile
="s/hpux9-x11r4.h"
8182 if test "${opsys}" = "hpux9shr"; then
8183 case "${x_libraries}" in
8185 opsysfile
="s/hpux9shxr4.h"
8190 ### Compute the unexec source name from the object name.
8191 UNEXEC_SRC
="`echo ${unexec} | sed 's/\.o/.c/'`"
8193 # Do the opsystem or machine files prohibit the use of the GNU malloc?
8194 # Assume not, until told otherwise.
8197 echo "$as_me:$LINENO: checking for malloc_get_state" >&5
8198 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6
8199 if test "${ac_cv_func_malloc_get_state+set}" = set; then
8200 echo $ECHO_N "(cached) $ECHO_C" >&6
8202 cat >conftest.
$ac_ext <<_ACEOF
8205 cat confdefs.h
>>conftest.
$ac_ext
8206 cat >>conftest.
$ac_ext <<_ACEOF
8207 /* end confdefs.h. */
8208 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
8209 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8210 #define malloc_get_state innocuous_malloc_get_state
8212 /* System header to define __stub macros and hopefully few prototypes,
8213 which can conflict with char malloc_get_state (); below.
8214 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8215 <limits.h> exists even on freestanding compilers. */
8218 # include <limits.h>
8220 # include <assert.h>
8223 #undef malloc_get_state
8225 /* Override any gcc2 internal prototype to avoid an error. */
8230 /* We use char because int might match the return type of a gcc2
8231 builtin and then its argument prototype would still apply. */
8232 char malloc_get_state ();
8233 /* The GNU C library defines this for functions which it implements
8234 to always fail with ENOSYS. Some functions are actually named
8235 something starting with __ and the normal name is an alias. */
8236 #if defined (__stub_malloc_get_state) || defined (__stub___malloc_get_state)
8239 char (*f) () = malloc_get_state;
8248 return f != malloc_get_state;
8253 rm -f conftest.
$ac_objext conftest
$ac_exeext
8254 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8255 (eval $ac_link) 2>conftest.er1
8257 grep -v '^ *+' conftest.er1
>conftest.err
8259 cat conftest.err
>&5
8260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8261 (exit $ac_status); } &&
8262 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8267 (exit $ac_status); }; } &&
8268 { ac_try
='test -s conftest$ac_exeext'
8269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8273 (exit $ac_status); }; }; then
8274 ac_cv_func_malloc_get_state
=yes
8276 echo "$as_me: failed program was:" >&5
8277 sed 's/^/| /' conftest.
$ac_ext >&5
8279 ac_cv_func_malloc_get_state
=no
8281 rm -f conftest.err conftest.
$ac_objext \
8282 conftest
$ac_exeext conftest.
$ac_ext
8284 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
8285 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6
8286 if test $ac_cv_func_malloc_get_state = yes; then
8292 echo "$as_me:$LINENO: checking for malloc_set_state" >&5
8293 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6
8294 if test "${ac_cv_func_malloc_set_state+set}" = set; then
8295 echo $ECHO_N "(cached) $ECHO_C" >&6
8297 cat >conftest.
$ac_ext <<_ACEOF
8300 cat confdefs.h
>>conftest.
$ac_ext
8301 cat >>conftest.
$ac_ext <<_ACEOF
8302 /* end confdefs.h. */
8303 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
8304 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8305 #define malloc_set_state innocuous_malloc_set_state
8307 /* System header to define __stub macros and hopefully few prototypes,
8308 which can conflict with char malloc_set_state (); below.
8309 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8310 <limits.h> exists even on freestanding compilers. */
8313 # include <limits.h>
8315 # include <assert.h>
8318 #undef malloc_set_state
8320 /* Override any gcc2 internal prototype to avoid an error. */
8325 /* We use char because int might match the return type of a gcc2
8326 builtin and then its argument prototype would still apply. */
8327 char malloc_set_state ();
8328 /* The GNU C library defines this for functions which it implements
8329 to always fail with ENOSYS. Some functions are actually named
8330 something starting with __ and the normal name is an alias. */
8331 #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state)
8334 char (*f) () = malloc_set_state;
8343 return f != malloc_set_state;
8348 rm -f conftest.
$ac_objext conftest
$ac_exeext
8349 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8350 (eval $ac_link) 2>conftest.er1
8352 grep -v '^ *+' conftest.er1
>conftest.err
8354 cat conftest.err
>&5
8355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8356 (exit $ac_status); } &&
8357 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8362 (exit $ac_status); }; } &&
8363 { ac_try
='test -s conftest$ac_exeext'
8364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8368 (exit $ac_status); }; }; then
8369 ac_cv_func_malloc_set_state
=yes
8371 echo "$as_me: failed program was:" >&5
8372 sed 's/^/| /' conftest.
$ac_ext >&5
8374 ac_cv_func_malloc_set_state
=no
8376 rm -f conftest.err conftest.
$ac_objext \
8377 conftest
$ac_exeext conftest.
$ac_ext
8379 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
8380 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6
8381 if test $ac_cv_func_malloc_set_state = yes; then
8387 echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
8388 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6
8389 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
8390 echo $ECHO_N "(cached) $ECHO_C" >&6
8392 cat >conftest.
$ac_ext <<_ACEOF
8395 cat confdefs.h
>>conftest.
$ac_ext
8396 cat >>conftest.
$ac_ext <<_ACEOF
8397 /* end confdefs.h. */
8398 extern void (* __after_morecore_hook)();
8402 __after_morecore_hook = 0
8407 rm -f conftest.
$ac_objext conftest
$ac_exeext
8408 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8409 (eval $ac_link) 2>conftest.er1
8411 grep -v '^ *+' conftest.er1
>conftest.err
8413 cat conftest.err
>&5
8414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8415 (exit $ac_status); } &&
8416 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8421 (exit $ac_status); }; } &&
8422 { ac_try
='test -s conftest$ac_exeext'
8423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8427 (exit $ac_status); }; }; then
8428 emacs_cv_var___after_morecore_hook
=yes
8430 echo "$as_me: failed program was:" >&5
8431 sed 's/^/| /' conftest.
$ac_ext >&5
8433 emacs_cv_var___after_morecore_hook
=no
8435 rm -f conftest.err conftest.
$ac_objext \
8436 conftest
$ac_exeext conftest.
$ac_ext
8438 echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
8439 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6
8440 if test $emacs_cv_var___after_morecore_hook = no
; then
8443 if test "${system_malloc}" = "yes"; then
8446 (The GNU allocators don't work with this system configuration.)"
8448 if test "$doug_lea_malloc" = "yes" ; then
8449 if test "$GNU_MALLOC" = yes ; then
8451 (Using Doug Lea's new malloc from the GNU C Library.)"
8454 cat >>confdefs.h
<<\_ACEOF
8455 #define DOUG_LEA_MALLOC 1
8460 if test x
"${REL_ALLOC}" = x
; then
8461 REL_ALLOC
=${GNU_MALLOC}
8467 for ac_header
in stdlib.h unistd.h
8469 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8470 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8471 echo "$as_me:$LINENO: checking for $ac_header" >&5
8472 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8473 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8474 echo $ECHO_N "(cached) $ECHO_C" >&6
8476 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8477 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8479 # Is the header compilable?
8480 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8481 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8482 cat >conftest.
$ac_ext <<_ACEOF
8485 cat confdefs.h
>>conftest.
$ac_ext
8486 cat >>conftest.
$ac_ext <<_ACEOF
8487 /* end confdefs.h. */
8488 $ac_includes_default
8489 #include <$ac_header>
8491 rm -f conftest.
$ac_objext
8492 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8493 (eval $ac_compile) 2>conftest.er1
8495 grep -v '^ *+' conftest.er1
>conftest.err
8497 cat conftest.err
>&5
8498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8499 (exit $ac_status); } &&
8500 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8505 (exit $ac_status); }; } &&
8506 { ac_try
='test -s conftest.$ac_objext'
8507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8511 (exit $ac_status); }; }; then
8512 ac_header_compiler
=yes
8514 echo "$as_me: failed program was:" >&5
8515 sed 's/^/| /' conftest.
$ac_ext >&5
8517 ac_header_compiler
=no
8519 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8520 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8521 echo "${ECHO_T}$ac_header_compiler" >&6
8523 # Is the header present?
8524 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8525 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8526 cat >conftest.
$ac_ext <<_ACEOF
8529 cat confdefs.h
>>conftest.
$ac_ext
8530 cat >>conftest.
$ac_ext <<_ACEOF
8531 /* end confdefs.h. */
8532 #include <$ac_header>
8534 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8535 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8537 grep -v '^ *+' conftest.er1
>conftest.err
8539 cat conftest.err
>&5
8540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8541 (exit $ac_status); } >/dev
/null
; then
8542 if test -s conftest.err
; then
8543 ac_cpp_err
=$ac_c_preproc_warn_flag
8544 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
8551 if test -z "$ac_cpp_err"; then
8552 ac_header_preproc
=yes
8554 echo "$as_me: failed program was:" >&5
8555 sed 's/^/| /' conftest.
$ac_ext >&5
8557 ac_header_preproc
=no
8559 rm -f conftest.err conftest.
$ac_ext
8560 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8561 echo "${ECHO_T}$ac_header_preproc" >&6
8563 # So? What about this header?
8564 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8566 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8567 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8568 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8569 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8570 ac_header_preproc
=yes
8573 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8574 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8575 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8576 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8577 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8578 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8579 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8580 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8581 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8582 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8583 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8584 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8587 ## ------------------------------------------ ##
8588 ## Report this to the AC_PACKAGE_NAME lists. ##
8589 ## ------------------------------------------ ##
8592 sed "s/^/$as_me: WARNING: /" >&2
8595 echo "$as_me:$LINENO: checking for $ac_header" >&5
8596 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8597 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8598 echo $ECHO_N "(cached) $ECHO_C" >&6
8600 eval "$as_ac_Header=\$ac_header_preproc"
8602 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8603 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8606 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8607 cat >>confdefs.h
<<_ACEOF
8608 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8616 for ac_func
in getpagesize
8618 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8619 echo "$as_me:$LINENO: checking for $ac_func" >&5
8620 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8621 if eval "test \"\${$as_ac_var+set}\" = set"; then
8622 echo $ECHO_N "(cached) $ECHO_C" >&6
8624 cat >conftest.
$ac_ext <<_ACEOF
8627 cat confdefs.h
>>conftest.
$ac_ext
8628 cat >>conftest.
$ac_ext <<_ACEOF
8629 /* end confdefs.h. */
8630 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8631 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8632 #define $ac_func innocuous_$ac_func
8634 /* System header to define __stub macros and hopefully few prototypes,
8635 which can conflict with char $ac_func (); below.
8636 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8637 <limits.h> exists even on freestanding compilers. */
8640 # include <limits.h>
8642 # include <assert.h>
8647 /* Override any gcc2 internal prototype to avoid an error. */
8652 /* We use char because int might match the return type of a gcc2
8653 builtin and then its argument prototype would still apply. */
8655 /* The GNU C library defines this for functions which it implements
8656 to always fail with ENOSYS. Some functions are actually named
8657 something starting with __ and the normal name is an alias. */
8658 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8661 char (*f) () = $ac_func;
8670 return f != $ac_func;
8675 rm -f conftest.
$ac_objext conftest
$ac_exeext
8676 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8677 (eval $ac_link) 2>conftest.er1
8679 grep -v '^ *+' conftest.er1
>conftest.err
8681 cat conftest.err
>&5
8682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8683 (exit $ac_status); } &&
8684 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8689 (exit $ac_status); }; } &&
8690 { ac_try
='test -s conftest$ac_exeext'
8691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8695 (exit $ac_status); }; }; then
8696 eval "$as_ac_var=yes"
8698 echo "$as_me: failed program was:" >&5
8699 sed 's/^/| /' conftest.
$ac_ext >&5
8701 eval "$as_ac_var=no"
8703 rm -f conftest.err conftest.
$ac_objext \
8704 conftest
$ac_exeext conftest.
$ac_ext
8706 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8707 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8708 if test `eval echo '${'$as_ac_var'}'` = yes; then
8709 cat >>confdefs.h
<<_ACEOF
8710 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8716 echo "$as_me:$LINENO: checking for working mmap" >&5
8717 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
8718 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
8719 echo $ECHO_N "(cached) $ECHO_C" >&6
8721 if test "$cross_compiling" = yes; then
8722 ac_cv_func_mmap_fixed_mapped
=no
8724 cat >conftest.
$ac_ext <<_ACEOF
8727 cat confdefs.h
>>conftest.
$ac_ext
8728 cat >>conftest.
$ac_ext <<_ACEOF
8729 /* end confdefs.h. */
8730 $ac_includes_default
8731 /* malloc might have been renamed as rpl_malloc. */
8734 /* Thanks to Mike Haertel and Jim Avera for this test.
8735 Here is a matrix of mmap possibilities:
8736 mmap private not fixed
8737 mmap private fixed at somewhere currently unmapped
8738 mmap private fixed at somewhere already mapped
8739 mmap shared not fixed
8740 mmap shared fixed at somewhere currently unmapped
8741 mmap shared fixed at somewhere already mapped
8742 For private mappings, we should verify that changes cannot be read()
8743 back from the file, nor mmap's back from the file at a different
8744 address. (There have been systems where private was not correctly
8745 implemented like the infamous i386 svr4.0, and systems where the
8746 VM page cache was not coherent with the file system buffer cache
8747 like early versions of FreeBSD and possibly contemporary NetBSD.)
8748 For shared mappings, we should conversely verify that changes get
8749 propagated back to all the places they're supposed to be.
8751 Grep wants private fixed already mapped.
8752 The main things grep needs to know about mmap are:
8753 * does it exist and is it safe to write into the mmap'd area
8754 * how to use it (BSD variants) */
8757 #include <sys/mman.h>
8759 #if !STDC_HEADERS && !HAVE_STDLIB_H
8763 /* This mess was copied from the GNU getpagesize.h. */
8764 #if !HAVE_GETPAGESIZE
8765 /* Assume that all systems that can run configure have sys/param.h. */
8766 # if !HAVE_SYS_PARAM_H
8767 # define HAVE_SYS_PARAM_H 1
8770 # ifdef _SC_PAGESIZE
8771 # define getpagesize() sysconf(_SC_PAGESIZE)
8772 # else /* no _SC_PAGESIZE */
8773 # if HAVE_SYS_PARAM_H
8774 # include <sys/param.h>
8775 # ifdef EXEC_PAGESIZE
8776 # define getpagesize() EXEC_PAGESIZE
8777 # else /* no EXEC_PAGESIZE */
8779 # define getpagesize() NBPG * CLSIZE
8782 # endif /* no CLSIZE */
8783 # else /* no NBPG */
8785 # define getpagesize() NBPC
8786 # else /* no NBPC */
8788 # define getpagesize() PAGESIZE
8789 # endif /* PAGESIZE */
8790 # endif /* no NBPC */
8791 # endif /* no NBPG */
8792 # endif /* no EXEC_PAGESIZE */
8793 # else /* no HAVE_SYS_PARAM_H */
8794 # define getpagesize() 8192 /* punt totally */
8795 # endif /* no HAVE_SYS_PARAM_H */
8796 # endif /* no _SC_PAGESIZE */
8798 #endif /* no HAVE_GETPAGESIZE */
8803 char *data, *data2, *data3;
8807 pagesize = getpagesize ();
8809 /* First, make a file with some known garbage in it. */
8810 data = (char *) malloc (pagesize);
8813 for (i = 0; i < pagesize; ++i)
8814 *(data + i) = rand ();
8816 fd = creat ("conftest.mmap", 0600);
8819 if (write (fd, data, pagesize) != pagesize)
8823 /* Next, try to mmap the file at a fixed address which already has
8824 something else allocated at it. If we can, also make sure that
8825 we see the same garbage. */
8826 fd = open ("conftest.mmap", O_RDWR);
8829 data2 = (char *) malloc (2 * pagesize);
8832 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
8833 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8834 MAP_PRIVATE | MAP_FIXED, fd, 0L))
8836 for (i = 0; i < pagesize; ++i)
8837 if (*(data + i) != *(data2 + i))
8840 /* Finally, make sure that changes to the mapped area do not
8841 percolate back to the file as seen by read(). (This is a bug on
8842 some variants of i386 svr4.0.) */
8843 for (i = 0; i < pagesize; ++i)
8844 *(data2 + i) = *(data2 + i) + 1;
8845 data3 = (char *) malloc (pagesize);
8848 if (read (fd, data3, pagesize) != pagesize)
8850 for (i = 0; i < pagesize; ++i)
8851 if (*(data + i) != *(data3 + i))
8857 rm -f conftest
$ac_exeext
8858 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8859 (eval $ac_link) 2>&5
8861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8862 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
8863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8867 (exit $ac_status); }; }; then
8868 ac_cv_func_mmap_fixed_mapped
=yes
8870 echo "$as_me: program exited with status $ac_status" >&5
8871 echo "$as_me: failed program was:" >&5
8872 sed 's/^/| /' conftest.
$ac_ext >&5
8875 ac_cv_func_mmap_fixed_mapped
=no
8877 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
8880 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
8881 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
8882 if test $ac_cv_func_mmap_fixed_mapped = yes; then
8884 cat >>confdefs.h
<<\_ACEOF
8891 if test $use_mmap_for_buffers = yes; then
8895 LIBS
="$libsrc_libs $LIBS"
8898 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
8899 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
8900 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
8901 echo $ECHO_N "(cached) $ECHO_C" >&6
8903 ac_check_lib_save_LIBS
=$LIBS
8905 cat >conftest.
$ac_ext <<_ACEOF
8908 cat confdefs.h
>>conftest.
$ac_ext
8909 cat >>conftest.
$ac_ext <<_ACEOF
8910 /* end confdefs.h. */
8912 /* Override any gcc2 internal prototype to avoid an error. */
8916 /* We use char because int might match the return type of a gcc2
8917 builtin and then its argument prototype would still apply. */
8927 rm -f conftest.
$ac_objext conftest
$ac_exeext
8928 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8929 (eval $ac_link) 2>conftest.er1
8931 grep -v '^ *+' conftest.er1
>conftest.err
8933 cat conftest.err
>&5
8934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8935 (exit $ac_status); } &&
8936 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8941 (exit $ac_status); }; } &&
8942 { ac_try
='test -s conftest$ac_exeext'
8943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8947 (exit $ac_status); }; }; then
8948 ac_cv_lib_dnet_dnet_ntoa
=yes
8950 echo "$as_me: failed program was:" >&5
8951 sed 's/^/| /' conftest.
$ac_ext >&5
8953 ac_cv_lib_dnet_dnet_ntoa
=no
8955 rm -f conftest.err conftest.
$ac_objext \
8956 conftest
$ac_exeext conftest.
$ac_ext
8957 LIBS
=$ac_check_lib_save_LIBS
8959 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
8960 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
8961 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
8962 cat >>confdefs.h
<<_ACEOF
8963 #define HAVE_LIBDNET 1
8971 echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
8972 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6
8973 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
8974 echo $ECHO_N "(cached) $ECHO_C" >&6
8976 ac_check_lib_save_LIBS
=$LIBS
8978 cat >conftest.
$ac_ext <<_ACEOF
8981 cat confdefs.h
>>conftest.
$ac_ext
8982 cat >>conftest.
$ac_ext <<_ACEOF
8983 /* end confdefs.h. */
8994 rm -f conftest.
$ac_objext conftest
$ac_exeext
8995 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8996 (eval $ac_link) 2>conftest.er1
8998 grep -v '^ *+' conftest.er1
>conftest.err
9000 cat conftest.err
>&5
9001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9002 (exit $ac_status); } &&
9003 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9008 (exit $ac_status); }; } &&
9009 { ac_try
='test -s conftest$ac_exeext'
9010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9014 (exit $ac_status); }; }; then
9015 ac_cv_lib_Xbsd_main
=yes
9017 echo "$as_me: failed program was:" >&5
9018 sed 's/^/| /' conftest.
$ac_ext >&5
9020 ac_cv_lib_Xbsd_main
=no
9022 rm -f conftest.err conftest.
$ac_objext \
9023 conftest
$ac_exeext conftest.
$ac_ext
9024 LIBS
=$ac_check_lib_save_LIBS
9026 echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
9027 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6
9028 if test $ac_cv_lib_Xbsd_main = yes; then
9029 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -lXbsd"
9034 echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
9035 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6
9036 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
9037 echo $ECHO_N "(cached) $ECHO_C" >&6
9039 ac_check_lib_save_LIBS
=$LIBS
9040 LIBS
="-lpthreads $LIBS"
9041 cat >conftest.
$ac_ext <<_ACEOF
9044 cat confdefs.h
>>conftest.
$ac_ext
9045 cat >>conftest.
$ac_ext <<_ACEOF
9046 /* end confdefs.h. */
9048 /* Override any gcc2 internal prototype to avoid an error. */
9052 /* We use char because int might match the return type of a gcc2
9053 builtin and then its argument prototype would still apply. */
9063 rm -f conftest.
$ac_objext conftest
$ac_exeext
9064 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9065 (eval $ac_link) 2>conftest.er1
9067 grep -v '^ *+' conftest.er1
>conftest.err
9069 cat conftest.err
>&5
9070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9071 (exit $ac_status); } &&
9072 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9077 (exit $ac_status); }; } &&
9078 { ac_try
='test -s conftest$ac_exeext'
9079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9083 (exit $ac_status); }; }; then
9084 ac_cv_lib_pthreads_cma_open
=yes
9086 echo "$as_me: failed program was:" >&5
9087 sed 's/^/| /' conftest.
$ac_ext >&5
9089 ac_cv_lib_pthreads_cma_open
=no
9091 rm -f conftest.err conftest.
$ac_objext \
9092 conftest
$ac_exeext conftest.
$ac_ext
9093 LIBS
=$ac_check_lib_save_LIBS
9095 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
9096 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6
9097 if test $ac_cv_lib_pthreads_cma_open = yes; then
9098 cat >>confdefs.h
<<_ACEOF
9099 #define HAVE_LIBPTHREADS 1
9102 LIBS
="-lpthreads $LIBS"
9107 echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
9108 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6
9109 if test -d /usr
/X386
/include
; then
9111 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
9115 echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
9116 echo "${ECHO_T}$HAVE_XFREE386" >&6
9121 echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
9122 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6
9123 if test "${gdb_cv_bigtoc+set}" = set; then
9124 echo $ECHO_N "(cached) $ECHO_C" >&6
9128 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
9129 *) gdb_cv_bigtoc
=-bbigtoc ;;
9132 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
9133 cat >conftest.
$ac_ext <<_ACEOF
9136 cat confdefs.h
>>conftest.
$ac_ext
9137 cat >>conftest.
$ac_ext <<_ACEOF
9138 /* end confdefs.h. */
9148 rm -f conftest.
$ac_objext conftest
$ac_exeext
9149 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9150 (eval $ac_link) 2>conftest.er1
9152 grep -v '^ *+' conftest.er1
>conftest.err
9154 cat conftest.err
>&5
9155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9156 (exit $ac_status); } &&
9157 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9162 (exit $ac_status); }; } &&
9163 { ac_try
='test -s conftest$ac_exeext'
9164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9168 (exit $ac_status); }; }; then
9171 echo "$as_me: failed program was:" >&5
9172 sed 's/^/| /' conftest.
$ac_ext >&5
9176 rm -f conftest.err conftest.
$ac_objext \
9177 conftest
$ac_exeext conftest.
$ac_ext
9180 echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
9181 echo "${ECHO_T}$gdb_cv_bigtoc" >&6
9185 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
9186 # used for the tests that follow. We set them back to REAL_CFLAGS and
9187 # REAL_CPPFLAGS later on.
9189 REAL_CPPFLAGS
="$CPPFLAGS"
9191 if test "${HAVE_X11}" = "yes"; then
9192 DEFS
="$C_SWITCH_X_SITE $DEFS"
9193 LDFLAGS
="$LDFLAGS $LD_SWITCH_X_SITE"
9195 CFLAGS
="$C_SWITCH_X_SITE $CFLAGS"
9196 CPPFLAGS
="$C_SWITCH_X_SITE $CPPFLAGS"
9198 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
9199 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
9200 # but it's more convenient here to set LD_RUN_PATH
9201 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
9202 if test "${x_libraries}" != NONE
&& test -n "${x_libraries}"; then
9203 LD_RUN_PATH
=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
9207 if test "${opsys}" = "gnu-linux"; then
9208 echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
9209 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6
9210 cat >conftest.
$ac_ext <<_ACEOF
9213 cat confdefs.h
>>conftest.
$ac_ext
9214 cat >>conftest.
$ac_ext <<_ACEOF
9215 /* end confdefs.h. */
9220 XOpenDisplay ("foo");
9225 rm -f conftest.
$ac_objext conftest
$ac_exeext
9226 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9227 (eval $ac_link) 2>conftest.er1
9229 grep -v '^ *+' conftest.er1
>conftest.err
9231 cat conftest.err
>&5
9232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9233 (exit $ac_status); } &&
9234 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9239 (exit $ac_status); }; } &&
9240 { ac_try
='test -s conftest$ac_exeext'
9241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9245 (exit $ac_status); }; }; then
9246 xlinux_first_failure
=no
9248 echo "$as_me: failed program was:" >&5
9249 sed 's/^/| /' conftest.
$ac_ext >&5
9251 xlinux_first_failure
=yes
9253 rm -f conftest.err conftest.
$ac_objext \
9254 conftest
$ac_exeext conftest.
$ac_ext
9255 if test "${xlinux_first_failure}" = "yes"; then
9256 OLD_LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE"
9257 OLD_C_SWITCH_X_SITE
="$C_SWITCH_X_SITE"
9258 OLD_CPPFLAGS
="$CPPFLAGS"
9260 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -b i486-linuxaout"
9261 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE -b i486-linuxaout"
9262 CPPFLAGS
="$CPPFLAGS -b i486-linuxaout"
9263 LIBS
="$LIBS -b i486-linuxaout"
9264 cat >conftest.
$ac_ext <<_ACEOF
9267 cat confdefs.h
>>conftest.
$ac_ext
9268 cat >>conftest.
$ac_ext <<_ACEOF
9269 /* end confdefs.h. */
9274 XOpenDisplay ("foo");
9279 rm -f conftest.
$ac_objext conftest
$ac_exeext
9280 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9281 (eval $ac_link) 2>conftest.er1
9283 grep -v '^ *+' conftest.er1
>conftest.err
9285 cat conftest.err
>&5
9286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9287 (exit $ac_status); } &&
9288 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9293 (exit $ac_status); }; } &&
9294 { ac_try
='test -s conftest$ac_exeext'
9295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9299 (exit $ac_status); }; }; then
9300 xlinux_second_failure
=no
9302 echo "$as_me: failed program was:" >&5
9303 sed 's/^/| /' conftest.
$ac_ext >&5
9305 xlinux_second_failure
=yes
9307 rm -f conftest.err conftest.
$ac_objext \
9308 conftest
$ac_exeext conftest.
$ac_ext
9309 if test "${xlinux_second_failure}" = "yes"; then
9310 # If we get the same failure with -b, there is no use adding -b.
9311 # So take it out. This plays safe.
9312 LD_SWITCH_X_SITE
="$OLD_LD_SWITCH_X_SITE"
9313 C_SWITCH_X_SITE
="$OLD_C_SWITCH_X_SITE"
9314 CPPFLAGS
="$OLD_CPPFLAGS"
9316 echo "$as_me:$LINENO: result: no" >&5
9317 echo "${ECHO_T}no" >&6
9319 echo "$as_me:$LINENO: result: yes" >&5
9320 echo "${ECHO_T}yes" >&6
9323 echo "$as_me:$LINENO: result: no" >&5
9324 echo "${ECHO_T}no" >&6
9328 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
9329 # header files included from there.
9330 echo "$as_me:$LINENO: checking for Xkb" >&5
9331 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6
9332 cat >conftest.
$ac_ext <<_ACEOF
9335 cat confdefs.h
>>conftest.
$ac_ext
9336 cat >>conftest.
$ac_ext <<_ACEOF
9337 /* end confdefs.h. */
9338 #include <X11/Xlib.h>
9339 #include <X11/XKBlib.h>
9343 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
9348 rm -f conftest.
$ac_objext conftest
$ac_exeext
9349 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9350 (eval $ac_link) 2>conftest.er1
9352 grep -v '^ *+' conftest.er1
>conftest.err
9354 cat conftest.err
>&5
9355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9356 (exit $ac_status); } &&
9357 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9362 (exit $ac_status); }; } &&
9363 { ac_try
='test -s conftest$ac_exeext'
9364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9368 (exit $ac_status); }; }; then
9371 echo "$as_me: failed program was:" >&5
9372 sed 's/^/| /' conftest.
$ac_ext >&5
9376 rm -f conftest.err conftest.
$ac_objext \
9377 conftest
$ac_exeext conftest.
$ac_ext
9378 echo "$as_me:$LINENO: result: $emacs_xkb" >&5
9379 echo "${ECHO_T}$emacs_xkb" >&6
9380 if test $emacs_xkb = yes; then
9382 cat >>confdefs.h
<<\_ACEOF
9383 #define HAVE_XKBGETKEYBOARD 1
9392 for ac_func
in XrmSetDatabase XScreenResourceString \
9393 XScreenNumberOfScreen XSetWMProtocols
9395 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9396 echo "$as_me:$LINENO: checking for $ac_func" >&5
9397 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9398 if eval "test \"\${$as_ac_var+set}\" = set"; then
9399 echo $ECHO_N "(cached) $ECHO_C" >&6
9401 cat >conftest.
$ac_ext <<_ACEOF
9404 cat confdefs.h
>>conftest.
$ac_ext
9405 cat >>conftest.
$ac_ext <<_ACEOF
9406 /* end confdefs.h. */
9407 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9408 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9409 #define $ac_func innocuous_$ac_func
9411 /* System header to define __stub macros and hopefully few prototypes,
9412 which can conflict with char $ac_func (); below.
9413 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9414 <limits.h> exists even on freestanding compilers. */
9417 # include <limits.h>
9419 # include <assert.h>
9424 /* Override any gcc2 internal prototype to avoid an error. */
9429 /* We use char because int might match the return type of a gcc2
9430 builtin and then its argument prototype would still apply. */
9432 /* The GNU C library defines this for functions which it implements
9433 to always fail with ENOSYS. Some functions are actually named
9434 something starting with __ and the normal name is an alias. */
9435 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9438 char (*f) () = $ac_func;
9447 return f != $ac_func;
9452 rm -f conftest.
$ac_objext conftest
$ac_exeext
9453 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9454 (eval $ac_link) 2>conftest.er1
9456 grep -v '^ *+' conftest.er1
>conftest.err
9458 cat conftest.err
>&5
9459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9460 (exit $ac_status); } &&
9461 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9466 (exit $ac_status); }; } &&
9467 { ac_try
='test -s conftest$ac_exeext'
9468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9472 (exit $ac_status); }; }; then
9473 eval "$as_ac_var=yes"
9475 echo "$as_me: failed program was:" >&5
9476 sed 's/^/| /' conftest.
$ac_ext >&5
9478 eval "$as_ac_var=no"
9480 rm -f conftest.err conftest.
$ac_objext \
9481 conftest
$ac_exeext conftest.
$ac_ext
9483 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9484 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9485 if test `eval echo '${'$as_ac_var'}'` = yes; then
9486 cat >>confdefs.h
<<_ACEOF
9487 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9495 if test "${window_system}" = "x11"; then
9496 echo "$as_me:$LINENO: checking X11 version 6" >&5
9497 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6
9498 if test "${emacs_cv_x11_version_6+set}" = set; then
9499 echo $ECHO_N "(cached) $ECHO_C" >&6
9501 cat >conftest.
$ac_ext <<_ACEOF
9504 cat confdefs.h
>>conftest.
$ac_ext
9505 cat >>conftest.
$ac_ext <<_ACEOF
9506 /* end confdefs.h. */
9507 #include <X11/Xlib.h>
9511 #if XlibSpecificationRelease < 6
9519 rm -f conftest.
$ac_objext conftest
$ac_exeext
9520 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9521 (eval $ac_link) 2>conftest.er1
9523 grep -v '^ *+' conftest.er1
>conftest.err
9525 cat conftest.err
>&5
9526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9527 (exit $ac_status); } &&
9528 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9533 (exit $ac_status); }; } &&
9534 { ac_try
='test -s conftest$ac_exeext'
9535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9539 (exit $ac_status); }; }; then
9540 emacs_cv_x11_version_6
=yes
9542 echo "$as_me: failed program was:" >&5
9543 sed 's/^/| /' conftest.
$ac_ext >&5
9545 emacs_cv_x11_version_6
=no
9547 rm -f conftest.err conftest.
$ac_objext \
9548 conftest
$ac_exeext conftest.
$ac_ext
9551 if test $emacs_cv_x11_version_6 = yes; then
9552 echo "$as_me:$LINENO: result: 6 or newer" >&5
9553 echo "${ECHO_T}6 or newer" >&6
9555 cat >>confdefs.h
<<\_ACEOF
9556 #define HAVE_X11R6 1
9560 echo "$as_me:$LINENO: result: before 6" >&5
9561 echo "${ECHO_T}before 6" >&6
9565 if test "${window_system}" = "x11"; then
9566 echo "$as_me:$LINENO: checking X11 version 5" >&5
9567 echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6
9568 if test "${emacs_cv_x11_version_5+set}" = set; then
9569 echo $ECHO_N "(cached) $ECHO_C" >&6
9571 cat >conftest.
$ac_ext <<_ACEOF
9574 cat confdefs.h
>>conftest.
$ac_ext
9575 cat >>conftest.
$ac_ext <<_ACEOF
9576 /* end confdefs.h. */
9577 #include <X11/Xlib.h>
9581 #if XlibSpecificationRelease < 5
9589 rm -f conftest.
$ac_objext conftest
$ac_exeext
9590 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9591 (eval $ac_link) 2>conftest.er1
9593 grep -v '^ *+' conftest.er1
>conftest.err
9595 cat conftest.err
>&5
9596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9597 (exit $ac_status); } &&
9598 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9603 (exit $ac_status); }; } &&
9604 { ac_try
='test -s conftest$ac_exeext'
9605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9609 (exit $ac_status); }; }; then
9610 emacs_cv_x11_version_5
=yes
9612 echo "$as_me: failed program was:" >&5
9613 sed 's/^/| /' conftest.
$ac_ext >&5
9615 emacs_cv_x11_version_5
=no
9617 rm -f conftest.err conftest.
$ac_objext \
9618 conftest
$ac_exeext conftest.
$ac_ext
9621 if test $emacs_cv_x11_version_5 = yes; then
9622 echo "$as_me:$LINENO: result: 5 or newer" >&5
9623 echo "${ECHO_T}5 or newer" >&6
9626 cat >>confdefs.h
<<\_ACEOF
9627 #define HAVE_X11R5 1
9632 echo "$as_me:$LINENO: result: before 5" >&5
9633 echo "${ECHO_T}before 5" >&6
9640 if test "${with_gtk}" = "yes" ||
test "$USE_X_TOOLKIT" = "gtk"; then
9641 if test "$USE_X_TOOLKIT" != "none" && test "$USE_X_TOOLKIT" != "maybe"; then
9642 { { echo "$as_me:$LINENO: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&5
9643 echo "$as_me: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&2;}
9644 { (exit 1); exit 1; }; };
9648 GTK_MODULES
="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
9650 if test "X${with_pkg_config_prog}" != X
; then
9651 PKG_CONFIG
="${with_pkg_config_prog}"
9656 if test -z "$PKG_CONFIG"; then
9657 # Extract the first word of "pkg-config", so it can be a program name with args.
9658 set dummy pkg-config
; ac_word
=$2
9659 echo "$as_me:$LINENO: checking for $ac_word" >&5
9660 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9661 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
9662 echo $ECHO_N "(cached) $ECHO_C" >&6
9666 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
9669 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9673 test -z "$as_dir" && as_dir
=.
9674 for ac_exec_ext
in '' $ac_executable_extensions; do
9675 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9676 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
9677 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9683 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
9687 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
9689 if test -n "$PKG_CONFIG"; then
9690 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
9691 echo "${ECHO_T}$PKG_CONFIG" >&6
9693 echo "$as_me:$LINENO: result: no" >&5
9694 echo "${ECHO_T}no" >&6
9699 if test "$PKG_CONFIG" = "no" ; then
9700 echo "*** The pkg-config script could not be found. Make sure it is"
9701 echo "*** in your path, or give the full path to pkg-config with"
9702 echo "*** the PKG_CONFIG environment variable or --with-pkg-config-prog."
9703 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
9705 PKG_CONFIG_MIN_VERSION
=0.9.0
9706 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9707 echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
9708 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6
9710 if $PKG_CONFIG --exists "$GTK_MODULES" ; then
9711 echo "$as_me:$LINENO: result: yes" >&5
9712 echo "${ECHO_T}yes" >&6
9715 echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
9716 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6
9717 GTK_CFLAGS
=`$PKG_CONFIG --cflags "$GTK_MODULES"`
9718 echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
9719 echo "${ECHO_T}$GTK_CFLAGS" >&6
9721 echo "$as_me:$LINENO: checking GTK_LIBS" >&5
9722 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6
9723 GTK_LIBS
=`$PKG_CONFIG --libs "$GTK_MODULES"`
9724 echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
9725 echo "${ECHO_T}$GTK_LIBS" >&6
9729 ## If we have a custom action on failure, don't print errors, but
9730 ## do set a variable so people can do so.
9731 GTK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
9732 echo $GTK_PKG_ERRORS
9738 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9739 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9743 if test $succeeded = yes; then
9746 { { echo "$as_me:$LINENO: error: Library requirements ($GTK_MODULES) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
9747 echo "$as_me: error: Library requirements ($GTK_MODULES) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
9748 { (exit 1); exit 1; }; }
9753 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $GTK_CFLAGS"
9754 CFLAGS
="$CFLAGS $GTK_CFLAGS"
9755 LIBS
="$GTK_LIBS $LIBS"
9758 cat >>confdefs.h
<<\_ACEOF
9764 with_toolkit_scroll_bars
=yes
9766 HAVE_GTK_MULTIDISPLAY
=no
9768 for ac_func
in gdk_display_open
9770 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9771 echo "$as_me:$LINENO: checking for $ac_func" >&5
9772 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9773 if eval "test \"\${$as_ac_var+set}\" = set"; then
9774 echo $ECHO_N "(cached) $ECHO_C" >&6
9776 cat >conftest.
$ac_ext <<_ACEOF
9779 cat confdefs.h
>>conftest.
$ac_ext
9780 cat >>conftest.
$ac_ext <<_ACEOF
9781 /* end confdefs.h. */
9782 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9783 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9784 #define $ac_func innocuous_$ac_func
9786 /* System header to define __stub macros and hopefully few prototypes,
9787 which can conflict with char $ac_func (); below.
9788 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9789 <limits.h> exists even on freestanding compilers. */
9792 # include <limits.h>
9794 # include <assert.h>
9799 /* Override any gcc2 internal prototype to avoid an error. */
9804 /* We use char because int might match the return type of a gcc2
9805 builtin and then its argument prototype would still apply. */
9807 /* The GNU C library defines this for functions which it implements
9808 to always fail with ENOSYS. Some functions are actually named
9809 something starting with __ and the normal name is an alias. */
9810 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9813 char (*f) () = $ac_func;
9822 return f != $ac_func;
9827 rm -f conftest.
$ac_objext conftest
$ac_exeext
9828 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9829 (eval $ac_link) 2>conftest.er1
9831 grep -v '^ *+' conftest.er1
>conftest.err
9833 cat conftest.err
>&5
9834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9835 (exit $ac_status); } &&
9836 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9841 (exit $ac_status); }; } &&
9842 { ac_try
='test -s conftest$ac_exeext'
9843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9847 (exit $ac_status); }; }; then
9848 eval "$as_ac_var=yes"
9850 echo "$as_me: failed program was:" >&5
9851 sed 's/^/| /' conftest.
$ac_ext >&5
9853 eval "$as_ac_var=no"
9855 rm -f conftest.err conftest.
$ac_objext \
9856 conftest
$ac_exeext conftest.
$ac_ext
9858 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9859 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9860 if test `eval echo '${'$as_ac_var'}'` = yes; then
9861 cat >>confdefs.h
<<_ACEOF
9862 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9864 HAVE_GTK_MULTIDISPLAY
=yes
9868 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
9870 cat >>confdefs.h
<<\_ACEOF
9871 #define HAVE_GTK_MULTIDISPLAY 1
9877 if test x
"${USE_X_TOOLKIT}" = xmaybe
; then
9878 if test x
"${HAVE_X11R5}" = xyes
; then
9879 echo "$as_me:$LINENO: checking X11 version 5 with Xaw" >&5
9880 echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6
9881 if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then
9882 echo $ECHO_N "(cached) $ECHO_C" >&6
9884 cat >conftest.
$ac_ext <<_ACEOF
9887 cat confdefs.h
>>conftest.
$ac_ext
9888 cat >>conftest.
$ac_ext <<_ACEOF
9889 /* end confdefs.h. */
9891 #include <X11/Intrinsic.h>
9892 #include <X11/Xaw/Simple.h>
9901 rm -f conftest.
$ac_objext conftest
$ac_exeext
9902 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9903 (eval $ac_link) 2>conftest.er1
9905 grep -v '^ *+' conftest.er1
>conftest.err
9907 cat conftest.err
>&5
9908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9909 (exit $ac_status); } &&
9910 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9915 (exit $ac_status); }; } &&
9916 { ac_try
='test -s conftest$ac_exeext'
9917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9921 (exit $ac_status); }; }; then
9922 emacs_cv_x11_version_5_with_xaw
=yes
9924 echo "$as_me: failed program was:" >&5
9925 sed 's/^/| /' conftest.
$ac_ext >&5
9927 emacs_cv_x11_version_5_with_xaw
=no
9929 rm -f conftest.err conftest.
$ac_objext \
9930 conftest
$ac_exeext conftest.
$ac_ext
9933 if test $emacs_cv_x11_version_5_with_xaw = yes; then
9934 echo "$as_me:$LINENO: result: 5 or newer, with Xaw; use toolkit by default" >&5
9935 echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6
9938 echo "$as_me:$LINENO: result: before 5 or no Xaw; do not use toolkit by default" >&5
9939 echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6
9947 X_TOOLKIT_TYPE
=$USE_X_TOOLKIT
9949 if test "${USE_X_TOOLKIT}" != "none"; then
9950 echo "$as_me:$LINENO: checking X11 toolkit version" >&5
9951 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6
9952 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
9953 echo $ECHO_N "(cached) $ECHO_C" >&6
9955 cat >conftest.
$ac_ext <<_ACEOF
9958 cat confdefs.h
>>conftest.
$ac_ext
9959 cat >>conftest.
$ac_ext <<_ACEOF
9960 /* end confdefs.h. */
9961 #include <X11/Intrinsic.h>
9965 #if XtSpecificationRelease < 6
9973 rm -f conftest.
$ac_objext conftest
$ac_exeext
9974 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9975 (eval $ac_link) 2>conftest.er1
9977 grep -v '^ *+' conftest.er1
>conftest.err
9979 cat conftest.err
>&5
9980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9981 (exit $ac_status); } &&
9982 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9987 (exit $ac_status); }; } &&
9988 { ac_try
='test -s conftest$ac_exeext'
9989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9993 (exit $ac_status); }; }; then
9994 emacs_cv_x11_toolkit_version_6
=yes
9996 echo "$as_me: failed program was:" >&5
9997 sed 's/^/| /' conftest.
$ac_ext >&5
9999 emacs_cv_x11_toolkit_version_6
=no
10001 rm -f conftest.err conftest.
$ac_objext \
10002 conftest
$ac_exeext conftest.
$ac_ext
10005 HAVE_X11XTR6
=$emacs_cv_x11_toolkit_version_6
10006 if test $emacs_cv_x11_toolkit_version_6 = yes; then
10007 echo "$as_me:$LINENO: result: 6 or newer" >&5
10008 echo "${ECHO_T}6 or newer" >&6
10010 cat >>confdefs.h
<<\_ACEOF
10011 #define HAVE_X11XTR6 1
10015 echo "$as_me:$LINENO: result: before 6" >&5
10016 echo "${ECHO_T}before 6" >&6
10020 if test x
$HAVE_X11XTR6 = xyes
; then
10021 LIBS
="-lXt -lSM -lICE $LIBS"
10026 echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
10027 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6
10028 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
10029 echo $ECHO_N "(cached) $ECHO_C" >&6
10031 ac_check_lib_save_LIBS
=$LIBS
10033 cat >conftest.
$ac_ext <<_ACEOF
10036 cat confdefs.h
>>conftest.
$ac_ext
10037 cat >>conftest.
$ac_ext <<_ACEOF
10038 /* end confdefs.h. */
10040 /* Override any gcc2 internal prototype to avoid an error. */
10044 /* We use char because int might match the return type of a gcc2
10045 builtin and then its argument prototype would still apply. */
10046 char XmuConvertStandardSelection ();
10050 XmuConvertStandardSelection ();
10055 rm -f conftest.
$ac_objext conftest
$ac_exeext
10056 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10057 (eval $ac_link) 2>conftest.er1
10059 grep -v '^ *+' conftest.er1
>conftest.err
10061 cat conftest.err
>&5
10062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10063 (exit $ac_status); } &&
10064 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10066 (eval $ac_try) 2>&5
10068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10069 (exit $ac_status); }; } &&
10070 { ac_try
='test -s conftest$ac_exeext'
10071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10072 (eval $ac_try) 2>&5
10074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10075 (exit $ac_status); }; }; then
10076 ac_cv_lib_Xmu_XmuConvertStandardSelection
=yes
10078 echo "$as_me: failed program was:" >&5
10079 sed 's/^/| /' conftest.
$ac_ext >&5
10081 ac_cv_lib_Xmu_XmuConvertStandardSelection
=no
10083 rm -f conftest.err conftest.
$ac_objext \
10084 conftest
$ac_exeext conftest.
$ac_ext
10085 LIBS
=$ac_check_lib_save_LIBS
10087 echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
10088 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6
10089 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
10090 cat >>confdefs.h
<<_ACEOF
10091 #define HAVE_LIBXMU 1
10098 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no
&& LIBS
="$OLDLIBS"
10101 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
10102 if test "${HAVE_X11}" = "yes"; then
10103 if test "${USE_X_TOOLKIT}" != "none"; then
10105 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
10106 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
10107 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
10108 echo $ECHO_N "(cached) $ECHO_C" >&6
10110 ac_check_lib_save_LIBS
=$LIBS
10111 LIBS
="-lXext $LIBS"
10112 cat >conftest.
$ac_ext <<_ACEOF
10115 cat confdefs.h
>>conftest.
$ac_ext
10116 cat >>conftest.
$ac_ext <<_ACEOF
10117 /* end confdefs.h. */
10119 /* Override any gcc2 internal prototype to avoid an error. */
10123 /* We use char because int might match the return type of a gcc2
10124 builtin and then its argument prototype would still apply. */
10125 char XShapeQueryExtension ();
10129 XShapeQueryExtension ();
10134 rm -f conftest.
$ac_objext conftest
$ac_exeext
10135 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10136 (eval $ac_link) 2>conftest.er1
10138 grep -v '^ *+' conftest.er1
>conftest.err
10140 cat conftest.err
>&5
10141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10142 (exit $ac_status); } &&
10143 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10145 (eval $ac_try) 2>&5
10147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10148 (exit $ac_status); }; } &&
10149 { ac_try
='test -s conftest$ac_exeext'
10150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10151 (eval $ac_try) 2>&5
10153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10154 (exit $ac_status); }; }; then
10155 ac_cv_lib_Xext_XShapeQueryExtension
=yes
10157 echo "$as_me: failed program was:" >&5
10158 sed 's/^/| /' conftest.
$ac_ext >&5
10160 ac_cv_lib_Xext_XShapeQueryExtension
=no
10162 rm -f conftest.err conftest.
$ac_objext \
10163 conftest
$ac_exeext conftest.
$ac_ext
10164 LIBS
=$ac_check_lib_save_LIBS
10166 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
10167 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
10168 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
10169 cat >>confdefs.h
<<_ACEOF
10170 #define HAVE_LIBXEXT 1
10173 LIBS
="-lXext $LIBS"
10180 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
10181 echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
10182 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6
10183 if test "${emacs_cv_lesstif+set}" = set; then
10184 echo $ECHO_N "(cached) $ECHO_C" >&6
10186 # We put this in CFLAGS temporarily to precede other -I options
10187 # that might be in CFLAGS temporarily.
10188 # We put this in CPPFLAGS where it precedes the other -I options.
10189 OLD_CPPFLAGS
=$CPPFLAGS
10191 CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
10192 CFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
10193 cat >conftest.
$ac_ext <<_ACEOF
10196 cat confdefs.h
>>conftest.
$ac_ext
10197 cat >>conftest.
$ac_ext <<_ACEOF
10198 /* end confdefs.h. */
10199 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
10208 rm -f conftest.
$ac_objext
10209 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10210 (eval $ac_compile) 2>conftest.er1
10212 grep -v '^ *+' conftest.er1
>conftest.err
10214 cat conftest.err
>&5
10215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10216 (exit $ac_status); } &&
10217 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10219 (eval $ac_try) 2>&5
10221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10222 (exit $ac_status); }; } &&
10223 { ac_try
='test -s conftest.$ac_objext'
10224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10225 (eval $ac_try) 2>&5
10227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10228 (exit $ac_status); }; }; then
10229 emacs_cv_lesstif
=yes
10231 echo "$as_me: failed program was:" >&5
10232 sed 's/^/| /' conftest.
$ac_ext >&5
10234 emacs_cv_lesstif
=no
10236 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10238 echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
10239 echo "${ECHO_T}$emacs_cv_lesstif" >&6
10240 if test $emacs_cv_lesstif = yes; then
10241 # Make sure this -I option remains in CPPFLAGS after it is set
10242 # back to REAL_CPPFLAGS.
10243 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
10244 # have those other -I options anyway. Ultimately, having this
10245 # directory ultimately in CPPFLAGS will be enough.
10246 REAL_CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
10247 LDFLAGS
="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
10250 CPPFLAGS
=$OLD_CPPFLAGS
10252 echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
10253 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6
10254 if test "${emacs_cv_motif_version_2_1+set}" = set; then
10255 echo $ECHO_N "(cached) $ECHO_C" >&6
10257 cat >conftest.
$ac_ext <<_ACEOF
10260 cat confdefs.h
>>conftest.
$ac_ext
10261 cat >>conftest.
$ac_ext <<_ACEOF
10262 /* end confdefs.h. */
10267 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
10270 Motif version prior to 2.1.
10276 rm -f conftest.
$ac_objext
10277 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10278 (eval $ac_compile) 2>conftest.er1
10280 grep -v '^ *+' conftest.er1
>conftest.err
10282 cat conftest.err
>&5
10283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10284 (exit $ac_status); } &&
10285 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10287 (eval $ac_try) 2>&5
10289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10290 (exit $ac_status); }; } &&
10291 { ac_try
='test -s conftest.$ac_objext'
10292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10293 (eval $ac_try) 2>&5
10295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10296 (exit $ac_status); }; }; then
10297 emacs_cv_motif_version_2_1
=yes
10299 echo "$as_me: failed program was:" >&5
10300 sed 's/^/| /' conftest.
$ac_ext >&5
10302 emacs_cv_motif_version_2_1
=no
10304 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10306 echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
10307 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6
10308 HAVE_MOTIF_2_1
=$emacs_cv_motif_version_2_1
10309 if test $emacs_cv_motif_version_2_1 = yes; then
10312 cat >>confdefs.h
<<\_ACEOF
10313 #define HAVE_MOTIF_2_1 1
10316 echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
10317 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6
10318 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
10319 echo $ECHO_N "(cached) $ECHO_C" >&6
10321 ac_check_lib_save_LIBS
=$LIBS
10323 cat >conftest.
$ac_ext <<_ACEOF
10326 cat confdefs.h
>>conftest.
$ac_ext
10327 cat >>conftest.
$ac_ext <<_ACEOF
10328 /* end confdefs.h. */
10330 /* Override any gcc2 internal prototype to avoid an error. */
10334 /* We use char because int might match the return type of a gcc2
10335 builtin and then its argument prototype would still apply. */
10336 char XpCreateContext ();
10340 XpCreateContext ();
10345 rm -f conftest.
$ac_objext conftest
$ac_exeext
10346 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10347 (eval $ac_link) 2>conftest.er1
10349 grep -v '^ *+' conftest.er1
>conftest.err
10351 cat conftest.err
>&5
10352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10353 (exit $ac_status); } &&
10354 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10356 (eval $ac_try) 2>&5
10358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10359 (exit $ac_status); }; } &&
10360 { ac_try
='test -s conftest$ac_exeext'
10361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10362 (eval $ac_try) 2>&5
10364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10365 (exit $ac_status); }; }; then
10366 ac_cv_lib_Xp_XpCreateContext
=yes
10368 echo "$as_me: failed program was:" >&5
10369 sed 's/^/| /' conftest.
$ac_ext >&5
10371 ac_cv_lib_Xp_XpCreateContext
=no
10373 rm -f conftest.err conftest.
$ac_objext \
10374 conftest
$ac_exeext conftest.
$ac_ext
10375 LIBS
=$ac_check_lib_save_LIBS
10377 echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
10378 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6
10379 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
10383 if test ${HAVE_LIBXP} = yes; then
10385 cat >>confdefs.h
<<\_ACEOF
10386 #define HAVE_LIBXP 1
10393 ### Is -lXaw3d available?
10395 if test "${HAVE_X11}" = "yes"; then
10396 if test "${USE_X_TOOLKIT}" != "none"; then
10397 echo "$as_me:$LINENO: checking for X11/Xaw3d/Scrollbar.h" >&5
10398 echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6
10399 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
10400 echo $ECHO_N "(cached) $ECHO_C" >&6
10402 cat >conftest.
$ac_ext <<_ACEOF
10405 cat confdefs.h
>>conftest.
$ac_ext
10406 cat >>conftest.
$ac_ext <<_ACEOF
10407 /* end confdefs.h. */
10408 #include <X11/Xaw3d/Scrollbar.h>
10410 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10411 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
10413 grep -v '^ *+' conftest.er1
>conftest.err
10415 cat conftest.err
>&5
10416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10417 (exit $ac_status); } >/dev
/null
; then
10418 if test -s conftest.err
; then
10419 ac_cpp_err
=$ac_c_preproc_warn_flag
10420 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
10427 if test -z "$ac_cpp_err"; then
10428 ac_cv_header_X11_Xaw3d_Scrollbar_h
=yes
10430 echo "$as_me: failed program was:" >&5
10431 sed 's/^/| /' conftest.
$ac_ext >&5
10433 ac_cv_header_X11_Xaw3d_Scrollbar_h
=no
10435 rm -f conftest.err conftest.
$ac_ext
10437 echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
10438 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6
10439 if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then
10440 echo "$as_me:$LINENO: checking for XawScrollbarSetThumb in -lXaw3d" >&5
10441 echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6
10442 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then
10443 echo $ECHO_N "(cached) $ECHO_C" >&6
10445 ac_check_lib_save_LIBS
=$LIBS
10446 LIBS
="-lXaw3d $LIBS"
10447 cat >conftest.
$ac_ext <<_ACEOF
10450 cat confdefs.h
>>conftest.
$ac_ext
10451 cat >>conftest.
$ac_ext <<_ACEOF
10452 /* end confdefs.h. */
10454 /* Override any gcc2 internal prototype to avoid an error. */
10458 /* We use char because int might match the return type of a gcc2
10459 builtin and then its argument prototype would still apply. */
10460 char XawScrollbarSetThumb ();
10464 XawScrollbarSetThumb ();
10469 rm -f conftest.
$ac_objext conftest
$ac_exeext
10470 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10471 (eval $ac_link) 2>conftest.er1
10473 grep -v '^ *+' conftest.er1
>conftest.err
10475 cat conftest.err
>&5
10476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10477 (exit $ac_status); } &&
10478 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10480 (eval $ac_try) 2>&5
10482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10483 (exit $ac_status); }; } &&
10484 { ac_try
='test -s conftest$ac_exeext'
10485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10486 (eval $ac_try) 2>&5
10488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10489 (exit $ac_status); }; }; then
10490 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=yes
10492 echo "$as_me: failed program was:" >&5
10493 sed 's/^/| /' conftest.
$ac_ext >&5
10495 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=no
10497 rm -f conftest.err conftest.
$ac_objext \
10498 conftest
$ac_exeext conftest.
$ac_ext
10499 LIBS
=$ac_check_lib_save_LIBS
10501 echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
10502 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6
10503 if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then
10510 if test "${HAVE_XAW3D}" = "yes"; then
10512 cat >>confdefs.h
<<\_ACEOF
10513 #define HAVE_XAW3D 1
10522 USE_TOOLKIT_SCROLL_BARS
=no
10523 if test "${with_toolkit_scroll_bars}" != "no"; then
10524 if test "${USE_X_TOOLKIT}" != "none"; then
10525 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
10526 cat >>confdefs.h
<<\_ACEOF
10527 #define USE_TOOLKIT_SCROLL_BARS 1
10531 USE_TOOLKIT_SCROLL_BARS
=yes
10532 elif test "${HAVE_XAW3D}" = "yes"; then
10533 cat >>confdefs.h
<<\_ACEOF
10534 #define USE_TOOLKIT_SCROLL_BARS 1
10537 USE_TOOLKIT_SCROLL_BARS
=yes
10539 elif test "${HAVE_GTK}" = "yes"; then
10540 cat >>confdefs.h
<<\_ACEOF
10541 #define USE_TOOLKIT_SCROLL_BARS 1
10544 USE_TOOLKIT_SCROLL_BARS
=yes
10548 cat >conftest.
$ac_ext <<_ACEOF
10551 cat confdefs.h
>>conftest.
$ac_ext
10552 cat >>conftest.
$ac_ext <<_ACEOF
10553 /* end confdefs.h. */
10555 #include <X11/Xlib.h>
10556 #include <X11/Xresource.h>
10565 rm -f conftest.
$ac_objext
10566 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10567 (eval $ac_compile) 2>conftest.er1
10569 grep -v '^ *+' conftest.er1
>conftest.err
10571 cat conftest.err
>&5
10572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10573 (exit $ac_status); } &&
10574 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10576 (eval $ac_try) 2>&5
10578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10579 (exit $ac_status); }; } &&
10580 { ac_try
='test -s conftest.$ac_objext'
10581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10582 (eval $ac_try) 2>&5
10584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10585 (exit $ac_status); }; }; then
10588 cat >>confdefs.h
<<\_ACEOF
10593 echo "$as_me: failed program was:" >&5
10594 sed 's/^/| /' conftest.
$ac_ext >&5
10598 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10601 if test "${with_xim}" != "no"; then
10603 cat >>confdefs.h
<<\_ACEOF
10610 if test "${HAVE_XIM}" != "no"; then
10611 late_CFLAGS
=$CFLAGS
10612 if test "$GCC" = yes; then
10613 CFLAGS
="$CFLAGS --pedantic-errors"
10615 cat >conftest.
$ac_ext <<_ACEOF
10618 cat confdefs.h
>>conftest.
$ac_ext
10619 cat >>conftest.
$ac_ext <<_ACEOF
10620 /* end confdefs.h. */
10622 #include <X11/Xlib.h>
10623 #include <X11/Xresource.h>
10632 XPointer *client_data;
10634 /* If we're not using GCC, it's probably not XFree86, and this is
10635 probably right, but we can't use something like --pedantic-errors. */
10636 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
10637 char*, XIMProc, XPointer*);
10639 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
10645 rm -f conftest.
$ac_objext
10646 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10647 (eval $ac_compile) 2>conftest.er1
10649 grep -v '^ *+' conftest.er1
>conftest.err
10651 cat conftest.err
>&5
10652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10653 (exit $ac_status); } &&
10654 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10656 (eval $ac_try) 2>&5
10658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10659 (exit $ac_status); }; } &&
10660 { ac_try
='test -s conftest.$ac_objext'
10661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10662 (eval $ac_try) 2>&5
10664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10665 (exit $ac_status); }; }; then
10666 emacs_cv_arg6_star
=yes
10668 echo "$as_me: failed program was:" >&5
10669 sed 's/^/| /' conftest.
$ac_ext >&5
10672 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10674 if test "$emacs_cv_arg6_star" = yes; then
10675 cat >>confdefs.h
<<\_ACEOF
10676 #define XRegisterIMInstantiateCallback_arg6 XPointer*
10680 cat >>confdefs.h
<<\_ACEOF
10681 #define XRegisterIMInstantiateCallback_arg6 XPointer
10685 CFLAGS
=$late_CFLAGS
10688 ### Use -lXpm if available, unless `--with-xpm=no'.
10690 if test "${HAVE_X11}" = "yes"; then
10691 if test "${with_xpm}" != "no"; then
10692 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
10693 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
10694 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
10695 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
10696 echo $ECHO_N "(cached) $ECHO_C" >&6
10698 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
10699 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
10701 # Is the header compilable?
10702 echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
10703 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6
10704 cat >conftest.
$ac_ext <<_ACEOF
10707 cat confdefs.h
>>conftest.
$ac_ext
10708 cat >>conftest.
$ac_ext <<_ACEOF
10709 /* end confdefs.h. */
10710 $ac_includes_default
10711 #include <X11/xpm.h>
10713 rm -f conftest.
$ac_objext
10714 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10715 (eval $ac_compile) 2>conftest.er1
10717 grep -v '^ *+' conftest.er1
>conftest.err
10719 cat conftest.err
>&5
10720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10721 (exit $ac_status); } &&
10722 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10724 (eval $ac_try) 2>&5
10726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10727 (exit $ac_status); }; } &&
10728 { ac_try
='test -s conftest.$ac_objext'
10729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10730 (eval $ac_try) 2>&5
10732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10733 (exit $ac_status); }; }; then
10734 ac_header_compiler
=yes
10736 echo "$as_me: failed program was:" >&5
10737 sed 's/^/| /' conftest.
$ac_ext >&5
10739 ac_header_compiler
=no
10741 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10742 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10743 echo "${ECHO_T}$ac_header_compiler" >&6
10745 # Is the header present?
10746 echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
10747 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6
10748 cat >conftest.
$ac_ext <<_ACEOF
10751 cat confdefs.h
>>conftest.
$ac_ext
10752 cat >>conftest.
$ac_ext <<_ACEOF
10753 /* end confdefs.h. */
10754 #include <X11/xpm.h>
10756 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10757 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
10759 grep -v '^ *+' conftest.er1
>conftest.err
10761 cat conftest.err
>&5
10762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10763 (exit $ac_status); } >/dev
/null
; then
10764 if test -s conftest.err
; then
10765 ac_cpp_err
=$ac_c_preproc_warn_flag
10766 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
10773 if test -z "$ac_cpp_err"; then
10774 ac_header_preproc
=yes
10776 echo "$as_me: failed program was:" >&5
10777 sed 's/^/| /' conftest.
$ac_ext >&5
10779 ac_header_preproc
=no
10781 rm -f conftest.err conftest.
$ac_ext
10782 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10783 echo "${ECHO_T}$ac_header_preproc" >&6
10785 # So? What about this header?
10786 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10788 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
10789 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10790 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
10791 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
10792 ac_header_preproc
=yes
10795 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
10796 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
10797 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
10798 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
10799 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
10800 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
10801 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
10802 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
10803 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
10804 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
10805 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
10806 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
10809 ## ------------------------------------------ ##
10810 ## Report this to the AC_PACKAGE_NAME lists. ##
10811 ## ------------------------------------------ ##
10814 sed "s/^/$as_me: WARNING: /" >&2
10817 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
10818 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
10819 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
10820 echo $ECHO_N "(cached) $ECHO_C" >&6
10822 ac_cv_header_X11_xpm_h
=$ac_header_preproc
10824 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
10825 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
10828 if test $ac_cv_header_X11_xpm_h = yes; then
10829 echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
10830 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6
10831 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
10832 echo $ECHO_N "(cached) $ECHO_C" >&6
10834 ac_check_lib_save_LIBS
=$LIBS
10835 LIBS
="-lXpm -lX11 $LIBS"
10836 cat >conftest.
$ac_ext <<_ACEOF
10839 cat confdefs.h
>>conftest.
$ac_ext
10840 cat >>conftest.
$ac_ext <<_ACEOF
10841 /* end confdefs.h. */
10843 /* Override any gcc2 internal prototype to avoid an error. */
10847 /* We use char because int might match the return type of a gcc2
10848 builtin and then its argument prototype would still apply. */
10849 char XpmReadFileToPixmap ();
10853 XpmReadFileToPixmap ();
10858 rm -f conftest.
$ac_objext conftest
$ac_exeext
10859 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10860 (eval $ac_link) 2>conftest.er1
10862 grep -v '^ *+' conftest.er1
>conftest.err
10864 cat conftest.err
>&5
10865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10866 (exit $ac_status); } &&
10867 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10869 (eval $ac_try) 2>&5
10871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10872 (exit $ac_status); }; } &&
10873 { ac_try
='test -s conftest$ac_exeext'
10874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10875 (eval $ac_try) 2>&5
10877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10878 (exit $ac_status); }; }; then
10879 ac_cv_lib_Xpm_XpmReadFileToPixmap
=yes
10881 echo "$as_me: failed program was:" >&5
10882 sed 's/^/| /' conftest.
$ac_ext >&5
10884 ac_cv_lib_Xpm_XpmReadFileToPixmap
=no
10886 rm -f conftest.err conftest.
$ac_objext \
10887 conftest
$ac_exeext conftest.
$ac_ext
10888 LIBS
=$ac_check_lib_save_LIBS
10890 echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
10891 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6
10892 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
10899 if test "${HAVE_XPM}" = "yes"; then
10900 echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
10901 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6
10902 cat >conftest.
$ac_ext <<_ACEOF
10905 cat confdefs.h
>>conftest.
$ac_ext
10906 cat >>conftest.
$ac_ext <<_ACEOF
10907 /* end confdefs.h. */
10908 #include "X11/xpm.h"
10909 #ifndef XpmReturnAllocPixels
10910 no_return_alloc_pixels
10914 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10915 $EGREP "no_return_alloc_pixels" >/dev
/null
2>&1; then
10923 if test "${HAVE_XPM}" = "yes"; then
10924 echo "$as_me:$LINENO: result: yes" >&5
10925 echo "${ECHO_T}yes" >&6
10927 echo "$as_me:$LINENO: result: no" >&5
10928 echo "${ECHO_T}no" >&6
10933 if test "${HAVE_XPM}" = "yes"; then
10935 cat >>confdefs.h
<<\_ACEOF
10942 ### Use -ljpeg if available, unless `--with-jpeg=no'.
10944 if test "${HAVE_X11}" = "yes"; then
10945 if test "${with_jpeg}" != "no"; then
10946 if test "${ac_cv_header_jerror_h+set}" = set; then
10947 echo "$as_me:$LINENO: checking for jerror.h" >&5
10948 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
10949 if test "${ac_cv_header_jerror_h+set}" = set; then
10950 echo $ECHO_N "(cached) $ECHO_C" >&6
10952 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
10953 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
10955 # Is the header compilable?
10956 echo "$as_me:$LINENO: checking jerror.h usability" >&5
10957 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6
10958 cat >conftest.
$ac_ext <<_ACEOF
10961 cat confdefs.h
>>conftest.
$ac_ext
10962 cat >>conftest.
$ac_ext <<_ACEOF
10963 /* end confdefs.h. */
10964 $ac_includes_default
10965 #include <jerror.h>
10967 rm -f conftest.
$ac_objext
10968 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10969 (eval $ac_compile) 2>conftest.er1
10971 grep -v '^ *+' conftest.er1
>conftest.err
10973 cat conftest.err
>&5
10974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10975 (exit $ac_status); } &&
10976 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10978 (eval $ac_try) 2>&5
10980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10981 (exit $ac_status); }; } &&
10982 { ac_try
='test -s conftest.$ac_objext'
10983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10984 (eval $ac_try) 2>&5
10986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10987 (exit $ac_status); }; }; then
10988 ac_header_compiler
=yes
10990 echo "$as_me: failed program was:" >&5
10991 sed 's/^/| /' conftest.
$ac_ext >&5
10993 ac_header_compiler
=no
10995 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10996 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10997 echo "${ECHO_T}$ac_header_compiler" >&6
10999 # Is the header present?
11000 echo "$as_me:$LINENO: checking jerror.h presence" >&5
11001 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6
11002 cat >conftest.
$ac_ext <<_ACEOF
11005 cat confdefs.h
>>conftest.
$ac_ext
11006 cat >>conftest.
$ac_ext <<_ACEOF
11007 /* end confdefs.h. */
11008 #include <jerror.h>
11010 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11011 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11013 grep -v '^ *+' conftest.er1
>conftest.err
11015 cat conftest.err
>&5
11016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11017 (exit $ac_status); } >/dev
/null
; then
11018 if test -s conftest.err
; then
11019 ac_cpp_err
=$ac_c_preproc_warn_flag
11020 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
11027 if test -z "$ac_cpp_err"; then
11028 ac_header_preproc
=yes
11030 echo "$as_me: failed program was:" >&5
11031 sed 's/^/| /' conftest.
$ac_ext >&5
11033 ac_header_preproc
=no
11035 rm -f conftest.err conftest.
$ac_ext
11036 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11037 echo "${ECHO_T}$ac_header_preproc" >&6
11039 # So? What about this header?
11040 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11042 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
11043 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11044 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
11045 echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
11046 ac_header_preproc
=yes
11049 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
11050 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
11051 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
11052 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
11053 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
11054 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
11055 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
11056 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
11057 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
11058 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
11059 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
11060 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
11063 ## ------------------------------------------ ##
11064 ## Report this to the AC_PACKAGE_NAME lists. ##
11065 ## ------------------------------------------ ##
11068 sed "s/^/$as_me: WARNING: /" >&2
11071 echo "$as_me:$LINENO: checking for jerror.h" >&5
11072 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
11073 if test "${ac_cv_header_jerror_h+set}" = set; then
11074 echo $ECHO_N "(cached) $ECHO_C" >&6
11076 ac_cv_header_jerror_h
=$ac_header_preproc
11078 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
11079 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
11082 if test $ac_cv_header_jerror_h = yes; then
11083 echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
11084 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6
11085 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
11086 echo $ECHO_N "(cached) $ECHO_C" >&6
11088 ac_check_lib_save_LIBS
=$LIBS
11089 LIBS
="-ljpeg $LIBS"
11090 cat >conftest.
$ac_ext <<_ACEOF
11093 cat confdefs.h
>>conftest.
$ac_ext
11094 cat >>conftest.
$ac_ext <<_ACEOF
11095 /* end confdefs.h. */
11097 /* Override any gcc2 internal prototype to avoid an error. */
11101 /* We use char because int might match the return type of a gcc2
11102 builtin and then its argument prototype would still apply. */
11103 char jpeg_destroy_compress ();
11107 jpeg_destroy_compress ();
11112 rm -f conftest.
$ac_objext conftest
$ac_exeext
11113 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11114 (eval $ac_link) 2>conftest.er1
11116 grep -v '^ *+' conftest.er1
>conftest.err
11118 cat conftest.err
>&5
11119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11120 (exit $ac_status); } &&
11121 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11123 (eval $ac_try) 2>&5
11125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11126 (exit $ac_status); }; } &&
11127 { ac_try
='test -s conftest$ac_exeext'
11128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11129 (eval $ac_try) 2>&5
11131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11132 (exit $ac_status); }; }; then
11133 ac_cv_lib_jpeg_jpeg_destroy_compress
=yes
11135 echo "$as_me: failed program was:" >&5
11136 sed 's/^/| /' conftest.
$ac_ext >&5
11138 ac_cv_lib_jpeg_jpeg_destroy_compress
=no
11140 rm -f conftest.err conftest.
$ac_objext \
11141 conftest
$ac_exeext conftest.
$ac_ext
11142 LIBS
=$ac_check_lib_save_LIBS
11144 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
11145 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6
11146 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
11156 if test "${HAVE_JPEG}" = "yes"; then
11157 cat >>confdefs.h
<<\_ACEOF
11158 #define HAVE_JPEG 1
11161 cat >conftest.
$ac_ext <<_ACEOF
11164 cat confdefs.h
>>conftest.
$ac_ext
11165 cat >>conftest.
$ac_ext <<_ACEOF
11166 /* end confdefs.h. */
11167 #include <jpeglib.h>
11168 version=JPEG_LIB_VERSION
11171 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11172 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev
/null
2>&1; then
11173 cat >>confdefs.h
<<\_ACEOF
11174 #define HAVE_JPEG 1
11178 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
11179 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
11187 ### Use -lpng if available, unless `--with-png=no'.
11189 if test "${HAVE_X11}" = "yes"; then
11190 if test "${with_png}" != "no"; then
11191 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
11192 # in /usr/include/libpng.
11195 for ac_header
in png.h libpng
/png.h
11197 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11198 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11199 echo "$as_me:$LINENO: checking for $ac_header" >&5
11200 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11201 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11202 echo $ECHO_N "(cached) $ECHO_C" >&6
11204 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11205 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11207 # Is the header compilable?
11208 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11209 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11210 cat >conftest.
$ac_ext <<_ACEOF
11213 cat confdefs.h
>>conftest.
$ac_ext
11214 cat >>conftest.
$ac_ext <<_ACEOF
11215 /* end confdefs.h. */
11216 $ac_includes_default
11217 #include <$ac_header>
11219 rm -f conftest.
$ac_objext
11220 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11221 (eval $ac_compile) 2>conftest.er1
11223 grep -v '^ *+' conftest.er1
>conftest.err
11225 cat conftest.err
>&5
11226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11227 (exit $ac_status); } &&
11228 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11230 (eval $ac_try) 2>&5
11232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11233 (exit $ac_status); }; } &&
11234 { ac_try
='test -s conftest.$ac_objext'
11235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11236 (eval $ac_try) 2>&5
11238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11239 (exit $ac_status); }; }; then
11240 ac_header_compiler
=yes
11242 echo "$as_me: failed program was:" >&5
11243 sed 's/^/| /' conftest.
$ac_ext >&5
11245 ac_header_compiler
=no
11247 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11248 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11249 echo "${ECHO_T}$ac_header_compiler" >&6
11251 # Is the header present?
11252 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11253 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11254 cat >conftest.
$ac_ext <<_ACEOF
11257 cat confdefs.h
>>conftest.
$ac_ext
11258 cat >>conftest.
$ac_ext <<_ACEOF
11259 /* end confdefs.h. */
11260 #include <$ac_header>
11262 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11263 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11265 grep -v '^ *+' conftest.er1
>conftest.err
11267 cat conftest.err
>&5
11268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11269 (exit $ac_status); } >/dev
/null
; then
11270 if test -s conftest.err
; then
11271 ac_cpp_err
=$ac_c_preproc_warn_flag
11272 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
11279 if test -z "$ac_cpp_err"; then
11280 ac_header_preproc
=yes
11282 echo "$as_me: failed program was:" >&5
11283 sed 's/^/| /' conftest.
$ac_ext >&5
11285 ac_header_preproc
=no
11287 rm -f conftest.err conftest.
$ac_ext
11288 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11289 echo "${ECHO_T}$ac_header_preproc" >&6
11291 # So? What about this header?
11292 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11294 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11295 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11296 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11297 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11298 ac_header_preproc
=yes
11301 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11302 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11303 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11304 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11305 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11306 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11307 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11308 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11309 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11310 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11311 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11312 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11315 ## ------------------------------------------ ##
11316 ## Report this to the AC_PACKAGE_NAME lists. ##
11317 ## ------------------------------------------ ##
11320 sed "s/^/$as_me: WARNING: /" >&2
11323 echo "$as_me:$LINENO: checking for $ac_header" >&5
11324 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11325 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11326 echo $ECHO_N "(cached) $ECHO_C" >&6
11328 eval "$as_ac_Header=\$ac_header_preproc"
11330 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11331 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11334 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11335 cat >>confdefs.h
<<_ACEOF
11336 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11343 if test "$ac_cv_header_png_h" = yes ||
test "$ac_cv_header_libpng_png_h" = yes ; then
11344 echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
11345 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6
11346 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
11347 echo $ECHO_N "(cached) $ECHO_C" >&6
11349 ac_check_lib_save_LIBS
=$LIBS
11350 LIBS
="-lpng -lz -lm $LIBS"
11351 cat >conftest.
$ac_ext <<_ACEOF
11354 cat confdefs.h
>>conftest.
$ac_ext
11355 cat >>conftest.
$ac_ext <<_ACEOF
11356 /* end confdefs.h. */
11358 /* Override any gcc2 internal prototype to avoid an error. */
11362 /* We use char because int might match the return type of a gcc2
11363 builtin and then its argument prototype would still apply. */
11364 char png_get_channels ();
11368 png_get_channels ();
11373 rm -f conftest.
$ac_objext conftest
$ac_exeext
11374 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11375 (eval $ac_link) 2>conftest.er1
11377 grep -v '^ *+' conftest.er1
>conftest.err
11379 cat conftest.err
>&5
11380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11381 (exit $ac_status); } &&
11382 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11384 (eval $ac_try) 2>&5
11386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11387 (exit $ac_status); }; } &&
11388 { ac_try
='test -s conftest$ac_exeext'
11389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11390 (eval $ac_try) 2>&5
11392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11393 (exit $ac_status); }; }; then
11394 ac_cv_lib_png_png_get_channels
=yes
11396 echo "$as_me: failed program was:" >&5
11397 sed 's/^/| /' conftest.
$ac_ext >&5
11399 ac_cv_lib_png_png_get_channels
=no
11401 rm -f conftest.err conftest.
$ac_objext \
11402 conftest
$ac_exeext conftest.
$ac_ext
11403 LIBS
=$ac_check_lib_save_LIBS
11405 echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
11406 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6
11407 if test $ac_cv_lib_png_png_get_channels = yes; then
11414 if test "${HAVE_PNG}" = "yes"; then
11416 cat >>confdefs.h
<<\_ACEOF
11423 ### Use -ltiff if available, unless `--with-tiff=no'.
11425 if test "${HAVE_X11}" = "yes"; then
11426 if test "${with_tiff}" != "no"; then
11427 if test "${ac_cv_header_tiffio_h+set}" = set; then
11428 echo "$as_me:$LINENO: checking for tiffio.h" >&5
11429 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
11430 if test "${ac_cv_header_tiffio_h+set}" = set; then
11431 echo $ECHO_N "(cached) $ECHO_C" >&6
11433 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
11434 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
11436 # Is the header compilable?
11437 echo "$as_me:$LINENO: checking tiffio.h usability" >&5
11438 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
11439 cat >conftest.
$ac_ext <<_ACEOF
11442 cat confdefs.h
>>conftest.
$ac_ext
11443 cat >>conftest.
$ac_ext <<_ACEOF
11444 /* end confdefs.h. */
11445 $ac_includes_default
11446 #include <tiffio.h>
11448 rm -f conftest.
$ac_objext
11449 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11450 (eval $ac_compile) 2>conftest.er1
11452 grep -v '^ *+' conftest.er1
>conftest.err
11454 cat conftest.err
>&5
11455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11456 (exit $ac_status); } &&
11457 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11459 (eval $ac_try) 2>&5
11461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11462 (exit $ac_status); }; } &&
11463 { ac_try
='test -s conftest.$ac_objext'
11464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11465 (eval $ac_try) 2>&5
11467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11468 (exit $ac_status); }; }; then
11469 ac_header_compiler
=yes
11471 echo "$as_me: failed program was:" >&5
11472 sed 's/^/| /' conftest.
$ac_ext >&5
11474 ac_header_compiler
=no
11476 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11477 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11478 echo "${ECHO_T}$ac_header_compiler" >&6
11480 # Is the header present?
11481 echo "$as_me:$LINENO: checking tiffio.h presence" >&5
11482 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
11483 cat >conftest.
$ac_ext <<_ACEOF
11486 cat confdefs.h
>>conftest.
$ac_ext
11487 cat >>conftest.
$ac_ext <<_ACEOF
11488 /* end confdefs.h. */
11489 #include <tiffio.h>
11491 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11492 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11494 grep -v '^ *+' conftest.er1
>conftest.err
11496 cat conftest.err
>&5
11497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11498 (exit $ac_status); } >/dev
/null
; then
11499 if test -s conftest.err
; then
11500 ac_cpp_err
=$ac_c_preproc_warn_flag
11501 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
11508 if test -z "$ac_cpp_err"; then
11509 ac_header_preproc
=yes
11511 echo "$as_me: failed program was:" >&5
11512 sed 's/^/| /' conftest.
$ac_ext >&5
11514 ac_header_preproc
=no
11516 rm -f conftest.err conftest.
$ac_ext
11517 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11518 echo "${ECHO_T}$ac_header_preproc" >&6
11520 # So? What about this header?
11521 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11523 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
11524 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11525 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
11526 echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
11527 ac_header_preproc
=yes
11530 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
11531 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
11532 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
11533 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
11534 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
11535 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
11536 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
11537 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
11538 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
11539 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
11540 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
11541 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
11544 ## ------------------------------------------ ##
11545 ## Report this to the AC_PACKAGE_NAME lists. ##
11546 ## ------------------------------------------ ##
11549 sed "s/^/$as_me: WARNING: /" >&2
11552 echo "$as_me:$LINENO: checking for tiffio.h" >&5
11553 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
11554 if test "${ac_cv_header_tiffio_h+set}" = set; then
11555 echo $ECHO_N "(cached) $ECHO_C" >&6
11557 ac_cv_header_tiffio_h
=$ac_header_preproc
11559 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
11560 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
11563 if test $ac_cv_header_tiffio_h = yes; then
11565 # At least one tiff package requires the jpeg library.
11566 if test "${HAVE_JPEG}" = yes; then tifflibs
="-ljpeg $tifflibs"; fi
11567 echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
11568 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6
11569 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
11570 echo $ECHO_N "(cached) $ECHO_C" >&6
11572 ac_check_lib_save_LIBS
=$LIBS
11573 LIBS
="-ltiff $tifflibs $LIBS"
11574 cat >conftest.
$ac_ext <<_ACEOF
11577 cat confdefs.h
>>conftest.
$ac_ext
11578 cat >>conftest.
$ac_ext <<_ACEOF
11579 /* end confdefs.h. */
11581 /* Override any gcc2 internal prototype to avoid an error. */
11585 /* We use char because int might match the return type of a gcc2
11586 builtin and then its argument prototype would still apply. */
11587 char TIFFGetVersion ();
11596 rm -f conftest.
$ac_objext conftest
$ac_exeext
11597 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11598 (eval $ac_link) 2>conftest.er1
11600 grep -v '^ *+' conftest.er1
>conftest.err
11602 cat conftest.err
>&5
11603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11604 (exit $ac_status); } &&
11605 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11607 (eval $ac_try) 2>&5
11609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11610 (exit $ac_status); }; } &&
11611 { ac_try
='test -s conftest$ac_exeext'
11612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11613 (eval $ac_try) 2>&5
11615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11616 (exit $ac_status); }; }; then
11617 ac_cv_lib_tiff_TIFFGetVersion
=yes
11619 echo "$as_me: failed program was:" >&5
11620 sed 's/^/| /' conftest.
$ac_ext >&5
11622 ac_cv_lib_tiff_TIFFGetVersion
=no
11624 rm -f conftest.err conftest.
$ac_objext \
11625 conftest
$ac_exeext conftest.
$ac_ext
11626 LIBS
=$ac_check_lib_save_LIBS
11628 echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
11629 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6
11630 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
11639 if test "${HAVE_TIFF}" = "yes"; then
11641 cat >>confdefs.h
<<\_ACEOF
11642 #define HAVE_TIFF 1
11648 ### Use -lgif if available, unless `--with-gif=no'.
11650 if test "${HAVE_X11}" = "yes"; then
11651 if test "${with_gif}" != "no"; then
11652 if test "${ac_cv_header_gif_lib_h+set}" = set; then
11653 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
11654 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
11655 if test "${ac_cv_header_gif_lib_h+set}" = set; then
11656 echo $ECHO_N "(cached) $ECHO_C" >&6
11658 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
11659 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
11661 # Is the header compilable?
11662 echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
11663 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6
11664 cat >conftest.
$ac_ext <<_ACEOF
11667 cat confdefs.h
>>conftest.
$ac_ext
11668 cat >>conftest.
$ac_ext <<_ACEOF
11669 /* end confdefs.h. */
11670 $ac_includes_default
11671 #include <gif_lib.h>
11673 rm -f conftest.
$ac_objext
11674 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11675 (eval $ac_compile) 2>conftest.er1
11677 grep -v '^ *+' conftest.er1
>conftest.err
11679 cat conftest.err
>&5
11680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11681 (exit $ac_status); } &&
11682 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11684 (eval $ac_try) 2>&5
11686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11687 (exit $ac_status); }; } &&
11688 { ac_try
='test -s conftest.$ac_objext'
11689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11690 (eval $ac_try) 2>&5
11692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11693 (exit $ac_status); }; }; then
11694 ac_header_compiler
=yes
11696 echo "$as_me: failed program was:" >&5
11697 sed 's/^/| /' conftest.
$ac_ext >&5
11699 ac_header_compiler
=no
11701 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11702 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11703 echo "${ECHO_T}$ac_header_compiler" >&6
11705 # Is the header present?
11706 echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
11707 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6
11708 cat >conftest.
$ac_ext <<_ACEOF
11711 cat confdefs.h
>>conftest.
$ac_ext
11712 cat >>conftest.
$ac_ext <<_ACEOF
11713 /* end confdefs.h. */
11714 #include <gif_lib.h>
11716 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11717 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11719 grep -v '^ *+' conftest.er1
>conftest.err
11721 cat conftest.err
>&5
11722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11723 (exit $ac_status); } >/dev
/null
; then
11724 if test -s conftest.err
; then
11725 ac_cpp_err
=$ac_c_preproc_warn_flag
11726 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
11733 if test -z "$ac_cpp_err"; then
11734 ac_header_preproc
=yes
11736 echo "$as_me: failed program was:" >&5
11737 sed 's/^/| /' conftest.
$ac_ext >&5
11739 ac_header_preproc
=no
11741 rm -f conftest.err conftest.
$ac_ext
11742 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11743 echo "${ECHO_T}$ac_header_preproc" >&6
11745 # So? What about this header?
11746 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11748 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
11749 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11750 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
11751 echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
11752 ac_header_preproc
=yes
11755 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
11756 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
11757 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
11758 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
11759 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
11760 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
11761 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
11762 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
11763 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
11764 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
11765 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
11766 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
11769 ## ------------------------------------------ ##
11770 ## Report this to the AC_PACKAGE_NAME lists. ##
11771 ## ------------------------------------------ ##
11774 sed "s/^/$as_me: WARNING: /" >&2
11777 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
11778 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
11779 if test "${ac_cv_header_gif_lib_h+set}" = set; then
11780 echo $ECHO_N "(cached) $ECHO_C" >&6
11782 ac_cv_header_gif_lib_h
=$ac_header_preproc
11784 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
11785 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
11788 if test $ac_cv_header_gif_lib_h = yes; then
11789 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
11790 # Earlier versions can crash Emacs.
11791 echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
11792 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6
11793 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
11794 echo $ECHO_N "(cached) $ECHO_C" >&6
11796 ac_check_lib_save_LIBS
=$LIBS
11797 LIBS
="-lungif $LIBS"
11798 cat >conftest.
$ac_ext <<_ACEOF
11801 cat confdefs.h
>>conftest.
$ac_ext
11802 cat >>conftest.
$ac_ext <<_ACEOF
11803 /* end confdefs.h. */
11805 /* Override any gcc2 internal prototype to avoid an error. */
11809 /* We use char because int might match the return type of a gcc2
11810 builtin and then its argument prototype would still apply. */
11811 char EGifPutExtensionLast ();
11815 EGifPutExtensionLast ();
11820 rm -f conftest.
$ac_objext conftest
$ac_exeext
11821 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11822 (eval $ac_link) 2>conftest.er1
11824 grep -v '^ *+' conftest.er1
>conftest.err
11826 cat conftest.err
>&5
11827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11828 (exit $ac_status); } &&
11829 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11831 (eval $ac_try) 2>&5
11833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11834 (exit $ac_status); }; } &&
11835 { ac_try
='test -s conftest$ac_exeext'
11836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11837 (eval $ac_try) 2>&5
11839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11840 (exit $ac_status); }; }; then
11841 ac_cv_lib_ungif_EGifPutExtensionLast
=yes
11843 echo "$as_me: failed program was:" >&5
11844 sed 's/^/| /' conftest.
$ac_ext >&5
11846 ac_cv_lib_ungif_EGifPutExtensionLast
=no
11848 rm -f conftest.err conftest.
$ac_objext \
11849 conftest
$ac_exeext conftest.
$ac_ext
11850 LIBS
=$ac_check_lib_save_LIBS
11852 echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
11853 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6
11854 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
11863 if test "${HAVE_GIF}" = "yes"; then
11865 cat >>confdefs.h
<<\_ACEOF
11872 ### Use Mac OS X Carbon API to implement GUI.
11874 if test "${with_carbon}" != "no"; then
11875 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
11876 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
11877 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
11878 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
11879 echo $ECHO_N "(cached) $ECHO_C" >&6
11881 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
11882 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
11884 # Is the header compilable?
11885 echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
11886 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6
11887 cat >conftest.
$ac_ext <<_ACEOF
11890 cat confdefs.h
>>conftest.
$ac_ext
11891 cat >>conftest.
$ac_ext <<_ACEOF
11892 /* end confdefs.h. */
11893 $ac_includes_default
11894 #include <Carbon/Carbon.h>
11896 rm -f conftest.
$ac_objext
11897 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11898 (eval $ac_compile) 2>conftest.er1
11900 grep -v '^ *+' conftest.er1
>conftest.err
11902 cat conftest.err
>&5
11903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11904 (exit $ac_status); } &&
11905 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11907 (eval $ac_try) 2>&5
11909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11910 (exit $ac_status); }; } &&
11911 { ac_try
='test -s conftest.$ac_objext'
11912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11913 (eval $ac_try) 2>&5
11915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11916 (exit $ac_status); }; }; then
11917 ac_header_compiler
=yes
11919 echo "$as_me: failed program was:" >&5
11920 sed 's/^/| /' conftest.
$ac_ext >&5
11922 ac_header_compiler
=no
11924 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11925 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11926 echo "${ECHO_T}$ac_header_compiler" >&6
11928 # Is the header present?
11929 echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
11930 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6
11931 cat >conftest.
$ac_ext <<_ACEOF
11934 cat confdefs.h
>>conftest.
$ac_ext
11935 cat >>conftest.
$ac_ext <<_ACEOF
11936 /* end confdefs.h. */
11937 #include <Carbon/Carbon.h>
11939 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11940 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11942 grep -v '^ *+' conftest.er1
>conftest.err
11944 cat conftest.err
>&5
11945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11946 (exit $ac_status); } >/dev
/null
; then
11947 if test -s conftest.err
; then
11948 ac_cpp_err
=$ac_c_preproc_warn_flag
11949 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
11956 if test -z "$ac_cpp_err"; then
11957 ac_header_preproc
=yes
11959 echo "$as_me: failed program was:" >&5
11960 sed 's/^/| /' conftest.
$ac_ext >&5
11962 ac_header_preproc
=no
11964 rm -f conftest.err conftest.
$ac_ext
11965 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11966 echo "${ECHO_T}$ac_header_preproc" >&6
11968 # So? What about this header?
11969 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11971 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
11972 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11973 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
11974 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
11975 ac_header_preproc
=yes
11978 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
11979 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
11980 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
11981 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
11982 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
11983 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
11984 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
11985 echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
11986 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
11987 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
11988 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
11989 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
11992 ## ------------------------------------------ ##
11993 ## Report this to the AC_PACKAGE_NAME lists. ##
11994 ## ------------------------------------------ ##
11997 sed "s/^/$as_me: WARNING: /" >&2
12000 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
12001 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
12002 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
12003 echo $ECHO_N "(cached) $ECHO_C" >&6
12005 ac_cv_header_Carbon_Carbon_h
=$ac_header_preproc
12007 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
12008 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
12011 if test $ac_cv_header_Carbon_Carbon_h = yes; then
12018 if test "${HAVE_CARBON}" = "yes"; then
12020 cat >>confdefs.h
<<\_ACEOF
12021 #define HAVE_CARBON 1
12025 ## Specify the install directory
12027 if test "${carbon_appdir_x}" != ""; then
12028 case ${carbon_appdir_x} in
12029 y | ye |
yes) carbon_appdir
=/Applications
;;
12030 * ) carbon_appdir
=${carbon_appdir_x} ;;
12033 # We also have mouse menus.
12037 ### Use session management (-lSM -lICE) if available
12039 if test "${HAVE_X11}" = "yes"; then
12040 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
12041 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
12042 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
12043 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
12044 echo $ECHO_N "(cached) $ECHO_C" >&6
12046 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
12047 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
12049 # Is the header compilable?
12050 echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
12051 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6
12052 cat >conftest.
$ac_ext <<_ACEOF
12055 cat confdefs.h
>>conftest.
$ac_ext
12056 cat >>conftest.
$ac_ext <<_ACEOF
12057 /* end confdefs.h. */
12058 $ac_includes_default
12059 #include <X11/SM/SMlib.h>
12061 rm -f conftest.
$ac_objext
12062 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12063 (eval $ac_compile) 2>conftest.er1
12065 grep -v '^ *+' conftest.er1
>conftest.err
12067 cat conftest.err
>&5
12068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12069 (exit $ac_status); } &&
12070 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12072 (eval $ac_try) 2>&5
12074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12075 (exit $ac_status); }; } &&
12076 { ac_try
='test -s conftest.$ac_objext'
12077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12078 (eval $ac_try) 2>&5
12080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12081 (exit $ac_status); }; }; then
12082 ac_header_compiler
=yes
12084 echo "$as_me: failed program was:" >&5
12085 sed 's/^/| /' conftest.
$ac_ext >&5
12087 ac_header_compiler
=no
12089 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12090 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12091 echo "${ECHO_T}$ac_header_compiler" >&6
12093 # Is the header present?
12094 echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
12095 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6
12096 cat >conftest.
$ac_ext <<_ACEOF
12099 cat confdefs.h
>>conftest.
$ac_ext
12100 cat >>conftest.
$ac_ext <<_ACEOF
12101 /* end confdefs.h. */
12102 #include <X11/SM/SMlib.h>
12104 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12105 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12107 grep -v '^ *+' conftest.er1
>conftest.err
12109 cat conftest.err
>&5
12110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12111 (exit $ac_status); } >/dev
/null
; then
12112 if test -s conftest.err
; then
12113 ac_cpp_err
=$ac_c_preproc_warn_flag
12114 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12121 if test -z "$ac_cpp_err"; then
12122 ac_header_preproc
=yes
12124 echo "$as_me: failed program was:" >&5
12125 sed 's/^/| /' conftest.
$ac_ext >&5
12127 ac_header_preproc
=no
12129 rm -f conftest.err conftest.
$ac_ext
12130 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12131 echo "${ECHO_T}$ac_header_preproc" >&6
12133 # So? What about this header?
12134 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12136 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
12137 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12138 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
12139 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
12140 ac_header_preproc
=yes
12143 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
12144 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
12145 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
12146 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
12147 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
12148 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
12149 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
12150 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
12151 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
12152 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
12153 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
12154 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
12157 ## ------------------------------------------ ##
12158 ## Report this to the AC_PACKAGE_NAME lists. ##
12159 ## ------------------------------------------ ##
12162 sed "s/^/$as_me: WARNING: /" >&2
12165 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
12166 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
12167 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
12168 echo $ECHO_N "(cached) $ECHO_C" >&6
12170 ac_cv_header_X11_SM_SMlib_h
=$ac_header_preproc
12172 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
12173 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
12176 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
12177 echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
12178 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6
12179 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
12180 echo $ECHO_N "(cached) $ECHO_C" >&6
12182 ac_check_lib_save_LIBS
=$LIBS
12183 LIBS
="-lSM -lICE $LIBS"
12184 cat >conftest.
$ac_ext <<_ACEOF
12187 cat confdefs.h
>>conftest.
$ac_ext
12188 cat >>conftest.
$ac_ext <<_ACEOF
12189 /* end confdefs.h. */
12191 /* Override any gcc2 internal prototype to avoid an error. */
12195 /* We use char because int might match the return type of a gcc2
12196 builtin and then its argument prototype would still apply. */
12197 char SmcOpenConnection ();
12201 SmcOpenConnection ();
12206 rm -f conftest.
$ac_objext conftest
$ac_exeext
12207 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12208 (eval $ac_link) 2>conftest.er1
12210 grep -v '^ *+' conftest.er1
>conftest.err
12212 cat conftest.err
>&5
12213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12214 (exit $ac_status); } &&
12215 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12217 (eval $ac_try) 2>&5
12219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12220 (exit $ac_status); }; } &&
12221 { ac_try
='test -s conftest$ac_exeext'
12222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12223 (eval $ac_try) 2>&5
12225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12226 (exit $ac_status); }; }; then
12227 ac_cv_lib_SM_SmcOpenConnection
=yes
12229 echo "$as_me: failed program was:" >&5
12230 sed 's/^/| /' conftest.
$ac_ext >&5
12232 ac_cv_lib_SM_SmcOpenConnection
=no
12234 rm -f conftest.err conftest.
$ac_objext \
12235 conftest
$ac_exeext conftest.
$ac_ext
12236 LIBS
=$ac_check_lib_save_LIBS
12238 echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
12239 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6
12240 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
12248 if test "${HAVE_X_SM}" = "yes"; then
12250 cat >>confdefs.h
<<\_ACEOF
12251 #define HAVE_X_SM 1
12256 *) LIBS
="-lSM -lICE $LIBS" ;;
12261 # If netdb.h doesn't declare h_errno, we must declare it by hand.
12262 echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
12263 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6
12264 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
12265 echo $ECHO_N "(cached) $ECHO_C" >&6
12267 cat >conftest.
$ac_ext <<_ACEOF
12270 cat confdefs.h
>>conftest.
$ac_ext
12271 cat >>conftest.
$ac_ext <<_ACEOF
12272 /* end confdefs.h. */
12282 rm -f conftest.
$ac_objext conftest
$ac_exeext
12283 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12284 (eval $ac_link) 2>conftest.er1
12286 grep -v '^ *+' conftest.er1
>conftest.err
12288 cat conftest.err
>&5
12289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12290 (exit $ac_status); } &&
12291 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12293 (eval $ac_try) 2>&5
12295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12296 (exit $ac_status); }; } &&
12297 { ac_try
='test -s conftest$ac_exeext'
12298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12299 (eval $ac_try) 2>&5
12301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12302 (exit $ac_status); }; }; then
12303 emacs_cv_netdb_declares_h_errno
=yes
12305 echo "$as_me: failed program was:" >&5
12306 sed 's/^/| /' conftest.
$ac_ext >&5
12308 emacs_cv_netdb_declares_h_errno
=no
12310 rm -f conftest.err conftest.
$ac_objext \
12311 conftest
$ac_exeext conftest.
$ac_ext
12313 echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
12314 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6
12315 if test $emacs_cv_netdb_declares_h_errno = yes; then
12317 cat >>confdefs.h
<<\_ACEOF
12318 #define HAVE_H_ERRNO 1
12323 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
12324 # for constant arguments. Useless!
12325 echo "$as_me:$LINENO: checking for working alloca.h" >&5
12326 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
12327 if test "${ac_cv_working_alloca_h+set}" = set; then
12328 echo $ECHO_N "(cached) $ECHO_C" >&6
12330 cat >conftest.
$ac_ext <<_ACEOF
12333 cat confdefs.h
>>conftest.
$ac_ext
12334 cat >>conftest.
$ac_ext <<_ACEOF
12335 /* end confdefs.h. */
12336 #include <alloca.h>
12340 char *p = (char *) alloca (2 * sizeof (int));
12345 rm -f conftest.
$ac_objext conftest
$ac_exeext
12346 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12347 (eval $ac_link) 2>conftest.er1
12349 grep -v '^ *+' conftest.er1
>conftest.err
12351 cat conftest.err
>&5
12352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12353 (exit $ac_status); } &&
12354 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12356 (eval $ac_try) 2>&5
12358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12359 (exit $ac_status); }; } &&
12360 { ac_try
='test -s conftest$ac_exeext'
12361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12362 (eval $ac_try) 2>&5
12364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12365 (exit $ac_status); }; }; then
12366 ac_cv_working_alloca_h
=yes
12368 echo "$as_me: failed program was:" >&5
12369 sed 's/^/| /' conftest.
$ac_ext >&5
12371 ac_cv_working_alloca_h
=no
12373 rm -f conftest.err conftest.
$ac_objext \
12374 conftest
$ac_exeext conftest.
$ac_ext
12376 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
12377 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
12378 if test $ac_cv_working_alloca_h = yes; then
12380 cat >>confdefs.h
<<\_ACEOF
12381 #define HAVE_ALLOCA_H 1
12386 echo "$as_me:$LINENO: checking for alloca" >&5
12387 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
12388 if test "${ac_cv_func_alloca_works+set}" = set; then
12389 echo $ECHO_N "(cached) $ECHO_C" >&6
12391 cat >conftest.
$ac_ext <<_ACEOF
12394 cat confdefs.h
>>conftest.
$ac_ext
12395 cat >>conftest.
$ac_ext <<_ACEOF
12396 /* end confdefs.h. */
12398 # define alloca __builtin_alloca
12401 # include <malloc.h>
12402 # define alloca _alloca
12405 # include <alloca.h>
12410 # ifndef alloca /* predefined by HP cc +Olibcalls */
12421 char *p = (char *) alloca (1);
12426 rm -f conftest.
$ac_objext conftest
$ac_exeext
12427 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12428 (eval $ac_link) 2>conftest.er1
12430 grep -v '^ *+' conftest.er1
>conftest.err
12432 cat conftest.err
>&5
12433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12434 (exit $ac_status); } &&
12435 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12437 (eval $ac_try) 2>&5
12439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12440 (exit $ac_status); }; } &&
12441 { ac_try
='test -s conftest$ac_exeext'
12442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12443 (eval $ac_try) 2>&5
12445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12446 (exit $ac_status); }; }; then
12447 ac_cv_func_alloca_works
=yes
12449 echo "$as_me: failed program was:" >&5
12450 sed 's/^/| /' conftest.
$ac_ext >&5
12452 ac_cv_func_alloca_works
=no
12454 rm -f conftest.err conftest.
$ac_objext \
12455 conftest
$ac_exeext conftest.
$ac_ext
12457 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
12458 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
12460 if test $ac_cv_func_alloca_works = yes; then
12462 cat >>confdefs.h
<<\_ACEOF
12463 #define HAVE_ALLOCA 1
12467 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
12468 # that cause trouble. Some versions do not even contain alloca or
12469 # contain a buggy version. If you still want to use their alloca,
12470 # use ar to extract alloca.o from them instead of compiling alloca.c.
12472 ALLOCA
=alloca.
$ac_objext
12474 cat >>confdefs.h
<<\_ACEOF
12479 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
12480 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
12481 if test "${ac_cv_os_cray+set}" = set; then
12482 echo $ECHO_N "(cached) $ECHO_C" >&6
12484 cat >conftest.
$ac_ext <<_ACEOF
12487 cat confdefs.h
>>conftest.
$ac_ext
12488 cat >>conftest.
$ac_ext <<_ACEOF
12489 /* end confdefs.h. */
12490 #if defined(CRAY) && ! defined(CRAY2)
12497 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12498 $EGREP "webecray" >/dev
/null
2>&1; then
12506 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
12507 echo "${ECHO_T}$ac_cv_os_cray" >&6
12508 if test $ac_cv_os_cray = yes; then
12509 for ac_func
in _getb67 GETB67 getb67
; do
12510 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12511 echo "$as_me:$LINENO: checking for $ac_func" >&5
12512 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12513 if eval "test \"\${$as_ac_var+set}\" = set"; then
12514 echo $ECHO_N "(cached) $ECHO_C" >&6
12516 cat >conftest.
$ac_ext <<_ACEOF
12519 cat confdefs.h
>>conftest.
$ac_ext
12520 cat >>conftest.
$ac_ext <<_ACEOF
12521 /* end confdefs.h. */
12522 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12523 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12524 #define $ac_func innocuous_$ac_func
12526 /* System header to define __stub macros and hopefully few prototypes,
12527 which can conflict with char $ac_func (); below.
12528 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12529 <limits.h> exists even on freestanding compilers. */
12532 # include <limits.h>
12534 # include <assert.h>
12539 /* Override any gcc2 internal prototype to avoid an error. */
12544 /* We use char because int might match the return type of a gcc2
12545 builtin and then its argument prototype would still apply. */
12547 /* The GNU C library defines this for functions which it implements
12548 to always fail with ENOSYS. Some functions are actually named
12549 something starting with __ and the normal name is an alias. */
12550 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12553 char (*f) () = $ac_func;
12562 return f != $ac_func;
12567 rm -f conftest.
$ac_objext conftest
$ac_exeext
12568 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12569 (eval $ac_link) 2>conftest.er1
12571 grep -v '^ *+' conftest.er1
>conftest.err
12573 cat conftest.err
>&5
12574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12575 (exit $ac_status); } &&
12576 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12578 (eval $ac_try) 2>&5
12580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12581 (exit $ac_status); }; } &&
12582 { ac_try
='test -s conftest$ac_exeext'
12583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12584 (eval $ac_try) 2>&5
12586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12587 (exit $ac_status); }; }; then
12588 eval "$as_ac_var=yes"
12590 echo "$as_me: failed program was:" >&5
12591 sed 's/^/| /' conftest.
$ac_ext >&5
12593 eval "$as_ac_var=no"
12595 rm -f conftest.err conftest.
$ac_objext \
12596 conftest
$ac_exeext conftest.
$ac_ext
12598 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12599 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12600 if test `eval echo '${'$as_ac_var'}'` = yes; then
12602 cat >>confdefs.h
<<_ACEOF
12603 #define CRAY_STACKSEG_END $ac_func
12612 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
12613 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
12614 if test "${ac_cv_c_stack_direction+set}" = set; then
12615 echo $ECHO_N "(cached) $ECHO_C" >&6
12617 if test "$cross_compiling" = yes; then
12618 ac_cv_c_stack_direction
=0
12620 cat >conftest.
$ac_ext <<_ACEOF
12623 cat confdefs.h
>>conftest.
$ac_ext
12624 cat >>conftest.
$ac_ext <<_ACEOF
12625 /* end confdefs.h. */
12627 find_stack_direction ()
12629 static char *addr = 0;
12634 return find_stack_direction ();
12637 return (&dummy > addr) ? 1 : -1;
12643 exit (find_stack_direction () < 0);
12646 rm -f conftest
$ac_exeext
12647 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12648 (eval $ac_link) 2>&5
12650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12651 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
12652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12653 (eval $ac_try) 2>&5
12655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12656 (exit $ac_status); }; }; then
12657 ac_cv_c_stack_direction
=1
12659 echo "$as_me: program exited with status $ac_status" >&5
12660 echo "$as_me: failed program was:" >&5
12661 sed 's/^/| /' conftest.
$ac_ext >&5
12663 ( exit $ac_status )
12664 ac_cv_c_stack_direction
=-1
12666 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
12669 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
12670 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
12672 cat >>confdefs.h
<<_ACEOF
12673 #define STACK_DIRECTION $ac_cv_c_stack_direction
12680 # fmod, logb, and frexp are found in -lm on most systems.
12681 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
12683 echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
12684 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
12685 if test "${ac_cv_lib_m_sqrt+set}" = set; then
12686 echo $ECHO_N "(cached) $ECHO_C" >&6
12688 ac_check_lib_save_LIBS
=$LIBS
12690 cat >conftest.
$ac_ext <<_ACEOF
12693 cat confdefs.h
>>conftest.
$ac_ext
12694 cat >>conftest.
$ac_ext <<_ACEOF
12695 /* end confdefs.h. */
12697 /* Override any gcc2 internal prototype to avoid an error. */
12701 /* We use char because int might match the return type of a gcc2
12702 builtin and then its argument prototype would still apply. */
12712 rm -f conftest.
$ac_objext conftest
$ac_exeext
12713 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12714 (eval $ac_link) 2>conftest.er1
12716 grep -v '^ *+' conftest.er1
>conftest.err
12718 cat conftest.err
>&5
12719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12720 (exit $ac_status); } &&
12721 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12723 (eval $ac_try) 2>&5
12725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12726 (exit $ac_status); }; } &&
12727 { ac_try
='test -s conftest$ac_exeext'
12728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12729 (eval $ac_try) 2>&5
12731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12732 (exit $ac_status); }; }; then
12733 ac_cv_lib_m_sqrt
=yes
12735 echo "$as_me: failed program was:" >&5
12736 sed 's/^/| /' conftest.
$ac_ext >&5
12738 ac_cv_lib_m_sqrt
=no
12740 rm -f conftest.err conftest.
$ac_objext \
12741 conftest
$ac_exeext conftest.
$ac_ext
12742 LIBS
=$ac_check_lib_save_LIBS
12744 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
12745 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
12746 if test $ac_cv_lib_m_sqrt = yes; then
12747 cat >>confdefs.h
<<_ACEOF
12748 #define HAVE_LIBM 1
12756 # Check for mail-locking functions in a "mail" library. Probably this should
12757 # have the same check as for liblockfile below.
12759 echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
12760 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6
12761 if test "${ac_cv_lib_mail_maillock+set}" = set; then
12762 echo $ECHO_N "(cached) $ECHO_C" >&6
12764 ac_check_lib_save_LIBS
=$LIBS
12765 LIBS
="-lmail $LIBS"
12766 cat >conftest.
$ac_ext <<_ACEOF
12769 cat confdefs.h
>>conftest.
$ac_ext
12770 cat >>conftest.
$ac_ext <<_ACEOF
12771 /* end confdefs.h. */
12773 /* Override any gcc2 internal prototype to avoid an error. */
12777 /* We use char because int might match the return type of a gcc2
12778 builtin and then its argument prototype would still apply. */
12788 rm -f conftest.
$ac_objext conftest
$ac_exeext
12789 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12790 (eval $ac_link) 2>conftest.er1
12792 grep -v '^ *+' conftest.er1
>conftest.err
12794 cat conftest.err
>&5
12795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12796 (exit $ac_status); } &&
12797 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12799 (eval $ac_try) 2>&5
12801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12802 (exit $ac_status); }; } &&
12803 { ac_try
='test -s conftest$ac_exeext'
12804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12805 (eval $ac_try) 2>&5
12807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12808 (exit $ac_status); }; }; then
12809 ac_cv_lib_mail_maillock
=yes
12811 echo "$as_me: failed program was:" >&5
12812 sed 's/^/| /' conftest.
$ac_ext >&5
12814 ac_cv_lib_mail_maillock
=no
12816 rm -f conftest.err conftest.
$ac_objext \
12817 conftest
$ac_exeext conftest.
$ac_ext
12818 LIBS
=$ac_check_lib_save_LIBS
12820 echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
12821 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6
12822 if test $ac_cv_lib_mail_maillock = yes; then
12823 cat >>confdefs.h
<<_ACEOF
12824 #define HAVE_LIBMAIL 1
12827 LIBS
="-lmail $LIBS"
12832 echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
12833 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6
12834 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
12835 echo $ECHO_N "(cached) $ECHO_C" >&6
12837 ac_check_lib_save_LIBS
=$LIBS
12838 LIBS
="-llockfile $LIBS"
12839 cat >conftest.
$ac_ext <<_ACEOF
12842 cat confdefs.h
>>conftest.
$ac_ext
12843 cat >>conftest.
$ac_ext <<_ACEOF
12844 /* end confdefs.h. */
12846 /* Override any gcc2 internal prototype to avoid an error. */
12850 /* We use char because int might match the return type of a gcc2
12851 builtin and then its argument prototype would still apply. */
12861 rm -f conftest.
$ac_objext conftest
$ac_exeext
12862 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12863 (eval $ac_link) 2>conftest.er1
12865 grep -v '^ *+' conftest.er1
>conftest.err
12867 cat conftest.err
>&5
12868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12869 (exit $ac_status); } &&
12870 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12872 (eval $ac_try) 2>&5
12874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12875 (exit $ac_status); }; } &&
12876 { ac_try
='test -s conftest$ac_exeext'
12877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12878 (eval $ac_try) 2>&5
12880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12881 (exit $ac_status); }; }; then
12882 ac_cv_lib_lockfile_maillock
=yes
12884 echo "$as_me: failed program was:" >&5
12885 sed 's/^/| /' conftest.
$ac_ext >&5
12887 ac_cv_lib_lockfile_maillock
=no
12889 rm -f conftest.err conftest.
$ac_objext \
12890 conftest
$ac_exeext conftest.
$ac_ext
12891 LIBS
=$ac_check_lib_save_LIBS
12893 echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
12894 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6
12895 if test $ac_cv_lib_lockfile_maillock = yes; then
12896 cat >>confdefs.h
<<_ACEOF
12897 #define HAVE_LIBLOCKFILE 1
12900 LIBS
="-llockfile $LIBS"
12904 # If we have the shared liblockfile, assume we must use it for mail
12905 # locking (e.g. Debian). If we couldn't link against liblockfile
12906 # (no liblockfile.a installed), ensure that we don't need to.
12907 if test "$ac_cv_lib_lockfile_maillock" = no
; then
12908 # Extract the first word of "liblockfile.so", so it can be a program name with args.
12909 set dummy liblockfile.so
; ac_word
=$2
12910 echo "$as_me:$LINENO: checking for $ac_word" >&5
12911 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12912 if test "${ac_cv_prog_liblockfile+set}" = set; then
12913 echo $ECHO_N "(cached) $ECHO_C" >&6
12915 if test -n "$liblockfile"; then
12916 ac_cv_prog_liblockfile
="$liblockfile" # Let the user override the test.
12918 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12919 as_dummy
="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
12920 for as_dir
in $as_dummy
12923 test -z "$as_dir" && as_dir
=.
12924 for ac_exec_ext
in '' $ac_executable_extensions; do
12925 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12926 ac_cv_prog_liblockfile
="yes"
12927 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12933 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile
="no"
12936 liblockfile
=$ac_cv_prog_liblockfile
12937 if test -n "$liblockfile"; then
12938 echo "$as_me:$LINENO: result: $liblockfile" >&5
12939 echo "${ECHO_T}$liblockfile" >&6
12941 echo "$as_me:$LINENO: result: no" >&5
12942 echo "${ECHO_T}no" >&6
12945 if test $ac_cv_prog_liblockfile = yes; then
12946 { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
12947 This probably means that movemail could lose mail.
12948 There may be a \`development' package to install containing liblockfile." >&5
12949 echo "$as_me: error: Shared liblockfile found but can't link against it.
12950 This probably means that movemail could lose mail.
12951 There may be a \`development' package to install containing liblockfile." >&2;}
12952 { (exit 1); exit 1; }; }
12957 for ac_func
in touchlock
12959 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12960 echo "$as_me:$LINENO: checking for $ac_func" >&5
12961 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12962 if eval "test \"\${$as_ac_var+set}\" = set"; then
12963 echo $ECHO_N "(cached) $ECHO_C" >&6
12965 cat >conftest.
$ac_ext <<_ACEOF
12968 cat confdefs.h
>>conftest.
$ac_ext
12969 cat >>conftest.
$ac_ext <<_ACEOF
12970 /* end confdefs.h. */
12971 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12972 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12973 #define $ac_func innocuous_$ac_func
12975 /* System header to define __stub macros and hopefully few prototypes,
12976 which can conflict with char $ac_func (); below.
12977 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12978 <limits.h> exists even on freestanding compilers. */
12981 # include <limits.h>
12983 # include <assert.h>
12988 /* Override any gcc2 internal prototype to avoid an error. */
12993 /* We use char because int might match the return type of a gcc2
12994 builtin and then its argument prototype would still apply. */
12996 /* The GNU C library defines this for functions which it implements
12997 to always fail with ENOSYS. Some functions are actually named
12998 something starting with __ and the normal name is an alias. */
12999 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13002 char (*f) () = $ac_func;
13011 return f != $ac_func;
13016 rm -f conftest.
$ac_objext conftest
$ac_exeext
13017 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13018 (eval $ac_link) 2>conftest.er1
13020 grep -v '^ *+' conftest.er1
>conftest.err
13022 cat conftest.err
>&5
13023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13024 (exit $ac_status); } &&
13025 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13027 (eval $ac_try) 2>&5
13029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13030 (exit $ac_status); }; } &&
13031 { ac_try
='test -s conftest$ac_exeext'
13032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13033 (eval $ac_try) 2>&5
13035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13036 (exit $ac_status); }; }; then
13037 eval "$as_ac_var=yes"
13039 echo "$as_me: failed program was:" >&5
13040 sed 's/^/| /' conftest.
$ac_ext >&5
13042 eval "$as_ac_var=no"
13044 rm -f conftest.err conftest.
$ac_objext \
13045 conftest
$ac_exeext conftest.
$ac_ext
13047 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13048 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13049 if test `eval echo '${'$as_ac_var'}'` = yes; then
13050 cat >>confdefs.h
<<_ACEOF
13051 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13058 for ac_header
in maillock.h
13060 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13061 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13062 echo "$as_me:$LINENO: checking for $ac_header" >&5
13063 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13064 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13065 echo $ECHO_N "(cached) $ECHO_C" >&6
13067 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13068 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13070 # Is the header compilable?
13071 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13072 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13073 cat >conftest.
$ac_ext <<_ACEOF
13076 cat confdefs.h
>>conftest.
$ac_ext
13077 cat >>conftest.
$ac_ext <<_ACEOF
13078 /* end confdefs.h. */
13079 $ac_includes_default
13080 #include <$ac_header>
13082 rm -f conftest.
$ac_objext
13083 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13084 (eval $ac_compile) 2>conftest.er1
13086 grep -v '^ *+' conftest.er1
>conftest.err
13088 cat conftest.err
>&5
13089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13090 (exit $ac_status); } &&
13091 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13093 (eval $ac_try) 2>&5
13095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13096 (exit $ac_status); }; } &&
13097 { ac_try
='test -s conftest.$ac_objext'
13098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13099 (eval $ac_try) 2>&5
13101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13102 (exit $ac_status); }; }; then
13103 ac_header_compiler
=yes
13105 echo "$as_me: failed program was:" >&5
13106 sed 's/^/| /' conftest.
$ac_ext >&5
13108 ac_header_compiler
=no
13110 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13111 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13112 echo "${ECHO_T}$ac_header_compiler" >&6
13114 # Is the header present?
13115 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13116 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13117 cat >conftest.
$ac_ext <<_ACEOF
13120 cat confdefs.h
>>conftest.
$ac_ext
13121 cat >>conftest.
$ac_ext <<_ACEOF
13122 /* end confdefs.h. */
13123 #include <$ac_header>
13125 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13126 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
13128 grep -v '^ *+' conftest.er1
>conftest.err
13130 cat conftest.err
>&5
13131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13132 (exit $ac_status); } >/dev
/null
; then
13133 if test -s conftest.err
; then
13134 ac_cpp_err
=$ac_c_preproc_warn_flag
13135 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
13142 if test -z "$ac_cpp_err"; then
13143 ac_header_preproc
=yes
13145 echo "$as_me: failed program was:" >&5
13146 sed 's/^/| /' conftest.
$ac_ext >&5
13148 ac_header_preproc
=no
13150 rm -f conftest.err conftest.
$ac_ext
13151 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13152 echo "${ECHO_T}$ac_header_preproc" >&6
13154 # So? What about this header?
13155 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13157 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13158 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13159 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13160 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13161 ac_header_preproc
=yes
13164 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13165 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13166 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13167 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13168 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13169 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13170 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13171 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13172 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13173 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13174 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13175 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13178 ## ------------------------------------------ ##
13179 ## Report this to the AC_PACKAGE_NAME lists. ##
13180 ## ------------------------------------------ ##
13183 sed "s/^/$as_me: WARNING: /" >&2
13186 echo "$as_me:$LINENO: checking for $ac_header" >&5
13187 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13188 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13189 echo $ECHO_N "(cached) $ECHO_C" >&6
13191 eval "$as_ac_Header=\$ac_header_preproc"
13193 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13194 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13197 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13198 cat >>confdefs.h
<<_ACEOF
13199 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13273 for ac_func
in gethostname getdomainname dup2 \
13274 rename closedir mkdir
rmdir sysinfo \
13275 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
13276 strerror fpathconf
select mktime euidaccess getpagesize tzset setlocale \
13277 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
13278 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
13279 sendto recvfrom getsockopt setsockopt getsockname getpeername \
13280 gai_strerror mkstemp getline getdelim mremap memmove fsync bzero \
13281 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign
13283 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13284 echo "$as_me:$LINENO: checking for $ac_func" >&5
13285 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13286 if eval "test \"\${$as_ac_var+set}\" = set"; then
13287 echo $ECHO_N "(cached) $ECHO_C" >&6
13289 cat >conftest.
$ac_ext <<_ACEOF
13292 cat confdefs.h
>>conftest.
$ac_ext
13293 cat >>conftest.
$ac_ext <<_ACEOF
13294 /* end confdefs.h. */
13295 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13296 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13297 #define $ac_func innocuous_$ac_func
13299 /* System header to define __stub macros and hopefully few prototypes,
13300 which can conflict with char $ac_func (); below.
13301 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13302 <limits.h> exists even on freestanding compilers. */
13305 # include <limits.h>
13307 # include <assert.h>
13312 /* Override any gcc2 internal prototype to avoid an error. */
13317 /* We use char because int might match the return type of a gcc2
13318 builtin and then its argument prototype would still apply. */
13320 /* The GNU C library defines this for functions which it implements
13321 to always fail with ENOSYS. Some functions are actually named
13322 something starting with __ and the normal name is an alias. */
13323 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13326 char (*f) () = $ac_func;
13335 return f != $ac_func;
13340 rm -f conftest.
$ac_objext conftest
$ac_exeext
13341 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13342 (eval $ac_link) 2>conftest.er1
13344 grep -v '^ *+' conftest.er1
>conftest.err
13346 cat conftest.err
>&5
13347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13348 (exit $ac_status); } &&
13349 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13351 (eval $ac_try) 2>&5
13353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13354 (exit $ac_status); }; } &&
13355 { ac_try
='test -s conftest$ac_exeext'
13356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13357 (eval $ac_try) 2>&5
13359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13360 (exit $ac_status); }; }; then
13361 eval "$as_ac_var=yes"
13363 echo "$as_me: failed program was:" >&5
13364 sed 's/^/| /' conftest.
$ac_ext >&5
13366 eval "$as_ac_var=no"
13368 rm -f conftest.err conftest.
$ac_objext \
13369 conftest
$ac_exeext conftest.
$ac_ext
13371 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13372 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13373 if test `eval echo '${'$as_ac_var'}'` = yes; then
13374 cat >>confdefs.h
<<_ACEOF
13375 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13383 for ac_header
in sys
/un.h
13385 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13386 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13387 echo "$as_me:$LINENO: checking for $ac_header" >&5
13388 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13389 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13390 echo $ECHO_N "(cached) $ECHO_C" >&6
13392 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13393 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13395 # Is the header compilable?
13396 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13397 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13398 cat >conftest.
$ac_ext <<_ACEOF
13401 cat confdefs.h
>>conftest.
$ac_ext
13402 cat >>conftest.
$ac_ext <<_ACEOF
13403 /* end confdefs.h. */
13404 $ac_includes_default
13405 #include <$ac_header>
13407 rm -f conftest.
$ac_objext
13408 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13409 (eval $ac_compile) 2>conftest.er1
13411 grep -v '^ *+' conftest.er1
>conftest.err
13413 cat conftest.err
>&5
13414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13415 (exit $ac_status); } &&
13416 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13418 (eval $ac_try) 2>&5
13420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13421 (exit $ac_status); }; } &&
13422 { ac_try
='test -s conftest.$ac_objext'
13423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13424 (eval $ac_try) 2>&5
13426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13427 (exit $ac_status); }; }; then
13428 ac_header_compiler
=yes
13430 echo "$as_me: failed program was:" >&5
13431 sed 's/^/| /' conftest.
$ac_ext >&5
13433 ac_header_compiler
=no
13435 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13436 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13437 echo "${ECHO_T}$ac_header_compiler" >&6
13439 # Is the header present?
13440 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13441 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13442 cat >conftest.
$ac_ext <<_ACEOF
13445 cat confdefs.h
>>conftest.
$ac_ext
13446 cat >>conftest.
$ac_ext <<_ACEOF
13447 /* end confdefs.h. */
13448 #include <$ac_header>
13450 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13451 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
13453 grep -v '^ *+' conftest.er1
>conftest.err
13455 cat conftest.err
>&5
13456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13457 (exit $ac_status); } >/dev
/null
; then
13458 if test -s conftest.err
; then
13459 ac_cpp_err
=$ac_c_preproc_warn_flag
13460 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
13467 if test -z "$ac_cpp_err"; then
13468 ac_header_preproc
=yes
13470 echo "$as_me: failed program was:" >&5
13471 sed 's/^/| /' conftest.
$ac_ext >&5
13473 ac_header_preproc
=no
13475 rm -f conftest.err conftest.
$ac_ext
13476 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13477 echo "${ECHO_T}$ac_header_preproc" >&6
13479 # So? What about this header?
13480 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13482 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13483 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13484 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13485 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13486 ac_header_preproc
=yes
13489 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13490 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13491 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13492 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13493 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13494 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13495 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13496 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13497 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13498 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13499 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13500 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13503 ## ------------------------------------------ ##
13504 ## Report this to the AC_PACKAGE_NAME lists. ##
13505 ## ------------------------------------------ ##
13508 sed "s/^/$as_me: WARNING: /" >&2
13511 echo "$as_me:$LINENO: checking for $ac_header" >&5
13512 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13513 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13514 echo $ECHO_N "(cached) $ECHO_C" >&6
13516 eval "$as_ac_Header=\$ac_header_preproc"
13518 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13519 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13522 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13523 cat >>confdefs.h
<<_ACEOF
13524 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13535 for ac_header
in stdlib.h sys
/time.h unistd.h
13537 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13538 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13539 echo "$as_me:$LINENO: checking for $ac_header" >&5
13540 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13541 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13542 echo $ECHO_N "(cached) $ECHO_C" >&6
13544 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13545 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13547 # Is the header compilable?
13548 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13549 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13550 cat >conftest.
$ac_ext <<_ACEOF
13553 cat confdefs.h
>>conftest.
$ac_ext
13554 cat >>conftest.
$ac_ext <<_ACEOF
13555 /* end confdefs.h. */
13556 $ac_includes_default
13557 #include <$ac_header>
13559 rm -f conftest.
$ac_objext
13560 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13561 (eval $ac_compile) 2>conftest.er1
13563 grep -v '^ *+' conftest.er1
>conftest.err
13565 cat conftest.err
>&5
13566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13567 (exit $ac_status); } &&
13568 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13570 (eval $ac_try) 2>&5
13572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13573 (exit $ac_status); }; } &&
13574 { ac_try
='test -s conftest.$ac_objext'
13575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13576 (eval $ac_try) 2>&5
13578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13579 (exit $ac_status); }; }; then
13580 ac_header_compiler
=yes
13582 echo "$as_me: failed program was:" >&5
13583 sed 's/^/| /' conftest.
$ac_ext >&5
13585 ac_header_compiler
=no
13587 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13588 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13589 echo "${ECHO_T}$ac_header_compiler" >&6
13591 # Is the header present?
13592 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13593 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13594 cat >conftest.
$ac_ext <<_ACEOF
13597 cat confdefs.h
>>conftest.
$ac_ext
13598 cat >>conftest.
$ac_ext <<_ACEOF
13599 /* end confdefs.h. */
13600 #include <$ac_header>
13602 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13603 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
13605 grep -v '^ *+' conftest.er1
>conftest.err
13607 cat conftest.err
>&5
13608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13609 (exit $ac_status); } >/dev
/null
; then
13610 if test -s conftest.err
; then
13611 ac_cpp_err
=$ac_c_preproc_warn_flag
13612 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
13619 if test -z "$ac_cpp_err"; then
13620 ac_header_preproc
=yes
13622 echo "$as_me: failed program was:" >&5
13623 sed 's/^/| /' conftest.
$ac_ext >&5
13625 ac_header_preproc
=no
13627 rm -f conftest.err conftest.
$ac_ext
13628 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13629 echo "${ECHO_T}$ac_header_preproc" >&6
13631 # So? What about this header?
13632 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13634 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13635 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13636 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13637 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13638 ac_header_preproc
=yes
13641 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13642 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13643 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13644 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13645 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13646 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13647 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13648 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13649 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13650 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13651 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13652 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13655 ## ------------------------------------------ ##
13656 ## Report this to the AC_PACKAGE_NAME lists. ##
13657 ## ------------------------------------------ ##
13660 sed "s/^/$as_me: WARNING: /" >&2
13663 echo "$as_me:$LINENO: checking for $ac_header" >&5
13664 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13665 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13666 echo $ECHO_N "(cached) $ECHO_C" >&6
13668 eval "$as_ac_Header=\$ac_header_preproc"
13670 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13671 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13674 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13675 cat >>confdefs.h
<<_ACEOF
13676 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13684 for ac_func
in alarm
13686 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13687 echo "$as_me:$LINENO: checking for $ac_func" >&5
13688 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13689 if eval "test \"\${$as_ac_var+set}\" = set"; then
13690 echo $ECHO_N "(cached) $ECHO_C" >&6
13692 cat >conftest.
$ac_ext <<_ACEOF
13695 cat confdefs.h
>>conftest.
$ac_ext
13696 cat >>conftest.
$ac_ext <<_ACEOF
13697 /* end confdefs.h. */
13698 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13699 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13700 #define $ac_func innocuous_$ac_func
13702 /* System header to define __stub macros and hopefully few prototypes,
13703 which can conflict with char $ac_func (); below.
13704 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13705 <limits.h> exists even on freestanding compilers. */
13708 # include <limits.h>
13710 # include <assert.h>
13715 /* Override any gcc2 internal prototype to avoid an error. */
13720 /* We use char because int might match the return type of a gcc2
13721 builtin and then its argument prototype would still apply. */
13723 /* The GNU C library defines this for functions which it implements
13724 to always fail with ENOSYS. Some functions are actually named
13725 something starting with __ and the normal name is an alias. */
13726 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13729 char (*f) () = $ac_func;
13738 return f != $ac_func;
13743 rm -f conftest.
$ac_objext conftest
$ac_exeext
13744 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13745 (eval $ac_link) 2>conftest.er1
13747 grep -v '^ *+' conftest.er1
>conftest.err
13749 cat conftest.err
>&5
13750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13751 (exit $ac_status); } &&
13752 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13754 (eval $ac_try) 2>&5
13756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13757 (exit $ac_status); }; } &&
13758 { ac_try
='test -s conftest$ac_exeext'
13759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13760 (eval $ac_try) 2>&5
13762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13763 (exit $ac_status); }; }; then
13764 eval "$as_ac_var=yes"
13766 echo "$as_me: failed program was:" >&5
13767 sed 's/^/| /' conftest.
$ac_ext >&5
13769 eval "$as_ac_var=no"
13771 rm -f conftest.err conftest.
$ac_objext \
13772 conftest
$ac_exeext conftest.
$ac_ext
13774 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13775 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13776 if test `eval echo '${'$as_ac_var'}'` = yes; then
13777 cat >>confdefs.h
<<_ACEOF
13778 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13784 echo "$as_me:$LINENO: checking for working mktime" >&5
13785 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
13786 if test "${ac_cv_func_working_mktime+set}" = set; then
13787 echo $ECHO_N "(cached) $ECHO_C" >&6
13789 if test "$cross_compiling" = yes; then
13790 ac_cv_func_working_mktime
=no
13792 cat >conftest.
$ac_ext <<_ACEOF
13795 cat confdefs.h
>>conftest.
$ac_ext
13796 cat >>conftest.
$ac_ext <<_ACEOF
13797 /* end confdefs.h. */
13798 /* Test program from Paul Eggert and Tony Leneis. */
13799 #if TIME_WITH_SYS_TIME
13800 # include <sys/time.h>
13803 # if HAVE_SYS_TIME_H
13804 # include <sys/time.h>
13811 # include <stdlib.h>
13815 # include <unistd.h>
13819 # define alarm(X) /* empty */
13822 /* Work around redefinition to rpl_putenv by other config tests. */
13825 static time_t time_t_max;
13826 static time_t time_t_min;
13828 /* Values we'll use to set the TZ environment variable. */
13829 static char *tz_strings[] = {
13830 (char *) 0, "TZ=GMT0", "TZ=JST-9",
13831 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
13833 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
13835 /* Fail if mktime fails to convert a date in the spring-forward gap.
13836 Based on a problem report from Andreas Jaeger. */
13838 spring_forward_gap ()
13840 /* glibc (up to about 1998-10-07) failed this test. */
13843 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
13844 instead of "TZ=America/Vancouver" in order to detect the bug even
13845 on systems that don't support the Olson extension, or don't have the
13846 full zoneinfo tables installed. */
13847 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
13856 if (mktime (&tm) == (time_t)-1)
13865 if ((lt = localtime (&now)) && mktime (lt) != now)
13873 mktime_test1 (now);
13874 mktime_test1 ((time_t) (time_t_max - now));
13875 mktime_test1 ((time_t) (time_t_min + now));
13881 /* Based on code from Ariel Faigon. */
13891 if (tm.tm_mon != 2 || tm.tm_mday != 31)
13901 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
13902 now = mktime (&tm);
13903 if (now != (time_t) -1)
13905 struct tm *lt = localtime (&now);
13907 && lt->tm_year == tm.tm_year
13908 && lt->tm_mon == tm.tm_mon
13909 && lt->tm_mday == tm.tm_mday
13910 && lt->tm_hour == tm.tm_hour
13911 && lt->tm_min == tm.tm_min
13912 && lt->tm_sec == tm.tm_sec
13913 && lt->tm_yday == tm.tm_yday
13914 && lt->tm_wday == tm.tm_wday
13915 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
13916 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
13927 /* This test makes some buggy mktime implementations loop.
13928 Give up after 60 seconds; a mktime slower than that
13929 isn't worth using anyway. */
13932 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
13935 if ((time_t) -1 < 0)
13936 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
13938 delta = time_t_max / 997; /* a suitable prime number */
13939 for (i = 0; i < N_STRINGS; i++)
13942 putenv (tz_strings[i]);
13944 for (t = 0; t <= time_t_max - delta; t += delta)
13946 mktime_test ((time_t) 1);
13947 mktime_test ((time_t) (60 * 60));
13948 mktime_test ((time_t) (60 * 60 * 24));
13950 for (j = 1; 0 < j; j *= 2)
13952 bigtime_test (j - 1);
13955 spring_forward_gap ();
13959 rm -f conftest
$ac_exeext
13960 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13961 (eval $ac_link) 2>&5
13963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13964 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
13965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13966 (eval $ac_try) 2>&5
13968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13969 (exit $ac_status); }; }; then
13970 ac_cv_func_working_mktime
=yes
13972 echo "$as_me: program exited with status $ac_status" >&5
13973 echo "$as_me: failed program was:" >&5
13974 sed 's/^/| /' conftest.
$ac_ext >&5
13976 ( exit $ac_status )
13977 ac_cv_func_working_mktime
=no
13979 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
13982 echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
13983 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
13984 if test $ac_cv_func_working_mktime = no
; then
13986 "mktime.$ac_objext" | \
13987 *" mktime.$ac_objext" | \
13988 "mktime.$ac_objext "* | \
13989 *" mktime.$ac_objext "* ) ;;
13990 *) LIBOBJS
="$LIBOBJS mktime.$ac_objext" ;;
13995 if test "$ac_cv_func_working_mktime" = no
; then
13997 cat >>confdefs.h
<<\_ACEOF
13998 #define BROKEN_MKTIME 1
14003 ac_have_func
=no
# yes means we've found a way to get the load average.
14005 # Make sure getloadavg.c is where it belongs, at configure-time.
14006 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
14007 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
14008 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
14009 { (exit 1); exit 1; }; }
14013 # Check for getloadavg, but be sure not to touch the cache variable.
14014 (echo "$as_me:$LINENO: checking for getloadavg" >&5
14015 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6
14016 if test "${ac_cv_func_getloadavg+set}" = set; then
14017 echo $ECHO_N "(cached) $ECHO_C" >&6
14019 cat >conftest.
$ac_ext <<_ACEOF
14022 cat confdefs.h
>>conftest.
$ac_ext
14023 cat >>conftest.
$ac_ext <<_ACEOF
14024 /* end confdefs.h. */
14025 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
14026 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14027 #define getloadavg innocuous_getloadavg
14029 /* System header to define __stub macros and hopefully few prototypes,
14030 which can conflict with char getloadavg (); below.
14031 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14032 <limits.h> exists even on freestanding compilers. */
14035 # include <limits.h>
14037 # include <assert.h>
14042 /* Override any gcc2 internal prototype to avoid an error. */
14047 /* We use char because int might match the return type of a gcc2
14048 builtin and then its argument prototype would still apply. */
14049 char getloadavg ();
14050 /* The GNU C library defines this for functions which it implements
14051 to always fail with ENOSYS. Some functions are actually named
14052 something starting with __ and the normal name is an alias. */
14053 #if defined (__stub_getloadavg) || defined (__stub___getloadavg)
14056 char (*f) () = getloadavg;
14065 return f != getloadavg;
14070 rm -f conftest.
$ac_objext conftest
$ac_exeext
14071 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14072 (eval $ac_link) 2>conftest.er1
14074 grep -v '^ *+' conftest.er1
>conftest.err
14076 cat conftest.err
>&5
14077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14078 (exit $ac_status); } &&
14079 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14081 (eval $ac_try) 2>&5
14083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14084 (exit $ac_status); }; } &&
14085 { ac_try
='test -s conftest$ac_exeext'
14086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14087 (eval $ac_try) 2>&5
14089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14090 (exit $ac_status); }; }; then
14091 ac_cv_func_getloadavg
=yes
14093 echo "$as_me: failed program was:" >&5
14094 sed 's/^/| /' conftest.
$ac_ext >&5
14096 ac_cv_func_getloadavg
=no
14098 rm -f conftest.err conftest.
$ac_objext \
14099 conftest
$ac_exeext conftest.
$ac_ext
14101 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
14102 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6
14103 if test $ac_cv_func_getloadavg = yes; then
14108 ) && ac_have_func
=yes
14110 # On HPUX9, an unprivileged user can get load averages through this function.
14112 for ac_func
in pstat_getdynamic
14114 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14115 echo "$as_me:$LINENO: checking for $ac_func" >&5
14116 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14117 if eval "test \"\${$as_ac_var+set}\" = set"; then
14118 echo $ECHO_N "(cached) $ECHO_C" >&6
14120 cat >conftest.
$ac_ext <<_ACEOF
14123 cat confdefs.h
>>conftest.
$ac_ext
14124 cat >>conftest.
$ac_ext <<_ACEOF
14125 /* end confdefs.h. */
14126 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14127 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14128 #define $ac_func innocuous_$ac_func
14130 /* System header to define __stub macros and hopefully few prototypes,
14131 which can conflict with char $ac_func (); below.
14132 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14133 <limits.h> exists even on freestanding compilers. */
14136 # include <limits.h>
14138 # include <assert.h>
14143 /* Override any gcc2 internal prototype to avoid an error. */
14148 /* We use char because int might match the return type of a gcc2
14149 builtin and then its argument prototype would still apply. */
14151 /* The GNU C library defines this for functions which it implements
14152 to always fail with ENOSYS. Some functions are actually named
14153 something starting with __ and the normal name is an alias. */
14154 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14157 char (*f) () = $ac_func;
14166 return f != $ac_func;
14171 rm -f conftest.
$ac_objext conftest
$ac_exeext
14172 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14173 (eval $ac_link) 2>conftest.er1
14175 grep -v '^ *+' conftest.er1
>conftest.err
14177 cat conftest.err
>&5
14178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14179 (exit $ac_status); } &&
14180 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14182 (eval $ac_try) 2>&5
14184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14185 (exit $ac_status); }; } &&
14186 { ac_try
='test -s conftest$ac_exeext'
14187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14188 (eval $ac_try) 2>&5
14190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14191 (exit $ac_status); }; }; then
14192 eval "$as_ac_var=yes"
14194 echo "$as_me: failed program was:" >&5
14195 sed 's/^/| /' conftest.
$ac_ext >&5
14197 eval "$as_ac_var=no"
14199 rm -f conftest.err conftest.
$ac_objext \
14200 conftest
$ac_exeext conftest.
$ac_ext
14202 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14203 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14204 if test `eval echo '${'$as_ac_var'}'` = yes; then
14205 cat >>confdefs.h
<<_ACEOF
14206 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14213 # Solaris has libkstat which does not require root.
14215 echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
14216 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6
14217 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
14218 echo $ECHO_N "(cached) $ECHO_C" >&6
14220 ac_check_lib_save_LIBS
=$LIBS
14221 LIBS
="-lkstat $LIBS"
14222 cat >conftest.
$ac_ext <<_ACEOF
14225 cat confdefs.h
>>conftest.
$ac_ext
14226 cat >>conftest.
$ac_ext <<_ACEOF
14227 /* end confdefs.h. */
14229 /* Override any gcc2 internal prototype to avoid an error. */
14233 /* We use char because int might match the return type of a gcc2
14234 builtin and then its argument prototype would still apply. */
14235 char kstat_open ();
14244 rm -f conftest.
$ac_objext conftest
$ac_exeext
14245 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14246 (eval $ac_link) 2>conftest.er1
14248 grep -v '^ *+' conftest.er1
>conftest.err
14250 cat conftest.err
>&5
14251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14252 (exit $ac_status); } &&
14253 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14255 (eval $ac_try) 2>&5
14257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14258 (exit $ac_status); }; } &&
14259 { ac_try
='test -s conftest$ac_exeext'
14260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14261 (eval $ac_try) 2>&5
14263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14264 (exit $ac_status); }; }; then
14265 ac_cv_lib_kstat_kstat_open
=yes
14267 echo "$as_me: failed program was:" >&5
14268 sed 's/^/| /' conftest.
$ac_ext >&5
14270 ac_cv_lib_kstat_kstat_open
=no
14272 rm -f conftest.err conftest.
$ac_objext \
14273 conftest
$ac_exeext conftest.
$ac_ext
14274 LIBS
=$ac_check_lib_save_LIBS
14276 echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
14277 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6
14278 if test $ac_cv_lib_kstat_kstat_open = yes; then
14279 cat >>confdefs.h
<<_ACEOF
14280 #define HAVE_LIBKSTAT 1
14283 LIBS
="-lkstat $LIBS"
14287 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func
=yes
14289 # Some systems with -lutil have (and need) -lkvm as well, some do not.
14290 # On Solaris, -lkvm requires nlist from -lelf, so check that first
14291 # to get the right answer into the cache.
14292 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
14293 if test $ac_have_func = no
; then
14294 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
14295 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
14296 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
14297 echo $ECHO_N "(cached) $ECHO_C" >&6
14299 ac_check_lib_save_LIBS
=$LIBS
14301 cat >conftest.
$ac_ext <<_ACEOF
14304 cat confdefs.h
>>conftest.
$ac_ext
14305 cat >>conftest.
$ac_ext <<_ACEOF
14306 /* end confdefs.h. */
14308 /* Override any gcc2 internal prototype to avoid an error. */
14312 /* We use char because int might match the return type of a gcc2
14313 builtin and then its argument prototype would still apply. */
14323 rm -f conftest.
$ac_objext conftest
$ac_exeext
14324 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14325 (eval $ac_link) 2>conftest.er1
14327 grep -v '^ *+' conftest.er1
>conftest.err
14329 cat conftest.err
>&5
14330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14331 (exit $ac_status); } &&
14332 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14334 (eval $ac_try) 2>&5
14336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14337 (exit $ac_status); }; } &&
14338 { ac_try
='test -s conftest$ac_exeext'
14339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14340 (eval $ac_try) 2>&5
14342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14343 (exit $ac_status); }; }; then
14344 ac_cv_lib_elf_elf_begin
=yes
14346 echo "$as_me: failed program was:" >&5
14347 sed 's/^/| /' conftest.
$ac_ext >&5
14349 ac_cv_lib_elf_elf_begin
=no
14351 rm -f conftest.err conftest.
$ac_objext \
14352 conftest
$ac_exeext conftest.
$ac_ext
14353 LIBS
=$ac_check_lib_save_LIBS
14355 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
14356 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
14357 if test $ac_cv_lib_elf_elf_begin = yes; then
14362 if test $ac_have_func = no
; then
14363 echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
14364 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6
14365 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
14366 echo $ECHO_N "(cached) $ECHO_C" >&6
14368 ac_check_lib_save_LIBS
=$LIBS
14370 cat >conftest.
$ac_ext <<_ACEOF
14373 cat confdefs.h
>>conftest.
$ac_ext
14374 cat >>conftest.
$ac_ext <<_ACEOF
14375 /* end confdefs.h. */
14377 /* Override any gcc2 internal prototype to avoid an error. */
14381 /* We use char because int might match the return type of a gcc2
14382 builtin and then its argument prototype would still apply. */
14392 rm -f conftest.
$ac_objext conftest
$ac_exeext
14393 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14394 (eval $ac_link) 2>conftest.er1
14396 grep -v '^ *+' conftest.er1
>conftest.err
14398 cat conftest.err
>&5
14399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14400 (exit $ac_status); } &&
14401 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14403 (eval $ac_try) 2>&5
14405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14406 (exit $ac_status); }; } &&
14407 { ac_try
='test -s conftest$ac_exeext'
14408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14409 (eval $ac_try) 2>&5
14411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14412 (exit $ac_status); }; }; then
14413 ac_cv_lib_kvm_kvm_open
=yes
14415 echo "$as_me: failed program was:" >&5
14416 sed 's/^/| /' conftest.
$ac_ext >&5
14418 ac_cv_lib_kvm_kvm_open
=no
14420 rm -f conftest.err conftest.
$ac_objext \
14421 conftest
$ac_exeext conftest.
$ac_ext
14422 LIBS
=$ac_check_lib_save_LIBS
14424 echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
14425 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6
14426 if test $ac_cv_lib_kvm_kvm_open = yes; then
14430 # Check for the 4.4BSD definition of getloadavg.
14431 echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
14432 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6
14433 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
14434 echo $ECHO_N "(cached) $ECHO_C" >&6
14436 ac_check_lib_save_LIBS
=$LIBS
14437 LIBS
="-lutil $LIBS"
14438 cat >conftest.
$ac_ext <<_ACEOF
14441 cat confdefs.h
>>conftest.
$ac_ext
14442 cat >>conftest.
$ac_ext <<_ACEOF
14443 /* end confdefs.h. */
14445 /* Override any gcc2 internal prototype to avoid an error. */
14449 /* We use char because int might match the return type of a gcc2
14450 builtin and then its argument prototype would still apply. */
14451 char getloadavg ();
14460 rm -f conftest.
$ac_objext conftest
$ac_exeext
14461 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14462 (eval $ac_link) 2>conftest.er1
14464 grep -v '^ *+' conftest.er1
>conftest.err
14466 cat conftest.err
>&5
14467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14468 (exit $ac_status); } &&
14469 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14471 (eval $ac_try) 2>&5
14473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14474 (exit $ac_status); }; } &&
14475 { ac_try
='test -s conftest$ac_exeext'
14476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14477 (eval $ac_try) 2>&5
14479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14480 (exit $ac_status); }; }; then
14481 ac_cv_lib_util_getloadavg
=yes
14483 echo "$as_me: failed program was:" >&5
14484 sed 's/^/| /' conftest.
$ac_ext >&5
14486 ac_cv_lib_util_getloadavg
=no
14488 rm -f conftest.err conftest.
$ac_objext \
14489 conftest
$ac_exeext conftest.
$ac_ext
14490 LIBS
=$ac_check_lib_save_LIBS
14492 echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
14493 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6
14494 if test $ac_cv_lib_util_getloadavg = yes; then
14495 LIBS
="-lutil $LIBS" ac_have_func
=yes ac_cv_func_getloadavg_setgid
=yes
14500 if test $ac_have_func = no
; then
14501 # There is a commonly available library for RS/6000 AIX.
14502 # Since it is not a standard part of AIX, it might be installed locally.
14503 ac_getloadavg_LIBS
=$LIBS
14504 LIBS
="-L/usr/local/lib $LIBS"
14505 echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
14506 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6
14507 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
14508 echo $ECHO_N "(cached) $ECHO_C" >&6
14510 ac_check_lib_save_LIBS
=$LIBS
14511 LIBS
="-lgetloadavg $LIBS"
14512 cat >conftest.
$ac_ext <<_ACEOF
14515 cat confdefs.h
>>conftest.
$ac_ext
14516 cat >>conftest.
$ac_ext <<_ACEOF
14517 /* end confdefs.h. */
14519 /* Override any gcc2 internal prototype to avoid an error. */
14523 /* We use char because int might match the return type of a gcc2
14524 builtin and then its argument prototype would still apply. */
14525 char getloadavg ();
14534 rm -f conftest.
$ac_objext conftest
$ac_exeext
14535 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14536 (eval $ac_link) 2>conftest.er1
14538 grep -v '^ *+' conftest.er1
>conftest.err
14540 cat conftest.err
>&5
14541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14542 (exit $ac_status); } &&
14543 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14545 (eval $ac_try) 2>&5
14547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14548 (exit $ac_status); }; } &&
14549 { ac_try
='test -s conftest$ac_exeext'
14550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14551 (eval $ac_try) 2>&5
14553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14554 (exit $ac_status); }; }; then
14555 ac_cv_lib_getloadavg_getloadavg
=yes
14557 echo "$as_me: failed program was:" >&5
14558 sed 's/^/| /' conftest.
$ac_ext >&5
14560 ac_cv_lib_getloadavg_getloadavg
=no
14562 rm -f conftest.err conftest.
$ac_objext \
14563 conftest
$ac_exeext conftest.
$ac_ext
14564 LIBS
=$ac_check_lib_save_LIBS
14566 echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
14567 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6
14568 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
14569 LIBS
="-lgetloadavg $LIBS"
14571 LIBS
=$ac_getloadavg_LIBS
14576 # Make sure it is really in the library, if we think we found it,
14577 # otherwise set up the replacement function.
14579 for ac_func
in getloadavg
14581 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14582 echo "$as_me:$LINENO: checking for $ac_func" >&5
14583 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14584 if eval "test \"\${$as_ac_var+set}\" = set"; then
14585 echo $ECHO_N "(cached) $ECHO_C" >&6
14587 cat >conftest.
$ac_ext <<_ACEOF
14590 cat confdefs.h
>>conftest.
$ac_ext
14591 cat >>conftest.
$ac_ext <<_ACEOF
14592 /* end confdefs.h. */
14593 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14594 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14595 #define $ac_func innocuous_$ac_func
14597 /* System header to define __stub macros and hopefully few prototypes,
14598 which can conflict with char $ac_func (); below.
14599 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14600 <limits.h> exists even on freestanding compilers. */
14603 # include <limits.h>
14605 # include <assert.h>
14610 /* Override any gcc2 internal prototype to avoid an error. */
14615 /* We use char because int might match the return type of a gcc2
14616 builtin and then its argument prototype would still apply. */
14618 /* The GNU C library defines this for functions which it implements
14619 to always fail with ENOSYS. Some functions are actually named
14620 something starting with __ and the normal name is an alias. */
14621 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14624 char (*f) () = $ac_func;
14633 return f != $ac_func;
14638 rm -f conftest.
$ac_objext conftest
$ac_exeext
14639 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14640 (eval $ac_link) 2>conftest.er1
14642 grep -v '^ *+' conftest.er1
>conftest.err
14644 cat conftest.err
>&5
14645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14646 (exit $ac_status); } &&
14647 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14649 (eval $ac_try) 2>&5
14651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14652 (exit $ac_status); }; } &&
14653 { ac_try
='test -s conftest$ac_exeext'
14654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14655 (eval $ac_try) 2>&5
14657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14658 (exit $ac_status); }; }; then
14659 eval "$as_ac_var=yes"
14661 echo "$as_me: failed program was:" >&5
14662 sed 's/^/| /' conftest.
$ac_ext >&5
14664 eval "$as_ac_var=no"
14666 rm -f conftest.err conftest.
$ac_objext \
14667 conftest
$ac_exeext conftest.
$ac_ext
14669 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14670 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14671 if test `eval echo '${'$as_ac_var'}'` = yes; then
14672 cat >>confdefs.h
<<_ACEOF
14673 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14678 "getloadavg.$ac_objext" | \
14679 *" getloadavg.$ac_objext" | \
14680 "getloadavg.$ac_objext "* | \
14681 *" getloadavg.$ac_objext "* ) ;;
14682 *) LIBOBJS
="$LIBOBJS getloadavg.$ac_objext" ;;
14686 cat >>confdefs.h
<<\_ACEOF
14687 #define C_GETLOADAVG 1
14690 # Figure out what our getloadavg.c needs.
14692 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
14693 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
14694 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
14695 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
14696 echo $ECHO_N "(cached) $ECHO_C" >&6
14698 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
14699 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
14701 # Is the header compilable?
14702 echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
14703 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6
14704 cat >conftest.
$ac_ext <<_ACEOF
14707 cat confdefs.h
>>conftest.
$ac_ext
14708 cat >>conftest.
$ac_ext <<_ACEOF
14709 /* end confdefs.h. */
14710 $ac_includes_default
14711 #include <sys/dg_sys_info.h>
14713 rm -f conftest.
$ac_objext
14714 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14715 (eval $ac_compile) 2>conftest.er1
14717 grep -v '^ *+' conftest.er1
>conftest.err
14719 cat conftest.err
>&5
14720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14721 (exit $ac_status); } &&
14722 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14724 (eval $ac_try) 2>&5
14726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14727 (exit $ac_status); }; } &&
14728 { ac_try
='test -s conftest.$ac_objext'
14729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14730 (eval $ac_try) 2>&5
14732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14733 (exit $ac_status); }; }; then
14734 ac_header_compiler
=yes
14736 echo "$as_me: failed program was:" >&5
14737 sed 's/^/| /' conftest.
$ac_ext >&5
14739 ac_header_compiler
=no
14741 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14742 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14743 echo "${ECHO_T}$ac_header_compiler" >&6
14745 # Is the header present?
14746 echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
14747 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6
14748 cat >conftest.
$ac_ext <<_ACEOF
14751 cat confdefs.h
>>conftest.
$ac_ext
14752 cat >>conftest.
$ac_ext <<_ACEOF
14753 /* end confdefs.h. */
14754 #include <sys/dg_sys_info.h>
14756 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14757 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
14759 grep -v '^ *+' conftest.er1
>conftest.err
14761 cat conftest.err
>&5
14762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14763 (exit $ac_status); } >/dev
/null
; then
14764 if test -s conftest.err
; then
14765 ac_cpp_err
=$ac_c_preproc_warn_flag
14766 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
14773 if test -z "$ac_cpp_err"; then
14774 ac_header_preproc
=yes
14776 echo "$as_me: failed program was:" >&5
14777 sed 's/^/| /' conftest.
$ac_ext >&5
14779 ac_header_preproc
=no
14781 rm -f conftest.err conftest.
$ac_ext
14782 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14783 echo "${ECHO_T}$ac_header_preproc" >&6
14785 # So? What about this header?
14786 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14788 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
14789 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14790 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
14791 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
14792 ac_header_preproc
=yes
14795 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
14796 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
14797 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
14798 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
14799 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
14800 echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
14801 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
14802 echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
14803 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
14804 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
14805 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
14806 echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
14809 ## ------------------------------------------ ##
14810 ## Report this to the AC_PACKAGE_NAME lists. ##
14811 ## ------------------------------------------ ##
14814 sed "s/^/$as_me: WARNING: /" >&2
14817 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
14818 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
14819 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
14820 echo $ECHO_N "(cached) $ECHO_C" >&6
14822 ac_cv_header_sys_dg_sys_info_h
=$ac_header_preproc
14824 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
14825 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
14828 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
14831 cat >>confdefs.h
<<\_ACEOF
14836 echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
14837 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6
14838 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
14839 echo $ECHO_N "(cached) $ECHO_C" >&6
14841 ac_check_lib_save_LIBS
=$LIBS
14843 cat >conftest.
$ac_ext <<_ACEOF
14846 cat confdefs.h
>>conftest.
$ac_ext
14847 cat >>conftest.
$ac_ext <<_ACEOF
14848 /* end confdefs.h. */
14850 /* Override any gcc2 internal prototype to avoid an error. */
14854 /* We use char because int might match the return type of a gcc2
14855 builtin and then its argument prototype would still apply. */
14856 char dg_sys_info ();
14865 rm -f conftest.
$ac_objext conftest
$ac_exeext
14866 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14867 (eval $ac_link) 2>conftest.er1
14869 grep -v '^ *+' conftest.er1
>conftest.err
14871 cat conftest.err
>&5
14872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14873 (exit $ac_status); } &&
14874 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14876 (eval $ac_try) 2>&5
14878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14879 (exit $ac_status); }; } &&
14880 { ac_try
='test -s conftest$ac_exeext'
14881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14882 (eval $ac_try) 2>&5
14884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14885 (exit $ac_status); }; }; then
14886 ac_cv_lib_dgc_dg_sys_info
=yes
14888 echo "$as_me: failed program was:" >&5
14889 sed 's/^/| /' conftest.
$ac_ext >&5
14891 ac_cv_lib_dgc_dg_sys_info
=no
14893 rm -f conftest.err conftest.
$ac_objext \
14894 conftest
$ac_exeext conftest.
$ac_ext
14895 LIBS
=$ac_check_lib_save_LIBS
14897 echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
14898 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6
14899 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
14900 cat >>confdefs.h
<<_ACEOF
14901 #define HAVE_LIBDGC 1
14912 if test "${ac_cv_header_locale_h+set}" = set; then
14913 echo "$as_me:$LINENO: checking for locale.h" >&5
14914 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
14915 if test "${ac_cv_header_locale_h+set}" = set; then
14916 echo $ECHO_N "(cached) $ECHO_C" >&6
14918 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
14919 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
14921 # Is the header compilable?
14922 echo "$as_me:$LINENO: checking locale.h usability" >&5
14923 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6
14924 cat >conftest.
$ac_ext <<_ACEOF
14927 cat confdefs.h
>>conftest.
$ac_ext
14928 cat >>conftest.
$ac_ext <<_ACEOF
14929 /* end confdefs.h. */
14930 $ac_includes_default
14931 #include <locale.h>
14933 rm -f conftest.
$ac_objext
14934 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14935 (eval $ac_compile) 2>conftest.er1
14937 grep -v '^ *+' conftest.er1
>conftest.err
14939 cat conftest.err
>&5
14940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14941 (exit $ac_status); } &&
14942 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14944 (eval $ac_try) 2>&5
14946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14947 (exit $ac_status); }; } &&
14948 { ac_try
='test -s conftest.$ac_objext'
14949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14950 (eval $ac_try) 2>&5
14952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14953 (exit $ac_status); }; }; then
14954 ac_header_compiler
=yes
14956 echo "$as_me: failed program was:" >&5
14957 sed 's/^/| /' conftest.
$ac_ext >&5
14959 ac_header_compiler
=no
14961 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14962 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14963 echo "${ECHO_T}$ac_header_compiler" >&6
14965 # Is the header present?
14966 echo "$as_me:$LINENO: checking locale.h presence" >&5
14967 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6
14968 cat >conftest.
$ac_ext <<_ACEOF
14971 cat confdefs.h
>>conftest.
$ac_ext
14972 cat >>conftest.
$ac_ext <<_ACEOF
14973 /* end confdefs.h. */
14974 #include <locale.h>
14976 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14977 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
14979 grep -v '^ *+' conftest.er1
>conftest.err
14981 cat conftest.err
>&5
14982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14983 (exit $ac_status); } >/dev
/null
; then
14984 if test -s conftest.err
; then
14985 ac_cpp_err
=$ac_c_preproc_warn_flag
14986 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
14993 if test -z "$ac_cpp_err"; then
14994 ac_header_preproc
=yes
14996 echo "$as_me: failed program was:" >&5
14997 sed 's/^/| /' conftest.
$ac_ext >&5
14999 ac_header_preproc
=no
15001 rm -f conftest.err conftest.
$ac_ext
15002 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15003 echo "${ECHO_T}$ac_header_preproc" >&6
15005 # So? What about this header?
15006 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15008 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
15009 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15010 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
15011 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
15012 ac_header_preproc
=yes
15015 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
15016 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
15017 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
15018 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
15019 { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
15020 echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
15021 { echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
15022 echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
15023 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
15024 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
15025 { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
15026 echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
15029 ## ------------------------------------------ ##
15030 ## Report this to the AC_PACKAGE_NAME lists. ##
15031 ## ------------------------------------------ ##
15034 sed "s/^/$as_me: WARNING: /" >&2
15037 echo "$as_me:$LINENO: checking for locale.h" >&5
15038 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
15039 if test "${ac_cv_header_locale_h+set}" = set; then
15040 echo $ECHO_N "(cached) $ECHO_C" >&6
15042 ac_cv_header_locale_h
=$ac_header_preproc
15044 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
15045 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
15051 for ac_func
in setlocale
15053 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15054 echo "$as_me:$LINENO: checking for $ac_func" >&5
15055 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15056 if eval "test \"\${$as_ac_var+set}\" = set"; then
15057 echo $ECHO_N "(cached) $ECHO_C" >&6
15059 cat >conftest.
$ac_ext <<_ACEOF
15062 cat confdefs.h
>>conftest.
$ac_ext
15063 cat >>conftest.
$ac_ext <<_ACEOF
15064 /* end confdefs.h. */
15065 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15066 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15067 #define $ac_func innocuous_$ac_func
15069 /* System header to define __stub macros and hopefully few prototypes,
15070 which can conflict with char $ac_func (); below.
15071 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15072 <limits.h> exists even on freestanding compilers. */
15075 # include <limits.h>
15077 # include <assert.h>
15082 /* Override any gcc2 internal prototype to avoid an error. */
15087 /* We use char because int might match the return type of a gcc2
15088 builtin and then its argument prototype would still apply. */
15090 /* The GNU C library defines this for functions which it implements
15091 to always fail with ENOSYS. Some functions are actually named
15092 something starting with __ and the normal name is an alias. */
15093 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15096 char (*f) () = $ac_func;
15105 return f != $ac_func;
15110 rm -f conftest.
$ac_objext conftest
$ac_exeext
15111 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15112 (eval $ac_link) 2>conftest.er1
15114 grep -v '^ *+' conftest.er1
>conftest.err
15116 cat conftest.err
>&5
15117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15118 (exit $ac_status); } &&
15119 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15121 (eval $ac_try) 2>&5
15123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15124 (exit $ac_status); }; } &&
15125 { ac_try
='test -s conftest$ac_exeext'
15126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15127 (eval $ac_try) 2>&5
15129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15130 (exit $ac_status); }; }; then
15131 eval "$as_ac_var=yes"
15133 echo "$as_me: failed program was:" >&5
15134 sed 's/^/| /' conftest.
$ac_ext >&5
15136 eval "$as_ac_var=no"
15138 rm -f conftest.err conftest.
$ac_objext \
15139 conftest
$ac_exeext conftest.
$ac_ext
15141 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15142 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15143 if test `eval echo '${'$as_ac_var'}'` = yes; then
15144 cat >>confdefs.h
<<_ACEOF
15145 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15152 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
15153 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
15154 # Irix 4.0.5F has the header but not the library.
15155 if test $ac_have_func = no
&& test "$ac_cv_lib_elf_elf_begin" = yes; then
15158 cat >>confdefs.h
<<\_ACEOF
15164 if test $ac_have_func = no
; then
15165 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
15166 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
15167 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
15168 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
15169 echo $ECHO_N "(cached) $ECHO_C" >&6
15171 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
15172 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
15174 # Is the header compilable?
15175 echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
15176 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6
15177 cat >conftest.
$ac_ext <<_ACEOF
15180 cat confdefs.h
>>conftest.
$ac_ext
15181 cat >>conftest.
$ac_ext <<_ACEOF
15182 /* end confdefs.h. */
15183 $ac_includes_default
15184 #include <inq_stats/cpustats.h>
15186 rm -f conftest.
$ac_objext
15187 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15188 (eval $ac_compile) 2>conftest.er1
15190 grep -v '^ *+' conftest.er1
>conftest.err
15192 cat conftest.err
>&5
15193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15194 (exit $ac_status); } &&
15195 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15197 (eval $ac_try) 2>&5
15199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15200 (exit $ac_status); }; } &&
15201 { ac_try
='test -s conftest.$ac_objext'
15202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15203 (eval $ac_try) 2>&5
15205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15206 (exit $ac_status); }; }; then
15207 ac_header_compiler
=yes
15209 echo "$as_me: failed program was:" >&5
15210 sed 's/^/| /' conftest.
$ac_ext >&5
15212 ac_header_compiler
=no
15214 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15215 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15216 echo "${ECHO_T}$ac_header_compiler" >&6
15218 # Is the header present?
15219 echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
15220 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6
15221 cat >conftest.
$ac_ext <<_ACEOF
15224 cat confdefs.h
>>conftest.
$ac_ext
15225 cat >>conftest.
$ac_ext <<_ACEOF
15226 /* end confdefs.h. */
15227 #include <inq_stats/cpustats.h>
15229 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15230 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
15232 grep -v '^ *+' conftest.er1
>conftest.err
15234 cat conftest.err
>&5
15235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15236 (exit $ac_status); } >/dev
/null
; then
15237 if test -s conftest.err
; then
15238 ac_cpp_err
=$ac_c_preproc_warn_flag
15239 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
15246 if test -z "$ac_cpp_err"; then
15247 ac_header_preproc
=yes
15249 echo "$as_me: failed program was:" >&5
15250 sed 's/^/| /' conftest.
$ac_ext >&5
15252 ac_header_preproc
=no
15254 rm -f conftest.err conftest.
$ac_ext
15255 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15256 echo "${ECHO_T}$ac_header_preproc" >&6
15258 # So? What about this header?
15259 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15261 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
15262 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15263 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
15264 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
15265 ac_header_preproc
=yes
15268 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
15269 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
15270 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
15271 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
15272 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
15273 echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
15274 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
15275 echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
15276 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
15277 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
15278 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
15279 echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
15282 ## ------------------------------------------ ##
15283 ## Report this to the AC_PACKAGE_NAME lists. ##
15284 ## ------------------------------------------ ##
15287 sed "s/^/$as_me: WARNING: /" >&2
15290 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
15291 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
15292 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
15293 echo $ECHO_N "(cached) $ECHO_C" >&6
15295 ac_cv_header_inq_stats_cpustats_h
=$ac_header_preproc
15297 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
15298 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
15301 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
15304 cat >>confdefs.h
<<\_ACEOF
15309 cat >>confdefs.h
<<\_ACEOF
15318 if test $ac_have_func = no
; then
15319 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
15320 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
15321 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
15322 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
15323 echo $ECHO_N "(cached) $ECHO_C" >&6
15325 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
15326 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
15328 # Is the header compilable?
15329 echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
15330 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6
15331 cat >conftest.
$ac_ext <<_ACEOF
15334 cat confdefs.h
>>conftest.
$ac_ext
15335 cat >>conftest.
$ac_ext <<_ACEOF
15336 /* end confdefs.h. */
15337 $ac_includes_default
15338 #include <sys/cpustats.h>
15340 rm -f conftest.
$ac_objext
15341 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15342 (eval $ac_compile) 2>conftest.er1
15344 grep -v '^ *+' conftest.er1
>conftest.err
15346 cat conftest.err
>&5
15347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15348 (exit $ac_status); } &&
15349 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15351 (eval $ac_try) 2>&5
15353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15354 (exit $ac_status); }; } &&
15355 { ac_try
='test -s conftest.$ac_objext'
15356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15357 (eval $ac_try) 2>&5
15359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15360 (exit $ac_status); }; }; then
15361 ac_header_compiler
=yes
15363 echo "$as_me: failed program was:" >&5
15364 sed 's/^/| /' conftest.
$ac_ext >&5
15366 ac_header_compiler
=no
15368 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15369 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15370 echo "${ECHO_T}$ac_header_compiler" >&6
15372 # Is the header present?
15373 echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
15374 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6
15375 cat >conftest.
$ac_ext <<_ACEOF
15378 cat confdefs.h
>>conftest.
$ac_ext
15379 cat >>conftest.
$ac_ext <<_ACEOF
15380 /* end confdefs.h. */
15381 #include <sys/cpustats.h>
15383 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15384 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
15386 grep -v '^ *+' conftest.er1
>conftest.err
15388 cat conftest.err
>&5
15389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15390 (exit $ac_status); } >/dev
/null
; then
15391 if test -s conftest.err
; then
15392 ac_cpp_err
=$ac_c_preproc_warn_flag
15393 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
15400 if test -z "$ac_cpp_err"; then
15401 ac_header_preproc
=yes
15403 echo "$as_me: failed program was:" >&5
15404 sed 's/^/| /' conftest.
$ac_ext >&5
15406 ac_header_preproc
=no
15408 rm -f conftest.err conftest.
$ac_ext
15409 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15410 echo "${ECHO_T}$ac_header_preproc" >&6
15412 # So? What about this header?
15413 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15415 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
15416 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15417 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
15418 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
15419 ac_header_preproc
=yes
15422 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
15423 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
15424 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
15425 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
15426 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
15427 echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
15428 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
15429 echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
15430 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
15431 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
15432 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
15433 echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
15436 ## ------------------------------------------ ##
15437 ## Report this to the AC_PACKAGE_NAME lists. ##
15438 ## ------------------------------------------ ##
15441 sed "s/^/$as_me: WARNING: /" >&2
15444 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
15445 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
15446 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
15447 echo $ECHO_N "(cached) $ECHO_C" >&6
15449 ac_cv_header_sys_cpustats_h
=$ac_header_preproc
15451 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
15452 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
15455 if test $ac_cv_header_sys_cpustats_h = yes; then
15456 ac_have_func
=yes; cat >>confdefs.h
<<\_ACEOF
15465 if test $ac_have_func = no
; then
15467 for ac_header
in mach
/mach.h
15469 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15470 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15471 echo "$as_me:$LINENO: checking for $ac_header" >&5
15472 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15473 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15474 echo $ECHO_N "(cached) $ECHO_C" >&6
15476 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15477 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15479 # Is the header compilable?
15480 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15481 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15482 cat >conftest.
$ac_ext <<_ACEOF
15485 cat confdefs.h
>>conftest.
$ac_ext
15486 cat >>conftest.
$ac_ext <<_ACEOF
15487 /* end confdefs.h. */
15488 $ac_includes_default
15489 #include <$ac_header>
15491 rm -f conftest.
$ac_objext
15492 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15493 (eval $ac_compile) 2>conftest.er1
15495 grep -v '^ *+' conftest.er1
>conftest.err
15497 cat conftest.err
>&5
15498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15499 (exit $ac_status); } &&
15500 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15502 (eval $ac_try) 2>&5
15504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15505 (exit $ac_status); }; } &&
15506 { ac_try
='test -s conftest.$ac_objext'
15507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15508 (eval $ac_try) 2>&5
15510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15511 (exit $ac_status); }; }; then
15512 ac_header_compiler
=yes
15514 echo "$as_me: failed program was:" >&5
15515 sed 's/^/| /' conftest.
$ac_ext >&5
15517 ac_header_compiler
=no
15519 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15520 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15521 echo "${ECHO_T}$ac_header_compiler" >&6
15523 # Is the header present?
15524 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15525 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15526 cat >conftest.
$ac_ext <<_ACEOF
15529 cat confdefs.h
>>conftest.
$ac_ext
15530 cat >>conftest.
$ac_ext <<_ACEOF
15531 /* end confdefs.h. */
15532 #include <$ac_header>
15534 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15535 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
15537 grep -v '^ *+' conftest.er1
>conftest.err
15539 cat conftest.err
>&5
15540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15541 (exit $ac_status); } >/dev
/null
; then
15542 if test -s conftest.err
; then
15543 ac_cpp_err
=$ac_c_preproc_warn_flag
15544 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
15551 if test -z "$ac_cpp_err"; then
15552 ac_header_preproc
=yes
15554 echo "$as_me: failed program was:" >&5
15555 sed 's/^/| /' conftest.
$ac_ext >&5
15557 ac_header_preproc
=no
15559 rm -f conftest.err conftest.
$ac_ext
15560 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15561 echo "${ECHO_T}$ac_header_preproc" >&6
15563 # So? What about this header?
15564 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15566 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15567 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15568 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15569 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15570 ac_header_preproc
=yes
15573 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15574 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15575 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15576 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15577 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15578 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15579 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15580 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15581 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15582 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15583 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15584 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15587 ## ------------------------------------------ ##
15588 ## Report this to the AC_PACKAGE_NAME lists. ##
15589 ## ------------------------------------------ ##
15592 sed "s/^/$as_me: WARNING: /" >&2
15595 echo "$as_me:$LINENO: checking for $ac_header" >&5
15596 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15597 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15598 echo $ECHO_N "(cached) $ECHO_C" >&6
15600 eval "$as_ac_Header=\$ac_header_preproc"
15602 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15603 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15606 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15607 cat >>confdefs.h
<<_ACEOF
15608 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15618 for ac_header
in nlist.h
15620 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15621 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15622 echo "$as_me:$LINENO: checking for $ac_header" >&5
15623 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15624 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15625 echo $ECHO_N "(cached) $ECHO_C" >&6
15627 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15628 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15630 # Is the header compilable?
15631 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15632 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15633 cat >conftest.
$ac_ext <<_ACEOF
15636 cat confdefs.h
>>conftest.
$ac_ext
15637 cat >>conftest.
$ac_ext <<_ACEOF
15638 /* end confdefs.h. */
15639 $ac_includes_default
15640 #include <$ac_header>
15642 rm -f conftest.
$ac_objext
15643 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15644 (eval $ac_compile) 2>conftest.er1
15646 grep -v '^ *+' conftest.er1
>conftest.err
15648 cat conftest.err
>&5
15649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15650 (exit $ac_status); } &&
15651 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15653 (eval $ac_try) 2>&5
15655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15656 (exit $ac_status); }; } &&
15657 { ac_try
='test -s conftest.$ac_objext'
15658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15659 (eval $ac_try) 2>&5
15661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15662 (exit $ac_status); }; }; then
15663 ac_header_compiler
=yes
15665 echo "$as_me: failed program was:" >&5
15666 sed 's/^/| /' conftest.
$ac_ext >&5
15668 ac_header_compiler
=no
15670 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15671 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15672 echo "${ECHO_T}$ac_header_compiler" >&6
15674 # Is the header present?
15675 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15676 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15677 cat >conftest.
$ac_ext <<_ACEOF
15680 cat confdefs.h
>>conftest.
$ac_ext
15681 cat >>conftest.
$ac_ext <<_ACEOF
15682 /* end confdefs.h. */
15683 #include <$ac_header>
15685 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15686 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
15688 grep -v '^ *+' conftest.er1
>conftest.err
15690 cat conftest.err
>&5
15691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15692 (exit $ac_status); } >/dev
/null
; then
15693 if test -s conftest.err
; then
15694 ac_cpp_err
=$ac_c_preproc_warn_flag
15695 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
15702 if test -z "$ac_cpp_err"; then
15703 ac_header_preproc
=yes
15705 echo "$as_me: failed program was:" >&5
15706 sed 's/^/| /' conftest.
$ac_ext >&5
15708 ac_header_preproc
=no
15710 rm -f conftest.err conftest.
$ac_ext
15711 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15712 echo "${ECHO_T}$ac_header_preproc" >&6
15714 # So? What about this header?
15715 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15717 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15718 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15719 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15720 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15721 ac_header_preproc
=yes
15724 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15725 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15726 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15727 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15728 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15729 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15730 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15731 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15732 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15733 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15734 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15735 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15738 ## ------------------------------------------ ##
15739 ## Report this to the AC_PACKAGE_NAME lists. ##
15740 ## ------------------------------------------ ##
15743 sed "s/^/$as_me: WARNING: /" >&2
15746 echo "$as_me:$LINENO: checking for $ac_header" >&5
15747 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15748 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15749 echo $ECHO_N "(cached) $ECHO_C" >&6
15751 eval "$as_ac_Header=\$ac_header_preproc"
15753 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15754 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15757 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15758 cat >>confdefs.h
<<_ACEOF
15759 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15761 echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
15762 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6
15763 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
15764 echo $ECHO_N "(cached) $ECHO_C" >&6
15766 cat >conftest.
$ac_ext <<_ACEOF
15769 cat confdefs.h
>>conftest.
$ac_ext
15770 cat >>conftest.
$ac_ext <<_ACEOF
15771 /* end confdefs.h. */
15777 static struct nlist ac_aggr;
15778 if (ac_aggr.n_un.n_name)
15784 rm -f conftest.
$ac_objext
15785 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15786 (eval $ac_compile) 2>conftest.er1
15788 grep -v '^ *+' conftest.er1
>conftest.err
15790 cat conftest.err
>&5
15791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15792 (exit $ac_status); } &&
15793 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15795 (eval $ac_try) 2>&5
15797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15798 (exit $ac_status); }; } &&
15799 { ac_try
='test -s conftest.$ac_objext'
15800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15801 (eval $ac_try) 2>&5
15803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15804 (exit $ac_status); }; }; then
15805 ac_cv_member_struct_nlist_n_un_n_name
=yes
15807 echo "$as_me: failed program was:" >&5
15808 sed 's/^/| /' conftest.
$ac_ext >&5
15810 cat >conftest.
$ac_ext <<_ACEOF
15813 cat confdefs.h
>>conftest.
$ac_ext
15814 cat >>conftest.
$ac_ext <<_ACEOF
15815 /* end confdefs.h. */
15821 static struct nlist ac_aggr;
15822 if (sizeof ac_aggr.n_un.n_name)
15828 rm -f conftest.
$ac_objext
15829 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15830 (eval $ac_compile) 2>conftest.er1
15832 grep -v '^ *+' conftest.er1
>conftest.err
15834 cat conftest.err
>&5
15835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15836 (exit $ac_status); } &&
15837 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15839 (eval $ac_try) 2>&5
15841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15842 (exit $ac_status); }; } &&
15843 { ac_try
='test -s conftest.$ac_objext'
15844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15845 (eval $ac_try) 2>&5
15847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15848 (exit $ac_status); }; }; then
15849 ac_cv_member_struct_nlist_n_un_n_name
=yes
15851 echo "$as_me: failed program was:" >&5
15852 sed 's/^/| /' conftest.
$ac_ext >&5
15854 ac_cv_member_struct_nlist_n_un_n_name
=no
15856 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15858 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15860 echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
15861 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6
15862 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
15864 cat >>confdefs.h
<<_ACEOF
15865 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
15869 cat >>confdefs.h
<<\_ACEOF
15870 #define NLIST_NAME_UNION 1
15884 # Some definitions of getloadavg require that the program be installed setgid.
15885 echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
15886 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6
15887 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
15888 echo $ECHO_N "(cached) $ECHO_C" >&6
15890 cat >conftest.
$ac_ext <<_ACEOF
15893 cat confdefs.h
>>conftest.
$ac_ext
15894 cat >>conftest.
$ac_ext <<_ACEOF
15895 /* end confdefs.h. */
15896 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
15897 #ifdef LDAV_PRIVILEGED
15898 Yowza Am I SETGID yet
15901 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15902 $EGREP "Yowza Am I SETGID yet" >/dev
/null
2>&1; then
15903 ac_cv_func_getloadavg_setgid
=yes
15905 ac_cv_func_getloadavg_setgid
=no
15910 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
15911 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6
15912 if test $ac_cv_func_getloadavg_setgid = yes; then
15915 cat >>confdefs.h
<<\_ACEOF
15916 #define GETLOADAVG_PRIVILEGED 1
15923 if test $ac_cv_func_getloadavg_setgid = yes; then
15924 echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
15925 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6
15926 if test "${ac_cv_group_kmem+set}" = set; then
15927 echo $ECHO_N "(cached) $ECHO_C" >&6
15929 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
15930 ac_ls_output
=`ls -lgL /dev/kmem 2>/dev/null`
15931 # If we got an error (system does not support symlinks), try without -L.
15932 test -z "$ac_ls_output" && ac_ls_output
=`ls -lg /dev/kmem`
15933 ac_cv_group_kmem
=`echo $ac_ls_output \
15934 | sed -ne 's/[ ][ ]*/ /g;
15935 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
15939 echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
15940 echo "${ECHO_T}$ac_cv_group_kmem" >&6
15941 KMEM_GROUP
=$ac_cv_group_kmem
15943 if test "x$ac_save_LIBS" = x
; then
15944 GETLOADAVG_LIBS
=$LIBS
15946 GETLOADAVG_LIBS
=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
15952 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
15953 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
15954 if test "${ac_cv_sys_largefile_source+set}" = set; then
15955 echo $ECHO_N "(cached) $ECHO_C" >&6
15958 ac_cv_sys_largefile_source
=no
15959 cat >conftest.
$ac_ext <<_ACEOF
15962 cat confdefs.h
>>conftest.
$ac_ext
15963 cat >>conftest.
$ac_ext <<_ACEOF
15964 /* end confdefs.h. */
15974 rm -f conftest.
$ac_objext
15975 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15976 (eval $ac_compile) 2>conftest.er1
15978 grep -v '^ *+' conftest.er1
>conftest.err
15980 cat conftest.err
>&5
15981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15982 (exit $ac_status); } &&
15983 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15985 (eval $ac_try) 2>&5
15987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15988 (exit $ac_status); }; } &&
15989 { ac_try
='test -s conftest.$ac_objext'
15990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15991 (eval $ac_try) 2>&5
15993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15994 (exit $ac_status); }; }; then
15997 echo "$as_me: failed program was:" >&5
15998 sed 's/^/| /' conftest.
$ac_ext >&5
16001 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16002 cat >conftest.
$ac_ext <<_ACEOF
16005 cat confdefs.h
>>conftest.
$ac_ext
16006 cat >>conftest.
$ac_ext <<_ACEOF
16007 /* end confdefs.h. */
16008 #define _LARGEFILE_SOURCE 1
16018 rm -f conftest.
$ac_objext
16019 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16020 (eval $ac_compile) 2>conftest.er1
16022 grep -v '^ *+' conftest.er1
>conftest.err
16024 cat conftest.err
>&5
16025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16026 (exit $ac_status); } &&
16027 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16029 (eval $ac_try) 2>&5
16031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16032 (exit $ac_status); }; } &&
16033 { ac_try
='test -s conftest.$ac_objext'
16034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16035 (eval $ac_try) 2>&5
16037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16038 (exit $ac_status); }; }; then
16039 ac_cv_sys_largefile_source
=1; break
16041 echo "$as_me: failed program was:" >&5
16042 sed 's/^/| /' conftest.
$ac_ext >&5
16045 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16049 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
16050 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
16051 if test "$ac_cv_sys_largefile_source" != no
; then
16053 cat >>confdefs.h
<<_ACEOF
16054 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
16060 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
16061 # in glibc 2.1.3, but that breaks too many other things.
16062 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
16063 echo "$as_me:$LINENO: checking for fseeko" >&5
16064 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
16065 if test "${ac_cv_func_fseeko+set}" = set; then
16066 echo $ECHO_N "(cached) $ECHO_C" >&6
16068 cat >conftest.
$ac_ext <<_ACEOF
16071 cat confdefs.h
>>conftest.
$ac_ext
16072 cat >>conftest.
$ac_ext <<_ACEOF
16073 /* end confdefs.h. */
16078 return fseeko && fseeko (stdin, 0, 0);
16083 rm -f conftest.
$ac_objext conftest
$ac_exeext
16084 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16085 (eval $ac_link) 2>conftest.er1
16087 grep -v '^ *+' conftest.er1
>conftest.err
16089 cat conftest.err
>&5
16090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16091 (exit $ac_status); } &&
16092 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16094 (eval $ac_try) 2>&5
16096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16097 (exit $ac_status); }; } &&
16098 { ac_try
='test -s conftest$ac_exeext'
16099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16100 (eval $ac_try) 2>&5
16102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16103 (exit $ac_status); }; }; then
16104 ac_cv_func_fseeko
=yes
16106 echo "$as_me: failed program was:" >&5
16107 sed 's/^/| /' conftest.
$ac_ext >&5
16109 ac_cv_func_fseeko
=no
16111 rm -f conftest.err conftest.
$ac_objext \
16112 conftest
$ac_exeext conftest.
$ac_ext
16114 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
16115 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
16116 if test $ac_cv_func_fseeko = yes; then
16118 cat >>confdefs.h
<<\_ACEOF
16119 #define HAVE_FSEEKO 1
16125 echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
16126 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6
16127 if test "${ac_cv_func_getpgrp_void+set}" = set; then
16128 echo $ECHO_N "(cached) $ECHO_C" >&6
16130 # Use it with a single arg.
16131 cat >conftest.
$ac_ext <<_ACEOF
16134 cat confdefs.h
>>conftest.
$ac_ext
16135 cat >>conftest.
$ac_ext <<_ACEOF
16136 /* end confdefs.h. */
16137 $ac_includes_default
16146 rm -f conftest.
$ac_objext
16147 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16148 (eval $ac_compile) 2>conftest.er1
16150 grep -v '^ *+' conftest.er1
>conftest.err
16152 cat conftest.err
>&5
16153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16154 (exit $ac_status); } &&
16155 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16157 (eval $ac_try) 2>&5
16159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16160 (exit $ac_status); }; } &&
16161 { ac_try
='test -s conftest.$ac_objext'
16162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16163 (eval $ac_try) 2>&5
16165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16166 (exit $ac_status); }; }; then
16167 ac_cv_func_getpgrp_void
=no
16169 echo "$as_me: failed program was:" >&5
16170 sed 's/^/| /' conftest.
$ac_ext >&5
16172 ac_cv_func_getpgrp_void
=yes
16174 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16177 echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
16178 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6
16179 if test $ac_cv_func_getpgrp_void = yes; then
16181 cat >>confdefs.h
<<\_ACEOF
16182 #define GETPGRP_VOID 1
16189 for ac_func
in strftime
16191 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16192 echo "$as_me:$LINENO: checking for $ac_func" >&5
16193 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16194 if eval "test \"\${$as_ac_var+set}\" = set"; then
16195 echo $ECHO_N "(cached) $ECHO_C" >&6
16197 cat >conftest.
$ac_ext <<_ACEOF
16200 cat confdefs.h
>>conftest.
$ac_ext
16201 cat >>conftest.
$ac_ext <<_ACEOF
16202 /* end confdefs.h. */
16203 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16204 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16205 #define $ac_func innocuous_$ac_func
16207 /* System header to define __stub macros and hopefully few prototypes,
16208 which can conflict with char $ac_func (); below.
16209 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16210 <limits.h> exists even on freestanding compilers. */
16213 # include <limits.h>
16215 # include <assert.h>
16220 /* Override any gcc2 internal prototype to avoid an error. */
16225 /* We use char because int might match the return type of a gcc2
16226 builtin and then its argument prototype would still apply. */
16228 /* The GNU C library defines this for functions which it implements
16229 to always fail with ENOSYS. Some functions are actually named
16230 something starting with __ and the normal name is an alias. */
16231 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16234 char (*f) () = $ac_func;
16243 return f != $ac_func;
16248 rm -f conftest.
$ac_objext conftest
$ac_exeext
16249 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16250 (eval $ac_link) 2>conftest.er1
16252 grep -v '^ *+' conftest.er1
>conftest.err
16254 cat conftest.err
>&5
16255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16256 (exit $ac_status); } &&
16257 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16259 (eval $ac_try) 2>&5
16261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16262 (exit $ac_status); }; } &&
16263 { ac_try
='test -s conftest$ac_exeext'
16264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16265 (eval $ac_try) 2>&5
16267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16268 (exit $ac_status); }; }; then
16269 eval "$as_ac_var=yes"
16271 echo "$as_me: failed program was:" >&5
16272 sed 's/^/| /' conftest.
$ac_ext >&5
16274 eval "$as_ac_var=no"
16276 rm -f conftest.err conftest.
$ac_objext \
16277 conftest
$ac_exeext conftest.
$ac_ext
16279 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16280 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16281 if test `eval echo '${'$as_ac_var'}'` = yes; then
16282 cat >>confdefs.h
<<_ACEOF
16283 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16287 # strftime is in -lintl on SCO UNIX.
16288 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
16289 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
16290 if test "${ac_cv_lib_intl_strftime+set}" = set; then
16291 echo $ECHO_N "(cached) $ECHO_C" >&6
16293 ac_check_lib_save_LIBS
=$LIBS
16294 LIBS
="-lintl $LIBS"
16295 cat >conftest.
$ac_ext <<_ACEOF
16298 cat confdefs.h
>>conftest.
$ac_ext
16299 cat >>conftest.
$ac_ext <<_ACEOF
16300 /* end confdefs.h. */
16302 /* Override any gcc2 internal prototype to avoid an error. */
16306 /* We use char because int might match the return type of a gcc2
16307 builtin and then its argument prototype would still apply. */
16317 rm -f conftest.
$ac_objext conftest
$ac_exeext
16318 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16319 (eval $ac_link) 2>conftest.er1
16321 grep -v '^ *+' conftest.er1
>conftest.err
16323 cat conftest.err
>&5
16324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16325 (exit $ac_status); } &&
16326 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16328 (eval $ac_try) 2>&5
16330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16331 (exit $ac_status); }; } &&
16332 { ac_try
='test -s conftest$ac_exeext'
16333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16334 (eval $ac_try) 2>&5
16336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16337 (exit $ac_status); }; }; then
16338 ac_cv_lib_intl_strftime
=yes
16340 echo "$as_me: failed program was:" >&5
16341 sed 's/^/| /' conftest.
$ac_ext >&5
16343 ac_cv_lib_intl_strftime
=no
16345 rm -f conftest.err conftest.
$ac_objext \
16346 conftest
$ac_exeext conftest.
$ac_ext
16347 LIBS
=$ac_check_lib_save_LIBS
16349 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
16350 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
16351 if test $ac_cv_lib_intl_strftime = yes; then
16352 cat >>confdefs.h
<<\_ACEOF
16353 #define HAVE_STRFTIME 1
16356 LIBS
="-lintl $LIBS"
16365 for ac_func
in grantpt
16367 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16368 echo "$as_me:$LINENO: checking for $ac_func" >&5
16369 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16370 if eval "test \"\${$as_ac_var+set}\" = set"; then
16371 echo $ECHO_N "(cached) $ECHO_C" >&6
16373 cat >conftest.
$ac_ext <<_ACEOF
16376 cat confdefs.h
>>conftest.
$ac_ext
16377 cat >>conftest.
$ac_ext <<_ACEOF
16378 /* end confdefs.h. */
16379 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16380 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16381 #define $ac_func innocuous_$ac_func
16383 /* System header to define __stub macros and hopefully few prototypes,
16384 which can conflict with char $ac_func (); below.
16385 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16386 <limits.h> exists even on freestanding compilers. */
16389 # include <limits.h>
16391 # include <assert.h>
16396 /* Override any gcc2 internal prototype to avoid an error. */
16401 /* We use char because int might match the return type of a gcc2
16402 builtin and then its argument prototype would still apply. */
16404 /* The GNU C library defines this for functions which it implements
16405 to always fail with ENOSYS. Some functions are actually named
16406 something starting with __ and the normal name is an alias. */
16407 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16410 char (*f) () = $ac_func;
16419 return f != $ac_func;
16424 rm -f conftest.
$ac_objext conftest
$ac_exeext
16425 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16426 (eval $ac_link) 2>conftest.er1
16428 grep -v '^ *+' conftest.er1
>conftest.err
16430 cat conftest.err
>&5
16431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16432 (exit $ac_status); } &&
16433 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16435 (eval $ac_try) 2>&5
16437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16438 (exit $ac_status); }; } &&
16439 { ac_try
='test -s conftest$ac_exeext'
16440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16441 (eval $ac_try) 2>&5
16443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16444 (exit $ac_status); }; }; then
16445 eval "$as_ac_var=yes"
16447 echo "$as_me: failed program was:" >&5
16448 sed 's/^/| /' conftest.
$ac_ext >&5
16450 eval "$as_ac_var=no"
16452 rm -f conftest.err conftest.
$ac_objext \
16453 conftest
$ac_exeext conftest.
$ac_ext
16455 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16456 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16457 if test `eval echo '${'$as_ac_var'}'` = yes; then
16458 cat >>confdefs.h
<<_ACEOF
16459 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16466 # PTY-related GNU extensions.
16468 for ac_func
in getpt
16470 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16471 echo "$as_me:$LINENO: checking for $ac_func" >&5
16472 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16473 if eval "test \"\${$as_ac_var+set}\" = set"; then
16474 echo $ECHO_N "(cached) $ECHO_C" >&6
16476 cat >conftest.
$ac_ext <<_ACEOF
16479 cat confdefs.h
>>conftest.
$ac_ext
16480 cat >>conftest.
$ac_ext <<_ACEOF
16481 /* end confdefs.h. */
16482 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16483 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16484 #define $ac_func innocuous_$ac_func
16486 /* System header to define __stub macros and hopefully few prototypes,
16487 which can conflict with char $ac_func (); below.
16488 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16489 <limits.h> exists even on freestanding compilers. */
16492 # include <limits.h>
16494 # include <assert.h>
16499 /* Override any gcc2 internal prototype to avoid an error. */
16504 /* We use char because int might match the return type of a gcc2
16505 builtin and then its argument prototype would still apply. */
16507 /* The GNU C library defines this for functions which it implements
16508 to always fail with ENOSYS. Some functions are actually named
16509 something starting with __ and the normal name is an alias. */
16510 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16513 char (*f) () = $ac_func;
16522 return f != $ac_func;
16527 rm -f conftest.
$ac_objext conftest
$ac_exeext
16528 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16529 (eval $ac_link) 2>conftest.er1
16531 grep -v '^ *+' conftest.er1
>conftest.err
16533 cat conftest.err
>&5
16534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16535 (exit $ac_status); } &&
16536 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16538 (eval $ac_try) 2>&5
16540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16541 (exit $ac_status); }; } &&
16542 { ac_try
='test -s conftest$ac_exeext'
16543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16544 (eval $ac_try) 2>&5
16546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16547 (exit $ac_status); }; }; then
16548 eval "$as_ac_var=yes"
16550 echo "$as_me: failed program was:" >&5
16551 sed 's/^/| /' conftest.
$ac_ext >&5
16553 eval "$as_ac_var=no"
16555 rm -f conftest.err conftest.
$ac_objext \
16556 conftest
$ac_exeext conftest.
$ac_ext
16558 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16559 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16560 if test `eval echo '${'$as_ac_var'}'` = yes; then
16561 cat >>confdefs.h
<<_ACEOF
16562 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16569 # Check this now, so that we will NOT find the above functions in ncurses.
16570 # That is because we have not set up to link ncurses in lib-src.
16571 # It's better to believe a function is not available
16572 # than to expect to find it in ncurses.
16574 echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
16575 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6
16576 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
16577 echo $ECHO_N "(cached) $ECHO_C" >&6
16579 ac_check_lib_save_LIBS
=$LIBS
16580 LIBS
="-lncurses $LIBS"
16581 cat >conftest.
$ac_ext <<_ACEOF
16584 cat confdefs.h
>>conftest.
$ac_ext
16585 cat >>conftest.
$ac_ext <<_ACEOF
16586 /* end confdefs.h. */
16588 /* Override any gcc2 internal prototype to avoid an error. */
16592 /* We use char because int might match the return type of a gcc2
16593 builtin and then its argument prototype would still apply. */
16603 rm -f conftest.
$ac_objext conftest
$ac_exeext
16604 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16605 (eval $ac_link) 2>conftest.er1
16607 grep -v '^ *+' conftest.er1
>conftest.err
16609 cat conftest.err
>&5
16610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16611 (exit $ac_status); } &&
16612 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16614 (eval $ac_try) 2>&5
16616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16617 (exit $ac_status); }; } &&
16618 { ac_try
='test -s conftest$ac_exeext'
16619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16620 (eval $ac_try) 2>&5
16622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16623 (exit $ac_status); }; }; then
16624 ac_cv_lib_ncurses_tparm
=yes
16626 echo "$as_me: failed program was:" >&5
16627 sed 's/^/| /' conftest.
$ac_ext >&5
16629 ac_cv_lib_ncurses_tparm
=no
16631 rm -f conftest.err conftest.
$ac_objext \
16632 conftest
$ac_exeext conftest.
$ac_ext
16633 LIBS
=$ac_check_lib_save_LIBS
16635 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
16636 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6
16637 if test $ac_cv_lib_ncurses_tparm = yes; then
16638 cat >>confdefs.h
<<_ACEOF
16639 #define HAVE_LIBNCURSES 1
16642 LIBS
="-lncurses $LIBS"
16647 # Do we need the Hesiod library to provide the support routines?
16648 if test "$with_hesiod" = yes ; then
16649 # Don't set $LIBS here -- see comments above.
16651 echo "$as_me:$LINENO: checking for res_send" >&5
16652 echo $ECHO_N "checking for res_send... $ECHO_C" >&6
16653 if test "${ac_cv_func_res_send+set}" = set; then
16654 echo $ECHO_N "(cached) $ECHO_C" >&6
16656 cat >conftest.
$ac_ext <<_ACEOF
16659 cat confdefs.h
>>conftest.
$ac_ext
16660 cat >>conftest.
$ac_ext <<_ACEOF
16661 /* end confdefs.h. */
16662 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
16663 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16664 #define res_send innocuous_res_send
16666 /* System header to define __stub macros and hopefully few prototypes,
16667 which can conflict with char res_send (); below.
16668 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16669 <limits.h> exists even on freestanding compilers. */
16672 # include <limits.h>
16674 # include <assert.h>
16679 /* Override any gcc2 internal prototype to avoid an error. */
16684 /* We use char because int might match the return type of a gcc2
16685 builtin and then its argument prototype would still apply. */
16687 /* The GNU C library defines this for functions which it implements
16688 to always fail with ENOSYS. Some functions are actually named
16689 something starting with __ and the normal name is an alias. */
16690 #if defined (__stub_res_send) || defined (__stub___res_send)
16693 char (*f) () = res_send;
16702 return f != res_send;
16707 rm -f conftest.
$ac_objext conftest
$ac_exeext
16708 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16709 (eval $ac_link) 2>conftest.er1
16711 grep -v '^ *+' conftest.er1
>conftest.err
16713 cat conftest.err
>&5
16714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16715 (exit $ac_status); } &&
16716 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16718 (eval $ac_try) 2>&5
16720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16721 (exit $ac_status); }; } &&
16722 { ac_try
='test -s conftest$ac_exeext'
16723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16724 (eval $ac_try) 2>&5
16726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16727 (exit $ac_status); }; }; then
16728 ac_cv_func_res_send
=yes
16730 echo "$as_me: failed program was:" >&5
16731 sed 's/^/| /' conftest.
$ac_ext >&5
16733 ac_cv_func_res_send
=no
16735 rm -f conftest.err conftest.
$ac_objext \
16736 conftest
$ac_exeext conftest.
$ac_ext
16738 echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
16739 echo "${ECHO_T}$ac_cv_func_res_send" >&6
16740 if test $ac_cv_func_res_send = yes; then
16743 echo "$as_me:$LINENO: checking for __res_send" >&5
16744 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6
16745 if test "${ac_cv_func___res_send+set}" = set; then
16746 echo $ECHO_N "(cached) $ECHO_C" >&6
16748 cat >conftest.
$ac_ext <<_ACEOF
16751 cat confdefs.h
>>conftest.
$ac_ext
16752 cat >>conftest.
$ac_ext <<_ACEOF
16753 /* end confdefs.h. */
16754 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
16755 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16756 #define __res_send innocuous___res_send
16758 /* System header to define __stub macros and hopefully few prototypes,
16759 which can conflict with char __res_send (); below.
16760 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16761 <limits.h> exists even on freestanding compilers. */
16764 # include <limits.h>
16766 # include <assert.h>
16771 /* Override any gcc2 internal prototype to avoid an error. */
16776 /* We use char because int might match the return type of a gcc2
16777 builtin and then its argument prototype would still apply. */
16778 char __res_send ();
16779 /* The GNU C library defines this for functions which it implements
16780 to always fail with ENOSYS. Some functions are actually named
16781 something starting with __ and the normal name is an alias. */
16782 #if defined (__stub___res_send) || defined (__stub_____res_send)
16785 char (*f) () = __res_send;
16794 return f != __res_send;
16799 rm -f conftest.
$ac_objext conftest
$ac_exeext
16800 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16801 (eval $ac_link) 2>conftest.er1
16803 grep -v '^ *+' conftest.er1
>conftest.err
16805 cat conftest.err
>&5
16806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16807 (exit $ac_status); } &&
16808 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16810 (eval $ac_try) 2>&5
16812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16813 (exit $ac_status); }; } &&
16814 { ac_try
='test -s conftest$ac_exeext'
16815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16816 (eval $ac_try) 2>&5
16818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16819 (exit $ac_status); }; }; then
16820 ac_cv_func___res_send
=yes
16822 echo "$as_me: failed program was:" >&5
16823 sed 's/^/| /' conftest.
$ac_ext >&5
16825 ac_cv_func___res_send
=no
16827 rm -f conftest.err conftest.
$ac_objext \
16828 conftest
$ac_exeext conftest.
$ac_ext
16830 echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
16831 echo "${ECHO_T}$ac_cv_func___res_send" >&6
16832 if test $ac_cv_func___res_send = yes; then
16835 echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
16836 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6
16837 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
16838 echo $ECHO_N "(cached) $ECHO_C" >&6
16840 ac_check_lib_save_LIBS
=$LIBS
16841 LIBS
="-lresolv $LIBS"
16842 cat >conftest.
$ac_ext <<_ACEOF
16845 cat confdefs.h
>>conftest.
$ac_ext
16846 cat >>conftest.
$ac_ext <<_ACEOF
16847 /* end confdefs.h. */
16849 /* Override any gcc2 internal prototype to avoid an error. */
16853 /* We use char because int might match the return type of a gcc2
16854 builtin and then its argument prototype would still apply. */
16864 rm -f conftest.
$ac_objext conftest
$ac_exeext
16865 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16866 (eval $ac_link) 2>conftest.er1
16868 grep -v '^ *+' conftest.er1
>conftest.err
16870 cat conftest.err
>&5
16871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16872 (exit $ac_status); } &&
16873 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16875 (eval $ac_try) 2>&5
16877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16878 (exit $ac_status); }; } &&
16879 { ac_try
='test -s conftest$ac_exeext'
16880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16881 (eval $ac_try) 2>&5
16883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16884 (exit $ac_status); }; }; then
16885 ac_cv_lib_resolv_res_send
=yes
16887 echo "$as_me: failed program was:" >&5
16888 sed 's/^/| /' conftest.
$ac_ext >&5
16890 ac_cv_lib_resolv_res_send
=no
16892 rm -f conftest.err conftest.
$ac_objext \
16893 conftest
$ac_exeext conftest.
$ac_ext
16894 LIBS
=$ac_check_lib_save_LIBS
16896 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
16897 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6
16898 if test $ac_cv_lib_resolv_res_send = yes; then
16901 echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
16902 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6
16903 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
16904 echo $ECHO_N "(cached) $ECHO_C" >&6
16906 ac_check_lib_save_LIBS
=$LIBS
16907 LIBS
="-lresolv $LIBS"
16908 cat >conftest.
$ac_ext <<_ACEOF
16911 cat confdefs.h
>>conftest.
$ac_ext
16912 cat >>conftest.
$ac_ext <<_ACEOF
16913 /* end confdefs.h. */
16915 /* Override any gcc2 internal prototype to avoid an error. */
16919 /* We use char because int might match the return type of a gcc2
16920 builtin and then its argument prototype would still apply. */
16921 char __res_send ();
16930 rm -f conftest.
$ac_objext conftest
$ac_exeext
16931 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16932 (eval $ac_link) 2>conftest.er1
16934 grep -v '^ *+' conftest.er1
>conftest.err
16936 cat conftest.err
>&5
16937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16938 (exit $ac_status); } &&
16939 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16941 (eval $ac_try) 2>&5
16943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16944 (exit $ac_status); }; } &&
16945 { ac_try
='test -s conftest$ac_exeext'
16946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16947 (eval $ac_try) 2>&5
16949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16950 (exit $ac_status); }; }; then
16951 ac_cv_lib_resolv___res_send
=yes
16953 echo "$as_me: failed program was:" >&5
16954 sed 's/^/| /' conftest.
$ac_ext >&5
16956 ac_cv_lib_resolv___res_send
=no
16958 rm -f conftest.err conftest.
$ac_objext \
16959 conftest
$ac_exeext conftest.
$ac_ext
16960 LIBS
=$ac_check_lib_save_LIBS
16962 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
16963 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6
16964 if test $ac_cv_lib_resolv___res_send = yes; then
16974 if test "$resolv" = yes ; then
16977 cat >>confdefs.h
<<\_ACEOF
16978 #define HAVE_LIBRESOLV 1
16984 echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
16985 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6
16986 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
16987 echo $ECHO_N "(cached) $ECHO_C" >&6
16989 cat >conftest.
$ac_ext <<_ACEOF
16992 cat confdefs.h
>>conftest.
$ac_ext
16993 cat >>conftest.
$ac_ext <<_ACEOF
16994 /* end confdefs.h. */
16995 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
16996 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16997 #define hes_getmailhost innocuous_hes_getmailhost
16999 /* System header to define __stub macros and hopefully few prototypes,
17000 which can conflict with char hes_getmailhost (); below.
17001 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17002 <limits.h> exists even on freestanding compilers. */
17005 # include <limits.h>
17007 # include <assert.h>
17010 #undef hes_getmailhost
17012 /* Override any gcc2 internal prototype to avoid an error. */
17017 /* We use char because int might match the return type of a gcc2
17018 builtin and then its argument prototype would still apply. */
17019 char hes_getmailhost ();
17020 /* The GNU C library defines this for functions which it implements
17021 to always fail with ENOSYS. Some functions are actually named
17022 something starting with __ and the normal name is an alias. */
17023 #if defined (__stub_hes_getmailhost) || defined (__stub___hes_getmailhost)
17026 char (*f) () = hes_getmailhost;
17035 return f != hes_getmailhost;
17040 rm -f conftest.
$ac_objext conftest
$ac_exeext
17041 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17042 (eval $ac_link) 2>conftest.er1
17044 grep -v '^ *+' conftest.er1
>conftest.err
17046 cat conftest.err
>&5
17047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17048 (exit $ac_status); } &&
17049 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17051 (eval $ac_try) 2>&5
17053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17054 (exit $ac_status); }; } &&
17055 { ac_try
='test -s conftest$ac_exeext'
17056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17057 (eval $ac_try) 2>&5
17059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17060 (exit $ac_status); }; }; then
17061 ac_cv_func_hes_getmailhost
=yes
17063 echo "$as_me: failed program was:" >&5
17064 sed 's/^/| /' conftest.
$ac_ext >&5
17066 ac_cv_func_hes_getmailhost
=no
17068 rm -f conftest.err conftest.
$ac_objext \
17069 conftest
$ac_exeext conftest.
$ac_ext
17071 echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
17072 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6
17073 if test $ac_cv_func_hes_getmailhost = yes; then
17076 echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
17077 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6
17078 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
17079 echo $ECHO_N "(cached) $ECHO_C" >&6
17081 ac_check_lib_save_LIBS
=$LIBS
17082 LIBS
="-lhesiod $RESOLVLIB $LIBS"
17083 cat >conftest.
$ac_ext <<_ACEOF
17086 cat confdefs.h
>>conftest.
$ac_ext
17087 cat >>conftest.
$ac_ext <<_ACEOF
17088 /* end confdefs.h. */
17090 /* Override any gcc2 internal prototype to avoid an error. */
17094 /* We use char because int might match the return type of a gcc2
17095 builtin and then its argument prototype would still apply. */
17096 char hes_getmailhost ();
17100 hes_getmailhost ();
17105 rm -f conftest.
$ac_objext conftest
$ac_exeext
17106 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17107 (eval $ac_link) 2>conftest.er1
17109 grep -v '^ *+' conftest.er1
>conftest.err
17111 cat conftest.err
>&5
17112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17113 (exit $ac_status); } &&
17114 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17116 (eval $ac_try) 2>&5
17118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17119 (exit $ac_status); }; } &&
17120 { ac_try
='test -s conftest$ac_exeext'
17121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17122 (eval $ac_try) 2>&5
17124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17125 (exit $ac_status); }; }; then
17126 ac_cv_lib_hesiod_hes_getmailhost
=yes
17128 echo "$as_me: failed program was:" >&5
17129 sed 's/^/| /' conftest.
$ac_ext >&5
17131 ac_cv_lib_hesiod_hes_getmailhost
=no
17133 rm -f conftest.err conftest.
$ac_objext \
17134 conftest
$ac_exeext conftest.
$ac_ext
17135 LIBS
=$ac_check_lib_save_LIBS
17137 echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
17138 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6
17139 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
17141 cat >>confdefs.h
<<\_ACEOF
17142 #define HAVE_LIBHESIOD 1
17153 # These tell us which Kerberos-related libraries to use.
17154 if test "${with_kerberos+set}" = set; then
17156 echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
17157 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6
17158 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
17159 echo $ECHO_N "(cached) $ECHO_C" >&6
17161 ac_check_lib_save_LIBS
=$LIBS
17162 LIBS
="-lcom_err $LIBS"
17163 cat >conftest.
$ac_ext <<_ACEOF
17166 cat confdefs.h
>>conftest.
$ac_ext
17167 cat >>conftest.
$ac_ext <<_ACEOF
17168 /* end confdefs.h. */
17170 /* Override any gcc2 internal prototype to avoid an error. */
17174 /* We use char because int might match the return type of a gcc2
17175 builtin and then its argument prototype would still apply. */
17185 rm -f conftest.
$ac_objext conftest
$ac_exeext
17186 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17187 (eval $ac_link) 2>conftest.er1
17189 grep -v '^ *+' conftest.er1
>conftest.err
17191 cat conftest.err
>&5
17192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17193 (exit $ac_status); } &&
17194 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17196 (eval $ac_try) 2>&5
17198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17199 (exit $ac_status); }; } &&
17200 { ac_try
='test -s conftest$ac_exeext'
17201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17202 (eval $ac_try) 2>&5
17204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17205 (exit $ac_status); }; }; then
17206 ac_cv_lib_com_err_com_err
=yes
17208 echo "$as_me: failed program was:" >&5
17209 sed 's/^/| /' conftest.
$ac_ext >&5
17211 ac_cv_lib_com_err_com_err
=no
17213 rm -f conftest.err conftest.
$ac_objext \
17214 conftest
$ac_exeext conftest.
$ac_ext
17215 LIBS
=$ac_check_lib_save_LIBS
17217 echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
17218 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6
17219 if test $ac_cv_lib_com_err_com_err = yes; then
17220 cat >>confdefs.h
<<_ACEOF
17221 #define HAVE_LIBCOM_ERR 1
17224 LIBS
="-lcom_err $LIBS"
17229 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
17230 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6
17231 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
17232 echo $ECHO_N "(cached) $ECHO_C" >&6
17234 ac_check_lib_save_LIBS
=$LIBS
17235 LIBS
="-lk5crypto $LIBS"
17236 cat >conftest.
$ac_ext <<_ACEOF
17239 cat confdefs.h
>>conftest.
$ac_ext
17240 cat >>conftest.
$ac_ext <<_ACEOF
17241 /* end confdefs.h. */
17243 /* Override any gcc2 internal prototype to avoid an error. */
17247 /* We use char because int might match the return type of a gcc2
17248 builtin and then its argument prototype would still apply. */
17249 char mit_des_cbc_encrypt ();
17253 mit_des_cbc_encrypt ();
17258 rm -f conftest.
$ac_objext conftest
$ac_exeext
17259 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17260 (eval $ac_link) 2>conftest.er1
17262 grep -v '^ *+' conftest.er1
>conftest.err
17264 cat conftest.err
>&5
17265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17266 (exit $ac_status); } &&
17267 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17269 (eval $ac_try) 2>&5
17271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17272 (exit $ac_status); }; } &&
17273 { ac_try
='test -s conftest$ac_exeext'
17274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17275 (eval $ac_try) 2>&5
17277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17278 (exit $ac_status); }; }; then
17279 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=yes
17281 echo "$as_me: failed program was:" >&5
17282 sed 's/^/| /' conftest.
$ac_ext >&5
17284 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=no
17286 rm -f conftest.err conftest.
$ac_objext \
17287 conftest
$ac_exeext conftest.
$ac_ext
17288 LIBS
=$ac_check_lib_save_LIBS
17290 echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
17291 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6
17292 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
17293 cat >>confdefs.h
<<_ACEOF
17294 #define HAVE_LIBK5CRYPTO 1
17297 LIBS
="-lk5crypto $LIBS"
17302 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
17303 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6
17304 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
17305 echo $ECHO_N "(cached) $ECHO_C" >&6
17307 ac_check_lib_save_LIBS
=$LIBS
17308 LIBS
="-lcrypto $LIBS"
17309 cat >conftest.
$ac_ext <<_ACEOF
17312 cat confdefs.h
>>conftest.
$ac_ext
17313 cat >>conftest.
$ac_ext <<_ACEOF
17314 /* end confdefs.h. */
17316 /* Override any gcc2 internal prototype to avoid an error. */
17320 /* We use char because int might match the return type of a gcc2
17321 builtin and then its argument prototype would still apply. */
17322 char mit_des_cbc_encrypt ();
17326 mit_des_cbc_encrypt ();
17331 rm -f conftest.
$ac_objext conftest
$ac_exeext
17332 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17333 (eval $ac_link) 2>conftest.er1
17335 grep -v '^ *+' conftest.er1
>conftest.err
17337 cat conftest.err
>&5
17338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17339 (exit $ac_status); } &&
17340 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17342 (eval $ac_try) 2>&5
17344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17345 (exit $ac_status); }; } &&
17346 { ac_try
='test -s conftest$ac_exeext'
17347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17348 (eval $ac_try) 2>&5
17350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17351 (exit $ac_status); }; }; then
17352 ac_cv_lib_crypto_mit_des_cbc_encrypt
=yes
17354 echo "$as_me: failed program was:" >&5
17355 sed 's/^/| /' conftest.
$ac_ext >&5
17357 ac_cv_lib_crypto_mit_des_cbc_encrypt
=no
17359 rm -f conftest.err conftest.
$ac_objext \
17360 conftest
$ac_exeext conftest.
$ac_ext
17361 LIBS
=$ac_check_lib_save_LIBS
17363 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
17364 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6
17365 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
17366 cat >>confdefs.h
<<_ACEOF
17367 #define HAVE_LIBCRYPTO 1
17370 LIBS
="-lcrypto $LIBS"
17375 echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
17376 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6
17377 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
17378 echo $ECHO_N "(cached) $ECHO_C" >&6
17380 ac_check_lib_save_LIBS
=$LIBS
17381 LIBS
="-lkrb5 $LIBS"
17382 cat >conftest.
$ac_ext <<_ACEOF
17385 cat confdefs.h
>>conftest.
$ac_ext
17386 cat >>conftest.
$ac_ext <<_ACEOF
17387 /* end confdefs.h. */
17389 /* Override any gcc2 internal prototype to avoid an error. */
17393 /* We use char because int might match the return type of a gcc2
17394 builtin and then its argument prototype would still apply. */
17395 char krb5_init_context ();
17399 krb5_init_context ();
17404 rm -f conftest.
$ac_objext conftest
$ac_exeext
17405 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17406 (eval $ac_link) 2>conftest.er1
17408 grep -v '^ *+' conftest.er1
>conftest.err
17410 cat conftest.err
>&5
17411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17412 (exit $ac_status); } &&
17413 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17415 (eval $ac_try) 2>&5
17417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17418 (exit $ac_status); }; } &&
17419 { ac_try
='test -s conftest$ac_exeext'
17420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17421 (eval $ac_try) 2>&5
17423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17424 (exit $ac_status); }; }; then
17425 ac_cv_lib_krb5_krb5_init_context
=yes
17427 echo "$as_me: failed program was:" >&5
17428 sed 's/^/| /' conftest.
$ac_ext >&5
17430 ac_cv_lib_krb5_krb5_init_context
=no
17432 rm -f conftest.err conftest.
$ac_objext \
17433 conftest
$ac_exeext conftest.
$ac_ext
17434 LIBS
=$ac_check_lib_save_LIBS
17436 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
17437 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6
17438 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
17439 cat >>confdefs.h
<<_ACEOF
17440 #define HAVE_LIBKRB5 1
17443 LIBS
="-lkrb5 $LIBS"
17447 if test "${with_kerberos5+set}" != set; then
17449 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
17450 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6
17451 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
17452 echo $ECHO_N "(cached) $ECHO_C" >&6
17454 ac_check_lib_save_LIBS
=$LIBS
17455 LIBS
="-ldes425 $LIBS"
17456 cat >conftest.
$ac_ext <<_ACEOF
17459 cat confdefs.h
>>conftest.
$ac_ext
17460 cat >>conftest.
$ac_ext <<_ACEOF
17461 /* end confdefs.h. */
17463 /* Override any gcc2 internal prototype to avoid an error. */
17467 /* We use char because int might match the return type of a gcc2
17468 builtin and then its argument prototype would still apply. */
17469 char des_cbc_encrypt ();
17473 des_cbc_encrypt ();
17478 rm -f conftest.
$ac_objext conftest
$ac_exeext
17479 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17480 (eval $ac_link) 2>conftest.er1
17482 grep -v '^ *+' conftest.er1
>conftest.err
17484 cat conftest.err
>&5
17485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17486 (exit $ac_status); } &&
17487 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17489 (eval $ac_try) 2>&5
17491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17492 (exit $ac_status); }; } &&
17493 { ac_try
='test -s conftest$ac_exeext'
17494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17495 (eval $ac_try) 2>&5
17497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17498 (exit $ac_status); }; }; then
17499 ac_cv_lib_des425_des_cbc_encrypt
=yes
17501 echo "$as_me: failed program was:" >&5
17502 sed 's/^/| /' conftest.
$ac_ext >&5
17504 ac_cv_lib_des425_des_cbc_encrypt
=no
17506 rm -f conftest.err conftest.
$ac_objext \
17507 conftest
$ac_exeext conftest.
$ac_ext
17508 LIBS
=$ac_check_lib_save_LIBS
17510 echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
17511 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6
17512 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
17513 cat >>confdefs.h
<<_ACEOF
17514 #define HAVE_LIBDES425 1
17517 LIBS
="-ldes425 $LIBS"
17521 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
17522 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6
17523 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
17524 echo $ECHO_N "(cached) $ECHO_C" >&6
17526 ac_check_lib_save_LIBS
=$LIBS
17528 cat >conftest.
$ac_ext <<_ACEOF
17531 cat confdefs.h
>>conftest.
$ac_ext
17532 cat >>conftest.
$ac_ext <<_ACEOF
17533 /* end confdefs.h. */
17535 /* Override any gcc2 internal prototype to avoid an error. */
17539 /* We use char because int might match the return type of a gcc2
17540 builtin and then its argument prototype would still apply. */
17541 char des_cbc_encrypt ();
17545 des_cbc_encrypt ();
17550 rm -f conftest.
$ac_objext conftest
$ac_exeext
17551 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17552 (eval $ac_link) 2>conftest.er1
17554 grep -v '^ *+' conftest.er1
>conftest.err
17556 cat conftest.err
>&5
17557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17558 (exit $ac_status); } &&
17559 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17561 (eval $ac_try) 2>&5
17563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17564 (exit $ac_status); }; } &&
17565 { ac_try
='test -s conftest$ac_exeext'
17566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17567 (eval $ac_try) 2>&5
17569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17570 (exit $ac_status); }; }; then
17571 ac_cv_lib_des_des_cbc_encrypt
=yes
17573 echo "$as_me: failed program was:" >&5
17574 sed 's/^/| /' conftest.
$ac_ext >&5
17576 ac_cv_lib_des_des_cbc_encrypt
=no
17578 rm -f conftest.err conftest.
$ac_objext \
17579 conftest
$ac_exeext conftest.
$ac_ext
17580 LIBS
=$ac_check_lib_save_LIBS
17582 echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
17583 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6
17584 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
17585 cat >>confdefs.h
<<_ACEOF
17586 #define HAVE_LIBDES 1
17596 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
17597 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6
17598 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
17599 echo $ECHO_N "(cached) $ECHO_C" >&6
17601 ac_check_lib_save_LIBS
=$LIBS
17602 LIBS
="-lkrb4 $LIBS"
17603 cat >conftest.
$ac_ext <<_ACEOF
17606 cat confdefs.h
>>conftest.
$ac_ext
17607 cat >>conftest.
$ac_ext <<_ACEOF
17608 /* end confdefs.h. */
17610 /* Override any gcc2 internal prototype to avoid an error. */
17614 /* We use char because int might match the return type of a gcc2
17615 builtin and then its argument prototype would still apply. */
17616 char krb_get_cred ();
17625 rm -f conftest.
$ac_objext conftest
$ac_exeext
17626 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17627 (eval $ac_link) 2>conftest.er1
17629 grep -v '^ *+' conftest.er1
>conftest.err
17631 cat conftest.err
>&5
17632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17633 (exit $ac_status); } &&
17634 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17636 (eval $ac_try) 2>&5
17638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17639 (exit $ac_status); }; } &&
17640 { ac_try
='test -s conftest$ac_exeext'
17641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17642 (eval $ac_try) 2>&5
17644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17645 (exit $ac_status); }; }; then
17646 ac_cv_lib_krb4_krb_get_cred
=yes
17648 echo "$as_me: failed program was:" >&5
17649 sed 's/^/| /' conftest.
$ac_ext >&5
17651 ac_cv_lib_krb4_krb_get_cred
=no
17653 rm -f conftest.err conftest.
$ac_objext \
17654 conftest
$ac_exeext conftest.
$ac_ext
17655 LIBS
=$ac_check_lib_save_LIBS
17657 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
17658 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6
17659 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
17660 cat >>confdefs.h
<<_ACEOF
17661 #define HAVE_LIBKRB4 1
17664 LIBS
="-lkrb4 $LIBS"
17668 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
17669 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6
17670 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
17671 echo $ECHO_N "(cached) $ECHO_C" >&6
17673 ac_check_lib_save_LIBS
=$LIBS
17675 cat >conftest.
$ac_ext <<_ACEOF
17678 cat confdefs.h
>>conftest.
$ac_ext
17679 cat >>conftest.
$ac_ext <<_ACEOF
17680 /* end confdefs.h. */
17682 /* Override any gcc2 internal prototype to avoid an error. */
17686 /* We use char because int might match the return type of a gcc2
17687 builtin and then its argument prototype would still apply. */
17688 char krb_get_cred ();
17697 rm -f conftest.
$ac_objext conftest
$ac_exeext
17698 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17699 (eval $ac_link) 2>conftest.er1
17701 grep -v '^ *+' conftest.er1
>conftest.err
17703 cat conftest.err
>&5
17704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17705 (exit $ac_status); } &&
17706 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17708 (eval $ac_try) 2>&5
17710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17711 (exit $ac_status); }; } &&
17712 { ac_try
='test -s conftest$ac_exeext'
17713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17714 (eval $ac_try) 2>&5
17716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17717 (exit $ac_status); }; }; then
17718 ac_cv_lib_krb_krb_get_cred
=yes
17720 echo "$as_me: failed program was:" >&5
17721 sed 's/^/| /' conftest.
$ac_ext >&5
17723 ac_cv_lib_krb_krb_get_cred
=no
17725 rm -f conftest.err conftest.
$ac_objext \
17726 conftest
$ac_exeext conftest.
$ac_ext
17727 LIBS
=$ac_check_lib_save_LIBS
17729 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
17730 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6
17731 if test $ac_cv_lib_krb_krb_get_cred = yes; then
17732 cat >>confdefs.h
<<_ACEOF
17733 #define HAVE_LIBKRB 1
17744 if test "${with_kerberos5+set}" = set; then
17746 for ac_header
in krb5.h
17748 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17749 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17750 echo "$as_me:$LINENO: checking for $ac_header" >&5
17751 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17752 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17753 echo $ECHO_N "(cached) $ECHO_C" >&6
17755 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17756 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17758 # Is the header compilable?
17759 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17760 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17761 cat >conftest.
$ac_ext <<_ACEOF
17764 cat confdefs.h
>>conftest.
$ac_ext
17765 cat >>conftest.
$ac_ext <<_ACEOF
17766 /* end confdefs.h. */
17767 $ac_includes_default
17768 #include <$ac_header>
17770 rm -f conftest.
$ac_objext
17771 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17772 (eval $ac_compile) 2>conftest.er1
17774 grep -v '^ *+' conftest.er1
>conftest.err
17776 cat conftest.err
>&5
17777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17778 (exit $ac_status); } &&
17779 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17781 (eval $ac_try) 2>&5
17783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17784 (exit $ac_status); }; } &&
17785 { ac_try
='test -s conftest.$ac_objext'
17786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17787 (eval $ac_try) 2>&5
17789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17790 (exit $ac_status); }; }; then
17791 ac_header_compiler
=yes
17793 echo "$as_me: failed program was:" >&5
17794 sed 's/^/| /' conftest.
$ac_ext >&5
17796 ac_header_compiler
=no
17798 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17799 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17800 echo "${ECHO_T}$ac_header_compiler" >&6
17802 # Is the header present?
17803 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17804 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17805 cat >conftest.
$ac_ext <<_ACEOF
17808 cat confdefs.h
>>conftest.
$ac_ext
17809 cat >>conftest.
$ac_ext <<_ACEOF
17810 /* end confdefs.h. */
17811 #include <$ac_header>
17813 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17814 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
17816 grep -v '^ *+' conftest.er1
>conftest.err
17818 cat conftest.err
>&5
17819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17820 (exit $ac_status); } >/dev
/null
; then
17821 if test -s conftest.err
; then
17822 ac_cpp_err
=$ac_c_preproc_warn_flag
17823 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
17830 if test -z "$ac_cpp_err"; then
17831 ac_header_preproc
=yes
17833 echo "$as_me: failed program was:" >&5
17834 sed 's/^/| /' conftest.
$ac_ext >&5
17836 ac_header_preproc
=no
17838 rm -f conftest.err conftest.
$ac_ext
17839 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17840 echo "${ECHO_T}$ac_header_preproc" >&6
17842 # So? What about this header?
17843 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17845 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17846 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17847 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17848 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17849 ac_header_preproc
=yes
17852 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17853 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17854 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17855 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17856 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17857 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17858 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17859 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17860 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17861 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17862 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17863 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17866 ## ------------------------------------------ ##
17867 ## Report this to the AC_PACKAGE_NAME lists. ##
17868 ## ------------------------------------------ ##
17871 sed "s/^/$as_me: WARNING: /" >&2
17874 echo "$as_me:$LINENO: checking for $ac_header" >&5
17875 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17876 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17877 echo $ECHO_N "(cached) $ECHO_C" >&6
17879 eval "$as_ac_Header=\$ac_header_preproc"
17881 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17882 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17885 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17886 cat >>confdefs.h
<<_ACEOF
17887 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17896 for ac_header
in des.h
17898 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17899 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17900 echo "$as_me:$LINENO: checking for $ac_header" >&5
17901 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17902 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17903 echo $ECHO_N "(cached) $ECHO_C" >&6
17905 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17906 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17908 # Is the header compilable?
17909 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17910 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17911 cat >conftest.
$ac_ext <<_ACEOF
17914 cat confdefs.h
>>conftest.
$ac_ext
17915 cat >>conftest.
$ac_ext <<_ACEOF
17916 /* end confdefs.h. */
17917 $ac_includes_default
17918 #include <$ac_header>
17920 rm -f conftest.
$ac_objext
17921 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17922 (eval $ac_compile) 2>conftest.er1
17924 grep -v '^ *+' conftest.er1
>conftest.err
17926 cat conftest.err
>&5
17927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17928 (exit $ac_status); } &&
17929 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17931 (eval $ac_try) 2>&5
17933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17934 (exit $ac_status); }; } &&
17935 { ac_try
='test -s conftest.$ac_objext'
17936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17937 (eval $ac_try) 2>&5
17939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17940 (exit $ac_status); }; }; then
17941 ac_header_compiler
=yes
17943 echo "$as_me: failed program was:" >&5
17944 sed 's/^/| /' conftest.
$ac_ext >&5
17946 ac_header_compiler
=no
17948 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17949 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17950 echo "${ECHO_T}$ac_header_compiler" >&6
17952 # Is the header present?
17953 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17954 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17955 cat >conftest.
$ac_ext <<_ACEOF
17958 cat confdefs.h
>>conftest.
$ac_ext
17959 cat >>conftest.
$ac_ext <<_ACEOF
17960 /* end confdefs.h. */
17961 #include <$ac_header>
17963 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17964 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
17966 grep -v '^ *+' conftest.er1
>conftest.err
17968 cat conftest.err
>&5
17969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17970 (exit $ac_status); } >/dev
/null
; then
17971 if test -s conftest.err
; then
17972 ac_cpp_err
=$ac_c_preproc_warn_flag
17973 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
17980 if test -z "$ac_cpp_err"; then
17981 ac_header_preproc
=yes
17983 echo "$as_me: failed program was:" >&5
17984 sed 's/^/| /' conftest.
$ac_ext >&5
17986 ac_header_preproc
=no
17988 rm -f conftest.err conftest.
$ac_ext
17989 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17990 echo "${ECHO_T}$ac_header_preproc" >&6
17992 # So? What about this header?
17993 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17995 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17996 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17997 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17998 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17999 ac_header_preproc
=yes
18002 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18003 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18004 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18005 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18006 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18007 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18008 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18009 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18010 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18011 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18012 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18013 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18016 ## ------------------------------------------ ##
18017 ## Report this to the AC_PACKAGE_NAME lists. ##
18018 ## ------------------------------------------ ##
18021 sed "s/^/$as_me: WARNING: /" >&2
18024 echo "$as_me:$LINENO: checking for $ac_header" >&5
18025 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18026 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18027 echo $ECHO_N "(cached) $ECHO_C" >&6
18029 eval "$as_ac_Header=\$ac_header_preproc"
18031 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18032 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18035 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18036 cat >>confdefs.h
<<_ACEOF
18037 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18042 for ac_header
in kerberosIV
/des.h
18044 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18045 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18046 echo "$as_me:$LINENO: checking for $ac_header" >&5
18047 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18048 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18049 echo $ECHO_N "(cached) $ECHO_C" >&6
18051 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18052 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18054 # Is the header compilable?
18055 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18056 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18057 cat >conftest.
$ac_ext <<_ACEOF
18060 cat confdefs.h
>>conftest.
$ac_ext
18061 cat >>conftest.
$ac_ext <<_ACEOF
18062 /* end confdefs.h. */
18063 $ac_includes_default
18064 #include <$ac_header>
18066 rm -f conftest.
$ac_objext
18067 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18068 (eval $ac_compile) 2>conftest.er1
18070 grep -v '^ *+' conftest.er1
>conftest.err
18072 cat conftest.err
>&5
18073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18074 (exit $ac_status); } &&
18075 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18077 (eval $ac_try) 2>&5
18079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18080 (exit $ac_status); }; } &&
18081 { ac_try
='test -s conftest.$ac_objext'
18082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18083 (eval $ac_try) 2>&5
18085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18086 (exit $ac_status); }; }; then
18087 ac_header_compiler
=yes
18089 echo "$as_me: failed program was:" >&5
18090 sed 's/^/| /' conftest.
$ac_ext >&5
18092 ac_header_compiler
=no
18094 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18095 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18096 echo "${ECHO_T}$ac_header_compiler" >&6
18098 # Is the header present?
18099 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18100 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18101 cat >conftest.
$ac_ext <<_ACEOF
18104 cat confdefs.h
>>conftest.
$ac_ext
18105 cat >>conftest.
$ac_ext <<_ACEOF
18106 /* end confdefs.h. */
18107 #include <$ac_header>
18109 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18110 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
18112 grep -v '^ *+' conftest.er1
>conftest.err
18114 cat conftest.err
>&5
18115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18116 (exit $ac_status); } >/dev
/null
; then
18117 if test -s conftest.err
; then
18118 ac_cpp_err
=$ac_c_preproc_warn_flag
18119 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
18126 if test -z "$ac_cpp_err"; then
18127 ac_header_preproc
=yes
18129 echo "$as_me: failed program was:" >&5
18130 sed 's/^/| /' conftest.
$ac_ext >&5
18132 ac_header_preproc
=no
18134 rm -f conftest.err conftest.
$ac_ext
18135 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18136 echo "${ECHO_T}$ac_header_preproc" >&6
18138 # So? What about this header?
18139 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18141 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18142 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18143 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18144 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18145 ac_header_preproc
=yes
18148 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18149 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18150 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18151 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18152 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18153 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18154 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18155 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18156 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18157 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18158 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18159 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18162 ## ------------------------------------------ ##
18163 ## Report this to the AC_PACKAGE_NAME lists. ##
18164 ## ------------------------------------------ ##
18167 sed "s/^/$as_me: WARNING: /" >&2
18170 echo "$as_me:$LINENO: checking for $ac_header" >&5
18171 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18172 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18173 echo $ECHO_N "(cached) $ECHO_C" >&6
18175 eval "$as_ac_Header=\$ac_header_preproc"
18177 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18178 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18181 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18182 cat >>confdefs.h
<<_ACEOF
18183 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18188 for ac_header
in kerberos
/des.h
18190 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18191 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18192 echo "$as_me:$LINENO: checking for $ac_header" >&5
18193 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18194 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18195 echo $ECHO_N "(cached) $ECHO_C" >&6
18197 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18198 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18200 # Is the header compilable?
18201 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18202 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18203 cat >conftest.
$ac_ext <<_ACEOF
18206 cat confdefs.h
>>conftest.
$ac_ext
18207 cat >>conftest.
$ac_ext <<_ACEOF
18208 /* end confdefs.h. */
18209 $ac_includes_default
18210 #include <$ac_header>
18212 rm -f conftest.
$ac_objext
18213 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18214 (eval $ac_compile) 2>conftest.er1
18216 grep -v '^ *+' conftest.er1
>conftest.err
18218 cat conftest.err
>&5
18219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18220 (exit $ac_status); } &&
18221 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18223 (eval $ac_try) 2>&5
18225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18226 (exit $ac_status); }; } &&
18227 { ac_try
='test -s conftest.$ac_objext'
18228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18229 (eval $ac_try) 2>&5
18231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18232 (exit $ac_status); }; }; then
18233 ac_header_compiler
=yes
18235 echo "$as_me: failed program was:" >&5
18236 sed 's/^/| /' conftest.
$ac_ext >&5
18238 ac_header_compiler
=no
18240 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18241 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18242 echo "${ECHO_T}$ac_header_compiler" >&6
18244 # Is the header present?
18245 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18246 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18247 cat >conftest.
$ac_ext <<_ACEOF
18250 cat confdefs.h
>>conftest.
$ac_ext
18251 cat >>conftest.
$ac_ext <<_ACEOF
18252 /* end confdefs.h. */
18253 #include <$ac_header>
18255 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18256 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
18258 grep -v '^ *+' conftest.er1
>conftest.err
18260 cat conftest.err
>&5
18261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18262 (exit $ac_status); } >/dev
/null
; then
18263 if test -s conftest.err
; then
18264 ac_cpp_err
=$ac_c_preproc_warn_flag
18265 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
18272 if test -z "$ac_cpp_err"; then
18273 ac_header_preproc
=yes
18275 echo "$as_me: failed program was:" >&5
18276 sed 's/^/| /' conftest.
$ac_ext >&5
18278 ac_header_preproc
=no
18280 rm -f conftest.err conftest.
$ac_ext
18281 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18282 echo "${ECHO_T}$ac_header_preproc" >&6
18284 # So? What about this header?
18285 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18287 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18288 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18289 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18290 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18291 ac_header_preproc
=yes
18294 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18295 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18296 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18297 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18298 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18299 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18300 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18301 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18302 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18303 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18304 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18305 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18308 ## ------------------------------------------ ##
18309 ## Report this to the AC_PACKAGE_NAME lists. ##
18310 ## ------------------------------------------ ##
18313 sed "s/^/$as_me: WARNING: /" >&2
18316 echo "$as_me:$LINENO: checking for $ac_header" >&5
18317 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18318 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18319 echo $ECHO_N "(cached) $ECHO_C" >&6
18321 eval "$as_ac_Header=\$ac_header_preproc"
18323 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18324 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18327 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18328 cat >>confdefs.h
<<_ACEOF
18329 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18345 for ac_header
in krb.h
18347 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18348 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18349 echo "$as_me:$LINENO: checking for $ac_header" >&5
18350 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18351 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18352 echo $ECHO_N "(cached) $ECHO_C" >&6
18354 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18355 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18357 # Is the header compilable?
18358 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18359 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18360 cat >conftest.
$ac_ext <<_ACEOF
18363 cat confdefs.h
>>conftest.
$ac_ext
18364 cat >>conftest.
$ac_ext <<_ACEOF
18365 /* end confdefs.h. */
18366 $ac_includes_default
18367 #include <$ac_header>
18369 rm -f conftest.
$ac_objext
18370 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18371 (eval $ac_compile) 2>conftest.er1
18373 grep -v '^ *+' conftest.er1
>conftest.err
18375 cat conftest.err
>&5
18376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18377 (exit $ac_status); } &&
18378 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18380 (eval $ac_try) 2>&5
18382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18383 (exit $ac_status); }; } &&
18384 { ac_try
='test -s conftest.$ac_objext'
18385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18386 (eval $ac_try) 2>&5
18388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18389 (exit $ac_status); }; }; then
18390 ac_header_compiler
=yes
18392 echo "$as_me: failed program was:" >&5
18393 sed 's/^/| /' conftest.
$ac_ext >&5
18395 ac_header_compiler
=no
18397 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18398 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18399 echo "${ECHO_T}$ac_header_compiler" >&6
18401 # Is the header present?
18402 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18403 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18404 cat >conftest.
$ac_ext <<_ACEOF
18407 cat confdefs.h
>>conftest.
$ac_ext
18408 cat >>conftest.
$ac_ext <<_ACEOF
18409 /* end confdefs.h. */
18410 #include <$ac_header>
18412 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18413 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
18415 grep -v '^ *+' conftest.er1
>conftest.err
18417 cat conftest.err
>&5
18418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18419 (exit $ac_status); } >/dev
/null
; then
18420 if test -s conftest.err
; then
18421 ac_cpp_err
=$ac_c_preproc_warn_flag
18422 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
18429 if test -z "$ac_cpp_err"; then
18430 ac_header_preproc
=yes
18432 echo "$as_me: failed program was:" >&5
18433 sed 's/^/| /' conftest.
$ac_ext >&5
18435 ac_header_preproc
=no
18437 rm -f conftest.err conftest.
$ac_ext
18438 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18439 echo "${ECHO_T}$ac_header_preproc" >&6
18441 # So? What about this header?
18442 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18444 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18445 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18446 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18447 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18448 ac_header_preproc
=yes
18451 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18452 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18453 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18454 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18455 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18456 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18457 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18458 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18459 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18460 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18461 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18462 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18465 ## ------------------------------------------ ##
18466 ## Report this to the AC_PACKAGE_NAME lists. ##
18467 ## ------------------------------------------ ##
18470 sed "s/^/$as_me: WARNING: /" >&2
18473 echo "$as_me:$LINENO: checking for $ac_header" >&5
18474 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18475 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18476 echo $ECHO_N "(cached) $ECHO_C" >&6
18478 eval "$as_ac_Header=\$ac_header_preproc"
18480 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18481 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18484 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18485 cat >>confdefs.h
<<_ACEOF
18486 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18491 for ac_header
in kerberosIV
/krb.h
18493 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18494 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18495 echo "$as_me:$LINENO: checking for $ac_header" >&5
18496 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18497 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18498 echo $ECHO_N "(cached) $ECHO_C" >&6
18500 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18501 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18503 # Is the header compilable?
18504 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18505 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18506 cat >conftest.
$ac_ext <<_ACEOF
18509 cat confdefs.h
>>conftest.
$ac_ext
18510 cat >>conftest.
$ac_ext <<_ACEOF
18511 /* end confdefs.h. */
18512 $ac_includes_default
18513 #include <$ac_header>
18515 rm -f conftest.
$ac_objext
18516 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18517 (eval $ac_compile) 2>conftest.er1
18519 grep -v '^ *+' conftest.er1
>conftest.err
18521 cat conftest.err
>&5
18522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18523 (exit $ac_status); } &&
18524 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18526 (eval $ac_try) 2>&5
18528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18529 (exit $ac_status); }; } &&
18530 { ac_try
='test -s conftest.$ac_objext'
18531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18532 (eval $ac_try) 2>&5
18534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18535 (exit $ac_status); }; }; then
18536 ac_header_compiler
=yes
18538 echo "$as_me: failed program was:" >&5
18539 sed 's/^/| /' conftest.
$ac_ext >&5
18541 ac_header_compiler
=no
18543 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18544 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18545 echo "${ECHO_T}$ac_header_compiler" >&6
18547 # Is the header present?
18548 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18549 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18550 cat >conftest.
$ac_ext <<_ACEOF
18553 cat confdefs.h
>>conftest.
$ac_ext
18554 cat >>conftest.
$ac_ext <<_ACEOF
18555 /* end confdefs.h. */
18556 #include <$ac_header>
18558 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18559 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
18561 grep -v '^ *+' conftest.er1
>conftest.err
18563 cat conftest.err
>&5
18564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18565 (exit $ac_status); } >/dev
/null
; then
18566 if test -s conftest.err
; then
18567 ac_cpp_err
=$ac_c_preproc_warn_flag
18568 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
18575 if test -z "$ac_cpp_err"; then
18576 ac_header_preproc
=yes
18578 echo "$as_me: failed program was:" >&5
18579 sed 's/^/| /' conftest.
$ac_ext >&5
18581 ac_header_preproc
=no
18583 rm -f conftest.err conftest.
$ac_ext
18584 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18585 echo "${ECHO_T}$ac_header_preproc" >&6
18587 # So? What about this header?
18588 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18590 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18591 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18592 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18593 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18594 ac_header_preproc
=yes
18597 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18598 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18599 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18600 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18601 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18602 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18603 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18604 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18605 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18606 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18607 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18608 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18611 ## ------------------------------------------ ##
18612 ## Report this to the AC_PACKAGE_NAME lists. ##
18613 ## ------------------------------------------ ##
18616 sed "s/^/$as_me: WARNING: /" >&2
18619 echo "$as_me:$LINENO: checking for $ac_header" >&5
18620 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18621 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18622 echo $ECHO_N "(cached) $ECHO_C" >&6
18624 eval "$as_ac_Header=\$ac_header_preproc"
18626 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18627 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18630 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18631 cat >>confdefs.h
<<_ACEOF
18632 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18637 for ac_header
in kerberos
/krb.h
18639 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18640 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18641 echo "$as_me:$LINENO: checking for $ac_header" >&5
18642 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18643 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18644 echo $ECHO_N "(cached) $ECHO_C" >&6
18646 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18647 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18649 # Is the header compilable?
18650 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18651 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18652 cat >conftest.
$ac_ext <<_ACEOF
18655 cat confdefs.h
>>conftest.
$ac_ext
18656 cat >>conftest.
$ac_ext <<_ACEOF
18657 /* end confdefs.h. */
18658 $ac_includes_default
18659 #include <$ac_header>
18661 rm -f conftest.
$ac_objext
18662 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18663 (eval $ac_compile) 2>conftest.er1
18665 grep -v '^ *+' conftest.er1
>conftest.err
18667 cat conftest.err
>&5
18668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18669 (exit $ac_status); } &&
18670 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18672 (eval $ac_try) 2>&5
18674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18675 (exit $ac_status); }; } &&
18676 { ac_try
='test -s conftest.$ac_objext'
18677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18678 (eval $ac_try) 2>&5
18680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18681 (exit $ac_status); }; }; then
18682 ac_header_compiler
=yes
18684 echo "$as_me: failed program was:" >&5
18685 sed 's/^/| /' conftest.
$ac_ext >&5
18687 ac_header_compiler
=no
18689 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18690 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18691 echo "${ECHO_T}$ac_header_compiler" >&6
18693 # Is the header present?
18694 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18695 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18696 cat >conftest.
$ac_ext <<_ACEOF
18699 cat confdefs.h
>>conftest.
$ac_ext
18700 cat >>conftest.
$ac_ext <<_ACEOF
18701 /* end confdefs.h. */
18702 #include <$ac_header>
18704 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18705 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
18707 grep -v '^ *+' conftest.er1
>conftest.err
18709 cat conftest.err
>&5
18710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18711 (exit $ac_status); } >/dev
/null
; then
18712 if test -s conftest.err
; then
18713 ac_cpp_err
=$ac_c_preproc_warn_flag
18714 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
18721 if test -z "$ac_cpp_err"; then
18722 ac_header_preproc
=yes
18724 echo "$as_me: failed program was:" >&5
18725 sed 's/^/| /' conftest.
$ac_ext >&5
18727 ac_header_preproc
=no
18729 rm -f conftest.err conftest.
$ac_ext
18730 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18731 echo "${ECHO_T}$ac_header_preproc" >&6
18733 # So? What about this header?
18734 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18736 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18737 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18738 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18739 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18740 ac_header_preproc
=yes
18743 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18744 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18745 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18746 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18747 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18748 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18749 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18750 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18751 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18752 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18753 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18754 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18757 ## ------------------------------------------ ##
18758 ## Report this to the AC_PACKAGE_NAME lists. ##
18759 ## ------------------------------------------ ##
18762 sed "s/^/$as_me: WARNING: /" >&2
18765 echo "$as_me:$LINENO: checking for $ac_header" >&5
18766 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18767 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18768 echo $ECHO_N "(cached) $ECHO_C" >&6
18770 eval "$as_ac_Header=\$ac_header_preproc"
18772 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18773 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18776 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18777 cat >>confdefs.h
<<_ACEOF
18778 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18795 for ac_header
in com_err.h
18797 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18798 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18799 echo "$as_me:$LINENO: checking for $ac_header" >&5
18800 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18801 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18802 echo $ECHO_N "(cached) $ECHO_C" >&6
18804 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18805 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18807 # Is the header compilable?
18808 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18809 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18810 cat >conftest.
$ac_ext <<_ACEOF
18813 cat confdefs.h
>>conftest.
$ac_ext
18814 cat >>conftest.
$ac_ext <<_ACEOF
18815 /* end confdefs.h. */
18816 $ac_includes_default
18817 #include <$ac_header>
18819 rm -f conftest.
$ac_objext
18820 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18821 (eval $ac_compile) 2>conftest.er1
18823 grep -v '^ *+' conftest.er1
>conftest.err
18825 cat conftest.err
>&5
18826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18827 (exit $ac_status); } &&
18828 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18830 (eval $ac_try) 2>&5
18832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18833 (exit $ac_status); }; } &&
18834 { ac_try
='test -s conftest.$ac_objext'
18835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18836 (eval $ac_try) 2>&5
18838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18839 (exit $ac_status); }; }; then
18840 ac_header_compiler
=yes
18842 echo "$as_me: failed program was:" >&5
18843 sed 's/^/| /' conftest.
$ac_ext >&5
18845 ac_header_compiler
=no
18847 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18848 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18849 echo "${ECHO_T}$ac_header_compiler" >&6
18851 # Is the header present?
18852 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18853 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18854 cat >conftest.
$ac_ext <<_ACEOF
18857 cat confdefs.h
>>conftest.
$ac_ext
18858 cat >>conftest.
$ac_ext <<_ACEOF
18859 /* end confdefs.h. */
18860 #include <$ac_header>
18862 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18863 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
18865 grep -v '^ *+' conftest.er1
>conftest.err
18867 cat conftest.err
>&5
18868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18869 (exit $ac_status); } >/dev
/null
; then
18870 if test -s conftest.err
; then
18871 ac_cpp_err
=$ac_c_preproc_warn_flag
18872 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
18879 if test -z "$ac_cpp_err"; then
18880 ac_header_preproc
=yes
18882 echo "$as_me: failed program was:" >&5
18883 sed 's/^/| /' conftest.
$ac_ext >&5
18885 ac_header_preproc
=no
18887 rm -f conftest.err conftest.
$ac_ext
18888 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18889 echo "${ECHO_T}$ac_header_preproc" >&6
18891 # So? What about this header?
18892 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18894 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18895 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18896 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18897 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18898 ac_header_preproc
=yes
18901 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18902 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18903 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18904 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18905 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18906 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18907 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18908 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18909 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18910 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18911 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18912 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18915 ## ------------------------------------------ ##
18916 ## Report this to the AC_PACKAGE_NAME lists. ##
18917 ## ------------------------------------------ ##
18920 sed "s/^/$as_me: WARNING: /" >&2
18923 echo "$as_me:$LINENO: checking for $ac_header" >&5
18924 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18925 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18926 echo $ECHO_N "(cached) $ECHO_C" >&6
18928 eval "$as_ac_Header=\$ac_header_preproc"
18930 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18931 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18934 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18935 cat >>confdefs.h
<<_ACEOF
18936 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18945 # Solaris requires -lintl if you want strerror (which calls dgettext)
18946 # to return localized messages.
18948 echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
18949 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6
18950 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
18951 echo $ECHO_N "(cached) $ECHO_C" >&6
18953 ac_check_lib_save_LIBS
=$LIBS
18954 LIBS
="-lintl $LIBS"
18955 cat >conftest.
$ac_ext <<_ACEOF
18958 cat confdefs.h
>>conftest.
$ac_ext
18959 cat >>conftest.
$ac_ext <<_ACEOF
18960 /* end confdefs.h. */
18962 /* Override any gcc2 internal prototype to avoid an error. */
18966 /* We use char because int might match the return type of a gcc2
18967 builtin and then its argument prototype would still apply. */
18977 rm -f conftest.
$ac_objext conftest
$ac_exeext
18978 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18979 (eval $ac_link) 2>conftest.er1
18981 grep -v '^ *+' conftest.er1
>conftest.err
18983 cat conftest.err
>&5
18984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18985 (exit $ac_status); } &&
18986 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18988 (eval $ac_try) 2>&5
18990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18991 (exit $ac_status); }; } &&
18992 { ac_try
='test -s conftest$ac_exeext'
18993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18994 (eval $ac_try) 2>&5
18996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18997 (exit $ac_status); }; }; then
18998 ac_cv_lib_intl_dgettext
=yes
19000 echo "$as_me: failed program was:" >&5
19001 sed 's/^/| /' conftest.
$ac_ext >&5
19003 ac_cv_lib_intl_dgettext
=no
19005 rm -f conftest.err conftest.
$ac_objext \
19006 conftest
$ac_exeext conftest.
$ac_ext
19007 LIBS
=$ac_check_lib_save_LIBS
19009 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
19010 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6
19011 if test $ac_cv_lib_intl_dgettext = yes; then
19012 cat >>confdefs.h
<<_ACEOF
19013 #define HAVE_LIBINTL 1
19016 LIBS
="-lintl $LIBS"
19021 echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
19022 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6
19023 if test "${emacs_cv_localtime_cache+set}" = set; then
19024 echo $ECHO_N "(cached) $ECHO_C" >&6
19026 if test x
$ac_cv_func_tzset = xyes
; then
19027 if test "$cross_compiling" = yes; then
19028 # If we have tzset, assume the worst when cross-compiling.
19029 emacs_cv_localtime_cache
=yes
19031 cat >conftest.
$ac_ext <<_ACEOF
19034 cat confdefs.h
>>conftest.
$ac_ext
19035 cat >>conftest.
$ac_ext <<_ACEOF
19036 /* end confdefs.h. */
19038 extern char **environ;
19042 for (to = from = environ; (*to = *from); from++)
19043 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
19046 char TZ_GMT0[] = "TZ=GMT0";
19047 char TZ_PST8[] = "TZ=PST8";
19050 time_t now = time ((time_t *) 0);
19051 int hour_GMT0, hour_unset;
19052 if (putenv (TZ_GMT0) != 0)
19054 hour_GMT0 = localtime (&now)->tm_hour;
19056 hour_unset = localtime (&now)->tm_hour;
19057 if (putenv (TZ_PST8) != 0)
19059 if (localtime (&now)->tm_hour == hour_GMT0)
19062 if (localtime (&now)->tm_hour != hour_unset)
19067 rm -f conftest
$ac_exeext
19068 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19069 (eval $ac_link) 2>&5
19071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19072 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
19073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19074 (eval $ac_try) 2>&5
19076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19077 (exit $ac_status); }; }; then
19078 emacs_cv_localtime_cache
=no
19080 echo "$as_me: program exited with status $ac_status" >&5
19081 echo "$as_me: failed program was:" >&5
19082 sed 's/^/| /' conftest.
$ac_ext >&5
19084 ( exit $ac_status )
19085 emacs_cv_localtime_cache
=yes
19087 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
19090 # If we lack tzset, report that localtime does not cache TZ,
19091 # since we can't invalidate the cache if we don't have tzset.
19092 emacs_cv_localtime_cache
=no
19095 echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
19096 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6
19097 if test $emacs_cv_localtime_cache = yes; then
19099 cat >>confdefs.h
<<\_ACEOF
19100 #define LOCALTIME_CACHE 1
19105 if test "x$HAVE_TIMEVAL" = xyes
; then
19107 for ac_func
in gettimeofday
19109 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19110 echo "$as_me:$LINENO: checking for $ac_func" >&5
19111 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19112 if eval "test \"\${$as_ac_var+set}\" = set"; then
19113 echo $ECHO_N "(cached) $ECHO_C" >&6
19115 cat >conftest.
$ac_ext <<_ACEOF
19118 cat confdefs.h
>>conftest.
$ac_ext
19119 cat >>conftest.
$ac_ext <<_ACEOF
19120 /* end confdefs.h. */
19121 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19122 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19123 #define $ac_func innocuous_$ac_func
19125 /* System header to define __stub macros and hopefully few prototypes,
19126 which can conflict with char $ac_func (); below.
19127 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19128 <limits.h> exists even on freestanding compilers. */
19131 # include <limits.h>
19133 # include <assert.h>
19138 /* Override any gcc2 internal prototype to avoid an error. */
19143 /* We use char because int might match the return type of a gcc2
19144 builtin and then its argument prototype would still apply. */
19146 /* The GNU C library defines this for functions which it implements
19147 to always fail with ENOSYS. Some functions are actually named
19148 something starting with __ and the normal name is an alias. */
19149 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19152 char (*f) () = $ac_func;
19161 return f != $ac_func;
19166 rm -f conftest.
$ac_objext conftest
$ac_exeext
19167 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19168 (eval $ac_link) 2>conftest.er1
19170 grep -v '^ *+' conftest.er1
>conftest.err
19172 cat conftest.err
>&5
19173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19174 (exit $ac_status); } &&
19175 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19177 (eval $ac_try) 2>&5
19179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19180 (exit $ac_status); }; } &&
19181 { ac_try
='test -s conftest$ac_exeext'
19182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19183 (eval $ac_try) 2>&5
19185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19186 (exit $ac_status); }; }; then
19187 eval "$as_ac_var=yes"
19189 echo "$as_me: failed program was:" >&5
19190 sed 's/^/| /' conftest.
$ac_ext >&5
19192 eval "$as_ac_var=no"
19194 rm -f conftest.err conftest.
$ac_objext \
19195 conftest
$ac_exeext conftest.
$ac_ext
19197 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19198 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19199 if test `eval echo '${'$as_ac_var'}'` = yes; then
19200 cat >>confdefs.h
<<_ACEOF
19201 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19207 if test $ac_cv_func_gettimeofday = yes; then
19208 echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
19209 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6
19210 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
19211 echo $ECHO_N "(cached) $ECHO_C" >&6
19213 cat >conftest.
$ac_ext <<_ACEOF
19216 cat confdefs.h
>>conftest.
$ac_ext
19217 cat >>conftest.
$ac_ext <<_ACEOF
19218 /* end confdefs.h. */
19220 #ifdef TIME_WITH_SYS_TIME
19221 #include <sys/time.h>
19224 #ifdef HAVE_SYS_TIME_H
19225 #include <sys/time.h>
19233 struct timeval time;
19234 gettimeofday (&time, 0);
19239 rm -f conftest.
$ac_objext
19240 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19241 (eval $ac_compile) 2>conftest.er1
19243 grep -v '^ *+' conftest.er1
>conftest.err
19245 cat conftest.err
>&5
19246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19247 (exit $ac_status); } &&
19248 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19250 (eval $ac_try) 2>&5
19252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19253 (exit $ac_status); }; } &&
19254 { ac_try
='test -s conftest.$ac_objext'
19255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19256 (eval $ac_try) 2>&5
19258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19259 (exit $ac_status); }; }; then
19260 emacs_cv_gettimeofday_two_arguments
=yes
19262 echo "$as_me: failed program was:" >&5
19263 sed 's/^/| /' conftest.
$ac_ext >&5
19265 emacs_cv_gettimeofday_two_arguments
=no
19267 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19269 echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
19270 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6
19271 if test $emacs_cv_gettimeofday_two_arguments = no
; then
19273 cat >>confdefs.h
<<\_ACEOF
19274 #define GETTIMEOFDAY_ONE_ARGUMENT 1
19281 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
19282 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
19283 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
19284 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
19285 echo $ECHO_N "(cached) $ECHO_C" >&6
19287 cat >conftest.
$ac_ext <<_ACEOF
19290 cat confdefs.h
>>conftest.
$ac_ext
19291 cat >>conftest.
$ac_ext <<_ACEOF
19292 /* end confdefs.h. */
19293 #include <sys/types.h>
19294 #include <$ac_cv_struct_tm>
19300 static struct tm ac_aggr;
19301 if (ac_aggr.tm_zone)
19307 rm -f conftest.
$ac_objext
19308 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19309 (eval $ac_compile) 2>conftest.er1
19311 grep -v '^ *+' conftest.er1
>conftest.err
19313 cat conftest.err
>&5
19314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19315 (exit $ac_status); } &&
19316 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19318 (eval $ac_try) 2>&5
19320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19321 (exit $ac_status); }; } &&
19322 { ac_try
='test -s conftest.$ac_objext'
19323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19324 (eval $ac_try) 2>&5
19326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19327 (exit $ac_status); }; }; then
19328 ac_cv_member_struct_tm_tm_zone
=yes
19330 echo "$as_me: failed program was:" >&5
19331 sed 's/^/| /' conftest.
$ac_ext >&5
19333 cat >conftest.
$ac_ext <<_ACEOF
19336 cat confdefs.h
>>conftest.
$ac_ext
19337 cat >>conftest.
$ac_ext <<_ACEOF
19338 /* end confdefs.h. */
19339 #include <sys/types.h>
19340 #include <$ac_cv_struct_tm>
19346 static struct tm ac_aggr;
19347 if (sizeof ac_aggr.tm_zone)
19353 rm -f conftest.
$ac_objext
19354 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19355 (eval $ac_compile) 2>conftest.er1
19357 grep -v '^ *+' conftest.er1
>conftest.err
19359 cat conftest.err
>&5
19360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19361 (exit $ac_status); } &&
19362 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19364 (eval $ac_try) 2>&5
19366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19367 (exit $ac_status); }; } &&
19368 { ac_try
='test -s conftest.$ac_objext'
19369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19370 (eval $ac_try) 2>&5
19372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19373 (exit $ac_status); }; }; then
19374 ac_cv_member_struct_tm_tm_zone
=yes
19376 echo "$as_me: failed program was:" >&5
19377 sed 's/^/| /' conftest.
$ac_ext >&5
19379 ac_cv_member_struct_tm_tm_zone
=no
19381 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19383 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19385 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
19386 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
19387 if test $ac_cv_member_struct_tm_tm_zone = yes; then
19389 cat >>confdefs.h
<<_ACEOF
19390 #define HAVE_STRUCT_TM_TM_ZONE 1
19396 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
19398 cat >>confdefs.h
<<\_ACEOF
19399 #define HAVE_TM_ZONE 1
19403 echo "$as_me:$LINENO: checking for tzname" >&5
19404 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
19405 if test "${ac_cv_var_tzname+set}" = set; then
19406 echo $ECHO_N "(cached) $ECHO_C" >&6
19408 cat >conftest.
$ac_ext <<_ACEOF
19411 cat confdefs.h
>>conftest.
$ac_ext
19412 cat >>conftest.
$ac_ext <<_ACEOF
19413 /* end confdefs.h. */
19415 #ifndef tzname /* For SGI. */
19416 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
19427 rm -f conftest.
$ac_objext conftest
$ac_exeext
19428 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19429 (eval $ac_link) 2>conftest.er1
19431 grep -v '^ *+' conftest.er1
>conftest.err
19433 cat conftest.err
>&5
19434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19435 (exit $ac_status); } &&
19436 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19438 (eval $ac_try) 2>&5
19440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19441 (exit $ac_status); }; } &&
19442 { ac_try
='test -s conftest$ac_exeext'
19443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19444 (eval $ac_try) 2>&5
19446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19447 (exit $ac_status); }; }; then
19448 ac_cv_var_tzname
=yes
19450 echo "$as_me: failed program was:" >&5
19451 sed 's/^/| /' conftest.
$ac_ext >&5
19453 ac_cv_var_tzname
=no
19455 rm -f conftest.err conftest.
$ac_objext \
19456 conftest
$ac_exeext conftest.
$ac_ext
19458 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
19459 echo "${ECHO_T}$ac_cv_var_tzname" >&6
19460 if test $ac_cv_var_tzname = yes; then
19462 cat >>confdefs.h
<<\_ACEOF
19463 #define HAVE_TZNAME 1
19470 if test "$ac_cv_func_gettimeofday" = yes; then
19471 echo "$as_me:$LINENO: checking for struct timezone" >&5
19472 echo $ECHO_N "checking for struct timezone... $ECHO_C" >&6
19473 if test "${emacs_cv_struct_timezone+set}" = set; then
19474 echo $ECHO_N "(cached) $ECHO_C" >&6
19476 cat >conftest.
$ac_ext <<_ACEOF
19479 cat confdefs.h
>>conftest.
$ac_ext
19480 cat >>conftest.
$ac_ext <<_ACEOF
19481 /* end confdefs.h. */
19482 #include <sys/time.h>
19486 struct timezone tz;
19491 rm -f conftest.
$ac_objext
19492 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19493 (eval $ac_compile) 2>conftest.er1
19495 grep -v '^ *+' conftest.er1
>conftest.err
19497 cat conftest.err
>&5
19498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19499 (exit $ac_status); } &&
19500 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19502 (eval $ac_try) 2>&5
19504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19505 (exit $ac_status); }; } &&
19506 { ac_try
='test -s conftest.$ac_objext'
19507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19508 (eval $ac_try) 2>&5
19510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19511 (exit $ac_status); }; }; then
19512 if test "$cross_compiling" = yes; then
19513 emacs_cv_struct_timezone
=yes
19515 cat >conftest.
$ac_ext <<_ACEOF
19518 cat confdefs.h
>>conftest.
$ac_ext
19519 cat >>conftest.
$ac_ext <<_ACEOF
19520 /* end confdefs.h. */
19522 #ifdef TIME_WITH_SYS_TIME
19523 #include <sys/time.h>
19526 #ifdef HAVE_SYS_TIME_H
19527 #include <sys/time.h>
19533 struct timeval time;
19534 struct timezone dummy;
19535 exit (gettimeofday (&time, &dummy));
19538 rm -f conftest
$ac_exeext
19539 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19540 (eval $ac_link) 2>&5
19542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19543 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
19544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19545 (eval $ac_try) 2>&5
19547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19548 (exit $ac_status); }; }; then
19549 emacs_cv_struct_timezone
=yes
19551 echo "$as_me: program exited with status $ac_status" >&5
19552 echo "$as_me: failed program was:" >&5
19553 sed 's/^/| /' conftest.
$ac_ext >&5
19555 ( exit $ac_status )
19556 emacs_cv_struct_timezone
=no
19558 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
19561 echo "$as_me: failed program was:" >&5
19562 sed 's/^/| /' conftest.
$ac_ext >&5
19564 emacs_cv_struct_timezone
=no
19566 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19568 echo "$as_me:$LINENO: result: $emacs_cv_struct_timezone" >&5
19569 echo "${ECHO_T}$emacs_cv_struct_timezone" >&6
19573 echo "$as_me:$LINENO: checking for socket" >&5
19574 echo $ECHO_N "checking for socket... $ECHO_C" >&6
19575 if test "${ac_cv_func_socket+set}" = set; then
19576 echo $ECHO_N "(cached) $ECHO_C" >&6
19578 cat >conftest.
$ac_ext <<_ACEOF
19581 cat confdefs.h
>>conftest.
$ac_ext
19582 cat >>conftest.
$ac_ext <<_ACEOF
19583 /* end confdefs.h. */
19584 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
19585 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19586 #define socket innocuous_socket
19588 /* System header to define __stub macros and hopefully few prototypes,
19589 which can conflict with char socket (); below.
19590 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19591 <limits.h> exists even on freestanding compilers. */
19594 # include <limits.h>
19596 # include <assert.h>
19601 /* Override any gcc2 internal prototype to avoid an error. */
19606 /* We use char because int might match the return type of a gcc2
19607 builtin and then its argument prototype would still apply. */
19609 /* The GNU C library defines this for functions which it implements
19610 to always fail with ENOSYS. Some functions are actually named
19611 something starting with __ and the normal name is an alias. */
19612 #if defined (__stub_socket) || defined (__stub___socket)
19615 char (*f) () = socket;
19624 return f != socket;
19629 rm -f conftest.
$ac_objext conftest
$ac_exeext
19630 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19631 (eval $ac_link) 2>conftest.er1
19633 grep -v '^ *+' conftest.er1
>conftest.err
19635 cat conftest.err
>&5
19636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19637 (exit $ac_status); } &&
19638 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19640 (eval $ac_try) 2>&5
19642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19643 (exit $ac_status); }; } &&
19644 { ac_try
='test -s conftest$ac_exeext'
19645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19646 (eval $ac_try) 2>&5
19648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19649 (exit $ac_status); }; }; then
19650 ac_cv_func_socket
=yes
19652 echo "$as_me: failed program was:" >&5
19653 sed 's/^/| /' conftest.
$ac_ext >&5
19655 ac_cv_func_socket
=no
19657 rm -f conftest.err conftest.
$ac_objext \
19658 conftest
$ac_exeext conftest.
$ac_ext
19660 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
19661 echo "${ECHO_T}$ac_cv_func_socket" >&6
19662 if test $ac_cv_func_socket = yes; then
19668 if test $ok_so_far = yes; then
19669 if test "${ac_cv_header_netinet_in_h+set}" = set; then
19670 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
19671 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
19672 if test "${ac_cv_header_netinet_in_h+set}" = set; then
19673 echo $ECHO_N "(cached) $ECHO_C" >&6
19675 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
19676 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
19678 # Is the header compilable?
19679 echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
19680 echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6
19681 cat >conftest.
$ac_ext <<_ACEOF
19684 cat confdefs.h
>>conftest.
$ac_ext
19685 cat >>conftest.
$ac_ext <<_ACEOF
19686 /* end confdefs.h. */
19687 $ac_includes_default
19688 #include <netinet/in.h>
19690 rm -f conftest.
$ac_objext
19691 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19692 (eval $ac_compile) 2>conftest.er1
19694 grep -v '^ *+' conftest.er1
>conftest.err
19696 cat conftest.err
>&5
19697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19698 (exit $ac_status); } &&
19699 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19701 (eval $ac_try) 2>&5
19703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19704 (exit $ac_status); }; } &&
19705 { ac_try
='test -s conftest.$ac_objext'
19706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19707 (eval $ac_try) 2>&5
19709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19710 (exit $ac_status); }; }; then
19711 ac_header_compiler
=yes
19713 echo "$as_me: failed program was:" >&5
19714 sed 's/^/| /' conftest.
$ac_ext >&5
19716 ac_header_compiler
=no
19718 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19719 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19720 echo "${ECHO_T}$ac_header_compiler" >&6
19722 # Is the header present?
19723 echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
19724 echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6
19725 cat >conftest.
$ac_ext <<_ACEOF
19728 cat confdefs.h
>>conftest.
$ac_ext
19729 cat >>conftest.
$ac_ext <<_ACEOF
19730 /* end confdefs.h. */
19731 #include <netinet/in.h>
19733 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19734 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
19736 grep -v '^ *+' conftest.er1
>conftest.err
19738 cat conftest.err
>&5
19739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19740 (exit $ac_status); } >/dev
/null
; then
19741 if test -s conftest.err
; then
19742 ac_cpp_err
=$ac_c_preproc_warn_flag
19743 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
19750 if test -z "$ac_cpp_err"; then
19751 ac_header_preproc
=yes
19753 echo "$as_me: failed program was:" >&5
19754 sed 's/^/| /' conftest.
$ac_ext >&5
19756 ac_header_preproc
=no
19758 rm -f conftest.err conftest.
$ac_ext
19759 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19760 echo "${ECHO_T}$ac_header_preproc" >&6
19762 # So? What about this header?
19763 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19765 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
19766 echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19767 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
19768 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
19769 ac_header_preproc
=yes
19772 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
19773 echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
19774 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
19775 echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
19776 { echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
19777 echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
19778 { echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
19779 echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
19780 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
19781 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
19782 { echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
19783 echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
19786 ## ------------------------------------------ ##
19787 ## Report this to the AC_PACKAGE_NAME lists. ##
19788 ## ------------------------------------------ ##
19791 sed "s/^/$as_me: WARNING: /" >&2
19794 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
19795 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
19796 if test "${ac_cv_header_netinet_in_h+set}" = set; then
19797 echo $ECHO_N "(cached) $ECHO_C" >&6
19799 ac_cv_header_netinet_in_h
=$ac_header_preproc
19801 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
19802 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
19805 if test $ac_cv_header_netinet_in_h = yes; then
19813 if test $ok_so_far = yes; then
19814 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
19815 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
19816 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
19817 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
19818 echo $ECHO_N "(cached) $ECHO_C" >&6
19820 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
19821 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
19823 # Is the header compilable?
19824 echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
19825 echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6
19826 cat >conftest.
$ac_ext <<_ACEOF
19829 cat confdefs.h
>>conftest.
$ac_ext
19830 cat >>conftest.
$ac_ext <<_ACEOF
19831 /* end confdefs.h. */
19832 $ac_includes_default
19833 #include <arpa/inet.h>
19835 rm -f conftest.
$ac_objext
19836 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19837 (eval $ac_compile) 2>conftest.er1
19839 grep -v '^ *+' conftest.er1
>conftest.err
19841 cat conftest.err
>&5
19842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19843 (exit $ac_status); } &&
19844 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19846 (eval $ac_try) 2>&5
19848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19849 (exit $ac_status); }; } &&
19850 { ac_try
='test -s conftest.$ac_objext'
19851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19852 (eval $ac_try) 2>&5
19854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19855 (exit $ac_status); }; }; then
19856 ac_header_compiler
=yes
19858 echo "$as_me: failed program was:" >&5
19859 sed 's/^/| /' conftest.
$ac_ext >&5
19861 ac_header_compiler
=no
19863 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19864 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19865 echo "${ECHO_T}$ac_header_compiler" >&6
19867 # Is the header present?
19868 echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
19869 echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6
19870 cat >conftest.
$ac_ext <<_ACEOF
19873 cat confdefs.h
>>conftest.
$ac_ext
19874 cat >>conftest.
$ac_ext <<_ACEOF
19875 /* end confdefs.h. */
19876 #include <arpa/inet.h>
19878 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19879 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
19881 grep -v '^ *+' conftest.er1
>conftest.err
19883 cat conftest.err
>&5
19884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19885 (exit $ac_status); } >/dev
/null
; then
19886 if test -s conftest.err
; then
19887 ac_cpp_err
=$ac_c_preproc_warn_flag
19888 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
19895 if test -z "$ac_cpp_err"; then
19896 ac_header_preproc
=yes
19898 echo "$as_me: failed program was:" >&5
19899 sed 's/^/| /' conftest.
$ac_ext >&5
19901 ac_header_preproc
=no
19903 rm -f conftest.err conftest.
$ac_ext
19904 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19905 echo "${ECHO_T}$ac_header_preproc" >&6
19907 # So? What about this header?
19908 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19910 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
19911 echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19912 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
19913 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
19914 ac_header_preproc
=yes
19917 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
19918 echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
19919 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
19920 echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
19921 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
19922 echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
19923 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
19924 echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
19925 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
19926 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
19927 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
19928 echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
19931 ## ------------------------------------------ ##
19932 ## Report this to the AC_PACKAGE_NAME lists. ##
19933 ## ------------------------------------------ ##
19936 sed "s/^/$as_me: WARNING: /" >&2
19939 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
19940 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
19941 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
19942 echo $ECHO_N "(cached) $ECHO_C" >&6
19944 ac_cv_header_arpa_inet_h
=$ac_header_preproc
19946 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
19947 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
19950 if test $ac_cv_header_arpa_inet_h = yes; then
19958 if test $ok_so_far = yes; then
19960 cat >>confdefs.h
<<\_ACEOF
19961 #define HAVE_INET_SOCKETS 1
19967 for ac_header
in sys
/ioctl.h
19969 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19970 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19971 echo "$as_me:$LINENO: checking for $ac_header" >&5
19972 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19973 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19974 echo $ECHO_N "(cached) $ECHO_C" >&6
19976 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19977 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19979 # Is the header compilable?
19980 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19981 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19982 cat >conftest.
$ac_ext <<_ACEOF
19985 cat confdefs.h
>>conftest.
$ac_ext
19986 cat >>conftest.
$ac_ext <<_ACEOF
19987 /* end confdefs.h. */
19988 $ac_includes_default
19989 #include <$ac_header>
19991 rm -f conftest.
$ac_objext
19992 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19993 (eval $ac_compile) 2>conftest.er1
19995 grep -v '^ *+' conftest.er1
>conftest.err
19997 cat conftest.err
>&5
19998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19999 (exit $ac_status); } &&
20000 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20002 (eval $ac_try) 2>&5
20004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20005 (exit $ac_status); }; } &&
20006 { ac_try
='test -s conftest.$ac_objext'
20007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20008 (eval $ac_try) 2>&5
20010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20011 (exit $ac_status); }; }; then
20012 ac_header_compiler
=yes
20014 echo "$as_me: failed program was:" >&5
20015 sed 's/^/| /' conftest.
$ac_ext >&5
20017 ac_header_compiler
=no
20019 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20020 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20021 echo "${ECHO_T}$ac_header_compiler" >&6
20023 # Is the header present?
20024 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20025 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20026 cat >conftest.
$ac_ext <<_ACEOF
20029 cat confdefs.h
>>conftest.
$ac_ext
20030 cat >>conftest.
$ac_ext <<_ACEOF
20031 /* end confdefs.h. */
20032 #include <$ac_header>
20034 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20035 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
20037 grep -v '^ *+' conftest.er1
>conftest.err
20039 cat conftest.err
>&5
20040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20041 (exit $ac_status); } >/dev
/null
; then
20042 if test -s conftest.err
; then
20043 ac_cpp_err
=$ac_c_preproc_warn_flag
20044 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
20051 if test -z "$ac_cpp_err"; then
20052 ac_header_preproc
=yes
20054 echo "$as_me: failed program was:" >&5
20055 sed 's/^/| /' conftest.
$ac_ext >&5
20057 ac_header_preproc
=no
20059 rm -f conftest.err conftest.
$ac_ext
20060 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20061 echo "${ECHO_T}$ac_header_preproc" >&6
20063 # So? What about this header?
20064 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20066 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20067 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20068 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20069 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20070 ac_header_preproc
=yes
20073 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20074 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20075 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20076 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20077 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20078 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20079 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20080 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20081 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20082 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20083 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20084 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20087 ## ------------------------------------------ ##
20088 ## Report this to the AC_PACKAGE_NAME lists. ##
20089 ## ------------------------------------------ ##
20092 sed "s/^/$as_me: WARNING: /" >&2
20095 echo "$as_me:$LINENO: checking for $ac_header" >&5
20096 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20097 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20098 echo $ECHO_N "(cached) $ECHO_C" >&6
20100 eval "$as_ac_Header=\$ac_header_preproc"
20102 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20103 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20106 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20107 cat >>confdefs.h
<<_ACEOF
20108 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20116 if test -f /usr
/lpp
/X11
/bin
/smt.exp
; then
20118 cat >>confdefs.h
<<\_ACEOF
20119 #define HAVE_AIX_SMT_EXP 1
20124 echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
20125 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6
20126 if test -d /dev
/pts
&& ls -d /dev
/ptmx
> /dev
/null
2>&1 ; then
20127 echo "$as_me:$LINENO: result: yes" >&5
20128 echo "${ECHO_T}yes" >&6
20130 cat >>confdefs.h
<<\_ACEOF
20131 #define HAVE_DEV_PTMX 1
20135 echo "$as_me:$LINENO: result: no" >&5
20136 echo "${ECHO_T}no" >&6
20139 echo "$as_me:$LINENO: checking for pid_t" >&5
20140 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
20141 if test "${ac_cv_type_pid_t+set}" = set; then
20142 echo $ECHO_N "(cached) $ECHO_C" >&6
20144 cat >conftest.
$ac_ext <<_ACEOF
20147 cat confdefs.h
>>conftest.
$ac_ext
20148 cat >>conftest.
$ac_ext <<_ACEOF
20149 /* end confdefs.h. */
20150 $ac_includes_default
20156 if (sizeof (pid_t))
20162 rm -f conftest.
$ac_objext
20163 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20164 (eval $ac_compile) 2>conftest.er1
20166 grep -v '^ *+' conftest.er1
>conftest.err
20168 cat conftest.err
>&5
20169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20170 (exit $ac_status); } &&
20171 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20173 (eval $ac_try) 2>&5
20175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20176 (exit $ac_status); }; } &&
20177 { ac_try
='test -s conftest.$ac_objext'
20178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20179 (eval $ac_try) 2>&5
20181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20182 (exit $ac_status); }; }; then
20183 ac_cv_type_pid_t
=yes
20185 echo "$as_me: failed program was:" >&5
20186 sed 's/^/| /' conftest.
$ac_ext >&5
20188 ac_cv_type_pid_t
=no
20190 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20192 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
20193 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
20194 if test $ac_cv_type_pid_t = yes; then
20198 cat >>confdefs.h
<<_ACEOF
20206 for ac_header
in unistd.h vfork.h
20208 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20209 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20210 echo "$as_me:$LINENO: checking for $ac_header" >&5
20211 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20212 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20213 echo $ECHO_N "(cached) $ECHO_C" >&6
20215 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20216 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20218 # Is the header compilable?
20219 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20220 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20221 cat >conftest.
$ac_ext <<_ACEOF
20224 cat confdefs.h
>>conftest.
$ac_ext
20225 cat >>conftest.
$ac_ext <<_ACEOF
20226 /* end confdefs.h. */
20227 $ac_includes_default
20228 #include <$ac_header>
20230 rm -f conftest.
$ac_objext
20231 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20232 (eval $ac_compile) 2>conftest.er1
20234 grep -v '^ *+' conftest.er1
>conftest.err
20236 cat conftest.err
>&5
20237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20238 (exit $ac_status); } &&
20239 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20241 (eval $ac_try) 2>&5
20243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20244 (exit $ac_status); }; } &&
20245 { ac_try
='test -s conftest.$ac_objext'
20246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20247 (eval $ac_try) 2>&5
20249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20250 (exit $ac_status); }; }; then
20251 ac_header_compiler
=yes
20253 echo "$as_me: failed program was:" >&5
20254 sed 's/^/| /' conftest.
$ac_ext >&5
20256 ac_header_compiler
=no
20258 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20259 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20260 echo "${ECHO_T}$ac_header_compiler" >&6
20262 # Is the header present?
20263 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20264 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20265 cat >conftest.
$ac_ext <<_ACEOF
20268 cat confdefs.h
>>conftest.
$ac_ext
20269 cat >>conftest.
$ac_ext <<_ACEOF
20270 /* end confdefs.h. */
20271 #include <$ac_header>
20273 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20274 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
20276 grep -v '^ *+' conftest.er1
>conftest.err
20278 cat conftest.err
>&5
20279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20280 (exit $ac_status); } >/dev
/null
; then
20281 if test -s conftest.err
; then
20282 ac_cpp_err
=$ac_c_preproc_warn_flag
20283 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
20290 if test -z "$ac_cpp_err"; then
20291 ac_header_preproc
=yes
20293 echo "$as_me: failed program was:" >&5
20294 sed 's/^/| /' conftest.
$ac_ext >&5
20296 ac_header_preproc
=no
20298 rm -f conftest.err conftest.
$ac_ext
20299 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20300 echo "${ECHO_T}$ac_header_preproc" >&6
20302 # So? What about this header?
20303 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20305 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20306 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20307 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20308 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20309 ac_header_preproc
=yes
20312 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20313 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20314 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20315 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20316 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20317 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20318 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20319 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20320 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20321 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20322 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20323 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20326 ## ------------------------------------------ ##
20327 ## Report this to the AC_PACKAGE_NAME lists. ##
20328 ## ------------------------------------------ ##
20331 sed "s/^/$as_me: WARNING: /" >&2
20334 echo "$as_me:$LINENO: checking for $ac_header" >&5
20335 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20336 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20337 echo $ECHO_N "(cached) $ECHO_C" >&6
20339 eval "$as_ac_Header=\$ac_header_preproc"
20341 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20342 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20345 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20346 cat >>confdefs.h
<<_ACEOF
20347 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20356 for ac_func
in fork vfork
20358 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20359 echo "$as_me:$LINENO: checking for $ac_func" >&5
20360 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20361 if eval "test \"\${$as_ac_var+set}\" = set"; then
20362 echo $ECHO_N "(cached) $ECHO_C" >&6
20364 cat >conftest.
$ac_ext <<_ACEOF
20367 cat confdefs.h
>>conftest.
$ac_ext
20368 cat >>conftest.
$ac_ext <<_ACEOF
20369 /* end confdefs.h. */
20370 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20371 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20372 #define $ac_func innocuous_$ac_func
20374 /* System header to define __stub macros and hopefully few prototypes,
20375 which can conflict with char $ac_func (); below.
20376 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20377 <limits.h> exists even on freestanding compilers. */
20380 # include <limits.h>
20382 # include <assert.h>
20387 /* Override any gcc2 internal prototype to avoid an error. */
20392 /* We use char because int might match the return type of a gcc2
20393 builtin and then its argument prototype would still apply. */
20395 /* The GNU C library defines this for functions which it implements
20396 to always fail with ENOSYS. Some functions are actually named
20397 something starting with __ and the normal name is an alias. */
20398 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20401 char (*f) () = $ac_func;
20410 return f != $ac_func;
20415 rm -f conftest.
$ac_objext conftest
$ac_exeext
20416 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20417 (eval $ac_link) 2>conftest.er1
20419 grep -v '^ *+' conftest.er1
>conftest.err
20421 cat conftest.err
>&5
20422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20423 (exit $ac_status); } &&
20424 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20426 (eval $ac_try) 2>&5
20428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20429 (exit $ac_status); }; } &&
20430 { ac_try
='test -s conftest$ac_exeext'
20431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20432 (eval $ac_try) 2>&5
20434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20435 (exit $ac_status); }; }; then
20436 eval "$as_ac_var=yes"
20438 echo "$as_me: failed program was:" >&5
20439 sed 's/^/| /' conftest.
$ac_ext >&5
20441 eval "$as_ac_var=no"
20443 rm -f conftest.err conftest.
$ac_objext \
20444 conftest
$ac_exeext conftest.
$ac_ext
20446 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20447 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20448 if test `eval echo '${'$as_ac_var'}'` = yes; then
20449 cat >>confdefs.h
<<_ACEOF
20450 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20456 if test "x$ac_cv_func_fork" = xyes
; then
20457 echo "$as_me:$LINENO: checking for working fork" >&5
20458 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
20459 if test "${ac_cv_func_fork_works+set}" = set; then
20460 echo $ECHO_N "(cached) $ECHO_C" >&6
20462 if test "$cross_compiling" = yes; then
20463 ac_cv_func_fork_works
=cross
20465 cat >conftest.
$ac_ext <<_ACEOF
20466 /* By Ruediger Kuhlmann. */
20467 #include <sys/types.h>
20469 # include <unistd.h>
20471 /* Some systems only have a dummy stub for fork() */
20479 rm -f conftest
$ac_exeext
20480 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20481 (eval $ac_link) 2>&5
20483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20484 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
20485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20486 (eval $ac_try) 2>&5
20488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20489 (exit $ac_status); }; }; then
20490 ac_cv_func_fork_works
=yes
20492 echo "$as_me: program exited with status $ac_status" >&5
20493 echo "$as_me: failed program was:" >&5
20494 sed 's/^/| /' conftest.
$ac_ext >&5
20496 ( exit $ac_status )
20497 ac_cv_func_fork_works
=no
20499 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
20502 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
20503 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
20506 ac_cv_func_fork_works
=$ac_cv_func_fork
20508 if test "x$ac_cv_func_fork_works" = xcross
; then
20510 *-*-amigaos* |
*-*-msdosdjgpp*)
20511 # Override, as these systems have only a dummy fork() stub
20512 ac_cv_func_fork_works
=no
20515 ac_cv_func_fork_works
=yes
20518 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
20519 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
20521 ac_cv_func_vfork_works
=$ac_cv_func_vfork
20522 if test "x$ac_cv_func_vfork" = xyes
; then
20523 echo "$as_me:$LINENO: checking for working vfork" >&5
20524 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
20525 if test "${ac_cv_func_vfork_works+set}" = set; then
20526 echo $ECHO_N "(cached) $ECHO_C" >&6
20528 if test "$cross_compiling" = yes; then
20529 ac_cv_func_vfork_works
=cross
20531 cat >conftest.
$ac_ext <<_ACEOF
20534 cat confdefs.h
>>conftest.
$ac_ext
20535 cat >>conftest.
$ac_ext <<_ACEOF
20536 /* end confdefs.h. */
20537 /* Thanks to Paul Eggert for this test. */
20539 #include <stdlib.h>
20540 #include <sys/types.h>
20541 #include <sys/stat.h>
20542 #include <sys/wait.h>
20544 # include <unistd.h>
20547 # include <vfork.h>
20549 /* On some sparc systems, changes by the child to local and incoming
20550 argument registers are propagated back to the parent. The compiler
20551 is told about this with #include <vfork.h>, but some compilers
20552 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
20553 static variable whose address is put into a register that is
20554 clobbered by the vfork. */
20557 sparc_address_test (int arg)
20559 sparc_address_test (arg) int arg;
20562 static pid_t child;
20580 pid_t parent = getpid ();
20583 sparc_address_test (0);
20588 /* Here is another test for sparc vfork register problems. This
20589 test uses lots of local variables, at least as many local
20590 variables as main has allocated so far including compiler
20591 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
20592 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
20593 reuse the register of parent for one of the local variables,
20594 since it will think that parent can't possibly be used any more
20595 in this routine. Assigning to the local variable will thus
20596 munge parent in the parent process. */
20598 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
20599 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
20600 /* Convince the compiler that p..p7 are live; otherwise, it might
20601 use the same hardware register for all 8 local variables. */
20602 if (p != p1 || p != p2 || p != p3 || p != p4
20603 || p != p5 || p != p6 || p != p7)
20606 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
20607 from child file descriptors. If the child closes a descriptor
20608 before it execs or exits, this munges the parent's descriptor
20609 as well. Test for this by closing stdout in the child. */
20610 _exit(close(fileno(stdout)) != 0);
20615 while (wait(&status) != child)
20618 /* Was there some problem with vforking? */
20621 /* Did the child fail? (This shouldn't happen.) */
20624 /* Did the vfork/compiler bug occur? */
20625 || parent != getpid()
20627 /* Did the file descriptor bug occur? */
20628 || fstat(fileno(stdout), &st) != 0
20633 rm -f conftest
$ac_exeext
20634 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20635 (eval $ac_link) 2>&5
20637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20638 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
20639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20640 (eval $ac_try) 2>&5
20642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20643 (exit $ac_status); }; }; then
20644 ac_cv_func_vfork_works
=yes
20646 echo "$as_me: program exited with status $ac_status" >&5
20647 echo "$as_me: failed program was:" >&5
20648 sed 's/^/| /' conftest.
$ac_ext >&5
20650 ( exit $ac_status )
20651 ac_cv_func_vfork_works
=no
20653 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
20656 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
20657 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
20660 if test "x$ac_cv_func_fork_works" = xcross
; then
20661 ac_cv_func_vfork_works
=$ac_cv_func_vfork
20662 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
20663 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
20666 if test "x$ac_cv_func_vfork_works" = xyes
; then
20668 cat >>confdefs.h
<<\_ACEOF
20669 #define HAVE_WORKING_VFORK 1
20674 cat >>confdefs.h
<<\_ACEOF
20679 if test "x$ac_cv_func_fork_works" = xyes
; then
20681 cat >>confdefs.h
<<\_ACEOF
20682 #define HAVE_WORKING_FORK 1
20688 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
20689 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
20690 if test "${emacs_cv_langinfo_codeset+set}" = set; then
20691 echo $ECHO_N "(cached) $ECHO_C" >&6
20693 cat >conftest.
$ac_ext <<_ACEOF
20696 cat confdefs.h
>>conftest.
$ac_ext
20697 cat >>conftest.
$ac_ext <<_ACEOF
20698 /* end confdefs.h. */
20699 #include <langinfo.h>
20703 char* cs = nl_langinfo(CODESET);
20708 rm -f conftest.
$ac_objext conftest
$ac_exeext
20709 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20710 (eval $ac_link) 2>conftest.er1
20712 grep -v '^ *+' conftest.er1
>conftest.err
20714 cat conftest.err
>&5
20715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20716 (exit $ac_status); } &&
20717 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20719 (eval $ac_try) 2>&5
20721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20722 (exit $ac_status); }; } &&
20723 { ac_try
='test -s conftest$ac_exeext'
20724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20725 (eval $ac_try) 2>&5
20727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20728 (exit $ac_status); }; }; then
20729 emacs_cv_langinfo_codeset
=yes
20731 echo "$as_me: failed program was:" >&5
20732 sed 's/^/| /' conftest.
$ac_ext >&5
20734 emacs_cv_langinfo_codeset
=no
20736 rm -f conftest.err conftest.
$ac_objext \
20737 conftest
$ac_exeext conftest.
$ac_ext
20740 echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
20741 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6
20742 if test $emacs_cv_langinfo_codeset = yes; then
20744 cat >>confdefs.h
<<\_ACEOF
20745 #define HAVE_LANGINFO_CODESET 1
20750 echo "$as_me:$LINENO: checking for size_t" >&5
20751 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
20752 if test "${ac_cv_type_size_t+set}" = set; then
20753 echo $ECHO_N "(cached) $ECHO_C" >&6
20755 cat >conftest.
$ac_ext <<_ACEOF
20758 cat confdefs.h
>>conftest.
$ac_ext
20759 cat >>conftest.
$ac_ext <<_ACEOF
20760 /* end confdefs.h. */
20761 $ac_includes_default
20767 if (sizeof (size_t))
20773 rm -f conftest.
$ac_objext
20774 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20775 (eval $ac_compile) 2>conftest.er1
20777 grep -v '^ *+' conftest.er1
>conftest.err
20779 cat conftest.err
>&5
20780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20781 (exit $ac_status); } &&
20782 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20784 (eval $ac_try) 2>&5
20786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20787 (exit $ac_status); }; } &&
20788 { ac_try
='test -s conftest.$ac_objext'
20789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20790 (eval $ac_try) 2>&5
20792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20793 (exit $ac_status); }; }; then
20794 ac_cv_type_size_t
=yes
20796 echo "$as_me: failed program was:" >&5
20797 sed 's/^/| /' conftest.
$ac_ext >&5
20799 ac_cv_type_size_t
=no
20801 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20803 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20804 echo "${ECHO_T}$ac_cv_type_size_t" >&6
20805 if test $ac_cv_type_size_t = yes; then
20807 cat >>confdefs.h
<<_ACEOF
20808 #define HAVE_SIZE_T 1
20815 echo "$as_me:$LINENO: checking for mbstate_t" >&5
20816 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
20817 if test "${ac_cv_type_mbstate_t+set}" = set; then
20818 echo $ECHO_N "(cached) $ECHO_C" >&6
20820 cat >conftest.
$ac_ext <<_ACEOF
20823 cat confdefs.h
>>conftest.
$ac_ext
20824 cat >>conftest.
$ac_ext <<_ACEOF
20825 /* end confdefs.h. */
20826 $ac_includes_default
20827 # include <wchar.h>
20831 mbstate_t x; return sizeof x;
20836 rm -f conftest.
$ac_objext
20837 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20838 (eval $ac_compile) 2>conftest.er1
20840 grep -v '^ *+' conftest.er1
>conftest.err
20842 cat conftest.err
>&5
20843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20844 (exit $ac_status); } &&
20845 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20847 (eval $ac_try) 2>&5
20849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20850 (exit $ac_status); }; } &&
20851 { ac_try
='test -s conftest.$ac_objext'
20852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20853 (eval $ac_try) 2>&5
20855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20856 (exit $ac_status); }; }; then
20857 ac_cv_type_mbstate_t
=yes
20859 echo "$as_me: failed program was:" >&5
20860 sed 's/^/| /' conftest.
$ac_ext >&5
20862 ac_cv_type_mbstate_t
=no
20864 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20866 echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
20867 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
20868 if test $ac_cv_type_mbstate_t = yes; then
20870 cat >>confdefs.h
<<\_ACEOF
20871 #define HAVE_MBSTATE_T 1
20876 cat >>confdefs.h
<<\_ACEOF
20877 #define mbstate_t int
20882 echo "$as_me:$LINENO: checking for C restrict keyword" >&5
20883 echo $ECHO_N "checking for C restrict keyword... $ECHO_C" >&6
20884 if test "${emacs_cv_c_restrict+set}" = set; then
20885 echo $ECHO_N "(cached) $ECHO_C" >&6
20887 cat >conftest.
$ac_ext <<_ACEOF
20890 cat confdefs.h
>>conftest.
$ac_ext
20891 cat >>conftest.
$ac_ext <<_ACEOF
20892 /* end confdefs.h. */
20893 void fred (int *restrict x);
20902 rm -f conftest.
$ac_objext
20903 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20904 (eval $ac_compile) 2>conftest.er1
20906 grep -v '^ *+' conftest.er1
>conftest.err
20908 cat conftest.err
>&5
20909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20910 (exit $ac_status); } &&
20911 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20913 (eval $ac_try) 2>&5
20915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20916 (exit $ac_status); }; } &&
20917 { ac_try
='test -s conftest.$ac_objext'
20918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20919 (eval $ac_try) 2>&5
20921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20922 (exit $ac_status); }; }; then
20923 emacs_cv_c_restrict
=yes
20925 echo "$as_me: failed program was:" >&5
20926 sed 's/^/| /' conftest.
$ac_ext >&5
20928 cat >conftest.
$ac_ext <<_ACEOF
20931 cat confdefs.h
>>conftest.
$ac_ext
20932 cat >>conftest.
$ac_ext <<_ACEOF
20933 /* end confdefs.h. */
20934 void fred (int *__restrict x);
20943 rm -f conftest.
$ac_objext
20944 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20945 (eval $ac_compile) 2>conftest.er1
20947 grep -v '^ *+' conftest.er1
>conftest.err
20949 cat conftest.err
>&5
20950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20951 (exit $ac_status); } &&
20952 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20954 (eval $ac_try) 2>&5
20956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20957 (exit $ac_status); }; } &&
20958 { ac_try
='test -s conftest.$ac_objext'
20959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20960 (eval $ac_try) 2>&5
20962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20963 (exit $ac_status); }; }; then
20964 emacs_cv_c_restrict
=__restrict
20966 echo "$as_me: failed program was:" >&5
20967 sed 's/^/| /' conftest.
$ac_ext >&5
20969 emacs_cv_c_restrict
=no
20971 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20973 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20975 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
20976 echo "${ECHO_T}$emacs_cv_c_restrict" >&6
20977 case "$emacs_cv_c_restrict" in
20978 yes) emacs_restrict
=restrict
;;
20979 no
) emacs_restrict
="";;
20980 *) emacs_restrict
="$emacs_cv_c_restrict";;
20982 if test "$emacs_restrict" != __restrict
; then
20984 cat >>confdefs.h
<<_ACEOF
20985 #define __restrict $emacs_restrict
20990 echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
20991 echo $ECHO_N "checking for C restricted array declarations... $ECHO_C" >&6
20992 if test "${emacs_cv_c_restrict_arr+set}" = set; then
20993 echo $ECHO_N "(cached) $ECHO_C" >&6
20995 cat >conftest.
$ac_ext <<_ACEOF
20998 cat confdefs.h
>>conftest.
$ac_ext
20999 cat >>conftest.
$ac_ext <<_ACEOF
21000 /* end confdefs.h. */
21001 void fred (int x[__restrict]);
21010 rm -f conftest.
$ac_objext
21011 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21012 (eval $ac_compile) 2>conftest.er1
21014 grep -v '^ *+' conftest.er1
>conftest.err
21016 cat conftest.err
>&5
21017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21018 (exit $ac_status); } &&
21019 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21021 (eval $ac_try) 2>&5
21023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21024 (exit $ac_status); }; } &&
21025 { ac_try
='test -s conftest.$ac_objext'
21026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21027 (eval $ac_try) 2>&5
21029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21030 (exit $ac_status); }; }; then
21031 emacs_cv_c_restrict_arr
=yes
21033 echo "$as_me: failed program was:" >&5
21034 sed 's/^/| /' conftest.
$ac_ext >&5
21036 emacs_cv_c_restrict_arr
=no
21038 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21040 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
21041 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6
21042 if test "$emacs_cv_c_restrict_arr" = yes; then
21044 cat >>confdefs.h
<<\_ACEOF
21045 #define __restrict_arr __restrict
21052 # Set up the CFLAGS for real compilation, so we can substitute it.
21053 CFLAGS
="$REAL_CFLAGS"
21054 CPPFLAGS
="$REAL_CPPFLAGS"
21056 #### Find out which version of Emacs this is.
21057 version
=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
21058 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
21059 if test x
"${version}" = x
; then
21060 { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
21061 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
21062 { (exit 1); exit 1; }; }
21065 ### Specify what sort of things we'll be editing into Makefile and config.h.
21066 ### Use configuration here uncanonicalized to avoid exceeding size limits.
21102 cat >>confdefs.h
<<_ACEOF
21103 #define EMACS_CONFIGURATION "${canonical}"
21107 cat >>confdefs.h
<<_ACEOF
21108 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
21112 cat >>confdefs.h
<<_ACEOF
21113 #define config_machfile "${machfile}"
21117 cat >>confdefs.h
<<_ACEOF
21118 #define config_opsysfile "${opsysfile}"
21122 cat >>confdefs.h
<<_ACEOF
21123 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
21127 cat >>confdefs.h
<<_ACEOF
21128 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
21132 cat >>confdefs.h
<<_ACEOF
21133 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
21137 cat >>confdefs.h
<<_ACEOF
21138 #define UNEXEC_SRC ${UNEXEC_SRC}
21142 if test "${HAVE_X_WINDOWS}" = "yes" ; then
21144 cat >>confdefs.h
<<\_ACEOF
21145 #define HAVE_X_WINDOWS 1
21149 if test "${USE_X_TOOLKIT}" != "none" ; then
21151 cat >>confdefs.h
<<\_ACEOF
21152 #define USE_X_TOOLKIT 1
21156 if test "${HAVE_X11}" = "yes" ; then
21158 cat >>confdefs.h
<<\_ACEOF
21163 if test "${HAVE_XFREE386}" = "yes" ; then
21165 cat >>confdefs.h
<<\_ACEOF
21166 #define HAVE_XFREE386 1
21170 if test "${HAVE_MENUS}" = "yes" ; then
21172 cat >>confdefs.h
<<\_ACEOF
21173 #define HAVE_MENUS 1
21177 if test "${GNU_MALLOC}" = "yes" ; then
21179 cat >>confdefs.h
<<\_ACEOF
21180 #define GNU_MALLOC 1
21184 if test "${REL_ALLOC}" = "yes" ; then
21186 cat >>confdefs.h
<<\_ACEOF
21187 #define REL_ALLOC 1
21196 #### Report on what we decided to do.
21197 #### Report GTK as a toolkit, even if it doesn't use Xt.
21198 #### It makes printing result more understandable as using GTK sets
21199 #### toolkit_scroll_bars to yes by default.
21200 if test "${HAVE_GTK}" = "yes"; then
21205 Configured for \`${canonical}'.
21207 Where should the build process find the source code? ${srcdir}
21208 What operating system and machine description files should Emacs use?
21209 \`${opsysfile}' and \`${machfile}'
21210 What compiler should emacs be built with? ${CC} ${CFLAGS}
21211 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
21212 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
21213 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
21214 What window system should Emacs use? ${window_system}
21215 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
21217 if test -n "${x_includes}"; then
21218 echo " Where do we find X Windows header files? ${x_includes}"
21220 echo " Where do we find X Windows header files? Standard dirs"
21222 if test -n "${x_libraries}"; then
21223 echo " Where do we find X Windows libraries? ${x_libraries}"
21225 echo " Where do we find X Windows libraries? Standard dirs"
21228 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
21229 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
21230 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
21231 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
21232 echo " Does Emacs use -lungif? ${HAVE_GIF}"
21233 echo " Does Emacs use -lpng? ${HAVE_PNG}"
21234 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
21237 # Remove any trailing slashes in these variables.
21238 test "${prefix}" != NONE
&&
21239 prefix
=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
21240 test "${exec_prefix}" != NONE
&&
21241 exec_prefix
=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
21243 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
21244 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
21245 ## from Makefile.c can correctly provide the arg `-traditional' to the
21248 cat >conftest.
$ac_ext <<_ACEOF
21251 cat confdefs.h
>>conftest.
$ac_ext
21252 cat >>conftest.
$ac_ext <<_ACEOF
21253 /* end confdefs.h. */
21256 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21257 $EGREP "yes..yes" >/dev
/null
2>&1; then
21258 CPP_NEED_TRADITIONAL
=no
21260 CPP_NEED_TRADITIONAL
=yes
21265 ac_config_files
="$ac_config_files Makefile lib-src/Makefile.c:lib-src/Makefile.in oldXMenu/Makefile man/Makefile lwlib/Makefile src/Makefile.c:src/Makefile.in lisp/Makefile lispref/Makefile lispintro/Makefile leim/Makefile"
21266 ac_config_commands
="$ac_config_commands default"
21267 cat >confcache
<<\_ACEOF
21268 # This file is a shell script that caches the results of configure
21269 # tests run on this system so they can be shared between configure
21270 # scripts and configure runs, see configure's option --config-cache.
21271 # It is not useful on other systems. If it contains results you don't
21272 # want to keep, you may remove or edit it.
21274 # config.status only pays attention to the cache file if you give it
21275 # the --recheck option to rerun configure.
21277 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21278 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21279 # following values.
21283 # The following way of writing the cache mishandles newlines in values,
21284 # but we know of no workaround that is simple, portable, and efficient.
21285 # So, don't put newlines in cache variables' values.
21286 # Ultrix sh set writes to stderr and can't be redirected directly,
21287 # and sets the high bit in the cache file unless we assign to the vars.
21290 case `(ac_space=' '; set | grep ac_space) 2>&1` in
21292 # `set' does not quote correctly, so add quotes (double-quote
21293 # substitution turns \\\\ into \\, and sed turns \\ into \).
21296 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21299 # `set' quotes correctly as required by POSIX, so do not add quotes.
21301 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
21308 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21310 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21312 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
21313 if test -w $cache_file; then
21314 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
21315 cat confcache
>$cache_file
21317 echo "not updating unwritable cache $cache_file"
21322 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
21323 # Let make expand exec_prefix.
21324 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
21326 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21327 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21328 # trailing colons and then remove the whole line if VPATH becomes empty
21329 # (actually we leave an empty line to preserve line numbers).
21330 if test "x$srcdir" = x.
; then
21331 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
21332 s/:*\$(srcdir):*/:/;
21333 s/:*\${srcdir}:*/:/;
21335 s/^\([^=]*=[ ]*\):*/\1/;
21341 DEFS
=-DHAVE_CONFIG_H
21345 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
21346 # 1. Remove the extension, and $U if already installed.
21347 ac_i
=`echo "$ac_i" |
21348 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
21350 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
21351 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
21353 LIBOBJS
=$ac_libobjs
21355 LTLIBOBJS
=$ac_ltlibobjs
21359 : ${CONFIG_STATUS=./config.status}
21360 ac_clean_files_save
=$ac_clean_files
21361 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
21362 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21363 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21364 cat >$CONFIG_STATUS <<_ACEOF
21366 # Generated by $as_me.
21367 # Run this file to recreate the current configuration.
21368 # Compiler output produced by configure, useful for debugging
21369 # configure, is in config.log if it exists.
21372 ac_cs_recheck=false
21374 SHELL=\${CONFIG_SHELL-$SHELL}
21377 cat >>$CONFIG_STATUS <<\_ACEOF
21378 ## --------------------- ##
21379 ## M4sh Initialization. ##
21380 ## --------------------- ##
21382 # Be Bourne compatible
21383 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
21386 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21387 # is contrary to our usage. Disable this feature.
21388 alias -g '${1+"$@"}'='"$@"'
21389 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
21392 DUALCASE
=1; export DUALCASE
# for MKS sh
21394 # Support unset when possible.
21395 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
21402 # Work around bugs in pre-3.0 UWIN ksh.
21403 $as_unset ENV MAIL MAILPATH
21410 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21411 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21412 LC_TELEPHONE LC_TIME
21414 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21415 eval $as_var=C
; export $as_var
21421 # Required to use basename.
21422 if expr a
: '\(a\)' >/dev
/null
2>&1; then
21428 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
21429 as_basename
=basename
21435 # Name of the executable.
21436 as_me
=`$as_basename "$0" ||
21437 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21438 X"$0" : 'X\(//\)$' \| \
21439 X"$0" : 'X\(/\)$' \| \
21440 . : '\(.\)' 2>/dev/null ||
21442 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
21443 /^X\/\(\/\/\)$/{ s//\1/; q; }
21444 /^X\/\(\/\).*/{ s//\1/; q; }
21448 # PATH needs CR, and LINENO needs CR and PATH.
21449 # Avoid depending upon Character Ranges.
21450 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
21451 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21452 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
21453 as_cr_digits
='0123456789'
21454 as_cr_alnum
=$as_cr_Letters$as_cr_digits
21456 # The user is always right.
21457 if test "${PATH_SEPARATOR+set}" != set; then
21458 echo "#! /bin/sh" >conf$$.sh
21459 echo "exit 0" >>conf$$.sh
21461 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
21470 as_lineno_1
=$LINENO
21471 as_lineno_2
=$LINENO
21472 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
21473 test "x$as_lineno_1" != "x$as_lineno_2" &&
21474 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
21475 # Find who we are. Look in the path if we contain no path at all
21478 *[\\/]* ) as_myself
=$0 ;;
21479 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21480 for as_dir
in $PATH
21483 test -z "$as_dir" && as_dir
=.
21484 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
21489 # We did not find ourselves, most probably we were run as `sh COMMAND'
21490 # in which case we are not to be found in the path.
21491 if test "x$as_myself" = x
; then
21494 if test ! -f "$as_myself"; then
21495 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
21496 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
21497 { (exit 1); exit 1; }; }
21499 case $CONFIG_SHELL in
21501 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21502 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
21505 test -z "$as_dir" && as_dir
=.
21506 for as_base
in sh bash ksh sh5
; do
21509 if ("$as_dir/$as_base" -c '
21510 as_lineno_1=$LINENO
21511 as_lineno_2=$LINENO
21512 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21513 test "x$as_lineno_1" != "x$as_lineno_2" &&
21514 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
21515 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
21516 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
21517 CONFIG_SHELL
=$as_dir/$as_base
21518 export CONFIG_SHELL
21519 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
21527 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21528 # uniformly replaced by the line number. The first 'sed' inserts a
21529 # line-number line before each line; the second 'sed' does the real
21530 # work. The second script uses 'N' to pair each line-number line
21531 # with the numbered line, and appends trailing '-' during
21532 # substitution so that $LINENO is not a special case at line end.
21533 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21534 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
21535 sed '=' <$as_myself |
21540 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
21543 s,^['$as_cr_digits']*\n,,
21544 ' >$as_me.lineno
&&
21545 chmod +x
$as_me.lineno ||
21546 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
21547 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
21548 { (exit 1); exit 1; }; }
21550 # Don't try to exec as it changes $[0], causing all sort of problems
21551 # (the dirname of $[0] is not the place where we might find the
21552 # original and so on. Autoconf is especially sensible to this).
21554 # Exit status is that of the last command.
21559 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
21560 *c
*,-n*) ECHO_N
= ECHO_C
='
21562 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
21563 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
21566 if expr a
: '\(a\)' >/dev
/null
2>&1; then
21572 rm -f conf$$ conf$$.exe conf$$.
file
21574 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
21575 # We could just check for DJGPP; but this test a) works b) is more generic
21576 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
21577 if test -f conf$$.exe
; then
21578 # Don't use ln at all; we don't have any links
21583 elif ln conf$$.
file conf$$
2>/dev
/null
; then
21588 rm -f conf$$ conf$$.exe conf$$.
file
21590 if mkdir
-p .
2>/dev
/null
; then
21593 test -d .
/-p && rmdir .
/-p
21597 as_executable_p
="test -f"
21599 # Sed expression to map a string onto a valid CPP name.
21600 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21602 # Sed expression to map a string onto a valid variable name.
21603 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21607 # We need space, tab and new line, in precisely that order.
21617 # Open the log real soon, to keep \$[0] and so on meaningful, and to
21618 # report actual input values of CONFIG_FILES etc. instead of their
21619 # values after options handling. Logging --version etc. is OK.
21623 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21624 ## Running $as_me. ##
21629 This file was extended by $as_me, which was
21630 generated by GNU Autoconf 2.59. Invocation command line was
21632 CONFIG_FILES = $CONFIG_FILES
21633 CONFIG_HEADERS = $CONFIG_HEADERS
21634 CONFIG_LINKS = $CONFIG_LINKS
21635 CONFIG_COMMANDS = $CONFIG_COMMANDS
21639 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
21643 # Files that config.status was made for.
21644 if test -n "$ac_config_files"; then
21645 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
21648 if test -n "$ac_config_headers"; then
21649 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
21652 if test -n "$ac_config_links"; then
21653 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
21656 if test -n "$ac_config_commands"; then
21657 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
21660 cat >>$CONFIG_STATUS <<\_ACEOF
21663 \`$as_me' instantiates files from templates according to the
21664 current configuration.
21666 Usage: $0 [OPTIONS] [FILE]...
21668 -h, --help print this help, then exit
21669 -V, --version print version number, then exit
21670 -q, --quiet do not print progress messages
21671 -d, --debug don't remove temporary files
21672 --recheck update $as_me by reconfiguring in the same conditions
21673 --file=FILE[:TEMPLATE]
21674 instantiate the configuration file FILE
21675 --header=FILE[:TEMPLATE]
21676 instantiate the configuration header FILE
21678 Configuration files:
21681 Configuration headers:
21684 Configuration commands:
21687 Report bugs to <bug-autoconf@gnu.org>."
21690 cat >>$CONFIG_STATUS <<_ACEOF
21693 configured by $0, generated by GNU Autoconf 2.59,
21694 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
21696 Copyright (C) 2003 Free Software Foundation, Inc.
21697 This config.status script is free software; the Free Software Foundation
21698 gives unlimited permission to copy, distribute and modify it."
21703 cat >>$CONFIG_STATUS <<\_ACEOF
21704 # If no file are specified by the user, then we need to provide default
21705 # value. By we need to know if files were specified by the user.
21711 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
21712 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
21720 *) # This is not an option, so the user has probably given explicit
21723 ac_need_defaults
=false
;;
21727 # Handling of the options.
21729 cat >>$CONFIG_STATUS <<\_ACEOF
21730 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
21732 --version |
--vers* |
-V )
21733 echo "$ac_cs_version"; exit 0 ;;
21735 # Conflict between --help and --header
21736 { { echo "$as_me:$LINENO: error: ambiguous option: $1
21737 Try \`$0 --help' for more information." >&5
21738 echo "$as_me: error: ambiguous option: $1
21739 Try \`$0 --help' for more information." >&2;}
21740 { (exit 1); exit 1; }; };;
21741 --help |
--hel |
-h )
21742 echo "$ac_cs_usage"; exit 0 ;;
21743 --debug |
--d* |
-d )
21745 --file |
--fil |
--fi |
--f )
21747 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
21748 ac_need_defaults
=false
;;
21749 --header |
--heade |
--head |
--hea )
21751 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
21752 ac_need_defaults
=false
;;
21753 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
21754 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
21757 # This is an error.
21758 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
21759 Try \`$0 --help' for more information." >&5
21760 echo "$as_me: error: unrecognized option: $1
21761 Try \`$0 --help' for more information." >&2;}
21762 { (exit 1); exit 1; }; } ;;
21764 *) ac_config_targets
="$ac_config_targets $1" ;;
21770 ac_configure_extra_args
=
21772 if $ac_cs_silent; then
21774 ac_configure_extra_args
="$ac_configure_extra_args --silent"
21778 cat >>$CONFIG_STATUS <<_ACEOF
21779 if \$ac_cs_recheck; then
21780 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21781 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21786 cat >>$CONFIG_STATUS <<_ACEOF
21788 # INIT-COMMANDS section.
21791 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
21797 cat >>$CONFIG_STATUS <<\_ACEOF
21798 for ac_config_target
in $ac_config_targets
21800 case "$ac_config_target" in
21801 # Handling of arguments.
21802 "Makefile" ) CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
21803 "lib-src/Makefile.c" ) CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
21804 "oldXMenu/Makefile" ) CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
21805 "man/Makefile" ) CONFIG_FILES
="$CONFIG_FILES man/Makefile" ;;
21806 "lwlib/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
21807 "src/Makefile.c" ) CONFIG_FILES
="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
21808 "lisp/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
21809 "lispref/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lispref/Makefile" ;;
21810 "lispintro/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lispintro/Makefile" ;;
21811 "leim/Makefile" ) CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
21812 "default" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
21813 "src/config.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
21814 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21815 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21816 { (exit 1); exit 1; }; };;
21820 # If the user did not use the arguments to specify the items to instantiate,
21821 # then the envvar interface is used. Set only those that are not.
21822 # We use the long form for the default assignment because of an extremely
21823 # bizarre bug on SunOS 4.1.3.
21824 if $ac_need_defaults; then
21825 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
21826 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
21827 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
21830 # Have a temporary directory for convenience. Make it in the build tree
21831 # simply because there is no reason to put it here, and in addition,
21832 # creating and moving files from /tmp can sometimes cause problems.
21833 # Create a temporary directory, and hook for its removal unless debugging.
21836 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
21837 trap '{ (exit 1); exit 1; }' 1 2 13 15
21840 # Create a (secure) tmp directory for tmp files.
21843 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
21844 test -n "$tmp" && test -d "$tmp"
21847 tmp
=.
/confstat$$
-$RANDOM
21848 (umask 077 && mkdir
$tmp)
21851 echo "$me: cannot create a temporary directory in ." >&2
21852 { (exit 1); exit 1; }
21857 cat >>$CONFIG_STATUS <<_ACEOF
21860 # CONFIG_FILES section.
21863 # No need to generate the scripts if there are no CONFIG_FILES.
21864 # This happens for instance when ./config.status config.h
21865 if test -n "\$CONFIG_FILES"; then
21866 # Protect against being on the right side of a sed subst in config.status.
21867 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
21868 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
21869 s,@SHELL@,$SHELL,;t t
21870 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
21871 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
21872 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
21873 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
21874 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
21875 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
21876 s,@exec_prefix@,$exec_prefix,;t t
21877 s,@prefix@,$prefix,;t t
21878 s,@program_transform_name@,$program_transform_name,;t t
21879 s,@bindir@,$bindir,;t t
21880 s,@sbindir@,$sbindir,;t t
21881 s,@libexecdir@,$libexecdir,;t t
21882 s,@datadir@,$datadir,;t t
21883 s,@sysconfdir@,$sysconfdir,;t t
21884 s,@sharedstatedir@,$sharedstatedir,;t t
21885 s,@localstatedir@,$localstatedir,;t t
21886 s,@libdir@,$libdir,;t t
21887 s,@includedir@,$includedir,;t t
21888 s,@oldincludedir@,$oldincludedir,;t t
21889 s,@infodir@,$infodir,;t t
21890 s,@mandir@,$mandir,;t t
21891 s,@build_alias@,$build_alias,;t t
21892 s,@host_alias@,$host_alias,;t t
21893 s,@target_alias@,$target_alias,;t t
21894 s,@DEFS@,$DEFS,;t t
21895 s,@ECHO_C@,$ECHO_C,;t t
21896 s,@ECHO_N@,$ECHO_N,;t t
21897 s,@ECHO_T@,$ECHO_T,;t t
21898 s,@LIBS@,$LIBS,;t t
21899 s,@MAINT@,$MAINT,;t t
21900 s,@build@,$build,;t t
21901 s,@build_cpu@,$build_cpu,;t t
21902 s,@build_vendor@,$build_vendor,;t t
21903 s,@build_os@,$build_os,;t t
21904 s,@host@,$host,;t t
21905 s,@host_cpu@,$host_cpu,;t t
21906 s,@host_vendor@,$host_vendor,;t t
21907 s,@host_os@,$host_os,;t t
21909 s,@CFLAGS@,$CFLAGS,;t t
21910 s,@LDFLAGS@,$LDFLAGS,;t t
21911 s,@CPPFLAGS@,$CPPFLAGS,;t t
21912 s,@ac_ct_CC@,$ac_ct_CC,;t t
21913 s,@EXEEXT@,$EXEEXT,;t t
21914 s,@OBJEXT@,$OBJEXT,;t t
21915 s,@LN_S@,$LN_S,;t t
21917 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
21918 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
21919 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
21920 s,@RANLIB@,$RANLIB,;t t
21921 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
21922 s,@INSTALL_INFO@,$INSTALL_INFO,;t t
21923 s,@EGREP@,$EGREP,;t t
21924 s,@SETARCH@,$SETARCH,;t t
21925 s,@LIBSOUND@,$LIBSOUND,;t t
21926 s,@SET_MAKE@,$SET_MAKE,;t t
21927 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
21928 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
21929 s,@GTK_LIBS@,$GTK_LIBS,;t t
21930 s,@ALLOCA@,$ALLOCA,;t t
21931 s,@liblockfile@,$liblockfile,;t t
21932 s,@LIBOBJS@,$LIBOBJS,;t t
21933 s,@NEED_SETGID@,$NEED_SETGID,;t t
21934 s,@KMEM_GROUP@,$KMEM_GROUP,;t t
21935 s,@GETLOADAVG_LIBS@,$GETLOADAVG_LIBS,;t t
21936 s,@version@,$version,;t t
21937 s,@configuration@,$configuration,;t t
21938 s,@canonical@,$canonical,;t t
21939 s,@srcdir@,$srcdir,;t t
21940 s,@lispdir@,$lispdir,;t t
21941 s,@locallisppath@,$locallisppath,;t t
21942 s,@lisppath@,$lisppath,;t t
21943 s,@x_default_search_path@,$x_default_search_path,;t t
21944 s,@etcdir@,$etcdir,;t t
21945 s,@archlibdir@,$archlibdir,;t t
21946 s,@docdir@,$docdir,;t t
21947 s,@bitmapdir@,$bitmapdir,;t t
21948 s,@gamedir@,$gamedir,;t t
21949 s,@gameuser@,$gameuser,;t t
21950 s,@c_switch_system@,$c_switch_system,;t t
21951 s,@c_switch_machine@,$c_switch_machine,;t t
21952 s,@LD_SWITCH_X_SITE@,$LD_SWITCH_X_SITE,;t t
21953 s,@LD_SWITCH_X_SITE_AUX@,$LD_SWITCH_X_SITE_AUX,;t t
21954 s,@C_SWITCH_X_SITE@,$C_SWITCH_X_SITE,;t t
21955 s,@X_TOOLKIT_TYPE@,$X_TOOLKIT_TYPE,;t t
21956 s,@machfile@,$machfile,;t t
21957 s,@opsysfile@,$opsysfile,;t t
21958 s,@carbon_appdir@,$carbon_appdir,;t t
21959 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
21964 cat >>$CONFIG_STATUS <<\_ACEOF
21965 # Split the substitutions into bite-sized pieces for seds with
21966 # small command number limits, like on Digital OSF/1 and HP-UX.
21967 ac_max_sed_lines
=48
21968 ac_sed_frag
=1 # Number of current file.
21969 ac_beg
=1 # First line for current file.
21970 ac_end
=$ac_max_sed_lines # Line after last line for current file.
21973 while $ac_more_lines; do
21974 if test $ac_beg -gt 1; then
21975 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
21977 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
21979 if test ! -s $tmp/subs.frag
; then
21980 ac_more_lines
=false
21982 # The purpose of the label and of the branching condition is to
21983 # speed up the sed processing (if there are no `@' at all, there
21984 # is no need to browse any of the substitutions).
21985 # These are the two extra sed commands mentioned above.
21987 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
21988 if test -z "$ac_sed_cmds"; then
21989 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
21991 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
21993 ac_sed_frag
=`expr $ac_sed_frag + 1`
21995 ac_end
=`expr $ac_end + $ac_max_sed_lines`
21998 if test -z "$ac_sed_cmds"; then
22001 fi # test -n "$CONFIG_FILES"
22004 cat >>$CONFIG_STATUS <<\_ACEOF
22005 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
22006 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22008 - |
*:- |
*:-:* ) # input from stdin
22010 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
22011 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
22012 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
22013 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
22014 * ) ac_file_in
=$ac_file.
in ;;
22017 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
22018 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
22019 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22020 X"$ac_file" : 'X\(//\)[^/]' \| \
22021 X"$ac_file" : 'X\(//\)$' \| \
22022 X"$ac_file" : 'X\(/\)' \| \
22023 . : '\(.\)' 2>/dev/null ||
22025 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22026 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22027 /^X\(\/\/\)$/{ s//\1/; q; }
22028 /^X\(\/\).*/{ s//\1/; q; }
22030 { if $as_mkdir_p; then
22035 while test ! -d "$as_dir"; do
22036 as_dirs
="$as_dir $as_dirs"
22037 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
22038 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22039 X"$as_dir" : 'X\(//\)[^/]' \| \
22040 X"$as_dir" : 'X\(//\)$' \| \
22041 X"$as_dir" : 'X\(/\)' \| \
22042 . : '\(.\)' 2>/dev/null ||
22044 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22045 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22046 /^X\(\/\/\)$/{ s//\1/; q; }
22047 /^X\(\/\).*/{ s//\1/; q; }
22050 test ! -n "$as_dirs" || mkdir
$as_dirs
22051 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22052 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22053 { (exit 1); exit 1; }; }; }
22057 if test "$ac_dir" != .
; then
22058 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22059 # A "../" for each directory in $ac_dir_suffix.
22060 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22062 ac_dir_suffix
= ac_top_builddir
=
22066 .
) # No --srcdir option. We are building in place.
22068 if test -z "$ac_top_builddir"; then
22071 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
22073 [\\/]* | ?
:[\\/]* ) # Absolute path.
22074 ac_srcdir
=$srcdir$ac_dir_suffix;
22075 ac_top_srcdir
=$srcdir ;;
22076 *) # Relative path.
22077 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
22078 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
22081 # Do not use `cd foo && pwd` to compute absolute paths, because
22082 # the directories may not exist.
22084 .
) ac_abs_builddir
="$ac_dir";;
22087 .
) ac_abs_builddir
=`pwd`;;
22088 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
22089 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
22092 case $ac_abs_builddir in
22093 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
22095 case ${ac_top_builddir}.
in
22096 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
22097 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
22098 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
22101 case $ac_abs_builddir in
22102 .
) ac_abs_srcdir
=$ac_srcdir;;
22105 .
) ac_abs_srcdir
=$ac_abs_builddir;;
22106 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
22107 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
22110 case $ac_abs_builddir in
22111 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
22113 case $ac_top_srcdir in
22114 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
22115 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
22116 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
22122 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
22123 *) ac_INSTALL
=$ac_top_builddir$INSTALL ;;
22126 # Let's still pretend it is `configure' which instantiates (i.e., don't
22127 # use $as_me), people would be surprised to read:
22128 # /* config.h. Generated by config.status. */
22129 if test x
"$ac_file" = x-
; then
22132 configure_input
="$ac_file. "
22134 configure_input
=$configure_input"Generated from `echo $ac_file_in |
22135 sed 's,.*/,,'` by configure."
22137 # First look for the input files in the build tree, otherwise in the
22139 ac_file_inputs
=`IFS=:
22140 for f in $ac_file_in; do
22142 -) echo $tmp/stdin ;;
22144 # Absolute (can't be DOS-style, as IFS=:)
22145 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22146 echo "$as_me: error: cannot find input file: $f" >&2;}
22147 { (exit 1); exit 1; }; }
22150 if test -f "$f"; then
22153 elif test -f "$srcdir/$f"; then
22158 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22159 echo "$as_me: error: cannot find input file: $f" >&2;}
22160 { (exit 1); exit 1; }; }
22163 done` ||
{ (exit 1); exit 1; }
22165 if test x
"$ac_file" != x-
; then
22166 { echo "$as_me:$LINENO: creating $ac_file" >&5
22167 echo "$as_me: creating $ac_file" >&6;}
22171 cat >>$CONFIG_STATUS <<_ACEOF
22175 cat >>$CONFIG_STATUS <<\_ACEOF
22177 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
22178 s
,@configure_input@
,$configure_input,;t t
22179 s
,@srcdir@
,$ac_srcdir,;t t
22180 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
22181 s
,@top_srcdir@
,$ac_top_srcdir,;t t
22182 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
22183 s
,@builddir@
,$ac_builddir,;t t
22184 s
,@abs_builddir@
,$ac_abs_builddir,;t t
22185 s
,@top_builddir@
,$ac_top_builddir,;t t
22186 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
22187 s
,@INSTALL@
,$ac_INSTALL,;t t
22188 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
22190 if test x"$ac_file" != x-; then
22191 mv $tmp/out $ac_file
22199 cat >>$CONFIG_STATUS <<\_ACEOF
22202 # CONFIG_HEADER section.
22205 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
22206 # NAME is the cpp macro being defined and VALUE is the value it is being given.
22208 # ac_d sets the value in "#define NAME VALUE" lines.
22209 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
22210 ac_dB
='[ ].*$,\1#\2'
22213 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22214 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
22215 ac_uB
='$,\1#\2define\3'
22219 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
22220 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22222 - |
*:- |
*:-:* ) # input from stdin
22224 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
22225 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
22226 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
22227 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
22228 * ) ac_file_in
=$ac_file.
in ;;
22231 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
22232 echo "$as_me: creating $ac_file" >&6;}
22234 # First look for the input files in the build tree, otherwise in the
22236 ac_file_inputs
=`IFS=:
22237 for f in $ac_file_in; do
22239 -) echo $tmp/stdin ;;
22241 # Absolute (can't be DOS-style, as IFS=:)
22242 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22243 echo "$as_me: error: cannot find input file: $f" >&2;}
22244 { (exit 1); exit 1; }; }
22245 # Do quote $f, to prevent DOS paths from being IFS'd.
22248 if test -f "$f"; then
22251 elif test -f "$srcdir/$f"; then
22256 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22257 echo "$as_me: error: cannot find input file: $f" >&2;}
22258 { (exit 1); exit 1; }; }
22261 done` ||
{ (exit 1); exit 1; }
22262 # Remove the trailing spaces.
22263 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
22267 # Transform confdefs.h into two sed scripts, `conftest.defines' and
22268 # `conftest.undefs', that substitutes the proper values into
22269 # config.h.in to produce config.h. The first handles `#define'
22270 # templates, and the second `#undef' templates.
22271 # And first: Protect against being on the right side of a sed subst in
22272 # config.status. Protect against being in an unquoted here document
22273 # in config.status.
22274 rm -f conftest.defines conftest.undefs
22275 # Using a here document instead of a string reduces the quoting nightmare.
22276 # Putting comments in sed scripts is not portable.
22278 # `end' is used to avoid that the second main sed command (meant for
22279 # 0-ary CPP macros) applies to n-ary macro definitions.
22280 # See the Autoconf documentation for `clear'.
22281 cat >confdef2sed.
sed <<\_ACEOF
22286 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
22288 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
22291 # If some macros were called several times there might be several times
22292 # the same #defines, which is useless. Nevertheless, we may not want to
22293 # sort them, since we want the *last* AC-DEFINE to be honored.
22294 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
22295 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
22296 rm -f confdef2sed.sed
22298 # This sed command replaces #undef with comments. This is necessary, for
22299 # example, in the case of _POSIX_SOURCE, which is predefined and required
22300 # on some systems where configure will not decide to define it.
22301 cat >>conftest.undefs <<\_ACEOF
22302 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
22305 # Break up conftest.defines because some shells have a limit on the size
22306 # of here documents, and old seds have small limits too (100 cmds).
22307 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
22308 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
22309 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
22310 echo ' :' >>$CONFIG_STATUS
22311 rm -f conftest.tail
22312 while grep . conftest.defines >/dev/null
22314 # Write a limited-size here document to $tmp/defines.sed.
22315 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
22316 # Speed up: don't consider the non `#define' lines.
22317 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
22318 # Work around the forget-to-reset-the-flag bug.
22319 echo 't clr' >>$CONFIG_STATUS
22320 echo ': clr' >>$CONFIG_STATUS
22321 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
22323 sed -f $tmp/defines.sed $tmp/in >$tmp/out
22325 mv $tmp/out $tmp/in
22327 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
22328 rm -f conftest.defines
22329 mv conftest.
tail conftest.defines
22331 rm -f conftest.defines
22332 echo ' fi # grep' >>$CONFIG_STATUS
22333 echo >>$CONFIG_STATUS
22335 # Break up conftest.undefs because some shells have a limit on the size
22336 # of here documents, and old seds have small limits too (100 cmds).
22337 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
22338 rm -f conftest.
tail
22339 while grep . conftest.undefs
>/dev
/null
22341 # Write a limited-size here document to $tmp/undefs.sed.
22342 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
22343 # Speed up: don't consider the non
`#undef'
22344 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
22345 # Work around the forget-to-reset-the-flag bug.
22346 echo 't clr' >>$CONFIG_STATUS
22347 echo ': clr' >>$CONFIG_STATUS
22348 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
22350 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
22352 mv $tmp/out $tmp/in
22354 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
22355 rm -f conftest.undefs
22356 mv conftest.tail conftest.undefs
22358 rm -f conftest.undefs
22360 cat >>$CONFIG_STATUS <<\_ACEOF
22361 # Let's still pretend it is `configure
' which instantiates (i.e., don't
22362 # use $as_me), people would be surprised to read:
22363 # /* config.h. Generated by config.status. */
22364 if test x
"$ac_file" = x-
; then
22365 echo "/* Generated by configure. */" >$tmp/config.h
22367 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
22369 cat $tmp/in >>$tmp/config.h
22371 if test x
"$ac_file" != x-
; then
22372 if diff $ac_file $tmp/config.h
>/dev
/null
2>&1; then
22373 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22374 echo "$as_me: $ac_file is unchanged" >&6;}
22376 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
22377 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22378 X"$ac_file" : 'X\(//\)[^/]' \| \
22379 X"$ac_file" : 'X\(//\)$' \| \
22380 X"$ac_file" : 'X\(/\)' \| \
22381 . : '\(.\)' 2>/dev/null ||
22383 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22384 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22385 /^X\(\/\/\)$/{ s//\1/; q; }
22386 /^X\(\/\).*/{ s//\1/; q; }
22388 { if $as_mkdir_p; then
22393 while test ! -d "$as_dir"; do
22394 as_dirs
="$as_dir $as_dirs"
22395 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
22396 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22397 X"$as_dir" : 'X\(//\)[^/]' \| \
22398 X"$as_dir" : 'X\(//\)$' \| \
22399 X"$as_dir" : 'X\(/\)' \| \
22400 . : '\(.\)' 2>/dev/null ||
22402 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22403 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22404 /^X\(\/\/\)$/{ s//\1/; q; }
22405 /^X\(\/\).*/{ s//\1/; q; }
22408 test ! -n "$as_dirs" || mkdir
$as_dirs
22409 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22410 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22411 { (exit 1); exit 1; }; }; }
22414 mv $tmp/config.h
$ac_file
22418 rm -f $tmp/config.h
22422 cat >>$CONFIG_STATUS <<\_ACEOF
22425 # CONFIG_COMMANDS section.
22427 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
22428 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
22429 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
22430 ac_dir
=`(dirname "$ac_dest") 2>/dev/null ||
22431 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22432 X"$ac_dest" : 'X\(//\)[^/]' \| \
22433 X"$ac_dest" : 'X\(//\)$' \| \
22434 X"$ac_dest" : 'X\(/\)' \| \
22435 . : '\(.\)' 2>/dev/null ||
22437 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22438 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22439 /^X\(\/\/\)$/{ s//\1/; q; }
22440 /^X\(\/\).*/{ s//\1/; q; }
22442 { if $as_mkdir_p; then
22447 while test ! -d "$as_dir"; do
22448 as_dirs
="$as_dir $as_dirs"
22449 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
22450 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22451 X"$as_dir" : 'X\(//\)[^/]' \| \
22452 X"$as_dir" : 'X\(//\)$' \| \
22453 X"$as_dir" : 'X\(/\)' \| \
22454 . : '\(.\)' 2>/dev/null ||
22456 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22457 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22458 /^X\(\/\/\)$/{ s//\1/; q; }
22459 /^X\(\/\).*/{ s//\1/; q; }
22462 test ! -n "$as_dirs" || mkdir
$as_dirs
22463 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22464 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22465 { (exit 1); exit 1; }; }; }
22469 if test "$ac_dir" != .
; then
22470 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22471 # A "../" for each directory in $ac_dir_suffix.
22472 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22474 ac_dir_suffix
= ac_top_builddir
=
22478 .
) # No --srcdir option. We are building in place.
22480 if test -z "$ac_top_builddir"; then
22483 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
22485 [\\/]* | ?
:[\\/]* ) # Absolute path.
22486 ac_srcdir
=$srcdir$ac_dir_suffix;
22487 ac_top_srcdir
=$srcdir ;;
22488 *) # Relative path.
22489 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
22490 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
22493 # Do not use `cd foo && pwd` to compute absolute paths, because
22494 # the directories may not exist.
22496 .
) ac_abs_builddir
="$ac_dir";;
22499 .
) ac_abs_builddir
=`pwd`;;
22500 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
22501 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
22504 case $ac_abs_builddir in
22505 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
22507 case ${ac_top_builddir}.
in
22508 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
22509 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
22510 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
22513 case $ac_abs_builddir in
22514 .
) ac_abs_srcdir
=$ac_srcdir;;
22517 .
) ac_abs_srcdir
=$ac_abs_builddir;;
22518 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
22519 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
22522 case $ac_abs_builddir in
22523 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
22525 case $ac_top_srcdir in
22526 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
22527 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
22528 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
22533 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
22534 echo "$as_me: executing $ac_dest commands" >&6;}
22538 ### Make the necessary directories, if they don't exist.
22539 for dir
in etc lisp
; do
22540 test -d ${dir} || mkdir
${dir}
22543 # Build src/Makefile from ${srcdir}/src/Makefile.c
22544 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
22545 # This must be done after src/config.h is built, since we rely on that file.
22547 # Now get this: Some word that is part of the ${srcdir} directory name
22548 # or the ${configuration} value might, just might, happen to be an
22549 # identifier like `sun4' or `i386' or something, and be predefined by
22550 # the C preprocessor to some helpful value like 1, or maybe the empty
22551 # string. Needless to say consequent macro substitutions are less
22552 # than conducive to the makefile finding the correct directory.
22553 undefs
="`echo $top_srcdir $configuration $canonical |
22554 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
22555 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
22558 echo creating src
/epaths.h
22559 ${MAKE-make} epaths-force
22561 # As of 2000-11-19, newest development versions of GNU cpp preprocess
22562 # `..' to `. .' unless invoked with -traditional
22564 if test "x$GCC" = xyes
&& test "x$CPP_NEED_TRADITIONAL" = xyes
; then
22565 CPPFLAGS
="$CPPFLAGS -traditional"
22568 echo creating lib-src
/Makefile
22570 rm -f junk.c junk1.c junk2.c
22571 sed -e '/start of cpp stuff/q' \
22572 < Makefile.c
> junk1.c
22573 sed -e '1,/start of cpp stuff/d'\
22574 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
22575 < Makefile.c
> junk.c
22576 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
22577 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
22578 cat junk1.c junk2.c
> Makefile.new
22579 rm -f junk.c junk1.c junk2.c
22580 chmod 444 Makefile.new
22581 mv -f Makefile.new Makefile
22584 echo creating src
/Makefile
22586 rm -f junk.c junk1.c junk2.c
22587 sed -e '/start of cpp stuff/q' \
22588 < Makefile.c
> junk1.c
22589 sed -e '1,/start of cpp stuff/d'\
22590 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
22591 < Makefile.c
> junk.c
22592 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
22593 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
22594 cat junk1.c junk2.c
> Makefile.new
22595 rm -f junk.c junk1.c junk2.c
22596 chmod 444 Makefile.new
22597 mv -f Makefile.new Makefile
22600 if test ! -f src
/.gdbinit
&& test -f $srcdir/src
/.gdbinit
; then
22601 echo creating src
/.gdbinit
22602 echo source $srcdir/src
/.gdbinit
> src
/.gdbinit
22605 # This is how we know whether to re-run configure in certain cases.
22606 touch src
/config.stamp
22613 cat >>$CONFIG_STATUS <<\_ACEOF
22615 { (exit 0); exit 0; }
22617 chmod +x
$CONFIG_STATUS
22618 ac_clean_files
=$ac_clean_files_save
22621 # configure is writing to config.log, and then calls config.status.
22622 # config.status does its own redirection, appending to config.log.
22623 # Unfortunately, on DOS this fails, as config.log is still kept open
22624 # by configure, so config.status won't be able to write to it; its
22625 # output is simply discarded. So we exec the FD to /dev/null,
22626 # effectively closing config.log, so it can be properly (re)opened and
22627 # appended to by config.status. When coming back to configure, we
22628 # need to make the FD available again.
22629 if test "$no_create" != yes; then
22631 ac_config_status_args
=
22632 test "$silent" = yes &&
22633 ac_config_status_args
="$ac_config_status_args --quiet"
22635 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
22637 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22638 # would make configure fail if this is the last instruction.
22639 $ac_cs_success ||
{ (exit 1); exit 1; }