2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.56.
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6 # Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
17 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18 # is contrary to our usage. Disable this feature.
19 alias -g '${1+"$@"}'='"$@"'
20 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
24 # Support unset when possible.
25 if (FOO
=FOO
; unset FOO
) >/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 -n "`(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
224 as_executable_p
="test -f"
226 # Sed expression to map a string onto a valid CPP name.
227 as_tr_cpp
="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
229 # Sed expression to map a string onto a valid variable name.
230 as_tr_sh
="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
234 # We need space, tab and new line, in precisely that order.
244 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
245 # so uname gets run too.
246 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
253 ac_default_prefix
=/usr
/local
254 ac_config_libobj_dir
=.
259 SHELL
=${CONFIG_SHELL-/bin/sh}
261 # Maximum number of lines to put in a shell here document.
262 # This variable seems obsolete. It should probably be removed, and
263 # only ac_max_sed_lines should be used.
264 : ${ac_max_here_lines=38}
266 # Identity of this package.
273 ac_unique_file
="src/lisp.h"
274 ac_config_libobj_dir
=src
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 RANLIB ac_ct_RANLIB EGREP LIBSOUND SET_MAKE ALLOCA liblockfile LIBOBJS NEED_SETGID KMEM_GROUP GETLOADAVG_LIBS version configuration canonical srcdir lispdir locallisppath lisppath x_default_search_path etcdir archlibdir docdir bitmapdir gamedir gameuser c_switch_system c_switch_machine LD_SWITCH_X_SITE LD_SWITCH_X_SITE_AUX C_SWITCH_X_SITE X_TOOLKIT_TYPE machfile opsysfile 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 --program-prefix=PREFIX prepend PREFIX to installed program names
836 --program-suffix=SUFFIX append SUFFIX to installed program names
837 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
840 --x-includes=DIR X include files are
in DIR
841 --x-libraries=DIR X library files are
in DIR
844 --build=BUILD configure
for building on BUILD
[guessed
]
845 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
849 if test -n "$ac_init_help"; then
854 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
855 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
856 --disable-largefile omit support
for large files
859 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
860 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
861 --without-gcc don
't use GCC to compile Emacs if GCC is found
862 --without-pop don't support POP
mail retrieval with movemail
863 --with-kerberos support Kerberos-authenticated POP
864 --with-kerberos5 support Kerberos version
5 authenticated POP
865 --with-hesiod support Hesiod to get the POP server
host
866 --without-sound don
't compile with sound support
867 --with-x-toolkit=KIT use an X toolkit (KIT = yes/lucid/athena/motif/no)
868 --with-xpm use -lXpm for displaying XPM images
869 --with-jpeg use -ljpeg for displaying JPEG images
870 --with-tiff use -ltiff for displaying TIFF images
871 --with-gif use -lungif for displaying GIF images
872 --with-png use -lpng for displaying PNG images
873 --without-toolkit-scroll-bars
874 don't use Motif or Xaw3d scroll bars
875 --without-xim don
't use X11 XIM
876 --without-carbon don't use Carbon GUI on Mac OS X
877 --with-x use the X Window System
879 Some influential environment variables
:
880 CC C compiler
command
881 CFLAGS C compiler flags
882 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
883 nonstandard directory
<lib dir
>
884 CPPFLAGS C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if you have
885 headers
in a nonstandard directory
<include dir
>
888 Use these variables to override the choices made by
`configure' or to help
889 it to find libraries and programs with nonstandard names/locations.
894 if test "$ac_init_help" = "recursive"; then
895 # If there are subdirs, report their specific --help.
897 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
898 test -d $ac_dir || continue
901 if test "$ac_dir" != .; then
902 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
903 # A "../" for each directory in $ac_dir_suffix.
904 ac_top_builddir=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,../,g'`
906 ac_dir_suffix= ac_top_builddir=
910 .) # No --srcdir option. We are building in place.
912 if test -z "$ac_top_builddir"; then
915 ac_top_srcdir=`echo $ac_top_builddir |
sed 's,/$,,'`
917 [\\/]* | ?:[\\/]* ) # Absolute path.
918 ac_srcdir=$srcdir$ac_dir_suffix;
919 ac_top_srcdir=$srcdir ;;
921 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
922 ac_top_srcdir=$ac_top_builddir$srcdir ;;
924 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
926 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
927 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}.
&& pwd`
928 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
929 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
932 # Check for guested configure; otherwise get Cygnus style configure.
933 if test -f $ac_srcdir/configure.gnu; then
935 $SHELL $ac_srcdir/configure.gnu --help=recursive
936 elif test -f $ac_srcdir/configure; then
938 $SHELL $ac_srcdir/configure --help=recursive
939 elif test -f $ac_srcdir/configure.ac ||
940 test -f $ac_srcdir/configure.in; then
944 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
950 test -n "$ac_init_help" && exit 0
951 if $ac_init_version; then
954 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
955 Free Software Foundation, Inc.
956 This configure script is free software; the Free Software Foundation
957 gives unlimited permission to copy, distribute and modify it.
963 This file contains any messages produced by compilers while
964 running configure, to aid debugging if configure makes a mistake.
966 It was created by $as_me, which was
967 generated by GNU Autoconf 2.56. Invocation command line was
978 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
979 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
980 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
981 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
982 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
984 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
985 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
987 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
988 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
989 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
990 hostinfo = `(hostinfo
) 2>/dev
/null ||
echo unknown
`
991 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
992 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
993 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1001 test -z "$as_dir" && as_dir=.
1002 echo "PATH: $as_dir"
1017 # Keep a trace of the command line.
1018 # Strip out --no-create and --no-recursion so they do not pile up.
1019 # Strip out --silent because we don't want to record it for future runs.
1020 # Also quote any args containing shell meta-characters.
1021 # Make two passes to allow for proper duplicate-argument suppression.
1026 ac_must_keep_next=false
1032 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1033 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1034 | -silent | --silent | --silen | --sile | --sil)
1036 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1037 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1040 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1042 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1043 if test $ac_must_keep_next = true; then
1044 ac_must_keep_next=false # Got value, back to normal.
1047 *=* | --config-cache | -C | -disable-* | --disable-* \
1048 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1049 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1050 | -with-* | --with-* | -without-* | --without-* | --x)
1051 case "$ac_configure_args0 " in
1052 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1055 -* ) ac_must_keep_next=true ;;
1058 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1059 # Get rid of the leading space.
1065 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1066 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1068 # When interrupted or exit'd, cleanup temporary files, and complete
1069 # config.log. We remove comments because anyway the quotes in there
1070 # would cause problems or look ugly.
1071 # WARNING: Be sure not to use single quotes in there, as some shells,
1072 # such as our DU 5.0 friend, will then `close
' the trap.
1073 trap 'exit_status
=$?
1074 # Save into config.log some information that might help in debugging.
1079 ## ---------------- ##
1080 ## Cache variables. ##
1081 ## ---------------- ##
1084 # The following way of writing the cache mishandles newlines in values,
1087 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1090 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1091 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1095 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1102 ## ----------------- ##
1103 ## Output variables. ##
1104 ## ----------------- ##
1107 for ac_var
in $ac_subst_vars
1109 eval ac_val
=$
`echo $ac_var`
1110 echo "$ac_var='"'"'$ac_val'"'"'"
1114 if test -n "$ac_subst_files"; then
1121 for ac_var
in $ac_subst_files
1123 eval ac_val
=$
`echo $ac_var`
1124 echo "$ac_var='"'"'$ac_val'"'"'"
1129 if test -s confdefs.h
; then
1136 sed "/^$/d" confdefs.h |
sort
1139 test "$ac_signal" != 0 &&
1140 echo "$as_me: caught signal $ac_signal"
1141 echo "$as_me: exit $exit_status"
1143 rm -f core core.
* *.core
&&
1144 rm -rf conftest
* confdefs
* conf$$
* $ac_clean_files &&
1147 for ac_signal in 1 2 13 15; do
1148 trap 'ac_signal
='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1152 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1153 rm -rf conftest* confdefs.h
1154 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1157 # Predefined preprocessor variables.
1159 cat >>confdefs.h <<_ACEOF
1160 #define PACKAGE_NAME "$PACKAGE_NAME"
1164 cat >>confdefs.h <<_ACEOF
1165 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1169 cat >>confdefs.h <<_ACEOF
1170 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1174 cat >>confdefs.h <<_ACEOF
1175 #define PACKAGE_STRING "$PACKAGE_STRING"
1179 cat >>confdefs.h <<_ACEOF
1180 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1184 # Let the site file select an alternate cache file if it wants to.
1185 # Prefer explicitly selected file to automatically selected ones.
1186 if test -z "$CONFIG_SITE"; then
1187 if test "x$prefix" != xNONE; then
1188 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1190 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1193 for ac_site_file in $CONFIG_SITE; do
1194 if test -r "$ac_site_file"; then
1195 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1196 echo "$as_me: loading site script $ac_site_file" >&6;}
1197 sed 's
/^
/|
/' "$ac_site_file" >&5
1202 if test -r "$cache_file"; then
1203 # Some versions of bash will fail to source /dev/null (special
1204 # files actually), so we avoid doing that.
1205 if test -f "$cache_file"; then
1206 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1207 echo "$as_me: loading cache $cache_file" >&6;}
1209 [\\/]* | ?:[\\/]* ) . $cache_file;;
1210 *) . ./$cache_file;;
1214 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1215 echo "$as_me: creating cache $cache_file" >&6;}
1219 # Check that the precious variables saved in the cache have kept the same
1221 ac_cache_corrupted=false
1222 for ac_var in `(set) 2>&1 |
1223 sed -n 's
/^ac_env_\
([a-zA-Z_0-9
]*\
)_set
=.
*/\
1/p
'`; do
1224 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1225 eval ac_new_set=\$ac_env_${ac_var}_set
1226 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1227 eval ac_new_val="\$ac_env_${ac_var}_value"
1228 case $ac_old_set,$ac_new_set in
1230 { echo "$as_me:$LINENO: error: \`$ac_var' was
set to \
`$ac_old_val' in the previous run" >&5
1231 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&2;}
1232 ac_cache_corrupted=: ;;
1234 { echo "$as_me:$LINENO: error
: \
`$ac_var' was not set in the previous run" >&5
1235 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1236 ac_cache_corrupted=: ;;
1239 if test "x$ac_old_val" != "x$ac_new_val"; then
1240 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run
:" >&5
1241 echo "$as_me: error
: \
`$ac_var' has changed since the previous run:" >&2;}
1242 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1243 echo "$as_me: former value: $ac_old_val" >&2;}
1244 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1245 echo "$as_me: current value: $ac_new_val" >&2;}
1246 ac_cache_corrupted=:
1249 # Pass precious variables to config.status.
1250 if test "$ac_new_set" = set; then
1252 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1253 ac_arg=$ac_var=`echo "$ac_new_val" |
sed "s/'/'\\\\\\\\''/g"` ;;
1254 *) ac_arg=$ac_var=$ac_new_val ;;
1256 case " $ac_configure_args " in
1257 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1258 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1262 if $ac_cache_corrupted; then
1263 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1264 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1265 { { echo "$as_me:$LINENO: error: run \`make distclean
' and/or \`rm $cache_file' and start over
" >&5
1266 echo "$as_me: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1267 { (exit 1); exit 1; }; }
1271 ac_cpp='$CPP $CPPFLAGS'
1272 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
1273 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
1274 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1294 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
1297 test "$program_prefix" != NONE &&
1298 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1299 # Use a double $ so make ignores it.
1300 test "$program_suffix" != NONE &&
1301 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1302 # Double any \ or $. echo might interpret backslashes.
1303 # By default was `s,x,x', remove it
if useless.
1304 cat <<\_ACEOF
>conftest.
sed
1305 s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//
1307 program_transform_name
=`echo $program_transform_name | sed -f conftest.sed`
1311 lispdir
='${datadir}/emacs/${version}/lisp'
1312 locallisppath
='${datadir}/emacs/${version}/site-lisp:'\
1313 '${datadir}/emacs/site-lisp:${datadir}/emacs/${version}/leim'
1314 lisppath
='${locallisppath}:${lispdir}'
1315 etcdir
='${datadir}/emacs/${version}/etc'
1316 archlibdir
='${libexecdir}/emacs/${version}/${configuration}'
1317 docdir
='${datadir}/emacs/${version}/etc'
1318 gamedir
='${localstatedir}/games/emacs'
1323 # Check whether --with-gcc or --without-gcc was given.
1324 if test "${with_gcc+set}" = set; then
1329 # Check whether --with-pop or --without-pop was given.
1330 if test "${with_pop+set}" = set; then
1332 if test "$withval" = yes; then
1333 cat >>confdefs.h
<<\_ACEOF
1334 #define MAIL_USE_POP 1
1340 cat >>confdefs.h
<<\_ACEOF
1341 #define MAIL_USE_POP 1
1347 # Check whether --with-kerberos or --without-kerberos was given.
1348 if test "${with_kerberos+set}" = set; then
1349 withval
="$with_kerberos"
1350 cat >>confdefs.h
<<\_ACEOF
1357 # Check whether --with-kerberos5 or --without-kerberos5 was given.
1358 if test "${with_kerberos5+set}" = set; then
1359 withval
="$with_kerberos5"
1360 if test "${with_kerberos5+set}" = set; then
1361 if test "${with_kerberos+set}" != set; then
1363 cat >>confdefs.h
<<\_ACEOF
1370 cat >>confdefs.h
<<\_ACEOF
1376 # Check whether --with-hesiod or --without-hesiod was given.
1377 if test "${with_hesiod+set}" = set; then
1378 withval
="$with_hesiod"
1380 cat >>confdefs.h
<<\_ACEOF
1387 # Check whether --with-sound or --without-sound was given.
1388 if test "${with_sound+set}" = set; then
1389 withval
="$with_sound"
1394 # Check whether --with-x-toolkit or --without-x-toolkit was given.
1395 if test "${with_x_toolkit+set}" = set; then
1396 withval
="$with_x_toolkit"
1397 case "${withval}" in
1398 y | ye |
yes ) val
=athena
;;
1400 l | lu | luc | luci | lucid
) val
=lucid
;;
1401 a |
at | ath | athe | athen | athena
) val
=athena
;;
1402 m | mo | mot | moti | motif
) val
=motif
;;
1404 { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid\;
1405 this option's value should be \`yes', \`no', \`lucid', \`athena', or \`motif'.
1406 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&5
1407 echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid\;
1408 this option's value should be \`yes', \`no', \`lucid', \`athena', or \`motif'.
1409 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&2;}
1410 { (exit 1); exit 1; }; }
1417 # Check whether --with-xpm or --without-xpm was given.
1418 if test "${with_xpm+set}" = set; then
1423 # Check whether --with-jpeg or --without-jpeg was given.
1424 if test "${with_jpeg+set}" = set; then
1425 withval
="$with_jpeg"
1429 # Check whether --with-tiff or --without-tiff was given.
1430 if test "${with_tiff+set}" = set; then
1431 withval
="$with_tiff"
1435 # Check whether --with-gif or --without-gif was given.
1436 if test "${with_gif+set}" = set; then
1441 # Check whether --with-png or --without-png was given.
1442 if test "${with_png+set}" = set; then
1447 # Check whether --with-toolkit-scroll-bars or --without-toolkit-scroll-bars was given.
1448 if test "${with_toolkit_scroll_bars+set}" = set; then
1449 withval
="$with_toolkit_scroll_bars"
1453 # Check whether --with-xim or --without-xim was given.
1454 if test "${with_xim+set}" = set; then
1459 # Check whether --with-carbon or --without-carbon was given.
1460 if test "${with_carbon+set}" = set; then
1461 withval
="$with_carbon"
1465 #### Make srcdir absolute, if it isn't already. It's important to
1466 #### avoid running the path through pwd unnecessarily, since pwd can
1467 #### give you automounter prefixes, which can go away. We do all this
1468 #### so Emacs can find its files when run uninstalled.
1469 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
1474 ## We may be able to use the $PWD environment variable to make this
1475 ## absolute. But sometimes PWD is inaccurate.
1476 ## Note: we used to use ${PWD} at the end instead of `pwd`,
1477 ## but that tested only for a well-formed and valid PWD,
1478 ## it did not object when PWD was well-formed and valid but just wrong.
1479 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
1483 srcdir
="`(cd ${srcdir}; pwd)`"
1486 * ) srcdir
="`(cd ${srcdir}; pwd)`" ;;
1489 #### Check if the source directory already has a configured system in it.
1490 if test `pwd` != `(cd ${srcdir} && pwd)` \
1491 && test -f "${srcdir}/src/config.h" ; then
1492 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
1493 as a build directory right now; it has been configured in its own
1494 right. To configure in another directory as well, you MUST
1495 use GNU make. If you do not have GNU make, then you must
1496 now do \`make distclean' in ${srcdir},
1497 and then run $0 again." >&5
1498 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
1499 as a build directory right now; it has been configured in its own
1500 right. To configure in another directory as well, you MUST
1501 use GNU make. If you do not have GNU make, then you must
1502 now do \`make distclean' in ${srcdir},
1503 and then run $0 again." >&2;}
1505 extrasub
='/^VPATH[ ]*=/c\
1506 vpath %.c $(srcdir)\
1507 vpath %.h $(srcdir)\
1508 vpath %.y $(srcdir)\
1509 vpath %.l $(srcdir)\
1510 vpath %.s $(srcdir)\
1511 vpath %.in $(srcdir)\
1512 vpath %.texi $(srcdir)'
1515 #### Given the configuration name, set machfile and opsysfile to the
1516 #### names of the m/*.h and s/*.h files we should use.
1518 ### Canonicalize the configuration name.
1521 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
1522 if test -f $ac_dir/install-sh
; then
1524 ac_install_sh
="$ac_aux_dir/install-sh -c"
1526 elif test -f $ac_dir/install.sh
; then
1528 ac_install_sh
="$ac_aux_dir/install.sh -c"
1530 elif test -f $ac_dir/shtool
; then
1532 ac_install_sh
="$ac_aux_dir/shtool install -c"
1536 if test -z "$ac_aux_dir"; then
1537 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1538 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1539 { (exit 1); exit 1; }; }
1541 ac_config_guess
="$SHELL $ac_aux_dir/config.guess"
1542 ac_config_sub
="$SHELL $ac_aux_dir/config.sub"
1543 ac_configure
="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1545 # Make sure we can run config.sub.
1546 $ac_config_sub sun4
>/dev
/null
2>&1 ||
1547 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1548 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1549 { (exit 1); exit 1; }; }
1551 echo "$as_me:$LINENO: checking build system type" >&5
1552 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1553 if test "${ac_cv_build+set}" = set; then
1554 echo $ECHO_N "(cached) $ECHO_C" >&6
1556 ac_cv_build_alias
=$build_alias
1557 test -z "$ac_cv_build_alias" &&
1558 ac_cv_build_alias
=`$ac_config_guess`
1559 test -z "$ac_cv_build_alias" &&
1560 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1561 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1562 { (exit 1); exit 1; }; }
1563 ac_cv_build
=`$ac_config_sub $ac_cv_build_alias` ||
1564 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1565 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1566 { (exit 1); exit 1; }; }
1569 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1570 echo "${ECHO_T}$ac_cv_build" >&6
1572 build_cpu
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1573 build_vendor
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1574 build_os
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1577 echo "$as_me:$LINENO: checking host system type" >&5
1578 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1579 if test "${ac_cv_host+set}" = set; then
1580 echo $ECHO_N "(cached) $ECHO_C" >&6
1582 ac_cv_host_alias
=$host_alias
1583 test -z "$ac_cv_host_alias" &&
1584 ac_cv_host_alias
=$ac_cv_build_alias
1585 ac_cv_host
=`$ac_config_sub $ac_cv_host_alias` ||
1586 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1587 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1588 { (exit 1); exit 1; }; }
1591 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1592 echo "${ECHO_T}$ac_cv_host" >&6
1594 host_cpu
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1595 host_vendor
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1596 host_os
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1600 configuration
=${host_alias-$host}
1604 ### If you add support for a new configuration, add code to this
1605 ### switch statement to recognize your configuration name and select
1606 ### the appropriate operating system and machine description files.
1608 ### You would hope that you could choose an m/*.h file pretty much
1609 ### based on the machine portion of the configuration name, and an s-
1610 ### file based on the operating system portion. However, it turns out
1611 ### that each m/*.h file is pretty manufacturer-specific - for
1612 ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are
1613 ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS
1614 ### machines. So we basically have to have a special case for each
1615 ### configuration name.
1617 ### As far as handling version numbers on operating systems is
1618 ### concerned, make sure things will fail in a fixable way. If
1619 ### /etc/MACHINES doesn't say anything about version numbers, be
1620 ### prepared to handle anything reasonably. If version numbers
1621 ### matter, be sure /etc/MACHINES says something about it.
1623 ### Eric Raymond says we should accept strings like "sysvr4" to mean
1624 ### "System V Release 4"; he writes, "The old convention encouraged
1625 ### confusion between `system' and `release' levels'."
1627 machine
='' opsys
='' unported
=no
1628 case "${canonical}" in
1633 case "${canonical}" in
1634 alpha
*-*-freebsd*) machine
=alpha
;;
1635 i
[3456]86-*-freebsd*) machine
=intel386
;;
1642 case "${canonical}" in
1643 alpha
*-*-netbsd*) machine
=alpha
;;
1644 i
[3456]86-*-netbsd*) machine
=intel386
;;
1646 # This is somewhat bogus.
1647 machine
=hp9000s300
;;
1648 powerpc-apple-netbsd
*) machine
=macppc
;;
1649 mips-
*-netbsd*) machine
=pmax
;;
1650 mipsel-
*-netbsd*) machine
=pmax
;;
1651 mipseb-
*-netbsd*) machine
=pmax
;;
1652 ns32k-
*-netbsd*) machine
=ns32000
;;
1653 powerpc-
*-netbsd*) machine
=macppc
;;
1654 sparc
*-*-netbsd*) machine
=sparc
;;
1655 vax-
*-netbsd*) machine
=vax
;;
1656 arm-
*-netbsd*) machine
=arm
;;
1663 case "${canonical}" in
1664 alpha
*-*-openbsd*) machine
=alpha
;;
1665 i386-
*-openbsd*) machine
=intel386
;;
1666 m68k-
*-openbsd*) machine
=hp9000s300
;;
1667 mipsel-
*-openbsd*) machine
=pmax
;;
1668 ns32k-
*-openbsd*) machine
=ns32000
;;
1669 sparc-
*-openbsd*) machine
=sparc
;;
1670 vax-
*-openbsd*) machine
=vax
;;
1675 arm-acorn-riscix1.1
* )
1676 machine
=acorn opsys
=riscix1-1
1678 arm-acorn-riscix1.2
* | arm-acorn-riscix
)
1679 ## This name is riscix12 instead of riscix1.2
1680 ## to avoid a file name conflict on MSDOS.
1681 machine
=acorn opsys
=riscix12
1687 case "${canonical}" in
1688 i
[345]86-*-bsdi*) machine
=intel386
;;
1689 sparc-
*-bsdi*) machine
=sparc
;;
1690 powerpc-
*-bsdi*) machine
=macppc
;;
1692 case "${canonical}" in
1693 *-*-bsd386* |
*-*-bsdi1* ) opsys
=bsd386
;;
1694 *-*-bsdi2.0
* ) opsys
=bsdos2
;;
1695 *-*-bsdi2* ) opsys
=bsdos2-1
;;
1696 *-*-bsdi3* ) opsys
=bsdos3
;;
1697 *-*-bsdi[45]* ) opsys
=bsdos4
;;
1702 ## Strictly speaking, we need the version of the alliant operating
1703 ## system to choose the right machine file, but currently the
1704 ## configuration name doesn't tell us enough to choose the right
1705 ## one; we need to give alliants their own operating system name to
1706 ## do this right. When someone cares, they can help us.
1708 machine
=alliant4 opsys
=bsd4-2
1711 machine
=alliant-2800 opsys
=bsd4-3
1714 ## Alpha (DEC) machines.
1716 machine
=alpha opsys
=osf1
1717 # This is needed to find X11R6.1 libraries for certain tests.
1718 NON_GCC_LINK_TEST_OPTIONS
=-Wl,-rpath,/usr
/X11R
6/lib
1719 GCC_LINK_TEST_OPTIONS
=-Wl,-rpath,/usr
/X11R
6/lib
1720 # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile
1721 # due to non-traditional preprocessing with the current compiler
1722 # defaults. OSF 4 can also have that compiler version, and there
1723 # seems always to have been a usable /usr/bin/cpp.
1724 NON_GNU_CPP
=/usr
/bin
/cpp
1725 case "${canonical}" in
1726 alpha
*-dec-osf[5-9]*)
1731 alpha
*-*-linux-gnu* )
1732 machine
=alpha opsys
=gnu-linux
1736 machine
=arm opsys
=gnu-linux
1741 machine
=macppc opsys
=gnu-linux
1746 machine
=altos opsys
=usg5-2
1751 machine
=amdahl opsys
=usg5-2-2
1754 ## Apollo, Domain/OS
1756 machine
=apollo opsys
=bsd4-3
1759 ## AT&T 3b2, 3b5, 3b15, 3b20
1761 machine
=att3b opsys
=usg5-2-2
1764 ## AT&T 3b1 - The Mighty Unix PC!
1766 machine
=7300 opsys
=usg5-2-2
1771 machine
=ibmrs6000 opsys
=aix3-2
1776 machine
=dpx2 opsys
=usg5-3
1781 machine
=sps7 opsys
=usg5-2
1784 ## CCI 5/32, 6/32 -- see "Tahoe".
1787 ## I don't know what configuration name to use for this; config.sub
1788 ## doesn't seem to know anything about it. Hey, Celerity users, get
1789 ## in touch with us!
1790 celerity-celerity-bsd
* )
1791 machine
=celerity opsys
=bsd4-2
1795 ## What operating systems does this chip run that Emacs has been
1799 ## We'll use the catch-all code at the bottom to guess the
1800 ## operating system.
1804 mips-compaq-nonstopux
* )
1805 machine
=nonstopux opsys
=nonstopux
1809 *-convex-bsd* |
*-convex-convexos* )
1810 machine
=convex opsys
=bsd4-3
1811 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
1812 NON_GNU_CPP
="cc -E -P"
1816 i
[3456]86-cubix-sysv* )
1817 machine
=intel386 opsys
=usg5-3
1821 cydra
*-cydrome-sysv* )
1822 machine
=cydra5 opsys
=usg5-3
1825 ## Data General AViiON Machines
1826 ## DG changed naming conventions with the release of 5.4.4.10, they
1827 ## dropped the initial 5.4 but left the intervening R. Because of the
1828 ## R this shouldn't conflict with older versions of the OS (which I
1829 ## think were named like dgux4.*). In addition, DG new AViiONs series
1830 ## uses either Motorola M88k or Intel Pentium CPUs.
1831 m88k-dg-dguxR4.
* | m88k-dg-dgux4
* )
1832 machine
=aviion opsys
=dgux4
1834 m88k-dg-dgux5.4R3
* | m88k-dg-dgux5.4
.3* )
1835 ## This name is dgux5-4-3 instead of dgux5-4r3
1836 ## to avoid a file name conflict on MSDOS.
1837 machine
=aviion opsys
=dgux5-4-3
1839 m88k-dg-dgux5.4R2
* | m88k-dg-dgux5.4
.2* )
1840 machine
=aviion opsys
=dgux5-4r2
1843 machine
=aviion opsys
=dgux
1846 ## Data General AViiON Intel (x86) Machines
1847 ## Exists from 5.4.3 (current i586-dg-dguxR4.11)
1848 ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il
1849 i
[345]86-dg-dguxR4* )
1850 machine
=aviion-intel opsys
=dgux4
1854 mips-dec-ultrix
[0-3].
* | mips-dec-ultrix4.0
* | mips-dec-bsd4.2
* )
1855 machine
=pmax opsys
=bsd4-2
1857 mips-dec-ultrix4.
[12]* | mips-dec-bsd
* )
1858 machine
=pmax opsys
=bsd4-3
1861 machine
=pmax opsys
=ultrix4-3
1864 machine
=pmax opsys
=osf1
1866 mips-dec-mach_bsd4.3
* )
1867 machine
=pmax opsys
=mach-bsd4-3
1870 ## Motorola Delta machines
1871 m68k-motorola-sysv
* | m68000-motorola-sysv
* )
1872 machine
=delta opsys
=usg5-3
1873 if test -z "`type gnucc | grep 'not found'`"
1875 if test -s /etc
/167config
1876 then CC
="gnucc -m68040"
1877 else CC
="gnucc -m68881"
1880 if test -z "`type gcc | grep 'not found'`"
1886 m88k-motorola-sysv4
* )
1887 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
1888 # needs POSIX_SIGNALS and therefore needs usg5-4-2.
1889 # I hope there are not other 4.0 versions for this machine
1890 # which really need usg5-4 instead.
1891 machine
=delta88k opsys
=usg5-4-2
1893 m88k-motorola-sysv
* | m88k-motorola-m88kbcs
* )
1894 machine
=delta88k opsys
=usg5-3
1899 machine
=dual opsys
=usg5-2
1901 m68
*-dual-uniplus* )
1902 machine
=dual opsys
=unipl5-2
1907 machine
=elxsi opsys
=usg5-2
1912 machine
=ns16000 opsys
=umax
1915 ## The GEC 63 - apparently, this port isn't really finished yet.
1916 # I'm sure we finished off the last of the machines, though. -- fx
1918 ## Gould Power Node and NP1
1920 machine
=gould opsys
=bsd4-2
1923 machine
=gould opsys
=bsd4-3
1926 machine
=gould-np1 opsys
=bsd4-3
1929 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
1930 ## as far as Emacs is concerned).
1932 # Build needs to be different on 7.0 and later releases
1933 case "`uname -r`" in
1934 [56].
[0-9] ) machine
=nh4000 opsys
=cxux
;;
1935 [7].
[0-9] ) machine
=nh4000 opsys
=cxux7
;;
1937 NON_GNU_CPP
="/lib/cpp"
1939 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
1941 machine
=nh3000 opsys
=cxux
1943 ## Harris power pc NightHawk running Power UNIX (Series 6000)
1944 powerpc-harris-powerunix
)
1945 machine
=nh6000 opsys
=powerunix
1946 NON_GNU_CPP
="cc -Xo -E -P"
1948 ## SR2001/SR2201 running HI-UX/MPP
1949 hppa1.1
-hitachi-hiuxmpp* )
1950 machine
=sr2k opsys
=hiuxmpp
1952 hppa1.1
-hitachi-hiuxwe2* )
1953 machine
=sr2k opsys
=hiuxwe2
1956 xps
*-honeywell-sysv* )
1957 machine
=xps100 opsys
=usg5-2
1960 ## HP 9000 series 200 or 300
1962 machine
=hp9000s300 opsys
=bsd4-3
1964 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
1966 case "`uname -r`" in
1967 ## Someone's system reports A.B8.05 for this.
1968 ## I wonder what other possibilities there are.
1969 *.B8.
* ) machine
=hp9000s300 opsys
=hpux8
;;
1970 *.08.
* ) machine
=hp9000s300 opsys
=hpux8
;;
1971 *.09.
* ) machine
=hp9000s300 opsys
=hpux9
;;
1972 *.1[0-9].
* ) machine
=hp9000s300 opsys
=hpux9shr
;;
1973 *) machine
=hp9000s300 opsys
=hpux
;;
1977 ## HP 9000 series 700 and 800, running HP/UX
1979 machine
=hp800 opsys
=hpux
1982 machine
=hp800 opsys
=hpux8
1984 hppa
*-hp-hpux9shr* )
1985 machine
=hp800 opsys
=hpux9shr
1988 machine
=hp800 opsys
=hpux9
1991 machine
=hp800 opsys
=hpux10
1993 hppa
*-hp-hpux1[1-9]* )
1994 machine
=hp800 opsys
=hpux11
1997 hppa
*-*-linux-gnu* )
1998 machine
=hp800 opsys
=gnu-linux
2001 ## HP 9000 series 700 and 800, running HP/UX
2003 ## Cross-compilation? Nah!
2004 case "`uname -r`" in
2005 ## Someone's system reports A.B8.05 for this.
2006 ## I wonder what other possibilities there are.
2007 *.B8.
* ) machine
=hp800 opsys
=hpux8
;;
2008 *.08.
* ) machine
=hp800 opsys
=hpux8
;;
2009 *.09.
* ) machine
=hp800 opsys
=hpux9
;;
2010 *) machine
=hp800 opsys
=hpux10
;;
2014 machine
=hp800 opsys
=nextstep
2019 machine
=orion opsys
=bsd4-2
2021 clipper-orion-bsd
* )
2022 machine
=orion105 opsys
=bsd4-2
2026 i
[3456]86-ibm-aix1.1
* )
2027 machine
=ibmps2-aix opsys
=usg5-2-2
2029 i
[3456]86-ibm-aix1.
[23]* | i
[3456]86-ibm-aix* )
2030 machine
=ibmps2-aix opsys
=usg5-3
2033 machine
=ibm370aix opsys
=usg5-3
2036 machine
=ibms390 opsys
=gnu-linux
2038 rs6000-ibm-aix3.1
* | powerpc-ibm-aix3.1
* )
2039 machine
=ibmrs6000 opsys
=aix3-1
2041 rs6000-ibm-aix3.2
.5 | powerpc-ibm-aix3.2
.5 )
2042 machine
=ibmrs6000 opsys
=aix3-2-5
2044 rs6000-ibm-aix4.1
* | powerpc-ibm-aix4.1
* )
2045 machine
=ibmrs6000 opsys
=aix4-1
2047 rs6000-ibm-aix4.2
* | powerpc-ibm-aix4.2
* )
2048 machine
=ibmrs6000 opsys
=aix4-2
2050 rs6000-ibm-aix5.1
* | powerpc-ibm-aix5.1
* )
2051 machine
=ibmrs6000 opsys
=aix4-2
2053 rs6000-ibm-aix4.0
* | powerpc-ibm-aix4.0
* )
2054 machine
=ibmrs6000 opsys
=aix4
2056 rs6000-ibm-aix4
* | powerpc-ibm-aix4
* )
2057 machine
=ibmrs6000 opsys
=aix4-1
2059 rs6000-ibm-aix
* | powerpc-ibm-aix
* )
2060 machine
=ibmrs6000 opsys
=aix3-2
2063 machine
=ibmrt opsys
=bsd4-3
2066 machine
=ibmrt opsys
=bsd4-2
2069 machine
=ibmrt opsys
=bsd4-3
2072 machine
=ibmrt opsys
=bsd4-2
2075 machine
=ibmrt opsys
=bsd4-3
2078 machine
=ibmrt opsys
=bsd4-3
2081 machine
=ibmrt-aix opsys
=usg5-2-2
2084 ## Integrated Solutions `Optimum V'
2086 machine
=isi-ov opsys
=bsd4-2
2089 machine
=isi-ov opsys
=bsd4-3
2092 ## Intel 386 machines where we do care about the manufacturer
2093 i
[3456]86-intsys-sysv* )
2094 machine
=is386 opsys
=usg5-2-2
2098 i
[3456]86-prime-sysv* )
2099 machine
=i386 opsys
=usg5-3
2102 ## Sequent Symmetry running Dynix
2103 i
[3456]86-sequent-bsd* )
2104 machine
=symmetry opsys
=bsd4-3
2107 ## Sequent Symmetry running ptx 4, which is a modified SVR4.
2108 i
[3456]86-sequent-ptx4* | i
[3456]86-sequent-sysv4* )
2109 machine
=sequent-ptx opsys
=ptx4
2110 NON_GNU_CPP
=/lib
/cpp
2113 ## Sequent Symmetry running DYNIX/ptx
2114 ## Use the old cpp rather than the newer ANSI one.
2115 i
[3456]86-sequent-ptx* )
2116 machine
=sequent-ptx opsys
=ptx
2117 NON_GNU_CPP
="/lib/cpp"
2120 ## ncr machine running svr4.3.
2121 i
[3456]86-ncr-sysv4.3
)
2122 machine
=ncr386 opsys
=usg5-4-3
2125 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2126 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2127 i
[3456]86-ncr-sysv* )
2128 machine
=ncr386 opsys
=usg5-4-2
2131 ## Intel Paragon OSF/1
2133 machine
=paragon opsys
=osf1 NON_GNU_CPP
=/usr
/mach
/lib
/cpp
2138 machine
=i860 opsys
=usg5-4
2139 NON_GNU_CC
="/bin/cc" # Ie, not the one in /usr/ucb/cc.
2140 NON_GNU_CPP
="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
2143 ## Macintosh PowerPC
2144 powerpc
*-*-linux-gnu* )
2145 machine
=macppc opsys
=gnu-linux
2148 ## Masscomp machines
2149 m68
*-masscomp-rtu* )
2150 machine
=masscomp opsys
=rtu
2153 ## Megatest machines
2154 m68
*-megatest-bsd* )
2155 machine
=mega68 opsys
=bsd4-2
2158 ## Workstations sold by MIPS
2159 ## This is not necessarily all workstations using the MIPS processor -
2160 ## Irises are produced by SGI, and DECstations by DEC.
2162 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
2163 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
2164 ## it gives for choosing between the alternatives seems to be "Use
2165 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
2166 ## the BSD world." I'll assume that these are instructions for
2167 ## handling two odd situations, and that every other situation
2168 ## should use mips.h and usg5-2-2, they being listed first.
2171 ## Fall through to the general code at the bottom to decide on the OS.
2173 mips-mips-riscos4
* )
2174 machine
=mips4 opsys
=bsd4-3
2175 NON_GNU_CC
="cc -systype bsd43"
2176 NON_GNU_CPP
="cc -systype bsd43 -E"
2178 mips-mips-riscos5
* )
2179 machine
=mips4 opsys
=riscos5
2180 NON_GNU_CC
="cc -systype bsd43"
2181 NON_GNU_CPP
="cc -systype bsd43 -E"
2184 machine
=mips opsys
=bsd4-3
2187 machine
=mips opsys
=usg5-2-2
2191 m68
*-next-* | m68k-
*-nextstep* )
2192 machine
=m68k opsys
=nextstep
2195 ## The complete machine from National Semiconductor
2197 machine
=ns32000 opsys
=usg5-2
2201 m68
*-ncr-sysv2* | m68
*-ncr-sysvr2* )
2202 machine
=tower32 opsys
=usg5-2-2
2204 m68
*-ncr-sysv3* | m68
*-ncr-sysvr3* )
2205 machine
=tower32v3 opsys
=usg5-3
2210 machine
=ews4800 opsys
=ux4800
2213 ## Nixdorf Targon 31
2214 m68
*-nixdorf-sysv* )
2215 machine
=targon31 opsys
=usg5-2-2
2220 machine
=nu opsys
=usg5-2
2225 machine
=plexus opsys
=usg5-2
2229 ## I don't really have any idea what sort of processor the Pyramid has,
2230 ## so I'm assuming it is its own architecture.
2231 pyramid-pyramid-bsd
* )
2232 machine
=pyramid opsys
=bsd4-2
2236 ns32k-sequent-bsd4.2
* )
2237 machine
=sequent opsys
=bsd4-2
2239 ns32k-sequent-bsd4.3
* )
2240 machine
=sequent opsys
=bsd4-3
2244 mips-siemens-sysv
* | mips-sni-sysv
*)
2245 machine
=mips-siemens opsys
=usg5-4
2246 NON_GNU_CC
=/usr
/ccs
/bin
/cc
2247 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2250 ## Silicon Graphics machines
2251 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
2253 machine
=irist opsys
=iris3-5
2255 m68
*-sgi-iris3.6
* | m68
*-sgi-iris*)
2256 machine
=irist opsys
=iris3-6
2260 machine
=iris4d opsys
=irix3-3
2263 machine
=iris4d opsys
=irix4-0
2266 machine
=iris4d opsys
=irix6-5
2267 # Without defining _LANGUAGE_C, things get masked out in the headers
2268 # so that, for instance, grepping for `free' in stdlib.h fails and
2269 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2270 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2271 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
2274 machine
=iris4d opsys
=irix6-0
2275 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
2276 # but presumably it does no harm.
2277 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2278 # -32 probably isn't necessary in later v.6s -- anyone know which?
2279 NON_GCC_TEST_OPTIONS
=-32
2281 mips-sgi-irix5.
[01]* )
2282 machine
=iris4d opsys
=irix5-0
2284 mips-sgi-irix5
* | mips-sgi-irix
* )
2285 machine
=iris4d opsys
=irix5-2
2290 machine
=news opsys
=bsd4-2
2293 machine
=news opsys
=bsd4-3
2295 m68
*-sony-newsos3* | m68
*-sony-news3*)
2296 machine
=news opsys
=bsd4-3
2298 mips-sony-bsd
* | mips-sony-newsos4
* | mips-sony-news4
*)
2299 machine
=news-risc opsys
=bsd4-3
2301 mips-sony-newsos6
* )
2302 machine
=news-r6 opsys
=newsos6
2305 machine
=news-risc opsys
=newsos5
2310 machine
=stride opsys
=usg5-2
2314 sparc-
*-linux-gnu* | sparc64-
*-linux-gnu* )
2315 machine
=sparc opsys
=gnu-linux
2318 *-auspex-sunos* |
*-sun-sunos* |
*-sun-bsd* |
*-sun-solaris* \
2319 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* | powerpc
*-*-solaris2* \
2320 | rs6000-
*-solaris2*)
2321 case "${canonical}" in
2322 m68
*-sunos1* ) machine
=sun1
;;
2323 m68
*-sunos2* ) machine
=sun2
;;
2324 m68
* ) machine
=sun3
;;
2325 i
[3456]86-sun-sunos[34]* ) machine
=sun386
;;
2326 i
[3456]86-*-* ) machine
=intel386
;;
2327 powerpcle
* ) machine
=powerpcle
;;
2328 powerpc
* | rs6000
* ) machine
=ibmrs6000
;;
2329 sparc
* ) machine
=sparc
;;
2332 case "${canonical}" in
2333 ## The Sun386 didn't get past 4.0.
2334 i
[3456]86-*-sunos4 ) opsys
=sunos4-0
;;
2335 *-sunos4.0
* ) opsys
=sunos4-0
;;
2336 *-sunos4.1.
[3-9]*noshare
)
2337 ## This name is sunos413 instead of sunos4-1-3
2338 ## to avoid a file name conflict on MSDOS.
2340 NON_GNU_CPP
=/usr
/lib
/cpp
2341 NON_GCC_TEST_OPTIONS
=-Bstatic
2342 GCC_TEST_OPTIONS
=-static
2344 *-sunos4.1.
[3-9]* |
*-sunos4shr*)
2346 NON_GNU_CPP
=/usr
/lib
/cpp
2348 *-sunos4* |
*-sunos )
2350 NON_GCC_TEST_OPTIONS
=-Bstatic
2351 GCC_TEST_OPTIONS
=-static
2353 *-sunos5.3
* |
*-solaris2.3
* )
2355 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2357 *-sunos5.4
* |
*-solaris2.4
* )
2359 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2362 *-sunos5.5
* |
*-solaris2.5
* )
2364 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2367 *-sunos5.6
* |
*-solaris2.6
* )
2369 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2372 *-sunos5.8
* |
*-solaris2.8
* )
2374 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2377 *-sunos5* |
*-solaris* )
2379 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2383 ## Watch out for a compiler that we know will not work.
2384 case "${canonical}" in
2385 *-solaris* |
*-sunos5* )
2386 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
2387 ## /usr/ucb/cc doesn't work;
2388 ## we should find some other compiler that does work.
2396 machine
=sparc opsys
=nextstep
2400 m68
*-tadpole-sysv* )
2401 machine
=tad68k opsys
=usg5-3
2405 tahoe-tahoe-bsd4.2
* )
2406 machine
=tahoe opsys
=bsd4-2
2408 tahoe-tahoe-bsd4.3
* )
2409 machine
=tahoe opsys
=bsd4-3
2412 ## Tandem Integrity S2
2414 machine
=tandem-s2 opsys
=usg5-3
2418 m88k-tektronix-sysv3
* )
2419 machine
=tekxd88 opsys
=usg5-3
2422 ## Tektronix 16000 box (6130?)
2423 ns16k-tektronix-bsd
* )
2424 machine
=ns16000 opsys
=bsd4-2
2427 ## src/m/tek4300.h hints that this is a m68k machine.
2428 m68
*-tektronix-bsd* )
2429 machine
=tek4300 opsys
=bsd4-3
2433 ## We seem to have lost the machine-description file titan.h!
2435 machine
=titan opsys
=usg5-3
2438 ## Ustation E30 (SS5E)
2439 m68
*-unisys-uniplus* )
2440 machine
=ustation opsystem
=unipl5-2
2446 case "${canonical}" in
2447 *-bsd4.1
* ) opsys
=bsd4-1
;;
2448 *-bsd4.2
* |
*-ultrix[0-3].
* |
*-ultrix4.0
* ) opsys
=bsd4-2
;;
2449 *-bsd4.3
* |
*-ultrix* ) opsys
=bsd4-3
;;
2450 *-sysv[01]* |
*-sysvr[01]* ) opsys
=usg5-0
;;
2451 *-sysv2* |
*-sysvr2* ) opsys
=usg5-2
;;
2452 *-vms* ) opsys
=vms
;;
2458 ns16k-whitechapel-
* )
2460 ## We don't know what sort of OS runs on these; we'll let the
2461 ## operating system guessing code below try.
2466 machine
=wicat opsys
=usg5-2
2471 machine
=ia64 opsys
=gnu-linux
2474 ## Intel 386 machines where we don't care about the manufacturer
2477 case "${canonical}" in
2478 *-lynxos* ) opsys
=lynxos
;;
2479 *-isc1.
* |
*-isc2.
[01]* ) opsys
=386-ix ;;
2480 *-isc2.2
* ) opsys
=isc2-2
;;
2481 *-isc4.0
* ) opsys
=isc4-0
;;
2482 *-isc4.
* ) opsys
=isc4-1
2483 GCC_TEST_OPTIONS
=-posix
2484 NON_GCC_TEST_OPTIONS
=-Xp
2486 *-isc* ) opsys
=isc3-0
;;
2487 *-esix5* ) opsys
=esix5r4
; NON_GNU_CPP
=/usr
/lib
/cpp
;;
2488 *-esix* ) opsys
=esix
;;
2489 *-xenix* ) opsys
=xenix
;;
2490 *-linux-gnu* ) opsys
=gnu-linux
;;
2491 *-sco3.2v4
* ) opsys
=sco4
; NON_GNU_CPP
=/lib
/cpp
;;
2492 *-sco3.2v5
* ) opsys
=sco5
2493 NON_GNU_CPP
=/lib
/cpp
2494 # Prevent -belf from being passed to $CPP.
2495 # /lib/cpp does not accept it.
2496 OVERRIDE_CPPFLAGS
=" "
2498 *-sysv4.2uw
* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2499 *-386bsd* ) opsys
=386bsd
;;
2500 *-nextstep* ) opsys
=nextstep
;;
2501 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2505 ## m68k Linux-based GNU system
2507 machine
=m68k opsys
=gnu-linux
2510 ## Mips Linux-based GNU system
2511 mips-
*-linux-gnu* | mipsel-
*-linux-gnu* )
2512 machine
=mips opsys
=gnu-linux
2516 sparc-fujitsu-sysv4
* )
2517 machine
=sparc opsys
=uxpds
2518 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2523 f301-fujitsu-uxpv4.1
)
2524 machine
=f301 opsys
=uxpv
2527 ## Darwin / Mac OS X
2528 powerpc-apple-darwin
* )
2529 machine
=powermac opsys
=darwin
2530 # Define CPP as follows to make autoconf work correctly.
2531 CPP
="cc -E -traditional-cpp"
2534 ## AMD x86-64 Linux-based GNU system
2535 x86_64-
*-linux-gnu* )
2536 machine
=amdx86-64 opsys
=gnu-linux
2544 ### If the code above didn't choose an operating system, just choose
2545 ### an operating system based on the configuration name. You really
2546 ### only want to use this when you have no idea what the right
2547 ### operating system is; if you know what operating systems a machine
2548 ### runs, it's cleaner to make it explicit in the case statement
2550 if test x
"${opsys}" = x
; then
2551 case "${canonical}" in
2552 *-gnu* ) opsys
=gnu
;;
2553 *-bsd4.
[01] ) opsys
=bsd4-1
;;
2554 *-bsd4.2
) opsys
=bsd4-2
;;
2555 *-bsd4.3
) opsys
=bsd4-3
;;
2556 *-sysv0 |
*-sysvr0 ) opsys
=usg5-0
;;
2557 *-sysv2 |
*-sysvr2 ) opsys
=usg5-2
;;
2558 *-sysv2.2 |
*-sysvr2.2
) opsys
=usg5-2-2
;;
2559 *-sysv3* |
*-sysvr3* ) opsys
=usg5-3
;;
2560 *-sysv4.2uw
* ) opsys
=unixware
;;
2561 *-sysv4.1
* |
*-sysvr4.1
* )
2562 NON_GNU_CPP
=/usr
/lib
/cpp
2564 *-sysv4.
[2-9]* |
*-sysvr4.
[2-9]* )
2565 if [ x
$NON_GNU_CPP = x
]; then
2566 if [ -f /usr
/ccs
/lib
/cpp
]; then
2567 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2569 NON_GNU_CPP
=/lib
/cpp
2573 *-sysv4* |
*-sysvr4* ) opsys
=usg5-4
;;
2582 if test $unported = yes; then
2583 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
2584 Check \`etc/MACHINES' for recognized configuration names." >&5
2585 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2586 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2587 { (exit 1); exit 1; }; }
2590 machfile
="m/${machine}.h"
2591 opsysfile
="s/${opsys}.h"
2594 #### Choose a compiler.
2595 test -n "$CC" && cc_specified
=yes
2597 # Save the value of CFLAGS that the user specified.
2598 SPECIFIED_CFLAGS
="$CFLAGS"
2601 "yes" ) CC
="gcc" GCC
=yes ;;
2602 "no" ) : ${CC=cc} ;;
2606 ac_cpp
='$CPP $CPPFLAGS'
2607 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2608 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2609 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2610 if test -n "$ac_tool_prefix"; then
2611 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2612 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2613 echo "$as_me:$LINENO: checking for $ac_word" >&5
2614 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2615 if test "${ac_cv_prog_CC+set}" = set; then
2616 echo $ECHO_N "(cached) $ECHO_C" >&6
2618 if test -n "$CC"; then
2619 ac_cv_prog_CC
="$CC" # Let the user override the test.
2621 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2625 test -z "$as_dir" && as_dir
=.
2626 for ac_exec_ext
in '' $ac_executable_extensions; do
2627 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2628 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2629 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2638 if test -n "$CC"; then
2639 echo "$as_me:$LINENO: result: $CC" >&5
2640 echo "${ECHO_T}$CC" >&6
2642 echo "$as_me:$LINENO: result: no" >&5
2643 echo "${ECHO_T}no" >&6
2647 if test -z "$ac_cv_prog_CC"; then
2649 # Extract the first word of "gcc", so it can be a program name with args.
2650 set dummy gcc
; ac_word
=$2
2651 echo "$as_me:$LINENO: checking for $ac_word" >&5
2652 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2653 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2654 echo $ECHO_N "(cached) $ECHO_C" >&6
2656 if test -n "$ac_ct_CC"; then
2657 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2659 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2663 test -z "$as_dir" && as_dir
=.
2664 for ac_exec_ext
in '' $ac_executable_extensions; do
2665 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2666 ac_cv_prog_ac_ct_CC
="gcc"
2667 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2675 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2676 if test -n "$ac_ct_CC"; then
2677 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2678 echo "${ECHO_T}$ac_ct_CC" >&6
2680 echo "$as_me:$LINENO: result: no" >&5
2681 echo "${ECHO_T}no" >&6
2689 if test -z "$CC"; then
2690 if test -n "$ac_tool_prefix"; then
2691 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2692 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2693 echo "$as_me:$LINENO: checking for $ac_word" >&5
2694 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2695 if test "${ac_cv_prog_CC+set}" = set; then
2696 echo $ECHO_N "(cached) $ECHO_C" >&6
2698 if test -n "$CC"; then
2699 ac_cv_prog_CC
="$CC" # Let the user override the test.
2701 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2705 test -z "$as_dir" && as_dir
=.
2706 for ac_exec_ext
in '' $ac_executable_extensions; do
2707 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2708 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2709 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2718 if test -n "$CC"; then
2719 echo "$as_me:$LINENO: result: $CC" >&5
2720 echo "${ECHO_T}$CC" >&6
2722 echo "$as_me:$LINENO: result: no" >&5
2723 echo "${ECHO_T}no" >&6
2727 if test -z "$ac_cv_prog_CC"; then
2729 # Extract the first word of "cc", so it can be a program name with args.
2730 set dummy cc
; ac_word
=$2
2731 echo "$as_me:$LINENO: checking for $ac_word" >&5
2732 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2733 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2734 echo $ECHO_N "(cached) $ECHO_C" >&6
2736 if test -n "$ac_ct_CC"; then
2737 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2739 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2743 test -z "$as_dir" && as_dir
=.
2744 for ac_exec_ext
in '' $ac_executable_extensions; do
2745 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2746 ac_cv_prog_ac_ct_CC
="cc"
2747 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2755 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2756 if test -n "$ac_ct_CC"; then
2757 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2758 echo "${ECHO_T}$ac_ct_CC" >&6
2760 echo "$as_me:$LINENO: result: no" >&5
2761 echo "${ECHO_T}no" >&6
2770 if test -z "$CC"; then
2771 # Extract the first word of "cc", so it can be a program name with args.
2772 set dummy cc
; ac_word
=$2
2773 echo "$as_me:$LINENO: checking for $ac_word" >&5
2774 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2775 if test "${ac_cv_prog_CC+set}" = set; then
2776 echo $ECHO_N "(cached) $ECHO_C" >&6
2778 if test -n "$CC"; then
2779 ac_cv_prog_CC
="$CC" # Let the user override the test.
2782 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2786 test -z "$as_dir" && as_dir
=.
2787 for ac_exec_ext
in '' $ac_executable_extensions; do
2788 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2789 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2790 ac_prog_rejected
=yes
2794 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2800 if test $ac_prog_rejected = yes; then
2801 # We found a bogon in the path, so make sure we never use it.
2802 set dummy
$ac_cv_prog_CC
2804 if test $# != 0; then
2805 # We chose a different compiler from the bogus one.
2806 # However, it has the same basename, so the bogon will be chosen
2807 # first if we set CC to just the basename; use the full file name.
2809 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2815 if test -n "$CC"; then
2816 echo "$as_me:$LINENO: result: $CC" >&5
2817 echo "${ECHO_T}$CC" >&6
2819 echo "$as_me:$LINENO: result: no" >&5
2820 echo "${ECHO_T}no" >&6
2824 if test -z "$CC"; then
2825 if test -n "$ac_tool_prefix"; then
2828 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2829 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2830 echo "$as_me:$LINENO: checking for $ac_word" >&5
2831 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2832 if test "${ac_cv_prog_CC+set}" = set; then
2833 echo $ECHO_N "(cached) $ECHO_C" >&6
2835 if test -n "$CC"; then
2836 ac_cv_prog_CC
="$CC" # Let the user override the test.
2838 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2842 test -z "$as_dir" && as_dir
=.
2843 for ac_exec_ext
in '' $ac_executable_extensions; do
2844 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2845 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2846 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2855 if test -n "$CC"; then
2856 echo "$as_me:$LINENO: result: $CC" >&5
2857 echo "${ECHO_T}$CC" >&6
2859 echo "$as_me:$LINENO: result: no" >&5
2860 echo "${ECHO_T}no" >&6
2863 test -n "$CC" && break
2866 if test -z "$CC"; then
2870 # Extract the first word of "$ac_prog", so it can be a program name with args.
2871 set dummy
$ac_prog; ac_word
=$2
2872 echo "$as_me:$LINENO: checking for $ac_word" >&5
2873 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2874 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2875 echo $ECHO_N "(cached) $ECHO_C" >&6
2877 if test -n "$ac_ct_CC"; then
2878 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2880 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2884 test -z "$as_dir" && as_dir
=.
2885 for ac_exec_ext
in '' $ac_executable_extensions; do
2886 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2887 ac_cv_prog_ac_ct_CC
="$ac_prog"
2888 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2896 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2897 if test -n "$ac_ct_CC"; then
2898 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2899 echo "${ECHO_T}$ac_ct_CC" >&6
2901 echo "$as_me:$LINENO: result: no" >&5
2902 echo "${ECHO_T}no" >&6
2905 test -n "$ac_ct_CC" && break
2914 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2915 See \`config.log' for more details." >&5
2916 echo "$as_me: error: no acceptable C compiler found in \$PATH
2917 See \`config.log' for more details." >&2;}
2918 { (exit 1); exit 1; }; }
2920 # Provide some information about the compiler.
2921 echo "$as_me:$LINENO:" \
2922 "checking for C compiler version" >&5
2923 ac_compiler
=`set X $ac_compile; echo $2`
2924 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2925 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
2927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2928 (exit $ac_status); }
2929 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2930 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
2932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2933 (exit $ac_status); }
2934 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2935 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
2937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2938 (exit $ac_status); }
2940 cat >conftest.
$ac_ext <<_ACEOF
2941 #line $LINENO "configure"
2944 cat confdefs.h
>>conftest.
$ac_ext
2945 cat >>conftest.
$ac_ext <<_ACEOF
2946 /* end confdefs.h. */
2956 ac_clean_files_save
=$ac_clean_files
2957 ac_clean_files
="$ac_clean_files a.out a.exe b.out"
2958 # Try to create an executable without -o first, disregard a.out.
2959 # It will help us diagnose broken compilers, and finding out an intuition
2961 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2962 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2963 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2964 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2965 (eval $ac_link_default) 2>&5
2967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2968 (exit $ac_status); }; then
2969 # Find the output, starting from the most likely. This scheme is
2970 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2973 # Be careful to initialize this variable, since it used to be cached.
2974 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2976 # b.out is created by i960 compilers.
2977 for ac_file
in a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
2979 test -f "$ac_file" ||
continue
2981 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
)
2984 # This is the source file.
2987 # We found the default executable, but exeext='' is most
2991 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2992 # FIXME: I believe we export ac_cv_exeext for Libtool,
2993 # but it would be cool to find out if it's true. Does anybody
2994 # maintain Libtool? --akim.
3002 echo "$as_me: failed program was:" >&5
3003 sed 's/^/| /' conftest.
$ac_ext >&5
3005 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3006 See \`config.log' for more details." >&5
3007 echo "$as_me: error: C compiler cannot create executables
3008 See \`config.log' for more details." >&2;}
3009 { (exit 77); exit 77; }; }
3012 ac_exeext
=$ac_cv_exeext
3013 echo "$as_me:$LINENO: result: $ac_file" >&5
3014 echo "${ECHO_T}$ac_file" >&6
3016 # Check the compiler produces executables we can run. If not, either
3017 # the compiler is broken, or we cross compile.
3018 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3019 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
3020 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3021 # If not cross compiling, check that we can run a simple program.
3022 if test "$cross_compiling" != yes; then
3023 if { ac_try
='./$ac_file'
3024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3028 (exit $ac_status); }; }; then
3031 if test "$cross_compiling" = maybe
; then
3034 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3035 If you meant to cross compile, use \`--host'.
3036 See \`config.log' for more details." >&5
3037 echo "$as_me: error: cannot run C compiled programs.
3038 If you meant to cross compile, use \`--host'.
3039 See \`config.log' for more details." >&2;}
3040 { (exit 1); exit 1; }; }
3044 echo "$as_me:$LINENO: result: yes" >&5
3045 echo "${ECHO_T}yes" >&6
3047 rm -f a.out a.exe conftest
$ac_cv_exeext b.out
3048 ac_clean_files
=$ac_clean_files_save
3049 # Check the compiler produces executables we can run. If not, either
3050 # the compiler is broken, or we cross compile.
3051 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3052 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3053 echo "$as_me:$LINENO: result: $cross_compiling" >&5
3054 echo "${ECHO_T}$cross_compiling" >&6
3056 echo "$as_me:$LINENO: checking for suffix of executables" >&5
3057 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3058 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3059 (eval $ac_link) 2>&5
3061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3062 (exit $ac_status); }; then
3063 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3064 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3065 # work properly (i.e., refer to `conftest.exe'), while it won't with
3067 for ac_file
in conftest.exe conftest conftest.
*; do
3068 test -f "$ac_file" ||
continue
3070 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
3071 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3078 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3079 See \`config.log' for more details." >&5
3080 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3081 See \`config.log' for more details." >&2;}
3082 { (exit 1); exit 1; }; }
3085 rm -f conftest
$ac_cv_exeext
3086 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3087 echo "${ECHO_T}$ac_cv_exeext" >&6
3089 rm -f conftest.
$ac_ext
3090 EXEEXT
=$ac_cv_exeext
3092 echo "$as_me:$LINENO: checking for suffix of object files" >&5
3093 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
3094 if test "${ac_cv_objext+set}" = set; then
3095 echo $ECHO_N "(cached) $ECHO_C" >&6
3097 cat >conftest.
$ac_ext <<_ACEOF
3098 #line $LINENO "configure"
3101 cat confdefs.h
>>conftest.
$ac_ext
3102 cat >>conftest.
$ac_ext <<_ACEOF
3103 /* end confdefs.h. */
3113 rm -f conftest.o conftest.obj
3114 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3115 (eval $ac_compile) 2>&5
3117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3118 (exit $ac_status); }; then
3119 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3121 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg
) ;;
3122 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
3127 echo "$as_me: failed program was:" >&5
3128 sed 's/^/| /' conftest.
$ac_ext >&5
3130 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3131 See \`config.log' for more details." >&5
3132 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3133 See \`config.log' for more details." >&2;}
3134 { (exit 1); exit 1; }; }
3137 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
3139 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3140 echo "${ECHO_T}$ac_cv_objext" >&6
3141 OBJEXT
=$ac_cv_objext
3143 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3144 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3145 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3146 echo $ECHO_N "(cached) $ECHO_C" >&6
3148 cat >conftest.
$ac_ext <<_ACEOF
3149 #line $LINENO "configure"
3152 cat confdefs.h
>>conftest.
$ac_ext
3153 cat >>conftest.
$ac_ext <<_ACEOF
3154 /* end confdefs.h. */
3167 rm -f conftest.
$ac_objext
3168 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3169 (eval $ac_compile) 2>&5
3171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3172 (exit $ac_status); } &&
3173 { ac_try
='test -s conftest.$ac_objext'
3174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3178 (exit $ac_status); }; }; then
3181 echo "$as_me: failed program was:" >&5
3182 sed 's/^/| /' conftest.
$ac_ext >&5
3186 rm -f conftest.
$ac_objext conftest.
$ac_ext
3187 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
3190 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3191 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3192 GCC
=`test $ac_compiler_gnu = yes && echo yes`
3193 ac_test_CFLAGS
=${CFLAGS+set}
3194 ac_save_CFLAGS
=$CFLAGS
3196 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3197 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3198 if test "${ac_cv_prog_cc_g+set}" = set; then
3199 echo $ECHO_N "(cached) $ECHO_C" >&6
3201 cat >conftest.
$ac_ext <<_ACEOF
3202 #line $LINENO "configure"
3205 cat confdefs.h
>>conftest.
$ac_ext
3206 cat >>conftest.
$ac_ext <<_ACEOF
3207 /* end confdefs.h. */
3217 rm -f conftest.
$ac_objext
3218 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3219 (eval $ac_compile) 2>&5
3221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3222 (exit $ac_status); } &&
3223 { ac_try
='test -s conftest.$ac_objext'
3224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3228 (exit $ac_status); }; }; then
3231 echo "$as_me: failed program was:" >&5
3232 sed 's/^/| /' conftest.
$ac_ext >&5
3236 rm -f conftest.
$ac_objext conftest.
$ac_ext
3238 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3239 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3240 if test "$ac_test_CFLAGS" = set; then
3241 CFLAGS
=$ac_save_CFLAGS
3242 elif test $ac_cv_prog_cc_g = yes; then
3243 if test "$GCC" = yes; then
3249 if test "$GCC" = yes; then
3255 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3256 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3257 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3258 echo $ECHO_N "(cached) $ECHO_C" >&6
3260 ac_cv_prog_cc_stdc
=no
3262 cat >conftest.
$ac_ext <<_ACEOF
3263 #line $LINENO "configure"
3266 cat confdefs.h
>>conftest.
$ac_ext
3267 cat >>conftest.
$ac_ext <<_ACEOF
3268 /* end confdefs.h. */
3271 #include <sys/types.h>
3272 #include <sys/stat.h>
3273 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3274 struct buf { int x; };
3275 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3276 static char *e (p, i)
3282 static char *f (char * (*g) (char **, int), char **p, ...)
3287 s = g (p, va_arg (v,int));
3291 int test (int i, double x);
3292 struct s1 {int (*f) (int a);};
3293 struct s2 {int (*f) (double a);};
3294 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3300 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3305 # Don't try gcc -ansi; that turns off useful extensions and
3306 # breaks some systems' header files.
3307 # AIX -qlanglvl=ansi
3308 # Ultrix and OSF/1 -std1
3309 # HP-UX 10.20 and later -Ae
3310 # HP-UX older versions -Aa -D_HPUX_SOURCE
3311 # SVR4 -Xc -D__EXTENSIONS__
3312 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3314 CC
="$ac_save_CC $ac_arg"
3315 rm -f conftest.
$ac_objext
3316 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3317 (eval $ac_compile) 2>&5
3319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3320 (exit $ac_status); } &&
3321 { ac_try
='test -s conftest.$ac_objext'
3322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3326 (exit $ac_status); }; }; then
3327 ac_cv_prog_cc_stdc
=$ac_arg
3330 echo "$as_me: failed program was:" >&5
3331 sed 's/^/| /' conftest.
$ac_ext >&5
3334 rm -f conftest.
$ac_objext
3336 rm -f conftest.
$ac_ext conftest.
$ac_objext
3341 case "x$ac_cv_prog_cc_stdc" in
3343 echo "$as_me:$LINENO: result: none needed" >&5
3344 echo "${ECHO_T}none needed" >&6 ;;
3346 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3347 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3348 CC
="$CC $ac_cv_prog_cc_stdc" ;;
3351 # Some people use a C++ compiler to compile C. Since we use `exit',
3352 # in C++ we need to declare it. In case someone uses the same compiler
3353 # for both compiling C and C++ we need to have the C++ compiler decide
3354 # the declaration of exit, since it's the most demanding environment.
3355 cat >conftest.
$ac_ext <<_ACEOF
3360 rm -f conftest.
$ac_objext
3361 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3362 (eval $ac_compile) 2>&5
3364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3365 (exit $ac_status); } &&
3366 { ac_try
='test -s conftest.$ac_objext'
3367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3371 (exit $ac_status); }; }; then
3372 for ac_declaration
in \
3374 '#include <stdlib.h>' \
3375 'extern "C" void std::exit (int) throw (); using std::exit;' \
3376 'extern "C" void std::exit (int); using std::exit;' \
3377 'extern "C" void exit (int) throw ();' \
3378 'extern "C" void exit (int);' \
3381 cat >conftest.
$ac_ext <<_ACEOF
3382 #line $LINENO "configure"
3385 cat confdefs.h
>>conftest.
$ac_ext
3386 cat >>conftest.
$ac_ext <<_ACEOF
3387 /* end confdefs.h. */
3398 rm -f conftest.
$ac_objext
3399 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3400 (eval $ac_compile) 2>&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.
$ac_objext conftest.
$ac_ext
3418 cat >conftest.
$ac_ext <<_ACEOF
3419 #line $LINENO "configure"
3422 cat confdefs.h
>>conftest.
$ac_ext
3423 cat >>conftest.
$ac_ext <<_ACEOF
3424 /* end confdefs.h. */
3434 rm -f conftest.
$ac_objext
3435 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3436 (eval $ac_compile) 2>&5
3438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3439 (exit $ac_status); } &&
3440 { ac_try
='test -s conftest.$ac_objext'
3441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3445 (exit $ac_status); }; }; then
3448 echo "$as_me: failed program was:" >&5
3449 sed 's/^/| /' conftest.
$ac_ext >&5
3452 rm -f conftest.
$ac_objext conftest.
$ac_ext
3455 if test -n "$ac_declaration"; then
3456 echo '#ifdef __cplusplus' >>confdefs.h
3457 echo $ac_declaration >>confdefs.h
3458 echo '#endif' >>confdefs.h
3462 echo "$as_me: failed program was:" >&5
3463 sed 's/^/| /' conftest.
$ac_ext >&5
3466 rm -f conftest.
$ac_objext conftest.
$ac_ext
3468 ac_cpp
='$CPP $CPPFLAGS'
3469 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3470 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3471 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3474 # On Suns, sometimes $CPP names a directory.
3475 if test -n "$CPP" && test -d "$CPP"; then
3479 #### Some systems specify a CPP to use unless we are using GCC.
3480 #### Now that we know whether we are using GCC, we can decide whether
3481 #### to use that one.
3482 if test "x$NON_GNU_CPP" != x
&& test x
$GCC != xyes
&& test "x$CPP" = x
3487 #### Some systems specify a CC to use unless we are using GCC.
3488 #### Now that we know whether we are using GCC, we can decide whether
3489 #### to use that one.
3490 if test "x$NON_GNU_CC" != x
&& test x
$GCC != xyes
&&
3491 test x
$cc_specified != xyes
3496 if test x
$GCC = xyes
&& test "x$GCC_TEST_OPTIONS" != x
3498 CC
="$CC $GCC_TEST_OPTIONS"
3501 if test x
$GCC = x
&& test "x$NON_GCC_TEST_OPTIONS" != x
3503 CC
="$CC $NON_GCC_TEST_OPTIONS"
3506 #### Some other nice autoconf tests. If you add a test here which
3507 #### should make an entry in src/config.h, don't forget to add an
3508 #### #undef clause to src/config.h.in for autoconf to modify.
3510 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3511 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3513 if test "$LN_S" = "ln -s"; then
3514 echo "$as_me:$LINENO: result: yes" >&5
3515 echo "${ECHO_T}yes" >&6
3517 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3518 echo "${ECHO_T}no, using $LN_S" >&6
3522 ac_cpp
='$CPP $CPPFLAGS'
3523 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3524 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3525 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3526 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3527 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3528 # On Suns, sometimes $CPP names a directory.
3529 if test -n "$CPP" && test -d "$CPP"; then
3532 if test -z "$CPP"; then
3533 if test "${ac_cv_prog_CPP+set}" = set; then
3534 echo $ECHO_N "(cached) $ECHO_C" >&6
3536 # Double quotes because CPP needs to be expanded
3537 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3540 for ac_c_preproc_warn_flag
in '' yes
3542 # Use a header file that comes with gcc, so configuring glibc
3543 # with a fresh cross-compiler works.
3544 # On the NeXT, cc -E runs the code through the compiler's parser,
3545 # not just through cpp. "Syntax error" is here to catch this case.
3546 cat >conftest.
$ac_ext <<_ACEOF
3547 #line $LINENO "configure"
3550 cat confdefs.h
>>conftest.
$ac_ext
3551 cat >>conftest.
$ac_ext <<_ACEOF
3552 /* end confdefs.h. */
3556 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3557 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3559 grep -v '^ *+' conftest.er1
>conftest.err
3561 cat conftest.err
>&5
3562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3563 (exit $ac_status); } >/dev
/null
; then
3564 if test -s conftest.err
; then
3565 ac_cpp_err
=$ac_c_preproc_warn_flag
3572 if test -z "$ac_cpp_err"; then
3575 echo "$as_me: failed program was:" >&5
3576 sed 's/^/| /' conftest.
$ac_ext >&5
3578 # Broken: fails on valid input.
3581 rm -f conftest.err conftest.
$ac_ext
3583 # OK, works on sane cases. Now check whether non-existent headers
3584 # can be detected and how.
3585 cat >conftest.
$ac_ext <<_ACEOF
3586 #line $LINENO "configure"
3589 cat confdefs.h
>>conftest.
$ac_ext
3590 cat >>conftest.
$ac_ext <<_ACEOF
3591 /* end confdefs.h. */
3592 #include <ac_nonexistent.h>
3594 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3595 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3597 grep -v '^ *+' conftest.er1
>conftest.err
3599 cat conftest.err
>&5
3600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3601 (exit $ac_status); } >/dev
/null
; then
3602 if test -s conftest.err
; then
3603 ac_cpp_err
=$ac_c_preproc_warn_flag
3610 if test -z "$ac_cpp_err"; then
3611 # Broken: success on invalid input.
3614 echo "$as_me: failed program was:" >&5
3615 sed 's/^/| /' conftest.
$ac_ext >&5
3617 # Passes both tests.
3621 rm -f conftest.err conftest.
$ac_ext
3624 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3625 rm -f conftest.err conftest.
$ac_ext
3626 if $ac_preproc_ok; then
3638 echo "$as_me:$LINENO: result: $CPP" >&5
3639 echo "${ECHO_T}$CPP" >&6
3641 for ac_c_preproc_warn_flag
in '' yes
3643 # Use a header file that comes with gcc, so configuring glibc
3644 # with a fresh cross-compiler works.
3645 # On the NeXT, cc -E runs the code through the compiler's parser,
3646 # not just through cpp. "Syntax error" is here to catch this case.
3647 cat >conftest.
$ac_ext <<_ACEOF
3648 #line $LINENO "configure"
3651 cat confdefs.h
>>conftest.
$ac_ext
3652 cat >>conftest.
$ac_ext <<_ACEOF
3653 /* end confdefs.h. */
3657 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3658 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3660 grep -v '^ *+' conftest.er1
>conftest.err
3662 cat conftest.err
>&5
3663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3664 (exit $ac_status); } >/dev
/null
; then
3665 if test -s conftest.err
; then
3666 ac_cpp_err
=$ac_c_preproc_warn_flag
3673 if test -z "$ac_cpp_err"; then
3676 echo "$as_me: failed program was:" >&5
3677 sed 's/^/| /' conftest.
$ac_ext >&5
3679 # Broken: fails on valid input.
3682 rm -f conftest.err conftest.
$ac_ext
3684 # OK, works on sane cases. Now check whether non-existent headers
3685 # can be detected and how.
3686 cat >conftest.
$ac_ext <<_ACEOF
3687 #line $LINENO "configure"
3690 cat confdefs.h
>>conftest.
$ac_ext
3691 cat >>conftest.
$ac_ext <<_ACEOF
3692 /* end confdefs.h. */
3693 #include <ac_nonexistent.h>
3695 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3696 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3698 grep -v '^ *+' conftest.er1
>conftest.err
3700 cat conftest.err
>&5
3701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3702 (exit $ac_status); } >/dev
/null
; then
3703 if test -s conftest.err
; then
3704 ac_cpp_err
=$ac_c_preproc_warn_flag
3711 if test -z "$ac_cpp_err"; then
3712 # Broken: success on invalid input.
3715 echo "$as_me: failed program was:" >&5
3716 sed 's/^/| /' conftest.
$ac_ext >&5
3718 # Passes both tests.
3722 rm -f conftest.err conftest.
$ac_ext
3725 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3726 rm -f conftest.err conftest.
$ac_ext
3727 if $ac_preproc_ok; then
3730 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3731 See \`config.log' for more details." >&5
3732 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3733 See \`config.log' for more details." >&2;}
3734 { (exit 1); exit 1; }; }
3738 ac_cpp
='$CPP $CPPFLAGS'
3739 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3740 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3741 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3743 # Find a good install program. We prefer a C program (faster),
3744 # so one script is as good as another. But avoid the broken or
3745 # incompatible versions:
3746 # SysV /etc/install, /usr/sbin/install
3747 # SunOS /usr/etc/install
3748 # IRIX /sbin/install
3750 # AmigaOS /C/install, which installs bootblocks on floppy discs
3751 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3752 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3753 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3754 # ./install, which can be erroneously created by make from ./install.sh.
3755 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3756 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3757 if test -z "$INSTALL"; then
3758 if test "${ac_cv_path_install+set}" = set; then
3759 echo $ECHO_N "(cached) $ECHO_C" >&6
3761 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3765 test -z "$as_dir" && as_dir
=.
3766 # Account for people who put trailing slashes in PATH elements.
3768 .
/ | .
// |
/cC
/* | \
3769 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
3772 # OSF1 and SCO ODT 3.0 have their own names for install.
3773 # Don't use installbsd from OSF since it installs stuff as root
3775 for ac_prog
in ginstall scoinst
install; do
3776 for ac_exec_ext
in '' $ac_executable_extensions; do
3777 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3778 if test $ac_prog = install &&
3779 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3780 # AIX install. It has an incompatible calling convention.
3782 elif test $ac_prog = install &&
3783 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3784 # program-specific install script used by HP pwplus--don't use.
3787 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
3799 if test "${ac_cv_path_install+set}" = set; then
3800 INSTALL
=$ac_cv_path_install
3802 # As a last resort, use the slow shell script. We don't cache a
3803 # path for INSTALL within a source directory, because that will
3804 # break other packages using the cache if that directory is
3805 # removed, or if the path is relative.
3806 INSTALL
=$ac_install_sh
3809 echo "$as_me:$LINENO: result: $INSTALL" >&5
3810 echo "${ECHO_T}$INSTALL" >&6
3812 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3813 # It thinks the first close brace ends the variable substitution.
3814 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
3816 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
3818 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
3820 if test "x$RANLIB" = x
; then
3821 if test -n "$ac_tool_prefix"; then
3822 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3823 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
3824 echo "$as_me:$LINENO: checking for $ac_word" >&5
3825 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3826 if test "${ac_cv_prog_RANLIB+set}" = set; then
3827 echo $ECHO_N "(cached) $ECHO_C" >&6
3829 if test -n "$RANLIB"; then
3830 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
3832 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3836 test -z "$as_dir" && as_dir
=.
3837 for ac_exec_ext
in '' $ac_executable_extensions; do
3838 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3839 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
3840 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3848 RANLIB
=$ac_cv_prog_RANLIB
3849 if test -n "$RANLIB"; then
3850 echo "$as_me:$LINENO: result: $RANLIB" >&5
3851 echo "${ECHO_T}$RANLIB" >&6
3853 echo "$as_me:$LINENO: result: no" >&5
3854 echo "${ECHO_T}no" >&6
3858 if test -z "$ac_cv_prog_RANLIB"; then
3859 ac_ct_RANLIB
=$RANLIB
3860 # Extract the first word of "ranlib", so it can be a program name with args.
3861 set dummy ranlib
; ac_word
=$2
3862 echo "$as_me:$LINENO: checking for $ac_word" >&5
3863 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3864 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3865 echo $ECHO_N "(cached) $ECHO_C" >&6
3867 if test -n "$ac_ct_RANLIB"; then
3868 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
3870 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3874 test -z "$as_dir" && as_dir
=.
3875 for ac_exec_ext
in '' $ac_executable_extensions; do
3876 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3877 ac_cv_prog_ac_ct_RANLIB
="ranlib"
3878 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3884 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
3887 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
3888 if test -n "$ac_ct_RANLIB"; then
3889 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3890 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3892 echo "$as_me:$LINENO: result: no" >&5
3893 echo "${ECHO_T}no" >&6
3896 RANLIB
=$ac_ct_RANLIB
3898 RANLIB
="$ac_cv_prog_RANLIB"
3904 if test x
$GCC = xyes
&& test "x$GCC_LINK_TEST_OPTIONS" != x
3906 ac_link
="$ac_link $GCC_LINK_TEST_OPTIONS"
3909 if test x
$GCC = x
&& test "x$NON_GCC_LINK_TEST_OPTIONS" != x
3911 ac_link
="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
3916 echo "$as_me:$LINENO: checking for egrep" >&5
3917 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3918 if test "${ac_cv_prog_egrep+set}" = set; then
3919 echo $ECHO_N "(cached) $ECHO_C" >&6
3921 if echo a |
(grep -E '(a|b)') >/dev
/null
2>&1
3922 then ac_cv_prog_egrep
='grep -E'
3923 else ac_cv_prog_egrep
='egrep'
3926 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3927 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3928 EGREP
=$ac_cv_prog_egrep
3932 echo "$as_me:$LINENO: checking for AIX" >&5
3933 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
3934 cat >conftest.
$ac_ext <<_ACEOF
3935 #line $LINENO "configure"
3938 cat confdefs.h
>>conftest.
$ac_ext
3939 cat >>conftest.
$ac_ext <<_ACEOF
3940 /* end confdefs.h. */
3946 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3947 $EGREP "yes" >/dev
/null
2>&1; then
3948 echo "$as_me:$LINENO: result: yes" >&5
3949 echo "${ECHO_T}yes" >&6
3950 cat >>confdefs.h
<<\_ACEOF
3951 #define _ALL_SOURCE 1
3955 echo "$as_me:$LINENO: result: no" >&5
3956 echo "${ECHO_T}no" >&6
3962 #### Extract some information from the operating system and machine files.
3964 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
3965 - which libraries the lib-src programs will want, and
3966 - whether the GNU malloc routines are usable..." >&5
3967 echo "$as_me: checking the machine- and system-dependent files to find out
3968 - which libraries the lib-src programs will want, and
3969 - whether the GNU malloc routines are usable..." >&6;}
3971 ### First figure out CFLAGS (which we use for running the compiler here)
3972 ### and REAL_CFLAGS (which we use for real compilation).
3973 ### The two are the same except on a few systems, where they are made
3974 ### different to work around various lossages. For example,
3975 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
3976 ### as implying static linking.
3978 ### If the CFLAGS env var is specified, we use that value
3979 ### instead of the default.
3981 ### It's not important that this name contain the PID; you can't run
3982 ### two configures in the same directory and have anything work
3984 tempcname
="conftest.c"
3987 #include "'${srcdir}'/src/'${opsysfile}'"
3988 #include "'${srcdir}'/src/'${machfile}'"
3989 #ifndef LIBS_MACHINE
3990 #define LIBS_MACHINE
3995 #ifndef C_SWITCH_SYSTEM
3996 #define C_SWITCH_SYSTEM
3998 #ifndef C_SWITCH_MACHINE
3999 #define C_SWITCH_MACHINE
4001 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
4002 configure___ c_switch_system=C_SWITCH_SYSTEM
4003 configure___ c_switch_machine=C_SWITCH_MACHINE
4006 #define LIB_X11_LIB -lX11
4009 #ifndef LIBX11_MACHINE
4010 #define LIBX11_MACHINE
4013 #ifndef LIBX11_SYSTEM
4014 #define LIBX11_SYSTEM
4016 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
4019 configure___ unexec=UNEXEC
4021 configure___ unexec=unexec.o
4024 #ifdef SYSTEM_MALLOC
4025 configure___ system_malloc=yes
4027 configure___ system_malloc=no
4030 #ifdef USE_MMAP_FOR_BUFFERS
4031 configure___ use_mmap_for_buffers=yes
4033 configure___ use_mmap_for_buffers=no
4036 #ifndef C_DEBUG_SWITCH
4037 #define C_DEBUG_SWITCH -g
4040 #ifndef C_OPTIMIZE_SWITCH
4042 #define C_OPTIMIZE_SWITCH -O2
4044 #define C_OPTIMIZE_SWITCH -O
4048 #ifndef LD_SWITCH_MACHINE
4049 #define LD_SWITCH_MACHINE
4052 #ifndef LD_SWITCH_SYSTEM
4053 #define LD_SWITCH_SYSTEM
4056 #ifndef LD_SWITCH_X_SITE_AUX
4057 #define LD_SWITCH_X_SITE_AUX
4060 configure___ ld_switch_system=LD_SWITCH_SYSTEM
4061 configure___ ld_switch_machine=LD_SWITCH_MACHINE
4063 #ifdef THIS_IS_CONFIGURE
4065 /* Get the CFLAGS for tests in configure. */
4067 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
4069 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4072 #else /* not THIS_IS_CONFIGURE */
4074 /* Get the CFLAGS for real compilation. */
4076 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
4078 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4081 #endif /* not THIS_IS_CONFIGURE */
4084 # The value of CPP is a quoted variable reference, so we need to do this
4085 # to get its actual value...
4086 CPP
=`eval "echo $CPP"`
4087 eval `${CPP} -Isrc ${tempcname} \
4088 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4089 if test "x$SPECIFIED_CFLAGS" = x
; then
4090 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
4091 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4093 REAL_CFLAGS
="$CFLAGS"
4097 ac_link
="$ac_link $ld_switch_machine $ld_switch_system"
4099 ### Make sure subsequent tests use flags consistent with the build flags.
4101 if test x
"${OVERRIDE_CPPFLAGS}" != x
; then
4102 CPPFLAGS
="${OVERRIDE_CPPFLAGS}"
4104 CPPFLAGS
="$c_switch_system $c_switch_machine $CPPFLAGS"
4110 cat >>confdefs.h
<<\_ACEOF
4111 #define _GNU_SOURCE 1
4116 # Check whether --enable-largefile or --disable-largefile was given.
4117 if test "${enable_largefile+set}" = set; then
4118 enableval
="$enable_largefile"
4121 if test "$enable_largefile" != no
; then
4123 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4124 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
4125 if test "${ac_cv_sys_largefile_CC+set}" = set; then
4126 echo $ECHO_N "(cached) $ECHO_C" >&6
4128 ac_cv_sys_largefile_CC
=no
4129 if test "$GCC" != yes; then
4132 # IRIX 6.2 and later do not support large files by default,
4133 # so use the C compiler's -n32 option if that helps.
4134 cat >conftest.
$ac_ext <<_ACEOF
4135 #line $LINENO "configure"
4138 cat confdefs.h
>>conftest.
$ac_ext
4139 cat >>conftest.
$ac_ext <<_ACEOF
4140 /* end confdefs.h. */
4141 #include <sys/types.h>
4142 /* Check that off_t can represent 2**63 - 1 correctly.
4143 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4144 since some C++ compilers masquerading as C compilers
4145 incorrectly reject 9223372036854775807. */
4146 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4147 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4148 && LARGE_OFF_T % 2147483647 == 1)
4158 rm -f conftest.
$ac_objext
4159 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4160 (eval $ac_compile) 2>&5
4162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4163 (exit $ac_status); } &&
4164 { ac_try
='test -s conftest.$ac_objext'
4165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4169 (exit $ac_status); }; }; then
4172 echo "$as_me: failed program was:" >&5
4173 sed 's/^/| /' conftest.
$ac_ext >&5
4176 rm -f conftest.
$ac_objext
4178 rm -f conftest.
$ac_objext
4179 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4180 (eval $ac_compile) 2>&5
4182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4183 (exit $ac_status); } &&
4184 { ac_try
='test -s conftest.$ac_objext'
4185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4189 (exit $ac_status); }; }; then
4190 ac_cv_sys_largefile_CC
=' -n32'; break
4192 echo "$as_me: failed program was:" >&5
4193 sed 's/^/| /' conftest.
$ac_ext >&5
4196 rm -f conftest.
$ac_objext
4200 rm -f conftest.
$ac_ext
4203 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4204 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
4205 if test "$ac_cv_sys_largefile_CC" != no
; then
4206 CC
=$CC$ac_cv_sys_largefile_CC
4209 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4210 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
4211 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4212 echo $ECHO_N "(cached) $ECHO_C" >&6
4215 ac_cv_sys_file_offset_bits
=no
4216 cat >conftest.
$ac_ext <<_ACEOF
4217 #line $LINENO "configure"
4220 cat confdefs.h
>>conftest.
$ac_ext
4221 cat >>conftest.
$ac_ext <<_ACEOF
4222 /* end confdefs.h. */
4223 #include <sys/types.h>
4224 /* Check that off_t can represent 2**63 - 1 correctly.
4225 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4226 since some C++ compilers masquerading as C compilers
4227 incorrectly reject 9223372036854775807. */
4228 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4229 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4230 && LARGE_OFF_T % 2147483647 == 1)
4240 rm -f conftest.
$ac_objext
4241 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4242 (eval $ac_compile) 2>&5
4244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4245 (exit $ac_status); } &&
4246 { ac_try
='test -s conftest.$ac_objext'
4247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4251 (exit $ac_status); }; }; then
4254 echo "$as_me: failed program was:" >&5
4255 sed 's/^/| /' conftest.
$ac_ext >&5
4258 rm -f conftest.
$ac_objext conftest.
$ac_ext
4259 cat >conftest.
$ac_ext <<_ACEOF
4260 #line $LINENO "configure"
4263 cat confdefs.h
>>conftest.
$ac_ext
4264 cat >>conftest.
$ac_ext <<_ACEOF
4265 /* end confdefs.h. */
4266 #define _FILE_OFFSET_BITS 64
4267 #include <sys/types.h>
4268 /* Check that off_t can represent 2**63 - 1 correctly.
4269 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4270 since some C++ compilers masquerading as C compilers
4271 incorrectly reject 9223372036854775807. */
4272 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4273 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4274 && LARGE_OFF_T % 2147483647 == 1)
4284 rm -f conftest.
$ac_objext
4285 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4286 (eval $ac_compile) 2>&5
4288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4289 (exit $ac_status); } &&
4290 { ac_try
='test -s conftest.$ac_objext'
4291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4295 (exit $ac_status); }; }; then
4296 ac_cv_sys_file_offset_bits
=64; break
4298 echo "$as_me: failed program was:" >&5
4299 sed 's/^/| /' conftest.
$ac_ext >&5
4302 rm -f conftest.
$ac_objext conftest.
$ac_ext
4306 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
4307 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
4308 if test "$ac_cv_sys_file_offset_bits" != no
; then
4310 cat >>confdefs.h
<<_ACEOF
4311 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4316 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
4317 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
4318 if test "${ac_cv_sys_large_files+set}" = set; then
4319 echo $ECHO_N "(cached) $ECHO_C" >&6
4322 ac_cv_sys_large_files
=no
4323 cat >conftest.
$ac_ext <<_ACEOF
4324 #line $LINENO "configure"
4327 cat confdefs.h
>>conftest.
$ac_ext
4328 cat >>conftest.
$ac_ext <<_ACEOF
4329 /* end confdefs.h. */
4330 #include <sys/types.h>
4331 /* Check that off_t can represent 2**63 - 1 correctly.
4332 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4333 since some C++ compilers masquerading as C compilers
4334 incorrectly reject 9223372036854775807. */
4335 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4336 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4337 && LARGE_OFF_T % 2147483647 == 1)
4347 rm -f conftest.
$ac_objext
4348 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4349 (eval $ac_compile) 2>&5
4351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4352 (exit $ac_status); } &&
4353 { ac_try
='test -s conftest.$ac_objext'
4354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4358 (exit $ac_status); }; }; then
4361 echo "$as_me: failed program was:" >&5
4362 sed 's/^/| /' conftest.
$ac_ext >&5
4365 rm -f conftest.
$ac_objext conftest.
$ac_ext
4366 cat >conftest.
$ac_ext <<_ACEOF
4367 #line $LINENO "configure"
4370 cat confdefs.h
>>conftest.
$ac_ext
4371 cat >>conftest.
$ac_ext <<_ACEOF
4372 /* end confdefs.h. */
4373 #define _LARGE_FILES 1
4374 #include <sys/types.h>
4375 /* Check that off_t can represent 2**63 - 1 correctly.
4376 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4377 since some C++ compilers masquerading as C compilers
4378 incorrectly reject 9223372036854775807. */
4379 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4380 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4381 && LARGE_OFF_T % 2147483647 == 1)
4391 rm -f conftest.
$ac_objext
4392 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4393 (eval $ac_compile) 2>&5
4395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4396 (exit $ac_status); } &&
4397 { ac_try
='test -s conftest.$ac_objext'
4398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4402 (exit $ac_status); }; }; then
4403 ac_cv_sys_large_files
=1; break
4405 echo "$as_me: failed program was:" >&5
4406 sed 's/^/| /' conftest.
$ac_ext >&5
4409 rm -f conftest.
$ac_objext conftest.
$ac_ext
4413 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
4414 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
4415 if test "$ac_cv_sys_large_files" != no
; then
4417 cat >>confdefs.h
<<_ACEOF
4418 #define _LARGE_FILES $ac_cv_sys_large_files
4426 if test "${with_sound}" != "no"; then
4427 # Sound support for GNU/Linux and the free BSDs.
4428 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4429 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4430 if test "${ac_cv_header_stdc+set}" = set; then
4431 echo $ECHO_N "(cached) $ECHO_C" >&6
4433 cat >conftest.
$ac_ext <<_ACEOF
4434 #line $LINENO "configure"
4437 cat confdefs.h
>>conftest.
$ac_ext
4438 cat >>conftest.
$ac_ext <<_ACEOF
4439 /* end confdefs.h. */
4453 rm -f conftest.
$ac_objext
4454 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4455 (eval $ac_compile) 2>&5
4457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4458 (exit $ac_status); } &&
4459 { ac_try
='test -s conftest.$ac_objext'
4460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4464 (exit $ac_status); }; }; then
4465 ac_cv_header_stdc
=yes
4467 echo "$as_me: failed program was:" >&5
4468 sed 's/^/| /' conftest.
$ac_ext >&5
4470 ac_cv_header_stdc
=no
4472 rm -f conftest.
$ac_objext conftest.
$ac_ext
4474 if test $ac_cv_header_stdc = yes; then
4475 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4476 cat >conftest.
$ac_ext <<_ACEOF
4477 #line $LINENO "configure"
4480 cat confdefs.h
>>conftest.
$ac_ext
4481 cat >>conftest.
$ac_ext <<_ACEOF
4482 /* end confdefs.h. */
4486 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4487 $EGREP "memchr" >/dev
/null
2>&1; then
4490 ac_cv_header_stdc
=no
4496 if test $ac_cv_header_stdc = yes; then
4497 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4498 cat >conftest.
$ac_ext <<_ACEOF
4499 #line $LINENO "configure"
4502 cat confdefs.h
>>conftest.
$ac_ext
4503 cat >>conftest.
$ac_ext <<_ACEOF
4504 /* end confdefs.h. */
4508 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4509 $EGREP "free" >/dev
/null
2>&1; then
4512 ac_cv_header_stdc
=no
4518 if test $ac_cv_header_stdc = yes; then
4519 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4520 if test "$cross_compiling" = yes; then
4523 cat >conftest.
$ac_ext <<_ACEOF
4524 #line $LINENO "configure"
4527 cat confdefs.h
>>conftest.
$ac_ext
4528 cat >>conftest.
$ac_ext <<_ACEOF
4529 /* end confdefs.h. */
4531 #if ((' ' & 0x0FF) == 0x020)
4532 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4533 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4535 # define ISLOWER(c) \
4536 (('a' <= (c) && (c) <= 'i') \
4537 || ('j' <= (c) && (c) <= 'r') \
4538 || ('s' <= (c) && (c) <= 'z'))
4539 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4542 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4547 for (i = 0; i < 256; i++)
4548 if (XOR (islower (i), ISLOWER (i))
4549 || toupper (i) != TOUPPER (i))
4554 rm -f conftest
$ac_exeext
4555 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4556 (eval $ac_link) 2>&5
4558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4559 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4564 (exit $ac_status); }; }; then
4567 echo "$as_me: program exited with status $ac_status" >&5
4568 echo "$as_me: failed program was:" >&5
4569 sed 's/^/| /' conftest.
$ac_ext >&5
4572 ac_cv_header_stdc
=no
4574 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4578 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4579 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4580 if test $ac_cv_header_stdc = yes; then
4582 cat >>confdefs.h
<<\_ACEOF
4583 #define STDC_HEADERS 1
4588 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4598 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4599 inttypes.h stdint.h unistd.h
4601 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4602 echo "$as_me:$LINENO: checking for $ac_header" >&5
4603 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4604 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4605 echo $ECHO_N "(cached) $ECHO_C" >&6
4607 cat >conftest.
$ac_ext <<_ACEOF
4608 #line $LINENO "configure"
4611 cat confdefs.h
>>conftest.
$ac_ext
4612 cat >>conftest.
$ac_ext <<_ACEOF
4613 /* end confdefs.h. */
4614 $ac_includes_default
4616 #include <$ac_header>
4618 rm -f conftest.
$ac_objext
4619 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4620 (eval $ac_compile) 2>&5
4622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4623 (exit $ac_status); } &&
4624 { ac_try
='test -s conftest.$ac_objext'
4625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4629 (exit $ac_status); }; }; then
4630 eval "$as_ac_Header=yes"
4632 echo "$as_me: failed program was:" >&5
4633 sed 's/^/| /' conftest.
$ac_ext >&5
4635 eval "$as_ac_Header=no"
4637 rm -f conftest.
$ac_objext conftest.
$ac_ext
4639 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4640 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4641 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4642 cat >>confdefs.h
<<_ACEOF
4643 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4654 for ac_header
in machine
/soundcard.h sys
/soundcard.h soundcard.h
4656 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4657 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4658 echo "$as_me:$LINENO: checking for $ac_header" >&5
4659 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4660 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4661 echo $ECHO_N "(cached) $ECHO_C" >&6
4663 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4664 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4666 # Is the header compilable?
4667 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4668 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4669 cat >conftest.
$ac_ext <<_ACEOF
4670 #line $LINENO "configure"
4673 cat confdefs.h
>>conftest.
$ac_ext
4674 cat >>conftest.
$ac_ext <<_ACEOF
4675 /* end confdefs.h. */
4676 $ac_includes_default
4677 #include <$ac_header>
4679 rm -f conftest.
$ac_objext
4680 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4681 (eval $ac_compile) 2>&5
4683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4684 (exit $ac_status); } &&
4685 { ac_try
='test -s conftest.$ac_objext'
4686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4690 (exit $ac_status); }; }; then
4691 ac_header_compiler
=yes
4693 echo "$as_me: failed program was:" >&5
4694 sed 's/^/| /' conftest.
$ac_ext >&5
4696 ac_header_compiler
=no
4698 rm -f conftest.
$ac_objext conftest.
$ac_ext
4699 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4700 echo "${ECHO_T}$ac_header_compiler" >&6
4702 # Is the header present?
4703 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4704 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4705 cat >conftest.
$ac_ext <<_ACEOF
4706 #line $LINENO "configure"
4709 cat confdefs.h
>>conftest.
$ac_ext
4710 cat >>conftest.
$ac_ext <<_ACEOF
4711 /* end confdefs.h. */
4712 #include <$ac_header>
4714 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4715 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4717 grep -v '^ *+' conftest.er1
>conftest.err
4719 cat conftest.err
>&5
4720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4721 (exit $ac_status); } >/dev
/null
; then
4722 if test -s conftest.err
; then
4723 ac_cpp_err
=$ac_c_preproc_warn_flag
4730 if test -z "$ac_cpp_err"; then
4731 ac_header_preproc
=yes
4733 echo "$as_me: failed program was:" >&5
4734 sed 's/^/| /' conftest.
$ac_ext >&5
4736 ac_header_preproc
=no
4738 rm -f conftest.err conftest.
$ac_ext
4739 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4740 echo "${ECHO_T}$ac_header_preproc" >&6
4742 # So? What about this header?
4743 case $ac_header_compiler:$ac_header_preproc in
4745 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4746 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4747 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4748 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4751 ## ------------------------------------ ##
4752 ## Report this to bug-autoconf@gnu.org. ##
4753 ## ------------------------------------ ##
4756 sed "s/^/$as_me: WARNING: /" >&2
4759 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4760 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4761 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4762 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4763 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4764 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4767 ## ------------------------------------ ##
4768 ## Report this to bug-autoconf@gnu.org. ##
4769 ## ------------------------------------ ##
4772 sed "s/^/$as_me: WARNING: /" >&2
4775 echo "$as_me:$LINENO: checking for $ac_header" >&5
4776 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4777 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4778 echo $ECHO_N "(cached) $ECHO_C" >&6
4780 eval "$as_ac_Header=$ac_header_preproc"
4782 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4783 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4786 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4787 cat >>confdefs.h
<<_ACEOF
4788 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4795 # Emulation library used on NetBSD.
4796 echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
4797 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
4798 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
4799 echo $ECHO_N "(cached) $ECHO_C" >&6
4801 ac_check_lib_save_LIBS
=$LIBS
4802 LIBS
="-lossaudio $LIBS"
4803 cat >conftest.
$ac_ext <<_ACEOF
4804 #line $LINENO "configure"
4807 cat confdefs.h
>>conftest.
$ac_ext
4808 cat >>conftest.
$ac_ext <<_ACEOF
4809 /* end confdefs.h. */
4811 /* Override any gcc2 internal prototype to avoid an error. */
4815 /* We use char because int might match the return type of a gcc2
4816 builtin and then its argument prototype would still apply. */
4826 rm -f conftest.
$ac_objext conftest
$ac_exeext
4827 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4828 (eval $ac_link) 2>&5
4830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4831 (exit $ac_status); } &&
4832 { ac_try
='test -s conftest$ac_exeext'
4833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4837 (exit $ac_status); }; }; then
4838 ac_cv_lib_ossaudio__oss_ioctl
=yes
4840 echo "$as_me: failed program was:" >&5
4841 sed 's/^/| /' conftest.
$ac_ext >&5
4843 ac_cv_lib_ossaudio__oss_ioctl
=no
4845 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
4846 LIBS
=$ac_check_lib_save_LIBS
4848 echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
4849 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
4850 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
4881 for ac_header
in sys
/select.h sys
/timeb.h sys
/time.h unistd.h utime.h \
4882 linux
/version.h sys
/systeminfo.h termios.h limits.h string.h stdlib.h \
4883 termcap.h stdio_ext.h fcntl.h term.h
strings.h coff.h pty.h sys
/mman.h \
4884 sys
/param.h sys
/vlimit.h sys
/resource.h
4886 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4887 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4888 echo "$as_me:$LINENO: checking for $ac_header" >&5
4889 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4890 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4891 echo $ECHO_N "(cached) $ECHO_C" >&6
4893 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4894 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4896 # Is the header compilable?
4897 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4898 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4899 cat >conftest.
$ac_ext <<_ACEOF
4900 #line $LINENO "configure"
4903 cat confdefs.h
>>conftest.
$ac_ext
4904 cat >>conftest.
$ac_ext <<_ACEOF
4905 /* end confdefs.h. */
4906 $ac_includes_default
4907 #include <$ac_header>
4909 rm -f conftest.
$ac_objext
4910 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4911 (eval $ac_compile) 2>&5
4913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4914 (exit $ac_status); } &&
4915 { ac_try
='test -s conftest.$ac_objext'
4916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4920 (exit $ac_status); }; }; then
4921 ac_header_compiler
=yes
4923 echo "$as_me: failed program was:" >&5
4924 sed 's/^/| /' conftest.
$ac_ext >&5
4926 ac_header_compiler
=no
4928 rm -f conftest.
$ac_objext conftest.
$ac_ext
4929 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4930 echo "${ECHO_T}$ac_header_compiler" >&6
4932 # Is the header present?
4933 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4934 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4935 cat >conftest.
$ac_ext <<_ACEOF
4936 #line $LINENO "configure"
4939 cat confdefs.h
>>conftest.
$ac_ext
4940 cat >>conftest.
$ac_ext <<_ACEOF
4941 /* end confdefs.h. */
4942 #include <$ac_header>
4944 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4945 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4947 grep -v '^ *+' conftest.er1
>conftest.err
4949 cat conftest.err
>&5
4950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4951 (exit $ac_status); } >/dev
/null
; then
4952 if test -s conftest.err
; then
4953 ac_cpp_err
=$ac_c_preproc_warn_flag
4960 if test -z "$ac_cpp_err"; then
4961 ac_header_preproc
=yes
4963 echo "$as_me: failed program was:" >&5
4964 sed 's/^/| /' conftest.
$ac_ext >&5
4966 ac_header_preproc
=no
4968 rm -f conftest.err conftest.
$ac_ext
4969 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4970 echo "${ECHO_T}$ac_header_preproc" >&6
4972 # So? What about this header?
4973 case $ac_header_compiler:$ac_header_preproc in
4975 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4976 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4977 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4978 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4981 ## ------------------------------------ ##
4982 ## Report this to bug-autoconf@gnu.org. ##
4983 ## ------------------------------------ ##
4986 sed "s/^/$as_me: WARNING: /" >&2
4989 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4990 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4991 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4992 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4993 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4994 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4997 ## ------------------------------------ ##
4998 ## Report this to bug-autoconf@gnu.org. ##
4999 ## ------------------------------------ ##
5002 sed "s/^/$as_me: WARNING: /" >&2
5005 echo "$as_me:$LINENO: checking for $ac_header" >&5
5006 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5007 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5008 echo $ECHO_N "(cached) $ECHO_C" >&6
5010 eval "$as_ac_Header=$ac_header_preproc"
5012 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5013 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5016 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5017 cat >>confdefs.h
<<_ACEOF
5018 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5026 for ac_header
in term.h
5028 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5029 echo "$as_me:$LINENO: checking for $ac_header" >&5
5030 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5031 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5032 echo $ECHO_N "(cached) $ECHO_C" >&6
5034 cat >conftest.
$ac_ext <<_ACEOF
5035 #line $LINENO "configure"
5038 cat confdefs.h
>>conftest.
$ac_ext
5039 cat >>conftest.
$ac_ext <<_ACEOF
5040 /* end confdefs.h. */
5041 #include <$ac_header>
5043 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5044 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5046 grep -v '^ *+' conftest.er1
>conftest.err
5048 cat conftest.err
>&5
5049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5050 (exit $ac_status); } >/dev
/null
; then
5051 if test -s conftest.err
; then
5052 ac_cpp_err
=$ac_c_preproc_warn_flag
5059 if test -z "$ac_cpp_err"; then
5060 eval "$as_ac_Header=yes"
5062 echo "$as_me: failed program was:" >&5
5063 sed 's/^/| /' conftest.
$ac_ext >&5
5065 eval "$as_ac_Header=no"
5067 rm -f conftest.err conftest.
$ac_ext
5069 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5070 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5071 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5072 cat >>confdefs.h
<<_ACEOF
5073 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5080 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5081 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5082 if test "${ac_cv_header_stdc+set}" = set; then
5083 echo $ECHO_N "(cached) $ECHO_C" >&6
5085 cat >conftest.
$ac_ext <<_ACEOF
5086 #line $LINENO "configure"
5089 cat confdefs.h
>>conftest.
$ac_ext
5090 cat >>conftest.
$ac_ext <<_ACEOF
5091 /* end confdefs.h. */
5105 rm -f conftest.
$ac_objext
5106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5107 (eval $ac_compile) 2>&5
5109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5110 (exit $ac_status); } &&
5111 { ac_try
='test -s conftest.$ac_objext'
5112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5116 (exit $ac_status); }; }; then
5117 ac_cv_header_stdc
=yes
5119 echo "$as_me: failed program was:" >&5
5120 sed 's/^/| /' conftest.
$ac_ext >&5
5122 ac_cv_header_stdc
=no
5124 rm -f conftest.
$ac_objext conftest.
$ac_ext
5126 if test $ac_cv_header_stdc = yes; then
5127 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5128 cat >conftest.
$ac_ext <<_ACEOF
5129 #line $LINENO "configure"
5132 cat confdefs.h
>>conftest.
$ac_ext
5133 cat >>conftest.
$ac_ext <<_ACEOF
5134 /* end confdefs.h. */
5138 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5139 $EGREP "memchr" >/dev
/null
2>&1; then
5142 ac_cv_header_stdc
=no
5148 if test $ac_cv_header_stdc = yes; then
5149 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5150 cat >conftest.
$ac_ext <<_ACEOF
5151 #line $LINENO "configure"
5154 cat confdefs.h
>>conftest.
$ac_ext
5155 cat >>conftest.
$ac_ext <<_ACEOF
5156 /* end confdefs.h. */
5160 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5161 $EGREP "free" >/dev
/null
2>&1; then
5164 ac_cv_header_stdc
=no
5170 if test $ac_cv_header_stdc = yes; then
5171 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5172 if test "$cross_compiling" = yes; then
5175 cat >conftest.
$ac_ext <<_ACEOF
5176 #line $LINENO "configure"
5179 cat confdefs.h
>>conftest.
$ac_ext
5180 cat >>conftest.
$ac_ext <<_ACEOF
5181 /* end confdefs.h. */
5183 #if ((' ' & 0x0FF) == 0x020)
5184 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5185 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5187 # define ISLOWER(c) \
5188 (('a' <= (c) && (c) <= 'i') \
5189 || ('j' <= (c) && (c) <= 'r') \
5190 || ('s' <= (c) && (c) <= 'z'))
5191 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5194 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5199 for (i = 0; i < 256; i++)
5200 if (XOR (islower (i), ISLOWER (i))
5201 || toupper (i) != TOUPPER (i))
5206 rm -f conftest
$ac_exeext
5207 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5208 (eval $ac_link) 2>&5
5210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5211 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5216 (exit $ac_status); }; }; then
5219 echo "$as_me: program exited with status $ac_status" >&5
5220 echo "$as_me: failed program was:" >&5
5221 sed 's/^/| /' conftest.
$ac_ext >&5
5224 ac_cv_header_stdc
=no
5226 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5230 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5231 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5232 if test $ac_cv_header_stdc = yes; then
5234 cat >>confdefs.h
<<\_ACEOF
5235 #define STDC_HEADERS 1
5240 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
5241 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
5242 if test "${ac_cv_header_time+set}" = set; then
5243 echo $ECHO_N "(cached) $ECHO_C" >&6
5245 cat >conftest.
$ac_ext <<_ACEOF
5246 #line $LINENO "configure"
5249 cat confdefs.h
>>conftest.
$ac_ext
5250 cat >>conftest.
$ac_ext <<_ACEOF
5251 /* end confdefs.h. */
5252 #include <sys/types.h>
5253 #include <sys/time.h>
5259 if ((struct tm *) 0)
5265 rm -f conftest.
$ac_objext
5266 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5267 (eval $ac_compile) 2>&5
5269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5270 (exit $ac_status); } &&
5271 { ac_try
='test -s conftest.$ac_objext'
5272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5276 (exit $ac_status); }; }; then
5277 ac_cv_header_time
=yes
5279 echo "$as_me: failed program was:" >&5
5280 sed 's/^/| /' conftest.
$ac_ext >&5
5282 ac_cv_header_time
=no
5284 rm -f conftest.
$ac_objext conftest.
$ac_ext
5286 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
5287 echo "${ECHO_T}$ac_cv_header_time" >&6
5288 if test $ac_cv_header_time = yes; then
5290 cat >>confdefs.h
<<\_ACEOF
5291 #define TIME_WITH_SYS_TIME 1
5296 echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
5297 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6
5298 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
5299 echo $ECHO_N "(cached) $ECHO_C" >&6
5301 cat >conftest.
$ac_ext <<_ACEOF
5302 #line $LINENO "configure"
5305 cat confdefs.h
>>conftest.
$ac_ext
5306 cat >>conftest.
$ac_ext <<_ACEOF
5307 /* end confdefs.h. */
5308 $ac_includes_default
5313 char *p = (char *) sys_siglist;
5320 rm -f conftest.
$ac_objext
5321 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5322 (eval $ac_compile) 2>&5
5324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5325 (exit $ac_status); } &&
5326 { ac_try
='test -s conftest.$ac_objext'
5327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5331 (exit $ac_status); }; }; then
5332 ac_cv_have_decl_sys_siglist
=yes
5334 echo "$as_me: failed program was:" >&5
5335 sed 's/^/| /' conftest.
$ac_ext >&5
5337 ac_cv_have_decl_sys_siglist
=no
5339 rm -f conftest.
$ac_objext conftest.
$ac_ext
5341 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
5342 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6
5343 if test $ac_cv_have_decl_sys_siglist = yes; then
5345 cat >>confdefs.h
<<_ACEOF
5346 #define HAVE_DECL_SYS_SIGLIST 1
5351 cat >>confdefs.h
<<_ACEOF
5352 #define HAVE_DECL_SYS_SIGLIST 0
5359 if test $ac_cv_have_decl_sys_siglist != yes; then
5360 # For Tru64, at least:
5361 echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
5362 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6
5363 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
5364 echo $ECHO_N "(cached) $ECHO_C" >&6
5366 cat >conftest.
$ac_ext <<_ACEOF
5367 #line $LINENO "configure"
5370 cat confdefs.h
>>conftest.
$ac_ext
5371 cat >>conftest.
$ac_ext <<_ACEOF
5372 /* end confdefs.h. */
5373 $ac_includes_default
5377 #ifndef __sys_siglist
5378 char *p = (char *) __sys_siglist;
5385 rm -f conftest.
$ac_objext
5386 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5387 (eval $ac_compile) 2>&5
5389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5390 (exit $ac_status); } &&
5391 { ac_try
='test -s conftest.$ac_objext'
5392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5396 (exit $ac_status); }; }; then
5397 ac_cv_have_decl___sys_siglist
=yes
5399 echo "$as_me: failed program was:" >&5
5400 sed 's/^/| /' conftest.
$ac_ext >&5
5402 ac_cv_have_decl___sys_siglist
=no
5404 rm -f conftest.
$ac_objext conftest.
$ac_ext
5406 echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
5407 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6
5408 if test $ac_cv_have_decl___sys_siglist = yes; then
5410 cat >>confdefs.h
<<_ACEOF
5411 #define HAVE_DECL___SYS_SIGLIST 1
5416 cat >>confdefs.h
<<_ACEOF
5417 #define HAVE_DECL___SYS_SIGLIST 0
5424 if test $ac_cv_have_decl___sys_siglist = yes; then
5426 cat >>confdefs.h
<<\_ACEOF
5427 #define sys_siglist __sys_siglist
5432 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
5433 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
5434 if test "${ac_cv_header_sys_wait_h+set}" = set; then
5435 echo $ECHO_N "(cached) $ECHO_C" >&6
5437 cat >conftest.
$ac_ext <<_ACEOF
5438 #line $LINENO "configure"
5441 cat confdefs.h
>>conftest.
$ac_ext
5442 cat >>conftest.
$ac_ext <<_ACEOF
5443 /* end confdefs.h. */
5444 #include <sys/types.h>
5445 #include <sys/wait.h>
5447 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
5450 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5458 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5463 rm -f conftest.
$ac_objext
5464 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5465 (eval $ac_compile) 2>&5
5467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5468 (exit $ac_status); } &&
5469 { ac_try
='test -s conftest.$ac_objext'
5470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5474 (exit $ac_status); }; }; then
5475 ac_cv_header_sys_wait_h
=yes
5477 echo "$as_me: failed program was:" >&5
5478 sed 's/^/| /' conftest.
$ac_ext >&5
5480 ac_cv_header_sys_wait_h
=no
5482 rm -f conftest.
$ac_objext conftest.
$ac_ext
5484 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
5485 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
5486 if test $ac_cv_header_sys_wait_h = yes; then
5488 cat >>confdefs.h
<<\_ACEOF
5489 #define HAVE_SYS_WAIT_H 1
5495 echo "$as_me:$LINENO: checking for struct utimbuf" >&5
5496 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6
5497 if test "${emacs_cv_struct_utimbuf+set}" = set; then
5498 echo $ECHO_N "(cached) $ECHO_C" >&6
5500 cat >conftest.
$ac_ext <<_ACEOF
5501 #line $LINENO "configure"
5504 cat confdefs.h
>>conftest.
$ac_ext
5505 cat >>conftest.
$ac_ext <<_ACEOF
5506 /* end confdefs.h. */
5507 #ifdef TIME_WITH_SYS_TIME
5508 #include <sys/time.h>
5511 #ifdef HAVE_SYS_TIME_H
5512 #include <sys/time.h>
5523 static struct utimbuf x; x.actime = x.modtime;
5528 rm -f conftest.
$ac_objext
5529 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5530 (eval $ac_compile) 2>&5
5532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5533 (exit $ac_status); } &&
5534 { ac_try
='test -s conftest.$ac_objext'
5535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5539 (exit $ac_status); }; }; then
5540 emacs_cv_struct_utimbuf
=yes
5542 echo "$as_me: failed program was:" >&5
5543 sed 's/^/| /' conftest.
$ac_ext >&5
5545 emacs_cv_struct_utimbuf
=no
5547 rm -f conftest.
$ac_objext conftest.
$ac_ext
5549 echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
5550 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6
5551 if test $emacs_cv_struct_utimbuf = yes; then
5553 cat >>confdefs.h
<<\_ACEOF
5554 #define HAVE_STRUCT_UTIMBUF 1
5559 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
5560 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
5561 if test "${ac_cv_type_signal+set}" = set; then
5562 echo $ECHO_N "(cached) $ECHO_C" >&6
5564 cat >conftest.
$ac_ext <<_ACEOF
5565 #line $LINENO "configure"
5568 cat confdefs.h
>>conftest.
$ac_ext
5569 cat >>conftest.
$ac_ext <<_ACEOF
5570 /* end confdefs.h. */
5571 #include <sys/types.h>
5577 extern "C" void (*signal (int, void (*)(int)))(int);
5579 void (*signal ()) ();
5590 rm -f conftest.
$ac_objext
5591 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5592 (eval $ac_compile) 2>&5
5594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5595 (exit $ac_status); } &&
5596 { ac_try
='test -s conftest.$ac_objext'
5597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5601 (exit $ac_status); }; }; then
5602 ac_cv_type_signal
=void
5604 echo "$as_me: failed program was:" >&5
5605 sed 's/^/| /' conftest.
$ac_ext >&5
5607 ac_cv_type_signal
=int
5609 rm -f conftest.
$ac_objext conftest.
$ac_ext
5611 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
5612 echo "${ECHO_T}$ac_cv_type_signal" >&6
5614 cat >>confdefs.h
<<_ACEOF
5615 #define RETSIGTYPE $ac_cv_type_signal
5620 echo "$as_me:$LINENO: checking for speed_t" >&5
5621 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6
5622 if test "${emacs_cv_speed_t+set}" = set; then
5623 echo $ECHO_N "(cached) $ECHO_C" >&6
5625 cat >conftest.
$ac_ext <<_ACEOF
5626 #line $LINENO "configure"
5629 cat confdefs.h
>>conftest.
$ac_ext
5630 cat >>conftest.
$ac_ext <<_ACEOF
5631 /* end confdefs.h. */
5632 #include <termios.h>
5641 rm -f conftest.
$ac_objext
5642 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5643 (eval $ac_compile) 2>&5
5645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5646 (exit $ac_status); } &&
5647 { ac_try
='test -s conftest.$ac_objext'
5648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5652 (exit $ac_status); }; }; then
5653 emacs_cv_speed_t
=yes
5655 echo "$as_me: failed program was:" >&5
5656 sed 's/^/| /' conftest.
$ac_ext >&5
5660 rm -f conftest.
$ac_objext conftest.
$ac_ext
5662 echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
5663 echo "${ECHO_T}$emacs_cv_speed_t" >&6
5664 if test $emacs_cv_speed_t = yes; then
5666 cat >>confdefs.h
<<\_ACEOF
5667 #define HAVE_SPEED_T 1
5672 echo "$as_me:$LINENO: checking for struct timeval" >&5
5673 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6
5674 if test "${emacs_cv_struct_timeval+set}" = set; then
5675 echo $ECHO_N "(cached) $ECHO_C" >&6
5677 cat >conftest.
$ac_ext <<_ACEOF
5678 #line $LINENO "configure"
5681 cat confdefs.h
>>conftest.
$ac_ext
5682 cat >>conftest.
$ac_ext <<_ACEOF
5683 /* end confdefs.h. */
5684 #ifdef TIME_WITH_SYS_TIME
5685 #include <sys/time.h>
5688 #ifdef HAVE_SYS_TIME_H
5689 #include <sys/time.h>
5697 static struct timeval x; x.tv_sec = x.tv_usec;
5702 rm -f conftest.
$ac_objext
5703 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5704 (eval $ac_compile) 2>&5
5706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5707 (exit $ac_status); } &&
5708 { ac_try
='test -s conftest.$ac_objext'
5709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5713 (exit $ac_status); }; }; then
5714 emacs_cv_struct_timeval
=yes
5716 echo "$as_me: failed program was:" >&5
5717 sed 's/^/| /' conftest.
$ac_ext >&5
5719 emacs_cv_struct_timeval
=no
5721 rm -f conftest.
$ac_objext conftest.
$ac_ext
5723 echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
5724 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6
5725 HAVE_TIMEVAL
=$emacs_cv_struct_timeval
5726 if test $emacs_cv_struct_timeval = yes; then
5728 cat >>confdefs.h
<<\_ACEOF
5729 #define HAVE_TIMEVAL 1
5734 echo "$as_me:$LINENO: checking for struct exception" >&5
5735 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6
5736 if test "${emacs_cv_struct_exception+set}" = set; then
5737 echo $ECHO_N "(cached) $ECHO_C" >&6
5739 cat >conftest.
$ac_ext <<_ACEOF
5740 #line $LINENO "configure"
5743 cat confdefs.h
>>conftest.
$ac_ext
5744 cat >>conftest.
$ac_ext <<_ACEOF
5745 /* end confdefs.h. */
5750 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
5755 rm -f conftest.
$ac_objext
5756 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5757 (eval $ac_compile) 2>&5
5759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5760 (exit $ac_status); } &&
5761 { ac_try
='test -s conftest.$ac_objext'
5762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5766 (exit $ac_status); }; }; then
5767 emacs_cv_struct_exception
=yes
5769 echo "$as_me: failed program was:" >&5
5770 sed 's/^/| /' conftest.
$ac_ext >&5
5772 emacs_cv_struct_exception
=no
5774 rm -f conftest.
$ac_objext conftest.
$ac_ext
5776 echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
5777 echo "${ECHO_T}$emacs_cv_struct_exception" >&6
5778 HAVE_EXCEPTION
=$emacs_cv_struct_exception
5779 if test $emacs_cv_struct_exception != yes; then
5781 cat >>confdefs.h
<<\_ACEOF
5782 #define NO_MATHERR 1
5787 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
5788 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
5789 if test "${ac_cv_struct_tm+set}" = set; then
5790 echo $ECHO_N "(cached) $ECHO_C" >&6
5792 cat >conftest.
$ac_ext <<_ACEOF
5793 #line $LINENO "configure"
5796 cat confdefs.h
>>conftest.
$ac_ext
5797 cat >>conftest.
$ac_ext <<_ACEOF
5798 /* end confdefs.h. */
5799 #include <sys/types.h>
5805 struct tm *tp; tp->tm_sec;
5810 rm -f conftest.
$ac_objext
5811 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5812 (eval $ac_compile) 2>&5
5814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5815 (exit $ac_status); } &&
5816 { ac_try
='test -s conftest.$ac_objext'
5817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5821 (exit $ac_status); }; }; then
5822 ac_cv_struct_tm
=time.h
5824 echo "$as_me: failed program was:" >&5
5825 sed 's/^/| /' conftest.
$ac_ext >&5
5827 ac_cv_struct_tm
=sys
/time.h
5829 rm -f conftest.
$ac_objext conftest.
$ac_ext
5831 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
5832 echo "${ECHO_T}$ac_cv_struct_tm" >&6
5833 if test $ac_cv_struct_tm = sys
/time.h
; then
5835 cat >>confdefs.h
<<\_ACEOF
5836 #define TM_IN_SYS_TIME 1
5841 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
5842 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
5843 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
5844 echo $ECHO_N "(cached) $ECHO_C" >&6
5846 cat >conftest.
$ac_ext <<_ACEOF
5847 #line $LINENO "configure"
5850 cat confdefs.h
>>conftest.
$ac_ext
5851 cat >>conftest.
$ac_ext <<_ACEOF
5852 /* end confdefs.h. */
5853 #include <sys/types.h>
5854 #include <$ac_cv_struct_tm>
5860 static struct tm ac_aggr;
5861 if (ac_aggr.tm_zone)
5867 rm -f conftest.
$ac_objext
5868 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5869 (eval $ac_compile) 2>&5
5871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5872 (exit $ac_status); } &&
5873 { ac_try
='test -s conftest.$ac_objext'
5874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5878 (exit $ac_status); }; }; then
5879 ac_cv_member_struct_tm_tm_zone
=yes
5881 echo "$as_me: failed program was:" >&5
5882 sed 's/^/| /' conftest.
$ac_ext >&5
5884 cat >conftest.
$ac_ext <<_ACEOF
5885 #line $LINENO "configure"
5888 cat confdefs.h
>>conftest.
$ac_ext
5889 cat >>conftest.
$ac_ext <<_ACEOF
5890 /* end confdefs.h. */
5891 #include <sys/types.h>
5892 #include <$ac_cv_struct_tm>
5898 static struct tm ac_aggr;
5899 if (sizeof ac_aggr.tm_zone)
5905 rm -f conftest.
$ac_objext
5906 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5907 (eval $ac_compile) 2>&5
5909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5910 (exit $ac_status); } &&
5911 { ac_try
='test -s conftest.$ac_objext'
5912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5916 (exit $ac_status); }; }; then
5917 ac_cv_member_struct_tm_tm_zone
=yes
5919 echo "$as_me: failed program was:" >&5
5920 sed 's/^/| /' conftest.
$ac_ext >&5
5922 ac_cv_member_struct_tm_tm_zone
=no
5924 rm -f conftest.
$ac_objext conftest.
$ac_ext
5926 rm -f conftest.
$ac_objext conftest.
$ac_ext
5928 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
5929 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
5930 if test $ac_cv_member_struct_tm_tm_zone = yes; then
5932 cat >>confdefs.h
<<_ACEOF
5933 #define HAVE_STRUCT_TM_TM_ZONE 1
5939 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
5941 cat >>confdefs.h
<<\_ACEOF
5942 #define HAVE_TM_ZONE 1
5946 echo "$as_me:$LINENO: checking for tzname" >&5
5947 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
5948 if test "${ac_cv_var_tzname+set}" = set; then
5949 echo $ECHO_N "(cached) $ECHO_C" >&6
5951 cat >conftest.
$ac_ext <<_ACEOF
5952 #line $LINENO "configure"
5955 cat confdefs.h
>>conftest.
$ac_ext
5956 cat >>conftest.
$ac_ext <<_ACEOF
5957 /* end confdefs.h. */
5959 #ifndef tzname /* For SGI. */
5960 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
5971 rm -f conftest.
$ac_objext conftest
$ac_exeext
5972 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5973 (eval $ac_link) 2>&5
5975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5976 (exit $ac_status); } &&
5977 { ac_try
='test -s conftest$ac_exeext'
5978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5982 (exit $ac_status); }; }; then
5983 ac_cv_var_tzname
=yes
5985 echo "$as_me: failed program was:" >&5
5986 sed 's/^/| /' conftest.
$ac_ext >&5
5990 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
5992 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
5993 echo "${ECHO_T}$ac_cv_var_tzname" >&6
5994 if test $ac_cv_var_tzname = yes; then
5996 cat >>confdefs.h
<<\_ACEOF
5997 #define HAVE_TZNAME 1
6003 echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
6004 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6
6005 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
6006 echo $ECHO_N "(cached) $ECHO_C" >&6
6008 cat >conftest.
$ac_ext <<_ACEOF
6009 #line $LINENO "configure"
6012 cat confdefs.h
>>conftest.
$ac_ext
6013 cat >>conftest.
$ac_ext <<_ACEOF
6014 /* end confdefs.h. */
6020 static struct tm ac_aggr;
6021 if (ac_aggr.tm_gmtoff)
6027 rm -f conftest.
$ac_objext
6028 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6029 (eval $ac_compile) 2>&5
6031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6032 (exit $ac_status); } &&
6033 { ac_try
='test -s conftest.$ac_objext'
6034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6038 (exit $ac_status); }; }; then
6039 ac_cv_member_struct_tm_tm_gmtoff
=yes
6041 echo "$as_me: failed program was:" >&5
6042 sed 's/^/| /' conftest.
$ac_ext >&5
6044 cat >conftest.
$ac_ext <<_ACEOF
6045 #line $LINENO "configure"
6048 cat confdefs.h
>>conftest.
$ac_ext
6049 cat >>conftest.
$ac_ext <<_ACEOF
6050 /* end confdefs.h. */
6056 static struct tm ac_aggr;
6057 if (sizeof ac_aggr.tm_gmtoff)
6063 rm -f conftest.
$ac_objext
6064 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6065 (eval $ac_compile) 2>&5
6067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6068 (exit $ac_status); } &&
6069 { ac_try
='test -s conftest.$ac_objext'
6070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6074 (exit $ac_status); }; }; then
6075 ac_cv_member_struct_tm_tm_gmtoff
=yes
6077 echo "$as_me: failed program was:" >&5
6078 sed 's/^/| /' conftest.
$ac_ext >&5
6080 ac_cv_member_struct_tm_tm_gmtoff
=no
6082 rm -f conftest.
$ac_objext conftest.
$ac_ext
6084 rm -f conftest.
$ac_objext conftest.
$ac_ext
6086 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
6087 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6
6088 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
6090 cat >>confdefs.h
<<\_ACEOF
6091 #define HAVE_TM_GMTOFF 1
6098 echo "$as_me:$LINENO: checking for function prototypes" >&5
6099 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
6100 if test "$ac_cv_prog_cc_stdc" != no
; then
6101 echo "$as_me:$LINENO: result: yes" >&5
6102 echo "${ECHO_T}yes" >&6
6104 cat >>confdefs.h
<<\_ACEOF
6105 #define PROTOTYPES 1
6109 cat >>confdefs.h
<<\_ACEOF
6110 #define __PROTOTYPES 1
6114 echo "$as_me:$LINENO: result: no" >&5
6115 echo "${ECHO_T}no" >&6
6118 echo "$as_me:$LINENO: checking for working volatile" >&5
6119 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
6120 if test "${ac_cv_c_volatile+set}" = set; then
6121 echo $ECHO_N "(cached) $ECHO_C" >&6
6123 cat >conftest.
$ac_ext <<_ACEOF
6124 #line $LINENO "configure"
6127 cat confdefs.h
>>conftest.
$ac_ext
6128 cat >>conftest.
$ac_ext <<_ACEOF
6129 /* end confdefs.h. */
6141 rm -f conftest.
$ac_objext
6142 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6143 (eval $ac_compile) 2>&5
6145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6146 (exit $ac_status); } &&
6147 { ac_try
='test -s conftest.$ac_objext'
6148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6152 (exit $ac_status); }; }; then
6153 ac_cv_c_volatile
=yes
6155 echo "$as_me: failed program was:" >&5
6156 sed 's/^/| /' conftest.
$ac_ext >&5
6160 rm -f conftest.
$ac_objext conftest.
$ac_ext
6162 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
6163 echo "${ECHO_T}$ac_cv_c_volatile" >&6
6164 if test $ac_cv_c_volatile = no
; then
6166 cat >>confdefs.h
<<\_ACEOF
6172 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
6173 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
6174 if test "${ac_cv_c_const+set}" = set; then
6175 echo $ECHO_N "(cached) $ECHO_C" >&6
6177 cat >conftest.
$ac_ext <<_ACEOF
6178 #line $LINENO "configure"
6181 cat confdefs.h
>>conftest.
$ac_ext
6182 cat >>conftest.
$ac_ext <<_ACEOF
6183 /* end confdefs.h. */
6188 /* FIXME: Include the comments suggested by Paul. */
6190 /* Ultrix mips cc rejects this. */
6191 typedef int charset[2];
6193 /* SunOS 4.1.1 cc rejects this. */
6194 char const *const *ccp;
6196 /* NEC SVR4.0.2 mips cc rejects this. */
6197 struct point {int x, y;};
6198 static struct point const zero = {0,0};
6199 /* AIX XL C 1.02.0.0 rejects this.
6200 It does not let you subtract one const X* pointer from another in
6201 an arm of an if-expression whose if-part is not a constant
6203 const char *g = "string";
6204 ccp = &g + (g ? g-g : 0);
6205 /* HPUX 7.0 cc rejects these. */
6208 ccp = (char const *const *) p;
6209 { /* SCO 3.2v4 cc rejects this. */
6211 char const *s = 0 ? (char *) 0 : (char const *) 0;
6215 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6217 const int *foo = &x[0];
6220 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6221 typedef const int *iptr;
6225 { /* AIX XL C 1.02.0.0 rejects this saying
6226 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6227 struct s { int j; const int *ap[3]; };
6228 struct s *b; b->j = 5;
6230 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6239 rm -f conftest.
$ac_objext
6240 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6241 (eval $ac_compile) 2>&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
6253 echo "$as_me: failed program was:" >&5
6254 sed 's/^/| /' conftest.
$ac_ext >&5
6258 rm -f conftest.
$ac_objext conftest.
$ac_ext
6260 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
6261 echo "${ECHO_T}$ac_cv_c_const" >&6
6262 if test $ac_cv_c_const = no
; then
6264 cat >>confdefs.h
<<\_ACEOF
6270 echo "$as_me:$LINENO: checking for void * support" >&5
6271 echo $ECHO_N "checking for void * support... $ECHO_C" >&6
6272 if test "${emacs_cv_void_star+set}" = set; then
6273 echo $ECHO_N "(cached) $ECHO_C" >&6
6275 cat >conftest.
$ac_ext <<_ACEOF
6276 #line $LINENO "configure"
6279 cat confdefs.h
>>conftest.
$ac_ext
6280 cat >>conftest.
$ac_ext <<_ACEOF
6281 /* end confdefs.h. */
6291 rm -f conftest.
$ac_objext
6292 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6293 (eval $ac_compile) 2>&5
6295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6296 (exit $ac_status); } &&
6297 { ac_try
='test -s conftest.$ac_objext'
6298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6302 (exit $ac_status); }; }; then
6303 emacs_cv_void_star
=yes
6305 echo "$as_me: failed program was:" >&5
6306 sed 's/^/| /' conftest.
$ac_ext >&5
6308 emacs_cv_void_star
=no
6310 rm -f conftest.
$ac_objext conftest.
$ac_ext
6312 echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
6313 echo "${ECHO_T}$emacs_cv_void_star" >&6
6314 if test $emacs_cv_void_star = yes; then
6315 cat >>confdefs.h
<<\_ACEOF
6316 #define POINTER_TYPE void
6320 cat >>confdefs.h
<<\_ACEOF
6321 #define POINTER_TYPE char
6328 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6329 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
6330 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y,./+-,__p_,'`
6331 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
6332 echo $ECHO_N "(cached) $ECHO_C" >&6
6334 cat >conftest.
make <<\_ACEOF
6336 @
echo 'ac_maketemp="$(MAKE)"'
6338 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6339 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
6340 if test -n "$ac_maketemp"; then
6341 eval ac_cv_prog_make_
${ac_make}_set
=yes
6343 eval ac_cv_prog_make_
${ac_make}_set
=no
6347 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
6348 echo "$as_me:$LINENO: result: yes" >&5
6349 echo "${ECHO_T}yes" >&6
6352 echo "$as_me:$LINENO: result: no" >&5
6353 echo "${ECHO_T}no" >&6
6354 SET_MAKE
="MAKE=${MAKE-make}"
6358 echo "$as_me:$LINENO: checking for long file names" >&5
6359 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
6360 if test "${ac_cv_sys_long_file_names+set}" = set; then
6361 echo $ECHO_N "(cached) $ECHO_C" >&6
6363 ac_cv_sys_long_file_names
=yes
6364 # Test for long file names in all the places we know might matter:
6365 # . the current directory, where building will happen
6366 # $prefix/lib where we will be installing things
6367 # $exec_prefix/lib likewise
6368 # eval it to expand exec_prefix.
6369 # $TMPDIR if set, where it might want to write temporary files
6370 # if $TMPDIR is not set:
6371 # /tmp where it might want to write temporary files
6374 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
6377 ac_tmpdirs
='/tmp /var/tmp /usr/tmp'
6379 for ac_dir
in .
$ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
6380 test -d $ac_dir ||
continue
6381 test -w $ac_dir ||
continue # It is less confusing to not echo anything here.
6382 ac_xdir
=$ac_dir/cf$$
6383 (umask 077 && mkdir
$ac_xdir 2>/dev
/null
) ||
continue
6384 ac_tf1
=$ac_xdir/conftest9012345
6385 ac_tf2
=$ac_xdir/conftest9012346
6386 (echo 1 >$ac_tf1) 2>/dev
/null
6387 (echo 2 >$ac_tf2) 2>/dev
/null
6388 ac_val
=`cat $ac_tf1 2>/dev/null`
6389 if test ! -f $ac_tf1 ||
test "$ac_val" != 1; then
6390 ac_cv_sys_long_file_names
=no
6391 rm -rf $ac_xdir 2>/dev
/null
6394 rm -rf $ac_xdir 2>/dev
/null
6397 echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
6398 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
6399 if test $ac_cv_sys_long_file_names = yes; then
6401 cat >>confdefs.h
<<\_ACEOF
6402 #define HAVE_LONG_FILE_NAMES 1
6408 #### Choose a window system.
6410 echo "$as_me:$LINENO: checking for X" >&5
6411 echo $ECHO_N "checking for X... $ECHO_C" >&6
6414 # Check whether --with-x or --without-x was given.
6415 if test "${with_x+set}" = set; then
6419 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
6420 if test "x$with_x" = xno
; then
6421 # The user explicitly disabled X.
6424 if test "x$x_includes" != xNONE
&& test "x$x_libraries" != xNONE
; then
6425 # Both variables are already set.
6428 if test "${ac_cv_have_x+set}" = set; then
6429 echo $ECHO_N "(cached) $ECHO_C" >&6
6431 # One or both of the vars are not set, and there is no cached value.
6432 ac_x_includes
=no ac_x_libraries
=no
6434 if mkdir conftest.dir
; then
6436 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
6437 cat >Imakefile
<<'_ACEOF'
6439 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
6441 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
6442 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6443 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
6444 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
6445 for ac_extension
in a so sl
; do
6446 if test ! -f $ac_im_usrlibdir/libX11.
$ac_extension &&
6447 test -f $ac_im_libdir/libX11.
$ac_extension; then
6448 ac_im_usrlibdir
=$ac_im_libdir; break
6451 # Screen out bogus values from the imake configuration. They are
6452 # bogus both because they are the default anyway, and because
6453 # using them would break gcc on systems where it needs fixed includes.
6454 case $ac_im_incroot in
6456 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
6458 case $ac_im_usrlibdir in
6460 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
6467 # Standard set of common directories for X headers.
6468 # Check X11 before X11Rn because it is often a symlink to the current release.
6480 /usr/local/X11/include
6481 /usr/local/X11R6/include
6482 /usr/local/X11R5/include
6483 /usr/local/X11R4/include
6485 /usr/local/include/X11
6486 /usr/local/include/X11R6
6487 /usr/local/include/X11R5
6488 /usr/local/include/X11R4
6492 /usr/XFree86/include/X11
6496 /usr/unsupported/include
6498 /usr/local/x11r5/include
6499 /usr/lpp/Xamples/include
6501 /usr/openwin/include
6502 /usr/openwin/share/include'
6504 if test "$ac_x_includes" = no
; then
6505 # Guess where to find include files, by looking for Intrinsic.h.
6506 # First, try using that file with no special directory specified.
6507 cat >conftest.
$ac_ext <<_ACEOF
6508 #line $LINENO "configure"
6511 cat confdefs.h
>>conftest.
$ac_ext
6512 cat >>conftest.
$ac_ext <<_ACEOF
6513 /* end confdefs.h. */
6514 #include <X11/Intrinsic.h>
6516 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6517 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6519 grep -v '^ *+' conftest.er1
>conftest.err
6521 cat conftest.err
>&5
6522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6523 (exit $ac_status); } >/dev
/null
; then
6524 if test -s conftest.err
; then
6525 ac_cpp_err
=$ac_c_preproc_warn_flag
6532 if test -z "$ac_cpp_err"; then
6533 # We can compile using X headers with no special include directory.
6536 echo "$as_me: failed program was:" >&5
6537 sed 's/^/| /' conftest.
$ac_ext >&5
6539 for ac_dir
in $ac_x_header_dirs; do
6540 if test -r "$ac_dir/X11/Intrinsic.h"; then
6541 ac_x_includes
=$ac_dir
6546 rm -f conftest.err conftest.
$ac_ext
6547 fi # $ac_x_includes = no
6549 if test "$ac_x_libraries" = no
; then
6550 # Check for the libraries.
6551 # See if we find them without any special options.
6552 # Don't add to $LIBS permanently.
6555 cat >conftest.
$ac_ext <<_ACEOF
6556 #line $LINENO "configure"
6559 cat confdefs.h
>>conftest.
$ac_ext
6560 cat >>conftest.
$ac_ext <<_ACEOF
6561 /* end confdefs.h. */
6562 #include <X11/Intrinsic.h>
6571 rm -f conftest.
$ac_objext conftest
$ac_exeext
6572 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6573 (eval $ac_link) 2>&5
6575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6576 (exit $ac_status); } &&
6577 { ac_try
='test -s conftest$ac_exeext'
6578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6582 (exit $ac_status); }; }; then
6584 # We can link X programs with no special library path.
6587 echo "$as_me: failed program was:" >&5
6588 sed 's/^/| /' conftest.
$ac_ext >&5
6591 for ac_dir
in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
6593 # Don't even attempt the hair of trying to link an X program!
6594 for ac_extension
in a so sl
; do
6595 if test -r $ac_dir/libXt.
$ac_extension; then
6596 ac_x_libraries
=$ac_dir
6602 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6603 fi # $ac_x_libraries = no
6605 if test "$ac_x_includes" = no ||
test "$ac_x_libraries" = no
; then
6606 # Didn't find X anywhere. Cache the known absence of X.
6607 ac_cv_have_x
="have_x=no"
6609 # Record where we found X for the cache.
6610 ac_cv_have_x
="have_x=yes \
6611 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
6616 eval "$ac_cv_have_x"
6619 if test "$have_x" != yes; then
6620 echo "$as_me:$LINENO: result: $have_x" >&5
6621 echo "${ECHO_T}$have_x" >&6
6624 # If each of the values was on the command line, it overrides each guess.
6625 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
6626 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
6627 # Update the cache value to reflect the command line values.
6628 ac_cv_have_x
="have_x=yes \
6629 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
6630 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
6631 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
6634 if test "$no_x" = yes; then
6640 if test "${x_libraries}" != NONE
&& test -n "${x_libraries}"; then
6641 LD_SWITCH_X_SITE
=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
6642 LD_SWITCH_X_SITE_AUX
=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
6643 x_default_search_path
=""
6644 for x_library
in `echo ${x_libraries} | sed -e "s/:/ /g"`; do
6646 ${x_library}/X11/%L/%T/%N%C%S:\
6647 ${x_library}/X11/%l/%T/%N%C%S:\
6648 ${x_library}/X11/%T/%N%C%S:\
6649 ${x_library}/X11/%L/%T/%N%S:\
6650 ${x_library}/X11/%l/%T/%N%S:\
6651 ${x_library}/X11/%T/%N%S"
6652 if test x
"${x_default_search_path}" = x
; then
6653 x_default_search_path
=${x_search_path}
6655 x_default_search_path
="${x_search_path}:${x_default_search_path}"
6659 if test "${x_includes}" != NONE
&& test -n "${x_includes}"; then
6660 C_SWITCH_X_SITE
=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
6663 if test x
"${x_includes}" = x
; then
6664 bitmapdir
=/usr
/include
/X11
/bitmaps
6666 # accumulate include directories that have X11 bitmap subdirectories
6668 for bmd
in `echo ${x_includes} | sed -e "s/:/ /g"`; do
6669 if test -d "${bmd}/X11/bitmaps"; then
6670 bmd_acc
="${bmd_acc}:${bmd}/X11/bitmaps"
6672 if test -d "${bmd}/bitmaps"; then
6673 bmd_acc
="${bmd_acc}:${bmd}/bitmaps"
6676 if test ${bmd_acc} != "dummyval"; then
6677 bitmapdir
=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
6681 case "${window_system}" in
6685 case "${with_x_toolkit}" in
6686 athena | lucid
) USE_X_TOOLKIT
=LUCID
;;
6687 motif
) USE_X_TOOLKIT
=MOTIF
;;
6688 no
) USE_X_TOOLKIT
=none
;;
6689 * ) USE_X_TOOLKIT
=maybe
;;
6699 ### If we're using X11, we should use the X menu package.
6702 yes ) HAVE_MENUS
=yes ;;
6705 if test "${opsys}" = "hpux9"; then
6706 case "${x_libraries}" in
6708 opsysfile
="s/hpux9-x11r4.h"
6713 if test "${opsys}" = "hpux9shr"; then
6714 case "${x_libraries}" in
6716 opsysfile
="s/hpux9shxr4.h"
6721 ### Compute the unexec source name from the object name.
6722 UNEXEC_SRC
="`echo ${unexec} | sed 's/\.o/.c/'`"
6724 # Do the opsystem or machine files prohibit the use of the GNU malloc?
6725 # Assume not, until told otherwise.
6728 echo "$as_me:$LINENO: checking for malloc_get_state" >&5
6729 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6
6730 if test "${ac_cv_func_malloc_get_state+set}" = set; then
6731 echo $ECHO_N "(cached) $ECHO_C" >&6
6733 cat >conftest.
$ac_ext <<_ACEOF
6734 #line $LINENO "configure"
6737 cat confdefs.h
>>conftest.
$ac_ext
6738 cat >>conftest.
$ac_ext <<_ACEOF
6739 /* end confdefs.h. */
6740 /* System header to define __stub macros and hopefully few prototypes,
6741 which can conflict with char malloc_get_state (); below. */
6743 /* Override any gcc2 internal prototype to avoid an error. */
6748 /* We use char because int might match the return type of a gcc2
6749 builtin and then its argument prototype would still apply. */
6750 char malloc_get_state ();
6751 /* The GNU C library defines this for functions which it implements
6752 to always fail with ENOSYS. Some functions are actually named
6753 something starting with __ and the normal name is an alias. */
6754 #if defined (__stub_malloc_get_state) || defined (__stub___malloc_get_state)
6757 char (*f) () = malloc_get_state;
6771 rm -f conftest.
$ac_objext conftest
$ac_exeext
6772 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6773 (eval $ac_link) 2>&5
6775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6776 (exit $ac_status); } &&
6777 { ac_try
='test -s conftest$ac_exeext'
6778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6782 (exit $ac_status); }; }; then
6783 ac_cv_func_malloc_get_state
=yes
6785 echo "$as_me: failed program was:" >&5
6786 sed 's/^/| /' conftest.
$ac_ext >&5
6788 ac_cv_func_malloc_get_state
=no
6790 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6792 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
6793 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6
6794 if test $ac_cv_func_malloc_get_state = yes; then
6800 echo "$as_me:$LINENO: checking for malloc_set_state" >&5
6801 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6
6802 if test "${ac_cv_func_malloc_set_state+set}" = set; then
6803 echo $ECHO_N "(cached) $ECHO_C" >&6
6805 cat >conftest.
$ac_ext <<_ACEOF
6806 #line $LINENO "configure"
6809 cat confdefs.h
>>conftest.
$ac_ext
6810 cat >>conftest.
$ac_ext <<_ACEOF
6811 /* end confdefs.h. */
6812 /* System header to define __stub macros and hopefully few prototypes,
6813 which can conflict with char malloc_set_state (); below. */
6815 /* Override any gcc2 internal prototype to avoid an error. */
6820 /* We use char because int might match the return type of a gcc2
6821 builtin and then its argument prototype would still apply. */
6822 char malloc_set_state ();
6823 /* The GNU C library defines this for functions which it implements
6824 to always fail with ENOSYS. Some functions are actually named
6825 something starting with __ and the normal name is an alias. */
6826 #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state)
6829 char (*f) () = malloc_set_state;
6843 rm -f conftest.
$ac_objext conftest
$ac_exeext
6844 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6845 (eval $ac_link) 2>&5
6847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6848 (exit $ac_status); } &&
6849 { ac_try
='test -s conftest$ac_exeext'
6850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6854 (exit $ac_status); }; }; then
6855 ac_cv_func_malloc_set_state
=yes
6857 echo "$as_me: failed program was:" >&5
6858 sed 's/^/| /' conftest.
$ac_ext >&5
6860 ac_cv_func_malloc_set_state
=no
6862 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6864 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
6865 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6
6866 if test $ac_cv_func_malloc_set_state = yes; then
6872 echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
6873 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6
6874 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
6875 echo $ECHO_N "(cached) $ECHO_C" >&6
6877 cat >conftest.
$ac_ext <<_ACEOF
6878 #line $LINENO "configure"
6881 cat confdefs.h
>>conftest.
$ac_ext
6882 cat >>conftest.
$ac_ext <<_ACEOF
6883 /* end confdefs.h. */
6884 extern void (* __after_morecore_hook)();
6888 __after_morecore_hook = 0
6893 rm -f conftest.
$ac_objext conftest
$ac_exeext
6894 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6895 (eval $ac_link) 2>&5
6897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6898 (exit $ac_status); } &&
6899 { ac_try
='test -s conftest$ac_exeext'
6900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6904 (exit $ac_status); }; }; then
6905 emacs_cv_var___after_morecore_hook
=yes
6907 echo "$as_me: failed program was:" >&5
6908 sed 's/^/| /' conftest.
$ac_ext >&5
6910 emacs_cv_var___after_morecore_hook
=no
6912 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6914 echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
6915 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6
6916 if test $emacs_cv_var___after_morecore_hook = no
; then
6919 if test "${system_malloc}" = "yes"; then
6922 (The GNU allocators don't work with this system configuration.)"
6924 if test "$doug_lea_malloc" = "yes" ; then
6925 if test "$GNU_MALLOC" = yes ; then
6927 (Using Doug Lea's new malloc from the GNU C Library.)"
6930 cat >>confdefs.h
<<\_ACEOF
6931 #define DOUG_LEA_MALLOC 1
6936 if test x
"${REL_ALLOC}" = x
; then
6937 REL_ALLOC
=${GNU_MALLOC}
6943 for ac_header
in stdlib.h unistd.h
6945 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6946 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6947 echo "$as_me:$LINENO: checking for $ac_header" >&5
6948 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6949 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6950 echo $ECHO_N "(cached) $ECHO_C" >&6
6952 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6953 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6955 # Is the header compilable?
6956 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6957 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6958 cat >conftest.
$ac_ext <<_ACEOF
6959 #line $LINENO "configure"
6962 cat confdefs.h
>>conftest.
$ac_ext
6963 cat >>conftest.
$ac_ext <<_ACEOF
6964 /* end confdefs.h. */
6965 $ac_includes_default
6966 #include <$ac_header>
6968 rm -f conftest.
$ac_objext
6969 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6970 (eval $ac_compile) 2>&5
6972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6973 (exit $ac_status); } &&
6974 { ac_try
='test -s conftest.$ac_objext'
6975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6979 (exit $ac_status); }; }; then
6980 ac_header_compiler
=yes
6982 echo "$as_me: failed program was:" >&5
6983 sed 's/^/| /' conftest.
$ac_ext >&5
6985 ac_header_compiler
=no
6987 rm -f conftest.
$ac_objext conftest.
$ac_ext
6988 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6989 echo "${ECHO_T}$ac_header_compiler" >&6
6991 # Is the header present?
6992 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6993 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6994 cat >conftest.
$ac_ext <<_ACEOF
6995 #line $LINENO "configure"
6998 cat confdefs.h
>>conftest.
$ac_ext
6999 cat >>conftest.
$ac_ext <<_ACEOF
7000 /* end confdefs.h. */
7001 #include <$ac_header>
7003 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7004 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7006 grep -v '^ *+' conftest.er1
>conftest.err
7008 cat conftest.err
>&5
7009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7010 (exit $ac_status); } >/dev
/null
; then
7011 if test -s conftest.err
; then
7012 ac_cpp_err
=$ac_c_preproc_warn_flag
7019 if test -z "$ac_cpp_err"; then
7020 ac_header_preproc
=yes
7022 echo "$as_me: failed program was:" >&5
7023 sed 's/^/| /' conftest.
$ac_ext >&5
7025 ac_header_preproc
=no
7027 rm -f conftest.err conftest.
$ac_ext
7028 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7029 echo "${ECHO_T}$ac_header_preproc" >&6
7031 # So? What about this header?
7032 case $ac_header_compiler:$ac_header_preproc in
7034 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7035 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7036 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7037 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7040 ## ------------------------------------ ##
7041 ## Report this to bug-autoconf@gnu.org. ##
7042 ## ------------------------------------ ##
7045 sed "s/^/$as_me: WARNING: /" >&2
7048 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7049 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7050 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7051 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7052 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7053 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7056 ## ------------------------------------ ##
7057 ## Report this to bug-autoconf@gnu.org. ##
7058 ## ------------------------------------ ##
7061 sed "s/^/$as_me: WARNING: /" >&2
7064 echo "$as_me:$LINENO: checking for $ac_header" >&5
7065 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7066 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7067 echo $ECHO_N "(cached) $ECHO_C" >&6
7069 eval "$as_ac_Header=$ac_header_preproc"
7071 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7072 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7075 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7076 cat >>confdefs.h
<<_ACEOF
7077 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7085 for ac_func
in getpagesize
7087 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7088 echo "$as_me:$LINENO: checking for $ac_func" >&5
7089 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7090 if eval "test \"\${$as_ac_var+set}\" = set"; then
7091 echo $ECHO_N "(cached) $ECHO_C" >&6
7093 cat >conftest.
$ac_ext <<_ACEOF
7094 #line $LINENO "configure"
7097 cat confdefs.h
>>conftest.
$ac_ext
7098 cat >>conftest.
$ac_ext <<_ACEOF
7099 /* end confdefs.h. */
7100 /* System header to define __stub macros and hopefully few prototypes,
7101 which can conflict with char $ac_func (); below. */
7103 /* Override any gcc2 internal prototype to avoid an error. */
7108 /* We use char because int might match the return type of a gcc2
7109 builtin and then its argument prototype would still apply. */
7111 /* The GNU C library defines this for functions which it implements
7112 to always fail with ENOSYS. Some functions are actually named
7113 something starting with __ and the normal name is an alias. */
7114 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7117 char (*f) () = $ac_func;
7131 rm -f conftest.
$ac_objext conftest
$ac_exeext
7132 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7133 (eval $ac_link) 2>&5
7135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7136 (exit $ac_status); } &&
7137 { ac_try
='test -s conftest$ac_exeext'
7138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7142 (exit $ac_status); }; }; then
7143 eval "$as_ac_var=yes"
7145 echo "$as_me: failed program was:" >&5
7146 sed 's/^/| /' conftest.
$ac_ext >&5
7148 eval "$as_ac_var=no"
7150 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7152 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7153 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7154 if test `eval echo '${'$as_ac_var'}'` = yes; then
7155 cat >>confdefs.h
<<_ACEOF
7156 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7162 echo "$as_me:$LINENO: checking for working mmap" >&5
7163 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
7164 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
7165 echo $ECHO_N "(cached) $ECHO_C" >&6
7167 if test "$cross_compiling" = yes; then
7168 ac_cv_func_mmap_fixed_mapped
=no
7170 cat >conftest.
$ac_ext <<_ACEOF
7171 #line $LINENO "configure"
7174 cat confdefs.h
>>conftest.
$ac_ext
7175 cat >>conftest.
$ac_ext <<_ACEOF
7176 /* end confdefs.h. */
7177 $ac_includes_default
7178 /* malloc might have been renamed as rpl_malloc. */
7181 /* Thanks to Mike Haertel and Jim Avera for this test.
7182 Here is a matrix of mmap possibilities:
7183 mmap private not fixed
7184 mmap private fixed at somewhere currently unmapped
7185 mmap private fixed at somewhere already mapped
7186 mmap shared not fixed
7187 mmap shared fixed at somewhere currently unmapped
7188 mmap shared fixed at somewhere already mapped
7189 For private mappings, we should verify that changes cannot be read()
7190 back from the file, nor mmap's back from the file at a different
7191 address. (There have been systems where private was not correctly
7192 implemented like the infamous i386 svr4.0, and systems where the
7193 VM page cache was not coherent with the file system buffer cache
7194 like early versions of FreeBSD and possibly contemporary NetBSD.)
7195 For shared mappings, we should conversely verify that changes get
7196 propagated back to all the places they're supposed to be.
7198 Grep wants private fixed already mapped.
7199 The main things grep needs to know about mmap are:
7200 * does it exist and is it safe to write into the mmap'd area
7201 * how to use it (BSD variants) */
7204 #include <sys/mman.h>
7206 #if !STDC_HEADERS && !HAVE_STDLIB_H
7210 /* This mess was copied from the GNU getpagesize.h. */
7211 #if !HAVE_GETPAGESIZE
7212 /* Assume that all systems that can run configure have sys/param.h. */
7213 # if !HAVE_SYS_PARAM_H
7214 # define HAVE_SYS_PARAM_H 1
7217 # ifdef _SC_PAGESIZE
7218 # define getpagesize() sysconf(_SC_PAGESIZE)
7219 # else /* no _SC_PAGESIZE */
7220 # if HAVE_SYS_PARAM_H
7221 # include <sys/param.h>
7222 # ifdef EXEC_PAGESIZE
7223 # define getpagesize() EXEC_PAGESIZE
7224 # else /* no EXEC_PAGESIZE */
7226 # define getpagesize() NBPG * CLSIZE
7229 # endif /* no CLSIZE */
7230 # else /* no NBPG */
7232 # define getpagesize() NBPC
7233 # else /* no NBPC */
7235 # define getpagesize() PAGESIZE
7236 # endif /* PAGESIZE */
7237 # endif /* no NBPC */
7238 # endif /* no NBPG */
7239 # endif /* no EXEC_PAGESIZE */
7240 # else /* no HAVE_SYS_PARAM_H */
7241 # define getpagesize() 8192 /* punt totally */
7242 # endif /* no HAVE_SYS_PARAM_H */
7243 # endif /* no _SC_PAGESIZE */
7245 #endif /* no HAVE_GETPAGESIZE */
7250 char *data, *data2, *data3;
7254 pagesize = getpagesize ();
7256 /* First, make a file with some known garbage in it. */
7257 data = (char *) malloc (pagesize);
7260 for (i = 0; i < pagesize; ++i)
7261 *(data + i) = rand ();
7263 fd = creat ("conftest.mmap", 0600);
7266 if (write (fd, data, pagesize) != pagesize)
7270 /* Next, try to mmap the file at a fixed address which already has
7271 something else allocated at it. If we can, also make sure that
7272 we see the same garbage. */
7273 fd = open ("conftest.mmap", O_RDWR);
7276 data2 = (char *) malloc (2 * pagesize);
7279 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
7280 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7281 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7283 for (i = 0; i < pagesize; ++i)
7284 if (*(data + i) != *(data2 + i))
7287 /* Finally, make sure that changes to the mapped area do not
7288 percolate back to the file as seen by read(). (This is a bug on
7289 some variants of i386 svr4.0.) */
7290 for (i = 0; i < pagesize; ++i)
7291 *(data2 + i) = *(data2 + i) + 1;
7292 data3 = (char *) malloc (pagesize);
7295 if (read (fd, data3, pagesize) != pagesize)
7297 for (i = 0; i < pagesize; ++i)
7298 if (*(data + i) != *(data3 + i))
7304 rm -f conftest
$ac_exeext
7305 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7306 (eval $ac_link) 2>&5
7308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7309 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7314 (exit $ac_status); }; }; then
7315 ac_cv_func_mmap_fixed_mapped
=yes
7317 echo "$as_me: program exited with status $ac_status" >&5
7318 echo "$as_me: failed program was:" >&5
7319 sed 's/^/| /' conftest.
$ac_ext >&5
7322 ac_cv_func_mmap_fixed_mapped
=no
7324 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7327 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
7328 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
7329 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7331 cat >>confdefs.h
<<\_ACEOF
7338 if test $use_mmap_for_buffers = yes; then
7342 LIBS
="$libsrc_libs $LIBS"
7345 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
7346 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
7347 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
7348 echo $ECHO_N "(cached) $ECHO_C" >&6
7350 ac_check_lib_save_LIBS
=$LIBS
7352 cat >conftest.
$ac_ext <<_ACEOF
7353 #line $LINENO "configure"
7356 cat confdefs.h
>>conftest.
$ac_ext
7357 cat >>conftest.
$ac_ext <<_ACEOF
7358 /* end confdefs.h. */
7360 /* Override any gcc2 internal prototype to avoid an error. */
7364 /* We use char because int might match the return type of a gcc2
7365 builtin and then its argument prototype would still apply. */
7375 rm -f conftest.
$ac_objext conftest
$ac_exeext
7376 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7377 (eval $ac_link) 2>&5
7379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7380 (exit $ac_status); } &&
7381 { ac_try
='test -s conftest$ac_exeext'
7382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7386 (exit $ac_status); }; }; then
7387 ac_cv_lib_dnet_dnet_ntoa
=yes
7389 echo "$as_me: failed program was:" >&5
7390 sed 's/^/| /' conftest.
$ac_ext >&5
7392 ac_cv_lib_dnet_dnet_ntoa
=no
7394 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7395 LIBS
=$ac_check_lib_save_LIBS
7397 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
7398 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
7399 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
7400 cat >>confdefs.h
<<_ACEOF
7401 #define HAVE_LIBDNET 1
7409 echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
7410 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6
7411 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
7412 echo $ECHO_N "(cached) $ECHO_C" >&6
7414 ac_check_lib_save_LIBS
=$LIBS
7416 cat >conftest.
$ac_ext <<_ACEOF
7417 #line $LINENO "configure"
7420 cat confdefs.h
>>conftest.
$ac_ext
7421 cat >>conftest.
$ac_ext <<_ACEOF
7422 /* end confdefs.h. */
7433 rm -f conftest.
$ac_objext conftest
$ac_exeext
7434 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7435 (eval $ac_link) 2>&5
7437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7438 (exit $ac_status); } &&
7439 { ac_try
='test -s conftest$ac_exeext'
7440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7444 (exit $ac_status); }; }; then
7445 ac_cv_lib_Xbsd_main
=yes
7447 echo "$as_me: failed program was:" >&5
7448 sed 's/^/| /' conftest.
$ac_ext >&5
7450 ac_cv_lib_Xbsd_main
=no
7452 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7453 LIBS
=$ac_check_lib_save_LIBS
7455 echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
7456 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6
7457 if test $ac_cv_lib_Xbsd_main = yes; then
7458 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -lXbsd"
7463 echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
7464 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6
7465 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
7466 echo $ECHO_N "(cached) $ECHO_C" >&6
7468 ac_check_lib_save_LIBS
=$LIBS
7469 LIBS
="-lpthreads $LIBS"
7470 cat >conftest.
$ac_ext <<_ACEOF
7471 #line $LINENO "configure"
7474 cat confdefs.h
>>conftest.
$ac_ext
7475 cat >>conftest.
$ac_ext <<_ACEOF
7476 /* end confdefs.h. */
7478 /* Override any gcc2 internal prototype to avoid an error. */
7482 /* We use char because int might match the return type of a gcc2
7483 builtin and then its argument prototype would still apply. */
7493 rm -f conftest.
$ac_objext conftest
$ac_exeext
7494 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7495 (eval $ac_link) 2>&5
7497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7498 (exit $ac_status); } &&
7499 { ac_try
='test -s conftest$ac_exeext'
7500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7504 (exit $ac_status); }; }; then
7505 ac_cv_lib_pthreads_cma_open
=yes
7507 echo "$as_me: failed program was:" >&5
7508 sed 's/^/| /' conftest.
$ac_ext >&5
7510 ac_cv_lib_pthreads_cma_open
=no
7512 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7513 LIBS
=$ac_check_lib_save_LIBS
7515 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
7516 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6
7517 if test $ac_cv_lib_pthreads_cma_open = yes; then
7518 cat >>confdefs.h
<<_ACEOF
7519 #define HAVE_LIBPTHREADS 1
7522 LIBS
="-lpthreads $LIBS"
7527 echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
7528 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6
7529 if test -d /usr
/X386
/include
; then
7531 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
7535 echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
7536 echo "${ECHO_T}$HAVE_XFREE386" >&6
7538 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
7539 # used for the tests that follow. We set them back to REAL_CFLAGS and
7540 # REAL_CPPFLAGS later on.
7542 REAL_CPPFLAGS
="$CPPFLAGS"
7544 if test "${HAVE_X11}" = "yes"; then
7545 DEFS
="$C_SWITCH_X_SITE $DEFS"
7546 LDFLAGS
="$LDFLAGS $LD_SWITCH_X_SITE"
7548 CFLAGS
="$C_SWITCH_X_SITE $CFLAGS"
7549 CPPFLAGS
="$C_SWITCH_X_SITE $CPPFLAGS"
7551 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
7552 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
7553 # but it's more convenient here to set LD_RUN_PATH
7554 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
7555 if test "${x_libraries}" != NONE
&& test -n "${x_libraries}"; then
7556 LD_RUN_PATH
=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
7560 if test "${opsys}" = "gnu-linux"; then
7561 echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
7562 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6
7563 cat >conftest.
$ac_ext <<_ACEOF
7564 #line $LINENO "configure"
7567 cat confdefs.h
>>conftest.
$ac_ext
7568 cat >>conftest.
$ac_ext <<_ACEOF
7569 /* end confdefs.h. */
7574 XOpenDisplay ("foo");
7579 rm -f conftest.
$ac_objext conftest
$ac_exeext
7580 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7581 (eval $ac_link) 2>&5
7583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7584 (exit $ac_status); } &&
7585 { ac_try
='test -s conftest$ac_exeext'
7586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7590 (exit $ac_status); }; }; then
7591 xlinux_first_failure
=no
7593 echo "$as_me: failed program was:" >&5
7594 sed 's/^/| /' conftest.
$ac_ext >&5
7596 xlinux_first_failure
=yes
7598 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7599 if test "${xlinux_first_failure}" = "yes"; then
7600 OLD_LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE"
7601 OLD_C_SWITCH_X_SITE
="$C_SWITCH_X_SITE"
7602 OLD_CPPFLAGS
="$CPPFLAGS"
7604 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -b i486-linuxaout"
7605 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE -b i486-linuxaout"
7606 CPPFLAGS
="$CPPFLAGS -b i486-linuxaout"
7607 LIBS
="$LIBS -b i486-linuxaout"
7608 cat >conftest.
$ac_ext <<_ACEOF
7609 #line $LINENO "configure"
7612 cat confdefs.h
>>conftest.
$ac_ext
7613 cat >>conftest.
$ac_ext <<_ACEOF
7614 /* end confdefs.h. */
7619 XOpenDisplay ("foo");
7624 rm -f conftest.
$ac_objext conftest
$ac_exeext
7625 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7626 (eval $ac_link) 2>&5
7628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7629 (exit $ac_status); } &&
7630 { ac_try
='test -s conftest$ac_exeext'
7631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7635 (exit $ac_status); }; }; then
7636 xlinux_second_failure
=no
7638 echo "$as_me: failed program was:" >&5
7639 sed 's/^/| /' conftest.
$ac_ext >&5
7641 xlinux_second_failure
=yes
7643 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7644 if test "${xlinux_second_failure}" = "yes"; then
7645 # If we get the same failure with -b, there is no use adding -b.
7646 # So take it out. This plays safe.
7647 LD_SWITCH_X_SITE
="$OLD_LD_SWITCH_X_SITE"
7648 C_SWITCH_X_SITE
="$OLD_C_SWITCH_X_SITE"
7649 CPPFLAGS
="$OLD_CPPFLAGS"
7651 echo "$as_me:$LINENO: result: no" >&5
7652 echo "${ECHO_T}no" >&6
7654 echo "$as_me:$LINENO: result: yes" >&5
7655 echo "${ECHO_T}yes" >&6
7658 echo "$as_me:$LINENO: result: no" >&5
7659 echo "${ECHO_T}no" >&6
7663 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
7664 # header files included from there.
7665 echo "$as_me:$LINENO: checking for Xkb" >&5
7666 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6
7667 cat >conftest.
$ac_ext <<_ACEOF
7668 #line $LINENO "configure"
7671 cat confdefs.h
>>conftest.
$ac_ext
7672 cat >>conftest.
$ac_ext <<_ACEOF
7673 /* end confdefs.h. */
7674 #include <X11/Xlib.h>
7675 #include <X11/XKBlib.h>
7679 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
7684 rm -f conftest.
$ac_objext conftest
$ac_exeext
7685 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7686 (eval $ac_link) 2>&5
7688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7689 (exit $ac_status); } &&
7690 { ac_try
='test -s conftest$ac_exeext'
7691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7695 (exit $ac_status); }; }; then
7698 echo "$as_me: failed program was:" >&5
7699 sed 's/^/| /' conftest.
$ac_ext >&5
7703 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7704 echo "$as_me:$LINENO: result: $emacs_xkb" >&5
7705 echo "${ECHO_T}$emacs_xkb" >&6
7706 if test $emacs_xkb = yes; then
7708 cat >>confdefs.h
<<\_ACEOF
7709 #define HAVE_XKBGETKEYBOARD 1
7718 for ac_func
in XrmSetDatabase XScreenResourceString \
7719 XScreenNumberOfScreen XSetWMProtocols
7721 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7722 echo "$as_me:$LINENO: checking for $ac_func" >&5
7723 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7724 if eval "test \"\${$as_ac_var+set}\" = set"; then
7725 echo $ECHO_N "(cached) $ECHO_C" >&6
7727 cat >conftest.
$ac_ext <<_ACEOF
7728 #line $LINENO "configure"
7731 cat confdefs.h
>>conftest.
$ac_ext
7732 cat >>conftest.
$ac_ext <<_ACEOF
7733 /* end confdefs.h. */
7734 /* System header to define __stub macros and hopefully few prototypes,
7735 which can conflict with char $ac_func (); below. */
7737 /* Override any gcc2 internal prototype to avoid an error. */
7742 /* We use char because int might match the return type of a gcc2
7743 builtin and then its argument prototype would still apply. */
7745 /* The GNU C library defines this for functions which it implements
7746 to always fail with ENOSYS. Some functions are actually named
7747 something starting with __ and the normal name is an alias. */
7748 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7751 char (*f) () = $ac_func;
7765 rm -f conftest.
$ac_objext conftest
$ac_exeext
7766 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7767 (eval $ac_link) 2>&5
7769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7770 (exit $ac_status); } &&
7771 { ac_try
='test -s conftest$ac_exeext'
7772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7776 (exit $ac_status); }; }; then
7777 eval "$as_ac_var=yes"
7779 echo "$as_me: failed program was:" >&5
7780 sed 's/^/| /' conftest.
$ac_ext >&5
7782 eval "$as_ac_var=no"
7784 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7786 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7787 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7788 if test `eval echo '${'$as_ac_var'}'` = yes; then
7789 cat >>confdefs.h
<<_ACEOF
7790 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7798 if test "${window_system}" = "x11"; then
7799 echo "$as_me:$LINENO: checking X11 version 6" >&5
7800 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6
7801 if test "${emacs_cv_x11_version_6+set}" = set; then
7802 echo $ECHO_N "(cached) $ECHO_C" >&6
7804 cat >conftest.
$ac_ext <<_ACEOF
7805 #line $LINENO "configure"
7808 cat confdefs.h
>>conftest.
$ac_ext
7809 cat >>conftest.
$ac_ext <<_ACEOF
7810 /* end confdefs.h. */
7811 #include <X11/Xlib.h>
7815 #if XlibSpecificationRelease < 6
7823 rm -f conftest.
$ac_objext conftest
$ac_exeext
7824 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7825 (eval $ac_link) 2>&5
7827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7828 (exit $ac_status); } &&
7829 { ac_try
='test -s conftest$ac_exeext'
7830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7834 (exit $ac_status); }; }; then
7835 emacs_cv_x11_version_6
=yes
7837 echo "$as_me: failed program was:" >&5
7838 sed 's/^/| /' conftest.
$ac_ext >&5
7840 emacs_cv_x11_version_6
=no
7842 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7845 if test $emacs_cv_x11_version_6 = yes; then
7846 echo "$as_me:$LINENO: result: 6 or newer" >&5
7847 echo "${ECHO_T}6 or newer" >&6
7849 cat >>confdefs.h
<<\_ACEOF
7850 #define HAVE_X11R6 1
7854 echo "$as_me:$LINENO: result: before 6" >&5
7855 echo "${ECHO_T}before 6" >&6
7859 if test "${window_system}" = "x11"; then
7860 echo "$as_me:$LINENO: checking X11 version 5" >&5
7861 echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6
7862 if test "${emacs_cv_x11_version_5+set}" = set; then
7863 echo $ECHO_N "(cached) $ECHO_C" >&6
7865 cat >conftest.
$ac_ext <<_ACEOF
7866 #line $LINENO "configure"
7869 cat confdefs.h
>>conftest.
$ac_ext
7870 cat >>conftest.
$ac_ext <<_ACEOF
7871 /* end confdefs.h. */
7872 #include <X11/Xlib.h>
7876 #if XlibSpecificationRelease < 5
7884 rm -f conftest.
$ac_objext conftest
$ac_exeext
7885 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7886 (eval $ac_link) 2>&5
7888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7889 (exit $ac_status); } &&
7890 { ac_try
='test -s conftest$ac_exeext'
7891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7895 (exit $ac_status); }; }; then
7896 emacs_cv_x11_version_5
=yes
7898 echo "$as_me: failed program was:" >&5
7899 sed 's/^/| /' conftest.
$ac_ext >&5
7901 emacs_cv_x11_version_5
=no
7903 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7906 if test $emacs_cv_x11_version_5 = yes; then
7907 echo "$as_me:$LINENO: result: 5 or newer" >&5
7908 echo "${ECHO_T}5 or newer" >&6
7911 cat >>confdefs.h
<<\_ACEOF
7912 #define HAVE_X11R5 1
7917 echo "$as_me:$LINENO: result: before 5" >&5
7918 echo "${ECHO_T}before 5" >&6
7922 if test x
"${USE_X_TOOLKIT}" = xmaybe
; then
7923 if test x
"${HAVE_X11R5}" = xyes
; then
7924 echo "$as_me:$LINENO: checking X11 version 5 with Xaw" >&5
7925 echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6
7926 if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then
7927 echo $ECHO_N "(cached) $ECHO_C" >&6
7929 cat >conftest.
$ac_ext <<_ACEOF
7930 #line $LINENO "configure"
7933 cat confdefs.h
>>conftest.
$ac_ext
7934 cat >>conftest.
$ac_ext <<_ACEOF
7935 /* end confdefs.h. */
7937 #include <X11/Intrinsic.h>
7938 #include <X11/Xaw/Simple.h>
7947 rm -f conftest.
$ac_objext conftest
$ac_exeext
7948 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7949 (eval $ac_link) 2>&5
7951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7952 (exit $ac_status); } &&
7953 { ac_try
='test -s conftest$ac_exeext'
7954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7958 (exit $ac_status); }; }; then
7959 emacs_cv_x11_version_5_with_xaw
=yes
7961 echo "$as_me: failed program was:" >&5
7962 sed 's/^/| /' conftest.
$ac_ext >&5
7964 emacs_cv_x11_version_5_with_xaw
=no
7966 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7969 if test $emacs_cv_x11_version_5_with_xaw = yes; then
7970 echo "$as_me:$LINENO: result: 5 or newer, with Xaw; use toolkit by default" >&5
7971 echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6
7974 echo "$as_me:$LINENO: result: before 5 or no Xaw; do not use toolkit by default" >&5
7975 echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6
7983 X_TOOLKIT_TYPE
=$USE_X_TOOLKIT
7985 if test "${USE_X_TOOLKIT}" != "none"; then
7986 echo "$as_me:$LINENO: checking X11 toolkit version" >&5
7987 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6
7988 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
7989 echo $ECHO_N "(cached) $ECHO_C" >&6
7991 cat >conftest.
$ac_ext <<_ACEOF
7992 #line $LINENO "configure"
7995 cat confdefs.h
>>conftest.
$ac_ext
7996 cat >>conftest.
$ac_ext <<_ACEOF
7997 /* end confdefs.h. */
7998 #include <X11/Intrinsic.h>
8002 #if XtSpecificationRelease < 6
8010 rm -f conftest.
$ac_objext conftest
$ac_exeext
8011 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8012 (eval $ac_link) 2>&5
8014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8015 (exit $ac_status); } &&
8016 { ac_try
='test -s conftest$ac_exeext'
8017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8021 (exit $ac_status); }; }; then
8022 emacs_cv_x11_toolkit_version_6
=yes
8024 echo "$as_me: failed program was:" >&5
8025 sed 's/^/| /' conftest.
$ac_ext >&5
8027 emacs_cv_x11_toolkit_version_6
=no
8029 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8032 HAVE_X11XTR6
=$emacs_cv_x11_toolkit_version_6
8033 if test $emacs_cv_x11_toolkit_version_6 = yes; then
8034 echo "$as_me:$LINENO: result: 6 or newer" >&5
8035 echo "${ECHO_T}6 or newer" >&6
8037 cat >>confdefs.h
<<\_ACEOF
8038 #define HAVE_X11XTR6 1
8042 echo "$as_me:$LINENO: result: before 6" >&5
8043 echo "${ECHO_T}before 6" >&6
8047 if test x
$HAVE_X11XTR6 = xyes
; then
8048 LIBS
="-lXt -lSM -lICE $LIBS"
8053 echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
8054 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6
8055 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
8056 echo $ECHO_N "(cached) $ECHO_C" >&6
8058 ac_check_lib_save_LIBS
=$LIBS
8060 cat >conftest.
$ac_ext <<_ACEOF
8061 #line $LINENO "configure"
8064 cat confdefs.h
>>conftest.
$ac_ext
8065 cat >>conftest.
$ac_ext <<_ACEOF
8066 /* end confdefs.h. */
8068 /* Override any gcc2 internal prototype to avoid an error. */
8072 /* We use char because int might match the return type of a gcc2
8073 builtin and then its argument prototype would still apply. */
8074 char XmuConvertStandardSelection ();
8078 XmuConvertStandardSelection ();
8083 rm -f conftest.
$ac_objext conftest
$ac_exeext
8084 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8085 (eval $ac_link) 2>&5
8087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8088 (exit $ac_status); } &&
8089 { ac_try
='test -s conftest$ac_exeext'
8090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8094 (exit $ac_status); }; }; then
8095 ac_cv_lib_Xmu_XmuConvertStandardSelection
=yes
8097 echo "$as_me: failed program was:" >&5
8098 sed 's/^/| /' conftest.
$ac_ext >&5
8100 ac_cv_lib_Xmu_XmuConvertStandardSelection
=no
8102 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8103 LIBS
=$ac_check_lib_save_LIBS
8105 echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
8106 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6
8107 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
8108 cat >>confdefs.h
<<_ACEOF
8109 #define HAVE_LIBXMU 1
8116 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no
&& LIBS
="$OLDLIBS"
8119 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
8120 if test "${HAVE_X11}" = "yes"; then
8121 if test "${USE_X_TOOLKIT}" != "none"; then
8123 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
8124 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
8125 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
8126 echo $ECHO_N "(cached) $ECHO_C" >&6
8128 ac_check_lib_save_LIBS
=$LIBS
8130 cat >conftest.
$ac_ext <<_ACEOF
8131 #line $LINENO "configure"
8134 cat confdefs.h
>>conftest.
$ac_ext
8135 cat >>conftest.
$ac_ext <<_ACEOF
8136 /* end confdefs.h. */
8138 /* Override any gcc2 internal prototype to avoid an error. */
8142 /* We use char because int might match the return type of a gcc2
8143 builtin and then its argument prototype would still apply. */
8144 char XShapeQueryExtension ();
8148 XShapeQueryExtension ();
8153 rm -f conftest.
$ac_objext conftest
$ac_exeext
8154 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8155 (eval $ac_link) 2>&5
8157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8158 (exit $ac_status); } &&
8159 { ac_try
='test -s conftest$ac_exeext'
8160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8164 (exit $ac_status); }; }; then
8165 ac_cv_lib_Xext_XShapeQueryExtension
=yes
8167 echo "$as_me: failed program was:" >&5
8168 sed 's/^/| /' conftest.
$ac_ext >&5
8170 ac_cv_lib_Xext_XShapeQueryExtension
=no
8172 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8173 LIBS
=$ac_check_lib_save_LIBS
8175 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
8176 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
8177 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
8178 cat >>confdefs.h
<<_ACEOF
8179 #define HAVE_LIBXEXT 1
8189 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
8190 echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
8191 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6
8192 if test "${emacs_cv_lesstif+set}" = set; then
8193 echo $ECHO_N "(cached) $ECHO_C" >&6
8195 # We put this in CFLAGS temporarily to precede other -I options
8196 # that might be in CFLAGS temporarily.
8197 # We put this in CPPFLAGS where it precedes the other -I options.
8198 OLD_CPPFLAGS
=$CPPFLAGS
8200 CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
8201 CFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
8202 cat >conftest.
$ac_ext <<_ACEOF
8203 #line $LINENO "configure"
8206 cat confdefs.h
>>conftest.
$ac_ext
8207 cat >>conftest.
$ac_ext <<_ACEOF
8208 /* end confdefs.h. */
8209 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
8218 rm -f conftest.
$ac_objext
8219 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8220 (eval $ac_compile) 2>&5
8222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8223 (exit $ac_status); } &&
8224 { ac_try
='test -s conftest.$ac_objext'
8225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8229 (exit $ac_status); }; }; then
8230 emacs_cv_lesstif
=yes
8232 echo "$as_me: failed program was:" >&5
8233 sed 's/^/| /' conftest.
$ac_ext >&5
8237 rm -f conftest.
$ac_objext conftest.
$ac_ext
8239 echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
8240 echo "${ECHO_T}$emacs_cv_lesstif" >&6
8241 if test $emacs_cv_lesstif = yes; then
8242 # Make sure this -I option remains in CPPFLAGS after it is set
8243 # back to REAL_CPPFLAGS.
8244 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
8245 # have those other -I options anyway. Ultimately, having this
8246 # directory ultimately in CPPFLAGS will be enough.
8247 REAL_CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
8248 LDFLAGS
="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
8251 CPPFLAGS
=$OLD_CPPFLAGS
8253 echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
8254 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6
8255 if test "${emacs_cv_motif_version_2_1+set}" = set; then
8256 echo $ECHO_N "(cached) $ECHO_C" >&6
8258 cat >conftest.
$ac_ext <<_ACEOF
8259 #line $LINENO "configure"
8262 cat confdefs.h
>>conftest.
$ac_ext
8263 cat >>conftest.
$ac_ext <<_ACEOF
8264 /* end confdefs.h. */
8269 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
8272 Motif version prior to 2.1.
8278 rm -f conftest.
$ac_objext
8279 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8280 (eval $ac_compile) 2>&5
8282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8283 (exit $ac_status); } &&
8284 { ac_try
='test -s conftest.$ac_objext'
8285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8289 (exit $ac_status); }; }; then
8290 emacs_cv_motif_version_2_1
=yes
8292 echo "$as_me: failed program was:" >&5
8293 sed 's/^/| /' conftest.
$ac_ext >&5
8295 emacs_cv_motif_version_2_1
=no
8297 rm -f conftest.
$ac_objext conftest.
$ac_ext
8299 echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
8300 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6
8301 HAVE_MOTIF_2_1
=$emacs_cv_motif_version_2_1
8302 if test $emacs_cv_motif_version_2_1 = yes; then
8305 cat >>confdefs.h
<<\_ACEOF
8306 #define HAVE_MOTIF_2_1 1
8309 echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
8310 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6
8311 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
8312 echo $ECHO_N "(cached) $ECHO_C" >&6
8314 ac_check_lib_save_LIBS
=$LIBS
8316 cat >conftest.
$ac_ext <<_ACEOF
8317 #line $LINENO "configure"
8320 cat confdefs.h
>>conftest.
$ac_ext
8321 cat >>conftest.
$ac_ext <<_ACEOF
8322 /* end confdefs.h. */
8324 /* Override any gcc2 internal prototype to avoid an error. */
8328 /* We use char because int might match the return type of a gcc2
8329 builtin and then its argument prototype would still apply. */
8330 char XpCreateContext ();
8339 rm -f conftest.
$ac_objext conftest
$ac_exeext
8340 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8341 (eval $ac_link) 2>&5
8343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8344 (exit $ac_status); } &&
8345 { ac_try
='test -s conftest$ac_exeext'
8346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8350 (exit $ac_status); }; }; then
8351 ac_cv_lib_Xp_XpCreateContext
=yes
8353 echo "$as_me: failed program was:" >&5
8354 sed 's/^/| /' conftest.
$ac_ext >&5
8356 ac_cv_lib_Xp_XpCreateContext
=no
8358 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8359 LIBS
=$ac_check_lib_save_LIBS
8361 echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
8362 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6
8363 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
8367 if test ${HAVE_LIBXP} = yes; then
8369 cat >>confdefs.h
<<\_ACEOF
8370 #define HAVE_LIBXP 1
8377 ### Is -lXaw3d available?
8379 if test "${HAVE_X11}" = "yes"; then
8380 if test "${USE_X_TOOLKIT}" != "none"; then
8381 echo "$as_me:$LINENO: checking for X11/Xaw3d/Scrollbar.h" >&5
8382 echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6
8383 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
8384 echo $ECHO_N "(cached) $ECHO_C" >&6
8386 cat >conftest.
$ac_ext <<_ACEOF
8387 #line $LINENO "configure"
8390 cat confdefs.h
>>conftest.
$ac_ext
8391 cat >>conftest.
$ac_ext <<_ACEOF
8392 /* end confdefs.h. */
8393 #include <X11/Xaw3d/Scrollbar.h>
8395 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8396 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8398 grep -v '^ *+' conftest.er1
>conftest.err
8400 cat conftest.err
>&5
8401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8402 (exit $ac_status); } >/dev
/null
; then
8403 if test -s conftest.err
; then
8404 ac_cpp_err
=$ac_c_preproc_warn_flag
8411 if test -z "$ac_cpp_err"; then
8412 ac_cv_header_X11_Xaw3d_Scrollbar_h
=yes
8414 echo "$as_me: failed program was:" >&5
8415 sed 's/^/| /' conftest.
$ac_ext >&5
8417 ac_cv_header_X11_Xaw3d_Scrollbar_h
=no
8419 rm -f conftest.err conftest.
$ac_ext
8421 echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
8422 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6
8423 if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then
8424 echo "$as_me:$LINENO: checking for XawScrollbarSetThumb in -lXaw3d" >&5
8425 echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6
8426 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then
8427 echo $ECHO_N "(cached) $ECHO_C" >&6
8429 ac_check_lib_save_LIBS
=$LIBS
8430 LIBS
="-lXaw3d $LIBS"
8431 cat >conftest.
$ac_ext <<_ACEOF
8432 #line $LINENO "configure"
8435 cat confdefs.h
>>conftest.
$ac_ext
8436 cat >>conftest.
$ac_ext <<_ACEOF
8437 /* end confdefs.h. */
8439 /* Override any gcc2 internal prototype to avoid an error. */
8443 /* We use char because int might match the return type of a gcc2
8444 builtin and then its argument prototype would still apply. */
8445 char XawScrollbarSetThumb ();
8449 XawScrollbarSetThumb ();
8454 rm -f conftest.
$ac_objext conftest
$ac_exeext
8455 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8456 (eval $ac_link) 2>&5
8458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8459 (exit $ac_status); } &&
8460 { ac_try
='test -s conftest$ac_exeext'
8461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8465 (exit $ac_status); }; }; then
8466 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=yes
8468 echo "$as_me: failed program was:" >&5
8469 sed 's/^/| /' conftest.
$ac_ext >&5
8471 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=no
8473 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8474 LIBS
=$ac_check_lib_save_LIBS
8476 echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
8477 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6
8478 if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then
8485 if test "${HAVE_XAW3D}" = "yes"; then
8487 cat >>confdefs.h
<<\_ACEOF
8488 #define HAVE_XAW3D 1
8497 USE_TOOLKIT_SCROLL_BARS
=no
8498 if test "${with_toolkit_scroll_bars}" != "no"; then
8499 if test "${USE_X_TOOLKIT}" != "none"; then
8500 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
8501 cat >>confdefs.h
<<\_ACEOF
8502 #define USE_TOOLKIT_SCROLL_BARS 1
8506 USE_TOOLKIT_SCROLL_BARS
=yes
8507 elif test "${HAVE_XAW3D}" = "yes"; then
8508 cat >>confdefs.h
<<\_ACEOF
8509 #define USE_TOOLKIT_SCROLL_BARS 1
8512 USE_TOOLKIT_SCROLL_BARS
=yes
8518 if test "${with_xim}" != "no"; then
8520 cat >>confdefs.h
<<\_ACEOF
8526 ### Use -lXpm if available, unless `--with-xpm=no'.
8528 if test "${HAVE_X11}" = "yes"; then
8529 if test "${with_xpm}" != "no"; then
8530 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
8531 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
8532 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
8533 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
8534 echo $ECHO_N "(cached) $ECHO_C" >&6
8536 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
8537 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
8539 # Is the header compilable?
8540 echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
8541 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6
8542 cat >conftest.
$ac_ext <<_ACEOF
8543 #line $LINENO "configure"
8546 cat confdefs.h
>>conftest.
$ac_ext
8547 cat >>conftest.
$ac_ext <<_ACEOF
8548 /* end confdefs.h. */
8549 $ac_includes_default
8550 #include <X11/xpm.h>
8552 rm -f conftest.
$ac_objext
8553 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8554 (eval $ac_compile) 2>&5
8556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8557 (exit $ac_status); } &&
8558 { ac_try
='test -s conftest.$ac_objext'
8559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8563 (exit $ac_status); }; }; then
8564 ac_header_compiler
=yes
8566 echo "$as_me: failed program was:" >&5
8567 sed 's/^/| /' conftest.
$ac_ext >&5
8569 ac_header_compiler
=no
8571 rm -f conftest.
$ac_objext conftest.
$ac_ext
8572 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8573 echo "${ECHO_T}$ac_header_compiler" >&6
8575 # Is the header present?
8576 echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
8577 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6
8578 cat >conftest.
$ac_ext <<_ACEOF
8579 #line $LINENO "configure"
8582 cat confdefs.h
>>conftest.
$ac_ext
8583 cat >>conftest.
$ac_ext <<_ACEOF
8584 /* end confdefs.h. */
8585 #include <X11/xpm.h>
8587 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8588 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8590 grep -v '^ *+' conftest.er1
>conftest.err
8592 cat conftest.err
>&5
8593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8594 (exit $ac_status); } >/dev
/null
; then
8595 if test -s conftest.err
; then
8596 ac_cpp_err
=$ac_c_preproc_warn_flag
8603 if test -z "$ac_cpp_err"; then
8604 ac_header_preproc
=yes
8606 echo "$as_me: failed program was:" >&5
8607 sed 's/^/| /' conftest.
$ac_ext >&5
8609 ac_header_preproc
=no
8611 rm -f conftest.err conftest.
$ac_ext
8612 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8613 echo "${ECHO_T}$ac_header_preproc" >&6
8615 # So? What about this header?
8616 case $ac_header_compiler:$ac_header_preproc in
8618 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
8619 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8620 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
8621 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
8624 ## ------------------------------------ ##
8625 ## Report this to bug-autoconf@gnu.org. ##
8626 ## ------------------------------------ ##
8629 sed "s/^/$as_me: WARNING: /" >&2
8632 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
8633 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
8634 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
8635 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
8636 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
8637 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
8640 ## ------------------------------------ ##
8641 ## Report this to bug-autoconf@gnu.org. ##
8642 ## ------------------------------------ ##
8645 sed "s/^/$as_me: WARNING: /" >&2
8648 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
8649 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
8650 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
8651 echo $ECHO_N "(cached) $ECHO_C" >&6
8653 ac_cv_header_X11_xpm_h
=$ac_header_preproc
8655 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
8656 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
8659 if test $ac_cv_header_X11_xpm_h = yes; then
8660 echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
8661 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6
8662 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
8663 echo $ECHO_N "(cached) $ECHO_C" >&6
8665 ac_check_lib_save_LIBS
=$LIBS
8666 LIBS
="-lXpm -lX11 $LIBS"
8667 cat >conftest.
$ac_ext <<_ACEOF
8668 #line $LINENO "configure"
8671 cat confdefs.h
>>conftest.
$ac_ext
8672 cat >>conftest.
$ac_ext <<_ACEOF
8673 /* end confdefs.h. */
8675 /* Override any gcc2 internal prototype to avoid an error. */
8679 /* We use char because int might match the return type of a gcc2
8680 builtin and then its argument prototype would still apply. */
8681 char XpmReadFileToPixmap ();
8685 XpmReadFileToPixmap ();
8690 rm -f conftest.
$ac_objext conftest
$ac_exeext
8691 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8692 (eval $ac_link) 2>&5
8694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8695 (exit $ac_status); } &&
8696 { ac_try
='test -s conftest$ac_exeext'
8697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8701 (exit $ac_status); }; }; then
8702 ac_cv_lib_Xpm_XpmReadFileToPixmap
=yes
8704 echo "$as_me: failed program was:" >&5
8705 sed 's/^/| /' conftest.
$ac_ext >&5
8707 ac_cv_lib_Xpm_XpmReadFileToPixmap
=no
8709 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8710 LIBS
=$ac_check_lib_save_LIBS
8712 echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
8713 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6
8714 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
8721 if test "${HAVE_XPM}" = "yes"; then
8722 echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
8723 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6
8724 cat >conftest.
$ac_ext <<_ACEOF
8725 #line $LINENO "configure"
8728 cat confdefs.h
>>conftest.
$ac_ext
8729 cat >>conftest.
$ac_ext <<_ACEOF
8730 /* end confdefs.h. */
8731 #include "X11/xpm.h"
8732 #ifndef XpmReturnAllocPixels
8733 no_return_alloc_pixels
8737 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8738 $EGREP "no_return_alloc_pixels" >/dev
/null
2>&1; then
8746 if test "${HAVE_XPM}" = "yes"; then
8747 echo "$as_me:$LINENO: result: yes" >&5
8748 echo "${ECHO_T}yes" >&6
8750 echo "$as_me:$LINENO: result: no" >&5
8751 echo "${ECHO_T}no" >&6
8756 if test "${HAVE_XPM}" = "yes"; then
8758 cat >>confdefs.h
<<\_ACEOF
8765 ### Use -ljpeg if available, unless `--with-jpeg=no'.
8767 if test "${HAVE_X11}" = "yes"; then
8768 if test "${with_jpeg}" != "no"; then
8769 if test "${ac_cv_header_jerror_h+set}" = set; then
8770 echo "$as_me:$LINENO: checking for jerror.h" >&5
8771 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
8772 if test "${ac_cv_header_jerror_h+set}" = set; then
8773 echo $ECHO_N "(cached) $ECHO_C" >&6
8775 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
8776 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
8778 # Is the header compilable?
8779 echo "$as_me:$LINENO: checking jerror.h usability" >&5
8780 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6
8781 cat >conftest.
$ac_ext <<_ACEOF
8782 #line $LINENO "configure"
8785 cat confdefs.h
>>conftest.
$ac_ext
8786 cat >>conftest.
$ac_ext <<_ACEOF
8787 /* end confdefs.h. */
8788 $ac_includes_default
8791 rm -f conftest.
$ac_objext
8792 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8793 (eval $ac_compile) 2>&5
8795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8796 (exit $ac_status); } &&
8797 { ac_try
='test -s conftest.$ac_objext'
8798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8802 (exit $ac_status); }; }; then
8803 ac_header_compiler
=yes
8805 echo "$as_me: failed program was:" >&5
8806 sed 's/^/| /' conftest.
$ac_ext >&5
8808 ac_header_compiler
=no
8810 rm -f conftest.
$ac_objext conftest.
$ac_ext
8811 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8812 echo "${ECHO_T}$ac_header_compiler" >&6
8814 # Is the header present?
8815 echo "$as_me:$LINENO: checking jerror.h presence" >&5
8816 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6
8817 cat >conftest.
$ac_ext <<_ACEOF
8818 #line $LINENO "configure"
8821 cat confdefs.h
>>conftest.
$ac_ext
8822 cat >>conftest.
$ac_ext <<_ACEOF
8823 /* end confdefs.h. */
8826 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8827 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8829 grep -v '^ *+' conftest.er1
>conftest.err
8831 cat conftest.err
>&5
8832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8833 (exit $ac_status); } >/dev
/null
; then
8834 if test -s conftest.err
; then
8835 ac_cpp_err
=$ac_c_preproc_warn_flag
8842 if test -z "$ac_cpp_err"; then
8843 ac_header_preproc
=yes
8845 echo "$as_me: failed program was:" >&5
8846 sed 's/^/| /' conftest.
$ac_ext >&5
8848 ac_header_preproc
=no
8850 rm -f conftest.err conftest.
$ac_ext
8851 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8852 echo "${ECHO_T}$ac_header_preproc" >&6
8854 # So? What about this header?
8855 case $ac_header_compiler:$ac_header_preproc in
8857 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
8858 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8859 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
8860 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
8863 ## ------------------------------------ ##
8864 ## Report this to bug-autoconf@gnu.org. ##
8865 ## ------------------------------------ ##
8868 sed "s/^/$as_me: WARNING: /" >&2
8871 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
8872 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
8873 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
8874 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
8875 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
8876 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
8879 ## ------------------------------------ ##
8880 ## Report this to bug-autoconf@gnu.org. ##
8881 ## ------------------------------------ ##
8884 sed "s/^/$as_me: WARNING: /" >&2
8887 echo "$as_me:$LINENO: checking for jerror.h" >&5
8888 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
8889 if test "${ac_cv_header_jerror_h+set}" = set; then
8890 echo $ECHO_N "(cached) $ECHO_C" >&6
8892 ac_cv_header_jerror_h
=$ac_header_preproc
8894 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
8895 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
8898 if test $ac_cv_header_jerror_h = yes; then
8899 echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
8900 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6
8901 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
8902 echo $ECHO_N "(cached) $ECHO_C" >&6
8904 ac_check_lib_save_LIBS
=$LIBS
8906 cat >conftest.
$ac_ext <<_ACEOF
8907 #line $LINENO "configure"
8910 cat confdefs.h
>>conftest.
$ac_ext
8911 cat >>conftest.
$ac_ext <<_ACEOF
8912 /* end confdefs.h. */
8914 /* Override any gcc2 internal prototype to avoid an error. */
8918 /* We use char because int might match the return type of a gcc2
8919 builtin and then its argument prototype would still apply. */
8920 char jpeg_destroy_compress ();
8924 jpeg_destroy_compress ();
8929 rm -f conftest.
$ac_objext conftest
$ac_exeext
8930 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8931 (eval $ac_link) 2>&5
8933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8934 (exit $ac_status); } &&
8935 { ac_try
='test -s conftest$ac_exeext'
8936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8940 (exit $ac_status); }; }; then
8941 ac_cv_lib_jpeg_jpeg_destroy_compress
=yes
8943 echo "$as_me: failed program was:" >&5
8944 sed 's/^/| /' conftest.
$ac_ext >&5
8946 ac_cv_lib_jpeg_jpeg_destroy_compress
=no
8948 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8949 LIBS
=$ac_check_lib_save_LIBS
8951 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
8952 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6
8953 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
8963 if test "${HAVE_JPEG}" = "yes"; then
8964 cat >>confdefs.h
<<\_ACEOF
8968 cat >conftest.
$ac_ext <<_ACEOF
8969 #line $LINENO "configure"
8972 cat confdefs.h
>>conftest.
$ac_ext
8973 cat >>conftest.
$ac_ext <<_ACEOF
8974 /* end confdefs.h. */
8975 #include <jpeglib.h>
8976 version=JPEG_LIB_VERSION
8979 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8980 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev
/null
2>&1; then
8981 cat >>confdefs.h
<<\_ACEOF
8986 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
8987 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
8995 ### Use -lpng if available, unless `--with-png=no'.
8997 if test "${HAVE_X11}" = "yes"; then
8998 if test "${with_png}" != "no"; then
8999 if test "${ac_cv_header_png_h+set}" = set; then
9000 echo "$as_me:$LINENO: checking for png.h" >&5
9001 echo $ECHO_N "checking for png.h... $ECHO_C" >&6
9002 if test "${ac_cv_header_png_h+set}" = set; then
9003 echo $ECHO_N "(cached) $ECHO_C" >&6
9005 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
9006 echo "${ECHO_T}$ac_cv_header_png_h" >&6
9008 # Is the header compilable?
9009 echo "$as_me:$LINENO: checking png.h usability" >&5
9010 echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
9011 cat >conftest.
$ac_ext <<_ACEOF
9012 #line $LINENO "configure"
9015 cat confdefs.h
>>conftest.
$ac_ext
9016 cat >>conftest.
$ac_ext <<_ACEOF
9017 /* end confdefs.h. */
9018 $ac_includes_default
9021 rm -f conftest.
$ac_objext
9022 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9023 (eval $ac_compile) 2>&5
9025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9026 (exit $ac_status); } &&
9027 { ac_try
='test -s conftest.$ac_objext'
9028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9032 (exit $ac_status); }; }; then
9033 ac_header_compiler
=yes
9035 echo "$as_me: failed program was:" >&5
9036 sed 's/^/| /' conftest.
$ac_ext >&5
9038 ac_header_compiler
=no
9040 rm -f conftest.
$ac_objext conftest.
$ac_ext
9041 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9042 echo "${ECHO_T}$ac_header_compiler" >&6
9044 # Is the header present?
9045 echo "$as_me:$LINENO: checking png.h presence" >&5
9046 echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
9047 cat >conftest.
$ac_ext <<_ACEOF
9048 #line $LINENO "configure"
9051 cat confdefs.h
>>conftest.
$ac_ext
9052 cat >>conftest.
$ac_ext <<_ACEOF
9053 /* end confdefs.h. */
9056 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9057 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9059 grep -v '^ *+' conftest.er1
>conftest.err
9061 cat conftest.err
>&5
9062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9063 (exit $ac_status); } >/dev
/null
; then
9064 if test -s conftest.err
; then
9065 ac_cpp_err
=$ac_c_preproc_warn_flag
9072 if test -z "$ac_cpp_err"; then
9073 ac_header_preproc
=yes
9075 echo "$as_me: failed program was:" >&5
9076 sed 's/^/| /' conftest.
$ac_ext >&5
9078 ac_header_preproc
=no
9080 rm -f conftest.err conftest.
$ac_ext
9081 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9082 echo "${ECHO_T}$ac_header_preproc" >&6
9084 # So? What about this header?
9085 case $ac_header_compiler:$ac_header_preproc in
9087 { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
9088 echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9089 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
9090 echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
9093 ## ------------------------------------ ##
9094 ## Report this to bug-autoconf@gnu.org. ##
9095 ## ------------------------------------ ##
9098 sed "s/^/$as_me: WARNING: /" >&2
9101 { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
9102 echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
9103 { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
9104 echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
9105 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
9106 echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
9109 ## ------------------------------------ ##
9110 ## Report this to bug-autoconf@gnu.org. ##
9111 ## ------------------------------------ ##
9114 sed "s/^/$as_me: WARNING: /" >&2
9117 echo "$as_me:$LINENO: checking for png.h" >&5
9118 echo $ECHO_N "checking for png.h... $ECHO_C" >&6
9119 if test "${ac_cv_header_png_h+set}" = set; then
9120 echo $ECHO_N "(cached) $ECHO_C" >&6
9122 ac_cv_header_png_h
=$ac_header_preproc
9124 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
9125 echo "${ECHO_T}$ac_cv_header_png_h" >&6
9128 if test $ac_cv_header_png_h = yes; then
9129 echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
9130 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6
9131 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
9132 echo $ECHO_N "(cached) $ECHO_C" >&6
9134 ac_check_lib_save_LIBS
=$LIBS
9135 LIBS
="-lpng -lz -lm $LIBS"
9136 cat >conftest.
$ac_ext <<_ACEOF
9137 #line $LINENO "configure"
9140 cat confdefs.h
>>conftest.
$ac_ext
9141 cat >>conftest.
$ac_ext <<_ACEOF
9142 /* end confdefs.h. */
9144 /* Override any gcc2 internal prototype to avoid an error. */
9148 /* We use char because int might match the return type of a gcc2
9149 builtin and then its argument prototype would still apply. */
9150 char png_get_channels ();
9154 png_get_channels ();
9159 rm -f conftest.
$ac_objext conftest
$ac_exeext
9160 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9161 (eval $ac_link) 2>&5
9163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9164 (exit $ac_status); } &&
9165 { ac_try
='test -s conftest$ac_exeext'
9166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9170 (exit $ac_status); }; }; then
9171 ac_cv_lib_png_png_get_channels
=yes
9173 echo "$as_me: failed program was:" >&5
9174 sed 's/^/| /' conftest.
$ac_ext >&5
9176 ac_cv_lib_png_png_get_channels
=no
9178 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9179 LIBS
=$ac_check_lib_save_LIBS
9181 echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
9182 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6
9183 if test $ac_cv_lib_png_png_get_channels = yes; then
9192 if test "${HAVE_PNG}" = "yes"; then
9194 cat >>confdefs.h
<<\_ACEOF
9201 ### Use -ltiff if available, unless `--with-tiff=no'.
9203 if test "${HAVE_X11}" = "yes"; then
9204 if test "${with_tiff}" != "no"; then
9205 if test "${ac_cv_header_tiffio_h+set}" = set; then
9206 echo "$as_me:$LINENO: checking for tiffio.h" >&5
9207 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
9208 if test "${ac_cv_header_tiffio_h+set}" = set; then
9209 echo $ECHO_N "(cached) $ECHO_C" >&6
9211 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
9212 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
9214 # Is the header compilable?
9215 echo "$as_me:$LINENO: checking tiffio.h usability" >&5
9216 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
9217 cat >conftest.
$ac_ext <<_ACEOF
9218 #line $LINENO "configure"
9221 cat confdefs.h
>>conftest.
$ac_ext
9222 cat >>conftest.
$ac_ext <<_ACEOF
9223 /* end confdefs.h. */
9224 $ac_includes_default
9227 rm -f conftest.
$ac_objext
9228 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9229 (eval $ac_compile) 2>&5
9231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9232 (exit $ac_status); } &&
9233 { ac_try
='test -s conftest.$ac_objext'
9234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9238 (exit $ac_status); }; }; then
9239 ac_header_compiler
=yes
9241 echo "$as_me: failed program was:" >&5
9242 sed 's/^/| /' conftest.
$ac_ext >&5
9244 ac_header_compiler
=no
9246 rm -f conftest.
$ac_objext conftest.
$ac_ext
9247 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9248 echo "${ECHO_T}$ac_header_compiler" >&6
9250 # Is the header present?
9251 echo "$as_me:$LINENO: checking tiffio.h presence" >&5
9252 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
9253 cat >conftest.
$ac_ext <<_ACEOF
9254 #line $LINENO "configure"
9257 cat confdefs.h
>>conftest.
$ac_ext
9258 cat >>conftest.
$ac_ext <<_ACEOF
9259 /* end confdefs.h. */
9262 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9263 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9265 grep -v '^ *+' conftest.er1
>conftest.err
9267 cat conftest.err
>&5
9268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9269 (exit $ac_status); } >/dev
/null
; then
9270 if test -s conftest.err
; then
9271 ac_cpp_err
=$ac_c_preproc_warn_flag
9278 if test -z "$ac_cpp_err"; then
9279 ac_header_preproc
=yes
9281 echo "$as_me: failed program was:" >&5
9282 sed 's/^/| /' conftest.
$ac_ext >&5
9284 ac_header_preproc
=no
9286 rm -f conftest.err conftest.
$ac_ext
9287 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9288 echo "${ECHO_T}$ac_header_preproc" >&6
9290 # So? What about this header?
9291 case $ac_header_compiler:$ac_header_preproc in
9293 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
9294 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9295 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
9296 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
9299 ## ------------------------------------ ##
9300 ## Report this to bug-autoconf@gnu.org. ##
9301 ## ------------------------------------ ##
9304 sed "s/^/$as_me: WARNING: /" >&2
9307 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
9308 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
9309 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
9310 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
9311 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
9312 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
9315 ## ------------------------------------ ##
9316 ## Report this to bug-autoconf@gnu.org. ##
9317 ## ------------------------------------ ##
9320 sed "s/^/$as_me: WARNING: /" >&2
9323 echo "$as_me:$LINENO: checking for tiffio.h" >&5
9324 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
9325 if test "${ac_cv_header_tiffio_h+set}" = set; then
9326 echo $ECHO_N "(cached) $ECHO_C" >&6
9328 ac_cv_header_tiffio_h
=$ac_header_preproc
9330 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
9331 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
9334 if test $ac_cv_header_tiffio_h = yes; then
9336 # At least one tiff package requires the jpeg library.
9337 if test "${HAVE_JPEG}" = yes; then tifflibs
="-ljpeg $tifflibs"; fi
9338 echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
9339 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6
9340 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
9341 echo $ECHO_N "(cached) $ECHO_C" >&6
9343 ac_check_lib_save_LIBS
=$LIBS
9344 LIBS
="-ltiff $tifflibs $LIBS"
9345 cat >conftest.
$ac_ext <<_ACEOF
9346 #line $LINENO "configure"
9349 cat confdefs.h
>>conftest.
$ac_ext
9350 cat >>conftest.
$ac_ext <<_ACEOF
9351 /* end confdefs.h. */
9353 /* Override any gcc2 internal prototype to avoid an error. */
9357 /* We use char because int might match the return type of a gcc2
9358 builtin and then its argument prototype would still apply. */
9359 char TIFFGetVersion ();
9368 rm -f conftest.
$ac_objext conftest
$ac_exeext
9369 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9370 (eval $ac_link) 2>&5
9372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9373 (exit $ac_status); } &&
9374 { ac_try
='test -s conftest$ac_exeext'
9375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9379 (exit $ac_status); }; }; then
9380 ac_cv_lib_tiff_TIFFGetVersion
=yes
9382 echo "$as_me: failed program was:" >&5
9383 sed 's/^/| /' conftest.
$ac_ext >&5
9385 ac_cv_lib_tiff_TIFFGetVersion
=no
9387 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9388 LIBS
=$ac_check_lib_save_LIBS
9390 echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
9391 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6
9392 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
9401 if test "${HAVE_TIFF}" = "yes"; then
9403 cat >>confdefs.h
<<\_ACEOF
9410 ### Use -lgif if available, unless `--with-gif=no'.
9412 if test "${HAVE_X11}" = "yes"; then
9413 if test "${with_gif}" != "no"; then
9414 if test "${ac_cv_header_gif_lib_h+set}" = set; then
9415 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
9416 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
9417 if test "${ac_cv_header_gif_lib_h+set}" = set; then
9418 echo $ECHO_N "(cached) $ECHO_C" >&6
9420 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
9421 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
9423 # Is the header compilable?
9424 echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
9425 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6
9426 cat >conftest.
$ac_ext <<_ACEOF
9427 #line $LINENO "configure"
9430 cat confdefs.h
>>conftest.
$ac_ext
9431 cat >>conftest.
$ac_ext <<_ACEOF
9432 /* end confdefs.h. */
9433 $ac_includes_default
9434 #include <gif_lib.h>
9436 rm -f conftest.
$ac_objext
9437 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9438 (eval $ac_compile) 2>&5
9440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9441 (exit $ac_status); } &&
9442 { ac_try
='test -s conftest.$ac_objext'
9443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9447 (exit $ac_status); }; }; then
9448 ac_header_compiler
=yes
9450 echo "$as_me: failed program was:" >&5
9451 sed 's/^/| /' conftest.
$ac_ext >&5
9453 ac_header_compiler
=no
9455 rm -f conftest.
$ac_objext conftest.
$ac_ext
9456 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9457 echo "${ECHO_T}$ac_header_compiler" >&6
9459 # Is the header present?
9460 echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
9461 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6
9462 cat >conftest.
$ac_ext <<_ACEOF
9463 #line $LINENO "configure"
9466 cat confdefs.h
>>conftest.
$ac_ext
9467 cat >>conftest.
$ac_ext <<_ACEOF
9468 /* end confdefs.h. */
9469 #include <gif_lib.h>
9471 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9472 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9474 grep -v '^ *+' conftest.er1
>conftest.err
9476 cat conftest.err
>&5
9477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9478 (exit $ac_status); } >/dev
/null
; then
9479 if test -s conftest.err
; then
9480 ac_cpp_err
=$ac_c_preproc_warn_flag
9487 if test -z "$ac_cpp_err"; then
9488 ac_header_preproc
=yes
9490 echo "$as_me: failed program was:" >&5
9491 sed 's/^/| /' conftest.
$ac_ext >&5
9493 ac_header_preproc
=no
9495 rm -f conftest.err conftest.
$ac_ext
9496 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9497 echo "${ECHO_T}$ac_header_preproc" >&6
9499 # So? What about this header?
9500 case $ac_header_compiler:$ac_header_preproc in
9502 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
9503 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9504 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
9505 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
9508 ## ------------------------------------ ##
9509 ## Report this to bug-autoconf@gnu.org. ##
9510 ## ------------------------------------ ##
9513 sed "s/^/$as_me: WARNING: /" >&2
9516 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
9517 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
9518 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
9519 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
9520 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
9521 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
9524 ## ------------------------------------ ##
9525 ## Report this to bug-autoconf@gnu.org. ##
9526 ## ------------------------------------ ##
9529 sed "s/^/$as_me: WARNING: /" >&2
9532 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
9533 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
9534 if test "${ac_cv_header_gif_lib_h+set}" = set; then
9535 echo $ECHO_N "(cached) $ECHO_C" >&6
9537 ac_cv_header_gif_lib_h
=$ac_header_preproc
9539 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
9540 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
9543 if test $ac_cv_header_gif_lib_h = yes; then
9544 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
9545 # Earlier versions can crash Emacs.
9546 echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
9547 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6
9548 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
9549 echo $ECHO_N "(cached) $ECHO_C" >&6
9551 ac_check_lib_save_LIBS
=$LIBS
9552 LIBS
="-lungif $LIBS"
9553 cat >conftest.
$ac_ext <<_ACEOF
9554 #line $LINENO "configure"
9557 cat confdefs.h
>>conftest.
$ac_ext
9558 cat >>conftest.
$ac_ext <<_ACEOF
9559 /* end confdefs.h. */
9561 /* Override any gcc2 internal prototype to avoid an error. */
9565 /* We use char because int might match the return type of a gcc2
9566 builtin and then its argument prototype would still apply. */
9567 char EGifPutExtensionLast ();
9571 EGifPutExtensionLast ();
9576 rm -f conftest.
$ac_objext conftest
$ac_exeext
9577 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9578 (eval $ac_link) 2>&5
9580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9581 (exit $ac_status); } &&
9582 { ac_try
='test -s conftest$ac_exeext'
9583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9587 (exit $ac_status); }; }; then
9588 ac_cv_lib_ungif_EGifPutExtensionLast
=yes
9590 echo "$as_me: failed program was:" >&5
9591 sed 's/^/| /' conftest.
$ac_ext >&5
9593 ac_cv_lib_ungif_EGifPutExtensionLast
=no
9595 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9596 LIBS
=$ac_check_lib_save_LIBS
9598 echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
9599 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6
9600 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
9609 if test "${HAVE_GIF}" = "yes"; then
9611 cat >>confdefs.h
<<\_ACEOF
9618 ### Use Mac OS X Carbon API to implement GUI.
9620 if test "${with_carbon}" != "no"; then
9621 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9622 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9623 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
9624 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9625 echo $ECHO_N "(cached) $ECHO_C" >&6
9627 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9628 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
9630 # Is the header compilable?
9631 echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
9632 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6
9633 cat >conftest.
$ac_ext <<_ACEOF
9634 #line $LINENO "configure"
9637 cat confdefs.h
>>conftest.
$ac_ext
9638 cat >>conftest.
$ac_ext <<_ACEOF
9639 /* end confdefs.h. */
9640 $ac_includes_default
9641 #include <Carbon/Carbon.h>
9643 rm -f conftest.
$ac_objext
9644 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9645 (eval $ac_compile) 2>&5
9647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9648 (exit $ac_status); } &&
9649 { ac_try
='test -s conftest.$ac_objext'
9650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9654 (exit $ac_status); }; }; then
9655 ac_header_compiler
=yes
9657 echo "$as_me: failed program was:" >&5
9658 sed 's/^/| /' conftest.
$ac_ext >&5
9660 ac_header_compiler
=no
9662 rm -f conftest.
$ac_objext conftest.
$ac_ext
9663 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9664 echo "${ECHO_T}$ac_header_compiler" >&6
9666 # Is the header present?
9667 echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
9668 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6
9669 cat >conftest.
$ac_ext <<_ACEOF
9670 #line $LINENO "configure"
9673 cat confdefs.h
>>conftest.
$ac_ext
9674 cat >>conftest.
$ac_ext <<_ACEOF
9675 /* end confdefs.h. */
9676 #include <Carbon/Carbon.h>
9678 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9679 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9681 grep -v '^ *+' conftest.er1
>conftest.err
9683 cat conftest.err
>&5
9684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9685 (exit $ac_status); } >/dev
/null
; then
9686 if test -s conftest.err
; then
9687 ac_cpp_err
=$ac_c_preproc_warn_flag
9694 if test -z "$ac_cpp_err"; then
9695 ac_header_preproc
=yes
9697 echo "$as_me: failed program was:" >&5
9698 sed 's/^/| /' conftest.
$ac_ext >&5
9700 ac_header_preproc
=no
9702 rm -f conftest.err conftest.
$ac_ext
9703 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9704 echo "${ECHO_T}$ac_header_preproc" >&6
9706 # So? What about this header?
9707 case $ac_header_compiler:$ac_header_preproc in
9709 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
9710 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9711 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
9712 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
9715 ## ------------------------------------ ##
9716 ## Report this to bug-autoconf@gnu.org. ##
9717 ## ------------------------------------ ##
9720 sed "s/^/$as_me: WARNING: /" >&2
9723 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
9724 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
9725 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
9726 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
9727 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
9728 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
9731 ## ------------------------------------ ##
9732 ## Report this to bug-autoconf@gnu.org. ##
9733 ## ------------------------------------ ##
9736 sed "s/^/$as_me: WARNING: /" >&2
9739 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9740 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
9741 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9742 echo $ECHO_N "(cached) $ECHO_C" >&6
9744 ac_cv_header_Carbon_Carbon_h
=$ac_header_preproc
9746 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9747 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
9750 if test $ac_cv_header_Carbon_Carbon_h = yes; then
9757 if test "${HAVE_CARBON}" = "yes"; then
9759 cat >>confdefs.h
<<\_ACEOF
9760 #define HAVE_CARBON 1
9765 ### Use session management (-lSM -lICE) if available
9767 if test "${HAVE_X11}" = "yes"; then
9768 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
9769 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
9770 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
9771 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
9772 echo $ECHO_N "(cached) $ECHO_C" >&6
9774 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
9775 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
9777 # Is the header compilable?
9778 echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
9779 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6
9780 cat >conftest.
$ac_ext <<_ACEOF
9781 #line $LINENO "configure"
9784 cat confdefs.h
>>conftest.
$ac_ext
9785 cat >>conftest.
$ac_ext <<_ACEOF
9786 /* end confdefs.h. */
9787 $ac_includes_default
9788 #include <X11/SM/SMlib.h>
9790 rm -f conftest.
$ac_objext
9791 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9792 (eval $ac_compile) 2>&5
9794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9795 (exit $ac_status); } &&
9796 { ac_try
='test -s conftest.$ac_objext'
9797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9801 (exit $ac_status); }; }; then
9802 ac_header_compiler
=yes
9804 echo "$as_me: failed program was:" >&5
9805 sed 's/^/| /' conftest.
$ac_ext >&5
9807 ac_header_compiler
=no
9809 rm -f conftest.
$ac_objext conftest.
$ac_ext
9810 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9811 echo "${ECHO_T}$ac_header_compiler" >&6
9813 # Is the header present?
9814 echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
9815 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6
9816 cat >conftest.
$ac_ext <<_ACEOF
9817 #line $LINENO "configure"
9820 cat confdefs.h
>>conftest.
$ac_ext
9821 cat >>conftest.
$ac_ext <<_ACEOF
9822 /* end confdefs.h. */
9823 #include <X11/SM/SMlib.h>
9825 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9826 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9828 grep -v '^ *+' conftest.er1
>conftest.err
9830 cat conftest.err
>&5
9831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9832 (exit $ac_status); } >/dev
/null
; then
9833 if test -s conftest.err
; then
9834 ac_cpp_err
=$ac_c_preproc_warn_flag
9841 if test -z "$ac_cpp_err"; then
9842 ac_header_preproc
=yes
9844 echo "$as_me: failed program was:" >&5
9845 sed 's/^/| /' conftest.
$ac_ext >&5
9847 ac_header_preproc
=no
9849 rm -f conftest.err conftest.
$ac_ext
9850 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9851 echo "${ECHO_T}$ac_header_preproc" >&6
9853 # So? What about this header?
9854 case $ac_header_compiler:$ac_header_preproc in
9856 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
9857 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9858 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
9859 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
9862 ## ------------------------------------ ##
9863 ## Report this to bug-autoconf@gnu.org. ##
9864 ## ------------------------------------ ##
9867 sed "s/^/$as_me: WARNING: /" >&2
9870 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
9871 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
9872 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
9873 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
9874 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
9875 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
9878 ## ------------------------------------ ##
9879 ## Report this to bug-autoconf@gnu.org. ##
9880 ## ------------------------------------ ##
9883 sed "s/^/$as_me: WARNING: /" >&2
9886 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
9887 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
9888 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
9889 echo $ECHO_N "(cached) $ECHO_C" >&6
9891 ac_cv_header_X11_SM_SMlib_h
=$ac_header_preproc
9893 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
9894 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
9897 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
9898 echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
9899 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6
9900 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
9901 echo $ECHO_N "(cached) $ECHO_C" >&6
9903 ac_check_lib_save_LIBS
=$LIBS
9905 cat >conftest.
$ac_ext <<_ACEOF
9906 #line $LINENO "configure"
9909 cat confdefs.h
>>conftest.
$ac_ext
9910 cat >>conftest.
$ac_ext <<_ACEOF
9911 /* end confdefs.h. */
9913 /* Override any gcc2 internal prototype to avoid an error. */
9917 /* We use char because int might match the return type of a gcc2
9918 builtin and then its argument prototype would still apply. */
9919 char SmcOpenConnection ();
9923 SmcOpenConnection ();
9928 rm -f conftest.
$ac_objext conftest
$ac_exeext
9929 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9930 (eval $ac_link) 2>&5
9932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9933 (exit $ac_status); } &&
9934 { ac_try
='test -s conftest$ac_exeext'
9935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9939 (exit $ac_status); }; }; then
9940 ac_cv_lib_SM_SmcOpenConnection
=yes
9942 echo "$as_me: failed program was:" >&5
9943 sed 's/^/| /' conftest.
$ac_ext >&5
9945 ac_cv_lib_SM_SmcOpenConnection
=no
9947 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9948 LIBS
=$ac_check_lib_save_LIBS
9950 echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
9951 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6
9952 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
9962 if test "${HAVE_X_SM}" = "yes"; then
9964 cat >>confdefs.h
<<\_ACEOF
9970 *) LIBS
="-lSM -lICE $LIBS" ;;
9975 # If netdb.h doesn't declare h_errno, we must declare it by hand.
9976 echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
9977 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6
9978 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
9979 echo $ECHO_N "(cached) $ECHO_C" >&6
9981 cat >conftest.
$ac_ext <<_ACEOF
9982 #line $LINENO "configure"
9985 cat confdefs.h
>>conftest.
$ac_ext
9986 cat >>conftest.
$ac_ext <<_ACEOF
9987 /* end confdefs.h. */
9997 rm -f conftest.
$ac_objext conftest
$ac_exeext
9998 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9999 (eval $ac_link) 2>&5
10001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10002 (exit $ac_status); } &&
10003 { ac_try
='test -s conftest$ac_exeext'
10004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10005 (eval $ac_try) 2>&5
10007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10008 (exit $ac_status); }; }; then
10009 emacs_cv_netdb_declares_h_errno
=yes
10011 echo "$as_me: failed program was:" >&5
10012 sed 's/^/| /' conftest.
$ac_ext >&5
10014 emacs_cv_netdb_declares_h_errno
=no
10016 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10018 echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
10019 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6
10020 if test $emacs_cv_netdb_declares_h_errno = yes; then
10022 cat >>confdefs.h
<<\_ACEOF
10023 #define HAVE_H_ERRNO 1
10028 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
10029 # for constant arguments. Useless!
10030 echo "$as_me:$LINENO: checking for working alloca.h" >&5
10031 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
10032 if test "${ac_cv_working_alloca_h+set}" = set; then
10033 echo $ECHO_N "(cached) $ECHO_C" >&6
10035 cat >conftest.
$ac_ext <<_ACEOF
10036 #line $LINENO "configure"
10039 cat confdefs.h
>>conftest.
$ac_ext
10040 cat >>conftest.
$ac_ext <<_ACEOF
10041 /* end confdefs.h. */
10042 #include <alloca.h>
10046 char *p = (char *) alloca (2 * sizeof (int));
10051 rm -f conftest.
$ac_objext conftest
$ac_exeext
10052 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10053 (eval $ac_link) 2>&5
10055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10056 (exit $ac_status); } &&
10057 { ac_try
='test -s conftest$ac_exeext'
10058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10059 (eval $ac_try) 2>&5
10061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10062 (exit $ac_status); }; }; then
10063 ac_cv_working_alloca_h
=yes
10065 echo "$as_me: failed program was:" >&5
10066 sed 's/^/| /' conftest.
$ac_ext >&5
10068 ac_cv_working_alloca_h
=no
10070 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10072 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
10073 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
10074 if test $ac_cv_working_alloca_h = yes; then
10076 cat >>confdefs.h
<<\_ACEOF
10077 #define HAVE_ALLOCA_H 1
10082 echo "$as_me:$LINENO: checking for alloca" >&5
10083 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
10084 if test "${ac_cv_func_alloca_works+set}" = set; then
10085 echo $ECHO_N "(cached) $ECHO_C" >&6
10087 cat >conftest.
$ac_ext <<_ACEOF
10088 #line $LINENO "configure"
10091 cat confdefs.h
>>conftest.
$ac_ext
10092 cat >>conftest.
$ac_ext <<_ACEOF
10093 /* end confdefs.h. */
10095 # define alloca __builtin_alloca
10098 # include <malloc.h>
10099 # define alloca _alloca
10102 # include <alloca.h>
10107 # ifndef alloca /* predefined by HP cc +Olibcalls */
10118 char *p = (char *) alloca (1);
10123 rm -f conftest.
$ac_objext conftest
$ac_exeext
10124 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10125 (eval $ac_link) 2>&5
10127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10128 (exit $ac_status); } &&
10129 { ac_try
='test -s conftest$ac_exeext'
10130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10131 (eval $ac_try) 2>&5
10133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10134 (exit $ac_status); }; }; then
10135 ac_cv_func_alloca_works
=yes
10137 echo "$as_me: failed program was:" >&5
10138 sed 's/^/| /' conftest.
$ac_ext >&5
10140 ac_cv_func_alloca_works
=no
10142 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10144 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
10145 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
10147 if test $ac_cv_func_alloca_works = yes; then
10149 cat >>confdefs.h
<<\_ACEOF
10150 #define HAVE_ALLOCA 1
10154 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
10155 # that cause trouble. Some versions do not even contain alloca or
10156 # contain a buggy version. If you still want to use their alloca,
10157 # use ar to extract alloca.o from them instead of compiling alloca.c.
10159 ALLOCA
=alloca.
$ac_objext
10161 cat >>confdefs.h
<<\_ACEOF
10166 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
10167 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
10168 if test "${ac_cv_os_cray+set}" = set; then
10169 echo $ECHO_N "(cached) $ECHO_C" >&6
10171 cat >conftest.
$ac_ext <<_ACEOF
10172 #line $LINENO "configure"
10175 cat confdefs.h
>>conftest.
$ac_ext
10176 cat >>conftest.
$ac_ext <<_ACEOF
10177 /* end confdefs.h. */
10178 #if defined(CRAY) && ! defined(CRAY2)
10185 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10186 $EGREP "webecray" >/dev
/null
2>&1; then
10194 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
10195 echo "${ECHO_T}$ac_cv_os_cray" >&6
10196 if test $ac_cv_os_cray = yes; then
10197 for ac_func
in _getb67 GETB67 getb67
; do
10198 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10199 echo "$as_me:$LINENO: checking for $ac_func" >&5
10200 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10201 if eval "test \"\${$as_ac_var+set}\" = set"; then
10202 echo $ECHO_N "(cached) $ECHO_C" >&6
10204 cat >conftest.
$ac_ext <<_ACEOF
10205 #line $LINENO "configure"
10208 cat confdefs.h
>>conftest.
$ac_ext
10209 cat >>conftest.
$ac_ext <<_ACEOF
10210 /* end confdefs.h. */
10211 /* System header to define __stub macros and hopefully few prototypes,
10212 which can conflict with char $ac_func (); below. */
10213 #include <assert.h>
10214 /* Override any gcc2 internal prototype to avoid an error. */
10219 /* We use char because int might match the return type of a gcc2
10220 builtin and then its argument prototype would still apply. */
10222 /* The GNU C library defines this for functions which it implements
10223 to always fail with ENOSYS. Some functions are actually named
10224 something starting with __ and the normal name is an alias. */
10225 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10228 char (*f) () = $ac_func;
10242 rm -f conftest.
$ac_objext conftest
$ac_exeext
10243 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10244 (eval $ac_link) 2>&5
10246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10247 (exit $ac_status); } &&
10248 { ac_try
='test -s conftest$ac_exeext'
10249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10250 (eval $ac_try) 2>&5
10252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10253 (exit $ac_status); }; }; then
10254 eval "$as_ac_var=yes"
10256 echo "$as_me: failed program was:" >&5
10257 sed 's/^/| /' conftest.
$ac_ext >&5
10259 eval "$as_ac_var=no"
10261 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10263 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10264 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10265 if test `eval echo '${'$as_ac_var'}'` = yes; then
10267 cat >>confdefs.h
<<_ACEOF
10268 #define CRAY_STACKSEG_END $ac_func
10277 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
10278 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
10279 if test "${ac_cv_c_stack_direction+set}" = set; then
10280 echo $ECHO_N "(cached) $ECHO_C" >&6
10282 if test "$cross_compiling" = yes; then
10283 ac_cv_c_stack_direction
=0
10285 cat >conftest.
$ac_ext <<_ACEOF
10286 #line $LINENO "configure"
10289 cat confdefs.h
>>conftest.
$ac_ext
10290 cat >>conftest.
$ac_ext <<_ACEOF
10291 /* end confdefs.h. */
10293 find_stack_direction ()
10295 static char *addr = 0;
10300 return find_stack_direction ();
10303 return (&dummy > addr) ? 1 : -1;
10309 exit (find_stack_direction () < 0);
10312 rm -f conftest
$ac_exeext
10313 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10314 (eval $ac_link) 2>&5
10316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10317 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10319 (eval $ac_try) 2>&5
10321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10322 (exit $ac_status); }; }; then
10323 ac_cv_c_stack_direction
=1
10325 echo "$as_me: program exited with status $ac_status" >&5
10326 echo "$as_me: failed program was:" >&5
10327 sed 's/^/| /' conftest.
$ac_ext >&5
10329 ( exit $ac_status )
10330 ac_cv_c_stack_direction
=-1
10332 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
10335 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
10336 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
10338 cat >>confdefs.h
<<_ACEOF
10339 #define STACK_DIRECTION $ac_cv_c_stack_direction
10346 # fmod, logb, and frexp are found in -lm on most systems.
10347 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
10349 echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
10350 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
10351 if test "${ac_cv_lib_m_sqrt+set}" = set; then
10352 echo $ECHO_N "(cached) $ECHO_C" >&6
10354 ac_check_lib_save_LIBS
=$LIBS
10356 cat >conftest.
$ac_ext <<_ACEOF
10357 #line $LINENO "configure"
10360 cat confdefs.h
>>conftest.
$ac_ext
10361 cat >>conftest.
$ac_ext <<_ACEOF
10362 /* end confdefs.h. */
10364 /* Override any gcc2 internal prototype to avoid an error. */
10368 /* We use char because int might match the return type of a gcc2
10369 builtin and then its argument prototype would still apply. */
10379 rm -f conftest.
$ac_objext conftest
$ac_exeext
10380 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10381 (eval $ac_link) 2>&5
10383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10384 (exit $ac_status); } &&
10385 { ac_try
='test -s conftest$ac_exeext'
10386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10387 (eval $ac_try) 2>&5
10389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10390 (exit $ac_status); }; }; then
10391 ac_cv_lib_m_sqrt
=yes
10393 echo "$as_me: failed program was:" >&5
10394 sed 's/^/| /' conftest.
$ac_ext >&5
10396 ac_cv_lib_m_sqrt
=no
10398 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10399 LIBS
=$ac_check_lib_save_LIBS
10401 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
10402 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
10403 if test $ac_cv_lib_m_sqrt = yes; then
10404 cat >>confdefs.h
<<_ACEOF
10405 #define HAVE_LIBM 1
10413 # Check for mail-locking functions in a "mail" library
10415 echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
10416 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6
10417 if test "${ac_cv_lib_mail_maillock+set}" = set; then
10418 echo $ECHO_N "(cached) $ECHO_C" >&6
10420 ac_check_lib_save_LIBS
=$LIBS
10421 LIBS
="-lmail $LIBS"
10422 cat >conftest.
$ac_ext <<_ACEOF
10423 #line $LINENO "configure"
10426 cat confdefs.h
>>conftest.
$ac_ext
10427 cat >>conftest.
$ac_ext <<_ACEOF
10428 /* end confdefs.h. */
10430 /* Override any gcc2 internal prototype to avoid an error. */
10434 /* We use char because int might match the return type of a gcc2
10435 builtin and then its argument prototype would still apply. */
10445 rm -f conftest.
$ac_objext conftest
$ac_exeext
10446 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10447 (eval $ac_link) 2>&5
10449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10450 (exit $ac_status); } &&
10451 { ac_try
='test -s conftest$ac_exeext'
10452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10453 (eval $ac_try) 2>&5
10455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10456 (exit $ac_status); }; }; then
10457 ac_cv_lib_mail_maillock
=yes
10459 echo "$as_me: failed program was:" >&5
10460 sed 's/^/| /' conftest.
$ac_ext >&5
10462 ac_cv_lib_mail_maillock
=no
10464 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10465 LIBS
=$ac_check_lib_save_LIBS
10467 echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
10468 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6
10469 if test $ac_cv_lib_mail_maillock = yes; then
10470 cat >>confdefs.h
<<_ACEOF
10471 #define HAVE_LIBMAIL 1
10474 LIBS
="-lmail $LIBS"
10479 echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
10480 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6
10481 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
10482 echo $ECHO_N "(cached) $ECHO_C" >&6
10484 ac_check_lib_save_LIBS
=$LIBS
10485 LIBS
="-llockfile $LIBS"
10486 cat >conftest.
$ac_ext <<_ACEOF
10487 #line $LINENO "configure"
10490 cat confdefs.h
>>conftest.
$ac_ext
10491 cat >>conftest.
$ac_ext <<_ACEOF
10492 /* end confdefs.h. */
10494 /* Override any gcc2 internal prototype to avoid an error. */
10498 /* We use char because int might match the return type of a gcc2
10499 builtin and then its argument prototype would still apply. */
10509 rm -f conftest.
$ac_objext conftest
$ac_exeext
10510 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10511 (eval $ac_link) 2>&5
10513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10514 (exit $ac_status); } &&
10515 { ac_try
='test -s conftest$ac_exeext'
10516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10517 (eval $ac_try) 2>&5
10519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10520 (exit $ac_status); }; }; then
10521 ac_cv_lib_lockfile_maillock
=yes
10523 echo "$as_me: failed program was:" >&5
10524 sed 's/^/| /' conftest.
$ac_ext >&5
10526 ac_cv_lib_lockfile_maillock
=no
10528 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10529 LIBS
=$ac_check_lib_save_LIBS
10531 echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
10532 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6
10533 if test $ac_cv_lib_lockfile_maillock = yes; then
10534 cat >>confdefs.h
<<_ACEOF
10535 #define HAVE_LIBLOCKFILE 1
10538 LIBS
="-llockfile $LIBS"
10542 # If we have the shared liblockfile, assume we must use it for mail
10543 # locking (e.g. Debian). If we couldn't link against liblockfile
10544 # (no liblockfile.a installed), ensure that we don't need to.
10545 if test "$ac_cv_lib_lockfile_maillock" = no
; then
10546 # Extract the first word of "liblockfile.so", so it can be a program name with args.
10547 set dummy liblockfile.so
; ac_word
=$2
10548 echo "$as_me:$LINENO: checking for $ac_word" >&5
10549 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10550 if test "${ac_cv_prog_liblockfile+set}" = set; then
10551 echo $ECHO_N "(cached) $ECHO_C" >&6
10553 if test -n "$liblockfile"; then
10554 ac_cv_prog_liblockfile
="$liblockfile" # Let the user override the test.
10556 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10557 as_dummy
="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
10558 for as_dir
in $as_dummy
10561 test -z "$as_dir" && as_dir
=.
10562 for ac_exec_ext
in '' $ac_executable_extensions; do
10563 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10564 ac_cv_prog_liblockfile
="yes"
10565 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10571 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile
="no"
10574 liblockfile
=$ac_cv_prog_liblockfile
10575 if test -n "$liblockfile"; then
10576 echo "$as_me:$LINENO: result: $liblockfile" >&5
10577 echo "${ECHO_T}$liblockfile" >&6
10579 echo "$as_me:$LINENO: result: no" >&5
10580 echo "${ECHO_T}no" >&6
10583 if test $ac_cv_prog_liblockfile = yes; then
10584 { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
10585 This probably means that movemail could lose mail.
10586 There may be a \`development' package to install containing liblockfile." >&5
10587 echo "$as_me: error: Shared liblockfile found but can't link against it.
10588 This probably means that movemail could lose mail.
10589 There may be a \`development' package to install containing liblockfile." >&2;}
10590 { (exit 1); exit 1; }; }
10592 cat >>confdefs.h
<<\_ACEOF
10593 #define LIBMAIL -llockfile
10600 for ac_func
in touchlock
10602 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10603 echo "$as_me:$LINENO: checking for $ac_func" >&5
10604 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10605 if eval "test \"\${$as_ac_var+set}\" = set"; then
10606 echo $ECHO_N "(cached) $ECHO_C" >&6
10608 cat >conftest.
$ac_ext <<_ACEOF
10609 #line $LINENO "configure"
10612 cat confdefs.h
>>conftest.
$ac_ext
10613 cat >>conftest.
$ac_ext <<_ACEOF
10614 /* end confdefs.h. */
10615 /* System header to define __stub macros and hopefully few prototypes,
10616 which can conflict with char $ac_func (); below. */
10617 #include <assert.h>
10618 /* Override any gcc2 internal prototype to avoid an error. */
10623 /* We use char because int might match the return type of a gcc2
10624 builtin and then its argument prototype would still apply. */
10626 /* The GNU C library defines this for functions which it implements
10627 to always fail with ENOSYS. Some functions are actually named
10628 something starting with __ and the normal name is an alias. */
10629 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10632 char (*f) () = $ac_func;
10646 rm -f conftest.
$ac_objext conftest
$ac_exeext
10647 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10648 (eval $ac_link) 2>&5
10650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10651 (exit $ac_status); } &&
10652 { ac_try
='test -s conftest$ac_exeext'
10653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10654 (eval $ac_try) 2>&5
10656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10657 (exit $ac_status); }; }; then
10658 eval "$as_ac_var=yes"
10660 echo "$as_me: failed program was:" >&5
10661 sed 's/^/| /' conftest.
$ac_ext >&5
10663 eval "$as_ac_var=no"
10665 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10667 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10668 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10669 if test `eval echo '${'$as_ac_var'}'` = yes; then
10670 cat >>confdefs.h
<<_ACEOF
10671 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10678 for ac_header
in maillock.h
10680 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10681 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10682 echo "$as_me:$LINENO: checking for $ac_header" >&5
10683 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10684 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10685 echo $ECHO_N "(cached) $ECHO_C" >&6
10687 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10688 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10690 # Is the header compilable?
10691 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10692 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10693 cat >conftest.
$ac_ext <<_ACEOF
10694 #line $LINENO "configure"
10697 cat confdefs.h
>>conftest.
$ac_ext
10698 cat >>conftest.
$ac_ext <<_ACEOF
10699 /* end confdefs.h. */
10700 $ac_includes_default
10701 #include <$ac_header>
10703 rm -f conftest.
$ac_objext
10704 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10705 (eval $ac_compile) 2>&5
10707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10708 (exit $ac_status); } &&
10709 { ac_try
='test -s conftest.$ac_objext'
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); }; }; then
10715 ac_header_compiler
=yes
10717 echo "$as_me: failed program was:" >&5
10718 sed 's/^/| /' conftest.
$ac_ext >&5
10720 ac_header_compiler
=no
10722 rm -f conftest.
$ac_objext conftest.
$ac_ext
10723 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10724 echo "${ECHO_T}$ac_header_compiler" >&6
10726 # Is the header present?
10727 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10728 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10729 cat >conftest.
$ac_ext <<_ACEOF
10730 #line $LINENO "configure"
10733 cat confdefs.h
>>conftest.
$ac_ext
10734 cat >>conftest.
$ac_ext <<_ACEOF
10735 /* end confdefs.h. */
10736 #include <$ac_header>
10738 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10739 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
10741 grep -v '^ *+' conftest.er1
>conftest.err
10743 cat conftest.err
>&5
10744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10745 (exit $ac_status); } >/dev
/null
; then
10746 if test -s conftest.err
; then
10747 ac_cpp_err
=$ac_c_preproc_warn_flag
10754 if test -z "$ac_cpp_err"; then
10755 ac_header_preproc
=yes
10757 echo "$as_me: failed program was:" >&5
10758 sed 's/^/| /' conftest.
$ac_ext >&5
10760 ac_header_preproc
=no
10762 rm -f conftest.err conftest.
$ac_ext
10763 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10764 echo "${ECHO_T}$ac_header_preproc" >&6
10766 # So? What about this header?
10767 case $ac_header_compiler:$ac_header_preproc in
10769 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10770 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10771 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10772 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10775 ## ------------------------------------ ##
10776 ## Report this to bug-autoconf@gnu.org. ##
10777 ## ------------------------------------ ##
10780 sed "s/^/$as_me: WARNING: /" >&2
10783 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10784 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10785 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10786 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10787 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10788 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10791 ## ------------------------------------ ##
10792 ## Report this to bug-autoconf@gnu.org. ##
10793 ## ------------------------------------ ##
10796 sed "s/^/$as_me: WARNING: /" >&2
10799 echo "$as_me:$LINENO: checking for $ac_header" >&5
10800 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10801 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10802 echo $ECHO_N "(cached) $ECHO_C" >&6
10804 eval "$as_ac_Header=$ac_header_preproc"
10806 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10807 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10810 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10811 cat >>confdefs.h
<<_ACEOF
10812 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10880 for ac_func
in gethostname getdomainname dup2 \
10881 rename closedir mkdir
rmdir sysinfo \
10882 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
10883 strerror fpathconf
select mktime euidaccess getpagesize tzset setlocale \
10884 utimes setrlimit setpgid getcwd getwd shutdown strftime getaddrinfo \
10885 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
10886 sendto recvfrom getsockopt setsockopt getsockname getpeername \
10887 gai_strerror mkstemp getline getdelim mremap memmove fsync bzero memset
10889 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10890 echo "$as_me:$LINENO: checking for $ac_func" >&5
10891 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10892 if eval "test \"\${$as_ac_var+set}\" = set"; then
10893 echo $ECHO_N "(cached) $ECHO_C" >&6
10895 cat >conftest.
$ac_ext <<_ACEOF
10896 #line $LINENO "configure"
10899 cat confdefs.h
>>conftest.
$ac_ext
10900 cat >>conftest.
$ac_ext <<_ACEOF
10901 /* end confdefs.h. */
10902 /* System header to define __stub macros and hopefully few prototypes,
10903 which can conflict with char $ac_func (); below. */
10904 #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;
10933 rm -f conftest.
$ac_objext conftest
$ac_exeext
10934 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10935 (eval $ac_link) 2>&5
10937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10938 (exit $ac_status); } &&
10939 { ac_try
='test -s conftest$ac_exeext'
10940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10941 (eval $ac_try) 2>&5
10943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10944 (exit $ac_status); }; }; then
10945 eval "$as_ac_var=yes"
10947 echo "$as_me: failed program was:" >&5
10948 sed 's/^/| /' conftest.
$ac_ext >&5
10950 eval "$as_ac_var=no"
10952 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10954 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10955 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10956 if test `eval echo '${'$as_ac_var'}'` = yes; then
10957 cat >>confdefs.h
<<_ACEOF
10958 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10966 for ac_header
in sys
/un.h
10968 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10969 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10970 echo "$as_me:$LINENO: checking for $ac_header" >&5
10971 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10972 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10973 echo $ECHO_N "(cached) $ECHO_C" >&6
10975 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10976 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10978 # Is the header compilable?
10979 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10980 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10981 cat >conftest.
$ac_ext <<_ACEOF
10982 #line $LINENO "configure"
10985 cat confdefs.h
>>conftest.
$ac_ext
10986 cat >>conftest.
$ac_ext <<_ACEOF
10987 /* end confdefs.h. */
10988 $ac_includes_default
10989 #include <$ac_header>
10991 rm -f conftest.
$ac_objext
10992 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10993 (eval $ac_compile) 2>&5
10995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10996 (exit $ac_status); } &&
10997 { ac_try
='test -s conftest.$ac_objext'
10998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10999 (eval $ac_try) 2>&5
11001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11002 (exit $ac_status); }; }; then
11003 ac_header_compiler
=yes
11005 echo "$as_me: failed program was:" >&5
11006 sed 's/^/| /' conftest.
$ac_ext >&5
11008 ac_header_compiler
=no
11010 rm -f conftest.
$ac_objext conftest.
$ac_ext
11011 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11012 echo "${ECHO_T}$ac_header_compiler" >&6
11014 # Is the header present?
11015 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11016 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11017 cat >conftest.
$ac_ext <<_ACEOF
11018 #line $LINENO "configure"
11021 cat confdefs.h
>>conftest.
$ac_ext
11022 cat >>conftest.
$ac_ext <<_ACEOF
11023 /* end confdefs.h. */
11024 #include <$ac_header>
11026 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11027 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11029 grep -v '^ *+' conftest.er1
>conftest.err
11031 cat conftest.err
>&5
11032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11033 (exit $ac_status); } >/dev
/null
; then
11034 if test -s conftest.err
; then
11035 ac_cpp_err
=$ac_c_preproc_warn_flag
11042 if test -z "$ac_cpp_err"; then
11043 ac_header_preproc
=yes
11045 echo "$as_me: failed program was:" >&5
11046 sed 's/^/| /' conftest.
$ac_ext >&5
11048 ac_header_preproc
=no
11050 rm -f conftest.err conftest.
$ac_ext
11051 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11052 echo "${ECHO_T}$ac_header_preproc" >&6
11054 # So? What about this header?
11055 case $ac_header_compiler:$ac_header_preproc in
11057 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11058 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11059 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11060 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11063 ## ------------------------------------ ##
11064 ## Report this to bug-autoconf@gnu.org. ##
11065 ## ------------------------------------ ##
11068 sed "s/^/$as_me: WARNING: /" >&2
11071 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11072 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11073 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11074 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11075 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11076 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11079 ## ------------------------------------ ##
11080 ## Report this to bug-autoconf@gnu.org. ##
11081 ## ------------------------------------ ##
11084 sed "s/^/$as_me: WARNING: /" >&2
11087 echo "$as_me:$LINENO: checking for $ac_header" >&5
11088 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11089 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11090 echo $ECHO_N "(cached) $ECHO_C" >&6
11092 eval "$as_ac_Header=$ac_header_preproc"
11094 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11095 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11098 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11099 cat >>confdefs.h
<<_ACEOF
11100 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11110 for ac_header
in sys
/time.h unistd.h
11112 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11113 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11114 echo "$as_me:$LINENO: checking for $ac_header" >&5
11115 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11116 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11117 echo $ECHO_N "(cached) $ECHO_C" >&6
11119 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11120 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11122 # Is the header compilable?
11123 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11124 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11125 cat >conftest.
$ac_ext <<_ACEOF
11126 #line $LINENO "configure"
11129 cat confdefs.h
>>conftest.
$ac_ext
11130 cat >>conftest.
$ac_ext <<_ACEOF
11131 /* end confdefs.h. */
11132 $ac_includes_default
11133 #include <$ac_header>
11135 rm -f conftest.
$ac_objext
11136 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11137 (eval $ac_compile) 2>&5
11139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11140 (exit $ac_status); } &&
11141 { ac_try
='test -s conftest.$ac_objext'
11142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11143 (eval $ac_try) 2>&5
11145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11146 (exit $ac_status); }; }; then
11147 ac_header_compiler
=yes
11149 echo "$as_me: failed program was:" >&5
11150 sed 's/^/| /' conftest.
$ac_ext >&5
11152 ac_header_compiler
=no
11154 rm -f conftest.
$ac_objext conftest.
$ac_ext
11155 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11156 echo "${ECHO_T}$ac_header_compiler" >&6
11158 # Is the header present?
11159 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11160 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11161 cat >conftest.
$ac_ext <<_ACEOF
11162 #line $LINENO "configure"
11165 cat confdefs.h
>>conftest.
$ac_ext
11166 cat >>conftest.
$ac_ext <<_ACEOF
11167 /* end confdefs.h. */
11168 #include <$ac_header>
11170 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11171 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11173 grep -v '^ *+' conftest.er1
>conftest.err
11175 cat conftest.err
>&5
11176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11177 (exit $ac_status); } >/dev
/null
; then
11178 if test -s conftest.err
; then
11179 ac_cpp_err
=$ac_c_preproc_warn_flag
11186 if test -z "$ac_cpp_err"; then
11187 ac_header_preproc
=yes
11189 echo "$as_me: failed program was:" >&5
11190 sed 's/^/| /' conftest.
$ac_ext >&5
11192 ac_header_preproc
=no
11194 rm -f conftest.err conftest.
$ac_ext
11195 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11196 echo "${ECHO_T}$ac_header_preproc" >&6
11198 # So? What about this header?
11199 case $ac_header_compiler:$ac_header_preproc in
11201 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11202 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11203 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11204 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11207 ## ------------------------------------ ##
11208 ## Report this to bug-autoconf@gnu.org. ##
11209 ## ------------------------------------ ##
11212 sed "s/^/$as_me: WARNING: /" >&2
11215 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11216 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11217 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11218 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11219 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11220 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11223 ## ------------------------------------ ##
11224 ## Report this to bug-autoconf@gnu.org. ##
11225 ## ------------------------------------ ##
11228 sed "s/^/$as_me: WARNING: /" >&2
11231 echo "$as_me:$LINENO: checking for $ac_header" >&5
11232 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11233 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11234 echo $ECHO_N "(cached) $ECHO_C" >&6
11236 eval "$as_ac_Header=$ac_header_preproc"
11238 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11239 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11242 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11243 cat >>confdefs.h
<<_ACEOF
11244 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11252 for ac_func
in alarm
11254 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11255 echo "$as_me:$LINENO: checking for $ac_func" >&5
11256 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11257 if eval "test \"\${$as_ac_var+set}\" = set"; then
11258 echo $ECHO_N "(cached) $ECHO_C" >&6
11260 cat >conftest.
$ac_ext <<_ACEOF
11261 #line $LINENO "configure"
11264 cat confdefs.h
>>conftest.
$ac_ext
11265 cat >>conftest.
$ac_ext <<_ACEOF
11266 /* end confdefs.h. */
11267 /* System header to define __stub macros and hopefully few prototypes,
11268 which can conflict with char $ac_func (); below. */
11269 #include <assert.h>
11270 /* Override any gcc2 internal prototype to avoid an error. */
11275 /* We use char because int might match the return type of a gcc2
11276 builtin and then its argument prototype would still apply. */
11278 /* The GNU C library defines this for functions which it implements
11279 to always fail with ENOSYS. Some functions are actually named
11280 something starting with __ and the normal name is an alias. */
11281 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11284 char (*f) () = $ac_func;
11298 rm -f conftest.
$ac_objext conftest
$ac_exeext
11299 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11300 (eval $ac_link) 2>&5
11302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11303 (exit $ac_status); } &&
11304 { ac_try
='test -s conftest$ac_exeext'
11305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11306 (eval $ac_try) 2>&5
11308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11309 (exit $ac_status); }; }; then
11310 eval "$as_ac_var=yes"
11312 echo "$as_me: failed program was:" >&5
11313 sed 's/^/| /' conftest.
$ac_ext >&5
11315 eval "$as_ac_var=no"
11317 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11319 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11320 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11321 if test `eval echo '${'$as_ac_var'}'` = yes; then
11322 cat >>confdefs.h
<<_ACEOF
11323 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11329 echo "$as_me:$LINENO: checking for working mktime" >&5
11330 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
11331 if test "${ac_cv_func_working_mktime+set}" = set; then
11332 echo $ECHO_N "(cached) $ECHO_C" >&6
11334 if test "$cross_compiling" = yes; then
11335 ac_cv_func_working_mktime
=no
11337 cat >conftest.
$ac_ext <<_ACEOF
11338 #line $LINENO "configure"
11341 cat confdefs.h
>>conftest.
$ac_ext
11342 cat >>conftest.
$ac_ext <<_ACEOF
11343 /* end confdefs.h. */
11344 /* Test program from Paul Eggert and Tony Leneis. */
11345 #if TIME_WITH_SYS_TIME
11346 # include <sys/time.h>
11349 # if HAVE_SYS_TIME_H
11350 # include <sys/time.h>
11357 # include <unistd.h>
11361 # define alarm(X) /* empty */
11364 /* Work around redefinition to rpl_putenv by other config tests. */
11367 static time_t time_t_max;
11369 /* Values we'll use to set the TZ environment variable. */
11370 static const char *const tz_strings[] = {
11371 (const char *) 0, "TZ=GMT0", "TZ=JST-9",
11372 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
11374 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
11376 /* Fail if mktime fails to convert a date in the spring-forward gap.
11377 Based on a problem report from Andreas Jaeger. */
11379 spring_forward_gap ()
11381 /* glibc (up to about 1998-10-07) failed this test. */
11384 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
11385 instead of "TZ=America/Vancouver" in order to detect the bug even
11386 on systems that don't support the Olson extension, or don't have the
11387 full zoneinfo tables installed. */
11388 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
11397 if (mktime (&tm) == (time_t)-1)
11406 if ((lt = localtime (&now)) && mktime (lt) != now)
11408 now = time_t_max - now;
11409 if ((lt = localtime (&now)) && mktime (lt) != now)
11416 /* Based on code from Ariel Faigon. */
11426 if (tm.tm_mon != 2 || tm.tm_mday != 31)
11436 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
11437 now = mktime (&tm);
11438 if (now != (time_t) -1)
11440 struct tm *lt = localtime (&now);
11442 && lt->tm_year == tm.tm_year
11443 && lt->tm_mon == tm.tm_mon
11444 && lt->tm_mday == tm.tm_mday
11445 && lt->tm_hour == tm.tm_hour
11446 && lt->tm_min == tm.tm_min
11447 && lt->tm_sec == tm.tm_sec
11448 && lt->tm_yday == tm.tm_yday
11449 && lt->tm_wday == tm.tm_wday
11450 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
11451 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
11462 /* This test makes some buggy mktime implementations loop.
11463 Give up after 60 seconds; a mktime slower than that
11464 isn't worth using anyway. */
11467 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
11470 delta = time_t_max / 997; /* a suitable prime number */
11471 for (i = 0; i < N_STRINGS; i++)
11474 putenv (tz_strings[i]);
11476 for (t = 0; t <= time_t_max - delta; t += delta)
11478 mktime_test ((time_t) 60 * 60);
11479 mktime_test ((time_t) 60 * 60 * 24);
11481 for (j = 1; 0 < j; j *= 2)
11483 bigtime_test (j - 1);
11486 spring_forward_gap ();
11490 rm -f conftest
$ac_exeext
11491 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11492 (eval $ac_link) 2>&5
11494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11495 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
11496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11497 (eval $ac_try) 2>&5
11499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11500 (exit $ac_status); }; }; then
11501 ac_cv_func_working_mktime
=yes
11503 echo "$as_me: program exited with status $ac_status" >&5
11504 echo "$as_me: failed program was:" >&5
11505 sed 's/^/| /' conftest.
$ac_ext >&5
11507 ( exit $ac_status )
11508 ac_cv_func_working_mktime
=no
11510 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
11513 echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
11514 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
11515 if test $ac_cv_func_working_mktime = no
; then
11516 LIBOBJS
="$LIBOBJS mktime.$ac_objext"
11519 if test "$ac_cv_func_working_mktime" = no
; then
11521 cat >>confdefs.h
<<\_ACEOF
11522 #define BROKEN_MKTIME 1
11527 ac_have_func
=no
# yes means we've found a way to get the load average.
11529 # Make sure getloadavg.c is where it belongs, at configure-time.
11530 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
11531 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
11532 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
11533 { (exit 1); exit 1; }; }
11537 # Check for getloadavg, but be sure not to touch the cache variable.
11538 (echo "$as_me:$LINENO: checking for getloadavg" >&5
11539 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6
11540 if test "${ac_cv_func_getloadavg+set}" = set; then
11541 echo $ECHO_N "(cached) $ECHO_C" >&6
11543 cat >conftest.
$ac_ext <<_ACEOF
11544 #line $LINENO "configure"
11547 cat confdefs.h
>>conftest.
$ac_ext
11548 cat >>conftest.
$ac_ext <<_ACEOF
11549 /* end confdefs.h. */
11550 /* System header to define __stub macros and hopefully few prototypes,
11551 which can conflict with char getloadavg (); below. */
11552 #include <assert.h>
11553 /* Override any gcc2 internal prototype to avoid an error. */
11558 /* We use char because int might match the return type of a gcc2
11559 builtin and then its argument prototype would still apply. */
11560 char getloadavg ();
11561 /* The GNU C library defines this for functions which it implements
11562 to always fail with ENOSYS. Some functions are actually named
11563 something starting with __ and the normal name is an alias. */
11564 #if defined (__stub_getloadavg) || defined (__stub___getloadavg)
11567 char (*f) () = getloadavg;
11581 rm -f conftest.
$ac_objext conftest
$ac_exeext
11582 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11583 (eval $ac_link) 2>&5
11585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11586 (exit $ac_status); } &&
11587 { ac_try
='test -s conftest$ac_exeext'
11588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11589 (eval $ac_try) 2>&5
11591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11592 (exit $ac_status); }; }; then
11593 ac_cv_func_getloadavg
=yes
11595 echo "$as_me: failed program was:" >&5
11596 sed 's/^/| /' conftest.
$ac_ext >&5
11598 ac_cv_func_getloadavg
=no
11600 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11602 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
11603 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6
11604 if test $ac_cv_func_getloadavg = yes; then
11609 ) && ac_have_func
=yes
11611 # On HPUX9, an unprivileged user can get load averages through this function.
11613 for ac_func
in pstat_getdynamic
11615 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11616 echo "$as_me:$LINENO: checking for $ac_func" >&5
11617 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11618 if eval "test \"\${$as_ac_var+set}\" = set"; then
11619 echo $ECHO_N "(cached) $ECHO_C" >&6
11621 cat >conftest.
$ac_ext <<_ACEOF
11622 #line $LINENO "configure"
11625 cat confdefs.h
>>conftest.
$ac_ext
11626 cat >>conftest.
$ac_ext <<_ACEOF
11627 /* end confdefs.h. */
11628 /* System header to define __stub macros and hopefully few prototypes,
11629 which can conflict with char $ac_func (); below. */
11630 #include <assert.h>
11631 /* Override any gcc2 internal prototype to avoid an error. */
11636 /* We use char because int might match the return type of a gcc2
11637 builtin and then its argument prototype would still apply. */
11639 /* The GNU C library defines this for functions which it implements
11640 to always fail with ENOSYS. Some functions are actually named
11641 something starting with __ and the normal name is an alias. */
11642 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11645 char (*f) () = $ac_func;
11659 rm -f conftest.
$ac_objext conftest
$ac_exeext
11660 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11661 (eval $ac_link) 2>&5
11663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11664 (exit $ac_status); } &&
11665 { ac_try
='test -s conftest$ac_exeext'
11666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11667 (eval $ac_try) 2>&5
11669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11670 (exit $ac_status); }; }; then
11671 eval "$as_ac_var=yes"
11673 echo "$as_me: failed program was:" >&5
11674 sed 's/^/| /' conftest.
$ac_ext >&5
11676 eval "$as_ac_var=no"
11678 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11680 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11681 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11682 if test `eval echo '${'$as_ac_var'}'` = yes; then
11683 cat >>confdefs.h
<<_ACEOF
11684 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11691 # Solaris has libkstat which does not require root.
11693 echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
11694 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6
11695 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
11696 echo $ECHO_N "(cached) $ECHO_C" >&6
11698 ac_check_lib_save_LIBS
=$LIBS
11699 LIBS
="-lkstat $LIBS"
11700 cat >conftest.
$ac_ext <<_ACEOF
11701 #line $LINENO "configure"
11704 cat confdefs.h
>>conftest.
$ac_ext
11705 cat >>conftest.
$ac_ext <<_ACEOF
11706 /* end confdefs.h. */
11708 /* Override any gcc2 internal prototype to avoid an error. */
11712 /* We use char because int might match the return type of a gcc2
11713 builtin and then its argument prototype would still apply. */
11714 char kstat_open ();
11723 rm -f conftest.
$ac_objext conftest
$ac_exeext
11724 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11725 (eval $ac_link) 2>&5
11727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11728 (exit $ac_status); } &&
11729 { ac_try
='test -s conftest$ac_exeext'
11730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11731 (eval $ac_try) 2>&5
11733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11734 (exit $ac_status); }; }; then
11735 ac_cv_lib_kstat_kstat_open
=yes
11737 echo "$as_me: failed program was:" >&5
11738 sed 's/^/| /' conftest.
$ac_ext >&5
11740 ac_cv_lib_kstat_kstat_open
=no
11742 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11743 LIBS
=$ac_check_lib_save_LIBS
11745 echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
11746 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6
11747 if test $ac_cv_lib_kstat_kstat_open = yes; then
11748 cat >>confdefs.h
<<_ACEOF
11749 #define HAVE_LIBKSTAT 1
11752 LIBS
="-lkstat $LIBS"
11756 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func
=yes
11758 # Some systems with -lutil have (and need) -lkvm as well, some do not.
11759 # On Solaris, -lkvm requires nlist from -lelf, so check that first
11760 # to get the right answer into the cache.
11761 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
11762 if test $ac_have_func = no
; then
11763 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
11764 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
11765 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
11766 echo $ECHO_N "(cached) $ECHO_C" >&6
11768 ac_check_lib_save_LIBS
=$LIBS
11770 cat >conftest.
$ac_ext <<_ACEOF
11771 #line $LINENO "configure"
11774 cat confdefs.h
>>conftest.
$ac_ext
11775 cat >>conftest.
$ac_ext <<_ACEOF
11776 /* end confdefs.h. */
11778 /* Override any gcc2 internal prototype to avoid an error. */
11782 /* We use char because int might match the return type of a gcc2
11783 builtin and then its argument prototype would still apply. */
11793 rm -f conftest.
$ac_objext conftest
$ac_exeext
11794 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11795 (eval $ac_link) 2>&5
11797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11798 (exit $ac_status); } &&
11799 { ac_try
='test -s conftest$ac_exeext'
11800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11801 (eval $ac_try) 2>&5
11803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11804 (exit $ac_status); }; }; then
11805 ac_cv_lib_elf_elf_begin
=yes
11807 echo "$as_me: failed program was:" >&5
11808 sed 's/^/| /' conftest.
$ac_ext >&5
11810 ac_cv_lib_elf_elf_begin
=no
11812 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11813 LIBS
=$ac_check_lib_save_LIBS
11815 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
11816 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
11817 if test $ac_cv_lib_elf_elf_begin = yes; then
11822 if test $ac_have_func = no
; then
11823 echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
11824 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6
11825 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
11826 echo $ECHO_N "(cached) $ECHO_C" >&6
11828 ac_check_lib_save_LIBS
=$LIBS
11830 cat >conftest.
$ac_ext <<_ACEOF
11831 #line $LINENO "configure"
11834 cat confdefs.h
>>conftest.
$ac_ext
11835 cat >>conftest.
$ac_ext <<_ACEOF
11836 /* end confdefs.h. */
11838 /* Override any gcc2 internal prototype to avoid an error. */
11842 /* We use char because int might match the return type of a gcc2
11843 builtin and then its argument prototype would still apply. */
11853 rm -f conftest.
$ac_objext conftest
$ac_exeext
11854 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11855 (eval $ac_link) 2>&5
11857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11858 (exit $ac_status); } &&
11859 { ac_try
='test -s conftest$ac_exeext'
11860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11861 (eval $ac_try) 2>&5
11863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11864 (exit $ac_status); }; }; then
11865 ac_cv_lib_kvm_kvm_open
=yes
11867 echo "$as_me: failed program was:" >&5
11868 sed 's/^/| /' conftest.
$ac_ext >&5
11870 ac_cv_lib_kvm_kvm_open
=no
11872 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11873 LIBS
=$ac_check_lib_save_LIBS
11875 echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
11876 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6
11877 if test $ac_cv_lib_kvm_kvm_open = yes; then
11881 # Check for the 4.4BSD definition of getloadavg.
11882 echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
11883 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6
11884 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
11885 echo $ECHO_N "(cached) $ECHO_C" >&6
11887 ac_check_lib_save_LIBS
=$LIBS
11888 LIBS
="-lutil $LIBS"
11889 cat >conftest.
$ac_ext <<_ACEOF
11890 #line $LINENO "configure"
11893 cat confdefs.h
>>conftest.
$ac_ext
11894 cat >>conftest.
$ac_ext <<_ACEOF
11895 /* end confdefs.h. */
11897 /* Override any gcc2 internal prototype to avoid an error. */
11901 /* We use char because int might match the return type of a gcc2
11902 builtin and then its argument prototype would still apply. */
11903 char getloadavg ();
11912 rm -f conftest.
$ac_objext conftest
$ac_exeext
11913 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11914 (eval $ac_link) 2>&5
11916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11917 (exit $ac_status); } &&
11918 { ac_try
='test -s conftest$ac_exeext'
11919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11920 (eval $ac_try) 2>&5
11922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11923 (exit $ac_status); }; }; then
11924 ac_cv_lib_util_getloadavg
=yes
11926 echo "$as_me: failed program was:" >&5
11927 sed 's/^/| /' conftest.
$ac_ext >&5
11929 ac_cv_lib_util_getloadavg
=no
11931 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11932 LIBS
=$ac_check_lib_save_LIBS
11934 echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
11935 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6
11936 if test $ac_cv_lib_util_getloadavg = yes; then
11937 LIBS
="-lutil $LIBS" ac_have_func
=yes ac_cv_func_getloadavg_setgid
=yes
11942 if test $ac_have_func = no
; then
11943 # There is a commonly available library for RS/6000 AIX.
11944 # Since it is not a standard part of AIX, it might be installed locally.
11945 ac_getloadavg_LIBS
=$LIBS
11946 LIBS
="-L/usr/local/lib $LIBS"
11947 echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
11948 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6
11949 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
11950 echo $ECHO_N "(cached) $ECHO_C" >&6
11952 ac_check_lib_save_LIBS
=$LIBS
11953 LIBS
="-lgetloadavg $LIBS"
11954 cat >conftest.
$ac_ext <<_ACEOF
11955 #line $LINENO "configure"
11958 cat confdefs.h
>>conftest.
$ac_ext
11959 cat >>conftest.
$ac_ext <<_ACEOF
11960 /* end confdefs.h. */
11962 /* Override any gcc2 internal prototype to avoid an error. */
11966 /* We use char because int might match the return type of a gcc2
11967 builtin and then its argument prototype would still apply. */
11968 char getloadavg ();
11977 rm -f conftest.
$ac_objext conftest
$ac_exeext
11978 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11979 (eval $ac_link) 2>&5
11981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11982 (exit $ac_status); } &&
11983 { ac_try
='test -s conftest$ac_exeext'
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); }; }; then
11989 ac_cv_lib_getloadavg_getloadavg
=yes
11991 echo "$as_me: failed program was:" >&5
11992 sed 's/^/| /' conftest.
$ac_ext >&5
11994 ac_cv_lib_getloadavg_getloadavg
=no
11996 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11997 LIBS
=$ac_check_lib_save_LIBS
11999 echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
12000 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6
12001 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
12002 LIBS
="-lgetloadavg $LIBS"
12004 LIBS
=$ac_getloadavg_LIBS
12009 # Make sure it is really in the library, if we think we found it,
12010 # otherwise set up the replacement function.
12012 for ac_func
in getloadavg
12014 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12015 echo "$as_me:$LINENO: checking for $ac_func" >&5
12016 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12017 if eval "test \"\${$as_ac_var+set}\" = set"; then
12018 echo $ECHO_N "(cached) $ECHO_C" >&6
12020 cat >conftest.
$ac_ext <<_ACEOF
12021 #line $LINENO "configure"
12024 cat confdefs.h
>>conftest.
$ac_ext
12025 cat >>conftest.
$ac_ext <<_ACEOF
12026 /* end confdefs.h. */
12027 /* System header to define __stub macros and hopefully few prototypes,
12028 which can conflict with char $ac_func (); below. */
12029 #include <assert.h>
12030 /* Override any gcc2 internal prototype to avoid an error. */
12035 /* We use char because int might match the return type of a gcc2
12036 builtin and then its argument prototype would still apply. */
12038 /* The GNU C library defines this for functions which it implements
12039 to always fail with ENOSYS. Some functions are actually named
12040 something starting with __ and the normal name is an alias. */
12041 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12044 char (*f) () = $ac_func;
12058 rm -f conftest.
$ac_objext conftest
$ac_exeext
12059 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12060 (eval $ac_link) 2>&5
12062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12063 (exit $ac_status); } &&
12064 { ac_try
='test -s conftest$ac_exeext'
12065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12066 (eval $ac_try) 2>&5
12068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12069 (exit $ac_status); }; }; then
12070 eval "$as_ac_var=yes"
12072 echo "$as_me: failed program was:" >&5
12073 sed 's/^/| /' conftest.
$ac_ext >&5
12075 eval "$as_ac_var=no"
12077 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12079 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12080 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12081 if test `eval echo '${'$as_ac_var'}'` = yes; then
12082 cat >>confdefs.h
<<_ACEOF
12083 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12087 LIBOBJS
="$LIBOBJS getloadavg.$ac_objext"
12089 cat >>confdefs.h
<<\_ACEOF
12090 #define C_GETLOADAVG 1
12093 # Figure out what our getloadavg.c needs.
12095 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
12096 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
12097 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
12098 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
12099 echo $ECHO_N "(cached) $ECHO_C" >&6
12101 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
12102 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
12104 # Is the header compilable?
12105 echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
12106 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6
12107 cat >conftest.
$ac_ext <<_ACEOF
12108 #line $LINENO "configure"
12111 cat confdefs.h
>>conftest.
$ac_ext
12112 cat >>conftest.
$ac_ext <<_ACEOF
12113 /* end confdefs.h. */
12114 $ac_includes_default
12115 #include <sys/dg_sys_info.h>
12117 rm -f conftest.
$ac_objext
12118 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12119 (eval $ac_compile) 2>&5
12121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12122 (exit $ac_status); } &&
12123 { ac_try
='test -s conftest.$ac_objext'
12124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12125 (eval $ac_try) 2>&5
12127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12128 (exit $ac_status); }; }; then
12129 ac_header_compiler
=yes
12131 echo "$as_me: failed program was:" >&5
12132 sed 's/^/| /' conftest.
$ac_ext >&5
12134 ac_header_compiler
=no
12136 rm -f conftest.
$ac_objext conftest.
$ac_ext
12137 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12138 echo "${ECHO_T}$ac_header_compiler" >&6
12140 # Is the header present?
12141 echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
12142 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6
12143 cat >conftest.
$ac_ext <<_ACEOF
12144 #line $LINENO "configure"
12147 cat confdefs.h
>>conftest.
$ac_ext
12148 cat >>conftest.
$ac_ext <<_ACEOF
12149 /* end confdefs.h. */
12150 #include <sys/dg_sys_info.h>
12152 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12153 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12155 grep -v '^ *+' conftest.er1
>conftest.err
12157 cat conftest.err
>&5
12158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12159 (exit $ac_status); } >/dev
/null
; then
12160 if test -s conftest.err
; then
12161 ac_cpp_err
=$ac_c_preproc_warn_flag
12168 if test -z "$ac_cpp_err"; then
12169 ac_header_preproc
=yes
12171 echo "$as_me: failed program was:" >&5
12172 sed 's/^/| /' conftest.
$ac_ext >&5
12174 ac_header_preproc
=no
12176 rm -f conftest.err conftest.
$ac_ext
12177 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12178 echo "${ECHO_T}$ac_header_preproc" >&6
12180 # So? What about this header?
12181 case $ac_header_compiler:$ac_header_preproc in
12183 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
12184 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12185 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
12186 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
12189 ## ------------------------------------ ##
12190 ## Report this to bug-autoconf@gnu.org. ##
12191 ## ------------------------------------ ##
12194 sed "s/^/$as_me: WARNING: /" >&2
12197 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
12198 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
12199 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
12200 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
12201 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
12202 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
12205 ## ------------------------------------ ##
12206 ## Report this to bug-autoconf@gnu.org. ##
12207 ## ------------------------------------ ##
12210 sed "s/^/$as_me: WARNING: /" >&2
12213 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
12214 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
12215 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
12216 echo $ECHO_N "(cached) $ECHO_C" >&6
12218 ac_cv_header_sys_dg_sys_info_h
=$ac_header_preproc
12220 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
12221 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
12224 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
12227 cat >>confdefs.h
<<\_ACEOF
12232 echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
12233 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6
12234 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
12235 echo $ECHO_N "(cached) $ECHO_C" >&6
12237 ac_check_lib_save_LIBS
=$LIBS
12239 cat >conftest.
$ac_ext <<_ACEOF
12240 #line $LINENO "configure"
12243 cat confdefs.h
>>conftest.
$ac_ext
12244 cat >>conftest.
$ac_ext <<_ACEOF
12245 /* end confdefs.h. */
12247 /* Override any gcc2 internal prototype to avoid an error. */
12251 /* We use char because int might match the return type of a gcc2
12252 builtin and then its argument prototype would still apply. */
12253 char dg_sys_info ();
12262 rm -f conftest.
$ac_objext conftest
$ac_exeext
12263 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12264 (eval $ac_link) 2>&5
12266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12267 (exit $ac_status); } &&
12268 { ac_try
='test -s conftest$ac_exeext'
12269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12270 (eval $ac_try) 2>&5
12272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12273 (exit $ac_status); }; }; then
12274 ac_cv_lib_dgc_dg_sys_info
=yes
12276 echo "$as_me: failed program was:" >&5
12277 sed 's/^/| /' conftest.
$ac_ext >&5
12279 ac_cv_lib_dgc_dg_sys_info
=no
12281 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12282 LIBS
=$ac_check_lib_save_LIBS
12284 echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
12285 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6
12286 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
12287 cat >>confdefs.h
<<_ACEOF
12288 #define HAVE_LIBDGC 1
12299 if test "${ac_cv_header_locale_h+set}" = set; then
12300 echo "$as_me:$LINENO: checking for locale.h" >&5
12301 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
12302 if test "${ac_cv_header_locale_h+set}" = set; then
12303 echo $ECHO_N "(cached) $ECHO_C" >&6
12305 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
12306 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
12308 # Is the header compilable?
12309 echo "$as_me:$LINENO: checking locale.h usability" >&5
12310 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6
12311 cat >conftest.
$ac_ext <<_ACEOF
12312 #line $LINENO "configure"
12315 cat confdefs.h
>>conftest.
$ac_ext
12316 cat >>conftest.
$ac_ext <<_ACEOF
12317 /* end confdefs.h. */
12318 $ac_includes_default
12319 #include <locale.h>
12321 rm -f conftest.
$ac_objext
12322 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12323 (eval $ac_compile) 2>&5
12325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12326 (exit $ac_status); } &&
12327 { ac_try
='test -s conftest.$ac_objext'
12328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12329 (eval $ac_try) 2>&5
12331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12332 (exit $ac_status); }; }; then
12333 ac_header_compiler
=yes
12335 echo "$as_me: failed program was:" >&5
12336 sed 's/^/| /' conftest.
$ac_ext >&5
12338 ac_header_compiler
=no
12340 rm -f conftest.
$ac_objext conftest.
$ac_ext
12341 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12342 echo "${ECHO_T}$ac_header_compiler" >&6
12344 # Is the header present?
12345 echo "$as_me:$LINENO: checking locale.h presence" >&5
12346 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6
12347 cat >conftest.
$ac_ext <<_ACEOF
12348 #line $LINENO "configure"
12351 cat confdefs.h
>>conftest.
$ac_ext
12352 cat >>conftest.
$ac_ext <<_ACEOF
12353 /* end confdefs.h. */
12354 #include <locale.h>
12356 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12357 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12359 grep -v '^ *+' conftest.er1
>conftest.err
12361 cat conftest.err
>&5
12362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12363 (exit $ac_status); } >/dev
/null
; then
12364 if test -s conftest.err
; then
12365 ac_cpp_err
=$ac_c_preproc_warn_flag
12372 if test -z "$ac_cpp_err"; then
12373 ac_header_preproc
=yes
12375 echo "$as_me: failed program was:" >&5
12376 sed 's/^/| /' conftest.
$ac_ext >&5
12378 ac_header_preproc
=no
12380 rm -f conftest.err conftest.
$ac_ext
12381 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12382 echo "${ECHO_T}$ac_header_preproc" >&6
12384 # So? What about this header?
12385 case $ac_header_compiler:$ac_header_preproc in
12387 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
12388 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12389 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
12390 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
12393 ## ------------------------------------ ##
12394 ## Report this to bug-autoconf@gnu.org. ##
12395 ## ------------------------------------ ##
12398 sed "s/^/$as_me: WARNING: /" >&2
12401 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
12402 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
12403 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
12404 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
12405 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
12406 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
12409 ## ------------------------------------ ##
12410 ## Report this to bug-autoconf@gnu.org. ##
12411 ## ------------------------------------ ##
12414 sed "s/^/$as_me: WARNING: /" >&2
12417 echo "$as_me:$LINENO: checking for locale.h" >&5
12418 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
12419 if test "${ac_cv_header_locale_h+set}" = set; then
12420 echo $ECHO_N "(cached) $ECHO_C" >&6
12422 ac_cv_header_locale_h
=$ac_header_preproc
12424 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
12425 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
12431 for ac_func
in setlocale
12433 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12434 echo "$as_me:$LINENO: checking for $ac_func" >&5
12435 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12436 if eval "test \"\${$as_ac_var+set}\" = set"; then
12437 echo $ECHO_N "(cached) $ECHO_C" >&6
12439 cat >conftest.
$ac_ext <<_ACEOF
12440 #line $LINENO "configure"
12443 cat confdefs.h
>>conftest.
$ac_ext
12444 cat >>conftest.
$ac_ext <<_ACEOF
12445 /* end confdefs.h. */
12446 /* System header to define __stub macros and hopefully few prototypes,
12447 which can conflict with char $ac_func (); below. */
12448 #include <assert.h>
12449 /* Override any gcc2 internal prototype to avoid an error. */
12454 /* We use char because int might match the return type of a gcc2
12455 builtin and then its argument prototype would still apply. */
12457 /* The GNU C library defines this for functions which it implements
12458 to always fail with ENOSYS. Some functions are actually named
12459 something starting with __ and the normal name is an alias. */
12460 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12463 char (*f) () = $ac_func;
12477 rm -f conftest.
$ac_objext conftest
$ac_exeext
12478 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12479 (eval $ac_link) 2>&5
12481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12482 (exit $ac_status); } &&
12483 { ac_try
='test -s conftest$ac_exeext'
12484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12485 (eval $ac_try) 2>&5
12487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12488 (exit $ac_status); }; }; then
12489 eval "$as_ac_var=yes"
12491 echo "$as_me: failed program was:" >&5
12492 sed 's/^/| /' conftest.
$ac_ext >&5
12494 eval "$as_ac_var=no"
12496 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12498 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12499 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12500 if test `eval echo '${'$as_ac_var'}'` = yes; then
12501 cat >>confdefs.h
<<_ACEOF
12502 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12509 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
12510 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
12511 # Irix 4.0.5F has the header but not the library.
12512 if test $ac_have_func = no
&& test "$ac_cv_lib_elf_elf_begin" = yes; then
12515 cat >>confdefs.h
<<\_ACEOF
12521 if test $ac_have_func = no
; then
12522 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
12523 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
12524 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
12525 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
12526 echo $ECHO_N "(cached) $ECHO_C" >&6
12528 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
12529 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
12531 # Is the header compilable?
12532 echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
12533 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6
12534 cat >conftest.
$ac_ext <<_ACEOF
12535 #line $LINENO "configure"
12538 cat confdefs.h
>>conftest.
$ac_ext
12539 cat >>conftest.
$ac_ext <<_ACEOF
12540 /* end confdefs.h. */
12541 $ac_includes_default
12542 #include <inq_stats/cpustats.h>
12544 rm -f conftest.
$ac_objext
12545 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12546 (eval $ac_compile) 2>&5
12548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12549 (exit $ac_status); } &&
12550 { ac_try
='test -s conftest.$ac_objext'
12551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12552 (eval $ac_try) 2>&5
12554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12555 (exit $ac_status); }; }; then
12556 ac_header_compiler
=yes
12558 echo "$as_me: failed program was:" >&5
12559 sed 's/^/| /' conftest.
$ac_ext >&5
12561 ac_header_compiler
=no
12563 rm -f conftest.
$ac_objext conftest.
$ac_ext
12564 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12565 echo "${ECHO_T}$ac_header_compiler" >&6
12567 # Is the header present?
12568 echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
12569 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6
12570 cat >conftest.
$ac_ext <<_ACEOF
12571 #line $LINENO "configure"
12574 cat confdefs.h
>>conftest.
$ac_ext
12575 cat >>conftest.
$ac_ext <<_ACEOF
12576 /* end confdefs.h. */
12577 #include <inq_stats/cpustats.h>
12579 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12580 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12582 grep -v '^ *+' conftest.er1
>conftest.err
12584 cat conftest.err
>&5
12585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12586 (exit $ac_status); } >/dev
/null
; then
12587 if test -s conftest.err
; then
12588 ac_cpp_err
=$ac_c_preproc_warn_flag
12595 if test -z "$ac_cpp_err"; then
12596 ac_header_preproc
=yes
12598 echo "$as_me: failed program was:" >&5
12599 sed 's/^/| /' conftest.
$ac_ext >&5
12601 ac_header_preproc
=no
12603 rm -f conftest.err conftest.
$ac_ext
12604 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12605 echo "${ECHO_T}$ac_header_preproc" >&6
12607 # So? What about this header?
12608 case $ac_header_compiler:$ac_header_preproc in
12610 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
12611 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12612 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
12613 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
12616 ## ------------------------------------ ##
12617 ## Report this to bug-autoconf@gnu.org. ##
12618 ## ------------------------------------ ##
12621 sed "s/^/$as_me: WARNING: /" >&2
12624 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
12625 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
12626 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
12627 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
12628 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
12629 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
12632 ## ------------------------------------ ##
12633 ## Report this to bug-autoconf@gnu.org. ##
12634 ## ------------------------------------ ##
12637 sed "s/^/$as_me: WARNING: /" >&2
12640 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
12641 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
12642 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
12643 echo $ECHO_N "(cached) $ECHO_C" >&6
12645 ac_cv_header_inq_stats_cpustats_h
=$ac_header_preproc
12647 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
12648 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
12651 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
12654 cat >>confdefs.h
<<\_ACEOF
12659 cat >>confdefs.h
<<\_ACEOF
12668 if test $ac_have_func = no
; then
12669 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
12670 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
12671 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
12672 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
12673 echo $ECHO_N "(cached) $ECHO_C" >&6
12675 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
12676 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
12678 # Is the header compilable?
12679 echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
12680 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6
12681 cat >conftest.
$ac_ext <<_ACEOF
12682 #line $LINENO "configure"
12685 cat confdefs.h
>>conftest.
$ac_ext
12686 cat >>conftest.
$ac_ext <<_ACEOF
12687 /* end confdefs.h. */
12688 $ac_includes_default
12689 #include <sys/cpustats.h>
12691 rm -f conftest.
$ac_objext
12692 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12693 (eval $ac_compile) 2>&5
12695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12696 (exit $ac_status); } &&
12697 { ac_try
='test -s conftest.$ac_objext'
12698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12699 (eval $ac_try) 2>&5
12701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12702 (exit $ac_status); }; }; then
12703 ac_header_compiler
=yes
12705 echo "$as_me: failed program was:" >&5
12706 sed 's/^/| /' conftest.
$ac_ext >&5
12708 ac_header_compiler
=no
12710 rm -f conftest.
$ac_objext conftest.
$ac_ext
12711 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12712 echo "${ECHO_T}$ac_header_compiler" >&6
12714 # Is the header present?
12715 echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
12716 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6
12717 cat >conftest.
$ac_ext <<_ACEOF
12718 #line $LINENO "configure"
12721 cat confdefs.h
>>conftest.
$ac_ext
12722 cat >>conftest.
$ac_ext <<_ACEOF
12723 /* end confdefs.h. */
12724 #include <sys/cpustats.h>
12726 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12727 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12729 grep -v '^ *+' conftest.er1
>conftest.err
12731 cat conftest.err
>&5
12732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12733 (exit $ac_status); } >/dev
/null
; then
12734 if test -s conftest.err
; then
12735 ac_cpp_err
=$ac_c_preproc_warn_flag
12742 if test -z "$ac_cpp_err"; then
12743 ac_header_preproc
=yes
12745 echo "$as_me: failed program was:" >&5
12746 sed 's/^/| /' conftest.
$ac_ext >&5
12748 ac_header_preproc
=no
12750 rm -f conftest.err conftest.
$ac_ext
12751 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12752 echo "${ECHO_T}$ac_header_preproc" >&6
12754 # So? What about this header?
12755 case $ac_header_compiler:$ac_header_preproc in
12757 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
12758 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12759 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
12760 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
12763 ## ------------------------------------ ##
12764 ## Report this to bug-autoconf@gnu.org. ##
12765 ## ------------------------------------ ##
12768 sed "s/^/$as_me: WARNING: /" >&2
12771 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
12772 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
12773 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
12774 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
12775 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
12776 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
12779 ## ------------------------------------ ##
12780 ## Report this to bug-autoconf@gnu.org. ##
12781 ## ------------------------------------ ##
12784 sed "s/^/$as_me: WARNING: /" >&2
12787 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
12788 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
12789 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
12790 echo $ECHO_N "(cached) $ECHO_C" >&6
12792 ac_cv_header_sys_cpustats_h
=$ac_header_preproc
12794 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
12795 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
12798 if test $ac_cv_header_sys_cpustats_h = yes; then
12799 ac_have_func
=yes; cat >>confdefs.h
<<\_ACEOF
12808 if test $ac_have_func = no
; then
12810 for ac_header
in mach
/mach.h
12812 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12813 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12814 echo "$as_me:$LINENO: checking for $ac_header" >&5
12815 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12816 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12817 echo $ECHO_N "(cached) $ECHO_C" >&6
12819 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12820 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12822 # Is the header compilable?
12823 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12824 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12825 cat >conftest.
$ac_ext <<_ACEOF
12826 #line $LINENO "configure"
12829 cat confdefs.h
>>conftest.
$ac_ext
12830 cat >>conftest.
$ac_ext <<_ACEOF
12831 /* end confdefs.h. */
12832 $ac_includes_default
12833 #include <$ac_header>
12835 rm -f conftest.
$ac_objext
12836 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12837 (eval $ac_compile) 2>&5
12839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12840 (exit $ac_status); } &&
12841 { ac_try
='test -s conftest.$ac_objext'
12842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12843 (eval $ac_try) 2>&5
12845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12846 (exit $ac_status); }; }; then
12847 ac_header_compiler
=yes
12849 echo "$as_me: failed program was:" >&5
12850 sed 's/^/| /' conftest.
$ac_ext >&5
12852 ac_header_compiler
=no
12854 rm -f conftest.
$ac_objext conftest.
$ac_ext
12855 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12856 echo "${ECHO_T}$ac_header_compiler" >&6
12858 # Is the header present?
12859 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12860 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12861 cat >conftest.
$ac_ext <<_ACEOF
12862 #line $LINENO "configure"
12865 cat confdefs.h
>>conftest.
$ac_ext
12866 cat >>conftest.
$ac_ext <<_ACEOF
12867 /* end confdefs.h. */
12868 #include <$ac_header>
12870 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12871 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12873 grep -v '^ *+' conftest.er1
>conftest.err
12875 cat conftest.err
>&5
12876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12877 (exit $ac_status); } >/dev
/null
; then
12878 if test -s conftest.err
; then
12879 ac_cpp_err
=$ac_c_preproc_warn_flag
12886 if test -z "$ac_cpp_err"; then
12887 ac_header_preproc
=yes
12889 echo "$as_me: failed program was:" >&5
12890 sed 's/^/| /' conftest.
$ac_ext >&5
12892 ac_header_preproc
=no
12894 rm -f conftest.err conftest.
$ac_ext
12895 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12896 echo "${ECHO_T}$ac_header_preproc" >&6
12898 # So? What about this header?
12899 case $ac_header_compiler:$ac_header_preproc in
12901 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12902 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12903 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12904 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12907 ## ------------------------------------ ##
12908 ## Report this to bug-autoconf@gnu.org. ##
12909 ## ------------------------------------ ##
12912 sed "s/^/$as_me: WARNING: /" >&2
12915 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12916 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12917 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12918 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12919 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12920 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12923 ## ------------------------------------ ##
12924 ## Report this to bug-autoconf@gnu.org. ##
12925 ## ------------------------------------ ##
12928 sed "s/^/$as_me: WARNING: /" >&2
12931 echo "$as_me:$LINENO: checking for $ac_header" >&5
12932 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12933 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12934 echo $ECHO_N "(cached) $ECHO_C" >&6
12936 eval "$as_ac_Header=$ac_header_preproc"
12938 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12939 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12942 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12943 cat >>confdefs.h
<<_ACEOF
12944 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12954 for ac_header
in nlist.h
12956 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12957 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12958 echo "$as_me:$LINENO: checking for $ac_header" >&5
12959 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12960 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12961 echo $ECHO_N "(cached) $ECHO_C" >&6
12963 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12964 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12966 # Is the header compilable?
12967 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12968 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12969 cat >conftest.
$ac_ext <<_ACEOF
12970 #line $LINENO "configure"
12973 cat confdefs.h
>>conftest.
$ac_ext
12974 cat >>conftest.
$ac_ext <<_ACEOF
12975 /* end confdefs.h. */
12976 $ac_includes_default
12977 #include <$ac_header>
12979 rm -f conftest.
$ac_objext
12980 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12981 (eval $ac_compile) 2>&5
12983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12984 (exit $ac_status); } &&
12985 { ac_try
='test -s conftest.$ac_objext'
12986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12987 (eval $ac_try) 2>&5
12989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12990 (exit $ac_status); }; }; then
12991 ac_header_compiler
=yes
12993 echo "$as_me: failed program was:" >&5
12994 sed 's/^/| /' conftest.
$ac_ext >&5
12996 ac_header_compiler
=no
12998 rm -f conftest.
$ac_objext conftest.
$ac_ext
12999 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13000 echo "${ECHO_T}$ac_header_compiler" >&6
13002 # Is the header present?
13003 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13004 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13005 cat >conftest.
$ac_ext <<_ACEOF
13006 #line $LINENO "configure"
13009 cat confdefs.h
>>conftest.
$ac_ext
13010 cat >>conftest.
$ac_ext <<_ACEOF
13011 /* end confdefs.h. */
13012 #include <$ac_header>
13014 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13015 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
13017 grep -v '^ *+' conftest.er1
>conftest.err
13019 cat conftest.err
>&5
13020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13021 (exit $ac_status); } >/dev
/null
; then
13022 if test -s conftest.err
; then
13023 ac_cpp_err
=$ac_c_preproc_warn_flag
13030 if test -z "$ac_cpp_err"; then
13031 ac_header_preproc
=yes
13033 echo "$as_me: failed program was:" >&5
13034 sed 's/^/| /' conftest.
$ac_ext >&5
13036 ac_header_preproc
=no
13038 rm -f conftest.err conftest.
$ac_ext
13039 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13040 echo "${ECHO_T}$ac_header_preproc" >&6
13042 # So? What about this header?
13043 case $ac_header_compiler:$ac_header_preproc in
13045 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13046 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13047 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13048 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13051 ## ------------------------------------ ##
13052 ## Report this to bug-autoconf@gnu.org. ##
13053 ## ------------------------------------ ##
13056 sed "s/^/$as_me: WARNING: /" >&2
13059 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13060 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13061 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13062 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13063 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13064 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13067 ## ------------------------------------ ##
13068 ## Report this to bug-autoconf@gnu.org. ##
13069 ## ------------------------------------ ##
13072 sed "s/^/$as_me: WARNING: /" >&2
13075 echo "$as_me:$LINENO: checking for $ac_header" >&5
13076 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13077 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13078 echo $ECHO_N "(cached) $ECHO_C" >&6
13080 eval "$as_ac_Header=$ac_header_preproc"
13082 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13083 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13086 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13087 cat >>confdefs.h
<<_ACEOF
13088 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13090 echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
13091 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6
13092 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
13093 echo $ECHO_N "(cached) $ECHO_C" >&6
13095 cat >conftest.
$ac_ext <<_ACEOF
13096 #line $LINENO "configure"
13099 cat confdefs.h
>>conftest.
$ac_ext
13100 cat >>conftest.
$ac_ext <<_ACEOF
13101 /* end confdefs.h. */
13107 static struct nlist ac_aggr;
13108 if (ac_aggr.n_un.n_name)
13114 rm -f conftest.
$ac_objext
13115 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13116 (eval $ac_compile) 2>&5
13118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13119 (exit $ac_status); } &&
13120 { ac_try
='test -s conftest.$ac_objext'
13121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13122 (eval $ac_try) 2>&5
13124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13125 (exit $ac_status); }; }; then
13126 ac_cv_member_struct_nlist_n_un_n_name
=yes
13128 echo "$as_me: failed program was:" >&5
13129 sed 's/^/| /' conftest.
$ac_ext >&5
13131 cat >conftest.
$ac_ext <<_ACEOF
13132 #line $LINENO "configure"
13135 cat confdefs.h
>>conftest.
$ac_ext
13136 cat >>conftest.
$ac_ext <<_ACEOF
13137 /* end confdefs.h. */
13143 static struct nlist ac_aggr;
13144 if (sizeof ac_aggr.n_un.n_name)
13150 rm -f conftest.
$ac_objext
13151 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13152 (eval $ac_compile) 2>&5
13154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13155 (exit $ac_status); } &&
13156 { ac_try
='test -s conftest.$ac_objext'
13157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13158 (eval $ac_try) 2>&5
13160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13161 (exit $ac_status); }; }; then
13162 ac_cv_member_struct_nlist_n_un_n_name
=yes
13164 echo "$as_me: failed program was:" >&5
13165 sed 's/^/| /' conftest.
$ac_ext >&5
13167 ac_cv_member_struct_nlist_n_un_n_name
=no
13169 rm -f conftest.
$ac_objext conftest.
$ac_ext
13171 rm -f conftest.
$ac_objext conftest.
$ac_ext
13173 echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
13174 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6
13175 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
13177 cat >>confdefs.h
<<_ACEOF
13178 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
13182 cat >>confdefs.h
<<\_ACEOF
13183 #define NLIST_NAME_UNION 1
13197 # Some definitions of getloadavg require that the program be installed setgid.
13198 echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
13199 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6
13200 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
13201 echo $ECHO_N "(cached) $ECHO_C" >&6
13203 cat >conftest.
$ac_ext <<_ACEOF
13204 #line $LINENO "configure"
13207 cat confdefs.h
>>conftest.
$ac_ext
13208 cat >>conftest.
$ac_ext <<_ACEOF
13209 /* end confdefs.h. */
13210 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
13211 #ifdef LDAV_PRIVILEGED
13212 Yowza Am I SETGID yet
13215 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13216 $EGREP "Yowza Am I SETGID yet" >/dev
/null
2>&1; then
13217 ac_cv_func_getloadavg_setgid
=yes
13219 ac_cv_func_getloadavg_setgid
=no
13224 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
13225 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6
13226 if test $ac_cv_func_getloadavg_setgid = yes; then
13229 cat >>confdefs.h
<<\_ACEOF
13230 #define GETLOADAVG_PRIVILEGED 1
13237 if test $ac_cv_func_getloadavg_setgid = yes; then
13238 echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
13239 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6
13240 if test "${ac_cv_group_kmem+set}" = set; then
13241 echo $ECHO_N "(cached) $ECHO_C" >&6
13243 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
13244 ac_ls_output
=`ls -lgL /dev/kmem 2>/dev/null`
13245 # If we got an error (system does not support symlinks), try without -L.
13246 test -z "$ac_ls_output" && ac_ls_output
=`ls -lg /dev/kmem`
13247 ac_cv_group_kmem
=`echo $ac_ls_output \
13248 | sed -ne 's/[ ][ ]*/ /g;
13249 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
13253 echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
13254 echo "${ECHO_T}$ac_cv_group_kmem" >&6
13255 KMEM_GROUP
=$ac_cv_group_kmem
13257 if test "x$ac_save_LIBS" = x
; then
13258 GETLOADAVG_LIBS
=$LIBS
13260 GETLOADAVG_LIBS
=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
13266 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
13267 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
13268 if test "${ac_cv_sys_largefile_source+set}" = set; then
13269 echo $ECHO_N "(cached) $ECHO_C" >&6
13272 ac_cv_sys_largefile_source
=no
13273 cat >conftest.
$ac_ext <<_ACEOF
13274 #line $LINENO "configure"
13277 cat confdefs.h
>>conftest.
$ac_ext
13278 cat >>conftest.
$ac_ext <<_ACEOF
13279 /* end confdefs.h. */
13289 rm -f conftest.
$ac_objext
13290 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13291 (eval $ac_compile) 2>&5
13293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13294 (exit $ac_status); } &&
13295 { ac_try
='test -s conftest.$ac_objext'
13296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13297 (eval $ac_try) 2>&5
13299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13300 (exit $ac_status); }; }; then
13303 echo "$as_me: failed program was:" >&5
13304 sed 's/^/| /' conftest.
$ac_ext >&5
13307 rm -f conftest.
$ac_objext conftest.
$ac_ext
13308 cat >conftest.
$ac_ext <<_ACEOF
13309 #line $LINENO "configure"
13312 cat confdefs.h
>>conftest.
$ac_ext
13313 cat >>conftest.
$ac_ext <<_ACEOF
13314 /* end confdefs.h. */
13315 #define _LARGEFILE_SOURCE 1
13325 rm -f conftest.
$ac_objext
13326 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13327 (eval $ac_compile) 2>&5
13329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13330 (exit $ac_status); } &&
13331 { ac_try
='test -s conftest.$ac_objext'
13332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13333 (eval $ac_try) 2>&5
13335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13336 (exit $ac_status); }; }; then
13337 ac_cv_sys_largefile_source
=1; break
13339 echo "$as_me: failed program was:" >&5
13340 sed 's/^/| /' conftest.
$ac_ext >&5
13343 rm -f conftest.
$ac_objext conftest.
$ac_ext
13347 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
13348 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
13349 if test "$ac_cv_sys_largefile_source" != no
; then
13351 cat >>confdefs.h
<<_ACEOF
13352 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
13358 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
13359 # in glibc 2.1.3, but that breaks too many other things.
13360 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
13361 echo "$as_me:$LINENO: checking for fseeko" >&5
13362 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
13363 if test "${ac_cv_func_fseeko+set}" = set; then
13364 echo $ECHO_N "(cached) $ECHO_C" >&6
13366 cat >conftest.
$ac_ext <<_ACEOF
13367 #line $LINENO "configure"
13370 cat confdefs.h
>>conftest.
$ac_ext
13371 cat >>conftest.
$ac_ext <<_ACEOF
13372 /* end confdefs.h. */
13377 return fseeko && fseeko (stdin, 0, 0);
13382 rm -f conftest.
$ac_objext conftest
$ac_exeext
13383 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13384 (eval $ac_link) 2>&5
13386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13387 (exit $ac_status); } &&
13388 { ac_try
='test -s conftest$ac_exeext'
13389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13390 (eval $ac_try) 2>&5
13392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13393 (exit $ac_status); }; }; then
13394 ac_cv_func_fseeko
=yes
13396 echo "$as_me: failed program was:" >&5
13397 sed 's/^/| /' conftest.
$ac_ext >&5
13399 ac_cv_func_fseeko
=no
13401 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
13403 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
13404 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
13405 if test $ac_cv_func_fseeko = yes; then
13407 cat >>confdefs.h
<<\_ACEOF
13408 #define HAVE_FSEEKO 1
13414 echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
13415 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6
13416 if test "${ac_cv_func_getpgrp_void+set}" = set; then
13417 echo $ECHO_N "(cached) $ECHO_C" >&6
13419 # Use it with a single arg.
13420 cat >conftest.
$ac_ext <<_ACEOF
13421 #line $LINENO "configure"
13424 cat confdefs.h
>>conftest.
$ac_ext
13425 cat >>conftest.
$ac_ext <<_ACEOF
13426 /* end confdefs.h. */
13427 $ac_includes_default
13436 rm -f conftest.
$ac_objext
13437 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13438 (eval $ac_compile) 2>&5
13440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13441 (exit $ac_status); } &&
13442 { ac_try
='test -s conftest.$ac_objext'
13443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13444 (eval $ac_try) 2>&5
13446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13447 (exit $ac_status); }; }; then
13448 ac_cv_func_getpgrp_void
=no
13450 echo "$as_me: failed program was:" >&5
13451 sed 's/^/| /' conftest.
$ac_ext >&5
13453 ac_cv_func_getpgrp_void
=yes
13455 rm -f conftest.
$ac_objext conftest.
$ac_ext
13458 echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
13459 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6
13460 if test $ac_cv_func_getpgrp_void = yes; then
13462 cat >>confdefs.h
<<\_ACEOF
13463 #define GETPGRP_VOID 1
13471 for ac_func
in grantpt
13473 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13474 echo "$as_me:$LINENO: checking for $ac_func" >&5
13475 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13476 if eval "test \"\${$as_ac_var+set}\" = set"; then
13477 echo $ECHO_N "(cached) $ECHO_C" >&6
13479 cat >conftest.
$ac_ext <<_ACEOF
13480 #line $LINENO "configure"
13483 cat confdefs.h
>>conftest.
$ac_ext
13484 cat >>conftest.
$ac_ext <<_ACEOF
13485 /* end confdefs.h. */
13486 /* System header to define __stub macros and hopefully few prototypes,
13487 which can conflict with char $ac_func (); below. */
13488 #include <assert.h>
13489 /* Override any gcc2 internal prototype to avoid an error. */
13494 /* We use char because int might match the return type of a gcc2
13495 builtin and then its argument prototype would still apply. */
13497 /* The GNU C library defines this for functions which it implements
13498 to always fail with ENOSYS. Some functions are actually named
13499 something starting with __ and the normal name is an alias. */
13500 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13503 char (*f) () = $ac_func;
13517 rm -f conftest.
$ac_objext conftest
$ac_exeext
13518 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13519 (eval $ac_link) 2>&5
13521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13522 (exit $ac_status); } &&
13523 { ac_try
='test -s conftest$ac_exeext'
13524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13525 (eval $ac_try) 2>&5
13527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13528 (exit $ac_status); }; }; then
13529 eval "$as_ac_var=yes"
13531 echo "$as_me: failed program was:" >&5
13532 sed 's/^/| /' conftest.
$ac_ext >&5
13534 eval "$as_ac_var=no"
13536 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
13538 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13539 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13540 if test `eval echo '${'$as_ac_var'}'` = yes; then
13541 cat >>confdefs.h
<<_ACEOF
13542 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13549 # PTY-related GNU extensions.
13551 for ac_func
in getpt
13553 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13554 echo "$as_me:$LINENO: checking for $ac_func" >&5
13555 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13556 if eval "test \"\${$as_ac_var+set}\" = set"; then
13557 echo $ECHO_N "(cached) $ECHO_C" >&6
13559 cat >conftest.
$ac_ext <<_ACEOF
13560 #line $LINENO "configure"
13563 cat confdefs.h
>>conftest.
$ac_ext
13564 cat >>conftest.
$ac_ext <<_ACEOF
13565 /* end confdefs.h. */
13566 /* System header to define __stub macros and hopefully few prototypes,
13567 which can conflict with char $ac_func (); below. */
13568 #include <assert.h>
13569 /* Override any gcc2 internal prototype to avoid an error. */
13574 /* We use char because int might match the return type of a gcc2
13575 builtin and then its argument prototype would still apply. */
13577 /* The GNU C library defines this for functions which it implements
13578 to always fail with ENOSYS. Some functions are actually named
13579 something starting with __ and the normal name is an alias. */
13580 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13583 char (*f) () = $ac_func;
13597 rm -f conftest.
$ac_objext conftest
$ac_exeext
13598 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13599 (eval $ac_link) 2>&5
13601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13602 (exit $ac_status); } &&
13603 { ac_try
='test -s conftest$ac_exeext'
13604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13605 (eval $ac_try) 2>&5
13607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13608 (exit $ac_status); }; }; then
13609 eval "$as_ac_var=yes"
13611 echo "$as_me: failed program was:" >&5
13612 sed 's/^/| /' conftest.
$ac_ext >&5
13614 eval "$as_ac_var=no"
13616 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
13618 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13619 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13620 if test `eval echo '${'$as_ac_var'}'` = yes; then
13621 cat >>confdefs.h
<<_ACEOF
13622 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13629 # Check this now, so that we will NOT find the above functions in ncurses.
13630 # That is because we have not set up to link ncurses in lib-src.
13631 # It's better to believe a function is not available
13632 # than to expect to find it in ncurses.
13634 echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
13635 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6
13636 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
13637 echo $ECHO_N "(cached) $ECHO_C" >&6
13639 ac_check_lib_save_LIBS
=$LIBS
13640 LIBS
="-lncurses $LIBS"
13641 cat >conftest.
$ac_ext <<_ACEOF
13642 #line $LINENO "configure"
13645 cat confdefs.h
>>conftest.
$ac_ext
13646 cat >>conftest.
$ac_ext <<_ACEOF
13647 /* end confdefs.h. */
13649 /* Override any gcc2 internal prototype to avoid an error. */
13653 /* We use char because int might match the return type of a gcc2
13654 builtin and then its argument prototype would still apply. */
13664 rm -f conftest.
$ac_objext conftest
$ac_exeext
13665 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13666 (eval $ac_link) 2>&5
13668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13669 (exit $ac_status); } &&
13670 { ac_try
='test -s conftest$ac_exeext'
13671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13672 (eval $ac_try) 2>&5
13674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13675 (exit $ac_status); }; }; then
13676 ac_cv_lib_ncurses_tparm
=yes
13678 echo "$as_me: failed program was:" >&5
13679 sed 's/^/| /' conftest.
$ac_ext >&5
13681 ac_cv_lib_ncurses_tparm
=no
13683 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
13684 LIBS
=$ac_check_lib_save_LIBS
13686 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
13687 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6
13688 if test $ac_cv_lib_ncurses_tparm = yes; then
13689 cat >>confdefs.h
<<_ACEOF
13690 #define HAVE_LIBNCURSES 1
13693 LIBS
="-lncurses $LIBS"
13698 # Do we need the Hesiod library to provide the support routines?
13699 if test "$with_hesiod" = yes ; then
13700 # Don't set $LIBS here -- see comments above.
13702 echo "$as_me:$LINENO: checking for res_send" >&5
13703 echo $ECHO_N "checking for res_send... $ECHO_C" >&6
13704 if test "${ac_cv_func_res_send+set}" = set; then
13705 echo $ECHO_N "(cached) $ECHO_C" >&6
13707 cat >conftest.
$ac_ext <<_ACEOF
13708 #line $LINENO "configure"
13711 cat confdefs.h
>>conftest.
$ac_ext
13712 cat >>conftest.
$ac_ext <<_ACEOF
13713 /* end confdefs.h. */
13714 /* System header to define __stub macros and hopefully few prototypes,
13715 which can conflict with char res_send (); below. */
13716 #include <assert.h>
13717 /* Override any gcc2 internal prototype to avoid an error. */
13722 /* We use char because int might match the return type of a gcc2
13723 builtin and then its argument prototype would still apply. */
13725 /* The GNU C library defines this for functions which it implements
13726 to always fail with ENOSYS. Some functions are actually named
13727 something starting with __ and the normal name is an alias. */
13728 #if defined (__stub_res_send) || defined (__stub___res_send)
13731 char (*f) () = res_send;
13745 rm -f conftest.
$ac_objext conftest
$ac_exeext
13746 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13747 (eval $ac_link) 2>&5
13749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13750 (exit $ac_status); } &&
13751 { ac_try
='test -s conftest$ac_exeext'
13752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13753 (eval $ac_try) 2>&5
13755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13756 (exit $ac_status); }; }; then
13757 ac_cv_func_res_send
=yes
13759 echo "$as_me: failed program was:" >&5
13760 sed 's/^/| /' conftest.
$ac_ext >&5
13762 ac_cv_func_res_send
=no
13764 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
13766 echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
13767 echo "${ECHO_T}$ac_cv_func_res_send" >&6
13768 if test $ac_cv_func_res_send = yes; then
13771 echo "$as_me:$LINENO: checking for __res_send" >&5
13772 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6
13773 if test "${ac_cv_func___res_send+set}" = set; then
13774 echo $ECHO_N "(cached) $ECHO_C" >&6
13776 cat >conftest.
$ac_ext <<_ACEOF
13777 #line $LINENO "configure"
13780 cat confdefs.h
>>conftest.
$ac_ext
13781 cat >>conftest.
$ac_ext <<_ACEOF
13782 /* end confdefs.h. */
13783 /* System header to define __stub macros and hopefully few prototypes,
13784 which can conflict with char __res_send (); below. */
13785 #include <assert.h>
13786 /* Override any gcc2 internal prototype to avoid an error. */
13791 /* We use char because int might match the return type of a gcc2
13792 builtin and then its argument prototype would still apply. */
13793 char __res_send ();
13794 /* The GNU C library defines this for functions which it implements
13795 to always fail with ENOSYS. Some functions are actually named
13796 something starting with __ and the normal name is an alias. */
13797 #if defined (__stub___res_send) || defined (__stub_____res_send)
13800 char (*f) () = __res_send;
13814 rm -f conftest.
$ac_objext conftest
$ac_exeext
13815 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13816 (eval $ac_link) 2>&5
13818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13819 (exit $ac_status); } &&
13820 { ac_try
='test -s conftest$ac_exeext'
13821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13822 (eval $ac_try) 2>&5
13824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13825 (exit $ac_status); }; }; then
13826 ac_cv_func___res_send
=yes
13828 echo "$as_me: failed program was:" >&5
13829 sed 's/^/| /' conftest.
$ac_ext >&5
13831 ac_cv_func___res_send
=no
13833 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
13835 echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
13836 echo "${ECHO_T}$ac_cv_func___res_send" >&6
13837 if test $ac_cv_func___res_send = yes; then
13840 echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
13841 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6
13842 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
13843 echo $ECHO_N "(cached) $ECHO_C" >&6
13845 ac_check_lib_save_LIBS
=$LIBS
13846 LIBS
="-lresolv $LIBS"
13847 cat >conftest.
$ac_ext <<_ACEOF
13848 #line $LINENO "configure"
13851 cat confdefs.h
>>conftest.
$ac_ext
13852 cat >>conftest.
$ac_ext <<_ACEOF
13853 /* end confdefs.h. */
13855 /* Override any gcc2 internal prototype to avoid an error. */
13859 /* We use char because int might match the return type of a gcc2
13860 builtin and then its argument prototype would still apply. */
13870 rm -f conftest.
$ac_objext conftest
$ac_exeext
13871 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13872 (eval $ac_link) 2>&5
13874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13875 (exit $ac_status); } &&
13876 { ac_try
='test -s conftest$ac_exeext'
13877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13878 (eval $ac_try) 2>&5
13880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13881 (exit $ac_status); }; }; then
13882 ac_cv_lib_resolv_res_send
=yes
13884 echo "$as_me: failed program was:" >&5
13885 sed 's/^/| /' conftest.
$ac_ext >&5
13887 ac_cv_lib_resolv_res_send
=no
13889 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
13890 LIBS
=$ac_check_lib_save_LIBS
13892 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
13893 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6
13894 if test $ac_cv_lib_resolv_res_send = yes; then
13897 echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
13898 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6
13899 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
13900 echo $ECHO_N "(cached) $ECHO_C" >&6
13902 ac_check_lib_save_LIBS
=$LIBS
13903 LIBS
="-lresolv $LIBS"
13904 cat >conftest.
$ac_ext <<_ACEOF
13905 #line $LINENO "configure"
13908 cat confdefs.h
>>conftest.
$ac_ext
13909 cat >>conftest.
$ac_ext <<_ACEOF
13910 /* end confdefs.h. */
13912 /* Override any gcc2 internal prototype to avoid an error. */
13916 /* We use char because int might match the return type of a gcc2
13917 builtin and then its argument prototype would still apply. */
13918 char __res_send ();
13927 rm -f conftest.
$ac_objext conftest
$ac_exeext
13928 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13929 (eval $ac_link) 2>&5
13931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13932 (exit $ac_status); } &&
13933 { ac_try
='test -s conftest$ac_exeext'
13934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13935 (eval $ac_try) 2>&5
13937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13938 (exit $ac_status); }; }; then
13939 ac_cv_lib_resolv___res_send
=yes
13941 echo "$as_me: failed program was:" >&5
13942 sed 's/^/| /' conftest.
$ac_ext >&5
13944 ac_cv_lib_resolv___res_send
=no
13946 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
13947 LIBS
=$ac_check_lib_save_LIBS
13949 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
13950 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6
13951 if test $ac_cv_lib_resolv___res_send = yes; then
13961 if test "$resolv" = yes ; then
13964 cat >>confdefs.h
<<\_ACEOF
13965 #define HAVE_LIBRESOLV 1
13971 echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
13972 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6
13973 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
13974 echo $ECHO_N "(cached) $ECHO_C" >&6
13976 cat >conftest.
$ac_ext <<_ACEOF
13977 #line $LINENO "configure"
13980 cat confdefs.h
>>conftest.
$ac_ext
13981 cat >>conftest.
$ac_ext <<_ACEOF
13982 /* end confdefs.h. */
13983 /* System header to define __stub macros and hopefully few prototypes,
13984 which can conflict with char hes_getmailhost (); below. */
13985 #include <assert.h>
13986 /* Override any gcc2 internal prototype to avoid an error. */
13991 /* We use char because int might match the return type of a gcc2
13992 builtin and then its argument prototype would still apply. */
13993 char hes_getmailhost ();
13994 /* The GNU C library defines this for functions which it implements
13995 to always fail with ENOSYS. Some functions are actually named
13996 something starting with __ and the normal name is an alias. */
13997 #if defined (__stub_hes_getmailhost) || defined (__stub___hes_getmailhost)
14000 char (*f) () = hes_getmailhost;
14014 rm -f conftest.
$ac_objext conftest
$ac_exeext
14015 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14016 (eval $ac_link) 2>&5
14018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14019 (exit $ac_status); } &&
14020 { ac_try
='test -s conftest$ac_exeext'
14021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14022 (eval $ac_try) 2>&5
14024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14025 (exit $ac_status); }; }; then
14026 ac_cv_func_hes_getmailhost
=yes
14028 echo "$as_me: failed program was:" >&5
14029 sed 's/^/| /' conftest.
$ac_ext >&5
14031 ac_cv_func_hes_getmailhost
=no
14033 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14035 echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
14036 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6
14037 if test $ac_cv_func_hes_getmailhost = yes; then
14040 echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
14041 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6
14042 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
14043 echo $ECHO_N "(cached) $ECHO_C" >&6
14045 ac_check_lib_save_LIBS
=$LIBS
14046 LIBS
="-lhesiod $RESOLVLIB $LIBS"
14047 cat >conftest.
$ac_ext <<_ACEOF
14048 #line $LINENO "configure"
14051 cat confdefs.h
>>conftest.
$ac_ext
14052 cat >>conftest.
$ac_ext <<_ACEOF
14053 /* end confdefs.h. */
14055 /* Override any gcc2 internal prototype to avoid an error. */
14059 /* We use char because int might match the return type of a gcc2
14060 builtin and then its argument prototype would still apply. */
14061 char hes_getmailhost ();
14065 hes_getmailhost ();
14070 rm -f conftest.
$ac_objext conftest
$ac_exeext
14071 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14072 (eval $ac_link) 2>&5
14074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14075 (exit $ac_status); } &&
14076 { ac_try
='test -s conftest$ac_exeext'
14077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14078 (eval $ac_try) 2>&5
14080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14081 (exit $ac_status); }; }; then
14082 ac_cv_lib_hesiod_hes_getmailhost
=yes
14084 echo "$as_me: failed program was:" >&5
14085 sed 's/^/| /' conftest.
$ac_ext >&5
14087 ac_cv_lib_hesiod_hes_getmailhost
=no
14089 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14090 LIBS
=$ac_check_lib_save_LIBS
14092 echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
14093 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6
14094 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
14096 cat >>confdefs.h
<<\_ACEOF
14097 #define HAVE_LIBHESIOD 1
14108 # These tell us which Kerberos-related libraries to use.
14109 if test "${with_kerberos+set}" = set; then
14111 echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
14112 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6
14113 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
14114 echo $ECHO_N "(cached) $ECHO_C" >&6
14116 ac_check_lib_save_LIBS
=$LIBS
14117 LIBS
="-lcom_err $LIBS"
14118 cat >conftest.
$ac_ext <<_ACEOF
14119 #line $LINENO "configure"
14122 cat confdefs.h
>>conftest.
$ac_ext
14123 cat >>conftest.
$ac_ext <<_ACEOF
14124 /* end confdefs.h. */
14126 /* Override any gcc2 internal prototype to avoid an error. */
14130 /* We use char because int might match the return type of a gcc2
14131 builtin and then its argument prototype would still apply. */
14141 rm -f conftest.
$ac_objext conftest
$ac_exeext
14142 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14143 (eval $ac_link) 2>&5
14145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14146 (exit $ac_status); } &&
14147 { ac_try
='test -s conftest$ac_exeext'
14148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14149 (eval $ac_try) 2>&5
14151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14152 (exit $ac_status); }; }; then
14153 ac_cv_lib_com_err_com_err
=yes
14155 echo "$as_me: failed program was:" >&5
14156 sed 's/^/| /' conftest.
$ac_ext >&5
14158 ac_cv_lib_com_err_com_err
=no
14160 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14161 LIBS
=$ac_check_lib_save_LIBS
14163 echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
14164 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6
14165 if test $ac_cv_lib_com_err_com_err = yes; then
14166 cat >>confdefs.h
<<_ACEOF
14167 #define HAVE_LIBCOM_ERR 1
14170 LIBS
="-lcom_err $LIBS"
14175 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
14176 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6
14177 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
14178 echo $ECHO_N "(cached) $ECHO_C" >&6
14180 ac_check_lib_save_LIBS
=$LIBS
14181 LIBS
="-lk5crypto $LIBS"
14182 cat >conftest.
$ac_ext <<_ACEOF
14183 #line $LINENO "configure"
14186 cat confdefs.h
>>conftest.
$ac_ext
14187 cat >>conftest.
$ac_ext <<_ACEOF
14188 /* end confdefs.h. */
14190 /* Override any gcc2 internal prototype to avoid an error. */
14194 /* We use char because int might match the return type of a gcc2
14195 builtin and then its argument prototype would still apply. */
14196 char mit_des_cbc_encrypt ();
14200 mit_des_cbc_encrypt ();
14205 rm -f conftest.
$ac_objext conftest
$ac_exeext
14206 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14207 (eval $ac_link) 2>&5
14209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14210 (exit $ac_status); } &&
14211 { ac_try
='test -s conftest$ac_exeext'
14212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14213 (eval $ac_try) 2>&5
14215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14216 (exit $ac_status); }; }; then
14217 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=yes
14219 echo "$as_me: failed program was:" >&5
14220 sed 's/^/| /' conftest.
$ac_ext >&5
14222 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=no
14224 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14225 LIBS
=$ac_check_lib_save_LIBS
14227 echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
14228 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6
14229 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
14230 cat >>confdefs.h
<<_ACEOF
14231 #define HAVE_LIBK5CRYPTO 1
14234 LIBS
="-lk5crypto $LIBS"
14239 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
14240 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6
14241 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
14242 echo $ECHO_N "(cached) $ECHO_C" >&6
14244 ac_check_lib_save_LIBS
=$LIBS
14245 LIBS
="-lcrypto $LIBS"
14246 cat >conftest.
$ac_ext <<_ACEOF
14247 #line $LINENO "configure"
14250 cat confdefs.h
>>conftest.
$ac_ext
14251 cat >>conftest.
$ac_ext <<_ACEOF
14252 /* end confdefs.h. */
14254 /* Override any gcc2 internal prototype to avoid an error. */
14258 /* We use char because int might match the return type of a gcc2
14259 builtin and then its argument prototype would still apply. */
14260 char mit_des_cbc_encrypt ();
14264 mit_des_cbc_encrypt ();
14269 rm -f conftest.
$ac_objext conftest
$ac_exeext
14270 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14271 (eval $ac_link) 2>&5
14273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14274 (exit $ac_status); } &&
14275 { ac_try
='test -s conftest$ac_exeext'
14276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14277 (eval $ac_try) 2>&5
14279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14280 (exit $ac_status); }; }; then
14281 ac_cv_lib_crypto_mit_des_cbc_encrypt
=yes
14283 echo "$as_me: failed program was:" >&5
14284 sed 's/^/| /' conftest.
$ac_ext >&5
14286 ac_cv_lib_crypto_mit_des_cbc_encrypt
=no
14288 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14289 LIBS
=$ac_check_lib_save_LIBS
14291 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
14292 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6
14293 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
14294 cat >>confdefs.h
<<_ACEOF
14295 #define HAVE_LIBCRYPTO 1
14298 LIBS
="-lcrypto $LIBS"
14303 echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
14304 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6
14305 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
14306 echo $ECHO_N "(cached) $ECHO_C" >&6
14308 ac_check_lib_save_LIBS
=$LIBS
14309 LIBS
="-lkrb5 $LIBS"
14310 cat >conftest.
$ac_ext <<_ACEOF
14311 #line $LINENO "configure"
14314 cat confdefs.h
>>conftest.
$ac_ext
14315 cat >>conftest.
$ac_ext <<_ACEOF
14316 /* end confdefs.h. */
14318 /* Override any gcc2 internal prototype to avoid an error. */
14322 /* We use char because int might match the return type of a gcc2
14323 builtin and then its argument prototype would still apply. */
14324 char krb5_init_context ();
14328 krb5_init_context ();
14333 rm -f conftest.
$ac_objext conftest
$ac_exeext
14334 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14335 (eval $ac_link) 2>&5
14337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14338 (exit $ac_status); } &&
14339 { ac_try
='test -s conftest$ac_exeext'
14340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14341 (eval $ac_try) 2>&5
14343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14344 (exit $ac_status); }; }; then
14345 ac_cv_lib_krb5_krb5_init_context
=yes
14347 echo "$as_me: failed program was:" >&5
14348 sed 's/^/| /' conftest.
$ac_ext >&5
14350 ac_cv_lib_krb5_krb5_init_context
=no
14352 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14353 LIBS
=$ac_check_lib_save_LIBS
14355 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
14356 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6
14357 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
14358 cat >>confdefs.h
<<_ACEOF
14359 #define HAVE_LIBKRB5 1
14362 LIBS
="-lkrb5 $LIBS"
14366 if test "${with_kerberos5+set}" != set; then
14368 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
14369 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6
14370 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
14371 echo $ECHO_N "(cached) $ECHO_C" >&6
14373 ac_check_lib_save_LIBS
=$LIBS
14374 LIBS
="-ldes425 $LIBS"
14375 cat >conftest.
$ac_ext <<_ACEOF
14376 #line $LINENO "configure"
14379 cat confdefs.h
>>conftest.
$ac_ext
14380 cat >>conftest.
$ac_ext <<_ACEOF
14381 /* end confdefs.h. */
14383 /* Override any gcc2 internal prototype to avoid an error. */
14387 /* We use char because int might match the return type of a gcc2
14388 builtin and then its argument prototype would still apply. */
14389 char des_cbc_encrypt ();
14393 des_cbc_encrypt ();
14398 rm -f conftest.
$ac_objext conftest
$ac_exeext
14399 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14400 (eval $ac_link) 2>&5
14402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14403 (exit $ac_status); } &&
14404 { ac_try
='test -s conftest$ac_exeext'
14405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14406 (eval $ac_try) 2>&5
14408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14409 (exit $ac_status); }; }; then
14410 ac_cv_lib_des425_des_cbc_encrypt
=yes
14412 echo "$as_me: failed program was:" >&5
14413 sed 's/^/| /' conftest.
$ac_ext >&5
14415 ac_cv_lib_des425_des_cbc_encrypt
=no
14417 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14418 LIBS
=$ac_check_lib_save_LIBS
14420 echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
14421 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6
14422 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
14423 cat >>confdefs.h
<<_ACEOF
14424 #define HAVE_LIBDES425 1
14427 LIBS
="-ldes425 $LIBS"
14431 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
14432 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6
14433 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
14434 echo $ECHO_N "(cached) $ECHO_C" >&6
14436 ac_check_lib_save_LIBS
=$LIBS
14438 cat >conftest.
$ac_ext <<_ACEOF
14439 #line $LINENO "configure"
14442 cat confdefs.h
>>conftest.
$ac_ext
14443 cat >>conftest.
$ac_ext <<_ACEOF
14444 /* end confdefs.h. */
14446 /* Override any gcc2 internal prototype to avoid an error. */
14450 /* We use char because int might match the return type of a gcc2
14451 builtin and then its argument prototype would still apply. */
14452 char des_cbc_encrypt ();
14456 des_cbc_encrypt ();
14461 rm -f conftest.
$ac_objext conftest
$ac_exeext
14462 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14463 (eval $ac_link) 2>&5
14465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14466 (exit $ac_status); } &&
14467 { ac_try
='test -s conftest$ac_exeext'
14468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14469 (eval $ac_try) 2>&5
14471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14472 (exit $ac_status); }; }; then
14473 ac_cv_lib_des_des_cbc_encrypt
=yes
14475 echo "$as_me: failed program was:" >&5
14476 sed 's/^/| /' conftest.
$ac_ext >&5
14478 ac_cv_lib_des_des_cbc_encrypt
=no
14480 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14481 LIBS
=$ac_check_lib_save_LIBS
14483 echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
14484 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6
14485 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
14486 cat >>confdefs.h
<<_ACEOF
14487 #define HAVE_LIBDES 1
14497 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
14498 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6
14499 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
14500 echo $ECHO_N "(cached) $ECHO_C" >&6
14502 ac_check_lib_save_LIBS
=$LIBS
14503 LIBS
="-lkrb4 $LIBS"
14504 cat >conftest.
$ac_ext <<_ACEOF
14505 #line $LINENO "configure"
14508 cat confdefs.h
>>conftest.
$ac_ext
14509 cat >>conftest.
$ac_ext <<_ACEOF
14510 /* end confdefs.h. */
14512 /* Override any gcc2 internal prototype to avoid an error. */
14516 /* We use char because int might match the return type of a gcc2
14517 builtin and then its argument prototype would still apply. */
14518 char krb_get_cred ();
14527 rm -f conftest.
$ac_objext conftest
$ac_exeext
14528 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14529 (eval $ac_link) 2>&5
14531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14532 (exit $ac_status); } &&
14533 { ac_try
='test -s conftest$ac_exeext'
14534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14535 (eval $ac_try) 2>&5
14537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14538 (exit $ac_status); }; }; then
14539 ac_cv_lib_krb4_krb_get_cred
=yes
14541 echo "$as_me: failed program was:" >&5
14542 sed 's/^/| /' conftest.
$ac_ext >&5
14544 ac_cv_lib_krb4_krb_get_cred
=no
14546 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14547 LIBS
=$ac_check_lib_save_LIBS
14549 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
14550 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6
14551 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
14552 cat >>confdefs.h
<<_ACEOF
14553 #define HAVE_LIBKRB4 1
14556 LIBS
="-lkrb4 $LIBS"
14560 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
14561 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6
14562 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
14563 echo $ECHO_N "(cached) $ECHO_C" >&6
14565 ac_check_lib_save_LIBS
=$LIBS
14567 cat >conftest.
$ac_ext <<_ACEOF
14568 #line $LINENO "configure"
14571 cat confdefs.h
>>conftest.
$ac_ext
14572 cat >>conftest.
$ac_ext <<_ACEOF
14573 /* end confdefs.h. */
14575 /* Override any gcc2 internal prototype to avoid an error. */
14579 /* We use char because int might match the return type of a gcc2
14580 builtin and then its argument prototype would still apply. */
14581 char krb_get_cred ();
14590 rm -f conftest.
$ac_objext conftest
$ac_exeext
14591 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14592 (eval $ac_link) 2>&5
14594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14595 (exit $ac_status); } &&
14596 { ac_try
='test -s conftest$ac_exeext'
14597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14598 (eval $ac_try) 2>&5
14600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14601 (exit $ac_status); }; }; then
14602 ac_cv_lib_krb_krb_get_cred
=yes
14604 echo "$as_me: failed program was:" >&5
14605 sed 's/^/| /' conftest.
$ac_ext >&5
14607 ac_cv_lib_krb_krb_get_cred
=no
14609 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14610 LIBS
=$ac_check_lib_save_LIBS
14612 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
14613 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6
14614 if test $ac_cv_lib_krb_krb_get_cred = yes; then
14615 cat >>confdefs.h
<<_ACEOF
14616 #define HAVE_LIBKRB 1
14627 if test "${with_kerberos5+set}" = set; then
14629 for ac_header
in krb5.h
14631 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14632 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14633 echo "$as_me:$LINENO: checking for $ac_header" >&5
14634 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14635 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14636 echo $ECHO_N "(cached) $ECHO_C" >&6
14638 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14639 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14641 # Is the header compilable?
14642 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14643 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14644 cat >conftest.
$ac_ext <<_ACEOF
14645 #line $LINENO "configure"
14648 cat confdefs.h
>>conftest.
$ac_ext
14649 cat >>conftest.
$ac_ext <<_ACEOF
14650 /* end confdefs.h. */
14651 $ac_includes_default
14652 #include <$ac_header>
14654 rm -f conftest.
$ac_objext
14655 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14656 (eval $ac_compile) 2>&5
14658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14659 (exit $ac_status); } &&
14660 { ac_try
='test -s conftest.$ac_objext'
14661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14662 (eval $ac_try) 2>&5
14664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14665 (exit $ac_status); }; }; then
14666 ac_header_compiler
=yes
14668 echo "$as_me: failed program was:" >&5
14669 sed 's/^/| /' conftest.
$ac_ext >&5
14671 ac_header_compiler
=no
14673 rm -f conftest.
$ac_objext conftest.
$ac_ext
14674 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14675 echo "${ECHO_T}$ac_header_compiler" >&6
14677 # Is the header present?
14678 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14679 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14680 cat >conftest.
$ac_ext <<_ACEOF
14681 #line $LINENO "configure"
14684 cat confdefs.h
>>conftest.
$ac_ext
14685 cat >>conftest.
$ac_ext <<_ACEOF
14686 /* end confdefs.h. */
14687 #include <$ac_header>
14689 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14690 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
14692 grep -v '^ *+' conftest.er1
>conftest.err
14694 cat conftest.err
>&5
14695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14696 (exit $ac_status); } >/dev
/null
; then
14697 if test -s conftest.err
; then
14698 ac_cpp_err
=$ac_c_preproc_warn_flag
14705 if test -z "$ac_cpp_err"; then
14706 ac_header_preproc
=yes
14708 echo "$as_me: failed program was:" >&5
14709 sed 's/^/| /' conftest.
$ac_ext >&5
14711 ac_header_preproc
=no
14713 rm -f conftest.err conftest.
$ac_ext
14714 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14715 echo "${ECHO_T}$ac_header_preproc" >&6
14717 # So? What about this header?
14718 case $ac_header_compiler:$ac_header_preproc in
14720 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14721 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14722 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14723 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14726 ## ------------------------------------ ##
14727 ## Report this to bug-autoconf@gnu.org. ##
14728 ## ------------------------------------ ##
14731 sed "s/^/$as_me: WARNING: /" >&2
14734 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14735 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14736 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14737 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14738 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14739 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14742 ## ------------------------------------ ##
14743 ## Report this to bug-autoconf@gnu.org. ##
14744 ## ------------------------------------ ##
14747 sed "s/^/$as_me: WARNING: /" >&2
14750 echo "$as_me:$LINENO: checking for $ac_header" >&5
14751 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14752 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14753 echo $ECHO_N "(cached) $ECHO_C" >&6
14755 eval "$as_ac_Header=$ac_header_preproc"
14757 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14758 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14761 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14762 cat >>confdefs.h
<<_ACEOF
14763 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14772 for ac_header
in des.h
14774 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14775 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14776 echo "$as_me:$LINENO: checking for $ac_header" >&5
14777 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14778 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14779 echo $ECHO_N "(cached) $ECHO_C" >&6
14781 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14782 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14784 # Is the header compilable?
14785 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14786 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14787 cat >conftest.
$ac_ext <<_ACEOF
14788 #line $LINENO "configure"
14791 cat confdefs.h
>>conftest.
$ac_ext
14792 cat >>conftest.
$ac_ext <<_ACEOF
14793 /* end confdefs.h. */
14794 $ac_includes_default
14795 #include <$ac_header>
14797 rm -f conftest.
$ac_objext
14798 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14799 (eval $ac_compile) 2>&5
14801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14802 (exit $ac_status); } &&
14803 { ac_try
='test -s conftest.$ac_objext'
14804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14805 (eval $ac_try) 2>&5
14807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14808 (exit $ac_status); }; }; then
14809 ac_header_compiler
=yes
14811 echo "$as_me: failed program was:" >&5
14812 sed 's/^/| /' conftest.
$ac_ext >&5
14814 ac_header_compiler
=no
14816 rm -f conftest.
$ac_objext conftest.
$ac_ext
14817 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14818 echo "${ECHO_T}$ac_header_compiler" >&6
14820 # Is the header present?
14821 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14822 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14823 cat >conftest.
$ac_ext <<_ACEOF
14824 #line $LINENO "configure"
14827 cat confdefs.h
>>conftest.
$ac_ext
14828 cat >>conftest.
$ac_ext <<_ACEOF
14829 /* end confdefs.h. */
14830 #include <$ac_header>
14832 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14833 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
14835 grep -v '^ *+' conftest.er1
>conftest.err
14837 cat conftest.err
>&5
14838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14839 (exit $ac_status); } >/dev
/null
; then
14840 if test -s conftest.err
; then
14841 ac_cpp_err
=$ac_c_preproc_warn_flag
14848 if test -z "$ac_cpp_err"; then
14849 ac_header_preproc
=yes
14851 echo "$as_me: failed program was:" >&5
14852 sed 's/^/| /' conftest.
$ac_ext >&5
14854 ac_header_preproc
=no
14856 rm -f conftest.err conftest.
$ac_ext
14857 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14858 echo "${ECHO_T}$ac_header_preproc" >&6
14860 # So? What about this header?
14861 case $ac_header_compiler:$ac_header_preproc in
14863 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14864 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14865 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14866 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14869 ## ------------------------------------ ##
14870 ## Report this to bug-autoconf@gnu.org. ##
14871 ## ------------------------------------ ##
14874 sed "s/^/$as_me: WARNING: /" >&2
14877 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14878 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14879 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14880 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14881 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14882 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14885 ## ------------------------------------ ##
14886 ## Report this to bug-autoconf@gnu.org. ##
14887 ## ------------------------------------ ##
14890 sed "s/^/$as_me: WARNING: /" >&2
14893 echo "$as_me:$LINENO: checking for $ac_header" >&5
14894 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14895 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14896 echo $ECHO_N "(cached) $ECHO_C" >&6
14898 eval "$as_ac_Header=$ac_header_preproc"
14900 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14901 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14904 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14905 cat >>confdefs.h
<<_ACEOF
14906 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14911 for ac_header
in kerberosIV
/des.h
14913 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14914 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14915 echo "$as_me:$LINENO: checking for $ac_header" >&5
14916 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14917 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14918 echo $ECHO_N "(cached) $ECHO_C" >&6
14920 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14921 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14923 # Is the header compilable?
14924 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14925 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14926 cat >conftest.
$ac_ext <<_ACEOF
14927 #line $LINENO "configure"
14930 cat confdefs.h
>>conftest.
$ac_ext
14931 cat >>conftest.
$ac_ext <<_ACEOF
14932 /* end confdefs.h. */
14933 $ac_includes_default
14934 #include <$ac_header>
14936 rm -f conftest.
$ac_objext
14937 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14938 (eval $ac_compile) 2>&5
14940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14941 (exit $ac_status); } &&
14942 { ac_try
='test -s conftest.$ac_objext'
14943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14944 (eval $ac_try) 2>&5
14946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14947 (exit $ac_status); }; }; then
14948 ac_header_compiler
=yes
14950 echo "$as_me: failed program was:" >&5
14951 sed 's/^/| /' conftest.
$ac_ext >&5
14953 ac_header_compiler
=no
14955 rm -f conftest.
$ac_objext conftest.
$ac_ext
14956 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14957 echo "${ECHO_T}$ac_header_compiler" >&6
14959 # Is the header present?
14960 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14961 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14962 cat >conftest.
$ac_ext <<_ACEOF
14963 #line $LINENO "configure"
14966 cat confdefs.h
>>conftest.
$ac_ext
14967 cat >>conftest.
$ac_ext <<_ACEOF
14968 /* end confdefs.h. */
14969 #include <$ac_header>
14971 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14972 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
14974 grep -v '^ *+' conftest.er1
>conftest.err
14976 cat conftest.err
>&5
14977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14978 (exit $ac_status); } >/dev
/null
; then
14979 if test -s conftest.err
; then
14980 ac_cpp_err
=$ac_c_preproc_warn_flag
14987 if test -z "$ac_cpp_err"; then
14988 ac_header_preproc
=yes
14990 echo "$as_me: failed program was:" >&5
14991 sed 's/^/| /' conftest.
$ac_ext >&5
14993 ac_header_preproc
=no
14995 rm -f conftest.err conftest.
$ac_ext
14996 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14997 echo "${ECHO_T}$ac_header_preproc" >&6
14999 # So? What about this header?
15000 case $ac_header_compiler:$ac_header_preproc in
15002 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15003 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15004 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15005 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15008 ## ------------------------------------ ##
15009 ## Report this to bug-autoconf@gnu.org. ##
15010 ## ------------------------------------ ##
15013 sed "s/^/$as_me: WARNING: /" >&2
15016 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15017 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15018 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15019 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15020 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15021 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15024 ## ------------------------------------ ##
15025 ## Report this to bug-autoconf@gnu.org. ##
15026 ## ------------------------------------ ##
15029 sed "s/^/$as_me: WARNING: /" >&2
15032 echo "$as_me:$LINENO: checking for $ac_header" >&5
15033 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15034 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15035 echo $ECHO_N "(cached) $ECHO_C" >&6
15037 eval "$as_ac_Header=$ac_header_preproc"
15039 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15040 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15043 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15044 cat >>confdefs.h
<<_ACEOF
15045 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15050 for ac_header
in kerberos
/des.h
15052 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15053 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15054 echo "$as_me:$LINENO: checking for $ac_header" >&5
15055 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15056 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15057 echo $ECHO_N "(cached) $ECHO_C" >&6
15059 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15060 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15062 # Is the header compilable?
15063 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15064 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15065 cat >conftest.
$ac_ext <<_ACEOF
15066 #line $LINENO "configure"
15069 cat confdefs.h
>>conftest.
$ac_ext
15070 cat >>conftest.
$ac_ext <<_ACEOF
15071 /* end confdefs.h. */
15072 $ac_includes_default
15073 #include <$ac_header>
15075 rm -f conftest.
$ac_objext
15076 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15077 (eval $ac_compile) 2>&5
15079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15080 (exit $ac_status); } &&
15081 { ac_try
='test -s conftest.$ac_objext'
15082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15083 (eval $ac_try) 2>&5
15085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15086 (exit $ac_status); }; }; then
15087 ac_header_compiler
=yes
15089 echo "$as_me: failed program was:" >&5
15090 sed 's/^/| /' conftest.
$ac_ext >&5
15092 ac_header_compiler
=no
15094 rm -f conftest.
$ac_objext conftest.
$ac_ext
15095 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15096 echo "${ECHO_T}$ac_header_compiler" >&6
15098 # Is the header present?
15099 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15100 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15101 cat >conftest.
$ac_ext <<_ACEOF
15102 #line $LINENO "configure"
15105 cat confdefs.h
>>conftest.
$ac_ext
15106 cat >>conftest.
$ac_ext <<_ACEOF
15107 /* end confdefs.h. */
15108 #include <$ac_header>
15110 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15111 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
15113 grep -v '^ *+' conftest.er1
>conftest.err
15115 cat conftest.err
>&5
15116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15117 (exit $ac_status); } >/dev
/null
; then
15118 if test -s conftest.err
; then
15119 ac_cpp_err
=$ac_c_preproc_warn_flag
15126 if test -z "$ac_cpp_err"; then
15127 ac_header_preproc
=yes
15129 echo "$as_me: failed program was:" >&5
15130 sed 's/^/| /' conftest.
$ac_ext >&5
15132 ac_header_preproc
=no
15134 rm -f conftest.err conftest.
$ac_ext
15135 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15136 echo "${ECHO_T}$ac_header_preproc" >&6
15138 # So? What about this header?
15139 case $ac_header_compiler:$ac_header_preproc in
15141 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15142 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15143 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15144 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15147 ## ------------------------------------ ##
15148 ## Report this to bug-autoconf@gnu.org. ##
15149 ## ------------------------------------ ##
15152 sed "s/^/$as_me: WARNING: /" >&2
15155 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15156 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15157 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15158 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15159 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15160 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15163 ## ------------------------------------ ##
15164 ## Report this to bug-autoconf@gnu.org. ##
15165 ## ------------------------------------ ##
15168 sed "s/^/$as_me: WARNING: /" >&2
15171 echo "$as_me:$LINENO: checking for $ac_header" >&5
15172 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15173 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15174 echo $ECHO_N "(cached) $ECHO_C" >&6
15176 eval "$as_ac_Header=$ac_header_preproc"
15178 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15179 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15182 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15183 cat >>confdefs.h
<<_ACEOF
15184 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15200 for ac_header
in krb.h
15202 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15203 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15204 echo "$as_me:$LINENO: checking for $ac_header" >&5
15205 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15206 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15207 echo $ECHO_N "(cached) $ECHO_C" >&6
15209 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15210 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15212 # Is the header compilable?
15213 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15214 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15215 cat >conftest.
$ac_ext <<_ACEOF
15216 #line $LINENO "configure"
15219 cat confdefs.h
>>conftest.
$ac_ext
15220 cat >>conftest.
$ac_ext <<_ACEOF
15221 /* end confdefs.h. */
15222 $ac_includes_default
15223 #include <$ac_header>
15225 rm -f conftest.
$ac_objext
15226 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15227 (eval $ac_compile) 2>&5
15229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15230 (exit $ac_status); } &&
15231 { ac_try
='test -s conftest.$ac_objext'
15232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15233 (eval $ac_try) 2>&5
15235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15236 (exit $ac_status); }; }; then
15237 ac_header_compiler
=yes
15239 echo "$as_me: failed program was:" >&5
15240 sed 's/^/| /' conftest.
$ac_ext >&5
15242 ac_header_compiler
=no
15244 rm -f conftest.
$ac_objext conftest.
$ac_ext
15245 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15246 echo "${ECHO_T}$ac_header_compiler" >&6
15248 # Is the header present?
15249 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15250 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15251 cat >conftest.
$ac_ext <<_ACEOF
15252 #line $LINENO "configure"
15255 cat confdefs.h
>>conftest.
$ac_ext
15256 cat >>conftest.
$ac_ext <<_ACEOF
15257 /* end confdefs.h. */
15258 #include <$ac_header>
15260 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15261 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
15263 grep -v '^ *+' conftest.er1
>conftest.err
15265 cat conftest.err
>&5
15266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15267 (exit $ac_status); } >/dev
/null
; then
15268 if test -s conftest.err
; then
15269 ac_cpp_err
=$ac_c_preproc_warn_flag
15276 if test -z "$ac_cpp_err"; then
15277 ac_header_preproc
=yes
15279 echo "$as_me: failed program was:" >&5
15280 sed 's/^/| /' conftest.
$ac_ext >&5
15282 ac_header_preproc
=no
15284 rm -f conftest.err conftest.
$ac_ext
15285 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15286 echo "${ECHO_T}$ac_header_preproc" >&6
15288 # So? What about this header?
15289 case $ac_header_compiler:$ac_header_preproc in
15291 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15292 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15293 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15294 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15297 ## ------------------------------------ ##
15298 ## Report this to bug-autoconf@gnu.org. ##
15299 ## ------------------------------------ ##
15302 sed "s/^/$as_me: WARNING: /" >&2
15305 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15306 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15307 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15308 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15309 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15310 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15313 ## ------------------------------------ ##
15314 ## Report this to bug-autoconf@gnu.org. ##
15315 ## ------------------------------------ ##
15318 sed "s/^/$as_me: WARNING: /" >&2
15321 echo "$as_me:$LINENO: checking for $ac_header" >&5
15322 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15323 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15324 echo $ECHO_N "(cached) $ECHO_C" >&6
15326 eval "$as_ac_Header=$ac_header_preproc"
15328 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15329 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15332 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15333 cat >>confdefs.h
<<_ACEOF
15334 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15339 for ac_header
in kerberosIV
/krb.h
15341 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15342 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15343 echo "$as_me:$LINENO: checking for $ac_header" >&5
15344 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15345 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15346 echo $ECHO_N "(cached) $ECHO_C" >&6
15348 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15349 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15351 # Is the header compilable?
15352 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15353 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15354 cat >conftest.
$ac_ext <<_ACEOF
15355 #line $LINENO "configure"
15358 cat confdefs.h
>>conftest.
$ac_ext
15359 cat >>conftest.
$ac_ext <<_ACEOF
15360 /* end confdefs.h. */
15361 $ac_includes_default
15362 #include <$ac_header>
15364 rm -f conftest.
$ac_objext
15365 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15366 (eval $ac_compile) 2>&5
15368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15369 (exit $ac_status); } &&
15370 { ac_try
='test -s conftest.$ac_objext'
15371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15372 (eval $ac_try) 2>&5
15374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15375 (exit $ac_status); }; }; then
15376 ac_header_compiler
=yes
15378 echo "$as_me: failed program was:" >&5
15379 sed 's/^/| /' conftest.
$ac_ext >&5
15381 ac_header_compiler
=no
15383 rm -f conftest.
$ac_objext conftest.
$ac_ext
15384 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15385 echo "${ECHO_T}$ac_header_compiler" >&6
15387 # Is the header present?
15388 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15389 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15390 cat >conftest.
$ac_ext <<_ACEOF
15391 #line $LINENO "configure"
15394 cat confdefs.h
>>conftest.
$ac_ext
15395 cat >>conftest.
$ac_ext <<_ACEOF
15396 /* end confdefs.h. */
15397 #include <$ac_header>
15399 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15400 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
15402 grep -v '^ *+' conftest.er1
>conftest.err
15404 cat conftest.err
>&5
15405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15406 (exit $ac_status); } >/dev
/null
; then
15407 if test -s conftest.err
; then
15408 ac_cpp_err
=$ac_c_preproc_warn_flag
15415 if test -z "$ac_cpp_err"; then
15416 ac_header_preproc
=yes
15418 echo "$as_me: failed program was:" >&5
15419 sed 's/^/| /' conftest.
$ac_ext >&5
15421 ac_header_preproc
=no
15423 rm -f conftest.err conftest.
$ac_ext
15424 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15425 echo "${ECHO_T}$ac_header_preproc" >&6
15427 # So? What about this header?
15428 case $ac_header_compiler:$ac_header_preproc in
15430 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15431 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15432 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15433 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15436 ## ------------------------------------ ##
15437 ## Report this to bug-autoconf@gnu.org. ##
15438 ## ------------------------------------ ##
15441 sed "s/^/$as_me: WARNING: /" >&2
15444 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15445 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15446 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15447 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15448 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15449 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15452 ## ------------------------------------ ##
15453 ## Report this to bug-autoconf@gnu.org. ##
15454 ## ------------------------------------ ##
15457 sed "s/^/$as_me: WARNING: /" >&2
15460 echo "$as_me:$LINENO: checking for $ac_header" >&5
15461 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15462 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15463 echo $ECHO_N "(cached) $ECHO_C" >&6
15465 eval "$as_ac_Header=$ac_header_preproc"
15467 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15468 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15471 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15472 cat >>confdefs.h
<<_ACEOF
15473 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15478 for ac_header
in kerberos
/krb.h
15480 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15481 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15482 echo "$as_me:$LINENO: checking for $ac_header" >&5
15483 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15484 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15485 echo $ECHO_N "(cached) $ECHO_C" >&6
15487 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15488 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15490 # Is the header compilable?
15491 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15492 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15493 cat >conftest.
$ac_ext <<_ACEOF
15494 #line $LINENO "configure"
15497 cat confdefs.h
>>conftest.
$ac_ext
15498 cat >>conftest.
$ac_ext <<_ACEOF
15499 /* end confdefs.h. */
15500 $ac_includes_default
15501 #include <$ac_header>
15503 rm -f conftest.
$ac_objext
15504 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15505 (eval $ac_compile) 2>&5
15507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15508 (exit $ac_status); } &&
15509 { ac_try
='test -s conftest.$ac_objext'
15510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15511 (eval $ac_try) 2>&5
15513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15514 (exit $ac_status); }; }; then
15515 ac_header_compiler
=yes
15517 echo "$as_me: failed program was:" >&5
15518 sed 's/^/| /' conftest.
$ac_ext >&5
15520 ac_header_compiler
=no
15522 rm -f conftest.
$ac_objext conftest.
$ac_ext
15523 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15524 echo "${ECHO_T}$ac_header_compiler" >&6
15526 # Is the header present?
15527 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15528 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15529 cat >conftest.
$ac_ext <<_ACEOF
15530 #line $LINENO "configure"
15533 cat confdefs.h
>>conftest.
$ac_ext
15534 cat >>conftest.
$ac_ext <<_ACEOF
15535 /* end confdefs.h. */
15536 #include <$ac_header>
15538 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15539 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
15541 grep -v '^ *+' conftest.er1
>conftest.err
15543 cat conftest.err
>&5
15544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15545 (exit $ac_status); } >/dev
/null
; then
15546 if test -s conftest.err
; then
15547 ac_cpp_err
=$ac_c_preproc_warn_flag
15554 if test -z "$ac_cpp_err"; then
15555 ac_header_preproc
=yes
15557 echo "$as_me: failed program was:" >&5
15558 sed 's/^/| /' conftest.
$ac_ext >&5
15560 ac_header_preproc
=no
15562 rm -f conftest.err conftest.
$ac_ext
15563 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15564 echo "${ECHO_T}$ac_header_preproc" >&6
15566 # So? What about this header?
15567 case $ac_header_compiler:$ac_header_preproc in
15569 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15570 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15571 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15572 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15575 ## ------------------------------------ ##
15576 ## Report this to bug-autoconf@gnu.org. ##
15577 ## ------------------------------------ ##
15580 sed "s/^/$as_me: WARNING: /" >&2
15583 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15584 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15585 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15586 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15587 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15588 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15591 ## ------------------------------------ ##
15592 ## Report this to bug-autoconf@gnu.org. ##
15593 ## ------------------------------------ ##
15596 sed "s/^/$as_me: WARNING: /" >&2
15599 echo "$as_me:$LINENO: checking for $ac_header" >&5
15600 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15601 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15602 echo $ECHO_N "(cached) $ECHO_C" >&6
15604 eval "$as_ac_Header=$ac_header_preproc"
15606 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15607 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15610 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15611 cat >>confdefs.h
<<_ACEOF
15612 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15629 for ac_header
in com_err.h
15631 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15632 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15633 echo "$as_me:$LINENO: checking for $ac_header" >&5
15634 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15635 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15636 echo $ECHO_N "(cached) $ECHO_C" >&6
15638 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15639 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15641 # Is the header compilable?
15642 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15643 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15644 cat >conftest.
$ac_ext <<_ACEOF
15645 #line $LINENO "configure"
15648 cat confdefs.h
>>conftest.
$ac_ext
15649 cat >>conftest.
$ac_ext <<_ACEOF
15650 /* end confdefs.h. */
15651 $ac_includes_default
15652 #include <$ac_header>
15654 rm -f conftest.
$ac_objext
15655 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15656 (eval $ac_compile) 2>&5
15658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15659 (exit $ac_status); } &&
15660 { ac_try
='test -s conftest.$ac_objext'
15661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15662 (eval $ac_try) 2>&5
15664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15665 (exit $ac_status); }; }; then
15666 ac_header_compiler
=yes
15668 echo "$as_me: failed program was:" >&5
15669 sed 's/^/| /' conftest.
$ac_ext >&5
15671 ac_header_compiler
=no
15673 rm -f conftest.
$ac_objext conftest.
$ac_ext
15674 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15675 echo "${ECHO_T}$ac_header_compiler" >&6
15677 # Is the header present?
15678 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15679 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15680 cat >conftest.
$ac_ext <<_ACEOF
15681 #line $LINENO "configure"
15684 cat confdefs.h
>>conftest.
$ac_ext
15685 cat >>conftest.
$ac_ext <<_ACEOF
15686 /* end confdefs.h. */
15687 #include <$ac_header>
15689 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15690 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
15692 grep -v '^ *+' conftest.er1
>conftest.err
15694 cat conftest.err
>&5
15695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15696 (exit $ac_status); } >/dev
/null
; then
15697 if test -s conftest.err
; then
15698 ac_cpp_err
=$ac_c_preproc_warn_flag
15705 if test -z "$ac_cpp_err"; then
15706 ac_header_preproc
=yes
15708 echo "$as_me: failed program was:" >&5
15709 sed 's/^/| /' conftest.
$ac_ext >&5
15711 ac_header_preproc
=no
15713 rm -f conftest.err conftest.
$ac_ext
15714 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15715 echo "${ECHO_T}$ac_header_preproc" >&6
15717 # So? What about this header?
15718 case $ac_header_compiler:$ac_header_preproc in
15720 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15721 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15722 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15723 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15726 ## ------------------------------------ ##
15727 ## Report this to bug-autoconf@gnu.org. ##
15728 ## ------------------------------------ ##
15731 sed "s/^/$as_me: WARNING: /" >&2
15734 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15735 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15736 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15737 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15738 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15739 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15742 ## ------------------------------------ ##
15743 ## Report this to bug-autoconf@gnu.org. ##
15744 ## ------------------------------------ ##
15747 sed "s/^/$as_me: WARNING: /" >&2
15750 echo "$as_me:$LINENO: checking for $ac_header" >&5
15751 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15752 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15753 echo $ECHO_N "(cached) $ECHO_C" >&6
15755 eval "$as_ac_Header=$ac_header_preproc"
15757 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15758 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15761 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15762 cat >>confdefs.h
<<_ACEOF
15763 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15772 # Solaris requires -lintl if you want strerror (which calls dgettext)
15773 # to return localized messages.
15775 echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
15776 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6
15777 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
15778 echo $ECHO_N "(cached) $ECHO_C" >&6
15780 ac_check_lib_save_LIBS
=$LIBS
15781 LIBS
="-lintl $LIBS"
15782 cat >conftest.
$ac_ext <<_ACEOF
15783 #line $LINENO "configure"
15786 cat confdefs.h
>>conftest.
$ac_ext
15787 cat >>conftest.
$ac_ext <<_ACEOF
15788 /* end confdefs.h. */
15790 /* Override any gcc2 internal prototype to avoid an error. */
15794 /* We use char because int might match the return type of a gcc2
15795 builtin and then its argument prototype would still apply. */
15805 rm -f conftest.
$ac_objext conftest
$ac_exeext
15806 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15807 (eval $ac_link) 2>&5
15809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15810 (exit $ac_status); } &&
15811 { ac_try
='test -s conftest$ac_exeext'
15812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15813 (eval $ac_try) 2>&5
15815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15816 (exit $ac_status); }; }; then
15817 ac_cv_lib_intl_dgettext
=yes
15819 echo "$as_me: failed program was:" >&5
15820 sed 's/^/| /' conftest.
$ac_ext >&5
15822 ac_cv_lib_intl_dgettext
=no
15824 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
15825 LIBS
=$ac_check_lib_save_LIBS
15827 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
15828 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6
15829 if test $ac_cv_lib_intl_dgettext = yes; then
15830 cat >>confdefs.h
<<_ACEOF
15831 #define HAVE_LIBINTL 1
15834 LIBS
="-lintl $LIBS"
15839 echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
15840 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6
15841 if test "${emacs_cv_localtime_cache+set}" = set; then
15842 echo $ECHO_N "(cached) $ECHO_C" >&6
15844 if test x
$ac_cv_func_tzset = xyes
; then
15845 if test "$cross_compiling" = yes; then
15846 # If we have tzset, assume the worst when cross-compiling.
15847 emacs_cv_localtime_cache
=yes
15849 cat >conftest.
$ac_ext <<_ACEOF
15850 #line $LINENO "configure"
15853 cat confdefs.h
>>conftest.
$ac_ext
15854 cat >>conftest.
$ac_ext <<_ACEOF
15855 /* end confdefs.h. */
15857 extern char **environ;
15861 for (to = from = environ; (*to = *from); from++)
15862 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
15865 char TZ_GMT0[] = "TZ=GMT0";
15866 char TZ_PST8[] = "TZ=PST8";
15869 time_t now = time ((time_t *) 0);
15870 int hour_GMT0, hour_unset;
15871 if (putenv (TZ_GMT0) != 0)
15873 hour_GMT0 = localtime (&now)->tm_hour;
15875 hour_unset = localtime (&now)->tm_hour;
15876 if (putenv (TZ_PST8) != 0)
15878 if (localtime (&now)->tm_hour == hour_GMT0)
15881 if (localtime (&now)->tm_hour != hour_unset)
15886 rm -f conftest
$ac_exeext
15887 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15888 (eval $ac_link) 2>&5
15890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15891 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
15892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15893 (eval $ac_try) 2>&5
15895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15896 (exit $ac_status); }; }; then
15897 emacs_cv_localtime_cache
=no
15899 echo "$as_me: program exited with status $ac_status" >&5
15900 echo "$as_me: failed program was:" >&5
15901 sed 's/^/| /' conftest.
$ac_ext >&5
15903 ( exit $ac_status )
15904 emacs_cv_localtime_cache
=yes
15906 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
15909 # If we lack tzset, report that localtime does not cache TZ,
15910 # since we can't invalidate the cache if we don't have tzset.
15911 emacs_cv_localtime_cache
=no
15914 echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
15915 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6
15916 if test $emacs_cv_localtime_cache = yes; then
15918 cat >>confdefs.h
<<\_ACEOF
15919 #define LOCALTIME_CACHE 1
15924 if test "x$HAVE_TIMEVAL" = xyes
; then
15926 for ac_func
in gettimeofday
15928 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15929 echo "$as_me:$LINENO: checking for $ac_func" >&5
15930 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15931 if eval "test \"\${$as_ac_var+set}\" = set"; then
15932 echo $ECHO_N "(cached) $ECHO_C" >&6
15934 cat >conftest.
$ac_ext <<_ACEOF
15935 #line $LINENO "configure"
15938 cat confdefs.h
>>conftest.
$ac_ext
15939 cat >>conftest.
$ac_ext <<_ACEOF
15940 /* end confdefs.h. */
15941 /* System header to define __stub macros and hopefully few prototypes,
15942 which can conflict with char $ac_func (); below. */
15943 #include <assert.h>
15944 /* Override any gcc2 internal prototype to avoid an error. */
15949 /* We use char because int might match the return type of a gcc2
15950 builtin and then its argument prototype would still apply. */
15952 /* The GNU C library defines this for functions which it implements
15953 to always fail with ENOSYS. Some functions are actually named
15954 something starting with __ and the normal name is an alias. */
15955 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15958 char (*f) () = $ac_func;
15972 rm -f conftest.
$ac_objext conftest
$ac_exeext
15973 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15974 (eval $ac_link) 2>&5
15976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15977 (exit $ac_status); } &&
15978 { ac_try
='test -s conftest$ac_exeext'
15979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15980 (eval $ac_try) 2>&5
15982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15983 (exit $ac_status); }; }; then
15984 eval "$as_ac_var=yes"
15986 echo "$as_me: failed program was:" >&5
15987 sed 's/^/| /' conftest.
$ac_ext >&5
15989 eval "$as_ac_var=no"
15991 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
15993 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15994 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15995 if test `eval echo '${'$as_ac_var'}'` = yes; then
15996 cat >>confdefs.h
<<_ACEOF
15997 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16003 if test $ac_cv_func_gettimeofday = yes; then
16004 echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
16005 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6
16006 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
16007 echo $ECHO_N "(cached) $ECHO_C" >&6
16009 cat >conftest.
$ac_ext <<_ACEOF
16010 #line $LINENO "configure"
16013 cat confdefs.h
>>conftest.
$ac_ext
16014 cat >>conftest.
$ac_ext <<_ACEOF
16015 /* end confdefs.h. */
16017 #ifdef TIME_WITH_SYS_TIME
16018 #include <sys/time.h>
16021 #ifdef HAVE_SYS_TIME_H
16022 #include <sys/time.h>
16030 struct timeval time;
16031 gettimeofday (&time, 0);
16036 rm -f conftest.
$ac_objext
16037 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16038 (eval $ac_compile) 2>&5
16040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16041 (exit $ac_status); } &&
16042 { ac_try
='test -s conftest.$ac_objext'
16043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16044 (eval $ac_try) 2>&5
16046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16047 (exit $ac_status); }; }; then
16048 emacs_cv_gettimeofday_two_arguments
=yes
16050 echo "$as_me: failed program was:" >&5
16051 sed 's/^/| /' conftest.
$ac_ext >&5
16053 emacs_cv_gettimeofday_two_arguments
=no
16055 rm -f conftest.
$ac_objext conftest.
$ac_ext
16057 echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
16058 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6
16059 if test $emacs_cv_gettimeofday_two_arguments = no
; then
16061 cat >>confdefs.h
<<\_ACEOF
16062 #define GETTIMEOFDAY_ONE_ARGUMENT 1
16069 if test "$ac_cv_func_gettimeofday" = yes; then
16070 echo "$as_me:$LINENO: checking for struct timezone" >&5
16071 echo $ECHO_N "checking for struct timezone... $ECHO_C" >&6
16072 if test "${emacs_cv_struct_timezone+set}" = set; then
16073 echo $ECHO_N "(cached) $ECHO_C" >&6
16075 cat >conftest.
$ac_ext <<_ACEOF
16076 #line $LINENO "configure"
16079 cat confdefs.h
>>conftest.
$ac_ext
16080 cat >>conftest.
$ac_ext <<_ACEOF
16081 /* end confdefs.h. */
16082 #include <sys/time.h>
16086 struct timezone tz;
16091 rm -f conftest.
$ac_objext
16092 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16093 (eval $ac_compile) 2>&5
16095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16096 (exit $ac_status); } &&
16097 { ac_try
='test -s conftest.$ac_objext'
16098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16099 (eval $ac_try) 2>&5
16101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16102 (exit $ac_status); }; }; then
16103 if test "$cross_compiling" = yes; then
16104 emacs_cv_struct_timezone
=yes
16106 cat >conftest.
$ac_ext <<_ACEOF
16107 #line $LINENO "configure"
16110 cat confdefs.h
>>conftest.
$ac_ext
16111 cat >>conftest.
$ac_ext <<_ACEOF
16112 /* end confdefs.h. */
16114 #ifdef TIME_WITH_SYS_TIME
16115 #include <sys/time.h>
16118 #ifdef HAVE_SYS_TIME_H
16119 #include <sys/time.h>
16125 struct timeval time;
16126 struct timezone dummy;
16127 exit (gettimeofday (&time, &dummy));
16130 rm -f conftest
$ac_exeext
16131 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16132 (eval $ac_link) 2>&5
16134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16135 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
16136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16137 (eval $ac_try) 2>&5
16139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16140 (exit $ac_status); }; }; then
16141 emacs_cv_struct_timezone
=yes
16143 echo "$as_me: program exited with status $ac_status" >&5
16144 echo "$as_me: failed program was:" >&5
16145 sed 's/^/| /' conftest.
$ac_ext >&5
16147 ( exit $ac_status )
16148 emacs_cv_struct_timezone
=no
16150 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
16153 echo "$as_me: failed program was:" >&5
16154 sed 's/^/| /' conftest.
$ac_ext >&5
16156 emacs_cv_struct_timezone
=no
16158 rm -f conftest.
$ac_objext conftest.
$ac_ext
16160 echo "$as_me:$LINENO: result: $emacs_cv_struct_timezone" >&5
16161 echo "${ECHO_T}$emacs_cv_struct_timezone" >&6
16165 echo "$as_me:$LINENO: checking for socket" >&5
16166 echo $ECHO_N "checking for socket... $ECHO_C" >&6
16167 if test "${ac_cv_func_socket+set}" = set; then
16168 echo $ECHO_N "(cached) $ECHO_C" >&6
16170 cat >conftest.
$ac_ext <<_ACEOF
16171 #line $LINENO "configure"
16174 cat confdefs.h
>>conftest.
$ac_ext
16175 cat >>conftest.
$ac_ext <<_ACEOF
16176 /* end confdefs.h. */
16177 /* System header to define __stub macros and hopefully few prototypes,
16178 which can conflict with char socket (); below. */
16179 #include <assert.h>
16180 /* Override any gcc2 internal prototype to avoid an error. */
16185 /* We use char because int might match the return type of a gcc2
16186 builtin and then its argument prototype would still apply. */
16188 /* The GNU C library defines this for functions which it implements
16189 to always fail with ENOSYS. Some functions are actually named
16190 something starting with __ and the normal name is an alias. */
16191 #if defined (__stub_socket) || defined (__stub___socket)
16194 char (*f) () = socket;
16208 rm -f conftest.
$ac_objext conftest
$ac_exeext
16209 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16210 (eval $ac_link) 2>&5
16212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16213 (exit $ac_status); } &&
16214 { ac_try
='test -s conftest$ac_exeext'
16215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16216 (eval $ac_try) 2>&5
16218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16219 (exit $ac_status); }; }; then
16220 ac_cv_func_socket
=yes
16222 echo "$as_me: failed program was:" >&5
16223 sed 's/^/| /' conftest.
$ac_ext >&5
16225 ac_cv_func_socket
=no
16227 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
16229 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
16230 echo "${ECHO_T}$ac_cv_func_socket" >&6
16231 if test $ac_cv_func_socket = yes; then
16237 if test $ok_so_far = yes; then
16238 if test "${ac_cv_header_netinet_in_h+set}" = set; then
16239 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
16240 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
16241 if test "${ac_cv_header_netinet_in_h+set}" = set; then
16242 echo $ECHO_N "(cached) $ECHO_C" >&6
16244 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
16245 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
16247 # Is the header compilable?
16248 echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
16249 echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6
16250 cat >conftest.
$ac_ext <<_ACEOF
16251 #line $LINENO "configure"
16254 cat confdefs.h
>>conftest.
$ac_ext
16255 cat >>conftest.
$ac_ext <<_ACEOF
16256 /* end confdefs.h. */
16257 $ac_includes_default
16258 #include <netinet/in.h>
16260 rm -f conftest.
$ac_objext
16261 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16262 (eval $ac_compile) 2>&5
16264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16265 (exit $ac_status); } &&
16266 { ac_try
='test -s conftest.$ac_objext'
16267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16268 (eval $ac_try) 2>&5
16270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16271 (exit $ac_status); }; }; then
16272 ac_header_compiler
=yes
16274 echo "$as_me: failed program was:" >&5
16275 sed 's/^/| /' conftest.
$ac_ext >&5
16277 ac_header_compiler
=no
16279 rm -f conftest.
$ac_objext conftest.
$ac_ext
16280 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16281 echo "${ECHO_T}$ac_header_compiler" >&6
16283 # Is the header present?
16284 echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
16285 echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6
16286 cat >conftest.
$ac_ext <<_ACEOF
16287 #line $LINENO "configure"
16290 cat confdefs.h
>>conftest.
$ac_ext
16291 cat >>conftest.
$ac_ext <<_ACEOF
16292 /* end confdefs.h. */
16293 #include <netinet/in.h>
16295 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16296 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
16298 grep -v '^ *+' conftest.er1
>conftest.err
16300 cat conftest.err
>&5
16301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16302 (exit $ac_status); } >/dev
/null
; then
16303 if test -s conftest.err
; then
16304 ac_cpp_err
=$ac_c_preproc_warn_flag
16311 if test -z "$ac_cpp_err"; then
16312 ac_header_preproc
=yes
16314 echo "$as_me: failed program was:" >&5
16315 sed 's/^/| /' conftest.
$ac_ext >&5
16317 ac_header_preproc
=no
16319 rm -f conftest.err conftest.
$ac_ext
16320 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16321 echo "${ECHO_T}$ac_header_preproc" >&6
16323 # So? What about this header?
16324 case $ac_header_compiler:$ac_header_preproc in
16326 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
16327 echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16328 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
16329 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
16332 ## ------------------------------------ ##
16333 ## Report this to bug-autoconf@gnu.org. ##
16334 ## ------------------------------------ ##
16337 sed "s/^/$as_me: WARNING: /" >&2
16340 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
16341 echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
16342 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
16343 echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
16344 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
16345 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
16348 ## ------------------------------------ ##
16349 ## Report this to bug-autoconf@gnu.org. ##
16350 ## ------------------------------------ ##
16353 sed "s/^/$as_me: WARNING: /" >&2
16356 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
16357 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
16358 if test "${ac_cv_header_netinet_in_h+set}" = set; then
16359 echo $ECHO_N "(cached) $ECHO_C" >&6
16361 ac_cv_header_netinet_in_h
=$ac_header_preproc
16363 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
16364 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
16367 if test $ac_cv_header_netinet_in_h = yes; then
16375 if test $ok_so_far = yes; then
16376 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
16377 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
16378 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
16379 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
16380 echo $ECHO_N "(cached) $ECHO_C" >&6
16382 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
16383 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
16385 # Is the header compilable?
16386 echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
16387 echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6
16388 cat >conftest.
$ac_ext <<_ACEOF
16389 #line $LINENO "configure"
16392 cat confdefs.h
>>conftest.
$ac_ext
16393 cat >>conftest.
$ac_ext <<_ACEOF
16394 /* end confdefs.h. */
16395 $ac_includes_default
16396 #include <arpa/inet.h>
16398 rm -f conftest.
$ac_objext
16399 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16400 (eval $ac_compile) 2>&5
16402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16403 (exit $ac_status); } &&
16404 { ac_try
='test -s conftest.$ac_objext'
16405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16406 (eval $ac_try) 2>&5
16408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16409 (exit $ac_status); }; }; then
16410 ac_header_compiler
=yes
16412 echo "$as_me: failed program was:" >&5
16413 sed 's/^/| /' conftest.
$ac_ext >&5
16415 ac_header_compiler
=no
16417 rm -f conftest.
$ac_objext conftest.
$ac_ext
16418 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16419 echo "${ECHO_T}$ac_header_compiler" >&6
16421 # Is the header present?
16422 echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
16423 echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6
16424 cat >conftest.
$ac_ext <<_ACEOF
16425 #line $LINENO "configure"
16428 cat confdefs.h
>>conftest.
$ac_ext
16429 cat >>conftest.
$ac_ext <<_ACEOF
16430 /* end confdefs.h. */
16431 #include <arpa/inet.h>
16433 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16434 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
16436 grep -v '^ *+' conftest.er1
>conftest.err
16438 cat conftest.err
>&5
16439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16440 (exit $ac_status); } >/dev
/null
; then
16441 if test -s conftest.err
; then
16442 ac_cpp_err
=$ac_c_preproc_warn_flag
16449 if test -z "$ac_cpp_err"; then
16450 ac_header_preproc
=yes
16452 echo "$as_me: failed program was:" >&5
16453 sed 's/^/| /' conftest.
$ac_ext >&5
16455 ac_header_preproc
=no
16457 rm -f conftest.err conftest.
$ac_ext
16458 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16459 echo "${ECHO_T}$ac_header_preproc" >&6
16461 # So? What about this header?
16462 case $ac_header_compiler:$ac_header_preproc in
16464 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
16465 echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16466 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
16467 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
16470 ## ------------------------------------ ##
16471 ## Report this to bug-autoconf@gnu.org. ##
16472 ## ------------------------------------ ##
16475 sed "s/^/$as_me: WARNING: /" >&2
16478 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
16479 echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
16480 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
16481 echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
16482 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
16483 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
16486 ## ------------------------------------ ##
16487 ## Report this to bug-autoconf@gnu.org. ##
16488 ## ------------------------------------ ##
16491 sed "s/^/$as_me: WARNING: /" >&2
16494 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
16495 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
16496 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
16497 echo $ECHO_N "(cached) $ECHO_C" >&6
16499 ac_cv_header_arpa_inet_h
=$ac_header_preproc
16501 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
16502 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
16505 if test $ac_cv_header_arpa_inet_h = yes; then
16513 if test $ok_so_far = yes; then
16515 cat >>confdefs.h
<<\_ACEOF
16516 #define HAVE_INET_SOCKETS 1
16521 if test -f /usr
/lpp
/X11
/bin
/smt.exp
; then
16523 cat >>confdefs.h
<<\_ACEOF
16524 #define HAVE_AIX_SMT_EXP 1
16529 echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
16530 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6
16531 if test -d /dev
/pts
&& ls -d /dev
/ptmx
> /dev
/null
2>&1 ; then
16532 echo "$as_me:$LINENO: result: yes" >&5
16533 echo "${ECHO_T}yes" >&6
16535 cat >>confdefs.h
<<\_ACEOF
16536 #define HAVE_DEV_PTMX 1
16540 echo "$as_me:$LINENO: result: no" >&5
16541 echo "${ECHO_T}no" >&6
16544 echo "$as_me:$LINENO: checking for pid_t" >&5
16545 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
16546 if test "${ac_cv_type_pid_t+set}" = set; then
16547 echo $ECHO_N "(cached) $ECHO_C" >&6
16549 cat >conftest.
$ac_ext <<_ACEOF
16550 #line $LINENO "configure"
16553 cat confdefs.h
>>conftest.
$ac_ext
16554 cat >>conftest.
$ac_ext <<_ACEOF
16555 /* end confdefs.h. */
16556 $ac_includes_default
16562 if (sizeof (pid_t))
16568 rm -f conftest.
$ac_objext
16569 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16570 (eval $ac_compile) 2>&5
16572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16573 (exit $ac_status); } &&
16574 { ac_try
='test -s conftest.$ac_objext'
16575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16576 (eval $ac_try) 2>&5
16578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16579 (exit $ac_status); }; }; then
16580 ac_cv_type_pid_t
=yes
16582 echo "$as_me: failed program was:" >&5
16583 sed 's/^/| /' conftest.
$ac_ext >&5
16585 ac_cv_type_pid_t
=no
16587 rm -f conftest.
$ac_objext conftest.
$ac_ext
16589 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16590 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
16591 if test $ac_cv_type_pid_t = yes; then
16595 cat >>confdefs.h
<<_ACEOF
16603 for ac_header
in unistd.h vfork.h
16605 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16606 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16607 echo "$as_me:$LINENO: checking for $ac_header" >&5
16608 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16609 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16610 echo $ECHO_N "(cached) $ECHO_C" >&6
16612 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16613 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16615 # Is the header compilable?
16616 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16617 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16618 cat >conftest.
$ac_ext <<_ACEOF
16619 #line $LINENO "configure"
16622 cat confdefs.h
>>conftest.
$ac_ext
16623 cat >>conftest.
$ac_ext <<_ACEOF
16624 /* end confdefs.h. */
16625 $ac_includes_default
16626 #include <$ac_header>
16628 rm -f conftest.
$ac_objext
16629 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16630 (eval $ac_compile) 2>&5
16632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16633 (exit $ac_status); } &&
16634 { ac_try
='test -s conftest.$ac_objext'
16635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16636 (eval $ac_try) 2>&5
16638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16639 (exit $ac_status); }; }; then
16640 ac_header_compiler
=yes
16642 echo "$as_me: failed program was:" >&5
16643 sed 's/^/| /' conftest.
$ac_ext >&5
16645 ac_header_compiler
=no
16647 rm -f conftest.
$ac_objext conftest.
$ac_ext
16648 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16649 echo "${ECHO_T}$ac_header_compiler" >&6
16651 # Is the header present?
16652 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16653 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16654 cat >conftest.
$ac_ext <<_ACEOF
16655 #line $LINENO "configure"
16658 cat confdefs.h
>>conftest.
$ac_ext
16659 cat >>conftest.
$ac_ext <<_ACEOF
16660 /* end confdefs.h. */
16661 #include <$ac_header>
16663 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16664 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
16666 grep -v '^ *+' conftest.er1
>conftest.err
16668 cat conftest.err
>&5
16669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16670 (exit $ac_status); } >/dev
/null
; then
16671 if test -s conftest.err
; then
16672 ac_cpp_err
=$ac_c_preproc_warn_flag
16679 if test -z "$ac_cpp_err"; then
16680 ac_header_preproc
=yes
16682 echo "$as_me: failed program was:" >&5
16683 sed 's/^/| /' conftest.
$ac_ext >&5
16685 ac_header_preproc
=no
16687 rm -f conftest.err conftest.
$ac_ext
16688 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16689 echo "${ECHO_T}$ac_header_preproc" >&6
16691 # So? What about this header?
16692 case $ac_header_compiler:$ac_header_preproc in
16694 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16695 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16696 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16697 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16700 ## ------------------------------------ ##
16701 ## Report this to bug-autoconf@gnu.org. ##
16702 ## ------------------------------------ ##
16705 sed "s/^/$as_me: WARNING: /" >&2
16708 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16709 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16710 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16711 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16712 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16713 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16716 ## ------------------------------------ ##
16717 ## Report this to bug-autoconf@gnu.org. ##
16718 ## ------------------------------------ ##
16721 sed "s/^/$as_me: WARNING: /" >&2
16724 echo "$as_me:$LINENO: checking for $ac_header" >&5
16725 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16726 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16727 echo $ECHO_N "(cached) $ECHO_C" >&6
16729 eval "$as_ac_Header=$ac_header_preproc"
16731 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16732 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16735 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16736 cat >>confdefs.h
<<_ACEOF
16737 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16746 for ac_func
in fork vfork
16748 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16749 echo "$as_me:$LINENO: checking for $ac_func" >&5
16750 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16751 if eval "test \"\${$as_ac_var+set}\" = set"; then
16752 echo $ECHO_N "(cached) $ECHO_C" >&6
16754 cat >conftest.
$ac_ext <<_ACEOF
16755 #line $LINENO "configure"
16758 cat confdefs.h
>>conftest.
$ac_ext
16759 cat >>conftest.
$ac_ext <<_ACEOF
16760 /* end confdefs.h. */
16761 /* System header to define __stub macros and hopefully few prototypes,
16762 which can conflict with char $ac_func (); below. */
16763 #include <assert.h>
16764 /* Override any gcc2 internal prototype to avoid an error. */
16769 /* We use char because int might match the return type of a gcc2
16770 builtin and then its argument prototype would still apply. */
16772 /* The GNU C library defines this for functions which it implements
16773 to always fail with ENOSYS. Some functions are actually named
16774 something starting with __ and the normal name is an alias. */
16775 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16778 char (*f) () = $ac_func;
16792 rm -f conftest.
$ac_objext conftest
$ac_exeext
16793 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16794 (eval $ac_link) 2>&5
16796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16797 (exit $ac_status); } &&
16798 { ac_try
='test -s conftest$ac_exeext'
16799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16800 (eval $ac_try) 2>&5
16802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16803 (exit $ac_status); }; }; then
16804 eval "$as_ac_var=yes"
16806 echo "$as_me: failed program was:" >&5
16807 sed 's/^/| /' conftest.
$ac_ext >&5
16809 eval "$as_ac_var=no"
16811 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
16813 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16814 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16815 if test `eval echo '${'$as_ac_var'}'` = yes; then
16816 cat >>confdefs.h
<<_ACEOF
16817 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16823 if test "x$ac_cv_func_fork" = xyes
; then
16824 echo "$as_me:$LINENO: checking for working fork" >&5
16825 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
16826 if test "${ac_cv_func_fork_works+set}" = set; then
16827 echo $ECHO_N "(cached) $ECHO_C" >&6
16829 if test "$cross_compiling" = yes; then
16830 ac_cv_func_fork_works
=cross
16832 cat >conftest.
$ac_ext <<_ACEOF
16833 /* By Ruediger Kuhlmann. */
16834 #include <sys/types.h>
16836 # include <unistd.h>
16838 /* Some systems only have a dummy stub for fork() */
16846 rm -f conftest
$ac_exeext
16847 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16848 (eval $ac_link) 2>&5
16850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16851 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
16852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16853 (eval $ac_try) 2>&5
16855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16856 (exit $ac_status); }; }; then
16857 ac_cv_func_fork_works
=yes
16859 echo "$as_me: program exited with status $ac_status" >&5
16860 echo "$as_me: failed program was:" >&5
16861 sed 's/^/| /' conftest.
$ac_ext >&5
16863 ( exit $ac_status )
16864 ac_cv_func_fork_works
=no
16866 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
16869 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
16870 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
16873 ac_cv_func_fork_works
=$ac_cv_func_fork
16875 if test "x$ac_cv_func_fork_works" = xcross
; then
16877 *-*-amigaos* |
*-*-msdosdjgpp*)
16878 # Override, as these systems have only a dummy fork() stub
16879 ac_cv_func_fork_works
=no
16882 ac_cv_func_fork_works
=yes
16885 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
16886 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
16888 ac_cv_func_vfork_works
=$ac_cv_func_vfork
16889 if test "x$ac_cv_func_vfork" = xyes
; then
16890 echo "$as_me:$LINENO: checking for working vfork" >&5
16891 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
16892 if test "${ac_cv_func_vfork_works+set}" = set; then
16893 echo $ECHO_N "(cached) $ECHO_C" >&6
16895 if test "$cross_compiling" = yes; then
16896 ac_cv_func_vfork_works
=cross
16898 cat >conftest.
$ac_ext <<_ACEOF
16899 #line $LINENO "configure"
16902 cat confdefs.h
>>conftest.
$ac_ext
16903 cat >>conftest.
$ac_ext <<_ACEOF
16904 /* end confdefs.h. */
16905 /* Thanks to Paul Eggert for this test. */
16907 #include <stdlib.h>
16908 #include <sys/types.h>
16909 #include <sys/stat.h>
16910 #include <sys/wait.h>
16912 # include <unistd.h>
16915 # include <vfork.h>
16917 /* On some sparc systems, changes by the child to local and incoming
16918 argument registers are propagated back to the parent. The compiler
16919 is told about this with #include <vfork.h>, but some compilers
16920 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
16921 static variable whose address is put into a register that is
16922 clobbered by the vfork. */
16925 sparc_address_test (int arg)
16927 sparc_address_test (arg) int arg;
16930 static pid_t child;
16948 pid_t parent = getpid ();
16951 sparc_address_test (0);
16956 /* Here is another test for sparc vfork register problems. This
16957 test uses lots of local variables, at least as many local
16958 variables as main has allocated so far including compiler
16959 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
16960 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
16961 reuse the register of parent for one of the local variables,
16962 since it will think that parent can't possibly be used any more
16963 in this routine. Assigning to the local variable will thus
16964 munge parent in the parent process. */
16966 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
16967 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
16968 /* Convince the compiler that p..p7 are live; otherwise, it might
16969 use the same hardware register for all 8 local variables. */
16970 if (p != p1 || p != p2 || p != p3 || p != p4
16971 || p != p5 || p != p6 || p != p7)
16974 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
16975 from child file descriptors. If the child closes a descriptor
16976 before it execs or exits, this munges the parent's descriptor
16977 as well. Test for this by closing stdout in the child. */
16978 _exit(close(fileno(stdout)) != 0);
16983 while (wait(&status) != child)
16986 /* Was there some problem with vforking? */
16989 /* Did the child fail? (This shouldn't happen.) */
16992 /* Did the vfork/compiler bug occur? */
16993 || parent != getpid()
16995 /* Did the file descriptor bug occur? */
16996 || fstat(fileno(stdout), &st) != 0
17001 rm -f conftest
$ac_exeext
17002 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17003 (eval $ac_link) 2>&5
17005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17006 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
17007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17008 (eval $ac_try) 2>&5
17010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17011 (exit $ac_status); }; }; then
17012 ac_cv_func_vfork_works
=yes
17014 echo "$as_me: program exited with status $ac_status" >&5
17015 echo "$as_me: failed program was:" >&5
17016 sed 's/^/| /' conftest.
$ac_ext >&5
17018 ( exit $ac_status )
17019 ac_cv_func_vfork_works
=no
17021 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
17024 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
17025 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
17028 if test "x$ac_cv_func_fork_works" = xcross
; then
17029 ac_cv_func_vfork_works
=ac_cv_func_vfork
17030 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
17031 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
17034 if test "x$ac_cv_func_vfork_works" = xyes
; then
17036 cat >>confdefs.h
<<\_ACEOF
17037 #define HAVE_WORKING_VFORK 1
17042 cat >>confdefs.h
<<\_ACEOF
17047 if test "x$ac_cv_func_fork_works" = xyes
; then
17049 cat >>confdefs.h
<<\_ACEOF
17050 #define HAVE_WORKING_FORK 1
17056 echo "$as_me:$LINENO: checking for size_t" >&5
17057 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
17058 if test "${ac_cv_type_size_t+set}" = set; then
17059 echo $ECHO_N "(cached) $ECHO_C" >&6
17061 cat >conftest.
$ac_ext <<_ACEOF
17062 #line $LINENO "configure"
17065 cat confdefs.h
>>conftest.
$ac_ext
17066 cat >>conftest.
$ac_ext <<_ACEOF
17067 /* end confdefs.h. */
17068 $ac_includes_default
17074 if (sizeof (size_t))
17080 rm -f conftest.
$ac_objext
17081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17082 (eval $ac_compile) 2>&5
17084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17085 (exit $ac_status); } &&
17086 { ac_try
='test -s conftest.$ac_objext'
17087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17088 (eval $ac_try) 2>&5
17090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17091 (exit $ac_status); }; }; then
17092 ac_cv_type_size_t
=yes
17094 echo "$as_me: failed program was:" >&5
17095 sed 's/^/| /' conftest.
$ac_ext >&5
17097 ac_cv_type_size_t
=no
17099 rm -f conftest.
$ac_objext conftest.
$ac_ext
17101 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17102 echo "${ECHO_T}$ac_cv_type_size_t" >&6
17103 if test $ac_cv_type_size_t = yes; then
17105 cat >>confdefs.h
<<_ACEOF
17106 #define HAVE_SIZE_T 1
17113 echo "$as_me:$LINENO: checking for C restrict keyword" >&5
17114 echo $ECHO_N "checking for C restrict keyword... $ECHO_C" >&6
17115 if test "${emacs_cv_c_restrict+set}" = set; then
17116 echo $ECHO_N "(cached) $ECHO_C" >&6
17118 cat >conftest.
$ac_ext <<_ACEOF
17119 #line $LINENO "configure"
17122 cat confdefs.h
>>conftest.
$ac_ext
17123 cat >>conftest.
$ac_ext <<_ACEOF
17124 /* end confdefs.h. */
17125 void fred (int *restrict x);
17134 rm -f conftest.
$ac_objext
17135 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17136 (eval $ac_compile) 2>&5
17138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17139 (exit $ac_status); } &&
17140 { ac_try
='test -s conftest.$ac_objext'
17141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17142 (eval $ac_try) 2>&5
17144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17145 (exit $ac_status); }; }; then
17146 emacs_cv_c_restrict
=yes
17148 echo "$as_me: failed program was:" >&5
17149 sed 's/^/| /' conftest.
$ac_ext >&5
17151 cat >conftest.
$ac_ext <<_ACEOF
17152 #line $LINENO "configure"
17155 cat confdefs.h
>>conftest.
$ac_ext
17156 cat >>conftest.
$ac_ext <<_ACEOF
17157 /* end confdefs.h. */
17158 void fred (int *__restrict x);
17167 rm -f conftest.
$ac_objext
17168 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17169 (eval $ac_compile) 2>&5
17171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17172 (exit $ac_status); } &&
17173 { ac_try
='test -s conftest.$ac_objext'
17174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17175 (eval $ac_try) 2>&5
17177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17178 (exit $ac_status); }; }; then
17179 emacs_cv_c_restrict
=__restrict
17181 echo "$as_me: failed program was:" >&5
17182 sed 's/^/| /' conftest.
$ac_ext >&5
17184 emacs_cv_c_restrict
=no
17186 rm -f conftest.
$ac_objext conftest.
$ac_ext
17188 rm -f conftest.
$ac_objext conftest.
$ac_ext
17190 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
17191 echo "${ECHO_T}$emacs_cv_c_restrict" >&6
17192 case "$emacs_cv_c_restrict" in
17193 yes) emacs_restrict
=restrict
;;
17194 no
) emacs_restrict
="";;
17195 *) emacs_restrict
="$emacs_cv_c_restrict";;
17197 if test "$emacs_restrict" != __restrict
; then
17199 cat >>confdefs.h
<<_ACEOF
17200 #define __restrict $emacs_restrict
17205 echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
17206 echo $ECHO_N "checking for C restricted array declarations... $ECHO_C" >&6
17207 if test "${emacs_cv_c_restrict_arr+set}" = set; then
17208 echo $ECHO_N "(cached) $ECHO_C" >&6
17210 cat >conftest.
$ac_ext <<_ACEOF
17211 #line $LINENO "configure"
17214 cat confdefs.h
>>conftest.
$ac_ext
17215 cat >>conftest.
$ac_ext <<_ACEOF
17216 /* end confdefs.h. */
17217 void fred (int x[__restrict]);
17226 rm -f conftest.
$ac_objext
17227 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17228 (eval $ac_compile) 2>&5
17230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17231 (exit $ac_status); } &&
17232 { ac_try
='test -s conftest.$ac_objext'
17233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17234 (eval $ac_try) 2>&5
17236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17237 (exit $ac_status); }; }; then
17238 emacs_cv_c_restrict_arr
=yes
17240 echo "$as_me: failed program was:" >&5
17241 sed 's/^/| /' conftest.
$ac_ext >&5
17243 emacs_cv_c_restrict_arr
=no
17245 rm -f conftest.
$ac_objext conftest.
$ac_ext
17247 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
17248 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6
17249 if test "$emacs_cv_c_restrict_arr" = yes; then
17251 cat >>confdefs.h
<<\_ACEOF
17252 #define __restrict_arr __restrict
17258 for ac_header
in nlist.h
17260 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17261 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17262 echo "$as_me:$LINENO: checking for $ac_header" >&5
17263 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17264 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17265 echo $ECHO_N "(cached) $ECHO_C" >&6
17267 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17268 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17270 # Is the header compilable?
17271 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17272 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17273 cat >conftest.
$ac_ext <<_ACEOF
17274 #line $LINENO "configure"
17277 cat confdefs.h
>>conftest.
$ac_ext
17278 cat >>conftest.
$ac_ext <<_ACEOF
17279 /* end confdefs.h. */
17280 $ac_includes_default
17281 #include <$ac_header>
17283 rm -f conftest.
$ac_objext
17284 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17285 (eval $ac_compile) 2>&5
17287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17288 (exit $ac_status); } &&
17289 { ac_try
='test -s conftest.$ac_objext'
17290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17291 (eval $ac_try) 2>&5
17293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17294 (exit $ac_status); }; }; then
17295 ac_header_compiler
=yes
17297 echo "$as_me: failed program was:" >&5
17298 sed 's/^/| /' conftest.
$ac_ext >&5
17300 ac_header_compiler
=no
17302 rm -f conftest.
$ac_objext conftest.
$ac_ext
17303 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17304 echo "${ECHO_T}$ac_header_compiler" >&6
17306 # Is the header present?
17307 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17308 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17309 cat >conftest.
$ac_ext <<_ACEOF
17310 #line $LINENO "configure"
17313 cat confdefs.h
>>conftest.
$ac_ext
17314 cat >>conftest.
$ac_ext <<_ACEOF
17315 /* end confdefs.h. */
17316 #include <$ac_header>
17318 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17319 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
17321 grep -v '^ *+' conftest.er1
>conftest.err
17323 cat conftest.err
>&5
17324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17325 (exit $ac_status); } >/dev
/null
; then
17326 if test -s conftest.err
; then
17327 ac_cpp_err
=$ac_c_preproc_warn_flag
17334 if test -z "$ac_cpp_err"; then
17335 ac_header_preproc
=yes
17337 echo "$as_me: failed program was:" >&5
17338 sed 's/^/| /' conftest.
$ac_ext >&5
17340 ac_header_preproc
=no
17342 rm -f conftest.err conftest.
$ac_ext
17343 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17344 echo "${ECHO_T}$ac_header_preproc" >&6
17346 # So? What about this header?
17347 case $ac_header_compiler:$ac_header_preproc in
17349 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17350 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17351 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17352 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17355 ## ------------------------------------ ##
17356 ## Report this to bug-autoconf@gnu.org. ##
17357 ## ------------------------------------ ##
17360 sed "s/^/$as_me: WARNING: /" >&2
17363 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17364 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17365 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17366 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17367 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17368 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17371 ## ------------------------------------ ##
17372 ## Report this to bug-autoconf@gnu.org. ##
17373 ## ------------------------------------ ##
17376 sed "s/^/$as_me: WARNING: /" >&2
17379 echo "$as_me:$LINENO: checking for $ac_header" >&5
17380 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17381 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17382 echo $ECHO_N "(cached) $ECHO_C" >&6
17384 eval "$as_ac_Header=$ac_header_preproc"
17386 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17387 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17390 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17391 cat >>confdefs.h
<<_ACEOF
17392 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17395 cat >>confdefs.h
<<\_ACEOF
17396 #define NLIST_STRUCT 1
17406 # Set up the CFLAGS for real compilation, so we can substitute it.
17407 CFLAGS
="$REAL_CFLAGS"
17408 CPPFLAGS
="$REAL_CPPFLAGS"
17410 #### Find out which version of Emacs this is.
17411 version
=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
17412 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
17413 if test x
"${version}" = x
; then
17414 { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
17415 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
17416 { (exit 1); exit 1; }; }
17419 ### Specify what sort of things we'll be editing into Makefile and config.h.
17420 ### Use configuration here uncanonicalized to avoid exceeding size limits.
17455 cat >>confdefs.h
<<_ACEOF
17456 #define EMACS_CONFIGURATION "${canonical}"
17460 cat >>confdefs.h
<<_ACEOF
17461 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
17465 cat >>confdefs.h
<<_ACEOF
17466 #define config_machfile "${machfile}"
17470 cat >>confdefs.h
<<_ACEOF
17471 #define config_opsysfile "${opsysfile}"
17475 cat >>confdefs.h
<<_ACEOF
17476 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
17480 cat >>confdefs.h
<<_ACEOF
17481 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
17485 cat >>confdefs.h
<<_ACEOF
17486 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
17490 cat >>confdefs.h
<<_ACEOF
17491 #define UNEXEC_SRC ${UNEXEC_SRC}
17495 if test "${HAVE_X_WINDOWS}" = "yes" ; then
17497 cat >>confdefs.h
<<\_ACEOF
17498 #define HAVE_X_WINDOWS 1
17502 if test "${USE_X_TOOLKIT}" != "none" ; then
17504 cat >>confdefs.h
<<\_ACEOF
17505 #define USE_X_TOOLKIT 1
17509 if test "${HAVE_X11}" = "yes" ; then
17511 cat >>confdefs.h
<<\_ACEOF
17516 if test "${HAVE_XFREE386}" = "yes" ; then
17518 cat >>confdefs.h
<<\_ACEOF
17519 #define HAVE_XFREE386 1
17523 if test "${HAVE_MENUS}" = "yes" ; then
17525 cat >>confdefs.h
<<\_ACEOF
17526 #define HAVE_MENUS 1
17530 if test "${GNU_MALLOC}" = "yes" ; then
17532 cat >>confdefs.h
<<\_ACEOF
17533 #define GNU_MALLOC 1
17537 if test "${REL_ALLOC}" = "yes" ; then
17539 cat >>confdefs.h
<<\_ACEOF
17540 #define REL_ALLOC 1
17549 #### Report on what we decided to do.
17551 Configured for \`${canonical}'.
17553 Where should the build process find the source code? ${srcdir}
17554 What operating system and machine description files should Emacs use?
17555 \`${opsysfile}' and \`${machfile}'
17556 What compiler should emacs be built with? ${CC} ${CFLAGS}
17557 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
17558 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
17559 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
17560 What window system should Emacs use? ${window_system}
17561 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
17563 if test -n "${x_includes}"; then
17564 echo " Where do we find X Windows header files? ${x_includes}"
17566 echo " Where do we find X Windows header files? Standard dirs"
17568 if test -n "${x_libraries}"; then
17569 echo " Where do we find X Windows libraries? ${x_libraries}"
17571 echo " Where do we find X Windows libraries? Standard dirs"
17574 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
17575 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
17576 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
17577 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
17578 echo " Does Emacs use -lungif? ${HAVE_GIF}"
17579 echo " Does Emacs use -lpng? ${HAVE_PNG}"
17580 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
17583 # Remove any trailing slashes in these variables.
17584 test "${prefix}" != NONE
&&
17585 prefix
=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
17586 test "${exec_prefix}" != NONE
&&
17587 exec_prefix
=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
17589 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
17590 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
17591 ## from Makefile.c can correctly provide the arg `-traditional' to the
17594 cat >conftest.
$ac_ext <<_ACEOF
17595 #line $LINENO "configure"
17598 cat confdefs.h
>>conftest.
$ac_ext
17599 cat >>conftest.
$ac_ext <<_ACEOF
17600 /* end confdefs.h. */
17603 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17604 $EGREP "yes..yes" >/dev
/null
2>&1; then
17605 CPP_NEED_TRADITIONAL
=no
17607 CPP_NEED_TRADITIONAL
=yes
17612 ac_config_files
="$ac_config_files Makefile lib-src/Makefile.c:lib-src/Makefile.in oldXMenu/Makefile man/Makefile lwlib/Makefile src/Makefile.c:src/Makefile.in lisp/Makefile lispref/Makefile lispintro/Makefile leim/Makefile"
17613 ac_config_commands
="$ac_config_commands default"
17614 cat >confcache
<<\_ACEOF
17615 # This file is a shell script that caches the results of configure
17616 # tests run on this system so they can be shared between configure
17617 # scripts and configure runs, see configure's option --config-cache.
17618 # It is not useful on other systems. If it contains results you don't
17619 # want to keep, you may remove or edit it.
17621 # config.status only pays attention to the cache file if you give it
17622 # the --recheck option to rerun configure.
17624 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17625 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17626 # following values.
17630 # The following way of writing the cache mishandles newlines in values,
17631 # but we know of no workaround that is simple, portable, and efficient.
17632 # So, don't put newlines in cache variables' values.
17633 # Ultrix sh set writes to stderr and can't be redirected directly,
17634 # and sets the high bit in the cache file unless we assign to the vars.
17637 case `(ac_space=' '; set | grep ac_space) 2>&1` in
17639 # `set' does not quote correctly, so add quotes (double-quote
17640 # substitution turns \\\\ into \\, and sed turns \\ into \).
17643 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17646 # `set' quotes correctly as required by POSIX, so do not add quotes.
17648 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
17655 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17657 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17659 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
17660 if test -w $cache_file; then
17661 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
17662 cat confcache
>$cache_file
17664 echo "not updating unwritable cache $cache_file"
17669 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
17670 # Let make expand exec_prefix.
17671 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
17673 # VPATH may cause trouble with some makes, so we remove $(srcdir),
17674 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17675 # trailing colons and then remove the whole line if VPATH becomes empty
17676 # (actually we leave an empty line to preserve line numbers).
17677 if test "x$srcdir" = x.
; then
17678 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
17679 s/:*\$(srcdir):*/:/;
17680 s/:*\${srcdir}:*/:/;
17682 s/^\([^=]*=[ ]*\):*/\1/;
17688 DEFS
=-DHAVE_CONFIG_H
17692 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
17693 # 1. Remove the extension, and $U if already installed.
17694 ac_i
=`echo "$ac_i" |
17695 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
17697 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
17698 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
17700 LIBOBJS
=$ac_libobjs
17702 LTLIBOBJS
=$ac_ltlibobjs
17706 : ${CONFIG_STATUS=./config.status}
17707 ac_clean_files_save
=$ac_clean_files
17708 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
17709 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
17710 echo "$as_me: creating $CONFIG_STATUS" >&6;}
17711 cat >$CONFIG_STATUS <<_ACEOF
17713 # Generated by $as_me.
17714 # Run this file to recreate the current configuration.
17715 # Compiler output produced by configure, useful for debugging
17716 # configure, is in config.log if it exists.
17719 ac_cs_recheck=false
17721 SHELL=\${CONFIG_SHELL-$SHELL}
17724 cat >>$CONFIG_STATUS <<\_ACEOF
17725 ## --------------------- ##
17726 ## M4sh Initialization. ##
17727 ## --------------------- ##
17729 # Be Bourne compatible
17730 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
17733 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17734 # is contrary to our usage. Disable this feature.
17735 alias -g '${1+"$@"}'='"$@"'
17736 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
17740 # Support unset when possible.
17741 if (FOO
=FOO
; unset FOO
) >/dev
/null
2>&1; then
17748 # Work around bugs in pre-3.0 UWIN ksh.
17749 $as_unset ENV MAIL MAILPATH
17756 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
17757 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
17758 LC_TELEPHONE LC_TIME
17760 if (set +x
; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
17761 eval $as_var=C
; export $as_var
17767 # Required to use basename.
17768 if expr a
: '\(a\)' >/dev
/null
2>&1; then
17774 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
17775 as_basename
=basename
17781 # Name of the executable.
17782 as_me
=`$as_basename "$0" ||
17783 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17784 X"$0" : 'X\(//\)$' \| \
17785 X"$0" : 'X\(/\)$' \| \
17786 . : '\(.\)' 2>/dev/null ||
17788 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
17789 /^X\/\(\/\/\)$/{ s//\1/; q; }
17790 /^X\/\(\/\).*/{ s//\1/; q; }
17794 # PATH needs CR, and LINENO needs CR and PATH.
17795 # Avoid depending upon Character Ranges.
17796 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
17797 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17798 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
17799 as_cr_digits
='0123456789'
17800 as_cr_alnum
=$as_cr_Letters$as_cr_digits
17802 # The user is always right.
17803 if test "${PATH_SEPARATOR+set}" != set; then
17804 echo "#! /bin/sh" >conf$$.sh
17805 echo "exit 0" >>conf$$.sh
17807 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
17816 as_lineno_1
=$LINENO
17817 as_lineno_2
=$LINENO
17818 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
17819 test "x$as_lineno_1" != "x$as_lineno_2" &&
17820 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
17821 # Find who we are. Look in the path if we contain no path at all
17824 *[\\/]* ) as_myself
=$0 ;;
17825 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
17826 for as_dir
in $PATH
17829 test -z "$as_dir" && as_dir
=.
17830 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
17835 # We did not find ourselves, most probably we were run as `sh COMMAND'
17836 # in which case we are not to be found in the path.
17837 if test "x$as_myself" = x
; then
17840 if test ! -f "$as_myself"; then
17841 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
17842 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
17843 { (exit 1); exit 1; }; }
17845 case $CONFIG_SHELL in
17847 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
17848 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
17851 test -z "$as_dir" && as_dir
=.
17852 for as_base
in sh bash ksh sh5
; do
17855 if ("$as_dir/$as_base" -c '
17856 as_lineno_1=$LINENO
17857 as_lineno_2=$LINENO
17858 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17859 test "x$as_lineno_1" != "x$as_lineno_2" &&
17860 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
17861 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
17862 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
17863 CONFIG_SHELL
=$as_dir/$as_base
17864 export CONFIG_SHELL
17865 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
17873 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
17874 # uniformly replaced by the line number. The first 'sed' inserts a
17875 # line-number line before each line; the second 'sed' does the real
17876 # work. The second script uses 'N' to pair each line-number line
17877 # with the numbered line, and appends trailing '-' during
17878 # substitution so that $LINENO is not a special case at line end.
17879 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
17880 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
17881 sed '=' <$as_myself |
17886 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
17889 s,^['$as_cr_digits']*\n,,
17890 ' >$as_me.lineno
&&
17891 chmod +x
$as_me.lineno ||
17892 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
17893 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
17894 { (exit 1); exit 1; }; }
17896 # Don't try to exec as it changes $[0], causing all sort of problems
17897 # (the dirname of $[0] is not the place where we might find the
17898 # original and so on. Autoconf is especially sensible to this).
17900 # Exit status is that of the last command.
17905 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
17906 *c
*,-n*) ECHO_N
= ECHO_C
='
17908 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
17909 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
17912 if expr a
: '\(a\)' >/dev
/null
2>&1; then
17918 rm -f conf$$ conf$$.exe conf$$.
file
17920 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
17921 # We could just check for DJGPP; but this test a) works b) is more generic
17922 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
17923 if test -f conf$$.exe
; then
17924 # Don't use ln at all; we don't have any links
17929 elif ln conf$$.
file conf$$
2>/dev
/null
; then
17934 rm -f conf$$ conf$$.exe conf$$.
file
17936 if mkdir
-p .
2>/dev
/null
; then
17942 as_executable_p
="test -f"
17944 # Sed expression to map a string onto a valid CPP name.
17945 as_tr_cpp
="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
17947 # Sed expression to map a string onto a valid variable name.
17948 as_tr_sh
="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
17952 # We need space, tab and new line, in precisely that order.
17962 # Open the log real soon, to keep \$[0] and so on meaningful, and to
17963 # report actual input values of CONFIG_FILES etc. instead of their
17964 # values after options handling. Logging --version etc. is OK.
17968 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17969 ## Running $as_me. ##
17974 This file was extended by $as_me, which was
17975 generated by GNU Autoconf 2.56. Invocation command line was
17977 CONFIG_FILES = $CONFIG_FILES
17978 CONFIG_HEADERS = $CONFIG_HEADERS
17979 CONFIG_LINKS = $CONFIG_LINKS
17980 CONFIG_COMMANDS = $CONFIG_COMMANDS
17984 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
17988 # Files that config.status was made for.
17989 if test -n "$ac_config_files"; then
17990 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
17993 if test -n "$ac_config_headers"; then
17994 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
17997 if test -n "$ac_config_links"; then
17998 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
18001 if test -n "$ac_config_commands"; then
18002 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
18005 cat >>$CONFIG_STATUS <<\_ACEOF
18008 \`$as_me' instantiates files from templates according to the
18009 current configuration.
18011 Usage: $0 [OPTIONS] [FILE]...
18013 -h, --help print this help, then exit
18014 -V, --version print version number, then exit
18015 -q, --quiet do not print progress messages
18016 -d, --debug don't remove temporary files
18017 --recheck update $as_me by reconfiguring in the same conditions
18018 --file=FILE[:TEMPLATE]
18019 instantiate the configuration file FILE
18020 --header=FILE[:TEMPLATE]
18021 instantiate the configuration header FILE
18023 Configuration files:
18026 Configuration headers:
18029 Configuration commands:
18032 Report bugs to <bug-autoconf@gnu.org>."
18035 cat >>$CONFIG_STATUS <<_ACEOF
18038 configured by $0, generated by GNU Autoconf 2.56,
18039 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
18041 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
18042 Free Software Foundation, Inc.
18043 This config.status script is free software; the Free Software Foundation
18044 gives unlimited permission to copy, distribute and modify it."
18049 cat >>$CONFIG_STATUS <<\_ACEOF
18050 # If no file are specified by the user, then we need to provide default
18051 # value. By we need to know if files were specified by the user.
18057 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
18058 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
18066 *) # This is not an option, so the user has probably given explicit
18069 ac_need_defaults
=false
;;
18073 # Handling of the options.
18075 cat >>$CONFIG_STATUS <<\_ACEOF
18076 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
18078 --version |
--vers* |
-V )
18079 echo "$ac_cs_version"; exit 0 ;;
18081 # Conflict between --help and --header
18082 { { echo "$as_me:$LINENO: error: ambiguous option: $1
18083 Try \`$0 --help' for more information." >&5
18084 echo "$as_me: error: ambiguous option: $1
18085 Try \`$0 --help' for more information." >&2;}
18086 { (exit 1); exit 1; }; };;
18087 --help |
--hel |
-h )
18088 echo "$ac_cs_usage"; exit 0 ;;
18089 --debug |
--d* |
-d )
18091 --file |
--fil |
--fi |
--f )
18093 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
18094 ac_need_defaults
=false
;;
18095 --header |
--heade |
--head |
--hea )
18097 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
18098 ac_need_defaults
=false
;;
18099 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
18100 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
18103 # This is an error.
18104 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
18105 Try \`$0 --help' for more information." >&5
18106 echo "$as_me: error: unrecognized option: $1
18107 Try \`$0 --help' for more information." >&2;}
18108 { (exit 1); exit 1; }; } ;;
18110 *) ac_config_targets
="$ac_config_targets $1" ;;
18116 ac_configure_extra_args
=
18118 if $ac_cs_silent; then
18120 ac_configure_extra_args
="$ac_configure_extra_args --silent"
18124 cat >>$CONFIG_STATUS <<_ACEOF
18125 if \$ac_cs_recheck; then
18126 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
18127 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18132 cat >>$CONFIG_STATUS <<_ACEOF
18134 # INIT-COMMANDS section.
18137 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
18143 cat >>$CONFIG_STATUS <<\_ACEOF
18144 for ac_config_target
in $ac_config_targets
18146 case "$ac_config_target" in
18147 # Handling of arguments.
18148 "Makefile" ) CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
18149 "lib-src/Makefile.c" ) CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
18150 "oldXMenu/Makefile" ) CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
18151 "man/Makefile" ) CONFIG_FILES
="$CONFIG_FILES man/Makefile" ;;
18152 "lwlib/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
18153 "src/Makefile.c" ) CONFIG_FILES
="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
18154 "lisp/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
18155 "lispref/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lispref/Makefile" ;;
18156 "lispintro/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lispintro/Makefile" ;;
18157 "leim/Makefile" ) CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
18158 "default" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
18159 "src/config.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
18160 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
18161 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
18162 { (exit 1); exit 1; }; };;
18166 # If the user did not use the arguments to specify the items to instantiate,
18167 # then the envvar interface is used. Set only those that are not.
18168 # We use the long form for the default assignment because of an extremely
18169 # bizarre bug on SunOS 4.1.3.
18170 if $ac_need_defaults; then
18171 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
18172 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
18173 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
18176 # Have a temporary directory for convenience. Make it in the build tree
18177 # simply because there is no reason to put it here, and in addition,
18178 # creating and moving files from /tmp can sometimes cause problems.
18179 # Create a temporary directory, and hook for its removal unless debugging.
18182 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
18183 trap '{ (exit 1); exit 1; }' 1 2 13 15
18186 # Create a (secure) tmp directory for tmp files.
18189 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
18190 test -n "$tmp" && test -d "$tmp"
18193 tmp
=.
/confstat$$
-$RANDOM
18194 (umask 077 && mkdir
$tmp)
18197 echo "$me: cannot create a temporary directory in ." >&2
18198 { (exit 1); exit 1; }
18203 cat >>$CONFIG_STATUS <<_ACEOF
18206 # CONFIG_FILES section.
18209 # No need to generate the scripts if there are no CONFIG_FILES.
18210 # This happens for instance when ./config.status config.h
18211 if test -n "\$CONFIG_FILES"; then
18212 # Protect against being on the right side of a sed subst in config.status.
18213 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
18214 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
18215 s,@SHELL@,$SHELL,;t t
18216 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
18217 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
18218 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
18219 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
18220 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
18221 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
18222 s,@exec_prefix@,$exec_prefix,;t t
18223 s,@prefix@,$prefix,;t t
18224 s,@program_transform_name@,$program_transform_name,;t t
18225 s,@bindir@,$bindir,;t t
18226 s,@sbindir@,$sbindir,;t t
18227 s,@libexecdir@,$libexecdir,;t t
18228 s,@datadir@,$datadir,;t t
18229 s,@sysconfdir@,$sysconfdir,;t t
18230 s,@sharedstatedir@,$sharedstatedir,;t t
18231 s,@localstatedir@,$localstatedir,;t t
18232 s,@libdir@,$libdir,;t t
18233 s,@includedir@,$includedir,;t t
18234 s,@oldincludedir@,$oldincludedir,;t t
18235 s,@infodir@,$infodir,;t t
18236 s,@mandir@,$mandir,;t t
18237 s,@build_alias@,$build_alias,;t t
18238 s,@host_alias@,$host_alias,;t t
18239 s,@target_alias@,$target_alias,;t t
18240 s,@DEFS@,$DEFS,;t t
18241 s,@ECHO_C@,$ECHO_C,;t t
18242 s,@ECHO_N@,$ECHO_N,;t t
18243 s,@ECHO_T@,$ECHO_T,;t t
18244 s,@LIBS@,$LIBS,;t t
18245 s,@build@,$build,;t t
18246 s,@build_cpu@,$build_cpu,;t t
18247 s,@build_vendor@,$build_vendor,;t t
18248 s,@build_os@,$build_os,;t t
18249 s,@host@,$host,;t t
18250 s,@host_cpu@,$host_cpu,;t t
18251 s,@host_vendor@,$host_vendor,;t t
18252 s,@host_os@,$host_os,;t t
18254 s,@CFLAGS@,$CFLAGS,;t t
18255 s,@LDFLAGS@,$LDFLAGS,;t t
18256 s,@CPPFLAGS@,$CPPFLAGS,;t t
18257 s,@ac_ct_CC@,$ac_ct_CC,;t t
18258 s,@EXEEXT@,$EXEEXT,;t t
18259 s,@OBJEXT@,$OBJEXT,;t t
18260 s,@LN_S@,$LN_S,;t t
18262 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
18263 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
18264 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
18265 s,@RANLIB@,$RANLIB,;t t
18266 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
18267 s,@EGREP@,$EGREP,;t t
18268 s,@LIBSOUND@,$LIBSOUND,;t t
18269 s,@SET_MAKE@,$SET_MAKE,;t t
18270 s,@ALLOCA@,$ALLOCA,;t t
18271 s,@liblockfile@,$liblockfile,;t t
18272 s,@LIBOBJS@,$LIBOBJS,;t t
18273 s,@NEED_SETGID@,$NEED_SETGID,;t t
18274 s,@KMEM_GROUP@,$KMEM_GROUP,;t t
18275 s,@GETLOADAVG_LIBS@,$GETLOADAVG_LIBS,;t t
18276 s,@version@,$version,;t t
18277 s,@configuration@,$configuration,;t t
18278 s,@canonical@,$canonical,;t t
18279 s,@srcdir@,$srcdir,;t t
18280 s,@lispdir@,$lispdir,;t t
18281 s,@locallisppath@,$locallisppath,;t t
18282 s,@lisppath@,$lisppath,;t t
18283 s,@x_default_search_path@,$x_default_search_path,;t t
18284 s,@etcdir@,$etcdir,;t t
18285 s,@archlibdir@,$archlibdir,;t t
18286 s,@docdir@,$docdir,;t t
18287 s,@bitmapdir@,$bitmapdir,;t t
18288 s,@gamedir@,$gamedir,;t t
18289 s,@gameuser@,$gameuser,;t t
18290 s,@c_switch_system@,$c_switch_system,;t t
18291 s,@c_switch_machine@,$c_switch_machine,;t t
18292 s,@LD_SWITCH_X_SITE@,$LD_SWITCH_X_SITE,;t t
18293 s,@LD_SWITCH_X_SITE_AUX@,$LD_SWITCH_X_SITE_AUX,;t t
18294 s,@C_SWITCH_X_SITE@,$C_SWITCH_X_SITE,;t t
18295 s,@X_TOOLKIT_TYPE@,$X_TOOLKIT_TYPE,;t t
18296 s,@machfile@,$machfile,;t t
18297 s,@opsysfile@,$opsysfile,;t t
18298 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
18303 cat >>$CONFIG_STATUS <<\_ACEOF
18304 # Split the substitutions into bite-sized pieces for seds with
18305 # small command number limits, like on Digital OSF/1 and HP-UX.
18306 ac_max_sed_lines
=48
18307 ac_sed_frag
=1 # Number of current file.
18308 ac_beg
=1 # First line for current file.
18309 ac_end
=$ac_max_sed_lines # Line after last line for current file.
18312 while $ac_more_lines; do
18313 if test $ac_beg -gt 1; then
18314 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
18316 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
18318 if test ! -s $tmp/subs.frag
; then
18319 ac_more_lines
=false
18321 # The purpose of the label and of the branching condition is to
18322 # speed up the sed processing (if there are no `@' at all, there
18323 # is no need to browse any of the substitutions).
18324 # These are the two extra sed commands mentioned above.
18326 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
18327 if test -z "$ac_sed_cmds"; then
18328 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
18330 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
18332 ac_sed_frag
=`expr $ac_sed_frag + 1`
18334 ac_end
=`expr $ac_end + $ac_max_sed_lines`
18337 if test -z "$ac_sed_cmds"; then
18340 fi # test -n "$CONFIG_FILES"
18343 cat >>$CONFIG_STATUS <<\_ACEOF
18344 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
18345 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18347 - |
*:- |
*:-:* ) # input from stdin
18349 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
18350 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
18351 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
18352 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
18353 * ) ac_file_in
=$ac_file.
in ;;
18356 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
18357 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
18358 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18359 X"$ac_file" : 'X\(//\)[^/]' \| \
18360 X"$ac_file" : 'X\(//\)$' \| \
18361 X"$ac_file" : 'X\(/\)' \| \
18362 . : '\(.\)' 2>/dev/null ||
18364 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18365 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18366 /^X\(\/\/\)$/{ s//\1/; q; }
18367 /^X\(\/\).*/{ s//\1/; q; }
18369 { if $as_mkdir_p; then
18374 while test ! -d "$as_dir"; do
18375 as_dirs
="$as_dir $as_dirs"
18376 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
18377 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18378 X"$as_dir" : 'X\(//\)[^/]' \| \
18379 X"$as_dir" : 'X\(//\)$' \| \
18380 X"$as_dir" : 'X\(/\)' \| \
18381 . : '\(.\)' 2>/dev/null ||
18383 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18384 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18385 /^X\(\/\/\)$/{ s//\1/; q; }
18386 /^X\(\/\).*/{ s//\1/; q; }
18389 test ! -n "$as_dirs" || mkdir
$as_dirs
18390 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18391 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18392 { (exit 1); exit 1; }; }; }
18396 if test "$ac_dir" != .
; then
18397 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18398 # A "../" for each directory in $ac_dir_suffix.
18399 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18401 ac_dir_suffix
= ac_top_builddir
=
18405 .
) # No --srcdir option. We are building in place.
18407 if test -z "$ac_top_builddir"; then
18410 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
18412 [\\/]* | ?
:[\\/]* ) # Absolute path.
18413 ac_srcdir
=$srcdir$ac_dir_suffix;
18414 ac_top_srcdir
=$srcdir ;;
18415 *) # Relative path.
18416 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
18417 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
18419 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
18421 ac_abs_builddir
=`cd "$ac_dir" && cd $ac_builddir && pwd`
18422 ac_abs_top_builddir
=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
18423 ac_abs_srcdir
=`cd "$ac_dir" && cd $ac_srcdir && pwd`
18424 ac_abs_top_srcdir
=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
18428 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
18429 *) ac_INSTALL
=$ac_top_builddir$INSTALL ;;
18432 if test x
"$ac_file" != x-
; then
18433 { echo "$as_me:$LINENO: creating $ac_file" >&5
18434 echo "$as_me: creating $ac_file" >&6;}
18437 # Let's still pretend it is `configure' which instantiates (i.e., don't
18438 # use $as_me), people would be surprised to read:
18439 # /* config.h. Generated by config.status. */
18440 if test x
"$ac_file" = x-
; then
18443 configure_input
="$ac_file. "
18445 configure_input
=$configure_input"Generated from `echo $ac_file_in |
18446 sed 's,.*/,,'` by configure."
18448 # First look for the input files in the build tree, otherwise in the
18450 ac_file_inputs
=`IFS=:
18451 for f in $ac_file_in; do
18453 -) echo $tmp/stdin ;;
18455 # Absolute (can't be DOS-style, as IFS=:)
18456 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18457 echo "$as_me: error: cannot find input file: $f" >&2;}
18458 { (exit 1); exit 1; }; }
18461 if test -f "$f"; then
18464 elif test -f "$srcdir/$f"; then
18469 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18470 echo "$as_me: error: cannot find input file: $f" >&2;}
18471 { (exit 1); exit 1; }; }
18474 done` ||
{ (exit 1); exit 1; }
18476 cat >>$CONFIG_STATUS <<_ACEOF
18480 cat >>$CONFIG_STATUS <<\_ACEOF
18482 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
18483 s
,@configure_input@
,$configure_input,;t t
18484 s
,@srcdir@
,$ac_srcdir,;t t
18485 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
18486 s
,@top_srcdir@
,$ac_top_srcdir,;t t
18487 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
18488 s
,@builddir@
,$ac_builddir,;t t
18489 s
,@abs_builddir@
,$ac_abs_builddir,;t t
18490 s
,@top_builddir@
,$ac_top_builddir,;t t
18491 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
18492 s
,@INSTALL@
,$ac_INSTALL,;t t
18493 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
18495 if test x"$ac_file" != x-; then
18496 mv $tmp/out $ac_file
18504 cat >>$CONFIG_STATUS <<\_ACEOF
18507 # CONFIG_HEADER section.
18510 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
18511 # NAME is the cpp macro being defined and VALUE is the value it is being given.
18513 # ac_d sets the value in "#define NAME VALUE" lines.
18514 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
18515 ac_dB
='[ ].*$,\1#\2'
18518 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
18519 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
18520 ac_uB
='$,\1#\2define\3'
18524 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
18525 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18527 - |
*:- |
*:-:* ) # input from stdin
18529 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
18530 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
18531 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
18532 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
18533 * ) ac_file_in
=$ac_file.
in ;;
18536 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
18537 echo "$as_me: creating $ac_file" >&6;}
18539 # First look for the input files in the build tree, otherwise in the
18541 ac_file_inputs
=`IFS=:
18542 for f in $ac_file_in; do
18544 -) echo $tmp/stdin ;;
18546 # Absolute (can't be DOS-style, as IFS=:)
18547 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18548 echo "$as_me: error: cannot find input file: $f" >&2;}
18549 { (exit 1); exit 1; }; }
18552 if test -f "$f"; then
18555 elif test -f "$srcdir/$f"; then
18560 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18561 echo "$as_me: error: cannot find input file: $f" >&2;}
18562 { (exit 1); exit 1; }; }
18565 done` ||
{ (exit 1); exit 1; }
18566 # Remove the trailing spaces.
18567 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
18571 # Transform confdefs.h into two sed scripts, `conftest.defines' and
18572 # `conftest.undefs', that substitutes the proper values into
18573 # config.h.in to produce config.h. The first handles `#define'
18574 # templates, and the second `#undef' templates.
18575 # And first: Protect against being on the right side of a sed subst in
18576 # config.status. Protect against being in an unquoted here document
18577 # in config.status.
18578 rm -f conftest.defines conftest.undefs
18579 # Using a here document instead of a string reduces the quoting nightmare.
18580 # Putting comments in sed scripts is not portable.
18582 # `end' is used to avoid that the second main sed command (meant for
18583 # 0-ary CPP macros) applies to n-ary macro definitions.
18584 # See the Autoconf documentation for `clear'.
18585 cat >confdef2sed.
sed <<\_ACEOF
18590 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
18592 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
18595 # If some macros were called several times there might be several times
18596 # the same #defines, which is useless. Nevertheless, we may not want to
18597 # sort them, since we want the *last* AC-DEFINE to be honored.
18598 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
18599 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
18600 rm -f confdef2sed.sed
18602 # This sed command replaces #undef with comments. This is necessary, for
18603 # example, in the case of _POSIX_SOURCE, which is predefined and required
18604 # on some systems where configure will not decide to define it.
18605 cat >>conftest.undefs <<\_ACEOF
18606 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
18609 # Break up conftest.defines because some shells have a limit on the size
18610 # of here documents, and old seds have small limits too (100 cmds).
18611 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
18612 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
18613 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
18614 echo ' :' >>$CONFIG_STATUS
18615 rm -f conftest.tail
18616 while grep . conftest.defines >/dev/null
18618 # Write a limited-size here document to $tmp/defines.sed.
18619 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
18620 # Speed up: don't consider the non `#define' lines.
18621 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
18622 # Work around the forget-to-reset-the-flag bug.
18623 echo 't clr' >>$CONFIG_STATUS
18624 echo ': clr' >>$CONFIG_STATUS
18625 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
18627 sed -f $tmp/defines.sed $tmp/in >$tmp/out
18629 mv $tmp/out $tmp/in
18631 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
18632 rm -f conftest.defines
18633 mv conftest.
tail conftest.defines
18635 rm -f conftest.defines
18636 echo ' fi # grep' >>$CONFIG_STATUS
18637 echo >>$CONFIG_STATUS
18639 # Break up conftest.undefs because some shells have a limit on the size
18640 # of here documents, and old seds have small limits too (100 cmds).
18641 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
18642 rm -f conftest.
tail
18643 while grep . conftest.undefs
>/dev
/null
18645 # Write a limited-size here document to $tmp/undefs.sed.
18646 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
18647 # Speed up: don't consider the non
`#undef'
18648 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
18649 # Work around the forget-to-reset-the-flag bug.
18650 echo 't clr' >>$CONFIG_STATUS
18651 echo ': clr' >>$CONFIG_STATUS
18652 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
18654 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
18656 mv $tmp/out $tmp/in
18658 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
18659 rm -f conftest.undefs
18660 mv conftest.tail conftest.undefs
18662 rm -f conftest.undefs
18664 cat >>$CONFIG_STATUS <<\_ACEOF
18665 # Let's still pretend it is `configure
' which instantiates (i.e., don't
18666 # use $as_me), people would be surprised to read:
18667 # /* config.h. Generated by config.status. */
18668 if test x
"$ac_file" = x-
; then
18669 echo "/* Generated by configure. */" >$tmp/config.h
18671 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
18673 cat $tmp/in >>$tmp/config.h
18675 if test x
"$ac_file" != x-
; then
18676 if diff $ac_file $tmp/config.h
>/dev
/null
2>&1; then
18677 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
18678 echo "$as_me: $ac_file is unchanged" >&6;}
18680 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
18681 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18682 X"$ac_file" : 'X\(//\)[^/]' \| \
18683 X"$ac_file" : 'X\(//\)$' \| \
18684 X"$ac_file" : 'X\(/\)' \| \
18685 . : '\(.\)' 2>/dev/null ||
18687 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18688 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18689 /^X\(\/\/\)$/{ s//\1/; q; }
18690 /^X\(\/\).*/{ s//\1/; q; }
18692 { if $as_mkdir_p; then
18697 while test ! -d "$as_dir"; do
18698 as_dirs
="$as_dir $as_dirs"
18699 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
18700 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18701 X"$as_dir" : 'X\(//\)[^/]' \| \
18702 X"$as_dir" : 'X\(//\)$' \| \
18703 X"$as_dir" : 'X\(/\)' \| \
18704 . : '\(.\)' 2>/dev/null ||
18706 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18707 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18708 /^X\(\/\/\)$/{ s//\1/; q; }
18709 /^X\(\/\).*/{ s//\1/; q; }
18712 test ! -n "$as_dirs" || mkdir
$as_dirs
18713 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18714 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18715 { (exit 1); exit 1; }; }; }
18718 mv $tmp/config.h
$ac_file
18722 rm -f $tmp/config.h
18726 cat >>$CONFIG_STATUS <<\_ACEOF
18729 # CONFIG_COMMANDS section.
18731 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
18732 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
18733 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
18734 ac_dir
=`(dirname "$ac_dest") 2>/dev/null ||
18735 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18736 X"$ac_dest" : 'X\(//\)[^/]' \| \
18737 X"$ac_dest" : 'X\(//\)$' \| \
18738 X"$ac_dest" : 'X\(/\)' \| \
18739 . : '\(.\)' 2>/dev/null ||
18741 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18742 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18743 /^X\(\/\/\)$/{ s//\1/; q; }
18744 /^X\(\/\).*/{ s//\1/; q; }
18748 if test "$ac_dir" != .
; then
18749 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18750 # A "../" for each directory in $ac_dir_suffix.
18751 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18753 ac_dir_suffix
= ac_top_builddir
=
18757 .
) # No --srcdir option. We are building in place.
18759 if test -z "$ac_top_builddir"; then
18762 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
18764 [\\/]* | ?
:[\\/]* ) # Absolute path.
18765 ac_srcdir
=$srcdir$ac_dir_suffix;
18766 ac_top_srcdir
=$srcdir ;;
18767 *) # Relative path.
18768 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
18769 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
18771 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
18773 ac_abs_builddir
=`cd "$ac_dir" && cd $ac_builddir && pwd`
18774 ac_abs_top_builddir
=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
18775 ac_abs_srcdir
=`cd "$ac_dir" && cd $ac_srcdir && pwd`
18776 ac_abs_top_srcdir
=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
18779 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
18780 echo "$as_me: executing $ac_dest commands" >&6;}
18784 ### Make the necessary directories, if they don't exist.
18785 for dir
in etc lisp
; do
18786 test -d ${dir} || mkdir
${dir}
18789 # Build src/Makefile from ${srcdir}/src/Makefile.c
18790 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
18791 # This must be done after src/config.h is built, since we rely on that file.
18793 # Now get this: Some word that is part of the ${srcdir} directory name
18794 # or the ${configuration} value might, just might, happen to be an
18795 # identifier like `sun4' or `i386' or something, and be predefined by
18796 # the C preprocessor to some helpful value like 1, or maybe the empty
18797 # string. Needless to say consequent macro substitutions are less
18798 # than conducive to the makefile finding the correct directory.
18799 undefs
="`echo $top_srcdir $configuration $canonical |
18800 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
18801 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
18804 echo creating src
/epaths.h
18805 ${MAKE-make} epaths-force
18807 # As of 2000-11-19, newest development versions of GNU cpp preprocess
18808 # `..' to `. .' unless invoked with -traditional
18810 if test "x$GCC" = xyes
&& test "x$CPP_NEED_TRADITIONAL" = xyes
; then
18811 CPPFLAGS
="$CPPFLAGS -traditional"
18814 echo creating lib-src
/Makefile
18816 rm -f junk.c junk1.c junk2.c
18817 sed -e '/start of cpp stuff/q' \
18818 < Makefile.c
> junk1.c
18819 sed -e '1,/start of cpp stuff/d'\
18820 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
18821 < Makefile.c
> junk.c
18822 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
18823 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
18824 cat junk1.c junk2.c
> Makefile.new
18825 rm -f junk.c junk1.c junk2.c
18826 chmod 444 Makefile.new
18827 mv -f Makefile.new Makefile
18830 echo creating src
/Makefile
18832 rm -f junk.c junk1.c junk2.c
18833 sed -e '/start of cpp stuff/q' \
18834 < Makefile.c
> junk1.c
18835 sed -e '1,/start of cpp stuff/d'\
18836 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
18837 < Makefile.c
> junk.c
18838 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
18839 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
18840 cat junk1.c junk2.c
> Makefile.new
18841 rm -f junk.c junk1.c junk2.c
18842 chmod 444 Makefile.new
18843 mv -f Makefile.new Makefile
18846 if test ! -f src
/.gdbinit
&& test -f $srcdir/src
/.gdbinit
; then
18847 echo creating src
/.gdbinit
18848 echo source $srcdir/src
/.gdbinit
> src
/.gdbinit
18851 # This is how we know whether to re-run configure in certain cases.
18852 touch src
/config.stamp
18859 cat >>$CONFIG_STATUS <<\_ACEOF
18861 { (exit 0); exit 0; }
18863 chmod +x
$CONFIG_STATUS
18864 ac_clean_files
=$ac_clean_files_save
18867 # configure is writing to config.log, and then calls config.status.
18868 # config.status does its own redirection, appending to config.log.
18869 # Unfortunately, on DOS this fails, as config.log is still kept open
18870 # by configure, so config.status won't be able to write to it; its
18871 # output is simply discarded. So we exec the FD to /dev/null,
18872 # effectively closing config.log, so it can be properly (re)opened and
18873 # appended to by config.status. When coming back to configure, we
18874 # need to make the FD available again.
18875 if test "$no_create" != yes; then
18877 ac_config_status_args
=
18878 test "$silent" = yes &&
18879 ac_config_status_args
="$ac_config_status_args --quiet"
18881 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
18883 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18884 # would make configure fail if this is the last instruction.
18885 $ac_cs_success ||
{ (exit 1); exit 1; }