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 # Factoring default headers for most tests.
276 ac_includes_default
="\
279 # include <sys/types.h>
282 # include <sys/stat.h>
293 # if !STDC_HEADERS && HAVE_MEMORY_H
299 # include <strings.h>
302 # include <inttypes.h>
312 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 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 YACC RANLIB ac_ct_RANLIB EGREP LIBSOUND SET_MAKE ALLOCA liblockfile LIBOBJS LIBOBJS NEED_SETGID KMEM_GROUP GETLOADAVG_LIBS version configuration canonical srcdir lispdir locallisppath lisppath x_default_search_path etcdir archlibdir docdir bitmapdir c_switch_system c_switch_machine LD_SWITCH_X_SITE LD_SWITCH_X_SITE_AUX C_SWITCH_X_SITE X_TOOLKIT_TYPE machfile opsysfile LTLIBOBJS'
315 # Initialize some variables set by options.
317 ac_init_version
=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
327 program_transform_name
=s
,x
,x
,
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir
='${exec_prefix}/bin'
341 sbindir
='${exec_prefix}/sbin'
342 libexecdir
='${exec_prefix}/libexec'
343 datadir
='${prefix}/share'
344 sysconfdir
='${prefix}/etc'
345 sharedstatedir
='${prefix}/com'
346 localstatedir
='${prefix}/var'
347 libdir
='${exec_prefix}/lib'
348 includedir
='${prefix}/include'
349 oldincludedir
='/usr/include'
350 infodir
='${prefix}/info'
351 mandir
='${prefix}/man'
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
363 ac_optarg
=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365 # Accept the important Cygnus configure options, so we can diagnose typos.
369 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
371 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
374 -build |
--build |
--buil |
--bui |
--bu)
375 ac_prev
=build_alias
;;
376 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
377 build_alias
=$ac_optarg ;;
379 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
380 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
381 ac_prev
=cache_file
;;
382 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
383 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
384 cache_file
=$ac_optarg ;;
387 cache_file
=config.cache
;;
389 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
391 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
393 datadir
=$ac_optarg ;;
395 -disable-* |
--disable-*)
396 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397 # Reject names that are not valid shell variable names.
398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
404 -enable-* |
--enable-*)
405 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406 # Reject names that are not valid shell variable names.
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
412 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
415 eval "enable_$ac_feature='$ac_optarg'" ;;
417 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
418 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
419 |
--exec |
--exe |
--ex)
420 ac_prev
=exec_prefix
;;
421 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
422 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
423 |
--exec=* |
--exe=* |
--ex=*)
424 exec_prefix
=$ac_optarg ;;
426 -gas |
--gas |
--ga |
--g)
427 # Obsolete; use --with-gas.
430 -help |
--help |
--hel |
--he |
-h)
432 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
433 ac_init_help
=recursive
;;
434 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
435 ac_init_help
=short
;;
437 -host |
--host |
--hos |
--ho)
438 ac_prev
=host_alias
;;
439 -host=* |
--host=* |
--hos=* |
--ho=*)
440 host_alias
=$ac_optarg ;;
442 -includedir |
--includedir |
--includedi |
--included |
--include \
443 |
--includ |
--inclu |
--incl |
--inc)
444 ac_prev
=includedir
;;
445 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
446 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
447 includedir
=$ac_optarg ;;
449 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
451 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
452 infodir
=$ac_optarg ;;
454 -libdir |
--libdir |
--libdi |
--libd)
456 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
459 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
460 |
--libexe |
--libex |
--libe)
461 ac_prev
=libexecdir
;;
462 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
463 |
--libexe=* |
--libex=* |
--libe=*)
464 libexecdir
=$ac_optarg ;;
466 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
467 |
--localstate |
--localstat |
--localsta |
--localst \
468 |
--locals |
--local |
--loca |
--loc |
--lo)
469 ac_prev
=localstatedir
;;
470 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
471 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
472 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
473 localstatedir
=$ac_optarg ;;
475 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
477 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
481 # Obsolete; use --without-fp.
484 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
485 |
--no-cr |
--no-c |
-n)
488 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
489 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
492 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
493 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
494 |
--oldin |
--oldi |
--old |
--ol |
--o)
495 ac_prev
=oldincludedir
;;
496 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
497 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
498 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
499 oldincludedir
=$ac_optarg ;;
501 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
503 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
506 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
507 |
--program-pre |
--program-pr |
--program-p)
508 ac_prev
=program_prefix
;;
509 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
510 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
511 program_prefix
=$ac_optarg ;;
513 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
514 |
--program-suf |
--program-su |
--program-s)
515 ac_prev
=program_suffix
;;
516 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
517 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
518 program_suffix
=$ac_optarg ;;
520 -program-transform-name |
--program-transform-name \
521 |
--program-transform-nam |
--program-transform-na \
522 |
--program-transform-n |
--program-transform- \
523 |
--program-transform |
--program-transfor \
524 |
--program-transfo |
--program-transf \
525 |
--program-trans |
--program-tran \
526 |
--progr-tra |
--program-tr |
--program-t)
527 ac_prev
=program_transform_name
;;
528 -program-transform-name=* |
--program-transform-name=* \
529 |
--program-transform-nam=* |
--program-transform-na=* \
530 |
--program-transform-n=* |
--program-transform-=* \
531 |
--program-transform=* |
--program-transfor=* \
532 |
--program-transfo=* |
--program-transf=* \
533 |
--program-trans=* |
--program-tran=* \
534 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
535 program_transform_name
=$ac_optarg ;;
537 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
538 |
-silent |
--silent |
--silen |
--sile |
--sil)
541 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
543 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
545 sbindir
=$ac_optarg ;;
547 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
548 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
549 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
551 ac_prev
=sharedstatedir
;;
552 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
553 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
554 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
556 sharedstatedir
=$ac_optarg ;;
558 -site |
--site |
--sit)
560 -site=* |
--site=* |
--sit=*)
563 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
565 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
568 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
569 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
570 ac_prev
=sysconfdir
;;
571 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
572 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
573 sysconfdir
=$ac_optarg ;;
575 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
576 ac_prev
=target_alias
;;
577 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
578 target_alias
=$ac_optarg ;;
580 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
583 -version |
--version |
--versio |
--versi |
--vers |
-V)
587 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588 # Reject names that are not valid shell variable names.
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
592 ac_package
=`echo $ac_package| sed 's/-/_/g'`
594 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
597 eval "with_$ac_package='$ac_optarg'" ;;
599 -without-* |
--without-*)
600 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601 # Reject names that are not valid shell variable names.
602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package
=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
609 # Obsolete; use --with-x.
612 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
613 |
--x-incl |
--x-inc |
--x-in |
--x-i)
614 ac_prev
=x_includes
;;
615 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
616 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
617 x_includes
=$ac_optarg ;;
619 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
620 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
621 ac_prev
=x_libraries
;;
622 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
623 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
624 x_libraries
=$ac_optarg ;;
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
632 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
642 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
652 if test -n "$ac_prev"; then
653 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
658 # Be sure to have absolute paths.
659 for ac_var
in exec_prefix prefix
661 eval ac_val
=$
`echo $ac_var`
663 [\\/$
]* | ?
:[\\/]* | NONE |
'' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
669 # Be sure to have absolute paths.
670 for ac_var
in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
673 eval ac_val
=$
`echo $ac_var`
675 [\\/$
]* | ?
:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x
; then
690 if test "x$build_alias" = x
; then
691 cross_compiling
=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
700 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
702 test "$silent" = yes && exec 6>/dev
/null
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707 ac_srcdir_defaulted
=yes
708 # Try the directory containing this script, then its parent.
709 ac_confdir
=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
722 if test ! -r $srcdir/$ac_unique_file; then
726 ac_srcdir_defaulted
=no
728 if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
737 (cd $srcdir && test -r .
/$ac_unique_file) 2>/dev
/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740 srcdir
=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set
=${build_alias+set}
742 ac_env_build_alias_value
=$build_alias
743 ac_cv_env_build_alias_set
=${build_alias+set}
744 ac_cv_env_build_alias_value
=$build_alias
745 ac_env_host_alias_set
=${host_alias+set}
746 ac_env_host_alias_value
=$host_alias
747 ac_cv_env_host_alias_set
=${host_alias+set}
748 ac_cv_env_host_alias_value
=$host_alias
749 ac_env_target_alias_set
=${target_alias+set}
750 ac_env_target_alias_value
=$target_alias
751 ac_cv_env_target_alias_set
=${target_alias+set}
752 ac_cv_env_target_alias_value
=$target_alias
753 ac_env_CC_set
=${CC+set}
755 ac_cv_env_CC_set
=${CC+set}
756 ac_cv_env_CC_value
=$CC
757 ac_env_CFLAGS_set
=${CFLAGS+set}
758 ac_env_CFLAGS_value
=$CFLAGS
759 ac_cv_env_CFLAGS_set
=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value
=$CFLAGS
761 ac_env_LDFLAGS_set
=${LDFLAGS+set}
762 ac_env_LDFLAGS_value
=$LDFLAGS
763 ac_cv_env_LDFLAGS_set
=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value
=$LDFLAGS
765 ac_env_CPPFLAGS_set
=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value
=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set
=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value
=$CPPFLAGS
769 ac_env_CPP_set
=${CPP+set}
770 ac_env_CPP_value
=$CPP
771 ac_cv_env_CPP_set
=${CPP+set}
772 ac_cv_env_CPP_value
=$CPP
775 # Report the --help message.
777 if test "$ac_init_help" = "long"; then
778 # Omit some internal or obsolete options to make the list less imposing.
779 # This message is too long to be a string in the A/UX 3.1 sh.
781 \`configure' configures this package to adapt to many kinds of systems.
783 Usage: $0 [OPTION]... [VAR=VALUE]...
785 To assign environment variables (e.g., CC, CFLAGS...), specify them as
786 VAR=VALUE. See below for descriptions of some of the useful variables.
788 Defaults for the options are specified in brackets.
791 -h, --help display this help and exit
792 --help=short display options specific to this package
793 --help=recursive display the short help of all the included packages
794 -V, --version display version information and exit
795 -q, --quiet, --silent do not print \`checking...' messages
796 --cache-file=FILE cache test results in FILE [disabled]
797 -C, --config-cache alias for \`--cache-file=config.cache'
798 -n, --no-create do not create output files
799 --srcdir=DIR find the sources in DIR [configure dir or \`..']
804 Installation directories:
805 --prefix=PREFIX install architecture-independent files in PREFIX
807 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
810 By default, \`make install' will install all the files in
811 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
812 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
813 for instance \`--prefix=\$HOME'.
815 For better control, use the options below.
817 Fine tuning of the installation directories:
818 --bindir=DIR user executables [EPREFIX/bin]
819 --sbindir=DIR system admin executables [EPREFIX/sbin]
820 --libexecdir=DIR program executables [EPREFIX/libexec]
821 --datadir=DIR read-only architecture-independent data [PREFIX/share]
822 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
823 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
824 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
825 --libdir=DIR object code libraries [EPREFIX/lib]
826 --includedir=DIR C header files [PREFIX/include]
827 --oldincludedir=DIR C header files for non-gcc [/usr/include]
828 --infodir=DIR info documentation [PREFIX/info]
829 --mandir=DIR man documentation [PREFIX/man]
835 --x-includes=DIR X include files are
in DIR
836 --x-libraries=DIR X library files are
in DIR
839 --build=BUILD configure
for building on BUILD
[guessed
]
840 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
844 if test -n "$ac_init_help"; then
849 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
850 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
851 --disable-largefile omit support
for large files
854 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
855 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
856 --without-gcc don
't use GCC to compile Emacs if GCC is found
857 --without-pop don't support POP
mail retrieval with movemail
858 --with-kerberos support Kerberos-authenticated POP
859 --with-kerberos5 support Kerberos version
5 authenticated POP
860 --with-hesiod support Hesiod to get the POP server
host
861 --with-x-toolkit=KIT use an X toolkit
(KIT
= yes
/lucid
/athena
/motif
/no
)
862 --with-xpm use
-lXpm for displaying XPM images
863 --with-jpeg use
-ljpeg for displaying JPEG images
864 --with-tiff use
-ltiff for displaying TIFF images
865 --with-gif use
-lungif for displaying GIF images
866 --with-png use
-lpng for displaying PNG images
867 --without-toolkit-scroll-bars
868 don
't use Motif or Xaw3d scroll bars
869 --without-xim don't use X11 XIM
870 --with-x use the X Window System
872 Some influential environment variables
:
873 CC C compiler
command
874 CFLAGS C compiler flags
875 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
876 nonstandard directory
<lib dir
>
877 CPPFLAGS C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if you have
878 headers
in a nonstandard directory
<include dir
>
881 Use these variables to override the choices made by
`configure' or to help
882 it to find libraries and programs with nonstandard names/locations.
887 if test "$ac_init_help" = "recursive"; then
888 # If there are subdirs, report their specific --help.
890 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
891 test -d $ac_dir || continue
894 if test "$ac_dir" != .; then
895 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
896 # A "../" for each directory in $ac_dir_suffix.
897 ac_top_builddir=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,../,g'`
899 ac_dir_suffix= ac_top_builddir=
903 .) # No --srcdir option. We are building in place.
905 if test -z "$ac_top_builddir"; then
908 ac_top_srcdir=`echo $ac_top_builddir |
sed 's,/$,,'`
910 [\\/]* | ?:[\\/]* ) # Absolute path.
911 ac_srcdir=$srcdir$ac_dir_suffix;
912 ac_top_srcdir=$srcdir ;;
914 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
915 ac_top_srcdir=$ac_top_builddir$srcdir ;;
918 # Do not use `cd foo
&& pwd` to compute absolute paths, because
919 # the directories may not exist.
921 .) ac_abs_builddir="$ac_dir";;
924 .) ac_abs_builddir=`pwd`;;
925 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
926 *) ac_abs_builddir=`pwd`/"$ac_dir";;
929 case $ac_abs_builddir in
930 .) ac_abs_top_builddir=${ac_top_builddir}.;;
932 case ${ac_top_builddir}. in
933 .) ac_abs_top_builddir=$ac_abs_builddir;;
934 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
935 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
938 case $ac_abs_builddir in
939 .) ac_abs_srcdir=$ac_srcdir;;
942 .) ac_abs_srcdir=$ac_abs_builddir;;
943 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
944 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
947 case $ac_abs_builddir in
948 .) ac_abs_top_srcdir=$ac_top_srcdir;;
950 case $ac_top_srcdir in
951 .) ac_abs_top_srcdir=$ac_abs_builddir;;
952 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
953 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
958 # Check for guested configure; otherwise get Cygnus style configure.
959 if test -f $ac_srcdir/configure.gnu; then
961 $SHELL $ac_srcdir/configure.gnu --help=recursive
962 elif test -f $ac_srcdir/configure; then
964 $SHELL $ac_srcdir/configure --help=recursive
965 elif test -f $ac_srcdir/configure.ac ||
966 test -f $ac_srcdir/configure.in; then
970 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
976 test -n "$ac_init_help" && exit 0
977 if $ac_init_version; then
980 Copyright (C) 2003 Free Software Foundation, Inc.
981 This configure script is free software; the Free Software Foundation
982 gives unlimited permission to copy, distribute and modify it.
988 This file contains any messages produced by compilers while
989 running configure, to aid debugging if configure makes a mistake.
991 It was created by $as_me, which was
992 generated by GNU Autoconf 2.59. Invocation command line was
1003 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1004 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1005 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1006 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1007 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1009 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1010 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1012 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1013 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1014 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1015 hostinfo = `(hostinfo
) 2>/dev
/null ||
echo unknown
`
1016 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1017 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1018 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1026 test -z "$as_dir" && as_dir=.
1027 echo "PATH: $as_dir"
1042 # Keep a trace of the command line.
1043 # Strip out --no-create and --no-recursion so they do not pile up.
1044 # Strip out --silent because we don't want to record it for future runs.
1045 # Also quote any args containing shell meta-characters.
1046 # Make two passes to allow for proper duplicate-argument suppression.
1051 ac_must_keep_next=false
1057 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1058 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1059 | -silent | --silent | --silen | --sile | --sil)
1061 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1062 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1065 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1067 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1068 if test $ac_must_keep_next = true; then
1069 ac_must_keep_next=false # Got value, back to normal.
1072 *=* | --config-cache | -C | -disable-* | --disable-* \
1073 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1074 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1075 | -with-* | --with-* | -without-* | --without-* | --x)
1076 case "$ac_configure_args0 " in
1077 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1080 -* ) ac_must_keep_next=true ;;
1083 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1084 # Get rid of the leading space.
1090 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1091 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1093 # When interrupted or exit'd, cleanup temporary files, and complete
1094 # config.log. We remove comments because anyway the quotes in there
1095 # would cause problems or look ugly.
1096 # WARNING: Be sure not to use single quotes in there, as some shells,
1097 # such as our DU 5.0 friend, will then `close
' the trap.
1098 trap 'exit_status
=$?
1099 # Save into config.log some information that might help in debugging.
1104 ## ---------------- ##
1105 ## Cache variables. ##
1106 ## ---------------- ##
1109 # The following way of writing the cache mishandles newlines in values,
1112 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1115 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1116 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1120 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1127 ## ----------------- ##
1128 ## Output variables. ##
1129 ## ----------------- ##
1132 for ac_var
in $ac_subst_vars
1134 eval ac_val
=$
`echo $ac_var`
1135 echo "$ac_var='"'"'$ac_val'"'"'"
1139 if test -n "$ac_subst_files"; then
1146 for ac_var
in $ac_subst_files
1148 eval ac_val
=$
`echo $ac_var`
1149 echo "$ac_var='"'"'$ac_val'"'"'"
1154 if test -s confdefs.h
; then
1161 sed "/^$/d" confdefs.h |
sort
1164 test "$ac_signal" != 0 &&
1165 echo "$as_me: caught signal $ac_signal"
1166 echo "$as_me: exit $exit_status"
1168 rm -f core
*.core
&&
1169 rm -rf conftest
* confdefs
* conf$$
* $ac_clean_files &&
1172 for ac_signal in 1 2 13 15; do
1173 trap 'ac_signal
='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1177 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1178 rm -rf conftest* confdefs.h
1179 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1182 # Predefined preprocessor variables.
1184 cat >>confdefs.h <<_ACEOF
1185 #define PACKAGE_NAME "$PACKAGE_NAME"
1189 cat >>confdefs.h <<_ACEOF
1190 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1194 cat >>confdefs.h <<_ACEOF
1195 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1199 cat >>confdefs.h <<_ACEOF
1200 #define PACKAGE_STRING "$PACKAGE_STRING"
1204 cat >>confdefs.h <<_ACEOF
1205 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1209 # Let the site file select an alternate cache file if it wants to.
1210 # Prefer explicitly selected file to automatically selected ones.
1211 if test -z "$CONFIG_SITE"; then
1212 if test "x$prefix" != xNONE; then
1213 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1215 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1218 for ac_site_file in $CONFIG_SITE; do
1219 if test -r "$ac_site_file"; then
1220 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1221 echo "$as_me: loading site script $ac_site_file" >&6;}
1222 sed 's
/^
/|
/' "$ac_site_file" >&5
1227 if test -r "$cache_file"; then
1228 # Some versions of bash will fail to source /dev/null (special
1229 # files actually), so we avoid doing that.
1230 if test -f "$cache_file"; then
1231 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1232 echo "$as_me: loading cache $cache_file" >&6;}
1234 [\\/]* | ?:[\\/]* ) . $cache_file;;
1235 *) . ./$cache_file;;
1239 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1240 echo "$as_me: creating cache $cache_file" >&6;}
1244 # Check that the precious variables saved in the cache have kept the same
1246 ac_cache_corrupted=false
1247 for ac_var in `(set) 2>&1 |
1248 sed -n 's
/^ac_env_\
([a-zA-Z_0-9
]*\
)_set
=.
*/\
1/p
'`; do
1249 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1250 eval ac_new_set=\$ac_env_${ac_var}_set
1251 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1252 eval ac_new_val="\$ac_env_${ac_var}_value"
1253 case $ac_old_set,$ac_new_set in
1255 { echo "$as_me:$LINENO: error: \`$ac_var' was
set to \
`$ac_old_val' in the previous run" >&5
1256 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&2;}
1257 ac_cache_corrupted=: ;;
1259 { echo "$as_me:$LINENO: error
: \
`$ac_var' was not set in the previous run" >&5
1260 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1261 ac_cache_corrupted=: ;;
1264 if test "x$ac_old_val" != "x$ac_new_val"; then
1265 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run
:" >&5
1266 echo "$as_me: error
: \
`$ac_var' has changed since the previous run:" >&2;}
1267 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1268 echo "$as_me: former value: $ac_old_val" >&2;}
1269 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1270 echo "$as_me: current value: $ac_new_val" >&2;}
1271 ac_cache_corrupted=:
1274 # Pass precious variables to config.status.
1275 if test "$ac_new_set" = set; then
1277 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1278 ac_arg=$ac_var=`echo "$ac_new_val" |
sed "s/'/'\\\\\\\\''/g"` ;;
1279 *) ac_arg=$ac_var=$ac_new_val ;;
1281 case " $ac_configure_args " in
1282 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1283 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1287 if $ac_cache_corrupted; then
1288 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1289 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1290 { { echo "$as_me:$LINENO: error: run \`make distclean
' and/or \`rm $cache_file' and start over
" >&5
1291 echo "$as_me: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1292 { (exit 1); exit 1; }; }
1296 ac_cpp='$CPP $CPPFLAGS'
1297 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
1298 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
1299 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1319 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
1322 lispdir='${datadir}/emacs
/${version}/lisp
'
1323 locallisppath='${datadir}/emacs
/${version}/site-lisp
:'\
1324 '${datadir}/emacs/site-lisp:${datadir}/emacs/${version}/leim
'
1325 lisppath='${locallisppath}:${lispdir}'
1326 etcdir='${datadir}/emacs
/${version}/etc
'
1327 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
1328 docdir='${datadir}/emacs
/${version}/etc
'
1331 # Check whether --with-gcc or --without-gcc was given.
1332 if test "${with_gcc+set}" = set; then
1337 # Check whether --with-pop or --without-pop was given.
1338 if test "${with_pop+set}" = set; then
1340 if test "$withval" = yes; then
1341 cat >>confdefs.h <<\_ACEOF
1342 #define MAIL_USE_POP 1
1348 cat >>confdefs.h <<\_ACEOF
1349 #define MAIL_USE_POP 1
1354 # Check whether --with-kerberos or --without-kerberos was given.
1355 if test "${with_kerberos+set}" = set; then
1356 withval="$with_kerberos"
1357 cat >>confdefs.h <<\_ACEOF
1363 # Check whether --with-kerberos5 or --without-kerberos5 was given.
1364 if test "${with_kerberos5+set}" = set; then
1365 withval="$with_kerberos5"
1366 if test "${with_kerberos5+set}" = set; then
1367 if test "${with_kerberos+set}" != set; then
1369 cat >>confdefs.h <<\_ACEOF
1375 cat >>confdefs.h <<\_ACEOF
1381 # Check whether --with-hesiod or --without-hesiod was given.
1382 if test "${with_hesiod+set}" = set; then
1383 withval="$with_hesiod"
1384 cat >>confdefs.h <<\_ACEOF
1390 # Check whether --with-x-toolkit or --without-x-toolkit was given.
1391 if test "${with_x_toolkit+set}" = set; then
1392 withval="$with_x_toolkit"
1393 case "${withval}" in
1394 y | ye | yes ) val=athena ;;
1396 l | lu | luc | luci | lucid ) val=lucid ;;
1397 a | at | ath | athe | athen | athena ) val=athena ;;
1398 m | mo | mot | moti | motif ) val=motif ;;
1400 { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid\
;
1401 this option
's value should be \`yes', \
`no', \`lucid
', \`athena', or \
`motif'.
1402 Currently, \`yes', \`athena' and \
`lucid' are synonyms." >&5
1403 echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid\;
1404 this option's value should be \
`yes', \`no
', \`lucid', \
`athena', or \`motif
'.
1405 Currently, \`yes', \
`athena' and \`lucid
' are synonyms." >&2;}
1406 { (exit 1); exit 1; }; }
1413 # Check whether --with-xpm or --without-xpm was given.
1414 if test "${with_xpm+set}" = set; then
1419 # Check whether --with-jpeg or --without-jpeg was given.
1420 if test "${with_jpeg+set}" = set; then
1421 withval="$with_jpeg"
1425 # Check whether --with-tiff or --without-tiff was given.
1426 if test "${with_tiff+set}" = set; then
1427 withval="$with_tiff"
1431 # Check whether --with-gif or --without-gif was given.
1432 if test "${with_gif+set}" = set; then
1437 # Check whether --with-png or --without-png was given.
1438 if test "${with_png+set}" = set; then
1443 # Check whether --with-toolkit-scroll-bars or --without-toolkit-scroll-bars was given.
1444 if test "${with_toolkit_scroll_bars+set}" = set; then
1445 withval="$with_toolkit_scroll_bars"
1449 # Check whether --with-xim or --without-xim was given.
1450 if test "${with_xim+set}" = set; then
1455 #### Make srcdir absolute, if it isn't already. It
's important to
1456 #### avoid running the path through pwd unnecessarily, since pwd can
1457 #### give you automounter prefixes, which can go away. We do all this
1458 #### so Emacs can find its files when run uninstalled.
1459 ## Make sure CDPATH doesn't affect
cd (in case PWD is relative
).
1464 ## We may be able to use the $PWD environment variable to make this
1465 ## absolute. But sometimes PWD is inaccurate.
1466 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".${PWD}" ;
1470 srcdir
="`(cd ${srcdir}; pwd)`"
1473 * ) srcdir
="`(cd ${srcdir}; pwd)`" ;;
1476 #### Check if the source directory already has a configured system in it.
1477 if test `pwd` != `(cd ${srcdir} && pwd)` \
1478 && test -f "${srcdir}/src/config.h" ; then
1479 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
1480 as a build directory right now; it has been configured in its own
1481 right. To configure in another directory as well, you MUST
1482 use GNU make. If you do not have GNU make, then you must
1483 now do \`make distclean' in ${srcdir},
1484 and then run $0 again." >&5
1485 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
1486 as a build directory right now; it has been configured in its own
1487 right. To configure in another directory as well, you MUST
1488 use GNU make. If you do not have GNU make, then you must
1489 now do \`make distclean' in ${srcdir},
1490 and then run $0 again." >&2;}
1492 extrasub
='/^VPATH[ ]*=/c\
1493 vpath %.c $(srcdir)\
1494 vpath %.h $(srcdir)\
1495 vpath %.y $(srcdir)\
1496 vpath %.l $(srcdir)\
1497 vpath %.s $(srcdir)\
1498 vpath %.in $(srcdir)\
1499 vpath %.texi $(srcdir)'
1502 #### Given the configuration name, set machfile and opsysfile to the
1503 #### names of the m/*.h and s/*.h files we should use.
1505 ### Canonicalize the configuration name.
1508 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
1509 if test -f $ac_dir/install-sh
; then
1511 ac_install_sh
="$ac_aux_dir/install-sh -c"
1513 elif test -f $ac_dir/install.sh
; then
1515 ac_install_sh
="$ac_aux_dir/install.sh -c"
1517 elif test -f $ac_dir/shtool
; then
1519 ac_install_sh
="$ac_aux_dir/shtool install -c"
1523 if test -z "$ac_aux_dir"; then
1524 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1525 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1526 { (exit 1); exit 1; }; }
1528 ac_config_guess
="$SHELL $ac_aux_dir/config.guess"
1529 ac_config_sub
="$SHELL $ac_aux_dir/config.sub"
1530 ac_configure
="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1532 # Make sure we can run config.sub.
1533 $ac_config_sub sun4
>/dev
/null
2>&1 ||
1534 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1535 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1536 { (exit 1); exit 1; }; }
1538 echo "$as_me:$LINENO: checking build system type" >&5
1539 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1540 if test "${ac_cv_build+set}" = set; then
1541 echo $ECHO_N "(cached) $ECHO_C" >&6
1543 ac_cv_build_alias
=$build_alias
1544 test -z "$ac_cv_build_alias" &&
1545 ac_cv_build_alias
=`$ac_config_guess`
1546 test -z "$ac_cv_build_alias" &&
1547 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1548 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1549 { (exit 1); exit 1; }; }
1550 ac_cv_build
=`$ac_config_sub $ac_cv_build_alias` ||
1551 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1552 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1553 { (exit 1); exit 1; }; }
1556 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1557 echo "${ECHO_T}$ac_cv_build" >&6
1559 build_cpu
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1560 build_vendor
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1561 build_os
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1564 echo "$as_me:$LINENO: checking host system type" >&5
1565 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1566 if test "${ac_cv_host+set}" = set; then
1567 echo $ECHO_N "(cached) $ECHO_C" >&6
1569 ac_cv_host_alias
=$host_alias
1570 test -z "$ac_cv_host_alias" &&
1571 ac_cv_host_alias
=$ac_cv_build_alias
1572 ac_cv_host
=`$ac_config_sub $ac_cv_host_alias` ||
1573 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1574 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1575 { (exit 1); exit 1; }; }
1578 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1579 echo "${ECHO_T}$ac_cv_host" >&6
1581 host_cpu
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1582 host_vendor
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1583 host_os
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1587 configuration
=$host_alias
1590 ### If you add support for a new configuration, add code to this
1591 ### switch statement to recognize your configuration name and select
1592 ### the appropriate operating system and machine description files.
1594 ### You would hope that you could choose an m/*.h file pretty much
1595 ### based on the machine portion of the configuration name, and an s-
1596 ### file based on the operating system portion. However, it turns out
1597 ### that each m/*.h file is pretty manufacturer-specific - for
1598 ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are
1599 ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS
1600 ### machines. So we basically have to have a special case for each
1601 ### configuration name.
1603 ### As far as handling version numbers on operating systems is
1604 ### concerned, make sure things will fail in a fixable way. If
1605 ### /etc/MACHINES doesn't say anything about version numbers, be
1606 ### prepared to handle anything reasonably. If version numbers
1607 ### matter, be sure /etc/MACHINES says something about it.
1609 ### Eric Raymond says we should accept strings like "sysvr4" to mean
1610 ### "System V Release 4"; he writes, "The old convention encouraged
1611 ### confusion between `system' and `release' levels'."
1613 machine
='' opsys
='' unported
=no
1614 case "${canonical}" in
1619 case "${canonical}" in
1620 alpha
*-*-netbsd*) machine
=alpha
;;
1621 i
[3456]86-*-netbsd*) machine
=intel386
;;
1623 # This is somewhat bogus.
1624 machine
=hp9000s300
;;
1625 powerpc-apple-netbsd
*) machine
=macppc
;;
1626 mips-
*-netbsd*) machine
=pmax
;;
1627 mipsel-
*-netbsd*) machine
=pmax
;;
1628 ns32k-
*-netbsd*) machine
=ns32000
;;
1629 powerpc-
*-netbsd*) machine
=macppc
;;
1630 sparc
*-*-netbsd*) machine
=sparc
;;
1631 vax-
*-netbsd*) machine
=vax
;;
1632 arm-
*-netbsd*) machine
=arm
;;
1639 case "${canonical}" in
1640 alpha
*-*-openbsd*) machine
=alpha
;;
1641 i386-
*-openbsd*) machine
=intel386
;;
1642 m68k-
*-openbsd*) machine
=hp9000s300
;;
1643 mipsel-
*-openbsd*) machine
=pmax
;;
1644 ns32k-
*-openbsd*) machine
=ns32000
;;
1645 sparc-
*-openbsd*) machine
=sparc
;;
1646 vax-
*-openbsd*) machine
=vax
;;
1651 arm-acorn-riscix1.1
* )
1652 machine
=acorn opsys
=riscix1-1
1654 arm-acorn-riscix1.2
* | arm-acorn-riscix
)
1655 ## This name is riscix12 instead of riscix1.2
1656 ## to avoid a file name conflict on MSDOS.
1657 machine
=acorn opsys
=riscix12
1663 case "${canonical}" in
1664 i
[345]86-*-bsdi*) machine
=intel386
;;
1665 sparc-
*-bsdi*) machine
=sparc
;;
1666 powerpc-
*-bsdi*) machine
=macppc
;;
1668 case "${canonical}" in
1669 *-*-bsd386* |
*-*-bsdi1* ) opsys
=bsd386
;;
1670 *-*-bsdi2.0
* ) opsys
=bsdos2
;;
1671 *-*-bsdi2* ) opsys
=bsdos2-1
;;
1672 *-*-bsdi3* ) opsys
=bsdos3
;;
1673 *-*-bsdi[45]* ) opsys
=bsdos4
;;
1678 ## Strictly speaking, we need the version of the alliant operating
1679 ## system to choose the right machine file, but currently the
1680 ## configuration name doesn't tell us enough to choose the right
1681 ## one; we need to give alliants their own operating system name to
1682 ## do this right. When someone cares, they can help us.
1684 machine
=alliant4 opsys
=bsd4-2
1687 machine
=alliant-2800 opsys
=bsd4-3
1690 ## Alpha (DEC) machines.
1692 machine
=alpha opsys
=osf1
1693 # This is needed to find X11R6.1 libraries for certain tests.
1694 NON_GCC_LINK_TEST_OPTIONS
=-Wl,-rpath,/usr
/X11R
6/lib
1695 GCC_LINK_TEST_OPTIONS
=-Wl,-rpath,/usr
/X11R
6/lib
1696 # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile
1697 # due to non-traditional preprocessing with the current compiler
1698 # defaults. OSF 4 can also have that compiler version, and there
1699 # seems always to have been a usable /usr/bin/cpp.
1700 NON_GNU_CPP
=/usr
/bin
/cpp
1701 case "${canonical}" in
1702 alpha
*-dec-osf[5-9]*)
1707 alpha
*-*-linux-gnu* )
1708 machine
=alpha opsys
=gnu-linux
1712 machine
=arm opsys
=gnu-linux
1717 machine
=macppc opsys
=gnu-linux
1722 machine
=altos opsys
=usg5-2
1727 machine
=amdahl opsys
=usg5-2-2
1730 ## Apollo, Domain/OS
1732 machine
=apollo opsys
=bsd4-3
1735 ## AT&T 3b2, 3b5, 3b15, 3b20
1737 machine
=att3b opsys
=usg5-2-2
1740 ## AT&T 3b1 - The Mighty Unix PC!
1742 machine
=7300 opsys
=usg5-2-2
1747 machine
=ibmrs6000 opsys
=aix3-2
1752 machine
=dpx2 opsys
=usg5-3
1757 machine
=sps7 opsys
=usg5-2
1760 ## CCI 5/32, 6/32 -- see "Tahoe".
1763 ## I don't know what configuration name to use for this; config.sub
1764 ## doesn't seem to know anything about it. Hey, Celerity users, get
1765 ## in touch with us!
1766 celerity-celerity-bsd
* )
1767 machine
=celerity opsys
=bsd4-2
1771 ## What operating systems does this chip run that Emacs has been
1775 ## We'll use the catch-all code at the bottom to guess the
1776 ## operating system.
1780 *-convex-bsd* |
*-convex-convexos* )
1781 machine
=convex opsys
=bsd4-3
1782 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
1783 NON_GNU_CPP
="cc -E -P"
1787 i
[3456]86-cubix-sysv* )
1788 machine
=intel386 opsys
=usg5-3
1792 cydra
*-cydrome-sysv* )
1793 machine
=cydra5 opsys
=usg5-3
1796 ## Data General AViiON Machines
1797 ## DG changed naming conventions with the release of 5.4.4.10, they
1798 ## dropped the initial 5.4 but left the intervening R. Because of the
1799 ## R this shouldn't conflict with older versions of the OS (which I
1800 ## think were named like dgux4.*). In addition, DG new AViiONs series
1801 ## uses either Motorola M88k or Intel Pentium CPUs.
1802 m88k-dg-dguxR4.
* | m88k-dg-dgux4
* )
1803 machine
=aviion opsys
=dgux4
1805 m88k-dg-dgux5.4R3
* | m88k-dg-dgux5.4
.3* )
1806 ## This name is dgux5-4-3 instead of dgux5-4r3
1807 ## to avoid a file name conflict on MSDOS.
1808 machine
=aviion opsys
=dgux5-4-3
1810 m88k-dg-dgux5.4R2
* | m88k-dg-dgux5.4
.2* )
1811 machine
=aviion opsys
=dgux5-4r2
1814 machine
=aviion opsys
=dgux
1817 ## Data General AViiON Intel (x86) Machines
1818 ## Exists from 5.4.3 (current i586-dg-dguxR4.11)
1819 ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il
1820 i
[345]86-dg-dguxR4* )
1821 machine
=aviion-intel opsys
=dgux4
1825 mips-dec-ultrix
[0-3].
* | mips-dec-ultrix4.0
* | mips-dec-bsd4.2
* )
1826 machine
=pmax opsys
=bsd4-2
1828 mips-dec-ultrix4.
[12]* | mips-dec-bsd
* )
1829 machine
=pmax opsys
=bsd4-3
1832 machine
=pmax opsys
=ultrix4-3
1835 machine
=pmax opsys
=osf1
1837 mips-dec-mach_bsd4.3
* )
1838 machine
=pmax opsys
=mach-bsd4-3
1841 ## Motorola Delta machines
1842 m68k-motorola-sysv
* | m68000-motorola-sysv
* )
1843 machine
=delta opsys
=usg5-3
1844 if test -z "`type gnucc | grep 'not found'`"
1846 if test -s /etc
/167config
1847 then CC
="gnucc -m68040"
1848 else CC
="gnucc -m68881"
1851 if test -z "`type gcc | grep 'not found'`"
1857 m88k-motorola-sysv4
* )
1858 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
1859 # needs POSIX_SIGNALS and therefore needs usg5-4-2.
1860 # I hope there are not other 4.0 versions for this machine
1861 # which really need usg5-4 instead.
1862 machine
=delta88k opsys
=usg5-4-2
1864 m88k-motorola-sysv
* | m88k-motorola-m88kbcs
* )
1865 machine
=delta88k opsys
=usg5-3
1870 machine
=dual opsys
=usg5-2
1872 m68
*-dual-uniplus* )
1873 machine
=dual opsys
=unipl5-2
1878 machine
=elxsi opsys
=usg5-2
1883 machine
=ns16000 opsys
=umax
1886 ## The GEC 63 - apparently, this port isn't really finished yet.
1887 # I'm sure we finished off the last of the machines, though. -- fx
1889 ## Gould Power Node and NP1
1891 machine
=gould opsys
=bsd4-2
1894 machine
=gould opsys
=bsd4-3
1897 machine
=gould-np1 opsys
=bsd4-3
1900 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
1901 ## as far as Emacs is concerned).
1903 # Build needs to be different on 7.0 and later releases
1904 case "`uname -r`" in
1905 [56].
[0-9] ) machine
=nh4000 opsys
=cxux
;;
1906 [7].
[0-9] ) machine
=nh4000 opsys
=cxux7
;;
1908 NON_GNU_CPP
="/lib/cpp"
1910 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
1912 machine
=nh3000 opsys
=cxux
1914 ## Harris power pc NightHawk running Power UNIX (Series 6000)
1915 powerpc-harris-powerunix
)
1916 machine
=nh6000 opsys
=powerunix
1917 NON_GNU_CPP
="cc -Xo -E -P"
1919 ## SR2001/SR2201 running HI-UX/MPP
1920 hppa1.1
-hitachi-hiuxmpp* )
1921 machine
=sr2k opsys
=hiuxmpp
1923 hppa1.1
-hitachi-hiuxwe2* )
1924 machine
=sr2k opsys
=hiuxwe2
1927 xps
*-honeywell-sysv* )
1928 machine
=xps100 opsys
=usg5-2
1931 ## HP 9000 series 200 or 300
1933 machine
=hp9000s300 opsys
=bsd4-3
1935 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
1937 case "`uname -r`" in
1938 ## Someone's system reports A.B8.05 for this.
1939 ## I wonder what other possibilities there are.
1940 *.B8.
* ) machine
=hp9000s300 opsys
=hpux8
;;
1941 *.08.
* ) machine
=hp9000s300 opsys
=hpux8
;;
1942 *.09.
* ) machine
=hp9000s300 opsys
=hpux9
;;
1943 *.1[0-9].
* ) machine
=hp9000s300 opsys
=hpux9shr
;;
1944 *) machine
=hp9000s300 opsys
=hpux
;;
1948 ## HP 9000 series 700 and 800, running HP/UX
1950 machine
=hp800 opsys
=hpux
1953 machine
=hp800 opsys
=hpux8
1955 hppa
*-hp-hpux9shr* )
1956 machine
=hp800 opsys
=hpux9shr
1959 machine
=hp800 opsys
=hpux9
1963 machine
=hp800 opsys
=hpux10
1965 hppa
*-hp-hpux1[1-9]* )
1966 machine
=hp800 opsys
=hpux11
1969 ## HP 9000 series 700 and 800, running HP/UX
1971 ## Cross-compilation? Nah!
1972 case "`uname -r`" in
1973 ## Someone's system reports A.B8.05 for this.
1974 ## I wonder what other possibilities there are.
1975 *.B8.
* ) machine
=hp800 opsys
=hpux8
;;
1976 *.08.
* ) machine
=hp800 opsys
=hpux8
;;
1977 *.09.
* ) machine
=hp800 opsys
=hpux9
;;
1978 *) machine
=hp800 opsys
=hpux10
;;
1982 machine
=hp800 opsys
=nextstep
1987 machine
=orion opsys
=bsd4-2
1989 clipper-orion-bsd
* )
1990 machine
=orion105 opsys
=bsd4-2
1994 i
[3456]86-ibm-aix1.1
* )
1995 machine
=ibmps2-aix opsys
=usg5-2-2
1997 i
[3456]86-ibm-aix1.
[23]* | i
[3456]86-ibm-aix* )
1998 machine
=ibmps2-aix opsys
=usg5-3
2001 machine
=ibm370aix opsys
=usg5-3
2003 rs6000-ibm-aix3.1
* | powerpc-ibm-aix3.1
* )
2004 machine
=ibmrs6000 opsys
=aix3-1
2006 rs6000-ibm-aix3.2
.5 | powerpc-ibm-aix3.2
.5 )
2007 machine
=ibmrs6000 opsys
=aix3-2-5
2009 rs6000-ibm-aix4.1
* | powerpc-ibm-aix4.1
* )
2010 machine
=ibmrs6000 opsys
=aix4-1
2012 rs6000-ibm-aix4.2
* | powerpc-ibm-aix4.2
* )
2013 machine
=ibmrs6000 opsys
=aix4-2
2015 rs6000-ibm-aix5.1
* | powerpc-ibm-aix5.1
* )
2016 machine
=ibmrs6000 opsys
=aix4-2
2018 rs6000-ibm-aix4.0
* | powerpc-ibm-aix4.0
* )
2019 machine
=ibmrs6000 opsys
=aix4
2021 rs6000-ibm-aix4
* | powerpc-ibm-aix4
* )
2022 machine
=ibmrs6000 opsys
=aix4-1
2024 rs6000-ibm-aix
* | powerpc-ibm-aix
* )
2025 machine
=ibmrs6000 opsys
=aix3-2
2028 machine
=ibmrt opsys
=bsd4-3
2031 machine
=ibmrt opsys
=bsd4-2
2034 machine
=ibmrt opsys
=bsd4-3
2037 machine
=ibmrt opsys
=bsd4-2
2040 machine
=ibmrt opsys
=bsd4-3
2043 machine
=ibmrt opsys
=bsd4-3
2046 machine
=ibmrt-aix opsys
=usg5-2-2
2049 ## Integrated Solutions `Optimum V'
2051 machine
=isi-ov opsys
=bsd4-2
2054 machine
=isi-ov opsys
=bsd4-3
2057 ## Intel 386 machines where we do care about the manufacturer
2058 i
[3456]86-intsys-sysv* )
2059 machine
=is386 opsys
=usg5-2-2
2063 i
[3456]86-prime-sysv* )
2064 machine
=i386 opsys
=usg5-3
2067 ## Sequent Symmetry running Dynix
2068 i
[3456]86-sequent-bsd* )
2069 machine
=symmetry opsys
=bsd4-3
2072 ## Sequent Symmetry running ptx 4, which is a modified SVR4.
2073 i
[3456]86-sequent-ptx4* | i
[3456]86-sequent-sysv4* )
2074 machine
=sequent-ptx opsys
=ptx4
2075 NON_GNU_CPP
=/lib
/cpp
2078 ## Sequent Symmetry running DYNIX/ptx
2079 ## Use the old cpp rather than the newer ANSI one.
2080 i
[3456]86-sequent-ptx* )
2081 machine
=sequent-ptx opsys
=ptx
2082 NON_GNU_CPP
="/lib/cpp"
2085 ## ncr machine running svr4.3.
2086 i
[3456]86-ncr-sysv4.3
)
2087 machine
=ncr386 opsys
=usg5-4-3
2090 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2091 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2092 i
[3456]86-ncr-sysv* )
2093 machine
=ncr386 opsys
=usg5-4-2
2096 ## Intel Paragon OSF/1
2098 machine
=paragon opsys
=osf1 NON_GNU_CPP
=/usr
/mach
/lib
/cpp
2103 machine
=i860 opsys
=usg5-4
2104 NON_GNU_CC
="/bin/cc" # Ie, not the one in /usr/ucb/cc.
2105 NON_GNU_CPP
="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
2108 ## Macintosh PowerPC
2109 powerpc
*-*-linux-gnu* )
2110 machine
=macppc opsys
=gnu-linux
2113 ## Masscomp machines
2114 m68
*-masscomp-rtu* )
2115 machine
=masscomp opsys
=rtu
2118 ## Megatest machines
2119 m68
*-megatest-bsd* )
2120 machine
=mega68 opsys
=bsd4-2
2123 ## Workstations sold by MIPS
2124 ## This is not necessarily all workstations using the MIPS processor -
2125 ## Irises are produced by SGI, and DECstations by DEC.
2127 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
2128 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
2129 ## it gives for choosing between the alternatives seems to be "Use
2130 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
2131 ## the BSD world." I'll assume that these are instructions for
2132 ## handling two odd situations, and that every other situation
2133 ## should use mips.h and usg5-2-2, they being listed first.
2136 ## Fall through to the general code at the bottom to decide on the OS.
2138 mips-mips-riscos4
* )
2139 machine
=mips4 opsys
=bsd4-3
2140 NON_GNU_CC
="cc -systype bsd43"
2141 NON_GNU_CPP
="cc -systype bsd43 -E"
2143 mips-mips-riscos5
* )
2144 machine
=mips4 opsys
=riscos5
2145 NON_GNU_CC
="cc -systype bsd43"
2146 NON_GNU_CPP
="cc -systype bsd43 -E"
2149 machine
=mips opsys
=bsd4-3
2152 machine
=mips opsys
=usg5-2-2
2156 m68
*-next-* | m68k-
*-nextstep* )
2157 machine
=m68k opsys
=nextstep
2160 ## The complete machine from National Semiconductor
2162 machine
=ns32000 opsys
=usg5-2
2166 m68
*-ncr-sysv2* | m68
*-ncr-sysvr2* )
2167 machine
=tower32 opsys
=usg5-2-2
2169 m68
*-ncr-sysv3* | m68
*-ncr-sysvr3* )
2170 machine
=tower32v3 opsys
=usg5-3
2175 machine
=ews4800 opsys
=ux4800
2178 ## Nixdorf Targon 31
2179 m68
*-nixdorf-sysv* )
2180 machine
=targon31 opsys
=usg5-2-2
2185 machine
=nu opsys
=usg5-2
2190 machine
=plexus opsys
=usg5-2
2193 ## PowerPC reference platform
2194 powerpcle-
*-solaris2* )
2200 ## I don't really have any idea what sort of processor the Pyramid has,
2201 ## so I'm assuming it is its own architecture.
2202 pyramid-pyramid-bsd
* )
2203 machine
=pyramid opsys
=bsd4-2
2207 ns32k-sequent-bsd4.2
* )
2208 machine
=sequent opsys
=bsd4-2
2210 ns32k-sequent-bsd4.3
* )
2211 machine
=sequent opsys
=bsd4-3
2215 mips-siemens-sysv
* | mips-sni-sysv
*)
2216 machine
=mips-siemens opsys
=usg5-4
2217 NON_GNU_CC
=/usr
/ccs
/bin
/cc
2218 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2221 ## Silicon Graphics machines
2222 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
2224 machine
=irist opsys
=iris3-5
2226 m68
*-sgi-iris3.6
* | m68
*-sgi-iris*)
2227 machine
=irist opsys
=iris3-6
2231 machine
=iris4d opsys
=irix3-3
2234 machine
=iris4d opsys
=irix4-0
2237 machine
=iris4d opsys
=irix6-5
2238 # Without defining _LANGUAGE_C, things get masked out in the headers
2239 # so that, for instance, grepping for `free' in stdlib.h fails and
2240 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2241 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2242 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
2245 machine
=iris4d opsys
=irix6-0
2246 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
2247 # but presumably it does no harm.
2248 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2249 # -32 probably isn't necessary in later v.6s -- anyone know which?
2250 NON_GCC_TEST_OPTIONS
=-32
2252 mips-sgi-irix5.
[01]* )
2253 machine
=iris4d opsys
=irix5-0
2255 mips-sgi-irix5
* | mips-sgi-irix
* )
2256 machine
=iris4d opsys
=irix5-2
2261 machine
=news opsys
=bsd4-2
2264 machine
=news opsys
=bsd4-3
2266 m68
*-sony-newsos3* | m68
*-sony-news3*)
2267 machine
=news opsys
=bsd4-3
2269 mips-sony-bsd
* | mips-sony-newsos4
* | mips-sony-news4
*)
2270 machine
=news-risc opsys
=bsd4-3
2272 mips-sony-newsos6
* )
2273 machine
=news-r6 opsys
=newsos6
2276 machine
=news-risc opsys
=newsos5
2281 machine
=stride opsys
=usg5-2
2285 sparc-
*-linux-gnu* | sparc64-
*-linux-gnu* )
2286 machine
=sparc opsys
=gnu-linux
2289 *-auspex-sunos* |
*-sun-sunos* |
*-sun-bsd* |
*-sun-solaris* \
2290 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* | powerpc
*-*-solaris2* \
2291 | rs6000-
*-solaris2*)
2292 case "${canonical}" in
2293 m68
*-sunos1* ) machine
=sun1
;;
2294 m68
*-sunos2* ) machine
=sun2
;;
2295 m68
* ) machine
=sun3
;;
2296 i
[3456]86-sun-sunos[34]* ) machine
=sun386
;;
2297 i
[3456]86-*-* ) machine
=intel386
;;
2298 powerpcle
* ) machine
=powerpcle
;;
2299 powerpc
* | rs6000
* ) machine
=ibmrs6000
;;
2300 sparc
* ) machine
=sparc
;;
2303 case "${canonical}" in
2304 ## The Sun386 didn't get past 4.0.
2305 i
[3456]86-*-sunos4 ) opsys
=sunos4-0
;;
2306 *-sunos4.0
* ) opsys
=sunos4-0
;;
2307 *-sunos4.1.
[3-9]*noshare
)
2308 ## This name is sunos413 instead of sunos4-1-3
2309 ## to avoid a file name conflict on MSDOS.
2311 NON_GNU_CPP
=/usr
/lib
/cpp
2312 NON_GCC_TEST_OPTIONS
=-Bstatic
2313 GCC_TEST_OPTIONS
=-static
2315 *-sunos4.1.
[3-9]* |
*-sunos4shr*)
2317 NON_GNU_CPP
=/usr
/lib
/cpp
2319 *-sunos4* |
*-sunos )
2321 NON_GCC_TEST_OPTIONS
=-Bstatic
2322 GCC_TEST_OPTIONS
=-static
2324 *-sunos5.3
* |
*-solaris2.3
* )
2326 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2328 *-sunos5.4
* |
*-solaris2.4
* )
2330 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2333 *-sunos5.5
* |
*-solaris2.5
* )
2335 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2338 *-sunos5* |
*-solaris* )
2340 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2344 ## Watch out for a compiler that we know will not work.
2345 case "${canonical}" in
2346 *-solaris* |
*-sunos5* )
2347 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
2348 ## /usr/ucb/cc doesn't work;
2349 ## we should find some other compiler that does work.
2357 machine
=sparc opsys
=nextstep
2361 m68
*-tadpole-sysv* )
2362 machine
=tad68k opsys
=usg5-3
2366 tahoe-tahoe-bsd4.2
* )
2367 machine
=tahoe opsys
=bsd4-2
2369 tahoe-tahoe-bsd4.3
* )
2370 machine
=tahoe opsys
=bsd4-3
2373 ## Tandem Integrity S2
2375 machine
=tandem-s2 opsys
=usg5-3
2379 m88k-tektronix-sysv3
* )
2380 machine
=tekxd88 opsys
=usg5-3
2383 ## Tektronix 16000 box (6130?)
2384 ns16k-tektronix-bsd
* )
2385 machine
=ns16000 opsys
=bsd4-2
2388 ## src/m/tek4300.h hints that this is a m68k machine.
2389 m68
*-tektronix-bsd* )
2390 machine
=tek4300 opsys
=bsd4-3
2394 ## We seem to have lost the machine-description file titan.h!
2396 machine
=titan opsys
=usg5-3
2399 ## Ustation E30 (SS5E)
2400 m68
*-unisys-uniplus* )
2401 machine
=ustation opsystem
=unipl5-2
2407 case "${canonical}" in
2408 *-bsd4.1
* ) opsys
=bsd4-1
;;
2409 *-bsd4.2
* |
*-ultrix[0-3].
* |
*-ultrix4.0
* ) opsys
=bsd4-2
;;
2410 *-bsd4.3
* |
*-ultrix* ) opsys
=bsd4-3
;;
2411 *-sysv[01]* |
*-sysvr[01]* ) opsys
=usg5-0
;;
2412 *-sysv2* |
*-sysvr2* ) opsys
=usg5-2
;;
2413 *-vms* ) opsys
=vms
;;
2419 ns16k-whitechapel-
* )
2421 ## We don't know what sort of OS runs on these; we'll let the
2422 ## operating system guessing code below try.
2427 machine
=wicat opsys
=usg5-2
2432 machine
=ia64 opsys
=gnu-linux
2435 ## Intel 386 machines where we don't care about the manufacturer
2438 case "${canonical}" in
2439 *-lynxos* ) opsys
=lynxos
;;
2440 *-isc1.
* |
*-isc2.
[01]* ) opsys
=386-ix ;;
2441 *-isc2.2
* ) opsys
=isc2-2
;;
2442 *-isc4.0
* ) opsys
=isc4-0
;;
2443 *-isc4.
* ) opsys
=isc4-1
2444 GCC_TEST_OPTIONS
=-posix
2445 NON_GCC_TEST_OPTIONS
=-Xp
2447 *-isc* ) opsys
=isc3-0
;;
2448 *-esix5* ) opsys
=esix5r4
; NON_GNU_CPP
=/usr
/lib
/cpp
;;
2449 *-esix* ) opsys
=esix
;;
2450 *-xenix* ) opsys
=xenix
;;
2451 *-linux-gnu* ) opsys
=gnu-linux
;;
2452 *-sco3.2v4
* ) opsys
=sco4
; NON_GNU_CPP
=/lib
/cpp
;;
2453 *-sco3.2v5
* ) opsys
=sco5
2454 NON_GNU_CPP
=/lib
/cpp
2455 # Prevent -belf from being passed to $CPP.
2456 # /lib/cpp does not accept it.
2457 OVERRIDE_CPPFLAGS
=" "
2459 *-sysv4.2uw
* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2460 *-386bsd* ) opsys
=386bsd
;;
2461 *-freebsd* ) opsys
=freebsd
;;
2462 *-nextstep* ) opsys
=nextstep
;;
2463 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2467 ## m68k Linux-based GNU system
2469 machine
=m68k opsys
=gnu-linux
2472 ## Mips Linux-based GNU system
2474 machine
=mips opsys
=gnu-linux
2478 sparc-fujitsu-sysv4
* )
2479 machine
=sparc opsys
=uxpds
2480 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2485 f301-fujitsu-uxpv4.1
)
2486 machine
=f301 opsys
=uxpv
2494 ### If the code above didn't choose an operating system, just choose
2495 ### an operating system based on the configuration name. You really
2496 ### only want to use this when you have no idea what the right
2497 ### operating system is; if you know what operating systems a machine
2498 ### runs, it's cleaner to make it explicit in the case statement
2500 if test x
"${opsys}" = x
; then
2501 case "${canonical}" in
2502 *-gnu* ) opsys
=gnu
;;
2503 *-bsd4.
[01] ) opsys
=bsd4-1
;;
2504 *-bsd4.2
) opsys
=bsd4-2
;;
2505 *-bsd4.3
) opsys
=bsd4-3
;;
2506 *-sysv0 |
*-sysvr0 ) opsys
=usg5-0
;;
2507 *-sysv2 |
*-sysvr2 ) opsys
=usg5-2
;;
2508 *-sysv2.2 |
*-sysvr2.2
) opsys
=usg5-2-2
;;
2509 *-sysv3* |
*-sysvr3* ) opsys
=usg5-3
;;
2510 *-sysv4.2uw
* ) opsys
=unixware
;;
2511 *-sysv4.1
* |
*-sysvr4.1
* )
2512 NON_GNU_CPP
=/usr
/lib
/cpp
2514 *-sysv4.
[2-9]* |
*-sysvr4.
[2-9]* )
2515 if [ x
$NON_GNU_CPP = x
]; then
2516 if [ -f /usr
/ccs
/lib
/cpp
]; then
2517 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2519 NON_GNU_CPP
=/lib
/cpp
2523 *-sysv4* |
*-sysvr4* ) opsys
=usg5-4
;;
2531 if test $unported = yes; then
2532 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
2533 Check \`etc/MACHINES' for recognized configuration names." >&5
2534 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2535 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2536 { (exit 1); exit 1; }; }
2539 machfile
="m/${machine}.h"
2540 opsysfile
="s/${opsys}.h"
2543 #### Choose a compiler.
2544 test -n "$CC" && cc_specified
=yes
2546 # Save the value of CFLAGS that the user specified.
2547 SPECIFIED_CFLAGS
="$CFLAGS"
2550 "yes" ) CC
="gcc" GCC
=yes ;;
2551 "no" ) : ${CC=cc} ;;
2553 ac_cpp
='$CPP $CPPFLAGS'
2554 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2555 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2556 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2557 if test -n "$ac_tool_prefix"; then
2558 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2559 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2560 echo "$as_me:$LINENO: checking for $ac_word" >&5
2561 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2562 if test "${ac_cv_prog_CC+set}" = set; then
2563 echo $ECHO_N "(cached) $ECHO_C" >&6
2565 if test -n "$CC"; then
2566 ac_cv_prog_CC
="$CC" # Let the user override the test.
2568 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2572 test -z "$as_dir" && as_dir
=.
2573 for ac_exec_ext
in '' $ac_executable_extensions; do
2574 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2575 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2576 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2585 if test -n "$CC"; then
2586 echo "$as_me:$LINENO: result: $CC" >&5
2587 echo "${ECHO_T}$CC" >&6
2589 echo "$as_me:$LINENO: result: no" >&5
2590 echo "${ECHO_T}no" >&6
2594 if test -z "$ac_cv_prog_CC"; then
2596 # Extract the first word of "gcc", so it can be a program name with args.
2597 set dummy gcc
; ac_word
=$2
2598 echo "$as_me:$LINENO: checking for $ac_word" >&5
2599 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2600 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2601 echo $ECHO_N "(cached) $ECHO_C" >&6
2603 if test -n "$ac_ct_CC"; then
2604 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2606 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2610 test -z "$as_dir" && as_dir
=.
2611 for ac_exec_ext
in '' $ac_executable_extensions; do
2612 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2613 ac_cv_prog_ac_ct_CC
="gcc"
2614 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2622 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2623 if test -n "$ac_ct_CC"; then
2624 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2625 echo "${ECHO_T}$ac_ct_CC" >&6
2627 echo "$as_me:$LINENO: result: no" >&5
2628 echo "${ECHO_T}no" >&6
2636 if test -z "$CC"; then
2637 if test -n "$ac_tool_prefix"; then
2638 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2639 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2640 echo "$as_me:$LINENO: checking for $ac_word" >&5
2641 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2642 if test "${ac_cv_prog_CC+set}" = set; then
2643 echo $ECHO_N "(cached) $ECHO_C" >&6
2645 if test -n "$CC"; then
2646 ac_cv_prog_CC
="$CC" # Let the user override the test.
2648 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2652 test -z "$as_dir" && as_dir
=.
2653 for ac_exec_ext
in '' $ac_executable_extensions; do
2654 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2655 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2656 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2665 if test -n "$CC"; then
2666 echo "$as_me:$LINENO: result: $CC" >&5
2667 echo "${ECHO_T}$CC" >&6
2669 echo "$as_me:$LINENO: result: no" >&5
2670 echo "${ECHO_T}no" >&6
2674 if test -z "$ac_cv_prog_CC"; then
2676 # Extract the first word of "cc", so it can be a program name with args.
2677 set dummy cc
; ac_word
=$2
2678 echo "$as_me:$LINENO: checking for $ac_word" >&5
2679 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2680 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2681 echo $ECHO_N "(cached) $ECHO_C" >&6
2683 if test -n "$ac_ct_CC"; then
2684 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2686 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2690 test -z "$as_dir" && as_dir
=.
2691 for ac_exec_ext
in '' $ac_executable_extensions; do
2692 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2693 ac_cv_prog_ac_ct_CC
="cc"
2694 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2702 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2703 if test -n "$ac_ct_CC"; then
2704 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2705 echo "${ECHO_T}$ac_ct_CC" >&6
2707 echo "$as_me:$LINENO: result: no" >&5
2708 echo "${ECHO_T}no" >&6
2717 if test -z "$CC"; then
2718 # Extract the first word of "cc", so it can be a program name with args.
2719 set dummy cc
; ac_word
=$2
2720 echo "$as_me:$LINENO: checking for $ac_word" >&5
2721 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2722 if test "${ac_cv_prog_CC+set}" = set; then
2723 echo $ECHO_N "(cached) $ECHO_C" >&6
2725 if test -n "$CC"; then
2726 ac_cv_prog_CC
="$CC" # Let the user override the test.
2729 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2733 test -z "$as_dir" && as_dir
=.
2734 for ac_exec_ext
in '' $ac_executable_extensions; do
2735 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2736 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2737 ac_prog_rejected
=yes
2741 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2747 if test $ac_prog_rejected = yes; then
2748 # We found a bogon in the path, so make sure we never use it.
2749 set dummy
$ac_cv_prog_CC
2751 if test $# != 0; then
2752 # We chose a different compiler from the bogus one.
2753 # However, it has the same basename, so the bogon will be chosen
2754 # first if we set CC to just the basename; use the full file name.
2756 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2762 if test -n "$CC"; then
2763 echo "$as_me:$LINENO: result: $CC" >&5
2764 echo "${ECHO_T}$CC" >&6
2766 echo "$as_me:$LINENO: result: no" >&5
2767 echo "${ECHO_T}no" >&6
2771 if test -z "$CC"; then
2772 if test -n "$ac_tool_prefix"; then
2775 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2776 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2777 echo "$as_me:$LINENO: checking for $ac_word" >&5
2778 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2779 if test "${ac_cv_prog_CC+set}" = set; then
2780 echo $ECHO_N "(cached) $ECHO_C" >&6
2782 if test -n "$CC"; then
2783 ac_cv_prog_CC
="$CC" # Let the user override the test.
2785 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2789 test -z "$as_dir" && as_dir
=.
2790 for ac_exec_ext
in '' $ac_executable_extensions; do
2791 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2792 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2793 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2802 if test -n "$CC"; then
2803 echo "$as_me:$LINENO: result: $CC" >&5
2804 echo "${ECHO_T}$CC" >&6
2806 echo "$as_me:$LINENO: result: no" >&5
2807 echo "${ECHO_T}no" >&6
2810 test -n "$CC" && break
2813 if test -z "$CC"; then
2817 # Extract the first word of "$ac_prog", so it can be a program name with args.
2818 set dummy
$ac_prog; ac_word
=$2
2819 echo "$as_me:$LINENO: checking for $ac_word" >&5
2820 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2821 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2822 echo $ECHO_N "(cached) $ECHO_C" >&6
2824 if test -n "$ac_ct_CC"; then
2825 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2827 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2831 test -z "$as_dir" && as_dir
=.
2832 for ac_exec_ext
in '' $ac_executable_extensions; do
2833 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2834 ac_cv_prog_ac_ct_CC
="$ac_prog"
2835 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2843 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2844 if test -n "$ac_ct_CC"; then
2845 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2846 echo "${ECHO_T}$ac_ct_CC" >&6
2848 echo "$as_me:$LINENO: result: no" >&5
2849 echo "${ECHO_T}no" >&6
2852 test -n "$ac_ct_CC" && break
2861 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2862 See \`config.log' for more details." >&5
2863 echo "$as_me: error: no acceptable C compiler found in \$PATH
2864 See \`config.log' for more details." >&2;}
2865 { (exit 1); exit 1; }; }
2867 # Provide some information about the compiler.
2868 echo "$as_me:$LINENO:" \
2869 "checking for C compiler version" >&5
2870 ac_compiler
=`set X $ac_compile; echo $2`
2871 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2872 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
2874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2875 (exit $ac_status); }
2876 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2877 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
2879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2880 (exit $ac_status); }
2881 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2882 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
2884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2885 (exit $ac_status); }
2887 cat >conftest.
$ac_ext <<_ACEOF
2890 cat confdefs.h
>>conftest.
$ac_ext
2891 cat >>conftest.
$ac_ext <<_ACEOF
2892 /* end confdefs.h. */
2902 ac_clean_files_save
=$ac_clean_files
2903 ac_clean_files
="$ac_clean_files a.out a.exe b.out"
2904 # Try to create an executable without -o first, disregard a.out.
2905 # It will help us diagnose broken compilers, and finding out an intuition
2907 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2908 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2909 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2910 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2911 (eval $ac_link_default) 2>&5
2913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2914 (exit $ac_status); }; then
2915 # Find the output, starting from the most likely. This scheme is
2916 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2919 # Be careful to initialize this variable, since it used to be cached.
2920 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2922 # b.out is created by i960 compilers.
2923 for ac_file
in a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
2925 test -f "$ac_file" ||
continue
2927 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
)
2930 # This is the source file.
2933 # We found the default executable, but exeext='' is most
2937 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2938 # FIXME: I believe we export ac_cv_exeext for Libtool,
2939 # but it would be cool to find out if it's true. Does anybody
2940 # maintain Libtool? --akim.
2948 echo "$as_me: failed program was:" >&5
2949 sed 's/^/| /' conftest.
$ac_ext >&5
2951 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2952 See \`config.log' for more details." >&5
2953 echo "$as_me: error: C compiler cannot create executables
2954 See \`config.log' for more details." >&2;}
2955 { (exit 77); exit 77; }; }
2958 ac_exeext
=$ac_cv_exeext
2959 echo "$as_me:$LINENO: result: $ac_file" >&5
2960 echo "${ECHO_T}$ac_file" >&6
2962 # Check the compiler produces executables we can run. If not, either
2963 # the compiler is broken, or we cross compile.
2964 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2965 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2966 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2967 # If not cross compiling, check that we can run a simple program.
2968 if test "$cross_compiling" != yes; then
2969 if { ac_try
='./$ac_file'
2970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2974 (exit $ac_status); }; }; then
2977 if test "$cross_compiling" = maybe
; then
2980 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2981 If you meant to cross compile, use \`--host'.
2982 See \`config.log' for more details." >&5
2983 echo "$as_me: error: cannot run C compiled programs.
2984 If you meant to cross compile, use \`--host'.
2985 See \`config.log' for more details." >&2;}
2986 { (exit 1); exit 1; }; }
2990 echo "$as_me:$LINENO: result: yes" >&5
2991 echo "${ECHO_T}yes" >&6
2993 rm -f a.out a.exe conftest
$ac_cv_exeext b.out
2994 ac_clean_files
=$ac_clean_files_save
2995 # Check the compiler produces executables we can run. If not, either
2996 # the compiler is broken, or we cross compile.
2997 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2998 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2999 echo "$as_me:$LINENO: result: $cross_compiling" >&5
3000 echo "${ECHO_T}$cross_compiling" >&6
3002 echo "$as_me:$LINENO: checking for suffix of executables" >&5
3003 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3004 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3005 (eval $ac_link) 2>&5
3007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3008 (exit $ac_status); }; then
3009 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3010 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3011 # work properly (i.e., refer to `conftest.exe'), while it won't with
3013 for ac_file
in conftest.exe conftest conftest.
*; do
3014 test -f "$ac_file" ||
continue
3016 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
3017 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3024 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3025 See \`config.log' for more details." >&5
3026 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3027 See \`config.log' for more details." >&2;}
3028 { (exit 1); exit 1; }; }
3031 rm -f conftest
$ac_cv_exeext
3032 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3033 echo "${ECHO_T}$ac_cv_exeext" >&6
3035 rm -f conftest.
$ac_ext
3036 EXEEXT
=$ac_cv_exeext
3038 echo "$as_me:$LINENO: checking for suffix of object files" >&5
3039 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
3040 if test "${ac_cv_objext+set}" = set; then
3041 echo $ECHO_N "(cached) $ECHO_C" >&6
3043 cat >conftest.
$ac_ext <<_ACEOF
3046 cat confdefs.h
>>conftest.
$ac_ext
3047 cat >>conftest.
$ac_ext <<_ACEOF
3048 /* end confdefs.h. */
3058 rm -f conftest.o conftest.obj
3059 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3060 (eval $ac_compile) 2>&5
3062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3063 (exit $ac_status); }; then
3064 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3066 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg
) ;;
3067 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
3072 echo "$as_me: failed program was:" >&5
3073 sed 's/^/| /' conftest.
$ac_ext >&5
3075 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3076 See \`config.log' for more details." >&5
3077 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3078 See \`config.log' for more details." >&2;}
3079 { (exit 1); exit 1; }; }
3082 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
3084 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3085 echo "${ECHO_T}$ac_cv_objext" >&6
3086 OBJEXT
=$ac_cv_objext
3088 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3089 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3090 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3091 echo $ECHO_N "(cached) $ECHO_C" >&6
3093 cat >conftest.
$ac_ext <<_ACEOF
3096 cat confdefs.h
>>conftest.
$ac_ext
3097 cat >>conftest.
$ac_ext <<_ACEOF
3098 /* end confdefs.h. */
3111 rm -f conftest.
$ac_objext
3112 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3113 (eval $ac_compile) 2>conftest.er1
3115 grep -v '^ *+' conftest.er1
>conftest.err
3117 cat conftest.err
>&5
3118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3119 (exit $ac_status); } &&
3120 { ac_try
='test -z "$ac_c_werror_flag"
3121 || test ! -s conftest.err'
3122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3126 (exit $ac_status); }; } &&
3127 { ac_try
='test -s conftest.$ac_objext'
3128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3132 (exit $ac_status); }; }; then
3135 echo "$as_me: failed program was:" >&5
3136 sed 's/^/| /' conftest.
$ac_ext >&5
3140 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3141 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
3144 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3145 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3146 GCC
=`test $ac_compiler_gnu = yes && echo yes`
3147 ac_test_CFLAGS
=${CFLAGS+set}
3148 ac_save_CFLAGS
=$CFLAGS
3150 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3151 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3152 if test "${ac_cv_prog_cc_g+set}" = set; then
3153 echo $ECHO_N "(cached) $ECHO_C" >&6
3155 cat >conftest.
$ac_ext <<_ACEOF
3158 cat confdefs.h
>>conftest.
$ac_ext
3159 cat >>conftest.
$ac_ext <<_ACEOF
3160 /* end confdefs.h. */
3170 rm -f conftest.
$ac_objext
3171 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3172 (eval $ac_compile) 2>conftest.er1
3174 grep -v '^ *+' conftest.er1
>conftest.err
3176 cat conftest.err
>&5
3177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3178 (exit $ac_status); } &&
3179 { ac_try
='test -z "$ac_c_werror_flag"
3180 || test ! -s conftest.err'
3181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3185 (exit $ac_status); }; } &&
3186 { ac_try
='test -s conftest.$ac_objext'
3187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3191 (exit $ac_status); }; }; then
3194 echo "$as_me: failed program was:" >&5
3195 sed 's/^/| /' conftest.
$ac_ext >&5
3199 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3201 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3202 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3203 if test "$ac_test_CFLAGS" = set; then
3204 CFLAGS
=$ac_save_CFLAGS
3205 elif test $ac_cv_prog_cc_g = yes; then
3206 if test "$GCC" = yes; then
3212 if test "$GCC" = yes; then
3218 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3219 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3220 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3221 echo $ECHO_N "(cached) $ECHO_C" >&6
3223 ac_cv_prog_cc_stdc
=no
3225 cat >conftest.
$ac_ext <<_ACEOF
3228 cat confdefs.h
>>conftest.
$ac_ext
3229 cat >>conftest.
$ac_ext <<_ACEOF
3230 /* end confdefs.h. */
3233 #include <sys/types.h>
3234 #include <sys/stat.h>
3235 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3236 struct buf { int x; };
3237 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3238 static char *e (p, i)
3244 static char *f (char * (*g) (char **, int), char **p, ...)
3249 s = g (p, va_arg (v,int));
3254 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3255 function prototypes and stuff, but not '\xHH' hex character constants.
3256 These don't provoke an error unfortunately, instead are silently treated
3257 as 'x'. The following induces an error, until -std1 is added to get
3258 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3259 array size at least. It's necessary to write '\x00'==0 to get something
3260 that's true only with -std1. */
3261 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3263 int test (int i, double x);
3264 struct s1 {int (*f) (int a);};
3265 struct s2 {int (*f) (double a);};
3266 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3272 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3277 # Don't try gcc -ansi; that turns off useful extensions and
3278 # breaks some systems' header files.
3279 # AIX -qlanglvl=ansi
3280 # Ultrix and OSF/1 -std1
3281 # HP-UX 10.20 and later -Ae
3282 # HP-UX older versions -Aa -D_HPUX_SOURCE
3283 # SVR4 -Xc -D__EXTENSIONS__
3284 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3286 CC
="$ac_save_CC $ac_arg"
3287 rm -f conftest.
$ac_objext
3288 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3289 (eval $ac_compile) 2>conftest.er1
3291 grep -v '^ *+' conftest.er1
>conftest.err
3293 cat conftest.err
>&5
3294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3295 (exit $ac_status); } &&
3296 { ac_try
='test -z "$ac_c_werror_flag"
3297 || test ! -s conftest.err'
3298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3302 (exit $ac_status); }; } &&
3303 { ac_try
='test -s conftest.$ac_objext'
3304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3308 (exit $ac_status); }; }; then
3309 ac_cv_prog_cc_stdc
=$ac_arg
3312 echo "$as_me: failed program was:" >&5
3313 sed 's/^/| /' conftest.
$ac_ext >&5
3316 rm -f conftest.err conftest.
$ac_objext
3318 rm -f conftest.
$ac_ext conftest.
$ac_objext
3323 case "x$ac_cv_prog_cc_stdc" in
3325 echo "$as_me:$LINENO: result: none needed" >&5
3326 echo "${ECHO_T}none needed" >&6 ;;
3328 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3329 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3330 CC
="$CC $ac_cv_prog_cc_stdc" ;;
3333 # Some people use a C++ compiler to compile C. Since we use `exit',
3334 # in C++ we need to declare it. In case someone uses the same compiler
3335 # for both compiling C and C++ we need to have the C++ compiler decide
3336 # the declaration of exit, since it's the most demanding environment.
3337 cat >conftest.
$ac_ext <<_ACEOF
3342 rm -f conftest.
$ac_objext
3343 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3344 (eval $ac_compile) 2>conftest.er1
3346 grep -v '^ *+' conftest.er1
>conftest.err
3348 cat conftest.err
>&5
3349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3350 (exit $ac_status); } &&
3351 { ac_try
='test -z "$ac_c_werror_flag"
3352 || test ! -s conftest.err'
3353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3357 (exit $ac_status); }; } &&
3358 { ac_try
='test -s conftest.$ac_objext'
3359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3363 (exit $ac_status); }; }; then
3364 for ac_declaration
in \
3366 'extern "C" void std::exit (int) throw (); using std::exit;' \
3367 'extern "C" void std::exit (int); using std::exit;' \
3368 'extern "C" void exit (int) throw ();' \
3369 'extern "C" void exit (int);' \
3372 cat >conftest.
$ac_ext <<_ACEOF
3375 cat confdefs.h
>>conftest.
$ac_ext
3376 cat >>conftest.
$ac_ext <<_ACEOF
3377 /* end confdefs.h. */
3388 rm -f conftest.
$ac_objext
3389 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3390 (eval $ac_compile) 2>conftest.er1
3392 grep -v '^ *+' conftest.er1
>conftest.err
3394 cat conftest.err
>&5
3395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3396 (exit $ac_status); } &&
3397 { ac_try
='test -z "$ac_c_werror_flag"
3398 || test ! -s conftest.err'
3399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3403 (exit $ac_status); }; } &&
3404 { ac_try
='test -s conftest.$ac_objext'
3405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3409 (exit $ac_status); }; }; then
3412 echo "$as_me: failed program was:" >&5
3413 sed 's/^/| /' conftest.
$ac_ext >&5
3417 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3418 cat >conftest.
$ac_ext <<_ACEOF
3421 cat confdefs.h
>>conftest.
$ac_ext
3422 cat >>conftest.
$ac_ext <<_ACEOF
3423 /* end confdefs.h. */
3433 rm -f conftest.
$ac_objext
3434 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3435 (eval $ac_compile) 2>conftest.er1
3437 grep -v '^ *+' conftest.er1
>conftest.err
3439 cat conftest.err
>&5
3440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3441 (exit $ac_status); } &&
3442 { ac_try
='test -z "$ac_c_werror_flag"
3443 || test ! -s conftest.err'
3444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3448 (exit $ac_status); }; } &&
3449 { ac_try
='test -s conftest.$ac_objext'
3450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3454 (exit $ac_status); }; }; then
3457 echo "$as_me: failed program was:" >&5
3458 sed 's/^/| /' conftest.
$ac_ext >&5
3461 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3464 if test -n "$ac_declaration"; then
3465 echo '#ifdef __cplusplus' >>confdefs.h
3466 echo $ac_declaration >>confdefs.h
3467 echo '#endif' >>confdefs.h
3471 echo "$as_me: failed program was:" >&5
3472 sed 's/^/| /' conftest.
$ac_ext >&5
3475 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3477 ac_cpp
='$CPP $CPPFLAGS'
3478 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3479 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3480 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3484 # On Suns, sometimes $CPP names a directory.
3485 if test -n "$CPP" && test -d "$CPP"; then
3489 #### Some systems specify a CPP to use unless we are using GCC.
3490 #### Now that we know whether we are using GCC, we can decide whether
3491 #### to use that one.
3492 if test "x$NON_GNU_CPP" != x
&& test x
$GCC != xyes
&& test "x$CPP" = x
3497 #### Some systems specify a CC to use unless we are using GCC.
3498 #### Now that we know whether we are using GCC, we can decide whether
3499 #### to use that one.
3500 if test "x$NON_GNU_CC" != x
&& test x
$GCC != xyes
&&
3501 test x
$cc_specified != xyes
3506 if test x
$GCC = xyes
&& test "x$GCC_TEST_OPTIONS" != x
3508 CC
="$CC $GCC_TEST_OPTIONS"
3511 if test x
$GCC = x
&& test "x$NON_GCC_TEST_OPTIONS" != x
3513 CC
="$CC $NON_GCC_TEST_OPTIONS"
3516 if test x
$GCC = xyes
&& test "x$GCC_LINK_TEST_OPTIONS" != x
3518 ac_link
="$ac_link $GCC_LINK_TEST_OPTIONS"
3521 if test x
$GCC = x
&& test "x$NON_GCC_LINK_TEST_OPTIONS" != x
3523 ac_link
="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
3526 #### Some other nice autoconf tests. If you add a test here which
3527 #### should make an entry in src/config.h, don't forget to add an
3528 #### #undef clause to src/config.h.in for autoconf to modify.
3530 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3531 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3533 if test "$LN_S" = "ln -s"; then
3534 echo "$as_me:$LINENO: result: yes" >&5
3535 echo "${ECHO_T}yes" >&6
3537 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3538 echo "${ECHO_T}no, using $LN_S" >&6
3542 ac_cpp
='$CPP $CPPFLAGS'
3543 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3544 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3545 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3546 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3547 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3548 # On Suns, sometimes $CPP names a directory.
3549 if test -n "$CPP" && test -d "$CPP"; then
3552 if test -z "$CPP"; then
3553 if test "${ac_cv_prog_CPP+set}" = set; then
3554 echo $ECHO_N "(cached) $ECHO_C" >&6
3556 # Double quotes because CPP needs to be expanded
3557 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3560 for ac_c_preproc_warn_flag
in '' yes
3562 # Use a header file that comes with gcc, so configuring glibc
3563 # with a fresh cross-compiler works.
3564 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3565 # <limits.h> exists even on freestanding compilers.
3566 # On the NeXT, cc -E runs the code through the compiler's parser,
3567 # not just through cpp. "Syntax error" is here to catch this case.
3568 cat >conftest.
$ac_ext <<_ACEOF
3571 cat confdefs.h
>>conftest.
$ac_ext
3572 cat >>conftest.
$ac_ext <<_ACEOF
3573 /* end confdefs.h. */
3575 # include <limits.h>
3577 # include <assert.h>
3581 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3582 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3584 grep -v '^ *+' conftest.er1
>conftest.err
3586 cat conftest.err
>&5
3587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3588 (exit $ac_status); } >/dev
/null
; then
3589 if test -s conftest.err
; then
3590 ac_cpp_err
=$ac_c_preproc_warn_flag
3591 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3598 if test -z "$ac_cpp_err"; then
3601 echo "$as_me: failed program was:" >&5
3602 sed 's/^/| /' conftest.
$ac_ext >&5
3604 # Broken: fails on valid input.
3607 rm -f conftest.err conftest.
$ac_ext
3609 # OK, works on sane cases. Now check whether non-existent headers
3610 # can be detected and how.
3611 cat >conftest.
$ac_ext <<_ACEOF
3614 cat confdefs.h
>>conftest.
$ac_ext
3615 cat >>conftest.
$ac_ext <<_ACEOF
3616 /* end confdefs.h. */
3617 #include <ac_nonexistent.h>
3619 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3620 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3622 grep -v '^ *+' conftest.er1
>conftest.err
3624 cat conftest.err
>&5
3625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3626 (exit $ac_status); } >/dev
/null
; then
3627 if test -s conftest.err
; then
3628 ac_cpp_err
=$ac_c_preproc_warn_flag
3629 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3636 if test -z "$ac_cpp_err"; then
3637 # Broken: success on invalid input.
3640 echo "$as_me: failed program was:" >&5
3641 sed 's/^/| /' conftest.
$ac_ext >&5
3643 # Passes both tests.
3647 rm -f conftest.err conftest.
$ac_ext
3650 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3651 rm -f conftest.err conftest.
$ac_ext
3652 if $ac_preproc_ok; then
3664 echo "$as_me:$LINENO: result: $CPP" >&5
3665 echo "${ECHO_T}$CPP" >&6
3667 for ac_c_preproc_warn_flag
in '' yes
3669 # Use a header file that comes with gcc, so configuring glibc
3670 # with a fresh cross-compiler works.
3671 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3672 # <limits.h> exists even on freestanding compilers.
3673 # On the NeXT, cc -E runs the code through the compiler's parser,
3674 # not just through cpp. "Syntax error" is here to catch this case.
3675 cat >conftest.
$ac_ext <<_ACEOF
3678 cat confdefs.h
>>conftest.
$ac_ext
3679 cat >>conftest.
$ac_ext <<_ACEOF
3680 /* end confdefs.h. */
3682 # include <limits.h>
3684 # include <assert.h>
3688 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3689 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3691 grep -v '^ *+' conftest.er1
>conftest.err
3693 cat conftest.err
>&5
3694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3695 (exit $ac_status); } >/dev
/null
; then
3696 if test -s conftest.err
; then
3697 ac_cpp_err
=$ac_c_preproc_warn_flag
3698 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3705 if test -z "$ac_cpp_err"; then
3708 echo "$as_me: failed program was:" >&5
3709 sed 's/^/| /' conftest.
$ac_ext >&5
3711 # Broken: fails on valid input.
3714 rm -f conftest.err conftest.
$ac_ext
3716 # OK, works on sane cases. Now check whether non-existent headers
3717 # can be detected and how.
3718 cat >conftest.
$ac_ext <<_ACEOF
3721 cat confdefs.h
>>conftest.
$ac_ext
3722 cat >>conftest.
$ac_ext <<_ACEOF
3723 /* end confdefs.h. */
3724 #include <ac_nonexistent.h>
3726 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3727 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3729 grep -v '^ *+' conftest.er1
>conftest.err
3731 cat conftest.err
>&5
3732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3733 (exit $ac_status); } >/dev
/null
; then
3734 if test -s conftest.err
; then
3735 ac_cpp_err
=$ac_c_preproc_warn_flag
3736 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3743 if test -z "$ac_cpp_err"; then
3744 # Broken: success on invalid input.
3747 echo "$as_me: failed program was:" >&5
3748 sed 's/^/| /' conftest.
$ac_ext >&5
3750 # Passes both tests.
3754 rm -f conftest.err conftest.
$ac_ext
3757 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3758 rm -f conftest.err conftest.
$ac_ext
3759 if $ac_preproc_ok; then
3762 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3763 See \`config.log' for more details." >&5
3764 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3765 See \`config.log' for more details." >&2;}
3766 { (exit 1); exit 1; }; }
3770 ac_cpp
='$CPP $CPPFLAGS'
3771 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3772 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3773 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3775 # Find a good install program. We prefer a C program (faster),
3776 # so one script is as good as another. But avoid the broken or
3777 # incompatible versions:
3778 # SysV /etc/install, /usr/sbin/install
3779 # SunOS /usr/etc/install
3780 # IRIX /sbin/install
3782 # AmigaOS /C/install, which installs bootblocks on floppy discs
3783 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3784 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3785 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3786 # OS/2's system install, which has a completely different semantic
3787 # ./install, which can be erroneously created by make from ./install.sh.
3788 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3789 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3790 if test -z "$INSTALL"; then
3791 if test "${ac_cv_path_install+set}" = set; then
3792 echo $ECHO_N "(cached) $ECHO_C" >&6
3794 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3798 test -z "$as_dir" && as_dir
=.
3799 # Account for people who put trailing slashes in PATH elements.
3801 .
/ | .
// |
/cC
/* | \
3802 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
3803 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
3806 # OSF1 and SCO ODT 3.0 have their own names for install.
3807 # Don't use installbsd from OSF since it installs stuff as root
3809 for ac_prog
in ginstall scoinst
install; do
3810 for ac_exec_ext
in '' $ac_executable_extensions; do
3811 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3812 if test $ac_prog = install &&
3813 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3814 # AIX install. It has an incompatible calling convention.
3816 elif test $ac_prog = install &&
3817 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3818 # program-specific install script used by HP pwplus--don't use.
3821 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
3833 if test "${ac_cv_path_install+set}" = set; then
3834 INSTALL
=$ac_cv_path_install
3836 # As a last resort, use the slow shell script. We don't cache a
3837 # path for INSTALL within a source directory, because that will
3838 # break other packages using the cache if that directory is
3839 # removed, or if the path is relative.
3840 INSTALL
=$ac_install_sh
3843 echo "$as_me:$LINENO: result: $INSTALL" >&5
3844 echo "${ECHO_T}$INSTALL" >&6
3846 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3847 # It thinks the first close brace ends the variable substitution.
3848 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
3850 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
3852 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
3854 for ac_prog
in 'bison -y' byacc
3856 # Extract the first word of "$ac_prog", so it can be a program name with args.
3857 set dummy
$ac_prog; ac_word
=$2
3858 echo "$as_me:$LINENO: checking for $ac_word" >&5
3859 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3860 if test "${ac_cv_prog_YACC+set}" = set; then
3861 echo $ECHO_N "(cached) $ECHO_C" >&6
3863 if test -n "$YACC"; then
3864 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
3866 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3870 test -z "$as_dir" && as_dir
=.
3871 for ac_exec_ext
in '' $ac_executable_extensions; do
3872 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3873 ac_cv_prog_YACC
="$ac_prog"
3874 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3882 YACC
=$ac_cv_prog_YACC
3883 if test -n "$YACC"; then
3884 echo "$as_me:$LINENO: result: $YACC" >&5
3885 echo "${ECHO_T}$YACC" >&6
3887 echo "$as_me:$LINENO: result: no" >&5
3888 echo "${ECHO_T}no" >&6
3891 test -n "$YACC" && break
3893 test -n "$YACC" || YACC
="yacc"
3895 if test "x$RANLIB" = x
; then
3896 if test -n "$ac_tool_prefix"; then
3897 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3898 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
3899 echo "$as_me:$LINENO: checking for $ac_word" >&5
3900 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3901 if test "${ac_cv_prog_RANLIB+set}" = set; then
3902 echo $ECHO_N "(cached) $ECHO_C" >&6
3904 if test -n "$RANLIB"; then
3905 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
3907 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3911 test -z "$as_dir" && as_dir
=.
3912 for ac_exec_ext
in '' $ac_executable_extensions; do
3913 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3914 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
3915 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3923 RANLIB
=$ac_cv_prog_RANLIB
3924 if test -n "$RANLIB"; then
3925 echo "$as_me:$LINENO: result: $RANLIB" >&5
3926 echo "${ECHO_T}$RANLIB" >&6
3928 echo "$as_me:$LINENO: result: no" >&5
3929 echo "${ECHO_T}no" >&6
3933 if test -z "$ac_cv_prog_RANLIB"; then
3934 ac_ct_RANLIB
=$RANLIB
3935 # Extract the first word of "ranlib", so it can be a program name with args.
3936 set dummy ranlib
; ac_word
=$2
3937 echo "$as_me:$LINENO: checking for $ac_word" >&5
3938 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3939 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3940 echo $ECHO_N "(cached) $ECHO_C" >&6
3942 if test -n "$ac_ct_RANLIB"; then
3943 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
3945 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3949 test -z "$as_dir" && as_dir
=.
3950 for ac_exec_ext
in '' $ac_executable_extensions; do
3951 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3952 ac_cv_prog_ac_ct_RANLIB
="ranlib"
3953 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3959 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
3962 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
3963 if test -n "$ac_ct_RANLIB"; then
3964 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3965 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3967 echo "$as_me:$LINENO: result: no" >&5
3968 echo "${ECHO_T}no" >&6
3971 RANLIB
=$ac_ct_RANLIB
3973 RANLIB
="$ac_cv_prog_RANLIB"
3980 echo "$as_me:$LINENO: checking for egrep" >&5
3981 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3982 if test "${ac_cv_prog_egrep+set}" = set; then
3983 echo $ECHO_N "(cached) $ECHO_C" >&6
3985 if echo a |
(grep -E '(a|b)') >/dev
/null
2>&1
3986 then ac_cv_prog_egrep
='grep -E'
3987 else ac_cv_prog_egrep
='egrep'
3990 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3991 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3992 EGREP
=$ac_cv_prog_egrep
3996 echo "$as_me:$LINENO: checking for AIX" >&5
3997 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
3998 cat >conftest.
$ac_ext <<_ACEOF
4001 cat confdefs.h
>>conftest.
$ac_ext
4002 cat >>conftest.
$ac_ext <<_ACEOF
4003 /* end confdefs.h. */
4009 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4010 $EGREP "yes" >/dev
/null
2>&1; then
4011 echo "$as_me:$LINENO: result: yes" >&5
4012 echo "${ECHO_T}yes" >&6
4013 cat >>confdefs.h
<<\_ACEOF
4014 #define _ALL_SOURCE 1
4018 echo "$as_me:$LINENO: result: no" >&5
4019 echo "${ECHO_T}no" >&6
4025 #### Extract some information from the operating system and machine files.
4027 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
4028 - which libraries the lib-src programs will want, and
4029 - whether the GNU malloc routines are usable..." >&5
4030 echo "$as_me: checking the machine- and system-dependent files to find out
4031 - which libraries the lib-src programs will want, and
4032 - whether the GNU malloc routines are usable..." >&6;}
4034 ### First figure out CFLAGS (which we use for running the compiler here)
4035 ### and REAL_CFLAGS (which we use for real compilation).
4036 ### The two are the same except on a few systems, where they are made
4037 ### different to work around various lossages. For example,
4038 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
4039 ### as implying static linking.
4041 ### If the CFLAGS env var is specified, we use that value
4042 ### instead of the default.
4044 ### It's not important that this name contain the PID; you can't run
4045 ### two configures in the same directory and have anything work
4047 tempcname
="conftest.c"
4050 #include "'${srcdir}'/src/'${opsysfile}'"
4051 #include "'${srcdir}'/src/'${machfile}'"
4052 #ifndef LIBS_MACHINE
4053 #define LIBS_MACHINE
4058 #ifndef C_SWITCH_SYSTEM
4059 #define C_SWITCH_SYSTEM
4061 #ifndef C_SWITCH_MACHINE
4062 #define C_SWITCH_MACHINE
4064 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
4065 configure___ c_switch_system=C_SWITCH_SYSTEM
4066 configure___ c_switch_machine=C_SWITCH_MACHINE
4069 #define LIB_X11_LIB -lX11
4072 #ifndef LIBX11_MACHINE
4073 #define LIBX11_MACHINE
4076 #ifndef LIBX11_SYSTEM
4077 #define LIBX11_SYSTEM
4079 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
4082 configure___ unexec=UNEXEC
4084 configure___ unexec=unexec.o
4087 #ifdef SYSTEM_MALLOC
4088 configure___ system_malloc=yes
4090 configure___ system_malloc=no
4093 #ifdef USE_MMAP_FOR_BUFFERS
4094 configure___ use_mmap_for_buffers=yes
4096 configure___ use_mmap_for_buffers=no
4099 #ifndef C_DEBUG_SWITCH
4100 #define C_DEBUG_SWITCH -g
4103 #ifndef C_OPTIMIZE_SWITCH
4105 #define C_OPTIMIZE_SWITCH -O2
4107 #define C_OPTIMIZE_SWITCH -O
4111 #ifndef LD_SWITCH_MACHINE
4112 #define LD_SWITCH_MACHINE
4115 #ifndef LD_SWITCH_SYSTEM
4116 #define LD_SWITCH_SYSTEM
4119 #ifndef LD_SWITCH_X_SITE_AUX
4120 #define LD_SWITCH_X_SITE_AUX
4123 configure___ ld_switch_system=LD_SWITCH_SYSTEM
4124 configure___ ld_switch_machine=LD_SWITCH_MACHINE
4126 #ifdef THIS_IS_CONFIGURE
4128 /* Get the CFLAGS for tests in configure. */
4130 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
4132 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4135 #else /* not THIS_IS_CONFIGURE */
4137 /* Get the CFLAGS for real compilation. */
4139 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
4141 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4144 #endif /* not THIS_IS_CONFIGURE */
4147 # The value of CPP is a quoted variable reference, so we need to do this
4148 # to get its actual value...
4149 CPP
=`eval "echo $CPP"`
4150 eval `${CPP} -Isrc ${tempcname} \
4151 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4152 if test "x$SPECIFIED_CFLAGS" = x
; then
4153 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
4154 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4156 REAL_CFLAGS
="$CFLAGS"
4160 ac_link
="$ac_link $ld_switch_machine $ld_switch_system"
4162 ### Make sure subsequent tests use flags consistent with the build flags.
4164 if test x
"${OVERRIDE_CPPFLAGS}" != x
; then
4165 CPPFLAGS
="${OVERRIDE_CPPFLAGS}"
4167 CPPFLAGS
="$c_switch_system $c_switch_machine $CPPFLAGS"
4171 # Check whether --enable-largefile or --disable-largefile was given.
4172 if test "${enable_largefile+set}" = set; then
4173 enableval
="$enable_largefile"
4176 if test "$enable_largefile" != no
; then
4178 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4179 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
4180 if test "${ac_cv_sys_largefile_CC+set}" = set; then
4181 echo $ECHO_N "(cached) $ECHO_C" >&6
4183 ac_cv_sys_largefile_CC
=no
4184 if test "$GCC" != yes; then
4185 # IRIX 6.2 and later do not support large files by default,
4186 # so use the C compiler's -n32 option if that helps.
4187 cat >conftest.
$ac_ext <<_ACEOF
4190 cat confdefs.h
>>conftest.
$ac_ext
4191 cat >>conftest.
$ac_ext <<_ACEOF
4192 /* end confdefs.h. */
4193 #include <sys/types.h>
4194 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1];
4204 rm -f conftest.
$ac_objext
4205 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4206 (eval $ac_compile) 2>conftest.er1
4208 grep -v '^ *+' conftest.er1
>conftest.err
4210 cat conftest.err
>&5
4211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4212 (exit $ac_status); } &&
4213 { ac_try
='test -z "$ac_c_werror_flag"
4214 || test ! -s conftest.err'
4215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4219 (exit $ac_status); }; } &&
4220 { ac_try
='test -s conftest.$ac_objext'
4221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4225 (exit $ac_status); }; }; then
4228 echo "$as_me: failed program was:" >&5
4229 sed 's/^/| /' conftest.
$ac_ext >&5
4233 cat >conftest.
$ac_ext <<_ACEOF
4236 cat confdefs.h
>>conftest.
$ac_ext
4237 cat >>conftest.
$ac_ext <<_ACEOF
4238 /* end confdefs.h. */
4239 #include <sys/types.h>
4240 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1];
4250 rm -f conftest.
$ac_objext
4251 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4252 (eval $ac_compile) 2>conftest.er1
4254 grep -v '^ *+' conftest.er1
>conftest.err
4256 cat conftest.err
>&5
4257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4258 (exit $ac_status); } &&
4259 { ac_try
='test -z "$ac_c_werror_flag"
4260 || test ! -s conftest.err'
4261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4265 (exit $ac_status); }; } &&
4266 { ac_try
='test -s conftest.$ac_objext'
4267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4271 (exit $ac_status); }; }; then
4272 ac_cv_sys_largefile_CC
=' -n32'
4274 echo "$as_me: failed program was:" >&5
4275 sed 's/^/| /' conftest.
$ac_ext >&5
4278 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4281 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4284 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4285 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
4286 if test "$ac_cv_sys_largefile_CC" != no
; then
4287 CC
="$CC$ac_cv_sys_largefile_CC"
4290 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4291 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
4292 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4293 echo $ECHO_N "(cached) $ECHO_C" >&6
4295 ac_cv_sys_file_offset_bits
=no
4296 cat >conftest.
$ac_ext <<_ACEOF
4299 cat confdefs.h
>>conftest.
$ac_ext
4300 cat >>conftest.
$ac_ext <<_ACEOF
4301 /* end confdefs.h. */
4302 #include <sys/types.h>
4303 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1];
4313 rm -f conftest.
$ac_objext
4314 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4315 (eval $ac_compile) 2>conftest.er1
4317 grep -v '^ *+' conftest.er1
>conftest.err
4319 cat conftest.err
>&5
4320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4321 (exit $ac_status); } &&
4322 { ac_try
='test -z "$ac_c_werror_flag"
4323 || test ! -s conftest.err'
4324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4328 (exit $ac_status); }; } &&
4329 { ac_try
='test -s conftest.$ac_objext'
4330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4334 (exit $ac_status); }; }; then
4337 echo "$as_me: failed program was:" >&5
4338 sed 's/^/| /' conftest.
$ac_ext >&5
4340 cat >conftest.
$ac_ext <<_ACEOF
4343 cat confdefs.h
>>conftest.
$ac_ext
4344 cat >>conftest.
$ac_ext <<_ACEOF
4345 /* end confdefs.h. */
4346 #define _FILE_OFFSET_BITS 64
4347 #include <sys/types.h>
4348 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1];
4359 rm -f conftest.
$ac_objext
4360 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4361 (eval $ac_compile) 2>conftest.er1
4363 grep -v '^ *+' conftest.er1
>conftest.err
4365 cat conftest.err
>&5
4366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4367 (exit $ac_status); } &&
4368 { ac_try
='test -z "$ac_c_werror_flag"
4369 || test ! -s conftest.err'
4370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4374 (exit $ac_status); }; } &&
4375 { ac_try
='test -s conftest.$ac_objext'
4376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4380 (exit $ac_status); }; }; then
4381 ac_cv_sys_file_offset_bits
=64
4383 echo "$as_me: failed program was:" >&5
4384 sed 's/^/| /' conftest.
$ac_ext >&5
4387 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4389 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4391 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
4392 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
4393 if test "$ac_cv_sys_file_offset_bits" != no
; then
4395 cat >>confdefs.h
<<_ACEOF
4396 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4400 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
4401 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
4402 if test "${ac_cv_sys_large_files+set}" = set; then
4403 echo $ECHO_N "(cached) $ECHO_C" >&6
4405 ac_cv_sys_large_files
=no
4406 cat >conftest.
$ac_ext <<_ACEOF
4409 cat confdefs.h
>>conftest.
$ac_ext
4410 cat >>conftest.
$ac_ext <<_ACEOF
4411 /* end confdefs.h. */
4421 rm -f conftest.
$ac_objext
4422 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4423 (eval $ac_compile) 2>conftest.er1
4425 grep -v '^ *+' conftest.er1
>conftest.err
4427 cat conftest.err
>&5
4428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4429 (exit $ac_status); } &&
4430 { ac_try
='test -z "$ac_c_werror_flag"
4431 || test ! -s conftest.err'
4432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4436 (exit $ac_status); }; } &&
4437 { ac_try
='test -s conftest.$ac_objext'
4438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4442 (exit $ac_status); }; }; then
4445 echo "$as_me: failed program was:" >&5
4446 sed 's/^/| /' conftest.
$ac_ext >&5
4448 cat >conftest.
$ac_ext <<_ACEOF
4451 cat confdefs.h
>>conftest.
$ac_ext
4452 cat >>conftest.
$ac_ext <<_ACEOF
4453 /* end confdefs.h. */
4454 #define _LARGE_FILES 1
4465 rm -f conftest.
$ac_objext
4466 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4467 (eval $ac_compile) 2>conftest.er1
4469 grep -v '^ *+' conftest.er1
>conftest.err
4471 cat conftest.err
>&5
4472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4473 (exit $ac_status); } &&
4474 { ac_try
='test -z "$ac_c_werror_flag"
4475 || test ! -s conftest.err'
4476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4480 (exit $ac_status); }; } &&
4481 { ac_try
='test -s conftest.$ac_objext'
4482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4486 (exit $ac_status); }; }; then
4487 ac_cv_sys_large_files
=1
4489 echo "$as_me: failed program was:" >&5
4490 sed 's/^/| /' conftest.
$ac_ext >&5
4493 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4495 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4497 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
4498 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
4499 if test "$ac_cv_sys_large_files" != no
; then
4501 cat >>confdefs.h
<<_ACEOF
4502 #define _LARGE_FILES $ac_cv_sys_large_files
4509 # Sound support for GNU/Linux and the free BSDs.
4510 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4511 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4512 if test "${ac_cv_header_stdc+set}" = set; then
4513 echo $ECHO_N "(cached) $ECHO_C" >&6
4515 cat >conftest.
$ac_ext <<_ACEOF
4518 cat confdefs.h
>>conftest.
$ac_ext
4519 cat >>conftest.
$ac_ext <<_ACEOF
4520 /* end confdefs.h. */
4534 rm -f conftest.
$ac_objext
4535 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4536 (eval $ac_compile) 2>conftest.er1
4538 grep -v '^ *+' conftest.er1
>conftest.err
4540 cat conftest.err
>&5
4541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4542 (exit $ac_status); } &&
4543 { ac_try
='test -z "$ac_c_werror_flag"
4544 || test ! -s conftest.err'
4545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4549 (exit $ac_status); }; } &&
4550 { ac_try
='test -s conftest.$ac_objext'
4551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4555 (exit $ac_status); }; }; then
4556 ac_cv_header_stdc
=yes
4558 echo "$as_me: failed program was:" >&5
4559 sed 's/^/| /' conftest.
$ac_ext >&5
4561 ac_cv_header_stdc
=no
4563 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4565 if test $ac_cv_header_stdc = yes; then
4566 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4567 cat >conftest.
$ac_ext <<_ACEOF
4570 cat confdefs.h
>>conftest.
$ac_ext
4571 cat >>conftest.
$ac_ext <<_ACEOF
4572 /* end confdefs.h. */
4576 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4577 $EGREP "memchr" >/dev
/null
2>&1; then
4580 ac_cv_header_stdc
=no
4586 if test $ac_cv_header_stdc = yes; then
4587 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4588 cat >conftest.
$ac_ext <<_ACEOF
4591 cat confdefs.h
>>conftest.
$ac_ext
4592 cat >>conftest.
$ac_ext <<_ACEOF
4593 /* end confdefs.h. */
4597 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4598 $EGREP "free" >/dev
/null
2>&1; then
4601 ac_cv_header_stdc
=no
4607 if test $ac_cv_header_stdc = yes; then
4608 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4609 if test "$cross_compiling" = yes; then
4612 cat >conftest.
$ac_ext <<_ACEOF
4615 cat confdefs.h
>>conftest.
$ac_ext
4616 cat >>conftest.
$ac_ext <<_ACEOF
4617 /* end confdefs.h. */
4619 #if ((' ' & 0x0FF) == 0x020)
4620 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4621 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4623 # define ISLOWER(c) \
4624 (('a' <= (c) && (c) <= 'i') \
4625 || ('j' <= (c) && (c) <= 'r') \
4626 || ('s' <= (c) && (c) <= 'z'))
4627 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4630 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4635 for (i = 0; i < 256; i++)
4636 if (XOR (islower (i), ISLOWER (i))
4637 || toupper (i) != TOUPPER (i))
4642 rm -f conftest
$ac_exeext
4643 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4644 (eval $ac_link) 2>&5
4646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4647 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4652 (exit $ac_status); }; }; then
4655 echo "$as_me: program exited with status $ac_status" >&5
4656 echo "$as_me: failed program was:" >&5
4657 sed 's/^/| /' conftest.
$ac_ext >&5
4660 ac_cv_header_stdc
=no
4662 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4666 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4667 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4668 if test $ac_cv_header_stdc = yes; then
4670 cat >>confdefs.h
<<\_ACEOF
4671 #define STDC_HEADERS 1
4676 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4686 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4687 inttypes.h stdint.h unistd.h
4689 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4690 echo "$as_me:$LINENO: checking for $ac_header" >&5
4691 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4692 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4693 echo $ECHO_N "(cached) $ECHO_C" >&6
4695 cat >conftest.
$ac_ext <<_ACEOF
4698 cat confdefs.h
>>conftest.
$ac_ext
4699 cat >>conftest.
$ac_ext <<_ACEOF
4700 /* end confdefs.h. */
4701 $ac_includes_default
4703 #include <$ac_header>
4705 rm -f conftest.
$ac_objext
4706 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4707 (eval $ac_compile) 2>conftest.er1
4709 grep -v '^ *+' conftest.er1
>conftest.err
4711 cat conftest.err
>&5
4712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4713 (exit $ac_status); } &&
4714 { ac_try
='test -z "$ac_c_werror_flag"
4715 || 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 eval "$as_ac_Header=yes"
4729 echo "$as_me: failed program was:" >&5
4730 sed 's/^/| /' conftest.
$ac_ext >&5
4732 eval "$as_ac_Header=no"
4734 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4736 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4737 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4738 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4739 cat >>confdefs.h
<<_ACEOF
4740 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4751 for ac_header
in machine
/soundcard.h sys
/soundcard.h soundcard.h
4753 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4754 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4755 echo "$as_me:$LINENO: checking for $ac_header" >&5
4756 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4757 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4758 echo $ECHO_N "(cached) $ECHO_C" >&6
4760 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4761 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4763 # Is the header compilable?
4764 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4765 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4766 cat >conftest.
$ac_ext <<_ACEOF
4769 cat confdefs.h
>>conftest.
$ac_ext
4770 cat >>conftest.
$ac_ext <<_ACEOF
4771 /* end confdefs.h. */
4772 $ac_includes_default
4773 #include <$ac_header>
4775 rm -f conftest.
$ac_objext
4776 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4777 (eval $ac_compile) 2>conftest.er1
4779 grep -v '^ *+' conftest.er1
>conftest.err
4781 cat conftest.err
>&5
4782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4783 (exit $ac_status); } &&
4784 { ac_try
='test -z "$ac_c_werror_flag"
4785 || test ! -s conftest.err'
4786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4790 (exit $ac_status); }; } &&
4791 { ac_try
='test -s conftest.$ac_objext'
4792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4796 (exit $ac_status); }; }; then
4797 ac_header_compiler
=yes
4799 echo "$as_me: failed program was:" >&5
4800 sed 's/^/| /' conftest.
$ac_ext >&5
4802 ac_header_compiler
=no
4804 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4805 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4806 echo "${ECHO_T}$ac_header_compiler" >&6
4808 # Is the header present?
4809 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4810 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4811 cat >conftest.
$ac_ext <<_ACEOF
4814 cat confdefs.h
>>conftest.
$ac_ext
4815 cat >>conftest.
$ac_ext <<_ACEOF
4816 /* end confdefs.h. */
4817 #include <$ac_header>
4819 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4820 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4822 grep -v '^ *+' conftest.er1
>conftest.err
4824 cat conftest.err
>&5
4825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4826 (exit $ac_status); } >/dev
/null
; then
4827 if test -s conftest.err
; then
4828 ac_cpp_err
=$ac_c_preproc_warn_flag
4829 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4836 if test -z "$ac_cpp_err"; then
4837 ac_header_preproc
=yes
4839 echo "$as_me: failed program was:" >&5
4840 sed 's/^/| /' conftest.
$ac_ext >&5
4842 ac_header_preproc
=no
4844 rm -f conftest.err conftest.
$ac_ext
4845 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4846 echo "${ECHO_T}$ac_header_preproc" >&6
4848 # So? What about this header?
4849 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4851 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4852 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4853 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4854 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4855 ac_header_preproc
=yes
4858 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4859 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4860 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4861 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4862 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4863 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4864 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4865 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4866 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4867 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4868 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4869 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4872 ## ------------------------------------------ ##
4873 ## Report this to the AC_PACKAGE_NAME lists. ##
4874 ## ------------------------------------------ ##
4877 sed "s/^/$as_me: WARNING: /" >&2
4880 echo "$as_me:$LINENO: checking for $ac_header" >&5
4881 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4882 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4883 echo $ECHO_N "(cached) $ECHO_C" >&6
4885 eval "$as_ac_Header=\$ac_header_preproc"
4887 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4888 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4891 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4892 cat >>confdefs.h
<<_ACEOF
4893 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4900 # Emulation library used on NetBSD.
4901 echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
4902 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
4903 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
4904 echo $ECHO_N "(cached) $ECHO_C" >&6
4906 ac_check_lib_save_LIBS
=$LIBS
4907 LIBS
="-lossaudio $LIBS"
4908 cat >conftest.
$ac_ext <<_ACEOF
4911 cat confdefs.h
>>conftest.
$ac_ext
4912 cat >>conftest.
$ac_ext <<_ACEOF
4913 /* end confdefs.h. */
4915 /* Override any gcc2 internal prototype to avoid an error. */
4919 /* We use char because int might match the return type of a gcc2
4920 builtin and then its argument prototype would still apply. */
4930 rm -f conftest.
$ac_objext conftest
$ac_exeext
4931 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4932 (eval $ac_link) 2>conftest.er1
4934 grep -v '^ *+' conftest.er1
>conftest.err
4936 cat conftest.err
>&5
4937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4938 (exit $ac_status); } &&
4939 { ac_try
='test -z "$ac_c_werror_flag"
4940 || test ! -s conftest.err'
4941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4945 (exit $ac_status); }; } &&
4946 { ac_try
='test -s conftest$ac_exeext'
4947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4951 (exit $ac_status); }; }; then
4952 ac_cv_lib_ossaudio__oss_ioctl
=yes
4954 echo "$as_me: failed program was:" >&5
4955 sed 's/^/| /' conftest.
$ac_ext >&5
4957 ac_cv_lib_ossaudio__oss_ioctl
=no
4959 rm -f conftest.err conftest.
$ac_objext \
4960 conftest
$ac_exeext conftest.
$ac_ext
4961 LIBS
=$ac_check_lib_save_LIBS
4963 echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
4964 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
4965 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
4990 for ac_header
in sys
/select.h sys
/timeb.h sys
/time.h unistd.h utime.h \
4991 linux
/version.h sys
/systeminfo.h termios.h limits.h string.h stdlib.h \
4992 termcap.h stdio_ext.h fcntl.h term.h
strings.h
pwd.h
4994 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4995 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4996 echo "$as_me:$LINENO: checking for $ac_header" >&5
4997 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4998 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4999 echo $ECHO_N "(cached) $ECHO_C" >&6
5001 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5002 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5004 # Is the header compilable?
5005 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5006 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5007 cat >conftest.
$ac_ext <<_ACEOF
5010 cat confdefs.h
>>conftest.
$ac_ext
5011 cat >>conftest.
$ac_ext <<_ACEOF
5012 /* end confdefs.h. */
5013 $ac_includes_default
5014 #include <$ac_header>
5016 rm -f conftest.
$ac_objext
5017 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5018 (eval $ac_compile) 2>conftest.er1
5020 grep -v '^ *+' conftest.er1
>conftest.err
5022 cat conftest.err
>&5
5023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5024 (exit $ac_status); } &&
5025 { ac_try
='test -z "$ac_c_werror_flag"
5026 || test ! -s conftest.err'
5027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5031 (exit $ac_status); }; } &&
5032 { ac_try
='test -s conftest.$ac_objext'
5033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5037 (exit $ac_status); }; }; then
5038 ac_header_compiler
=yes
5040 echo "$as_me: failed program was:" >&5
5041 sed 's/^/| /' conftest.
$ac_ext >&5
5043 ac_header_compiler
=no
5045 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5046 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5047 echo "${ECHO_T}$ac_header_compiler" >&6
5049 # Is the header present?
5050 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5051 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5052 cat >conftest.
$ac_ext <<_ACEOF
5055 cat confdefs.h
>>conftest.
$ac_ext
5056 cat >>conftest.
$ac_ext <<_ACEOF
5057 /* end confdefs.h. */
5058 #include <$ac_header>
5060 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5061 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5063 grep -v '^ *+' conftest.er1
>conftest.err
5065 cat conftest.err
>&5
5066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5067 (exit $ac_status); } >/dev
/null
; then
5068 if test -s conftest.err
; then
5069 ac_cpp_err
=$ac_c_preproc_warn_flag
5070 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
5077 if test -z "$ac_cpp_err"; then
5078 ac_header_preproc
=yes
5080 echo "$as_me: failed program was:" >&5
5081 sed 's/^/| /' conftest.
$ac_ext >&5
5083 ac_header_preproc
=no
5085 rm -f conftest.err conftest.
$ac_ext
5086 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5087 echo "${ECHO_T}$ac_header_preproc" >&6
5089 # So? What about this header?
5090 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5092 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5093 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5094 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5095 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5096 ac_header_preproc
=yes
5099 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5100 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5101 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5102 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5103 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5104 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5105 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5106 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5107 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5108 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5109 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5110 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5113 ## ------------------------------------------ ##
5114 ## Report this to the AC_PACKAGE_NAME lists. ##
5115 ## ------------------------------------------ ##
5118 sed "s/^/$as_me: WARNING: /" >&2
5121 echo "$as_me:$LINENO: checking for $ac_header" >&5
5122 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5123 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5124 echo $ECHO_N "(cached) $ECHO_C" >&6
5126 eval "$as_ac_Header=\$ac_header_preproc"
5128 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5129 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5132 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5133 cat >>confdefs.h
<<_ACEOF
5134 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5141 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5142 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5143 if test "${ac_cv_header_stdc+set}" = set; then
5144 echo $ECHO_N "(cached) $ECHO_C" >&6
5146 cat >conftest.
$ac_ext <<_ACEOF
5149 cat confdefs.h
>>conftest.
$ac_ext
5150 cat >>conftest.
$ac_ext <<_ACEOF
5151 /* end confdefs.h. */
5165 rm -f conftest.
$ac_objext
5166 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5167 (eval $ac_compile) 2>conftest.er1
5169 grep -v '^ *+' conftest.er1
>conftest.err
5171 cat conftest.err
>&5
5172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5173 (exit $ac_status); } &&
5174 { ac_try
='test -z "$ac_c_werror_flag"
5175 || test ! -s conftest.err'
5176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5180 (exit $ac_status); }; } &&
5181 { ac_try
='test -s conftest.$ac_objext'
5182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5186 (exit $ac_status); }; }; then
5187 ac_cv_header_stdc
=yes
5189 echo "$as_me: failed program was:" >&5
5190 sed 's/^/| /' conftest.
$ac_ext >&5
5192 ac_cv_header_stdc
=no
5194 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5196 if test $ac_cv_header_stdc = yes; then
5197 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5198 cat >conftest.
$ac_ext <<_ACEOF
5201 cat confdefs.h
>>conftest.
$ac_ext
5202 cat >>conftest.
$ac_ext <<_ACEOF
5203 /* end confdefs.h. */
5207 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5208 $EGREP "memchr" >/dev
/null
2>&1; then
5211 ac_cv_header_stdc
=no
5217 if test $ac_cv_header_stdc = yes; then
5218 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5219 cat >conftest.
$ac_ext <<_ACEOF
5222 cat confdefs.h
>>conftest.
$ac_ext
5223 cat >>conftest.
$ac_ext <<_ACEOF
5224 /* end confdefs.h. */
5228 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5229 $EGREP "free" >/dev
/null
2>&1; then
5232 ac_cv_header_stdc
=no
5238 if test $ac_cv_header_stdc = yes; then
5239 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5240 if test "$cross_compiling" = yes; then
5243 cat >conftest.
$ac_ext <<_ACEOF
5246 cat confdefs.h
>>conftest.
$ac_ext
5247 cat >>conftest.
$ac_ext <<_ACEOF
5248 /* end confdefs.h. */
5250 #if ((' ' & 0x0FF) == 0x020)
5251 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5252 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5254 # define ISLOWER(c) \
5255 (('a' <= (c) && (c) <= 'i') \
5256 || ('j' <= (c) && (c) <= 'r') \
5257 || ('s' <= (c) && (c) <= 'z'))
5258 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5261 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5266 for (i = 0; i < 256; i++)
5267 if (XOR (islower (i), ISLOWER (i))
5268 || toupper (i) != TOUPPER (i))
5273 rm -f conftest
$ac_exeext
5274 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5275 (eval $ac_link) 2>&5
5277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5278 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5283 (exit $ac_status); }; }; then
5286 echo "$as_me: program exited with status $ac_status" >&5
5287 echo "$as_me: failed program was:" >&5
5288 sed 's/^/| /' conftest.
$ac_ext >&5
5291 ac_cv_header_stdc
=no
5293 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5297 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5298 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5299 if test $ac_cv_header_stdc = yes; then
5301 cat >>confdefs.h
<<\_ACEOF
5302 #define STDC_HEADERS 1
5307 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
5308 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
5309 if test "${ac_cv_header_time+set}" = set; then
5310 echo $ECHO_N "(cached) $ECHO_C" >&6
5312 cat >conftest.
$ac_ext <<_ACEOF
5315 cat confdefs.h
>>conftest.
$ac_ext
5316 cat >>conftest.
$ac_ext <<_ACEOF
5317 /* end confdefs.h. */
5318 #include <sys/types.h>
5319 #include <sys/time.h>
5325 if ((struct tm *) 0)
5331 rm -f conftest.
$ac_objext
5332 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5333 (eval $ac_compile) 2>conftest.er1
5335 grep -v '^ *+' conftest.er1
>conftest.err
5337 cat conftest.err
>&5
5338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5339 (exit $ac_status); } &&
5340 { ac_try
='test -z "$ac_c_werror_flag"
5341 || test ! -s conftest.err'
5342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5346 (exit $ac_status); }; } &&
5347 { ac_try
='test -s conftest.$ac_objext'
5348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5352 (exit $ac_status); }; }; then
5353 ac_cv_header_time
=yes
5355 echo "$as_me: failed program was:" >&5
5356 sed 's/^/| /' conftest.
$ac_ext >&5
5358 ac_cv_header_time
=no
5360 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5362 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
5363 echo "${ECHO_T}$ac_cv_header_time" >&6
5364 if test $ac_cv_header_time = yes; then
5366 cat >>confdefs.h
<<\_ACEOF
5367 #define TIME_WITH_SYS_TIME 1
5372 echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
5373 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6
5374 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
5375 echo $ECHO_N "(cached) $ECHO_C" >&6
5377 cat >conftest.
$ac_ext <<_ACEOF
5380 cat confdefs.h
>>conftest.
$ac_ext
5381 cat >>conftest.
$ac_ext <<_ACEOF
5382 /* end confdefs.h. */
5384 /* NetBSD declares sys_siglist in unistd.h. */
5386 # include <unistd.h>
5394 char *p = (char *) sys_siglist;
5401 rm -f conftest.
$ac_objext
5402 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5403 (eval $ac_compile) 2>conftest.er1
5405 grep -v '^ *+' conftest.er1
>conftest.err
5407 cat conftest.err
>&5
5408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5409 (exit $ac_status); } &&
5410 { ac_try
='test -z "$ac_c_werror_flag"
5411 || test ! -s conftest.err'
5412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5416 (exit $ac_status); }; } &&
5417 { ac_try
='test -s conftest.$ac_objext'
5418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5422 (exit $ac_status); }; }; then
5423 ac_cv_have_decl_sys_siglist
=yes
5425 echo "$as_me: failed program was:" >&5
5426 sed 's/^/| /' conftest.
$ac_ext >&5
5428 ac_cv_have_decl_sys_siglist
=no
5430 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5432 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
5433 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6
5434 if test $ac_cv_have_decl_sys_siglist = yes; then
5436 cat >>confdefs.h
<<_ACEOF
5437 #define HAVE_DECL_SYS_SIGLIST 1
5442 cat >>confdefs.h
<<_ACEOF
5443 #define HAVE_DECL_SYS_SIGLIST 0
5451 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
5452 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
5453 if test "${ac_cv_header_sys_wait_h+set}" = set; then
5454 echo $ECHO_N "(cached) $ECHO_C" >&6
5456 cat >conftest.
$ac_ext <<_ACEOF
5459 cat confdefs.h
>>conftest.
$ac_ext
5460 cat >>conftest.
$ac_ext <<_ACEOF
5461 /* end confdefs.h. */
5462 #include <sys/types.h>
5463 #include <sys/wait.h>
5465 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
5468 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5476 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5481 rm -f conftest.
$ac_objext
5482 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5483 (eval $ac_compile) 2>conftest.er1
5485 grep -v '^ *+' conftest.er1
>conftest.err
5487 cat conftest.err
>&5
5488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5489 (exit $ac_status); } &&
5490 { ac_try
='test -z "$ac_c_werror_flag"
5491 || test ! -s conftest.err'
5492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5496 (exit $ac_status); }; } &&
5497 { ac_try
='test -s conftest.$ac_objext'
5498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5502 (exit $ac_status); }; }; then
5503 ac_cv_header_sys_wait_h
=yes
5505 echo "$as_me: failed program was:" >&5
5506 sed 's/^/| /' conftest.
$ac_ext >&5
5508 ac_cv_header_sys_wait_h
=no
5510 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5512 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
5513 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
5514 if test $ac_cv_header_sys_wait_h = yes; then
5516 cat >>confdefs.h
<<\_ACEOF
5517 #define HAVE_SYS_WAIT_H 1
5523 echo "$as_me:$LINENO: checking for struct utimbuf" >&5
5524 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6
5525 if test "${emacs_cv_struct_utimbuf+set}" = set; then
5526 echo $ECHO_N "(cached) $ECHO_C" >&6
5528 cat >conftest.
$ac_ext <<_ACEOF
5531 cat confdefs.h
>>conftest.
$ac_ext
5532 cat >>conftest.
$ac_ext <<_ACEOF
5533 /* end confdefs.h. */
5534 #ifdef TIME_WITH_SYS_TIME
5535 #include <sys/time.h>
5538 #ifdef HAVE_SYS_TIME_H
5539 #include <sys/time.h>
5550 static struct utimbuf x; x.actime = x.modtime;
5555 rm -f conftest.
$ac_objext
5556 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5557 (eval $ac_compile) 2>conftest.er1
5559 grep -v '^ *+' conftest.er1
>conftest.err
5561 cat conftest.err
>&5
5562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5563 (exit $ac_status); } &&
5564 { ac_try
='test -z "$ac_c_werror_flag"
5565 || test ! -s conftest.err'
5566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5570 (exit $ac_status); }; } &&
5571 { ac_try
='test -s conftest.$ac_objext'
5572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5576 (exit $ac_status); }; }; then
5577 emacs_cv_struct_utimbuf
=yes
5579 echo "$as_me: failed program was:" >&5
5580 sed 's/^/| /' conftest.
$ac_ext >&5
5582 emacs_cv_struct_utimbuf
=no
5584 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5586 echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
5587 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6
5588 if test $emacs_cv_struct_utimbuf = yes; then
5589 cat >>confdefs.h
<<\_ACEOF
5590 #define HAVE_STRUCT_UTIMBUF 1
5595 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
5596 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
5597 if test "${ac_cv_type_signal+set}" = set; then
5598 echo $ECHO_N "(cached) $ECHO_C" >&6
5600 cat >conftest.
$ac_ext <<_ACEOF
5603 cat confdefs.h
>>conftest.
$ac_ext
5604 cat >>conftest.
$ac_ext <<_ACEOF
5605 /* end confdefs.h. */
5606 #include <sys/types.h>
5612 extern "C" void (*signal (int, void (*)(int)))(int);
5614 void (*signal ()) ();
5625 rm -f conftest.
$ac_objext
5626 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5627 (eval $ac_compile) 2>conftest.er1
5629 grep -v '^ *+' conftest.er1
>conftest.err
5631 cat conftest.err
>&5
5632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5633 (exit $ac_status); } &&
5634 { ac_try
='test -z "$ac_c_werror_flag"
5635 || test ! -s conftest.err'
5636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5640 (exit $ac_status); }; } &&
5641 { ac_try
='test -s conftest.$ac_objext'
5642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5646 (exit $ac_status); }; }; then
5647 ac_cv_type_signal
=void
5649 echo "$as_me: failed program was:" >&5
5650 sed 's/^/| /' conftest.
$ac_ext >&5
5652 ac_cv_type_signal
=int
5654 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5656 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
5657 echo "${ECHO_T}$ac_cv_type_signal" >&6
5659 cat >>confdefs.h
<<_ACEOF
5660 #define RETSIGTYPE $ac_cv_type_signal
5665 echo "$as_me:$LINENO: checking for speed_t" >&5
5666 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6
5667 if test "${emacs_cv_speed_t+set}" = set; then
5668 echo $ECHO_N "(cached) $ECHO_C" >&6
5670 cat >conftest.
$ac_ext <<_ACEOF
5673 cat confdefs.h
>>conftest.
$ac_ext
5674 cat >>conftest.
$ac_ext <<_ACEOF
5675 /* end confdefs.h. */
5676 #include <termios.h>
5685 rm -f conftest.
$ac_objext
5686 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5687 (eval $ac_compile) 2>conftest.er1
5689 grep -v '^ *+' conftest.er1
>conftest.err
5691 cat conftest.err
>&5
5692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5693 (exit $ac_status); } &&
5694 { ac_try
='test -z "$ac_c_werror_flag"
5695 || test ! -s conftest.err'
5696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5700 (exit $ac_status); }; } &&
5701 { ac_try
='test -s conftest.$ac_objext'
5702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5706 (exit $ac_status); }; }; then
5707 emacs_cv_speed_t
=yes
5709 echo "$as_me: failed program was:" >&5
5710 sed 's/^/| /' conftest.
$ac_ext >&5
5713 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5715 echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
5716 echo "${ECHO_T}$emacs_cv_speed_t" >&6
5717 if test $emacs_cv_speed_t = yes; then
5718 cat >>confdefs.h
<<\_ACEOF
5719 #define HAVE_SPEED_T 1
5724 echo "$as_me:$LINENO: checking for struct timeval" >&5
5725 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6
5726 if test "${emacs_cv_struct_timeval+set}" = set; then
5727 echo $ECHO_N "(cached) $ECHO_C" >&6
5729 cat >conftest.
$ac_ext <<_ACEOF
5732 cat confdefs.h
>>conftest.
$ac_ext
5733 cat >>conftest.
$ac_ext <<_ACEOF
5734 /* end confdefs.h. */
5735 #ifdef TIME_WITH_SYS_TIME
5736 #include <sys/time.h>
5739 #ifdef HAVE_SYS_TIME_H
5740 #include <sys/time.h>
5748 static struct timeval x; x.tv_sec = x.tv_usec;
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"
5763 || test ! -s conftest.err'
5764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5768 (exit $ac_status); }; } &&
5769 { ac_try
='test -s conftest.$ac_objext'
5770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5774 (exit $ac_status); }; }; then
5775 emacs_cv_struct_timeval
=yes
5777 echo "$as_me: failed program was:" >&5
5778 sed 's/^/| /' conftest.
$ac_ext >&5
5780 emacs_cv_struct_timeval
=no
5782 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5784 echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
5785 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6
5786 HAVE_TIMEVAL
=$emacs_cv_struct_timeval
5787 if test $emacs_cv_struct_timeval = yes; then
5788 cat >>confdefs.h
<<\_ACEOF
5789 #define HAVE_TIMEVAL 1
5794 echo "$as_me:$LINENO: checking for struct exception" >&5
5795 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6
5796 if test "${emacs_cv_struct_exception+set}" = set; then
5797 echo $ECHO_N "(cached) $ECHO_C" >&6
5799 cat >conftest.
$ac_ext <<_ACEOF
5802 cat confdefs.h
>>conftest.
$ac_ext
5803 cat >>conftest.
$ac_ext <<_ACEOF
5804 /* end confdefs.h. */
5809 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
5814 rm -f conftest.
$ac_objext
5815 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5816 (eval $ac_compile) 2>conftest.er1
5818 grep -v '^ *+' conftest.er1
>conftest.err
5820 cat conftest.err
>&5
5821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5822 (exit $ac_status); } &&
5823 { ac_try
='test -z "$ac_c_werror_flag"
5824 || test ! -s conftest.err'
5825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5829 (exit $ac_status); }; } &&
5830 { ac_try
='test -s conftest.$ac_objext'
5831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5835 (exit $ac_status); }; }; then
5836 emacs_cv_struct_exception
=yes
5838 echo "$as_me: failed program was:" >&5
5839 sed 's/^/| /' conftest.
$ac_ext >&5
5841 emacs_cv_struct_exception
=no
5843 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5845 echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
5846 echo "${ECHO_T}$emacs_cv_struct_exception" >&6
5847 HAVE_EXCEPTION
=$emacs_cv_struct_exception
5848 if test $emacs_cv_struct_exception != yes; then
5849 cat >>confdefs.h
<<\_ACEOF
5850 #define NO_MATHERR 1
5855 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
5856 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
5857 if test "${ac_cv_struct_tm+set}" = set; then
5858 echo $ECHO_N "(cached) $ECHO_C" >&6
5860 cat >conftest.
$ac_ext <<_ACEOF
5863 cat confdefs.h
>>conftest.
$ac_ext
5864 cat >>conftest.
$ac_ext <<_ACEOF
5865 /* end confdefs.h. */
5866 #include <sys/types.h>
5872 struct tm *tp; tp->tm_sec;
5877 rm -f conftest.
$ac_objext
5878 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5879 (eval $ac_compile) 2>conftest.er1
5881 grep -v '^ *+' conftest.er1
>conftest.err
5883 cat conftest.err
>&5
5884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5885 (exit $ac_status); } &&
5886 { ac_try
='test -z "$ac_c_werror_flag"
5887 || test ! -s conftest.err'
5888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5892 (exit $ac_status); }; } &&
5893 { ac_try
='test -s conftest.$ac_objext'
5894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5898 (exit $ac_status); }; }; then
5899 ac_cv_struct_tm
=time.h
5901 echo "$as_me: failed program was:" >&5
5902 sed 's/^/| /' conftest.
$ac_ext >&5
5904 ac_cv_struct_tm
=sys
/time.h
5906 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5908 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
5909 echo "${ECHO_T}$ac_cv_struct_tm" >&6
5910 if test $ac_cv_struct_tm = sys
/time.h
; then
5912 cat >>confdefs.h
<<\_ACEOF
5913 #define TM_IN_SYS_TIME 1
5918 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
5919 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
5920 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
5921 echo $ECHO_N "(cached) $ECHO_C" >&6
5923 cat >conftest.
$ac_ext <<_ACEOF
5926 cat confdefs.h
>>conftest.
$ac_ext
5927 cat >>conftest.
$ac_ext <<_ACEOF
5928 /* end confdefs.h. */
5929 #include <sys/types.h>
5930 #include <$ac_cv_struct_tm>
5936 static struct tm ac_aggr;
5937 if (ac_aggr.tm_zone)
5943 rm -f conftest.
$ac_objext
5944 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5945 (eval $ac_compile) 2>conftest.er1
5947 grep -v '^ *+' conftest.er1
>conftest.err
5949 cat conftest.err
>&5
5950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5951 (exit $ac_status); } &&
5952 { ac_try
='test -z "$ac_c_werror_flag"
5953 || test ! -s conftest.err'
5954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5958 (exit $ac_status); }; } &&
5959 { ac_try
='test -s conftest.$ac_objext'
5960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5964 (exit $ac_status); }; }; then
5965 ac_cv_member_struct_tm_tm_zone
=yes
5967 echo "$as_me: failed program was:" >&5
5968 sed 's/^/| /' conftest.
$ac_ext >&5
5970 cat >conftest.
$ac_ext <<_ACEOF
5973 cat confdefs.h
>>conftest.
$ac_ext
5974 cat >>conftest.
$ac_ext <<_ACEOF
5975 /* end confdefs.h. */
5976 #include <sys/types.h>
5977 #include <$ac_cv_struct_tm>
5983 static struct tm ac_aggr;
5984 if (sizeof ac_aggr.tm_zone)
5990 rm -f conftest.
$ac_objext
5991 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5992 (eval $ac_compile) 2>conftest.er1
5994 grep -v '^ *+' conftest.er1
>conftest.err
5996 cat conftest.err
>&5
5997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5998 (exit $ac_status); } &&
5999 { ac_try
='test -z "$ac_c_werror_flag"
6000 || test ! -s conftest.err'
6001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6005 (exit $ac_status); }; } &&
6006 { ac_try
='test -s conftest.$ac_objext'
6007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6011 (exit $ac_status); }; }; then
6012 ac_cv_member_struct_tm_tm_zone
=yes
6014 echo "$as_me: failed program was:" >&5
6015 sed 's/^/| /' conftest.
$ac_ext >&5
6017 ac_cv_member_struct_tm_tm_zone
=no
6019 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6021 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6023 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
6024 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
6025 if test $ac_cv_member_struct_tm_tm_zone = yes; then
6027 cat >>confdefs.h
<<_ACEOF
6028 #define HAVE_STRUCT_TM_TM_ZONE 1
6034 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6036 cat >>confdefs.h
<<\_ACEOF
6037 #define HAVE_TM_ZONE 1
6041 echo "$as_me:$LINENO: checking for tzname" >&5
6042 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
6043 if test "${ac_cv_var_tzname+set}" = set; then
6044 echo $ECHO_N "(cached) $ECHO_C" >&6
6046 cat >conftest.
$ac_ext <<_ACEOF
6049 cat confdefs.h
>>conftest.
$ac_ext
6050 cat >>conftest.
$ac_ext <<_ACEOF
6051 /* end confdefs.h. */
6053 #ifndef tzname /* For SGI. */
6054 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
6065 rm -f conftest.
$ac_objext conftest
$ac_exeext
6066 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6067 (eval $ac_link) 2>conftest.er1
6069 grep -v '^ *+' conftest.er1
>conftest.err
6071 cat conftest.err
>&5
6072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6073 (exit $ac_status); } &&
6074 { ac_try
='test -z "$ac_c_werror_flag"
6075 || test ! -s conftest.err'
6076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6080 (exit $ac_status); }; } &&
6081 { ac_try
='test -s conftest$ac_exeext'
6082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6086 (exit $ac_status); }; }; then
6087 ac_cv_var_tzname
=yes
6089 echo "$as_me: failed program was:" >&5
6090 sed 's/^/| /' conftest.
$ac_ext >&5
6094 rm -f conftest.err conftest.
$ac_objext \
6095 conftest
$ac_exeext conftest.
$ac_ext
6097 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
6098 echo "${ECHO_T}$ac_cv_var_tzname" >&6
6099 if test $ac_cv_var_tzname = yes; then
6101 cat >>confdefs.h
<<\_ACEOF
6102 #define HAVE_TZNAME 1
6108 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
6109 echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
6110 if test "${emacs_cv_tm_gmtoff+set}" = set; then
6111 echo $ECHO_N "(cached) $ECHO_C" >&6
6113 cat >conftest.
$ac_ext <<_ACEOF
6116 cat confdefs.h
>>conftest.
$ac_ext
6117 cat >>conftest.
$ac_ext <<_ACEOF
6118 /* end confdefs.h. */
6123 struct tm t; t.tm_gmtoff = 0
6128 rm -f conftest.
$ac_objext conftest
$ac_exeext
6129 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6130 (eval $ac_link) 2>conftest.er1
6132 grep -v '^ *+' conftest.er1
>conftest.err
6134 cat conftest.err
>&5
6135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6136 (exit $ac_status); } &&
6137 { ac_try
='test -z "$ac_c_werror_flag"
6138 || test ! -s conftest.err'
6139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6143 (exit $ac_status); }; } &&
6144 { ac_try
='test -s conftest$ac_exeext'
6145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6149 (exit $ac_status); }; }; then
6150 emacs_cv_tm_gmtoff
=yes
6152 echo "$as_me: failed program was:" >&5
6153 sed 's/^/| /' conftest.
$ac_ext >&5
6155 emacs_cv_tm_gmtoff
=no
6157 rm -f conftest.err conftest.
$ac_objext \
6158 conftest
$ac_exeext conftest.
$ac_ext
6160 echo "$as_me:$LINENO: result: $emacs_cv_tm_gmtoff" >&5
6161 echo "${ECHO_T}$emacs_cv_tm_gmtoff" >&6
6162 if test $emacs_cv_tm_gmtoff = yes; then
6163 cat >>confdefs.h
<<\_ACEOF
6164 #define HAVE_TM_GMTOFF 1
6170 echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
6171 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
6172 if test "${ac_cv_prog_cc_stdc+set}" = set; then
6173 echo $ECHO_N "(cached) $ECHO_C" >&6
6175 ac_cv_prog_cc_stdc
=no
6177 # Don't try gcc -ansi; that turns off useful extensions and
6178 # breaks some systems' header files.
6179 # AIX -qlanglvl=ansi
6180 # Ultrix and OSF/1 -std1
6181 # HP-UX 10.20 and later -Ae
6182 # HP-UX older versions -Aa -D_HPUX_SOURCE
6183 # SVR4 -Xc -D__EXTENSIONS__
6184 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6186 CC
="$ac_save_CC $ac_arg"
6187 cat >conftest.
$ac_ext <<_ACEOF
6190 cat confdefs.h
>>conftest.
$ac_ext
6191 cat >>conftest.
$ac_ext <<_ACEOF
6192 /* end confdefs.h. */
6195 #include <sys/types.h>
6196 #include <sys/stat.h>
6197 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6198 struct buf { int x; };
6199 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6200 static char *e (p, i)
6206 static char *f (char * (*g) (char **, int), char **p, ...)
6211 s = g (p, va_arg (v,int));
6215 int test (int i, double x);
6216 struct s1 {int (*f) (int a);};
6217 struct s2 {int (*f) (double a);};
6218 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6224 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6229 rm -f conftest.
$ac_objext
6230 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6231 (eval $ac_compile) 2>conftest.er1
6233 grep -v '^ *+' conftest.er1
>conftest.err
6235 cat conftest.err
>&5
6236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6237 (exit $ac_status); } &&
6238 { ac_try
='test -z "$ac_c_werror_flag"
6239 || test ! -s conftest.err'
6240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6244 (exit $ac_status); }; } &&
6245 { ac_try
='test -s conftest.$ac_objext'
6246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6250 (exit $ac_status); }; }; then
6251 ac_cv_prog_cc_stdc
="$ac_arg"; break
6253 echo "$as_me: failed program was:" >&5
6254 sed 's/^/| /' conftest.
$ac_ext >&5
6257 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6263 case "x$ac_cv_prog_cc_stdc" in
6265 echo "$as_me:$LINENO: result: none needed" >&5
6266 echo "${ECHO_T}none needed" >&6 ;;
6268 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
6269 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
6270 CC
="$CC $ac_cv_prog_cc_stdc" ;;
6273 echo "$as_me:$LINENO: checking for function prototypes" >&5
6274 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
6275 if test "$ac_cv_prog_cc_stdc" != no
; then
6276 echo "$as_me:$LINENO: result: yes" >&5
6277 echo "${ECHO_T}yes" >&6
6279 cat >>confdefs.h
<<\_ACEOF
6280 #define PROTOTYPES 1
6284 echo "$as_me:$LINENO: result: no" >&5
6285 echo "${ECHO_T}no" >&6
6288 echo "$as_me:$LINENO: checking for working volatile" >&5
6289 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
6290 if test "${ac_cv_c_volatile+set}" = set; then
6291 echo $ECHO_N "(cached) $ECHO_C" >&6
6293 cat >conftest.
$ac_ext <<_ACEOF
6296 cat confdefs.h
>>conftest.
$ac_ext
6297 cat >>conftest.
$ac_ext <<_ACEOF
6298 /* end confdefs.h. */
6310 rm -f conftest.
$ac_objext
6311 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6312 (eval $ac_compile) 2>conftest.er1
6314 grep -v '^ *+' conftest.er1
>conftest.err
6316 cat conftest.err
>&5
6317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6318 (exit $ac_status); } &&
6319 { ac_try
='test -z "$ac_c_werror_flag"
6320 || test ! -s conftest.err'
6321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6325 (exit $ac_status); }; } &&
6326 { ac_try
='test -s conftest.$ac_objext'
6327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6331 (exit $ac_status); }; }; then
6332 ac_cv_c_volatile
=yes
6334 echo "$as_me: failed program was:" >&5
6335 sed 's/^/| /' conftest.
$ac_ext >&5
6339 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6341 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
6342 echo "${ECHO_T}$ac_cv_c_volatile" >&6
6343 if test $ac_cv_c_volatile = no
; then
6345 cat >>confdefs.h
<<\_ACEOF
6351 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
6352 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
6353 if test "${ac_cv_c_const+set}" = set; then
6354 echo $ECHO_N "(cached) $ECHO_C" >&6
6356 cat >conftest.
$ac_ext <<_ACEOF
6359 cat confdefs.h
>>conftest.
$ac_ext
6360 cat >>conftest.
$ac_ext <<_ACEOF
6361 /* end confdefs.h. */
6366 /* FIXME: Include the comments suggested by Paul. */
6368 /* Ultrix mips cc rejects this. */
6369 typedef int charset[2];
6371 /* SunOS 4.1.1 cc rejects this. */
6372 char const *const *ccp;
6374 /* NEC SVR4.0.2 mips cc rejects this. */
6375 struct point {int x, y;};
6376 static struct point const zero = {0,0};
6377 /* AIX XL C 1.02.0.0 rejects this.
6378 It does not let you subtract one const X* pointer from another in
6379 an arm of an if-expression whose if-part is not a constant
6381 const char *g = "string";
6382 ccp = &g + (g ? g-g : 0);
6383 /* HPUX 7.0 cc rejects these. */
6386 ccp = (char const *const *) p;
6387 { /* SCO 3.2v4 cc rejects this. */
6389 char const *s = 0 ? (char *) 0 : (char const *) 0;
6393 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6395 const int *foo = &x[0];
6398 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6399 typedef const int *iptr;
6403 { /* AIX XL C 1.02.0.0 rejects this saying
6404 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6405 struct s { int j; const int *ap[3]; };
6406 struct s *b; b->j = 5;
6408 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6417 rm -f conftest.
$ac_objext
6418 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6419 (eval $ac_compile) 2>conftest.er1
6421 grep -v '^ *+' conftest.er1
>conftest.err
6423 cat conftest.err
>&5
6424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6425 (exit $ac_status); } &&
6426 { ac_try
='test -z "$ac_c_werror_flag"
6427 || test ! -s conftest.err'
6428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6432 (exit $ac_status); }; } &&
6433 { ac_try
='test -s conftest.$ac_objext'
6434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6438 (exit $ac_status); }; }; then
6441 echo "$as_me: failed program was:" >&5
6442 sed 's/^/| /' conftest.
$ac_ext >&5
6446 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6448 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
6449 echo "${ECHO_T}$ac_cv_c_const" >&6
6450 if test $ac_cv_c_const = no
; then
6452 cat >>confdefs.h
<<\_ACEOF
6458 echo "$as_me:$LINENO: checking for void * support" >&5
6459 echo $ECHO_N "checking for void * support... $ECHO_C" >&6
6460 if test "${emacs_cv_void_star+set}" = set; then
6461 echo $ECHO_N "(cached) $ECHO_C" >&6
6463 cat >conftest.
$ac_ext <<_ACEOF
6466 cat confdefs.h
>>conftest.
$ac_ext
6467 cat >>conftest.
$ac_ext <<_ACEOF
6468 /* end confdefs.h. */
6478 rm -f conftest.
$ac_objext
6479 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6480 (eval $ac_compile) 2>conftest.er1
6482 grep -v '^ *+' conftest.er1
>conftest.err
6484 cat conftest.err
>&5
6485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6486 (exit $ac_status); } &&
6487 { ac_try
='test -z "$ac_c_werror_flag"
6488 || test ! -s conftest.err'
6489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6493 (exit $ac_status); }; } &&
6494 { ac_try
='test -s conftest.$ac_objext'
6495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6499 (exit $ac_status); }; }; then
6500 emacs_cv_void_star
=yes
6502 echo "$as_me: failed program was:" >&5
6503 sed 's/^/| /' conftest.
$ac_ext >&5
6505 emacs_cv_void_star
=no
6507 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6509 echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
6510 echo "${ECHO_T}$emacs_cv_void_star" >&6
6511 if test $emacs_cv_void_star = yes; then
6512 cat >>confdefs.h
<<\_ACEOF
6513 #define POINTER_TYPE void
6517 cat >>confdefs.h
<<\_ACEOF
6518 #define POINTER_TYPE char
6523 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6524 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
6525 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y,:./+-,___p_,'`
6526 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
6527 echo $ECHO_N "(cached) $ECHO_C" >&6
6529 cat >conftest.
make <<\_ACEOF
6531 @
echo 'ac_maketemp="$(MAKE)"'
6533 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6534 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
6535 if test -n "$ac_maketemp"; then
6536 eval ac_cv_prog_make_
${ac_make}_set
=yes
6538 eval ac_cv_prog_make_
${ac_make}_set
=no
6542 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
6543 echo "$as_me:$LINENO: result: yes" >&5
6544 echo "${ECHO_T}yes" >&6
6547 echo "$as_me:$LINENO: result: no" >&5
6548 echo "${ECHO_T}no" >&6
6549 SET_MAKE
="MAKE=${MAKE-make}"
6553 echo "$as_me:$LINENO: checking for long file names" >&5
6554 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
6555 if test "${ac_cv_sys_long_file_names+set}" = set; then
6556 echo $ECHO_N "(cached) $ECHO_C" >&6
6558 ac_cv_sys_long_file_names
=yes
6559 # Test for long file names in all the places we know might matter:
6560 # . the current directory, where building will happen
6561 # $prefix/lib where we will be installing things
6562 # $exec_prefix/lib likewise
6563 # eval it to expand exec_prefix.
6564 # $TMPDIR if set, where it might want to write temporary files
6565 # if $TMPDIR is not set:
6566 # /tmp where it might want to write temporary files
6569 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
6572 ac_tmpdirs
='/tmp /var/tmp /usr/tmp'
6574 for ac_dir
in .
$ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
6575 test -d $ac_dir ||
continue
6576 test -w $ac_dir ||
continue # It is less confusing to not echo anything here.
6577 ac_xdir
=$ac_dir/cf$$
6578 (umask 077 && mkdir
$ac_xdir 2>/dev
/null
) ||
continue
6579 ac_tf1
=$ac_xdir/conftest9012345
6580 ac_tf2
=$ac_xdir/conftest9012346
6581 (echo 1 >$ac_tf1) 2>/dev
/null
6582 (echo 2 >$ac_tf2) 2>/dev
/null
6583 ac_val
=`cat $ac_tf1 2>/dev/null`
6584 if test ! -f $ac_tf1 ||
test "$ac_val" != 1; then
6585 ac_cv_sys_long_file_names
=no
6586 rm -rf $ac_xdir 2>/dev
/null
6589 rm -rf $ac_xdir 2>/dev
/null
6592 echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
6593 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
6594 if test $ac_cv_sys_long_file_names = yes; then
6596 cat >>confdefs.h
<<\_ACEOF
6597 #define HAVE_LONG_FILE_NAMES 1
6603 #### Choose a window system.
6605 echo "$as_me:$LINENO: checking for X" >&5
6606 echo $ECHO_N "checking for X... $ECHO_C" >&6
6609 # Check whether --with-x or --without-x was given.
6610 if test "${with_x+set}" = set; then
6614 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
6615 if test "x$with_x" = xno
; then
6616 # The user explicitly disabled X.
6619 if test "x$x_includes" != xNONE
&& test "x$x_libraries" != xNONE
; then
6620 # Both variables are already set.
6623 if test "${ac_cv_have_x+set}" = set; then
6624 echo $ECHO_N "(cached) $ECHO_C" >&6
6626 # One or both of the vars are not set, and there is no cached value.
6627 ac_x_includes
=no ac_x_libraries
=no
6629 if mkdir conftest.dir
; then
6631 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
6632 cat >Imakefile
<<'_ACEOF'
6634 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
6636 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
6637 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6638 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
6639 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
6640 for ac_extension
in a so sl
; do
6641 if test ! -f $ac_im_usrlibdir/libX11.
$ac_extension &&
6642 test -f $ac_im_libdir/libX11.
$ac_extension; then
6643 ac_im_usrlibdir
=$ac_im_libdir; break
6646 # Screen out bogus values from the imake configuration. They are
6647 # bogus both because they are the default anyway, and because
6648 # using them would break gcc on systems where it needs fixed includes.
6649 case $ac_im_incroot in
6651 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
6653 case $ac_im_usrlibdir in
6655 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
6662 # Standard set of common directories for X headers.
6663 # Check X11 before X11Rn because it is often a symlink to the current release.
6675 /usr/local/X11/include
6676 /usr/local/X11R6/include
6677 /usr/local/X11R5/include
6678 /usr/local/X11R4/include
6680 /usr/local/include/X11
6681 /usr/local/include/X11R6
6682 /usr/local/include/X11R5
6683 /usr/local/include/X11R4
6687 /usr/XFree86/include/X11
6691 /usr/unsupported/include
6693 /usr/local/x11r5/include
6694 /usr/lpp/Xamples/include
6696 /usr/openwin/include
6697 /usr/openwin/share/include'
6699 if test "$ac_x_includes" = no
; then
6700 # Guess where to find include files, by looking for Intrinsic.h.
6701 # First, try using that file with no special directory specified.
6702 cat >conftest.
$ac_ext <<_ACEOF
6705 cat confdefs.h
>>conftest.
$ac_ext
6706 cat >>conftest.
$ac_ext <<_ACEOF
6707 /* end confdefs.h. */
6708 #include <X11/Intrinsic.h>
6710 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6711 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6713 grep -v '^ *+' conftest.er1
>conftest.err
6715 cat conftest.err
>&5
6716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6717 (exit $ac_status); } >/dev
/null
; then
6718 if test -s conftest.err
; then
6719 ac_cpp_err
=$ac_c_preproc_warn_flag
6720 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6727 if test -z "$ac_cpp_err"; then
6728 # We can compile using X headers with no special include directory.
6731 echo "$as_me: failed program was:" >&5
6732 sed 's/^/| /' conftest.
$ac_ext >&5
6734 for ac_dir
in $ac_x_header_dirs; do
6735 if test -r "$ac_dir/X11/Intrinsic.h"; then
6736 ac_x_includes
=$ac_dir
6741 rm -f conftest.err conftest.
$ac_ext
6742 fi # $ac_x_includes = no
6744 if test "$ac_x_libraries" = no
; then
6745 # Check for the libraries.
6746 # See if we find them without any special options.
6747 # Don't add to $LIBS permanently.
6750 cat >conftest.
$ac_ext <<_ACEOF
6753 cat confdefs.h
>>conftest.
$ac_ext
6754 cat >>conftest.
$ac_ext <<_ACEOF
6755 /* end confdefs.h. */
6756 #include <X11/Intrinsic.h>
6765 rm -f conftest.
$ac_objext conftest
$ac_exeext
6766 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6767 (eval $ac_link) 2>conftest.er1
6769 grep -v '^ *+' conftest.er1
>conftest.err
6771 cat conftest.err
>&5
6772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6773 (exit $ac_status); } &&
6774 { ac_try
='test -z "$ac_c_werror_flag"
6775 || test ! -s conftest.err'
6776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6780 (exit $ac_status); }; } &&
6781 { ac_try
='test -s conftest$ac_exeext'
6782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6786 (exit $ac_status); }; }; then
6788 # We can link X programs with no special library path.
6791 echo "$as_me: failed program was:" >&5
6792 sed 's/^/| /' conftest.
$ac_ext >&5
6795 for ac_dir
in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
6797 # Don't even attempt the hair of trying to link an X program!
6798 for ac_extension
in a so sl
; do
6799 if test -r $ac_dir/libXt.
$ac_extension; then
6800 ac_x_libraries
=$ac_dir
6806 rm -f conftest.err conftest.
$ac_objext \
6807 conftest
$ac_exeext conftest.
$ac_ext
6808 fi # $ac_x_libraries = no
6810 if test "$ac_x_includes" = no ||
test "$ac_x_libraries" = no
; then
6811 # Didn't find X anywhere. Cache the known absence of X.
6812 ac_cv_have_x
="have_x=no"
6814 # Record where we found X for the cache.
6815 ac_cv_have_x
="have_x=yes \
6816 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
6821 eval "$ac_cv_have_x"
6824 if test "$have_x" != yes; then
6825 echo "$as_me:$LINENO: result: $have_x" >&5
6826 echo "${ECHO_T}$have_x" >&6
6829 # If each of the values was on the command line, it overrides each guess.
6830 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
6831 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
6832 # Update the cache value to reflect the command line values.
6833 ac_cv_have_x
="have_x=yes \
6834 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
6835 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
6836 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
6839 if test "$no_x" = yes; then
6845 if test "${x_libraries}" != NONE
&& test -n "${x_libraries}"; then
6846 LD_SWITCH_X_SITE
=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
6847 LD_SWITCH_X_SITE_AUX
=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
6848 x_default_search_path
=""
6849 for x_library
in `echo ${x_libraries} | sed -e "s/:/ /g"`; do
6851 ${x_library}/X11/%L/%T/%N%C%S:\
6852 ${x_library}/X11/%l/%T/%N%C%S:\
6853 ${x_library}/X11/%T/%N%C%S:\
6854 ${x_library}/X11/%L/%T/%N%S:\
6855 ${x_library}/X11/%l/%T/%N%S:\
6856 ${x_library}/X11/%T/%N%S"
6857 if test x
"${x_default_search_path}" = x
; then
6858 x_default_search_path
=${x_search_path}
6860 x_default_search_path
="${x_search_path}:${x_default_search_path}"
6864 if test "${x_includes}" != NONE
&& test -n "${x_includes}"; then
6865 C_SWITCH_X_SITE
=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
6868 if test x
"${x_includes}" = x
; then
6869 bitmapdir
=/usr
/include
/X11
/bitmaps
6871 # accumulate include directories that have X11 bitmap subdirectories
6873 for bmd
in `echo ${x_includes} | sed -e "s/:/ /g"`; do
6874 if test -d "${bmd}/X11/bitmaps"; then
6875 bmd_acc
="${bmd_acc}:${bmd}/X11/bitmaps"
6877 if test -d "${bmd}/bitmaps"; then
6878 bmd_acc
="${bmd_acc}:${bmd}/bitmaps"
6881 if test ${bmd_acc} != "dummyval"; then
6882 bitmapdir
=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
6886 case "${window_system}" in
6890 case "${with_x_toolkit}" in
6891 athena | lucid
) USE_X_TOOLKIT
=LUCID
;;
6892 motif
) USE_X_TOOLKIT
=MOTIF
;;
6893 no
) USE_X_TOOLKIT
=none
;;
6894 * ) USE_X_TOOLKIT
=maybe
;;
6904 ### If we're using X11, we should use the X menu package.
6907 yes ) HAVE_MENUS
=yes ;;
6910 if test "${opsys}" = "hpux9"; then
6911 case "${x_libraries}" in
6913 opsysfile
="s/hpux9-x11r4.h"
6918 if test "${opsys}" = "hpux9shr"; then
6919 case "${x_libraries}" in
6921 opsysfile
="s/hpux9shxr4.h"
6926 ### Compute the unexec source name from the object name.
6927 UNEXEC_SRC
="`echo ${unexec} | sed 's/\.o/.c/'`"
6929 # Do the opsystem or machine files prohibit the use of the GNU malloc?
6930 # Assume not, until told otherwise.
6933 echo "$as_me:$LINENO: checking for malloc_get_state" >&5
6934 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6
6935 if test "${ac_cv_func_malloc_get_state+set}" = set; then
6936 echo $ECHO_N "(cached) $ECHO_C" >&6
6938 cat >conftest.
$ac_ext <<_ACEOF
6941 cat confdefs.h
>>conftest.
$ac_ext
6942 cat >>conftest.
$ac_ext <<_ACEOF
6943 /* end confdefs.h. */
6944 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
6945 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6946 #define malloc_get_state innocuous_malloc_get_state
6948 /* System header to define __stub macros and hopefully few prototypes,
6949 which can conflict with char malloc_get_state (); below.
6950 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6951 <limits.h> exists even on freestanding compilers. */
6954 # include <limits.h>
6956 # include <assert.h>
6959 #undef malloc_get_state
6961 /* Override any gcc2 internal prototype to avoid an error. */
6966 /* We use char because int might match the return type of a gcc2
6967 builtin and then its argument prototype would still apply. */
6968 char malloc_get_state ();
6969 /* The GNU C library defines this for functions which it implements
6970 to always fail with ENOSYS. Some functions are actually named
6971 something starting with __ and the normal name is an alias. */
6972 #if defined (__stub_malloc_get_state) || defined (__stub___malloc_get_state)
6975 char (*f) () = malloc_get_state;
6984 return f != malloc_get_state;
6989 rm -f conftest.
$ac_objext conftest
$ac_exeext
6990 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6991 (eval $ac_link) 2>conftest.er1
6993 grep -v '^ *+' conftest.er1
>conftest.err
6995 cat conftest.err
>&5
6996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6997 (exit $ac_status); } &&
6998 { ac_try
='test -z "$ac_c_werror_flag"
6999 || test ! -s conftest.err'
7000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7004 (exit $ac_status); }; } &&
7005 { ac_try
='test -s conftest$ac_exeext'
7006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7010 (exit $ac_status); }; }; then
7011 ac_cv_func_malloc_get_state
=yes
7013 echo "$as_me: failed program was:" >&5
7014 sed 's/^/| /' conftest.
$ac_ext >&5
7016 ac_cv_func_malloc_get_state
=no
7018 rm -f conftest.err conftest.
$ac_objext \
7019 conftest
$ac_exeext conftest.
$ac_ext
7021 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
7022 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6
7023 if test $ac_cv_func_malloc_get_state = yes; then
7029 echo "$as_me:$LINENO: checking for malloc_set_state" >&5
7030 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6
7031 if test "${ac_cv_func_malloc_set_state+set}" = set; then
7032 echo $ECHO_N "(cached) $ECHO_C" >&6
7034 cat >conftest.
$ac_ext <<_ACEOF
7037 cat confdefs.h
>>conftest.
$ac_ext
7038 cat >>conftest.
$ac_ext <<_ACEOF
7039 /* end confdefs.h. */
7040 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
7041 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7042 #define malloc_set_state innocuous_malloc_set_state
7044 /* System header to define __stub macros and hopefully few prototypes,
7045 which can conflict with char malloc_set_state (); below.
7046 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7047 <limits.h> exists even on freestanding compilers. */
7050 # include <limits.h>
7052 # include <assert.h>
7055 #undef malloc_set_state
7057 /* Override any gcc2 internal prototype to avoid an error. */
7062 /* We use char because int might match the return type of a gcc2
7063 builtin and then its argument prototype would still apply. */
7064 char malloc_set_state ();
7065 /* The GNU C library defines this for functions which it implements
7066 to always fail with ENOSYS. Some functions are actually named
7067 something starting with __ and the normal name is an alias. */
7068 #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state)
7071 char (*f) () = malloc_set_state;
7080 return f != malloc_set_state;
7085 rm -f conftest.
$ac_objext conftest
$ac_exeext
7086 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7087 (eval $ac_link) 2>conftest.er1
7089 grep -v '^ *+' conftest.er1
>conftest.err
7091 cat conftest.err
>&5
7092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7093 (exit $ac_status); } &&
7094 { ac_try
='test -z "$ac_c_werror_flag"
7095 || test ! -s conftest.err'
7096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7100 (exit $ac_status); }; } &&
7101 { ac_try
='test -s conftest$ac_exeext'
7102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7106 (exit $ac_status); }; }; then
7107 ac_cv_func_malloc_set_state
=yes
7109 echo "$as_me: failed program was:" >&5
7110 sed 's/^/| /' conftest.
$ac_ext >&5
7112 ac_cv_func_malloc_set_state
=no
7114 rm -f conftest.err conftest.
$ac_objext \
7115 conftest
$ac_exeext conftest.
$ac_ext
7117 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
7118 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6
7119 if test $ac_cv_func_malloc_set_state = yes; then
7125 echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
7126 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6
7127 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
7128 echo $ECHO_N "(cached) $ECHO_C" >&6
7130 cat >conftest.
$ac_ext <<_ACEOF
7133 cat confdefs.h
>>conftest.
$ac_ext
7134 cat >>conftest.
$ac_ext <<_ACEOF
7135 /* end confdefs.h. */
7136 extern void (* __after_morecore_hook)();
7140 __after_morecore_hook = 0
7145 rm -f conftest.
$ac_objext conftest
$ac_exeext
7146 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7147 (eval $ac_link) 2>conftest.er1
7149 grep -v '^ *+' conftest.er1
>conftest.err
7151 cat conftest.err
>&5
7152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7153 (exit $ac_status); } &&
7154 { ac_try
='test -z "$ac_c_werror_flag"
7155 || test ! -s conftest.err'
7156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7160 (exit $ac_status); }; } &&
7161 { ac_try
='test -s conftest$ac_exeext'
7162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7166 (exit $ac_status); }; }; then
7167 emacs_cv_var___after_morecore_hook
=yes
7169 echo "$as_me: failed program was:" >&5
7170 sed 's/^/| /' conftest.
$ac_ext >&5
7172 emacs_cv_var___after_morecore_hook
=no
7174 rm -f conftest.err conftest.
$ac_objext \
7175 conftest
$ac_exeext conftest.
$ac_ext
7177 echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
7178 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6
7179 if test $emacs_cv_var___after_morecore_hook = no
; then
7182 if test "${system_malloc}" = "yes"; then
7185 (The GNU allocators don't work with this system configuration.)"
7187 if test "$doug_lea_malloc" = "yes" ; then
7188 if test "$GNU_MALLOC" = yes ; then
7190 (Using Doug Lea's new malloc from the GNU C Library.)"
7192 cat >>confdefs.h
<<\_ACEOF
7193 #define DOUG_LEA_MALLOC 1
7198 if test x
"${REL_ALLOC}" = x
; then
7199 REL_ALLOC
=${GNU_MALLOC}
7206 for ac_header
in stdlib.h unistd.h sys
/stat.h
7208 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7209 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7210 echo "$as_me:$LINENO: checking for $ac_header" >&5
7211 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7212 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7213 echo $ECHO_N "(cached) $ECHO_C" >&6
7215 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7216 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7218 # Is the header compilable?
7219 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7220 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7221 cat >conftest.
$ac_ext <<_ACEOF
7224 cat confdefs.h
>>conftest.
$ac_ext
7225 cat >>conftest.
$ac_ext <<_ACEOF
7226 /* end confdefs.h. */
7227 $ac_includes_default
7228 #include <$ac_header>
7230 rm -f conftest.
$ac_objext
7231 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7232 (eval $ac_compile) 2>conftest.er1
7234 grep -v '^ *+' conftest.er1
>conftest.err
7236 cat conftest.err
>&5
7237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7238 (exit $ac_status); } &&
7239 { ac_try
='test -z "$ac_c_werror_flag"
7240 || test ! -s conftest.err'
7241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7245 (exit $ac_status); }; } &&
7246 { ac_try
='test -s conftest.$ac_objext'
7247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7251 (exit $ac_status); }; }; then
7252 ac_header_compiler
=yes
7254 echo "$as_me: failed program was:" >&5
7255 sed 's/^/| /' conftest.
$ac_ext >&5
7257 ac_header_compiler
=no
7259 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7260 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7261 echo "${ECHO_T}$ac_header_compiler" >&6
7263 # Is the header present?
7264 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7265 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7266 cat >conftest.
$ac_ext <<_ACEOF
7269 cat confdefs.h
>>conftest.
$ac_ext
7270 cat >>conftest.
$ac_ext <<_ACEOF
7271 /* end confdefs.h. */
7272 #include <$ac_header>
7274 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7275 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7277 grep -v '^ *+' conftest.er1
>conftest.err
7279 cat conftest.err
>&5
7280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7281 (exit $ac_status); } >/dev
/null
; then
7282 if test -s conftest.err
; then
7283 ac_cpp_err
=$ac_c_preproc_warn_flag
7284 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
7291 if test -z "$ac_cpp_err"; then
7292 ac_header_preproc
=yes
7294 echo "$as_me: failed program was:" >&5
7295 sed 's/^/| /' conftest.
$ac_ext >&5
7297 ac_header_preproc
=no
7299 rm -f conftest.err conftest.
$ac_ext
7300 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7301 echo "${ECHO_T}$ac_header_preproc" >&6
7303 # So? What about this header?
7304 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7306 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7307 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7308 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7309 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7310 ac_header_preproc
=yes
7313 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7314 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7315 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7316 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7317 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7318 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7319 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7320 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7321 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7322 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7323 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7324 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7327 ## ------------------------------------------ ##
7328 ## Report this to the AC_PACKAGE_NAME lists. ##
7329 ## ------------------------------------------ ##
7332 sed "s/^/$as_me: WARNING: /" >&2
7335 echo "$as_me:$LINENO: checking for $ac_header" >&5
7336 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7337 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7338 echo $ECHO_N "(cached) $ECHO_C" >&6
7340 eval "$as_ac_Header=\$ac_header_preproc"
7342 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7343 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7346 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7347 cat >>confdefs.h
<<_ACEOF
7348 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7356 for ac_func
in getpagesize
7358 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7359 echo "$as_me:$LINENO: checking for $ac_func" >&5
7360 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7361 if eval "test \"\${$as_ac_var+set}\" = set"; then
7362 echo $ECHO_N "(cached) $ECHO_C" >&6
7364 cat >conftest.
$ac_ext <<_ACEOF
7367 cat confdefs.h
>>conftest.
$ac_ext
7368 cat >>conftest.
$ac_ext <<_ACEOF
7369 /* end confdefs.h. */
7370 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7371 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7372 #define $ac_func innocuous_$ac_func
7374 /* System header to define __stub macros and hopefully few prototypes,
7375 which can conflict with char $ac_func (); below.
7376 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7377 <limits.h> exists even on freestanding compilers. */
7380 # include <limits.h>
7382 # include <assert.h>
7387 /* Override any gcc2 internal prototype to avoid an error. */
7392 /* We use char because int might match the return type of a gcc2
7393 builtin and then its argument prototype would still apply. */
7395 /* The GNU C library defines this for functions which it implements
7396 to always fail with ENOSYS. Some functions are actually named
7397 something starting with __ and the normal name is an alias. */
7398 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7401 char (*f) () = $ac_func;
7410 return f != $ac_func;
7415 rm -f conftest.
$ac_objext conftest
$ac_exeext
7416 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7417 (eval $ac_link) 2>conftest.er1
7419 grep -v '^ *+' conftest.er1
>conftest.err
7421 cat conftest.err
>&5
7422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7423 (exit $ac_status); } &&
7424 { ac_try
='test -z "$ac_c_werror_flag"
7425 || test ! -s conftest.err'
7426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7430 (exit $ac_status); }; } &&
7431 { ac_try
='test -s conftest$ac_exeext'
7432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7436 (exit $ac_status); }; }; then
7437 eval "$as_ac_var=yes"
7439 echo "$as_me: failed program was:" >&5
7440 sed 's/^/| /' conftest.
$ac_ext >&5
7442 eval "$as_ac_var=no"
7444 rm -f conftest.err conftest.
$ac_objext \
7445 conftest
$ac_exeext conftest.
$ac_ext
7447 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7448 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7449 if test `eval echo '${'$as_ac_var'}'` = yes; then
7450 cat >>confdefs.h
<<_ACEOF
7451 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7457 echo "$as_me:$LINENO: checking for working mmap" >&5
7458 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
7459 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
7460 echo $ECHO_N "(cached) $ECHO_C" >&6
7462 if test "$cross_compiling" = yes; then
7463 ac_cv_func_mmap_fixed_mapped
=no
7465 cat >conftest.
$ac_ext <<_ACEOF
7468 cat confdefs.h
>>conftest.
$ac_ext
7469 cat >>conftest.
$ac_ext <<_ACEOF
7470 /* end confdefs.h. */
7471 /* Thanks to Mike Haertel and Jim Avera for this test.
7472 Here is a matrix of mmap possibilities:
7473 mmap private not fixed
7474 mmap private fixed at somewhere currently unmapped
7475 mmap private fixed at somewhere already mapped
7476 mmap shared not fixed
7477 mmap shared fixed at somewhere currently unmapped
7478 mmap shared fixed at somewhere already mapped
7479 For private mappings, we should verify that changes cannot be read()
7480 back from the file, nor mmap's back from the file at a different
7481 address. (There have been systems where private was not correctly
7482 implemented like the infamous i386 svr4.0, and systems where the
7483 VM page cache was not coherent with the file system buffer cache
7484 like early versions of FreeBSD and possibly contemporary NetBSD.)
7485 For shared mappings, we should conversely verify that changes get
7486 propogated back to all the places they're supposed to be.
7488 Grep wants private fixed already mapped.
7489 The main things grep needs to know about mmap are:
7490 * does it exist and is it safe to write into the mmap'd area
7491 * how to use it (BSD variants) */
7492 #include <sys/types.h>
7494 #include <sys/mman.h>
7496 #if STDC_HEADERS || HAVE_STDLIB_H
7497 # include <stdlib.h>
7502 # include <unistd.h>
7505 # include <sys/stat.h>
7508 /* This mess was copied from the GNU getpagesize.h. */
7509 #if !HAVE_GETPAGESIZE
7510 /* Assume that all systems that can run configure have sys/param.h. */
7511 # if !HAVE_SYS_PARAM_H
7512 # define HAVE_SYS_PARAM_H 1
7515 # ifdef _SC_PAGESIZE
7516 # define getpagesize() sysconf(_SC_PAGESIZE)
7517 # else /* no _SC_PAGESIZE */
7518 # if HAVE_SYS_PARAM_H
7519 # include <sys/param.h>
7520 # ifdef EXEC_PAGESIZE
7521 # define getpagesize() EXEC_PAGESIZE
7522 # else /* no EXEC_PAGESIZE */
7524 # define getpagesize() NBPG * CLSIZE
7527 # endif /* no CLSIZE */
7528 # else /* no NBPG */
7530 # define getpagesize() NBPC
7531 # else /* no NBPC */
7533 # define getpagesize() PAGESIZE
7534 # endif /* PAGESIZE */
7535 # endif /* no NBPC */
7536 # endif /* no NBPG */
7537 # endif /* no EXEC_PAGESIZE */
7538 # else /* no HAVE_SYS_PARAM_H */
7539 # define getpagesize() 8192 /* punt totally */
7540 # endif /* no HAVE_SYS_PARAM_H */
7541 # endif /* no _SC_PAGESIZE */
7543 #endif /* no HAVE_GETPAGESIZE */
7548 char *data, *data2, *data3;
7552 pagesize = getpagesize ();
7554 /* First, make a file with some known garbage in it. */
7555 data = (char *) malloc (pagesize);
7558 for (i = 0; i < pagesize; ++i)
7559 *(data + i) = rand ();
7561 fd = creat ("conftestmmap", 0600);
7564 if (write (fd, data, pagesize) != pagesize)
7568 /* Next, try to mmap the file at a fixed address which already has
7569 something else allocated at it. If we can, also make sure that
7570 we see the same garbage. */
7571 fd = open ("conftestmmap", O_RDWR);
7574 data2 = (char *) malloc (2 * pagesize);
7577 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
7578 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7579 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7581 for (i = 0; i < pagesize; ++i)
7582 if (*(data + i) != *(data2 + i))
7585 /* Finally, make sure that changes to the mapped area do not
7586 percolate back to the file as seen by read(). (This is a bug on
7587 some variants of i386 svr4.0.) */
7588 for (i = 0; i < pagesize; ++i)
7589 *(data2 + i) = *(data2 + i) + 1;
7590 data3 = (char *) malloc (pagesize);
7593 if (read (fd, data3, pagesize) != pagesize)
7595 for (i = 0; i < pagesize; ++i)
7596 if (*(data + i) != *(data3 + i))
7599 unlink ("conftestmmap");
7603 rm -f conftest
$ac_exeext
7604 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7605 (eval $ac_link) 2>&5
7607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7608 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7613 (exit $ac_status); }; }; then
7614 ac_cv_func_mmap_fixed_mapped
=yes
7616 echo "$as_me: program exited with status $ac_status" >&5
7617 echo "$as_me: failed program was:" >&5
7618 sed 's/^/| /' conftest.
$ac_ext >&5
7621 ac_cv_func_mmap_fixed_mapped
=no
7623 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7626 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
7627 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
7628 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7630 cat >>confdefs.h
<<\_ACEOF
7636 if test $use_mmap_for_buffers = yes; then
7640 LIBS
="$libsrc_libs $LIBS"
7643 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
7644 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
7645 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
7646 echo $ECHO_N "(cached) $ECHO_C" >&6
7648 ac_check_lib_save_LIBS
=$LIBS
7650 cat >conftest.
$ac_ext <<_ACEOF
7653 cat confdefs.h
>>conftest.
$ac_ext
7654 cat >>conftest.
$ac_ext <<_ACEOF
7655 /* end confdefs.h. */
7657 /* Override any gcc2 internal prototype to avoid an error. */
7661 /* We use char because int might match the return type of a gcc2
7662 builtin and then its argument prototype would still apply. */
7672 rm -f conftest.
$ac_objext conftest
$ac_exeext
7673 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7674 (eval $ac_link) 2>conftest.er1
7676 grep -v '^ *+' conftest.er1
>conftest.err
7678 cat conftest.err
>&5
7679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7680 (exit $ac_status); } &&
7681 { ac_try
='test -z "$ac_c_werror_flag"
7682 || test ! -s conftest.err'
7683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7687 (exit $ac_status); }; } &&
7688 { ac_try
='test -s conftest$ac_exeext'
7689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7693 (exit $ac_status); }; }; then
7694 ac_cv_lib_dnet_dnet_ntoa
=yes
7696 echo "$as_me: failed program was:" >&5
7697 sed 's/^/| /' conftest.
$ac_ext >&5
7699 ac_cv_lib_dnet_dnet_ntoa
=no
7701 rm -f conftest.err conftest.
$ac_objext \
7702 conftest
$ac_exeext conftest.
$ac_ext
7703 LIBS
=$ac_check_lib_save_LIBS
7705 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
7706 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
7707 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
7708 cat >>confdefs.h
<<_ACEOF
7709 #define HAVE_LIBDNET 1
7717 echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
7718 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6
7719 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
7720 echo $ECHO_N "(cached) $ECHO_C" >&6
7722 ac_check_lib_save_LIBS
=$LIBS
7724 cat >conftest.
$ac_ext <<_ACEOF
7727 cat confdefs.h
>>conftest.
$ac_ext
7728 cat >>conftest.
$ac_ext <<_ACEOF
7729 /* end confdefs.h. */
7740 rm -f conftest.
$ac_objext conftest
$ac_exeext
7741 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7742 (eval $ac_link) 2>conftest.er1
7744 grep -v '^ *+' conftest.er1
>conftest.err
7746 cat conftest.err
>&5
7747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7748 (exit $ac_status); } &&
7749 { ac_try
='test -z "$ac_c_werror_flag"
7750 || test ! -s conftest.err'
7751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7755 (exit $ac_status); }; } &&
7756 { ac_try
='test -s conftest$ac_exeext'
7757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7761 (exit $ac_status); }; }; then
7762 ac_cv_lib_Xbsd_main
=yes
7764 echo "$as_me: failed program was:" >&5
7765 sed 's/^/| /' conftest.
$ac_ext >&5
7767 ac_cv_lib_Xbsd_main
=no
7769 rm -f conftest.err conftest.
$ac_objext \
7770 conftest
$ac_exeext conftest.
$ac_ext
7771 LIBS
=$ac_check_lib_save_LIBS
7773 echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
7774 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6
7775 if test $ac_cv_lib_Xbsd_main = yes; then
7776 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -lXbsd"
7781 echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
7782 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6
7783 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
7784 echo $ECHO_N "(cached) $ECHO_C" >&6
7786 ac_check_lib_save_LIBS
=$LIBS
7787 LIBS
="-lpthreads $LIBS"
7788 cat >conftest.
$ac_ext <<_ACEOF
7791 cat confdefs.h
>>conftest.
$ac_ext
7792 cat >>conftest.
$ac_ext <<_ACEOF
7793 /* end confdefs.h. */
7795 /* Override any gcc2 internal prototype to avoid an error. */
7799 /* We use char because int might match the return type of a gcc2
7800 builtin and then its argument prototype would still apply. */
7810 rm -f conftest.
$ac_objext conftest
$ac_exeext
7811 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7812 (eval $ac_link) 2>conftest.er1
7814 grep -v '^ *+' conftest.er1
>conftest.err
7816 cat conftest.err
>&5
7817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7818 (exit $ac_status); } &&
7819 { ac_try
='test -z "$ac_c_werror_flag"
7820 || test ! -s conftest.err'
7821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7825 (exit $ac_status); }; } &&
7826 { ac_try
='test -s conftest$ac_exeext'
7827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7831 (exit $ac_status); }; }; then
7832 ac_cv_lib_pthreads_cma_open
=yes
7834 echo "$as_me: failed program was:" >&5
7835 sed 's/^/| /' conftest.
$ac_ext >&5
7837 ac_cv_lib_pthreads_cma_open
=no
7839 rm -f conftest.err conftest.
$ac_objext \
7840 conftest
$ac_exeext conftest.
$ac_ext
7841 LIBS
=$ac_check_lib_save_LIBS
7843 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
7844 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6
7845 if test $ac_cv_lib_pthreads_cma_open = yes; then
7846 cat >>confdefs.h
<<_ACEOF
7847 #define HAVE_LIBPTHREADS 1
7850 LIBS
="-lpthreads $LIBS"
7855 echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
7856 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6
7857 if test -d /usr
/X386
/include
; then
7859 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
7863 echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
7864 echo "${ECHO_T}$HAVE_XFREE386" >&6
7866 # Change CFLAGS temporarily so that C_SWITCH_X_SITE gets used
7867 # for the tests that follow. We set it back to REAL_CFLAGS later on.
7869 REAL_CPPFLAGS
="$CPPFLAGS"
7871 if test "${HAVE_X11}" = "yes"; then
7872 DEFS
="$C_SWITCH_X_SITE $DEFS"
7873 LDFLAGS
="$LDFLAGS $LD_SWITCH_X_SITE"
7875 CFLAGS
="$C_SWITCH_X_SITE $CFLAGS"
7876 CPPFLAGS
="$C_SWITCH_X_SITE $CPPFLAGS"
7878 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
7879 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
7880 # but it's more convenient here to set LD_RUN_PATH
7881 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
7882 if test "${x_libraries}" != NONE
&& test -n "${x_libraries}"; then
7883 LD_RUN_PATH
=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
7887 if test "${opsys}" = "gnu-linux"; then
7888 echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
7889 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6
7890 cat >conftest.
$ac_ext <<_ACEOF
7893 cat confdefs.h
>>conftest.
$ac_ext
7894 cat >>conftest.
$ac_ext <<_ACEOF
7895 /* end confdefs.h. */
7900 XOpenDisplay ("foo");
7905 rm -f conftest.
$ac_objext conftest
$ac_exeext
7906 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7907 (eval $ac_link) 2>conftest.er1
7909 grep -v '^ *+' conftest.er1
>conftest.err
7911 cat conftest.err
>&5
7912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7913 (exit $ac_status); } &&
7914 { ac_try
='test -z "$ac_c_werror_flag"
7915 || test ! -s conftest.err'
7916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7920 (exit $ac_status); }; } &&
7921 { ac_try
='test -s conftest$ac_exeext'
7922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7926 (exit $ac_status); }; }; then
7927 xlinux_first_failure
=no
7929 echo "$as_me: failed program was:" >&5
7930 sed 's/^/| /' conftest.
$ac_ext >&5
7932 xlinux_first_failure
=yes
7934 rm -f conftest.err conftest.
$ac_objext \
7935 conftest
$ac_exeext conftest.
$ac_ext
7936 if test "${xlinux_first_failure}" = "yes"; then
7937 OLD_LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE"
7938 OLD_C_SWITCH_X_SITE
="$C_SWITCH_X_SITE"
7939 OLD_CPPFLAGS
="$CPPFLAGS"
7941 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -b i486-linuxaout"
7942 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE -b i486-linuxaout"
7943 CPPFLAGS
="$CPPFLAGS -b i486-linuxaout"
7944 LIBS
="$LIBS -b i486-linuxaout"
7945 cat >conftest.
$ac_ext <<_ACEOF
7948 cat confdefs.h
>>conftest.
$ac_ext
7949 cat >>conftest.
$ac_ext <<_ACEOF
7950 /* end confdefs.h. */
7955 XOpenDisplay ("foo");
7960 rm -f conftest.
$ac_objext conftest
$ac_exeext
7961 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7962 (eval $ac_link) 2>conftest.er1
7964 grep -v '^ *+' conftest.er1
>conftest.err
7966 cat conftest.err
>&5
7967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7968 (exit $ac_status); } &&
7969 { ac_try
='test -z "$ac_c_werror_flag"
7970 || test ! -s conftest.err'
7971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7975 (exit $ac_status); }; } &&
7976 { ac_try
='test -s conftest$ac_exeext'
7977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7981 (exit $ac_status); }; }; then
7982 xlinux_second_failure
=no
7984 echo "$as_me: failed program was:" >&5
7985 sed 's/^/| /' conftest.
$ac_ext >&5
7987 xlinux_second_failure
=yes
7989 rm -f conftest.err conftest.
$ac_objext \
7990 conftest
$ac_exeext conftest.
$ac_ext
7991 if test "${xlinux_second_failure}" = "yes"; then
7992 # If we get the same failure with -b, there is no use adding -b.
7993 # So take it out. This plays safe.
7994 LD_SWITCH_X_SITE
="$OLD_LD_SWITCH_X_SITE"
7995 C_SWITCH_X_SITE
="$OLD_C_SWITCH_X_SITE"
7996 CPPFLAGS
="$OLD_CPPFLAGS"
7998 echo "$as_me:$LINENO: result: no" >&5
7999 echo "${ECHO_T}no" >&6
8001 echo "$as_me:$LINENO: result: yes" >&5
8002 echo "${ECHO_T}yes" >&6
8005 echo "$as_me:$LINENO: result: no" >&5
8006 echo "${ECHO_T}no" >&6
8010 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
8011 # header files included from there.
8012 echo "$as_me:$LINENO: checking for Xkb" >&5
8013 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6
8014 cat >conftest.
$ac_ext <<_ACEOF
8017 cat confdefs.h
>>conftest.
$ac_ext
8018 cat >>conftest.
$ac_ext <<_ACEOF
8019 /* end confdefs.h. */
8020 #include <X11/Xlib.h>
8021 #include <X11/XKBlib.h>
8025 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
8030 rm -f conftest.
$ac_objext conftest
$ac_exeext
8031 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8032 (eval $ac_link) 2>conftest.er1
8034 grep -v '^ *+' conftest.er1
>conftest.err
8036 cat conftest.err
>&5
8037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8038 (exit $ac_status); } &&
8039 { ac_try
='test -z "$ac_c_werror_flag"
8040 || test ! -s conftest.err'
8041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8045 (exit $ac_status); }; } &&
8046 { ac_try
='test -s conftest$ac_exeext'
8047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8051 (exit $ac_status); }; }; then
8054 echo "$as_me: failed program was:" >&5
8055 sed 's/^/| /' conftest.
$ac_ext >&5
8059 rm -f conftest.err conftest.
$ac_objext \
8060 conftest
$ac_exeext conftest.
$ac_ext
8061 echo "$as_me:$LINENO: result: $emacs_xkb" >&5
8062 echo "${ECHO_T}$emacs_xkb" >&6
8063 if test $emacs_xkb = yes; then
8064 cat >>confdefs.h
<<\_ACEOF
8065 #define HAVE_XKBGETKEYBOARD 1
8074 for ac_func
in XrmSetDatabase XScreenResourceString \
8075 XScreenNumberOfScreen XSetWMProtocols
8077 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8078 echo "$as_me:$LINENO: checking for $ac_func" >&5
8079 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8080 if eval "test \"\${$as_ac_var+set}\" = set"; then
8081 echo $ECHO_N "(cached) $ECHO_C" >&6
8083 cat >conftest.
$ac_ext <<_ACEOF
8086 cat confdefs.h
>>conftest.
$ac_ext
8087 cat >>conftest.
$ac_ext <<_ACEOF
8088 /* end confdefs.h. */
8089 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8090 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8091 #define $ac_func innocuous_$ac_func
8093 /* System header to define __stub macros and hopefully few prototypes,
8094 which can conflict with char $ac_func (); below.
8095 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8096 <limits.h> exists even on freestanding compilers. */
8099 # include <limits.h>
8101 # include <assert.h>
8106 /* Override any gcc2 internal prototype to avoid an error. */
8111 /* We use char because int might match the return type of a gcc2
8112 builtin and then its argument prototype would still apply. */
8114 /* The GNU C library defines this for functions which it implements
8115 to always fail with ENOSYS. Some functions are actually named
8116 something starting with __ and the normal name is an alias. */
8117 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8120 char (*f) () = $ac_func;
8129 return f != $ac_func;
8134 rm -f conftest.
$ac_objext conftest
$ac_exeext
8135 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8136 (eval $ac_link) 2>conftest.er1
8138 grep -v '^ *+' conftest.er1
>conftest.err
8140 cat conftest.err
>&5
8141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8142 (exit $ac_status); } &&
8143 { ac_try
='test -z "$ac_c_werror_flag"
8144 || test ! -s conftest.err'
8145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8149 (exit $ac_status); }; } &&
8150 { ac_try
='test -s conftest$ac_exeext'
8151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8155 (exit $ac_status); }; }; then
8156 eval "$as_ac_var=yes"
8158 echo "$as_me: failed program was:" >&5
8159 sed 's/^/| /' conftest.
$ac_ext >&5
8161 eval "$as_ac_var=no"
8163 rm -f conftest.err conftest.
$ac_objext \
8164 conftest
$ac_exeext conftest.
$ac_ext
8166 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8167 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8168 if test `eval echo '${'$as_ac_var'}'` = yes; then
8169 cat >>confdefs.h
<<_ACEOF
8170 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8178 if test "${window_system}" = "x11"; then
8179 echo "$as_me:$LINENO: checking X11 version 6" >&5
8180 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6
8181 if test "${emacs_cv_x11_version_6+set}" = set; then
8182 echo $ECHO_N "(cached) $ECHO_C" >&6
8184 cat >conftest.
$ac_ext <<_ACEOF
8187 cat confdefs.h
>>conftest.
$ac_ext
8188 cat >>conftest.
$ac_ext <<_ACEOF
8189 /* end confdefs.h. */
8190 #include <X11/Xlib.h>
8194 #if XlibSpecificationRelease < 6
8202 rm -f conftest.
$ac_objext conftest
$ac_exeext
8203 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8204 (eval $ac_link) 2>conftest.er1
8206 grep -v '^ *+' conftest.er1
>conftest.err
8208 cat conftest.err
>&5
8209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8210 (exit $ac_status); } &&
8211 { ac_try
='test -z "$ac_c_werror_flag"
8212 || test ! -s conftest.err'
8213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8217 (exit $ac_status); }; } &&
8218 { ac_try
='test -s conftest$ac_exeext'
8219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8223 (exit $ac_status); }; }; then
8224 emacs_cv_x11_version_6
=yes
8226 echo "$as_me: failed program was:" >&5
8227 sed 's/^/| /' conftest.
$ac_ext >&5
8229 emacs_cv_x11_version_6
=no
8231 rm -f conftest.err conftest.
$ac_objext \
8232 conftest
$ac_exeext conftest.
$ac_ext
8235 if test $emacs_cv_x11_version_6 = yes; then
8236 echo "$as_me:$LINENO: result: 6 or newer" >&5
8237 echo "${ECHO_T}6 or newer" >&6
8238 cat >>confdefs.h
<<\_ACEOF
8239 #define HAVE_X11R6 1
8243 echo "$as_me:$LINENO: result: before 6" >&5
8244 echo "${ECHO_T}before 6" >&6
8248 if test "${window_system}" = "x11"; then
8249 echo "$as_me:$LINENO: checking X11 version 5" >&5
8250 echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6
8251 if test "${emacs_cv_x11_version_5+set}" = set; then
8252 echo $ECHO_N "(cached) $ECHO_C" >&6
8254 cat >conftest.
$ac_ext <<_ACEOF
8257 cat confdefs.h
>>conftest.
$ac_ext
8258 cat >>conftest.
$ac_ext <<_ACEOF
8259 /* end confdefs.h. */
8260 #include <X11/Xlib.h>
8264 #if XlibSpecificationRelease < 5
8272 rm -f conftest.
$ac_objext conftest
$ac_exeext
8273 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8274 (eval $ac_link) 2>conftest.er1
8276 grep -v '^ *+' conftest.er1
>conftest.err
8278 cat conftest.err
>&5
8279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8280 (exit $ac_status); } &&
8281 { ac_try
='test -z "$ac_c_werror_flag"
8282 || test ! -s conftest.err'
8283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8287 (exit $ac_status); }; } &&
8288 { ac_try
='test -s conftest$ac_exeext'
8289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8293 (exit $ac_status); }; }; then
8294 emacs_cv_x11_version_5
=yes
8296 echo "$as_me: failed program was:" >&5
8297 sed 's/^/| /' conftest.
$ac_ext >&5
8299 emacs_cv_x11_version_5
=no
8301 rm -f conftest.err conftest.
$ac_objext \
8302 conftest
$ac_exeext conftest.
$ac_ext
8305 if test $emacs_cv_x11_version_5 = yes; then
8306 echo "$as_me:$LINENO: result: 5 or newer" >&5
8307 echo "${ECHO_T}5 or newer" >&6
8309 cat >>confdefs.h
<<\_ACEOF
8310 #define HAVE_X11R5 1
8315 echo "$as_me:$LINENO: result: before 5" >&5
8316 echo "${ECHO_T}before 5" >&6
8320 if test x
"${USE_X_TOOLKIT}" = xmaybe
; then
8321 if test x
"${HAVE_X11R5}" = xyes
; then
8322 echo "$as_me:$LINENO: checking X11 version 5 with Xaw" >&5
8323 echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6
8324 if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then
8325 echo $ECHO_N "(cached) $ECHO_C" >&6
8327 cat >conftest.
$ac_ext <<_ACEOF
8330 cat confdefs.h
>>conftest.
$ac_ext
8331 cat >>conftest.
$ac_ext <<_ACEOF
8332 /* end confdefs.h. */
8334 #include <X11/Intrinsic.h>
8335 #include <X11/Xaw/Simple.h>
8344 rm -f conftest.
$ac_objext conftest
$ac_exeext
8345 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8346 (eval $ac_link) 2>conftest.er1
8348 grep -v '^ *+' conftest.er1
>conftest.err
8350 cat conftest.err
>&5
8351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8352 (exit $ac_status); } &&
8353 { ac_try
='test -z "$ac_c_werror_flag"
8354 || test ! -s conftest.err'
8355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8359 (exit $ac_status); }; } &&
8360 { ac_try
='test -s conftest$ac_exeext'
8361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8365 (exit $ac_status); }; }; then
8366 emacs_cv_x11_version_5_with_xaw
=yes
8368 echo "$as_me: failed program was:" >&5
8369 sed 's/^/| /' conftest.
$ac_ext >&5
8371 emacs_cv_x11_version_5_with_xaw
=no
8373 rm -f conftest.err conftest.
$ac_objext \
8374 conftest
$ac_exeext conftest.
$ac_ext
8377 if test $emacs_cv_x11_version_5_with_xaw = yes; then
8378 echo "$as_me:$LINENO: result: 5 or newer, with Xaw; use toolkit by default" >&5
8379 echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6
8382 echo "$as_me:$LINENO: result: before 5 or no Xaw; do not use toolkit by default" >&5
8383 echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6
8391 X_TOOLKIT_TYPE
=$USE_X_TOOLKIT
8393 if test "${USE_X_TOOLKIT}" != "none"; then
8394 echo "$as_me:$LINENO: checking X11 toolkit version" >&5
8395 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6
8396 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
8397 echo $ECHO_N "(cached) $ECHO_C" >&6
8399 cat >conftest.
$ac_ext <<_ACEOF
8402 cat confdefs.h
>>conftest.
$ac_ext
8403 cat >>conftest.
$ac_ext <<_ACEOF
8404 /* end confdefs.h. */
8405 #include <X11/Intrinsic.h>
8409 #if XtSpecificationRelease < 6
8417 rm -f conftest.
$ac_objext conftest
$ac_exeext
8418 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8419 (eval $ac_link) 2>conftest.er1
8421 grep -v '^ *+' conftest.er1
>conftest.err
8423 cat conftest.err
>&5
8424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8425 (exit $ac_status); } &&
8426 { ac_try
='test -z "$ac_c_werror_flag"
8427 || test ! -s conftest.err'
8428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8432 (exit $ac_status); }; } &&
8433 { ac_try
='test -s conftest$ac_exeext'
8434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8438 (exit $ac_status); }; }; then
8439 emacs_cv_x11_toolkit_version_6
=yes
8441 echo "$as_me: failed program was:" >&5
8442 sed 's/^/| /' conftest.
$ac_ext >&5
8444 emacs_cv_x11_toolkit_version_6
=no
8446 rm -f conftest.err conftest.
$ac_objext \
8447 conftest
$ac_exeext conftest.
$ac_ext
8450 HAVE_X11XTR6
=$emacs_cv_x11_toolkit_version_6
8451 if test $emacs_cv_x11_toolkit_version_6 = yes; then
8452 echo "$as_me:$LINENO: result: 6 or newer" >&5
8453 echo "${ECHO_T}6 or newer" >&6
8454 cat >>confdefs.h
<<\_ACEOF
8455 #define HAVE_X11XTR6 1
8459 echo "$as_me:$LINENO: result: before 6" >&5
8460 echo "${ECHO_T}before 6" >&6
8464 if test x
$HAVE_X11XTR6 = xyes
; then
8465 LIBS
="-lXt -lSM -lICE $LIBS"
8470 echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
8471 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6
8472 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
8473 echo $ECHO_N "(cached) $ECHO_C" >&6
8475 ac_check_lib_save_LIBS
=$LIBS
8477 cat >conftest.
$ac_ext <<_ACEOF
8480 cat confdefs.h
>>conftest.
$ac_ext
8481 cat >>conftest.
$ac_ext <<_ACEOF
8482 /* end confdefs.h. */
8484 /* Override any gcc2 internal prototype to avoid an error. */
8488 /* We use char because int might match the return type of a gcc2
8489 builtin and then its argument prototype would still apply. */
8490 char XmuConvertStandardSelection ();
8494 XmuConvertStandardSelection ();
8499 rm -f conftest.
$ac_objext conftest
$ac_exeext
8500 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8501 (eval $ac_link) 2>conftest.er1
8503 grep -v '^ *+' conftest.er1
>conftest.err
8505 cat conftest.err
>&5
8506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8507 (exit $ac_status); } &&
8508 { ac_try
='test -z "$ac_c_werror_flag"
8509 || test ! -s conftest.err'
8510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8514 (exit $ac_status); }; } &&
8515 { ac_try
='test -s conftest$ac_exeext'
8516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8520 (exit $ac_status); }; }; then
8521 ac_cv_lib_Xmu_XmuConvertStandardSelection
=yes
8523 echo "$as_me: failed program was:" >&5
8524 sed 's/^/| /' conftest.
$ac_ext >&5
8526 ac_cv_lib_Xmu_XmuConvertStandardSelection
=no
8528 rm -f conftest.err conftest.
$ac_objext \
8529 conftest
$ac_exeext conftest.
$ac_ext
8530 LIBS
=$ac_check_lib_save_LIBS
8532 echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
8533 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6
8534 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
8535 cat >>confdefs.h
<<_ACEOF
8536 #define HAVE_LIBXMU 1
8543 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no
&& LIBS
="$OLDLIBS"
8546 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
8547 if test "${HAVE_X11}" = "yes"; then
8548 if test "${USE_X_TOOLKIT}" != "none"; then
8550 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
8551 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
8552 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
8553 echo $ECHO_N "(cached) $ECHO_C" >&6
8555 ac_check_lib_save_LIBS
=$LIBS
8557 cat >conftest.
$ac_ext <<_ACEOF
8560 cat confdefs.h
>>conftest.
$ac_ext
8561 cat >>conftest.
$ac_ext <<_ACEOF
8562 /* end confdefs.h. */
8564 /* Override any gcc2 internal prototype to avoid an error. */
8568 /* We use char because int might match the return type of a gcc2
8569 builtin and then its argument prototype would still apply. */
8570 char XShapeQueryExtension ();
8574 XShapeQueryExtension ();
8579 rm -f conftest.
$ac_objext conftest
$ac_exeext
8580 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8581 (eval $ac_link) 2>conftest.er1
8583 grep -v '^ *+' conftest.er1
>conftest.err
8585 cat conftest.err
>&5
8586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8587 (exit $ac_status); } &&
8588 { ac_try
='test -z "$ac_c_werror_flag"
8589 || test ! -s conftest.err'
8590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8594 (exit $ac_status); }; } &&
8595 { ac_try
='test -s conftest$ac_exeext'
8596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8600 (exit $ac_status); }; }; then
8601 ac_cv_lib_Xext_XShapeQueryExtension
=yes
8603 echo "$as_me: failed program was:" >&5
8604 sed 's/^/| /' conftest.
$ac_ext >&5
8606 ac_cv_lib_Xext_XShapeQueryExtension
=no
8608 rm -f conftest.err conftest.
$ac_objext \
8609 conftest
$ac_exeext conftest.
$ac_ext
8610 LIBS
=$ac_check_lib_save_LIBS
8612 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
8613 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
8614 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
8615 cat >>confdefs.h
<<_ACEOF
8616 #define HAVE_LIBXEXT 1
8626 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
8627 echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
8628 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6
8629 if test "${emacs_cv_motif_version_2_1+set}" = set; then
8630 echo $ECHO_N "(cached) $ECHO_C" >&6
8632 cat >conftest.
$ac_ext <<_ACEOF
8635 cat confdefs.h
>>conftest.
$ac_ext
8636 cat >>conftest.
$ac_ext <<_ACEOF
8637 /* end confdefs.h. */
8642 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
8645 Motif version prior to 2.1.
8651 rm -f conftest.
$ac_objext
8652 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8653 (eval $ac_compile) 2>conftest.er1
8655 grep -v '^ *+' conftest.er1
>conftest.err
8657 cat conftest.err
>&5
8658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8659 (exit $ac_status); } &&
8660 { ac_try
='test -z "$ac_c_werror_flag"
8661 || test ! -s conftest.err'
8662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8666 (exit $ac_status); }; } &&
8667 { ac_try
='test -s conftest.$ac_objext'
8668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8672 (exit $ac_status); }; }; then
8673 emacs_cv_motif_version_2_1
=yes
8675 echo "$as_me: failed program was:" >&5
8676 sed 's/^/| /' conftest.
$ac_ext >&5
8678 emacs_cv_motif_version_2_1
=no
8680 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8682 echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
8683 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6
8684 HAVE_MOTIF_2_1
=$emacs_cv_motif_version_2_1
8685 if test $emacs_cv_motif_version_2_1 = yes; then
8687 cat >>confdefs.h
<<\_ACEOF
8688 #define HAVE_MOTIF_2_1 1
8691 echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
8692 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6
8693 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
8694 echo $ECHO_N "(cached) $ECHO_C" >&6
8696 ac_check_lib_save_LIBS
=$LIBS
8698 cat >conftest.
$ac_ext <<_ACEOF
8701 cat confdefs.h
>>conftest.
$ac_ext
8702 cat >>conftest.
$ac_ext <<_ACEOF
8703 /* end confdefs.h. */
8705 /* Override any gcc2 internal prototype to avoid an error. */
8709 /* We use char because int might match the return type of a gcc2
8710 builtin and then its argument prototype would still apply. */
8711 char XpCreateContext ();
8720 rm -f conftest.
$ac_objext conftest
$ac_exeext
8721 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8722 (eval $ac_link) 2>conftest.er1
8724 grep -v '^ *+' conftest.er1
>conftest.err
8726 cat conftest.err
>&5
8727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8728 (exit $ac_status); } &&
8729 { ac_try
='test -z "$ac_c_werror_flag"
8730 || test ! -s conftest.err'
8731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8735 (exit $ac_status); }; } &&
8736 { ac_try
='test -s conftest$ac_exeext'
8737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8741 (exit $ac_status); }; }; then
8742 ac_cv_lib_Xp_XpCreateContext
=yes
8744 echo "$as_me: failed program was:" >&5
8745 sed 's/^/| /' conftest.
$ac_ext >&5
8747 ac_cv_lib_Xp_XpCreateContext
=no
8749 rm -f conftest.err conftest.
$ac_objext \
8750 conftest
$ac_exeext conftest.
$ac_ext
8751 LIBS
=$ac_check_lib_save_LIBS
8753 echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
8754 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6
8755 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
8759 if test ${HAVE_LIBXP} = yes; then
8760 cat >>confdefs.h
<<\_ACEOF
8761 #define HAVE_LIBXP 1
8768 ### Is -lXaw3d available?
8770 if test "${HAVE_X11}" = "yes"; then
8771 if test "${USE_X_TOOLKIT}" != "none"; then
8772 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
8773 echo "$as_me:$LINENO: checking for X11/Xaw3d/Scrollbar.h" >&5
8774 echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6
8775 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
8776 echo $ECHO_N "(cached) $ECHO_C" >&6
8778 echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
8779 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6
8781 # Is the header compilable?
8782 echo "$as_me:$LINENO: checking X11/Xaw3d/Scrollbar.h usability" >&5
8783 echo $ECHO_N "checking X11/Xaw3d/Scrollbar.h usability... $ECHO_C" >&6
8784 cat >conftest.
$ac_ext <<_ACEOF
8787 cat confdefs.h
>>conftest.
$ac_ext
8788 cat >>conftest.
$ac_ext <<_ACEOF
8789 /* end confdefs.h. */
8790 $ac_includes_default
8791 #include <X11/Xaw3d/Scrollbar.h>
8793 rm -f conftest.
$ac_objext
8794 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8795 (eval $ac_compile) 2>conftest.er1
8797 grep -v '^ *+' conftest.er1
>conftest.err
8799 cat conftest.err
>&5
8800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8801 (exit $ac_status); } &&
8802 { ac_try
='test -z "$ac_c_werror_flag"
8803 || test ! -s conftest.err'
8804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8808 (exit $ac_status); }; } &&
8809 { ac_try
='test -s conftest.$ac_objext'
8810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8814 (exit $ac_status); }; }; then
8815 ac_header_compiler
=yes
8817 echo "$as_me: failed program was:" >&5
8818 sed 's/^/| /' conftest.
$ac_ext >&5
8820 ac_header_compiler
=no
8822 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8823 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8824 echo "${ECHO_T}$ac_header_compiler" >&6
8826 # Is the header present?
8827 echo "$as_me:$LINENO: checking X11/Xaw3d/Scrollbar.h presence" >&5
8828 echo $ECHO_N "checking X11/Xaw3d/Scrollbar.h presence... $ECHO_C" >&6
8829 cat >conftest.
$ac_ext <<_ACEOF
8832 cat confdefs.h
>>conftest.
$ac_ext
8833 cat >>conftest.
$ac_ext <<_ACEOF
8834 /* end confdefs.h. */
8835 #include <X11/Xaw3d/Scrollbar.h>
8837 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8838 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8840 grep -v '^ *+' conftest.er1
>conftest.err
8842 cat conftest.err
>&5
8843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8844 (exit $ac_status); } >/dev
/null
; then
8845 if test -s conftest.err
; then
8846 ac_cpp_err
=$ac_c_preproc_warn_flag
8847 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
8854 if test -z "$ac_cpp_err"; then
8855 ac_header_preproc
=yes
8857 echo "$as_me: failed program was:" >&5
8858 sed 's/^/| /' conftest.
$ac_ext >&5
8860 ac_header_preproc
=no
8862 rm -f conftest.err conftest.
$ac_ext
8863 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8864 echo "${ECHO_T}$ac_header_preproc" >&6
8866 # So? What about this header?
8867 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8869 { echo "$as_me:$LINENO: WARNING: X11/Xaw3d/Scrollbar.h: accepted by the compiler, rejected by the preprocessor!" >&5
8870 echo "$as_me: WARNING: X11/Xaw3d/Scrollbar.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8871 { echo "$as_me:$LINENO: WARNING: X11/Xaw3d/Scrollbar.h: proceeding with the compiler's result" >&5
8872 echo "$as_me: WARNING: X11/Xaw3d/Scrollbar.h: proceeding with the compiler's result" >&2;}
8873 ac_header_preproc
=yes
8876 { echo "$as_me:$LINENO: WARNING: X11/Xaw3d/Scrollbar.h: present but cannot be compiled" >&5
8877 echo "$as_me: WARNING: X11/Xaw3d/Scrollbar.h: present but cannot be compiled" >&2;}
8878 { echo "$as_me:$LINENO: WARNING: X11/Xaw3d/Scrollbar.h: check for missing prerequisite headers?" >&5
8879 echo "$as_me: WARNING: X11/Xaw3d/Scrollbar.h: check for missing prerequisite headers?" >&2;}
8880 { echo "$as_me:$LINENO: WARNING: X11/Xaw3d/Scrollbar.h: see the Autoconf documentation" >&5
8881 echo "$as_me: WARNING: X11/Xaw3d/Scrollbar.h: see the Autoconf documentation" >&2;}
8882 { echo "$as_me:$LINENO: WARNING: X11/Xaw3d/Scrollbar.h: section \"Present But Cannot Be Compiled\"" >&5
8883 echo "$as_me: WARNING: X11/Xaw3d/Scrollbar.h: section \"Present But Cannot Be Compiled\"" >&2;}
8884 { echo "$as_me:$LINENO: WARNING: X11/Xaw3d/Scrollbar.h: proceeding with the preprocessor's result" >&5
8885 echo "$as_me: WARNING: X11/Xaw3d/Scrollbar.h: proceeding with the preprocessor's result" >&2;}
8886 { echo "$as_me:$LINENO: WARNING: X11/Xaw3d/Scrollbar.h: in the future, the compiler will take precedence" >&5
8887 echo "$as_me: WARNING: X11/Xaw3d/Scrollbar.h: in the future, the compiler will take precedence" >&2;}
8890 ## ------------------------------------------ ##
8891 ## Report this to the AC_PACKAGE_NAME lists. ##
8892 ## ------------------------------------------ ##
8895 sed "s/^/$as_me: WARNING: /" >&2
8898 echo "$as_me:$LINENO: checking for X11/Xaw3d/Scrollbar.h" >&5
8899 echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6
8900 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
8901 echo $ECHO_N "(cached) $ECHO_C" >&6
8903 ac_cv_header_X11_Xaw3d_Scrollbar_h
=$ac_header_preproc
8905 echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
8906 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6
8909 if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then
8910 echo "$as_me:$LINENO: checking for XawScrollbarSetThumb in -lXaw3d" >&5
8911 echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6
8912 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then
8913 echo $ECHO_N "(cached) $ECHO_C" >&6
8915 ac_check_lib_save_LIBS
=$LIBS
8916 LIBS
="-lXaw3d $LIBS"
8917 cat >conftest.
$ac_ext <<_ACEOF
8920 cat confdefs.h
>>conftest.
$ac_ext
8921 cat >>conftest.
$ac_ext <<_ACEOF
8922 /* end confdefs.h. */
8924 /* Override any gcc2 internal prototype to avoid an error. */
8928 /* We use char because int might match the return type of a gcc2
8929 builtin and then its argument prototype would still apply. */
8930 char XawScrollbarSetThumb ();
8934 XawScrollbarSetThumb ();
8939 rm -f conftest.
$ac_objext conftest
$ac_exeext
8940 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8941 (eval $ac_link) 2>conftest.er1
8943 grep -v '^ *+' conftest.er1
>conftest.err
8945 cat conftest.err
>&5
8946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8947 (exit $ac_status); } &&
8948 { ac_try
='test -z "$ac_c_werror_flag"
8949 || test ! -s conftest.err'
8950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8954 (exit $ac_status); }; } &&
8955 { ac_try
='test -s conftest$ac_exeext'
8956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8960 (exit $ac_status); }; }; then
8961 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=yes
8963 echo "$as_me: failed program was:" >&5
8964 sed 's/^/| /' conftest.
$ac_ext >&5
8966 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=no
8968 rm -f conftest.err conftest.
$ac_objext \
8969 conftest
$ac_exeext conftest.
$ac_ext
8970 LIBS
=$ac_check_lib_save_LIBS
8972 echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
8973 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6
8974 if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then
8981 if test "${HAVE_XAW3D}" = "yes"; then
8982 cat >>confdefs.h
<<\_ACEOF
8983 #define HAVE_XAW3D 1
8991 USE_TOOLKIT_SCROLL_BARS
=no
8992 if test "${with_toolkit_scroll_bars}" != "no"; then
8993 if test "${USE_X_TOOLKIT}" != "none"; then
8994 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
8995 cat >>confdefs.h
<<\_ACEOF
8996 #define USE_TOOLKIT_SCROLL_BARS 1
9000 USE_TOOLKIT_SCROLL_BARS
=yes
9001 elif test "${HAVE_XAW3D}" = "yes"; then
9002 cat >>confdefs.h
<<\_ACEOF
9003 #define USE_TOOLKIT_SCROLL_BARS 1
9006 USE_TOOLKIT_SCROLL_BARS
=yes
9012 if test "${with_xim}" != "no"; then
9013 cat >>confdefs.h
<<\_ACEOF
9019 ### Use -lXpm if available, unless `--with-xpm=no'.
9021 if test "${HAVE_X11}" = "yes"; then
9022 if test "${with_xpm}" != "no"; then
9023 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
9024 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
9025 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
9026 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
9027 echo $ECHO_N "(cached) $ECHO_C" >&6
9029 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
9030 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
9032 # Is the header compilable?
9033 echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
9034 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6
9035 cat >conftest.
$ac_ext <<_ACEOF
9038 cat confdefs.h
>>conftest.
$ac_ext
9039 cat >>conftest.
$ac_ext <<_ACEOF
9040 /* end confdefs.h. */
9041 $ac_includes_default
9042 #include <X11/xpm.h>
9044 rm -f conftest.
$ac_objext
9045 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9046 (eval $ac_compile) 2>conftest.er1
9048 grep -v '^ *+' conftest.er1
>conftest.err
9050 cat conftest.err
>&5
9051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9052 (exit $ac_status); } &&
9053 { ac_try
='test -z "$ac_c_werror_flag"
9054 || test ! -s conftest.err'
9055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9059 (exit $ac_status); }; } &&
9060 { ac_try
='test -s conftest.$ac_objext'
9061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9065 (exit $ac_status); }; }; then
9066 ac_header_compiler
=yes
9068 echo "$as_me: failed program was:" >&5
9069 sed 's/^/| /' conftest.
$ac_ext >&5
9071 ac_header_compiler
=no
9073 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9074 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9075 echo "${ECHO_T}$ac_header_compiler" >&6
9077 # Is the header present?
9078 echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
9079 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6
9080 cat >conftest.
$ac_ext <<_ACEOF
9083 cat confdefs.h
>>conftest.
$ac_ext
9084 cat >>conftest.
$ac_ext <<_ACEOF
9085 /* end confdefs.h. */
9086 #include <X11/xpm.h>
9088 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9089 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9091 grep -v '^ *+' conftest.er1
>conftest.err
9093 cat conftest.err
>&5
9094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9095 (exit $ac_status); } >/dev
/null
; then
9096 if test -s conftest.err
; then
9097 ac_cpp_err
=$ac_c_preproc_warn_flag
9098 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
9105 if test -z "$ac_cpp_err"; then
9106 ac_header_preproc
=yes
9108 echo "$as_me: failed program was:" >&5
9109 sed 's/^/| /' conftest.
$ac_ext >&5
9111 ac_header_preproc
=no
9113 rm -f conftest.err conftest.
$ac_ext
9114 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9115 echo "${ECHO_T}$ac_header_preproc" >&6
9117 # So? What about this header?
9118 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9120 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
9121 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9122 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
9123 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
9124 ac_header_preproc
=yes
9127 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
9128 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
9129 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
9130 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
9131 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
9132 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
9133 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
9134 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
9135 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
9136 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
9137 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
9138 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
9141 ## ------------------------------------------ ##
9142 ## Report this to the AC_PACKAGE_NAME lists. ##
9143 ## ------------------------------------------ ##
9146 sed "s/^/$as_me: WARNING: /" >&2
9149 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
9150 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
9151 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
9152 echo $ECHO_N "(cached) $ECHO_C" >&6
9154 ac_cv_header_X11_xpm_h
=$ac_header_preproc
9156 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
9157 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
9160 if test $ac_cv_header_X11_xpm_h = yes; then
9161 echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
9162 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6
9163 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
9164 echo $ECHO_N "(cached) $ECHO_C" >&6
9166 ac_check_lib_save_LIBS
=$LIBS
9167 LIBS
="-lXpm -lX11 $LIBS"
9168 cat >conftest.
$ac_ext <<_ACEOF
9171 cat confdefs.h
>>conftest.
$ac_ext
9172 cat >>conftest.
$ac_ext <<_ACEOF
9173 /* end confdefs.h. */
9175 /* Override any gcc2 internal prototype to avoid an error. */
9179 /* We use char because int might match the return type of a gcc2
9180 builtin and then its argument prototype would still apply. */
9181 char XpmReadFileToPixmap ();
9185 XpmReadFileToPixmap ();
9190 rm -f conftest.
$ac_objext conftest
$ac_exeext
9191 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9192 (eval $ac_link) 2>conftest.er1
9194 grep -v '^ *+' conftest.er1
>conftest.err
9196 cat conftest.err
>&5
9197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9198 (exit $ac_status); } &&
9199 { ac_try
='test -z "$ac_c_werror_flag"
9200 || test ! -s conftest.err'
9201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9205 (exit $ac_status); }; } &&
9206 { ac_try
='test -s conftest$ac_exeext'
9207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9211 (exit $ac_status); }; }; then
9212 ac_cv_lib_Xpm_XpmReadFileToPixmap
=yes
9214 echo "$as_me: failed program was:" >&5
9215 sed 's/^/| /' conftest.
$ac_ext >&5
9217 ac_cv_lib_Xpm_XpmReadFileToPixmap
=no
9219 rm -f conftest.err conftest.
$ac_objext \
9220 conftest
$ac_exeext conftest.
$ac_ext
9221 LIBS
=$ac_check_lib_save_LIBS
9223 echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
9224 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6
9225 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
9232 if test "${HAVE_XPM}" = "yes"; then
9233 echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
9234 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6
9235 cat >conftest.
$ac_ext <<_ACEOF
9238 cat confdefs.h
>>conftest.
$ac_ext
9239 cat >>conftest.
$ac_ext <<_ACEOF
9240 /* end confdefs.h. */
9241 #include "X11/xpm.h"
9242 #ifndef XpmReturnAllocPixels
9243 no_return_alloc_pixels
9247 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9248 $EGREP "no_return_alloc_pixels" >/dev
/null
2>&1; then
9256 if test "${HAVE_XPM}" = "yes"; then
9257 echo "$as_me:$LINENO: result: yes" >&5
9258 echo "${ECHO_T}yes" >&6
9260 echo "$as_me:$LINENO: result: no" >&5
9261 echo "${ECHO_T}no" >&6
9266 if test "${HAVE_XPM}" = "yes"; then
9267 cat >>confdefs.h
<<\_ACEOF
9274 ### Use -ljpeg if available, unless `--with-jpeg=no'.
9276 if test "${HAVE_X11}" = "yes"; then
9277 if test "${with_jpeg}" != "no"; then
9278 if test "${ac_cv_header_jerror_h+set}" = set; then
9279 echo "$as_me:$LINENO: checking for jerror.h" >&5
9280 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
9281 if test "${ac_cv_header_jerror_h+set}" = set; then
9282 echo $ECHO_N "(cached) $ECHO_C" >&6
9284 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
9285 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
9287 # Is the header compilable?
9288 echo "$as_me:$LINENO: checking jerror.h usability" >&5
9289 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6
9290 cat >conftest.
$ac_ext <<_ACEOF
9293 cat confdefs.h
>>conftest.
$ac_ext
9294 cat >>conftest.
$ac_ext <<_ACEOF
9295 /* end confdefs.h. */
9296 $ac_includes_default
9299 rm -f conftest.
$ac_objext
9300 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9301 (eval $ac_compile) 2>conftest.er1
9303 grep -v '^ *+' conftest.er1
>conftest.err
9305 cat conftest.err
>&5
9306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9307 (exit $ac_status); } &&
9308 { ac_try
='test -z "$ac_c_werror_flag"
9309 || test ! -s conftest.err'
9310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9314 (exit $ac_status); }; } &&
9315 { ac_try
='test -s conftest.$ac_objext'
9316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9320 (exit $ac_status); }; }; then
9321 ac_header_compiler
=yes
9323 echo "$as_me: failed program was:" >&5
9324 sed 's/^/| /' conftest.
$ac_ext >&5
9326 ac_header_compiler
=no
9328 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9329 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9330 echo "${ECHO_T}$ac_header_compiler" >&6
9332 # Is the header present?
9333 echo "$as_me:$LINENO: checking jerror.h presence" >&5
9334 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6
9335 cat >conftest.
$ac_ext <<_ACEOF
9338 cat confdefs.h
>>conftest.
$ac_ext
9339 cat >>conftest.
$ac_ext <<_ACEOF
9340 /* end confdefs.h. */
9343 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9344 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9346 grep -v '^ *+' conftest.er1
>conftest.err
9348 cat conftest.err
>&5
9349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9350 (exit $ac_status); } >/dev
/null
; then
9351 if test -s conftest.err
; then
9352 ac_cpp_err
=$ac_c_preproc_warn_flag
9353 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
9360 if test -z "$ac_cpp_err"; then
9361 ac_header_preproc
=yes
9363 echo "$as_me: failed program was:" >&5
9364 sed 's/^/| /' conftest.
$ac_ext >&5
9366 ac_header_preproc
=no
9368 rm -f conftest.err conftest.
$ac_ext
9369 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9370 echo "${ECHO_T}$ac_header_preproc" >&6
9372 # So? What about this header?
9373 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9375 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
9376 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9377 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
9378 echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
9379 ac_header_preproc
=yes
9382 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
9383 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
9384 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
9385 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
9386 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
9387 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
9388 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
9389 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
9390 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
9391 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
9392 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
9393 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
9396 ## ------------------------------------------ ##
9397 ## Report this to the AC_PACKAGE_NAME lists. ##
9398 ## ------------------------------------------ ##
9401 sed "s/^/$as_me: WARNING: /" >&2
9404 echo "$as_me:$LINENO: checking for jerror.h" >&5
9405 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
9406 if test "${ac_cv_header_jerror_h+set}" = set; then
9407 echo $ECHO_N "(cached) $ECHO_C" >&6
9409 ac_cv_header_jerror_h
=$ac_header_preproc
9411 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
9412 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
9415 if test $ac_cv_header_jerror_h = yes; then
9416 echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
9417 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6
9418 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
9419 echo $ECHO_N "(cached) $ECHO_C" >&6
9421 ac_check_lib_save_LIBS
=$LIBS
9423 cat >conftest.
$ac_ext <<_ACEOF
9426 cat confdefs.h
>>conftest.
$ac_ext
9427 cat >>conftest.
$ac_ext <<_ACEOF
9428 /* end confdefs.h. */
9430 /* Override any gcc2 internal prototype to avoid an error. */
9434 /* We use char because int might match the return type of a gcc2
9435 builtin and then its argument prototype would still apply. */
9436 char jpeg_destroy_compress ();
9440 jpeg_destroy_compress ();
9445 rm -f conftest.
$ac_objext conftest
$ac_exeext
9446 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9447 (eval $ac_link) 2>conftest.er1
9449 grep -v '^ *+' conftest.er1
>conftest.err
9451 cat conftest.err
>&5
9452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9453 (exit $ac_status); } &&
9454 { ac_try
='test -z "$ac_c_werror_flag"
9455 || test ! -s conftest.err'
9456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9460 (exit $ac_status); }; } &&
9461 { ac_try
='test -s conftest$ac_exeext'
9462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9466 (exit $ac_status); }; }; then
9467 ac_cv_lib_jpeg_jpeg_destroy_compress
=yes
9469 echo "$as_me: failed program was:" >&5
9470 sed 's/^/| /' conftest.
$ac_ext >&5
9472 ac_cv_lib_jpeg_jpeg_destroy_compress
=no
9474 rm -f conftest.err conftest.
$ac_objext \
9475 conftest
$ac_exeext conftest.
$ac_ext
9476 LIBS
=$ac_check_lib_save_LIBS
9478 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
9479 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6
9480 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
9489 if test "${HAVE_JPEG}" = "yes"; then
9490 cat >>confdefs.h
<<\_ACEOF
9497 ### Use -lpng if available, unless `--with-png=no'.
9499 if test "${HAVE_X11}" = "yes"; then
9500 if test "${with_png}" != "no"; then
9501 if test "${ac_cv_header_png_h+set}" = set; then
9502 echo "$as_me:$LINENO: checking for png.h" >&5
9503 echo $ECHO_N "checking for png.h... $ECHO_C" >&6
9504 if test "${ac_cv_header_png_h+set}" = set; then
9505 echo $ECHO_N "(cached) $ECHO_C" >&6
9507 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
9508 echo "${ECHO_T}$ac_cv_header_png_h" >&6
9510 # Is the header compilable?
9511 echo "$as_me:$LINENO: checking png.h usability" >&5
9512 echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
9513 cat >conftest.
$ac_ext <<_ACEOF
9516 cat confdefs.h
>>conftest.
$ac_ext
9517 cat >>conftest.
$ac_ext <<_ACEOF
9518 /* end confdefs.h. */
9519 $ac_includes_default
9522 rm -f conftest.
$ac_objext
9523 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9524 (eval $ac_compile) 2>conftest.er1
9526 grep -v '^ *+' conftest.er1
>conftest.err
9528 cat conftest.err
>&5
9529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9530 (exit $ac_status); } &&
9531 { ac_try
='test -z "$ac_c_werror_flag"
9532 || test ! -s conftest.err'
9533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9537 (exit $ac_status); }; } &&
9538 { ac_try
='test -s conftest.$ac_objext'
9539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9543 (exit $ac_status); }; }; then
9544 ac_header_compiler
=yes
9546 echo "$as_me: failed program was:" >&5
9547 sed 's/^/| /' conftest.
$ac_ext >&5
9549 ac_header_compiler
=no
9551 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9552 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9553 echo "${ECHO_T}$ac_header_compiler" >&6
9555 # Is the header present?
9556 echo "$as_me:$LINENO: checking png.h presence" >&5
9557 echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
9558 cat >conftest.
$ac_ext <<_ACEOF
9561 cat confdefs.h
>>conftest.
$ac_ext
9562 cat >>conftest.
$ac_ext <<_ACEOF
9563 /* end confdefs.h. */
9566 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9567 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9569 grep -v '^ *+' conftest.er1
>conftest.err
9571 cat conftest.err
>&5
9572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9573 (exit $ac_status); } >/dev
/null
; then
9574 if test -s conftest.err
; then
9575 ac_cpp_err
=$ac_c_preproc_warn_flag
9576 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
9583 if test -z "$ac_cpp_err"; then
9584 ac_header_preproc
=yes
9586 echo "$as_me: failed program was:" >&5
9587 sed 's/^/| /' conftest.
$ac_ext >&5
9589 ac_header_preproc
=no
9591 rm -f conftest.err conftest.
$ac_ext
9592 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9593 echo "${ECHO_T}$ac_header_preproc" >&6
9595 # So? What about this header?
9596 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9598 { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
9599 echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9600 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5
9601 echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;}
9602 ac_header_preproc
=yes
9605 { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
9606 echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
9607 { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
9608 echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
9609 { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5
9610 echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;}
9611 { echo "$as_me:$LINENO: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&5
9612 echo "$as_me: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&2;}
9613 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
9614 echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
9615 { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5
9616 echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;}
9619 ## ------------------------------------------ ##
9620 ## Report this to the AC_PACKAGE_NAME lists. ##
9621 ## ------------------------------------------ ##
9624 sed "s/^/$as_me: WARNING: /" >&2
9627 echo "$as_me:$LINENO: checking for png.h" >&5
9628 echo $ECHO_N "checking for png.h... $ECHO_C" >&6
9629 if test "${ac_cv_header_png_h+set}" = set; then
9630 echo $ECHO_N "(cached) $ECHO_C" >&6
9632 ac_cv_header_png_h
=$ac_header_preproc
9634 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
9635 echo "${ECHO_T}$ac_cv_header_png_h" >&6
9638 if test $ac_cv_header_png_h = yes; then
9639 echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
9640 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6
9641 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
9642 echo $ECHO_N "(cached) $ECHO_C" >&6
9644 ac_check_lib_save_LIBS
=$LIBS
9645 LIBS
="-lpng -lz -lm $LIBS"
9646 cat >conftest.
$ac_ext <<_ACEOF
9649 cat confdefs.h
>>conftest.
$ac_ext
9650 cat >>conftest.
$ac_ext <<_ACEOF
9651 /* end confdefs.h. */
9653 /* Override any gcc2 internal prototype to avoid an error. */
9657 /* We use char because int might match the return type of a gcc2
9658 builtin and then its argument prototype would still apply. */
9659 char png_get_channels ();
9663 png_get_channels ();
9668 rm -f conftest.
$ac_objext conftest
$ac_exeext
9669 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9670 (eval $ac_link) 2>conftest.er1
9672 grep -v '^ *+' conftest.er1
>conftest.err
9674 cat conftest.err
>&5
9675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9676 (exit $ac_status); } &&
9677 { ac_try
='test -z "$ac_c_werror_flag"
9678 || test ! -s conftest.err'
9679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9683 (exit $ac_status); }; } &&
9684 { ac_try
='test -s conftest$ac_exeext'
9685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9689 (exit $ac_status); }; }; then
9690 ac_cv_lib_png_png_get_channels
=yes
9692 echo "$as_me: failed program was:" >&5
9693 sed 's/^/| /' conftest.
$ac_ext >&5
9695 ac_cv_lib_png_png_get_channels
=no
9697 rm -f conftest.err conftest.
$ac_objext \
9698 conftest
$ac_exeext conftest.
$ac_ext
9699 LIBS
=$ac_check_lib_save_LIBS
9701 echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
9702 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6
9703 if test $ac_cv_lib_png_png_get_channels = yes; then
9712 if test "${HAVE_PNG}" = "yes"; then
9713 cat >>confdefs.h
<<\_ACEOF
9720 ### Use -ltiff if available, unless `--with-tiff=no'.
9722 if test "${HAVE_X11}" = "yes"; then
9723 if test "${with_tiff}" != "no"; then
9724 if test "${ac_cv_header_tiffio_h+set}" = set; then
9725 echo "$as_me:$LINENO: checking for tiffio.h" >&5
9726 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
9727 if test "${ac_cv_header_tiffio_h+set}" = set; then
9728 echo $ECHO_N "(cached) $ECHO_C" >&6
9730 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
9731 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
9733 # Is the header compilable?
9734 echo "$as_me:$LINENO: checking tiffio.h usability" >&5
9735 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
9736 cat >conftest.
$ac_ext <<_ACEOF
9739 cat confdefs.h
>>conftest.
$ac_ext
9740 cat >>conftest.
$ac_ext <<_ACEOF
9741 /* end confdefs.h. */
9742 $ac_includes_default
9745 rm -f conftest.
$ac_objext
9746 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9747 (eval $ac_compile) 2>conftest.er1
9749 grep -v '^ *+' conftest.er1
>conftest.err
9751 cat conftest.err
>&5
9752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9753 (exit $ac_status); } &&
9754 { ac_try
='test -z "$ac_c_werror_flag"
9755 || test ! -s conftest.err'
9756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9760 (exit $ac_status); }; } &&
9761 { ac_try
='test -s conftest.$ac_objext'
9762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9766 (exit $ac_status); }; }; then
9767 ac_header_compiler
=yes
9769 echo "$as_me: failed program was:" >&5
9770 sed 's/^/| /' conftest.
$ac_ext >&5
9772 ac_header_compiler
=no
9774 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9775 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9776 echo "${ECHO_T}$ac_header_compiler" >&6
9778 # Is the header present?
9779 echo "$as_me:$LINENO: checking tiffio.h presence" >&5
9780 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
9781 cat >conftest.
$ac_ext <<_ACEOF
9784 cat confdefs.h
>>conftest.
$ac_ext
9785 cat >>conftest.
$ac_ext <<_ACEOF
9786 /* end confdefs.h. */
9789 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9790 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9792 grep -v '^ *+' conftest.er1
>conftest.err
9794 cat conftest.err
>&5
9795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9796 (exit $ac_status); } >/dev
/null
; then
9797 if test -s conftest.err
; then
9798 ac_cpp_err
=$ac_c_preproc_warn_flag
9799 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
9806 if test -z "$ac_cpp_err"; then
9807 ac_header_preproc
=yes
9809 echo "$as_me: failed program was:" >&5
9810 sed 's/^/| /' conftest.
$ac_ext >&5
9812 ac_header_preproc
=no
9814 rm -f conftest.err conftest.
$ac_ext
9815 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9816 echo "${ECHO_T}$ac_header_preproc" >&6
9818 # So? What about this header?
9819 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9821 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
9822 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9823 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
9824 echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
9825 ac_header_preproc
=yes
9828 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
9829 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
9830 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
9831 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
9832 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
9833 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
9834 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
9835 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
9836 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
9837 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
9838 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
9839 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
9842 ## ------------------------------------------ ##
9843 ## Report this to the AC_PACKAGE_NAME lists. ##
9844 ## ------------------------------------------ ##
9847 sed "s/^/$as_me: WARNING: /" >&2
9850 echo "$as_me:$LINENO: checking for tiffio.h" >&5
9851 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
9852 if test "${ac_cv_header_tiffio_h+set}" = set; then
9853 echo $ECHO_N "(cached) $ECHO_C" >&6
9855 ac_cv_header_tiffio_h
=$ac_header_preproc
9857 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
9858 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
9861 if test $ac_cv_header_tiffio_h = yes; then
9863 # At least one tiff package requires the jpeg library.
9864 if test "${HAVE_JPEG}" = yes; then tifflibs
="-ljpeg $tifflibs"; fi
9865 echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
9866 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6
9867 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
9868 echo $ECHO_N "(cached) $ECHO_C" >&6
9870 ac_check_lib_save_LIBS
=$LIBS
9871 LIBS
="-ltiff $tifflibs $LIBS"
9872 cat >conftest.
$ac_ext <<_ACEOF
9875 cat confdefs.h
>>conftest.
$ac_ext
9876 cat >>conftest.
$ac_ext <<_ACEOF
9877 /* end confdefs.h. */
9879 /* Override any gcc2 internal prototype to avoid an error. */
9883 /* We use char because int might match the return type of a gcc2
9884 builtin and then its argument prototype would still apply. */
9885 char TIFFGetVersion ();
9894 rm -f conftest.
$ac_objext conftest
$ac_exeext
9895 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9896 (eval $ac_link) 2>conftest.er1
9898 grep -v '^ *+' conftest.er1
>conftest.err
9900 cat conftest.err
>&5
9901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9902 (exit $ac_status); } &&
9903 { ac_try
='test -z "$ac_c_werror_flag"
9904 || test ! -s conftest.err'
9905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9909 (exit $ac_status); }; } &&
9910 { ac_try
='test -s conftest$ac_exeext'
9911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9915 (exit $ac_status); }; }; then
9916 ac_cv_lib_tiff_TIFFGetVersion
=yes
9918 echo "$as_me: failed program was:" >&5
9919 sed 's/^/| /' conftest.
$ac_ext >&5
9921 ac_cv_lib_tiff_TIFFGetVersion
=no
9923 rm -f conftest.err conftest.
$ac_objext \
9924 conftest
$ac_exeext conftest.
$ac_ext
9925 LIBS
=$ac_check_lib_save_LIBS
9927 echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
9928 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6
9929 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
9938 if test "${HAVE_TIFF}" = "yes"; then
9939 cat >>confdefs.h
<<\_ACEOF
9946 ### Use -lgif if available, unless `--with-gif=no'.
9948 if test "${HAVE_X11}" = "yes"; then
9949 if test "${with_gif}" != "no"; then
9950 if test "${ac_cv_header_gif_lib_h+set}" = set; then
9951 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
9952 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
9953 if test "${ac_cv_header_gif_lib_h+set}" = set; then
9954 echo $ECHO_N "(cached) $ECHO_C" >&6
9956 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
9957 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
9959 # Is the header compilable?
9960 echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
9961 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6
9962 cat >conftest.
$ac_ext <<_ACEOF
9965 cat confdefs.h
>>conftest.
$ac_ext
9966 cat >>conftest.
$ac_ext <<_ACEOF
9967 /* end confdefs.h. */
9968 $ac_includes_default
9969 #include <gif_lib.h>
9971 rm -f conftest.
$ac_objext
9972 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9973 (eval $ac_compile) 2>conftest.er1
9975 grep -v '^ *+' conftest.er1
>conftest.err
9977 cat conftest.err
>&5
9978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9979 (exit $ac_status); } &&
9980 { ac_try
='test -z "$ac_c_werror_flag"
9981 || test ! -s conftest.err'
9982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9986 (exit $ac_status); }; } &&
9987 { ac_try
='test -s conftest.$ac_objext'
9988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9992 (exit $ac_status); }; }; then
9993 ac_header_compiler
=yes
9995 echo "$as_me: failed program was:" >&5
9996 sed 's/^/| /' conftest.
$ac_ext >&5
9998 ac_header_compiler
=no
10000 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10001 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10002 echo "${ECHO_T}$ac_header_compiler" >&6
10004 # Is the header present?
10005 echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
10006 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6
10007 cat >conftest.
$ac_ext <<_ACEOF
10010 cat confdefs.h
>>conftest.
$ac_ext
10011 cat >>conftest.
$ac_ext <<_ACEOF
10012 /* end confdefs.h. */
10013 #include <gif_lib.h>
10015 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10016 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
10018 grep -v '^ *+' conftest.er1
>conftest.err
10020 cat conftest.err
>&5
10021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10022 (exit $ac_status); } >/dev
/null
; then
10023 if test -s conftest.err
; then
10024 ac_cpp_err
=$ac_c_preproc_warn_flag
10025 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
10032 if test -z "$ac_cpp_err"; then
10033 ac_header_preproc
=yes
10035 echo "$as_me: failed program was:" >&5
10036 sed 's/^/| /' conftest.
$ac_ext >&5
10038 ac_header_preproc
=no
10040 rm -f conftest.err conftest.
$ac_ext
10041 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10042 echo "${ECHO_T}$ac_header_preproc" >&6
10044 # So? What about this header?
10045 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10047 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
10048 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10049 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
10050 echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
10051 ac_header_preproc
=yes
10054 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
10055 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
10056 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
10057 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
10058 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
10059 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
10060 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
10061 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
10062 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
10063 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
10064 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
10065 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
10068 ## ------------------------------------------ ##
10069 ## Report this to the AC_PACKAGE_NAME lists. ##
10070 ## ------------------------------------------ ##
10073 sed "s/^/$as_me: WARNING: /" >&2
10076 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
10077 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
10078 if test "${ac_cv_header_gif_lib_h+set}" = set; then
10079 echo $ECHO_N "(cached) $ECHO_C" >&6
10081 ac_cv_header_gif_lib_h
=$ac_header_preproc
10083 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
10084 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
10087 if test $ac_cv_header_gif_lib_h = yes; then
10088 echo "$as_me:$LINENO: checking for DGifOpen in -lungif" >&5
10089 echo $ECHO_N "checking for DGifOpen in -lungif... $ECHO_C" >&6
10090 if test "${ac_cv_lib_ungif_DGifOpen+set}" = set; then
10091 echo $ECHO_N "(cached) $ECHO_C" >&6
10093 ac_check_lib_save_LIBS
=$LIBS
10094 LIBS
="-lungif $LIBS"
10095 cat >conftest.
$ac_ext <<_ACEOF
10098 cat confdefs.h
>>conftest.
$ac_ext
10099 cat >>conftest.
$ac_ext <<_ACEOF
10100 /* end confdefs.h. */
10102 /* Override any gcc2 internal prototype to avoid an error. */
10106 /* We use char because int might match the return type of a gcc2
10107 builtin and then its argument prototype would still apply. */
10117 rm -f conftest.
$ac_objext conftest
$ac_exeext
10118 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10119 (eval $ac_link) 2>conftest.er1
10121 grep -v '^ *+' conftest.er1
>conftest.err
10123 cat conftest.err
>&5
10124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10125 (exit $ac_status); } &&
10126 { ac_try
='test -z "$ac_c_werror_flag"
10127 || test ! -s conftest.err'
10128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10129 (eval $ac_try) 2>&5
10131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10132 (exit $ac_status); }; } &&
10133 { ac_try
='test -s conftest$ac_exeext'
10134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10135 (eval $ac_try) 2>&5
10137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10138 (exit $ac_status); }; }; then
10139 ac_cv_lib_ungif_DGifOpen
=yes
10141 echo "$as_me: failed program was:" >&5
10142 sed 's/^/| /' conftest.
$ac_ext >&5
10144 ac_cv_lib_ungif_DGifOpen
=no
10146 rm -f conftest.err conftest.
$ac_objext \
10147 conftest
$ac_exeext conftest.
$ac_ext
10148 LIBS
=$ac_check_lib_save_LIBS
10150 echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_DGifOpen" >&5
10151 echo "${ECHO_T}$ac_cv_lib_ungif_DGifOpen" >&6
10152 if test $ac_cv_lib_ungif_DGifOpen = yes; then
10161 if test "${HAVE_GIF}" = "yes"; then
10162 cat >>confdefs.h
<<\_ACEOF
10169 # If netdb.h doesn't declare h_errno, we must declare it by hand.
10170 echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
10171 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6
10172 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
10173 echo $ECHO_N "(cached) $ECHO_C" >&6
10175 cat >conftest.
$ac_ext <<_ACEOF
10178 cat confdefs.h
>>conftest.
$ac_ext
10179 cat >>conftest.
$ac_ext <<_ACEOF
10180 /* end confdefs.h. */
10190 rm -f conftest.
$ac_objext conftest
$ac_exeext
10191 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10192 (eval $ac_link) 2>conftest.er1
10194 grep -v '^ *+' conftest.er1
>conftest.err
10196 cat conftest.err
>&5
10197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10198 (exit $ac_status); } &&
10199 { ac_try
='test -z "$ac_c_werror_flag"
10200 || test ! -s conftest.err'
10201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10202 (eval $ac_try) 2>&5
10204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10205 (exit $ac_status); }; } &&
10206 { ac_try
='test -s conftest$ac_exeext'
10207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10208 (eval $ac_try) 2>&5
10210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10211 (exit $ac_status); }; }; then
10212 emacs_cv_netdb_declares_h_errno
=yes
10214 echo "$as_me: failed program was:" >&5
10215 sed 's/^/| /' conftest.
$ac_ext >&5
10217 emacs_cv_netdb_declares_h_errno
=no
10219 rm -f conftest.err conftest.
$ac_objext \
10220 conftest
$ac_exeext conftest.
$ac_ext
10222 echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
10223 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6
10224 if test $emacs_cv_netdb_declares_h_errno = yes; then
10225 cat >>confdefs.h
<<\_ACEOF
10226 #define HAVE_H_ERRNO 1
10231 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
10232 # for constant arguments. Useless!
10233 echo "$as_me:$LINENO: checking for working alloca.h" >&5
10234 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
10235 if test "${ac_cv_working_alloca_h+set}" = set; then
10236 echo $ECHO_N "(cached) $ECHO_C" >&6
10238 cat >conftest.
$ac_ext <<_ACEOF
10241 cat confdefs.h
>>conftest.
$ac_ext
10242 cat >>conftest.
$ac_ext <<_ACEOF
10243 /* end confdefs.h. */
10244 #include <alloca.h>
10248 char *p = (char *) alloca (2 * sizeof (int));
10253 rm -f conftest.
$ac_objext conftest
$ac_exeext
10254 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10255 (eval $ac_link) 2>conftest.er1
10257 grep -v '^ *+' conftest.er1
>conftest.err
10259 cat conftest.err
>&5
10260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10261 (exit $ac_status); } &&
10262 { ac_try
='test -z "$ac_c_werror_flag"
10263 || test ! -s conftest.err'
10264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10265 (eval $ac_try) 2>&5
10267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10268 (exit $ac_status); }; } &&
10269 { ac_try
='test -s conftest$ac_exeext'
10270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10271 (eval $ac_try) 2>&5
10273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10274 (exit $ac_status); }; }; then
10275 ac_cv_working_alloca_h
=yes
10277 echo "$as_me: failed program was:" >&5
10278 sed 's/^/| /' conftest.
$ac_ext >&5
10280 ac_cv_working_alloca_h
=no
10282 rm -f conftest.err conftest.
$ac_objext \
10283 conftest
$ac_exeext conftest.
$ac_ext
10285 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
10286 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
10287 if test $ac_cv_working_alloca_h = yes; then
10289 cat >>confdefs.h
<<\_ACEOF
10290 #define HAVE_ALLOCA_H 1
10295 echo "$as_me:$LINENO: checking for alloca" >&5
10296 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
10297 if test "${ac_cv_func_alloca_works+set}" = set; then
10298 echo $ECHO_N "(cached) $ECHO_C" >&6
10300 cat >conftest.
$ac_ext <<_ACEOF
10303 cat confdefs.h
>>conftest.
$ac_ext
10304 cat >>conftest.
$ac_ext <<_ACEOF
10305 /* end confdefs.h. */
10307 # define alloca __builtin_alloca
10310 # include <malloc.h>
10311 # define alloca _alloca
10314 # include <alloca.h>
10319 # ifndef alloca /* predefined by HP cc +Olibcalls */
10330 char *p = (char *) alloca (1);
10335 rm -f conftest.
$ac_objext conftest
$ac_exeext
10336 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10337 (eval $ac_link) 2>conftest.er1
10339 grep -v '^ *+' conftest.er1
>conftest.err
10341 cat conftest.err
>&5
10342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10343 (exit $ac_status); } &&
10344 { ac_try
='test -z "$ac_c_werror_flag"
10345 || test ! -s conftest.err'
10346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10347 (eval $ac_try) 2>&5
10349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10350 (exit $ac_status); }; } &&
10351 { ac_try
='test -s conftest$ac_exeext'
10352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10353 (eval $ac_try) 2>&5
10355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10356 (exit $ac_status); }; }; then
10357 ac_cv_func_alloca_works
=yes
10359 echo "$as_me: failed program was:" >&5
10360 sed 's/^/| /' conftest.
$ac_ext >&5
10362 ac_cv_func_alloca_works
=no
10364 rm -f conftest.err conftest.
$ac_objext \
10365 conftest
$ac_exeext conftest.
$ac_ext
10367 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
10368 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
10370 if test $ac_cv_func_alloca_works = yes; then
10372 cat >>confdefs.h
<<\_ACEOF
10373 #define HAVE_ALLOCA 1
10377 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
10378 # that cause trouble. Some versions do not even contain alloca or
10379 # contain a buggy version. If you still want to use their alloca,
10380 # use ar to extract alloca.o from them instead of compiling alloca.c.
10382 ALLOCA
=alloca.
$ac_objext
10384 cat >>confdefs.h
<<\_ACEOF
10389 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
10390 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
10391 if test "${ac_cv_os_cray+set}" = set; then
10392 echo $ECHO_N "(cached) $ECHO_C" >&6
10394 cat >conftest.
$ac_ext <<_ACEOF
10397 cat confdefs.h
>>conftest.
$ac_ext
10398 cat >>conftest.
$ac_ext <<_ACEOF
10399 /* end confdefs.h. */
10400 #if defined(CRAY) && ! defined(CRAY2)
10407 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10408 $EGREP "webecray" >/dev
/null
2>&1; then
10416 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
10417 echo "${ECHO_T}$ac_cv_os_cray" >&6
10418 if test $ac_cv_os_cray = yes; then
10419 for ac_func
in _getb67 GETB67 getb67
; do
10420 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10421 echo "$as_me:$LINENO: checking for $ac_func" >&5
10422 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10423 if eval "test \"\${$as_ac_var+set}\" = set"; then
10424 echo $ECHO_N "(cached) $ECHO_C" >&6
10426 cat >conftest.
$ac_ext <<_ACEOF
10429 cat confdefs.h
>>conftest.
$ac_ext
10430 cat >>conftest.
$ac_ext <<_ACEOF
10431 /* end confdefs.h. */
10432 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10433 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10434 #define $ac_func innocuous_$ac_func
10436 /* System header to define __stub macros and hopefully few prototypes,
10437 which can conflict with char $ac_func (); below.
10438 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10439 <limits.h> exists even on freestanding compilers. */
10442 # include <limits.h>
10444 # include <assert.h>
10449 /* Override any gcc2 internal prototype to avoid an error. */
10454 /* We use char because int might match the return type of a gcc2
10455 builtin and then its argument prototype would still apply. */
10457 /* The GNU C library defines this for functions which it implements
10458 to always fail with ENOSYS. Some functions are actually named
10459 something starting with __ and the normal name is an alias. */
10460 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10463 char (*f) () = $ac_func;
10472 return f != $ac_func;
10477 rm -f conftest.
$ac_objext conftest
$ac_exeext
10478 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10479 (eval $ac_link) 2>conftest.er1
10481 grep -v '^ *+' conftest.er1
>conftest.err
10483 cat conftest.err
>&5
10484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10485 (exit $ac_status); } &&
10486 { ac_try
='test -z "$ac_c_werror_flag"
10487 || test ! -s conftest.err'
10488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10489 (eval $ac_try) 2>&5
10491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10492 (exit $ac_status); }; } &&
10493 { ac_try
='test -s conftest$ac_exeext'
10494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10495 (eval $ac_try) 2>&5
10497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10498 (exit $ac_status); }; }; then
10499 eval "$as_ac_var=yes"
10501 echo "$as_me: failed program was:" >&5
10502 sed 's/^/| /' conftest.
$ac_ext >&5
10504 eval "$as_ac_var=no"
10506 rm -f conftest.err conftest.
$ac_objext \
10507 conftest
$ac_exeext conftest.
$ac_ext
10509 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10510 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10511 if test `eval echo '${'$as_ac_var'}'` = yes; then
10513 cat >>confdefs.h
<<_ACEOF
10514 #define CRAY_STACKSEG_END $ac_func
10523 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
10524 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
10525 if test "${ac_cv_c_stack_direction+set}" = set; then
10526 echo $ECHO_N "(cached) $ECHO_C" >&6
10528 if test "$cross_compiling" = yes; then
10529 ac_cv_c_stack_direction
=0
10531 cat >conftest.
$ac_ext <<_ACEOF
10534 cat confdefs.h
>>conftest.
$ac_ext
10535 cat >>conftest.
$ac_ext <<_ACEOF
10536 /* end confdefs.h. */
10538 find_stack_direction ()
10540 static char *addr = 0;
10545 return find_stack_direction ();
10548 return (&dummy > addr) ? 1 : -1;
10554 exit (find_stack_direction () < 0);
10557 rm -f conftest
$ac_exeext
10558 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10559 (eval $ac_link) 2>&5
10561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10562 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10564 (eval $ac_try) 2>&5
10566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10567 (exit $ac_status); }; }; then
10568 ac_cv_c_stack_direction
=1
10570 echo "$as_me: program exited with status $ac_status" >&5
10571 echo "$as_me: failed program was:" >&5
10572 sed 's/^/| /' conftest.
$ac_ext >&5
10574 ( exit $ac_status )
10575 ac_cv_c_stack_direction
=-1
10577 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
10580 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
10581 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
10583 cat >>confdefs.h
<<_ACEOF
10584 #define STACK_DIRECTION $ac_cv_c_stack_direction
10591 # fmod, logb, and frexp are found in -lm on most systems.
10592 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
10594 echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
10595 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
10596 if test "${ac_cv_lib_m_sqrt+set}" = set; then
10597 echo $ECHO_N "(cached) $ECHO_C" >&6
10599 ac_check_lib_save_LIBS
=$LIBS
10601 cat >conftest.
$ac_ext <<_ACEOF
10604 cat confdefs.h
>>conftest.
$ac_ext
10605 cat >>conftest.
$ac_ext <<_ACEOF
10606 /* end confdefs.h. */
10608 /* Override any gcc2 internal prototype to avoid an error. */
10612 /* We use char because int might match the return type of a gcc2
10613 builtin and then its argument prototype would still apply. */
10623 rm -f conftest.
$ac_objext conftest
$ac_exeext
10624 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10625 (eval $ac_link) 2>conftest.er1
10627 grep -v '^ *+' conftest.er1
>conftest.err
10629 cat conftest.err
>&5
10630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10631 (exit $ac_status); } &&
10632 { ac_try
='test -z "$ac_c_werror_flag"
10633 || test ! -s conftest.err'
10634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10635 (eval $ac_try) 2>&5
10637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10638 (exit $ac_status); }; } &&
10639 { ac_try
='test -s conftest$ac_exeext'
10640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10641 (eval $ac_try) 2>&5
10643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10644 (exit $ac_status); }; }; then
10645 ac_cv_lib_m_sqrt
=yes
10647 echo "$as_me: failed program was:" >&5
10648 sed 's/^/| /' conftest.
$ac_ext >&5
10650 ac_cv_lib_m_sqrt
=no
10652 rm -f conftest.err conftest.
$ac_objext \
10653 conftest
$ac_exeext conftest.
$ac_ext
10654 LIBS
=$ac_check_lib_save_LIBS
10656 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
10657 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
10658 if test $ac_cv_lib_m_sqrt = yes; then
10659 cat >>confdefs.h
<<_ACEOF
10660 #define HAVE_LIBM 1
10668 # Check for mail-locking functions in a "mail" library
10670 echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
10671 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6
10672 if test "${ac_cv_lib_mail_maillock+set}" = set; then
10673 echo $ECHO_N "(cached) $ECHO_C" >&6
10675 ac_check_lib_save_LIBS
=$LIBS
10676 LIBS
="-lmail $LIBS"
10677 cat >conftest.
$ac_ext <<_ACEOF
10680 cat confdefs.h
>>conftest.
$ac_ext
10681 cat >>conftest.
$ac_ext <<_ACEOF
10682 /* end confdefs.h. */
10684 /* Override any gcc2 internal prototype to avoid an error. */
10688 /* We use char because int might match the return type of a gcc2
10689 builtin and then its argument prototype would still apply. */
10699 rm -f conftest.
$ac_objext conftest
$ac_exeext
10700 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10701 (eval $ac_link) 2>conftest.er1
10703 grep -v '^ *+' conftest.er1
>conftest.err
10705 cat conftest.err
>&5
10706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10707 (exit $ac_status); } &&
10708 { ac_try
='test -z "$ac_c_werror_flag"
10709 || test ! -s conftest.err'
10710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10711 (eval $ac_try) 2>&5
10713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10714 (exit $ac_status); }; } &&
10715 { ac_try
='test -s conftest$ac_exeext'
10716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10717 (eval $ac_try) 2>&5
10719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10720 (exit $ac_status); }; }; then
10721 ac_cv_lib_mail_maillock
=yes
10723 echo "$as_me: failed program was:" >&5
10724 sed 's/^/| /' conftest.
$ac_ext >&5
10726 ac_cv_lib_mail_maillock
=no
10728 rm -f conftest.err conftest.
$ac_objext \
10729 conftest
$ac_exeext conftest.
$ac_ext
10730 LIBS
=$ac_check_lib_save_LIBS
10732 echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
10733 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6
10734 if test $ac_cv_lib_mail_maillock = yes; then
10735 cat >>confdefs.h
<<_ACEOF
10736 #define HAVE_LIBMAIL 1
10739 LIBS
="-lmail $LIBS"
10744 echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
10745 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6
10746 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
10747 echo $ECHO_N "(cached) $ECHO_C" >&6
10749 ac_check_lib_save_LIBS
=$LIBS
10750 LIBS
="-llockfile $LIBS"
10751 cat >conftest.
$ac_ext <<_ACEOF
10754 cat confdefs.h
>>conftest.
$ac_ext
10755 cat >>conftest.
$ac_ext <<_ACEOF
10756 /* end confdefs.h. */
10758 /* Override any gcc2 internal prototype to avoid an error. */
10762 /* We use char because int might match the return type of a gcc2
10763 builtin and then its argument prototype would still apply. */
10773 rm -f conftest.
$ac_objext conftest
$ac_exeext
10774 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10775 (eval $ac_link) 2>conftest.er1
10777 grep -v '^ *+' conftest.er1
>conftest.err
10779 cat conftest.err
>&5
10780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10781 (exit $ac_status); } &&
10782 { ac_try
='test -z "$ac_c_werror_flag"
10783 || test ! -s conftest.err'
10784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10785 (eval $ac_try) 2>&5
10787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10788 (exit $ac_status); }; } &&
10789 { ac_try
='test -s conftest$ac_exeext'
10790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10791 (eval $ac_try) 2>&5
10793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10794 (exit $ac_status); }; }; then
10795 ac_cv_lib_lockfile_maillock
=yes
10797 echo "$as_me: failed program was:" >&5
10798 sed 's/^/| /' conftest.
$ac_ext >&5
10800 ac_cv_lib_lockfile_maillock
=no
10802 rm -f conftest.err conftest.
$ac_objext \
10803 conftest
$ac_exeext conftest.
$ac_ext
10804 LIBS
=$ac_check_lib_save_LIBS
10806 echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
10807 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6
10808 if test $ac_cv_lib_lockfile_maillock = yes; then
10809 cat >>confdefs.h
<<_ACEOF
10810 #define HAVE_LIBLOCKFILE 1
10813 LIBS
="-llockfile $LIBS"
10817 # If we have the shared liblockfile, assume we must use it for mail
10818 # locking (e.g. Debian). If we couldn't link against liblockfile
10819 # (no liblockfile.a installed), ensure that we don't need to.
10820 if test "$ac_cv_lib_lockfile_maillock" = no
; then
10821 # Extract the first word of "liblockfile.so", so it can be a program name with args.
10822 set dummy liblockfile.so
; ac_word
=$2
10823 echo "$as_me:$LINENO: checking for $ac_word" >&5
10824 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10825 if test "${ac_cv_prog_liblockfile+set}" = set; then
10826 echo $ECHO_N "(cached) $ECHO_C" >&6
10828 if test -n "$liblockfile"; then
10829 ac_cv_prog_liblockfile
="$liblockfile" # Let the user override the test.
10831 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10832 as_dummy
="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
10833 for as_dir
in $as_dummy
10836 test -z "$as_dir" && as_dir
=.
10837 for ac_exec_ext
in '' $ac_executable_extensions; do
10838 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10839 ac_cv_prog_liblockfile
="yes"
10840 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10846 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile
="no"
10849 liblockfile
=$ac_cv_prog_liblockfile
10850 if test -n "$liblockfile"; then
10851 echo "$as_me:$LINENO: result: $liblockfile" >&5
10852 echo "${ECHO_T}$liblockfile" >&6
10854 echo "$as_me:$LINENO: result: no" >&5
10855 echo "${ECHO_T}no" >&6
10858 if test $ac_cv_prog_liblockfile = yes; then
10859 { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
10860 This probably means that movemail could lose mail.
10861 There may be a \`development' package to install containing liblockfile." >&5
10862 echo "$as_me: error: Shared liblockfile found but can't link against it.
10863 This probably means that movemail could lose mail.
10864 There may be a \`development' package to install containing liblockfile." >&2;}
10865 { (exit 1); exit 1; }; }
10866 else cat >>confdefs.h
<<\_ACEOF
10867 #define LIBMAIL -llockfile
10874 for ac_func
in touchlock
10876 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10877 echo "$as_me:$LINENO: checking for $ac_func" >&5
10878 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10879 if eval "test \"\${$as_ac_var+set}\" = set"; then
10880 echo $ECHO_N "(cached) $ECHO_C" >&6
10882 cat >conftest.
$ac_ext <<_ACEOF
10885 cat confdefs.h
>>conftest.
$ac_ext
10886 cat >>conftest.
$ac_ext <<_ACEOF
10887 /* end confdefs.h. */
10888 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10889 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10890 #define $ac_func innocuous_$ac_func
10892 /* System header to define __stub macros and hopefully few prototypes,
10893 which can conflict with char $ac_func (); below.
10894 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10895 <limits.h> exists even on freestanding compilers. */
10898 # include <limits.h>
10900 # include <assert.h>
10905 /* Override any gcc2 internal prototype to avoid an error. */
10910 /* We use char because int might match the return type of a gcc2
10911 builtin and then its argument prototype would still apply. */
10913 /* The GNU C library defines this for functions which it implements
10914 to always fail with ENOSYS. Some functions are actually named
10915 something starting with __ and the normal name is an alias. */
10916 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10919 char (*f) () = $ac_func;
10928 return f != $ac_func;
10933 rm -f conftest.
$ac_objext conftest
$ac_exeext
10934 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10935 (eval $ac_link) 2>conftest.er1
10937 grep -v '^ *+' conftest.er1
>conftest.err
10939 cat conftest.err
>&5
10940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10941 (exit $ac_status); } &&
10942 { ac_try
='test -z "$ac_c_werror_flag"
10943 || test ! -s conftest.err'
10944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10945 (eval $ac_try) 2>&5
10947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10948 (exit $ac_status); }; } &&
10949 { ac_try
='test -s conftest$ac_exeext'
10950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10951 (eval $ac_try) 2>&5
10953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10954 (exit $ac_status); }; }; then
10955 eval "$as_ac_var=yes"
10957 echo "$as_me: failed program was:" >&5
10958 sed 's/^/| /' conftest.
$ac_ext >&5
10960 eval "$as_ac_var=no"
10962 rm -f conftest.err conftest.
$ac_objext \
10963 conftest
$ac_exeext conftest.
$ac_ext
10965 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10966 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10967 if test `eval echo '${'$as_ac_var'}'` = yes; then
10968 cat >>confdefs.h
<<_ACEOF
10969 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10976 for ac_header
in maillock.h
10978 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10979 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10980 echo "$as_me:$LINENO: checking for $ac_header" >&5
10981 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10982 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10983 echo $ECHO_N "(cached) $ECHO_C" >&6
10985 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10986 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10988 # Is the header compilable?
10989 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10990 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10991 cat >conftest.
$ac_ext <<_ACEOF
10994 cat confdefs.h
>>conftest.
$ac_ext
10995 cat >>conftest.
$ac_ext <<_ACEOF
10996 /* end confdefs.h. */
10997 $ac_includes_default
10998 #include <$ac_header>
11000 rm -f conftest.
$ac_objext
11001 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11002 (eval $ac_compile) 2>conftest.er1
11004 grep -v '^ *+' conftest.er1
>conftest.err
11006 cat conftest.err
>&5
11007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11008 (exit $ac_status); } &&
11009 { ac_try
='test -z "$ac_c_werror_flag"
11010 || test ! -s conftest.err'
11011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11012 (eval $ac_try) 2>&5
11014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11015 (exit $ac_status); }; } &&
11016 { ac_try
='test -s conftest.$ac_objext'
11017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11018 (eval $ac_try) 2>&5
11020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11021 (exit $ac_status); }; }; then
11022 ac_header_compiler
=yes
11024 echo "$as_me: failed program was:" >&5
11025 sed 's/^/| /' conftest.
$ac_ext >&5
11027 ac_header_compiler
=no
11029 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11030 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11031 echo "${ECHO_T}$ac_header_compiler" >&6
11033 # Is the header present?
11034 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11035 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11036 cat >conftest.
$ac_ext <<_ACEOF
11039 cat confdefs.h
>>conftest.
$ac_ext
11040 cat >>conftest.
$ac_ext <<_ACEOF
11041 /* end confdefs.h. */
11042 #include <$ac_header>
11044 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11045 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11047 grep -v '^ *+' conftest.er1
>conftest.err
11049 cat conftest.err
>&5
11050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11051 (exit $ac_status); } >/dev
/null
; then
11052 if test -s conftest.err
; then
11053 ac_cpp_err
=$ac_c_preproc_warn_flag
11054 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
11061 if test -z "$ac_cpp_err"; then
11062 ac_header_preproc
=yes
11064 echo "$as_me: failed program was:" >&5
11065 sed 's/^/| /' conftest.
$ac_ext >&5
11067 ac_header_preproc
=no
11069 rm -f conftest.err conftest.
$ac_ext
11070 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11071 echo "${ECHO_T}$ac_header_preproc" >&6
11073 # So? What about this header?
11074 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11076 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11077 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11078 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11079 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11080 ac_header_preproc
=yes
11083 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11084 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11085 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11086 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11087 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11088 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11089 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11090 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11091 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11092 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11093 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11094 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11097 ## ------------------------------------------ ##
11098 ## Report this to the AC_PACKAGE_NAME lists. ##
11099 ## ------------------------------------------ ##
11102 sed "s/^/$as_me: WARNING: /" >&2
11105 echo "$as_me:$LINENO: checking for $ac_header" >&5
11106 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11107 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11108 echo $ECHO_N "(cached) $ECHO_C" >&6
11110 eval "$as_ac_Header=\$ac_header_preproc"
11112 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11113 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11116 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11117 cat >>confdefs.h
<<_ACEOF
11118 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11172 for ac_func
in gethostname getdomainname dup2 \
11173 rename closedir mkdir
rmdir sysinfo \
11174 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
11175 strerror fpathconf
select mktime euidaccess getpagesize tzset setlocale \
11176 utimes setrlimit setpgid getcwd getwd shutdown strftime getaddrinfo \
11177 __fpending mblen mbrlen strsignal setitimer ualarm index rindex \
11178 gai_strerror mkstemp
11180 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11181 echo "$as_me:$LINENO: checking for $ac_func" >&5
11182 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11183 if eval "test \"\${$as_ac_var+set}\" = set"; then
11184 echo $ECHO_N "(cached) $ECHO_C" >&6
11186 cat >conftest.
$ac_ext <<_ACEOF
11189 cat confdefs.h
>>conftest.
$ac_ext
11190 cat >>conftest.
$ac_ext <<_ACEOF
11191 /* end confdefs.h. */
11192 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11193 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11194 #define $ac_func innocuous_$ac_func
11196 /* System header to define __stub macros and hopefully few prototypes,
11197 which can conflict with char $ac_func (); below.
11198 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11199 <limits.h> exists even on freestanding compilers. */
11202 # include <limits.h>
11204 # include <assert.h>
11209 /* Override any gcc2 internal prototype to avoid an error. */
11214 /* We use char because int might match the return type of a gcc2
11215 builtin and then its argument prototype would still apply. */
11217 /* The GNU C library defines this for functions which it implements
11218 to always fail with ENOSYS. Some functions are actually named
11219 something starting with __ and the normal name is an alias. */
11220 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11223 char (*f) () = $ac_func;
11232 return f != $ac_func;
11237 rm -f conftest.
$ac_objext conftest
$ac_exeext
11238 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11239 (eval $ac_link) 2>conftest.er1
11241 grep -v '^ *+' conftest.er1
>conftest.err
11243 cat conftest.err
>&5
11244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11245 (exit $ac_status); } &&
11246 { ac_try
='test -z "$ac_c_werror_flag"
11247 || test ! -s conftest.err'
11248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11249 (eval $ac_try) 2>&5
11251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11252 (exit $ac_status); }; } &&
11253 { ac_try
='test -s conftest$ac_exeext'
11254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11255 (eval $ac_try) 2>&5
11257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11258 (exit $ac_status); }; }; then
11259 eval "$as_ac_var=yes"
11261 echo "$as_me: failed program was:" >&5
11262 sed 's/^/| /' conftest.
$ac_ext >&5
11264 eval "$as_ac_var=no"
11266 rm -f conftest.err conftest.
$ac_objext \
11267 conftest
$ac_exeext conftest.
$ac_ext
11269 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11270 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11271 if test `eval echo '${'$as_ac_var'}'` = yes; then
11272 cat >>confdefs.h
<<_ACEOF
11273 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11282 for ac_header
in sys
/time.h unistd.h
11284 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11285 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11286 echo "$as_me:$LINENO: checking for $ac_header" >&5
11287 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11288 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11289 echo $ECHO_N "(cached) $ECHO_C" >&6
11291 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11292 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11294 # Is the header compilable?
11295 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11296 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11297 cat >conftest.
$ac_ext <<_ACEOF
11300 cat confdefs.h
>>conftest.
$ac_ext
11301 cat >>conftest.
$ac_ext <<_ACEOF
11302 /* end confdefs.h. */
11303 $ac_includes_default
11304 #include <$ac_header>
11306 rm -f conftest.
$ac_objext
11307 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11308 (eval $ac_compile) 2>conftest.er1
11310 grep -v '^ *+' conftest.er1
>conftest.err
11312 cat conftest.err
>&5
11313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11314 (exit $ac_status); } &&
11315 { ac_try
='test -z "$ac_c_werror_flag"
11316 || test ! -s conftest.err'
11317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11318 (eval $ac_try) 2>&5
11320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11321 (exit $ac_status); }; } &&
11322 { ac_try
='test -s conftest.$ac_objext'
11323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11324 (eval $ac_try) 2>&5
11326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11327 (exit $ac_status); }; }; then
11328 ac_header_compiler
=yes
11330 echo "$as_me: failed program was:" >&5
11331 sed 's/^/| /' conftest.
$ac_ext >&5
11333 ac_header_compiler
=no
11335 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11336 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11337 echo "${ECHO_T}$ac_header_compiler" >&6
11339 # Is the header present?
11340 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11341 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11342 cat >conftest.
$ac_ext <<_ACEOF
11345 cat confdefs.h
>>conftest.
$ac_ext
11346 cat >>conftest.
$ac_ext <<_ACEOF
11347 /* end confdefs.h. */
11348 #include <$ac_header>
11350 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11351 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11353 grep -v '^ *+' conftest.er1
>conftest.err
11355 cat conftest.err
>&5
11356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11357 (exit $ac_status); } >/dev
/null
; then
11358 if test -s conftest.err
; then
11359 ac_cpp_err
=$ac_c_preproc_warn_flag
11360 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
11367 if test -z "$ac_cpp_err"; then
11368 ac_header_preproc
=yes
11370 echo "$as_me: failed program was:" >&5
11371 sed 's/^/| /' conftest.
$ac_ext >&5
11373 ac_header_preproc
=no
11375 rm -f conftest.err conftest.
$ac_ext
11376 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11377 echo "${ECHO_T}$ac_header_preproc" >&6
11379 # So? What about this header?
11380 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11382 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11383 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11384 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11385 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11386 ac_header_preproc
=yes
11389 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11390 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11391 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11392 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11393 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11394 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11395 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11396 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11397 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11398 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11399 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11400 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11403 ## ------------------------------------------ ##
11404 ## Report this to the AC_PACKAGE_NAME lists. ##
11405 ## ------------------------------------------ ##
11408 sed "s/^/$as_me: WARNING: /" >&2
11411 echo "$as_me:$LINENO: checking for $ac_header" >&5
11412 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11413 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11414 echo $ECHO_N "(cached) $ECHO_C" >&6
11416 eval "$as_ac_Header=\$ac_header_preproc"
11418 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11419 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11422 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11423 cat >>confdefs.h
<<_ACEOF
11424 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11432 for ac_func
in alarm
11434 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11435 echo "$as_me:$LINENO: checking for $ac_func" >&5
11436 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11437 if eval "test \"\${$as_ac_var+set}\" = set"; then
11438 echo $ECHO_N "(cached) $ECHO_C" >&6
11440 cat >conftest.
$ac_ext <<_ACEOF
11443 cat confdefs.h
>>conftest.
$ac_ext
11444 cat >>conftest.
$ac_ext <<_ACEOF
11445 /* end confdefs.h. */
11446 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11447 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11448 #define $ac_func innocuous_$ac_func
11450 /* System header to define __stub macros and hopefully few prototypes,
11451 which can conflict with char $ac_func (); below.
11452 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11453 <limits.h> exists even on freestanding compilers. */
11456 # include <limits.h>
11458 # include <assert.h>
11463 /* Override any gcc2 internal prototype to avoid an error. */
11468 /* We use char because int might match the return type of a gcc2
11469 builtin and then its argument prototype would still apply. */
11471 /* The GNU C library defines this for functions which it implements
11472 to always fail with ENOSYS. Some functions are actually named
11473 something starting with __ and the normal name is an alias. */
11474 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11477 char (*f) () = $ac_func;
11486 return f != $ac_func;
11491 rm -f conftest.
$ac_objext conftest
$ac_exeext
11492 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11493 (eval $ac_link) 2>conftest.er1
11495 grep -v '^ *+' conftest.er1
>conftest.err
11497 cat conftest.err
>&5
11498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11499 (exit $ac_status); } &&
11500 { ac_try
='test -z "$ac_c_werror_flag"
11501 || test ! -s conftest.err'
11502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11503 (eval $ac_try) 2>&5
11505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11506 (exit $ac_status); }; } &&
11507 { ac_try
='test -s conftest$ac_exeext'
11508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11509 (eval $ac_try) 2>&5
11511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11512 (exit $ac_status); }; }; then
11513 eval "$as_ac_var=yes"
11515 echo "$as_me: failed program was:" >&5
11516 sed 's/^/| /' conftest.
$ac_ext >&5
11518 eval "$as_ac_var=no"
11520 rm -f conftest.err conftest.
$ac_objext \
11521 conftest
$ac_exeext conftest.
$ac_ext
11523 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11524 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11525 if test `eval echo '${'$as_ac_var'}'` = yes; then
11526 cat >>confdefs.h
<<_ACEOF
11527 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11533 echo "$as_me:$LINENO: checking for working mktime" >&5
11534 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
11535 if test "${ac_cv_func_working_mktime+set}" = set; then
11536 echo $ECHO_N "(cached) $ECHO_C" >&6
11538 if test "$cross_compiling" = yes; then
11539 ac_cv_func_working_mktime
=no
11541 cat >conftest.
$ac_ext <<_ACEOF
11544 cat confdefs.h
>>conftest.
$ac_ext
11545 cat >>conftest.
$ac_ext <<_ACEOF
11546 /* end confdefs.h. */
11547 /* Test program from Paul Eggert (eggert@twinsun.com)
11548 and Tony Leneis (tony@plaza.ds.adp.com). */
11549 #if TIME_WITH_SYS_TIME
11550 # include <sys/time.h>
11553 # if HAVE_SYS_TIME_H
11554 # include <sys/time.h>
11561 # include <unistd.h>
11565 # define alarm(X) /* empty */
11568 /* Work around redefinition to rpl_putenv by other config tests. */
11571 static time_t time_t_max;
11573 /* Values we'll use to set the TZ environment variable. */
11574 static const char *const tz_strings[] = {
11575 (const char *) 0, "TZ=GMT0", "TZ=JST-9",
11576 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
11578 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
11580 /* Fail if mktime fails to convert a date in the spring-forward gap.
11581 Based on a problem report from Andreas Jaeger. */
11583 spring_forward_gap ()
11585 /* glibc (up to about 1998-10-07) failed this test) */
11588 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
11589 instead of "TZ=America/Vancouver" in order to detect the bug even
11590 on systems that don't support the Olson extension, or don't have the
11591 full zoneinfo tables installed. */
11592 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
11601 if (mktime (&tm) == (time_t)-1)
11610 if ((lt = localtime (&now)) && mktime (lt) != now)
11612 now = time_t_max - now;
11613 if ((lt = localtime (&now)) && mktime (lt) != now)
11620 /* Based on code from Ariel Faigon. */
11630 if (tm.tm_mon != 2 || tm.tm_mday != 31)
11640 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
11641 now = mktime (&tm);
11642 if (now != (time_t) -1)
11644 struct tm *lt = localtime (&now);
11646 && lt->tm_year == tm.tm_year
11647 && lt->tm_mon == tm.tm_mon
11648 && lt->tm_mday == tm.tm_mday
11649 && lt->tm_hour == tm.tm_hour
11650 && lt->tm_min == tm.tm_min
11651 && lt->tm_sec == tm.tm_sec
11652 && lt->tm_yday == tm.tm_yday
11653 && lt->tm_wday == tm.tm_wday
11654 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
11655 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
11666 /* This test makes some buggy mktime implementations loop.
11667 Give up after 60 seconds; a mktime slower than that
11668 isn't worth using anyway. */
11671 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
11674 delta = time_t_max / 997; /* a suitable prime number */
11675 for (i = 0; i < N_STRINGS; i++)
11678 putenv (tz_strings[i]);
11680 for (t = 0; t <= time_t_max - delta; t += delta)
11682 mktime_test ((time_t) 60 * 60);
11683 mktime_test ((time_t) 60 * 60 * 24);
11685 for (j = 1; 0 < j; j *= 2)
11687 bigtime_test (j - 1);
11690 spring_forward_gap ();
11694 rm -f conftest
$ac_exeext
11695 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11696 (eval $ac_link) 2>&5
11698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11699 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
11700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11701 (eval $ac_try) 2>&5
11703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11704 (exit $ac_status); }; }; then
11705 ac_cv_func_working_mktime
=yes
11707 echo "$as_me: program exited with status $ac_status" >&5
11708 echo "$as_me: failed program was:" >&5
11709 sed 's/^/| /' conftest.
$ac_ext >&5
11711 ( exit $ac_status )
11712 ac_cv_func_working_mktime
=no
11714 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
11717 echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
11718 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
11719 if test $ac_cv_func_working_mktime = no
; then
11720 LIBOBJS
="$LIBOBJS mktime.${ac_objext}"
11723 if test "$ac_cv_func_working_mktime" = no
; then
11724 cat >>confdefs.h
<<\_ACEOF
11725 #define BROKEN_MKTIME 1
11730 ac_have_func
=no
# yes means we've found a way to get the load average.
11732 # Make sure getloadavg.c is where it belongs, at configure-time.
11733 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
11734 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
11735 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
11736 { (exit 1); exit 1; }; }
11740 # Check for getloadavg, but be sure not to touch the cache variable.
11741 (echo "$as_me:$LINENO: checking for getloadavg" >&5
11742 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6
11743 if test "${ac_cv_func_getloadavg+set}" = set; then
11744 echo $ECHO_N "(cached) $ECHO_C" >&6
11746 cat >conftest.
$ac_ext <<_ACEOF
11749 cat confdefs.h
>>conftest.
$ac_ext
11750 cat >>conftest.
$ac_ext <<_ACEOF
11751 /* end confdefs.h. */
11752 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
11753 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11754 #define getloadavg innocuous_getloadavg
11756 /* System header to define __stub macros and hopefully few prototypes,
11757 which can conflict with char getloadavg (); below.
11758 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11759 <limits.h> exists even on freestanding compilers. */
11762 # include <limits.h>
11764 # include <assert.h>
11769 /* Override any gcc2 internal prototype to avoid an error. */
11774 /* We use char because int might match the return type of a gcc2
11775 builtin and then its argument prototype would still apply. */
11776 char getloadavg ();
11777 /* The GNU C library defines this for functions which it implements
11778 to always fail with ENOSYS. Some functions are actually named
11779 something starting with __ and the normal name is an alias. */
11780 #if defined (__stub_getloadavg) || defined (__stub___getloadavg)
11783 char (*f) () = getloadavg;
11792 return f != getloadavg;
11797 rm -f conftest.
$ac_objext conftest
$ac_exeext
11798 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11799 (eval $ac_link) 2>conftest.er1
11801 grep -v '^ *+' conftest.er1
>conftest.err
11803 cat conftest.err
>&5
11804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11805 (exit $ac_status); } &&
11806 { ac_try
='test -z "$ac_c_werror_flag"
11807 || test ! -s conftest.err'
11808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11809 (eval $ac_try) 2>&5
11811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11812 (exit $ac_status); }; } &&
11813 { ac_try
='test -s conftest$ac_exeext'
11814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11815 (eval $ac_try) 2>&5
11817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11818 (exit $ac_status); }; }; then
11819 ac_cv_func_getloadavg
=yes
11821 echo "$as_me: failed program was:" >&5
11822 sed 's/^/| /' conftest.
$ac_ext >&5
11824 ac_cv_func_getloadavg
=no
11826 rm -f conftest.err conftest.
$ac_objext \
11827 conftest
$ac_exeext conftest.
$ac_ext
11829 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
11830 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6
11831 if test $ac_cv_func_getloadavg = yes; then
11836 ) && ac_have_func
=yes
11838 # On HPUX9, an unprivileged user can get load averages through this function.
11840 for ac_func
in pstat_getdynamic
11842 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11843 echo "$as_me:$LINENO: checking for $ac_func" >&5
11844 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11845 if eval "test \"\${$as_ac_var+set}\" = set"; then
11846 echo $ECHO_N "(cached) $ECHO_C" >&6
11848 cat >conftest.
$ac_ext <<_ACEOF
11851 cat confdefs.h
>>conftest.
$ac_ext
11852 cat >>conftest.
$ac_ext <<_ACEOF
11853 /* end confdefs.h. */
11854 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11855 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11856 #define $ac_func innocuous_$ac_func
11858 /* System header to define __stub macros and hopefully few prototypes,
11859 which can conflict with char $ac_func (); below.
11860 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11861 <limits.h> exists even on freestanding compilers. */
11864 # include <limits.h>
11866 # include <assert.h>
11871 /* Override any gcc2 internal prototype to avoid an error. */
11876 /* We use char because int might match the return type of a gcc2
11877 builtin and then its argument prototype would still apply. */
11879 /* The GNU C library defines this for functions which it implements
11880 to always fail with ENOSYS. Some functions are actually named
11881 something starting with __ and the normal name is an alias. */
11882 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11885 char (*f) () = $ac_func;
11894 return f != $ac_func;
11899 rm -f conftest.
$ac_objext conftest
$ac_exeext
11900 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11901 (eval $ac_link) 2>conftest.er1
11903 grep -v '^ *+' conftest.er1
>conftest.err
11905 cat conftest.err
>&5
11906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11907 (exit $ac_status); } &&
11908 { ac_try
='test -z "$ac_c_werror_flag"
11909 || test ! -s conftest.err'
11910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11911 (eval $ac_try) 2>&5
11913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11914 (exit $ac_status); }; } &&
11915 { ac_try
='test -s conftest$ac_exeext'
11916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11917 (eval $ac_try) 2>&5
11919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11920 (exit $ac_status); }; }; then
11921 eval "$as_ac_var=yes"
11923 echo "$as_me: failed program was:" >&5
11924 sed 's/^/| /' conftest.
$ac_ext >&5
11926 eval "$as_ac_var=no"
11928 rm -f conftest.err conftest.
$ac_objext \
11929 conftest
$ac_exeext conftest.
$ac_ext
11931 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11932 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11933 if test `eval echo '${'$as_ac_var'}'` = yes; then
11934 cat >>confdefs.h
<<_ACEOF
11935 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11942 # Solaris has libkstat which does not require root.
11944 echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
11945 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6
11946 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
11947 echo $ECHO_N "(cached) $ECHO_C" >&6
11949 ac_check_lib_save_LIBS
=$LIBS
11950 LIBS
="-lkstat $LIBS"
11951 cat >conftest.
$ac_ext <<_ACEOF
11954 cat confdefs.h
>>conftest.
$ac_ext
11955 cat >>conftest.
$ac_ext <<_ACEOF
11956 /* end confdefs.h. */
11958 /* Override any gcc2 internal prototype to avoid an error. */
11962 /* We use char because int might match the return type of a gcc2
11963 builtin and then its argument prototype would still apply. */
11964 char kstat_open ();
11973 rm -f conftest.
$ac_objext conftest
$ac_exeext
11974 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11975 (eval $ac_link) 2>conftest.er1
11977 grep -v '^ *+' conftest.er1
>conftest.err
11979 cat conftest.err
>&5
11980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11981 (exit $ac_status); } &&
11982 { ac_try
='test -z "$ac_c_werror_flag"
11983 || test ! -s conftest.err'
11984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11985 (eval $ac_try) 2>&5
11987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11988 (exit $ac_status); }; } &&
11989 { ac_try
='test -s conftest$ac_exeext'
11990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11991 (eval $ac_try) 2>&5
11993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11994 (exit $ac_status); }; }; then
11995 ac_cv_lib_kstat_kstat_open
=yes
11997 echo "$as_me: failed program was:" >&5
11998 sed 's/^/| /' conftest.
$ac_ext >&5
12000 ac_cv_lib_kstat_kstat_open
=no
12002 rm -f conftest.err conftest.
$ac_objext \
12003 conftest
$ac_exeext conftest.
$ac_ext
12004 LIBS
=$ac_check_lib_save_LIBS
12006 echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
12007 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6
12008 if test $ac_cv_lib_kstat_kstat_open = yes; then
12009 cat >>confdefs.h
<<_ACEOF
12010 #define HAVE_LIBKSTAT 1
12013 LIBS
="-lkstat $LIBS"
12017 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func
=yes
12019 # Some systems with -lutil have (and need) -lkvm as well, some do not.
12020 # On Solaris, -lkvm requires nlist from -lelf, so check that first
12021 # to get the right answer into the cache.
12022 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
12023 if test $ac_have_func = no
; then
12024 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
12025 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
12026 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
12027 echo $ECHO_N "(cached) $ECHO_C" >&6
12029 ac_check_lib_save_LIBS
=$LIBS
12031 cat >conftest.
$ac_ext <<_ACEOF
12034 cat confdefs.h
>>conftest.
$ac_ext
12035 cat >>conftest.
$ac_ext <<_ACEOF
12036 /* end confdefs.h. */
12038 /* Override any gcc2 internal prototype to avoid an error. */
12042 /* We use char because int might match the return type of a gcc2
12043 builtin and then its argument prototype would still apply. */
12053 rm -f conftest.
$ac_objext conftest
$ac_exeext
12054 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12055 (eval $ac_link) 2>conftest.er1
12057 grep -v '^ *+' conftest.er1
>conftest.err
12059 cat conftest.err
>&5
12060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12061 (exit $ac_status); } &&
12062 { ac_try
='test -z "$ac_c_werror_flag"
12063 || test ! -s conftest.err'
12064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12065 (eval $ac_try) 2>&5
12067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12068 (exit $ac_status); }; } &&
12069 { ac_try
='test -s conftest$ac_exeext'
12070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12071 (eval $ac_try) 2>&5
12073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12074 (exit $ac_status); }; }; then
12075 ac_cv_lib_elf_elf_begin
=yes
12077 echo "$as_me: failed program was:" >&5
12078 sed 's/^/| /' conftest.
$ac_ext >&5
12080 ac_cv_lib_elf_elf_begin
=no
12082 rm -f conftest.err conftest.
$ac_objext \
12083 conftest
$ac_exeext conftest.
$ac_ext
12084 LIBS
=$ac_check_lib_save_LIBS
12086 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
12087 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
12088 if test $ac_cv_lib_elf_elf_begin = yes; then
12093 if test $ac_have_func = no
; then
12094 echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
12095 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6
12096 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
12097 echo $ECHO_N "(cached) $ECHO_C" >&6
12099 ac_check_lib_save_LIBS
=$LIBS
12101 cat >conftest.
$ac_ext <<_ACEOF
12104 cat confdefs.h
>>conftest.
$ac_ext
12105 cat >>conftest.
$ac_ext <<_ACEOF
12106 /* end confdefs.h. */
12108 /* Override any gcc2 internal prototype to avoid an error. */
12112 /* We use char because int might match the return type of a gcc2
12113 builtin and then its argument prototype would still apply. */
12123 rm -f conftest.
$ac_objext conftest
$ac_exeext
12124 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12125 (eval $ac_link) 2>conftest.er1
12127 grep -v '^ *+' conftest.er1
>conftest.err
12129 cat conftest.err
>&5
12130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12131 (exit $ac_status); } &&
12132 { ac_try
='test -z "$ac_c_werror_flag"
12133 || test ! -s conftest.err'
12134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12135 (eval $ac_try) 2>&5
12137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12138 (exit $ac_status); }; } &&
12139 { ac_try
='test -s conftest$ac_exeext'
12140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12141 (eval $ac_try) 2>&5
12143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12144 (exit $ac_status); }; }; then
12145 ac_cv_lib_kvm_kvm_open
=yes
12147 echo "$as_me: failed program was:" >&5
12148 sed 's/^/| /' conftest.
$ac_ext >&5
12150 ac_cv_lib_kvm_kvm_open
=no
12152 rm -f conftest.err conftest.
$ac_objext \
12153 conftest
$ac_exeext conftest.
$ac_ext
12154 LIBS
=$ac_check_lib_save_LIBS
12156 echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
12157 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6
12158 if test $ac_cv_lib_kvm_kvm_open = yes; then
12162 # Check for the 4.4BSD definition of getloadavg.
12163 echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
12164 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6
12165 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
12166 echo $ECHO_N "(cached) $ECHO_C" >&6
12168 ac_check_lib_save_LIBS
=$LIBS
12169 LIBS
="-lutil $LIBS"
12170 cat >conftest.
$ac_ext <<_ACEOF
12173 cat confdefs.h
>>conftest.
$ac_ext
12174 cat >>conftest.
$ac_ext <<_ACEOF
12175 /* end confdefs.h. */
12177 /* Override any gcc2 internal prototype to avoid an error. */
12181 /* We use char because int might match the return type of a gcc2
12182 builtin and then its argument prototype would still apply. */
12183 char getloadavg ();
12192 rm -f conftest.
$ac_objext conftest
$ac_exeext
12193 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12194 (eval $ac_link) 2>conftest.er1
12196 grep -v '^ *+' conftest.er1
>conftest.err
12198 cat conftest.err
>&5
12199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12200 (exit $ac_status); } &&
12201 { ac_try
='test -z "$ac_c_werror_flag"
12202 || test ! -s conftest.err'
12203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12204 (eval $ac_try) 2>&5
12206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12207 (exit $ac_status); }; } &&
12208 { ac_try
='test -s conftest$ac_exeext'
12209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12210 (eval $ac_try) 2>&5
12212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12213 (exit $ac_status); }; }; then
12214 ac_cv_lib_util_getloadavg
=yes
12216 echo "$as_me: failed program was:" >&5
12217 sed 's/^/| /' conftest.
$ac_ext >&5
12219 ac_cv_lib_util_getloadavg
=no
12221 rm -f conftest.err conftest.
$ac_objext \
12222 conftest
$ac_exeext conftest.
$ac_ext
12223 LIBS
=$ac_check_lib_save_LIBS
12225 echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
12226 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6
12227 if test $ac_cv_lib_util_getloadavg = yes; then
12228 LIBS
="-lutil $LIBS" ac_have_func
=yes ac_cv_func_getloadavg_setgid
=yes
12233 if test $ac_have_func = no
; then
12234 # There is a commonly available library for RS/6000 AIX.
12235 # Since it is not a standard part of AIX, it might be installed locally.
12236 ac_getloadavg_LIBS
=$LIBS
12237 LIBS
="-L/usr/local/lib $LIBS"
12238 echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
12239 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6
12240 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
12241 echo $ECHO_N "(cached) $ECHO_C" >&6
12243 ac_check_lib_save_LIBS
=$LIBS
12244 LIBS
="-lgetloadavg $LIBS"
12245 cat >conftest.
$ac_ext <<_ACEOF
12248 cat confdefs.h
>>conftest.
$ac_ext
12249 cat >>conftest.
$ac_ext <<_ACEOF
12250 /* end confdefs.h. */
12252 /* Override any gcc2 internal prototype to avoid an error. */
12256 /* We use char because int might match the return type of a gcc2
12257 builtin and then its argument prototype would still apply. */
12258 char getloadavg ();
12267 rm -f conftest.
$ac_objext conftest
$ac_exeext
12268 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12269 (eval $ac_link) 2>conftest.er1
12271 grep -v '^ *+' conftest.er1
>conftest.err
12273 cat conftest.err
>&5
12274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12275 (exit $ac_status); } &&
12276 { ac_try
='test -z "$ac_c_werror_flag"
12277 || test ! -s conftest.err'
12278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12279 (eval $ac_try) 2>&5
12281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12282 (exit $ac_status); }; } &&
12283 { ac_try
='test -s conftest$ac_exeext'
12284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12285 (eval $ac_try) 2>&5
12287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12288 (exit $ac_status); }; }; then
12289 ac_cv_lib_getloadavg_getloadavg
=yes
12291 echo "$as_me: failed program was:" >&5
12292 sed 's/^/| /' conftest.
$ac_ext >&5
12294 ac_cv_lib_getloadavg_getloadavg
=no
12296 rm -f conftest.err conftest.
$ac_objext \
12297 conftest
$ac_exeext conftest.
$ac_ext
12298 LIBS
=$ac_check_lib_save_LIBS
12300 echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
12301 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6
12302 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
12303 LIBS
="-lgetloadavg $LIBS"
12305 LIBS
=$ac_getloadavg_LIBS
12310 # Make sure it is really in the library, if we think we found it,
12311 # otherwise set up the replacement function.
12313 for ac_func
in getloadavg
12315 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12316 echo "$as_me:$LINENO: checking for $ac_func" >&5
12317 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12318 if eval "test \"\${$as_ac_var+set}\" = set"; then
12319 echo $ECHO_N "(cached) $ECHO_C" >&6
12321 cat >conftest.
$ac_ext <<_ACEOF
12324 cat confdefs.h
>>conftest.
$ac_ext
12325 cat >>conftest.
$ac_ext <<_ACEOF
12326 /* end confdefs.h. */
12327 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12328 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12329 #define $ac_func innocuous_$ac_func
12331 /* System header to define __stub macros and hopefully few prototypes,
12332 which can conflict with char $ac_func (); below.
12333 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12334 <limits.h> exists even on freestanding compilers. */
12337 # include <limits.h>
12339 # include <assert.h>
12344 /* Override any gcc2 internal prototype to avoid an error. */
12349 /* We use char because int might match the return type of a gcc2
12350 builtin and then its argument prototype would still apply. */
12352 /* The GNU C library defines this for functions which it implements
12353 to always fail with ENOSYS. Some functions are actually named
12354 something starting with __ and the normal name is an alias. */
12355 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12358 char (*f) () = $ac_func;
12367 return f != $ac_func;
12372 rm -f conftest.
$ac_objext conftest
$ac_exeext
12373 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12374 (eval $ac_link) 2>conftest.er1
12376 grep -v '^ *+' conftest.er1
>conftest.err
12378 cat conftest.err
>&5
12379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12380 (exit $ac_status); } &&
12381 { ac_try
='test -z "$ac_c_werror_flag"
12382 || test ! -s conftest.err'
12383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12384 (eval $ac_try) 2>&5
12386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12387 (exit $ac_status); }; } &&
12388 { ac_try
='test -s conftest$ac_exeext'
12389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12390 (eval $ac_try) 2>&5
12392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12393 (exit $ac_status); }; }; then
12394 eval "$as_ac_var=yes"
12396 echo "$as_me: failed program was:" >&5
12397 sed 's/^/| /' conftest.
$ac_ext >&5
12399 eval "$as_ac_var=no"
12401 rm -f conftest.err conftest.
$ac_objext \
12402 conftest
$ac_exeext conftest.
$ac_ext
12404 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12405 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12406 if test `eval echo '${'$as_ac_var'}'` = yes; then
12407 cat >>confdefs.h
<<_ACEOF
12408 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12413 "getloadavg.$ac_objext" | \
12414 *" getloadavg.$ac_objext" | \
12415 "getloadavg.$ac_objext "* | \
12416 *" getloadavg.$ac_objext "* ) ;;
12417 *) LIBOBJS
="$LIBOBJS getloadavg.$ac_objext" ;;
12421 cat >>confdefs.h
<<\_ACEOF
12422 #define C_GETLOADAVG 1
12425 # Figure out what our getloadavg.c needs.
12427 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
12428 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
12429 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
12430 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
12431 echo $ECHO_N "(cached) $ECHO_C" >&6
12433 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
12434 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
12436 # Is the header compilable?
12437 echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
12438 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6
12439 cat >conftest.
$ac_ext <<_ACEOF
12442 cat confdefs.h
>>conftest.
$ac_ext
12443 cat >>conftest.
$ac_ext <<_ACEOF
12444 /* end confdefs.h. */
12445 $ac_includes_default
12446 #include <sys/dg_sys_info.h>
12448 rm -f conftest.
$ac_objext
12449 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12450 (eval $ac_compile) 2>conftest.er1
12452 grep -v '^ *+' conftest.er1
>conftest.err
12454 cat conftest.err
>&5
12455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12456 (exit $ac_status); } &&
12457 { ac_try
='test -z "$ac_c_werror_flag"
12458 || test ! -s conftest.err'
12459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12460 (eval $ac_try) 2>&5
12462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12463 (exit $ac_status); }; } &&
12464 { ac_try
='test -s conftest.$ac_objext'
12465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12466 (eval $ac_try) 2>&5
12468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12469 (exit $ac_status); }; }; then
12470 ac_header_compiler
=yes
12472 echo "$as_me: failed program was:" >&5
12473 sed 's/^/| /' conftest.
$ac_ext >&5
12475 ac_header_compiler
=no
12477 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12478 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12479 echo "${ECHO_T}$ac_header_compiler" >&6
12481 # Is the header present?
12482 echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
12483 echo $ECHO_N "checking sys/dg_sys_info.h presence... $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 #include <sys/dg_sys_info.h>
12492 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12493 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12495 grep -v '^ *+' conftest.er1
>conftest.err
12497 cat conftest.err
>&5
12498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12499 (exit $ac_status); } >/dev
/null
; then
12500 if test -s conftest.err
; then
12501 ac_cpp_err
=$ac_c_preproc_warn_flag
12502 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12509 if test -z "$ac_cpp_err"; then
12510 ac_header_preproc
=yes
12512 echo "$as_me: failed program was:" >&5
12513 sed 's/^/| /' conftest.
$ac_ext >&5
12515 ac_header_preproc
=no
12517 rm -f conftest.err conftest.
$ac_ext
12518 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12519 echo "${ECHO_T}$ac_header_preproc" >&6
12521 # So? What about this header?
12522 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12524 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
12525 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12526 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
12527 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
12528 ac_header_preproc
=yes
12531 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
12532 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
12533 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
12534 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
12535 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
12536 echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
12537 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
12538 echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
12539 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
12540 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
12541 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
12542 echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
12545 ## ------------------------------------------ ##
12546 ## Report this to the AC_PACKAGE_NAME lists. ##
12547 ## ------------------------------------------ ##
12550 sed "s/^/$as_me: WARNING: /" >&2
12553 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
12554 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
12555 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
12556 echo $ECHO_N "(cached) $ECHO_C" >&6
12558 ac_cv_header_sys_dg_sys_info_h
=$ac_header_preproc
12560 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
12561 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
12564 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
12567 cat >>confdefs.h
<<\_ACEOF
12572 echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
12573 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6
12574 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
12575 echo $ECHO_N "(cached) $ECHO_C" >&6
12577 ac_check_lib_save_LIBS
=$LIBS
12579 cat >conftest.
$ac_ext <<_ACEOF
12582 cat confdefs.h
>>conftest.
$ac_ext
12583 cat >>conftest.
$ac_ext <<_ACEOF
12584 /* end confdefs.h. */
12586 /* Override any gcc2 internal prototype to avoid an error. */
12590 /* We use char because int might match the return type of a gcc2
12591 builtin and then its argument prototype would still apply. */
12592 char dg_sys_info ();
12601 rm -f conftest.
$ac_objext conftest
$ac_exeext
12602 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12603 (eval $ac_link) 2>conftest.er1
12605 grep -v '^ *+' conftest.er1
>conftest.err
12607 cat conftest.err
>&5
12608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12609 (exit $ac_status); } &&
12610 { ac_try
='test -z "$ac_c_werror_flag"
12611 || test ! -s conftest.err'
12612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12613 (eval $ac_try) 2>&5
12615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12616 (exit $ac_status); }; } &&
12617 { ac_try
='test -s conftest$ac_exeext'
12618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12619 (eval $ac_try) 2>&5
12621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12622 (exit $ac_status); }; }; then
12623 ac_cv_lib_dgc_dg_sys_info
=yes
12625 echo "$as_me: failed program was:" >&5
12626 sed 's/^/| /' conftest.
$ac_ext >&5
12628 ac_cv_lib_dgc_dg_sys_info
=no
12630 rm -f conftest.err conftest.
$ac_objext \
12631 conftest
$ac_exeext conftest.
$ac_ext
12632 LIBS
=$ac_check_lib_save_LIBS
12634 echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
12635 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6
12636 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
12637 cat >>confdefs.h
<<_ACEOF
12638 #define HAVE_LIBDGC 1
12649 if test "${ac_cv_header_locale_h+set}" = set; then
12650 echo "$as_me:$LINENO: checking for locale.h" >&5
12651 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
12652 if test "${ac_cv_header_locale_h+set}" = set; then
12653 echo $ECHO_N "(cached) $ECHO_C" >&6
12655 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
12656 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
12658 # Is the header compilable?
12659 echo "$as_me:$LINENO: checking locale.h usability" >&5
12660 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6
12661 cat >conftest.
$ac_ext <<_ACEOF
12664 cat confdefs.h
>>conftest.
$ac_ext
12665 cat >>conftest.
$ac_ext <<_ACEOF
12666 /* end confdefs.h. */
12667 $ac_includes_default
12668 #include <locale.h>
12670 rm -f conftest.
$ac_objext
12671 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12672 (eval $ac_compile) 2>conftest.er1
12674 grep -v '^ *+' conftest.er1
>conftest.err
12676 cat conftest.err
>&5
12677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12678 (exit $ac_status); } &&
12679 { ac_try
='test -z "$ac_c_werror_flag"
12680 || test ! -s conftest.err'
12681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12682 (eval $ac_try) 2>&5
12684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12685 (exit $ac_status); }; } &&
12686 { ac_try
='test -s conftest.$ac_objext'
12687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12688 (eval $ac_try) 2>&5
12690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12691 (exit $ac_status); }; }; then
12692 ac_header_compiler
=yes
12694 echo "$as_me: failed program was:" >&5
12695 sed 's/^/| /' conftest.
$ac_ext >&5
12697 ac_header_compiler
=no
12699 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12700 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12701 echo "${ECHO_T}$ac_header_compiler" >&6
12703 # Is the header present?
12704 echo "$as_me:$LINENO: checking locale.h presence" >&5
12705 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6
12706 cat >conftest.
$ac_ext <<_ACEOF
12709 cat confdefs.h
>>conftest.
$ac_ext
12710 cat >>conftest.
$ac_ext <<_ACEOF
12711 /* end confdefs.h. */
12712 #include <locale.h>
12714 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12715 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12717 grep -v '^ *+' conftest.er1
>conftest.err
12719 cat conftest.err
>&5
12720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12721 (exit $ac_status); } >/dev
/null
; then
12722 if test -s conftest.err
; then
12723 ac_cpp_err
=$ac_c_preproc_warn_flag
12724 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12731 if test -z "$ac_cpp_err"; then
12732 ac_header_preproc
=yes
12734 echo "$as_me: failed program was:" >&5
12735 sed 's/^/| /' conftest.
$ac_ext >&5
12737 ac_header_preproc
=no
12739 rm -f conftest.err conftest.
$ac_ext
12740 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12741 echo "${ECHO_T}$ac_header_preproc" >&6
12743 # So? What about this header?
12744 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12746 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
12747 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12748 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
12749 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
12750 ac_header_preproc
=yes
12753 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
12754 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
12755 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
12756 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
12757 { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
12758 echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
12759 { echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
12760 echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
12761 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
12762 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
12763 { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
12764 echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
12767 ## ------------------------------------------ ##
12768 ## Report this to the AC_PACKAGE_NAME lists. ##
12769 ## ------------------------------------------ ##
12772 sed "s/^/$as_me: WARNING: /" >&2
12775 echo "$as_me:$LINENO: checking for locale.h" >&5
12776 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
12777 if test "${ac_cv_header_locale_h+set}" = set; then
12778 echo $ECHO_N "(cached) $ECHO_C" >&6
12780 ac_cv_header_locale_h
=$ac_header_preproc
12782 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
12783 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
12789 for ac_func
in setlocale
12791 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12792 echo "$as_me:$LINENO: checking for $ac_func" >&5
12793 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12794 if eval "test \"\${$as_ac_var+set}\" = set"; then
12795 echo $ECHO_N "(cached) $ECHO_C" >&6
12797 cat >conftest.
$ac_ext <<_ACEOF
12800 cat confdefs.h
>>conftest.
$ac_ext
12801 cat >>conftest.
$ac_ext <<_ACEOF
12802 /* end confdefs.h. */
12803 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12804 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12805 #define $ac_func innocuous_$ac_func
12807 /* System header to define __stub macros and hopefully few prototypes,
12808 which can conflict with char $ac_func (); below.
12809 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12810 <limits.h> exists even on freestanding compilers. */
12813 # include <limits.h>
12815 # include <assert.h>
12820 /* Override any gcc2 internal prototype to avoid an error. */
12825 /* We use char because int might match the return type of a gcc2
12826 builtin and then its argument prototype would still apply. */
12828 /* The GNU C library defines this for functions which it implements
12829 to always fail with ENOSYS. Some functions are actually named
12830 something starting with __ and the normal name is an alias. */
12831 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12834 char (*f) () = $ac_func;
12843 return f != $ac_func;
12848 rm -f conftest.
$ac_objext conftest
$ac_exeext
12849 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12850 (eval $ac_link) 2>conftest.er1
12852 grep -v '^ *+' conftest.er1
>conftest.err
12854 cat conftest.err
>&5
12855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12856 (exit $ac_status); } &&
12857 { ac_try
='test -z "$ac_c_werror_flag"
12858 || test ! -s conftest.err'
12859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12860 (eval $ac_try) 2>&5
12862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12863 (exit $ac_status); }; } &&
12864 { ac_try
='test -s conftest$ac_exeext'
12865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12866 (eval $ac_try) 2>&5
12868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12869 (exit $ac_status); }; }; then
12870 eval "$as_ac_var=yes"
12872 echo "$as_me: failed program was:" >&5
12873 sed 's/^/| /' conftest.
$ac_ext >&5
12875 eval "$as_ac_var=no"
12877 rm -f conftest.err conftest.
$ac_objext \
12878 conftest
$ac_exeext conftest.
$ac_ext
12880 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12881 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12882 if test `eval echo '${'$as_ac_var'}'` = yes; then
12883 cat >>confdefs.h
<<_ACEOF
12884 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12891 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
12892 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
12893 # Irix 4.0.5F has the header but not the library.
12894 if test $ac_have_func = no
&& test "$ac_cv_lib_elf_elf_begin" = yes; then
12897 cat >>confdefs.h
<<\_ACEOF
12903 if test $ac_have_func = no
; then
12904 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
12905 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
12906 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
12907 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
12908 echo $ECHO_N "(cached) $ECHO_C" >&6
12910 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
12911 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
12913 # Is the header compilable?
12914 echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
12915 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6
12916 cat >conftest.
$ac_ext <<_ACEOF
12919 cat confdefs.h
>>conftest.
$ac_ext
12920 cat >>conftest.
$ac_ext <<_ACEOF
12921 /* end confdefs.h. */
12922 $ac_includes_default
12923 #include <inq_stats/cpustats.h>
12925 rm -f conftest.
$ac_objext
12926 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12927 (eval $ac_compile) 2>conftest.er1
12929 grep -v '^ *+' conftest.er1
>conftest.err
12931 cat conftest.err
>&5
12932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12933 (exit $ac_status); } &&
12934 { ac_try
='test -z "$ac_c_werror_flag"
12935 || test ! -s conftest.err'
12936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12937 (eval $ac_try) 2>&5
12939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12940 (exit $ac_status); }; } &&
12941 { ac_try
='test -s conftest.$ac_objext'
12942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12943 (eval $ac_try) 2>&5
12945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12946 (exit $ac_status); }; }; then
12947 ac_header_compiler
=yes
12949 echo "$as_me: failed program was:" >&5
12950 sed 's/^/| /' conftest.
$ac_ext >&5
12952 ac_header_compiler
=no
12954 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12955 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12956 echo "${ECHO_T}$ac_header_compiler" >&6
12958 # Is the header present?
12959 echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
12960 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6
12961 cat >conftest.
$ac_ext <<_ACEOF
12964 cat confdefs.h
>>conftest.
$ac_ext
12965 cat >>conftest.
$ac_ext <<_ACEOF
12966 /* end confdefs.h. */
12967 #include <inq_stats/cpustats.h>
12969 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12970 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12972 grep -v '^ *+' conftest.er1
>conftest.err
12974 cat conftest.err
>&5
12975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12976 (exit $ac_status); } >/dev
/null
; then
12977 if test -s conftest.err
; then
12978 ac_cpp_err
=$ac_c_preproc_warn_flag
12979 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12986 if test -z "$ac_cpp_err"; then
12987 ac_header_preproc
=yes
12989 echo "$as_me: failed program was:" >&5
12990 sed 's/^/| /' conftest.
$ac_ext >&5
12992 ac_header_preproc
=no
12994 rm -f conftest.err conftest.
$ac_ext
12995 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12996 echo "${ECHO_T}$ac_header_preproc" >&6
12998 # So? What about this header?
12999 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13001 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
13002 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13003 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
13004 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
13005 ac_header_preproc
=yes
13008 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
13009 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
13010 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
13011 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
13012 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
13013 echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
13014 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
13015 echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
13016 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
13017 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
13018 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
13019 echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
13022 ## ------------------------------------------ ##
13023 ## Report this to the AC_PACKAGE_NAME lists. ##
13024 ## ------------------------------------------ ##
13027 sed "s/^/$as_me: WARNING: /" >&2
13030 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
13031 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
13032 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
13033 echo $ECHO_N "(cached) $ECHO_C" >&6
13035 ac_cv_header_inq_stats_cpustats_h
=$ac_header_preproc
13037 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
13038 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
13041 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
13044 cat >>confdefs.h
<<\_ACEOF
13049 cat >>confdefs.h
<<\_ACEOF
13058 if test $ac_have_func = no
; then
13059 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
13060 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
13061 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
13062 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
13063 echo $ECHO_N "(cached) $ECHO_C" >&6
13065 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
13066 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
13068 # Is the header compilable?
13069 echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
13070 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6
13071 cat >conftest.
$ac_ext <<_ACEOF
13074 cat confdefs.h
>>conftest.
$ac_ext
13075 cat >>conftest.
$ac_ext <<_ACEOF
13076 /* end confdefs.h. */
13077 $ac_includes_default
13078 #include <sys/cpustats.h>
13080 rm -f conftest.
$ac_objext
13081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13082 (eval $ac_compile) 2>conftest.er1
13084 grep -v '^ *+' conftest.er1
>conftest.err
13086 cat conftest.err
>&5
13087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13088 (exit $ac_status); } &&
13089 { ac_try
='test -z "$ac_c_werror_flag"
13090 || test ! -s conftest.err'
13091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13092 (eval $ac_try) 2>&5
13094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13095 (exit $ac_status); }; } &&
13096 { ac_try
='test -s conftest.$ac_objext'
13097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13098 (eval $ac_try) 2>&5
13100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13101 (exit $ac_status); }; }; then
13102 ac_header_compiler
=yes
13104 echo "$as_me: failed program was:" >&5
13105 sed 's/^/| /' conftest.
$ac_ext >&5
13107 ac_header_compiler
=no
13109 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13110 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13111 echo "${ECHO_T}$ac_header_compiler" >&6
13113 # Is the header present?
13114 echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
13115 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6
13116 cat >conftest.
$ac_ext <<_ACEOF
13119 cat confdefs.h
>>conftest.
$ac_ext
13120 cat >>conftest.
$ac_ext <<_ACEOF
13121 /* end confdefs.h. */
13122 #include <sys/cpustats.h>
13124 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13125 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
13127 grep -v '^ *+' conftest.er1
>conftest.err
13129 cat conftest.err
>&5
13130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13131 (exit $ac_status); } >/dev
/null
; then
13132 if test -s conftest.err
; then
13133 ac_cpp_err
=$ac_c_preproc_warn_flag
13134 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
13141 if test -z "$ac_cpp_err"; then
13142 ac_header_preproc
=yes
13144 echo "$as_me: failed program was:" >&5
13145 sed 's/^/| /' conftest.
$ac_ext >&5
13147 ac_header_preproc
=no
13149 rm -f conftest.err conftest.
$ac_ext
13150 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13151 echo "${ECHO_T}$ac_header_preproc" >&6
13153 # So? What about this header?
13154 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13156 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
13157 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13158 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
13159 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
13160 ac_header_preproc
=yes
13163 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
13164 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
13165 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
13166 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
13167 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
13168 echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
13169 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
13170 echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
13171 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
13172 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
13173 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
13174 echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
13177 ## ------------------------------------------ ##
13178 ## Report this to the AC_PACKAGE_NAME lists. ##
13179 ## ------------------------------------------ ##
13182 sed "s/^/$as_me: WARNING: /" >&2
13185 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
13186 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
13187 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
13188 echo $ECHO_N "(cached) $ECHO_C" >&6
13190 ac_cv_header_sys_cpustats_h
=$ac_header_preproc
13192 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
13193 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
13196 if test $ac_cv_header_sys_cpustats_h = yes; then
13197 ac_have_func
=yes; cat >>confdefs.h
<<\_ACEOF
13206 if test $ac_have_func = no
; then
13208 for ac_header
in mach
/mach.h
13210 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13211 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13212 echo "$as_me:$LINENO: checking for $ac_header" >&5
13213 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13214 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13215 echo $ECHO_N "(cached) $ECHO_C" >&6
13217 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13218 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13220 # Is the header compilable?
13221 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13222 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13223 cat >conftest.
$ac_ext <<_ACEOF
13226 cat confdefs.h
>>conftest.
$ac_ext
13227 cat >>conftest.
$ac_ext <<_ACEOF
13228 /* end confdefs.h. */
13229 $ac_includes_default
13230 #include <$ac_header>
13232 rm -f conftest.
$ac_objext
13233 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13234 (eval $ac_compile) 2>conftest.er1
13236 grep -v '^ *+' conftest.er1
>conftest.err
13238 cat conftest.err
>&5
13239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13240 (exit $ac_status); } &&
13241 { ac_try
='test -z "$ac_c_werror_flag"
13242 || test ! -s conftest.err'
13243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13244 (eval $ac_try) 2>&5
13246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13247 (exit $ac_status); }; } &&
13248 { ac_try
='test -s conftest.$ac_objext'
13249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13250 (eval $ac_try) 2>&5
13252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13253 (exit $ac_status); }; }; then
13254 ac_header_compiler
=yes
13256 echo "$as_me: failed program was:" >&5
13257 sed 's/^/| /' conftest.
$ac_ext >&5
13259 ac_header_compiler
=no
13261 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13262 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13263 echo "${ECHO_T}$ac_header_compiler" >&6
13265 # Is the header present?
13266 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13267 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13268 cat >conftest.
$ac_ext <<_ACEOF
13271 cat confdefs.h
>>conftest.
$ac_ext
13272 cat >>conftest.
$ac_ext <<_ACEOF
13273 /* end confdefs.h. */
13274 #include <$ac_header>
13276 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13277 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
13279 grep -v '^ *+' conftest.er1
>conftest.err
13281 cat conftest.err
>&5
13282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13283 (exit $ac_status); } >/dev
/null
; then
13284 if test -s conftest.err
; then
13285 ac_cpp_err
=$ac_c_preproc_warn_flag
13286 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
13293 if test -z "$ac_cpp_err"; then
13294 ac_header_preproc
=yes
13296 echo "$as_me: failed program was:" >&5
13297 sed 's/^/| /' conftest.
$ac_ext >&5
13299 ac_header_preproc
=no
13301 rm -f conftest.err conftest.
$ac_ext
13302 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13303 echo "${ECHO_T}$ac_header_preproc" >&6
13305 # So? What about this header?
13306 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13308 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13309 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13310 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13311 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13312 ac_header_preproc
=yes
13315 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13316 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13317 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13318 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13319 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13320 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13321 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13322 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13323 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13324 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13325 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13326 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13329 ## ------------------------------------------ ##
13330 ## Report this to the AC_PACKAGE_NAME lists. ##
13331 ## ------------------------------------------ ##
13334 sed "s/^/$as_me: WARNING: /" >&2
13337 echo "$as_me:$LINENO: checking for $ac_header" >&5
13338 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13339 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13340 echo $ECHO_N "(cached) $ECHO_C" >&6
13342 eval "$as_ac_Header=\$ac_header_preproc"
13344 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13345 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13348 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13349 cat >>confdefs.h
<<_ACEOF
13350 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13360 for ac_header
in nlist.h
13362 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13363 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13364 echo "$as_me:$LINENO: checking for $ac_header" >&5
13365 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13366 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13367 echo $ECHO_N "(cached) $ECHO_C" >&6
13369 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13370 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13372 # Is the header compilable?
13373 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13374 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13375 cat >conftest.
$ac_ext <<_ACEOF
13378 cat confdefs.h
>>conftest.
$ac_ext
13379 cat >>conftest.
$ac_ext <<_ACEOF
13380 /* end confdefs.h. */
13381 $ac_includes_default
13382 #include <$ac_header>
13384 rm -f conftest.
$ac_objext
13385 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13386 (eval $ac_compile) 2>conftest.er1
13388 grep -v '^ *+' conftest.er1
>conftest.err
13390 cat conftest.err
>&5
13391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13392 (exit $ac_status); } &&
13393 { ac_try
='test -z "$ac_c_werror_flag"
13394 || test ! -s conftest.err'
13395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13396 (eval $ac_try) 2>&5
13398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13399 (exit $ac_status); }; } &&
13400 { ac_try
='test -s conftest.$ac_objext'
13401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13402 (eval $ac_try) 2>&5
13404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13405 (exit $ac_status); }; }; then
13406 ac_header_compiler
=yes
13408 echo "$as_me: failed program was:" >&5
13409 sed 's/^/| /' conftest.
$ac_ext >&5
13411 ac_header_compiler
=no
13413 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13414 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13415 echo "${ECHO_T}$ac_header_compiler" >&6
13417 # Is the header present?
13418 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13419 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13420 cat >conftest.
$ac_ext <<_ACEOF
13423 cat confdefs.h
>>conftest.
$ac_ext
13424 cat >>conftest.
$ac_ext <<_ACEOF
13425 /* end confdefs.h. */
13426 #include <$ac_header>
13428 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13429 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
13431 grep -v '^ *+' conftest.er1
>conftest.err
13433 cat conftest.err
>&5
13434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13435 (exit $ac_status); } >/dev
/null
; then
13436 if test -s conftest.err
; then
13437 ac_cpp_err
=$ac_c_preproc_warn_flag
13438 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
13445 if test -z "$ac_cpp_err"; then
13446 ac_header_preproc
=yes
13448 echo "$as_me: failed program was:" >&5
13449 sed 's/^/| /' conftest.
$ac_ext >&5
13451 ac_header_preproc
=no
13453 rm -f conftest.err conftest.
$ac_ext
13454 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13455 echo "${ECHO_T}$ac_header_preproc" >&6
13457 # So? What about this header?
13458 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13460 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13461 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13462 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13463 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13464 ac_header_preproc
=yes
13467 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13468 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13469 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13470 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13471 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13472 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13473 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13474 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13475 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13476 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13477 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13478 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13481 ## ------------------------------------------ ##
13482 ## Report this to the AC_PACKAGE_NAME lists. ##
13483 ## ------------------------------------------ ##
13486 sed "s/^/$as_me: WARNING: /" >&2
13489 echo "$as_me:$LINENO: checking for $ac_header" >&5
13490 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13491 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13492 echo $ECHO_N "(cached) $ECHO_C" >&6
13494 eval "$as_ac_Header=\$ac_header_preproc"
13496 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13497 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13500 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13501 cat >>confdefs.h
<<_ACEOF
13502 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13504 echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
13505 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6
13506 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
13507 echo $ECHO_N "(cached) $ECHO_C" >&6
13509 cat >conftest.
$ac_ext <<_ACEOF
13512 cat confdefs.h
>>conftest.
$ac_ext
13513 cat >>conftest.
$ac_ext <<_ACEOF
13514 /* end confdefs.h. */
13520 static struct nlist ac_aggr;
13521 if (ac_aggr.n_un.n_name)
13527 rm -f conftest.
$ac_objext
13528 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13529 (eval $ac_compile) 2>conftest.er1
13531 grep -v '^ *+' conftest.er1
>conftest.err
13533 cat conftest.err
>&5
13534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13535 (exit $ac_status); } &&
13536 { ac_try
='test -z "$ac_c_werror_flag"
13537 || test ! -s conftest.err'
13538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13539 (eval $ac_try) 2>&5
13541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13542 (exit $ac_status); }; } &&
13543 { ac_try
='test -s conftest.$ac_objext'
13544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13545 (eval $ac_try) 2>&5
13547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13548 (exit $ac_status); }; }; then
13549 ac_cv_member_struct_nlist_n_un_n_name
=yes
13551 echo "$as_me: failed program was:" >&5
13552 sed 's/^/| /' conftest.
$ac_ext >&5
13554 cat >conftest.
$ac_ext <<_ACEOF
13557 cat confdefs.h
>>conftest.
$ac_ext
13558 cat >>conftest.
$ac_ext <<_ACEOF
13559 /* end confdefs.h. */
13565 static struct nlist ac_aggr;
13566 if (sizeof ac_aggr.n_un.n_name)
13572 rm -f conftest.
$ac_objext
13573 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13574 (eval $ac_compile) 2>conftest.er1
13576 grep -v '^ *+' conftest.er1
>conftest.err
13578 cat conftest.err
>&5
13579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13580 (exit $ac_status); } &&
13581 { ac_try
='test -z "$ac_c_werror_flag"
13582 || test ! -s conftest.err'
13583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13584 (eval $ac_try) 2>&5
13586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13587 (exit $ac_status); }; } &&
13588 { ac_try
='test -s conftest.$ac_objext'
13589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13590 (eval $ac_try) 2>&5
13592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13593 (exit $ac_status); }; }; then
13594 ac_cv_member_struct_nlist_n_un_n_name
=yes
13596 echo "$as_me: failed program was:" >&5
13597 sed 's/^/| /' conftest.
$ac_ext >&5
13599 ac_cv_member_struct_nlist_n_un_n_name
=no
13601 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13603 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13605 echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
13606 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6
13607 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
13609 cat >>confdefs.h
<<_ACEOF
13610 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
13614 cat >>confdefs.h
<<\_ACEOF
13615 #define NLIST_NAME_UNION 1
13629 # Some definitions of getloadavg require that the program be installed setgid.
13630 echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
13631 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6
13632 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
13633 echo $ECHO_N "(cached) $ECHO_C" >&6
13635 cat >conftest.
$ac_ext <<_ACEOF
13638 cat confdefs.h
>>conftest.
$ac_ext
13639 cat >>conftest.
$ac_ext <<_ACEOF
13640 /* end confdefs.h. */
13641 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
13642 #ifdef LDAV_PRIVILEGED
13643 Yowza Am I SETGID yet
13646 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13647 $EGREP "Yowza Am I SETGID yet" >/dev
/null
2>&1; then
13648 ac_cv_func_getloadavg_setgid
=yes
13650 ac_cv_func_getloadavg_setgid
=no
13655 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
13656 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6
13657 if test $ac_cv_func_getloadavg_setgid = yes; then
13660 cat >>confdefs.h
<<\_ACEOF
13661 #define GETLOADAVG_PRIVILEGED 1
13668 if test $ac_cv_func_getloadavg_setgid = yes; then
13669 echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
13670 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6
13671 if test "${ac_cv_group_kmem+set}" = set; then
13672 echo $ECHO_N "(cached) $ECHO_C" >&6
13674 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
13675 ac_ls_output
=`ls -lgL /dev/kmem 2>/dev/null`
13676 # If we got an error (system does not support symlinks), try without -L.
13677 test -z "$ac_ls_output" && ac_ls_output
=`ls -lg /dev/kmem`
13678 ac_cv_group_kmem
=`echo $ac_ls_output \
13679 | sed -ne 's/[ ][ ]*/ /g;
13680 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
13684 echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
13685 echo "${ECHO_T}$ac_cv_group_kmem" >&6
13686 KMEM_GROUP
=$ac_cv_group_kmem
13688 if test "x$ac_save_LIBS" = x
; then
13689 GETLOADAVG_LIBS
=$LIBS
13691 GETLOADAVG_LIBS
=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
13697 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
13698 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
13699 if test "${ac_cv_sys_largefile_source+set}" = set; then
13700 echo $ECHO_N "(cached) $ECHO_C" >&6
13702 ac_cv_sys_largefile_source
=no
13703 cat >conftest.
$ac_ext <<_ACEOF
13706 cat confdefs.h
>>conftest.
$ac_ext
13707 cat >>conftest.
$ac_ext <<_ACEOF
13708 /* end confdefs.h. */
13718 rm -f conftest.
$ac_objext
13719 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13720 (eval $ac_compile) 2>conftest.er1
13722 grep -v '^ *+' conftest.er1
>conftest.err
13724 cat conftest.err
>&5
13725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13726 (exit $ac_status); } &&
13727 { ac_try
='test -z "$ac_c_werror_flag"
13728 || test ! -s conftest.err'
13729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13730 (eval $ac_try) 2>&5
13732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13733 (exit $ac_status); }; } &&
13734 { ac_try
='test -s conftest.$ac_objext'
13735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13736 (eval $ac_try) 2>&5
13738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13739 (exit $ac_status); }; }; then
13742 echo "$as_me: failed program was:" >&5
13743 sed 's/^/| /' conftest.
$ac_ext >&5
13745 cat >conftest.
$ac_ext <<_ACEOF
13748 cat confdefs.h
>>conftest.
$ac_ext
13749 cat >>conftest.
$ac_ext <<_ACEOF
13750 /* end confdefs.h. */
13751 #define _LARGEFILE_SOURCE 1
13762 rm -f conftest.
$ac_objext
13763 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13764 (eval $ac_compile) 2>conftest.er1
13766 grep -v '^ *+' conftest.er1
>conftest.err
13768 cat conftest.err
>&5
13769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13770 (exit $ac_status); } &&
13771 { ac_try
='test -z "$ac_c_werror_flag"
13772 || test ! -s conftest.err'
13773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13774 (eval $ac_try) 2>&5
13776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13777 (exit $ac_status); }; } &&
13778 { ac_try
='test -s conftest.$ac_objext'
13779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13780 (eval $ac_try) 2>&5
13782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13783 (exit $ac_status); }; }; then
13784 ac_cv_sys_largefile_source
=1
13786 echo "$as_me: failed program was:" >&5
13787 sed 's/^/| /' conftest.
$ac_ext >&5
13790 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13792 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13794 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
13795 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
13796 if test "$ac_cv_sys_largefile_source" != no
; then
13798 cat >>confdefs.h
<<_ACEOF
13799 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
13803 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
13804 # in glibc 2.1.3, but that breaks too many other things.
13805 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
13807 echo "$as_me:$LINENO: checking for fseeko" >&5
13808 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
13809 if test "${ac_cv_func_fseeko+set}" = set; then
13810 echo $ECHO_N "(cached) $ECHO_C" >&6
13812 ac_cv_func_fseeko
=no
13813 cat >conftest.
$ac_ext <<_ACEOF
13816 cat confdefs.h
>>conftest.
$ac_ext
13817 cat >>conftest.
$ac_ext <<_ACEOF
13818 /* end confdefs.h. */
13823 return fseeko && fseeko (stdin, 0, 0);
13828 rm -f conftest.
$ac_objext conftest
$ac_exeext
13829 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13830 (eval $ac_link) 2>conftest.er1
13832 grep -v '^ *+' conftest.er1
>conftest.err
13834 cat conftest.err
>&5
13835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13836 (exit $ac_status); } &&
13837 { ac_try
='test -z "$ac_c_werror_flag"
13838 || test ! -s conftest.err'
13839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13840 (eval $ac_try) 2>&5
13842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13843 (exit $ac_status); }; } &&
13844 { ac_try
='test -s conftest$ac_exeext'
13845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13846 (eval $ac_try) 2>&5
13848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13849 (exit $ac_status); }; }; then
13850 ac_cv_func_fseeko
=yes
13852 echo "$as_me: failed program was:" >&5
13853 sed 's/^/| /' conftest.
$ac_ext >&5
13856 rm -f conftest.err conftest.
$ac_objext \
13857 conftest
$ac_exeext conftest.
$ac_ext
13859 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
13860 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
13861 if test $ac_cv_func_fseeko != no
; then
13863 cat >>confdefs.h
<<\_ACEOF
13864 #define HAVE_FSEEKO 1
13871 for ac_func
in grantpt
13873 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13874 echo "$as_me:$LINENO: checking for $ac_func" >&5
13875 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13876 if eval "test \"\${$as_ac_var+set}\" = set"; then
13877 echo $ECHO_N "(cached) $ECHO_C" >&6
13879 cat >conftest.
$ac_ext <<_ACEOF
13882 cat confdefs.h
>>conftest.
$ac_ext
13883 cat >>conftest.
$ac_ext <<_ACEOF
13884 /* end confdefs.h. */
13885 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13886 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13887 #define $ac_func innocuous_$ac_func
13889 /* System header to define __stub macros and hopefully few prototypes,
13890 which can conflict with char $ac_func (); below.
13891 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13892 <limits.h> exists even on freestanding compilers. */
13895 # include <limits.h>
13897 # include <assert.h>
13902 /* Override any gcc2 internal prototype to avoid an error. */
13907 /* We use char because int might match the return type of a gcc2
13908 builtin and then its argument prototype would still apply. */
13910 /* The GNU C library defines this for functions which it implements
13911 to always fail with ENOSYS. Some functions are actually named
13912 something starting with __ and the normal name is an alias. */
13913 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13916 char (*f) () = $ac_func;
13925 return f != $ac_func;
13930 rm -f conftest.
$ac_objext conftest
$ac_exeext
13931 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13932 (eval $ac_link) 2>conftest.er1
13934 grep -v '^ *+' conftest.er1
>conftest.err
13936 cat conftest.err
>&5
13937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13938 (exit $ac_status); } &&
13939 { ac_try
='test -z "$ac_c_werror_flag"
13940 || test ! -s conftest.err'
13941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13942 (eval $ac_try) 2>&5
13944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13945 (exit $ac_status); }; } &&
13946 { ac_try
='test -s conftest$ac_exeext'
13947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13948 (eval $ac_try) 2>&5
13950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13951 (exit $ac_status); }; }; then
13952 eval "$as_ac_var=yes"
13954 echo "$as_me: failed program was:" >&5
13955 sed 's/^/| /' conftest.
$ac_ext >&5
13957 eval "$as_ac_var=no"
13959 rm -f conftest.err conftest.
$ac_objext \
13960 conftest
$ac_exeext conftest.
$ac_ext
13962 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13963 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13964 if test `eval echo '${'$as_ac_var'}'` = yes; then
13965 cat >>confdefs.h
<<_ACEOF
13966 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13973 # PTY-related GNU extensions.
13975 for ac_func
in getpt
13977 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13978 echo "$as_me:$LINENO: checking for $ac_func" >&5
13979 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13980 if eval "test \"\${$as_ac_var+set}\" = set"; then
13981 echo $ECHO_N "(cached) $ECHO_C" >&6
13983 cat >conftest.
$ac_ext <<_ACEOF
13986 cat confdefs.h
>>conftest.
$ac_ext
13987 cat >>conftest.
$ac_ext <<_ACEOF
13988 /* end confdefs.h. */
13989 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13990 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13991 #define $ac_func innocuous_$ac_func
13993 /* System header to define __stub macros and hopefully few prototypes,
13994 which can conflict with char $ac_func (); below.
13995 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13996 <limits.h> exists even on freestanding compilers. */
13999 # include <limits.h>
14001 # include <assert.h>
14006 /* Override any gcc2 internal prototype to avoid an error. */
14011 /* We use char because int might match the return type of a gcc2
14012 builtin and then its argument prototype would still apply. */
14014 /* The GNU C library defines this for functions which it implements
14015 to always fail with ENOSYS. Some functions are actually named
14016 something starting with __ and the normal name is an alias. */
14017 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14020 char (*f) () = $ac_func;
14029 return f != $ac_func;
14034 rm -f conftest.
$ac_objext conftest
$ac_exeext
14035 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14036 (eval $ac_link) 2>conftest.er1
14038 grep -v '^ *+' conftest.er1
>conftest.err
14040 cat conftest.err
>&5
14041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14042 (exit $ac_status); } &&
14043 { ac_try
='test -z "$ac_c_werror_flag"
14044 || test ! -s conftest.err'
14045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14046 (eval $ac_try) 2>&5
14048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14049 (exit $ac_status); }; } &&
14050 { ac_try
='test -s conftest$ac_exeext'
14051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14052 (eval $ac_try) 2>&5
14054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14055 (exit $ac_status); }; }; then
14056 eval "$as_ac_var=yes"
14058 echo "$as_me: failed program was:" >&5
14059 sed 's/^/| /' conftest.
$ac_ext >&5
14061 eval "$as_ac_var=no"
14063 rm -f conftest.err conftest.
$ac_objext \
14064 conftest
$ac_exeext conftest.
$ac_ext
14066 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14067 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14068 if test `eval echo '${'$as_ac_var'}'` = yes; then
14069 cat >>confdefs.h
<<_ACEOF
14070 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14077 # Check this now, so that we will NOT find the above functions in ncurses.
14078 # That is because we have not set up to link ncurses in lib-src.
14079 # It's better to believe a function is not available
14080 # than to expect to find it in ncurses.
14082 echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
14083 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6
14084 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
14085 echo $ECHO_N "(cached) $ECHO_C" >&6
14087 ac_check_lib_save_LIBS
=$LIBS
14088 LIBS
="-lncurses $LIBS"
14089 cat >conftest.
$ac_ext <<_ACEOF
14092 cat confdefs.h
>>conftest.
$ac_ext
14093 cat >>conftest.
$ac_ext <<_ACEOF
14094 /* end confdefs.h. */
14096 /* Override any gcc2 internal prototype to avoid an error. */
14100 /* We use char because int might match the return type of a gcc2
14101 builtin and then its argument prototype would still apply. */
14111 rm -f conftest.
$ac_objext conftest
$ac_exeext
14112 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14113 (eval $ac_link) 2>conftest.er1
14115 grep -v '^ *+' conftest.er1
>conftest.err
14117 cat conftest.err
>&5
14118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14119 (exit $ac_status); } &&
14120 { ac_try
='test -z "$ac_c_werror_flag"
14121 || test ! -s conftest.err'
14122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14123 (eval $ac_try) 2>&5
14125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14126 (exit $ac_status); }; } &&
14127 { ac_try
='test -s conftest$ac_exeext'
14128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14129 (eval $ac_try) 2>&5
14131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14132 (exit $ac_status); }; }; then
14133 ac_cv_lib_ncurses_tparm
=yes
14135 echo "$as_me: failed program was:" >&5
14136 sed 's/^/| /' conftest.
$ac_ext >&5
14138 ac_cv_lib_ncurses_tparm
=no
14140 rm -f conftest.err conftest.
$ac_objext \
14141 conftest
$ac_exeext conftest.
$ac_ext
14142 LIBS
=$ac_check_lib_save_LIBS
14144 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
14145 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6
14146 if test $ac_cv_lib_ncurses_tparm = yes; then
14147 cat >>confdefs.h
<<_ACEOF
14148 #define HAVE_LIBNCURSES 1
14151 LIBS
="-lncurses $LIBS"
14156 # Do we need the Hesiod library to provide the support routines?
14157 if test "$with_hesiod" = yes ; then
14158 # Don't set $LIBS here -- see comments above.
14160 echo "$as_me:$LINENO: checking for res_send" >&5
14161 echo $ECHO_N "checking for res_send... $ECHO_C" >&6
14162 if test "${ac_cv_func_res_send+set}" = set; then
14163 echo $ECHO_N "(cached) $ECHO_C" >&6
14165 cat >conftest.
$ac_ext <<_ACEOF
14168 cat confdefs.h
>>conftest.
$ac_ext
14169 cat >>conftest.
$ac_ext <<_ACEOF
14170 /* end confdefs.h. */
14171 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
14172 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14173 #define res_send innocuous_res_send
14175 /* System header to define __stub macros and hopefully few prototypes,
14176 which can conflict with char res_send (); below.
14177 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14178 <limits.h> exists even on freestanding compilers. */
14181 # include <limits.h>
14183 # include <assert.h>
14188 /* Override any gcc2 internal prototype to avoid an error. */
14193 /* We use char because int might match the return type of a gcc2
14194 builtin and then its argument prototype would still apply. */
14196 /* The GNU C library defines this for functions which it implements
14197 to always fail with ENOSYS. Some functions are actually named
14198 something starting with __ and the normal name is an alias. */
14199 #if defined (__stub_res_send) || defined (__stub___res_send)
14202 char (*f) () = res_send;
14211 return f != res_send;
14216 rm -f conftest.
$ac_objext conftest
$ac_exeext
14217 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14218 (eval $ac_link) 2>conftest.er1
14220 grep -v '^ *+' conftest.er1
>conftest.err
14222 cat conftest.err
>&5
14223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14224 (exit $ac_status); } &&
14225 { ac_try
='test -z "$ac_c_werror_flag"
14226 || test ! -s conftest.err'
14227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14228 (eval $ac_try) 2>&5
14230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14231 (exit $ac_status); }; } &&
14232 { ac_try
='test -s conftest$ac_exeext'
14233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14234 (eval $ac_try) 2>&5
14236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14237 (exit $ac_status); }; }; then
14238 ac_cv_func_res_send
=yes
14240 echo "$as_me: failed program was:" >&5
14241 sed 's/^/| /' conftest.
$ac_ext >&5
14243 ac_cv_func_res_send
=no
14245 rm -f conftest.err conftest.
$ac_objext \
14246 conftest
$ac_exeext conftest.
$ac_ext
14248 echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
14249 echo "${ECHO_T}$ac_cv_func_res_send" >&6
14250 if test $ac_cv_func_res_send = yes; then
14253 echo "$as_me:$LINENO: checking for __res_send" >&5
14254 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6
14255 if test "${ac_cv_func___res_send+set}" = set; then
14256 echo $ECHO_N "(cached) $ECHO_C" >&6
14258 cat >conftest.
$ac_ext <<_ACEOF
14261 cat confdefs.h
>>conftest.
$ac_ext
14262 cat >>conftest.
$ac_ext <<_ACEOF
14263 /* end confdefs.h. */
14264 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
14265 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14266 #define __res_send innocuous___res_send
14268 /* System header to define __stub macros and hopefully few prototypes,
14269 which can conflict with char __res_send (); below.
14270 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14271 <limits.h> exists even on freestanding compilers. */
14274 # include <limits.h>
14276 # include <assert.h>
14281 /* Override any gcc2 internal prototype to avoid an error. */
14286 /* We use char because int might match the return type of a gcc2
14287 builtin and then its argument prototype would still apply. */
14288 char __res_send ();
14289 /* The GNU C library defines this for functions which it implements
14290 to always fail with ENOSYS. Some functions are actually named
14291 something starting with __ and the normal name is an alias. */
14292 #if defined (__stub___res_send) || defined (__stub_____res_send)
14295 char (*f) () = __res_send;
14304 return f != __res_send;
14309 rm -f conftest.
$ac_objext conftest
$ac_exeext
14310 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14311 (eval $ac_link) 2>conftest.er1
14313 grep -v '^ *+' conftest.er1
>conftest.err
14315 cat conftest.err
>&5
14316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14317 (exit $ac_status); } &&
14318 { ac_try
='test -z "$ac_c_werror_flag"
14319 || test ! -s conftest.err'
14320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14321 (eval $ac_try) 2>&5
14323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14324 (exit $ac_status); }; } &&
14325 { ac_try
='test -s conftest$ac_exeext'
14326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14327 (eval $ac_try) 2>&5
14329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14330 (exit $ac_status); }; }; then
14331 ac_cv_func___res_send
=yes
14333 echo "$as_me: failed program was:" >&5
14334 sed 's/^/| /' conftest.
$ac_ext >&5
14336 ac_cv_func___res_send
=no
14338 rm -f conftest.err conftest.
$ac_objext \
14339 conftest
$ac_exeext conftest.
$ac_ext
14341 echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
14342 echo "${ECHO_T}$ac_cv_func___res_send" >&6
14343 if test $ac_cv_func___res_send = yes; then
14346 echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
14347 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6
14348 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
14349 echo $ECHO_N "(cached) $ECHO_C" >&6
14351 ac_check_lib_save_LIBS
=$LIBS
14352 LIBS
="-lresolv $LIBS"
14353 cat >conftest.
$ac_ext <<_ACEOF
14356 cat confdefs.h
>>conftest.
$ac_ext
14357 cat >>conftest.
$ac_ext <<_ACEOF
14358 /* end confdefs.h. */
14360 /* Override any gcc2 internal prototype to avoid an error. */
14364 /* We use char because int might match the return type of a gcc2
14365 builtin and then its argument prototype would still apply. */
14375 rm -f conftest.
$ac_objext conftest
$ac_exeext
14376 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14377 (eval $ac_link) 2>conftest.er1
14379 grep -v '^ *+' conftest.er1
>conftest.err
14381 cat conftest.err
>&5
14382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14383 (exit $ac_status); } &&
14384 { ac_try
='test -z "$ac_c_werror_flag"
14385 || test ! -s conftest.err'
14386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14387 (eval $ac_try) 2>&5
14389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14390 (exit $ac_status); }; } &&
14391 { ac_try
='test -s conftest$ac_exeext'
14392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14393 (eval $ac_try) 2>&5
14395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14396 (exit $ac_status); }; }; then
14397 ac_cv_lib_resolv_res_send
=yes
14399 echo "$as_me: failed program was:" >&5
14400 sed 's/^/| /' conftest.
$ac_ext >&5
14402 ac_cv_lib_resolv_res_send
=no
14404 rm -f conftest.err conftest.
$ac_objext \
14405 conftest
$ac_exeext conftest.
$ac_ext
14406 LIBS
=$ac_check_lib_save_LIBS
14408 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
14409 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6
14410 if test $ac_cv_lib_resolv_res_send = yes; then
14413 echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
14414 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6
14415 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
14416 echo $ECHO_N "(cached) $ECHO_C" >&6
14418 ac_check_lib_save_LIBS
=$LIBS
14419 LIBS
="-lresolv $LIBS"
14420 cat >conftest.
$ac_ext <<_ACEOF
14423 cat confdefs.h
>>conftest.
$ac_ext
14424 cat >>conftest.
$ac_ext <<_ACEOF
14425 /* end confdefs.h. */
14427 /* Override any gcc2 internal prototype to avoid an error. */
14431 /* We use char because int might match the return type of a gcc2
14432 builtin and then its argument prototype would still apply. */
14433 char __res_send ();
14442 rm -f conftest.
$ac_objext conftest
$ac_exeext
14443 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14444 (eval $ac_link) 2>conftest.er1
14446 grep -v '^ *+' conftest.er1
>conftest.err
14448 cat conftest.err
>&5
14449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14450 (exit $ac_status); } &&
14451 { ac_try
='test -z "$ac_c_werror_flag"
14452 || test ! -s conftest.err'
14453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14454 (eval $ac_try) 2>&5
14456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14457 (exit $ac_status); }; } &&
14458 { ac_try
='test -s conftest$ac_exeext'
14459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14460 (eval $ac_try) 2>&5
14462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14463 (exit $ac_status); }; }; then
14464 ac_cv_lib_resolv___res_send
=yes
14466 echo "$as_me: failed program was:" >&5
14467 sed 's/^/| /' conftest.
$ac_ext >&5
14469 ac_cv_lib_resolv___res_send
=no
14471 rm -f conftest.err conftest.
$ac_objext \
14472 conftest
$ac_exeext conftest.
$ac_ext
14473 LIBS
=$ac_check_lib_save_LIBS
14475 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
14476 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6
14477 if test $ac_cv_lib_resolv___res_send = yes; then
14487 if test "$resolv" = yes ; then
14489 cat >>confdefs.h
<<\_ACEOF
14490 #define HAVE_LIBRESOLV 1
14496 echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
14497 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6
14498 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
14499 echo $ECHO_N "(cached) $ECHO_C" >&6
14501 cat >conftest.
$ac_ext <<_ACEOF
14504 cat confdefs.h
>>conftest.
$ac_ext
14505 cat >>conftest.
$ac_ext <<_ACEOF
14506 /* end confdefs.h. */
14507 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
14508 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14509 #define hes_getmailhost innocuous_hes_getmailhost
14511 /* System header to define __stub macros and hopefully few prototypes,
14512 which can conflict with char hes_getmailhost (); below.
14513 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14514 <limits.h> exists even on freestanding compilers. */
14517 # include <limits.h>
14519 # include <assert.h>
14522 #undef hes_getmailhost
14524 /* Override any gcc2 internal prototype to avoid an error. */
14529 /* We use char because int might match the return type of a gcc2
14530 builtin and then its argument prototype would still apply. */
14531 char hes_getmailhost ();
14532 /* The GNU C library defines this for functions which it implements
14533 to always fail with ENOSYS. Some functions are actually named
14534 something starting with __ and the normal name is an alias. */
14535 #if defined (__stub_hes_getmailhost) || defined (__stub___hes_getmailhost)
14538 char (*f) () = hes_getmailhost;
14547 return f != hes_getmailhost;
14552 rm -f conftest.
$ac_objext conftest
$ac_exeext
14553 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14554 (eval $ac_link) 2>conftest.er1
14556 grep -v '^ *+' conftest.er1
>conftest.err
14558 cat conftest.err
>&5
14559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14560 (exit $ac_status); } &&
14561 { ac_try
='test -z "$ac_c_werror_flag"
14562 || test ! -s conftest.err'
14563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14564 (eval $ac_try) 2>&5
14566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14567 (exit $ac_status); }; } &&
14568 { ac_try
='test -s conftest$ac_exeext'
14569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14570 (eval $ac_try) 2>&5
14572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14573 (exit $ac_status); }; }; then
14574 ac_cv_func_hes_getmailhost
=yes
14576 echo "$as_me: failed program was:" >&5
14577 sed 's/^/| /' conftest.
$ac_ext >&5
14579 ac_cv_func_hes_getmailhost
=no
14581 rm -f conftest.err conftest.
$ac_objext \
14582 conftest
$ac_exeext conftest.
$ac_ext
14584 echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
14585 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6
14586 if test $ac_cv_func_hes_getmailhost = yes; then
14589 echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
14590 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6
14591 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
14592 echo $ECHO_N "(cached) $ECHO_C" >&6
14594 ac_check_lib_save_LIBS
=$LIBS
14595 LIBS
="-lhesiod $RESOLVLIB $LIBS"
14596 cat >conftest.
$ac_ext <<_ACEOF
14599 cat confdefs.h
>>conftest.
$ac_ext
14600 cat >>conftest.
$ac_ext <<_ACEOF
14601 /* end confdefs.h. */
14603 /* Override any gcc2 internal prototype to avoid an error. */
14607 /* We use char because int might match the return type of a gcc2
14608 builtin and then its argument prototype would still apply. */
14609 char hes_getmailhost ();
14613 hes_getmailhost ();
14618 rm -f conftest.
$ac_objext conftest
$ac_exeext
14619 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14620 (eval $ac_link) 2>conftest.er1
14622 grep -v '^ *+' conftest.er1
>conftest.err
14624 cat conftest.err
>&5
14625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14626 (exit $ac_status); } &&
14627 { ac_try
='test -z "$ac_c_werror_flag"
14628 || test ! -s conftest.err'
14629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14630 (eval $ac_try) 2>&5
14632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14633 (exit $ac_status); }; } &&
14634 { ac_try
='test -s conftest$ac_exeext'
14635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14636 (eval $ac_try) 2>&5
14638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14639 (exit $ac_status); }; }; then
14640 ac_cv_lib_hesiod_hes_getmailhost
=yes
14642 echo "$as_me: failed program was:" >&5
14643 sed 's/^/| /' conftest.
$ac_ext >&5
14645 ac_cv_lib_hesiod_hes_getmailhost
=no
14647 rm -f conftest.err conftest.
$ac_objext \
14648 conftest
$ac_exeext conftest.
$ac_ext
14649 LIBS
=$ac_check_lib_save_LIBS
14651 echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
14652 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6
14653 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
14654 cat >>confdefs.h
<<\_ACEOF
14655 #define HAVE_LIBHESIOD 1
14666 # These tell us which Kerberos-related libraries to use.
14667 if test "${with_kerberos+set}" = set; then
14669 echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
14670 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6
14671 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
14672 echo $ECHO_N "(cached) $ECHO_C" >&6
14674 ac_check_lib_save_LIBS
=$LIBS
14675 LIBS
="-lcom_err $LIBS"
14676 cat >conftest.
$ac_ext <<_ACEOF
14679 cat confdefs.h
>>conftest.
$ac_ext
14680 cat >>conftest.
$ac_ext <<_ACEOF
14681 /* end confdefs.h. */
14683 /* Override any gcc2 internal prototype to avoid an error. */
14687 /* We use char because int might match the return type of a gcc2
14688 builtin and then its argument prototype would still apply. */
14698 rm -f conftest.
$ac_objext conftest
$ac_exeext
14699 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14700 (eval $ac_link) 2>conftest.er1
14702 grep -v '^ *+' conftest.er1
>conftest.err
14704 cat conftest.err
>&5
14705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14706 (exit $ac_status); } &&
14707 { ac_try
='test -z "$ac_c_werror_flag"
14708 || test ! -s conftest.err'
14709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14710 (eval $ac_try) 2>&5
14712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14713 (exit $ac_status); }; } &&
14714 { ac_try
='test -s conftest$ac_exeext'
14715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14716 (eval $ac_try) 2>&5
14718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14719 (exit $ac_status); }; }; then
14720 ac_cv_lib_com_err_com_err
=yes
14722 echo "$as_me: failed program was:" >&5
14723 sed 's/^/| /' conftest.
$ac_ext >&5
14725 ac_cv_lib_com_err_com_err
=no
14727 rm -f conftest.err conftest.
$ac_objext \
14728 conftest
$ac_exeext conftest.
$ac_ext
14729 LIBS
=$ac_check_lib_save_LIBS
14731 echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
14732 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6
14733 if test $ac_cv_lib_com_err_com_err = yes; then
14734 cat >>confdefs.h
<<_ACEOF
14735 #define HAVE_LIBCOM_ERR 1
14738 LIBS
="-lcom_err $LIBS"
14743 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
14744 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6
14745 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
14746 echo $ECHO_N "(cached) $ECHO_C" >&6
14748 ac_check_lib_save_LIBS
=$LIBS
14749 LIBS
="-lk5crypto $LIBS"
14750 cat >conftest.
$ac_ext <<_ACEOF
14753 cat confdefs.h
>>conftest.
$ac_ext
14754 cat >>conftest.
$ac_ext <<_ACEOF
14755 /* end confdefs.h. */
14757 /* Override any gcc2 internal prototype to avoid an error. */
14761 /* We use char because int might match the return type of a gcc2
14762 builtin and then its argument prototype would still apply. */
14763 char mit_des_cbc_encrypt ();
14767 mit_des_cbc_encrypt ();
14772 rm -f conftest.
$ac_objext conftest
$ac_exeext
14773 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14774 (eval $ac_link) 2>conftest.er1
14776 grep -v '^ *+' conftest.er1
>conftest.err
14778 cat conftest.err
>&5
14779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14780 (exit $ac_status); } &&
14781 { ac_try
='test -z "$ac_c_werror_flag"
14782 || test ! -s conftest.err'
14783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14784 (eval $ac_try) 2>&5
14786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14787 (exit $ac_status); }; } &&
14788 { ac_try
='test -s conftest$ac_exeext'
14789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14790 (eval $ac_try) 2>&5
14792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14793 (exit $ac_status); }; }; then
14794 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=yes
14796 echo "$as_me: failed program was:" >&5
14797 sed 's/^/| /' conftest.
$ac_ext >&5
14799 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=no
14801 rm -f conftest.err conftest.
$ac_objext \
14802 conftest
$ac_exeext conftest.
$ac_ext
14803 LIBS
=$ac_check_lib_save_LIBS
14805 echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
14806 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6
14807 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
14808 cat >>confdefs.h
<<_ACEOF
14809 #define HAVE_LIBK5CRYPTO 1
14812 LIBS
="-lk5crypto $LIBS"
14817 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
14818 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6
14819 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
14820 echo $ECHO_N "(cached) $ECHO_C" >&6
14822 ac_check_lib_save_LIBS
=$LIBS
14823 LIBS
="-lcrypto $LIBS"
14824 cat >conftest.
$ac_ext <<_ACEOF
14827 cat confdefs.h
>>conftest.
$ac_ext
14828 cat >>conftest.
$ac_ext <<_ACEOF
14829 /* end confdefs.h. */
14831 /* Override any gcc2 internal prototype to avoid an error. */
14835 /* We use char because int might match the return type of a gcc2
14836 builtin and then its argument prototype would still apply. */
14837 char mit_des_cbc_encrypt ();
14841 mit_des_cbc_encrypt ();
14846 rm -f conftest.
$ac_objext conftest
$ac_exeext
14847 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14848 (eval $ac_link) 2>conftest.er1
14850 grep -v '^ *+' conftest.er1
>conftest.err
14852 cat conftest.err
>&5
14853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14854 (exit $ac_status); } &&
14855 { ac_try
='test -z "$ac_c_werror_flag"
14856 || test ! -s conftest.err'
14857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14858 (eval $ac_try) 2>&5
14860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14861 (exit $ac_status); }; } &&
14862 { ac_try
='test -s conftest$ac_exeext'
14863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14864 (eval $ac_try) 2>&5
14866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14867 (exit $ac_status); }; }; then
14868 ac_cv_lib_crypto_mit_des_cbc_encrypt
=yes
14870 echo "$as_me: failed program was:" >&5
14871 sed 's/^/| /' conftest.
$ac_ext >&5
14873 ac_cv_lib_crypto_mit_des_cbc_encrypt
=no
14875 rm -f conftest.err conftest.
$ac_objext \
14876 conftest
$ac_exeext conftest.
$ac_ext
14877 LIBS
=$ac_check_lib_save_LIBS
14879 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
14880 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6
14881 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
14882 cat >>confdefs.h
<<_ACEOF
14883 #define HAVE_LIBCRYPTO 1
14886 LIBS
="-lcrypto $LIBS"
14891 echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
14892 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6
14893 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
14894 echo $ECHO_N "(cached) $ECHO_C" >&6
14896 ac_check_lib_save_LIBS
=$LIBS
14897 LIBS
="-lkrb5 $LIBS"
14898 cat >conftest.
$ac_ext <<_ACEOF
14901 cat confdefs.h
>>conftest.
$ac_ext
14902 cat >>conftest.
$ac_ext <<_ACEOF
14903 /* end confdefs.h. */
14905 /* Override any gcc2 internal prototype to avoid an error. */
14909 /* We use char because int might match the return type of a gcc2
14910 builtin and then its argument prototype would still apply. */
14911 char krb5_init_context ();
14915 krb5_init_context ();
14920 rm -f conftest.
$ac_objext conftest
$ac_exeext
14921 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14922 (eval $ac_link) 2>conftest.er1
14924 grep -v '^ *+' conftest.er1
>conftest.err
14926 cat conftest.err
>&5
14927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14928 (exit $ac_status); } &&
14929 { ac_try
='test -z "$ac_c_werror_flag"
14930 || test ! -s conftest.err'
14931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14932 (eval $ac_try) 2>&5
14934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14935 (exit $ac_status); }; } &&
14936 { ac_try
='test -s conftest$ac_exeext'
14937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14938 (eval $ac_try) 2>&5
14940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14941 (exit $ac_status); }; }; then
14942 ac_cv_lib_krb5_krb5_init_context
=yes
14944 echo "$as_me: failed program was:" >&5
14945 sed 's/^/| /' conftest.
$ac_ext >&5
14947 ac_cv_lib_krb5_krb5_init_context
=no
14949 rm -f conftest.err conftest.
$ac_objext \
14950 conftest
$ac_exeext conftest.
$ac_ext
14951 LIBS
=$ac_check_lib_save_LIBS
14953 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
14954 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6
14955 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
14956 cat >>confdefs.h
<<_ACEOF
14957 #define HAVE_LIBKRB5 1
14960 LIBS
="-lkrb5 $LIBS"
14964 if test "${with_kerberos5+set}" != set; then
14966 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
14967 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6
14968 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
14969 echo $ECHO_N "(cached) $ECHO_C" >&6
14971 ac_check_lib_save_LIBS
=$LIBS
14972 LIBS
="-ldes425 $LIBS"
14973 cat >conftest.
$ac_ext <<_ACEOF
14976 cat confdefs.h
>>conftest.
$ac_ext
14977 cat >>conftest.
$ac_ext <<_ACEOF
14978 /* end confdefs.h. */
14980 /* Override any gcc2 internal prototype to avoid an error. */
14984 /* We use char because int might match the return type of a gcc2
14985 builtin and then its argument prototype would still apply. */
14986 char des_cbc_encrypt ();
14990 des_cbc_encrypt ();
14995 rm -f conftest.
$ac_objext conftest
$ac_exeext
14996 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14997 (eval $ac_link) 2>conftest.er1
14999 grep -v '^ *+' conftest.er1
>conftest.err
15001 cat conftest.err
>&5
15002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15003 (exit $ac_status); } &&
15004 { ac_try
='test -z "$ac_c_werror_flag"
15005 || test ! -s conftest.err'
15006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15007 (eval $ac_try) 2>&5
15009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15010 (exit $ac_status); }; } &&
15011 { ac_try
='test -s conftest$ac_exeext'
15012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15013 (eval $ac_try) 2>&5
15015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15016 (exit $ac_status); }; }; then
15017 ac_cv_lib_des425_des_cbc_encrypt
=yes
15019 echo "$as_me: failed program was:" >&5
15020 sed 's/^/| /' conftest.
$ac_ext >&5
15022 ac_cv_lib_des425_des_cbc_encrypt
=no
15024 rm -f conftest.err conftest.
$ac_objext \
15025 conftest
$ac_exeext conftest.
$ac_ext
15026 LIBS
=$ac_check_lib_save_LIBS
15028 echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
15029 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6
15030 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
15031 cat >>confdefs.h
<<_ACEOF
15032 #define HAVE_LIBDES425 1
15035 LIBS
="-ldes425 $LIBS"
15039 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
15040 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6
15041 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
15042 echo $ECHO_N "(cached) $ECHO_C" >&6
15044 ac_check_lib_save_LIBS
=$LIBS
15046 cat >conftest.
$ac_ext <<_ACEOF
15049 cat confdefs.h
>>conftest.
$ac_ext
15050 cat >>conftest.
$ac_ext <<_ACEOF
15051 /* end confdefs.h. */
15053 /* Override any gcc2 internal prototype to avoid an error. */
15057 /* We use char because int might match the return type of a gcc2
15058 builtin and then its argument prototype would still apply. */
15059 char des_cbc_encrypt ();
15063 des_cbc_encrypt ();
15068 rm -f conftest.
$ac_objext conftest
$ac_exeext
15069 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15070 (eval $ac_link) 2>conftest.er1
15072 grep -v '^ *+' conftest.er1
>conftest.err
15074 cat conftest.err
>&5
15075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15076 (exit $ac_status); } &&
15077 { ac_try
='test -z "$ac_c_werror_flag"
15078 || test ! -s conftest.err'
15079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15080 (eval $ac_try) 2>&5
15082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15083 (exit $ac_status); }; } &&
15084 { ac_try
='test -s conftest$ac_exeext'
15085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15086 (eval $ac_try) 2>&5
15088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15089 (exit $ac_status); }; }; then
15090 ac_cv_lib_des_des_cbc_encrypt
=yes
15092 echo "$as_me: failed program was:" >&5
15093 sed 's/^/| /' conftest.
$ac_ext >&5
15095 ac_cv_lib_des_des_cbc_encrypt
=no
15097 rm -f conftest.err conftest.
$ac_objext \
15098 conftest
$ac_exeext conftest.
$ac_ext
15099 LIBS
=$ac_check_lib_save_LIBS
15101 echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
15102 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6
15103 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
15104 cat >>confdefs.h
<<_ACEOF
15105 #define HAVE_LIBDES 1
15115 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
15116 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6
15117 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
15118 echo $ECHO_N "(cached) $ECHO_C" >&6
15120 ac_check_lib_save_LIBS
=$LIBS
15121 LIBS
="-lkrb4 $LIBS"
15122 cat >conftest.
$ac_ext <<_ACEOF
15125 cat confdefs.h
>>conftest.
$ac_ext
15126 cat >>conftest.
$ac_ext <<_ACEOF
15127 /* end confdefs.h. */
15129 /* Override any gcc2 internal prototype to avoid an error. */
15133 /* We use char because int might match the return type of a gcc2
15134 builtin and then its argument prototype would still apply. */
15135 char krb_get_cred ();
15144 rm -f conftest.
$ac_objext conftest
$ac_exeext
15145 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15146 (eval $ac_link) 2>conftest.er1
15148 grep -v '^ *+' conftest.er1
>conftest.err
15150 cat conftest.err
>&5
15151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15152 (exit $ac_status); } &&
15153 { ac_try
='test -z "$ac_c_werror_flag"
15154 || test ! -s conftest.err'
15155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15156 (eval $ac_try) 2>&5
15158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15159 (exit $ac_status); }; } &&
15160 { ac_try
='test -s conftest$ac_exeext'
15161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15162 (eval $ac_try) 2>&5
15164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15165 (exit $ac_status); }; }; then
15166 ac_cv_lib_krb4_krb_get_cred
=yes
15168 echo "$as_me: failed program was:" >&5
15169 sed 's/^/| /' conftest.
$ac_ext >&5
15171 ac_cv_lib_krb4_krb_get_cred
=no
15173 rm -f conftest.err conftest.
$ac_objext \
15174 conftest
$ac_exeext conftest.
$ac_ext
15175 LIBS
=$ac_check_lib_save_LIBS
15177 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
15178 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6
15179 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
15180 cat >>confdefs.h
<<_ACEOF
15181 #define HAVE_LIBKRB4 1
15184 LIBS
="-lkrb4 $LIBS"
15188 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
15189 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6
15190 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
15191 echo $ECHO_N "(cached) $ECHO_C" >&6
15193 ac_check_lib_save_LIBS
=$LIBS
15195 cat >conftest.
$ac_ext <<_ACEOF
15198 cat confdefs.h
>>conftest.
$ac_ext
15199 cat >>conftest.
$ac_ext <<_ACEOF
15200 /* end confdefs.h. */
15202 /* Override any gcc2 internal prototype to avoid an error. */
15206 /* We use char because int might match the return type of a gcc2
15207 builtin and then its argument prototype would still apply. */
15208 char krb_get_cred ();
15217 rm -f conftest.
$ac_objext conftest
$ac_exeext
15218 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15219 (eval $ac_link) 2>conftest.er1
15221 grep -v '^ *+' conftest.er1
>conftest.err
15223 cat conftest.err
>&5
15224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15225 (exit $ac_status); } &&
15226 { ac_try
='test -z "$ac_c_werror_flag"
15227 || test ! -s conftest.err'
15228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15229 (eval $ac_try) 2>&5
15231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15232 (exit $ac_status); }; } &&
15233 { ac_try
='test -s conftest$ac_exeext'
15234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15235 (eval $ac_try) 2>&5
15237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15238 (exit $ac_status); }; }; then
15239 ac_cv_lib_krb_krb_get_cred
=yes
15241 echo "$as_me: failed program was:" >&5
15242 sed 's/^/| /' conftest.
$ac_ext >&5
15244 ac_cv_lib_krb_krb_get_cred
=no
15246 rm -f conftest.err conftest.
$ac_objext \
15247 conftest
$ac_exeext conftest.
$ac_ext
15248 LIBS
=$ac_check_lib_save_LIBS
15250 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
15251 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6
15252 if test $ac_cv_lib_krb_krb_get_cred = yes; then
15253 cat >>confdefs.h
<<_ACEOF
15254 #define HAVE_LIBKRB 1
15265 if test "${with_kerberos5+set}" = set; then
15267 for ac_header
in krb5.h
15269 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15270 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15271 echo "$as_me:$LINENO: checking for $ac_header" >&5
15272 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15273 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15274 echo $ECHO_N "(cached) $ECHO_C" >&6
15276 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15277 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15279 # Is the header compilable?
15280 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15281 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15282 cat >conftest.
$ac_ext <<_ACEOF
15285 cat confdefs.h
>>conftest.
$ac_ext
15286 cat >>conftest.
$ac_ext <<_ACEOF
15287 /* end confdefs.h. */
15288 $ac_includes_default
15289 #include <$ac_header>
15291 rm -f conftest.
$ac_objext
15292 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15293 (eval $ac_compile) 2>conftest.er1
15295 grep -v '^ *+' conftest.er1
>conftest.err
15297 cat conftest.err
>&5
15298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15299 (exit $ac_status); } &&
15300 { ac_try
='test -z "$ac_c_werror_flag"
15301 || test ! -s conftest.err'
15302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15303 (eval $ac_try) 2>&5
15305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15306 (exit $ac_status); }; } &&
15307 { ac_try
='test -s conftest.$ac_objext'
15308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15309 (eval $ac_try) 2>&5
15311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15312 (exit $ac_status); }; }; then
15313 ac_header_compiler
=yes
15315 echo "$as_me: failed program was:" >&5
15316 sed 's/^/| /' conftest.
$ac_ext >&5
15318 ac_header_compiler
=no
15320 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15321 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15322 echo "${ECHO_T}$ac_header_compiler" >&6
15324 # Is the header present?
15325 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15326 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15327 cat >conftest.
$ac_ext <<_ACEOF
15330 cat confdefs.h
>>conftest.
$ac_ext
15331 cat >>conftest.
$ac_ext <<_ACEOF
15332 /* end confdefs.h. */
15333 #include <$ac_header>
15335 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15336 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
15338 grep -v '^ *+' conftest.er1
>conftest.err
15340 cat conftest.err
>&5
15341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15342 (exit $ac_status); } >/dev
/null
; then
15343 if test -s conftest.err
; then
15344 ac_cpp_err
=$ac_c_preproc_warn_flag
15345 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
15352 if test -z "$ac_cpp_err"; then
15353 ac_header_preproc
=yes
15355 echo "$as_me: failed program was:" >&5
15356 sed 's/^/| /' conftest.
$ac_ext >&5
15358 ac_header_preproc
=no
15360 rm -f conftest.err conftest.
$ac_ext
15361 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15362 echo "${ECHO_T}$ac_header_preproc" >&6
15364 # So? What about this header?
15365 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15367 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15368 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15369 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15370 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15371 ac_header_preproc
=yes
15374 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15375 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15376 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15377 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15378 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15379 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15380 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15381 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15382 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15383 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15384 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15385 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15388 ## ------------------------------------------ ##
15389 ## Report this to the AC_PACKAGE_NAME lists. ##
15390 ## ------------------------------------------ ##
15393 sed "s/^/$as_me: WARNING: /" >&2
15396 echo "$as_me:$LINENO: checking for $ac_header" >&5
15397 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15398 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15399 echo $ECHO_N "(cached) $ECHO_C" >&6
15401 eval "$as_ac_Header=\$ac_header_preproc"
15403 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15404 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15407 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15408 cat >>confdefs.h
<<_ACEOF
15409 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15418 for ac_header
in des.h
15420 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15421 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15422 echo "$as_me:$LINENO: checking for $ac_header" >&5
15423 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15424 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15425 echo $ECHO_N "(cached) $ECHO_C" >&6
15427 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15428 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15430 # Is the header compilable?
15431 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15432 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15433 cat >conftest.
$ac_ext <<_ACEOF
15436 cat confdefs.h
>>conftest.
$ac_ext
15437 cat >>conftest.
$ac_ext <<_ACEOF
15438 /* end confdefs.h. */
15439 $ac_includes_default
15440 #include <$ac_header>
15442 rm -f conftest.
$ac_objext
15443 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15444 (eval $ac_compile) 2>conftest.er1
15446 grep -v '^ *+' conftest.er1
>conftest.err
15448 cat conftest.err
>&5
15449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15450 (exit $ac_status); } &&
15451 { ac_try
='test -z "$ac_c_werror_flag"
15452 || test ! -s conftest.err'
15453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15454 (eval $ac_try) 2>&5
15456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15457 (exit $ac_status); }; } &&
15458 { ac_try
='test -s conftest.$ac_objext'
15459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15460 (eval $ac_try) 2>&5
15462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15463 (exit $ac_status); }; }; then
15464 ac_header_compiler
=yes
15466 echo "$as_me: failed program was:" >&5
15467 sed 's/^/| /' conftest.
$ac_ext >&5
15469 ac_header_compiler
=no
15471 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15472 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15473 echo "${ECHO_T}$ac_header_compiler" >&6
15475 # Is the header present?
15476 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15477 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15478 cat >conftest.
$ac_ext <<_ACEOF
15481 cat confdefs.h
>>conftest.
$ac_ext
15482 cat >>conftest.
$ac_ext <<_ACEOF
15483 /* end confdefs.h. */
15484 #include <$ac_header>
15486 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15487 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
15489 grep -v '^ *+' conftest.er1
>conftest.err
15491 cat conftest.err
>&5
15492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15493 (exit $ac_status); } >/dev
/null
; then
15494 if test -s conftest.err
; then
15495 ac_cpp_err
=$ac_c_preproc_warn_flag
15496 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
15503 if test -z "$ac_cpp_err"; then
15504 ac_header_preproc
=yes
15506 echo "$as_me: failed program was:" >&5
15507 sed 's/^/| /' conftest.
$ac_ext >&5
15509 ac_header_preproc
=no
15511 rm -f conftest.err conftest.
$ac_ext
15512 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15513 echo "${ECHO_T}$ac_header_preproc" >&6
15515 # So? What about this header?
15516 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15518 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15519 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15520 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15521 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15522 ac_header_preproc
=yes
15525 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15526 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15527 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15528 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15529 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15530 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15531 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15532 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15533 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15534 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15535 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15536 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15539 ## ------------------------------------------ ##
15540 ## Report this to the AC_PACKAGE_NAME lists. ##
15541 ## ------------------------------------------ ##
15544 sed "s/^/$as_me: WARNING: /" >&2
15547 echo "$as_me:$LINENO: checking for $ac_header" >&5
15548 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15549 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15550 echo $ECHO_N "(cached) $ECHO_C" >&6
15552 eval "$as_ac_Header=\$ac_header_preproc"
15554 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15555 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15558 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15559 cat >>confdefs.h
<<_ACEOF
15560 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15565 for ac_header
in kerberosIV
/des.h
15567 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15568 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15569 echo "$as_me:$LINENO: checking for $ac_header" >&5
15570 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15571 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15572 echo $ECHO_N "(cached) $ECHO_C" >&6
15574 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15575 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15577 # Is the header compilable?
15578 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15579 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15580 cat >conftest.
$ac_ext <<_ACEOF
15583 cat confdefs.h
>>conftest.
$ac_ext
15584 cat >>conftest.
$ac_ext <<_ACEOF
15585 /* end confdefs.h. */
15586 $ac_includes_default
15587 #include <$ac_header>
15589 rm -f conftest.
$ac_objext
15590 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15591 (eval $ac_compile) 2>conftest.er1
15593 grep -v '^ *+' conftest.er1
>conftest.err
15595 cat conftest.err
>&5
15596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15597 (exit $ac_status); } &&
15598 { ac_try
='test -z "$ac_c_werror_flag"
15599 || test ! -s conftest.err'
15600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15601 (eval $ac_try) 2>&5
15603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15604 (exit $ac_status); }; } &&
15605 { ac_try
='test -s conftest.$ac_objext'
15606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15607 (eval $ac_try) 2>&5
15609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15610 (exit $ac_status); }; }; then
15611 ac_header_compiler
=yes
15613 echo "$as_me: failed program was:" >&5
15614 sed 's/^/| /' conftest.
$ac_ext >&5
15616 ac_header_compiler
=no
15618 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15619 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15620 echo "${ECHO_T}$ac_header_compiler" >&6
15622 # Is the header present?
15623 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15624 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15625 cat >conftest.
$ac_ext <<_ACEOF
15628 cat confdefs.h
>>conftest.
$ac_ext
15629 cat >>conftest.
$ac_ext <<_ACEOF
15630 /* end confdefs.h. */
15631 #include <$ac_header>
15633 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15634 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
15636 grep -v '^ *+' conftest.er1
>conftest.err
15638 cat conftest.err
>&5
15639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15640 (exit $ac_status); } >/dev
/null
; then
15641 if test -s conftest.err
; then
15642 ac_cpp_err
=$ac_c_preproc_warn_flag
15643 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
15650 if test -z "$ac_cpp_err"; then
15651 ac_header_preproc
=yes
15653 echo "$as_me: failed program was:" >&5
15654 sed 's/^/| /' conftest.
$ac_ext >&5
15656 ac_header_preproc
=no
15658 rm -f conftest.err conftest.
$ac_ext
15659 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15660 echo "${ECHO_T}$ac_header_preproc" >&6
15662 # So? What about this header?
15663 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15669 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15670 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15671 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15672 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15673 ac_header_preproc
=yes
15676 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15677 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15678 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15679 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15680 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15681 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15682 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15683 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15684 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15685 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15686 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15687 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15690 ## ------------------------------------------ ##
15691 ## Report this to the AC_PACKAGE_NAME lists. ##
15692 ## ------------------------------------------ ##
15695 sed "s/^/$as_me: WARNING: /" >&2
15698 echo "$as_me:$LINENO: checking for $ac_header" >&5
15699 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15700 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15701 echo $ECHO_N "(cached) $ECHO_C" >&6
15703 eval "$as_ac_Header=\$ac_header_preproc"
15705 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15706 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15709 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15710 cat >>confdefs.h
<<_ACEOF
15711 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15716 for ac_header
in kerberos
/des.h
15718 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15719 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15720 echo "$as_me:$LINENO: checking for $ac_header" >&5
15721 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15722 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15723 echo $ECHO_N "(cached) $ECHO_C" >&6
15725 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15726 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15728 # Is the header compilable?
15729 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15730 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15731 cat >conftest.
$ac_ext <<_ACEOF
15734 cat confdefs.h
>>conftest.
$ac_ext
15735 cat >>conftest.
$ac_ext <<_ACEOF
15736 /* end confdefs.h. */
15737 $ac_includes_default
15738 #include <$ac_header>
15740 rm -f conftest.
$ac_objext
15741 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15742 (eval $ac_compile) 2>conftest.er1
15744 grep -v '^ *+' conftest.er1
>conftest.err
15746 cat conftest.err
>&5
15747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15748 (exit $ac_status); } &&
15749 { ac_try
='test -z "$ac_c_werror_flag"
15750 || test ! -s conftest.err'
15751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15752 (eval $ac_try) 2>&5
15754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15755 (exit $ac_status); }; } &&
15756 { ac_try
='test -s conftest.$ac_objext'
15757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15758 (eval $ac_try) 2>&5
15760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15761 (exit $ac_status); }; }; then
15762 ac_header_compiler
=yes
15764 echo "$as_me: failed program was:" >&5
15765 sed 's/^/| /' conftest.
$ac_ext >&5
15767 ac_header_compiler
=no
15769 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15770 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15771 echo "${ECHO_T}$ac_header_compiler" >&6
15773 # Is the header present?
15774 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15775 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15776 cat >conftest.
$ac_ext <<_ACEOF
15779 cat confdefs.h
>>conftest.
$ac_ext
15780 cat >>conftest.
$ac_ext <<_ACEOF
15781 /* end confdefs.h. */
15782 #include <$ac_header>
15784 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15785 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
15787 grep -v '^ *+' conftest.er1
>conftest.err
15789 cat conftest.err
>&5
15790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15791 (exit $ac_status); } >/dev
/null
; then
15792 if test -s conftest.err
; then
15793 ac_cpp_err
=$ac_c_preproc_warn_flag
15794 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
15801 if test -z "$ac_cpp_err"; then
15802 ac_header_preproc
=yes
15804 echo "$as_me: failed program was:" >&5
15805 sed 's/^/| /' conftest.
$ac_ext >&5
15807 ac_header_preproc
=no
15809 rm -f conftest.err conftest.
$ac_ext
15810 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15811 echo "${ECHO_T}$ac_header_preproc" >&6
15813 # So? What about this header?
15814 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15820 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15821 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15822 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15823 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15824 ac_header_preproc
=yes
15827 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15828 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15829 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15830 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15831 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15832 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15833 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15834 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15835 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15836 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15837 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15838 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15841 ## ------------------------------------------ ##
15842 ## Report this to the AC_PACKAGE_NAME lists. ##
15843 ## ------------------------------------------ ##
15846 sed "s/^/$as_me: WARNING: /" >&2
15849 echo "$as_me:$LINENO: checking for $ac_header" >&5
15850 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15851 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15852 echo $ECHO_N "(cached) $ECHO_C" >&6
15854 eval "$as_ac_Header=\$ac_header_preproc"
15856 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15857 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15860 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15861 cat >>confdefs.h
<<_ACEOF
15862 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15870 for ac_header
in krb.h
15872 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15873 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15874 echo "$as_me:$LINENO: checking for $ac_header" >&5
15875 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15876 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15877 echo $ECHO_N "(cached) $ECHO_C" >&6
15879 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15880 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15882 # Is the header compilable?
15883 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15884 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15885 cat >conftest.
$ac_ext <<_ACEOF
15888 cat confdefs.h
>>conftest.
$ac_ext
15889 cat >>conftest.
$ac_ext <<_ACEOF
15890 /* end confdefs.h. */
15891 $ac_includes_default
15892 #include <$ac_header>
15894 rm -f conftest.
$ac_objext
15895 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15896 (eval $ac_compile) 2>conftest.er1
15898 grep -v '^ *+' conftest.er1
>conftest.err
15900 cat conftest.err
>&5
15901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15902 (exit $ac_status); } &&
15903 { ac_try
='test -z "$ac_c_werror_flag"
15904 || test ! -s conftest.err'
15905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15906 (eval $ac_try) 2>&5
15908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15909 (exit $ac_status); }; } &&
15910 { ac_try
='test -s conftest.$ac_objext'
15911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15912 (eval $ac_try) 2>&5
15914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15915 (exit $ac_status); }; }; then
15916 ac_header_compiler
=yes
15918 echo "$as_me: failed program was:" >&5
15919 sed 's/^/| /' conftest.
$ac_ext >&5
15921 ac_header_compiler
=no
15923 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15924 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15925 echo "${ECHO_T}$ac_header_compiler" >&6
15927 # Is the header present?
15928 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15929 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15930 cat >conftest.
$ac_ext <<_ACEOF
15933 cat confdefs.h
>>conftest.
$ac_ext
15934 cat >>conftest.
$ac_ext <<_ACEOF
15935 /* end confdefs.h. */
15936 #include <$ac_header>
15938 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15939 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
15941 grep -v '^ *+' conftest.er1
>conftest.err
15943 cat conftest.err
>&5
15944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15945 (exit $ac_status); } >/dev
/null
; then
15946 if test -s conftest.err
; then
15947 ac_cpp_err
=$ac_c_preproc_warn_flag
15948 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
15955 if test -z "$ac_cpp_err"; then
15956 ac_header_preproc
=yes
15958 echo "$as_me: failed program was:" >&5
15959 sed 's/^/| /' conftest.
$ac_ext >&5
15961 ac_header_preproc
=no
15963 rm -f conftest.err conftest.
$ac_ext
15964 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15965 echo "${ECHO_T}$ac_header_preproc" >&6
15967 # So? What about this header?
15968 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15970 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15971 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15972 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15973 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15974 ac_header_preproc
=yes
15977 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15978 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15979 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15980 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15981 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15982 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15983 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15984 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15985 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15986 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15987 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15988 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15991 ## ------------------------------------------ ##
15992 ## Report this to the AC_PACKAGE_NAME lists. ##
15993 ## ------------------------------------------ ##
15996 sed "s/^/$as_me: WARNING: /" >&2
15999 echo "$as_me:$LINENO: checking for $ac_header" >&5
16000 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16001 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16002 echo $ECHO_N "(cached) $ECHO_C" >&6
16004 eval "$as_ac_Header=\$ac_header_preproc"
16006 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16007 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16010 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16011 cat >>confdefs.h
<<_ACEOF
16012 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16017 for ac_header
in kerberosIV
/krb.h
16019 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16020 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16021 echo "$as_me:$LINENO: checking for $ac_header" >&5
16022 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16023 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16024 echo $ECHO_N "(cached) $ECHO_C" >&6
16026 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16027 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16029 # Is the header compilable?
16030 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16031 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16032 cat >conftest.
$ac_ext <<_ACEOF
16035 cat confdefs.h
>>conftest.
$ac_ext
16036 cat >>conftest.
$ac_ext <<_ACEOF
16037 /* end confdefs.h. */
16038 $ac_includes_default
16039 #include <$ac_header>
16041 rm -f conftest.
$ac_objext
16042 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16043 (eval $ac_compile) 2>conftest.er1
16045 grep -v '^ *+' conftest.er1
>conftest.err
16047 cat conftest.err
>&5
16048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16049 (exit $ac_status); } &&
16050 { ac_try
='test -z "$ac_c_werror_flag"
16051 || test ! -s conftest.err'
16052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16053 (eval $ac_try) 2>&5
16055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16056 (exit $ac_status); }; } &&
16057 { ac_try
='test -s conftest.$ac_objext'
16058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16059 (eval $ac_try) 2>&5
16061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16062 (exit $ac_status); }; }; then
16063 ac_header_compiler
=yes
16065 echo "$as_me: failed program was:" >&5
16066 sed 's/^/| /' conftest.
$ac_ext >&5
16068 ac_header_compiler
=no
16070 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16071 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16072 echo "${ECHO_T}$ac_header_compiler" >&6
16074 # Is the header present?
16075 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16076 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16077 cat >conftest.
$ac_ext <<_ACEOF
16080 cat confdefs.h
>>conftest.
$ac_ext
16081 cat >>conftest.
$ac_ext <<_ACEOF
16082 /* end confdefs.h. */
16083 #include <$ac_header>
16085 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16086 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
16088 grep -v '^ *+' conftest.er1
>conftest.err
16090 cat conftest.err
>&5
16091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16092 (exit $ac_status); } >/dev
/null
; then
16093 if test -s conftest.err
; then
16094 ac_cpp_err
=$ac_c_preproc_warn_flag
16095 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
16102 if test -z "$ac_cpp_err"; then
16103 ac_header_preproc
=yes
16105 echo "$as_me: failed program was:" >&5
16106 sed 's/^/| /' conftest.
$ac_ext >&5
16108 ac_header_preproc
=no
16110 rm -f conftest.err conftest.
$ac_ext
16111 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16112 echo "${ECHO_T}$ac_header_preproc" >&6
16114 # So? What about this header?
16115 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16121 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16122 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16123 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16124 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16125 ac_header_preproc
=yes
16128 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16129 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16130 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16131 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16132 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16133 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16134 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16135 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16136 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16137 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16138 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16139 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16142 ## ------------------------------------------ ##
16143 ## Report this to the AC_PACKAGE_NAME lists. ##
16144 ## ------------------------------------------ ##
16147 sed "s/^/$as_me: WARNING: /" >&2
16150 echo "$as_me:$LINENO: checking for $ac_header" >&5
16151 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16152 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16153 echo $ECHO_N "(cached) $ECHO_C" >&6
16155 eval "$as_ac_Header=\$ac_header_preproc"
16157 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16158 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16161 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16162 cat >>confdefs.h
<<_ACEOF
16163 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16168 for ac_header
in kerberos
/krb.h
16170 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16171 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16172 echo "$as_me:$LINENO: checking for $ac_header" >&5
16173 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16174 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16175 echo $ECHO_N "(cached) $ECHO_C" >&6
16177 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16178 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16180 # Is the header compilable?
16181 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16182 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16183 cat >conftest.
$ac_ext <<_ACEOF
16186 cat confdefs.h
>>conftest.
$ac_ext
16187 cat >>conftest.
$ac_ext <<_ACEOF
16188 /* end confdefs.h. */
16189 $ac_includes_default
16190 #include <$ac_header>
16192 rm -f conftest.
$ac_objext
16193 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16194 (eval $ac_compile) 2>conftest.er1
16196 grep -v '^ *+' conftest.er1
>conftest.err
16198 cat conftest.err
>&5
16199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16200 (exit $ac_status); } &&
16201 { ac_try
='test -z "$ac_c_werror_flag"
16202 || test ! -s conftest.err'
16203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16204 (eval $ac_try) 2>&5
16206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16207 (exit $ac_status); }; } &&
16208 { ac_try
='test -s conftest.$ac_objext'
16209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16210 (eval $ac_try) 2>&5
16212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16213 (exit $ac_status); }; }; then
16214 ac_header_compiler
=yes
16216 echo "$as_me: failed program was:" >&5
16217 sed 's/^/| /' conftest.
$ac_ext >&5
16219 ac_header_compiler
=no
16221 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16222 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16223 echo "${ECHO_T}$ac_header_compiler" >&6
16225 # Is the header present?
16226 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16227 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16228 cat >conftest.
$ac_ext <<_ACEOF
16231 cat confdefs.h
>>conftest.
$ac_ext
16232 cat >>conftest.
$ac_ext <<_ACEOF
16233 /* end confdefs.h. */
16234 #include <$ac_header>
16236 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16237 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
16239 grep -v '^ *+' conftest.er1
>conftest.err
16241 cat conftest.err
>&5
16242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16243 (exit $ac_status); } >/dev
/null
; then
16244 if test -s conftest.err
; then
16245 ac_cpp_err
=$ac_c_preproc_warn_flag
16246 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
16253 if test -z "$ac_cpp_err"; then
16254 ac_header_preproc
=yes
16256 echo "$as_me: failed program was:" >&5
16257 sed 's/^/| /' conftest.
$ac_ext >&5
16259 ac_header_preproc
=no
16261 rm -f conftest.err conftest.
$ac_ext
16262 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16263 echo "${ECHO_T}$ac_header_preproc" >&6
16265 # So? What about this header?
16266 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16272 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16273 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16274 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16275 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16276 ac_header_preproc
=yes
16279 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16280 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16281 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16282 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16283 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16284 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16285 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16286 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16287 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16288 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16289 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16290 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16293 ## ------------------------------------------ ##
16294 ## Report this to the AC_PACKAGE_NAME lists. ##
16295 ## ------------------------------------------ ##
16298 sed "s/^/$as_me: WARNING: /" >&2
16301 echo "$as_me:$LINENO: checking for $ac_header" >&5
16302 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16303 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16304 echo $ECHO_N "(cached) $ECHO_C" >&6
16306 eval "$as_ac_Header=\$ac_header_preproc"
16308 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16309 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16312 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16313 cat >>confdefs.h
<<_ACEOF
16314 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16323 for ac_header
in com_err.h
16325 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16326 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16327 echo "$as_me:$LINENO: checking for $ac_header" >&5
16328 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16329 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16330 echo $ECHO_N "(cached) $ECHO_C" >&6
16332 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16333 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16335 # Is the header compilable?
16336 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16337 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16338 cat >conftest.
$ac_ext <<_ACEOF
16341 cat confdefs.h
>>conftest.
$ac_ext
16342 cat >>conftest.
$ac_ext <<_ACEOF
16343 /* end confdefs.h. */
16344 $ac_includes_default
16345 #include <$ac_header>
16347 rm -f conftest.
$ac_objext
16348 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16349 (eval $ac_compile) 2>conftest.er1
16351 grep -v '^ *+' conftest.er1
>conftest.err
16353 cat conftest.err
>&5
16354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16355 (exit $ac_status); } &&
16356 { ac_try
='test -z "$ac_c_werror_flag"
16357 || test ! -s conftest.err'
16358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16359 (eval $ac_try) 2>&5
16361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16362 (exit $ac_status); }; } &&
16363 { ac_try
='test -s conftest.$ac_objext'
16364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16365 (eval $ac_try) 2>&5
16367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16368 (exit $ac_status); }; }; then
16369 ac_header_compiler
=yes
16371 echo "$as_me: failed program was:" >&5
16372 sed 's/^/| /' conftest.
$ac_ext >&5
16374 ac_header_compiler
=no
16376 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16377 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16378 echo "${ECHO_T}$ac_header_compiler" >&6
16380 # Is the header present?
16381 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16382 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16383 cat >conftest.
$ac_ext <<_ACEOF
16386 cat confdefs.h
>>conftest.
$ac_ext
16387 cat >>conftest.
$ac_ext <<_ACEOF
16388 /* end confdefs.h. */
16389 #include <$ac_header>
16391 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16392 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
16394 grep -v '^ *+' conftest.er1
>conftest.err
16396 cat conftest.err
>&5
16397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16398 (exit $ac_status); } >/dev
/null
; then
16399 if test -s conftest.err
; then
16400 ac_cpp_err
=$ac_c_preproc_warn_flag
16401 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
16408 if test -z "$ac_cpp_err"; then
16409 ac_header_preproc
=yes
16411 echo "$as_me: failed program was:" >&5
16412 sed 's/^/| /' conftest.
$ac_ext >&5
16414 ac_header_preproc
=no
16416 rm -f conftest.err conftest.
$ac_ext
16417 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16418 echo "${ECHO_T}$ac_header_preproc" >&6
16420 # So? What about this header?
16421 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16423 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16424 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16425 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16426 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16427 ac_header_preproc
=yes
16430 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16431 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16432 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16433 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16434 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16435 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16436 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16437 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16438 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16439 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16440 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16441 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16444 ## ------------------------------------------ ##
16445 ## Report this to the AC_PACKAGE_NAME lists. ##
16446 ## ------------------------------------------ ##
16449 sed "s/^/$as_me: WARNING: /" >&2
16452 echo "$as_me:$LINENO: checking for $ac_header" >&5
16453 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16454 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16455 echo $ECHO_N "(cached) $ECHO_C" >&6
16457 eval "$as_ac_Header=\$ac_header_preproc"
16459 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16460 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16463 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16464 cat >>confdefs.h
<<_ACEOF
16465 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16474 # Solaris requires -lintl if you want strerror (which calls dgettext)
16475 # to return localized messages.
16477 echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
16478 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6
16479 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
16480 echo $ECHO_N "(cached) $ECHO_C" >&6
16482 ac_check_lib_save_LIBS
=$LIBS
16483 LIBS
="-lintl $LIBS"
16484 cat >conftest.
$ac_ext <<_ACEOF
16487 cat confdefs.h
>>conftest.
$ac_ext
16488 cat >>conftest.
$ac_ext <<_ACEOF
16489 /* end confdefs.h. */
16491 /* Override any gcc2 internal prototype to avoid an error. */
16495 /* We use char because int might match the return type of a gcc2
16496 builtin and then its argument prototype would still apply. */
16506 rm -f conftest.
$ac_objext conftest
$ac_exeext
16507 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16508 (eval $ac_link) 2>conftest.er1
16510 grep -v '^ *+' conftest.er1
>conftest.err
16512 cat conftest.err
>&5
16513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16514 (exit $ac_status); } &&
16515 { ac_try
='test -z "$ac_c_werror_flag"
16516 || test ! -s conftest.err'
16517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16518 (eval $ac_try) 2>&5
16520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16521 (exit $ac_status); }; } &&
16522 { ac_try
='test -s conftest$ac_exeext'
16523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16524 (eval $ac_try) 2>&5
16526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16527 (exit $ac_status); }; }; then
16528 ac_cv_lib_intl_dgettext
=yes
16530 echo "$as_me: failed program was:" >&5
16531 sed 's/^/| /' conftest.
$ac_ext >&5
16533 ac_cv_lib_intl_dgettext
=no
16535 rm -f conftest.err conftest.
$ac_objext \
16536 conftest
$ac_exeext conftest.
$ac_ext
16537 LIBS
=$ac_check_lib_save_LIBS
16539 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
16540 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6
16541 if test $ac_cv_lib_intl_dgettext = yes; then
16542 cat >>confdefs.h
<<_ACEOF
16543 #define HAVE_LIBINTL 1
16546 LIBS
="-lintl $LIBS"
16551 echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
16552 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6
16553 if test "${emacs_cv_localtime_cache+set}" = set; then
16554 echo $ECHO_N "(cached) $ECHO_C" >&6
16556 if test x
$ac_cv_func_tzset = xyes
; then
16557 if test "$cross_compiling" = yes; then
16558 # If we have tzset, assume the worst when cross-compiling.
16559 emacs_cv_localtime_cache
=yes
16561 cat >conftest.
$ac_ext <<_ACEOF
16564 cat confdefs.h
>>conftest.
$ac_ext
16565 cat >>conftest.
$ac_ext <<_ACEOF
16566 /* end confdefs.h. */
16568 extern char **environ;
16572 for (to = from = environ; (*to = *from); from++)
16573 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
16576 char TZ_GMT0[] = "TZ=GMT0";
16577 char TZ_PST8[] = "TZ=PST8";
16580 time_t now = time ((time_t *) 0);
16581 int hour_GMT0, hour_unset;
16582 if (putenv (TZ_GMT0) != 0)
16584 hour_GMT0 = localtime (&now)->tm_hour;
16586 hour_unset = localtime (&now)->tm_hour;
16587 if (putenv (TZ_PST8) != 0)
16589 if (localtime (&now)->tm_hour == hour_GMT0)
16592 if (localtime (&now)->tm_hour != hour_unset)
16597 rm -f conftest
$ac_exeext
16598 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16599 (eval $ac_link) 2>&5
16601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16602 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
16603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16604 (eval $ac_try) 2>&5
16606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16607 (exit $ac_status); }; }; then
16608 emacs_cv_localtime_cache
=no
16610 echo "$as_me: program exited with status $ac_status" >&5
16611 echo "$as_me: failed program was:" >&5
16612 sed 's/^/| /' conftest.
$ac_ext >&5
16614 ( exit $ac_status )
16615 emacs_cv_localtime_cache
=yes
16617 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
16620 # If we lack tzset, report that localtime does not cache TZ,
16621 # since we can't invalidate the cache if we don't have tzset.
16622 emacs_cv_localtime_cache
=no
16625 echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
16626 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6
16627 if test $emacs_cv_localtime_cache = yes; then
16628 cat >>confdefs.h
<<\_ACEOF
16629 #define LOCALTIME_CACHE 1
16634 if test "x$HAVE_TIMEVAL" = xyes
; then
16636 for ac_func
in gettimeofday
16638 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16639 echo "$as_me:$LINENO: checking for $ac_func" >&5
16640 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16641 if eval "test \"\${$as_ac_var+set}\" = set"; then
16642 echo $ECHO_N "(cached) $ECHO_C" >&6
16644 cat >conftest.
$ac_ext <<_ACEOF
16647 cat confdefs.h
>>conftest.
$ac_ext
16648 cat >>conftest.
$ac_ext <<_ACEOF
16649 /* end confdefs.h. */
16650 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16651 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16652 #define $ac_func innocuous_$ac_func
16654 /* System header to define __stub macros and hopefully few prototypes,
16655 which can conflict with char $ac_func (); below.
16656 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16657 <limits.h> exists even on freestanding compilers. */
16660 # include <limits.h>
16662 # include <assert.h>
16667 /* Override any gcc2 internal prototype to avoid an error. */
16672 /* We use char because int might match the return type of a gcc2
16673 builtin and then its argument prototype would still apply. */
16675 /* The GNU C library defines this for functions which it implements
16676 to always fail with ENOSYS. Some functions are actually named
16677 something starting with __ and the normal name is an alias. */
16678 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16681 char (*f) () = $ac_func;
16690 return f != $ac_func;
16695 rm -f conftest.
$ac_objext conftest
$ac_exeext
16696 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16697 (eval $ac_link) 2>conftest.er1
16699 grep -v '^ *+' conftest.er1
>conftest.err
16701 cat conftest.err
>&5
16702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16703 (exit $ac_status); } &&
16704 { ac_try
='test -z "$ac_c_werror_flag"
16705 || test ! -s conftest.err'
16706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16707 (eval $ac_try) 2>&5
16709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16710 (exit $ac_status); }; } &&
16711 { ac_try
='test -s conftest$ac_exeext'
16712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16713 (eval $ac_try) 2>&5
16715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16716 (exit $ac_status); }; }; then
16717 eval "$as_ac_var=yes"
16719 echo "$as_me: failed program was:" >&5
16720 sed 's/^/| /' conftest.
$ac_ext >&5
16722 eval "$as_ac_var=no"
16724 rm -f conftest.err conftest.
$ac_objext \
16725 conftest
$ac_exeext conftest.
$ac_ext
16727 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16728 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16729 if test `eval echo '${'$as_ac_var'}'` = yes; then
16730 cat >>confdefs.h
<<_ACEOF
16731 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16737 echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
16738 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6
16739 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
16740 echo $ECHO_N "(cached) $ECHO_C" >&6
16742 cat >conftest.
$ac_ext <<_ACEOF
16745 cat confdefs.h
>>conftest.
$ac_ext
16746 cat >>conftest.
$ac_ext <<_ACEOF
16747 /* end confdefs.h. */
16749 #ifdef TIME_WITH_SYS_TIME
16750 #include <sys/time.h>
16753 #ifdef HAVE_SYS_TIME_H
16754 #include <sys/time.h>
16762 struct timeval time;
16763 gettimeofday (&time, 0);
16768 rm -f conftest.
$ac_objext
16769 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16770 (eval $ac_compile) 2>conftest.er1
16772 grep -v '^ *+' conftest.er1
>conftest.err
16774 cat conftest.err
>&5
16775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16776 (exit $ac_status); } &&
16777 { ac_try
='test -z "$ac_c_werror_flag"
16778 || test ! -s conftest.err'
16779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16780 (eval $ac_try) 2>&5
16782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16783 (exit $ac_status); }; } &&
16784 { ac_try
='test -s conftest.$ac_objext'
16785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16786 (eval $ac_try) 2>&5
16788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16789 (exit $ac_status); }; }; then
16790 emacs_cv_gettimeofday_two_arguments
=yes
16792 echo "$as_me: failed program was:" >&5
16793 sed 's/^/| /' conftest.
$ac_ext >&5
16795 emacs_cv_gettimeofday_two_arguments
=no
16797 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16799 echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
16800 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6
16801 if test $emacs_cv_gettimeofday_two_arguments = no
; then
16802 cat >>confdefs.h
<<\_ACEOF
16803 #define GETTIMEOFDAY_ONE_ARGUMENT 1
16809 if test "$ac_cv_func_gettimeofday" = yes; then
16810 echo "$as_me:$LINENO: checking for struct timezone" >&5
16811 echo $ECHO_N "checking for struct timezone... $ECHO_C" >&6
16812 if test "${emacs_cv_struct_timezone+set}" = set; then
16813 echo $ECHO_N "(cached) $ECHO_C" >&6
16815 cat >conftest.
$ac_ext <<_ACEOF
16818 cat confdefs.h
>>conftest.
$ac_ext
16819 cat >>conftest.
$ac_ext <<_ACEOF
16820 /* end confdefs.h. */
16821 #include <sys/time.h>
16825 struct timezone tz;
16830 rm -f conftest.
$ac_objext
16831 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16832 (eval $ac_compile) 2>conftest.er1
16834 grep -v '^ *+' conftest.er1
>conftest.err
16836 cat conftest.err
>&5
16837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16838 (exit $ac_status); } &&
16839 { ac_try
='test -z "$ac_c_werror_flag"
16840 || test ! -s conftest.err'
16841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16842 (eval $ac_try) 2>&5
16844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16845 (exit $ac_status); }; } &&
16846 { ac_try
='test -s conftest.$ac_objext'
16847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16848 (eval $ac_try) 2>&5
16850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16851 (exit $ac_status); }; }; then
16852 if test "$cross_compiling" = yes; then
16853 emacs_cv_struct_timezone
=yes
16855 cat >conftest.
$ac_ext <<_ACEOF
16858 cat confdefs.h
>>conftest.
$ac_ext
16859 cat >>conftest.
$ac_ext <<_ACEOF
16860 /* end confdefs.h. */
16862 #ifdef TIME_WITH_SYS_TIME
16863 #include <sys/time.h>
16866 #ifdef HAVE_SYS_TIME_H
16867 #include <sys/time.h>
16873 struct timeval time;
16874 struct timezone dummy;
16875 exit (gettimeofday (&time, &dummy));
16878 rm -f conftest
$ac_exeext
16879 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16880 (eval $ac_link) 2>&5
16882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16883 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
16884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16885 (eval $ac_try) 2>&5
16887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16888 (exit $ac_status); }; }; then
16889 emacs_cv_struct_timezone
=yes
16891 echo "$as_me: program exited with status $ac_status" >&5
16892 echo "$as_me: failed program was:" >&5
16893 sed 's/^/| /' conftest.
$ac_ext >&5
16895 ( exit $ac_status )
16896 emacs_cv_struct_timezone
=no
16898 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
16901 echo "$as_me: failed program was:" >&5
16902 sed 's/^/| /' conftest.
$ac_ext >&5
16904 emacs_cv_struct_timezone
=no
16906 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16908 echo "$as_me:$LINENO: result: $emacs_cv_struct_timezone" >&5
16909 echo "${ECHO_T}$emacs_cv_struct_timezone" >&6
16913 echo "$as_me:$LINENO: checking for socket" >&5
16914 echo $ECHO_N "checking for socket... $ECHO_C" >&6
16915 if test "${ac_cv_func_socket+set}" = set; then
16916 echo $ECHO_N "(cached) $ECHO_C" >&6
16918 cat >conftest.
$ac_ext <<_ACEOF
16921 cat confdefs.h
>>conftest.
$ac_ext
16922 cat >>conftest.
$ac_ext <<_ACEOF
16923 /* end confdefs.h. */
16924 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
16925 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16926 #define socket innocuous_socket
16928 /* System header to define __stub macros and hopefully few prototypes,
16929 which can conflict with char socket (); below.
16930 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16931 <limits.h> exists even on freestanding compilers. */
16934 # include <limits.h>
16936 # include <assert.h>
16941 /* Override any gcc2 internal prototype to avoid an error. */
16946 /* We use char because int might match the return type of a gcc2
16947 builtin and then its argument prototype would still apply. */
16949 /* The GNU C library defines this for functions which it implements
16950 to always fail with ENOSYS. Some functions are actually named
16951 something starting with __ and the normal name is an alias. */
16952 #if defined (__stub_socket) || defined (__stub___socket)
16955 char (*f) () = socket;
16964 return f != socket;
16969 rm -f conftest.
$ac_objext conftest
$ac_exeext
16970 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16971 (eval $ac_link) 2>conftest.er1
16973 grep -v '^ *+' conftest.er1
>conftest.err
16975 cat conftest.err
>&5
16976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16977 (exit $ac_status); } &&
16978 { ac_try
='test -z "$ac_c_werror_flag"
16979 || test ! -s conftest.err'
16980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16981 (eval $ac_try) 2>&5
16983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16984 (exit $ac_status); }; } &&
16985 { ac_try
='test -s conftest$ac_exeext'
16986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16987 (eval $ac_try) 2>&5
16989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16990 (exit $ac_status); }; }; then
16991 ac_cv_func_socket
=yes
16993 echo "$as_me: failed program was:" >&5
16994 sed 's/^/| /' conftest.
$ac_ext >&5
16996 ac_cv_func_socket
=no
16998 rm -f conftest.err conftest.
$ac_objext \
16999 conftest
$ac_exeext conftest.
$ac_ext
17001 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
17002 echo "${ECHO_T}$ac_cv_func_socket" >&6
17003 if test $ac_cv_func_socket = yes; then
17009 if test $ok_so_far = yes; then
17010 if test "${ac_cv_header_netinet_in_h+set}" = set; then
17011 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
17012 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
17013 if test "${ac_cv_header_netinet_in_h+set}" = set; then
17014 echo $ECHO_N "(cached) $ECHO_C" >&6
17016 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
17017 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
17019 # Is the header compilable?
17020 echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
17021 echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6
17022 cat >conftest.
$ac_ext <<_ACEOF
17025 cat confdefs.h
>>conftest.
$ac_ext
17026 cat >>conftest.
$ac_ext <<_ACEOF
17027 /* end confdefs.h. */
17028 $ac_includes_default
17029 #include <netinet/in.h>
17031 rm -f conftest.
$ac_objext
17032 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17033 (eval $ac_compile) 2>conftest.er1
17035 grep -v '^ *+' conftest.er1
>conftest.err
17037 cat conftest.err
>&5
17038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17039 (exit $ac_status); } &&
17040 { ac_try
='test -z "$ac_c_werror_flag"
17041 || test ! -s conftest.err'
17042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17043 (eval $ac_try) 2>&5
17045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17046 (exit $ac_status); }; } &&
17047 { ac_try
='test -s conftest.$ac_objext'
17048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17049 (eval $ac_try) 2>&5
17051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17052 (exit $ac_status); }; }; then
17053 ac_header_compiler
=yes
17055 echo "$as_me: failed program was:" >&5
17056 sed 's/^/| /' conftest.
$ac_ext >&5
17058 ac_header_compiler
=no
17060 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17061 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17062 echo "${ECHO_T}$ac_header_compiler" >&6
17064 # Is the header present?
17065 echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
17066 echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6
17067 cat >conftest.
$ac_ext <<_ACEOF
17070 cat confdefs.h
>>conftest.
$ac_ext
17071 cat >>conftest.
$ac_ext <<_ACEOF
17072 /* end confdefs.h. */
17073 #include <netinet/in.h>
17075 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17076 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
17078 grep -v '^ *+' conftest.er1
>conftest.err
17080 cat conftest.err
>&5
17081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17082 (exit $ac_status); } >/dev
/null
; then
17083 if test -s conftest.err
; then
17084 ac_cpp_err
=$ac_c_preproc_warn_flag
17085 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
17092 if test -z "$ac_cpp_err"; then
17093 ac_header_preproc
=yes
17095 echo "$as_me: failed program was:" >&5
17096 sed 's/^/| /' conftest.
$ac_ext >&5
17098 ac_header_preproc
=no
17100 rm -f conftest.err conftest.
$ac_ext
17101 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17102 echo "${ECHO_T}$ac_header_preproc" >&6
17104 # So? What about this header?
17105 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17107 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
17108 echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17109 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
17110 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
17111 ac_header_preproc
=yes
17114 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
17115 echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
17116 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
17117 echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
17118 { echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
17119 echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
17120 { echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
17121 echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
17122 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
17123 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
17124 { echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
17125 echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
17128 ## ------------------------------------------ ##
17129 ## Report this to the AC_PACKAGE_NAME lists. ##
17130 ## ------------------------------------------ ##
17133 sed "s/^/$as_me: WARNING: /" >&2
17136 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
17137 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
17138 if test "${ac_cv_header_netinet_in_h+set}" = set; then
17139 echo $ECHO_N "(cached) $ECHO_C" >&6
17141 ac_cv_header_netinet_in_h
=$ac_header_preproc
17143 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
17144 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
17147 if test $ac_cv_header_netinet_in_h = yes; then
17155 if test $ok_so_far = yes; then
17156 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
17157 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
17158 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
17159 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
17160 echo $ECHO_N "(cached) $ECHO_C" >&6
17162 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
17163 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
17165 # Is the header compilable?
17166 echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
17167 echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6
17168 cat >conftest.
$ac_ext <<_ACEOF
17171 cat confdefs.h
>>conftest.
$ac_ext
17172 cat >>conftest.
$ac_ext <<_ACEOF
17173 /* end confdefs.h. */
17174 $ac_includes_default
17175 #include <arpa/inet.h>
17177 rm -f conftest.
$ac_objext
17178 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17179 (eval $ac_compile) 2>conftest.er1
17181 grep -v '^ *+' conftest.er1
>conftest.err
17183 cat conftest.err
>&5
17184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17185 (exit $ac_status); } &&
17186 { ac_try
='test -z "$ac_c_werror_flag"
17187 || test ! -s conftest.err'
17188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17189 (eval $ac_try) 2>&5
17191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17192 (exit $ac_status); }; } &&
17193 { ac_try
='test -s conftest.$ac_objext'
17194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17195 (eval $ac_try) 2>&5
17197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17198 (exit $ac_status); }; }; then
17199 ac_header_compiler
=yes
17201 echo "$as_me: failed program was:" >&5
17202 sed 's/^/| /' conftest.
$ac_ext >&5
17204 ac_header_compiler
=no
17206 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17207 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17208 echo "${ECHO_T}$ac_header_compiler" >&6
17210 # Is the header present?
17211 echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
17212 echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6
17213 cat >conftest.
$ac_ext <<_ACEOF
17216 cat confdefs.h
>>conftest.
$ac_ext
17217 cat >>conftest.
$ac_ext <<_ACEOF
17218 /* end confdefs.h. */
17219 #include <arpa/inet.h>
17221 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17222 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
17224 grep -v '^ *+' conftest.er1
>conftest.err
17226 cat conftest.err
>&5
17227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17228 (exit $ac_status); } >/dev
/null
; then
17229 if test -s conftest.err
; then
17230 ac_cpp_err
=$ac_c_preproc_warn_flag
17231 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
17238 if test -z "$ac_cpp_err"; then
17239 ac_header_preproc
=yes
17241 echo "$as_me: failed program was:" >&5
17242 sed 's/^/| /' conftest.
$ac_ext >&5
17244 ac_header_preproc
=no
17246 rm -f conftest.err conftest.
$ac_ext
17247 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17248 echo "${ECHO_T}$ac_header_preproc" >&6
17250 # So? What about this header?
17251 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17253 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
17254 echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17255 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
17256 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
17257 ac_header_preproc
=yes
17260 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
17261 echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
17262 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
17263 echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
17264 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
17265 echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
17266 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
17267 echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
17268 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
17269 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
17270 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
17271 echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
17274 ## ------------------------------------------ ##
17275 ## Report this to the AC_PACKAGE_NAME lists. ##
17276 ## ------------------------------------------ ##
17279 sed "s/^/$as_me: WARNING: /" >&2
17282 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
17283 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
17284 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
17285 echo $ECHO_N "(cached) $ECHO_C" >&6
17287 ac_cv_header_arpa_inet_h
=$ac_header_preproc
17289 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
17290 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
17293 if test $ac_cv_header_arpa_inet_h = yes; then
17301 if test $ok_so_far = yes; then
17302 cat >>confdefs.h
<<\_ACEOF
17303 #define HAVE_INET_SOCKETS 1
17308 if test -f /usr
/lpp
/X11
/bin
/smt.exp
; then
17309 cat >>confdefs.h
<<\_ACEOF
17310 #define HAVE_AIX_SMT_EXP 1
17315 echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
17316 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6
17317 if test -d /dev
/pts
&& ls -d /dev
/ptmx
> /dev
/null
2>&1 ; then
17318 echo "$as_me:$LINENO: result: yes" >&5
17319 echo "${ECHO_T}yes" >&6
17320 cat >>confdefs.h
<<\_ACEOF
17321 #define HAVE_DEV_PTMX 1
17325 echo "$as_me:$LINENO: result: no" >&5
17326 echo "${ECHO_T}no" >&6
17329 echo "$as_me:$LINENO: checking for pid_t" >&5
17330 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
17331 if test "${ac_cv_type_pid_t+set}" = set; then
17332 echo $ECHO_N "(cached) $ECHO_C" >&6
17334 cat >conftest.
$ac_ext <<_ACEOF
17337 cat confdefs.h
>>conftest.
$ac_ext
17338 cat >>conftest.
$ac_ext <<_ACEOF
17339 /* end confdefs.h. */
17340 $ac_includes_default
17346 if (sizeof (pid_t))
17352 rm -f conftest.
$ac_objext
17353 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17354 (eval $ac_compile) 2>conftest.er1
17356 grep -v '^ *+' conftest.er1
>conftest.err
17358 cat conftest.err
>&5
17359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17360 (exit $ac_status); } &&
17361 { ac_try
='test -z "$ac_c_werror_flag"
17362 || test ! -s conftest.err'
17363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17364 (eval $ac_try) 2>&5
17366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17367 (exit $ac_status); }; } &&
17368 { ac_try
='test -s conftest.$ac_objext'
17369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17370 (eval $ac_try) 2>&5
17372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17373 (exit $ac_status); }; }; then
17374 ac_cv_type_pid_t
=yes
17376 echo "$as_me: failed program was:" >&5
17377 sed 's/^/| /' conftest.
$ac_ext >&5
17379 ac_cv_type_pid_t
=no
17381 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17383 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
17384 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
17385 if test $ac_cv_type_pid_t = yes; then
17389 cat >>confdefs.h
<<_ACEOF
17397 for ac_header
in unistd.h vfork.h
17399 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17400 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17401 echo "$as_me:$LINENO: checking for $ac_header" >&5
17402 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17403 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17404 echo $ECHO_N "(cached) $ECHO_C" >&6
17406 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17407 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17409 # Is the header compilable?
17410 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17411 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17412 cat >conftest.
$ac_ext <<_ACEOF
17415 cat confdefs.h
>>conftest.
$ac_ext
17416 cat >>conftest.
$ac_ext <<_ACEOF
17417 /* end confdefs.h. */
17418 $ac_includes_default
17419 #include <$ac_header>
17421 rm -f conftest.
$ac_objext
17422 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17423 (eval $ac_compile) 2>conftest.er1
17425 grep -v '^ *+' conftest.er1
>conftest.err
17427 cat conftest.err
>&5
17428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17429 (exit $ac_status); } &&
17430 { ac_try
='test -z "$ac_c_werror_flag"
17431 || test ! -s conftest.err'
17432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17433 (eval $ac_try) 2>&5
17435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17436 (exit $ac_status); }; } &&
17437 { ac_try
='test -s conftest.$ac_objext'
17438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17439 (eval $ac_try) 2>&5
17441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17442 (exit $ac_status); }; }; then
17443 ac_header_compiler
=yes
17445 echo "$as_me: failed program was:" >&5
17446 sed 's/^/| /' conftest.
$ac_ext >&5
17448 ac_header_compiler
=no
17450 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17451 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17452 echo "${ECHO_T}$ac_header_compiler" >&6
17454 # Is the header present?
17455 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17456 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17457 cat >conftest.
$ac_ext <<_ACEOF
17460 cat confdefs.h
>>conftest.
$ac_ext
17461 cat >>conftest.
$ac_ext <<_ACEOF
17462 /* end confdefs.h. */
17463 #include <$ac_header>
17465 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17466 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
17468 grep -v '^ *+' conftest.er1
>conftest.err
17470 cat conftest.err
>&5
17471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17472 (exit $ac_status); } >/dev
/null
; then
17473 if test -s conftest.err
; then
17474 ac_cpp_err
=$ac_c_preproc_warn_flag
17475 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
17482 if test -z "$ac_cpp_err"; then
17483 ac_header_preproc
=yes
17485 echo "$as_me: failed program was:" >&5
17486 sed 's/^/| /' conftest.
$ac_ext >&5
17488 ac_header_preproc
=no
17490 rm -f conftest.err conftest.
$ac_ext
17491 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17492 echo "${ECHO_T}$ac_header_preproc" >&6
17494 # So? What about this header?
17495 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17497 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17498 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17499 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17500 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17501 ac_header_preproc
=yes
17504 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17505 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17506 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17507 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17508 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17509 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17510 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17511 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17512 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17513 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17514 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17515 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17518 ## ------------------------------------------ ##
17519 ## Report this to the AC_PACKAGE_NAME lists. ##
17520 ## ------------------------------------------ ##
17523 sed "s/^/$as_me: WARNING: /" >&2
17526 echo "$as_me:$LINENO: checking for $ac_header" >&5
17527 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17528 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17529 echo $ECHO_N "(cached) $ECHO_C" >&6
17531 eval "$as_ac_Header=\$ac_header_preproc"
17533 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17534 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17537 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17538 cat >>confdefs.h
<<_ACEOF
17539 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17548 for ac_func
in fork vfork
17550 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17551 echo "$as_me:$LINENO: checking for $ac_func" >&5
17552 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17553 if eval "test \"\${$as_ac_var+set}\" = set"; then
17554 echo $ECHO_N "(cached) $ECHO_C" >&6
17556 cat >conftest.
$ac_ext <<_ACEOF
17559 cat confdefs.h
>>conftest.
$ac_ext
17560 cat >>conftest.
$ac_ext <<_ACEOF
17561 /* end confdefs.h. */
17562 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17563 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17564 #define $ac_func innocuous_$ac_func
17566 /* System header to define __stub macros and hopefully few prototypes,
17567 which can conflict with char $ac_func (); below.
17568 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17569 <limits.h> exists even on freestanding compilers. */
17572 # include <limits.h>
17574 # include <assert.h>
17579 /* Override any gcc2 internal prototype to avoid an error. */
17584 /* We use char because int might match the return type of a gcc2
17585 builtin and then its argument prototype would still apply. */
17587 /* The GNU C library defines this for functions which it implements
17588 to always fail with ENOSYS. Some functions are actually named
17589 something starting with __ and the normal name is an alias. */
17590 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17593 char (*f) () = $ac_func;
17602 return f != $ac_func;
17607 rm -f conftest.
$ac_objext conftest
$ac_exeext
17608 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17609 (eval $ac_link) 2>conftest.er1
17611 grep -v '^ *+' conftest.er1
>conftest.err
17613 cat conftest.err
>&5
17614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17615 (exit $ac_status); } &&
17616 { ac_try
='test -z "$ac_c_werror_flag"
17617 || test ! -s conftest.err'
17618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17619 (eval $ac_try) 2>&5
17621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17622 (exit $ac_status); }; } &&
17623 { ac_try
='test -s conftest$ac_exeext'
17624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17625 (eval $ac_try) 2>&5
17627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17628 (exit $ac_status); }; }; then
17629 eval "$as_ac_var=yes"
17631 echo "$as_me: failed program was:" >&5
17632 sed 's/^/| /' conftest.
$ac_ext >&5
17634 eval "$as_ac_var=no"
17636 rm -f conftest.err conftest.
$ac_objext \
17637 conftest
$ac_exeext conftest.
$ac_ext
17639 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17640 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17641 if test `eval echo '${'$as_ac_var'}'` = yes; then
17642 cat >>confdefs.h
<<_ACEOF
17643 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17649 if test "x$ac_cv_func_fork" = xyes
; then
17650 echo "$as_me:$LINENO: checking for working fork" >&5
17651 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
17652 if test "${ac_cv_func_fork_works+set}" = set; then
17653 echo $ECHO_N "(cached) $ECHO_C" >&6
17655 if test "$cross_compiling" = yes; then
17656 ac_cv_func_fork_works
=cross
17658 cat >conftest.
$ac_ext <<_ACEOF
17659 /* By Ruediger Kuhlmann. */
17660 #include <sys/types.h>
17662 # include <unistd.h>
17664 /* Some systems only have a dummy stub for fork() */
17672 rm -f conftest
$ac_exeext
17673 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17674 (eval $ac_link) 2>&5
17676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17677 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
17678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17679 (eval $ac_try) 2>&5
17681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17682 (exit $ac_status); }; }; then
17683 ac_cv_func_fork_works
=yes
17685 echo "$as_me: program exited with status $ac_status" >&5
17686 echo "$as_me: failed program was:" >&5
17687 sed 's/^/| /' conftest.
$ac_ext >&5
17689 ( exit $ac_status )
17690 ac_cv_func_fork_works
=no
17692 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
17695 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
17696 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
17699 ac_cv_func_fork_works
=$ac_cv_func_fork
17701 if test "x$ac_cv_func_fork_works" = xcross
; then
17703 *-*-amigaos* |
*-*-msdosdjgpp*)
17704 # Override, as these systems have only a dummy fork() stub
17705 ac_cv_func_fork_works
=no
17708 ac_cv_func_fork_works
=yes
17711 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
17712 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
17714 ac_cv_func_vfork_works
=$ac_cv_func_vfork
17715 if test "x$ac_cv_func_vfork" = xyes
; then
17716 echo "$as_me:$LINENO: checking for working vfork" >&5
17717 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
17718 if test "${ac_cv_func_vfork_works+set}" = set; then
17719 echo $ECHO_N "(cached) $ECHO_C" >&6
17721 if test "$cross_compiling" = yes; then
17722 ac_cv_func_vfork_works
=cross
17724 cat >conftest.
$ac_ext <<_ACEOF
17727 cat confdefs.h
>>conftest.
$ac_ext
17728 cat >>conftest.
$ac_ext <<_ACEOF
17729 /* end confdefs.h. */
17730 /* Thanks to Paul Eggert for this test. */
17732 #include <stdlib.h>
17733 #include <sys/types.h>
17734 #include <sys/stat.h>
17735 #include <sys/wait.h>
17737 # include <unistd.h>
17740 # include <vfork.h>
17742 /* On some sparc systems, changes by the child to local and incoming
17743 argument registers are propagated back to the parent. The compiler
17744 is told about this with #include <vfork.h>, but some compilers
17745 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
17746 static variable whose address is put into a register that is
17747 clobbered by the vfork. */
17750 sparc_address_test (int arg)
17752 sparc_address_test (arg) int arg;
17755 static pid_t child;
17773 pid_t parent = getpid ();
17776 sparc_address_test (0);
17781 /* Here is another test for sparc vfork register problems. This
17782 test uses lots of local variables, at least as many local
17783 variables as main has allocated so far including compiler
17784 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
17785 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
17786 reuse the register of parent for one of the local variables,
17787 since it will think that parent can't possibly be used any more
17788 in this routine. Assigning to the local variable will thus
17789 munge parent in the parent process. */
17791 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
17792 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
17793 /* Convince the compiler that p..p7 are live; otherwise, it might
17794 use the same hardware register for all 8 local variables. */
17795 if (p != p1 || p != p2 || p != p3 || p != p4
17796 || p != p5 || p != p6 || p != p7)
17799 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
17800 from child file descriptors. If the child closes a descriptor
17801 before it execs or exits, this munges the parent's descriptor
17802 as well. Test for this by closing stdout in the child. */
17803 _exit(close(fileno(stdout)) != 0);
17808 while (wait(&status) != child)
17811 /* Was there some problem with vforking? */
17814 /* Did the child fail? (This shouldn't happen.) */
17817 /* Did the vfork/compiler bug occur? */
17818 || parent != getpid()
17820 /* Did the file descriptor bug occur? */
17821 || fstat(fileno(stdout), &st) != 0
17826 rm -f conftest
$ac_exeext
17827 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17828 (eval $ac_link) 2>&5
17830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17831 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
17832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17833 (eval $ac_try) 2>&5
17835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17836 (exit $ac_status); }; }; then
17837 ac_cv_func_vfork_works
=yes
17839 echo "$as_me: program exited with status $ac_status" >&5
17840 echo "$as_me: failed program was:" >&5
17841 sed 's/^/| /' conftest.
$ac_ext >&5
17843 ( exit $ac_status )
17844 ac_cv_func_vfork_works
=no
17846 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
17849 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
17850 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
17853 if test "x$ac_cv_func_fork_works" = xcross
; then
17854 ac_cv_func_vfork_works
=$ac_cv_func_vfork
17855 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
17856 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
17859 if test "x$ac_cv_func_vfork_works" = xyes
; then
17861 cat >>confdefs.h
<<\_ACEOF
17862 #define HAVE_WORKING_VFORK 1
17867 cat >>confdefs.h
<<\_ACEOF
17872 if test "x$ac_cv_func_fork_works" = xyes
; then
17874 cat >>confdefs.h
<<\_ACEOF
17875 #define HAVE_WORKING_FORK 1
17881 # Fixme: This should be replaced when we have autoconf 2.14.
17882 echo "$as_me:$LINENO: checking for size_t" >&5
17883 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
17884 if test "${ac_cv_type_size_t+set}" = set; then
17885 echo $ECHO_N "(cached) $ECHO_C" >&6
17887 cat >conftest.
$ac_ext <<_ACEOF
17890 cat confdefs.h
>>conftest.
$ac_ext
17891 cat >>conftest.
$ac_ext <<_ACEOF
17892 /* end confdefs.h. */
17893 $ac_includes_default
17899 if (sizeof (size_t))
17905 rm -f conftest.
$ac_objext
17906 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17907 (eval $ac_compile) 2>conftest.er1
17909 grep -v '^ *+' conftest.er1
>conftest.err
17911 cat conftest.err
>&5
17912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17913 (exit $ac_status); } &&
17914 { ac_try
='test -z "$ac_c_werror_flag"
17915 || test ! -s conftest.err'
17916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17917 (eval $ac_try) 2>&5
17919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17920 (exit $ac_status); }; } &&
17921 { ac_try
='test -s conftest.$ac_objext'
17922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17923 (eval $ac_try) 2>&5
17925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17926 (exit $ac_status); }; }; then
17927 ac_cv_type_size_t
=yes
17929 echo "$as_me: failed program was:" >&5
17930 sed 's/^/| /' conftest.
$ac_ext >&5
17932 ac_cv_type_size_t
=no
17934 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17936 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17937 echo "${ECHO_T}$ac_cv_type_size_t" >&6
17938 if test $ac_cv_type_size_t = yes; then
17942 cat >>confdefs.h
<<_ACEOF
17943 #define size_t unsigned
17949 # Set up the CFLAGS for real compilation, so we can substitute it.
17950 CFLAGS
="$REAL_CFLAGS"
17951 CPPFLAGS
="$REAL_CPPFLAGS"
17953 #### Find out which version of Emacs this is.
17954 version
=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
17955 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
17956 if test x
"${version}" = x
; then
17957 { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
17958 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
17959 { (exit 1); exit 1; }; }
17962 ### Specify what sort of things we'll be editing into Makefile and config.h.
17963 ### Use configuration here uncanonicalized to avoid exceeding size limits.
17995 cat >>confdefs.h
<<_ACEOF
17996 #define EMACS_CONFIGURATION "${canonical}"
17999 cat >>confdefs.h
<<_ACEOF
18000 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
18003 cat >>confdefs.h
<<_ACEOF
18004 #define config_machfile "${machfile}"
18007 cat >>confdefs.h
<<_ACEOF
18008 #define config_opsysfile "${opsysfile}"
18011 cat >>confdefs.h
<<_ACEOF
18012 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
18015 cat >>confdefs.h
<<_ACEOF
18016 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
18019 cat >>confdefs.h
<<_ACEOF
18020 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
18023 cat >>confdefs.h
<<_ACEOF
18024 #define UNEXEC_SRC ${UNEXEC_SRC}
18028 if test "${HAVE_X_WINDOWS}" = "yes" ; then
18029 cat >>confdefs.h
<<\_ACEOF
18030 #define HAVE_X_WINDOWS 1
18034 if test "${USE_X_TOOLKIT}" != "none" ; then
18035 cat >>confdefs.h
<<\_ACEOF
18036 #define USE_X_TOOLKIT 1
18040 if test "${HAVE_X11}" = "yes" ; then
18041 cat >>confdefs.h
<<\_ACEOF
18046 if test "${HAVE_XFREE386}" = "yes" ; then
18047 cat >>confdefs.h
<<\_ACEOF
18048 #define HAVE_XFREE386 1
18052 if test "${HAVE_MENUS}" = "yes" ; then
18053 cat >>confdefs.h
<<\_ACEOF
18054 #define HAVE_MENUS 1
18058 if test "${GNU_MALLOC}" = "yes" ; then
18059 cat >>confdefs.h
<<\_ACEOF
18060 #define GNU_MALLOC 1
18064 if test "${REL_ALLOC}" = "yes" ; then
18065 cat >>confdefs.h
<<\_ACEOF
18066 #define REL_ALLOC 1
18071 #### Report on what we decided to do.
18073 Configured for \`${canonical}'.
18075 Where should the build process find the source code? ${srcdir}
18076 What operating system and machine description files should Emacs use?
18077 \`${opsysfile}' and \`${machfile}'
18078 What compiler should emacs be built with? ${CC} ${CFLAGS}
18079 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
18080 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
18081 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
18082 What window system should Emacs use? ${window_system}
18083 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
18085 if test -n "${x_includes}"; then
18086 echo " Where do we find X Windows header files? ${x_includes}"
18088 echo " Where do we find X Windows header files? Standard dirs"
18090 if test -n "${x_libraries}"; then
18091 echo " Where do we find X Windows libraries? ${x_libraries}"
18093 echo " Where do we find X Windows libraries? Standard dirs"
18096 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
18097 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
18098 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
18099 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
18100 echo " Does Emacs use -lungif? ${HAVE_GIF}"
18101 echo " Does Emacs use -lpng? ${HAVE_PNG}"
18102 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
18105 # Remove any trailing slashes in these variables.
18106 test "${prefix}" != NONE
&&
18107 prefix
=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
18108 test "${exec_prefix}" != NONE
&&
18109 exec_prefix
=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
18111 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
18112 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
18113 ## from Makefile.c can correctly provide the arg `-traditional' to the
18116 cat >conftest.
$ac_ext <<_ACEOF
18119 cat confdefs.h
>>conftest.
$ac_ext
18120 cat >>conftest.
$ac_ext <<_ACEOF
18121 /* end confdefs.h. */
18124 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18125 $EGREP "yes..yes" >/dev
/null
2>&1; then
18126 CPP_NEED_TRADITIONAL
=no
18128 CPP_NEED_TRADITIONAL
=yes
18133 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 leim/Makefile"
18134 ac_config_commands
="$ac_config_commands default"
18135 cat >confcache
<<\_ACEOF
18136 # This file is a shell script that caches the results of configure
18137 # tests run on this system so they can be shared between configure
18138 # scripts and configure runs, see configure's option --config-cache.
18139 # It is not useful on other systems. If it contains results you don't
18140 # want to keep, you may remove or edit it.
18142 # config.status only pays attention to the cache file if you give it
18143 # the --recheck option to rerun configure.
18145 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18146 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18147 # following values.
18151 # The following way of writing the cache mishandles newlines in values,
18152 # but we know of no workaround that is simple, portable, and efficient.
18153 # So, don't put newlines in cache variables' values.
18154 # Ultrix sh set writes to stderr and can't be redirected directly,
18155 # and sets the high bit in the cache file unless we assign to the vars.
18158 case `(ac_space=' '; set | grep ac_space) 2>&1` in
18160 # `set' does not quote correctly, so add quotes (double-quote
18161 # substitution turns \\\\ into \\, and sed turns \\ into \).
18164 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18167 # `set' quotes correctly as required by POSIX, so do not add quotes.
18169 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
18176 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18178 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18180 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
18181 if test -w $cache_file; then
18182 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
18183 cat confcache
>$cache_file
18185 echo "not updating unwritable cache $cache_file"
18190 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
18191 # Let make expand exec_prefix.
18192 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
18194 # VPATH may cause trouble with some makes, so we remove $(srcdir),
18195 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18196 # trailing colons and then remove the whole line if VPATH becomes empty
18197 # (actually we leave an empty line to preserve line numbers).
18198 if test "x$srcdir" = x.
; then
18199 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
18200 s/:*\$(srcdir):*/:/;
18201 s/:*\${srcdir}:*/:/;
18203 s/^\([^=]*=[ ]*\):*/\1/;
18209 DEFS
=-DHAVE_CONFIG_H
18213 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
18214 # 1. Remove the extension, and $U if already installed.
18215 ac_i
=`echo "$ac_i" |
18216 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
18218 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
18219 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
18221 LIBOBJS
=$ac_libobjs
18223 LTLIBOBJS
=$ac_ltlibobjs
18227 : ${CONFIG_STATUS=./config.status}
18228 ac_clean_files_save
=$ac_clean_files
18229 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
18230 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
18231 echo "$as_me: creating $CONFIG_STATUS" >&6;}
18232 cat >$CONFIG_STATUS <<_ACEOF
18234 # Generated by $as_me.
18235 # Run this file to recreate the current configuration.
18236 # Compiler output produced by configure, useful for debugging
18237 # configure, is in config.log if it exists.
18240 ac_cs_recheck=false
18242 SHELL=\${CONFIG_SHELL-$SHELL}
18245 cat >>$CONFIG_STATUS <<\_ACEOF
18246 ## --------------------- ##
18247 ## M4sh Initialization. ##
18248 ## --------------------- ##
18250 # Be Bourne compatible
18251 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
18254 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18255 # is contrary to our usage. Disable this feature.
18256 alias -g '${1+"$@"}'='"$@"'
18257 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
18260 DUALCASE
=1; export DUALCASE
# for MKS sh
18262 # Support unset when possible.
18263 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
18270 # Work around bugs in pre-3.0 UWIN ksh.
18271 $as_unset ENV MAIL MAILPATH
18278 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
18279 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
18280 LC_TELEPHONE LC_TIME
18282 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
18283 eval $as_var=C
; export $as_var
18289 # Required to use basename.
18290 if expr a
: '\(a\)' >/dev
/null
2>&1; then
18296 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
18297 as_basename
=basename
18303 # Name of the executable.
18304 as_me
=`$as_basename "$0" ||
18305 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18306 X"$0" : 'X\(//\)$' \| \
18307 X"$0" : 'X\(/\)$' \| \
18308 . : '\(.\)' 2>/dev/null ||
18310 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
18311 /^X\/\(\/\/\)$/{ s//\1/; q; }
18312 /^X\/\(\/\).*/{ s//\1/; q; }
18316 # PATH needs CR, and LINENO needs CR and PATH.
18317 # Avoid depending upon Character Ranges.
18318 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
18319 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18320 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
18321 as_cr_digits
='0123456789'
18322 as_cr_alnum
=$as_cr_Letters$as_cr_digits
18324 # The user is always right.
18325 if test "${PATH_SEPARATOR+set}" != set; then
18326 echo "#! /bin/sh" >conf$$.sh
18327 echo "exit 0" >>conf$$.sh
18329 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
18338 as_lineno_1
=$LINENO
18339 as_lineno_2
=$LINENO
18340 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
18341 test "x$as_lineno_1" != "x$as_lineno_2" &&
18342 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
18343 # Find who we are. Look in the path if we contain no path at all
18346 *[\\/]* ) as_myself
=$0 ;;
18347 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
18348 for as_dir
in $PATH
18351 test -z "$as_dir" && as_dir
=.
18352 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
18357 # We did not find ourselves, most probably we were run as `sh COMMAND'
18358 # in which case we are not to be found in the path.
18359 if test "x$as_myself" = x
; then
18362 if test ! -f "$as_myself"; then
18363 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
18364 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
18365 { (exit 1); exit 1; }; }
18367 case $CONFIG_SHELL in
18369 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
18370 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
18373 test -z "$as_dir" && as_dir
=.
18374 for as_base
in sh bash ksh sh5
; do
18377 if ("$as_dir/$as_base" -c '
18378 as_lineno_1=$LINENO
18379 as_lineno_2=$LINENO
18380 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
18381 test "x$as_lineno_1" != "x$as_lineno_2" &&
18382 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
18383 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
18384 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
18385 CONFIG_SHELL
=$as_dir/$as_base
18386 export CONFIG_SHELL
18387 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
18395 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
18396 # uniformly replaced by the line number. The first 'sed' inserts a
18397 # line-number line before each line; the second 'sed' does the real
18398 # work. The second script uses 'N' to pair each line-number line
18399 # with the numbered line, and appends trailing '-' during
18400 # substitution so that $LINENO is not a special case at line end.
18401 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
18402 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
18403 sed '=' <$as_myself |
18408 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
18411 s,^['$as_cr_digits']*\n,,
18412 ' >$as_me.lineno
&&
18413 chmod +x
$as_me.lineno ||
18414 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
18415 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
18416 { (exit 1); exit 1; }; }
18418 # Don't try to exec as it changes $[0], causing all sort of problems
18419 # (the dirname of $[0] is not the place where we might find the
18420 # original and so on. Autoconf is especially sensible to this).
18422 # Exit status is that of the last command.
18427 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
18428 *c
*,-n*) ECHO_N
= ECHO_C
='
18430 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
18431 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
18434 if expr a
: '\(a\)' >/dev
/null
2>&1; then
18440 rm -f conf$$ conf$$.exe conf$$.
file
18442 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
18443 # We could just check for DJGPP; but this test a) works b) is more generic
18444 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
18445 if test -f conf$$.exe
; then
18446 # Don't use ln at all; we don't have any links
18451 elif ln conf$$.
file conf$$
2>/dev
/null
; then
18456 rm -f conf$$ conf$$.exe conf$$.
file
18458 if mkdir
-p .
2>/dev
/null
; then
18461 test -d .
/-p && rmdir .
/-p
18465 as_executable_p
="test -f"
18467 # Sed expression to map a string onto a valid CPP name.
18468 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18470 # Sed expression to map a string onto a valid variable name.
18471 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18475 # We need space, tab and new line, in precisely that order.
18485 # Open the log real soon, to keep \$[0] and so on meaningful, and to
18486 # report actual input values of CONFIG_FILES etc. instead of their
18487 # values after options handling. Logging --version etc. is OK.
18491 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18492 ## Running $as_me. ##
18497 This file was extended by $as_me, which was
18498 generated by GNU Autoconf 2.59. Invocation command line was
18500 CONFIG_FILES = $CONFIG_FILES
18501 CONFIG_HEADERS = $CONFIG_HEADERS
18502 CONFIG_LINKS = $CONFIG_LINKS
18503 CONFIG_COMMANDS = $CONFIG_COMMANDS
18507 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
18511 # Files that config.status was made for.
18512 if test -n "$ac_config_files"; then
18513 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
18516 if test -n "$ac_config_headers"; then
18517 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
18520 if test -n "$ac_config_links"; then
18521 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
18524 if test -n "$ac_config_commands"; then
18525 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
18528 cat >>$CONFIG_STATUS <<\_ACEOF
18531 \`$as_me' instantiates files from templates according to the
18532 current configuration.
18534 Usage: $0 [OPTIONS] [FILE]...
18536 -h, --help print this help, then exit
18537 -V, --version print version number, then exit
18538 -q, --quiet do not print progress messages
18539 -d, --debug don't remove temporary files
18540 --recheck update $as_me by reconfiguring in the same conditions
18541 --file=FILE[:TEMPLATE]
18542 instantiate the configuration file FILE
18543 --header=FILE[:TEMPLATE]
18544 instantiate the configuration header FILE
18546 Configuration files:
18549 Configuration headers:
18552 Configuration commands:
18555 Report bugs to <bug-autoconf@gnu.org>."
18558 cat >>$CONFIG_STATUS <<_ACEOF
18561 configured by $0, generated by GNU Autoconf 2.59,
18562 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
18564 Copyright (C) 2003 Free Software Foundation, Inc.
18565 This config.status script is free software; the Free Software Foundation
18566 gives unlimited permission to copy, distribute and modify it."
18571 cat >>$CONFIG_STATUS <<\_ACEOF
18572 # If no file are specified by the user, then we need to provide default
18573 # value. By we need to know if files were specified by the user.
18579 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
18580 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
18588 *) # This is not an option, so the user has probably given explicit
18591 ac_need_defaults
=false
;;
18595 # Handling of the options.
18597 cat >>$CONFIG_STATUS <<\_ACEOF
18598 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
18600 --version |
--vers* |
-V )
18601 echo "$ac_cs_version"; exit 0 ;;
18603 # Conflict between --help and --header
18604 { { echo "$as_me:$LINENO: error: ambiguous option: $1
18605 Try \`$0 --help' for more information." >&5
18606 echo "$as_me: error: ambiguous option: $1
18607 Try \`$0 --help' for more information." >&2;}
18608 { (exit 1); exit 1; }; };;
18609 --help |
--hel |
-h )
18610 echo "$ac_cs_usage"; exit 0 ;;
18611 --debug |
--d* |
-d )
18613 --file |
--fil |
--fi |
--f )
18615 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
18616 ac_need_defaults
=false
;;
18617 --header |
--heade |
--head |
--hea )
18619 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
18620 ac_need_defaults
=false
;;
18621 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
18622 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
18625 # This is an error.
18626 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
18627 Try \`$0 --help' for more information." >&5
18628 echo "$as_me: error: unrecognized option: $1
18629 Try \`$0 --help' for more information." >&2;}
18630 { (exit 1); exit 1; }; } ;;
18632 *) ac_config_targets
="$ac_config_targets $1" ;;
18638 ac_configure_extra_args
=
18640 if $ac_cs_silent; then
18642 ac_configure_extra_args
="$ac_configure_extra_args --silent"
18646 cat >>$CONFIG_STATUS <<_ACEOF
18647 if \$ac_cs_recheck; then
18648 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
18649 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18654 cat >>$CONFIG_STATUS <<_ACEOF
18656 # INIT-COMMANDS section.
18659 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
18665 cat >>$CONFIG_STATUS <<\_ACEOF
18666 for ac_config_target
in $ac_config_targets
18668 case "$ac_config_target" in
18669 # Handling of arguments.
18670 "Makefile" ) CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
18671 "lib-src/Makefile.c" ) CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
18672 "oldXMenu/Makefile" ) CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
18673 "man/Makefile" ) CONFIG_FILES
="$CONFIG_FILES man/Makefile" ;;
18674 "lwlib/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
18675 "src/Makefile.c" ) CONFIG_FILES
="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
18676 "lisp/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
18677 "leim/Makefile" ) CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
18678 "default" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
18679 "src/config.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
18680 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
18681 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
18682 { (exit 1); exit 1; }; };;
18686 # If the user did not use the arguments to specify the items to instantiate,
18687 # then the envvar interface is used. Set only those that are not.
18688 # We use the long form for the default assignment because of an extremely
18689 # bizarre bug on SunOS 4.1.3.
18690 if $ac_need_defaults; then
18691 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
18692 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
18693 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
18696 # Have a temporary directory for convenience. Make it in the build tree
18697 # simply because there is no reason to put it here, and in addition,
18698 # creating and moving files from /tmp can sometimes cause problems.
18699 # Create a temporary directory, and hook for its removal unless debugging.
18702 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
18703 trap '{ (exit 1); exit 1; }' 1 2 13 15
18706 # Create a (secure) tmp directory for tmp files.
18709 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
18710 test -n "$tmp" && test -d "$tmp"
18713 tmp
=.
/confstat$$
-$RANDOM
18714 (umask 077 && mkdir
$tmp)
18717 echo "$me: cannot create a temporary directory in ." >&2
18718 { (exit 1); exit 1; }
18723 cat >>$CONFIG_STATUS <<_ACEOF
18726 # CONFIG_FILES section.
18729 # No need to generate the scripts if there are no CONFIG_FILES.
18730 # This happens for instance when ./config.status config.h
18731 if test -n "\$CONFIG_FILES"; then
18732 # Protect against being on the right side of a sed subst in config.status.
18733 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
18734 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
18735 s,@SHELL@,$SHELL,;t t
18736 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
18737 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
18738 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
18739 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
18740 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
18741 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
18742 s,@exec_prefix@,$exec_prefix,;t t
18743 s,@prefix@,$prefix,;t t
18744 s,@program_transform_name@,$program_transform_name,;t t
18745 s,@bindir@,$bindir,;t t
18746 s,@sbindir@,$sbindir,;t t
18747 s,@libexecdir@,$libexecdir,;t t
18748 s,@datadir@,$datadir,;t t
18749 s,@sysconfdir@,$sysconfdir,;t t
18750 s,@sharedstatedir@,$sharedstatedir,;t t
18751 s,@localstatedir@,$localstatedir,;t t
18752 s,@libdir@,$libdir,;t t
18753 s,@includedir@,$includedir,;t t
18754 s,@oldincludedir@,$oldincludedir,;t t
18755 s,@infodir@,$infodir,;t t
18756 s,@mandir@,$mandir,;t t
18757 s,@build_alias@,$build_alias,;t t
18758 s,@host_alias@,$host_alias,;t t
18759 s,@target_alias@,$target_alias,;t t
18760 s,@DEFS@,$DEFS,;t t
18761 s,@ECHO_C@,$ECHO_C,;t t
18762 s,@ECHO_N@,$ECHO_N,;t t
18763 s,@ECHO_T@,$ECHO_T,;t t
18764 s,@LIBS@,$LIBS,;t t
18765 s,@build@,$build,;t t
18766 s,@build_cpu@,$build_cpu,;t t
18767 s,@build_vendor@,$build_vendor,;t t
18768 s,@build_os@,$build_os,;t t
18769 s,@host@,$host,;t t
18770 s,@host_cpu@,$host_cpu,;t t
18771 s,@host_vendor@,$host_vendor,;t t
18772 s,@host_os@,$host_os,;t t
18774 s,@CFLAGS@,$CFLAGS,;t t
18775 s,@LDFLAGS@,$LDFLAGS,;t t
18776 s,@CPPFLAGS@,$CPPFLAGS,;t t
18777 s,@ac_ct_CC@,$ac_ct_CC,;t t
18778 s,@EXEEXT@,$EXEEXT,;t t
18779 s,@OBJEXT@,$OBJEXT,;t t
18780 s,@LN_S@,$LN_S,;t t
18782 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
18783 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
18784 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
18785 s,@YACC@,$YACC,;t t
18786 s,@RANLIB@,$RANLIB,;t t
18787 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
18788 s,@EGREP@,$EGREP,;t t
18789 s,@LIBSOUND@,$LIBSOUND,;t t
18790 s,@SET_MAKE@,$SET_MAKE,;t t
18791 s,@ALLOCA@,$ALLOCA,;t t
18792 s,@liblockfile@,$liblockfile,;t t
18793 s,@LIBOBJS@,$LIBOBJS,;t t
18794 s,@LIBOBJS@,$LIBOBJS,;t t
18795 s,@NEED_SETGID@,$NEED_SETGID,;t t
18796 s,@KMEM_GROUP@,$KMEM_GROUP,;t t
18797 s,@GETLOADAVG_LIBS@,$GETLOADAVG_LIBS,;t t
18798 s,@version@,$version,;t t
18799 s,@configuration@,$configuration,;t t
18800 s,@canonical@,$canonical,;t t
18801 s,@srcdir@,$srcdir,;t t
18802 s,@lispdir@,$lispdir,;t t
18803 s,@locallisppath@,$locallisppath,;t t
18804 s,@lisppath@,$lisppath,;t t
18805 s,@x_default_search_path@,$x_default_search_path,;t t
18806 s,@etcdir@,$etcdir,;t t
18807 s,@archlibdir@,$archlibdir,;t t
18808 s,@docdir@,$docdir,;t t
18809 s,@bitmapdir@,$bitmapdir,;t t
18810 s,@c_switch_system@,$c_switch_system,;t t
18811 s,@c_switch_machine@,$c_switch_machine,;t t
18812 s,@LD_SWITCH_X_SITE@,$LD_SWITCH_X_SITE,;t t
18813 s,@LD_SWITCH_X_SITE_AUX@,$LD_SWITCH_X_SITE_AUX,;t t
18814 s,@C_SWITCH_X_SITE@,$C_SWITCH_X_SITE,;t t
18815 s,@X_TOOLKIT_TYPE@,$X_TOOLKIT_TYPE,;t t
18816 s,@machfile@,$machfile,;t t
18817 s,@opsysfile@,$opsysfile,;t t
18818 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
18823 cat >>$CONFIG_STATUS <<\_ACEOF
18824 # Split the substitutions into bite-sized pieces for seds with
18825 # small command number limits, like on Digital OSF/1 and HP-UX.
18826 ac_max_sed_lines
=48
18827 ac_sed_frag
=1 # Number of current file.
18828 ac_beg
=1 # First line for current file.
18829 ac_end
=$ac_max_sed_lines # Line after last line for current file.
18832 while $ac_more_lines; do
18833 if test $ac_beg -gt 1; then
18834 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
18836 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
18838 if test ! -s $tmp/subs.frag
; then
18839 ac_more_lines
=false
18841 # The purpose of the label and of the branching condition is to
18842 # speed up the sed processing (if there are no `@' at all, there
18843 # is no need to browse any of the substitutions).
18844 # These are the two extra sed commands mentioned above.
18846 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
18847 if test -z "$ac_sed_cmds"; then
18848 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
18850 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
18852 ac_sed_frag
=`expr $ac_sed_frag + 1`
18854 ac_end
=`expr $ac_end + $ac_max_sed_lines`
18857 if test -z "$ac_sed_cmds"; then
18860 fi # test -n "$CONFIG_FILES"
18863 cat >>$CONFIG_STATUS <<\_ACEOF
18864 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
18865 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18867 - |
*:- |
*:-:* ) # input from stdin
18869 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
18870 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
18871 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
18872 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
18873 * ) ac_file_in
=$ac_file.
in ;;
18876 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
18877 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
18878 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18879 X"$ac_file" : 'X\(//\)[^/]' \| \
18880 X"$ac_file" : 'X\(//\)$' \| \
18881 X"$ac_file" : 'X\(/\)' \| \
18882 . : '\(.\)' 2>/dev/null ||
18884 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18885 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18886 /^X\(\/\/\)$/{ s//\1/; q; }
18887 /^X\(\/\).*/{ s//\1/; q; }
18889 { if $as_mkdir_p; then
18894 while test ! -d "$as_dir"; do
18895 as_dirs
="$as_dir $as_dirs"
18896 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
18897 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18898 X"$as_dir" : 'X\(//\)[^/]' \| \
18899 X"$as_dir" : 'X\(//\)$' \| \
18900 X"$as_dir" : 'X\(/\)' \| \
18901 . : '\(.\)' 2>/dev/null ||
18903 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18904 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18905 /^X\(\/\/\)$/{ s//\1/; q; }
18906 /^X\(\/\).*/{ s//\1/; q; }
18909 test ! -n "$as_dirs" || mkdir
$as_dirs
18910 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18911 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18912 { (exit 1); exit 1; }; }; }
18916 if test "$ac_dir" != .
; then
18917 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18918 # A "../" for each directory in $ac_dir_suffix.
18919 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18921 ac_dir_suffix
= ac_top_builddir
=
18925 .
) # No --srcdir option. We are building in place.
18927 if test -z "$ac_top_builddir"; then
18930 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
18932 [\\/]* | ?
:[\\/]* ) # Absolute path.
18933 ac_srcdir
=$srcdir$ac_dir_suffix;
18934 ac_top_srcdir
=$srcdir ;;
18935 *) # Relative path.
18936 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
18937 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
18940 # Do not use `cd foo && pwd` to compute absolute paths, because
18941 # the directories may not exist.
18943 .
) ac_abs_builddir
="$ac_dir";;
18946 .
) ac_abs_builddir
=`pwd`;;
18947 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
18948 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
18951 case $ac_abs_builddir in
18952 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
18954 case ${ac_top_builddir}.
in
18955 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
18956 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
18957 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
18960 case $ac_abs_builddir in
18961 .
) ac_abs_srcdir
=$ac_srcdir;;
18964 .
) ac_abs_srcdir
=$ac_abs_builddir;;
18965 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
18966 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
18969 case $ac_abs_builddir in
18970 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
18972 case $ac_top_srcdir in
18973 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
18974 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
18975 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
18981 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
18982 *) ac_INSTALL
=$ac_top_builddir$INSTALL ;;
18985 if test x
"$ac_file" != x-
; then
18986 { echo "$as_me:$LINENO: creating $ac_file" >&5
18987 echo "$as_me: creating $ac_file" >&6;}
18990 # Let's still pretend it is `configure' which instantiates (i.e., don't
18991 # use $as_me), people would be surprised to read:
18992 # /* config.h. Generated by config.status. */
18993 if test x
"$ac_file" = x-
; then
18996 configure_input
="$ac_file. "
18998 configure_input
=$configure_input"Generated from `echo $ac_file_in |
18999 sed 's,.*/,,'` by configure."
19001 # First look for the input files in the build tree, otherwise in the
19003 ac_file_inputs
=`IFS=:
19004 for f in $ac_file_in; do
19006 -) echo $tmp/stdin ;;
19008 # Absolute (can't be DOS-style, as IFS=:)
19009 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19010 echo "$as_me: error: cannot find input file: $f" >&2;}
19011 { (exit 1); exit 1; }; }
19014 if test -f "$f"; then
19017 elif test -f "$srcdir/$f"; then
19022 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19023 echo "$as_me: error: cannot find input file: $f" >&2;}
19024 { (exit 1); exit 1; }; }
19027 done` ||
{ (exit 1); exit 1; }
19029 cat >>$CONFIG_STATUS <<_ACEOF
19033 cat >>$CONFIG_STATUS <<\_ACEOF
19035 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
19036 s
,@configure_input@
,$configure_input,;t t
19037 s
,@srcdir@
,$ac_srcdir,;t t
19038 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
19039 s
,@top_srcdir@
,$ac_top_srcdir,;t t
19040 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
19041 s
,@builddir@
,$ac_builddir,;t t
19042 s
,@abs_builddir@
,$ac_abs_builddir,;t t
19043 s
,@top_builddir@
,$ac_top_builddir,;t t
19044 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
19045 s
,@INSTALL@
,$ac_INSTALL,;t t
19046 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
19048 if test x"$ac_file" != x-; then
19049 mv $tmp/out $ac_file
19057 cat >>$CONFIG_STATUS <<\_ACEOF
19060 # CONFIG_HEADER section.
19063 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
19064 # NAME is the cpp macro being defined and VALUE is the value it is being given.
19066 # ac_d sets the value in "#define NAME VALUE" lines.
19067 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
19068 ac_dB
='[ ].*$,\1#\2'
19071 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
19072 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
19073 ac_uB
='$,\1#\2define\3'
19077 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
19078 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19080 - |
*:- |
*:-:* ) # input from stdin
19082 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
19083 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
19084 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
19085 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
19086 * ) ac_file_in
=$ac_file.
in ;;
19089 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
19090 echo "$as_me: creating $ac_file" >&6;}
19092 # First look for the input files in the build tree, otherwise in the
19094 ac_file_inputs
=`IFS=:
19095 for f in $ac_file_in; do
19097 -) echo $tmp/stdin ;;
19099 # Absolute (can't be DOS-style, as IFS=:)
19100 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19101 echo "$as_me: error: cannot find input file: $f" >&2;}
19102 { (exit 1); exit 1; }; }
19103 # Do quote $f, to prevent DOS paths from being IFS'd.
19106 if test -f "$f"; then
19109 elif test -f "$srcdir/$f"; then
19114 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19115 echo "$as_me: error: cannot find input file: $f" >&2;}
19116 { (exit 1); exit 1; }; }
19119 done` ||
{ (exit 1); exit 1; }
19120 # Remove the trailing spaces.
19121 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
19125 # Transform confdefs.h into two sed scripts, `conftest.defines' and
19126 # `conftest.undefs', that substitutes the proper values into
19127 # config.h.in to produce config.h. The first handles `#define'
19128 # templates, and the second `#undef' templates.
19129 # And first: Protect against being on the right side of a sed subst in
19130 # config.status. Protect against being in an unquoted here document
19131 # in config.status.
19132 rm -f conftest.defines conftest.undefs
19133 # Using a here document instead of a string reduces the quoting nightmare.
19134 # Putting comments in sed scripts is not portable.
19136 # `end' is used to avoid that the second main sed command (meant for
19137 # 0-ary CPP macros) applies to n-ary macro definitions.
19138 # See the Autoconf documentation for `clear'.
19139 cat >confdef2sed.
sed <<\_ACEOF
19144 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
19146 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
19149 # If some macros were called several times there might be several times
19150 # the same #defines, which is useless. Nevertheless, we may not want to
19151 # sort them, since we want the *last* AC-DEFINE to be honored.
19152 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
19153 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
19154 rm -f confdef2sed.sed
19156 # This sed command replaces #undef with comments. This is necessary, for
19157 # example, in the case of _POSIX_SOURCE, which is predefined and required
19158 # on some systems where configure will not decide to define it.
19159 cat >>conftest.undefs <<\_ACEOF
19160 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
19163 # Break up conftest.defines because some shells have a limit on the size
19164 # of here documents, and old seds have small limits too (100 cmds).
19165 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
19166 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
19167 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
19168 echo ' :' >>$CONFIG_STATUS
19169 rm -f conftest.tail
19170 while grep . conftest.defines >/dev/null
19172 # Write a limited-size here document to $tmp/defines.sed.
19173 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
19174 # Speed up: don't consider the non `#define' lines.
19175 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
19176 # Work around the forget-to-reset-the-flag bug.
19177 echo 't clr' >>$CONFIG_STATUS
19178 echo ': clr' >>$CONFIG_STATUS
19179 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
19181 sed -f $tmp/defines.sed $tmp/in >$tmp/out
19183 mv $tmp/out $tmp/in
19185 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
19186 rm -f conftest.defines
19187 mv conftest.
tail conftest.defines
19189 rm -f conftest.defines
19190 echo ' fi # grep' >>$CONFIG_STATUS
19191 echo >>$CONFIG_STATUS
19193 # Break up conftest.undefs because some shells have a limit on the size
19194 # of here documents, and old seds have small limits too (100 cmds).
19195 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
19196 rm -f conftest.
tail
19197 while grep . conftest.undefs
>/dev
/null
19199 # Write a limited-size here document to $tmp/undefs.sed.
19200 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
19201 # Speed up: don't consider the non
`#undef'
19202 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
19203 # Work around the forget-to-reset-the-flag bug.
19204 echo 't clr' >>$CONFIG_STATUS
19205 echo ': clr' >>$CONFIG_STATUS
19206 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
19208 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
19210 mv $tmp/out $tmp/in
19212 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
19213 rm -f conftest.undefs
19214 mv conftest.tail conftest.undefs
19216 rm -f conftest.undefs
19218 cat >>$CONFIG_STATUS <<\_ACEOF
19219 # Let's still pretend it is `configure
' which instantiates (i.e., don't
19220 # use $as_me), people would be surprised to read:
19221 # /* config.h. Generated by config.status. */
19222 if test x
"$ac_file" = x-
; then
19223 echo "/* Generated by configure. */" >$tmp/config.h
19225 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
19227 cat $tmp/in >>$tmp/config.h
19229 if test x
"$ac_file" != x-
; then
19230 if diff $ac_file $tmp/config.h
>/dev
/null
2>&1; then
19231 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
19232 echo "$as_me: $ac_file is unchanged" >&6;}
19234 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
19235 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19236 X"$ac_file" : 'X\(//\)[^/]' \| \
19237 X"$ac_file" : 'X\(//\)$' \| \
19238 X"$ac_file" : 'X\(/\)' \| \
19239 . : '\(.\)' 2>/dev/null ||
19241 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19242 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19243 /^X\(\/\/\)$/{ s//\1/; q; }
19244 /^X\(\/\).*/{ s//\1/; q; }
19246 { if $as_mkdir_p; then
19251 while test ! -d "$as_dir"; do
19252 as_dirs
="$as_dir $as_dirs"
19253 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
19254 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19255 X"$as_dir" : 'X\(//\)[^/]' \| \
19256 X"$as_dir" : 'X\(//\)$' \| \
19257 X"$as_dir" : 'X\(/\)' \| \
19258 . : '\(.\)' 2>/dev/null ||
19260 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19261 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19262 /^X\(\/\/\)$/{ s//\1/; q; }
19263 /^X\(\/\).*/{ s//\1/; q; }
19266 test ! -n "$as_dirs" || mkdir
$as_dirs
19267 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
19268 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
19269 { (exit 1); exit 1; }; }; }
19272 mv $tmp/config.h
$ac_file
19276 rm -f $tmp/config.h
19280 cat >>$CONFIG_STATUS <<\_ACEOF
19283 # CONFIG_COMMANDS section.
19285 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
19286 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
19287 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
19288 ac_dir
=`(dirname "$ac_dest") 2>/dev/null ||
19289 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19290 X"$ac_dest" : 'X\(//\)[^/]' \| \
19291 X"$ac_dest" : 'X\(//\)$' \| \
19292 X"$ac_dest" : 'X\(/\)' \| \
19293 . : '\(.\)' 2>/dev/null ||
19295 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19296 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19297 /^X\(\/\/\)$/{ s//\1/; q; }
19298 /^X\(\/\).*/{ s//\1/; q; }
19300 { if $as_mkdir_p; then
19305 while test ! -d "$as_dir"; do
19306 as_dirs
="$as_dir $as_dirs"
19307 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
19308 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19309 X"$as_dir" : 'X\(//\)[^/]' \| \
19310 X"$as_dir" : 'X\(//\)$' \| \
19311 X"$as_dir" : 'X\(/\)' \| \
19312 . : '\(.\)' 2>/dev/null ||
19314 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19315 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19316 /^X\(\/\/\)$/{ s//\1/; q; }
19317 /^X\(\/\).*/{ s//\1/; q; }
19320 test ! -n "$as_dirs" || mkdir
$as_dirs
19321 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
19322 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
19323 { (exit 1); exit 1; }; }; }
19327 if test "$ac_dir" != .
; then
19328 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19329 # A "../" for each directory in $ac_dir_suffix.
19330 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
19332 ac_dir_suffix
= ac_top_builddir
=
19336 .
) # No --srcdir option. We are building in place.
19338 if test -z "$ac_top_builddir"; then
19341 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
19343 [\\/]* | ?
:[\\/]* ) # Absolute path.
19344 ac_srcdir
=$srcdir$ac_dir_suffix;
19345 ac_top_srcdir
=$srcdir ;;
19346 *) # Relative path.
19347 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
19348 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
19351 # Do not use `cd foo && pwd` to compute absolute paths, because
19352 # the directories may not exist.
19354 .
) ac_abs_builddir
="$ac_dir";;
19357 .
) ac_abs_builddir
=`pwd`;;
19358 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
19359 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
19362 case $ac_abs_builddir in
19363 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
19365 case ${ac_top_builddir}.
in
19366 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
19367 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
19368 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
19371 case $ac_abs_builddir in
19372 .
) ac_abs_srcdir
=$ac_srcdir;;
19375 .
) ac_abs_srcdir
=$ac_abs_builddir;;
19376 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
19377 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
19380 case $ac_abs_builddir in
19381 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
19383 case $ac_top_srcdir in
19384 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
19385 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
19386 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
19391 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
19392 echo "$as_me: executing $ac_dest commands" >&6;}
19396 ### Make the necessary directories, if they don't exist.
19397 for dir
in etc lisp
; do
19398 test -d ${dir} || mkdir
${dir}
19401 # Build src/Makefile from ${srcdir}/src/Makefile.c
19402 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
19403 # This must be done after src/config.h is built, since we rely on that file.
19405 # Now get this: Some word that is part of the ${srcdir} directory name
19406 # or the ${configuration} value might, just might, happen to be an
19407 # identifier like `sun4' or `i386' or something, and be predefined by
19408 # the C preprocessor to some helpful value like 1, or maybe the empty
19409 # string. Needless to say consequent macro substitutions are less
19410 # than conducive to the makefile finding the correct directory.
19411 undefs
="`echo $top_srcdir $configuration $canonical |
19412 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
19413 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
19416 echo creating src
/epaths.h
19417 ${MAKE-make} epaths-force
19419 # As of 2000-11-19, newest development versions of GNU cpp preprocess
19420 # `..' to `. .' unless invoked with -traditional
19422 if test "x$GCC" = xyes
&& test "x$CPP_NEED_TRADITIONAL" = xyes
; then
19423 CPPFLAGS
="$CPPFLAGS -traditional"
19426 echo creating lib-src
/Makefile
19428 rm -f junk.c junk1.c junk2.c
19429 sed -e '/start of cpp stuff/q' \
19430 < Makefile.c
> junk1.c
19431 sed -e '1,/start of cpp stuff/d'\
19432 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
19433 < Makefile.c
> junk.c
19434 $CPP $undefs -I.
-I$top_srcdir/src
$CPPFLAGS junk.c | \
19435 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
19436 cat junk1.c junk2.c
> Makefile.new
19437 rm -f junk.c junk1.c junk2.c
19438 chmod 444 Makefile.new
19439 mv -f Makefile.new Makefile
19442 echo creating src
/Makefile
19444 rm -f junk.c junk1.c junk2.c
19445 sed -e '/start of cpp stuff/q' \
19446 < Makefile.c
> junk1.c
19447 sed -e '1,/start of cpp stuff/d'\
19448 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
19449 < Makefile.c
> junk.c
19450 $CPP $undefs -I.
-I$top_srcdir/src
$CPPFLAGS junk.c | \
19451 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
19452 cat junk1.c junk2.c
> Makefile.new
19453 rm -f junk.c junk1.c junk2.c
19454 chmod 444 Makefile.new
19455 mv -f Makefile.new Makefile
19458 if test ! -f src
/.gdbinit
&& test -f $top_srcdir/src
/.gdbinit
; then
19459 echo creating src
/.gdbinit
19460 echo source $top_srcdir/src
/.gdbinit
> src
/.gdbinit
19463 # This is how we know whether to re-run configure in certain cases.
19464 touch src
/config.stamp
19471 cat >>$CONFIG_STATUS <<\_ACEOF
19473 { (exit 0); exit 0; }
19475 chmod +x
$CONFIG_STATUS
19476 ac_clean_files
=$ac_clean_files_save
19479 # configure is writing to config.log, and then calls config.status.
19480 # config.status does its own redirection, appending to config.log.
19481 # Unfortunately, on DOS this fails, as config.log is still kept open
19482 # by configure, so config.status won't be able to write to it; its
19483 # output is simply discarded. So we exec the FD to /dev/null,
19484 # effectively closing config.log, so it can be properly (re)opened and
19485 # appended to by config.status. When coming back to configure, we
19486 # need to make the FD available again.
19487 if test "$no_create" != yes; then
19489 ac_config_status_args
=
19490 test "$silent" = yes &&
19491 ac_config_status_args
="$ac_config_status_args --quiet"
19493 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
19495 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19496 # would make configure fail if this is the last instruction.
19497 $ac_cs_success ||
{ (exit 1); exit 1; }