2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
22 DUALCASE
=1; export DUALCASE
# for MKS sh
24 # Support unset when possible.
25 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C
; export $as_var
51 # Required to use basename.
52 if expr a
: '\(a\)' >/dev
/null
2>&1; then
58 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
65 # Name of the executable.
66 as_me
=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits
='0123456789'
84 as_cr_alnum
=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
91 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
102 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
105 # Find who we are. Look in the path if we contain no path at all
108 *[\\/]* ) as_myself
=$0 ;;
109 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
113 test -z "$as_dir" && as_dir
=.
114 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x
; then
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
131 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
134 test -z "$as_dir" && as_dir
=.
135 for as_base
in sh bash ksh sh5
; do
138 if ("$as_dir/$as_base" -c '
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
144 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
145 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
146 CONFIG_SHELL
=$as_dir/$as_base
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 s,^['$as_cr_digits']*\n,,
174 chmod +x
$as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
182 # Exit status is that of the last command.
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c
*,-n*) ECHO_N
= ECHO_C
='
190 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
191 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
194 if expr a
: '\(a\)' >/dev
/null
2>&1; then
200 rm -f conf$$ conf$$.exe conf$$.
file
202 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe
; then
206 # Don't use ln at all; we don't have any links
211 elif ln conf$$.
file conf$$
2>/dev
/null
; then
216 rm -f conf$$ conf$$.exe conf$$.
file
218 if mkdir
-p .
2>/dev
/null
; then
221 test -d .
/-p && rmdir .
/-p
225 as_executable_p
="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
235 # We need space, tab and new line, in precisely that order.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
254 ac_default_prefix
=/usr
/local
255 ac_config_libobj_dir
=.
260 SHELL
=${CONFIG_SHELL-/bin/sh}
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
267 # Identity of this package.
274 ac_unique_file
="src/lisp.h"
275 ac_config_libobj_dir
=src
276 # Factoring default headers for most tests.
277 ac_includes_default
="\
280 # include <sys/types.h>
283 # include <sys/stat.h>
294 # if !STDC_HEADERS && HAVE_MEMORY_H
300 # include <strings.h>
303 # include <inttypes.h>
313 ac_subst_vars
='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS MAINT build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT LN_S CPP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA RANLIB ac_ct_RANLIB INSTALL_INFO EGREP LIBSOUND SET_MAKE PKG_CONFIG GTK_CFLAGS GTK_LIBS ALLOCA liblockfile LIBOBJS NEED_SETGID KMEM_GROUP GETLOADAVG_LIBS version configuration canonical srcdir lispdir locallisppath lisppath x_default_search_path etcdir archlibdir docdir bitmapdir gamedir gameuser c_switch_system c_switch_machine LD_SWITCH_X_SITE LD_SWITCH_X_SITE_AUX C_SWITCH_X_SITE X_TOOLKIT_TYPE machfile opsysfile carbon_appdir LTLIBOBJS'
316 # Initialize some variables set by options.
318 ac_init_version
=false
319 # The variables have the same names as the options, with
320 # dashes changed to underlines.
328 program_transform_name
=s
,x
,x
,
336 # Installation directory options.
337 # These are left unexpanded so users can "make install exec_prefix=/foo"
338 # and all the variables that are supposed to be based on exec_prefix
339 # by default will actually change.
340 # Use braces instead of parens because sh, perl, etc. also accept them.
341 bindir
='${exec_prefix}/bin'
342 sbindir
='${exec_prefix}/sbin'
343 libexecdir
='${exec_prefix}/libexec'
344 datadir
='${prefix}/share'
345 sysconfdir
='${prefix}/etc'
346 sharedstatedir
='${prefix}/com'
347 localstatedir
='${prefix}/var'
348 libdir
='${exec_prefix}/lib'
349 includedir
='${prefix}/include'
350 oldincludedir
='/usr/include'
351 infodir
='${prefix}/info'
352 mandir
='${prefix}/man'
357 # If the previous option needs an argument, assign it.
358 if test -n "$ac_prev"; then
359 eval "$ac_prev=\$ac_option"
364 ac_optarg
=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
366 # Accept the important Cygnus configure options, so we can diagnose typos.
370 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
372 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
375 -build |
--build |
--buil |
--bui |
--bu)
376 ac_prev
=build_alias
;;
377 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
378 build_alias
=$ac_optarg ;;
380 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
381 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
382 ac_prev
=cache_file
;;
383 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
384 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
385 cache_file
=$ac_optarg ;;
388 cache_file
=config.cache
;;
390 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
392 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
394 datadir
=$ac_optarg ;;
396 -disable-* |
--disable-*)
397 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
398 # Reject names that are not valid shell variable names.
399 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
400 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
401 { (exit 1); exit 1; }; }
402 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
403 eval "enable_$ac_feature=no" ;;
405 -enable-* |
--enable-*)
406 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
407 # Reject names that are not valid shell variable names.
408 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
409 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
410 { (exit 1); exit 1; }; }
411 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
413 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
416 eval "enable_$ac_feature='$ac_optarg'" ;;
418 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
419 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
420 |
--exec |
--exe |
--ex)
421 ac_prev
=exec_prefix
;;
422 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
423 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
424 |
--exec=* |
--exe=* |
--ex=*)
425 exec_prefix
=$ac_optarg ;;
427 -gas |
--gas |
--ga |
--g)
428 # Obsolete; use --with-gas.
431 -help |
--help |
--hel |
--he |
-h)
433 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
434 ac_init_help
=recursive
;;
435 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
436 ac_init_help
=short
;;
438 -host |
--host |
--hos |
--ho)
439 ac_prev
=host_alias
;;
440 -host=* |
--host=* |
--hos=* |
--ho=*)
441 host_alias
=$ac_optarg ;;
443 -includedir |
--includedir |
--includedi |
--included |
--include \
444 |
--includ |
--inclu |
--incl |
--inc)
445 ac_prev
=includedir
;;
446 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
447 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
448 includedir
=$ac_optarg ;;
450 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
452 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
453 infodir
=$ac_optarg ;;
455 -libdir |
--libdir |
--libdi |
--libd)
457 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
460 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
461 |
--libexe |
--libex |
--libe)
462 ac_prev
=libexecdir
;;
463 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
464 |
--libexe=* |
--libex=* |
--libe=*)
465 libexecdir
=$ac_optarg ;;
467 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
468 |
--localstate |
--localstat |
--localsta |
--localst \
469 |
--locals |
--local |
--loca |
--loc |
--lo)
470 ac_prev
=localstatedir
;;
471 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
472 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
473 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
474 localstatedir
=$ac_optarg ;;
476 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
478 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
482 # Obsolete; use --without-fp.
485 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
486 |
--no-cr |
--no-c |
-n)
489 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
490 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
493 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
494 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
495 |
--oldin |
--oldi |
--old |
--ol |
--o)
496 ac_prev
=oldincludedir
;;
497 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
498 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
499 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
500 oldincludedir
=$ac_optarg ;;
502 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
504 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
507 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
508 |
--program-pre |
--program-pr |
--program-p)
509 ac_prev
=program_prefix
;;
510 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
511 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
512 program_prefix
=$ac_optarg ;;
514 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
515 |
--program-suf |
--program-su |
--program-s)
516 ac_prev
=program_suffix
;;
517 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
518 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
519 program_suffix
=$ac_optarg ;;
521 -program-transform-name |
--program-transform-name \
522 |
--program-transform-nam |
--program-transform-na \
523 |
--program-transform-n |
--program-transform- \
524 |
--program-transform |
--program-transfor \
525 |
--program-transfo |
--program-transf \
526 |
--program-trans |
--program-tran \
527 |
--progr-tra |
--program-tr |
--program-t)
528 ac_prev
=program_transform_name
;;
529 -program-transform-name=* |
--program-transform-name=* \
530 |
--program-transform-nam=* |
--program-transform-na=* \
531 |
--program-transform-n=* |
--program-transform-=* \
532 |
--program-transform=* |
--program-transfor=* \
533 |
--program-transfo=* |
--program-transf=* \
534 |
--program-trans=* |
--program-tran=* \
535 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
536 program_transform_name
=$ac_optarg ;;
538 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
539 |
-silent |
--silent |
--silen |
--sile |
--sil)
542 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
544 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
546 sbindir
=$ac_optarg ;;
548 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
549 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
550 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
552 ac_prev
=sharedstatedir
;;
553 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
554 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
555 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
557 sharedstatedir
=$ac_optarg ;;
559 -site |
--site |
--sit)
561 -site=* |
--site=* |
--sit=*)
564 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
566 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
569 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
570 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
571 ac_prev
=sysconfdir
;;
572 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
573 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
574 sysconfdir
=$ac_optarg ;;
576 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
577 ac_prev
=target_alias
;;
578 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
579 target_alias
=$ac_optarg ;;
581 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
584 -version |
--version |
--versio |
--versi |
--vers |
-V)
588 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
589 # Reject names that are not valid shell variable names.
590 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
591 { echo "$as_me: error: invalid package name: $ac_package" >&2
592 { (exit 1); exit 1; }; }
593 ac_package
=`echo $ac_package| sed 's/-/_/g'`
595 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
598 eval "with_$ac_package='$ac_optarg'" ;;
600 -without-* |
--without-*)
601 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
602 # Reject names that are not valid shell variable names.
603 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
604 { echo "$as_me: error: invalid package name: $ac_package" >&2
605 { (exit 1); exit 1; }; }
606 ac_package
=`echo $ac_package | sed 's/-/_/g'`
607 eval "with_$ac_package=no" ;;
610 # Obsolete; use --with-x.
613 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
614 |
--x-incl |
--x-inc |
--x-in |
--x-i)
615 ac_prev
=x_includes
;;
616 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
617 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
618 x_includes
=$ac_optarg ;;
620 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
621 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
622 ac_prev
=x_libraries
;;
623 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
624 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
625 x_libraries
=$ac_optarg ;;
627 -*) { echo "$as_me: error: unrecognized option: $ac_option
628 Try \`$0 --help' for more information." >&2
629 { (exit 1); exit 1; }; }
633 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
634 # Reject names that are not valid shell variable names.
635 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
636 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
637 { (exit 1); exit 1; }; }
638 ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
639 eval "$ac_envvar='$ac_optarg'"
643 # FIXME: should be removed in autoconf 3.0.
644 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
645 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
646 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
647 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
653 if test -n "$ac_prev"; then
654 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
655 { echo "$as_me: error: missing argument to $ac_option" >&2
656 { (exit 1); exit 1; }; }
659 # Be sure to have absolute paths.
660 for ac_var
in exec_prefix prefix
662 eval ac_val
=$
`echo $ac_var`
664 [\\/$
]* | ?
:[\\/]* | NONE |
'' ) ;;
665 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
666 { (exit 1); exit 1; }; };;
670 # Be sure to have absolute paths.
671 for ac_var
in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
672 localstatedir libdir includedir oldincludedir infodir mandir
674 eval ac_val
=$
`echo $ac_var`
676 [\\/$
]* | ?
:[\\/]* ) ;;
677 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
678 { (exit 1); exit 1; }; };;
682 # There might be people who depend on the old broken behavior: `$host'
683 # used to hold the argument of --host etc.
684 # FIXME: To remove some day.
689 # FIXME: To remove some day.
690 if test "x$host_alias" != x
; then
691 if test "x$build_alias" = x
; then
692 cross_compiling
=maybe
693 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
694 If a cross compiler is detected then cross compile mode will be used." >&2
695 elif test "x$build_alias" != "x$host_alias"; then
701 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
703 test "$silent" = yes && exec 6>/dev
/null
706 # Find the source files, if location was not specified.
707 if test -z "$srcdir"; then
708 ac_srcdir_defaulted
=yes
709 # Try the directory containing this script, then its parent.
710 ac_confdir
=`(dirname "$0") 2>/dev/null ||
711 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
712 X"$0" : 'X\(//\)[^/]' \| \
713 X"$0" : 'X\(//\)$' \| \
714 X"$0" : 'X\(/\)' \| \
715 . : '\(.\)' 2>/dev/null ||
717 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
718 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
719 /^X\(\/\/\)$/{ s//\1/; q; }
720 /^X\(\/\).*/{ s//\1/; q; }
723 if test ! -r $srcdir/$ac_unique_file; then
727 ac_srcdir_defaulted
=no
729 if test ! -r $srcdir/$ac_unique_file; then
730 if test "$ac_srcdir_defaulted" = yes; then
731 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
732 { (exit 1); exit 1; }; }
734 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
735 { (exit 1); exit 1; }; }
738 (cd $srcdir && test -r .
/$ac_unique_file) 2>/dev
/null ||
739 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
740 { (exit 1); exit 1; }; }
741 srcdir
=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
742 ac_env_build_alias_set
=${build_alias+set}
743 ac_env_build_alias_value
=$build_alias
744 ac_cv_env_build_alias_set
=${build_alias+set}
745 ac_cv_env_build_alias_value
=$build_alias
746 ac_env_host_alias_set
=${host_alias+set}
747 ac_env_host_alias_value
=$host_alias
748 ac_cv_env_host_alias_set
=${host_alias+set}
749 ac_cv_env_host_alias_value
=$host_alias
750 ac_env_target_alias_set
=${target_alias+set}
751 ac_env_target_alias_value
=$target_alias
752 ac_cv_env_target_alias_set
=${target_alias+set}
753 ac_cv_env_target_alias_value
=$target_alias
754 ac_env_CC_set
=${CC+set}
756 ac_cv_env_CC_set
=${CC+set}
757 ac_cv_env_CC_value
=$CC
758 ac_env_CFLAGS_set
=${CFLAGS+set}
759 ac_env_CFLAGS_value
=$CFLAGS
760 ac_cv_env_CFLAGS_set
=${CFLAGS+set}
761 ac_cv_env_CFLAGS_value
=$CFLAGS
762 ac_env_LDFLAGS_set
=${LDFLAGS+set}
763 ac_env_LDFLAGS_value
=$LDFLAGS
764 ac_cv_env_LDFLAGS_set
=${LDFLAGS+set}
765 ac_cv_env_LDFLAGS_value
=$LDFLAGS
766 ac_env_CPPFLAGS_set
=${CPPFLAGS+set}
767 ac_env_CPPFLAGS_value
=$CPPFLAGS
768 ac_cv_env_CPPFLAGS_set
=${CPPFLAGS+set}
769 ac_cv_env_CPPFLAGS_value
=$CPPFLAGS
770 ac_env_CPP_set
=${CPP+set}
771 ac_env_CPP_value
=$CPP
772 ac_cv_env_CPP_set
=${CPP+set}
773 ac_cv_env_CPP_value
=$CPP
776 # Report the --help message.
778 if test "$ac_init_help" = "long"; then
779 # Omit some internal or obsolete options to make the list less imposing.
780 # This message is too long to be a string in the A/UX 3.1 sh.
782 \`configure' configures this package to adapt to many kinds of systems.
784 Usage: $0 [OPTION]... [VAR=VALUE]...
786 To assign environment variables (e.g., CC, CFLAGS...), specify them as
787 VAR=VALUE. See below for descriptions of some of the useful variables.
789 Defaults for the options are specified in brackets.
792 -h, --help display this help and exit
793 --help=short display options specific to this package
794 --help=recursive display the short help of all the included packages
795 -V, --version display version information and exit
796 -q, --quiet, --silent do not print \`checking...' messages
797 --cache-file=FILE cache test results in FILE [disabled]
798 -C, --config-cache alias for \`--cache-file=config.cache'
799 -n, --no-create do not create output files
800 --srcdir=DIR find the sources in DIR [configure dir or \`..']
805 Installation directories:
806 --prefix=PREFIX install architecture-independent files in PREFIX
808 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
811 By default, \`make install' will install all the files in
812 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
813 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
814 for instance \`--prefix=\$HOME'.
816 For better control, use the options below.
818 Fine tuning of the installation directories:
819 --bindir=DIR user executables [EPREFIX/bin]
820 --sbindir=DIR system admin executables [EPREFIX/sbin]
821 --libexecdir=DIR program executables [EPREFIX/libexec]
822 --datadir=DIR read-only architecture-independent data [PREFIX/share]
823 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
824 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
825 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
826 --libdir=DIR object code libraries [EPREFIX/lib]
827 --includedir=DIR C header files [PREFIX/include]
828 --oldincludedir=DIR C header files for non-gcc [/usr/include]
829 --infodir=DIR info documentation [PREFIX/info]
830 --mandir=DIR man documentation [PREFIX/man]
836 --program-prefix=PREFIX prepend PREFIX to installed program names
837 --program-suffix=SUFFIX append SUFFIX to installed program names
838 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
841 --x-includes=DIR X include files are
in DIR
842 --x-libraries=DIR X library files are
in DIR
845 --build=BUILD configure
for building on BUILD
[guessed
]
846 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
850 if test -n "$ac_init_help"; then
855 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
856 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
857 --enable-carbon-app[=DIR
] [DIR
=/Application
]
858 specify
install directory
for Emacs.app on Mac OS X
859 --enable-maintainer-mode enable make rules and dependencies not useful
860 (and sometimes confusing
) to the casual installer
861 --disable-largefile omit support
for large files
864 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
865 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
866 --without-gcc don
't use GCC to compile Emacs if GCC is found
867 --without-pop don't support POP
mail retrieval with movemail
868 --with-kerberos support Kerberos-authenticated POP
869 --with-kerberos5 support Kerberos version
5 authenticated POP
870 --with-hesiod support Hesiod to get the POP server
host
871 --without-sound don
't compile with sound support
872 --with-x-toolkit=KIT use an X toolkit
873 (KIT = yes/lucid/athena/motif/gtk/no)
874 --with-xpm use -lXpm for displaying XPM images
875 --with-jpeg use -ljpeg for displaying JPEG images
876 --with-tiff use -ltiff for displaying TIFF images
877 --with-gif use -lungif for displaying GIF images
878 --with-png use -lpng for displaying PNG images
879 --with-gtk use GTK (same as --with-x-toolkit=gtk)
880 --with-pkg-config-prog Path to pkg-config to use for finding GTK
881 --without-toolkit-scroll-bars
882 don't use Motif or Xaw3d scroll bars
883 --without-xim don
't use X11 XIM
884 --without-carbon don't use Carbon GUI on Mac OS X
885 --with-x use the X Window System
887 Some influential environment variables
:
888 CC C compiler
command
889 CFLAGS C compiler flags
890 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
891 nonstandard directory
<lib dir
>
892 CPPFLAGS C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if you have
893 headers
in a nonstandard directory
<include dir
>
896 Use these variables to override the choices made by
`configure' or to help
897 it to find libraries and programs with nonstandard names/locations.
902 if test "$ac_init_help" = "recursive"; then
903 # If there are subdirs, report their specific --help.
905 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
906 test -d $ac_dir || continue
909 if test "$ac_dir" != .; then
910 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
911 # A "../" for each directory in $ac_dir_suffix.
912 ac_top_builddir=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,../,g'`
914 ac_dir_suffix= ac_top_builddir=
918 .) # No --srcdir option. We are building in place.
920 if test -z "$ac_top_builddir"; then
923 ac_top_srcdir=`echo $ac_top_builddir |
sed 's,/$,,'`
925 [\\/]* | ?:[\\/]* ) # Absolute path.
926 ac_srcdir=$srcdir$ac_dir_suffix;
927 ac_top_srcdir=$srcdir ;;
929 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
930 ac_top_srcdir=$ac_top_builddir$srcdir ;;
933 # Do not use `cd foo
&& pwd` to compute absolute paths, because
934 # the directories may not exist.
936 .) ac_abs_builddir="$ac_dir";;
939 .) ac_abs_builddir=`pwd`;;
940 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
941 *) ac_abs_builddir=`pwd`/"$ac_dir";;
944 case $ac_abs_builddir in
945 .) ac_abs_top_builddir=${ac_top_builddir}.;;
947 case ${ac_top_builddir}. in
948 .) ac_abs_top_builddir=$ac_abs_builddir;;
949 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
950 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
953 case $ac_abs_builddir in
954 .) ac_abs_srcdir=$ac_srcdir;;
957 .) ac_abs_srcdir=$ac_abs_builddir;;
958 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
959 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
962 case $ac_abs_builddir in
963 .) ac_abs_top_srcdir=$ac_top_srcdir;;
965 case $ac_top_srcdir in
966 .) ac_abs_top_srcdir=$ac_abs_builddir;;
967 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
968 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
973 # Check for guested configure; otherwise get Cygnus style configure.
974 if test -f $ac_srcdir/configure.gnu; then
976 $SHELL $ac_srcdir/configure.gnu --help=recursive
977 elif test -f $ac_srcdir/configure; then
979 $SHELL $ac_srcdir/configure --help=recursive
980 elif test -f $ac_srcdir/configure.ac ||
981 test -f $ac_srcdir/configure.in; then
985 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
991 test -n "$ac_init_help" && exit 0
992 if $ac_init_version; then
995 Copyright (C) 2003 Free Software Foundation, Inc.
996 This configure script is free software; the Free Software Foundation
997 gives unlimited permission to copy, distribute and modify it.
1003 This file contains any messages produced by compilers while
1004 running configure, to aid debugging if configure makes a mistake.
1006 It was created by $as_me, which was
1007 generated by GNU Autoconf 2.59. Invocation command line was
1018 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1019 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1020 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1021 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1022 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1024 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1025 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1027 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1028 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1029 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1030 hostinfo = `(hostinfo
) 2>/dev
/null ||
echo unknown
`
1031 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1032 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1033 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1041 test -z "$as_dir" && as_dir=.
1042 echo "PATH: $as_dir"
1057 # Keep a trace of the command line.
1058 # Strip out --no-create and --no-recursion so they do not pile up.
1059 # Strip out --silent because we don't want to record it for future runs.
1060 # Also quote any args containing shell meta-characters.
1061 # Make two passes to allow for proper duplicate-argument suppression.
1066 ac_must_keep_next=false
1072 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1073 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1074 | -silent | --silent | --silen | --sile | --sil)
1076 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1077 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1080 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1082 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1083 if test $ac_must_keep_next = true; then
1084 ac_must_keep_next=false # Got value, back to normal.
1087 *=* | --config-cache | -C | -disable-* | --disable-* \
1088 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1089 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1090 | -with-* | --with-* | -without-* | --without-* | --x)
1091 case "$ac_configure_args0 " in
1092 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1095 -* ) ac_must_keep_next=true ;;
1098 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1099 # Get rid of the leading space.
1105 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1106 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1108 # When interrupted or exit'd, cleanup temporary files, and complete
1109 # config.log. We remove comments because anyway the quotes in there
1110 # would cause problems or look ugly.
1111 # WARNING: Be sure not to use single quotes in there, as some shells,
1112 # such as our DU 5.0 friend, will then `close
' the trap.
1113 trap 'exit_status
=$?
1114 # Save into config.log some information that might help in debugging.
1119 ## ---------------- ##
1120 ## Cache variables. ##
1121 ## ---------------- ##
1124 # The following way of writing the cache mishandles newlines in values,
1127 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1130 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1131 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1135 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1142 ## ----------------- ##
1143 ## Output variables. ##
1144 ## ----------------- ##
1147 for ac_var
in $ac_subst_vars
1149 eval ac_val
=$
`echo $ac_var`
1150 echo "$ac_var='"'"'$ac_val'"'"'"
1154 if test -n "$ac_subst_files"; then
1161 for ac_var
in $ac_subst_files
1163 eval ac_val
=$
`echo $ac_var`
1164 echo "$ac_var='"'"'$ac_val'"'"'"
1169 if test -s confdefs.h
; then
1176 sed "/^$/d" confdefs.h |
sort
1179 test "$ac_signal" != 0 &&
1180 echo "$as_me: caught signal $ac_signal"
1181 echo "$as_me: exit $exit_status"
1183 rm -f core
*.core
&&
1184 rm -rf conftest
* confdefs
* conf$$
* $ac_clean_files &&
1187 for ac_signal in 1 2 13 15; do
1188 trap 'ac_signal
='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1192 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1193 rm -rf conftest* confdefs.h
1194 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1197 # Predefined preprocessor variables.
1199 cat >>confdefs.h <<_ACEOF
1200 #define PACKAGE_NAME "$PACKAGE_NAME"
1204 cat >>confdefs.h <<_ACEOF
1205 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1209 cat >>confdefs.h <<_ACEOF
1210 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1214 cat >>confdefs.h <<_ACEOF
1215 #define PACKAGE_STRING "$PACKAGE_STRING"
1219 cat >>confdefs.h <<_ACEOF
1220 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1224 # Let the site file select an alternate cache file if it wants to.
1225 # Prefer explicitly selected file to automatically selected ones.
1226 if test -z "$CONFIG_SITE"; then
1227 if test "x$prefix" != xNONE; then
1228 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1230 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1233 for ac_site_file in $CONFIG_SITE; do
1234 if test -r "$ac_site_file"; then
1235 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1236 echo "$as_me: loading site script $ac_site_file" >&6;}
1237 sed 's
/^
/|
/' "$ac_site_file" >&5
1242 if test -r "$cache_file"; then
1243 # Some versions of bash will fail to source /dev/null (special
1244 # files actually), so we avoid doing that.
1245 if test -f "$cache_file"; then
1246 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1247 echo "$as_me: loading cache $cache_file" >&6;}
1249 [\\/]* | ?:[\\/]* ) . $cache_file;;
1250 *) . ./$cache_file;;
1254 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1255 echo "$as_me: creating cache $cache_file" >&6;}
1259 # Check that the precious variables saved in the cache have kept the same
1261 ac_cache_corrupted=false
1262 for ac_var in `(set) 2>&1 |
1263 sed -n 's
/^ac_env_\
([a-zA-Z_0-9
]*\
)_set
=.
*/\
1/p
'`; do
1264 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1265 eval ac_new_set=\$ac_env_${ac_var}_set
1266 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1267 eval ac_new_val="\$ac_env_${ac_var}_value"
1268 case $ac_old_set,$ac_new_set in
1270 { echo "$as_me:$LINENO: error: \`$ac_var' was
set to \
`$ac_old_val' in the previous run" >&5
1271 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&2;}
1272 ac_cache_corrupted=: ;;
1274 { echo "$as_me:$LINENO: error
: \
`$ac_var' was not set in the previous run" >&5
1275 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1276 ac_cache_corrupted=: ;;
1279 if test "x$ac_old_val" != "x$ac_new_val"; then
1280 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run
:" >&5
1281 echo "$as_me: error
: \
`$ac_var' has changed since the previous run:" >&2;}
1282 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1283 echo "$as_me: former value: $ac_old_val" >&2;}
1284 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1285 echo "$as_me: current value: $ac_new_val" >&2;}
1286 ac_cache_corrupted=:
1289 # Pass precious variables to config.status.
1290 if test "$ac_new_set" = set; then
1292 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1293 ac_arg=$ac_var=`echo "$ac_new_val" |
sed "s/'/'\\\\\\\\''/g"` ;;
1294 *) ac_arg=$ac_var=$ac_new_val ;;
1296 case " $ac_configure_args " in
1297 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1298 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1302 if $ac_cache_corrupted; then
1303 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1304 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1305 { { echo "$as_me:$LINENO: error: run \`make distclean
' and/or \`rm $cache_file' and start over
" >&5
1306 echo "$as_me: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1307 { (exit 1); exit 1; }; }
1311 ac_cpp='$CPP $CPPFLAGS'
1312 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
1313 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
1314 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1334 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
1337 test "$program_prefix" != NONE &&
1338 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1339 # Use a double $ so make ignores it.
1340 test "$program_suffix" != NONE &&
1341 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1342 # Double any \ or $. echo might interpret backslashes.
1343 # By default was `s,x,x', remove it
if useless.
1344 cat <<\_ACEOF
>conftest.
sed
1345 s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//
1347 program_transform_name
=`echo $program_transform_name | sed -f conftest.sed`
1351 lispdir
='${datadir}/emacs/${version}/lisp'
1352 locallisppath
='${datadir}/emacs/${version}/site-lisp:'\
1353 '${datadir}/emacs/site-lisp:${datadir}/emacs/${version}/leim'
1354 lisppath
='${locallisppath}:${lispdir}'
1355 etcdir
='${datadir}/emacs/${version}/etc'
1356 archlibdir
='${libexecdir}/emacs/${version}/${configuration}'
1357 docdir
='${datadir}/emacs/${version}/etc'
1358 gamedir
='${localstatedir}/games/emacs'
1363 # Check whether --with-gcc or --without-gcc was given.
1364 if test "${with_gcc+set}" = set; then
1369 # Check whether --with-pop or --without-pop was given.
1370 if test "${with_pop+set}" = set; then
1372 if test "$withval" = yes; then
1373 cat >>confdefs.h
<<\_ACEOF
1374 #define MAIL_USE_POP 1
1380 cat >>confdefs.h
<<\_ACEOF
1381 #define MAIL_USE_POP 1
1387 # Check whether --with-kerberos or --without-kerberos was given.
1388 if test "${with_kerberos+set}" = set; then
1389 withval
="$with_kerberos"
1390 cat >>confdefs.h
<<\_ACEOF
1397 # Check whether --with-kerberos5 or --without-kerberos5 was given.
1398 if test "${with_kerberos5+set}" = set; then
1399 withval
="$with_kerberos5"
1400 if test "${with_kerberos5+set}" = set; then
1401 if test "${with_kerberos+set}" != set; then
1403 cat >>confdefs.h
<<\_ACEOF
1410 cat >>confdefs.h
<<\_ACEOF
1416 # Check whether --with-hesiod or --without-hesiod was given.
1417 if test "${with_hesiod+set}" = set; then
1418 withval
="$with_hesiod"
1420 cat >>confdefs.h
<<\_ACEOF
1427 # Check whether --with-sound or --without-sound was given.
1428 if test "${with_sound+set}" = set; then
1429 withval
="$with_sound"
1434 # Check whether --with-x-toolkit or --without-x-toolkit was given.
1435 if test "${with_x_toolkit+set}" = set; then
1436 withval
="$with_x_toolkit"
1437 case "${withval}" in
1438 y | ye |
yes ) val
=athena
;;
1440 l | lu | luc | luci | lucid
) val
=lucid
;;
1441 a |
at | ath | athe | athen | athena
) val
=athena
;;
1442 m | mo | mot | moti | motif
) val
=motif
;;
1443 g | gt | gtk
) val
=gtk
;;
1445 { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid\;
1446 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1447 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&5
1448 echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid\;
1449 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1450 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&2;}
1451 { (exit 1); exit 1; }; }
1458 # Check whether --with-xpm or --without-xpm was given.
1459 if test "${with_xpm+set}" = set; then
1464 # Check whether --with-jpeg or --without-jpeg was given.
1465 if test "${with_jpeg+set}" = set; then
1466 withval
="$with_jpeg"
1470 # Check whether --with-tiff or --without-tiff was given.
1471 if test "${with_tiff+set}" = set; then
1472 withval
="$with_tiff"
1476 # Check whether --with-gif or --without-gif was given.
1477 if test "${with_gif+set}" = set; then
1482 # Check whether --with-png or --without-png was given.
1483 if test "${with_png+set}" = set; then
1488 # Check whether --with-gtk or --without-gtk was given.
1489 if test "${with_gtk+set}" = set; then
1494 # Check whether --with-pkg-config-prog or --without-pkg-config-prog was given.
1495 if test "${with_pkg_config_prog+set}" = set; then
1496 withval
="$with_pkg_config_prog"
1500 # Check whether --with-toolkit-scroll-bars or --without-toolkit-scroll-bars was given.
1501 if test "${with_toolkit_scroll_bars+set}" = set; then
1502 withval
="$with_toolkit_scroll_bars"
1506 # Check whether --with-xim or --without-xim was given.
1507 if test "${with_xim+set}" = set; then
1512 # Check whether --with-carbon or --without-carbon was given.
1513 if test "${with_carbon+set}" = set; then
1514 withval
="$with_carbon"
1517 # Check whether --enable-carbon-app or --disable-carbon-app was given.
1518 if test "${enable_carbon_app+set}" = set; then
1519 enableval
="$enable_carbon_app"
1520 carbon_appdir_x
=${enableval}
1523 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1524 if test "${enable_maintainer_mode+set}" = set; then
1525 enableval
="$enable_maintainer_mode"
1526 USE_MAINTAINER_MODE
=$enableval
1528 USE_MAINTAINER_MODE
=no
1530 if test $USE_MAINTAINER_MODE = yes; then
1537 #### Make srcdir absolute, if it isn't already. It's important to
1538 #### avoid running the path through pwd unnecessarily, since pwd can
1539 #### give you automounter prefixes, which can go away. We do all this
1540 #### so Emacs can find its files when run uninstalled.
1541 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
1546 ## We may be able to use the $PWD environment variable to make this
1547 ## absolute. But sometimes PWD is inaccurate.
1548 ## Note: we used to use ${PWD} at the end instead of `pwd`,
1549 ## but that tested only for a well-formed and valid PWD,
1550 ## it did not object when PWD was well-formed and valid but just wrong.
1551 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
1555 srcdir
="`(cd ${srcdir}; pwd)`"
1558 * ) srcdir
="`(cd ${srcdir}; pwd)`" ;;
1561 #### Check if the source directory already has a configured system in it.
1562 if test `pwd` != `(cd ${srcdir} && pwd)` \
1563 && test -f "${srcdir}/src/config.h" ; then
1564 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
1565 as a build directory right now; it has been configured in its own
1566 right. To configure in another directory as well, you MUST
1567 use GNU make. If you do not have GNU make, then you must
1568 now do \`make distclean' in ${srcdir},
1569 and then run $0 again." >&5
1570 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
1571 as a build directory right now; it has been configured in its own
1572 right. To configure in another directory as well, you MUST
1573 use GNU make. If you do not have GNU make, then you must
1574 now do \`make distclean' in ${srcdir},
1575 and then run $0 again." >&2;}
1577 extrasub
='/^VPATH[ ]*=/c\
1578 vpath %.c $(srcdir)\
1579 vpath %.h $(srcdir)\
1580 vpath %.y $(srcdir)\
1581 vpath %.l $(srcdir)\
1582 vpath %.s $(srcdir)\
1583 vpath %.in $(srcdir)\
1584 vpath %.texi $(srcdir)'
1587 #### Given the configuration name, set machfile and opsysfile to the
1588 #### names of the m/*.h and s/*.h files we should use.
1590 ### Canonicalize the configuration name.
1593 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
1594 if test -f $ac_dir/install-sh
; then
1596 ac_install_sh
="$ac_aux_dir/install-sh -c"
1598 elif test -f $ac_dir/install.sh
; then
1600 ac_install_sh
="$ac_aux_dir/install.sh -c"
1602 elif test -f $ac_dir/shtool
; then
1604 ac_install_sh
="$ac_aux_dir/shtool install -c"
1608 if test -z "$ac_aux_dir"; then
1609 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1610 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1611 { (exit 1); exit 1; }; }
1613 ac_config_guess
="$SHELL $ac_aux_dir/config.guess"
1614 ac_config_sub
="$SHELL $ac_aux_dir/config.sub"
1615 ac_configure
="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1617 # Make sure we can run config.sub.
1618 $ac_config_sub sun4
>/dev
/null
2>&1 ||
1619 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1620 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1621 { (exit 1); exit 1; }; }
1623 echo "$as_me:$LINENO: checking build system type" >&5
1624 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1625 if test "${ac_cv_build+set}" = set; then
1626 echo $ECHO_N "(cached) $ECHO_C" >&6
1628 ac_cv_build_alias
=$build_alias
1629 test -z "$ac_cv_build_alias" &&
1630 ac_cv_build_alias
=`$ac_config_guess`
1631 test -z "$ac_cv_build_alias" &&
1632 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1633 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1634 { (exit 1); exit 1; }; }
1635 ac_cv_build
=`$ac_config_sub $ac_cv_build_alias` ||
1636 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1637 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1638 { (exit 1); exit 1; }; }
1641 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1642 echo "${ECHO_T}$ac_cv_build" >&6
1644 build_cpu
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1645 build_vendor
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1646 build_os
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1649 echo "$as_me:$LINENO: checking host system type" >&5
1650 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1651 if test "${ac_cv_host+set}" = set; then
1652 echo $ECHO_N "(cached) $ECHO_C" >&6
1654 ac_cv_host_alias
=$host_alias
1655 test -z "$ac_cv_host_alias" &&
1656 ac_cv_host_alias
=$ac_cv_build_alias
1657 ac_cv_host
=`$ac_config_sub $ac_cv_host_alias` ||
1658 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1659 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1660 { (exit 1); exit 1; }; }
1663 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1664 echo "${ECHO_T}$ac_cv_host" >&6
1666 host_cpu
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1667 host_vendor
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1668 host_os
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1672 configuration
=${host_alias-$host}
1676 ### If you add support for a new configuration, add code to this
1677 ### switch statement to recognize your configuration name and select
1678 ### the appropriate operating system and machine description files.
1680 ### You would hope that you could choose an m/*.h file pretty much
1681 ### based on the machine portion of the configuration name, and an s-
1682 ### file based on the operating system portion. However, it turns out
1683 ### that each m/*.h file is pretty manufacturer-specific - for
1684 ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are
1685 ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS
1686 ### machines. So we basically have to have a special case for each
1687 ### configuration name.
1689 ### As far as handling version numbers on operating systems is
1690 ### concerned, make sure things will fail in a fixable way. If
1691 ### /etc/MACHINES doesn't say anything about version numbers, be
1692 ### prepared to handle anything reasonably. If version numbers
1693 ### matter, be sure /etc/MACHINES says something about it.
1695 ### Eric Raymond says we should accept strings like "sysvr4" to mean
1696 ### "System V Release 4"; he writes, "The old convention encouraged
1697 ### confusion between `system' and `release' levels'."
1699 machine
='' opsys
='' unported
=no
1700 case "${canonical}" in
1705 case "${canonical}" in
1706 alpha
*-*-freebsd*) machine
=alpha
;;
1707 i
[3456]86-*-freebsd*) machine
=intel386
;;
1714 if test -f /usr
/lib
/crti.o
; then
1716 cat >>confdefs.h
<<\_ACEOF
1722 case "${canonical}" in
1723 alpha
*-*-netbsd*) machine
=alpha
;;
1724 i
[3456]86-*-netbsd*) machine
=intel386
;;
1726 # This is somewhat bogus.
1727 machine
=hp9000s300
;;
1728 powerpc-apple-netbsd
*) machine
=macppc
;;
1729 mips-
*-netbsd*) machine
=pmax
;;
1730 mipsel-
*-netbsd*) machine
=pmax
;;
1731 mipseb-
*-netbsd*) machine
=pmax
;;
1732 ns32k-
*-netbsd*) machine
=ns32000
;;
1733 powerpc-
*-netbsd*) machine
=macppc
;;
1734 sparc
*-*-netbsd*) machine
=sparc
;;
1735 vax-
*-netbsd*) machine
=vax
;;
1736 arm-
*-netbsd*) machine
=arm
;;
1743 case "${canonical}" in
1744 alpha
*-*-openbsd*) machine
=alpha
;;
1745 i386-
*-openbsd*) machine
=intel386
;;
1746 m68k-
*-openbsd*) machine
=hp9000s300
;;
1747 mipsel-
*-openbsd*) machine
=pmax
;;
1748 ns32k-
*-openbsd*) machine
=ns32000
;;
1749 sparc-
*-openbsd*) machine
=sparc
;;
1750 vax-
*-openbsd*) machine
=vax
;;
1755 arm-acorn-riscix1.1
* )
1756 machine
=acorn opsys
=riscix1-1
1758 arm-acorn-riscix1.2
* | arm-acorn-riscix
)
1759 ## This name is riscix12 instead of riscix1.2
1760 ## to avoid a file name conflict on MSDOS.
1761 machine
=acorn opsys
=riscix12
1767 case "${canonical}" in
1768 i
[345]86-*-bsdi*) machine
=intel386
;;
1769 sparc-
*-bsdi*) machine
=sparc
;;
1770 powerpc-
*-bsdi*) machine
=macppc
;;
1772 case "${canonical}" in
1773 *-*-bsd386* |
*-*-bsdi1* ) opsys
=bsd386
;;
1774 *-*-bsdi2.0
* ) opsys
=bsdos2
;;
1775 *-*-bsdi2* ) opsys
=bsdos2-1
;;
1776 *-*-bsdi3* ) opsys
=bsdos3
;;
1777 *-*-bsdi[45]* ) opsys
=bsdos4
;;
1782 ## Strictly speaking, we need the version of the alliant operating
1783 ## system to choose the right machine file, but currently the
1784 ## configuration name doesn't tell us enough to choose the right
1785 ## one; we need to give alliants their own operating system name to
1786 ## do this right. When someone cares, they can help us.
1788 machine
=alliant4 opsys
=bsd4-2
1791 machine
=alliant-2800 opsys
=bsd4-3
1794 ## Alpha (DEC) machines.
1796 machine
=alpha opsys
=osf1
1797 # This is needed to find X11R6.1 libraries for certain tests.
1798 NON_GCC_LINK_TEST_OPTIONS
=-Wl,-rpath,/usr
/X11R
6/lib
1799 GCC_LINK_TEST_OPTIONS
=-Wl,-rpath,/usr
/X11R
6/lib
1800 # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile
1801 # due to non-traditional preprocessing with the current compiler
1802 # defaults. OSF 4 can also have that compiler version, and there
1803 # seems always to have been a usable /usr/bin/cpp.
1804 NON_GNU_CPP
=/usr
/bin
/cpp
1805 case "${canonical}" in
1806 alpha
*-dec-osf[5-9]*)
1811 alpha
*-*-linux-gnu* )
1812 machine
=alpha opsys
=gnu-linux
1816 machine
=arm opsys
=gnu-linux
1821 machine
=macppc opsys
=gnu-linux
1826 machine
=altos opsys
=usg5-2
1831 machine
=amdahl opsys
=usg5-2-2
1834 ## Apollo, Domain/OS
1836 machine
=apollo opsys
=bsd4-3
1839 ## AT&T 3b2, 3b5, 3b15, 3b20
1841 machine
=att3b opsys
=usg5-2-2
1844 ## AT&T 3b1 - The Mighty Unix PC!
1846 machine
=7300 opsys
=usg5-2-2
1851 machine
=ibmrs6000 opsys
=aix3-2
1856 machine
=dpx2 opsys
=usg5-3
1861 machine
=sps7 opsys
=usg5-2
1864 ## CCI 5/32, 6/32 -- see "Tahoe".
1867 ## I don't know what configuration name to use for this; config.sub
1868 ## doesn't seem to know anything about it. Hey, Celerity users, get
1869 ## in touch with us!
1870 celerity-celerity-bsd
* )
1871 machine
=celerity opsys
=bsd4-2
1875 ## What operating systems does this chip run that Emacs has been
1879 ## We'll use the catch-all code at the bottom to guess the
1880 ## operating system.
1884 mips-compaq-nonstopux
* )
1885 machine
=nonstopux opsys
=nonstopux
1889 *-convex-bsd* |
*-convex-convexos* )
1890 machine
=convex opsys
=bsd4-3
1891 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
1892 NON_GNU_CPP
="cc -E -P"
1896 i
[3456]86-cubix-sysv* )
1897 machine
=intel386 opsys
=usg5-3
1901 cydra
*-cydrome-sysv* )
1902 machine
=cydra5 opsys
=usg5-3
1905 ## Data General AViiON Machines
1906 ## DG changed naming conventions with the release of 5.4.4.10, they
1907 ## dropped the initial 5.4 but left the intervening R. Because of the
1908 ## R this shouldn't conflict with older versions of the OS (which I
1909 ## think were named like dgux4.*). In addition, DG new AViiONs series
1910 ## uses either Motorola M88k or Intel Pentium CPUs.
1911 m88k-dg-dguxR4.
* | m88k-dg-dgux4
* )
1912 machine
=aviion opsys
=dgux4
1914 m88k-dg-dgux5.4R3
* | m88k-dg-dgux5.4
.3* )
1915 ## This name is dgux5-4-3 instead of dgux5-4r3
1916 ## to avoid a file name conflict on MSDOS.
1917 machine
=aviion opsys
=dgux5-4-3
1919 m88k-dg-dgux5.4R2
* | m88k-dg-dgux5.4
.2* )
1920 machine
=aviion opsys
=dgux5-4r2
1923 machine
=aviion opsys
=dgux
1926 ## Data General AViiON Intel (x86) Machines
1927 ## Exists from 5.4.3 (current i586-dg-dguxR4.11)
1928 ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il
1929 i
[345]86-dg-dguxR4* )
1930 machine
=aviion-intel opsys
=dgux4
1934 mips-dec-ultrix
[0-3].
* | mips-dec-ultrix4.0
* | mips-dec-bsd4.2
* )
1935 machine
=pmax opsys
=bsd4-2
1937 mips-dec-ultrix4.
[12]* | mips-dec-bsd
* )
1938 machine
=pmax opsys
=bsd4-3
1941 machine
=pmax opsys
=ultrix4-3
1944 machine
=pmax opsys
=osf1
1946 mips-dec-mach_bsd4.3
* )
1947 machine
=pmax opsys
=mach-bsd4-3
1950 ## Motorola Delta machines
1951 m68k-motorola-sysv
* | m68000-motorola-sysv
* )
1952 machine
=delta opsys
=usg5-3
1953 if test -z "`type gnucc | grep 'not found'`"
1955 if test -s /etc
/167config
1956 then CC
="gnucc -m68040"
1957 else CC
="gnucc -m68881"
1960 if test -z "`type gcc | grep 'not found'`"
1966 m88k-motorola-sysv4
* )
1967 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
1968 # needs POSIX_SIGNALS and therefore needs usg5-4-2.
1969 # I hope there are not other 4.0 versions for this machine
1970 # which really need usg5-4 instead.
1971 machine
=delta88k opsys
=usg5-4-2
1973 m88k-motorola-sysv
* | m88k-motorola-m88kbcs
* )
1974 machine
=delta88k opsys
=usg5-3
1979 machine
=dual opsys
=usg5-2
1981 m68
*-dual-uniplus* )
1982 machine
=dual opsys
=unipl5-2
1987 machine
=elxsi opsys
=usg5-2
1992 machine
=ns16000 opsys
=umax
1995 ## The GEC 63 - apparently, this port isn't really finished yet.
1996 # I'm sure we finished off the last of the machines, though. -- fx
1998 ## Gould Power Node and NP1
2000 machine
=gould opsys
=bsd4-2
2003 machine
=gould opsys
=bsd4-3
2006 machine
=gould-np1 opsys
=bsd4-3
2009 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
2010 ## as far as Emacs is concerned).
2012 # Build needs to be different on 7.0 and later releases
2013 case "`uname -r`" in
2014 [56].
[0-9] ) machine
=nh4000 opsys
=cxux
;;
2015 [7].
[0-9] ) machine
=nh4000 opsys
=cxux7
;;
2017 NON_GNU_CPP
="/lib/cpp"
2019 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
2021 machine
=nh3000 opsys
=cxux
2023 ## Harris power pc NightHawk running Power UNIX (Series 6000)
2024 powerpc-harris-powerunix
)
2025 machine
=nh6000 opsys
=powerunix
2026 NON_GNU_CPP
="cc -Xo -E -P"
2028 ## SR2001/SR2201 running HI-UX/MPP
2029 hppa1.1
-hitachi-hiuxmpp* )
2030 machine
=sr2k opsys
=hiuxmpp
2032 hppa1.1
-hitachi-hiuxwe2* )
2033 machine
=sr2k opsys
=hiuxwe2
2036 xps
*-honeywell-sysv* )
2037 machine
=xps100 opsys
=usg5-2
2040 ## HP 9000 series 200 or 300
2042 machine
=hp9000s300 opsys
=bsd4-3
2044 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
2046 case "`uname -r`" in
2047 ## Someone's system reports A.B8.05 for this.
2048 ## I wonder what other possibilities there are.
2049 *.B8.
* ) machine
=hp9000s300 opsys
=hpux8
;;
2050 *.08.
* ) machine
=hp9000s300 opsys
=hpux8
;;
2051 *.09.
* ) machine
=hp9000s300 opsys
=hpux9
;;
2052 *.1[0-9].
* ) machine
=hp9000s300 opsys
=hpux9shr
;;
2053 *) machine
=hp9000s300 opsys
=hpux
;;
2057 ## HP 9000 series 700 and 800, running HP/UX
2059 machine
=hp800 opsys
=hpux
2062 machine
=hp800 opsys
=hpux8
2064 hppa
*-hp-hpux9shr* )
2065 machine
=hp800 opsys
=hpux9shr
2068 machine
=hp800 opsys
=hpux9
2070 hppa
*-hp-hpux10.2
* )
2071 machine
=hp800 opsys
=hpux10-20
2074 machine
=hp800 opsys
=hpux10
2076 hppa
*-hp-hpux1[1-9]* )
2077 machine
=hp800 opsys
=hpux11
2080 hppa
*-*-linux-gnu* )
2081 machine
=hp800 opsys
=gnu-linux
2084 ## HP 9000 series 700 and 800, running HP/UX
2086 ## Cross-compilation? Nah!
2087 case "`uname -r`" in
2088 ## Someone's system reports A.B8.05 for this.
2089 ## I wonder what other possibilities there are.
2090 *.B8.
* ) machine
=hp800 opsys
=hpux8
;;
2091 *.08.
* ) machine
=hp800 opsys
=hpux8
;;
2092 *.09.
* ) machine
=hp800 opsys
=hpux9
;;
2093 *) machine
=hp800 opsys
=hpux10
;;
2097 machine
=hp800 opsys
=nextstep
2102 machine
=orion opsys
=bsd4-2
2104 clipper-orion-bsd
* )
2105 machine
=orion105 opsys
=bsd4-2
2109 i
[3456]86-ibm-aix1.1
* )
2110 machine
=ibmps2-aix opsys
=usg5-2-2
2112 i
[3456]86-ibm-aix1.
[23]* | i
[3456]86-ibm-aix* )
2113 machine
=ibmps2-aix opsys
=usg5-3
2116 machine
=ibm370aix opsys
=usg5-3
2119 machine
=ibms390 opsys
=gnu-linux
2121 rs6000-ibm-aix3.1
* | powerpc-ibm-aix3.1
* )
2122 machine
=ibmrs6000 opsys
=aix3-1
2124 rs6000-ibm-aix3.2
.5 | powerpc-ibm-aix3.2
.5 )
2125 machine
=ibmrs6000 opsys
=aix3-2-5
2127 rs6000-ibm-aix4.1
* | powerpc-ibm-aix4.1
* )
2128 machine
=ibmrs6000 opsys
=aix4-1
2130 rs6000-ibm-aix4.2
* | powerpc-ibm-aix4.2
* )
2131 machine
=ibmrs6000 opsys
=aix4-2
2133 rs6000-ibm-aix5
* | powerpc-ibm-aix5
* )
2134 machine
=ibmrs6000 opsys
=aix4-2
2136 rs6000-ibm-aix4.0
* | powerpc-ibm-aix4.0
* )
2137 machine
=ibmrs6000 opsys
=aix4
2139 rs6000-ibm-aix4
* | powerpc-ibm-aix4
* )
2140 machine
=ibmrs6000 opsys
=aix4-1
2142 rs6000-ibm-aix
* | powerpc-ibm-aix
* )
2143 machine
=ibmrs6000 opsys
=aix3-2
2146 machine
=ibmrt opsys
=bsd4-3
2149 machine
=ibmrt opsys
=bsd4-2
2152 machine
=ibmrt opsys
=bsd4-3
2155 machine
=ibmrt opsys
=bsd4-2
2158 machine
=ibmrt opsys
=bsd4-3
2161 machine
=ibmrt opsys
=bsd4-3
2164 machine
=ibmrt-aix opsys
=usg5-2-2
2167 ## Integrated Solutions `Optimum V'
2169 machine
=isi-ov opsys
=bsd4-2
2172 machine
=isi-ov opsys
=bsd4-3
2175 ## Intel 386 machines where we do care about the manufacturer
2176 i
[3456]86-intsys-sysv* )
2177 machine
=is386 opsys
=usg5-2-2
2181 i
[3456]86-prime-sysv* )
2182 machine
=i386 opsys
=usg5-3
2185 ## Sequent Symmetry running Dynix
2186 i
[3456]86-sequent-bsd* )
2187 machine
=symmetry opsys
=bsd4-3
2190 ## Sequent Symmetry running ptx 4, which is a modified SVR4.
2191 i
[3456]86-sequent-ptx4* | i
[3456]86-sequent-sysv4* )
2192 machine
=sequent-ptx opsys
=ptx4
2193 NON_GNU_CPP
=/lib
/cpp
2196 ## Sequent Symmetry running DYNIX/ptx
2197 ## Use the old cpp rather than the newer ANSI one.
2198 i
[3456]86-sequent-ptx* )
2199 machine
=sequent-ptx opsys
=ptx
2200 NON_GNU_CPP
="/lib/cpp"
2203 ## ncr machine running svr4.3.
2204 i
[3456]86-ncr-sysv4.3
)
2205 machine
=ncr386 opsys
=usg5-4-3
2208 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2209 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2210 i
[3456]86-ncr-sysv* )
2211 machine
=ncr386 opsys
=usg5-4-2
2214 ## Intel Paragon OSF/1
2216 machine
=paragon opsys
=osf1 NON_GNU_CPP
=/usr
/mach
/lib
/cpp
2221 machine
=i860 opsys
=usg5-4
2222 NON_GNU_CC
="/bin/cc" # Ie, not the one in /usr/ucb/cc.
2223 NON_GNU_CPP
="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
2226 ## Macintosh PowerPC
2227 powerpc
*-*-linux-gnu* )
2228 machine
=macppc opsys
=gnu-linux
2231 ## Masscomp machines
2232 m68
*-masscomp-rtu* )
2233 machine
=masscomp opsys
=rtu
2236 ## Megatest machines
2237 m68
*-megatest-bsd* )
2238 machine
=mega68 opsys
=bsd4-2
2241 ## Workstations sold by MIPS
2242 ## This is not necessarily all workstations using the MIPS processor -
2243 ## Irises are produced by SGI, and DECstations by DEC.
2245 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
2246 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
2247 ## it gives for choosing between the alternatives seems to be "Use
2248 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
2249 ## the BSD world." I'll assume that these are instructions for
2250 ## handling two odd situations, and that every other situation
2251 ## should use mips.h and usg5-2-2, they being listed first.
2254 ## Fall through to the general code at the bottom to decide on the OS.
2256 mips-mips-riscos4
* )
2257 machine
=mips4 opsys
=bsd4-3
2258 NON_GNU_CC
="cc -systype bsd43"
2259 NON_GNU_CPP
="cc -systype bsd43 -E"
2261 mips-mips-riscos5
* )
2262 machine
=mips4 opsys
=riscos5
2263 NON_GNU_CC
="cc -systype bsd43"
2264 NON_GNU_CPP
="cc -systype bsd43 -E"
2267 machine
=mips opsys
=bsd4-3
2270 machine
=mips opsys
=usg5-2-2
2274 m68
*-next-* | m68k-
*-nextstep* )
2275 machine
=m68k opsys
=nextstep
2278 ## The complete machine from National Semiconductor
2280 machine
=ns32000 opsys
=usg5-2
2284 m68
*-ncr-sysv2* | m68
*-ncr-sysvr2* )
2285 machine
=tower32 opsys
=usg5-2-2
2287 m68
*-ncr-sysv3* | m68
*-ncr-sysvr3* )
2288 machine
=tower32v3 opsys
=usg5-3
2293 machine
=ews4800 opsys
=ux4800
2296 ## Nixdorf Targon 31
2297 m68
*-nixdorf-sysv* )
2298 machine
=targon31 opsys
=usg5-2-2
2303 machine
=nu opsys
=usg5-2
2308 machine
=plexus opsys
=usg5-2
2312 ## I don't really have any idea what sort of processor the Pyramid has,
2313 ## so I'm assuming it is its own architecture.
2314 pyramid-pyramid-bsd
* )
2315 machine
=pyramid opsys
=bsd4-2
2319 ns32k-sequent-bsd4.2
* )
2320 machine
=sequent opsys
=bsd4-2
2322 ns32k-sequent-bsd4.3
* )
2323 machine
=sequent opsys
=bsd4-3
2327 mips-siemens-sysv
* | mips-sni-sysv
*)
2328 machine
=mips-siemens opsys
=usg5-4
2329 NON_GNU_CC
=/usr
/ccs
/bin
/cc
2330 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2333 ## Silicon Graphics machines
2334 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
2336 machine
=irist opsys
=iris3-5
2338 m68
*-sgi-iris3.6
* | m68
*-sgi-iris*)
2339 machine
=irist opsys
=iris3-6
2343 machine
=iris4d opsys
=irix3-3
2346 machine
=iris4d opsys
=irix4-0
2349 machine
=iris4d opsys
=irix6-5
2350 # Without defining _LANGUAGE_C, things get masked out in the headers
2351 # so that, for instance, grepping for `free' in stdlib.h fails and
2352 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2353 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2354 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
2357 machine
=iris4d opsys
=irix6-0
2358 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
2359 # but presumably it does no harm.
2360 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2361 # -32 probably isn't necessary in later v.6s -- anyone know which?
2362 NON_GCC_TEST_OPTIONS
=-32
2364 mips-sgi-irix5.
[01]* )
2365 machine
=iris4d opsys
=irix5-0
2367 mips-sgi-irix5
* | mips-sgi-irix
* )
2368 machine
=iris4d opsys
=irix5-2
2373 machine
=news opsys
=bsd4-2
2376 machine
=news opsys
=bsd4-3
2378 m68
*-sony-newsos3* | m68
*-sony-news3*)
2379 machine
=news opsys
=bsd4-3
2381 mips-sony-bsd
* | mips-sony-newsos4
* | mips-sony-news4
*)
2382 machine
=news-risc opsys
=bsd4-3
2384 mips-sony-newsos6
* )
2385 machine
=news-r6 opsys
=newsos6
2388 machine
=news-risc opsys
=newsos5
2393 machine
=stride opsys
=usg5-2
2397 sparc-
*-linux-gnu* | sparc64-
*-linux-gnu* )
2398 machine
=sparc opsys
=gnu-linux
2401 *-auspex-sunos* |
*-sun-sunos* |
*-sun-bsd* |
*-sun-solaris* \
2402 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* | powerpc
*-*-solaris2* \
2403 | rs6000-
*-solaris2*)
2404 case "${canonical}" in
2405 m68
*-sunos1* ) machine
=sun1
;;
2406 m68
*-sunos2* ) machine
=sun2
;;
2407 m68
* ) machine
=sun3
;;
2408 i
[3456]86-sun-sunos[34]* ) machine
=sun386
;;
2409 i
[3456]86-*-* ) machine
=intel386
;;
2410 powerpcle
* ) machine
=powerpcle
;;
2411 powerpc
* | rs6000
* ) machine
=ibmrs6000
;;
2412 sparc
* ) machine
=sparc
;;
2415 case "${canonical}" in
2416 ## The Sun386 didn't get past 4.0.
2417 i
[3456]86-*-sunos4 ) opsys
=sunos4-0
;;
2418 *-sunos4.0
* ) opsys
=sunos4-0
;;
2419 *-sunos4.1.
[3-9]*noshare
)
2420 ## This name is sunos413 instead of sunos4-1-3
2421 ## to avoid a file name conflict on MSDOS.
2423 NON_GNU_CPP
=/usr
/lib
/cpp
2424 NON_GCC_TEST_OPTIONS
=-Bstatic
2425 GCC_TEST_OPTIONS
=-static
2427 *-sunos4.1.
[3-9]* |
*-sunos4shr*)
2429 NON_GNU_CPP
=/usr
/lib
/cpp
2431 *-sunos4* |
*-sunos )
2433 NON_GCC_TEST_OPTIONS
=-Bstatic
2434 GCC_TEST_OPTIONS
=-static
2436 *-sunos5.3
* |
*-solaris2.3
* )
2438 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2440 *-sunos5.4
* |
*-solaris2.4
* )
2442 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2445 *-sunos5.5
* |
*-solaris2.5
* )
2447 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2450 *-sunos5.6
* |
*-solaris2.6
* )
2452 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2455 *-sunos5* |
*-solaris* )
2457 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2461 ## Watch out for a compiler that we know will not work.
2462 case "${canonical}" in
2463 *-solaris* |
*-sunos5* )
2464 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
2465 ## /usr/ucb/cc doesn't work;
2466 ## we should find some other compiler that does work.
2474 machine
=sparc opsys
=nextstep
2478 m68
*-tadpole-sysv* )
2479 machine
=tad68k opsys
=usg5-3
2483 tahoe-tahoe-bsd4.2
* )
2484 machine
=tahoe opsys
=bsd4-2
2486 tahoe-tahoe-bsd4.3
* )
2487 machine
=tahoe opsys
=bsd4-3
2490 ## Tandem Integrity S2
2492 machine
=tandem-s2 opsys
=usg5-3
2496 m88k-tektronix-sysv3
* )
2497 machine
=tekxd88 opsys
=usg5-3
2500 ## Tektronix 16000 box (6130?)
2501 ns16k-tektronix-bsd
* )
2502 machine
=ns16000 opsys
=bsd4-2
2505 ## src/m/tek4300.h hints that this is a m68k machine.
2506 m68
*-tektronix-bsd* )
2507 machine
=tek4300 opsys
=bsd4-3
2511 ## We seem to have lost the machine-description file titan.h!
2513 machine
=titan opsys
=usg5-3
2516 ## Ustation E30 (SS5E)
2517 m68
*-unisys-uniplus* )
2518 machine
=ustation opsystem
=unipl5-2
2524 case "${canonical}" in
2525 *-bsd4.1
* ) opsys
=bsd4-1
;;
2526 *-bsd4.2
* |
*-ultrix[0-3].
* |
*-ultrix4.0
* ) opsys
=bsd4-2
;;
2527 *-bsd4.3
* |
*-ultrix* ) opsys
=bsd4-3
;;
2528 *-sysv[01]* |
*-sysvr[01]* ) opsys
=usg5-0
;;
2529 *-sysv2* |
*-sysvr2* ) opsys
=usg5-2
;;
2530 *-vms* ) opsys
=vms
;;
2536 ns16k-whitechapel-
* )
2538 ## We don't know what sort of OS runs on these; we'll let the
2539 ## operating system guessing code below try.
2544 machine
=wicat opsys
=usg5-2
2549 machine
=ia64 opsys
=gnu-linux
2552 ## Intel 386 machines where we don't care about the manufacturer
2555 case "${canonical}" in
2556 *-cygwin ) opsys
=cygwin
;;
2557 *-lynxos* ) opsys
=lynxos
;;
2558 *-isc1.
* |
*-isc2.
[01]* ) opsys
=386-ix ;;
2559 *-isc2.2
* ) opsys
=isc2-2
;;
2560 *-isc4.0
* ) opsys
=isc4-0
;;
2561 *-isc4.
* ) opsys
=isc4-1
2562 GCC_TEST_OPTIONS
=-posix
2563 NON_GCC_TEST_OPTIONS
=-Xp
2565 *-isc* ) opsys
=isc3-0
;;
2566 *-esix5* ) opsys
=esix5r4
; NON_GNU_CPP
=/usr
/lib
/cpp
;;
2567 *-esix* ) opsys
=esix
;;
2568 *-xenix* ) opsys
=xenix
;;
2569 *-linux-gnu* ) opsys
=gnu-linux
;;
2570 *-sco3.2v4
* ) opsys
=sco4
; NON_GNU_CPP
=/lib
/cpp
;;
2571 *-sco3.2v5
* ) opsys
=sco5
2572 NON_GNU_CPP
=/lib
/cpp
2573 # Prevent -belf from being passed to $CPP.
2574 # /lib/cpp does not accept it.
2575 OVERRIDE_CPPFLAGS
=" "
2577 *-sysv4.2uw
* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2578 *-sysv5uw* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2579 *-sysv5OpenUNIX* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2580 *-386bsd* ) opsys
=386bsd
;;
2581 *-nextstep* ) opsys
=nextstep
;;
2582 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2586 ## m68k Linux-based GNU system
2588 machine
=m68k opsys
=gnu-linux
2591 ## Mips Linux-based GNU system
2592 mips-
*-linux-gnu* | mipsel-
*-linux-gnu* )
2593 machine
=mips opsys
=gnu-linux
2597 sparc-fujitsu-sysv4
* )
2598 machine
=sparc opsys
=uxpds
2599 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2604 f301-fujitsu-uxpv4.1
)
2605 machine
=f301 opsys
=uxpv
2608 ## Darwin / Mac OS X
2609 powerpc-apple-darwin
* )
2610 machine
=powermac opsys
=darwin
2611 # Define CPP as follows to make autoconf work correctly.
2612 CPP
="${CC-cc} -E -no-cpp-precomp"
2615 ## AMD x86-64 Linux-based GNU system
2616 x86_64-
*-linux-gnu* )
2617 machine
=amdx86-64 opsys
=gnu-linux
2625 ### If the code above didn't choose an operating system, just choose
2626 ### an operating system based on the configuration name. You really
2627 ### only want to use this when you have no idea what the right
2628 ### operating system is; if you know what operating systems a machine
2629 ### runs, it's cleaner to make it explicit in the case statement
2631 if test x
"${opsys}" = x
; then
2632 case "${canonical}" in
2633 *-gnu* ) opsys
=gnu
;;
2634 *-bsd4.
[01] ) opsys
=bsd4-1
;;
2635 *-bsd4.2
) opsys
=bsd4-2
;;
2636 *-bsd4.3
) opsys
=bsd4-3
;;
2637 *-sysv0 |
*-sysvr0 ) opsys
=usg5-0
;;
2638 *-sysv2 |
*-sysvr2 ) opsys
=usg5-2
;;
2639 *-sysv2.2 |
*-sysvr2.2
) opsys
=usg5-2-2
;;
2640 *-sysv3* |
*-sysvr3* ) opsys
=usg5-3
;;
2641 *-sysv4.2uw
* ) opsys
=unixware
;;
2642 *-sysv5uw* ) opsys
=unixware
;;
2643 *-sysv5OpenUNIX* ) opsys
=unixware
;;
2644 *-sysv4.1
* |
*-sysvr4.1
* )
2645 NON_GNU_CPP
=/usr
/lib
/cpp
2647 *-sysv4.
[2-9]* |
*-sysvr4.
[2-9]* )
2648 if [ x
$NON_GNU_CPP = x
]; then
2649 if [ -f /usr
/ccs
/lib
/cpp
]; then
2650 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2652 NON_GNU_CPP
=/lib
/cpp
2656 *-sysv4* |
*-sysvr4* ) opsys
=usg5-4
;;
2665 if test $unported = yes; then
2666 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
2667 Check \`etc/MACHINES' for recognized configuration names." >&5
2668 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2669 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2670 { (exit 1); exit 1; }; }
2673 machfile
="m/${machine}.h"
2674 opsysfile
="s/${opsys}.h"
2677 #### Choose a compiler.
2678 test -n "$CC" && cc_specified
=yes
2680 # Save the value of CFLAGS that the user specified.
2681 SPECIFIED_CFLAGS
="$CFLAGS"
2684 "yes" ) CC
="gcc" GCC
=yes ;;
2685 "no" ) : ${CC=cc} ;;
2689 ac_cpp
='$CPP $CPPFLAGS'
2690 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2691 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2692 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2693 if test -n "$ac_tool_prefix"; then
2694 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2695 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2696 echo "$as_me:$LINENO: checking for $ac_word" >&5
2697 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2698 if test "${ac_cv_prog_CC+set}" = set; then
2699 echo $ECHO_N "(cached) $ECHO_C" >&6
2701 if test -n "$CC"; then
2702 ac_cv_prog_CC
="$CC" # Let the user override the test.
2704 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2708 test -z "$as_dir" && as_dir
=.
2709 for ac_exec_ext
in '' $ac_executable_extensions; do
2710 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2711 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2712 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2721 if test -n "$CC"; then
2722 echo "$as_me:$LINENO: result: $CC" >&5
2723 echo "${ECHO_T}$CC" >&6
2725 echo "$as_me:$LINENO: result: no" >&5
2726 echo "${ECHO_T}no" >&6
2730 if test -z "$ac_cv_prog_CC"; then
2732 # Extract the first word of "gcc", so it can be a program name with args.
2733 set dummy gcc
; ac_word
=$2
2734 echo "$as_me:$LINENO: checking for $ac_word" >&5
2735 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2736 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2737 echo $ECHO_N "(cached) $ECHO_C" >&6
2739 if test -n "$ac_ct_CC"; then
2740 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2742 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2746 test -z "$as_dir" && as_dir
=.
2747 for ac_exec_ext
in '' $ac_executable_extensions; do
2748 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2749 ac_cv_prog_ac_ct_CC
="gcc"
2750 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2758 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2759 if test -n "$ac_ct_CC"; then
2760 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2761 echo "${ECHO_T}$ac_ct_CC" >&6
2763 echo "$as_me:$LINENO: result: no" >&5
2764 echo "${ECHO_T}no" >&6
2772 if test -z "$CC"; then
2773 if test -n "$ac_tool_prefix"; then
2774 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2775 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2776 echo "$as_me:$LINENO: checking for $ac_word" >&5
2777 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2778 if test "${ac_cv_prog_CC+set}" = set; then
2779 echo $ECHO_N "(cached) $ECHO_C" >&6
2781 if test -n "$CC"; then
2782 ac_cv_prog_CC
="$CC" # Let the user override the test.
2784 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2788 test -z "$as_dir" && as_dir
=.
2789 for ac_exec_ext
in '' $ac_executable_extensions; do
2790 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2791 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2792 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2801 if test -n "$CC"; then
2802 echo "$as_me:$LINENO: result: $CC" >&5
2803 echo "${ECHO_T}$CC" >&6
2805 echo "$as_me:$LINENO: result: no" >&5
2806 echo "${ECHO_T}no" >&6
2810 if test -z "$ac_cv_prog_CC"; then
2812 # Extract the first word of "cc", so it can be a program name with args.
2813 set dummy cc
; ac_word
=$2
2814 echo "$as_me:$LINENO: checking for $ac_word" >&5
2815 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2816 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2817 echo $ECHO_N "(cached) $ECHO_C" >&6
2819 if test -n "$ac_ct_CC"; then
2820 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2822 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2826 test -z "$as_dir" && as_dir
=.
2827 for ac_exec_ext
in '' $ac_executable_extensions; do
2828 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2829 ac_cv_prog_ac_ct_CC
="cc"
2830 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2838 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2839 if test -n "$ac_ct_CC"; then
2840 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2841 echo "${ECHO_T}$ac_ct_CC" >&6
2843 echo "$as_me:$LINENO: result: no" >&5
2844 echo "${ECHO_T}no" >&6
2853 if test -z "$CC"; then
2854 # Extract the first word of "cc", so it can be a program name with args.
2855 set dummy cc
; ac_word
=$2
2856 echo "$as_me:$LINENO: checking for $ac_word" >&5
2857 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2858 if test "${ac_cv_prog_CC+set}" = set; then
2859 echo $ECHO_N "(cached) $ECHO_C" >&6
2861 if test -n "$CC"; then
2862 ac_cv_prog_CC
="$CC" # Let the user override the test.
2865 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2869 test -z "$as_dir" && as_dir
=.
2870 for ac_exec_ext
in '' $ac_executable_extensions; do
2871 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2872 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2873 ac_prog_rejected
=yes
2877 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2883 if test $ac_prog_rejected = yes; then
2884 # We found a bogon in the path, so make sure we never use it.
2885 set dummy
$ac_cv_prog_CC
2887 if test $# != 0; then
2888 # We chose a different compiler from the bogus one.
2889 # However, it has the same basename, so the bogon will be chosen
2890 # first if we set CC to just the basename; use the full file name.
2892 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2898 if test -n "$CC"; then
2899 echo "$as_me:$LINENO: result: $CC" >&5
2900 echo "${ECHO_T}$CC" >&6
2902 echo "$as_me:$LINENO: result: no" >&5
2903 echo "${ECHO_T}no" >&6
2907 if test -z "$CC"; then
2908 if test -n "$ac_tool_prefix"; then
2911 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2912 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2913 echo "$as_me:$LINENO: checking for $ac_word" >&5
2914 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2915 if test "${ac_cv_prog_CC+set}" = set; then
2916 echo $ECHO_N "(cached) $ECHO_C" >&6
2918 if test -n "$CC"; then
2919 ac_cv_prog_CC
="$CC" # Let the user override the test.
2921 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2925 test -z "$as_dir" && as_dir
=.
2926 for ac_exec_ext
in '' $ac_executable_extensions; do
2927 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2928 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2929 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2938 if test -n "$CC"; then
2939 echo "$as_me:$LINENO: result: $CC" >&5
2940 echo "${ECHO_T}$CC" >&6
2942 echo "$as_me:$LINENO: result: no" >&5
2943 echo "${ECHO_T}no" >&6
2946 test -n "$CC" && break
2949 if test -z "$CC"; then
2953 # Extract the first word of "$ac_prog", so it can be a program name with args.
2954 set dummy
$ac_prog; ac_word
=$2
2955 echo "$as_me:$LINENO: checking for $ac_word" >&5
2956 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2957 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2958 echo $ECHO_N "(cached) $ECHO_C" >&6
2960 if test -n "$ac_ct_CC"; then
2961 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2963 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2967 test -z "$as_dir" && as_dir
=.
2968 for ac_exec_ext
in '' $ac_executable_extensions; do
2969 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2970 ac_cv_prog_ac_ct_CC
="$ac_prog"
2971 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2979 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2980 if test -n "$ac_ct_CC"; then
2981 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2982 echo "${ECHO_T}$ac_ct_CC" >&6
2984 echo "$as_me:$LINENO: result: no" >&5
2985 echo "${ECHO_T}no" >&6
2988 test -n "$ac_ct_CC" && break
2997 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2998 See \`config.log' for more details." >&5
2999 echo "$as_me: error: no acceptable C compiler found in \$PATH
3000 See \`config.log' for more details." >&2;}
3001 { (exit 1); exit 1; }; }
3003 # Provide some information about the compiler.
3004 echo "$as_me:$LINENO:" \
3005 "checking for C compiler version" >&5
3006 ac_compiler
=`set X $ac_compile; echo $2`
3007 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3008 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
3010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3011 (exit $ac_status); }
3012 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3013 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
3015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3016 (exit $ac_status); }
3017 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3018 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
3020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3021 (exit $ac_status); }
3023 cat >conftest.
$ac_ext <<_ACEOF
3026 cat confdefs.h
>>conftest.
$ac_ext
3027 cat >>conftest.
$ac_ext <<_ACEOF
3028 /* end confdefs.h. */
3038 ac_clean_files_save
=$ac_clean_files
3039 ac_clean_files
="$ac_clean_files a.out a.exe b.out"
3040 # Try to create an executable without -o first, disregard a.out.
3041 # It will help us diagnose broken compilers, and finding out an intuition
3043 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3044 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
3045 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3046 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
3047 (eval $ac_link_default) 2>&5
3049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3050 (exit $ac_status); }; then
3051 # Find the output, starting from the most likely. This scheme is
3052 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
3055 # Be careful to initialize this variable, since it used to be cached.
3056 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
3058 # b.out is created by i960 compilers.
3059 for ac_file
in a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
3061 test -f "$ac_file" ||
continue
3063 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
)
3066 # This is the source file.
3069 # We found the default executable, but exeext='' is most
3073 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3074 # FIXME: I believe we export ac_cv_exeext for Libtool,
3075 # but it would be cool to find out if it's true. Does anybody
3076 # maintain Libtool? --akim.
3084 echo "$as_me: failed program was:" >&5
3085 sed 's/^/| /' conftest.
$ac_ext >&5
3087 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3088 See \`config.log' for more details." >&5
3089 echo "$as_me: error: C compiler cannot create executables
3090 See \`config.log' for more details." >&2;}
3091 { (exit 77); exit 77; }; }
3094 ac_exeext
=$ac_cv_exeext
3095 echo "$as_me:$LINENO: result: $ac_file" >&5
3096 echo "${ECHO_T}$ac_file" >&6
3098 # Check the compiler produces executables we can run. If not, either
3099 # the compiler is broken, or we cross compile.
3100 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3101 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
3102 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3103 # If not cross compiling, check that we can run a simple program.
3104 if test "$cross_compiling" != yes; then
3105 if { ac_try
='./$ac_file'
3106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3110 (exit $ac_status); }; }; then
3113 if test "$cross_compiling" = maybe
; then
3116 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3117 If you meant to cross compile, use \`--host'.
3118 See \`config.log' for more details." >&5
3119 echo "$as_me: error: cannot run C compiled programs.
3120 If you meant to cross compile, use \`--host'.
3121 See \`config.log' for more details." >&2;}
3122 { (exit 1); exit 1; }; }
3126 echo "$as_me:$LINENO: result: yes" >&5
3127 echo "${ECHO_T}yes" >&6
3129 rm -f a.out a.exe conftest
$ac_cv_exeext b.out
3130 ac_clean_files
=$ac_clean_files_save
3131 # Check the compiler produces executables we can run. If not, either
3132 # the compiler is broken, or we cross compile.
3133 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3134 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3135 echo "$as_me:$LINENO: result: $cross_compiling" >&5
3136 echo "${ECHO_T}$cross_compiling" >&6
3138 echo "$as_me:$LINENO: checking for suffix of executables" >&5
3139 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3140 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3141 (eval $ac_link) 2>&5
3143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3144 (exit $ac_status); }; then
3145 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3146 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3147 # work properly (i.e., refer to `conftest.exe'), while it won't with
3149 for ac_file
in conftest.exe conftest conftest.
*; do
3150 test -f "$ac_file" ||
continue
3152 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
3153 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3160 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3161 See \`config.log' for more details." >&5
3162 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3163 See \`config.log' for more details." >&2;}
3164 { (exit 1); exit 1; }; }
3167 rm -f conftest
$ac_cv_exeext
3168 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3169 echo "${ECHO_T}$ac_cv_exeext" >&6
3171 rm -f conftest.
$ac_ext
3172 EXEEXT
=$ac_cv_exeext
3174 echo "$as_me:$LINENO: checking for suffix of object files" >&5
3175 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
3176 if test "${ac_cv_objext+set}" = set; then
3177 echo $ECHO_N "(cached) $ECHO_C" >&6
3179 cat >conftest.
$ac_ext <<_ACEOF
3182 cat confdefs.h
>>conftest.
$ac_ext
3183 cat >>conftest.
$ac_ext <<_ACEOF
3184 /* end confdefs.h. */
3194 rm -f conftest.o conftest.obj
3195 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3196 (eval $ac_compile) 2>&5
3198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3199 (exit $ac_status); }; then
3200 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3202 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg
) ;;
3203 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
3208 echo "$as_me: failed program was:" >&5
3209 sed 's/^/| /' conftest.
$ac_ext >&5
3211 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3212 See \`config.log' for more details." >&5
3213 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3214 See \`config.log' for more details." >&2;}
3215 { (exit 1); exit 1; }; }
3218 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
3220 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3221 echo "${ECHO_T}$ac_cv_objext" >&6
3222 OBJEXT
=$ac_cv_objext
3224 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3225 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3226 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3227 echo $ECHO_N "(cached) $ECHO_C" >&6
3229 cat >conftest.
$ac_ext <<_ACEOF
3232 cat confdefs.h
>>conftest.
$ac_ext
3233 cat >>conftest.
$ac_ext <<_ACEOF
3234 /* end confdefs.h. */
3247 rm -f conftest.
$ac_objext
3248 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3249 (eval $ac_compile) 2>conftest.er1
3251 grep -v '^ *+' conftest.er1
>conftest.err
3253 cat conftest.err
>&5
3254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3255 (exit $ac_status); } &&
3256 { ac_try
='test -z "$ac_c_werror_flag"
3257 || test ! -s conftest.err'
3258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3262 (exit $ac_status); }; } &&
3263 { ac_try
='test -s conftest.$ac_objext'
3264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3268 (exit $ac_status); }; }; then
3271 echo "$as_me: failed program was:" >&5
3272 sed 's/^/| /' conftest.
$ac_ext >&5
3276 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3277 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
3280 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3281 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3282 GCC
=`test $ac_compiler_gnu = yes && echo yes`
3283 ac_test_CFLAGS
=${CFLAGS+set}
3284 ac_save_CFLAGS
=$CFLAGS
3286 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3287 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3288 if test "${ac_cv_prog_cc_g+set}" = set; then
3289 echo $ECHO_N "(cached) $ECHO_C" >&6
3291 cat >conftest.
$ac_ext <<_ACEOF
3294 cat confdefs.h
>>conftest.
$ac_ext
3295 cat >>conftest.
$ac_ext <<_ACEOF
3296 /* end confdefs.h. */
3306 rm -f conftest.
$ac_objext
3307 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3308 (eval $ac_compile) 2>conftest.er1
3310 grep -v '^ *+' conftest.er1
>conftest.err
3312 cat conftest.err
>&5
3313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3314 (exit $ac_status); } &&
3315 { ac_try
='test -z "$ac_c_werror_flag"
3316 || test ! -s conftest.err'
3317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3321 (exit $ac_status); }; } &&
3322 { ac_try
='test -s conftest.$ac_objext'
3323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3327 (exit $ac_status); }; }; then
3330 echo "$as_me: failed program was:" >&5
3331 sed 's/^/| /' conftest.
$ac_ext >&5
3335 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3337 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3338 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3339 if test "$ac_test_CFLAGS" = set; then
3340 CFLAGS
=$ac_save_CFLAGS
3341 elif test $ac_cv_prog_cc_g = yes; then
3342 if test "$GCC" = yes; then
3348 if test "$GCC" = yes; then
3354 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3355 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3356 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3357 echo $ECHO_N "(cached) $ECHO_C" >&6
3359 ac_cv_prog_cc_stdc
=no
3361 cat >conftest.
$ac_ext <<_ACEOF
3364 cat confdefs.h
>>conftest.
$ac_ext
3365 cat >>conftest.
$ac_ext <<_ACEOF
3366 /* end confdefs.h. */
3369 #include <sys/types.h>
3370 #include <sys/stat.h>
3371 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3372 struct buf { int x; };
3373 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3374 static char *e (p, i)
3380 static char *f (char * (*g) (char **, int), char **p, ...)
3385 s = g (p, va_arg (v,int));
3390 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3391 function prototypes and stuff, but not '\xHH' hex character constants.
3392 These don't provoke an error unfortunately, instead are silently treated
3393 as 'x'. The following induces an error, until -std1 is added to get
3394 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3395 array size at least. It's necessary to write '\x00'==0 to get something
3396 that's true only with -std1. */
3397 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3399 int test (int i, double x);
3400 struct s1 {int (*f) (int a);};
3401 struct s2 {int (*f) (double a);};
3402 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3408 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3413 # Don't try gcc -ansi; that turns off useful extensions and
3414 # breaks some systems' header files.
3415 # AIX -qlanglvl=ansi
3416 # Ultrix and OSF/1 -std1
3417 # HP-UX 10.20 and later -Ae
3418 # HP-UX older versions -Aa -D_HPUX_SOURCE
3419 # SVR4 -Xc -D__EXTENSIONS__
3420 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3422 CC
="$ac_save_CC $ac_arg"
3423 rm -f conftest.
$ac_objext
3424 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3425 (eval $ac_compile) 2>conftest.er1
3427 grep -v '^ *+' conftest.er1
>conftest.err
3429 cat conftest.err
>&5
3430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3431 (exit $ac_status); } &&
3432 { ac_try
='test -z "$ac_c_werror_flag"
3433 || test ! -s conftest.err'
3434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3438 (exit $ac_status); }; } &&
3439 { ac_try
='test -s conftest.$ac_objext'
3440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3444 (exit $ac_status); }; }; then
3445 ac_cv_prog_cc_stdc
=$ac_arg
3448 echo "$as_me: failed program was:" >&5
3449 sed 's/^/| /' conftest.
$ac_ext >&5
3452 rm -f conftest.err conftest.
$ac_objext
3454 rm -f conftest.
$ac_ext conftest.
$ac_objext
3459 case "x$ac_cv_prog_cc_stdc" in
3461 echo "$as_me:$LINENO: result: none needed" >&5
3462 echo "${ECHO_T}none needed" >&6 ;;
3464 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3465 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3466 CC
="$CC $ac_cv_prog_cc_stdc" ;;
3469 # Some people use a C++ compiler to compile C. Since we use `exit',
3470 # in C++ we need to declare it. In case someone uses the same compiler
3471 # for both compiling C and C++ we need to have the C++ compiler decide
3472 # the declaration of exit, since it's the most demanding environment.
3473 cat >conftest.
$ac_ext <<_ACEOF
3478 rm -f conftest.
$ac_objext
3479 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3480 (eval $ac_compile) 2>conftest.er1
3482 grep -v '^ *+' conftest.er1
>conftest.err
3484 cat conftest.err
>&5
3485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3486 (exit $ac_status); } &&
3487 { ac_try
='test -z "$ac_c_werror_flag"
3488 || test ! -s conftest.err'
3489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3493 (exit $ac_status); }; } &&
3494 { ac_try
='test -s conftest.$ac_objext'
3495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3499 (exit $ac_status); }; }; then
3500 for ac_declaration
in \
3502 'extern "C" void std::exit (int) throw (); using std::exit;' \
3503 'extern "C" void std::exit (int); using std::exit;' \
3504 'extern "C" void exit (int) throw ();' \
3505 'extern "C" void exit (int);' \
3508 cat >conftest.
$ac_ext <<_ACEOF
3511 cat confdefs.h
>>conftest.
$ac_ext
3512 cat >>conftest.
$ac_ext <<_ACEOF
3513 /* end confdefs.h. */
3524 rm -f conftest.
$ac_objext
3525 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3526 (eval $ac_compile) 2>conftest.er1
3528 grep -v '^ *+' conftest.er1
>conftest.err
3530 cat conftest.err
>&5
3531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3532 (exit $ac_status); } &&
3533 { ac_try
='test -z "$ac_c_werror_flag"
3534 || test ! -s conftest.err'
3535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3539 (exit $ac_status); }; } &&
3540 { ac_try
='test -s conftest.$ac_objext'
3541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3545 (exit $ac_status); }; }; then
3548 echo "$as_me: failed program was:" >&5
3549 sed 's/^/| /' conftest.
$ac_ext >&5
3553 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3554 cat >conftest.
$ac_ext <<_ACEOF
3557 cat confdefs.h
>>conftest.
$ac_ext
3558 cat >>conftest.
$ac_ext <<_ACEOF
3559 /* end confdefs.h. */
3569 rm -f conftest.
$ac_objext
3570 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3571 (eval $ac_compile) 2>conftest.er1
3573 grep -v '^ *+' conftest.er1
>conftest.err
3575 cat conftest.err
>&5
3576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3577 (exit $ac_status); } &&
3578 { ac_try
='test -z "$ac_c_werror_flag"
3579 || test ! -s conftest.err'
3580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3584 (exit $ac_status); }; } &&
3585 { ac_try
='test -s conftest.$ac_objext'
3586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3590 (exit $ac_status); }; }; then
3593 echo "$as_me: failed program was:" >&5
3594 sed 's/^/| /' conftest.
$ac_ext >&5
3597 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3600 if test -n "$ac_declaration"; then
3601 echo '#ifdef __cplusplus' >>confdefs.h
3602 echo $ac_declaration >>confdefs.h
3603 echo '#endif' >>confdefs.h
3607 echo "$as_me: failed program was:" >&5
3608 sed 's/^/| /' conftest.
$ac_ext >&5
3611 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3613 ac_cpp
='$CPP $CPPFLAGS'
3614 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3615 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3616 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3619 # On Suns, sometimes $CPP names a directory.
3620 if test -n "$CPP" && test -d "$CPP"; then
3624 #### Some systems specify a CPP to use unless we are using GCC.
3625 #### Now that we know whether we are using GCC, we can decide whether
3626 #### to use that one.
3627 if test "x$NON_GNU_CPP" != x
&& test x
$GCC != xyes
&& test "x$CPP" = x
3632 #### Some systems specify a CC to use unless we are using GCC.
3633 #### Now that we know whether we are using GCC, we can decide whether
3634 #### to use that one.
3635 if test "x$NON_GNU_CC" != x
&& test x
$GCC != xyes
&&
3636 test x
$cc_specified != xyes
3641 if test x
$GCC = xyes
&& test "x$GCC_TEST_OPTIONS" != x
3643 CC
="$CC $GCC_TEST_OPTIONS"
3646 if test x
$GCC = x
&& test "x$NON_GCC_TEST_OPTIONS" != x
3648 CC
="$CC $NON_GCC_TEST_OPTIONS"
3651 #### Some other nice autoconf tests.
3653 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3654 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3656 if test "$LN_S" = "ln -s"; then
3657 echo "$as_me:$LINENO: result: yes" >&5
3658 echo "${ECHO_T}yes" >&6
3660 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3661 echo "${ECHO_T}no, using $LN_S" >&6
3665 ac_cpp
='$CPP $CPPFLAGS'
3666 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3667 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3668 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3669 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3670 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3671 # On Suns, sometimes $CPP names a directory.
3672 if test -n "$CPP" && test -d "$CPP"; then
3675 if test -z "$CPP"; then
3676 if test "${ac_cv_prog_CPP+set}" = set; then
3677 echo $ECHO_N "(cached) $ECHO_C" >&6
3679 # Double quotes because CPP needs to be expanded
3680 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3683 for ac_c_preproc_warn_flag
in '' yes
3685 # Use a header file that comes with gcc, so configuring glibc
3686 # with a fresh cross-compiler works.
3687 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3688 # <limits.h> exists even on freestanding compilers.
3689 # On the NeXT, cc -E runs the code through the compiler's parser,
3690 # not just through cpp. "Syntax error" is here to catch this case.
3691 cat >conftest.
$ac_ext <<_ACEOF
3694 cat confdefs.h
>>conftest.
$ac_ext
3695 cat >>conftest.
$ac_ext <<_ACEOF
3696 /* end confdefs.h. */
3698 # include <limits.h>
3700 # include <assert.h>
3704 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3705 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3707 grep -v '^ *+' conftest.er1
>conftest.err
3709 cat conftest.err
>&5
3710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3711 (exit $ac_status); } >/dev
/null
; then
3712 if test -s conftest.err
; then
3713 ac_cpp_err
=$ac_c_preproc_warn_flag
3714 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3721 if test -z "$ac_cpp_err"; then
3724 echo "$as_me: failed program was:" >&5
3725 sed 's/^/| /' conftest.
$ac_ext >&5
3727 # Broken: fails on valid input.
3730 rm -f conftest.err conftest.
$ac_ext
3732 # OK, works on sane cases. Now check whether non-existent headers
3733 # can be detected and how.
3734 cat >conftest.
$ac_ext <<_ACEOF
3737 cat confdefs.h
>>conftest.
$ac_ext
3738 cat >>conftest.
$ac_ext <<_ACEOF
3739 /* end confdefs.h. */
3740 #include <ac_nonexistent.h>
3742 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3743 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3745 grep -v '^ *+' conftest.er1
>conftest.err
3747 cat conftest.err
>&5
3748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3749 (exit $ac_status); } >/dev
/null
; then
3750 if test -s conftest.err
; then
3751 ac_cpp_err
=$ac_c_preproc_warn_flag
3752 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3759 if test -z "$ac_cpp_err"; then
3760 # Broken: success on invalid input.
3763 echo "$as_me: failed program was:" >&5
3764 sed 's/^/| /' conftest.
$ac_ext >&5
3766 # Passes both tests.
3770 rm -f conftest.err conftest.
$ac_ext
3773 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3774 rm -f conftest.err conftest.
$ac_ext
3775 if $ac_preproc_ok; then
3787 echo "$as_me:$LINENO: result: $CPP" >&5
3788 echo "${ECHO_T}$CPP" >&6
3790 for ac_c_preproc_warn_flag
in '' yes
3792 # Use a header file that comes with gcc, so configuring glibc
3793 # with a fresh cross-compiler works.
3794 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3795 # <limits.h> exists even on freestanding compilers.
3796 # On the NeXT, cc -E runs the code through the compiler's parser,
3797 # not just through cpp. "Syntax error" is here to catch this case.
3798 cat >conftest.
$ac_ext <<_ACEOF
3801 cat confdefs.h
>>conftest.
$ac_ext
3802 cat >>conftest.
$ac_ext <<_ACEOF
3803 /* end confdefs.h. */
3805 # include <limits.h>
3807 # include <assert.h>
3811 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3812 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3814 grep -v '^ *+' conftest.er1
>conftest.err
3816 cat conftest.err
>&5
3817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3818 (exit $ac_status); } >/dev
/null
; then
3819 if test -s conftest.err
; then
3820 ac_cpp_err
=$ac_c_preproc_warn_flag
3821 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3828 if test -z "$ac_cpp_err"; then
3831 echo "$as_me: failed program was:" >&5
3832 sed 's/^/| /' conftest.
$ac_ext >&5
3834 # Broken: fails on valid input.
3837 rm -f conftest.err conftest.
$ac_ext
3839 # OK, works on sane cases. Now check whether non-existent headers
3840 # can be detected and how.
3841 cat >conftest.
$ac_ext <<_ACEOF
3844 cat confdefs.h
>>conftest.
$ac_ext
3845 cat >>conftest.
$ac_ext <<_ACEOF
3846 /* end confdefs.h. */
3847 #include <ac_nonexistent.h>
3849 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3850 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3852 grep -v '^ *+' conftest.er1
>conftest.err
3854 cat conftest.err
>&5
3855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3856 (exit $ac_status); } >/dev
/null
; then
3857 if test -s conftest.err
; then
3858 ac_cpp_err
=$ac_c_preproc_warn_flag
3859 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3866 if test -z "$ac_cpp_err"; then
3867 # Broken: success on invalid input.
3870 echo "$as_me: failed program was:" >&5
3871 sed 's/^/| /' conftest.
$ac_ext >&5
3873 # Passes both tests.
3877 rm -f conftest.err conftest.
$ac_ext
3880 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3881 rm -f conftest.err conftest.
$ac_ext
3882 if $ac_preproc_ok; then
3885 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3886 See \`config.log' for more details." >&5
3887 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3888 See \`config.log' for more details." >&2;}
3889 { (exit 1); exit 1; }; }
3893 ac_cpp
='$CPP $CPPFLAGS'
3894 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3895 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3896 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3898 # Find a good install program. We prefer a C program (faster),
3899 # so one script is as good as another. But avoid the broken or
3900 # incompatible versions:
3901 # SysV /etc/install, /usr/sbin/install
3902 # SunOS /usr/etc/install
3903 # IRIX /sbin/install
3905 # AmigaOS /C/install, which installs bootblocks on floppy discs
3906 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3907 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3908 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3909 # OS/2's system install, which has a completely different semantic
3910 # ./install, which can be erroneously created by make from ./install.sh.
3911 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3912 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3913 if test -z "$INSTALL"; then
3914 if test "${ac_cv_path_install+set}" = set; then
3915 echo $ECHO_N "(cached) $ECHO_C" >&6
3917 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3921 test -z "$as_dir" && as_dir
=.
3922 # Account for people who put trailing slashes in PATH elements.
3924 .
/ | .
// |
/cC
/* | \
3925 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
3926 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
3929 # OSF1 and SCO ODT 3.0 have their own names for install.
3930 # Don't use installbsd from OSF since it installs stuff as root
3932 for ac_prog
in ginstall scoinst
install; do
3933 for ac_exec_ext
in '' $ac_executable_extensions; do
3934 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3935 if test $ac_prog = install &&
3936 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3937 # AIX install. It has an incompatible calling convention.
3939 elif test $ac_prog = install &&
3940 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3941 # program-specific install script used by HP pwplus--don't use.
3944 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
3956 if test "${ac_cv_path_install+set}" = set; then
3957 INSTALL
=$ac_cv_path_install
3959 # As a last resort, use the slow shell script. We don't cache a
3960 # path for INSTALL within a source directory, because that will
3961 # break other packages using the cache if that directory is
3962 # removed, or if the path is relative.
3963 INSTALL
=$ac_install_sh
3966 echo "$as_me:$LINENO: result: $INSTALL" >&5
3967 echo "${ECHO_T}$INSTALL" >&6
3969 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3970 # It thinks the first close brace ends the variable substitution.
3971 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
3973 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
3975 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
3977 if test "x$RANLIB" = x
; then
3978 if test -n "$ac_tool_prefix"; then
3979 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3980 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
3981 echo "$as_me:$LINENO: checking for $ac_word" >&5
3982 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3983 if test "${ac_cv_prog_RANLIB+set}" = set; then
3984 echo $ECHO_N "(cached) $ECHO_C" >&6
3986 if test -n "$RANLIB"; then
3987 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
3989 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3993 test -z "$as_dir" && as_dir
=.
3994 for ac_exec_ext
in '' $ac_executable_extensions; do
3995 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3996 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
3997 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4005 RANLIB
=$ac_cv_prog_RANLIB
4006 if test -n "$RANLIB"; then
4007 echo "$as_me:$LINENO: result: $RANLIB" >&5
4008 echo "${ECHO_T}$RANLIB" >&6
4010 echo "$as_me:$LINENO: result: no" >&5
4011 echo "${ECHO_T}no" >&6
4015 if test -z "$ac_cv_prog_RANLIB"; then
4016 ac_ct_RANLIB
=$RANLIB
4017 # Extract the first word of "ranlib", so it can be a program name with args.
4018 set dummy ranlib
; ac_word
=$2
4019 echo "$as_me:$LINENO: checking for $ac_word" >&5
4020 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4021 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4022 echo $ECHO_N "(cached) $ECHO_C" >&6
4024 if test -n "$ac_ct_RANLIB"; then
4025 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
4027 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4031 test -z "$as_dir" && as_dir
=.
4032 for ac_exec_ext
in '' $ac_executable_extensions; do
4033 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4034 ac_cv_prog_ac_ct_RANLIB
="ranlib"
4035 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4041 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
4044 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
4045 if test -n "$ac_ct_RANLIB"; then
4046 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4047 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4049 echo "$as_me:$LINENO: result: no" >&5
4050 echo "${ECHO_T}no" >&6
4053 RANLIB
=$ac_ct_RANLIB
4055 RANLIB
="$ac_cv_prog_RANLIB"
4059 # Extract the first word of "install-info", so it can be a program name with args.
4060 set dummy install-info
; ac_word
=$2
4061 echo "$as_me:$LINENO: checking for $ac_word" >&5
4062 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4063 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4064 echo $ECHO_N "(cached) $ECHO_C" >&6
4066 case $INSTALL_INFO in
4068 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
4071 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4075 test -z "$as_dir" && as_dir
=.
4076 for ac_exec_ext
in '' $ac_executable_extensions; do
4077 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4078 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
4079 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4088 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
4090 if test -n "$INSTALL_INFO"; then
4091 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4092 echo "${ECHO_T}$INSTALL_INFO" >&6
4094 echo "$as_me:$LINENO: result: no" >&5
4095 echo "${ECHO_T}no" >&6
4098 # Extract the first word of "install-info", so it can be a program name with args.
4099 set dummy install-info
; ac_word
=$2
4100 echo "$as_me:$LINENO: checking for $ac_word" >&5
4101 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4102 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4103 echo $ECHO_N "(cached) $ECHO_C" >&6
4105 case $INSTALL_INFO in
4107 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
4110 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4111 for as_dir
in /usr
/sbin
4114 test -z "$as_dir" && as_dir
=.
4115 for ac_exec_ext
in '' $ac_executable_extensions; do
4116 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4117 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
4118 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4127 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
4129 if test -n "$INSTALL_INFO"; then
4130 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4131 echo "${ECHO_T}$INSTALL_INFO" >&6
4133 echo "$as_me:$LINENO: result: no" >&5
4134 echo "${ECHO_T}no" >&6
4137 # Extract the first word of "install-info", so it can be a program name with args.
4138 set dummy install-info
; ac_word
=$2
4139 echo "$as_me:$LINENO: checking for $ac_word" >&5
4140 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4141 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4142 echo $ECHO_N "(cached) $ECHO_C" >&6
4144 case $INSTALL_INFO in
4146 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
4149 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4153 test -z "$as_dir" && as_dir
=.
4154 for ac_exec_ext
in '' $ac_executable_extensions; do
4155 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4156 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
4157 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4163 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO
=":"
4167 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
4169 if test -n "$INSTALL_INFO"; then
4170 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4171 echo "${ECHO_T}$INSTALL_INFO" >&6
4173 echo "$as_me:$LINENO: result: no" >&5
4174 echo "${ECHO_T}no" >&6
4179 if test x
$GCC = xyes
&& test "x$GCC_LINK_TEST_OPTIONS" != x
4181 ac_link
="$ac_link $GCC_LINK_TEST_OPTIONS"
4184 if test x
$GCC = x
&& test "x$NON_GCC_LINK_TEST_OPTIONS" != x
4186 ac_link
="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
4191 echo "$as_me:$LINENO: checking for egrep" >&5
4192 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4193 if test "${ac_cv_prog_egrep+set}" = set; then
4194 echo $ECHO_N "(cached) $ECHO_C" >&6
4196 if echo a |
(grep -E '(a|b)') >/dev
/null
2>&1
4197 then ac_cv_prog_egrep
='grep -E'
4198 else ac_cv_prog_egrep
='egrep'
4201 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4202 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4203 EGREP
=$ac_cv_prog_egrep
4207 echo "$as_me:$LINENO: checking for AIX" >&5
4208 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
4209 cat >conftest.
$ac_ext <<_ACEOF
4212 cat confdefs.h
>>conftest.
$ac_ext
4213 cat >>conftest.
$ac_ext <<_ACEOF
4214 /* end confdefs.h. */
4220 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4221 $EGREP "yes" >/dev
/null
2>&1; then
4222 echo "$as_me:$LINENO: result: yes" >&5
4223 echo "${ECHO_T}yes" >&6
4224 cat >>confdefs.h
<<\_ACEOF
4225 #define _ALL_SOURCE 1
4229 echo "$as_me:$LINENO: result: no" >&5
4230 echo "${ECHO_T}no" >&6
4236 #### Extract some information from the operating system and machine files.
4238 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
4239 - which libraries the lib-src programs will want, and
4240 - whether the GNU malloc routines are usable..." >&5
4241 echo "$as_me: checking the machine- and system-dependent files to find out
4242 - which libraries the lib-src programs will want, and
4243 - whether the GNU malloc routines are usable..." >&6;}
4245 ### First figure out CFLAGS (which we use for running the compiler here)
4246 ### and REAL_CFLAGS (which we use for real compilation).
4247 ### The two are the same except on a few systems, where they are made
4248 ### different to work around various lossages. For example,
4249 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
4250 ### as implying static linking.
4252 ### If the CFLAGS env var is specified, we use that value
4253 ### instead of the default.
4255 ### It's not important that this name contain the PID; you can't run
4256 ### two configures in the same directory and have anything work
4258 tempcname
="conftest.c"
4261 #include "'${srcdir}'/src/'${opsysfile}'"
4262 #include "'${srcdir}'/src/'${machfile}'"
4263 #ifndef LIBS_MACHINE
4264 #define LIBS_MACHINE
4269 #ifndef C_SWITCH_SYSTEM
4270 #define C_SWITCH_SYSTEM
4272 #ifndef C_SWITCH_MACHINE
4273 #define C_SWITCH_MACHINE
4275 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
4276 configure___ c_switch_system=C_SWITCH_SYSTEM
4277 configure___ c_switch_machine=C_SWITCH_MACHINE
4280 #define LIB_X11_LIB -lX11
4283 #ifndef LIBX11_MACHINE
4284 #define LIBX11_MACHINE
4287 #ifndef LIBX11_SYSTEM
4288 #define LIBX11_SYSTEM
4290 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
4293 configure___ unexec=UNEXEC
4295 configure___ unexec=unexec.o
4298 #ifdef SYSTEM_MALLOC
4299 configure___ system_malloc=yes
4301 configure___ system_malloc=no
4304 #ifdef USE_MMAP_FOR_BUFFERS
4305 configure___ use_mmap_for_buffers=yes
4307 configure___ use_mmap_for_buffers=no
4310 #ifndef C_DEBUG_SWITCH
4311 #define C_DEBUG_SWITCH -g
4314 #ifndef C_OPTIMIZE_SWITCH
4316 #define C_OPTIMIZE_SWITCH -O2
4318 #define C_OPTIMIZE_SWITCH -O
4322 #ifndef LD_SWITCH_MACHINE
4323 #define LD_SWITCH_MACHINE
4326 #ifndef LD_SWITCH_SYSTEM
4327 #define LD_SWITCH_SYSTEM
4330 #ifndef LD_SWITCH_X_SITE_AUX
4331 #define LD_SWITCH_X_SITE_AUX
4334 configure___ ld_switch_system=LD_SWITCH_SYSTEM
4335 configure___ ld_switch_machine=LD_SWITCH_MACHINE
4337 #ifdef THIS_IS_CONFIGURE
4339 /* Get the CFLAGS for tests in configure. */
4341 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
4343 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4346 #else /* not THIS_IS_CONFIGURE */
4348 /* Get the CFLAGS for real compilation. */
4350 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
4352 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4355 #endif /* not THIS_IS_CONFIGURE */
4358 # The value of CPP is a quoted variable reference, so we need to do this
4359 # to get its actual value...
4360 CPP
=`eval "echo $CPP"`
4361 eval `${CPP} -Isrc ${tempcname} \
4362 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4363 if test "x$SPECIFIED_CFLAGS" = x
; then
4364 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
4365 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4367 REAL_CFLAGS
="$CFLAGS"
4371 ac_link
="$ac_link $ld_switch_machine $ld_switch_system"
4373 ### Make sure subsequent tests use flags consistent with the build flags.
4375 if test x
"${OVERRIDE_CPPFLAGS}" != x
; then
4376 CPPFLAGS
="${OVERRIDE_CPPFLAGS}"
4378 CPPFLAGS
="$c_switch_system $c_switch_machine $CPPFLAGS"
4384 cat >>confdefs.h
<<\_ACEOF
4385 #define _GNU_SOURCE 1
4390 # Check whether --enable-largefile or --disable-largefile was given.
4391 if test "${enable_largefile+set}" = set; then
4392 enableval
="$enable_largefile"
4395 if test "$enable_largefile" != no
; then
4397 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4398 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
4399 if test "${ac_cv_sys_largefile_CC+set}" = set; then
4400 echo $ECHO_N "(cached) $ECHO_C" >&6
4402 ac_cv_sys_largefile_CC
=no
4403 if test "$GCC" != yes; then
4406 # IRIX 6.2 and later do not support large files by default,
4407 # so use the C compiler's -n32 option if that helps.
4408 cat >conftest.
$ac_ext <<_ACEOF
4411 cat confdefs.h
>>conftest.
$ac_ext
4412 cat >>conftest.
$ac_ext <<_ACEOF
4413 /* end confdefs.h. */
4414 #include <sys/types.h>
4415 /* Check that off_t can represent 2**63 - 1 correctly.
4416 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4417 since some C++ compilers masquerading as C compilers
4418 incorrectly reject 9223372036854775807. */
4419 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4420 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4421 && LARGE_OFF_T % 2147483647 == 1)
4431 rm -f conftest.
$ac_objext
4432 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4433 (eval $ac_compile) 2>conftest.er1
4435 grep -v '^ *+' conftest.er1
>conftest.err
4437 cat conftest.err
>&5
4438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4439 (exit $ac_status); } &&
4440 { ac_try
='test -z "$ac_c_werror_flag"
4441 || test ! -s conftest.err'
4442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4446 (exit $ac_status); }; } &&
4447 { ac_try
='test -s conftest.$ac_objext'
4448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4452 (exit $ac_status); }; }; then
4455 echo "$as_me: failed program was:" >&5
4456 sed 's/^/| /' conftest.
$ac_ext >&5
4459 rm -f conftest.err conftest.
$ac_objext
4461 rm -f conftest.
$ac_objext
4462 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4463 (eval $ac_compile) 2>conftest.er1
4465 grep -v '^ *+' conftest.er1
>conftest.err
4467 cat conftest.err
>&5
4468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4469 (exit $ac_status); } &&
4470 { ac_try
='test -z "$ac_c_werror_flag"
4471 || test ! -s conftest.err'
4472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4476 (exit $ac_status); }; } &&
4477 { ac_try
='test -s conftest.$ac_objext'
4478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4482 (exit $ac_status); }; }; then
4483 ac_cv_sys_largefile_CC
=' -n32'; break
4485 echo "$as_me: failed program was:" >&5
4486 sed 's/^/| /' conftest.
$ac_ext >&5
4489 rm -f conftest.err conftest.
$ac_objext
4493 rm -f conftest.
$ac_ext
4496 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4497 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
4498 if test "$ac_cv_sys_largefile_CC" != no
; then
4499 CC
=$CC$ac_cv_sys_largefile_CC
4502 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4503 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
4504 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4505 echo $ECHO_N "(cached) $ECHO_C" >&6
4508 ac_cv_sys_file_offset_bits
=no
4509 cat >conftest.
$ac_ext <<_ACEOF
4512 cat confdefs.h
>>conftest.
$ac_ext
4513 cat >>conftest.
$ac_ext <<_ACEOF
4514 /* end confdefs.h. */
4515 #include <sys/types.h>
4516 /* Check that off_t can represent 2**63 - 1 correctly.
4517 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4518 since some C++ compilers masquerading as C compilers
4519 incorrectly reject 9223372036854775807. */
4520 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4521 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4522 && LARGE_OFF_T % 2147483647 == 1)
4532 rm -f conftest.
$ac_objext
4533 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4534 (eval $ac_compile) 2>conftest.er1
4536 grep -v '^ *+' conftest.er1
>conftest.err
4538 cat conftest.err
>&5
4539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4540 (exit $ac_status); } &&
4541 { ac_try
='test -z "$ac_c_werror_flag"
4542 || test ! -s conftest.err'
4543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4547 (exit $ac_status); }; } &&
4548 { ac_try
='test -s conftest.$ac_objext'
4549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4553 (exit $ac_status); }; }; then
4556 echo "$as_me: failed program was:" >&5
4557 sed 's/^/| /' conftest.
$ac_ext >&5
4560 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4561 cat >conftest.
$ac_ext <<_ACEOF
4564 cat confdefs.h
>>conftest.
$ac_ext
4565 cat >>conftest.
$ac_ext <<_ACEOF
4566 /* end confdefs.h. */
4567 #define _FILE_OFFSET_BITS 64
4568 #include <sys/types.h>
4569 /* Check that off_t can represent 2**63 - 1 correctly.
4570 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4571 since some C++ compilers masquerading as C compilers
4572 incorrectly reject 9223372036854775807. */
4573 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4574 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4575 && LARGE_OFF_T % 2147483647 == 1)
4585 rm -f conftest.
$ac_objext
4586 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4587 (eval $ac_compile) 2>conftest.er1
4589 grep -v '^ *+' conftest.er1
>conftest.err
4591 cat conftest.err
>&5
4592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4593 (exit $ac_status); } &&
4594 { ac_try
='test -z "$ac_c_werror_flag"
4595 || test ! -s conftest.err'
4596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4600 (exit $ac_status); }; } &&
4601 { ac_try
='test -s conftest.$ac_objext'
4602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4606 (exit $ac_status); }; }; then
4607 ac_cv_sys_file_offset_bits
=64; break
4609 echo "$as_me: failed program was:" >&5
4610 sed 's/^/| /' conftest.
$ac_ext >&5
4613 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4617 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
4618 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
4619 if test "$ac_cv_sys_file_offset_bits" != no
; then
4621 cat >>confdefs.h
<<_ACEOF
4622 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4627 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
4628 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
4629 if test "${ac_cv_sys_large_files+set}" = set; then
4630 echo $ECHO_N "(cached) $ECHO_C" >&6
4633 ac_cv_sys_large_files
=no
4634 cat >conftest.
$ac_ext <<_ACEOF
4637 cat confdefs.h
>>conftest.
$ac_ext
4638 cat >>conftest.
$ac_ext <<_ACEOF
4639 /* end confdefs.h. */
4640 #include <sys/types.h>
4641 /* Check that off_t can represent 2**63 - 1 correctly.
4642 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4643 since some C++ compilers masquerading as C compilers
4644 incorrectly reject 9223372036854775807. */
4645 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4646 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4647 && LARGE_OFF_T % 2147483647 == 1)
4657 rm -f conftest.
$ac_objext
4658 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4659 (eval $ac_compile) 2>conftest.er1
4661 grep -v '^ *+' conftest.er1
>conftest.err
4663 cat conftest.err
>&5
4664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4665 (exit $ac_status); } &&
4666 { ac_try
='test -z "$ac_c_werror_flag"
4667 || test ! -s conftest.err'
4668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4672 (exit $ac_status); }; } &&
4673 { ac_try
='test -s conftest.$ac_objext'
4674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4678 (exit $ac_status); }; }; then
4681 echo "$as_me: failed program was:" >&5
4682 sed 's/^/| /' conftest.
$ac_ext >&5
4685 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4686 cat >conftest.
$ac_ext <<_ACEOF
4689 cat confdefs.h
>>conftest.
$ac_ext
4690 cat >>conftest.
$ac_ext <<_ACEOF
4691 /* end confdefs.h. */
4692 #define _LARGE_FILES 1
4693 #include <sys/types.h>
4694 /* Check that off_t can represent 2**63 - 1 correctly.
4695 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4696 since some C++ compilers masquerading as C compilers
4697 incorrectly reject 9223372036854775807. */
4698 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4699 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4700 && LARGE_OFF_T % 2147483647 == 1)
4710 rm -f conftest.
$ac_objext
4711 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4712 (eval $ac_compile) 2>conftest.er1
4714 grep -v '^ *+' conftest.er1
>conftest.err
4716 cat conftest.err
>&5
4717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4718 (exit $ac_status); } &&
4719 { ac_try
='test -z "$ac_c_werror_flag"
4720 || test ! -s conftest.err'
4721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4725 (exit $ac_status); }; } &&
4726 { ac_try
='test -s conftest.$ac_objext'
4727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4731 (exit $ac_status); }; }; then
4732 ac_cv_sys_large_files
=1; break
4734 echo "$as_me: failed program was:" >&5
4735 sed 's/^/| /' conftest.
$ac_ext >&5
4738 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4742 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
4743 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
4744 if test "$ac_cv_sys_large_files" != no
; then
4746 cat >>confdefs.h
<<_ACEOF
4747 #define _LARGE_FILES $ac_cv_sys_large_files
4755 if test "${with_sound}" != "no"; then
4756 # Sound support for GNU/Linux and the free BSDs.
4757 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4758 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4759 if test "${ac_cv_header_stdc+set}" = set; then
4760 echo $ECHO_N "(cached) $ECHO_C" >&6
4762 cat >conftest.
$ac_ext <<_ACEOF
4765 cat confdefs.h
>>conftest.
$ac_ext
4766 cat >>conftest.
$ac_ext <<_ACEOF
4767 /* end confdefs.h. */
4781 rm -f conftest.
$ac_objext
4782 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4783 (eval $ac_compile) 2>conftest.er1
4785 grep -v '^ *+' conftest.er1
>conftest.err
4787 cat conftest.err
>&5
4788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4789 (exit $ac_status); } &&
4790 { ac_try
='test -z "$ac_c_werror_flag"
4791 || test ! -s conftest.err'
4792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4796 (exit $ac_status); }; } &&
4797 { ac_try
='test -s conftest.$ac_objext'
4798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4802 (exit $ac_status); }; }; then
4803 ac_cv_header_stdc
=yes
4805 echo "$as_me: failed program was:" >&5
4806 sed 's/^/| /' conftest.
$ac_ext >&5
4808 ac_cv_header_stdc
=no
4810 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4812 if test $ac_cv_header_stdc = yes; then
4813 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4814 cat >conftest.
$ac_ext <<_ACEOF
4817 cat confdefs.h
>>conftest.
$ac_ext
4818 cat >>conftest.
$ac_ext <<_ACEOF
4819 /* end confdefs.h. */
4823 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4824 $EGREP "memchr" >/dev
/null
2>&1; then
4827 ac_cv_header_stdc
=no
4833 if test $ac_cv_header_stdc = yes; then
4834 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4835 cat >conftest.
$ac_ext <<_ACEOF
4838 cat confdefs.h
>>conftest.
$ac_ext
4839 cat >>conftest.
$ac_ext <<_ACEOF
4840 /* end confdefs.h. */
4844 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4845 $EGREP "free" >/dev
/null
2>&1; then
4848 ac_cv_header_stdc
=no
4854 if test $ac_cv_header_stdc = yes; then
4855 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4856 if test "$cross_compiling" = yes; then
4859 cat >conftest.
$ac_ext <<_ACEOF
4862 cat confdefs.h
>>conftest.
$ac_ext
4863 cat >>conftest.
$ac_ext <<_ACEOF
4864 /* end confdefs.h. */
4866 #if ((' ' & 0x0FF) == 0x020)
4867 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4868 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4870 # define ISLOWER(c) \
4871 (('a' <= (c) && (c) <= 'i') \
4872 || ('j' <= (c) && (c) <= 'r') \
4873 || ('s' <= (c) && (c) <= 'z'))
4874 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4877 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4882 for (i = 0; i < 256; i++)
4883 if (XOR (islower (i), ISLOWER (i))
4884 || toupper (i) != TOUPPER (i))
4889 rm -f conftest
$ac_exeext
4890 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4891 (eval $ac_link) 2>&5
4893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4894 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4899 (exit $ac_status); }; }; then
4902 echo "$as_me: program exited with status $ac_status" >&5
4903 echo "$as_me: failed program was:" >&5
4904 sed 's/^/| /' conftest.
$ac_ext >&5
4907 ac_cv_header_stdc
=no
4909 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4913 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4914 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4915 if test $ac_cv_header_stdc = yes; then
4917 cat >>confdefs.h
<<\_ACEOF
4918 #define STDC_HEADERS 1
4923 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4933 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4934 inttypes.h stdint.h unistd.h
4936 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4937 echo "$as_me:$LINENO: checking for $ac_header" >&5
4938 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4939 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4940 echo $ECHO_N "(cached) $ECHO_C" >&6
4942 cat >conftest.
$ac_ext <<_ACEOF
4945 cat confdefs.h
>>conftest.
$ac_ext
4946 cat >>conftest.
$ac_ext <<_ACEOF
4947 /* end confdefs.h. */
4948 $ac_includes_default
4950 #include <$ac_header>
4952 rm -f conftest.
$ac_objext
4953 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4954 (eval $ac_compile) 2>conftest.er1
4956 grep -v '^ *+' conftest.er1
>conftest.err
4958 cat conftest.err
>&5
4959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4960 (exit $ac_status); } &&
4961 { ac_try
='test -z "$ac_c_werror_flag"
4962 || test ! -s conftest.err'
4963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4967 (exit $ac_status); }; } &&
4968 { ac_try
='test -s conftest.$ac_objext'
4969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4973 (exit $ac_status); }; }; then
4974 eval "$as_ac_Header=yes"
4976 echo "$as_me: failed program was:" >&5
4977 sed 's/^/| /' conftest.
$ac_ext >&5
4979 eval "$as_ac_Header=no"
4981 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4983 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4984 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4985 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4986 cat >>confdefs.h
<<_ACEOF
4987 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4998 for ac_header
in machine
/soundcard.h sys
/soundcard.h soundcard.h
5000 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5001 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5002 echo "$as_me:$LINENO: checking for $ac_header" >&5
5003 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5004 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5005 echo $ECHO_N "(cached) $ECHO_C" >&6
5007 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5008 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5010 # Is the header compilable?
5011 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5012 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5013 cat >conftest.
$ac_ext <<_ACEOF
5016 cat confdefs.h
>>conftest.
$ac_ext
5017 cat >>conftest.
$ac_ext <<_ACEOF
5018 /* end confdefs.h. */
5019 $ac_includes_default
5020 #include <$ac_header>
5022 rm -f conftest.
$ac_objext
5023 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5024 (eval $ac_compile) 2>conftest.er1
5026 grep -v '^ *+' conftest.er1
>conftest.err
5028 cat conftest.err
>&5
5029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5030 (exit $ac_status); } &&
5031 { ac_try
='test -z "$ac_c_werror_flag"
5032 || test ! -s conftest.err'
5033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5037 (exit $ac_status); }; } &&
5038 { ac_try
='test -s conftest.$ac_objext'
5039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5043 (exit $ac_status); }; }; then
5044 ac_header_compiler
=yes
5046 echo "$as_me: failed program was:" >&5
5047 sed 's/^/| /' conftest.
$ac_ext >&5
5049 ac_header_compiler
=no
5051 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5052 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5053 echo "${ECHO_T}$ac_header_compiler" >&6
5055 # Is the header present?
5056 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5057 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5058 cat >conftest.
$ac_ext <<_ACEOF
5061 cat confdefs.h
>>conftest.
$ac_ext
5062 cat >>conftest.
$ac_ext <<_ACEOF
5063 /* end confdefs.h. */
5064 #include <$ac_header>
5066 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5067 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5069 grep -v '^ *+' conftest.er1
>conftest.err
5071 cat conftest.err
>&5
5072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5073 (exit $ac_status); } >/dev
/null
; then
5074 if test -s conftest.err
; then
5075 ac_cpp_err
=$ac_c_preproc_warn_flag
5076 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
5083 if test -z "$ac_cpp_err"; then
5084 ac_header_preproc
=yes
5086 echo "$as_me: failed program was:" >&5
5087 sed 's/^/| /' conftest.
$ac_ext >&5
5089 ac_header_preproc
=no
5091 rm -f conftest.err conftest.
$ac_ext
5092 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5093 echo "${ECHO_T}$ac_header_preproc" >&6
5095 # So? What about this header?
5096 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5098 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5099 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5100 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5101 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5102 ac_header_preproc
=yes
5105 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5106 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5107 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5108 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5109 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5110 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5111 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5112 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5113 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5114 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5115 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5116 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5119 ## ------------------------------------------ ##
5120 ## Report this to the AC_PACKAGE_NAME lists. ##
5121 ## ------------------------------------------ ##
5124 sed "s/^/$as_me: WARNING: /" >&2
5127 echo "$as_me:$LINENO: checking for $ac_header" >&5
5128 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5129 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5130 echo $ECHO_N "(cached) $ECHO_C" >&6
5132 eval "$as_ac_Header=\$ac_header_preproc"
5134 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5135 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5138 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5139 cat >>confdefs.h
<<_ACEOF
5140 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5147 # Emulation library used on NetBSD.
5148 echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
5149 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
5150 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
5151 echo $ECHO_N "(cached) $ECHO_C" >&6
5153 ac_check_lib_save_LIBS
=$LIBS
5154 LIBS
="-lossaudio $LIBS"
5155 cat >conftest.
$ac_ext <<_ACEOF
5158 cat confdefs.h
>>conftest.
$ac_ext
5159 cat >>conftest.
$ac_ext <<_ACEOF
5160 /* end confdefs.h. */
5162 /* Override any gcc2 internal prototype to avoid an error. */
5166 /* We use char because int might match the return type of a gcc2
5167 builtin and then its argument prototype would still apply. */
5177 rm -f conftest.
$ac_objext conftest
$ac_exeext
5178 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5179 (eval $ac_link) 2>conftest.er1
5181 grep -v '^ *+' conftest.er1
>conftest.err
5183 cat conftest.err
>&5
5184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5185 (exit $ac_status); } &&
5186 { ac_try
='test -z "$ac_c_werror_flag"
5187 || test ! -s conftest.err'
5188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5192 (exit $ac_status); }; } &&
5193 { ac_try
='test -s conftest$ac_exeext'
5194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5198 (exit $ac_status); }; }; then
5199 ac_cv_lib_ossaudio__oss_ioctl
=yes
5201 echo "$as_me: failed program was:" >&5
5202 sed 's/^/| /' conftest.
$ac_ext >&5
5204 ac_cv_lib_ossaudio__oss_ioctl
=no
5206 rm -f conftest.err conftest.
$ac_objext \
5207 conftest
$ac_exeext conftest.
$ac_ext
5208 LIBS
=$ac_check_lib_save_LIBS
5210 echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
5211 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
5212 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
5244 for ac_header
in sys
/select.h sys
/timeb.h sys
/time.h unistd.h utime.h \
5245 linux
/version.h sys
/systeminfo.h termios.h limits.h string.h stdlib.h \
5246 termcap.h stdio_ext.h fcntl.h
strings.h coff.h pty.h sys
/mman.h \
5247 sys
/param.h sys
/vlimit.h sys
/resource.h locale.h sys
/_mbstate_t.h
5249 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5250 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5251 echo "$as_me:$LINENO: checking for $ac_header" >&5
5252 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5253 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5254 echo $ECHO_N "(cached) $ECHO_C" >&6
5256 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5257 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5259 # Is the header compilable?
5260 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5261 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5262 cat >conftest.
$ac_ext <<_ACEOF
5265 cat confdefs.h
>>conftest.
$ac_ext
5266 cat >>conftest.
$ac_ext <<_ACEOF
5267 /* end confdefs.h. */
5268 $ac_includes_default
5269 #include <$ac_header>
5271 rm -f conftest.
$ac_objext
5272 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5273 (eval $ac_compile) 2>conftest.er1
5275 grep -v '^ *+' conftest.er1
>conftest.err
5277 cat conftest.err
>&5
5278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5279 (exit $ac_status); } &&
5280 { ac_try
='test -z "$ac_c_werror_flag"
5281 || test ! -s conftest.err'
5282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5286 (exit $ac_status); }; } &&
5287 { ac_try
='test -s conftest.$ac_objext'
5288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5292 (exit $ac_status); }; }; then
5293 ac_header_compiler
=yes
5295 echo "$as_me: failed program was:" >&5
5296 sed 's/^/| /' conftest.
$ac_ext >&5
5298 ac_header_compiler
=no
5300 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5301 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5302 echo "${ECHO_T}$ac_header_compiler" >&6
5304 # Is the header present?
5305 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5306 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5307 cat >conftest.
$ac_ext <<_ACEOF
5310 cat confdefs.h
>>conftest.
$ac_ext
5311 cat >>conftest.
$ac_ext <<_ACEOF
5312 /* end confdefs.h. */
5313 #include <$ac_header>
5315 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5316 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5318 grep -v '^ *+' conftest.er1
>conftest.err
5320 cat conftest.err
>&5
5321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5322 (exit $ac_status); } >/dev
/null
; then
5323 if test -s conftest.err
; then
5324 ac_cpp_err
=$ac_c_preproc_warn_flag
5325 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
5332 if test -z "$ac_cpp_err"; then
5333 ac_header_preproc
=yes
5335 echo "$as_me: failed program was:" >&5
5336 sed 's/^/| /' conftest.
$ac_ext >&5
5338 ac_header_preproc
=no
5340 rm -f conftest.err conftest.
$ac_ext
5341 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5342 echo "${ECHO_T}$ac_header_preproc" >&6
5344 # So? What about this header?
5345 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5347 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5348 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5349 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5350 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5351 ac_header_preproc
=yes
5354 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5355 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5356 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5357 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5358 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5359 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5360 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5361 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5362 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5363 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5364 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5365 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5368 ## ------------------------------------------ ##
5369 ## Report this to the AC_PACKAGE_NAME lists. ##
5370 ## ------------------------------------------ ##
5373 sed "s/^/$as_me: WARNING: /" >&2
5376 echo "$as_me:$LINENO: checking for $ac_header" >&5
5377 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5378 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5379 echo $ECHO_N "(cached) $ECHO_C" >&6
5381 eval "$as_ac_Header=\$ac_header_preproc"
5383 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5384 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5387 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5388 cat >>confdefs.h
<<_ACEOF
5389 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5397 for ac_header
in term.h
5399 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5400 echo "$as_me:$LINENO: checking for $ac_header" >&5
5401 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5402 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5403 echo $ECHO_N "(cached) $ECHO_C" >&6
5405 cat >conftest.
$ac_ext <<_ACEOF
5408 cat confdefs.h
>>conftest.
$ac_ext
5409 cat >>conftest.
$ac_ext <<_ACEOF
5410 /* end confdefs.h. */
5411 #include <$ac_header>
5413 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5414 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5416 grep -v '^ *+' conftest.er1
>conftest.err
5418 cat conftest.err
>&5
5419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5420 (exit $ac_status); } >/dev
/null
; then
5421 if test -s conftest.err
; then
5422 ac_cpp_err
=$ac_c_preproc_warn_flag
5423 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
5430 if test -z "$ac_cpp_err"; then
5431 eval "$as_ac_Header=yes"
5433 echo "$as_me: failed program was:" >&5
5434 sed 's/^/| /' conftest.
$ac_ext >&5
5436 eval "$as_ac_Header=no"
5438 rm -f conftest.err conftest.
$ac_ext
5440 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5441 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5442 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5443 cat >>confdefs.h
<<_ACEOF
5444 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5451 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5452 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5453 if test "${ac_cv_header_stdc+set}" = set; then
5454 echo $ECHO_N "(cached) $ECHO_C" >&6
5456 cat >conftest.
$ac_ext <<_ACEOF
5459 cat confdefs.h
>>conftest.
$ac_ext
5460 cat >>conftest.
$ac_ext <<_ACEOF
5461 /* end confdefs.h. */
5475 rm -f conftest.
$ac_objext
5476 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5477 (eval $ac_compile) 2>conftest.er1
5479 grep -v '^ *+' conftest.er1
>conftest.err
5481 cat conftest.err
>&5
5482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5483 (exit $ac_status); } &&
5484 { ac_try
='test -z "$ac_c_werror_flag"
5485 || test ! -s conftest.err'
5486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5490 (exit $ac_status); }; } &&
5491 { ac_try
='test -s conftest.$ac_objext'
5492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5496 (exit $ac_status); }; }; then
5497 ac_cv_header_stdc
=yes
5499 echo "$as_me: failed program was:" >&5
5500 sed 's/^/| /' conftest.
$ac_ext >&5
5502 ac_cv_header_stdc
=no
5504 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5506 if test $ac_cv_header_stdc = yes; then
5507 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5508 cat >conftest.
$ac_ext <<_ACEOF
5511 cat confdefs.h
>>conftest.
$ac_ext
5512 cat >>conftest.
$ac_ext <<_ACEOF
5513 /* end confdefs.h. */
5517 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5518 $EGREP "memchr" >/dev
/null
2>&1; then
5521 ac_cv_header_stdc
=no
5527 if test $ac_cv_header_stdc = yes; then
5528 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5529 cat >conftest.
$ac_ext <<_ACEOF
5532 cat confdefs.h
>>conftest.
$ac_ext
5533 cat >>conftest.
$ac_ext <<_ACEOF
5534 /* end confdefs.h. */
5538 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5539 $EGREP "free" >/dev
/null
2>&1; then
5542 ac_cv_header_stdc
=no
5548 if test $ac_cv_header_stdc = yes; then
5549 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5550 if test "$cross_compiling" = yes; then
5553 cat >conftest.
$ac_ext <<_ACEOF
5556 cat confdefs.h
>>conftest.
$ac_ext
5557 cat >>conftest.
$ac_ext <<_ACEOF
5558 /* end confdefs.h. */
5560 #if ((' ' & 0x0FF) == 0x020)
5561 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5562 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5564 # define ISLOWER(c) \
5565 (('a' <= (c) && (c) <= 'i') \
5566 || ('j' <= (c) && (c) <= 'r') \
5567 || ('s' <= (c) && (c) <= 'z'))
5568 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5571 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5576 for (i = 0; i < 256; i++)
5577 if (XOR (islower (i), ISLOWER (i))
5578 || toupper (i) != TOUPPER (i))
5583 rm -f conftest
$ac_exeext
5584 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5585 (eval $ac_link) 2>&5
5587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5588 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5593 (exit $ac_status); }; }; then
5596 echo "$as_me: program exited with status $ac_status" >&5
5597 echo "$as_me: failed program was:" >&5
5598 sed 's/^/| /' conftest.
$ac_ext >&5
5601 ac_cv_header_stdc
=no
5603 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5607 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5608 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5609 if test $ac_cv_header_stdc = yes; then
5611 cat >>confdefs.h
<<\_ACEOF
5612 #define STDC_HEADERS 1
5617 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
5618 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
5619 if test "${ac_cv_header_time+set}" = set; then
5620 echo $ECHO_N "(cached) $ECHO_C" >&6
5622 cat >conftest.
$ac_ext <<_ACEOF
5625 cat confdefs.h
>>conftest.
$ac_ext
5626 cat >>conftest.
$ac_ext <<_ACEOF
5627 /* end confdefs.h. */
5628 #include <sys/types.h>
5629 #include <sys/time.h>
5635 if ((struct tm *) 0)
5641 rm -f conftest.
$ac_objext
5642 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5643 (eval $ac_compile) 2>conftest.er1
5645 grep -v '^ *+' conftest.er1
>conftest.err
5647 cat conftest.err
>&5
5648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5649 (exit $ac_status); } &&
5650 { ac_try
='test -z "$ac_c_werror_flag"
5651 || test ! -s conftest.err'
5652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5656 (exit $ac_status); }; } &&
5657 { ac_try
='test -s conftest.$ac_objext'
5658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5662 (exit $ac_status); }; }; then
5663 ac_cv_header_time
=yes
5665 echo "$as_me: failed program was:" >&5
5666 sed 's/^/| /' conftest.
$ac_ext >&5
5668 ac_cv_header_time
=no
5670 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5672 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
5673 echo "${ECHO_T}$ac_cv_header_time" >&6
5674 if test $ac_cv_header_time = yes; then
5676 cat >>confdefs.h
<<\_ACEOF
5677 #define TIME_WITH_SYS_TIME 1
5682 echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
5683 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6
5684 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
5685 echo $ECHO_N "(cached) $ECHO_C" >&6
5687 cat >conftest.
$ac_ext <<_ACEOF
5690 cat confdefs.h
>>conftest.
$ac_ext
5691 cat >>conftest.
$ac_ext <<_ACEOF
5692 /* end confdefs.h. */
5693 $ac_includes_default
5698 char *p = (char *) sys_siglist;
5705 rm -f conftest.
$ac_objext
5706 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5707 (eval $ac_compile) 2>conftest.er1
5709 grep -v '^ *+' conftest.er1
>conftest.err
5711 cat conftest.err
>&5
5712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5713 (exit $ac_status); } &&
5714 { ac_try
='test -z "$ac_c_werror_flag"
5715 || test ! -s conftest.err'
5716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5720 (exit $ac_status); }; } &&
5721 { ac_try
='test -s conftest.$ac_objext'
5722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5726 (exit $ac_status); }; }; then
5727 ac_cv_have_decl_sys_siglist
=yes
5729 echo "$as_me: failed program was:" >&5
5730 sed 's/^/| /' conftest.
$ac_ext >&5
5732 ac_cv_have_decl_sys_siglist
=no
5734 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5736 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
5737 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6
5738 if test $ac_cv_have_decl_sys_siglist = yes; then
5740 cat >>confdefs.h
<<_ACEOF
5741 #define HAVE_DECL_SYS_SIGLIST 1
5746 cat >>confdefs.h
<<_ACEOF
5747 #define HAVE_DECL_SYS_SIGLIST 0
5754 if test $ac_cv_have_decl_sys_siglist != yes; then
5755 # For Tru64, at least:
5756 echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
5757 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6
5758 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
5759 echo $ECHO_N "(cached) $ECHO_C" >&6
5761 cat >conftest.
$ac_ext <<_ACEOF
5764 cat confdefs.h
>>conftest.
$ac_ext
5765 cat >>conftest.
$ac_ext <<_ACEOF
5766 /* end confdefs.h. */
5767 $ac_includes_default
5771 #ifndef __sys_siglist
5772 char *p = (char *) __sys_siglist;
5779 rm -f conftest.
$ac_objext
5780 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5781 (eval $ac_compile) 2>conftest.er1
5783 grep -v '^ *+' conftest.er1
>conftest.err
5785 cat conftest.err
>&5
5786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5787 (exit $ac_status); } &&
5788 { ac_try
='test -z "$ac_c_werror_flag"
5789 || test ! -s conftest.err'
5790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5794 (exit $ac_status); }; } &&
5795 { ac_try
='test -s conftest.$ac_objext'
5796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5800 (exit $ac_status); }; }; then
5801 ac_cv_have_decl___sys_siglist
=yes
5803 echo "$as_me: failed program was:" >&5
5804 sed 's/^/| /' conftest.
$ac_ext >&5
5806 ac_cv_have_decl___sys_siglist
=no
5808 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5810 echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
5811 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6
5812 if test $ac_cv_have_decl___sys_siglist = yes; then
5814 cat >>confdefs.h
<<_ACEOF
5815 #define HAVE_DECL___SYS_SIGLIST 1
5820 cat >>confdefs.h
<<_ACEOF
5821 #define HAVE_DECL___SYS_SIGLIST 0
5828 if test $ac_cv_have_decl___sys_siglist = yes; then
5830 cat >>confdefs.h
<<\_ACEOF
5831 #define sys_siglist __sys_siglist
5836 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
5837 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
5838 if test "${ac_cv_header_sys_wait_h+set}" = set; then
5839 echo $ECHO_N "(cached) $ECHO_C" >&6
5841 cat >conftest.
$ac_ext <<_ACEOF
5844 cat confdefs.h
>>conftest.
$ac_ext
5845 cat >>conftest.
$ac_ext <<_ACEOF
5846 /* end confdefs.h. */
5847 #include <sys/types.h>
5848 #include <sys/wait.h>
5850 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
5853 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5861 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5866 rm -f conftest.
$ac_objext
5867 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5868 (eval $ac_compile) 2>conftest.er1
5870 grep -v '^ *+' conftest.er1
>conftest.err
5872 cat conftest.err
>&5
5873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5874 (exit $ac_status); } &&
5875 { ac_try
='test -z "$ac_c_werror_flag"
5876 || test ! -s conftest.err'
5877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5881 (exit $ac_status); }; } &&
5882 { ac_try
='test -s conftest.$ac_objext'
5883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5887 (exit $ac_status); }; }; then
5888 ac_cv_header_sys_wait_h
=yes
5890 echo "$as_me: failed program was:" >&5
5891 sed 's/^/| /' conftest.
$ac_ext >&5
5893 ac_cv_header_sys_wait_h
=no
5895 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5897 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
5898 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
5899 if test $ac_cv_header_sys_wait_h = yes; then
5901 cat >>confdefs.h
<<\_ACEOF
5902 #define HAVE_SYS_WAIT_H 1
5908 echo "$as_me:$LINENO: checking for struct utimbuf" >&5
5909 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6
5910 if test "${emacs_cv_struct_utimbuf+set}" = set; then
5911 echo $ECHO_N "(cached) $ECHO_C" >&6
5913 cat >conftest.
$ac_ext <<_ACEOF
5916 cat confdefs.h
>>conftest.
$ac_ext
5917 cat >>conftest.
$ac_ext <<_ACEOF
5918 /* end confdefs.h. */
5919 #ifdef TIME_WITH_SYS_TIME
5920 #include <sys/time.h>
5923 #ifdef HAVE_SYS_TIME_H
5924 #include <sys/time.h>
5935 static struct utimbuf x; x.actime = x.modtime;
5940 rm -f conftest.
$ac_objext
5941 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5942 (eval $ac_compile) 2>conftest.er1
5944 grep -v '^ *+' conftest.er1
>conftest.err
5946 cat conftest.err
>&5
5947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5948 (exit $ac_status); } &&
5949 { ac_try
='test -z "$ac_c_werror_flag"
5950 || test ! -s conftest.err'
5951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5955 (exit $ac_status); }; } &&
5956 { ac_try
='test -s conftest.$ac_objext'
5957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5961 (exit $ac_status); }; }; then
5962 emacs_cv_struct_utimbuf
=yes
5964 echo "$as_me: failed program was:" >&5
5965 sed 's/^/| /' conftest.
$ac_ext >&5
5967 emacs_cv_struct_utimbuf
=no
5969 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5971 echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
5972 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6
5973 if test $emacs_cv_struct_utimbuf = yes; then
5975 cat >>confdefs.h
<<\_ACEOF
5976 #define HAVE_STRUCT_UTIMBUF 1
5981 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
5982 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
5983 if test "${ac_cv_type_signal+set}" = set; then
5984 echo $ECHO_N "(cached) $ECHO_C" >&6
5986 cat >conftest.
$ac_ext <<_ACEOF
5989 cat confdefs.h
>>conftest.
$ac_ext
5990 cat >>conftest.
$ac_ext <<_ACEOF
5991 /* end confdefs.h. */
5992 #include <sys/types.h>
5998 extern "C" void (*signal (int, void (*)(int)))(int);
6000 void (*signal ()) ();
6011 rm -f conftest.
$ac_objext
6012 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6013 (eval $ac_compile) 2>conftest.er1
6015 grep -v '^ *+' conftest.er1
>conftest.err
6017 cat conftest.err
>&5
6018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6019 (exit $ac_status); } &&
6020 { ac_try
='test -z "$ac_c_werror_flag"
6021 || test ! -s conftest.err'
6022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6026 (exit $ac_status); }; } &&
6027 { ac_try
='test -s conftest.$ac_objext'
6028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6032 (exit $ac_status); }; }; then
6033 ac_cv_type_signal
=void
6035 echo "$as_me: failed program was:" >&5
6036 sed 's/^/| /' conftest.
$ac_ext >&5
6038 ac_cv_type_signal
=int
6040 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6042 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6043 echo "${ECHO_T}$ac_cv_type_signal" >&6
6045 cat >>confdefs.h
<<_ACEOF
6046 #define RETSIGTYPE $ac_cv_type_signal
6051 echo "$as_me:$LINENO: checking for speed_t" >&5
6052 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6
6053 if test "${emacs_cv_speed_t+set}" = set; then
6054 echo $ECHO_N "(cached) $ECHO_C" >&6
6056 cat >conftest.
$ac_ext <<_ACEOF
6059 cat confdefs.h
>>conftest.
$ac_ext
6060 cat >>conftest.
$ac_ext <<_ACEOF
6061 /* end confdefs.h. */
6062 #include <termios.h>
6071 rm -f conftest.
$ac_objext
6072 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6073 (eval $ac_compile) 2>conftest.er1
6075 grep -v '^ *+' conftest.er1
>conftest.err
6077 cat conftest.err
>&5
6078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6079 (exit $ac_status); } &&
6080 { ac_try
='test -z "$ac_c_werror_flag"
6081 || test ! -s conftest.err'
6082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6086 (exit $ac_status); }; } &&
6087 { ac_try
='test -s conftest.$ac_objext'
6088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6092 (exit $ac_status); }; }; then
6093 emacs_cv_speed_t
=yes
6095 echo "$as_me: failed program was:" >&5
6096 sed 's/^/| /' conftest.
$ac_ext >&5
6100 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6102 echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
6103 echo "${ECHO_T}$emacs_cv_speed_t" >&6
6104 if test $emacs_cv_speed_t = yes; then
6106 cat >>confdefs.h
<<\_ACEOF
6107 #define HAVE_SPEED_T 1
6112 echo "$as_me:$LINENO: checking for struct timeval" >&5
6113 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6
6114 if test "${emacs_cv_struct_timeval+set}" = set; then
6115 echo $ECHO_N "(cached) $ECHO_C" >&6
6117 cat >conftest.
$ac_ext <<_ACEOF
6120 cat confdefs.h
>>conftest.
$ac_ext
6121 cat >>conftest.
$ac_ext <<_ACEOF
6122 /* end confdefs.h. */
6123 #ifdef TIME_WITH_SYS_TIME
6124 #include <sys/time.h>
6127 #ifdef HAVE_SYS_TIME_H
6128 #include <sys/time.h>
6136 static struct timeval x; x.tv_sec = x.tv_usec;
6141 rm -f conftest.
$ac_objext
6142 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6143 (eval $ac_compile) 2>conftest.er1
6145 grep -v '^ *+' conftest.er1
>conftest.err
6147 cat conftest.err
>&5
6148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6149 (exit $ac_status); } &&
6150 { ac_try
='test -z "$ac_c_werror_flag"
6151 || test ! -s conftest.err'
6152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6156 (exit $ac_status); }; } &&
6157 { ac_try
='test -s conftest.$ac_objext'
6158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6162 (exit $ac_status); }; }; then
6163 emacs_cv_struct_timeval
=yes
6165 echo "$as_me: failed program was:" >&5
6166 sed 's/^/| /' conftest.
$ac_ext >&5
6168 emacs_cv_struct_timeval
=no
6170 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6172 echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
6173 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6
6174 HAVE_TIMEVAL
=$emacs_cv_struct_timeval
6175 if test $emacs_cv_struct_timeval = yes; then
6177 cat >>confdefs.h
<<\_ACEOF
6178 #define HAVE_TIMEVAL 1
6183 echo "$as_me:$LINENO: checking for struct exception" >&5
6184 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6
6185 if test "${emacs_cv_struct_exception+set}" = set; then
6186 echo $ECHO_N "(cached) $ECHO_C" >&6
6188 cat >conftest.
$ac_ext <<_ACEOF
6191 cat confdefs.h
>>conftest.
$ac_ext
6192 cat >>conftest.
$ac_ext <<_ACEOF
6193 /* end confdefs.h. */
6198 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
6203 rm -f conftest.
$ac_objext
6204 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6205 (eval $ac_compile) 2>conftest.er1
6207 grep -v '^ *+' conftest.er1
>conftest.err
6209 cat conftest.err
>&5
6210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6211 (exit $ac_status); } &&
6212 { ac_try
='test -z "$ac_c_werror_flag"
6213 || test ! -s conftest.err'
6214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6218 (exit $ac_status); }; } &&
6219 { ac_try
='test -s conftest.$ac_objext'
6220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6224 (exit $ac_status); }; }; then
6225 emacs_cv_struct_exception
=yes
6227 echo "$as_me: failed program was:" >&5
6228 sed 's/^/| /' conftest.
$ac_ext >&5
6230 emacs_cv_struct_exception
=no
6232 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6234 echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
6235 echo "${ECHO_T}$emacs_cv_struct_exception" >&6
6236 HAVE_EXCEPTION
=$emacs_cv_struct_exception
6237 if test $emacs_cv_struct_exception != yes; then
6239 cat >>confdefs.h
<<\_ACEOF
6240 #define NO_MATHERR 1
6245 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
6246 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
6247 if test "${ac_cv_struct_tm+set}" = set; then
6248 echo $ECHO_N "(cached) $ECHO_C" >&6
6250 cat >conftest.
$ac_ext <<_ACEOF
6253 cat confdefs.h
>>conftest.
$ac_ext
6254 cat >>conftest.
$ac_ext <<_ACEOF
6255 /* end confdefs.h. */
6256 #include <sys/types.h>
6262 struct tm *tp; tp->tm_sec;
6267 rm -f conftest.
$ac_objext
6268 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6269 (eval $ac_compile) 2>conftest.er1
6271 grep -v '^ *+' conftest.er1
>conftest.err
6273 cat conftest.err
>&5
6274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6275 (exit $ac_status); } &&
6276 { ac_try
='test -z "$ac_c_werror_flag"
6277 || test ! -s conftest.err'
6278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6282 (exit $ac_status); }; } &&
6283 { ac_try
='test -s conftest.$ac_objext'
6284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6288 (exit $ac_status); }; }; then
6289 ac_cv_struct_tm
=time.h
6291 echo "$as_me: failed program was:" >&5
6292 sed 's/^/| /' conftest.
$ac_ext >&5
6294 ac_cv_struct_tm
=sys
/time.h
6296 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6298 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
6299 echo "${ECHO_T}$ac_cv_struct_tm" >&6
6300 if test $ac_cv_struct_tm = sys
/time.h
; then
6302 cat >>confdefs.h
<<\_ACEOF
6303 #define TM_IN_SYS_TIME 1
6308 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
6309 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
6310 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
6311 echo $ECHO_N "(cached) $ECHO_C" >&6
6313 cat >conftest.
$ac_ext <<_ACEOF
6316 cat confdefs.h
>>conftest.
$ac_ext
6317 cat >>conftest.
$ac_ext <<_ACEOF
6318 /* end confdefs.h. */
6319 #include <sys/types.h>
6320 #include <$ac_cv_struct_tm>
6326 static struct tm ac_aggr;
6327 if (ac_aggr.tm_zone)
6333 rm -f conftest.
$ac_objext
6334 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6335 (eval $ac_compile) 2>conftest.er1
6337 grep -v '^ *+' conftest.er1
>conftest.err
6339 cat conftest.err
>&5
6340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6341 (exit $ac_status); } &&
6342 { ac_try
='test -z "$ac_c_werror_flag"
6343 || test ! -s conftest.err'
6344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6348 (exit $ac_status); }; } &&
6349 { ac_try
='test -s conftest.$ac_objext'
6350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6354 (exit $ac_status); }; }; then
6355 ac_cv_member_struct_tm_tm_zone
=yes
6357 echo "$as_me: failed program was:" >&5
6358 sed 's/^/| /' conftest.
$ac_ext >&5
6360 cat >conftest.
$ac_ext <<_ACEOF
6363 cat confdefs.h
>>conftest.
$ac_ext
6364 cat >>conftest.
$ac_ext <<_ACEOF
6365 /* end confdefs.h. */
6366 #include <sys/types.h>
6367 #include <$ac_cv_struct_tm>
6373 static struct tm ac_aggr;
6374 if (sizeof ac_aggr.tm_zone)
6380 rm -f conftest.
$ac_objext
6381 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6382 (eval $ac_compile) 2>conftest.er1
6384 grep -v '^ *+' conftest.er1
>conftest.err
6386 cat conftest.err
>&5
6387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6388 (exit $ac_status); } &&
6389 { ac_try
='test -z "$ac_c_werror_flag"
6390 || test ! -s conftest.err'
6391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6395 (exit $ac_status); }; } &&
6396 { ac_try
='test -s conftest.$ac_objext'
6397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6401 (exit $ac_status); }; }; then
6402 ac_cv_member_struct_tm_tm_zone
=yes
6404 echo "$as_me: failed program was:" >&5
6405 sed 's/^/| /' conftest.
$ac_ext >&5
6407 ac_cv_member_struct_tm_tm_zone
=no
6409 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6411 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6413 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
6414 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
6415 if test $ac_cv_member_struct_tm_tm_zone = yes; then
6417 cat >>confdefs.h
<<_ACEOF
6418 #define HAVE_STRUCT_TM_TM_ZONE 1
6424 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6426 cat >>confdefs.h
<<\_ACEOF
6427 #define HAVE_TM_ZONE 1
6431 echo "$as_me:$LINENO: checking for tzname" >&5
6432 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
6433 if test "${ac_cv_var_tzname+set}" = set; then
6434 echo $ECHO_N "(cached) $ECHO_C" >&6
6436 cat >conftest.
$ac_ext <<_ACEOF
6439 cat confdefs.h
>>conftest.
$ac_ext
6440 cat >>conftest.
$ac_ext <<_ACEOF
6441 /* end confdefs.h. */
6443 #ifndef tzname /* For SGI. */
6444 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
6455 rm -f conftest.
$ac_objext conftest
$ac_exeext
6456 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6457 (eval $ac_link) 2>conftest.er1
6459 grep -v '^ *+' conftest.er1
>conftest.err
6461 cat conftest.err
>&5
6462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6463 (exit $ac_status); } &&
6464 { ac_try
='test -z "$ac_c_werror_flag"
6465 || test ! -s conftest.err'
6466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6470 (exit $ac_status); }; } &&
6471 { ac_try
='test -s conftest$ac_exeext'
6472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6476 (exit $ac_status); }; }; then
6477 ac_cv_var_tzname
=yes
6479 echo "$as_me: failed program was:" >&5
6480 sed 's/^/| /' conftest.
$ac_ext >&5
6484 rm -f conftest.err conftest.
$ac_objext \
6485 conftest
$ac_exeext conftest.
$ac_ext
6487 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
6488 echo "${ECHO_T}$ac_cv_var_tzname" >&6
6489 if test $ac_cv_var_tzname = yes; then
6491 cat >>confdefs.h
<<\_ACEOF
6492 #define HAVE_TZNAME 1
6498 echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
6499 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6
6500 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
6501 echo $ECHO_N "(cached) $ECHO_C" >&6
6503 cat >conftest.
$ac_ext <<_ACEOF
6506 cat confdefs.h
>>conftest.
$ac_ext
6507 cat >>conftest.
$ac_ext <<_ACEOF
6508 /* end confdefs.h. */
6514 static struct tm ac_aggr;
6515 if (ac_aggr.tm_gmtoff)
6521 rm -f conftest.
$ac_objext
6522 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6523 (eval $ac_compile) 2>conftest.er1
6525 grep -v '^ *+' conftest.er1
>conftest.err
6527 cat conftest.err
>&5
6528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6529 (exit $ac_status); } &&
6530 { ac_try
='test -z "$ac_c_werror_flag"
6531 || test ! -s conftest.err'
6532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6536 (exit $ac_status); }; } &&
6537 { ac_try
='test -s conftest.$ac_objext'
6538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6542 (exit $ac_status); }; }; then
6543 ac_cv_member_struct_tm_tm_gmtoff
=yes
6545 echo "$as_me: failed program was:" >&5
6546 sed 's/^/| /' conftest.
$ac_ext >&5
6548 cat >conftest.
$ac_ext <<_ACEOF
6551 cat confdefs.h
>>conftest.
$ac_ext
6552 cat >>conftest.
$ac_ext <<_ACEOF
6553 /* end confdefs.h. */
6559 static struct tm ac_aggr;
6560 if (sizeof ac_aggr.tm_gmtoff)
6566 rm -f conftest.
$ac_objext
6567 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6568 (eval $ac_compile) 2>conftest.er1
6570 grep -v '^ *+' conftest.er1
>conftest.err
6572 cat conftest.err
>&5
6573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6574 (exit $ac_status); } &&
6575 { ac_try
='test -z "$ac_c_werror_flag"
6576 || test ! -s conftest.err'
6577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6581 (exit $ac_status); }; } &&
6582 { ac_try
='test -s conftest.$ac_objext'
6583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6587 (exit $ac_status); }; }; then
6588 ac_cv_member_struct_tm_tm_gmtoff
=yes
6590 echo "$as_me: failed program was:" >&5
6591 sed 's/^/| /' conftest.
$ac_ext >&5
6593 ac_cv_member_struct_tm_tm_gmtoff
=no
6595 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6597 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6599 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
6600 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6
6601 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
6603 cat >>confdefs.h
<<\_ACEOF
6604 #define HAVE_TM_GMTOFF 1
6609 echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
6610 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6
6611 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
6612 echo $ECHO_N "(cached) $ECHO_C" >&6
6614 cat >conftest.
$ac_ext <<_ACEOF
6617 cat confdefs.h
>>conftest.
$ac_ext
6618 cat >>conftest.
$ac_ext <<_ACEOF
6619 /* end confdefs.h. */
6625 static struct ifreq ac_aggr;
6626 if (ac_aggr.ifr_flags)
6632 rm -f conftest.
$ac_objext
6633 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6634 (eval $ac_compile) 2>conftest.er1
6636 grep -v '^ *+' conftest.er1
>conftest.err
6638 cat conftest.err
>&5
6639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6640 (exit $ac_status); } &&
6641 { ac_try
='test -z "$ac_c_werror_flag"
6642 || test ! -s conftest.err'
6643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6647 (exit $ac_status); }; } &&
6648 { ac_try
='test -s conftest.$ac_objext'
6649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6653 (exit $ac_status); }; }; then
6654 ac_cv_member_struct_ifreq_ifr_flags
=yes
6656 echo "$as_me: failed program was:" >&5
6657 sed 's/^/| /' conftest.
$ac_ext >&5
6659 cat >conftest.
$ac_ext <<_ACEOF
6662 cat confdefs.h
>>conftest.
$ac_ext
6663 cat >>conftest.
$ac_ext <<_ACEOF
6664 /* end confdefs.h. */
6670 static struct ifreq ac_aggr;
6671 if (sizeof ac_aggr.ifr_flags)
6677 rm -f conftest.
$ac_objext
6678 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6679 (eval $ac_compile) 2>conftest.er1
6681 grep -v '^ *+' conftest.er1
>conftest.err
6683 cat conftest.err
>&5
6684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6685 (exit $ac_status); } &&
6686 { ac_try
='test -z "$ac_c_werror_flag"
6687 || test ! -s conftest.err'
6688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6692 (exit $ac_status); }; } &&
6693 { ac_try
='test -s conftest.$ac_objext'
6694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6698 (exit $ac_status); }; }; then
6699 ac_cv_member_struct_ifreq_ifr_flags
=yes
6701 echo "$as_me: failed program was:" >&5
6702 sed 's/^/| /' conftest.
$ac_ext >&5
6704 ac_cv_member_struct_ifreq_ifr_flags
=no
6706 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6708 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6710 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
6711 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6
6712 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
6714 cat >>confdefs.h
<<_ACEOF
6715 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
6720 echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
6721 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6
6722 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
6723 echo $ECHO_N "(cached) $ECHO_C" >&6
6725 cat >conftest.
$ac_ext <<_ACEOF
6728 cat confdefs.h
>>conftest.
$ac_ext
6729 cat >>conftest.
$ac_ext <<_ACEOF
6730 /* end confdefs.h. */
6736 static struct ifreq ac_aggr;
6737 if (ac_aggr.ifr_hwaddr)
6743 rm -f conftest.
$ac_objext
6744 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6745 (eval $ac_compile) 2>conftest.er1
6747 grep -v '^ *+' conftest.er1
>conftest.err
6749 cat conftest.err
>&5
6750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6751 (exit $ac_status); } &&
6752 { ac_try
='test -z "$ac_c_werror_flag"
6753 || test ! -s conftest.err'
6754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6758 (exit $ac_status); }; } &&
6759 { ac_try
='test -s conftest.$ac_objext'
6760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6764 (exit $ac_status); }; }; then
6765 ac_cv_member_struct_ifreq_ifr_hwaddr
=yes
6767 echo "$as_me: failed program was:" >&5
6768 sed 's/^/| /' conftest.
$ac_ext >&5
6770 cat >conftest.
$ac_ext <<_ACEOF
6773 cat confdefs.h
>>conftest.
$ac_ext
6774 cat >>conftest.
$ac_ext <<_ACEOF
6775 /* end confdefs.h. */
6781 static struct ifreq ac_aggr;
6782 if (sizeof ac_aggr.ifr_hwaddr)
6788 rm -f conftest.
$ac_objext
6789 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6790 (eval $ac_compile) 2>conftest.er1
6792 grep -v '^ *+' conftest.er1
>conftest.err
6794 cat conftest.err
>&5
6795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6796 (exit $ac_status); } &&
6797 { ac_try
='test -z "$ac_c_werror_flag"
6798 || test ! -s conftest.err'
6799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6803 (exit $ac_status); }; } &&
6804 { ac_try
='test -s conftest.$ac_objext'
6805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6809 (exit $ac_status); }; }; then
6810 ac_cv_member_struct_ifreq_ifr_hwaddr
=yes
6812 echo "$as_me: failed program was:" >&5
6813 sed 's/^/| /' conftest.
$ac_ext >&5
6815 ac_cv_member_struct_ifreq_ifr_hwaddr
=no
6817 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6819 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6821 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
6822 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6
6823 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
6825 cat >>confdefs.h
<<_ACEOF
6826 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
6831 echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
6832 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6
6833 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
6834 echo $ECHO_N "(cached) $ECHO_C" >&6
6836 cat >conftest.
$ac_ext <<_ACEOF
6839 cat confdefs.h
>>conftest.
$ac_ext
6840 cat >>conftest.
$ac_ext <<_ACEOF
6841 /* end confdefs.h. */
6847 static struct ifreq ac_aggr;
6848 if (ac_aggr.ifr_netmask)
6854 rm -f conftest.
$ac_objext
6855 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6856 (eval $ac_compile) 2>conftest.er1
6858 grep -v '^ *+' conftest.er1
>conftest.err
6860 cat conftest.err
>&5
6861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6862 (exit $ac_status); } &&
6863 { ac_try
='test -z "$ac_c_werror_flag"
6864 || test ! -s conftest.err'
6865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6869 (exit $ac_status); }; } &&
6870 { ac_try
='test -s conftest.$ac_objext'
6871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6875 (exit $ac_status); }; }; then
6876 ac_cv_member_struct_ifreq_ifr_netmask
=yes
6878 echo "$as_me: failed program was:" >&5
6879 sed 's/^/| /' conftest.
$ac_ext >&5
6881 cat >conftest.
$ac_ext <<_ACEOF
6884 cat confdefs.h
>>conftest.
$ac_ext
6885 cat >>conftest.
$ac_ext <<_ACEOF
6886 /* end confdefs.h. */
6892 static struct ifreq ac_aggr;
6893 if (sizeof ac_aggr.ifr_netmask)
6899 rm -f conftest.
$ac_objext
6900 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6901 (eval $ac_compile) 2>conftest.er1
6903 grep -v '^ *+' conftest.er1
>conftest.err
6905 cat conftest.err
>&5
6906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6907 (exit $ac_status); } &&
6908 { ac_try
='test -z "$ac_c_werror_flag"
6909 || test ! -s conftest.err'
6910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6914 (exit $ac_status); }; } &&
6915 { ac_try
='test -s conftest.$ac_objext'
6916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6920 (exit $ac_status); }; }; then
6921 ac_cv_member_struct_ifreq_ifr_netmask
=yes
6923 echo "$as_me: failed program was:" >&5
6924 sed 's/^/| /' conftest.
$ac_ext >&5
6926 ac_cv_member_struct_ifreq_ifr_netmask
=no
6928 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6930 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6932 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
6933 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6
6934 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
6936 cat >>confdefs.h
<<_ACEOF
6937 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
6942 echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
6943 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6
6944 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
6945 echo $ECHO_N "(cached) $ECHO_C" >&6
6947 cat >conftest.
$ac_ext <<_ACEOF
6950 cat confdefs.h
>>conftest.
$ac_ext
6951 cat >>conftest.
$ac_ext <<_ACEOF
6952 /* end confdefs.h. */
6958 static struct ifreq ac_aggr;
6959 if (ac_aggr.ifr_broadaddr)
6965 rm -f conftest.
$ac_objext
6966 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6967 (eval $ac_compile) 2>conftest.er1
6969 grep -v '^ *+' conftest.er1
>conftest.err
6971 cat conftest.err
>&5
6972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6973 (exit $ac_status); } &&
6974 { ac_try
='test -z "$ac_c_werror_flag"
6975 || test ! -s conftest.err'
6976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6980 (exit $ac_status); }; } &&
6981 { ac_try
='test -s conftest.$ac_objext'
6982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6986 (exit $ac_status); }; }; then
6987 ac_cv_member_struct_ifreq_ifr_broadaddr
=yes
6989 echo "$as_me: failed program was:" >&5
6990 sed 's/^/| /' conftest.
$ac_ext >&5
6992 cat >conftest.
$ac_ext <<_ACEOF
6995 cat confdefs.h
>>conftest.
$ac_ext
6996 cat >>conftest.
$ac_ext <<_ACEOF
6997 /* end confdefs.h. */
7003 static struct ifreq ac_aggr;
7004 if (sizeof ac_aggr.ifr_broadaddr)
7010 rm -f conftest.
$ac_objext
7011 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7012 (eval $ac_compile) 2>conftest.er1
7014 grep -v '^ *+' conftest.er1
>conftest.err
7016 cat conftest.err
>&5
7017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7018 (exit $ac_status); } &&
7019 { ac_try
='test -z "$ac_c_werror_flag"
7020 || test ! -s conftest.err'
7021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7025 (exit $ac_status); }; } &&
7026 { ac_try
='test -s conftest.$ac_objext'
7027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7031 (exit $ac_status); }; }; then
7032 ac_cv_member_struct_ifreq_ifr_broadaddr
=yes
7034 echo "$as_me: failed program was:" >&5
7035 sed 's/^/| /' conftest.
$ac_ext >&5
7037 ac_cv_member_struct_ifreq_ifr_broadaddr
=no
7039 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7041 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7043 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
7044 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6
7045 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
7047 cat >>confdefs.h
<<_ACEOF
7048 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
7053 echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
7054 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6
7055 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
7056 echo $ECHO_N "(cached) $ECHO_C" >&6
7058 cat >conftest.
$ac_ext <<_ACEOF
7061 cat confdefs.h
>>conftest.
$ac_ext
7062 cat >>conftest.
$ac_ext <<_ACEOF
7063 /* end confdefs.h. */
7069 static struct ifreq ac_aggr;
7070 if (ac_aggr.ifr_addr)
7076 rm -f conftest.
$ac_objext
7077 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7078 (eval $ac_compile) 2>conftest.er1
7080 grep -v '^ *+' conftest.er1
>conftest.err
7082 cat conftest.err
>&5
7083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7084 (exit $ac_status); } &&
7085 { ac_try
='test -z "$ac_c_werror_flag"
7086 || test ! -s conftest.err'
7087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7091 (exit $ac_status); }; } &&
7092 { ac_try
='test -s conftest.$ac_objext'
7093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7097 (exit $ac_status); }; }; then
7098 ac_cv_member_struct_ifreq_ifr_addr
=yes
7100 echo "$as_me: failed program was:" >&5
7101 sed 's/^/| /' conftest.
$ac_ext >&5
7103 cat >conftest.
$ac_ext <<_ACEOF
7106 cat confdefs.h
>>conftest.
$ac_ext
7107 cat >>conftest.
$ac_ext <<_ACEOF
7108 /* end confdefs.h. */
7114 static struct ifreq ac_aggr;
7115 if (sizeof ac_aggr.ifr_addr)
7121 rm -f conftest.
$ac_objext
7122 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7123 (eval $ac_compile) 2>conftest.er1
7125 grep -v '^ *+' conftest.er1
>conftest.err
7127 cat conftest.err
>&5
7128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7129 (exit $ac_status); } &&
7130 { ac_try
='test -z "$ac_c_werror_flag"
7131 || test ! -s conftest.err'
7132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7136 (exit $ac_status); }; } &&
7137 { ac_try
='test -s conftest.$ac_objext'
7138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7142 (exit $ac_status); }; }; then
7143 ac_cv_member_struct_ifreq_ifr_addr
=yes
7145 echo "$as_me: failed program was:" >&5
7146 sed 's/^/| /' conftest.
$ac_ext >&5
7148 ac_cv_member_struct_ifreq_ifr_addr
=no
7150 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7152 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7154 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
7155 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6
7156 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
7158 cat >>confdefs.h
<<_ACEOF
7159 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
7167 echo "$as_me:$LINENO: checking for function prototypes" >&5
7168 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
7169 if test "$ac_cv_prog_cc_stdc" != no
; then
7170 echo "$as_me:$LINENO: result: yes" >&5
7171 echo "${ECHO_T}yes" >&6
7173 cat >>confdefs.h
<<\_ACEOF
7174 #define PROTOTYPES 1
7178 cat >>confdefs.h
<<\_ACEOF
7179 #define __PROTOTYPES 1
7183 echo "$as_me:$LINENO: result: no" >&5
7184 echo "${ECHO_T}no" >&6
7187 echo "$as_me:$LINENO: checking for working volatile" >&5
7188 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
7189 if test "${ac_cv_c_volatile+set}" = set; then
7190 echo $ECHO_N "(cached) $ECHO_C" >&6
7192 cat >conftest.
$ac_ext <<_ACEOF
7195 cat confdefs.h
>>conftest.
$ac_ext
7196 cat >>conftest.
$ac_ext <<_ACEOF
7197 /* end confdefs.h. */
7209 rm -f conftest.
$ac_objext
7210 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7211 (eval $ac_compile) 2>conftest.er1
7213 grep -v '^ *+' conftest.er1
>conftest.err
7215 cat conftest.err
>&5
7216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7217 (exit $ac_status); } &&
7218 { ac_try
='test -z "$ac_c_werror_flag"
7219 || test ! -s conftest.err'
7220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7224 (exit $ac_status); }; } &&
7225 { ac_try
='test -s conftest.$ac_objext'
7226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7230 (exit $ac_status); }; }; then
7231 ac_cv_c_volatile
=yes
7233 echo "$as_me: failed program was:" >&5
7234 sed 's/^/| /' conftest.
$ac_ext >&5
7238 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7240 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
7241 echo "${ECHO_T}$ac_cv_c_volatile" >&6
7242 if test $ac_cv_c_volatile = no
; then
7244 cat >>confdefs.h
<<\_ACEOF
7250 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7251 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
7252 if test "${ac_cv_c_const+set}" = set; then
7253 echo $ECHO_N "(cached) $ECHO_C" >&6
7255 cat >conftest.
$ac_ext <<_ACEOF
7258 cat confdefs.h
>>conftest.
$ac_ext
7259 cat >>conftest.
$ac_ext <<_ACEOF
7260 /* end confdefs.h. */
7265 /* FIXME: Include the comments suggested by Paul. */
7267 /* Ultrix mips cc rejects this. */
7268 typedef int charset[2];
7270 /* SunOS 4.1.1 cc rejects this. */
7271 char const *const *ccp;
7273 /* NEC SVR4.0.2 mips cc rejects this. */
7274 struct point {int x, y;};
7275 static struct point const zero = {0,0};
7276 /* AIX XL C 1.02.0.0 rejects this.
7277 It does not let you subtract one const X* pointer from another in
7278 an arm of an if-expression whose if-part is not a constant
7280 const char *g = "string";
7281 ccp = &g + (g ? g-g : 0);
7282 /* HPUX 7.0 cc rejects these. */
7285 ccp = (char const *const *) p;
7286 { /* SCO 3.2v4 cc rejects this. */
7288 char const *s = 0 ? (char *) 0 : (char const *) 0;
7292 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7294 const int *foo = &x[0];
7297 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7298 typedef const int *iptr;
7302 { /* AIX XL C 1.02.0.0 rejects this saying
7303 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7304 struct s { int j; const int *ap[3]; };
7305 struct s *b; b->j = 5;
7307 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7316 rm -f conftest.
$ac_objext
7317 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7318 (eval $ac_compile) 2>conftest.er1
7320 grep -v '^ *+' conftest.er1
>conftest.err
7322 cat conftest.err
>&5
7323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7324 (exit $ac_status); } &&
7325 { ac_try
='test -z "$ac_c_werror_flag"
7326 || test ! -s conftest.err'
7327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7331 (exit $ac_status); }; } &&
7332 { ac_try
='test -s conftest.$ac_objext'
7333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7337 (exit $ac_status); }; }; then
7340 echo "$as_me: failed program was:" >&5
7341 sed 's/^/| /' conftest.
$ac_ext >&5
7345 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7347 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7348 echo "${ECHO_T}$ac_cv_c_const" >&6
7349 if test $ac_cv_c_const = no
; then
7351 cat >>confdefs.h
<<\_ACEOF
7357 echo "$as_me:$LINENO: checking for void * support" >&5
7358 echo $ECHO_N "checking for void * support... $ECHO_C" >&6
7359 if test "${emacs_cv_void_star+set}" = set; then
7360 echo $ECHO_N "(cached) $ECHO_C" >&6
7362 cat >conftest.
$ac_ext <<_ACEOF
7365 cat confdefs.h
>>conftest.
$ac_ext
7366 cat >>conftest.
$ac_ext <<_ACEOF
7367 /* end confdefs.h. */
7377 rm -f conftest.
$ac_objext
7378 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7379 (eval $ac_compile) 2>conftest.er1
7381 grep -v '^ *+' conftest.er1
>conftest.err
7383 cat conftest.err
>&5
7384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7385 (exit $ac_status); } &&
7386 { ac_try
='test -z "$ac_c_werror_flag"
7387 || test ! -s conftest.err'
7388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7392 (exit $ac_status); }; } &&
7393 { ac_try
='test -s conftest.$ac_objext'
7394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7398 (exit $ac_status); }; }; then
7399 emacs_cv_void_star
=yes
7401 echo "$as_me: failed program was:" >&5
7402 sed 's/^/| /' conftest.
$ac_ext >&5
7404 emacs_cv_void_star
=no
7406 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7408 echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
7409 echo "${ECHO_T}$emacs_cv_void_star" >&6
7410 if test $emacs_cv_void_star = yes; then
7411 cat >>confdefs.h
<<\_ACEOF
7412 #define POINTER_TYPE void
7416 cat >>confdefs.h
<<\_ACEOF
7417 #define POINTER_TYPE char
7424 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7425 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
7426 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y,:./+-,___p_,'`
7427 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
7428 echo $ECHO_N "(cached) $ECHO_C" >&6
7430 cat >conftest.
make <<\_ACEOF
7432 @
echo 'ac_maketemp="$(MAKE)"'
7434 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7435 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
7436 if test -n "$ac_maketemp"; then
7437 eval ac_cv_prog_make_
${ac_make}_set
=yes
7439 eval ac_cv_prog_make_
${ac_make}_set
=no
7443 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
7444 echo "$as_me:$LINENO: result: yes" >&5
7445 echo "${ECHO_T}yes" >&6
7448 echo "$as_me:$LINENO: result: no" >&5
7449 echo "${ECHO_T}no" >&6
7450 SET_MAKE
="MAKE=${MAKE-make}"
7454 echo "$as_me:$LINENO: checking for long file names" >&5
7455 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
7456 if test "${ac_cv_sys_long_file_names+set}" = set; then
7457 echo $ECHO_N "(cached) $ECHO_C" >&6
7459 ac_cv_sys_long_file_names
=yes
7460 # Test for long file names in all the places we know might matter:
7461 # . the current directory, where building will happen
7462 # $prefix/lib where we will be installing things
7463 # $exec_prefix/lib likewise
7464 # eval it to expand exec_prefix.
7465 # $TMPDIR if set, where it might want to write temporary files
7466 # if $TMPDIR is not set:
7467 # /tmp where it might want to write temporary files
7470 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
7473 ac_tmpdirs
='/tmp /var/tmp /usr/tmp'
7475 for ac_dir
in .
$ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
7476 test -d $ac_dir ||
continue
7477 test -w $ac_dir ||
continue # It is less confusing to not echo anything here.
7478 ac_xdir
=$ac_dir/cf$$
7479 (umask 077 && mkdir
$ac_xdir 2>/dev
/null
) ||
continue
7480 ac_tf1
=$ac_xdir/conftest9012345
7481 ac_tf2
=$ac_xdir/conftest9012346
7482 (echo 1 >$ac_tf1) 2>/dev
/null
7483 (echo 2 >$ac_tf2) 2>/dev
/null
7484 ac_val
=`cat $ac_tf1 2>/dev/null`
7485 if test ! -f $ac_tf1 ||
test "$ac_val" != 1; then
7486 ac_cv_sys_long_file_names
=no
7487 rm -rf $ac_xdir 2>/dev
/null
7490 rm -rf $ac_xdir 2>/dev
/null
7493 echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
7494 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
7495 if test $ac_cv_sys_long_file_names = yes; then
7497 cat >>confdefs.h
<<\_ACEOF
7498 #define HAVE_LONG_FILE_NAMES 1
7504 #### Choose a window system.
7506 echo "$as_me:$LINENO: checking for X" >&5
7507 echo $ECHO_N "checking for X... $ECHO_C" >&6
7510 # Check whether --with-x or --without-x was given.
7511 if test "${with_x+set}" = set; then
7515 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7516 if test "x$with_x" = xno
; then
7517 # The user explicitly disabled X.
7520 if test "x$x_includes" != xNONE
&& test "x$x_libraries" != xNONE
; then
7521 # Both variables are already set.
7524 if test "${ac_cv_have_x+set}" = set; then
7525 echo $ECHO_N "(cached) $ECHO_C" >&6
7527 # One or both of the vars are not set, and there is no cached value.
7528 ac_x_includes
=no ac_x_libraries
=no
7530 if mkdir conftest.dir
; then
7532 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
7533 cat >Imakefile
<<'_ACEOF'
7535 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
7537 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
7538 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7539 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
7540 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7541 for ac_extension
in a so sl
; do
7542 if test ! -f $ac_im_usrlibdir/libX11.
$ac_extension &&
7543 test -f $ac_im_libdir/libX11.
$ac_extension; then
7544 ac_im_usrlibdir
=$ac_im_libdir; break
7547 # Screen out bogus values from the imake configuration. They are
7548 # bogus both because they are the default anyway, and because
7549 # using them would break gcc on systems where it needs fixed includes.
7550 case $ac_im_incroot in
7552 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
7554 case $ac_im_usrlibdir in
7556 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
7563 # Standard set of common directories for X headers.
7564 # Check X11 before X11Rn because it is often a symlink to the current release.
7576 /usr/local/X11/include
7577 /usr/local/X11R6/include
7578 /usr/local/X11R5/include
7579 /usr/local/X11R4/include
7581 /usr/local/include/X11
7582 /usr/local/include/X11R6
7583 /usr/local/include/X11R5
7584 /usr/local/include/X11R4
7588 /usr/XFree86/include/X11
7592 /usr/unsupported/include
7594 /usr/local/x11r5/include
7595 /usr/lpp/Xamples/include
7597 /usr/openwin/include
7598 /usr/openwin/share/include'
7600 if test "$ac_x_includes" = no
; then
7601 # Guess where to find include files, by looking for Intrinsic.h.
7602 # First, try using that file with no special directory specified.
7603 cat >conftest.
$ac_ext <<_ACEOF
7606 cat confdefs.h
>>conftest.
$ac_ext
7607 cat >>conftest.
$ac_ext <<_ACEOF
7608 /* end confdefs.h. */
7609 #include <X11/Intrinsic.h>
7611 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7612 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7614 grep -v '^ *+' conftest.er1
>conftest.err
7616 cat conftest.err
>&5
7617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7618 (exit $ac_status); } >/dev
/null
; then
7619 if test -s conftest.err
; then
7620 ac_cpp_err
=$ac_c_preproc_warn_flag
7621 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
7628 if test -z "$ac_cpp_err"; then
7629 # We can compile using X headers with no special include directory.
7632 echo "$as_me: failed program was:" >&5
7633 sed 's/^/| /' conftest.
$ac_ext >&5
7635 for ac_dir
in $ac_x_header_dirs; do
7636 if test -r "$ac_dir/X11/Intrinsic.h"; then
7637 ac_x_includes
=$ac_dir
7642 rm -f conftest.err conftest.
$ac_ext
7643 fi # $ac_x_includes = no
7645 if test "$ac_x_libraries" = no
; then
7646 # Check for the libraries.
7647 # See if we find them without any special options.
7648 # Don't add to $LIBS permanently.
7651 cat >conftest.
$ac_ext <<_ACEOF
7654 cat confdefs.h
>>conftest.
$ac_ext
7655 cat >>conftest.
$ac_ext <<_ACEOF
7656 /* end confdefs.h. */
7657 #include <X11/Intrinsic.h>
7666 rm -f conftest.
$ac_objext conftest
$ac_exeext
7667 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7668 (eval $ac_link) 2>conftest.er1
7670 grep -v '^ *+' conftest.er1
>conftest.err
7672 cat conftest.err
>&5
7673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7674 (exit $ac_status); } &&
7675 { ac_try
='test -z "$ac_c_werror_flag"
7676 || test ! -s conftest.err'
7677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7681 (exit $ac_status); }; } &&
7682 { ac_try
='test -s conftest$ac_exeext'
7683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7687 (exit $ac_status); }; }; then
7689 # We can link X programs with no special library path.
7692 echo "$as_me: failed program was:" >&5
7693 sed 's/^/| /' conftest.
$ac_ext >&5
7696 for ac_dir
in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
7698 # Don't even attempt the hair of trying to link an X program!
7699 for ac_extension
in a so sl
; do
7700 if test -r $ac_dir/libXt.
$ac_extension; then
7701 ac_x_libraries
=$ac_dir
7707 rm -f conftest.err conftest.
$ac_objext \
7708 conftest
$ac_exeext conftest.
$ac_ext
7709 fi # $ac_x_libraries = no
7711 if test "$ac_x_includes" = no ||
test "$ac_x_libraries" = no
; then
7712 # Didn't find X anywhere. Cache the known absence of X.
7713 ac_cv_have_x
="have_x=no"
7715 # Record where we found X for the cache.
7716 ac_cv_have_x
="have_x=yes \
7717 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
7722 eval "$ac_cv_have_x"
7725 if test "$have_x" != yes; then
7726 echo "$as_me:$LINENO: result: $have_x" >&5
7727 echo "${ECHO_T}$have_x" >&6
7730 # If each of the values was on the command line, it overrides each guess.
7731 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
7732 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
7733 # Update the cache value to reflect the command line values.
7734 ac_cv_have_x
="have_x=yes \
7735 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
7736 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
7737 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
7740 if test "$no_x" = yes; then
7746 if test "${x_libraries}" != NONE
&& test -n "${x_libraries}"; then
7747 LD_SWITCH_X_SITE
=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
7748 LD_SWITCH_X_SITE_AUX
=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
7749 x_default_search_path
=""
7750 for x_library
in `echo ${x_libraries} | sed -e "s/:/ /g"`; do
7752 ${x_library}/X11/%L/%T/%N%C%S:\
7753 ${x_library}/X11/%l/%T/%N%C%S:\
7754 ${x_library}/X11/%T/%N%C%S:\
7755 ${x_library}/X11/%L/%T/%N%S:\
7756 ${x_library}/X11/%l/%T/%N%S:\
7757 ${x_library}/X11/%T/%N%S"
7758 if test x
"${x_default_search_path}" = x
; then
7759 x_default_search_path
=${x_search_path}
7761 x_default_search_path
="${x_search_path}:${x_default_search_path}"
7765 if test "${x_includes}" != NONE
&& test -n "${x_includes}"; then
7766 C_SWITCH_X_SITE
=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
7769 if test x
"${x_includes}" = x
; then
7770 bitmapdir
=/usr
/include
/X11
/bitmaps
7772 # accumulate include directories that have X11 bitmap subdirectories
7774 for bmd
in `echo ${x_includes} | sed -e "s/:/ /g"`; do
7775 if test -d "${bmd}/X11/bitmaps"; then
7776 bmd_acc
="${bmd_acc}:${bmd}/X11/bitmaps"
7778 if test -d "${bmd}/bitmaps"; then
7779 bmd_acc
="${bmd_acc}:${bmd}/bitmaps"
7782 if test ${bmd_acc} != "dummyval"; then
7783 bitmapdir
=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
7787 case "${window_system}" in
7791 case "${with_x_toolkit}" in
7792 athena | lucid
) USE_X_TOOLKIT
=LUCID
;;
7793 motif
) USE_X_TOOLKIT
=MOTIF
;;
7795 USE_X_TOOLKIT
=none
;;
7796 no
) USE_X_TOOLKIT
=none
;;
7797 * ) USE_X_TOOLKIT
=maybe
;;
7807 ### If we're using X11, we should use the X menu package.
7810 yes ) HAVE_MENUS
=yes ;;
7813 if test "${opsys}" = "hpux9"; then
7814 case "${x_libraries}" in
7816 opsysfile
="s/hpux9-x11r4.h"
7821 if test "${opsys}" = "hpux9shr"; then
7822 case "${x_libraries}" in
7824 opsysfile
="s/hpux9shxr4.h"
7829 ### Compute the unexec source name from the object name.
7830 UNEXEC_SRC
="`echo ${unexec} | sed 's/\.o/.c/'`"
7832 # Do the opsystem or machine files prohibit the use of the GNU malloc?
7833 # Assume not, until told otherwise.
7836 echo "$as_me:$LINENO: checking for malloc_get_state" >&5
7837 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6
7838 if test "${ac_cv_func_malloc_get_state+set}" = set; then
7839 echo $ECHO_N "(cached) $ECHO_C" >&6
7841 cat >conftest.
$ac_ext <<_ACEOF
7844 cat confdefs.h
>>conftest.
$ac_ext
7845 cat >>conftest.
$ac_ext <<_ACEOF
7846 /* end confdefs.h. */
7847 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
7848 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7849 #define malloc_get_state innocuous_malloc_get_state
7851 /* System header to define __stub macros and hopefully few prototypes,
7852 which can conflict with char malloc_get_state (); below.
7853 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7854 <limits.h> exists even on freestanding compilers. */
7857 # include <limits.h>
7859 # include <assert.h>
7862 #undef malloc_get_state
7864 /* Override any gcc2 internal prototype to avoid an error. */
7869 /* We use char because int might match the return type of a gcc2
7870 builtin and then its argument prototype would still apply. */
7871 char malloc_get_state ();
7872 /* The GNU C library defines this for functions which it implements
7873 to always fail with ENOSYS. Some functions are actually named
7874 something starting with __ and the normal name is an alias. */
7875 #if defined (__stub_malloc_get_state) || defined (__stub___malloc_get_state)
7878 char (*f) () = malloc_get_state;
7887 return f != malloc_get_state;
7892 rm -f conftest.
$ac_objext conftest
$ac_exeext
7893 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7894 (eval $ac_link) 2>conftest.er1
7896 grep -v '^ *+' conftest.er1
>conftest.err
7898 cat conftest.err
>&5
7899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7900 (exit $ac_status); } &&
7901 { ac_try
='test -z "$ac_c_werror_flag"
7902 || test ! -s conftest.err'
7903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7907 (exit $ac_status); }; } &&
7908 { ac_try
='test -s conftest$ac_exeext'
7909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7913 (exit $ac_status); }; }; then
7914 ac_cv_func_malloc_get_state
=yes
7916 echo "$as_me: failed program was:" >&5
7917 sed 's/^/| /' conftest.
$ac_ext >&5
7919 ac_cv_func_malloc_get_state
=no
7921 rm -f conftest.err conftest.
$ac_objext \
7922 conftest
$ac_exeext conftest.
$ac_ext
7924 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
7925 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6
7926 if test $ac_cv_func_malloc_get_state = yes; then
7932 echo "$as_me:$LINENO: checking for malloc_set_state" >&5
7933 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6
7934 if test "${ac_cv_func_malloc_set_state+set}" = set; then
7935 echo $ECHO_N "(cached) $ECHO_C" >&6
7937 cat >conftest.
$ac_ext <<_ACEOF
7940 cat confdefs.h
>>conftest.
$ac_ext
7941 cat >>conftest.
$ac_ext <<_ACEOF
7942 /* end confdefs.h. */
7943 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
7944 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7945 #define malloc_set_state innocuous_malloc_set_state
7947 /* System header to define __stub macros and hopefully few prototypes,
7948 which can conflict with char malloc_set_state (); below.
7949 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7950 <limits.h> exists even on freestanding compilers. */
7953 # include <limits.h>
7955 # include <assert.h>
7958 #undef malloc_set_state
7960 /* Override any gcc2 internal prototype to avoid an error. */
7965 /* We use char because int might match the return type of a gcc2
7966 builtin and then its argument prototype would still apply. */
7967 char malloc_set_state ();
7968 /* The GNU C library defines this for functions which it implements
7969 to always fail with ENOSYS. Some functions are actually named
7970 something starting with __ and the normal name is an alias. */
7971 #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state)
7974 char (*f) () = malloc_set_state;
7983 return f != malloc_set_state;
7988 rm -f conftest.
$ac_objext conftest
$ac_exeext
7989 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7990 (eval $ac_link) 2>conftest.er1
7992 grep -v '^ *+' conftest.er1
>conftest.err
7994 cat conftest.err
>&5
7995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7996 (exit $ac_status); } &&
7997 { ac_try
='test -z "$ac_c_werror_flag"
7998 || test ! -s conftest.err'
7999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8003 (exit $ac_status); }; } &&
8004 { ac_try
='test -s conftest$ac_exeext'
8005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8009 (exit $ac_status); }; }; then
8010 ac_cv_func_malloc_set_state
=yes
8012 echo "$as_me: failed program was:" >&5
8013 sed 's/^/| /' conftest.
$ac_ext >&5
8015 ac_cv_func_malloc_set_state
=no
8017 rm -f conftest.err conftest.
$ac_objext \
8018 conftest
$ac_exeext conftest.
$ac_ext
8020 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
8021 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6
8022 if test $ac_cv_func_malloc_set_state = yes; then
8028 echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
8029 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6
8030 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
8031 echo $ECHO_N "(cached) $ECHO_C" >&6
8033 cat >conftest.
$ac_ext <<_ACEOF
8036 cat confdefs.h
>>conftest.
$ac_ext
8037 cat >>conftest.
$ac_ext <<_ACEOF
8038 /* end confdefs.h. */
8039 extern void (* __after_morecore_hook)();
8043 __after_morecore_hook = 0
8048 rm -f conftest.
$ac_objext conftest
$ac_exeext
8049 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8050 (eval $ac_link) 2>conftest.er1
8052 grep -v '^ *+' conftest.er1
>conftest.err
8054 cat conftest.err
>&5
8055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8056 (exit $ac_status); } &&
8057 { ac_try
='test -z "$ac_c_werror_flag"
8058 || test ! -s conftest.err'
8059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8063 (exit $ac_status); }; } &&
8064 { ac_try
='test -s conftest$ac_exeext'
8065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8069 (exit $ac_status); }; }; then
8070 emacs_cv_var___after_morecore_hook
=yes
8072 echo "$as_me: failed program was:" >&5
8073 sed 's/^/| /' conftest.
$ac_ext >&5
8075 emacs_cv_var___after_morecore_hook
=no
8077 rm -f conftest.err conftest.
$ac_objext \
8078 conftest
$ac_exeext conftest.
$ac_ext
8080 echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
8081 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6
8082 if test $emacs_cv_var___after_morecore_hook = no
; then
8085 if test "${system_malloc}" = "yes"; then
8088 (The GNU allocators don't work with this system configuration.)"
8090 if test "$doug_lea_malloc" = "yes" ; then
8091 if test "$GNU_MALLOC" = yes ; then
8093 (Using Doug Lea's new malloc from the GNU C Library.)"
8096 cat >>confdefs.h
<<\_ACEOF
8097 #define DOUG_LEA_MALLOC 1
8102 if test x
"${REL_ALLOC}" = x
; then
8103 REL_ALLOC
=${GNU_MALLOC}
8109 for ac_header
in stdlib.h unistd.h
8111 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8112 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8113 echo "$as_me:$LINENO: checking for $ac_header" >&5
8114 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8115 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8116 echo $ECHO_N "(cached) $ECHO_C" >&6
8118 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8119 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8121 # Is the header compilable?
8122 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8123 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8124 cat >conftest.
$ac_ext <<_ACEOF
8127 cat confdefs.h
>>conftest.
$ac_ext
8128 cat >>conftest.
$ac_ext <<_ACEOF
8129 /* end confdefs.h. */
8130 $ac_includes_default
8131 #include <$ac_header>
8133 rm -f conftest.
$ac_objext
8134 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8135 (eval $ac_compile) 2>conftest.er1
8137 grep -v '^ *+' conftest.er1
>conftest.err
8139 cat conftest.err
>&5
8140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8141 (exit $ac_status); } &&
8142 { ac_try
='test -z "$ac_c_werror_flag"
8143 || test ! -s conftest.err'
8144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8148 (exit $ac_status); }; } &&
8149 { ac_try
='test -s conftest.$ac_objext'
8150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8154 (exit $ac_status); }; }; then
8155 ac_header_compiler
=yes
8157 echo "$as_me: failed program was:" >&5
8158 sed 's/^/| /' conftest.
$ac_ext >&5
8160 ac_header_compiler
=no
8162 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8163 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8164 echo "${ECHO_T}$ac_header_compiler" >&6
8166 # Is the header present?
8167 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8168 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8169 cat >conftest.
$ac_ext <<_ACEOF
8172 cat confdefs.h
>>conftest.
$ac_ext
8173 cat >>conftest.
$ac_ext <<_ACEOF
8174 /* end confdefs.h. */
8175 #include <$ac_header>
8177 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8178 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8180 grep -v '^ *+' conftest.er1
>conftest.err
8182 cat conftest.err
>&5
8183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8184 (exit $ac_status); } >/dev
/null
; then
8185 if test -s conftest.err
; then
8186 ac_cpp_err
=$ac_c_preproc_warn_flag
8187 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
8194 if test -z "$ac_cpp_err"; then
8195 ac_header_preproc
=yes
8197 echo "$as_me: failed program was:" >&5
8198 sed 's/^/| /' conftest.
$ac_ext >&5
8200 ac_header_preproc
=no
8202 rm -f conftest.err conftest.
$ac_ext
8203 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8204 echo "${ECHO_T}$ac_header_preproc" >&6
8206 # So? What about this header?
8207 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8209 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8210 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8211 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8212 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8213 ac_header_preproc
=yes
8216 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8217 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8218 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8219 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8220 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8221 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8222 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8223 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8224 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8225 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8226 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8227 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8230 ## ------------------------------------------ ##
8231 ## Report this to the AC_PACKAGE_NAME lists. ##
8232 ## ------------------------------------------ ##
8235 sed "s/^/$as_me: WARNING: /" >&2
8238 echo "$as_me:$LINENO: checking for $ac_header" >&5
8239 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8240 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8241 echo $ECHO_N "(cached) $ECHO_C" >&6
8243 eval "$as_ac_Header=\$ac_header_preproc"
8245 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8246 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8249 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8250 cat >>confdefs.h
<<_ACEOF
8251 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8259 for ac_func
in getpagesize
8261 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8262 echo "$as_me:$LINENO: checking for $ac_func" >&5
8263 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8264 if eval "test \"\${$as_ac_var+set}\" = set"; then
8265 echo $ECHO_N "(cached) $ECHO_C" >&6
8267 cat >conftest.
$ac_ext <<_ACEOF
8270 cat confdefs.h
>>conftest.
$ac_ext
8271 cat >>conftest.
$ac_ext <<_ACEOF
8272 /* end confdefs.h. */
8273 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8274 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8275 #define $ac_func innocuous_$ac_func
8277 /* System header to define __stub macros and hopefully few prototypes,
8278 which can conflict with char $ac_func (); below.
8279 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8280 <limits.h> exists even on freestanding compilers. */
8283 # include <limits.h>
8285 # include <assert.h>
8290 /* Override any gcc2 internal prototype to avoid an error. */
8295 /* We use char because int might match the return type of a gcc2
8296 builtin and then its argument prototype would still apply. */
8298 /* The GNU C library defines this for functions which it implements
8299 to always fail with ENOSYS. Some functions are actually named
8300 something starting with __ and the normal name is an alias. */
8301 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8304 char (*f) () = $ac_func;
8313 return f != $ac_func;
8318 rm -f conftest.
$ac_objext conftest
$ac_exeext
8319 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8320 (eval $ac_link) 2>conftest.er1
8322 grep -v '^ *+' conftest.er1
>conftest.err
8324 cat conftest.err
>&5
8325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8326 (exit $ac_status); } &&
8327 { ac_try
='test -z "$ac_c_werror_flag"
8328 || test ! -s conftest.err'
8329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8333 (exit $ac_status); }; } &&
8334 { ac_try
='test -s conftest$ac_exeext'
8335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8339 (exit $ac_status); }; }; then
8340 eval "$as_ac_var=yes"
8342 echo "$as_me: failed program was:" >&5
8343 sed 's/^/| /' conftest.
$ac_ext >&5
8345 eval "$as_ac_var=no"
8347 rm -f conftest.err conftest.
$ac_objext \
8348 conftest
$ac_exeext conftest.
$ac_ext
8350 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8351 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8352 if test `eval echo '${'$as_ac_var'}'` = yes; then
8353 cat >>confdefs.h
<<_ACEOF
8354 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8360 echo "$as_me:$LINENO: checking for working mmap" >&5
8361 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
8362 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
8363 echo $ECHO_N "(cached) $ECHO_C" >&6
8365 if test "$cross_compiling" = yes; then
8366 ac_cv_func_mmap_fixed_mapped
=no
8368 cat >conftest.
$ac_ext <<_ACEOF
8371 cat confdefs.h
>>conftest.
$ac_ext
8372 cat >>conftest.
$ac_ext <<_ACEOF
8373 /* end confdefs.h. */
8374 $ac_includes_default
8375 /* malloc might have been renamed as rpl_malloc. */
8378 /* Thanks to Mike Haertel and Jim Avera for this test.
8379 Here is a matrix of mmap possibilities:
8380 mmap private not fixed
8381 mmap private fixed at somewhere currently unmapped
8382 mmap private fixed at somewhere already mapped
8383 mmap shared not fixed
8384 mmap shared fixed at somewhere currently unmapped
8385 mmap shared fixed at somewhere already mapped
8386 For private mappings, we should verify that changes cannot be read()
8387 back from the file, nor mmap's back from the file at a different
8388 address. (There have been systems where private was not correctly
8389 implemented like the infamous i386 svr4.0, and systems where the
8390 VM page cache was not coherent with the file system buffer cache
8391 like early versions of FreeBSD and possibly contemporary NetBSD.)
8392 For shared mappings, we should conversely verify that changes get
8393 propagated back to all the places they're supposed to be.
8395 Grep wants private fixed already mapped.
8396 The main things grep needs to know about mmap are:
8397 * does it exist and is it safe to write into the mmap'd area
8398 * how to use it (BSD variants) */
8401 #include <sys/mman.h>
8403 #if !STDC_HEADERS && !HAVE_STDLIB_H
8407 /* This mess was copied from the GNU getpagesize.h. */
8408 #if !HAVE_GETPAGESIZE
8409 /* Assume that all systems that can run configure have sys/param.h. */
8410 # if !HAVE_SYS_PARAM_H
8411 # define HAVE_SYS_PARAM_H 1
8414 # ifdef _SC_PAGESIZE
8415 # define getpagesize() sysconf(_SC_PAGESIZE)
8416 # else /* no _SC_PAGESIZE */
8417 # if HAVE_SYS_PARAM_H
8418 # include <sys/param.h>
8419 # ifdef EXEC_PAGESIZE
8420 # define getpagesize() EXEC_PAGESIZE
8421 # else /* no EXEC_PAGESIZE */
8423 # define getpagesize() NBPG * CLSIZE
8426 # endif /* no CLSIZE */
8427 # else /* no NBPG */
8429 # define getpagesize() NBPC
8430 # else /* no NBPC */
8432 # define getpagesize() PAGESIZE
8433 # endif /* PAGESIZE */
8434 # endif /* no NBPC */
8435 # endif /* no NBPG */
8436 # endif /* no EXEC_PAGESIZE */
8437 # else /* no HAVE_SYS_PARAM_H */
8438 # define getpagesize() 8192 /* punt totally */
8439 # endif /* no HAVE_SYS_PARAM_H */
8440 # endif /* no _SC_PAGESIZE */
8442 #endif /* no HAVE_GETPAGESIZE */
8447 char *data, *data2, *data3;
8451 pagesize = getpagesize ();
8453 /* First, make a file with some known garbage in it. */
8454 data = (char *) malloc (pagesize);
8457 for (i = 0; i < pagesize; ++i)
8458 *(data + i) = rand ();
8460 fd = creat ("conftest.mmap", 0600);
8463 if (write (fd, data, pagesize) != pagesize)
8467 /* Next, try to mmap the file at a fixed address which already has
8468 something else allocated at it. If we can, also make sure that
8469 we see the same garbage. */
8470 fd = open ("conftest.mmap", O_RDWR);
8473 data2 = (char *) malloc (2 * pagesize);
8476 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
8477 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8478 MAP_PRIVATE | MAP_FIXED, fd, 0L))
8480 for (i = 0; i < pagesize; ++i)
8481 if (*(data + i) != *(data2 + i))
8484 /* Finally, make sure that changes to the mapped area do not
8485 percolate back to the file as seen by read(). (This is a bug on
8486 some variants of i386 svr4.0.) */
8487 for (i = 0; i < pagesize; ++i)
8488 *(data2 + i) = *(data2 + i) + 1;
8489 data3 = (char *) malloc (pagesize);
8492 if (read (fd, data3, pagesize) != pagesize)
8494 for (i = 0; i < pagesize; ++i)
8495 if (*(data + i) != *(data3 + i))
8501 rm -f conftest
$ac_exeext
8502 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8503 (eval $ac_link) 2>&5
8505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8506 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
8507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8511 (exit $ac_status); }; }; then
8512 ac_cv_func_mmap_fixed_mapped
=yes
8514 echo "$as_me: program exited with status $ac_status" >&5
8515 echo "$as_me: failed program was:" >&5
8516 sed 's/^/| /' conftest.
$ac_ext >&5
8519 ac_cv_func_mmap_fixed_mapped
=no
8521 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
8524 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
8525 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
8526 if test $ac_cv_func_mmap_fixed_mapped = yes; then
8528 cat >>confdefs.h
<<\_ACEOF
8535 if test $use_mmap_for_buffers = yes; then
8539 LIBS
="$libsrc_libs $LIBS"
8542 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
8543 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
8544 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
8545 echo $ECHO_N "(cached) $ECHO_C" >&6
8547 ac_check_lib_save_LIBS
=$LIBS
8549 cat >conftest.
$ac_ext <<_ACEOF
8552 cat confdefs.h
>>conftest.
$ac_ext
8553 cat >>conftest.
$ac_ext <<_ACEOF
8554 /* end confdefs.h. */
8556 /* Override any gcc2 internal prototype to avoid an error. */
8560 /* We use char because int might match the return type of a gcc2
8561 builtin and then its argument prototype would still apply. */
8571 rm -f conftest.
$ac_objext conftest
$ac_exeext
8572 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8573 (eval $ac_link) 2>conftest.er1
8575 grep -v '^ *+' conftest.er1
>conftest.err
8577 cat conftest.err
>&5
8578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8579 (exit $ac_status); } &&
8580 { ac_try
='test -z "$ac_c_werror_flag"
8581 || test ! -s conftest.err'
8582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8586 (exit $ac_status); }; } &&
8587 { ac_try
='test -s conftest$ac_exeext'
8588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8592 (exit $ac_status); }; }; then
8593 ac_cv_lib_dnet_dnet_ntoa
=yes
8595 echo "$as_me: failed program was:" >&5
8596 sed 's/^/| /' conftest.
$ac_ext >&5
8598 ac_cv_lib_dnet_dnet_ntoa
=no
8600 rm -f conftest.err conftest.
$ac_objext \
8601 conftest
$ac_exeext conftest.
$ac_ext
8602 LIBS
=$ac_check_lib_save_LIBS
8604 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
8605 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
8606 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
8607 cat >>confdefs.h
<<_ACEOF
8608 #define HAVE_LIBDNET 1
8616 echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
8617 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6
8618 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
8619 echo $ECHO_N "(cached) $ECHO_C" >&6
8621 ac_check_lib_save_LIBS
=$LIBS
8623 cat >conftest.
$ac_ext <<_ACEOF
8626 cat confdefs.h
>>conftest.
$ac_ext
8627 cat >>conftest.
$ac_ext <<_ACEOF
8628 /* end confdefs.h. */
8639 rm -f conftest.
$ac_objext conftest
$ac_exeext
8640 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8641 (eval $ac_link) 2>conftest.er1
8643 grep -v '^ *+' conftest.er1
>conftest.err
8645 cat conftest.err
>&5
8646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8647 (exit $ac_status); } &&
8648 { ac_try
='test -z "$ac_c_werror_flag"
8649 || test ! -s conftest.err'
8650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8654 (exit $ac_status); }; } &&
8655 { ac_try
='test -s conftest$ac_exeext'
8656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8660 (exit $ac_status); }; }; then
8661 ac_cv_lib_Xbsd_main
=yes
8663 echo "$as_me: failed program was:" >&5
8664 sed 's/^/| /' conftest.
$ac_ext >&5
8666 ac_cv_lib_Xbsd_main
=no
8668 rm -f conftest.err conftest.
$ac_objext \
8669 conftest
$ac_exeext conftest.
$ac_ext
8670 LIBS
=$ac_check_lib_save_LIBS
8672 echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
8673 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6
8674 if test $ac_cv_lib_Xbsd_main = yes; then
8675 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -lXbsd"
8680 echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
8681 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6
8682 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
8683 echo $ECHO_N "(cached) $ECHO_C" >&6
8685 ac_check_lib_save_LIBS
=$LIBS
8686 LIBS
="-lpthreads $LIBS"
8687 cat >conftest.
$ac_ext <<_ACEOF
8690 cat confdefs.h
>>conftest.
$ac_ext
8691 cat >>conftest.
$ac_ext <<_ACEOF
8692 /* end confdefs.h. */
8694 /* Override any gcc2 internal prototype to avoid an error. */
8698 /* We use char because int might match the return type of a gcc2
8699 builtin and then its argument prototype would still apply. */
8709 rm -f conftest.
$ac_objext conftest
$ac_exeext
8710 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8711 (eval $ac_link) 2>conftest.er1
8713 grep -v '^ *+' conftest.er1
>conftest.err
8715 cat conftest.err
>&5
8716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8717 (exit $ac_status); } &&
8718 { ac_try
='test -z "$ac_c_werror_flag"
8719 || test ! -s conftest.err'
8720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8724 (exit $ac_status); }; } &&
8725 { ac_try
='test -s conftest$ac_exeext'
8726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8730 (exit $ac_status); }; }; then
8731 ac_cv_lib_pthreads_cma_open
=yes
8733 echo "$as_me: failed program was:" >&5
8734 sed 's/^/| /' conftest.
$ac_ext >&5
8736 ac_cv_lib_pthreads_cma_open
=no
8738 rm -f conftest.err conftest.
$ac_objext \
8739 conftest
$ac_exeext conftest.
$ac_ext
8740 LIBS
=$ac_check_lib_save_LIBS
8742 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
8743 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6
8744 if test $ac_cv_lib_pthreads_cma_open = yes; then
8745 cat >>confdefs.h
<<_ACEOF
8746 #define HAVE_LIBPTHREADS 1
8749 LIBS
="-lpthreads $LIBS"
8754 echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
8755 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6
8756 if test -d /usr
/X386
/include
; then
8758 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
8762 echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
8763 echo "${ECHO_T}$HAVE_XFREE386" >&6
8768 echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
8769 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6
8770 if test "${gdb_cv_bigtoc+set}" = set; then
8771 echo $ECHO_N "(cached) $ECHO_C" >&6
8775 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
8776 *) gdb_cv_bigtoc
=-bbigtoc ;;
8779 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
8780 cat >conftest.
$ac_ext <<_ACEOF
8783 cat confdefs.h
>>conftest.
$ac_ext
8784 cat >>conftest.
$ac_ext <<_ACEOF
8785 /* end confdefs.h. */
8795 rm -f conftest.
$ac_objext conftest
$ac_exeext
8796 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8797 (eval $ac_link) 2>conftest.er1
8799 grep -v '^ *+' conftest.er1
>conftest.err
8801 cat conftest.err
>&5
8802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8803 (exit $ac_status); } &&
8804 { ac_try
='test -z "$ac_c_werror_flag"
8805 || test ! -s conftest.err'
8806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8810 (exit $ac_status); }; } &&
8811 { ac_try
='test -s conftest$ac_exeext'
8812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8816 (exit $ac_status); }; }; then
8819 echo "$as_me: failed program was:" >&5
8820 sed 's/^/| /' conftest.
$ac_ext >&5
8824 rm -f conftest.err conftest.
$ac_objext \
8825 conftest
$ac_exeext conftest.
$ac_ext
8828 echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
8829 echo "${ECHO_T}$gdb_cv_bigtoc" >&6
8833 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
8834 # used for the tests that follow. We set them back to REAL_CFLAGS and
8835 # REAL_CPPFLAGS later on.
8837 REAL_CPPFLAGS
="$CPPFLAGS"
8839 if test "${HAVE_X11}" = "yes"; then
8840 DEFS
="$C_SWITCH_X_SITE $DEFS"
8841 LDFLAGS
="$LDFLAGS $LD_SWITCH_X_SITE"
8843 CFLAGS
="$C_SWITCH_X_SITE $CFLAGS"
8844 CPPFLAGS
="$C_SWITCH_X_SITE $CPPFLAGS"
8846 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
8847 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
8848 # but it's more convenient here to set LD_RUN_PATH
8849 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
8850 if test "${x_libraries}" != NONE
&& test -n "${x_libraries}"; then
8851 LD_RUN_PATH
=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
8855 if test "${opsys}" = "gnu-linux"; then
8856 echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
8857 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6
8858 cat >conftest.
$ac_ext <<_ACEOF
8861 cat confdefs.h
>>conftest.
$ac_ext
8862 cat >>conftest.
$ac_ext <<_ACEOF
8863 /* end confdefs.h. */
8868 XOpenDisplay ("foo");
8873 rm -f conftest.
$ac_objext conftest
$ac_exeext
8874 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8875 (eval $ac_link) 2>conftest.er1
8877 grep -v '^ *+' conftest.er1
>conftest.err
8879 cat conftest.err
>&5
8880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8881 (exit $ac_status); } &&
8882 { ac_try
='test -z "$ac_c_werror_flag"
8883 || test ! -s conftest.err'
8884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8888 (exit $ac_status); }; } &&
8889 { ac_try
='test -s conftest$ac_exeext'
8890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8894 (exit $ac_status); }; }; then
8895 xlinux_first_failure
=no
8897 echo "$as_me: failed program was:" >&5
8898 sed 's/^/| /' conftest.
$ac_ext >&5
8900 xlinux_first_failure
=yes
8902 rm -f conftest.err conftest.
$ac_objext \
8903 conftest
$ac_exeext conftest.
$ac_ext
8904 if test "${xlinux_first_failure}" = "yes"; then
8905 OLD_LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE"
8906 OLD_C_SWITCH_X_SITE
="$C_SWITCH_X_SITE"
8907 OLD_CPPFLAGS
="$CPPFLAGS"
8909 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -b i486-linuxaout"
8910 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE -b i486-linuxaout"
8911 CPPFLAGS
="$CPPFLAGS -b i486-linuxaout"
8912 LIBS
="$LIBS -b i486-linuxaout"
8913 cat >conftest.
$ac_ext <<_ACEOF
8916 cat confdefs.h
>>conftest.
$ac_ext
8917 cat >>conftest.
$ac_ext <<_ACEOF
8918 /* end confdefs.h. */
8923 XOpenDisplay ("foo");
8928 rm -f conftest.
$ac_objext conftest
$ac_exeext
8929 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8930 (eval $ac_link) 2>conftest.er1
8932 grep -v '^ *+' conftest.er1
>conftest.err
8934 cat conftest.err
>&5
8935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8936 (exit $ac_status); } &&
8937 { ac_try
='test -z "$ac_c_werror_flag"
8938 || test ! -s conftest.err'
8939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8943 (exit $ac_status); }; } &&
8944 { ac_try
='test -s conftest$ac_exeext'
8945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8949 (exit $ac_status); }; }; then
8950 xlinux_second_failure
=no
8952 echo "$as_me: failed program was:" >&5
8953 sed 's/^/| /' conftest.
$ac_ext >&5
8955 xlinux_second_failure
=yes
8957 rm -f conftest.err conftest.
$ac_objext \
8958 conftest
$ac_exeext conftest.
$ac_ext
8959 if test "${xlinux_second_failure}" = "yes"; then
8960 # If we get the same failure with -b, there is no use adding -b.
8961 # So take it out. This plays safe.
8962 LD_SWITCH_X_SITE
="$OLD_LD_SWITCH_X_SITE"
8963 C_SWITCH_X_SITE
="$OLD_C_SWITCH_X_SITE"
8964 CPPFLAGS
="$OLD_CPPFLAGS"
8966 echo "$as_me:$LINENO: result: no" >&5
8967 echo "${ECHO_T}no" >&6
8969 echo "$as_me:$LINENO: result: yes" >&5
8970 echo "${ECHO_T}yes" >&6
8973 echo "$as_me:$LINENO: result: no" >&5
8974 echo "${ECHO_T}no" >&6
8978 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
8979 # header files included from there.
8980 echo "$as_me:$LINENO: checking for Xkb" >&5
8981 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6
8982 cat >conftest.
$ac_ext <<_ACEOF
8985 cat confdefs.h
>>conftest.
$ac_ext
8986 cat >>conftest.
$ac_ext <<_ACEOF
8987 /* end confdefs.h. */
8988 #include <X11/Xlib.h>
8989 #include <X11/XKBlib.h>
8993 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
8998 rm -f conftest.
$ac_objext conftest
$ac_exeext
8999 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9000 (eval $ac_link) 2>conftest.er1
9002 grep -v '^ *+' conftest.er1
>conftest.err
9004 cat conftest.err
>&5
9005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9006 (exit $ac_status); } &&
9007 { ac_try
='test -z "$ac_c_werror_flag"
9008 || test ! -s conftest.err'
9009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9013 (exit $ac_status); }; } &&
9014 { ac_try
='test -s conftest$ac_exeext'
9015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9019 (exit $ac_status); }; }; then
9022 echo "$as_me: failed program was:" >&5
9023 sed 's/^/| /' conftest.
$ac_ext >&5
9027 rm -f conftest.err conftest.
$ac_objext \
9028 conftest
$ac_exeext conftest.
$ac_ext
9029 echo "$as_me:$LINENO: result: $emacs_xkb" >&5
9030 echo "${ECHO_T}$emacs_xkb" >&6
9031 if test $emacs_xkb = yes; then
9033 cat >>confdefs.h
<<\_ACEOF
9034 #define HAVE_XKBGETKEYBOARD 1
9043 for ac_func
in XrmSetDatabase XScreenResourceString \
9044 XScreenNumberOfScreen XSetWMProtocols
9046 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9047 echo "$as_me:$LINENO: checking for $ac_func" >&5
9048 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9049 if eval "test \"\${$as_ac_var+set}\" = set"; then
9050 echo $ECHO_N "(cached) $ECHO_C" >&6
9052 cat >conftest.
$ac_ext <<_ACEOF
9055 cat confdefs.h
>>conftest.
$ac_ext
9056 cat >>conftest.
$ac_ext <<_ACEOF
9057 /* end confdefs.h. */
9058 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9059 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9060 #define $ac_func innocuous_$ac_func
9062 /* System header to define __stub macros and hopefully few prototypes,
9063 which can conflict with char $ac_func (); below.
9064 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9065 <limits.h> exists even on freestanding compilers. */
9068 # include <limits.h>
9070 # include <assert.h>
9075 /* Override any gcc2 internal prototype to avoid an error. */
9080 /* We use char because int might match the return type of a gcc2
9081 builtin and then its argument prototype would still apply. */
9083 /* The GNU C library defines this for functions which it implements
9084 to always fail with ENOSYS. Some functions are actually named
9085 something starting with __ and the normal name is an alias. */
9086 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9089 char (*f) () = $ac_func;
9098 return f != $ac_func;
9103 rm -f conftest.
$ac_objext conftest
$ac_exeext
9104 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9105 (eval $ac_link) 2>conftest.er1
9107 grep -v '^ *+' conftest.er1
>conftest.err
9109 cat conftest.err
>&5
9110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9111 (exit $ac_status); } &&
9112 { ac_try
='test -z "$ac_c_werror_flag"
9113 || test ! -s conftest.err'
9114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9118 (exit $ac_status); }; } &&
9119 { ac_try
='test -s conftest$ac_exeext'
9120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9124 (exit $ac_status); }; }; then
9125 eval "$as_ac_var=yes"
9127 echo "$as_me: failed program was:" >&5
9128 sed 's/^/| /' conftest.
$ac_ext >&5
9130 eval "$as_ac_var=no"
9132 rm -f conftest.err conftest.
$ac_objext \
9133 conftest
$ac_exeext conftest.
$ac_ext
9135 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9136 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9137 if test `eval echo '${'$as_ac_var'}'` = yes; then
9138 cat >>confdefs.h
<<_ACEOF
9139 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9147 if test "${window_system}" = "x11"; then
9148 echo "$as_me:$LINENO: checking X11 version 6" >&5
9149 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6
9150 if test "${emacs_cv_x11_version_6+set}" = set; then
9151 echo $ECHO_N "(cached) $ECHO_C" >&6
9153 cat >conftest.
$ac_ext <<_ACEOF
9156 cat confdefs.h
>>conftest.
$ac_ext
9157 cat >>conftest.
$ac_ext <<_ACEOF
9158 /* end confdefs.h. */
9159 #include <X11/Xlib.h>
9163 #if XlibSpecificationRelease < 6
9171 rm -f conftest.
$ac_objext conftest
$ac_exeext
9172 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9173 (eval $ac_link) 2>conftest.er1
9175 grep -v '^ *+' conftest.er1
>conftest.err
9177 cat conftest.err
>&5
9178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9179 (exit $ac_status); } &&
9180 { ac_try
='test -z "$ac_c_werror_flag"
9181 || test ! -s conftest.err'
9182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9186 (exit $ac_status); }; } &&
9187 { ac_try
='test -s conftest$ac_exeext'
9188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9192 (exit $ac_status); }; }; then
9193 emacs_cv_x11_version_6
=yes
9195 echo "$as_me: failed program was:" >&5
9196 sed 's/^/| /' conftest.
$ac_ext >&5
9198 emacs_cv_x11_version_6
=no
9200 rm -f conftest.err conftest.
$ac_objext \
9201 conftest
$ac_exeext conftest.
$ac_ext
9204 if test $emacs_cv_x11_version_6 = yes; then
9205 echo "$as_me:$LINENO: result: 6 or newer" >&5
9206 echo "${ECHO_T}6 or newer" >&6
9208 cat >>confdefs.h
<<\_ACEOF
9209 #define HAVE_X11R6 1
9213 echo "$as_me:$LINENO: result: before 6" >&5
9214 echo "${ECHO_T}before 6" >&6
9218 if test "${window_system}" = "x11"; then
9219 echo "$as_me:$LINENO: checking X11 version 5" >&5
9220 echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6
9221 if test "${emacs_cv_x11_version_5+set}" = set; then
9222 echo $ECHO_N "(cached) $ECHO_C" >&6
9224 cat >conftest.
$ac_ext <<_ACEOF
9227 cat confdefs.h
>>conftest.
$ac_ext
9228 cat >>conftest.
$ac_ext <<_ACEOF
9229 /* end confdefs.h. */
9230 #include <X11/Xlib.h>
9234 #if XlibSpecificationRelease < 5
9242 rm -f conftest.
$ac_objext conftest
$ac_exeext
9243 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9244 (eval $ac_link) 2>conftest.er1
9246 grep -v '^ *+' conftest.er1
>conftest.err
9248 cat conftest.err
>&5
9249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9250 (exit $ac_status); } &&
9251 { ac_try
='test -z "$ac_c_werror_flag"
9252 || test ! -s conftest.err'
9253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9257 (exit $ac_status); }; } &&
9258 { ac_try
='test -s conftest$ac_exeext'
9259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9263 (exit $ac_status); }; }; then
9264 emacs_cv_x11_version_5
=yes
9266 echo "$as_me: failed program was:" >&5
9267 sed 's/^/| /' conftest.
$ac_ext >&5
9269 emacs_cv_x11_version_5
=no
9271 rm -f conftest.err conftest.
$ac_objext \
9272 conftest
$ac_exeext conftest.
$ac_ext
9275 if test $emacs_cv_x11_version_5 = yes; then
9276 echo "$as_me:$LINENO: result: 5 or newer" >&5
9277 echo "${ECHO_T}5 or newer" >&6
9280 cat >>confdefs.h
<<\_ACEOF
9281 #define HAVE_X11R5 1
9286 echo "$as_me:$LINENO: result: before 5" >&5
9287 echo "${ECHO_T}before 5" >&6
9294 if test "${with_gtk}" = "yes" ||
test "$USE_X_TOOLKIT" = "gtk"; then
9295 if test "$USE_X_TOOLKIT" != "none" && test "$USE_X_TOOLKIT" != "maybe"; then
9296 { { echo "$as_me:$LINENO: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&5
9297 echo "$as_me: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&2;}
9298 { (exit 1); exit 1; }; };
9302 GTK_MODULES
="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
9304 if test "X${with_pkg_config_prog}" != X
; then
9305 PKG_CONFIG
="${with_pkg_config_prog}"
9310 if test -z "$PKG_CONFIG"; then
9311 # Extract the first word of "pkg-config", so it can be a program name with args.
9312 set dummy pkg-config
; ac_word
=$2
9313 echo "$as_me:$LINENO: checking for $ac_word" >&5
9314 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9315 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
9316 echo $ECHO_N "(cached) $ECHO_C" >&6
9320 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
9323 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9327 test -z "$as_dir" && as_dir
=.
9328 for ac_exec_ext
in '' $ac_executable_extensions; do
9329 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9330 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
9331 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9337 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
9341 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
9343 if test -n "$PKG_CONFIG"; then
9344 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
9345 echo "${ECHO_T}$PKG_CONFIG" >&6
9347 echo "$as_me:$LINENO: result: no" >&5
9348 echo "${ECHO_T}no" >&6
9353 if test "$PKG_CONFIG" = "no" ; then
9354 echo "*** The pkg-config script could not be found. Make sure it is"
9355 echo "*** in your path, or give the full path to pkg-config with"
9356 echo "*** the PKG_CONFIG environment variable or --with-pkg-config-prog."
9357 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
9359 PKG_CONFIG_MIN_VERSION
=0.9.0
9360 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9361 echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
9362 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6
9364 if $PKG_CONFIG --exists "$GTK_MODULES" ; then
9365 echo "$as_me:$LINENO: result: yes" >&5
9366 echo "${ECHO_T}yes" >&6
9369 echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
9370 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6
9371 GTK_CFLAGS
=`$PKG_CONFIG --cflags "$GTK_MODULES"`
9372 echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
9373 echo "${ECHO_T}$GTK_CFLAGS" >&6
9375 echo "$as_me:$LINENO: checking GTK_LIBS" >&5
9376 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6
9377 GTK_LIBS
=`$PKG_CONFIG --libs "$GTK_MODULES"`
9378 echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
9379 echo "${ECHO_T}$GTK_LIBS" >&6
9383 ## If we have a custom action on failure, don't print errors, but
9384 ## do set a variable so people can do so.
9385 GTK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
9386 echo $GTK_PKG_ERRORS
9392 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9393 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9397 if test $succeeded = yes; then
9400 { { echo "$as_me:$LINENO: error: Library requirements ($GTK_MODULES) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
9401 echo "$as_me: error: Library requirements ($GTK_MODULES) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
9402 { (exit 1); exit 1; }; }
9407 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $GTK_CFLAGS"
9408 CFLAGS
="$CFLAGS $GTK_CFLAGS"
9409 LIBS
="$GTK_LIBS $LIBS"
9412 cat >>confdefs.h
<<\_ACEOF
9418 with_toolkit_scroll_bars
=yes
9420 HAVE_GTK_MULTIDISPLAY
=no
9422 for ac_func
in gdk_display_open
9424 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9425 echo "$as_me:$LINENO: checking for $ac_func" >&5
9426 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9427 if eval "test \"\${$as_ac_var+set}\" = set"; then
9428 echo $ECHO_N "(cached) $ECHO_C" >&6
9430 cat >conftest.
$ac_ext <<_ACEOF
9433 cat confdefs.h
>>conftest.
$ac_ext
9434 cat >>conftest.
$ac_ext <<_ACEOF
9435 /* end confdefs.h. */
9436 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9437 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9438 #define $ac_func innocuous_$ac_func
9440 /* System header to define __stub macros and hopefully few prototypes,
9441 which can conflict with char $ac_func (); below.
9442 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9443 <limits.h> exists even on freestanding compilers. */
9446 # include <limits.h>
9448 # include <assert.h>
9453 /* Override any gcc2 internal prototype to avoid an error. */
9458 /* We use char because int might match the return type of a gcc2
9459 builtin and then its argument prototype would still apply. */
9461 /* The GNU C library defines this for functions which it implements
9462 to always fail with ENOSYS. Some functions are actually named
9463 something starting with __ and the normal name is an alias. */
9464 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9467 char (*f) () = $ac_func;
9476 return f != $ac_func;
9481 rm -f conftest.
$ac_objext conftest
$ac_exeext
9482 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9483 (eval $ac_link) 2>conftest.er1
9485 grep -v '^ *+' conftest.er1
>conftest.err
9487 cat conftest.err
>&5
9488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9489 (exit $ac_status); } &&
9490 { ac_try
='test -z "$ac_c_werror_flag"
9491 || test ! -s conftest.err'
9492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9496 (exit $ac_status); }; } &&
9497 { ac_try
='test -s conftest$ac_exeext'
9498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9502 (exit $ac_status); }; }; then
9503 eval "$as_ac_var=yes"
9505 echo "$as_me: failed program was:" >&5
9506 sed 's/^/| /' conftest.
$ac_ext >&5
9508 eval "$as_ac_var=no"
9510 rm -f conftest.err conftest.
$ac_objext \
9511 conftest
$ac_exeext conftest.
$ac_ext
9513 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9514 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9515 if test `eval echo '${'$as_ac_var'}'` = yes; then
9516 cat >>confdefs.h
<<_ACEOF
9517 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9519 HAVE_GTK_MULTIDISPLAY
=yes
9523 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
9525 cat >>confdefs.h
<<\_ACEOF
9526 #define HAVE_GTK_MULTIDISPLAY 1
9532 if test x
"${USE_X_TOOLKIT}" = xmaybe
; then
9533 if test x
"${HAVE_X11R5}" = xyes
; then
9534 echo "$as_me:$LINENO: checking X11 version 5 with Xaw" >&5
9535 echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6
9536 if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then
9537 echo $ECHO_N "(cached) $ECHO_C" >&6
9539 cat >conftest.
$ac_ext <<_ACEOF
9542 cat confdefs.h
>>conftest.
$ac_ext
9543 cat >>conftest.
$ac_ext <<_ACEOF
9544 /* end confdefs.h. */
9546 #include <X11/Intrinsic.h>
9547 #include <X11/Xaw/Simple.h>
9556 rm -f conftest.
$ac_objext conftest
$ac_exeext
9557 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9558 (eval $ac_link) 2>conftest.er1
9560 grep -v '^ *+' conftest.er1
>conftest.err
9562 cat conftest.err
>&5
9563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9564 (exit $ac_status); } &&
9565 { ac_try
='test -z "$ac_c_werror_flag"
9566 || test ! -s conftest.err'
9567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9571 (exit $ac_status); }; } &&
9572 { ac_try
='test -s conftest$ac_exeext'
9573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9577 (exit $ac_status); }; }; then
9578 emacs_cv_x11_version_5_with_xaw
=yes
9580 echo "$as_me: failed program was:" >&5
9581 sed 's/^/| /' conftest.
$ac_ext >&5
9583 emacs_cv_x11_version_5_with_xaw
=no
9585 rm -f conftest.err conftest.
$ac_objext \
9586 conftest
$ac_exeext conftest.
$ac_ext
9589 if test $emacs_cv_x11_version_5_with_xaw = yes; then
9590 echo "$as_me:$LINENO: result: 5 or newer, with Xaw; use toolkit by default" >&5
9591 echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6
9594 echo "$as_me:$LINENO: result: before 5 or no Xaw; do not use toolkit by default" >&5
9595 echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6
9603 X_TOOLKIT_TYPE
=$USE_X_TOOLKIT
9605 if test "${USE_X_TOOLKIT}" != "none"; then
9606 echo "$as_me:$LINENO: checking X11 toolkit version" >&5
9607 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6
9608 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
9609 echo $ECHO_N "(cached) $ECHO_C" >&6
9611 cat >conftest.
$ac_ext <<_ACEOF
9614 cat confdefs.h
>>conftest.
$ac_ext
9615 cat >>conftest.
$ac_ext <<_ACEOF
9616 /* end confdefs.h. */
9617 #include <X11/Intrinsic.h>
9621 #if XtSpecificationRelease < 6
9629 rm -f conftest.
$ac_objext conftest
$ac_exeext
9630 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9631 (eval $ac_link) 2>conftest.er1
9633 grep -v '^ *+' conftest.er1
>conftest.err
9635 cat conftest.err
>&5
9636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9637 (exit $ac_status); } &&
9638 { ac_try
='test -z "$ac_c_werror_flag"
9639 || test ! -s conftest.err'
9640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9644 (exit $ac_status); }; } &&
9645 { ac_try
='test -s conftest$ac_exeext'
9646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9650 (exit $ac_status); }; }; then
9651 emacs_cv_x11_toolkit_version_6
=yes
9653 echo "$as_me: failed program was:" >&5
9654 sed 's/^/| /' conftest.
$ac_ext >&5
9656 emacs_cv_x11_toolkit_version_6
=no
9658 rm -f conftest.err conftest.
$ac_objext \
9659 conftest
$ac_exeext conftest.
$ac_ext
9662 HAVE_X11XTR6
=$emacs_cv_x11_toolkit_version_6
9663 if test $emacs_cv_x11_toolkit_version_6 = yes; then
9664 echo "$as_me:$LINENO: result: 6 or newer" >&5
9665 echo "${ECHO_T}6 or newer" >&6
9667 cat >>confdefs.h
<<\_ACEOF
9668 #define HAVE_X11XTR6 1
9672 echo "$as_me:$LINENO: result: before 6" >&5
9673 echo "${ECHO_T}before 6" >&6
9677 if test x
$HAVE_X11XTR6 = xyes
; then
9678 LIBS
="-lXt -lSM -lICE $LIBS"
9683 echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
9684 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6
9685 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
9686 echo $ECHO_N "(cached) $ECHO_C" >&6
9688 ac_check_lib_save_LIBS
=$LIBS
9690 cat >conftest.
$ac_ext <<_ACEOF
9693 cat confdefs.h
>>conftest.
$ac_ext
9694 cat >>conftest.
$ac_ext <<_ACEOF
9695 /* end confdefs.h. */
9697 /* Override any gcc2 internal prototype to avoid an error. */
9701 /* We use char because int might match the return type of a gcc2
9702 builtin and then its argument prototype would still apply. */
9703 char XmuConvertStandardSelection ();
9707 XmuConvertStandardSelection ();
9712 rm -f conftest.
$ac_objext conftest
$ac_exeext
9713 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9714 (eval $ac_link) 2>conftest.er1
9716 grep -v '^ *+' conftest.er1
>conftest.err
9718 cat conftest.err
>&5
9719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9720 (exit $ac_status); } &&
9721 { ac_try
='test -z "$ac_c_werror_flag"
9722 || test ! -s conftest.err'
9723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9727 (exit $ac_status); }; } &&
9728 { ac_try
='test -s conftest$ac_exeext'
9729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9733 (exit $ac_status); }; }; then
9734 ac_cv_lib_Xmu_XmuConvertStandardSelection
=yes
9736 echo "$as_me: failed program was:" >&5
9737 sed 's/^/| /' conftest.
$ac_ext >&5
9739 ac_cv_lib_Xmu_XmuConvertStandardSelection
=no
9741 rm -f conftest.err conftest.
$ac_objext \
9742 conftest
$ac_exeext conftest.
$ac_ext
9743 LIBS
=$ac_check_lib_save_LIBS
9745 echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
9746 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6
9747 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
9748 cat >>confdefs.h
<<_ACEOF
9749 #define HAVE_LIBXMU 1
9756 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no
&& LIBS
="$OLDLIBS"
9759 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
9760 if test "${HAVE_X11}" = "yes"; then
9761 if test "${USE_X_TOOLKIT}" != "none"; then
9763 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
9764 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
9765 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
9766 echo $ECHO_N "(cached) $ECHO_C" >&6
9768 ac_check_lib_save_LIBS
=$LIBS
9770 cat >conftest.
$ac_ext <<_ACEOF
9773 cat confdefs.h
>>conftest.
$ac_ext
9774 cat >>conftest.
$ac_ext <<_ACEOF
9775 /* end confdefs.h. */
9777 /* Override any gcc2 internal prototype to avoid an error. */
9781 /* We use char because int might match the return type of a gcc2
9782 builtin and then its argument prototype would still apply. */
9783 char XShapeQueryExtension ();
9787 XShapeQueryExtension ();
9792 rm -f conftest.
$ac_objext conftest
$ac_exeext
9793 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9794 (eval $ac_link) 2>conftest.er1
9796 grep -v '^ *+' conftest.er1
>conftest.err
9798 cat conftest.err
>&5
9799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9800 (exit $ac_status); } &&
9801 { ac_try
='test -z "$ac_c_werror_flag"
9802 || test ! -s conftest.err'
9803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9807 (exit $ac_status); }; } &&
9808 { ac_try
='test -s conftest$ac_exeext'
9809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9813 (exit $ac_status); }; }; then
9814 ac_cv_lib_Xext_XShapeQueryExtension
=yes
9816 echo "$as_me: failed program was:" >&5
9817 sed 's/^/| /' conftest.
$ac_ext >&5
9819 ac_cv_lib_Xext_XShapeQueryExtension
=no
9821 rm -f conftest.err conftest.
$ac_objext \
9822 conftest
$ac_exeext conftest.
$ac_ext
9823 LIBS
=$ac_check_lib_save_LIBS
9825 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
9826 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
9827 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
9828 cat >>confdefs.h
<<_ACEOF
9829 #define HAVE_LIBXEXT 1
9839 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
9840 echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
9841 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6
9842 if test "${emacs_cv_lesstif+set}" = set; then
9843 echo $ECHO_N "(cached) $ECHO_C" >&6
9845 # We put this in CFLAGS temporarily to precede other -I options
9846 # that might be in CFLAGS temporarily.
9847 # We put this in CPPFLAGS where it precedes the other -I options.
9848 OLD_CPPFLAGS
=$CPPFLAGS
9850 CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
9851 CFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
9852 cat >conftest.
$ac_ext <<_ACEOF
9855 cat confdefs.h
>>conftest.
$ac_ext
9856 cat >>conftest.
$ac_ext <<_ACEOF
9857 /* end confdefs.h. */
9858 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
9867 rm -f conftest.
$ac_objext
9868 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9869 (eval $ac_compile) 2>conftest.er1
9871 grep -v '^ *+' conftest.er1
>conftest.err
9873 cat conftest.err
>&5
9874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9875 (exit $ac_status); } &&
9876 { ac_try
='test -z "$ac_c_werror_flag"
9877 || test ! -s conftest.err'
9878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9882 (exit $ac_status); }; } &&
9883 { ac_try
='test -s conftest.$ac_objext'
9884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9888 (exit $ac_status); }; }; then
9889 emacs_cv_lesstif
=yes
9891 echo "$as_me: failed program was:" >&5
9892 sed 's/^/| /' conftest.
$ac_ext >&5
9896 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9898 echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
9899 echo "${ECHO_T}$emacs_cv_lesstif" >&6
9900 if test $emacs_cv_lesstif = yes; then
9901 # Make sure this -I option remains in CPPFLAGS after it is set
9902 # back to REAL_CPPFLAGS.
9903 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
9904 # have those other -I options anyway. Ultimately, having this
9905 # directory ultimately in CPPFLAGS will be enough.
9906 REAL_CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
9907 LDFLAGS
="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
9910 CPPFLAGS
=$OLD_CPPFLAGS
9912 echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
9913 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6
9914 if test "${emacs_cv_motif_version_2_1+set}" = set; then
9915 echo $ECHO_N "(cached) $ECHO_C" >&6
9917 cat >conftest.
$ac_ext <<_ACEOF
9920 cat confdefs.h
>>conftest.
$ac_ext
9921 cat >>conftest.
$ac_ext <<_ACEOF
9922 /* end confdefs.h. */
9927 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
9930 Motif version prior to 2.1.
9936 rm -f conftest.
$ac_objext
9937 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9938 (eval $ac_compile) 2>conftest.er1
9940 grep -v '^ *+' conftest.er1
>conftest.err
9942 cat conftest.err
>&5
9943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9944 (exit $ac_status); } &&
9945 { ac_try
='test -z "$ac_c_werror_flag"
9946 || test ! -s conftest.err'
9947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9951 (exit $ac_status); }; } &&
9952 { ac_try
='test -s conftest.$ac_objext'
9953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9957 (exit $ac_status); }; }; then
9958 emacs_cv_motif_version_2_1
=yes
9960 echo "$as_me: failed program was:" >&5
9961 sed 's/^/| /' conftest.
$ac_ext >&5
9963 emacs_cv_motif_version_2_1
=no
9965 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9967 echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
9968 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6
9969 HAVE_MOTIF_2_1
=$emacs_cv_motif_version_2_1
9970 if test $emacs_cv_motif_version_2_1 = yes; then
9973 cat >>confdefs.h
<<\_ACEOF
9974 #define HAVE_MOTIF_2_1 1
9977 echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
9978 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6
9979 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
9980 echo $ECHO_N "(cached) $ECHO_C" >&6
9982 ac_check_lib_save_LIBS
=$LIBS
9984 cat >conftest.
$ac_ext <<_ACEOF
9987 cat confdefs.h
>>conftest.
$ac_ext
9988 cat >>conftest.
$ac_ext <<_ACEOF
9989 /* end confdefs.h. */
9991 /* Override any gcc2 internal prototype to avoid an error. */
9995 /* We use char because int might match the return type of a gcc2
9996 builtin and then its argument prototype would still apply. */
9997 char XpCreateContext ();
10001 XpCreateContext ();
10006 rm -f conftest.
$ac_objext conftest
$ac_exeext
10007 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10008 (eval $ac_link) 2>conftest.er1
10010 grep -v '^ *+' conftest.er1
>conftest.err
10012 cat conftest.err
>&5
10013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10014 (exit $ac_status); } &&
10015 { ac_try
='test -z "$ac_c_werror_flag"
10016 || test ! -s conftest.err'
10017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10018 (eval $ac_try) 2>&5
10020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10021 (exit $ac_status); }; } &&
10022 { ac_try
='test -s conftest$ac_exeext'
10023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10024 (eval $ac_try) 2>&5
10026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10027 (exit $ac_status); }; }; then
10028 ac_cv_lib_Xp_XpCreateContext
=yes
10030 echo "$as_me: failed program was:" >&5
10031 sed 's/^/| /' conftest.
$ac_ext >&5
10033 ac_cv_lib_Xp_XpCreateContext
=no
10035 rm -f conftest.err conftest.
$ac_objext \
10036 conftest
$ac_exeext conftest.
$ac_ext
10037 LIBS
=$ac_check_lib_save_LIBS
10039 echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
10040 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6
10041 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
10045 if test ${HAVE_LIBXP} = yes; then
10047 cat >>confdefs.h
<<\_ACEOF
10048 #define HAVE_LIBXP 1
10055 ### Is -lXaw3d available?
10057 if test "${HAVE_X11}" = "yes"; then
10058 if test "${USE_X_TOOLKIT}" != "none"; then
10059 echo "$as_me:$LINENO: checking for X11/Xaw3d/Scrollbar.h" >&5
10060 echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6
10061 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
10062 echo $ECHO_N "(cached) $ECHO_C" >&6
10064 cat >conftest.
$ac_ext <<_ACEOF
10067 cat confdefs.h
>>conftest.
$ac_ext
10068 cat >>conftest.
$ac_ext <<_ACEOF
10069 /* end confdefs.h. */
10070 #include <X11/Xaw3d/Scrollbar.h>
10072 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10073 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
10075 grep -v '^ *+' conftest.er1
>conftest.err
10077 cat conftest.err
>&5
10078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10079 (exit $ac_status); } >/dev
/null
; then
10080 if test -s conftest.err
; then
10081 ac_cpp_err
=$ac_c_preproc_warn_flag
10082 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
10089 if test -z "$ac_cpp_err"; then
10090 ac_cv_header_X11_Xaw3d_Scrollbar_h
=yes
10092 echo "$as_me: failed program was:" >&5
10093 sed 's/^/| /' conftest.
$ac_ext >&5
10095 ac_cv_header_X11_Xaw3d_Scrollbar_h
=no
10097 rm -f conftest.err conftest.
$ac_ext
10099 echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
10100 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6
10101 if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then
10102 echo "$as_me:$LINENO: checking for XawScrollbarSetThumb in -lXaw3d" >&5
10103 echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6
10104 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then
10105 echo $ECHO_N "(cached) $ECHO_C" >&6
10107 ac_check_lib_save_LIBS
=$LIBS
10108 LIBS
="-lXaw3d $LIBS"
10109 cat >conftest.
$ac_ext <<_ACEOF
10112 cat confdefs.h
>>conftest.
$ac_ext
10113 cat >>conftest.
$ac_ext <<_ACEOF
10114 /* end confdefs.h. */
10116 /* Override any gcc2 internal prototype to avoid an error. */
10120 /* We use char because int might match the return type of a gcc2
10121 builtin and then its argument prototype would still apply. */
10122 char XawScrollbarSetThumb ();
10126 XawScrollbarSetThumb ();
10131 rm -f conftest.
$ac_objext conftest
$ac_exeext
10132 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10133 (eval $ac_link) 2>conftest.er1
10135 grep -v '^ *+' conftest.er1
>conftest.err
10137 cat conftest.err
>&5
10138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10139 (exit $ac_status); } &&
10140 { ac_try
='test -z "$ac_c_werror_flag"
10141 || test ! -s conftest.err'
10142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10143 (eval $ac_try) 2>&5
10145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10146 (exit $ac_status); }; } &&
10147 { ac_try
='test -s conftest$ac_exeext'
10148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10149 (eval $ac_try) 2>&5
10151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10152 (exit $ac_status); }; }; then
10153 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=yes
10155 echo "$as_me: failed program was:" >&5
10156 sed 's/^/| /' conftest.
$ac_ext >&5
10158 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=no
10160 rm -f conftest.err conftest.
$ac_objext \
10161 conftest
$ac_exeext conftest.
$ac_ext
10162 LIBS
=$ac_check_lib_save_LIBS
10164 echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
10165 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6
10166 if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then
10173 if test "${HAVE_XAW3D}" = "yes"; then
10175 cat >>confdefs.h
<<\_ACEOF
10176 #define HAVE_XAW3D 1
10185 USE_TOOLKIT_SCROLL_BARS
=no
10186 if test "${with_toolkit_scroll_bars}" != "no"; then
10187 if test "${USE_X_TOOLKIT}" != "none"; then
10188 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
10189 cat >>confdefs.h
<<\_ACEOF
10190 #define USE_TOOLKIT_SCROLL_BARS 1
10194 USE_TOOLKIT_SCROLL_BARS
=yes
10195 elif test "${HAVE_XAW3D}" = "yes"; then
10196 cat >>confdefs.h
<<\_ACEOF
10197 #define USE_TOOLKIT_SCROLL_BARS 1
10200 USE_TOOLKIT_SCROLL_BARS
=yes
10202 elif test "${HAVE_GTK}" = "yes"; then
10203 cat >>confdefs.h
<<\_ACEOF
10204 #define USE_TOOLKIT_SCROLL_BARS 1
10207 USE_TOOLKIT_SCROLL_BARS
=yes
10211 cat >conftest.
$ac_ext <<_ACEOF
10214 cat confdefs.h
>>conftest.
$ac_ext
10215 cat >>conftest.
$ac_ext <<_ACEOF
10216 /* end confdefs.h. */
10218 #include <X11/Xlib.h>
10219 #include <X11/Xresource.h>
10228 rm -f conftest.
$ac_objext
10229 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10230 (eval $ac_compile) 2>conftest.er1
10232 grep -v '^ *+' conftest.er1
>conftest.err
10234 cat conftest.err
>&5
10235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10236 (exit $ac_status); } &&
10237 { ac_try
='test -z "$ac_c_werror_flag"
10238 || test ! -s conftest.err'
10239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10240 (eval $ac_try) 2>&5
10242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10243 (exit $ac_status); }; } &&
10244 { ac_try
='test -s conftest.$ac_objext'
10245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10246 (eval $ac_try) 2>&5
10248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10249 (exit $ac_status); }; }; then
10252 cat >>confdefs.h
<<\_ACEOF
10257 echo "$as_me: failed program was:" >&5
10258 sed 's/^/| /' conftest.
$ac_ext >&5
10262 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10265 if test "${with_xim}" != "no"; then
10267 cat >>confdefs.h
<<\_ACEOF
10274 if test "${HAVE_XIM}" != "no"; then
10275 late_CFLAGS
=$CFLAGS
10276 if test "$GCC" = yes; then
10277 CFLAGS
="$CFLAGS --pedantic-errors"
10279 cat >conftest.
$ac_ext <<_ACEOF
10282 cat confdefs.h
>>conftest.
$ac_ext
10283 cat >>conftest.
$ac_ext <<_ACEOF
10284 /* end confdefs.h. */
10286 #include <X11/Xlib.h>
10287 #include <X11/Xresource.h>
10296 XPointer *client_data;
10298 /* If we're not using GCC, it's probably not XFree86, and this is
10299 probably right, but we can't use something like --pedantic-errors. */
10300 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
10301 char*, XIMProc, XPointer*);
10303 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
10309 rm -f conftest.
$ac_objext
10310 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10311 (eval $ac_compile) 2>conftest.er1
10313 grep -v '^ *+' conftest.er1
>conftest.err
10315 cat conftest.err
>&5
10316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10317 (exit $ac_status); } &&
10318 { ac_try
='test -z "$ac_c_werror_flag"
10319 || test ! -s conftest.err'
10320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10321 (eval $ac_try) 2>&5
10323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10324 (exit $ac_status); }; } &&
10325 { ac_try
='test -s conftest.$ac_objext'
10326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10327 (eval $ac_try) 2>&5
10329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10330 (exit $ac_status); }; }; then
10331 emacs_cv_arg6_star
=yes
10333 echo "$as_me: failed program was:" >&5
10334 sed 's/^/| /' conftest.
$ac_ext >&5
10337 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10339 if test "$emacs_cv_arg6_star" = yes; then
10340 cat >>confdefs.h
<<\_ACEOF
10341 #define XRegisterIMInstantiateCallback_arg6 XPointer*
10345 cat >>confdefs.h
<<\_ACEOF
10346 #define XRegisterIMInstantiateCallback_arg6 XPointer
10350 CFLAGS
=$late_CFLAGS
10353 ### Use -lXpm if available, unless `--with-xpm=no'.
10355 if test "${HAVE_X11}" = "yes"; then
10356 if test "${with_xpm}" != "no"; then
10357 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
10358 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
10359 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
10360 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
10361 echo $ECHO_N "(cached) $ECHO_C" >&6
10363 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
10364 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
10366 # Is the header compilable?
10367 echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
10368 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6
10369 cat >conftest.
$ac_ext <<_ACEOF
10372 cat confdefs.h
>>conftest.
$ac_ext
10373 cat >>conftest.
$ac_ext <<_ACEOF
10374 /* end confdefs.h. */
10375 $ac_includes_default
10376 #include <X11/xpm.h>
10378 rm -f conftest.
$ac_objext
10379 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10380 (eval $ac_compile) 2>conftest.er1
10382 grep -v '^ *+' conftest.er1
>conftest.err
10384 cat conftest.err
>&5
10385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10386 (exit $ac_status); } &&
10387 { ac_try
='test -z "$ac_c_werror_flag"
10388 || test ! -s conftest.err'
10389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10390 (eval $ac_try) 2>&5
10392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10393 (exit $ac_status); }; } &&
10394 { ac_try
='test -s conftest.$ac_objext'
10395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10396 (eval $ac_try) 2>&5
10398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10399 (exit $ac_status); }; }; then
10400 ac_header_compiler
=yes
10402 echo "$as_me: failed program was:" >&5
10403 sed 's/^/| /' conftest.
$ac_ext >&5
10405 ac_header_compiler
=no
10407 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10408 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10409 echo "${ECHO_T}$ac_header_compiler" >&6
10411 # Is the header present?
10412 echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
10413 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6
10414 cat >conftest.
$ac_ext <<_ACEOF
10417 cat confdefs.h
>>conftest.
$ac_ext
10418 cat >>conftest.
$ac_ext <<_ACEOF
10419 /* end confdefs.h. */
10420 #include <X11/xpm.h>
10422 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10423 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
10425 grep -v '^ *+' conftest.er1
>conftest.err
10427 cat conftest.err
>&5
10428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10429 (exit $ac_status); } >/dev
/null
; then
10430 if test -s conftest.err
; then
10431 ac_cpp_err
=$ac_c_preproc_warn_flag
10432 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
10439 if test -z "$ac_cpp_err"; then
10440 ac_header_preproc
=yes
10442 echo "$as_me: failed program was:" >&5
10443 sed 's/^/| /' conftest.
$ac_ext >&5
10445 ac_header_preproc
=no
10447 rm -f conftest.err conftest.
$ac_ext
10448 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10449 echo "${ECHO_T}$ac_header_preproc" >&6
10451 # So? What about this header?
10452 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10454 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
10455 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10456 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
10457 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
10458 ac_header_preproc
=yes
10461 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
10462 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
10463 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
10464 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
10465 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
10466 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
10467 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
10468 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
10469 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
10470 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
10471 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
10472 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
10475 ## ------------------------------------------ ##
10476 ## Report this to the AC_PACKAGE_NAME lists. ##
10477 ## ------------------------------------------ ##
10480 sed "s/^/$as_me: WARNING: /" >&2
10483 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
10484 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
10485 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
10486 echo $ECHO_N "(cached) $ECHO_C" >&6
10488 ac_cv_header_X11_xpm_h
=$ac_header_preproc
10490 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
10491 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
10494 if test $ac_cv_header_X11_xpm_h = yes; then
10495 echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
10496 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6
10497 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
10498 echo $ECHO_N "(cached) $ECHO_C" >&6
10500 ac_check_lib_save_LIBS
=$LIBS
10501 LIBS
="-lXpm -lX11 $LIBS"
10502 cat >conftest.
$ac_ext <<_ACEOF
10505 cat confdefs.h
>>conftest.
$ac_ext
10506 cat >>conftest.
$ac_ext <<_ACEOF
10507 /* end confdefs.h. */
10509 /* Override any gcc2 internal prototype to avoid an error. */
10513 /* We use char because int might match the return type of a gcc2
10514 builtin and then its argument prototype would still apply. */
10515 char XpmReadFileToPixmap ();
10519 XpmReadFileToPixmap ();
10524 rm -f conftest.
$ac_objext conftest
$ac_exeext
10525 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10526 (eval $ac_link) 2>conftest.er1
10528 grep -v '^ *+' conftest.er1
>conftest.err
10530 cat conftest.err
>&5
10531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10532 (exit $ac_status); } &&
10533 { ac_try
='test -z "$ac_c_werror_flag"
10534 || test ! -s conftest.err'
10535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10536 (eval $ac_try) 2>&5
10538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10539 (exit $ac_status); }; } &&
10540 { ac_try
='test -s conftest$ac_exeext'
10541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10542 (eval $ac_try) 2>&5
10544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10545 (exit $ac_status); }; }; then
10546 ac_cv_lib_Xpm_XpmReadFileToPixmap
=yes
10548 echo "$as_me: failed program was:" >&5
10549 sed 's/^/| /' conftest.
$ac_ext >&5
10551 ac_cv_lib_Xpm_XpmReadFileToPixmap
=no
10553 rm -f conftest.err conftest.
$ac_objext \
10554 conftest
$ac_exeext conftest.
$ac_ext
10555 LIBS
=$ac_check_lib_save_LIBS
10557 echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
10558 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6
10559 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
10566 if test "${HAVE_XPM}" = "yes"; then
10567 echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
10568 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6
10569 cat >conftest.
$ac_ext <<_ACEOF
10572 cat confdefs.h
>>conftest.
$ac_ext
10573 cat >>conftest.
$ac_ext <<_ACEOF
10574 /* end confdefs.h. */
10575 #include "X11/xpm.h"
10576 #ifndef XpmReturnAllocPixels
10577 no_return_alloc_pixels
10581 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10582 $EGREP "no_return_alloc_pixels" >/dev
/null
2>&1; then
10590 if test "${HAVE_XPM}" = "yes"; then
10591 echo "$as_me:$LINENO: result: yes" >&5
10592 echo "${ECHO_T}yes" >&6
10594 echo "$as_me:$LINENO: result: no" >&5
10595 echo "${ECHO_T}no" >&6
10600 if test "${HAVE_XPM}" = "yes"; then
10602 cat >>confdefs.h
<<\_ACEOF
10609 ### Use -ljpeg if available, unless `--with-jpeg=no'.
10611 if test "${HAVE_X11}" = "yes"; then
10612 if test "${with_jpeg}" != "no"; then
10613 if test "${ac_cv_header_jerror_h+set}" = set; then
10614 echo "$as_me:$LINENO: checking for jerror.h" >&5
10615 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
10616 if test "${ac_cv_header_jerror_h+set}" = set; then
10617 echo $ECHO_N "(cached) $ECHO_C" >&6
10619 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
10620 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
10622 # Is the header compilable?
10623 echo "$as_me:$LINENO: checking jerror.h usability" >&5
10624 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6
10625 cat >conftest.
$ac_ext <<_ACEOF
10628 cat confdefs.h
>>conftest.
$ac_ext
10629 cat >>conftest.
$ac_ext <<_ACEOF
10630 /* end confdefs.h. */
10631 $ac_includes_default
10632 #include <jerror.h>
10634 rm -f conftest.
$ac_objext
10635 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10636 (eval $ac_compile) 2>conftest.er1
10638 grep -v '^ *+' conftest.er1
>conftest.err
10640 cat conftest.err
>&5
10641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10642 (exit $ac_status); } &&
10643 { ac_try
='test -z "$ac_c_werror_flag"
10644 || test ! -s conftest.err'
10645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10646 (eval $ac_try) 2>&5
10648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10649 (exit $ac_status); }; } &&
10650 { ac_try
='test -s conftest.$ac_objext'
10651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10652 (eval $ac_try) 2>&5
10654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10655 (exit $ac_status); }; }; then
10656 ac_header_compiler
=yes
10658 echo "$as_me: failed program was:" >&5
10659 sed 's/^/| /' conftest.
$ac_ext >&5
10661 ac_header_compiler
=no
10663 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10664 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10665 echo "${ECHO_T}$ac_header_compiler" >&6
10667 # Is the header present?
10668 echo "$as_me:$LINENO: checking jerror.h presence" >&5
10669 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6
10670 cat >conftest.
$ac_ext <<_ACEOF
10673 cat confdefs.h
>>conftest.
$ac_ext
10674 cat >>conftest.
$ac_ext <<_ACEOF
10675 /* end confdefs.h. */
10676 #include <jerror.h>
10678 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10679 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
10681 grep -v '^ *+' conftest.er1
>conftest.err
10683 cat conftest.err
>&5
10684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10685 (exit $ac_status); } >/dev
/null
; then
10686 if test -s conftest.err
; then
10687 ac_cpp_err
=$ac_c_preproc_warn_flag
10688 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
10695 if test -z "$ac_cpp_err"; then
10696 ac_header_preproc
=yes
10698 echo "$as_me: failed program was:" >&5
10699 sed 's/^/| /' conftest.
$ac_ext >&5
10701 ac_header_preproc
=no
10703 rm -f conftest.err conftest.
$ac_ext
10704 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10705 echo "${ECHO_T}$ac_header_preproc" >&6
10707 # So? What about this header?
10708 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10710 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
10711 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10712 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
10713 echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
10714 ac_header_preproc
=yes
10717 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
10718 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
10719 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
10720 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
10721 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
10722 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
10723 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
10724 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
10725 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
10726 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
10727 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
10728 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
10731 ## ------------------------------------------ ##
10732 ## Report this to the AC_PACKAGE_NAME lists. ##
10733 ## ------------------------------------------ ##
10736 sed "s/^/$as_me: WARNING: /" >&2
10739 echo "$as_me:$LINENO: checking for jerror.h" >&5
10740 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
10741 if test "${ac_cv_header_jerror_h+set}" = set; then
10742 echo $ECHO_N "(cached) $ECHO_C" >&6
10744 ac_cv_header_jerror_h
=$ac_header_preproc
10746 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
10747 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
10750 if test $ac_cv_header_jerror_h = yes; then
10751 echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
10752 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6
10753 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
10754 echo $ECHO_N "(cached) $ECHO_C" >&6
10756 ac_check_lib_save_LIBS
=$LIBS
10757 LIBS
="-ljpeg $LIBS"
10758 cat >conftest.
$ac_ext <<_ACEOF
10761 cat confdefs.h
>>conftest.
$ac_ext
10762 cat >>conftest.
$ac_ext <<_ACEOF
10763 /* end confdefs.h. */
10765 /* Override any gcc2 internal prototype to avoid an error. */
10769 /* We use char because int might match the return type of a gcc2
10770 builtin and then its argument prototype would still apply. */
10771 char jpeg_destroy_compress ();
10775 jpeg_destroy_compress ();
10780 rm -f conftest.
$ac_objext conftest
$ac_exeext
10781 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10782 (eval $ac_link) 2>conftest.er1
10784 grep -v '^ *+' conftest.er1
>conftest.err
10786 cat conftest.err
>&5
10787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10788 (exit $ac_status); } &&
10789 { ac_try
='test -z "$ac_c_werror_flag"
10790 || test ! -s conftest.err'
10791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10792 (eval $ac_try) 2>&5
10794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10795 (exit $ac_status); }; } &&
10796 { ac_try
='test -s conftest$ac_exeext'
10797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10798 (eval $ac_try) 2>&5
10800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10801 (exit $ac_status); }; }; then
10802 ac_cv_lib_jpeg_jpeg_destroy_compress
=yes
10804 echo "$as_me: failed program was:" >&5
10805 sed 's/^/| /' conftest.
$ac_ext >&5
10807 ac_cv_lib_jpeg_jpeg_destroy_compress
=no
10809 rm -f conftest.err conftest.
$ac_objext \
10810 conftest
$ac_exeext conftest.
$ac_ext
10811 LIBS
=$ac_check_lib_save_LIBS
10813 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
10814 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6
10815 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
10825 if test "${HAVE_JPEG}" = "yes"; then
10826 cat >>confdefs.h
<<\_ACEOF
10827 #define HAVE_JPEG 1
10830 cat >conftest.
$ac_ext <<_ACEOF
10833 cat confdefs.h
>>conftest.
$ac_ext
10834 cat >>conftest.
$ac_ext <<_ACEOF
10835 /* end confdefs.h. */
10836 #include <jpeglib.h>
10837 version=JPEG_LIB_VERSION
10840 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10841 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev
/null
2>&1; then
10842 cat >>confdefs.h
<<\_ACEOF
10843 #define HAVE_JPEG 1
10847 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
10848 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
10856 ### Use -lpng if available, unless `--with-png=no'.
10858 if test "${HAVE_X11}" = "yes"; then
10859 if test "${with_png}" != "no"; then
10860 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
10861 # in /usr/include/libpng.
10864 for ac_header
in png.h libpng
/png.h
10866 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10867 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10868 echo "$as_me:$LINENO: checking for $ac_header" >&5
10869 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10870 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10871 echo $ECHO_N "(cached) $ECHO_C" >&6
10873 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10874 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10876 # Is the header compilable?
10877 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10878 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10879 cat >conftest.
$ac_ext <<_ACEOF
10882 cat confdefs.h
>>conftest.
$ac_ext
10883 cat >>conftest.
$ac_ext <<_ACEOF
10884 /* end confdefs.h. */
10885 $ac_includes_default
10886 #include <$ac_header>
10888 rm -f conftest.
$ac_objext
10889 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10890 (eval $ac_compile) 2>conftest.er1
10892 grep -v '^ *+' conftest.er1
>conftest.err
10894 cat conftest.err
>&5
10895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10896 (exit $ac_status); } &&
10897 { ac_try
='test -z "$ac_c_werror_flag"
10898 || test ! -s conftest.err'
10899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10900 (eval $ac_try) 2>&5
10902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10903 (exit $ac_status); }; } &&
10904 { ac_try
='test -s conftest.$ac_objext'
10905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10906 (eval $ac_try) 2>&5
10908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10909 (exit $ac_status); }; }; then
10910 ac_header_compiler
=yes
10912 echo "$as_me: failed program was:" >&5
10913 sed 's/^/| /' conftest.
$ac_ext >&5
10915 ac_header_compiler
=no
10917 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10918 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10919 echo "${ECHO_T}$ac_header_compiler" >&6
10921 # Is the header present?
10922 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10923 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10924 cat >conftest.
$ac_ext <<_ACEOF
10927 cat confdefs.h
>>conftest.
$ac_ext
10928 cat >>conftest.
$ac_ext <<_ACEOF
10929 /* end confdefs.h. */
10930 #include <$ac_header>
10932 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10933 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
10935 grep -v '^ *+' conftest.er1
>conftest.err
10937 cat conftest.err
>&5
10938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10939 (exit $ac_status); } >/dev
/null
; then
10940 if test -s conftest.err
; then
10941 ac_cpp_err
=$ac_c_preproc_warn_flag
10942 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
10949 if test -z "$ac_cpp_err"; then
10950 ac_header_preproc
=yes
10952 echo "$as_me: failed program was:" >&5
10953 sed 's/^/| /' conftest.
$ac_ext >&5
10955 ac_header_preproc
=no
10957 rm -f conftest.err conftest.
$ac_ext
10958 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10959 echo "${ECHO_T}$ac_header_preproc" >&6
10961 # So? What about this header?
10962 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10964 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10965 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10966 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10967 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10968 ac_header_preproc
=yes
10971 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10972 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10973 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10974 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10975 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10976 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10977 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10978 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10979 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10980 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10981 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10982 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10985 ## ------------------------------------------ ##
10986 ## Report this to the AC_PACKAGE_NAME lists. ##
10987 ## ------------------------------------------ ##
10990 sed "s/^/$as_me: WARNING: /" >&2
10993 echo "$as_me:$LINENO: checking for $ac_header" >&5
10994 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10995 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10996 echo $ECHO_N "(cached) $ECHO_C" >&6
10998 eval "$as_ac_Header=\$ac_header_preproc"
11000 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11001 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11004 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11005 cat >>confdefs.h
<<_ACEOF
11006 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11013 if test "$ac_cv_header_png_h" = yes ||
test "$ac_cv_header_libpng_png_h" = yes ; then
11014 echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
11015 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6
11016 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
11017 echo $ECHO_N "(cached) $ECHO_C" >&6
11019 ac_check_lib_save_LIBS
=$LIBS
11020 LIBS
="-lpng -lz -lm $LIBS"
11021 cat >conftest.
$ac_ext <<_ACEOF
11024 cat confdefs.h
>>conftest.
$ac_ext
11025 cat >>conftest.
$ac_ext <<_ACEOF
11026 /* end confdefs.h. */
11028 /* Override any gcc2 internal prototype to avoid an error. */
11032 /* We use char because int might match the return type of a gcc2
11033 builtin and then its argument prototype would still apply. */
11034 char png_get_channels ();
11038 png_get_channels ();
11043 rm -f conftest.
$ac_objext conftest
$ac_exeext
11044 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11045 (eval $ac_link) 2>conftest.er1
11047 grep -v '^ *+' conftest.er1
>conftest.err
11049 cat conftest.err
>&5
11050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11051 (exit $ac_status); } &&
11052 { ac_try
='test -z "$ac_c_werror_flag"
11053 || test ! -s conftest.err'
11054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11055 (eval $ac_try) 2>&5
11057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11058 (exit $ac_status); }; } &&
11059 { ac_try
='test -s conftest$ac_exeext'
11060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11061 (eval $ac_try) 2>&5
11063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11064 (exit $ac_status); }; }; then
11065 ac_cv_lib_png_png_get_channels
=yes
11067 echo "$as_me: failed program was:" >&5
11068 sed 's/^/| /' conftest.
$ac_ext >&5
11070 ac_cv_lib_png_png_get_channels
=no
11072 rm -f conftest.err conftest.
$ac_objext \
11073 conftest
$ac_exeext conftest.
$ac_ext
11074 LIBS
=$ac_check_lib_save_LIBS
11076 echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
11077 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6
11078 if test $ac_cv_lib_png_png_get_channels = yes; then
11085 if test "${HAVE_PNG}" = "yes"; then
11087 cat >>confdefs.h
<<\_ACEOF
11094 ### Use -ltiff if available, unless `--with-tiff=no'.
11096 if test "${HAVE_X11}" = "yes"; then
11097 if test "${with_tiff}" != "no"; then
11098 if test "${ac_cv_header_tiffio_h+set}" = set; then
11099 echo "$as_me:$LINENO: checking for tiffio.h" >&5
11100 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
11101 if test "${ac_cv_header_tiffio_h+set}" = set; then
11102 echo $ECHO_N "(cached) $ECHO_C" >&6
11104 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
11105 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
11107 # Is the header compilable?
11108 echo "$as_me:$LINENO: checking tiffio.h usability" >&5
11109 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
11110 cat >conftest.
$ac_ext <<_ACEOF
11113 cat confdefs.h
>>conftest.
$ac_ext
11114 cat >>conftest.
$ac_ext <<_ACEOF
11115 /* end confdefs.h. */
11116 $ac_includes_default
11117 #include <tiffio.h>
11119 rm -f conftest.
$ac_objext
11120 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11121 (eval $ac_compile) 2>conftest.er1
11123 grep -v '^ *+' conftest.er1
>conftest.err
11125 cat conftest.err
>&5
11126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11127 (exit $ac_status); } &&
11128 { ac_try
='test -z "$ac_c_werror_flag"
11129 || test ! -s conftest.err'
11130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11131 (eval $ac_try) 2>&5
11133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11134 (exit $ac_status); }; } &&
11135 { ac_try
='test -s conftest.$ac_objext'
11136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11137 (eval $ac_try) 2>&5
11139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11140 (exit $ac_status); }; }; then
11141 ac_header_compiler
=yes
11143 echo "$as_me: failed program was:" >&5
11144 sed 's/^/| /' conftest.
$ac_ext >&5
11146 ac_header_compiler
=no
11148 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11149 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11150 echo "${ECHO_T}$ac_header_compiler" >&6
11152 # Is the header present?
11153 echo "$as_me:$LINENO: checking tiffio.h presence" >&5
11154 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
11155 cat >conftest.
$ac_ext <<_ACEOF
11158 cat confdefs.h
>>conftest.
$ac_ext
11159 cat >>conftest.
$ac_ext <<_ACEOF
11160 /* end confdefs.h. */
11161 #include <tiffio.h>
11163 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11164 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11166 grep -v '^ *+' conftest.er1
>conftest.err
11168 cat conftest.err
>&5
11169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11170 (exit $ac_status); } >/dev
/null
; then
11171 if test -s conftest.err
; then
11172 ac_cpp_err
=$ac_c_preproc_warn_flag
11173 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
11180 if test -z "$ac_cpp_err"; then
11181 ac_header_preproc
=yes
11183 echo "$as_me: failed program was:" >&5
11184 sed 's/^/| /' conftest.
$ac_ext >&5
11186 ac_header_preproc
=no
11188 rm -f conftest.err conftest.
$ac_ext
11189 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11190 echo "${ECHO_T}$ac_header_preproc" >&6
11192 # So? What about this header?
11193 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11195 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
11196 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11197 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
11198 echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
11199 ac_header_preproc
=yes
11202 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
11203 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
11204 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
11205 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
11206 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
11207 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
11208 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
11209 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
11210 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
11211 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
11212 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
11213 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
11216 ## ------------------------------------------ ##
11217 ## Report this to the AC_PACKAGE_NAME lists. ##
11218 ## ------------------------------------------ ##
11221 sed "s/^/$as_me: WARNING: /" >&2
11224 echo "$as_me:$LINENO: checking for tiffio.h" >&5
11225 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
11226 if test "${ac_cv_header_tiffio_h+set}" = set; then
11227 echo $ECHO_N "(cached) $ECHO_C" >&6
11229 ac_cv_header_tiffio_h
=$ac_header_preproc
11231 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
11232 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
11235 if test $ac_cv_header_tiffio_h = yes; then
11237 # At least one tiff package requires the jpeg library.
11238 if test "${HAVE_JPEG}" = yes; then tifflibs
="-ljpeg $tifflibs"; fi
11239 echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
11240 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6
11241 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
11242 echo $ECHO_N "(cached) $ECHO_C" >&6
11244 ac_check_lib_save_LIBS
=$LIBS
11245 LIBS
="-ltiff $tifflibs $LIBS"
11246 cat >conftest.
$ac_ext <<_ACEOF
11249 cat confdefs.h
>>conftest.
$ac_ext
11250 cat >>conftest.
$ac_ext <<_ACEOF
11251 /* end confdefs.h. */
11253 /* Override any gcc2 internal prototype to avoid an error. */
11257 /* We use char because int might match the return type of a gcc2
11258 builtin and then its argument prototype would still apply. */
11259 char TIFFGetVersion ();
11268 rm -f conftest.
$ac_objext conftest
$ac_exeext
11269 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11270 (eval $ac_link) 2>conftest.er1
11272 grep -v '^ *+' conftest.er1
>conftest.err
11274 cat conftest.err
>&5
11275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11276 (exit $ac_status); } &&
11277 { ac_try
='test -z "$ac_c_werror_flag"
11278 || test ! -s conftest.err'
11279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11280 (eval $ac_try) 2>&5
11282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11283 (exit $ac_status); }; } &&
11284 { ac_try
='test -s conftest$ac_exeext'
11285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11286 (eval $ac_try) 2>&5
11288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11289 (exit $ac_status); }; }; then
11290 ac_cv_lib_tiff_TIFFGetVersion
=yes
11292 echo "$as_me: failed program was:" >&5
11293 sed 's/^/| /' conftest.
$ac_ext >&5
11295 ac_cv_lib_tiff_TIFFGetVersion
=no
11297 rm -f conftest.err conftest.
$ac_objext \
11298 conftest
$ac_exeext conftest.
$ac_ext
11299 LIBS
=$ac_check_lib_save_LIBS
11301 echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
11302 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6
11303 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
11312 if test "${HAVE_TIFF}" = "yes"; then
11314 cat >>confdefs.h
<<\_ACEOF
11315 #define HAVE_TIFF 1
11321 ### Use -lgif if available, unless `--with-gif=no'.
11323 if test "${HAVE_X11}" = "yes"; then
11324 if test "${with_gif}" != "no"; then
11325 if test "${ac_cv_header_gif_lib_h+set}" = set; then
11326 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
11327 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
11328 if test "${ac_cv_header_gif_lib_h+set}" = set; then
11329 echo $ECHO_N "(cached) $ECHO_C" >&6
11331 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
11332 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
11334 # Is the header compilable?
11335 echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
11336 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6
11337 cat >conftest.
$ac_ext <<_ACEOF
11340 cat confdefs.h
>>conftest.
$ac_ext
11341 cat >>conftest.
$ac_ext <<_ACEOF
11342 /* end confdefs.h. */
11343 $ac_includes_default
11344 #include <gif_lib.h>
11346 rm -f conftest.
$ac_objext
11347 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11348 (eval $ac_compile) 2>conftest.er1
11350 grep -v '^ *+' conftest.er1
>conftest.err
11352 cat conftest.err
>&5
11353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11354 (exit $ac_status); } &&
11355 { ac_try
='test -z "$ac_c_werror_flag"
11356 || test ! -s conftest.err'
11357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11358 (eval $ac_try) 2>&5
11360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11361 (exit $ac_status); }; } &&
11362 { ac_try
='test -s conftest.$ac_objext'
11363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11364 (eval $ac_try) 2>&5
11366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11367 (exit $ac_status); }; }; then
11368 ac_header_compiler
=yes
11370 echo "$as_me: failed program was:" >&5
11371 sed 's/^/| /' conftest.
$ac_ext >&5
11373 ac_header_compiler
=no
11375 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11376 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11377 echo "${ECHO_T}$ac_header_compiler" >&6
11379 # Is the header present?
11380 echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
11381 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6
11382 cat >conftest.
$ac_ext <<_ACEOF
11385 cat confdefs.h
>>conftest.
$ac_ext
11386 cat >>conftest.
$ac_ext <<_ACEOF
11387 /* end confdefs.h. */
11388 #include <gif_lib.h>
11390 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11391 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11393 grep -v '^ *+' conftest.er1
>conftest.err
11395 cat conftest.err
>&5
11396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11397 (exit $ac_status); } >/dev
/null
; then
11398 if test -s conftest.err
; then
11399 ac_cpp_err
=$ac_c_preproc_warn_flag
11400 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
11407 if test -z "$ac_cpp_err"; then
11408 ac_header_preproc
=yes
11410 echo "$as_me: failed program was:" >&5
11411 sed 's/^/| /' conftest.
$ac_ext >&5
11413 ac_header_preproc
=no
11415 rm -f conftest.err conftest.
$ac_ext
11416 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11417 echo "${ECHO_T}$ac_header_preproc" >&6
11419 # So? What about this header?
11420 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11422 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
11423 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11424 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
11425 echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
11426 ac_header_preproc
=yes
11429 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
11430 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
11431 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
11432 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
11433 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
11434 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
11435 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
11436 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
11437 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
11438 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
11439 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
11440 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
11443 ## ------------------------------------------ ##
11444 ## Report this to the AC_PACKAGE_NAME lists. ##
11445 ## ------------------------------------------ ##
11448 sed "s/^/$as_me: WARNING: /" >&2
11451 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
11452 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
11453 if test "${ac_cv_header_gif_lib_h+set}" = set; then
11454 echo $ECHO_N "(cached) $ECHO_C" >&6
11456 ac_cv_header_gif_lib_h
=$ac_header_preproc
11458 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
11459 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
11462 if test $ac_cv_header_gif_lib_h = yes; then
11463 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
11464 # Earlier versions can crash Emacs.
11465 echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
11466 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6
11467 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
11468 echo $ECHO_N "(cached) $ECHO_C" >&6
11470 ac_check_lib_save_LIBS
=$LIBS
11471 LIBS
="-lungif $LIBS"
11472 cat >conftest.
$ac_ext <<_ACEOF
11475 cat confdefs.h
>>conftest.
$ac_ext
11476 cat >>conftest.
$ac_ext <<_ACEOF
11477 /* end confdefs.h. */
11479 /* Override any gcc2 internal prototype to avoid an error. */
11483 /* We use char because int might match the return type of a gcc2
11484 builtin and then its argument prototype would still apply. */
11485 char EGifPutExtensionLast ();
11489 EGifPutExtensionLast ();
11494 rm -f conftest.
$ac_objext conftest
$ac_exeext
11495 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11496 (eval $ac_link) 2>conftest.er1
11498 grep -v '^ *+' conftest.er1
>conftest.err
11500 cat conftest.err
>&5
11501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11502 (exit $ac_status); } &&
11503 { ac_try
='test -z "$ac_c_werror_flag"
11504 || test ! -s conftest.err'
11505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11506 (eval $ac_try) 2>&5
11508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11509 (exit $ac_status); }; } &&
11510 { ac_try
='test -s conftest$ac_exeext'
11511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11512 (eval $ac_try) 2>&5
11514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11515 (exit $ac_status); }; }; then
11516 ac_cv_lib_ungif_EGifPutExtensionLast
=yes
11518 echo "$as_me: failed program was:" >&5
11519 sed 's/^/| /' conftest.
$ac_ext >&5
11521 ac_cv_lib_ungif_EGifPutExtensionLast
=no
11523 rm -f conftest.err conftest.
$ac_objext \
11524 conftest
$ac_exeext conftest.
$ac_ext
11525 LIBS
=$ac_check_lib_save_LIBS
11527 echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
11528 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6
11529 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
11538 if test "${HAVE_GIF}" = "yes"; then
11540 cat >>confdefs.h
<<\_ACEOF
11547 ### Use Mac OS X Carbon API to implement GUI.
11549 if test "${with_carbon}" != "no"; then
11550 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
11551 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
11552 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
11553 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
11554 echo $ECHO_N "(cached) $ECHO_C" >&6
11556 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
11557 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
11559 # Is the header compilable?
11560 echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
11561 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6
11562 cat >conftest.
$ac_ext <<_ACEOF
11565 cat confdefs.h
>>conftest.
$ac_ext
11566 cat >>conftest.
$ac_ext <<_ACEOF
11567 /* end confdefs.h. */
11568 $ac_includes_default
11569 #include <Carbon/Carbon.h>
11571 rm -f conftest.
$ac_objext
11572 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11573 (eval $ac_compile) 2>conftest.er1
11575 grep -v '^ *+' conftest.er1
>conftest.err
11577 cat conftest.err
>&5
11578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11579 (exit $ac_status); } &&
11580 { ac_try
='test -z "$ac_c_werror_flag"
11581 || test ! -s conftest.err'
11582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11583 (eval $ac_try) 2>&5
11585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11586 (exit $ac_status); }; } &&
11587 { ac_try
='test -s conftest.$ac_objext'
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_header_compiler
=yes
11595 echo "$as_me: failed program was:" >&5
11596 sed 's/^/| /' conftest.
$ac_ext >&5
11598 ac_header_compiler
=no
11600 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11601 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11602 echo "${ECHO_T}$ac_header_compiler" >&6
11604 # Is the header present?
11605 echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
11606 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6
11607 cat >conftest.
$ac_ext <<_ACEOF
11610 cat confdefs.h
>>conftest.
$ac_ext
11611 cat >>conftest.
$ac_ext <<_ACEOF
11612 /* end confdefs.h. */
11613 #include <Carbon/Carbon.h>
11615 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11616 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11618 grep -v '^ *+' conftest.er1
>conftest.err
11620 cat conftest.err
>&5
11621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11622 (exit $ac_status); } >/dev
/null
; then
11623 if test -s conftest.err
; then
11624 ac_cpp_err
=$ac_c_preproc_warn_flag
11625 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
11632 if test -z "$ac_cpp_err"; then
11633 ac_header_preproc
=yes
11635 echo "$as_me: failed program was:" >&5
11636 sed 's/^/| /' conftest.
$ac_ext >&5
11638 ac_header_preproc
=no
11640 rm -f conftest.err conftest.
$ac_ext
11641 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11642 echo "${ECHO_T}$ac_header_preproc" >&6
11644 # So? What about this header?
11645 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11647 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
11648 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11649 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
11650 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
11651 ac_header_preproc
=yes
11654 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
11655 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
11656 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
11657 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
11658 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
11659 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
11660 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
11661 echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
11662 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
11663 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
11664 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
11665 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
11668 ## ------------------------------------------ ##
11669 ## Report this to the AC_PACKAGE_NAME lists. ##
11670 ## ------------------------------------------ ##
11673 sed "s/^/$as_me: WARNING: /" >&2
11676 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
11677 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
11678 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
11679 echo $ECHO_N "(cached) $ECHO_C" >&6
11681 ac_cv_header_Carbon_Carbon_h
=$ac_header_preproc
11683 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
11684 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
11687 if test $ac_cv_header_Carbon_Carbon_h = yes; then
11694 if test "${HAVE_CARBON}" = "yes"; then
11696 cat >>confdefs.h
<<\_ACEOF
11697 #define HAVE_CARBON 1
11701 ## Specify the install directory
11703 if test "${carbon_appdir_x}" != ""; then
11704 case ${carbon_appdir_x} in
11705 y | ye |
yes) carbon_appdir
=/Applications
;;
11706 * ) carbon_appdir
=${carbon_appdir_x} ;;
11709 # We also have mouse menus.
11713 ### Use session management (-lSM -lICE) if available
11715 if test "${HAVE_X11}" = "yes"; then
11716 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
11717 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
11718 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
11719 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
11720 echo $ECHO_N "(cached) $ECHO_C" >&6
11722 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
11723 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
11725 # Is the header compilable?
11726 echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
11727 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6
11728 cat >conftest.
$ac_ext <<_ACEOF
11731 cat confdefs.h
>>conftest.
$ac_ext
11732 cat >>conftest.
$ac_ext <<_ACEOF
11733 /* end confdefs.h. */
11734 $ac_includes_default
11735 #include <X11/SM/SMlib.h>
11737 rm -f conftest.
$ac_objext
11738 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11739 (eval $ac_compile) 2>conftest.er1
11741 grep -v '^ *+' conftest.er1
>conftest.err
11743 cat conftest.err
>&5
11744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11745 (exit $ac_status); } &&
11746 { ac_try
='test -z "$ac_c_werror_flag"
11747 || test ! -s conftest.err'
11748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11749 (eval $ac_try) 2>&5
11751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11752 (exit $ac_status); }; } &&
11753 { ac_try
='test -s conftest.$ac_objext'
11754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11755 (eval $ac_try) 2>&5
11757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11758 (exit $ac_status); }; }; then
11759 ac_header_compiler
=yes
11761 echo "$as_me: failed program was:" >&5
11762 sed 's/^/| /' conftest.
$ac_ext >&5
11764 ac_header_compiler
=no
11766 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11767 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11768 echo "${ECHO_T}$ac_header_compiler" >&6
11770 # Is the header present?
11771 echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
11772 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6
11773 cat >conftest.
$ac_ext <<_ACEOF
11776 cat confdefs.h
>>conftest.
$ac_ext
11777 cat >>conftest.
$ac_ext <<_ACEOF
11778 /* end confdefs.h. */
11779 #include <X11/SM/SMlib.h>
11781 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11782 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11784 grep -v '^ *+' conftest.er1
>conftest.err
11786 cat conftest.err
>&5
11787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11788 (exit $ac_status); } >/dev
/null
; then
11789 if test -s conftest.err
; then
11790 ac_cpp_err
=$ac_c_preproc_warn_flag
11791 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
11798 if test -z "$ac_cpp_err"; then
11799 ac_header_preproc
=yes
11801 echo "$as_me: failed program was:" >&5
11802 sed 's/^/| /' conftest.
$ac_ext >&5
11804 ac_header_preproc
=no
11806 rm -f conftest.err conftest.
$ac_ext
11807 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11808 echo "${ECHO_T}$ac_header_preproc" >&6
11810 # So? What about this header?
11811 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11813 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
11814 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11815 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
11816 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
11817 ac_header_preproc
=yes
11820 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
11821 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
11822 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
11823 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
11824 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
11825 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
11826 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
11827 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
11828 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
11829 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
11830 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
11831 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
11834 ## ------------------------------------------ ##
11835 ## Report this to the AC_PACKAGE_NAME lists. ##
11836 ## ------------------------------------------ ##
11839 sed "s/^/$as_me: WARNING: /" >&2
11842 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
11843 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
11844 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
11845 echo $ECHO_N "(cached) $ECHO_C" >&6
11847 ac_cv_header_X11_SM_SMlib_h
=$ac_header_preproc
11849 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
11850 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
11853 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
11854 echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
11855 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6
11856 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
11857 echo $ECHO_N "(cached) $ECHO_C" >&6
11859 ac_check_lib_save_LIBS
=$LIBS
11860 LIBS
="-lSM -lICE $LIBS"
11861 cat >conftest.
$ac_ext <<_ACEOF
11864 cat confdefs.h
>>conftest.
$ac_ext
11865 cat >>conftest.
$ac_ext <<_ACEOF
11866 /* end confdefs.h. */
11868 /* Override any gcc2 internal prototype to avoid an error. */
11872 /* We use char because int might match the return type of a gcc2
11873 builtin and then its argument prototype would still apply. */
11874 char SmcOpenConnection ();
11878 SmcOpenConnection ();
11883 rm -f conftest.
$ac_objext conftest
$ac_exeext
11884 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11885 (eval $ac_link) 2>conftest.er1
11887 grep -v '^ *+' conftest.er1
>conftest.err
11889 cat conftest.err
>&5
11890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11891 (exit $ac_status); } &&
11892 { ac_try
='test -z "$ac_c_werror_flag"
11893 || test ! -s conftest.err'
11894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11895 (eval $ac_try) 2>&5
11897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11898 (exit $ac_status); }; } &&
11899 { ac_try
='test -s conftest$ac_exeext'
11900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11901 (eval $ac_try) 2>&5
11903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11904 (exit $ac_status); }; }; then
11905 ac_cv_lib_SM_SmcOpenConnection
=yes
11907 echo "$as_me: failed program was:" >&5
11908 sed 's/^/| /' conftest.
$ac_ext >&5
11910 ac_cv_lib_SM_SmcOpenConnection
=no
11912 rm -f conftest.err conftest.
$ac_objext \
11913 conftest
$ac_exeext conftest.
$ac_ext
11914 LIBS
=$ac_check_lib_save_LIBS
11916 echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
11917 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6
11918 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
11926 if test "${HAVE_X_SM}" = "yes"; then
11928 cat >>confdefs.h
<<\_ACEOF
11929 #define HAVE_X_SM 1
11934 *) LIBS
="-lSM -lICE $LIBS" ;;
11939 # If netdb.h doesn't declare h_errno, we must declare it by hand.
11940 echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
11941 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6
11942 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
11943 echo $ECHO_N "(cached) $ECHO_C" >&6
11945 cat >conftest.
$ac_ext <<_ACEOF
11948 cat confdefs.h
>>conftest.
$ac_ext
11949 cat >>conftest.
$ac_ext <<_ACEOF
11950 /* end confdefs.h. */
11960 rm -f conftest.
$ac_objext conftest
$ac_exeext
11961 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11962 (eval $ac_link) 2>conftest.er1
11964 grep -v '^ *+' conftest.er1
>conftest.err
11966 cat conftest.err
>&5
11967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11968 (exit $ac_status); } &&
11969 { ac_try
='test -z "$ac_c_werror_flag"
11970 || test ! -s conftest.err'
11971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11972 (eval $ac_try) 2>&5
11974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11975 (exit $ac_status); }; } &&
11976 { ac_try
='test -s conftest$ac_exeext'
11977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11978 (eval $ac_try) 2>&5
11980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11981 (exit $ac_status); }; }; then
11982 emacs_cv_netdb_declares_h_errno
=yes
11984 echo "$as_me: failed program was:" >&5
11985 sed 's/^/| /' conftest.
$ac_ext >&5
11987 emacs_cv_netdb_declares_h_errno
=no
11989 rm -f conftest.err conftest.
$ac_objext \
11990 conftest
$ac_exeext conftest.
$ac_ext
11992 echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
11993 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6
11994 if test $emacs_cv_netdb_declares_h_errno = yes; then
11996 cat >>confdefs.h
<<\_ACEOF
11997 #define HAVE_H_ERRNO 1
12002 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
12003 # for constant arguments. Useless!
12004 echo "$as_me:$LINENO: checking for working alloca.h" >&5
12005 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
12006 if test "${ac_cv_working_alloca_h+set}" = set; then
12007 echo $ECHO_N "(cached) $ECHO_C" >&6
12009 cat >conftest.
$ac_ext <<_ACEOF
12012 cat confdefs.h
>>conftest.
$ac_ext
12013 cat >>conftest.
$ac_ext <<_ACEOF
12014 /* end confdefs.h. */
12015 #include <alloca.h>
12019 char *p = (char *) alloca (2 * sizeof (int));
12024 rm -f conftest.
$ac_objext conftest
$ac_exeext
12025 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12026 (eval $ac_link) 2>conftest.er1
12028 grep -v '^ *+' conftest.er1
>conftest.err
12030 cat conftest.err
>&5
12031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12032 (exit $ac_status); } &&
12033 { ac_try
='test -z "$ac_c_werror_flag"
12034 || test ! -s conftest.err'
12035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12036 (eval $ac_try) 2>&5
12038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12039 (exit $ac_status); }; } &&
12040 { ac_try
='test -s conftest$ac_exeext'
12041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12042 (eval $ac_try) 2>&5
12044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12045 (exit $ac_status); }; }; then
12046 ac_cv_working_alloca_h
=yes
12048 echo "$as_me: failed program was:" >&5
12049 sed 's/^/| /' conftest.
$ac_ext >&5
12051 ac_cv_working_alloca_h
=no
12053 rm -f conftest.err conftest.
$ac_objext \
12054 conftest
$ac_exeext conftest.
$ac_ext
12056 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
12057 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
12058 if test $ac_cv_working_alloca_h = yes; then
12060 cat >>confdefs.h
<<\_ACEOF
12061 #define HAVE_ALLOCA_H 1
12066 echo "$as_me:$LINENO: checking for alloca" >&5
12067 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
12068 if test "${ac_cv_func_alloca_works+set}" = set; then
12069 echo $ECHO_N "(cached) $ECHO_C" >&6
12071 cat >conftest.
$ac_ext <<_ACEOF
12074 cat confdefs.h
>>conftest.
$ac_ext
12075 cat >>conftest.
$ac_ext <<_ACEOF
12076 /* end confdefs.h. */
12078 # define alloca __builtin_alloca
12081 # include <malloc.h>
12082 # define alloca _alloca
12085 # include <alloca.h>
12090 # ifndef alloca /* predefined by HP cc +Olibcalls */
12101 char *p = (char *) alloca (1);
12106 rm -f conftest.
$ac_objext conftest
$ac_exeext
12107 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12108 (eval $ac_link) 2>conftest.er1
12110 grep -v '^ *+' conftest.er1
>conftest.err
12112 cat conftest.err
>&5
12113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12114 (exit $ac_status); } &&
12115 { ac_try
='test -z "$ac_c_werror_flag"
12116 || test ! -s conftest.err'
12117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12118 (eval $ac_try) 2>&5
12120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12121 (exit $ac_status); }; } &&
12122 { ac_try
='test -s conftest$ac_exeext'
12123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12124 (eval $ac_try) 2>&5
12126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12127 (exit $ac_status); }; }; then
12128 ac_cv_func_alloca_works
=yes
12130 echo "$as_me: failed program was:" >&5
12131 sed 's/^/| /' conftest.
$ac_ext >&5
12133 ac_cv_func_alloca_works
=no
12135 rm -f conftest.err conftest.
$ac_objext \
12136 conftest
$ac_exeext conftest.
$ac_ext
12138 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
12139 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
12141 if test $ac_cv_func_alloca_works = yes; then
12143 cat >>confdefs.h
<<\_ACEOF
12144 #define HAVE_ALLOCA 1
12148 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
12149 # that cause trouble. Some versions do not even contain alloca or
12150 # contain a buggy version. If you still want to use their alloca,
12151 # use ar to extract alloca.o from them instead of compiling alloca.c.
12153 ALLOCA
=alloca.
$ac_objext
12155 cat >>confdefs.h
<<\_ACEOF
12160 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
12161 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
12162 if test "${ac_cv_os_cray+set}" = set; then
12163 echo $ECHO_N "(cached) $ECHO_C" >&6
12165 cat >conftest.
$ac_ext <<_ACEOF
12168 cat confdefs.h
>>conftest.
$ac_ext
12169 cat >>conftest.
$ac_ext <<_ACEOF
12170 /* end confdefs.h. */
12171 #if defined(CRAY) && ! defined(CRAY2)
12178 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12179 $EGREP "webecray" >/dev
/null
2>&1; then
12187 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
12188 echo "${ECHO_T}$ac_cv_os_cray" >&6
12189 if test $ac_cv_os_cray = yes; then
12190 for ac_func
in _getb67 GETB67 getb67
; do
12191 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12192 echo "$as_me:$LINENO: checking for $ac_func" >&5
12193 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12194 if eval "test \"\${$as_ac_var+set}\" = set"; then
12195 echo $ECHO_N "(cached) $ECHO_C" >&6
12197 cat >conftest.
$ac_ext <<_ACEOF
12200 cat confdefs.h
>>conftest.
$ac_ext
12201 cat >>conftest.
$ac_ext <<_ACEOF
12202 /* end confdefs.h. */
12203 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12204 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12205 #define $ac_func innocuous_$ac_func
12207 /* System header to define __stub macros and hopefully few prototypes,
12208 which can conflict with char $ac_func (); below.
12209 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12210 <limits.h> exists even on freestanding compilers. */
12213 # include <limits.h>
12215 # include <assert.h>
12220 /* Override any gcc2 internal prototype to avoid an error. */
12225 /* We use char because int might match the return type of a gcc2
12226 builtin and then its argument prototype would still apply. */
12228 /* The GNU C library defines this for functions which it implements
12229 to always fail with ENOSYS. Some functions are actually named
12230 something starting with __ and the normal name is an alias. */
12231 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12234 char (*f) () = $ac_func;
12243 return f != $ac_func;
12248 rm -f conftest.
$ac_objext conftest
$ac_exeext
12249 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12250 (eval $ac_link) 2>conftest.er1
12252 grep -v '^ *+' conftest.er1
>conftest.err
12254 cat conftest.err
>&5
12255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12256 (exit $ac_status); } &&
12257 { ac_try
='test -z "$ac_c_werror_flag"
12258 || test ! -s conftest.err'
12259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12260 (eval $ac_try) 2>&5
12262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12263 (exit $ac_status); }; } &&
12264 { ac_try
='test -s conftest$ac_exeext'
12265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12266 (eval $ac_try) 2>&5
12268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12269 (exit $ac_status); }; }; then
12270 eval "$as_ac_var=yes"
12272 echo "$as_me: failed program was:" >&5
12273 sed 's/^/| /' conftest.
$ac_ext >&5
12275 eval "$as_ac_var=no"
12277 rm -f conftest.err conftest.
$ac_objext \
12278 conftest
$ac_exeext conftest.
$ac_ext
12280 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12281 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12282 if test `eval echo '${'$as_ac_var'}'` = yes; then
12284 cat >>confdefs.h
<<_ACEOF
12285 #define CRAY_STACKSEG_END $ac_func
12294 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
12295 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
12296 if test "${ac_cv_c_stack_direction+set}" = set; then
12297 echo $ECHO_N "(cached) $ECHO_C" >&6
12299 if test "$cross_compiling" = yes; then
12300 ac_cv_c_stack_direction
=0
12302 cat >conftest.
$ac_ext <<_ACEOF
12305 cat confdefs.h
>>conftest.
$ac_ext
12306 cat >>conftest.
$ac_ext <<_ACEOF
12307 /* end confdefs.h. */
12309 find_stack_direction ()
12311 static char *addr = 0;
12316 return find_stack_direction ();
12319 return (&dummy > addr) ? 1 : -1;
12325 exit (find_stack_direction () < 0);
12328 rm -f conftest
$ac_exeext
12329 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12330 (eval $ac_link) 2>&5
12332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12333 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
12334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12335 (eval $ac_try) 2>&5
12337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12338 (exit $ac_status); }; }; then
12339 ac_cv_c_stack_direction
=1
12341 echo "$as_me: program exited with status $ac_status" >&5
12342 echo "$as_me: failed program was:" >&5
12343 sed 's/^/| /' conftest.
$ac_ext >&5
12345 ( exit $ac_status )
12346 ac_cv_c_stack_direction
=-1
12348 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
12351 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
12352 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
12354 cat >>confdefs.h
<<_ACEOF
12355 #define STACK_DIRECTION $ac_cv_c_stack_direction
12362 # fmod, logb, and frexp are found in -lm on most systems.
12363 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
12365 echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
12366 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
12367 if test "${ac_cv_lib_m_sqrt+set}" = set; then
12368 echo $ECHO_N "(cached) $ECHO_C" >&6
12370 ac_check_lib_save_LIBS
=$LIBS
12372 cat >conftest.
$ac_ext <<_ACEOF
12375 cat confdefs.h
>>conftest.
$ac_ext
12376 cat >>conftest.
$ac_ext <<_ACEOF
12377 /* end confdefs.h. */
12379 /* Override any gcc2 internal prototype to avoid an error. */
12383 /* We use char because int might match the return type of a gcc2
12384 builtin and then its argument prototype would still apply. */
12394 rm -f conftest.
$ac_objext conftest
$ac_exeext
12395 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12396 (eval $ac_link) 2>conftest.er1
12398 grep -v '^ *+' conftest.er1
>conftest.err
12400 cat conftest.err
>&5
12401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12402 (exit $ac_status); } &&
12403 { ac_try
='test -z "$ac_c_werror_flag"
12404 || test ! -s conftest.err'
12405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12406 (eval $ac_try) 2>&5
12408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12409 (exit $ac_status); }; } &&
12410 { ac_try
='test -s conftest$ac_exeext'
12411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12412 (eval $ac_try) 2>&5
12414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12415 (exit $ac_status); }; }; then
12416 ac_cv_lib_m_sqrt
=yes
12418 echo "$as_me: failed program was:" >&5
12419 sed 's/^/| /' conftest.
$ac_ext >&5
12421 ac_cv_lib_m_sqrt
=no
12423 rm -f conftest.err conftest.
$ac_objext \
12424 conftest
$ac_exeext conftest.
$ac_ext
12425 LIBS
=$ac_check_lib_save_LIBS
12427 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
12428 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
12429 if test $ac_cv_lib_m_sqrt = yes; then
12430 cat >>confdefs.h
<<_ACEOF
12431 #define HAVE_LIBM 1
12439 # Check for mail-locking functions in a "mail" library. Probably this should
12440 # have the same check as for liblockfile below.
12442 echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
12443 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6
12444 if test "${ac_cv_lib_mail_maillock+set}" = set; then
12445 echo $ECHO_N "(cached) $ECHO_C" >&6
12447 ac_check_lib_save_LIBS
=$LIBS
12448 LIBS
="-lmail $LIBS"
12449 cat >conftest.
$ac_ext <<_ACEOF
12452 cat confdefs.h
>>conftest.
$ac_ext
12453 cat >>conftest.
$ac_ext <<_ACEOF
12454 /* end confdefs.h. */
12456 /* Override any gcc2 internal prototype to avoid an error. */
12460 /* We use char because int might match the return type of a gcc2
12461 builtin and then its argument prototype would still apply. */
12471 rm -f conftest.
$ac_objext conftest
$ac_exeext
12472 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12473 (eval $ac_link) 2>conftest.er1
12475 grep -v '^ *+' conftest.er1
>conftest.err
12477 cat conftest.err
>&5
12478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12479 (exit $ac_status); } &&
12480 { ac_try
='test -z "$ac_c_werror_flag"
12481 || test ! -s conftest.err'
12482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12483 (eval $ac_try) 2>&5
12485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12486 (exit $ac_status); }; } &&
12487 { ac_try
='test -s conftest$ac_exeext'
12488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12489 (eval $ac_try) 2>&5
12491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12492 (exit $ac_status); }; }; then
12493 ac_cv_lib_mail_maillock
=yes
12495 echo "$as_me: failed program was:" >&5
12496 sed 's/^/| /' conftest.
$ac_ext >&5
12498 ac_cv_lib_mail_maillock
=no
12500 rm -f conftest.err conftest.
$ac_objext \
12501 conftest
$ac_exeext conftest.
$ac_ext
12502 LIBS
=$ac_check_lib_save_LIBS
12504 echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
12505 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6
12506 if test $ac_cv_lib_mail_maillock = yes; then
12507 cat >>confdefs.h
<<_ACEOF
12508 #define HAVE_LIBMAIL 1
12511 LIBS
="-lmail $LIBS"
12516 echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
12517 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6
12518 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
12519 echo $ECHO_N "(cached) $ECHO_C" >&6
12521 ac_check_lib_save_LIBS
=$LIBS
12522 LIBS
="-llockfile $LIBS"
12523 cat >conftest.
$ac_ext <<_ACEOF
12526 cat confdefs.h
>>conftest.
$ac_ext
12527 cat >>conftest.
$ac_ext <<_ACEOF
12528 /* end confdefs.h. */
12530 /* Override any gcc2 internal prototype to avoid an error. */
12534 /* We use char because int might match the return type of a gcc2
12535 builtin and then its argument prototype would still apply. */
12545 rm -f conftest.
$ac_objext conftest
$ac_exeext
12546 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12547 (eval $ac_link) 2>conftest.er1
12549 grep -v '^ *+' conftest.er1
>conftest.err
12551 cat conftest.err
>&5
12552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12553 (exit $ac_status); } &&
12554 { ac_try
='test -z "$ac_c_werror_flag"
12555 || test ! -s conftest.err'
12556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12557 (eval $ac_try) 2>&5
12559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12560 (exit $ac_status); }; } &&
12561 { ac_try
='test -s conftest$ac_exeext'
12562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12563 (eval $ac_try) 2>&5
12565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12566 (exit $ac_status); }; }; then
12567 ac_cv_lib_lockfile_maillock
=yes
12569 echo "$as_me: failed program was:" >&5
12570 sed 's/^/| /' conftest.
$ac_ext >&5
12572 ac_cv_lib_lockfile_maillock
=no
12574 rm -f conftest.err conftest.
$ac_objext \
12575 conftest
$ac_exeext conftest.
$ac_ext
12576 LIBS
=$ac_check_lib_save_LIBS
12578 echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
12579 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6
12580 if test $ac_cv_lib_lockfile_maillock = yes; then
12581 cat >>confdefs.h
<<_ACEOF
12582 #define HAVE_LIBLOCKFILE 1
12585 LIBS
="-llockfile $LIBS"
12589 # If we have the shared liblockfile, assume we must use it for mail
12590 # locking (e.g. Debian). If we couldn't link against liblockfile
12591 # (no liblockfile.a installed), ensure that we don't need to.
12592 if test "$ac_cv_lib_lockfile_maillock" = no
; then
12593 # Extract the first word of "liblockfile.so", so it can be a program name with args.
12594 set dummy liblockfile.so
; ac_word
=$2
12595 echo "$as_me:$LINENO: checking for $ac_word" >&5
12596 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12597 if test "${ac_cv_prog_liblockfile+set}" = set; then
12598 echo $ECHO_N "(cached) $ECHO_C" >&6
12600 if test -n "$liblockfile"; then
12601 ac_cv_prog_liblockfile
="$liblockfile" # Let the user override the test.
12603 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12604 as_dummy
="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
12605 for as_dir
in $as_dummy
12608 test -z "$as_dir" && as_dir
=.
12609 for ac_exec_ext
in '' $ac_executable_extensions; do
12610 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12611 ac_cv_prog_liblockfile
="yes"
12612 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12618 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile
="no"
12621 liblockfile
=$ac_cv_prog_liblockfile
12622 if test -n "$liblockfile"; then
12623 echo "$as_me:$LINENO: result: $liblockfile" >&5
12624 echo "${ECHO_T}$liblockfile" >&6
12626 echo "$as_me:$LINENO: result: no" >&5
12627 echo "${ECHO_T}no" >&6
12630 if test $ac_cv_prog_liblockfile = yes; then
12631 { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
12632 This probably means that movemail could lose mail.
12633 There may be a \`development' package to install containing liblockfile." >&5
12634 echo "$as_me: error: Shared liblockfile found but can't link against it.
12635 This probably means that movemail could lose mail.
12636 There may be a \`development' package to install containing liblockfile." >&2;}
12637 { (exit 1); exit 1; }; }
12642 for ac_func
in touchlock
12644 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12645 echo "$as_me:$LINENO: checking for $ac_func" >&5
12646 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12647 if eval "test \"\${$as_ac_var+set}\" = set"; then
12648 echo $ECHO_N "(cached) $ECHO_C" >&6
12650 cat >conftest.
$ac_ext <<_ACEOF
12653 cat confdefs.h
>>conftest.
$ac_ext
12654 cat >>conftest.
$ac_ext <<_ACEOF
12655 /* end confdefs.h. */
12656 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12657 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12658 #define $ac_func innocuous_$ac_func
12660 /* System header to define __stub macros and hopefully few prototypes,
12661 which can conflict with char $ac_func (); below.
12662 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12663 <limits.h> exists even on freestanding compilers. */
12666 # include <limits.h>
12668 # include <assert.h>
12673 /* Override any gcc2 internal prototype to avoid an error. */
12678 /* We use char because int might match the return type of a gcc2
12679 builtin and then its argument prototype would still apply. */
12681 /* The GNU C library defines this for functions which it implements
12682 to always fail with ENOSYS. Some functions are actually named
12683 something starting with __ and the normal name is an alias. */
12684 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12687 char (*f) () = $ac_func;
12696 return f != $ac_func;
12701 rm -f conftest.
$ac_objext conftest
$ac_exeext
12702 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12703 (eval $ac_link) 2>conftest.er1
12705 grep -v '^ *+' conftest.er1
>conftest.err
12707 cat conftest.err
>&5
12708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12709 (exit $ac_status); } &&
12710 { ac_try
='test -z "$ac_c_werror_flag"
12711 || test ! -s conftest.err'
12712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12713 (eval $ac_try) 2>&5
12715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12716 (exit $ac_status); }; } &&
12717 { ac_try
='test -s conftest$ac_exeext'
12718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12719 (eval $ac_try) 2>&5
12721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12722 (exit $ac_status); }; }; then
12723 eval "$as_ac_var=yes"
12725 echo "$as_me: failed program was:" >&5
12726 sed 's/^/| /' conftest.
$ac_ext >&5
12728 eval "$as_ac_var=no"
12730 rm -f conftest.err conftest.
$ac_objext \
12731 conftest
$ac_exeext conftest.
$ac_ext
12733 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12734 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12735 if test `eval echo '${'$as_ac_var'}'` = yes; then
12736 cat >>confdefs.h
<<_ACEOF
12737 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12744 for ac_header
in maillock.h
12746 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12747 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12748 echo "$as_me:$LINENO: checking for $ac_header" >&5
12749 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12750 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12751 echo $ECHO_N "(cached) $ECHO_C" >&6
12753 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12754 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12756 # Is the header compilable?
12757 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12758 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12759 cat >conftest.
$ac_ext <<_ACEOF
12762 cat confdefs.h
>>conftest.
$ac_ext
12763 cat >>conftest.
$ac_ext <<_ACEOF
12764 /* end confdefs.h. */
12765 $ac_includes_default
12766 #include <$ac_header>
12768 rm -f conftest.
$ac_objext
12769 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12770 (eval $ac_compile) 2>conftest.er1
12772 grep -v '^ *+' conftest.er1
>conftest.err
12774 cat conftest.err
>&5
12775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12776 (exit $ac_status); } &&
12777 { ac_try
='test -z "$ac_c_werror_flag"
12778 || test ! -s conftest.err'
12779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12780 (eval $ac_try) 2>&5
12782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12783 (exit $ac_status); }; } &&
12784 { ac_try
='test -s conftest.$ac_objext'
12785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12786 (eval $ac_try) 2>&5
12788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12789 (exit $ac_status); }; }; then
12790 ac_header_compiler
=yes
12792 echo "$as_me: failed program was:" >&5
12793 sed 's/^/| /' conftest.
$ac_ext >&5
12795 ac_header_compiler
=no
12797 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12798 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12799 echo "${ECHO_T}$ac_header_compiler" >&6
12801 # Is the header present?
12802 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12803 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12804 cat >conftest.
$ac_ext <<_ACEOF
12807 cat confdefs.h
>>conftest.
$ac_ext
12808 cat >>conftest.
$ac_ext <<_ACEOF
12809 /* end confdefs.h. */
12810 #include <$ac_header>
12812 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12813 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12815 grep -v '^ *+' conftest.er1
>conftest.err
12817 cat conftest.err
>&5
12818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12819 (exit $ac_status); } >/dev
/null
; then
12820 if test -s conftest.err
; then
12821 ac_cpp_err
=$ac_c_preproc_warn_flag
12822 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12829 if test -z "$ac_cpp_err"; then
12830 ac_header_preproc
=yes
12832 echo "$as_me: failed program was:" >&5
12833 sed 's/^/| /' conftest.
$ac_ext >&5
12835 ac_header_preproc
=no
12837 rm -f conftest.err conftest.
$ac_ext
12838 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12839 echo "${ECHO_T}$ac_header_preproc" >&6
12841 # So? What about this header?
12842 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12844 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12845 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12846 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12847 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12848 ac_header_preproc
=yes
12851 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12852 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12853 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12854 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12855 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12856 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12857 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12858 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12859 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12860 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12861 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12862 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12865 ## ------------------------------------------ ##
12866 ## Report this to the AC_PACKAGE_NAME lists. ##
12867 ## ------------------------------------------ ##
12870 sed "s/^/$as_me: WARNING: /" >&2
12873 echo "$as_me:$LINENO: checking for $ac_header" >&5
12874 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12875 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12876 echo $ECHO_N "(cached) $ECHO_C" >&6
12878 eval "$as_ac_Header=\$ac_header_preproc"
12880 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12881 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12884 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12885 cat >>confdefs.h
<<_ACEOF
12886 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12961 for ac_func
in gethostname getdomainname dup2 \
12962 rename closedir mkdir
rmdir sysinfo \
12963 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
12964 strerror fpathconf
select mktime euidaccess getpagesize tzset setlocale \
12965 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
12966 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
12967 sendto recvfrom getsockopt setsockopt getsockname getpeername \
12968 gai_strerror mkstemp getline getdelim mremap memmove fsync bzero \
12969 memset memcmp memmove difftime memcpy mempcpy mblen mbrlen posix_memalign
12971 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12972 echo "$as_me:$LINENO: checking for $ac_func" >&5
12973 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12974 if eval "test \"\${$as_ac_var+set}\" = set"; then
12975 echo $ECHO_N "(cached) $ECHO_C" >&6
12977 cat >conftest.
$ac_ext <<_ACEOF
12980 cat confdefs.h
>>conftest.
$ac_ext
12981 cat >>conftest.
$ac_ext <<_ACEOF
12982 /* end confdefs.h. */
12983 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12984 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12985 #define $ac_func innocuous_$ac_func
12987 /* System header to define __stub macros and hopefully few prototypes,
12988 which can conflict with char $ac_func (); below.
12989 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12990 <limits.h> exists even on freestanding compilers. */
12993 # include <limits.h>
12995 # include <assert.h>
13000 /* Override any gcc2 internal prototype to avoid an error. */
13005 /* We use char because int might match the return type of a gcc2
13006 builtin and then its argument prototype would still apply. */
13008 /* The GNU C library defines this for functions which it implements
13009 to always fail with ENOSYS. Some functions are actually named
13010 something starting with __ and the normal name is an alias. */
13011 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13014 char (*f) () = $ac_func;
13023 return f != $ac_func;
13028 rm -f conftest.
$ac_objext conftest
$ac_exeext
13029 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13030 (eval $ac_link) 2>conftest.er1
13032 grep -v '^ *+' conftest.er1
>conftest.err
13034 cat conftest.err
>&5
13035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13036 (exit $ac_status); } &&
13037 { ac_try
='test -z "$ac_c_werror_flag"
13038 || test ! -s conftest.err'
13039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13040 (eval $ac_try) 2>&5
13042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13043 (exit $ac_status); }; } &&
13044 { ac_try
='test -s conftest$ac_exeext'
13045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13046 (eval $ac_try) 2>&5
13048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13049 (exit $ac_status); }; }; then
13050 eval "$as_ac_var=yes"
13052 echo "$as_me: failed program was:" >&5
13053 sed 's/^/| /' conftest.
$ac_ext >&5
13055 eval "$as_ac_var=no"
13057 rm -f conftest.err conftest.
$ac_objext \
13058 conftest
$ac_exeext conftest.
$ac_ext
13060 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13061 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13062 if test `eval echo '${'$as_ac_var'}'` = yes; then
13063 cat >>confdefs.h
<<_ACEOF
13064 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13072 for ac_header
in sys
/un.h
13074 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13075 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13076 echo "$as_me:$LINENO: checking for $ac_header" >&5
13077 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13078 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13079 echo $ECHO_N "(cached) $ECHO_C" >&6
13081 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13082 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13084 # Is the header compilable?
13085 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13086 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13087 cat >conftest.
$ac_ext <<_ACEOF
13090 cat confdefs.h
>>conftest.
$ac_ext
13091 cat >>conftest.
$ac_ext <<_ACEOF
13092 /* end confdefs.h. */
13093 $ac_includes_default
13094 #include <$ac_header>
13096 rm -f conftest.
$ac_objext
13097 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13098 (eval $ac_compile) 2>conftest.er1
13100 grep -v '^ *+' conftest.er1
>conftest.err
13102 cat conftest.err
>&5
13103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13104 (exit $ac_status); } &&
13105 { ac_try
='test -z "$ac_c_werror_flag"
13106 || test ! -s conftest.err'
13107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13108 (eval $ac_try) 2>&5
13110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13111 (exit $ac_status); }; } &&
13112 { ac_try
='test -s conftest.$ac_objext'
13113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13114 (eval $ac_try) 2>&5
13116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13117 (exit $ac_status); }; }; then
13118 ac_header_compiler
=yes
13120 echo "$as_me: failed program was:" >&5
13121 sed 's/^/| /' conftest.
$ac_ext >&5
13123 ac_header_compiler
=no
13125 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13126 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13127 echo "${ECHO_T}$ac_header_compiler" >&6
13129 # Is the header present?
13130 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13131 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13132 cat >conftest.
$ac_ext <<_ACEOF
13135 cat confdefs.h
>>conftest.
$ac_ext
13136 cat >>conftest.
$ac_ext <<_ACEOF
13137 /* end confdefs.h. */
13138 #include <$ac_header>
13140 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13141 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
13143 grep -v '^ *+' conftest.er1
>conftest.err
13145 cat conftest.err
>&5
13146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13147 (exit $ac_status); } >/dev
/null
; then
13148 if test -s conftest.err
; then
13149 ac_cpp_err
=$ac_c_preproc_warn_flag
13150 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
13157 if test -z "$ac_cpp_err"; then
13158 ac_header_preproc
=yes
13160 echo "$as_me: failed program was:" >&5
13161 sed 's/^/| /' conftest.
$ac_ext >&5
13163 ac_header_preproc
=no
13165 rm -f conftest.err conftest.
$ac_ext
13166 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13167 echo "${ECHO_T}$ac_header_preproc" >&6
13169 # So? What about this header?
13170 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13172 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13173 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13174 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13175 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13176 ac_header_preproc
=yes
13179 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13180 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13181 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13182 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13183 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13184 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13185 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13186 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13187 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13188 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13189 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13190 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13193 ## ------------------------------------------ ##
13194 ## Report this to the AC_PACKAGE_NAME lists. ##
13195 ## ------------------------------------------ ##
13198 sed "s/^/$as_me: WARNING: /" >&2
13201 echo "$as_me:$LINENO: checking for $ac_header" >&5
13202 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13203 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13204 echo $ECHO_N "(cached) $ECHO_C" >&6
13206 eval "$as_ac_Header=\$ac_header_preproc"
13208 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13209 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13212 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13213 cat >>confdefs.h
<<_ACEOF
13214 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13225 for ac_header
in stdlib.h sys
/time.h unistd.h
13227 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13228 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13229 echo "$as_me:$LINENO: checking for $ac_header" >&5
13230 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13231 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13232 echo $ECHO_N "(cached) $ECHO_C" >&6
13234 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13235 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13237 # Is the header compilable?
13238 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13239 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13240 cat >conftest.
$ac_ext <<_ACEOF
13243 cat confdefs.h
>>conftest.
$ac_ext
13244 cat >>conftest.
$ac_ext <<_ACEOF
13245 /* end confdefs.h. */
13246 $ac_includes_default
13247 #include <$ac_header>
13249 rm -f conftest.
$ac_objext
13250 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13251 (eval $ac_compile) 2>conftest.er1
13253 grep -v '^ *+' conftest.er1
>conftest.err
13255 cat conftest.err
>&5
13256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13257 (exit $ac_status); } &&
13258 { ac_try
='test -z "$ac_c_werror_flag"
13259 || test ! -s conftest.err'
13260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13261 (eval $ac_try) 2>&5
13263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13264 (exit $ac_status); }; } &&
13265 { ac_try
='test -s conftest.$ac_objext'
13266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13267 (eval $ac_try) 2>&5
13269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13270 (exit $ac_status); }; }; then
13271 ac_header_compiler
=yes
13273 echo "$as_me: failed program was:" >&5
13274 sed 's/^/| /' conftest.
$ac_ext >&5
13276 ac_header_compiler
=no
13278 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13279 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13280 echo "${ECHO_T}$ac_header_compiler" >&6
13282 # Is the header present?
13283 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13284 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13285 cat >conftest.
$ac_ext <<_ACEOF
13288 cat confdefs.h
>>conftest.
$ac_ext
13289 cat >>conftest.
$ac_ext <<_ACEOF
13290 /* end confdefs.h. */
13291 #include <$ac_header>
13293 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13294 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
13296 grep -v '^ *+' conftest.er1
>conftest.err
13298 cat conftest.err
>&5
13299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13300 (exit $ac_status); } >/dev
/null
; then
13301 if test -s conftest.err
; then
13302 ac_cpp_err
=$ac_c_preproc_warn_flag
13303 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
13310 if test -z "$ac_cpp_err"; then
13311 ac_header_preproc
=yes
13313 echo "$as_me: failed program was:" >&5
13314 sed 's/^/| /' conftest.
$ac_ext >&5
13316 ac_header_preproc
=no
13318 rm -f conftest.err conftest.
$ac_ext
13319 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13320 echo "${ECHO_T}$ac_header_preproc" >&6
13322 # So? What about this header?
13323 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13325 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13326 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13327 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13328 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13329 ac_header_preproc
=yes
13332 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13333 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13334 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13335 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13336 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13337 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13338 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13339 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13340 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13341 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13342 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13343 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13346 ## ------------------------------------------ ##
13347 ## Report this to the AC_PACKAGE_NAME lists. ##
13348 ## ------------------------------------------ ##
13351 sed "s/^/$as_me: WARNING: /" >&2
13354 echo "$as_me:$LINENO: checking for $ac_header" >&5
13355 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13356 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13357 echo $ECHO_N "(cached) $ECHO_C" >&6
13359 eval "$as_ac_Header=\$ac_header_preproc"
13361 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13362 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13365 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13366 cat >>confdefs.h
<<_ACEOF
13367 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13375 for ac_func
in alarm
13377 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13378 echo "$as_me:$LINENO: checking for $ac_func" >&5
13379 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13380 if eval "test \"\${$as_ac_var+set}\" = set"; then
13381 echo $ECHO_N "(cached) $ECHO_C" >&6
13383 cat >conftest.
$ac_ext <<_ACEOF
13386 cat confdefs.h
>>conftest.
$ac_ext
13387 cat >>conftest.
$ac_ext <<_ACEOF
13388 /* end confdefs.h. */
13389 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13390 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13391 #define $ac_func innocuous_$ac_func
13393 /* System header to define __stub macros and hopefully few prototypes,
13394 which can conflict with char $ac_func (); below.
13395 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13396 <limits.h> exists even on freestanding compilers. */
13399 # include <limits.h>
13401 # include <assert.h>
13406 /* Override any gcc2 internal prototype to avoid an error. */
13411 /* We use char because int might match the return type of a gcc2
13412 builtin and then its argument prototype would still apply. */
13414 /* The GNU C library defines this for functions which it implements
13415 to always fail with ENOSYS. Some functions are actually named
13416 something starting with __ and the normal name is an alias. */
13417 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13420 char (*f) () = $ac_func;
13429 return f != $ac_func;
13434 rm -f conftest.
$ac_objext conftest
$ac_exeext
13435 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13436 (eval $ac_link) 2>conftest.er1
13438 grep -v '^ *+' conftest.er1
>conftest.err
13440 cat conftest.err
>&5
13441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13442 (exit $ac_status); } &&
13443 { ac_try
='test -z "$ac_c_werror_flag"
13444 || test ! -s conftest.err'
13445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13446 (eval $ac_try) 2>&5
13448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13449 (exit $ac_status); }; } &&
13450 { ac_try
='test -s conftest$ac_exeext'
13451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13452 (eval $ac_try) 2>&5
13454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13455 (exit $ac_status); }; }; then
13456 eval "$as_ac_var=yes"
13458 echo "$as_me: failed program was:" >&5
13459 sed 's/^/| /' conftest.
$ac_ext >&5
13461 eval "$as_ac_var=no"
13463 rm -f conftest.err conftest.
$ac_objext \
13464 conftest
$ac_exeext conftest.
$ac_ext
13466 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13467 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13468 if test `eval echo '${'$as_ac_var'}'` = yes; then
13469 cat >>confdefs.h
<<_ACEOF
13470 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13476 echo "$as_me:$LINENO: checking for working mktime" >&5
13477 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
13478 if test "${ac_cv_func_working_mktime+set}" = set; then
13479 echo $ECHO_N "(cached) $ECHO_C" >&6
13481 if test "$cross_compiling" = yes; then
13482 ac_cv_func_working_mktime
=no
13484 cat >conftest.
$ac_ext <<_ACEOF
13487 cat confdefs.h
>>conftest.
$ac_ext
13488 cat >>conftest.
$ac_ext <<_ACEOF
13489 /* end confdefs.h. */
13490 /* Test program from Paul Eggert and Tony Leneis. */
13491 #if TIME_WITH_SYS_TIME
13492 # include <sys/time.h>
13495 # if HAVE_SYS_TIME_H
13496 # include <sys/time.h>
13503 # include <stdlib.h>
13507 # include <unistd.h>
13511 # define alarm(X) /* empty */
13514 /* Work around redefinition to rpl_putenv by other config tests. */
13517 static time_t time_t_max;
13518 static time_t time_t_min;
13520 /* Values we'll use to set the TZ environment variable. */
13521 static char *tz_strings[] = {
13522 (char *) 0, "TZ=GMT0", "TZ=JST-9",
13523 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
13525 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
13527 /* Fail if mktime fails to convert a date in the spring-forward gap.
13528 Based on a problem report from Andreas Jaeger. */
13530 spring_forward_gap ()
13532 /* glibc (up to about 1998-10-07) failed this test. */
13535 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
13536 instead of "TZ=America/Vancouver" in order to detect the bug even
13537 on systems that don't support the Olson extension, or don't have the
13538 full zoneinfo tables installed. */
13539 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
13548 if (mktime (&tm) == (time_t)-1)
13557 if ((lt = localtime (&now)) && mktime (lt) != now)
13565 mktime_test1 (now);
13566 mktime_test1 ((time_t) (time_t_max - now));
13567 mktime_test1 ((time_t) (time_t_min + now));
13573 /* Based on code from Ariel Faigon. */
13583 if (tm.tm_mon != 2 || tm.tm_mday != 31)
13593 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
13594 now = mktime (&tm);
13595 if (now != (time_t) -1)
13597 struct tm *lt = localtime (&now);
13599 && lt->tm_year == tm.tm_year
13600 && lt->tm_mon == tm.tm_mon
13601 && lt->tm_mday == tm.tm_mday
13602 && lt->tm_hour == tm.tm_hour
13603 && lt->tm_min == tm.tm_min
13604 && lt->tm_sec == tm.tm_sec
13605 && lt->tm_yday == tm.tm_yday
13606 && lt->tm_wday == tm.tm_wday
13607 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
13608 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
13619 /* This test makes some buggy mktime implementations loop.
13620 Give up after 60 seconds; a mktime slower than that
13621 isn't worth using anyway. */
13624 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
13627 if ((time_t) -1 < 0)
13628 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
13630 delta = time_t_max / 997; /* a suitable prime number */
13631 for (i = 0; i < N_STRINGS; i++)
13634 putenv (tz_strings[i]);
13636 for (t = 0; t <= time_t_max - delta; t += delta)
13638 mktime_test ((time_t) 1);
13639 mktime_test ((time_t) (60 * 60));
13640 mktime_test ((time_t) (60 * 60 * 24));
13642 for (j = 1; 0 < j; j *= 2)
13644 bigtime_test (j - 1);
13647 spring_forward_gap ();
13651 rm -f conftest
$ac_exeext
13652 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13653 (eval $ac_link) 2>&5
13655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13656 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
13657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13658 (eval $ac_try) 2>&5
13660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13661 (exit $ac_status); }; }; then
13662 ac_cv_func_working_mktime
=yes
13664 echo "$as_me: program exited with status $ac_status" >&5
13665 echo "$as_me: failed program was:" >&5
13666 sed 's/^/| /' conftest.
$ac_ext >&5
13668 ( exit $ac_status )
13669 ac_cv_func_working_mktime
=no
13671 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
13674 echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
13675 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
13676 if test $ac_cv_func_working_mktime = no
; then
13678 "mktime.$ac_objext" | \
13679 *" mktime.$ac_objext" | \
13680 "mktime.$ac_objext "* | \
13681 *" mktime.$ac_objext "* ) ;;
13682 *) LIBOBJS
="$LIBOBJS mktime.$ac_objext" ;;
13687 if test "$ac_cv_func_working_mktime" = no
; then
13689 cat >>confdefs.h
<<\_ACEOF
13690 #define BROKEN_MKTIME 1
13695 ac_have_func
=no
# yes means we've found a way to get the load average.
13697 # Make sure getloadavg.c is where it belongs, at configure-time.
13698 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
13699 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
13700 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
13701 { (exit 1); exit 1; }; }
13705 # Check for getloadavg, but be sure not to touch the cache variable.
13706 (echo "$as_me:$LINENO: checking for getloadavg" >&5
13707 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6
13708 if test "${ac_cv_func_getloadavg+set}" = set; then
13709 echo $ECHO_N "(cached) $ECHO_C" >&6
13711 cat >conftest.
$ac_ext <<_ACEOF
13714 cat confdefs.h
>>conftest.
$ac_ext
13715 cat >>conftest.
$ac_ext <<_ACEOF
13716 /* end confdefs.h. */
13717 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
13718 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13719 #define getloadavg innocuous_getloadavg
13721 /* System header to define __stub macros and hopefully few prototypes,
13722 which can conflict with char getloadavg (); below.
13723 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13724 <limits.h> exists even on freestanding compilers. */
13727 # include <limits.h>
13729 # include <assert.h>
13734 /* Override any gcc2 internal prototype to avoid an error. */
13739 /* We use char because int might match the return type of a gcc2
13740 builtin and then its argument prototype would still apply. */
13741 char getloadavg ();
13742 /* The GNU C library defines this for functions which it implements
13743 to always fail with ENOSYS. Some functions are actually named
13744 something starting with __ and the normal name is an alias. */
13745 #if defined (__stub_getloadavg) || defined (__stub___getloadavg)
13748 char (*f) () = getloadavg;
13757 return f != getloadavg;
13762 rm -f conftest.
$ac_objext conftest
$ac_exeext
13763 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13764 (eval $ac_link) 2>conftest.er1
13766 grep -v '^ *+' conftest.er1
>conftest.err
13768 cat conftest.err
>&5
13769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13770 (exit $ac_status); } &&
13771 { ac_try
='test -z "$ac_c_werror_flag"
13772 || test ! -s conftest.err'
13773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13774 (eval $ac_try) 2>&5
13776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13777 (exit $ac_status); }; } &&
13778 { ac_try
='test -s conftest$ac_exeext'
13779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13780 (eval $ac_try) 2>&5
13782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13783 (exit $ac_status); }; }; then
13784 ac_cv_func_getloadavg
=yes
13786 echo "$as_me: failed program was:" >&5
13787 sed 's/^/| /' conftest.
$ac_ext >&5
13789 ac_cv_func_getloadavg
=no
13791 rm -f conftest.err conftest.
$ac_objext \
13792 conftest
$ac_exeext conftest.
$ac_ext
13794 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
13795 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6
13796 if test $ac_cv_func_getloadavg = yes; then
13801 ) && ac_have_func
=yes
13803 # On HPUX9, an unprivileged user can get load averages through this function.
13805 for ac_func
in pstat_getdynamic
13807 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13808 echo "$as_me:$LINENO: checking for $ac_func" >&5
13809 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13810 if eval "test \"\${$as_ac_var+set}\" = set"; then
13811 echo $ECHO_N "(cached) $ECHO_C" >&6
13813 cat >conftest.
$ac_ext <<_ACEOF
13816 cat confdefs.h
>>conftest.
$ac_ext
13817 cat >>conftest.
$ac_ext <<_ACEOF
13818 /* end confdefs.h. */
13819 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13820 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13821 #define $ac_func innocuous_$ac_func
13823 /* System header to define __stub macros and hopefully few prototypes,
13824 which can conflict with char $ac_func (); below.
13825 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13826 <limits.h> exists even on freestanding compilers. */
13829 # include <limits.h>
13831 # include <assert.h>
13836 /* Override any gcc2 internal prototype to avoid an error. */
13841 /* We use char because int might match the return type of a gcc2
13842 builtin and then its argument prototype would still apply. */
13844 /* The GNU C library defines this for functions which it implements
13845 to always fail with ENOSYS. Some functions are actually named
13846 something starting with __ and the normal name is an alias. */
13847 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13850 char (*f) () = $ac_func;
13859 return f != $ac_func;
13864 rm -f conftest.
$ac_objext conftest
$ac_exeext
13865 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13866 (eval $ac_link) 2>conftest.er1
13868 grep -v '^ *+' conftest.er1
>conftest.err
13870 cat conftest.err
>&5
13871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13872 (exit $ac_status); } &&
13873 { ac_try
='test -z "$ac_c_werror_flag"
13874 || test ! -s conftest.err'
13875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13876 (eval $ac_try) 2>&5
13878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13879 (exit $ac_status); }; } &&
13880 { ac_try
='test -s conftest$ac_exeext'
13881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13882 (eval $ac_try) 2>&5
13884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13885 (exit $ac_status); }; }; then
13886 eval "$as_ac_var=yes"
13888 echo "$as_me: failed program was:" >&5
13889 sed 's/^/| /' conftest.
$ac_ext >&5
13891 eval "$as_ac_var=no"
13893 rm -f conftest.err conftest.
$ac_objext \
13894 conftest
$ac_exeext conftest.
$ac_ext
13896 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13897 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13898 if test `eval echo '${'$as_ac_var'}'` = yes; then
13899 cat >>confdefs.h
<<_ACEOF
13900 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13907 # Solaris has libkstat which does not require root.
13909 echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
13910 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6
13911 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
13912 echo $ECHO_N "(cached) $ECHO_C" >&6
13914 ac_check_lib_save_LIBS
=$LIBS
13915 LIBS
="-lkstat $LIBS"
13916 cat >conftest.
$ac_ext <<_ACEOF
13919 cat confdefs.h
>>conftest.
$ac_ext
13920 cat >>conftest.
$ac_ext <<_ACEOF
13921 /* end confdefs.h. */
13923 /* Override any gcc2 internal prototype to avoid an error. */
13927 /* We use char because int might match the return type of a gcc2
13928 builtin and then its argument prototype would still apply. */
13929 char kstat_open ();
13938 rm -f conftest.
$ac_objext conftest
$ac_exeext
13939 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13940 (eval $ac_link) 2>conftest.er1
13942 grep -v '^ *+' conftest.er1
>conftest.err
13944 cat conftest.err
>&5
13945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13946 (exit $ac_status); } &&
13947 { ac_try
='test -z "$ac_c_werror_flag"
13948 || test ! -s conftest.err'
13949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13950 (eval $ac_try) 2>&5
13952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13953 (exit $ac_status); }; } &&
13954 { ac_try
='test -s conftest$ac_exeext'
13955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13956 (eval $ac_try) 2>&5
13958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13959 (exit $ac_status); }; }; then
13960 ac_cv_lib_kstat_kstat_open
=yes
13962 echo "$as_me: failed program was:" >&5
13963 sed 's/^/| /' conftest.
$ac_ext >&5
13965 ac_cv_lib_kstat_kstat_open
=no
13967 rm -f conftest.err conftest.
$ac_objext \
13968 conftest
$ac_exeext conftest.
$ac_ext
13969 LIBS
=$ac_check_lib_save_LIBS
13971 echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
13972 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6
13973 if test $ac_cv_lib_kstat_kstat_open = yes; then
13974 cat >>confdefs.h
<<_ACEOF
13975 #define HAVE_LIBKSTAT 1
13978 LIBS
="-lkstat $LIBS"
13982 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func
=yes
13984 # Some systems with -lutil have (and need) -lkvm as well, some do not.
13985 # On Solaris, -lkvm requires nlist from -lelf, so check that first
13986 # to get the right answer into the cache.
13987 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
13988 if test $ac_have_func = no
; then
13989 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
13990 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
13991 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
13992 echo $ECHO_N "(cached) $ECHO_C" >&6
13994 ac_check_lib_save_LIBS
=$LIBS
13996 cat >conftest.
$ac_ext <<_ACEOF
13999 cat confdefs.h
>>conftest.
$ac_ext
14000 cat >>conftest.
$ac_ext <<_ACEOF
14001 /* end confdefs.h. */
14003 /* Override any gcc2 internal prototype to avoid an error. */
14007 /* We use char because int might match the return type of a gcc2
14008 builtin and then its argument prototype would still apply. */
14018 rm -f conftest.
$ac_objext conftest
$ac_exeext
14019 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14020 (eval $ac_link) 2>conftest.er1
14022 grep -v '^ *+' conftest.er1
>conftest.err
14024 cat conftest.err
>&5
14025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14026 (exit $ac_status); } &&
14027 { ac_try
='test -z "$ac_c_werror_flag"
14028 || test ! -s conftest.err'
14029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14030 (eval $ac_try) 2>&5
14032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14033 (exit $ac_status); }; } &&
14034 { ac_try
='test -s conftest$ac_exeext'
14035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14036 (eval $ac_try) 2>&5
14038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14039 (exit $ac_status); }; }; then
14040 ac_cv_lib_elf_elf_begin
=yes
14042 echo "$as_me: failed program was:" >&5
14043 sed 's/^/| /' conftest.
$ac_ext >&5
14045 ac_cv_lib_elf_elf_begin
=no
14047 rm -f conftest.err conftest.
$ac_objext \
14048 conftest
$ac_exeext conftest.
$ac_ext
14049 LIBS
=$ac_check_lib_save_LIBS
14051 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
14052 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
14053 if test $ac_cv_lib_elf_elf_begin = yes; then
14058 if test $ac_have_func = no
; then
14059 echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
14060 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6
14061 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
14062 echo $ECHO_N "(cached) $ECHO_C" >&6
14064 ac_check_lib_save_LIBS
=$LIBS
14066 cat >conftest.
$ac_ext <<_ACEOF
14069 cat confdefs.h
>>conftest.
$ac_ext
14070 cat >>conftest.
$ac_ext <<_ACEOF
14071 /* end confdefs.h. */
14073 /* Override any gcc2 internal prototype to avoid an error. */
14077 /* We use char because int might match the return type of a gcc2
14078 builtin and then its argument prototype would still apply. */
14088 rm -f conftest.
$ac_objext conftest
$ac_exeext
14089 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14090 (eval $ac_link) 2>conftest.er1
14092 grep -v '^ *+' conftest.er1
>conftest.err
14094 cat conftest.err
>&5
14095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14096 (exit $ac_status); } &&
14097 { ac_try
='test -z "$ac_c_werror_flag"
14098 || test ! -s conftest.err'
14099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14100 (eval $ac_try) 2>&5
14102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14103 (exit $ac_status); }; } &&
14104 { ac_try
='test -s conftest$ac_exeext'
14105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14106 (eval $ac_try) 2>&5
14108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14109 (exit $ac_status); }; }; then
14110 ac_cv_lib_kvm_kvm_open
=yes
14112 echo "$as_me: failed program was:" >&5
14113 sed 's/^/| /' conftest.
$ac_ext >&5
14115 ac_cv_lib_kvm_kvm_open
=no
14117 rm -f conftest.err conftest.
$ac_objext \
14118 conftest
$ac_exeext conftest.
$ac_ext
14119 LIBS
=$ac_check_lib_save_LIBS
14121 echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
14122 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6
14123 if test $ac_cv_lib_kvm_kvm_open = yes; then
14127 # Check for the 4.4BSD definition of getloadavg.
14128 echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
14129 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6
14130 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
14131 echo $ECHO_N "(cached) $ECHO_C" >&6
14133 ac_check_lib_save_LIBS
=$LIBS
14134 LIBS
="-lutil $LIBS"
14135 cat >conftest.
$ac_ext <<_ACEOF
14138 cat confdefs.h
>>conftest.
$ac_ext
14139 cat >>conftest.
$ac_ext <<_ACEOF
14140 /* end confdefs.h. */
14142 /* Override any gcc2 internal prototype to avoid an error. */
14146 /* We use char because int might match the return type of a gcc2
14147 builtin and then its argument prototype would still apply. */
14148 char getloadavg ();
14157 rm -f conftest.
$ac_objext conftest
$ac_exeext
14158 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14159 (eval $ac_link) 2>conftest.er1
14161 grep -v '^ *+' conftest.er1
>conftest.err
14163 cat conftest.err
>&5
14164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14165 (exit $ac_status); } &&
14166 { ac_try
='test -z "$ac_c_werror_flag"
14167 || test ! -s conftest.err'
14168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14169 (eval $ac_try) 2>&5
14171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14172 (exit $ac_status); }; } &&
14173 { ac_try
='test -s conftest$ac_exeext'
14174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14175 (eval $ac_try) 2>&5
14177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14178 (exit $ac_status); }; }; then
14179 ac_cv_lib_util_getloadavg
=yes
14181 echo "$as_me: failed program was:" >&5
14182 sed 's/^/| /' conftest.
$ac_ext >&5
14184 ac_cv_lib_util_getloadavg
=no
14186 rm -f conftest.err conftest.
$ac_objext \
14187 conftest
$ac_exeext conftest.
$ac_ext
14188 LIBS
=$ac_check_lib_save_LIBS
14190 echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
14191 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6
14192 if test $ac_cv_lib_util_getloadavg = yes; then
14193 LIBS
="-lutil $LIBS" ac_have_func
=yes ac_cv_func_getloadavg_setgid
=yes
14198 if test $ac_have_func = no
; then
14199 # There is a commonly available library for RS/6000 AIX.
14200 # Since it is not a standard part of AIX, it might be installed locally.
14201 ac_getloadavg_LIBS
=$LIBS
14202 LIBS
="-L/usr/local/lib $LIBS"
14203 echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
14204 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6
14205 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
14206 echo $ECHO_N "(cached) $ECHO_C" >&6
14208 ac_check_lib_save_LIBS
=$LIBS
14209 LIBS
="-lgetloadavg $LIBS"
14210 cat >conftest.
$ac_ext <<_ACEOF
14213 cat confdefs.h
>>conftest.
$ac_ext
14214 cat >>conftest.
$ac_ext <<_ACEOF
14215 /* end confdefs.h. */
14217 /* Override any gcc2 internal prototype to avoid an error. */
14221 /* We use char because int might match the return type of a gcc2
14222 builtin and then its argument prototype would still apply. */
14223 char getloadavg ();
14232 rm -f conftest.
$ac_objext conftest
$ac_exeext
14233 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14234 (eval $ac_link) 2>conftest.er1
14236 grep -v '^ *+' conftest.er1
>conftest.err
14238 cat conftest.err
>&5
14239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14240 (exit $ac_status); } &&
14241 { ac_try
='test -z "$ac_c_werror_flag"
14242 || test ! -s conftest.err'
14243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14244 (eval $ac_try) 2>&5
14246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14247 (exit $ac_status); }; } &&
14248 { ac_try
='test -s conftest$ac_exeext'
14249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14250 (eval $ac_try) 2>&5
14252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14253 (exit $ac_status); }; }; then
14254 ac_cv_lib_getloadavg_getloadavg
=yes
14256 echo "$as_me: failed program was:" >&5
14257 sed 's/^/| /' conftest.
$ac_ext >&5
14259 ac_cv_lib_getloadavg_getloadavg
=no
14261 rm -f conftest.err conftest.
$ac_objext \
14262 conftest
$ac_exeext conftest.
$ac_ext
14263 LIBS
=$ac_check_lib_save_LIBS
14265 echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
14266 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6
14267 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
14268 LIBS
="-lgetloadavg $LIBS"
14270 LIBS
=$ac_getloadavg_LIBS
14275 # Make sure it is really in the library, if we think we found it,
14276 # otherwise set up the replacement function.
14278 for ac_func
in getloadavg
14280 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14281 echo "$as_me:$LINENO: checking for $ac_func" >&5
14282 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14283 if eval "test \"\${$as_ac_var+set}\" = set"; then
14284 echo $ECHO_N "(cached) $ECHO_C" >&6
14286 cat >conftest.
$ac_ext <<_ACEOF
14289 cat confdefs.h
>>conftest.
$ac_ext
14290 cat >>conftest.
$ac_ext <<_ACEOF
14291 /* end confdefs.h. */
14292 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14293 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14294 #define $ac_func innocuous_$ac_func
14296 /* System header to define __stub macros and hopefully few prototypes,
14297 which can conflict with char $ac_func (); below.
14298 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14299 <limits.h> exists even on freestanding compilers. */
14302 # include <limits.h>
14304 # include <assert.h>
14309 /* Override any gcc2 internal prototype to avoid an error. */
14314 /* We use char because int might match the return type of a gcc2
14315 builtin and then its argument prototype would still apply. */
14317 /* The GNU C library defines this for functions which it implements
14318 to always fail with ENOSYS. Some functions are actually named
14319 something starting with __ and the normal name is an alias. */
14320 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14323 char (*f) () = $ac_func;
14332 return f != $ac_func;
14337 rm -f conftest.
$ac_objext conftest
$ac_exeext
14338 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14339 (eval $ac_link) 2>conftest.er1
14341 grep -v '^ *+' conftest.er1
>conftest.err
14343 cat conftest.err
>&5
14344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14345 (exit $ac_status); } &&
14346 { ac_try
='test -z "$ac_c_werror_flag"
14347 || test ! -s conftest.err'
14348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14349 (eval $ac_try) 2>&5
14351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14352 (exit $ac_status); }; } &&
14353 { ac_try
='test -s conftest$ac_exeext'
14354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14355 (eval $ac_try) 2>&5
14357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14358 (exit $ac_status); }; }; then
14359 eval "$as_ac_var=yes"
14361 echo "$as_me: failed program was:" >&5
14362 sed 's/^/| /' conftest.
$ac_ext >&5
14364 eval "$as_ac_var=no"
14366 rm -f conftest.err conftest.
$ac_objext \
14367 conftest
$ac_exeext conftest.
$ac_ext
14369 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14370 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14371 if test `eval echo '${'$as_ac_var'}'` = yes; then
14372 cat >>confdefs.h
<<_ACEOF
14373 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14378 "getloadavg.$ac_objext" | \
14379 *" getloadavg.$ac_objext" | \
14380 "getloadavg.$ac_objext "* | \
14381 *" getloadavg.$ac_objext "* ) ;;
14382 *) LIBOBJS
="$LIBOBJS getloadavg.$ac_objext" ;;
14386 cat >>confdefs.h
<<\_ACEOF
14387 #define C_GETLOADAVG 1
14390 # Figure out what our getloadavg.c needs.
14392 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
14393 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
14394 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
14395 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
14396 echo $ECHO_N "(cached) $ECHO_C" >&6
14398 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
14399 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
14401 # Is the header compilable?
14402 echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
14403 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6
14404 cat >conftest.
$ac_ext <<_ACEOF
14407 cat confdefs.h
>>conftest.
$ac_ext
14408 cat >>conftest.
$ac_ext <<_ACEOF
14409 /* end confdefs.h. */
14410 $ac_includes_default
14411 #include <sys/dg_sys_info.h>
14413 rm -f conftest.
$ac_objext
14414 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14415 (eval $ac_compile) 2>conftest.er1
14417 grep -v '^ *+' conftest.er1
>conftest.err
14419 cat conftest.err
>&5
14420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14421 (exit $ac_status); } &&
14422 { ac_try
='test -z "$ac_c_werror_flag"
14423 || test ! -s conftest.err'
14424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14425 (eval $ac_try) 2>&5
14427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14428 (exit $ac_status); }; } &&
14429 { ac_try
='test -s conftest.$ac_objext'
14430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14431 (eval $ac_try) 2>&5
14433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14434 (exit $ac_status); }; }; then
14435 ac_header_compiler
=yes
14437 echo "$as_me: failed program was:" >&5
14438 sed 's/^/| /' conftest.
$ac_ext >&5
14440 ac_header_compiler
=no
14442 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14443 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14444 echo "${ECHO_T}$ac_header_compiler" >&6
14446 # Is the header present?
14447 echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
14448 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6
14449 cat >conftest.
$ac_ext <<_ACEOF
14452 cat confdefs.h
>>conftest.
$ac_ext
14453 cat >>conftest.
$ac_ext <<_ACEOF
14454 /* end confdefs.h. */
14455 #include <sys/dg_sys_info.h>
14457 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14458 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
14460 grep -v '^ *+' conftest.er1
>conftest.err
14462 cat conftest.err
>&5
14463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14464 (exit $ac_status); } >/dev
/null
; then
14465 if test -s conftest.err
; then
14466 ac_cpp_err
=$ac_c_preproc_warn_flag
14467 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
14474 if test -z "$ac_cpp_err"; then
14475 ac_header_preproc
=yes
14477 echo "$as_me: failed program was:" >&5
14478 sed 's/^/| /' conftest.
$ac_ext >&5
14480 ac_header_preproc
=no
14482 rm -f conftest.err conftest.
$ac_ext
14483 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14484 echo "${ECHO_T}$ac_header_preproc" >&6
14486 # So? What about this header?
14487 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14489 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
14490 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14491 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
14492 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
14493 ac_header_preproc
=yes
14496 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
14497 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
14498 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
14499 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
14500 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
14501 echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
14502 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
14503 echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
14504 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
14505 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
14506 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
14507 echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
14510 ## ------------------------------------------ ##
14511 ## Report this to the AC_PACKAGE_NAME lists. ##
14512 ## ------------------------------------------ ##
14515 sed "s/^/$as_me: WARNING: /" >&2
14518 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
14519 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
14520 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
14521 echo $ECHO_N "(cached) $ECHO_C" >&6
14523 ac_cv_header_sys_dg_sys_info_h
=$ac_header_preproc
14525 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
14526 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
14529 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
14532 cat >>confdefs.h
<<\_ACEOF
14537 echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
14538 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6
14539 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
14540 echo $ECHO_N "(cached) $ECHO_C" >&6
14542 ac_check_lib_save_LIBS
=$LIBS
14544 cat >conftest.
$ac_ext <<_ACEOF
14547 cat confdefs.h
>>conftest.
$ac_ext
14548 cat >>conftest.
$ac_ext <<_ACEOF
14549 /* end confdefs.h. */
14551 /* Override any gcc2 internal prototype to avoid an error. */
14555 /* We use char because int might match the return type of a gcc2
14556 builtin and then its argument prototype would still apply. */
14557 char dg_sys_info ();
14566 rm -f conftest.
$ac_objext conftest
$ac_exeext
14567 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14568 (eval $ac_link) 2>conftest.er1
14570 grep -v '^ *+' conftest.er1
>conftest.err
14572 cat conftest.err
>&5
14573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14574 (exit $ac_status); } &&
14575 { ac_try
='test -z "$ac_c_werror_flag"
14576 || test ! -s conftest.err'
14577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14578 (eval $ac_try) 2>&5
14580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14581 (exit $ac_status); }; } &&
14582 { ac_try
='test -s conftest$ac_exeext'
14583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14584 (eval $ac_try) 2>&5
14586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14587 (exit $ac_status); }; }; then
14588 ac_cv_lib_dgc_dg_sys_info
=yes
14590 echo "$as_me: failed program was:" >&5
14591 sed 's/^/| /' conftest.
$ac_ext >&5
14593 ac_cv_lib_dgc_dg_sys_info
=no
14595 rm -f conftest.err conftest.
$ac_objext \
14596 conftest
$ac_exeext conftest.
$ac_ext
14597 LIBS
=$ac_check_lib_save_LIBS
14599 echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
14600 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6
14601 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
14602 cat >>confdefs.h
<<_ACEOF
14603 #define HAVE_LIBDGC 1
14614 if test "${ac_cv_header_locale_h+set}" = set; then
14615 echo "$as_me:$LINENO: checking for locale.h" >&5
14616 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
14617 if test "${ac_cv_header_locale_h+set}" = set; then
14618 echo $ECHO_N "(cached) $ECHO_C" >&6
14620 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
14621 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
14623 # Is the header compilable?
14624 echo "$as_me:$LINENO: checking locale.h usability" >&5
14625 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6
14626 cat >conftest.
$ac_ext <<_ACEOF
14629 cat confdefs.h
>>conftest.
$ac_ext
14630 cat >>conftest.
$ac_ext <<_ACEOF
14631 /* end confdefs.h. */
14632 $ac_includes_default
14633 #include <locale.h>
14635 rm -f conftest.
$ac_objext
14636 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14637 (eval $ac_compile) 2>conftest.er1
14639 grep -v '^ *+' conftest.er1
>conftest.err
14641 cat conftest.err
>&5
14642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14643 (exit $ac_status); } &&
14644 { ac_try
='test -z "$ac_c_werror_flag"
14645 || test ! -s conftest.err'
14646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14647 (eval $ac_try) 2>&5
14649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14650 (exit $ac_status); }; } &&
14651 { ac_try
='test -s conftest.$ac_objext'
14652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14653 (eval $ac_try) 2>&5
14655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14656 (exit $ac_status); }; }; then
14657 ac_header_compiler
=yes
14659 echo "$as_me: failed program was:" >&5
14660 sed 's/^/| /' conftest.
$ac_ext >&5
14662 ac_header_compiler
=no
14664 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14665 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14666 echo "${ECHO_T}$ac_header_compiler" >&6
14668 # Is the header present?
14669 echo "$as_me:$LINENO: checking locale.h presence" >&5
14670 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6
14671 cat >conftest.
$ac_ext <<_ACEOF
14674 cat confdefs.h
>>conftest.
$ac_ext
14675 cat >>conftest.
$ac_ext <<_ACEOF
14676 /* end confdefs.h. */
14677 #include <locale.h>
14679 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14680 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
14682 grep -v '^ *+' conftest.er1
>conftest.err
14684 cat conftest.err
>&5
14685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14686 (exit $ac_status); } >/dev
/null
; then
14687 if test -s conftest.err
; then
14688 ac_cpp_err
=$ac_c_preproc_warn_flag
14689 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
14696 if test -z "$ac_cpp_err"; then
14697 ac_header_preproc
=yes
14699 echo "$as_me: failed program was:" >&5
14700 sed 's/^/| /' conftest.
$ac_ext >&5
14702 ac_header_preproc
=no
14704 rm -f conftest.err conftest.
$ac_ext
14705 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14706 echo "${ECHO_T}$ac_header_preproc" >&6
14708 # So? What about this header?
14709 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14711 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
14712 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14713 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
14714 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
14715 ac_header_preproc
=yes
14718 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
14719 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
14720 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
14721 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
14722 { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
14723 echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
14724 { echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
14725 echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
14726 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
14727 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
14728 { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
14729 echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
14732 ## ------------------------------------------ ##
14733 ## Report this to the AC_PACKAGE_NAME lists. ##
14734 ## ------------------------------------------ ##
14737 sed "s/^/$as_me: WARNING: /" >&2
14740 echo "$as_me:$LINENO: checking for locale.h" >&5
14741 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
14742 if test "${ac_cv_header_locale_h+set}" = set; then
14743 echo $ECHO_N "(cached) $ECHO_C" >&6
14745 ac_cv_header_locale_h
=$ac_header_preproc
14747 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
14748 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
14754 for ac_func
in setlocale
14756 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14757 echo "$as_me:$LINENO: checking for $ac_func" >&5
14758 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14759 if eval "test \"\${$as_ac_var+set}\" = set"; then
14760 echo $ECHO_N "(cached) $ECHO_C" >&6
14762 cat >conftest.
$ac_ext <<_ACEOF
14765 cat confdefs.h
>>conftest.
$ac_ext
14766 cat >>conftest.
$ac_ext <<_ACEOF
14767 /* end confdefs.h. */
14768 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14769 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14770 #define $ac_func innocuous_$ac_func
14772 /* System header to define __stub macros and hopefully few prototypes,
14773 which can conflict with char $ac_func (); below.
14774 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14775 <limits.h> exists even on freestanding compilers. */
14778 # include <limits.h>
14780 # include <assert.h>
14785 /* Override any gcc2 internal prototype to avoid an error. */
14790 /* We use char because int might match the return type of a gcc2
14791 builtin and then its argument prototype would still apply. */
14793 /* The GNU C library defines this for functions which it implements
14794 to always fail with ENOSYS. Some functions are actually named
14795 something starting with __ and the normal name is an alias. */
14796 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14799 char (*f) () = $ac_func;
14808 return f != $ac_func;
14813 rm -f conftest.
$ac_objext conftest
$ac_exeext
14814 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14815 (eval $ac_link) 2>conftest.er1
14817 grep -v '^ *+' conftest.er1
>conftest.err
14819 cat conftest.err
>&5
14820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14821 (exit $ac_status); } &&
14822 { ac_try
='test -z "$ac_c_werror_flag"
14823 || test ! -s conftest.err'
14824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14825 (eval $ac_try) 2>&5
14827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14828 (exit $ac_status); }; } &&
14829 { ac_try
='test -s conftest$ac_exeext'
14830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14831 (eval $ac_try) 2>&5
14833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14834 (exit $ac_status); }; }; then
14835 eval "$as_ac_var=yes"
14837 echo "$as_me: failed program was:" >&5
14838 sed 's/^/| /' conftest.
$ac_ext >&5
14840 eval "$as_ac_var=no"
14842 rm -f conftest.err conftest.
$ac_objext \
14843 conftest
$ac_exeext conftest.
$ac_ext
14845 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14846 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14847 if test `eval echo '${'$as_ac_var'}'` = yes; then
14848 cat >>confdefs.h
<<_ACEOF
14849 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14856 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
14857 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
14858 # Irix 4.0.5F has the header but not the library.
14859 if test $ac_have_func = no
&& test "$ac_cv_lib_elf_elf_begin" = yes; then
14862 cat >>confdefs.h
<<\_ACEOF
14868 if test $ac_have_func = no
; then
14869 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
14870 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
14871 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
14872 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
14873 echo $ECHO_N "(cached) $ECHO_C" >&6
14875 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
14876 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
14878 # Is the header compilable?
14879 echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
14880 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6
14881 cat >conftest.
$ac_ext <<_ACEOF
14884 cat confdefs.h
>>conftest.
$ac_ext
14885 cat >>conftest.
$ac_ext <<_ACEOF
14886 /* end confdefs.h. */
14887 $ac_includes_default
14888 #include <inq_stats/cpustats.h>
14890 rm -f conftest.
$ac_objext
14891 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14892 (eval $ac_compile) 2>conftest.er1
14894 grep -v '^ *+' conftest.er1
>conftest.err
14896 cat conftest.err
>&5
14897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14898 (exit $ac_status); } &&
14899 { ac_try
='test -z "$ac_c_werror_flag"
14900 || test ! -s conftest.err'
14901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14902 (eval $ac_try) 2>&5
14904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14905 (exit $ac_status); }; } &&
14906 { ac_try
='test -s conftest.$ac_objext'
14907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14908 (eval $ac_try) 2>&5
14910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14911 (exit $ac_status); }; }; then
14912 ac_header_compiler
=yes
14914 echo "$as_me: failed program was:" >&5
14915 sed 's/^/| /' conftest.
$ac_ext >&5
14917 ac_header_compiler
=no
14919 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14920 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14921 echo "${ECHO_T}$ac_header_compiler" >&6
14923 # Is the header present?
14924 echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
14925 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6
14926 cat >conftest.
$ac_ext <<_ACEOF
14929 cat confdefs.h
>>conftest.
$ac_ext
14930 cat >>conftest.
$ac_ext <<_ACEOF
14931 /* end confdefs.h. */
14932 #include <inq_stats/cpustats.h>
14934 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14935 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
14937 grep -v '^ *+' conftest.er1
>conftest.err
14939 cat conftest.err
>&5
14940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14941 (exit $ac_status); } >/dev
/null
; then
14942 if test -s conftest.err
; then
14943 ac_cpp_err
=$ac_c_preproc_warn_flag
14944 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
14951 if test -z "$ac_cpp_err"; then
14952 ac_header_preproc
=yes
14954 echo "$as_me: failed program was:" >&5
14955 sed 's/^/| /' conftest.
$ac_ext >&5
14957 ac_header_preproc
=no
14959 rm -f conftest.err conftest.
$ac_ext
14960 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14961 echo "${ECHO_T}$ac_header_preproc" >&6
14963 # So? What about this header?
14964 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14966 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
14967 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14968 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
14969 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
14970 ac_header_preproc
=yes
14973 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
14974 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
14975 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
14976 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
14977 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
14978 echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
14979 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
14980 echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
14981 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
14982 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
14983 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
14984 echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
14987 ## ------------------------------------------ ##
14988 ## Report this to the AC_PACKAGE_NAME lists. ##
14989 ## ------------------------------------------ ##
14992 sed "s/^/$as_me: WARNING: /" >&2
14995 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
14996 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
14997 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
14998 echo $ECHO_N "(cached) $ECHO_C" >&6
15000 ac_cv_header_inq_stats_cpustats_h
=$ac_header_preproc
15002 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
15003 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
15006 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
15009 cat >>confdefs.h
<<\_ACEOF
15014 cat >>confdefs.h
<<\_ACEOF
15023 if test $ac_have_func = no
; then
15024 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
15025 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
15026 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
15027 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
15028 echo $ECHO_N "(cached) $ECHO_C" >&6
15030 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
15031 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
15033 # Is the header compilable?
15034 echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
15035 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6
15036 cat >conftest.
$ac_ext <<_ACEOF
15039 cat confdefs.h
>>conftest.
$ac_ext
15040 cat >>conftest.
$ac_ext <<_ACEOF
15041 /* end confdefs.h. */
15042 $ac_includes_default
15043 #include <sys/cpustats.h>
15045 rm -f conftest.
$ac_objext
15046 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15047 (eval $ac_compile) 2>conftest.er1
15049 grep -v '^ *+' conftest.er1
>conftest.err
15051 cat conftest.err
>&5
15052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15053 (exit $ac_status); } &&
15054 { ac_try
='test -z "$ac_c_werror_flag"
15055 || test ! -s conftest.err'
15056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15057 (eval $ac_try) 2>&5
15059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15060 (exit $ac_status); }; } &&
15061 { ac_try
='test -s conftest.$ac_objext'
15062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15063 (eval $ac_try) 2>&5
15065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15066 (exit $ac_status); }; }; then
15067 ac_header_compiler
=yes
15069 echo "$as_me: failed program was:" >&5
15070 sed 's/^/| /' conftest.
$ac_ext >&5
15072 ac_header_compiler
=no
15074 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15075 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15076 echo "${ECHO_T}$ac_header_compiler" >&6
15078 # Is the header present?
15079 echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
15080 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6
15081 cat >conftest.
$ac_ext <<_ACEOF
15084 cat confdefs.h
>>conftest.
$ac_ext
15085 cat >>conftest.
$ac_ext <<_ACEOF
15086 /* end confdefs.h. */
15087 #include <sys/cpustats.h>
15089 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15090 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
15092 grep -v '^ *+' conftest.er1
>conftest.err
15094 cat conftest.err
>&5
15095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15096 (exit $ac_status); } >/dev
/null
; then
15097 if test -s conftest.err
; then
15098 ac_cpp_err
=$ac_c_preproc_warn_flag
15099 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
15106 if test -z "$ac_cpp_err"; then
15107 ac_header_preproc
=yes
15109 echo "$as_me: failed program was:" >&5
15110 sed 's/^/| /' conftest.
$ac_ext >&5
15112 ac_header_preproc
=no
15114 rm -f conftest.err conftest.
$ac_ext
15115 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15116 echo "${ECHO_T}$ac_header_preproc" >&6
15118 # So? What about this header?
15119 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15121 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
15122 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15123 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
15124 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
15125 ac_header_preproc
=yes
15128 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
15129 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
15130 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
15131 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
15132 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
15133 echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
15134 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
15135 echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
15136 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
15137 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
15138 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
15139 echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
15142 ## ------------------------------------------ ##
15143 ## Report this to the AC_PACKAGE_NAME lists. ##
15144 ## ------------------------------------------ ##
15147 sed "s/^/$as_me: WARNING: /" >&2
15150 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
15151 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
15152 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
15153 echo $ECHO_N "(cached) $ECHO_C" >&6
15155 ac_cv_header_sys_cpustats_h
=$ac_header_preproc
15157 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
15158 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
15161 if test $ac_cv_header_sys_cpustats_h = yes; then
15162 ac_have_func
=yes; cat >>confdefs.h
<<\_ACEOF
15171 if test $ac_have_func = no
; then
15173 for ac_header
in mach
/mach.h
15175 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15176 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15177 echo "$as_me:$LINENO: checking for $ac_header" >&5
15178 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15179 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15180 echo $ECHO_N "(cached) $ECHO_C" >&6
15182 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15183 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15185 # Is the header compilable?
15186 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15187 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15188 cat >conftest.
$ac_ext <<_ACEOF
15191 cat confdefs.h
>>conftest.
$ac_ext
15192 cat >>conftest.
$ac_ext <<_ACEOF
15193 /* end confdefs.h. */
15194 $ac_includes_default
15195 #include <$ac_header>
15197 rm -f conftest.
$ac_objext
15198 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15199 (eval $ac_compile) 2>conftest.er1
15201 grep -v '^ *+' conftest.er1
>conftest.err
15203 cat conftest.err
>&5
15204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15205 (exit $ac_status); } &&
15206 { ac_try
='test -z "$ac_c_werror_flag"
15207 || test ! -s conftest.err'
15208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15209 (eval $ac_try) 2>&5
15211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15212 (exit $ac_status); }; } &&
15213 { ac_try
='test -s conftest.$ac_objext'
15214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15215 (eval $ac_try) 2>&5
15217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15218 (exit $ac_status); }; }; then
15219 ac_header_compiler
=yes
15221 echo "$as_me: failed program was:" >&5
15222 sed 's/^/| /' conftest.
$ac_ext >&5
15224 ac_header_compiler
=no
15226 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15227 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15228 echo "${ECHO_T}$ac_header_compiler" >&6
15230 # Is the header present?
15231 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15232 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15233 cat >conftest.
$ac_ext <<_ACEOF
15236 cat confdefs.h
>>conftest.
$ac_ext
15237 cat >>conftest.
$ac_ext <<_ACEOF
15238 /* end confdefs.h. */
15239 #include <$ac_header>
15241 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15242 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
15244 grep -v '^ *+' conftest.er1
>conftest.err
15246 cat conftest.err
>&5
15247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15248 (exit $ac_status); } >/dev
/null
; then
15249 if test -s conftest.err
; then
15250 ac_cpp_err
=$ac_c_preproc_warn_flag
15251 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
15258 if test -z "$ac_cpp_err"; then
15259 ac_header_preproc
=yes
15261 echo "$as_me: failed program was:" >&5
15262 sed 's/^/| /' conftest.
$ac_ext >&5
15264 ac_header_preproc
=no
15266 rm -f conftest.err conftest.
$ac_ext
15267 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15268 echo "${ECHO_T}$ac_header_preproc" >&6
15270 # So? What about this header?
15271 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15273 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15274 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15275 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15276 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15277 ac_header_preproc
=yes
15280 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15281 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15282 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15283 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15284 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15285 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15286 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15287 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15288 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15289 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15290 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15291 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15294 ## ------------------------------------------ ##
15295 ## Report this to the AC_PACKAGE_NAME lists. ##
15296 ## ------------------------------------------ ##
15299 sed "s/^/$as_me: WARNING: /" >&2
15302 echo "$as_me:$LINENO: checking for $ac_header" >&5
15303 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15304 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15305 echo $ECHO_N "(cached) $ECHO_C" >&6
15307 eval "$as_ac_Header=\$ac_header_preproc"
15309 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15310 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15313 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15314 cat >>confdefs.h
<<_ACEOF
15315 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15325 for ac_header
in nlist.h
15327 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15328 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15329 echo "$as_me:$LINENO: checking for $ac_header" >&5
15330 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15331 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15332 echo $ECHO_N "(cached) $ECHO_C" >&6
15334 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15335 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15337 # Is the header compilable?
15338 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15339 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15340 cat >conftest.
$ac_ext <<_ACEOF
15343 cat confdefs.h
>>conftest.
$ac_ext
15344 cat >>conftest.
$ac_ext <<_ACEOF
15345 /* end confdefs.h. */
15346 $ac_includes_default
15347 #include <$ac_header>
15349 rm -f conftest.
$ac_objext
15350 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15351 (eval $ac_compile) 2>conftest.er1
15353 grep -v '^ *+' conftest.er1
>conftest.err
15355 cat conftest.err
>&5
15356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15357 (exit $ac_status); } &&
15358 { ac_try
='test -z "$ac_c_werror_flag"
15359 || test ! -s conftest.err'
15360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15361 (eval $ac_try) 2>&5
15363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15364 (exit $ac_status); }; } &&
15365 { ac_try
='test -s conftest.$ac_objext'
15366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15367 (eval $ac_try) 2>&5
15369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15370 (exit $ac_status); }; }; then
15371 ac_header_compiler
=yes
15373 echo "$as_me: failed program was:" >&5
15374 sed 's/^/| /' conftest.
$ac_ext >&5
15376 ac_header_compiler
=no
15378 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15379 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15380 echo "${ECHO_T}$ac_header_compiler" >&6
15382 # Is the header present?
15383 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15384 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15385 cat >conftest.
$ac_ext <<_ACEOF
15388 cat confdefs.h
>>conftest.
$ac_ext
15389 cat >>conftest.
$ac_ext <<_ACEOF
15390 /* end confdefs.h. */
15391 #include <$ac_header>
15393 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15394 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
15396 grep -v '^ *+' conftest.er1
>conftest.err
15398 cat conftest.err
>&5
15399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15400 (exit $ac_status); } >/dev
/null
; then
15401 if test -s conftest.err
; then
15402 ac_cpp_err
=$ac_c_preproc_warn_flag
15403 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
15410 if test -z "$ac_cpp_err"; then
15411 ac_header_preproc
=yes
15413 echo "$as_me: failed program was:" >&5
15414 sed 's/^/| /' conftest.
$ac_ext >&5
15416 ac_header_preproc
=no
15418 rm -f conftest.err conftest.
$ac_ext
15419 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15420 echo "${ECHO_T}$ac_header_preproc" >&6
15422 # So? What about this header?
15423 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15425 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15426 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15427 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15428 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15429 ac_header_preproc
=yes
15432 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15433 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15434 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15435 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15436 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15437 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15438 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15439 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15440 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15441 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15442 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15443 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15446 ## ------------------------------------------ ##
15447 ## Report this to the AC_PACKAGE_NAME lists. ##
15448 ## ------------------------------------------ ##
15451 sed "s/^/$as_me: WARNING: /" >&2
15454 echo "$as_me:$LINENO: checking for $ac_header" >&5
15455 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15456 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15457 echo $ECHO_N "(cached) $ECHO_C" >&6
15459 eval "$as_ac_Header=\$ac_header_preproc"
15461 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15462 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15465 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15466 cat >>confdefs.h
<<_ACEOF
15467 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15469 echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
15470 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6
15471 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
15472 echo $ECHO_N "(cached) $ECHO_C" >&6
15474 cat >conftest.
$ac_ext <<_ACEOF
15477 cat confdefs.h
>>conftest.
$ac_ext
15478 cat >>conftest.
$ac_ext <<_ACEOF
15479 /* end confdefs.h. */
15485 static struct nlist ac_aggr;
15486 if (ac_aggr.n_un.n_name)
15492 rm -f conftest.
$ac_objext
15493 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15494 (eval $ac_compile) 2>conftest.er1
15496 grep -v '^ *+' conftest.er1
>conftest.err
15498 cat conftest.err
>&5
15499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15500 (exit $ac_status); } &&
15501 { ac_try
='test -z "$ac_c_werror_flag"
15502 || test ! -s conftest.err'
15503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15504 (eval $ac_try) 2>&5
15506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15507 (exit $ac_status); }; } &&
15508 { ac_try
='test -s conftest.$ac_objext'
15509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15510 (eval $ac_try) 2>&5
15512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15513 (exit $ac_status); }; }; then
15514 ac_cv_member_struct_nlist_n_un_n_name
=yes
15516 echo "$as_me: failed program was:" >&5
15517 sed 's/^/| /' conftest.
$ac_ext >&5
15519 cat >conftest.
$ac_ext <<_ACEOF
15522 cat confdefs.h
>>conftest.
$ac_ext
15523 cat >>conftest.
$ac_ext <<_ACEOF
15524 /* end confdefs.h. */
15530 static struct nlist ac_aggr;
15531 if (sizeof ac_aggr.n_un.n_name)
15537 rm -f conftest.
$ac_objext
15538 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15539 (eval $ac_compile) 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); } &&
15546 { ac_try
='test -z "$ac_c_werror_flag"
15547 || test ! -s conftest.err'
15548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15549 (eval $ac_try) 2>&5
15551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15552 (exit $ac_status); }; } &&
15553 { ac_try
='test -s conftest.$ac_objext'
15554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15555 (eval $ac_try) 2>&5
15557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15558 (exit $ac_status); }; }; then
15559 ac_cv_member_struct_nlist_n_un_n_name
=yes
15561 echo "$as_me: failed program was:" >&5
15562 sed 's/^/| /' conftest.
$ac_ext >&5
15564 ac_cv_member_struct_nlist_n_un_n_name
=no
15566 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15568 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15570 echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
15571 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6
15572 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
15574 cat >>confdefs.h
<<_ACEOF
15575 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
15579 cat >>confdefs.h
<<\_ACEOF
15580 #define NLIST_NAME_UNION 1
15594 # Some definitions of getloadavg require that the program be installed setgid.
15595 echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
15596 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6
15597 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
15598 echo $ECHO_N "(cached) $ECHO_C" >&6
15600 cat >conftest.
$ac_ext <<_ACEOF
15603 cat confdefs.h
>>conftest.
$ac_ext
15604 cat >>conftest.
$ac_ext <<_ACEOF
15605 /* end confdefs.h. */
15606 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
15607 #ifdef LDAV_PRIVILEGED
15608 Yowza Am I SETGID yet
15611 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15612 $EGREP "Yowza Am I SETGID yet" >/dev
/null
2>&1; then
15613 ac_cv_func_getloadavg_setgid
=yes
15615 ac_cv_func_getloadavg_setgid
=no
15620 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
15621 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6
15622 if test $ac_cv_func_getloadavg_setgid = yes; then
15625 cat >>confdefs.h
<<\_ACEOF
15626 #define GETLOADAVG_PRIVILEGED 1
15633 if test $ac_cv_func_getloadavg_setgid = yes; then
15634 echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
15635 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6
15636 if test "${ac_cv_group_kmem+set}" = set; then
15637 echo $ECHO_N "(cached) $ECHO_C" >&6
15639 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
15640 ac_ls_output
=`ls -lgL /dev/kmem 2>/dev/null`
15641 # If we got an error (system does not support symlinks), try without -L.
15642 test -z "$ac_ls_output" && ac_ls_output
=`ls -lg /dev/kmem`
15643 ac_cv_group_kmem
=`echo $ac_ls_output \
15644 | sed -ne 's/[ ][ ]*/ /g;
15645 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
15649 echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
15650 echo "${ECHO_T}$ac_cv_group_kmem" >&6
15651 KMEM_GROUP
=$ac_cv_group_kmem
15653 if test "x$ac_save_LIBS" = x
; then
15654 GETLOADAVG_LIBS
=$LIBS
15656 GETLOADAVG_LIBS
=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
15662 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
15663 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
15664 if test "${ac_cv_sys_largefile_source+set}" = set; then
15665 echo $ECHO_N "(cached) $ECHO_C" >&6
15668 ac_cv_sys_largefile_source
=no
15669 cat >conftest.
$ac_ext <<_ACEOF
15672 cat confdefs.h
>>conftest.
$ac_ext
15673 cat >>conftest.
$ac_ext <<_ACEOF
15674 /* end confdefs.h. */
15684 rm -f conftest.
$ac_objext
15685 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15686 (eval $ac_compile) 2>conftest.er1
15688 grep -v '^ *+' conftest.er1
>conftest.err
15690 cat conftest.err
>&5
15691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15692 (exit $ac_status); } &&
15693 { ac_try
='test -z "$ac_c_werror_flag"
15694 || test ! -s conftest.err'
15695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15696 (eval $ac_try) 2>&5
15698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15699 (exit $ac_status); }; } &&
15700 { ac_try
='test -s conftest.$ac_objext'
15701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15702 (eval $ac_try) 2>&5
15704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15705 (exit $ac_status); }; }; then
15708 echo "$as_me: failed program was:" >&5
15709 sed 's/^/| /' conftest.
$ac_ext >&5
15712 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15713 cat >conftest.
$ac_ext <<_ACEOF
15716 cat confdefs.h
>>conftest.
$ac_ext
15717 cat >>conftest.
$ac_ext <<_ACEOF
15718 /* end confdefs.h. */
15719 #define _LARGEFILE_SOURCE 1
15729 rm -f conftest.
$ac_objext
15730 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15731 (eval $ac_compile) 2>conftest.er1
15733 grep -v '^ *+' conftest.er1
>conftest.err
15735 cat conftest.err
>&5
15736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15737 (exit $ac_status); } &&
15738 { ac_try
='test -z "$ac_c_werror_flag"
15739 || test ! -s conftest.err'
15740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15741 (eval $ac_try) 2>&5
15743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15744 (exit $ac_status); }; } &&
15745 { ac_try
='test -s conftest.$ac_objext'
15746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15747 (eval $ac_try) 2>&5
15749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15750 (exit $ac_status); }; }; then
15751 ac_cv_sys_largefile_source
=1; break
15753 echo "$as_me: failed program was:" >&5
15754 sed 's/^/| /' conftest.
$ac_ext >&5
15757 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15761 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
15762 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
15763 if test "$ac_cv_sys_largefile_source" != no
; then
15765 cat >>confdefs.h
<<_ACEOF
15766 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
15772 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
15773 # in glibc 2.1.3, but that breaks too many other things.
15774 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
15775 echo "$as_me:$LINENO: checking for fseeko" >&5
15776 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
15777 if test "${ac_cv_func_fseeko+set}" = set; then
15778 echo $ECHO_N "(cached) $ECHO_C" >&6
15780 cat >conftest.
$ac_ext <<_ACEOF
15783 cat confdefs.h
>>conftest.
$ac_ext
15784 cat >>conftest.
$ac_ext <<_ACEOF
15785 /* end confdefs.h. */
15790 return fseeko && fseeko (stdin, 0, 0);
15795 rm -f conftest.
$ac_objext conftest
$ac_exeext
15796 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15797 (eval $ac_link) 2>conftest.er1
15799 grep -v '^ *+' conftest.er1
>conftest.err
15801 cat conftest.err
>&5
15802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15803 (exit $ac_status); } &&
15804 { ac_try
='test -z "$ac_c_werror_flag"
15805 || test ! -s conftest.err'
15806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15807 (eval $ac_try) 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_func_fseeko
=yes
15819 echo "$as_me: failed program was:" >&5
15820 sed 's/^/| /' conftest.
$ac_ext >&5
15822 ac_cv_func_fseeko
=no
15824 rm -f conftest.err conftest.
$ac_objext \
15825 conftest
$ac_exeext conftest.
$ac_ext
15827 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
15828 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
15829 if test $ac_cv_func_fseeko = yes; then
15831 cat >>confdefs.h
<<\_ACEOF
15832 #define HAVE_FSEEKO 1
15838 echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
15839 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6
15840 if test "${ac_cv_func_getpgrp_void+set}" = set; then
15841 echo $ECHO_N "(cached) $ECHO_C" >&6
15843 # Use it with a single arg.
15844 cat >conftest.
$ac_ext <<_ACEOF
15847 cat confdefs.h
>>conftest.
$ac_ext
15848 cat >>conftest.
$ac_ext <<_ACEOF
15849 /* end confdefs.h. */
15850 $ac_includes_default
15859 rm -f conftest.
$ac_objext
15860 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15861 (eval $ac_compile) 2>conftest.er1
15863 grep -v '^ *+' conftest.er1
>conftest.err
15865 cat conftest.err
>&5
15866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15867 (exit $ac_status); } &&
15868 { ac_try
='test -z "$ac_c_werror_flag"
15869 || test ! -s conftest.err'
15870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15871 (eval $ac_try) 2>&5
15873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15874 (exit $ac_status); }; } &&
15875 { ac_try
='test -s conftest.$ac_objext'
15876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15877 (eval $ac_try) 2>&5
15879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15880 (exit $ac_status); }; }; then
15881 ac_cv_func_getpgrp_void
=no
15883 echo "$as_me: failed program was:" >&5
15884 sed 's/^/| /' conftest.
$ac_ext >&5
15886 ac_cv_func_getpgrp_void
=yes
15888 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15891 echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
15892 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6
15893 if test $ac_cv_func_getpgrp_void = yes; then
15895 cat >>confdefs.h
<<\_ACEOF
15896 #define GETPGRP_VOID 1
15903 for ac_func
in strftime
15905 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15906 echo "$as_me:$LINENO: checking for $ac_func" >&5
15907 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15908 if eval "test \"\${$as_ac_var+set}\" = set"; then
15909 echo $ECHO_N "(cached) $ECHO_C" >&6
15911 cat >conftest.
$ac_ext <<_ACEOF
15914 cat confdefs.h
>>conftest.
$ac_ext
15915 cat >>conftest.
$ac_ext <<_ACEOF
15916 /* end confdefs.h. */
15917 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15918 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15919 #define $ac_func innocuous_$ac_func
15921 /* System header to define __stub macros and hopefully few prototypes,
15922 which can conflict with char $ac_func (); below.
15923 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15924 <limits.h> exists even on freestanding compilers. */
15927 # include <limits.h>
15929 # include <assert.h>
15934 /* Override any gcc2 internal prototype to avoid an error. */
15939 /* We use char because int might match the return type of a gcc2
15940 builtin and then its argument prototype would still apply. */
15942 /* The GNU C library defines this for functions which it implements
15943 to always fail with ENOSYS. Some functions are actually named
15944 something starting with __ and the normal name is an alias. */
15945 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15948 char (*f) () = $ac_func;
15957 return f != $ac_func;
15962 rm -f conftest.
$ac_objext conftest
$ac_exeext
15963 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15964 (eval $ac_link) 2>conftest.er1
15966 grep -v '^ *+' conftest.er1
>conftest.err
15968 cat conftest.err
>&5
15969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15970 (exit $ac_status); } &&
15971 { ac_try
='test -z "$ac_c_werror_flag"
15972 || test ! -s conftest.err'
15973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15974 (eval $ac_try) 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.err conftest.
$ac_objext \
15992 conftest
$ac_exeext conftest.
$ac_ext
15994 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15995 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15996 if test `eval echo '${'$as_ac_var'}'` = yes; then
15997 cat >>confdefs.h
<<_ACEOF
15998 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16002 # strftime is in -lintl on SCO UNIX.
16003 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
16004 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
16005 if test "${ac_cv_lib_intl_strftime+set}" = set; then
16006 echo $ECHO_N "(cached) $ECHO_C" >&6
16008 ac_check_lib_save_LIBS
=$LIBS
16009 LIBS
="-lintl $LIBS"
16010 cat >conftest.
$ac_ext <<_ACEOF
16013 cat confdefs.h
>>conftest.
$ac_ext
16014 cat >>conftest.
$ac_ext <<_ACEOF
16015 /* end confdefs.h. */
16017 /* Override any gcc2 internal prototype to avoid an error. */
16021 /* We use char because int might match the return type of a gcc2
16022 builtin and then its argument prototype would still apply. */
16032 rm -f conftest.
$ac_objext conftest
$ac_exeext
16033 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16034 (eval $ac_link) 2>conftest.er1
16036 grep -v '^ *+' conftest.er1
>conftest.err
16038 cat conftest.err
>&5
16039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16040 (exit $ac_status); } &&
16041 { ac_try
='test -z "$ac_c_werror_flag"
16042 || test ! -s conftest.err'
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); }; } &&
16048 { ac_try
='test -s conftest$ac_exeext'
16049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16050 (eval $ac_try) 2>&5
16052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16053 (exit $ac_status); }; }; then
16054 ac_cv_lib_intl_strftime
=yes
16056 echo "$as_me: failed program was:" >&5
16057 sed 's/^/| /' conftest.
$ac_ext >&5
16059 ac_cv_lib_intl_strftime
=no
16061 rm -f conftest.err conftest.
$ac_objext \
16062 conftest
$ac_exeext conftest.
$ac_ext
16063 LIBS
=$ac_check_lib_save_LIBS
16065 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
16066 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
16067 if test $ac_cv_lib_intl_strftime = yes; then
16068 cat >>confdefs.h
<<\_ACEOF
16069 #define HAVE_STRFTIME 1
16072 LIBS
="-lintl $LIBS"
16081 for ac_func
in grantpt
16083 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16084 echo "$as_me:$LINENO: checking for $ac_func" >&5
16085 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16086 if eval "test \"\${$as_ac_var+set}\" = set"; then
16087 echo $ECHO_N "(cached) $ECHO_C" >&6
16089 cat >conftest.
$ac_ext <<_ACEOF
16092 cat confdefs.h
>>conftest.
$ac_ext
16093 cat >>conftest.
$ac_ext <<_ACEOF
16094 /* end confdefs.h. */
16095 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16096 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16097 #define $ac_func innocuous_$ac_func
16099 /* System header to define __stub macros and hopefully few prototypes,
16100 which can conflict with char $ac_func (); below.
16101 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16102 <limits.h> exists even on freestanding compilers. */
16105 # include <limits.h>
16107 # include <assert.h>
16112 /* Override any gcc2 internal prototype to avoid an error. */
16117 /* We use char because int might match the return type of a gcc2
16118 builtin and then its argument prototype would still apply. */
16120 /* The GNU C library defines this for functions which it implements
16121 to always fail with ENOSYS. Some functions are actually named
16122 something starting with __ and the normal name is an alias. */
16123 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16126 char (*f) () = $ac_func;
16135 return f != $ac_func;
16140 rm -f conftest.
$ac_objext conftest
$ac_exeext
16141 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16142 (eval $ac_link) 2>conftest.er1
16144 grep -v '^ *+' conftest.er1
>conftest.err
16146 cat conftest.err
>&5
16147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16148 (exit $ac_status); } &&
16149 { ac_try
='test -z "$ac_c_werror_flag"
16150 || test ! -s conftest.err'
16151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16152 (eval $ac_try) 2>&5
16154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16155 (exit $ac_status); }; } &&
16156 { ac_try
='test -s conftest$ac_exeext'
16157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16158 (eval $ac_try) 2>&5
16160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16161 (exit $ac_status); }; }; then
16162 eval "$as_ac_var=yes"
16164 echo "$as_me: failed program was:" >&5
16165 sed 's/^/| /' conftest.
$ac_ext >&5
16167 eval "$as_ac_var=no"
16169 rm -f conftest.err conftest.
$ac_objext \
16170 conftest
$ac_exeext conftest.
$ac_ext
16172 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16173 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16174 if test `eval echo '${'$as_ac_var'}'` = yes; then
16175 cat >>confdefs.h
<<_ACEOF
16176 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16183 # PTY-related GNU extensions.
16185 for ac_func
in getpt
16187 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16188 echo "$as_me:$LINENO: checking for $ac_func" >&5
16189 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16190 if eval "test \"\${$as_ac_var+set}\" = set"; then
16191 echo $ECHO_N "(cached) $ECHO_C" >&6
16193 cat >conftest.
$ac_ext <<_ACEOF
16196 cat confdefs.h
>>conftest.
$ac_ext
16197 cat >>conftest.
$ac_ext <<_ACEOF
16198 /* end confdefs.h. */
16199 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16200 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16201 #define $ac_func innocuous_$ac_func
16203 /* System header to define __stub macros and hopefully few prototypes,
16204 which can conflict with char $ac_func (); below.
16205 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16206 <limits.h> exists even on freestanding compilers. */
16209 # include <limits.h>
16211 # include <assert.h>
16216 /* Override any gcc2 internal prototype to avoid an error. */
16221 /* We use char because int might match the return type of a gcc2
16222 builtin and then its argument prototype would still apply. */
16224 /* The GNU C library defines this for functions which it implements
16225 to always fail with ENOSYS. Some functions are actually named
16226 something starting with __ and the normal name is an alias. */
16227 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16230 char (*f) () = $ac_func;
16239 return f != $ac_func;
16244 rm -f conftest.
$ac_objext conftest
$ac_exeext
16245 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16246 (eval $ac_link) 2>conftest.er1
16248 grep -v '^ *+' conftest.er1
>conftest.err
16250 cat conftest.err
>&5
16251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16252 (exit $ac_status); } &&
16253 { ac_try
='test -z "$ac_c_werror_flag"
16254 || test ! -s conftest.err'
16255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16256 (eval $ac_try) 2>&5
16258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16259 (exit $ac_status); }; } &&
16260 { ac_try
='test -s conftest$ac_exeext'
16261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16262 (eval $ac_try) 2>&5
16264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16265 (exit $ac_status); }; }; then
16266 eval "$as_ac_var=yes"
16268 echo "$as_me: failed program was:" >&5
16269 sed 's/^/| /' conftest.
$ac_ext >&5
16271 eval "$as_ac_var=no"
16273 rm -f conftest.err conftest.
$ac_objext \
16274 conftest
$ac_exeext conftest.
$ac_ext
16276 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16277 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16278 if test `eval echo '${'$as_ac_var'}'` = yes; then
16279 cat >>confdefs.h
<<_ACEOF
16280 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16287 # Check this now, so that we will NOT find the above functions in ncurses.
16288 # That is because we have not set up to link ncurses in lib-src.
16289 # It's better to believe a function is not available
16290 # than to expect to find it in ncurses.
16292 echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
16293 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6
16294 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
16295 echo $ECHO_N "(cached) $ECHO_C" >&6
16297 ac_check_lib_save_LIBS
=$LIBS
16298 LIBS
="-lncurses $LIBS"
16299 cat >conftest.
$ac_ext <<_ACEOF
16302 cat confdefs.h
>>conftest.
$ac_ext
16303 cat >>conftest.
$ac_ext <<_ACEOF
16304 /* end confdefs.h. */
16306 /* Override any gcc2 internal prototype to avoid an error. */
16310 /* We use char because int might match the return type of a gcc2
16311 builtin and then its argument prototype would still apply. */
16321 rm -f conftest.
$ac_objext conftest
$ac_exeext
16322 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16323 (eval $ac_link) 2>conftest.er1
16325 grep -v '^ *+' conftest.er1
>conftest.err
16327 cat conftest.err
>&5
16328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16329 (exit $ac_status); } &&
16330 { ac_try
='test -z "$ac_c_werror_flag"
16331 || test ! -s conftest.err'
16332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16333 (eval $ac_try) 2>&5
16335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16336 (exit $ac_status); }; } &&
16337 { ac_try
='test -s conftest$ac_exeext'
16338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16339 (eval $ac_try) 2>&5
16341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16342 (exit $ac_status); }; }; then
16343 ac_cv_lib_ncurses_tparm
=yes
16345 echo "$as_me: failed program was:" >&5
16346 sed 's/^/| /' conftest.
$ac_ext >&5
16348 ac_cv_lib_ncurses_tparm
=no
16350 rm -f conftest.err conftest.
$ac_objext \
16351 conftest
$ac_exeext conftest.
$ac_ext
16352 LIBS
=$ac_check_lib_save_LIBS
16354 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
16355 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6
16356 if test $ac_cv_lib_ncurses_tparm = yes; then
16357 cat >>confdefs.h
<<_ACEOF
16358 #define HAVE_LIBNCURSES 1
16361 LIBS
="-lncurses $LIBS"
16366 # Do we need the Hesiod library to provide the support routines?
16367 if test "$with_hesiod" = yes ; then
16368 # Don't set $LIBS here -- see comments above.
16370 echo "$as_me:$LINENO: checking for res_send" >&5
16371 echo $ECHO_N "checking for res_send... $ECHO_C" >&6
16372 if test "${ac_cv_func_res_send+set}" = set; then
16373 echo $ECHO_N "(cached) $ECHO_C" >&6
16375 cat >conftest.
$ac_ext <<_ACEOF
16378 cat confdefs.h
>>conftest.
$ac_ext
16379 cat >>conftest.
$ac_ext <<_ACEOF
16380 /* end confdefs.h. */
16381 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
16382 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16383 #define res_send innocuous_res_send
16385 /* System header to define __stub macros and hopefully few prototypes,
16386 which can conflict with char res_send (); below.
16387 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16388 <limits.h> exists even on freestanding compilers. */
16391 # include <limits.h>
16393 # include <assert.h>
16398 /* Override any gcc2 internal prototype to avoid an error. */
16403 /* We use char because int might match the return type of a gcc2
16404 builtin and then its argument prototype would still apply. */
16406 /* The GNU C library defines this for functions which it implements
16407 to always fail with ENOSYS. Some functions are actually named
16408 something starting with __ and the normal name is an alias. */
16409 #if defined (__stub_res_send) || defined (__stub___res_send)
16412 char (*f) () = res_send;
16421 return f != res_send;
16426 rm -f conftest.
$ac_objext conftest
$ac_exeext
16427 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16428 (eval $ac_link) 2>conftest.er1
16430 grep -v '^ *+' conftest.er1
>conftest.err
16432 cat conftest.err
>&5
16433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16434 (exit $ac_status); } &&
16435 { ac_try
='test -z "$ac_c_werror_flag"
16436 || test ! -s conftest.err'
16437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16438 (eval $ac_try) 2>&5
16440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16441 (exit $ac_status); }; } &&
16442 { ac_try
='test -s conftest$ac_exeext'
16443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16444 (eval $ac_try) 2>&5
16446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16447 (exit $ac_status); }; }; then
16448 ac_cv_func_res_send
=yes
16450 echo "$as_me: failed program was:" >&5
16451 sed 's/^/| /' conftest.
$ac_ext >&5
16453 ac_cv_func_res_send
=no
16455 rm -f conftest.err conftest.
$ac_objext \
16456 conftest
$ac_exeext conftest.
$ac_ext
16458 echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
16459 echo "${ECHO_T}$ac_cv_func_res_send" >&6
16460 if test $ac_cv_func_res_send = yes; then
16463 echo "$as_me:$LINENO: checking for __res_send" >&5
16464 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6
16465 if test "${ac_cv_func___res_send+set}" = set; then
16466 echo $ECHO_N "(cached) $ECHO_C" >&6
16468 cat >conftest.
$ac_ext <<_ACEOF
16471 cat confdefs.h
>>conftest.
$ac_ext
16472 cat >>conftest.
$ac_ext <<_ACEOF
16473 /* end confdefs.h. */
16474 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
16475 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16476 #define __res_send innocuous___res_send
16478 /* System header to define __stub macros and hopefully few prototypes,
16479 which can conflict with char __res_send (); below.
16480 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16481 <limits.h> exists even on freestanding compilers. */
16484 # include <limits.h>
16486 # include <assert.h>
16491 /* Override any gcc2 internal prototype to avoid an error. */
16496 /* We use char because int might match the return type of a gcc2
16497 builtin and then its argument prototype would still apply. */
16498 char __res_send ();
16499 /* The GNU C library defines this for functions which it implements
16500 to always fail with ENOSYS. Some functions are actually named
16501 something starting with __ and the normal name is an alias. */
16502 #if defined (__stub___res_send) || defined (__stub_____res_send)
16505 char (*f) () = __res_send;
16514 return f != __res_send;
16519 rm -f conftest.
$ac_objext conftest
$ac_exeext
16520 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16521 (eval $ac_link) 2>conftest.er1
16523 grep -v '^ *+' conftest.er1
>conftest.err
16525 cat conftest.err
>&5
16526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16527 (exit $ac_status); } &&
16528 { ac_try
='test -z "$ac_c_werror_flag"
16529 || test ! -s conftest.err'
16530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16531 (eval $ac_try) 2>&5
16533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16534 (exit $ac_status); }; } &&
16535 { ac_try
='test -s conftest$ac_exeext'
16536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16537 (eval $ac_try) 2>&5
16539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16540 (exit $ac_status); }; }; then
16541 ac_cv_func___res_send
=yes
16543 echo "$as_me: failed program was:" >&5
16544 sed 's/^/| /' conftest.
$ac_ext >&5
16546 ac_cv_func___res_send
=no
16548 rm -f conftest.err conftest.
$ac_objext \
16549 conftest
$ac_exeext conftest.
$ac_ext
16551 echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
16552 echo "${ECHO_T}$ac_cv_func___res_send" >&6
16553 if test $ac_cv_func___res_send = yes; then
16556 echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
16557 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6
16558 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
16559 echo $ECHO_N "(cached) $ECHO_C" >&6
16561 ac_check_lib_save_LIBS
=$LIBS
16562 LIBS
="-lresolv $LIBS"
16563 cat >conftest.
$ac_ext <<_ACEOF
16566 cat confdefs.h
>>conftest.
$ac_ext
16567 cat >>conftest.
$ac_ext <<_ACEOF
16568 /* end confdefs.h. */
16570 /* Override any gcc2 internal prototype to avoid an error. */
16574 /* We use char because int might match the return type of a gcc2
16575 builtin and then its argument prototype would still apply. */
16585 rm -f conftest.
$ac_objext conftest
$ac_exeext
16586 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16587 (eval $ac_link) 2>conftest.er1
16589 grep -v '^ *+' conftest.er1
>conftest.err
16591 cat conftest.err
>&5
16592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16593 (exit $ac_status); } &&
16594 { ac_try
='test -z "$ac_c_werror_flag"
16595 || test ! -s conftest.err'
16596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16597 (eval $ac_try) 2>&5
16599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16600 (exit $ac_status); }; } &&
16601 { ac_try
='test -s conftest$ac_exeext'
16602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16603 (eval $ac_try) 2>&5
16605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16606 (exit $ac_status); }; }; then
16607 ac_cv_lib_resolv_res_send
=yes
16609 echo "$as_me: failed program was:" >&5
16610 sed 's/^/| /' conftest.
$ac_ext >&5
16612 ac_cv_lib_resolv_res_send
=no
16614 rm -f conftest.err conftest.
$ac_objext \
16615 conftest
$ac_exeext conftest.
$ac_ext
16616 LIBS
=$ac_check_lib_save_LIBS
16618 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
16619 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6
16620 if test $ac_cv_lib_resolv_res_send = yes; then
16623 echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
16624 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6
16625 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
16626 echo $ECHO_N "(cached) $ECHO_C" >&6
16628 ac_check_lib_save_LIBS
=$LIBS
16629 LIBS
="-lresolv $LIBS"
16630 cat >conftest.
$ac_ext <<_ACEOF
16633 cat confdefs.h
>>conftest.
$ac_ext
16634 cat >>conftest.
$ac_ext <<_ACEOF
16635 /* end confdefs.h. */
16637 /* Override any gcc2 internal prototype to avoid an error. */
16641 /* We use char because int might match the return type of a gcc2
16642 builtin and then its argument prototype would still apply. */
16643 char __res_send ();
16652 rm -f conftest.
$ac_objext conftest
$ac_exeext
16653 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16654 (eval $ac_link) 2>conftest.er1
16656 grep -v '^ *+' conftest.er1
>conftest.err
16658 cat conftest.err
>&5
16659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16660 (exit $ac_status); } &&
16661 { ac_try
='test -z "$ac_c_werror_flag"
16662 || test ! -s conftest.err'
16663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16664 (eval $ac_try) 2>&5
16666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16667 (exit $ac_status); }; } &&
16668 { ac_try
='test -s conftest$ac_exeext'
16669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16670 (eval $ac_try) 2>&5
16672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16673 (exit $ac_status); }; }; then
16674 ac_cv_lib_resolv___res_send
=yes
16676 echo "$as_me: failed program was:" >&5
16677 sed 's/^/| /' conftest.
$ac_ext >&5
16679 ac_cv_lib_resolv___res_send
=no
16681 rm -f conftest.err conftest.
$ac_objext \
16682 conftest
$ac_exeext conftest.
$ac_ext
16683 LIBS
=$ac_check_lib_save_LIBS
16685 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
16686 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6
16687 if test $ac_cv_lib_resolv___res_send = yes; then
16697 if test "$resolv" = yes ; then
16700 cat >>confdefs.h
<<\_ACEOF
16701 #define HAVE_LIBRESOLV 1
16707 echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
16708 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6
16709 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
16710 echo $ECHO_N "(cached) $ECHO_C" >&6
16712 cat >conftest.
$ac_ext <<_ACEOF
16715 cat confdefs.h
>>conftest.
$ac_ext
16716 cat >>conftest.
$ac_ext <<_ACEOF
16717 /* end confdefs.h. */
16718 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
16719 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16720 #define hes_getmailhost innocuous_hes_getmailhost
16722 /* System header to define __stub macros and hopefully few prototypes,
16723 which can conflict with char hes_getmailhost (); below.
16724 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16725 <limits.h> exists even on freestanding compilers. */
16728 # include <limits.h>
16730 # include <assert.h>
16733 #undef hes_getmailhost
16735 /* Override any gcc2 internal prototype to avoid an error. */
16740 /* We use char because int might match the return type of a gcc2
16741 builtin and then its argument prototype would still apply. */
16742 char hes_getmailhost ();
16743 /* The GNU C library defines this for functions which it implements
16744 to always fail with ENOSYS. Some functions are actually named
16745 something starting with __ and the normal name is an alias. */
16746 #if defined (__stub_hes_getmailhost) || defined (__stub___hes_getmailhost)
16749 char (*f) () = hes_getmailhost;
16758 return f != hes_getmailhost;
16763 rm -f conftest.
$ac_objext conftest
$ac_exeext
16764 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16765 (eval $ac_link) 2>conftest.er1
16767 grep -v '^ *+' conftest.er1
>conftest.err
16769 cat conftest.err
>&5
16770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16771 (exit $ac_status); } &&
16772 { ac_try
='test -z "$ac_c_werror_flag"
16773 || test ! -s conftest.err'
16774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16775 (eval $ac_try) 2>&5
16777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16778 (exit $ac_status); }; } &&
16779 { ac_try
='test -s conftest$ac_exeext'
16780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16781 (eval $ac_try) 2>&5
16783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16784 (exit $ac_status); }; }; then
16785 ac_cv_func_hes_getmailhost
=yes
16787 echo "$as_me: failed program was:" >&5
16788 sed 's/^/| /' conftest.
$ac_ext >&5
16790 ac_cv_func_hes_getmailhost
=no
16792 rm -f conftest.err conftest.
$ac_objext \
16793 conftest
$ac_exeext conftest.
$ac_ext
16795 echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
16796 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6
16797 if test $ac_cv_func_hes_getmailhost = yes; then
16800 echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
16801 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6
16802 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
16803 echo $ECHO_N "(cached) $ECHO_C" >&6
16805 ac_check_lib_save_LIBS
=$LIBS
16806 LIBS
="-lhesiod $RESOLVLIB $LIBS"
16807 cat >conftest.
$ac_ext <<_ACEOF
16810 cat confdefs.h
>>conftest.
$ac_ext
16811 cat >>conftest.
$ac_ext <<_ACEOF
16812 /* end confdefs.h. */
16814 /* Override any gcc2 internal prototype to avoid an error. */
16818 /* We use char because int might match the return type of a gcc2
16819 builtin and then its argument prototype would still apply. */
16820 char hes_getmailhost ();
16824 hes_getmailhost ();
16829 rm -f conftest.
$ac_objext conftest
$ac_exeext
16830 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16831 (eval $ac_link) 2>conftest.er1
16833 grep -v '^ *+' conftest.er1
>conftest.err
16835 cat conftest.err
>&5
16836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16837 (exit $ac_status); } &&
16838 { ac_try
='test -z "$ac_c_werror_flag"
16839 || test ! -s conftest.err'
16840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16841 (eval $ac_try) 2>&5
16843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16844 (exit $ac_status); }; } &&
16845 { ac_try
='test -s conftest$ac_exeext'
16846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16847 (eval $ac_try) 2>&5
16849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16850 (exit $ac_status); }; }; then
16851 ac_cv_lib_hesiod_hes_getmailhost
=yes
16853 echo "$as_me: failed program was:" >&5
16854 sed 's/^/| /' conftest.
$ac_ext >&5
16856 ac_cv_lib_hesiod_hes_getmailhost
=no
16858 rm -f conftest.err conftest.
$ac_objext \
16859 conftest
$ac_exeext conftest.
$ac_ext
16860 LIBS
=$ac_check_lib_save_LIBS
16862 echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
16863 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6
16864 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
16866 cat >>confdefs.h
<<\_ACEOF
16867 #define HAVE_LIBHESIOD 1
16878 # These tell us which Kerberos-related libraries to use.
16879 if test "${with_kerberos+set}" = set; then
16881 echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
16882 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6
16883 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
16884 echo $ECHO_N "(cached) $ECHO_C" >&6
16886 ac_check_lib_save_LIBS
=$LIBS
16887 LIBS
="-lcom_err $LIBS"
16888 cat >conftest.
$ac_ext <<_ACEOF
16891 cat confdefs.h
>>conftest.
$ac_ext
16892 cat >>conftest.
$ac_ext <<_ACEOF
16893 /* end confdefs.h. */
16895 /* Override any gcc2 internal prototype to avoid an error. */
16899 /* We use char because int might match the return type of a gcc2
16900 builtin and then its argument prototype would still apply. */
16910 rm -f conftest.
$ac_objext conftest
$ac_exeext
16911 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16912 (eval $ac_link) 2>conftest.er1
16914 grep -v '^ *+' conftest.er1
>conftest.err
16916 cat conftest.err
>&5
16917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16918 (exit $ac_status); } &&
16919 { ac_try
='test -z "$ac_c_werror_flag"
16920 || test ! -s conftest.err'
16921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16922 (eval $ac_try) 2>&5
16924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16925 (exit $ac_status); }; } &&
16926 { ac_try
='test -s conftest$ac_exeext'
16927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16928 (eval $ac_try) 2>&5
16930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16931 (exit $ac_status); }; }; then
16932 ac_cv_lib_com_err_com_err
=yes
16934 echo "$as_me: failed program was:" >&5
16935 sed 's/^/| /' conftest.
$ac_ext >&5
16937 ac_cv_lib_com_err_com_err
=no
16939 rm -f conftest.err conftest.
$ac_objext \
16940 conftest
$ac_exeext conftest.
$ac_ext
16941 LIBS
=$ac_check_lib_save_LIBS
16943 echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
16944 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6
16945 if test $ac_cv_lib_com_err_com_err = yes; then
16946 cat >>confdefs.h
<<_ACEOF
16947 #define HAVE_LIBCOM_ERR 1
16950 LIBS
="-lcom_err $LIBS"
16955 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
16956 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6
16957 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
16958 echo $ECHO_N "(cached) $ECHO_C" >&6
16960 ac_check_lib_save_LIBS
=$LIBS
16961 LIBS
="-lk5crypto $LIBS"
16962 cat >conftest.
$ac_ext <<_ACEOF
16965 cat confdefs.h
>>conftest.
$ac_ext
16966 cat >>conftest.
$ac_ext <<_ACEOF
16967 /* end confdefs.h. */
16969 /* Override any gcc2 internal prototype to avoid an error. */
16973 /* We use char because int might match the return type of a gcc2
16974 builtin and then its argument prototype would still apply. */
16975 char mit_des_cbc_encrypt ();
16979 mit_des_cbc_encrypt ();
16984 rm -f conftest.
$ac_objext conftest
$ac_exeext
16985 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16986 (eval $ac_link) 2>conftest.er1
16988 grep -v '^ *+' conftest.er1
>conftest.err
16990 cat conftest.err
>&5
16991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16992 (exit $ac_status); } &&
16993 { ac_try
='test -z "$ac_c_werror_flag"
16994 || test ! -s conftest.err'
16995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16996 (eval $ac_try) 2>&5
16998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16999 (exit $ac_status); }; } &&
17000 { ac_try
='test -s conftest$ac_exeext'
17001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17002 (eval $ac_try) 2>&5
17004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17005 (exit $ac_status); }; }; then
17006 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=yes
17008 echo "$as_me: failed program was:" >&5
17009 sed 's/^/| /' conftest.
$ac_ext >&5
17011 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=no
17013 rm -f conftest.err conftest.
$ac_objext \
17014 conftest
$ac_exeext conftest.
$ac_ext
17015 LIBS
=$ac_check_lib_save_LIBS
17017 echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
17018 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6
17019 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
17020 cat >>confdefs.h
<<_ACEOF
17021 #define HAVE_LIBK5CRYPTO 1
17024 LIBS
="-lk5crypto $LIBS"
17029 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
17030 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6
17031 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
17032 echo $ECHO_N "(cached) $ECHO_C" >&6
17034 ac_check_lib_save_LIBS
=$LIBS
17035 LIBS
="-lcrypto $LIBS"
17036 cat >conftest.
$ac_ext <<_ACEOF
17039 cat confdefs.h
>>conftest.
$ac_ext
17040 cat >>conftest.
$ac_ext <<_ACEOF
17041 /* end confdefs.h. */
17043 /* Override any gcc2 internal prototype to avoid an error. */
17047 /* We use char because int might match the return type of a gcc2
17048 builtin and then its argument prototype would still apply. */
17049 char mit_des_cbc_encrypt ();
17053 mit_des_cbc_encrypt ();
17058 rm -f conftest.
$ac_objext conftest
$ac_exeext
17059 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17060 (eval $ac_link) 2>conftest.er1
17062 grep -v '^ *+' conftest.er1
>conftest.err
17064 cat conftest.err
>&5
17065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17066 (exit $ac_status); } &&
17067 { ac_try
='test -z "$ac_c_werror_flag"
17068 || test ! -s conftest.err'
17069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17070 (eval $ac_try) 2>&5
17072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17073 (exit $ac_status); }; } &&
17074 { ac_try
='test -s conftest$ac_exeext'
17075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17076 (eval $ac_try) 2>&5
17078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17079 (exit $ac_status); }; }; then
17080 ac_cv_lib_crypto_mit_des_cbc_encrypt
=yes
17082 echo "$as_me: failed program was:" >&5
17083 sed 's/^/| /' conftest.
$ac_ext >&5
17085 ac_cv_lib_crypto_mit_des_cbc_encrypt
=no
17087 rm -f conftest.err conftest.
$ac_objext \
17088 conftest
$ac_exeext conftest.
$ac_ext
17089 LIBS
=$ac_check_lib_save_LIBS
17091 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
17092 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6
17093 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
17094 cat >>confdefs.h
<<_ACEOF
17095 #define HAVE_LIBCRYPTO 1
17098 LIBS
="-lcrypto $LIBS"
17103 echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
17104 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6
17105 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
17106 echo $ECHO_N "(cached) $ECHO_C" >&6
17108 ac_check_lib_save_LIBS
=$LIBS
17109 LIBS
="-lkrb5 $LIBS"
17110 cat >conftest.
$ac_ext <<_ACEOF
17113 cat confdefs.h
>>conftest.
$ac_ext
17114 cat >>conftest.
$ac_ext <<_ACEOF
17115 /* end confdefs.h. */
17117 /* Override any gcc2 internal prototype to avoid an error. */
17121 /* We use char because int might match the return type of a gcc2
17122 builtin and then its argument prototype would still apply. */
17123 char krb5_init_context ();
17127 krb5_init_context ();
17132 rm -f conftest.
$ac_objext conftest
$ac_exeext
17133 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17134 (eval $ac_link) 2>conftest.er1
17136 grep -v '^ *+' conftest.er1
>conftest.err
17138 cat conftest.err
>&5
17139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17140 (exit $ac_status); } &&
17141 { ac_try
='test -z "$ac_c_werror_flag"
17142 || test ! -s conftest.err'
17143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17144 (eval $ac_try) 2>&5
17146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17147 (exit $ac_status); }; } &&
17148 { ac_try
='test -s conftest$ac_exeext'
17149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17150 (eval $ac_try) 2>&5
17152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17153 (exit $ac_status); }; }; then
17154 ac_cv_lib_krb5_krb5_init_context
=yes
17156 echo "$as_me: failed program was:" >&5
17157 sed 's/^/| /' conftest.
$ac_ext >&5
17159 ac_cv_lib_krb5_krb5_init_context
=no
17161 rm -f conftest.err conftest.
$ac_objext \
17162 conftest
$ac_exeext conftest.
$ac_ext
17163 LIBS
=$ac_check_lib_save_LIBS
17165 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
17166 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6
17167 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
17168 cat >>confdefs.h
<<_ACEOF
17169 #define HAVE_LIBKRB5 1
17172 LIBS
="-lkrb5 $LIBS"
17176 if test "${with_kerberos5+set}" != set; then
17178 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
17179 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6
17180 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
17181 echo $ECHO_N "(cached) $ECHO_C" >&6
17183 ac_check_lib_save_LIBS
=$LIBS
17184 LIBS
="-ldes425 $LIBS"
17185 cat >conftest.
$ac_ext <<_ACEOF
17188 cat confdefs.h
>>conftest.
$ac_ext
17189 cat >>conftest.
$ac_ext <<_ACEOF
17190 /* end confdefs.h. */
17192 /* Override any gcc2 internal prototype to avoid an error. */
17196 /* We use char because int might match the return type of a gcc2
17197 builtin and then its argument prototype would still apply. */
17198 char des_cbc_encrypt ();
17202 des_cbc_encrypt ();
17207 rm -f conftest.
$ac_objext conftest
$ac_exeext
17208 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17209 (eval $ac_link) 2>conftest.er1
17211 grep -v '^ *+' conftest.er1
>conftest.err
17213 cat conftest.err
>&5
17214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17215 (exit $ac_status); } &&
17216 { ac_try
='test -z "$ac_c_werror_flag"
17217 || test ! -s conftest.err'
17218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17219 (eval $ac_try) 2>&5
17221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17222 (exit $ac_status); }; } &&
17223 { ac_try
='test -s conftest$ac_exeext'
17224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17225 (eval $ac_try) 2>&5
17227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17228 (exit $ac_status); }; }; then
17229 ac_cv_lib_des425_des_cbc_encrypt
=yes
17231 echo "$as_me: failed program was:" >&5
17232 sed 's/^/| /' conftest.
$ac_ext >&5
17234 ac_cv_lib_des425_des_cbc_encrypt
=no
17236 rm -f conftest.err conftest.
$ac_objext \
17237 conftest
$ac_exeext conftest.
$ac_ext
17238 LIBS
=$ac_check_lib_save_LIBS
17240 echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
17241 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6
17242 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
17243 cat >>confdefs.h
<<_ACEOF
17244 #define HAVE_LIBDES425 1
17247 LIBS
="-ldes425 $LIBS"
17251 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
17252 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6
17253 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
17254 echo $ECHO_N "(cached) $ECHO_C" >&6
17256 ac_check_lib_save_LIBS
=$LIBS
17258 cat >conftest.
$ac_ext <<_ACEOF
17261 cat confdefs.h
>>conftest.
$ac_ext
17262 cat >>conftest.
$ac_ext <<_ACEOF
17263 /* end confdefs.h. */
17265 /* Override any gcc2 internal prototype to avoid an error. */
17269 /* We use char because int might match the return type of a gcc2
17270 builtin and then its argument prototype would still apply. */
17271 char des_cbc_encrypt ();
17275 des_cbc_encrypt ();
17280 rm -f conftest.
$ac_objext conftest
$ac_exeext
17281 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17282 (eval $ac_link) 2>conftest.er1
17284 grep -v '^ *+' conftest.er1
>conftest.err
17286 cat conftest.err
>&5
17287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17288 (exit $ac_status); } &&
17289 { ac_try
='test -z "$ac_c_werror_flag"
17290 || test ! -s conftest.err'
17291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17292 (eval $ac_try) 2>&5
17294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17295 (exit $ac_status); }; } &&
17296 { ac_try
='test -s conftest$ac_exeext'
17297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17298 (eval $ac_try) 2>&5
17300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17301 (exit $ac_status); }; }; then
17302 ac_cv_lib_des_des_cbc_encrypt
=yes
17304 echo "$as_me: failed program was:" >&5
17305 sed 's/^/| /' conftest.
$ac_ext >&5
17307 ac_cv_lib_des_des_cbc_encrypt
=no
17309 rm -f conftest.err conftest.
$ac_objext \
17310 conftest
$ac_exeext conftest.
$ac_ext
17311 LIBS
=$ac_check_lib_save_LIBS
17313 echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
17314 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6
17315 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
17316 cat >>confdefs.h
<<_ACEOF
17317 #define HAVE_LIBDES 1
17327 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
17328 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6
17329 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
17330 echo $ECHO_N "(cached) $ECHO_C" >&6
17332 ac_check_lib_save_LIBS
=$LIBS
17333 LIBS
="-lkrb4 $LIBS"
17334 cat >conftest.
$ac_ext <<_ACEOF
17337 cat confdefs.h
>>conftest.
$ac_ext
17338 cat >>conftest.
$ac_ext <<_ACEOF
17339 /* end confdefs.h. */
17341 /* Override any gcc2 internal prototype to avoid an error. */
17345 /* We use char because int might match the return type of a gcc2
17346 builtin and then its argument prototype would still apply. */
17347 char krb_get_cred ();
17356 rm -f conftest.
$ac_objext conftest
$ac_exeext
17357 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17358 (eval $ac_link) 2>conftest.er1
17360 grep -v '^ *+' conftest.er1
>conftest.err
17362 cat conftest.err
>&5
17363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17364 (exit $ac_status); } &&
17365 { ac_try
='test -z "$ac_c_werror_flag"
17366 || test ! -s conftest.err'
17367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17368 (eval $ac_try) 2>&5
17370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17371 (exit $ac_status); }; } &&
17372 { ac_try
='test -s conftest$ac_exeext'
17373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17374 (eval $ac_try) 2>&5
17376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17377 (exit $ac_status); }; }; then
17378 ac_cv_lib_krb4_krb_get_cred
=yes
17380 echo "$as_me: failed program was:" >&5
17381 sed 's/^/| /' conftest.
$ac_ext >&5
17383 ac_cv_lib_krb4_krb_get_cred
=no
17385 rm -f conftest.err conftest.
$ac_objext \
17386 conftest
$ac_exeext conftest.
$ac_ext
17387 LIBS
=$ac_check_lib_save_LIBS
17389 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
17390 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6
17391 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
17392 cat >>confdefs.h
<<_ACEOF
17393 #define HAVE_LIBKRB4 1
17396 LIBS
="-lkrb4 $LIBS"
17400 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
17401 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6
17402 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
17403 echo $ECHO_N "(cached) $ECHO_C" >&6
17405 ac_check_lib_save_LIBS
=$LIBS
17407 cat >conftest.
$ac_ext <<_ACEOF
17410 cat confdefs.h
>>conftest.
$ac_ext
17411 cat >>conftest.
$ac_ext <<_ACEOF
17412 /* end confdefs.h. */
17414 /* Override any gcc2 internal prototype to avoid an error. */
17418 /* We use char because int might match the return type of a gcc2
17419 builtin and then its argument prototype would still apply. */
17420 char krb_get_cred ();
17429 rm -f conftest.
$ac_objext conftest
$ac_exeext
17430 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17431 (eval $ac_link) 2>conftest.er1
17433 grep -v '^ *+' conftest.er1
>conftest.err
17435 cat conftest.err
>&5
17436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17437 (exit $ac_status); } &&
17438 { ac_try
='test -z "$ac_c_werror_flag"
17439 || test ! -s conftest.err'
17440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17441 (eval $ac_try) 2>&5
17443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17444 (exit $ac_status); }; } &&
17445 { ac_try
='test -s conftest$ac_exeext'
17446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17447 (eval $ac_try) 2>&5
17449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17450 (exit $ac_status); }; }; then
17451 ac_cv_lib_krb_krb_get_cred
=yes
17453 echo "$as_me: failed program was:" >&5
17454 sed 's/^/| /' conftest.
$ac_ext >&5
17456 ac_cv_lib_krb_krb_get_cred
=no
17458 rm -f conftest.err conftest.
$ac_objext \
17459 conftest
$ac_exeext conftest.
$ac_ext
17460 LIBS
=$ac_check_lib_save_LIBS
17462 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
17463 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6
17464 if test $ac_cv_lib_krb_krb_get_cred = yes; then
17465 cat >>confdefs.h
<<_ACEOF
17466 #define HAVE_LIBKRB 1
17477 if test "${with_kerberos5+set}" = set; then
17479 for ac_header
in krb5.h
17481 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17482 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17483 echo "$as_me:$LINENO: checking for $ac_header" >&5
17484 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17485 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17486 echo $ECHO_N "(cached) $ECHO_C" >&6
17488 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17489 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17491 # Is the header compilable?
17492 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17493 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17494 cat >conftest.
$ac_ext <<_ACEOF
17497 cat confdefs.h
>>conftest.
$ac_ext
17498 cat >>conftest.
$ac_ext <<_ACEOF
17499 /* end confdefs.h. */
17500 $ac_includes_default
17501 #include <$ac_header>
17503 rm -f conftest.
$ac_objext
17504 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17505 (eval $ac_compile) 2>conftest.er1
17507 grep -v '^ *+' conftest.er1
>conftest.err
17509 cat conftest.err
>&5
17510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17511 (exit $ac_status); } &&
17512 { ac_try
='test -z "$ac_c_werror_flag"
17513 || test ! -s conftest.err'
17514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17515 (eval $ac_try) 2>&5
17517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17518 (exit $ac_status); }; } &&
17519 { ac_try
='test -s conftest.$ac_objext'
17520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17521 (eval $ac_try) 2>&5
17523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17524 (exit $ac_status); }; }; then
17525 ac_header_compiler
=yes
17527 echo "$as_me: failed program was:" >&5
17528 sed 's/^/| /' conftest.
$ac_ext >&5
17530 ac_header_compiler
=no
17532 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17533 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17534 echo "${ECHO_T}$ac_header_compiler" >&6
17536 # Is the header present?
17537 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17538 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17539 cat >conftest.
$ac_ext <<_ACEOF
17542 cat confdefs.h
>>conftest.
$ac_ext
17543 cat >>conftest.
$ac_ext <<_ACEOF
17544 /* end confdefs.h. */
17545 #include <$ac_header>
17547 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17548 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
17550 grep -v '^ *+' conftest.er1
>conftest.err
17552 cat conftest.err
>&5
17553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17554 (exit $ac_status); } >/dev
/null
; then
17555 if test -s conftest.err
; then
17556 ac_cpp_err
=$ac_c_preproc_warn_flag
17557 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
17564 if test -z "$ac_cpp_err"; then
17565 ac_header_preproc
=yes
17567 echo "$as_me: failed program was:" >&5
17568 sed 's/^/| /' conftest.
$ac_ext >&5
17570 ac_header_preproc
=no
17572 rm -f conftest.err conftest.
$ac_ext
17573 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17574 echo "${ECHO_T}$ac_header_preproc" >&6
17576 # So? What about this header?
17577 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17579 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17580 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17581 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17582 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17583 ac_header_preproc
=yes
17586 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17587 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17588 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17589 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17590 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17591 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17592 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17593 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17594 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17595 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17596 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17597 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17600 ## ------------------------------------------ ##
17601 ## Report this to the AC_PACKAGE_NAME lists. ##
17602 ## ------------------------------------------ ##
17605 sed "s/^/$as_me: WARNING: /" >&2
17608 echo "$as_me:$LINENO: checking for $ac_header" >&5
17609 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17610 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17611 echo $ECHO_N "(cached) $ECHO_C" >&6
17613 eval "$as_ac_Header=\$ac_header_preproc"
17615 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17616 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17619 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17620 cat >>confdefs.h
<<_ACEOF
17621 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17630 for ac_header
in des.h
17632 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17633 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17634 echo "$as_me:$LINENO: checking for $ac_header" >&5
17635 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17636 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17637 echo $ECHO_N "(cached) $ECHO_C" >&6
17639 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17640 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17642 # Is the header compilable?
17643 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17644 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17645 cat >conftest.
$ac_ext <<_ACEOF
17648 cat confdefs.h
>>conftest.
$ac_ext
17649 cat >>conftest.
$ac_ext <<_ACEOF
17650 /* end confdefs.h. */
17651 $ac_includes_default
17652 #include <$ac_header>
17654 rm -f conftest.
$ac_objext
17655 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17656 (eval $ac_compile) 2>conftest.er1
17658 grep -v '^ *+' conftest.er1
>conftest.err
17660 cat conftest.err
>&5
17661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17662 (exit $ac_status); } &&
17663 { ac_try
='test -z "$ac_c_werror_flag"
17664 || test ! -s conftest.err'
17665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17666 (eval $ac_try) 2>&5
17668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17669 (exit $ac_status); }; } &&
17670 { ac_try
='test -s conftest.$ac_objext'
17671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17672 (eval $ac_try) 2>&5
17674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17675 (exit $ac_status); }; }; then
17676 ac_header_compiler
=yes
17678 echo "$as_me: failed program was:" >&5
17679 sed 's/^/| /' conftest.
$ac_ext >&5
17681 ac_header_compiler
=no
17683 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17684 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17685 echo "${ECHO_T}$ac_header_compiler" >&6
17687 # Is the header present?
17688 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17689 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17690 cat >conftest.
$ac_ext <<_ACEOF
17693 cat confdefs.h
>>conftest.
$ac_ext
17694 cat >>conftest.
$ac_ext <<_ACEOF
17695 /* end confdefs.h. */
17696 #include <$ac_header>
17698 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17699 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
17701 grep -v '^ *+' conftest.er1
>conftest.err
17703 cat conftest.err
>&5
17704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17705 (exit $ac_status); } >/dev
/null
; then
17706 if test -s conftest.err
; then
17707 ac_cpp_err
=$ac_c_preproc_warn_flag
17708 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
17715 if test -z "$ac_cpp_err"; then
17716 ac_header_preproc
=yes
17718 echo "$as_me: failed program was:" >&5
17719 sed 's/^/| /' conftest.
$ac_ext >&5
17721 ac_header_preproc
=no
17723 rm -f conftest.err conftest.
$ac_ext
17724 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17725 echo "${ECHO_T}$ac_header_preproc" >&6
17727 # So? What about this header?
17728 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17730 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17731 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17732 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17733 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17734 ac_header_preproc
=yes
17737 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17738 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17739 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17740 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17741 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17742 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17743 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17744 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17745 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17746 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17747 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17748 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17751 ## ------------------------------------------ ##
17752 ## Report this to the AC_PACKAGE_NAME lists. ##
17753 ## ------------------------------------------ ##
17756 sed "s/^/$as_me: WARNING: /" >&2
17759 echo "$as_me:$LINENO: checking for $ac_header" >&5
17760 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17761 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17762 echo $ECHO_N "(cached) $ECHO_C" >&6
17764 eval "$as_ac_Header=\$ac_header_preproc"
17766 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17767 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17770 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17771 cat >>confdefs.h
<<_ACEOF
17772 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17777 for ac_header
in kerberosIV
/des.h
17779 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17780 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17781 echo "$as_me:$LINENO: checking for $ac_header" >&5
17782 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17783 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17784 echo $ECHO_N "(cached) $ECHO_C" >&6
17786 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17787 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17789 # Is the header compilable?
17790 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17791 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17792 cat >conftest.
$ac_ext <<_ACEOF
17795 cat confdefs.h
>>conftest.
$ac_ext
17796 cat >>conftest.
$ac_ext <<_ACEOF
17797 /* end confdefs.h. */
17798 $ac_includes_default
17799 #include <$ac_header>
17801 rm -f conftest.
$ac_objext
17802 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17803 (eval $ac_compile) 2>conftest.er1
17805 grep -v '^ *+' conftest.er1
>conftest.err
17807 cat conftest.err
>&5
17808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17809 (exit $ac_status); } &&
17810 { ac_try
='test -z "$ac_c_werror_flag"
17811 || test ! -s conftest.err'
17812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17813 (eval $ac_try) 2>&5
17815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17816 (exit $ac_status); }; } &&
17817 { ac_try
='test -s conftest.$ac_objext'
17818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17819 (eval $ac_try) 2>&5
17821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17822 (exit $ac_status); }; }; then
17823 ac_header_compiler
=yes
17825 echo "$as_me: failed program was:" >&5
17826 sed 's/^/| /' conftest.
$ac_ext >&5
17828 ac_header_compiler
=no
17830 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17831 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17832 echo "${ECHO_T}$ac_header_compiler" >&6
17834 # Is the header present?
17835 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17836 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17837 cat >conftest.
$ac_ext <<_ACEOF
17840 cat confdefs.h
>>conftest.
$ac_ext
17841 cat >>conftest.
$ac_ext <<_ACEOF
17842 /* end confdefs.h. */
17843 #include <$ac_header>
17845 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17846 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
17848 grep -v '^ *+' conftest.er1
>conftest.err
17850 cat conftest.err
>&5
17851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17852 (exit $ac_status); } >/dev
/null
; then
17853 if test -s conftest.err
; then
17854 ac_cpp_err
=$ac_c_preproc_warn_flag
17855 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
17862 if test -z "$ac_cpp_err"; then
17863 ac_header_preproc
=yes
17865 echo "$as_me: failed program was:" >&5
17866 sed 's/^/| /' conftest.
$ac_ext >&5
17868 ac_header_preproc
=no
17870 rm -f conftest.err conftest.
$ac_ext
17871 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17872 echo "${ECHO_T}$ac_header_preproc" >&6
17874 # So? What about this header?
17875 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17877 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17878 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17879 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17880 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17881 ac_header_preproc
=yes
17884 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17885 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17886 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17887 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17888 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17889 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17890 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17891 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17892 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17893 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17894 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17895 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17898 ## ------------------------------------------ ##
17899 ## Report this to the AC_PACKAGE_NAME lists. ##
17900 ## ------------------------------------------ ##
17903 sed "s/^/$as_me: WARNING: /" >&2
17906 echo "$as_me:$LINENO: checking for $ac_header" >&5
17907 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17908 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17909 echo $ECHO_N "(cached) $ECHO_C" >&6
17911 eval "$as_ac_Header=\$ac_header_preproc"
17913 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17914 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17917 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17918 cat >>confdefs.h
<<_ACEOF
17919 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17924 for ac_header
in kerberos
/des.h
17926 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17927 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17928 echo "$as_me:$LINENO: checking for $ac_header" >&5
17929 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17930 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17931 echo $ECHO_N "(cached) $ECHO_C" >&6
17933 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17934 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17936 # Is the header compilable?
17937 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17938 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17939 cat >conftest.
$ac_ext <<_ACEOF
17942 cat confdefs.h
>>conftest.
$ac_ext
17943 cat >>conftest.
$ac_ext <<_ACEOF
17944 /* end confdefs.h. */
17945 $ac_includes_default
17946 #include <$ac_header>
17948 rm -f conftest.
$ac_objext
17949 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17950 (eval $ac_compile) 2>conftest.er1
17952 grep -v '^ *+' conftest.er1
>conftest.err
17954 cat conftest.err
>&5
17955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17956 (exit $ac_status); } &&
17957 { ac_try
='test -z "$ac_c_werror_flag"
17958 || test ! -s conftest.err'
17959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17960 (eval $ac_try) 2>&5
17962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17963 (exit $ac_status); }; } &&
17964 { ac_try
='test -s conftest.$ac_objext'
17965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17966 (eval $ac_try) 2>&5
17968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17969 (exit $ac_status); }; }; then
17970 ac_header_compiler
=yes
17972 echo "$as_me: failed program was:" >&5
17973 sed 's/^/| /' conftest.
$ac_ext >&5
17975 ac_header_compiler
=no
17977 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17978 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17979 echo "${ECHO_T}$ac_header_compiler" >&6
17981 # Is the header present?
17982 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17983 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17984 cat >conftest.
$ac_ext <<_ACEOF
17987 cat confdefs.h
>>conftest.
$ac_ext
17988 cat >>conftest.
$ac_ext <<_ACEOF
17989 /* end confdefs.h. */
17990 #include <$ac_header>
17992 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17993 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
17995 grep -v '^ *+' conftest.er1
>conftest.err
17997 cat conftest.err
>&5
17998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17999 (exit $ac_status); } >/dev
/null
; then
18000 if test -s conftest.err
; then
18001 ac_cpp_err
=$ac_c_preproc_warn_flag
18002 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
18009 if test -z "$ac_cpp_err"; then
18010 ac_header_preproc
=yes
18012 echo "$as_me: failed program was:" >&5
18013 sed 's/^/| /' conftest.
$ac_ext >&5
18015 ac_header_preproc
=no
18017 rm -f conftest.err conftest.
$ac_ext
18018 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18019 echo "${ECHO_T}$ac_header_preproc" >&6
18021 # So? What about this header?
18022 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18024 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18025 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18026 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18027 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18028 ac_header_preproc
=yes
18031 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18032 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18033 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18034 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18035 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18036 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18037 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18038 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18039 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18040 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18041 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18042 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18045 ## ------------------------------------------ ##
18046 ## Report this to the AC_PACKAGE_NAME lists. ##
18047 ## ------------------------------------------ ##
18050 sed "s/^/$as_me: WARNING: /" >&2
18053 echo "$as_me:$LINENO: checking for $ac_header" >&5
18054 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18055 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18056 echo $ECHO_N "(cached) $ECHO_C" >&6
18058 eval "$as_ac_Header=\$ac_header_preproc"
18060 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18061 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18064 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18065 cat >>confdefs.h
<<_ACEOF
18066 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18082 for ac_header
in krb.h
18084 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18085 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18086 echo "$as_me:$LINENO: checking for $ac_header" >&5
18087 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18088 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18089 echo $ECHO_N "(cached) $ECHO_C" >&6
18091 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18092 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18094 # Is the header compilable?
18095 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18096 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18097 cat >conftest.
$ac_ext <<_ACEOF
18100 cat confdefs.h
>>conftest.
$ac_ext
18101 cat >>conftest.
$ac_ext <<_ACEOF
18102 /* end confdefs.h. */
18103 $ac_includes_default
18104 #include <$ac_header>
18106 rm -f conftest.
$ac_objext
18107 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18108 (eval $ac_compile) 2>conftest.er1
18110 grep -v '^ *+' conftest.er1
>conftest.err
18112 cat conftest.err
>&5
18113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18114 (exit $ac_status); } &&
18115 { ac_try
='test -z "$ac_c_werror_flag"
18116 || test ! -s conftest.err'
18117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18118 (eval $ac_try) 2>&5
18120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18121 (exit $ac_status); }; } &&
18122 { ac_try
='test -s conftest.$ac_objext'
18123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18124 (eval $ac_try) 2>&5
18126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18127 (exit $ac_status); }; }; then
18128 ac_header_compiler
=yes
18130 echo "$as_me: failed program was:" >&5
18131 sed 's/^/| /' conftest.
$ac_ext >&5
18133 ac_header_compiler
=no
18135 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18136 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18137 echo "${ECHO_T}$ac_header_compiler" >&6
18139 # Is the header present?
18140 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18141 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18142 cat >conftest.
$ac_ext <<_ACEOF
18145 cat confdefs.h
>>conftest.
$ac_ext
18146 cat >>conftest.
$ac_ext <<_ACEOF
18147 /* end confdefs.h. */
18148 #include <$ac_header>
18150 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18151 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
18153 grep -v '^ *+' conftest.er1
>conftest.err
18155 cat conftest.err
>&5
18156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18157 (exit $ac_status); } >/dev
/null
; then
18158 if test -s conftest.err
; then
18159 ac_cpp_err
=$ac_c_preproc_warn_flag
18160 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
18167 if test -z "$ac_cpp_err"; then
18168 ac_header_preproc
=yes
18170 echo "$as_me: failed program was:" >&5
18171 sed 's/^/| /' conftest.
$ac_ext >&5
18173 ac_header_preproc
=no
18175 rm -f conftest.err conftest.
$ac_ext
18176 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18177 echo "${ECHO_T}$ac_header_preproc" >&6
18179 # So? What about this header?
18180 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18182 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18183 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18184 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18185 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18186 ac_header_preproc
=yes
18189 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18190 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18191 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18192 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18193 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18194 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18195 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18196 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18197 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18198 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18199 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18200 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18203 ## ------------------------------------------ ##
18204 ## Report this to the AC_PACKAGE_NAME lists. ##
18205 ## ------------------------------------------ ##
18208 sed "s/^/$as_me: WARNING: /" >&2
18211 echo "$as_me:$LINENO: checking for $ac_header" >&5
18212 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18213 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18214 echo $ECHO_N "(cached) $ECHO_C" >&6
18216 eval "$as_ac_Header=\$ac_header_preproc"
18218 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18219 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18222 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18223 cat >>confdefs.h
<<_ACEOF
18224 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18229 for ac_header
in kerberosIV
/krb.h
18231 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18232 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18233 echo "$as_me:$LINENO: checking for $ac_header" >&5
18234 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18235 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18236 echo $ECHO_N "(cached) $ECHO_C" >&6
18238 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18239 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18241 # Is the header compilable?
18242 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18243 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18244 cat >conftest.
$ac_ext <<_ACEOF
18247 cat confdefs.h
>>conftest.
$ac_ext
18248 cat >>conftest.
$ac_ext <<_ACEOF
18249 /* end confdefs.h. */
18250 $ac_includes_default
18251 #include <$ac_header>
18253 rm -f conftest.
$ac_objext
18254 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18255 (eval $ac_compile) 2>conftest.er1
18257 grep -v '^ *+' conftest.er1
>conftest.err
18259 cat conftest.err
>&5
18260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18261 (exit $ac_status); } &&
18262 { ac_try
='test -z "$ac_c_werror_flag"
18263 || test ! -s conftest.err'
18264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18265 (eval $ac_try) 2>&5
18267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18268 (exit $ac_status); }; } &&
18269 { ac_try
='test -s conftest.$ac_objext'
18270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18271 (eval $ac_try) 2>&5
18273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18274 (exit $ac_status); }; }; then
18275 ac_header_compiler
=yes
18277 echo "$as_me: failed program was:" >&5
18278 sed 's/^/| /' conftest.
$ac_ext >&5
18280 ac_header_compiler
=no
18282 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18283 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18284 echo "${ECHO_T}$ac_header_compiler" >&6
18286 # Is the header present?
18287 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18288 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18289 cat >conftest.
$ac_ext <<_ACEOF
18292 cat confdefs.h
>>conftest.
$ac_ext
18293 cat >>conftest.
$ac_ext <<_ACEOF
18294 /* end confdefs.h. */
18295 #include <$ac_header>
18297 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18298 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
18300 grep -v '^ *+' conftest.er1
>conftest.err
18302 cat conftest.err
>&5
18303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18304 (exit $ac_status); } >/dev
/null
; then
18305 if test -s conftest.err
; then
18306 ac_cpp_err
=$ac_c_preproc_warn_flag
18307 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
18314 if test -z "$ac_cpp_err"; then
18315 ac_header_preproc
=yes
18317 echo "$as_me: failed program was:" >&5
18318 sed 's/^/| /' conftest.
$ac_ext >&5
18320 ac_header_preproc
=no
18322 rm -f conftest.err conftest.
$ac_ext
18323 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18324 echo "${ECHO_T}$ac_header_preproc" >&6
18326 # So? What about this header?
18327 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18329 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18330 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18331 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18332 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18333 ac_header_preproc
=yes
18336 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18337 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18338 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18339 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18340 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18341 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18342 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18343 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18344 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18345 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18346 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18347 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18350 ## ------------------------------------------ ##
18351 ## Report this to the AC_PACKAGE_NAME lists. ##
18352 ## ------------------------------------------ ##
18355 sed "s/^/$as_me: WARNING: /" >&2
18358 echo "$as_me:$LINENO: checking for $ac_header" >&5
18359 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18360 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18361 echo $ECHO_N "(cached) $ECHO_C" >&6
18363 eval "$as_ac_Header=\$ac_header_preproc"
18365 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18366 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18369 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18370 cat >>confdefs.h
<<_ACEOF
18371 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18376 for ac_header
in kerberos
/krb.h
18378 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18379 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18380 echo "$as_me:$LINENO: checking for $ac_header" >&5
18381 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18382 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18383 echo $ECHO_N "(cached) $ECHO_C" >&6
18385 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18386 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18388 # Is the header compilable?
18389 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18390 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18391 cat >conftest.
$ac_ext <<_ACEOF
18394 cat confdefs.h
>>conftest.
$ac_ext
18395 cat >>conftest.
$ac_ext <<_ACEOF
18396 /* end confdefs.h. */
18397 $ac_includes_default
18398 #include <$ac_header>
18400 rm -f conftest.
$ac_objext
18401 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18402 (eval $ac_compile) 2>conftest.er1
18404 grep -v '^ *+' conftest.er1
>conftest.err
18406 cat conftest.err
>&5
18407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18408 (exit $ac_status); } &&
18409 { ac_try
='test -z "$ac_c_werror_flag"
18410 || test ! -s conftest.err'
18411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18412 (eval $ac_try) 2>&5
18414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18415 (exit $ac_status); }; } &&
18416 { ac_try
='test -s conftest.$ac_objext'
18417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18418 (eval $ac_try) 2>&5
18420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18421 (exit $ac_status); }; }; then
18422 ac_header_compiler
=yes
18424 echo "$as_me: failed program was:" >&5
18425 sed 's/^/| /' conftest.
$ac_ext >&5
18427 ac_header_compiler
=no
18429 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18430 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18431 echo "${ECHO_T}$ac_header_compiler" >&6
18433 # Is the header present?
18434 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18435 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18436 cat >conftest.
$ac_ext <<_ACEOF
18439 cat confdefs.h
>>conftest.
$ac_ext
18440 cat >>conftest.
$ac_ext <<_ACEOF
18441 /* end confdefs.h. */
18442 #include <$ac_header>
18444 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18445 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
18447 grep -v '^ *+' conftest.er1
>conftest.err
18449 cat conftest.err
>&5
18450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18451 (exit $ac_status); } >/dev
/null
; then
18452 if test -s conftest.err
; then
18453 ac_cpp_err
=$ac_c_preproc_warn_flag
18454 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
18461 if test -z "$ac_cpp_err"; then
18462 ac_header_preproc
=yes
18464 echo "$as_me: failed program was:" >&5
18465 sed 's/^/| /' conftest.
$ac_ext >&5
18467 ac_header_preproc
=no
18469 rm -f conftest.err conftest.
$ac_ext
18470 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18471 echo "${ECHO_T}$ac_header_preproc" >&6
18473 # So? What about this header?
18474 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18476 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18477 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18478 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18479 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18480 ac_header_preproc
=yes
18483 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18484 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18485 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18486 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18487 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18488 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18489 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18490 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18491 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18492 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18493 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18494 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18497 ## ------------------------------------------ ##
18498 ## Report this to the AC_PACKAGE_NAME lists. ##
18499 ## ------------------------------------------ ##
18502 sed "s/^/$as_me: WARNING: /" >&2
18505 echo "$as_me:$LINENO: checking for $ac_header" >&5
18506 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18507 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18508 echo $ECHO_N "(cached) $ECHO_C" >&6
18510 eval "$as_ac_Header=\$ac_header_preproc"
18512 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18513 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18516 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18517 cat >>confdefs.h
<<_ACEOF
18518 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18535 for ac_header
in com_err.h
18537 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18538 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18539 echo "$as_me:$LINENO: checking for $ac_header" >&5
18540 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18541 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18542 echo $ECHO_N "(cached) $ECHO_C" >&6
18544 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18545 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18547 # Is the header compilable?
18548 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18549 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18550 cat >conftest.
$ac_ext <<_ACEOF
18553 cat confdefs.h
>>conftest.
$ac_ext
18554 cat >>conftest.
$ac_ext <<_ACEOF
18555 /* end confdefs.h. */
18556 $ac_includes_default
18557 #include <$ac_header>
18559 rm -f conftest.
$ac_objext
18560 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18561 (eval $ac_compile) 2>conftest.er1
18563 grep -v '^ *+' conftest.er1
>conftest.err
18565 cat conftest.err
>&5
18566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18567 (exit $ac_status); } &&
18568 { ac_try
='test -z "$ac_c_werror_flag"
18569 || test ! -s conftest.err'
18570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18571 (eval $ac_try) 2>&5
18573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18574 (exit $ac_status); }; } &&
18575 { ac_try
='test -s conftest.$ac_objext'
18576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18577 (eval $ac_try) 2>&5
18579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18580 (exit $ac_status); }; }; then
18581 ac_header_compiler
=yes
18583 echo "$as_me: failed program was:" >&5
18584 sed 's/^/| /' conftest.
$ac_ext >&5
18586 ac_header_compiler
=no
18588 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18589 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18590 echo "${ECHO_T}$ac_header_compiler" >&6
18592 # Is the header present?
18593 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18594 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18595 cat >conftest.
$ac_ext <<_ACEOF
18598 cat confdefs.h
>>conftest.
$ac_ext
18599 cat >>conftest.
$ac_ext <<_ACEOF
18600 /* end confdefs.h. */
18601 #include <$ac_header>
18603 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18604 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
18606 grep -v '^ *+' conftest.er1
>conftest.err
18608 cat conftest.err
>&5
18609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18610 (exit $ac_status); } >/dev
/null
; then
18611 if test -s conftest.err
; then
18612 ac_cpp_err
=$ac_c_preproc_warn_flag
18613 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
18620 if test -z "$ac_cpp_err"; then
18621 ac_header_preproc
=yes
18623 echo "$as_me: failed program was:" >&5
18624 sed 's/^/| /' conftest.
$ac_ext >&5
18626 ac_header_preproc
=no
18628 rm -f conftest.err conftest.
$ac_ext
18629 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18630 echo "${ECHO_T}$ac_header_preproc" >&6
18632 # So? What about this header?
18633 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18635 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18636 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18637 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18638 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18639 ac_header_preproc
=yes
18642 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18643 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18644 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18645 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18646 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18647 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18648 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18649 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18650 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18651 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18652 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18653 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18656 ## ------------------------------------------ ##
18657 ## Report this to the AC_PACKAGE_NAME lists. ##
18658 ## ------------------------------------------ ##
18661 sed "s/^/$as_me: WARNING: /" >&2
18664 echo "$as_me:$LINENO: checking for $ac_header" >&5
18665 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18666 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18667 echo $ECHO_N "(cached) $ECHO_C" >&6
18669 eval "$as_ac_Header=\$ac_header_preproc"
18671 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18672 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18675 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18676 cat >>confdefs.h
<<_ACEOF
18677 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18686 # Solaris requires -lintl if you want strerror (which calls dgettext)
18687 # to return localized messages.
18689 echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
18690 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6
18691 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
18692 echo $ECHO_N "(cached) $ECHO_C" >&6
18694 ac_check_lib_save_LIBS
=$LIBS
18695 LIBS
="-lintl $LIBS"
18696 cat >conftest.
$ac_ext <<_ACEOF
18699 cat confdefs.h
>>conftest.
$ac_ext
18700 cat >>conftest.
$ac_ext <<_ACEOF
18701 /* end confdefs.h. */
18703 /* Override any gcc2 internal prototype to avoid an error. */
18707 /* We use char because int might match the return type of a gcc2
18708 builtin and then its argument prototype would still apply. */
18718 rm -f conftest.
$ac_objext conftest
$ac_exeext
18719 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18720 (eval $ac_link) 2>conftest.er1
18722 grep -v '^ *+' conftest.er1
>conftest.err
18724 cat conftest.err
>&5
18725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18726 (exit $ac_status); } &&
18727 { ac_try
='test -z "$ac_c_werror_flag"
18728 || test ! -s conftest.err'
18729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18730 (eval $ac_try) 2>&5
18732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18733 (exit $ac_status); }; } &&
18734 { ac_try
='test -s conftest$ac_exeext'
18735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18736 (eval $ac_try) 2>&5
18738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18739 (exit $ac_status); }; }; then
18740 ac_cv_lib_intl_dgettext
=yes
18742 echo "$as_me: failed program was:" >&5
18743 sed 's/^/| /' conftest.
$ac_ext >&5
18745 ac_cv_lib_intl_dgettext
=no
18747 rm -f conftest.err conftest.
$ac_objext \
18748 conftest
$ac_exeext conftest.
$ac_ext
18749 LIBS
=$ac_check_lib_save_LIBS
18751 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
18752 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6
18753 if test $ac_cv_lib_intl_dgettext = yes; then
18754 cat >>confdefs.h
<<_ACEOF
18755 #define HAVE_LIBINTL 1
18758 LIBS
="-lintl $LIBS"
18763 echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
18764 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6
18765 if test "${emacs_cv_localtime_cache+set}" = set; then
18766 echo $ECHO_N "(cached) $ECHO_C" >&6
18768 if test x
$ac_cv_func_tzset = xyes
; then
18769 if test "$cross_compiling" = yes; then
18770 # If we have tzset, assume the worst when cross-compiling.
18771 emacs_cv_localtime_cache
=yes
18773 cat >conftest.
$ac_ext <<_ACEOF
18776 cat confdefs.h
>>conftest.
$ac_ext
18777 cat >>conftest.
$ac_ext <<_ACEOF
18778 /* end confdefs.h. */
18780 extern char **environ;
18784 for (to = from = environ; (*to = *from); from++)
18785 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
18788 char TZ_GMT0[] = "TZ=GMT0";
18789 char TZ_PST8[] = "TZ=PST8";
18792 time_t now = time ((time_t *) 0);
18793 int hour_GMT0, hour_unset;
18794 if (putenv (TZ_GMT0) != 0)
18796 hour_GMT0 = localtime (&now)->tm_hour;
18798 hour_unset = localtime (&now)->tm_hour;
18799 if (putenv (TZ_PST8) != 0)
18801 if (localtime (&now)->tm_hour == hour_GMT0)
18804 if (localtime (&now)->tm_hour != hour_unset)
18809 rm -f conftest
$ac_exeext
18810 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18811 (eval $ac_link) 2>&5
18813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18814 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
18815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18816 (eval $ac_try) 2>&5
18818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18819 (exit $ac_status); }; }; then
18820 emacs_cv_localtime_cache
=no
18822 echo "$as_me: program exited with status $ac_status" >&5
18823 echo "$as_me: failed program was:" >&5
18824 sed 's/^/| /' conftest.
$ac_ext >&5
18826 ( exit $ac_status )
18827 emacs_cv_localtime_cache
=yes
18829 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
18832 # If we lack tzset, report that localtime does not cache TZ,
18833 # since we can't invalidate the cache if we don't have tzset.
18834 emacs_cv_localtime_cache
=no
18837 echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
18838 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6
18839 if test $emacs_cv_localtime_cache = yes; then
18841 cat >>confdefs.h
<<\_ACEOF
18842 #define LOCALTIME_CACHE 1
18847 if test "x$HAVE_TIMEVAL" = xyes
; then
18849 for ac_func
in gettimeofday
18851 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18852 echo "$as_me:$LINENO: checking for $ac_func" >&5
18853 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18854 if eval "test \"\${$as_ac_var+set}\" = set"; then
18855 echo $ECHO_N "(cached) $ECHO_C" >&6
18857 cat >conftest.
$ac_ext <<_ACEOF
18860 cat confdefs.h
>>conftest.
$ac_ext
18861 cat >>conftest.
$ac_ext <<_ACEOF
18862 /* end confdefs.h. */
18863 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18864 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18865 #define $ac_func innocuous_$ac_func
18867 /* System header to define __stub macros and hopefully few prototypes,
18868 which can conflict with char $ac_func (); below.
18869 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18870 <limits.h> exists even on freestanding compilers. */
18873 # include <limits.h>
18875 # include <assert.h>
18880 /* Override any gcc2 internal prototype to avoid an error. */
18885 /* We use char because int might match the return type of a gcc2
18886 builtin and then its argument prototype would still apply. */
18888 /* The GNU C library defines this for functions which it implements
18889 to always fail with ENOSYS. Some functions are actually named
18890 something starting with __ and the normal name is an alias. */
18891 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18894 char (*f) () = $ac_func;
18903 return f != $ac_func;
18908 rm -f conftest.
$ac_objext conftest
$ac_exeext
18909 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18910 (eval $ac_link) 2>conftest.er1
18912 grep -v '^ *+' conftest.er1
>conftest.err
18914 cat conftest.err
>&5
18915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18916 (exit $ac_status); } &&
18917 { ac_try
='test -z "$ac_c_werror_flag"
18918 || test ! -s conftest.err'
18919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18920 (eval $ac_try) 2>&5
18922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18923 (exit $ac_status); }; } &&
18924 { ac_try
='test -s conftest$ac_exeext'
18925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18926 (eval $ac_try) 2>&5
18928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18929 (exit $ac_status); }; }; then
18930 eval "$as_ac_var=yes"
18932 echo "$as_me: failed program was:" >&5
18933 sed 's/^/| /' conftest.
$ac_ext >&5
18935 eval "$as_ac_var=no"
18937 rm -f conftest.err conftest.
$ac_objext \
18938 conftest
$ac_exeext conftest.
$ac_ext
18940 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18941 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18942 if test `eval echo '${'$as_ac_var'}'` = yes; then
18943 cat >>confdefs.h
<<_ACEOF
18944 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18950 if test $ac_cv_func_gettimeofday = yes; then
18951 echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
18952 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6
18953 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
18954 echo $ECHO_N "(cached) $ECHO_C" >&6
18956 cat >conftest.
$ac_ext <<_ACEOF
18959 cat confdefs.h
>>conftest.
$ac_ext
18960 cat >>conftest.
$ac_ext <<_ACEOF
18961 /* end confdefs.h. */
18963 #ifdef TIME_WITH_SYS_TIME
18964 #include <sys/time.h>
18967 #ifdef HAVE_SYS_TIME_H
18968 #include <sys/time.h>
18976 struct timeval time;
18977 gettimeofday (&time, 0);
18982 rm -f conftest.
$ac_objext
18983 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18984 (eval $ac_compile) 2>conftest.er1
18986 grep -v '^ *+' conftest.er1
>conftest.err
18988 cat conftest.err
>&5
18989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18990 (exit $ac_status); } &&
18991 { ac_try
='test -z "$ac_c_werror_flag"
18992 || test ! -s conftest.err'
18993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18994 (eval $ac_try) 2>&5
18996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18997 (exit $ac_status); }; } &&
18998 { ac_try
='test -s conftest.$ac_objext'
18999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19000 (eval $ac_try) 2>&5
19002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19003 (exit $ac_status); }; }; then
19004 emacs_cv_gettimeofday_two_arguments
=yes
19006 echo "$as_me: failed program was:" >&5
19007 sed 's/^/| /' conftest.
$ac_ext >&5
19009 emacs_cv_gettimeofday_two_arguments
=no
19011 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19013 echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
19014 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6
19015 if test $emacs_cv_gettimeofday_two_arguments = no
; then
19017 cat >>confdefs.h
<<\_ACEOF
19018 #define GETTIMEOFDAY_ONE_ARGUMENT 1
19025 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
19026 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
19027 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
19028 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
19029 echo $ECHO_N "(cached) $ECHO_C" >&6
19031 cat >conftest.
$ac_ext <<_ACEOF
19034 cat confdefs.h
>>conftest.
$ac_ext
19035 cat >>conftest.
$ac_ext <<_ACEOF
19036 /* end confdefs.h. */
19037 #include <sys/types.h>
19038 #include <$ac_cv_struct_tm>
19044 static struct tm ac_aggr;
19045 if (ac_aggr.tm_zone)
19051 rm -f conftest.
$ac_objext
19052 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19053 (eval $ac_compile) 2>conftest.er1
19055 grep -v '^ *+' conftest.er1
>conftest.err
19057 cat conftest.err
>&5
19058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19059 (exit $ac_status); } &&
19060 { ac_try
='test -z "$ac_c_werror_flag"
19061 || test ! -s conftest.err'
19062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19063 (eval $ac_try) 2>&5
19065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19066 (exit $ac_status); }; } &&
19067 { ac_try
='test -s conftest.$ac_objext'
19068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19069 (eval $ac_try) 2>&5
19071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19072 (exit $ac_status); }; }; then
19073 ac_cv_member_struct_tm_tm_zone
=yes
19075 echo "$as_me: failed program was:" >&5
19076 sed 's/^/| /' conftest.
$ac_ext >&5
19078 cat >conftest.
$ac_ext <<_ACEOF
19081 cat confdefs.h
>>conftest.
$ac_ext
19082 cat >>conftest.
$ac_ext <<_ACEOF
19083 /* end confdefs.h. */
19084 #include <sys/types.h>
19085 #include <$ac_cv_struct_tm>
19091 static struct tm ac_aggr;
19092 if (sizeof ac_aggr.tm_zone)
19098 rm -f conftest.
$ac_objext
19099 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19100 (eval $ac_compile) 2>conftest.er1
19102 grep -v '^ *+' conftest.er1
>conftest.err
19104 cat conftest.err
>&5
19105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19106 (exit $ac_status); } &&
19107 { ac_try
='test -z "$ac_c_werror_flag"
19108 || test ! -s conftest.err'
19109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19110 (eval $ac_try) 2>&5
19112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19113 (exit $ac_status); }; } &&
19114 { ac_try
='test -s conftest.$ac_objext'
19115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19116 (eval $ac_try) 2>&5
19118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19119 (exit $ac_status); }; }; then
19120 ac_cv_member_struct_tm_tm_zone
=yes
19122 echo "$as_me: failed program was:" >&5
19123 sed 's/^/| /' conftest.
$ac_ext >&5
19125 ac_cv_member_struct_tm_tm_zone
=no
19127 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19129 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19131 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
19132 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
19133 if test $ac_cv_member_struct_tm_tm_zone = yes; then
19135 cat >>confdefs.h
<<_ACEOF
19136 #define HAVE_STRUCT_TM_TM_ZONE 1
19142 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
19144 cat >>confdefs.h
<<\_ACEOF
19145 #define HAVE_TM_ZONE 1
19149 echo "$as_me:$LINENO: checking for tzname" >&5
19150 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
19151 if test "${ac_cv_var_tzname+set}" = set; then
19152 echo $ECHO_N "(cached) $ECHO_C" >&6
19154 cat >conftest.
$ac_ext <<_ACEOF
19157 cat confdefs.h
>>conftest.
$ac_ext
19158 cat >>conftest.
$ac_ext <<_ACEOF
19159 /* end confdefs.h. */
19161 #ifndef tzname /* For SGI. */
19162 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
19173 rm -f conftest.
$ac_objext conftest
$ac_exeext
19174 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19175 (eval $ac_link) 2>conftest.er1
19177 grep -v '^ *+' conftest.er1
>conftest.err
19179 cat conftest.err
>&5
19180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19181 (exit $ac_status); } &&
19182 { ac_try
='test -z "$ac_c_werror_flag"
19183 || test ! -s conftest.err'
19184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19185 (eval $ac_try) 2>&5
19187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19188 (exit $ac_status); }; } &&
19189 { ac_try
='test -s conftest$ac_exeext'
19190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19191 (eval $ac_try) 2>&5
19193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19194 (exit $ac_status); }; }; then
19195 ac_cv_var_tzname
=yes
19197 echo "$as_me: failed program was:" >&5
19198 sed 's/^/| /' conftest.
$ac_ext >&5
19200 ac_cv_var_tzname
=no
19202 rm -f conftest.err conftest.
$ac_objext \
19203 conftest
$ac_exeext conftest.
$ac_ext
19205 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
19206 echo "${ECHO_T}$ac_cv_var_tzname" >&6
19207 if test $ac_cv_var_tzname = yes; then
19209 cat >>confdefs.h
<<\_ACEOF
19210 #define HAVE_TZNAME 1
19217 if test "$ac_cv_func_gettimeofday" = yes; then
19218 echo "$as_me:$LINENO: checking for struct timezone" >&5
19219 echo $ECHO_N "checking for struct timezone... $ECHO_C" >&6
19220 if test "${emacs_cv_struct_timezone+set}" = set; then
19221 echo $ECHO_N "(cached) $ECHO_C" >&6
19223 cat >conftest.
$ac_ext <<_ACEOF
19226 cat confdefs.h
>>conftest.
$ac_ext
19227 cat >>conftest.
$ac_ext <<_ACEOF
19228 /* end confdefs.h. */
19229 #include <sys/time.h>
19233 struct timezone tz;
19238 rm -f conftest.
$ac_objext
19239 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19240 (eval $ac_compile) 2>conftest.er1
19242 grep -v '^ *+' conftest.er1
>conftest.err
19244 cat conftest.err
>&5
19245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19246 (exit $ac_status); } &&
19247 { ac_try
='test -z "$ac_c_werror_flag"
19248 || test ! -s conftest.err'
19249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19250 (eval $ac_try) 2>&5
19252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19253 (exit $ac_status); }; } &&
19254 { ac_try
='test -s conftest.$ac_objext'
19255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19256 (eval $ac_try) 2>&5
19258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19259 (exit $ac_status); }; }; then
19260 if test "$cross_compiling" = yes; then
19261 emacs_cv_struct_timezone
=yes
19263 cat >conftest.
$ac_ext <<_ACEOF
19266 cat confdefs.h
>>conftest.
$ac_ext
19267 cat >>conftest.
$ac_ext <<_ACEOF
19268 /* end confdefs.h. */
19270 #ifdef TIME_WITH_SYS_TIME
19271 #include <sys/time.h>
19274 #ifdef HAVE_SYS_TIME_H
19275 #include <sys/time.h>
19281 struct timeval time;
19282 struct timezone dummy;
19283 exit (gettimeofday (&time, &dummy));
19286 rm -f conftest
$ac_exeext
19287 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19288 (eval $ac_link) 2>&5
19290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19291 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
19292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19293 (eval $ac_try) 2>&5
19295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19296 (exit $ac_status); }; }; then
19297 emacs_cv_struct_timezone
=yes
19299 echo "$as_me: program exited with status $ac_status" >&5
19300 echo "$as_me: failed program was:" >&5
19301 sed 's/^/| /' conftest.
$ac_ext >&5
19303 ( exit $ac_status )
19304 emacs_cv_struct_timezone
=no
19306 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
19309 echo "$as_me: failed program was:" >&5
19310 sed 's/^/| /' conftest.
$ac_ext >&5
19312 emacs_cv_struct_timezone
=no
19314 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19316 echo "$as_me:$LINENO: result: $emacs_cv_struct_timezone" >&5
19317 echo "${ECHO_T}$emacs_cv_struct_timezone" >&6
19321 echo "$as_me:$LINENO: checking for socket" >&5
19322 echo $ECHO_N "checking for socket... $ECHO_C" >&6
19323 if test "${ac_cv_func_socket+set}" = set; then
19324 echo $ECHO_N "(cached) $ECHO_C" >&6
19326 cat >conftest.
$ac_ext <<_ACEOF
19329 cat confdefs.h
>>conftest.
$ac_ext
19330 cat >>conftest.
$ac_ext <<_ACEOF
19331 /* end confdefs.h. */
19332 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
19333 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19334 #define socket innocuous_socket
19336 /* System header to define __stub macros and hopefully few prototypes,
19337 which can conflict with char socket (); below.
19338 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19339 <limits.h> exists even on freestanding compilers. */
19342 # include <limits.h>
19344 # include <assert.h>
19349 /* Override any gcc2 internal prototype to avoid an error. */
19354 /* We use char because int might match the return type of a gcc2
19355 builtin and then its argument prototype would still apply. */
19357 /* The GNU C library defines this for functions which it implements
19358 to always fail with ENOSYS. Some functions are actually named
19359 something starting with __ and the normal name is an alias. */
19360 #if defined (__stub_socket) || defined (__stub___socket)
19363 char (*f) () = socket;
19372 return f != socket;
19377 rm -f conftest.
$ac_objext conftest
$ac_exeext
19378 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19379 (eval $ac_link) 2>conftest.er1
19381 grep -v '^ *+' conftest.er1
>conftest.err
19383 cat conftest.err
>&5
19384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19385 (exit $ac_status); } &&
19386 { ac_try
='test -z "$ac_c_werror_flag"
19387 || test ! -s conftest.err'
19388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19389 (eval $ac_try) 2>&5
19391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19392 (exit $ac_status); }; } &&
19393 { ac_try
='test -s conftest$ac_exeext'
19394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19395 (eval $ac_try) 2>&5
19397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19398 (exit $ac_status); }; }; then
19399 ac_cv_func_socket
=yes
19401 echo "$as_me: failed program was:" >&5
19402 sed 's/^/| /' conftest.
$ac_ext >&5
19404 ac_cv_func_socket
=no
19406 rm -f conftest.err conftest.
$ac_objext \
19407 conftest
$ac_exeext conftest.
$ac_ext
19409 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
19410 echo "${ECHO_T}$ac_cv_func_socket" >&6
19411 if test $ac_cv_func_socket = yes; then
19417 if test $ok_so_far = yes; then
19418 if test "${ac_cv_header_netinet_in_h+set}" = set; then
19419 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
19420 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
19421 if test "${ac_cv_header_netinet_in_h+set}" = set; then
19422 echo $ECHO_N "(cached) $ECHO_C" >&6
19424 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
19425 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
19427 # Is the header compilable?
19428 echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
19429 echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6
19430 cat >conftest.
$ac_ext <<_ACEOF
19433 cat confdefs.h
>>conftest.
$ac_ext
19434 cat >>conftest.
$ac_ext <<_ACEOF
19435 /* end confdefs.h. */
19436 $ac_includes_default
19437 #include <netinet/in.h>
19439 rm -f conftest.
$ac_objext
19440 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19441 (eval $ac_compile) 2>conftest.er1
19443 grep -v '^ *+' conftest.er1
>conftest.err
19445 cat conftest.err
>&5
19446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19447 (exit $ac_status); } &&
19448 { ac_try
='test -z "$ac_c_werror_flag"
19449 || test ! -s conftest.err'
19450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19451 (eval $ac_try) 2>&5
19453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19454 (exit $ac_status); }; } &&
19455 { ac_try
='test -s conftest.$ac_objext'
19456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19457 (eval $ac_try) 2>&5
19459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19460 (exit $ac_status); }; }; then
19461 ac_header_compiler
=yes
19463 echo "$as_me: failed program was:" >&5
19464 sed 's/^/| /' conftest.
$ac_ext >&5
19466 ac_header_compiler
=no
19468 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19469 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19470 echo "${ECHO_T}$ac_header_compiler" >&6
19472 # Is the header present?
19473 echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
19474 echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6
19475 cat >conftest.
$ac_ext <<_ACEOF
19478 cat confdefs.h
>>conftest.
$ac_ext
19479 cat >>conftest.
$ac_ext <<_ACEOF
19480 /* end confdefs.h. */
19481 #include <netinet/in.h>
19483 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19484 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
19486 grep -v '^ *+' conftest.er1
>conftest.err
19488 cat conftest.err
>&5
19489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19490 (exit $ac_status); } >/dev
/null
; then
19491 if test -s conftest.err
; then
19492 ac_cpp_err
=$ac_c_preproc_warn_flag
19493 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
19500 if test -z "$ac_cpp_err"; then
19501 ac_header_preproc
=yes
19503 echo "$as_me: failed program was:" >&5
19504 sed 's/^/| /' conftest.
$ac_ext >&5
19506 ac_header_preproc
=no
19508 rm -f conftest.err conftest.
$ac_ext
19509 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19510 echo "${ECHO_T}$ac_header_preproc" >&6
19512 # So? What about this header?
19513 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19515 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
19516 echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19517 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
19518 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
19519 ac_header_preproc
=yes
19522 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
19523 echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
19524 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
19525 echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
19526 { echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
19527 echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
19528 { echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
19529 echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
19530 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
19531 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
19532 { echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
19533 echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
19536 ## ------------------------------------------ ##
19537 ## Report this to the AC_PACKAGE_NAME lists. ##
19538 ## ------------------------------------------ ##
19541 sed "s/^/$as_me: WARNING: /" >&2
19544 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
19545 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
19546 if test "${ac_cv_header_netinet_in_h+set}" = set; then
19547 echo $ECHO_N "(cached) $ECHO_C" >&6
19549 ac_cv_header_netinet_in_h
=$ac_header_preproc
19551 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
19552 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
19555 if test $ac_cv_header_netinet_in_h = yes; then
19563 if test $ok_so_far = yes; then
19564 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
19565 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
19566 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
19567 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
19568 echo $ECHO_N "(cached) $ECHO_C" >&6
19570 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
19571 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
19573 # Is the header compilable?
19574 echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
19575 echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6
19576 cat >conftest.
$ac_ext <<_ACEOF
19579 cat confdefs.h
>>conftest.
$ac_ext
19580 cat >>conftest.
$ac_ext <<_ACEOF
19581 /* end confdefs.h. */
19582 $ac_includes_default
19583 #include <arpa/inet.h>
19585 rm -f conftest.
$ac_objext
19586 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19587 (eval $ac_compile) 2>conftest.er1
19589 grep -v '^ *+' conftest.er1
>conftest.err
19591 cat conftest.err
>&5
19592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19593 (exit $ac_status); } &&
19594 { ac_try
='test -z "$ac_c_werror_flag"
19595 || test ! -s conftest.err'
19596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19597 (eval $ac_try) 2>&5
19599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19600 (exit $ac_status); }; } &&
19601 { ac_try
='test -s conftest.$ac_objext'
19602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19603 (eval $ac_try) 2>&5
19605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19606 (exit $ac_status); }; }; then
19607 ac_header_compiler
=yes
19609 echo "$as_me: failed program was:" >&5
19610 sed 's/^/| /' conftest.
$ac_ext >&5
19612 ac_header_compiler
=no
19614 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19615 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19616 echo "${ECHO_T}$ac_header_compiler" >&6
19618 # Is the header present?
19619 echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
19620 echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6
19621 cat >conftest.
$ac_ext <<_ACEOF
19624 cat confdefs.h
>>conftest.
$ac_ext
19625 cat >>conftest.
$ac_ext <<_ACEOF
19626 /* end confdefs.h. */
19627 #include <arpa/inet.h>
19629 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19630 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
19632 grep -v '^ *+' conftest.er1
>conftest.err
19634 cat conftest.err
>&5
19635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19636 (exit $ac_status); } >/dev
/null
; then
19637 if test -s conftest.err
; then
19638 ac_cpp_err
=$ac_c_preproc_warn_flag
19639 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
19646 if test -z "$ac_cpp_err"; then
19647 ac_header_preproc
=yes
19649 echo "$as_me: failed program was:" >&5
19650 sed 's/^/| /' conftest.
$ac_ext >&5
19652 ac_header_preproc
=no
19654 rm -f conftest.err conftest.
$ac_ext
19655 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19656 echo "${ECHO_T}$ac_header_preproc" >&6
19658 # So? What about this header?
19659 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19661 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
19662 echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19663 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
19664 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
19665 ac_header_preproc
=yes
19668 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
19669 echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
19670 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
19671 echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
19672 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
19673 echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
19674 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
19675 echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
19676 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
19677 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
19678 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
19679 echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
19682 ## ------------------------------------------ ##
19683 ## Report this to the AC_PACKAGE_NAME lists. ##
19684 ## ------------------------------------------ ##
19687 sed "s/^/$as_me: WARNING: /" >&2
19690 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
19691 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
19692 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
19693 echo $ECHO_N "(cached) $ECHO_C" >&6
19695 ac_cv_header_arpa_inet_h
=$ac_header_preproc
19697 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
19698 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
19701 if test $ac_cv_header_arpa_inet_h = yes; then
19709 if test $ok_so_far = yes; then
19711 cat >>confdefs.h
<<\_ACEOF
19712 #define HAVE_INET_SOCKETS 1
19719 for ac_header
in sys
/ioctl.h net
/if.h
19721 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19722 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19723 echo "$as_me:$LINENO: checking for $ac_header" >&5
19724 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19725 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19726 echo $ECHO_N "(cached) $ECHO_C" >&6
19728 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19729 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19731 # Is the header compilable?
19732 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19733 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19734 cat >conftest.
$ac_ext <<_ACEOF
19737 cat confdefs.h
>>conftest.
$ac_ext
19738 cat >>conftest.
$ac_ext <<_ACEOF
19739 /* end confdefs.h. */
19740 $ac_includes_default
19741 #include <$ac_header>
19743 rm -f conftest.
$ac_objext
19744 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19745 (eval $ac_compile) 2>conftest.er1
19747 grep -v '^ *+' conftest.er1
>conftest.err
19749 cat conftest.err
>&5
19750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19751 (exit $ac_status); } &&
19752 { ac_try
='test -z "$ac_c_werror_flag"
19753 || test ! -s conftest.err'
19754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19755 (eval $ac_try) 2>&5
19757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19758 (exit $ac_status); }; } &&
19759 { ac_try
='test -s conftest.$ac_objext'
19760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19761 (eval $ac_try) 2>&5
19763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19764 (exit $ac_status); }; }; then
19765 ac_header_compiler
=yes
19767 echo "$as_me: failed program was:" >&5
19768 sed 's/^/| /' conftest.
$ac_ext >&5
19770 ac_header_compiler
=no
19772 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19773 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19774 echo "${ECHO_T}$ac_header_compiler" >&6
19776 # Is the header present?
19777 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19778 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19779 cat >conftest.
$ac_ext <<_ACEOF
19782 cat confdefs.h
>>conftest.
$ac_ext
19783 cat >>conftest.
$ac_ext <<_ACEOF
19784 /* end confdefs.h. */
19785 #include <$ac_header>
19787 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19788 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
19790 grep -v '^ *+' conftest.er1
>conftest.err
19792 cat conftest.err
>&5
19793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19794 (exit $ac_status); } >/dev
/null
; then
19795 if test -s conftest.err
; then
19796 ac_cpp_err
=$ac_c_preproc_warn_flag
19797 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
19804 if test -z "$ac_cpp_err"; then
19805 ac_header_preproc
=yes
19807 echo "$as_me: failed program was:" >&5
19808 sed 's/^/| /' conftest.
$ac_ext >&5
19810 ac_header_preproc
=no
19812 rm -f conftest.err conftest.
$ac_ext
19813 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19814 echo "${ECHO_T}$ac_header_preproc" >&6
19816 # So? What about this header?
19817 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19819 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19820 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19821 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19822 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19823 ac_header_preproc
=yes
19826 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19827 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19828 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19829 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19830 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19831 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19832 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19833 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19834 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19835 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19836 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19837 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19840 ## ------------------------------------------ ##
19841 ## Report this to the AC_PACKAGE_NAME lists. ##
19842 ## ------------------------------------------ ##
19845 sed "s/^/$as_me: WARNING: /" >&2
19848 echo "$as_me:$LINENO: checking for $ac_header" >&5
19849 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19850 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19851 echo $ECHO_N "(cached) $ECHO_C" >&6
19853 eval "$as_ac_Header=\$ac_header_preproc"
19855 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19856 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19859 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19860 cat >>confdefs.h
<<_ACEOF
19861 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19869 if test -f /usr
/lpp
/X11
/bin
/smt.exp
; then
19871 cat >>confdefs.h
<<\_ACEOF
19872 #define HAVE_AIX_SMT_EXP 1
19877 echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
19878 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6
19879 if test -d /dev
/pts
&& ls -d /dev
/ptmx
> /dev
/null
2>&1 ; then
19880 echo "$as_me:$LINENO: result: yes" >&5
19881 echo "${ECHO_T}yes" >&6
19883 cat >>confdefs.h
<<\_ACEOF
19884 #define HAVE_DEV_PTMX 1
19888 echo "$as_me:$LINENO: result: no" >&5
19889 echo "${ECHO_T}no" >&6
19892 echo "$as_me:$LINENO: checking for pid_t" >&5
19893 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
19894 if test "${ac_cv_type_pid_t+set}" = set; then
19895 echo $ECHO_N "(cached) $ECHO_C" >&6
19897 cat >conftest.
$ac_ext <<_ACEOF
19900 cat confdefs.h
>>conftest.
$ac_ext
19901 cat >>conftest.
$ac_ext <<_ACEOF
19902 /* end confdefs.h. */
19903 $ac_includes_default
19909 if (sizeof (pid_t))
19915 rm -f conftest.
$ac_objext
19916 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19917 (eval $ac_compile) 2>conftest.er1
19919 grep -v '^ *+' conftest.er1
>conftest.err
19921 cat conftest.err
>&5
19922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19923 (exit $ac_status); } &&
19924 { ac_try
='test -z "$ac_c_werror_flag"
19925 || test ! -s conftest.err'
19926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19927 (eval $ac_try) 2>&5
19929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19930 (exit $ac_status); }; } &&
19931 { ac_try
='test -s conftest.$ac_objext'
19932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19933 (eval $ac_try) 2>&5
19935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19936 (exit $ac_status); }; }; then
19937 ac_cv_type_pid_t
=yes
19939 echo "$as_me: failed program was:" >&5
19940 sed 's/^/| /' conftest.
$ac_ext >&5
19942 ac_cv_type_pid_t
=no
19944 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19946 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
19947 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
19948 if test $ac_cv_type_pid_t = yes; then
19952 cat >>confdefs.h
<<_ACEOF
19960 for ac_header
in unistd.h vfork.h
19962 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19963 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19964 echo "$as_me:$LINENO: checking for $ac_header" >&5
19965 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19966 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19967 echo $ECHO_N "(cached) $ECHO_C" >&6
19969 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19970 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19972 # Is the header compilable?
19973 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19974 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19975 cat >conftest.
$ac_ext <<_ACEOF
19978 cat confdefs.h
>>conftest.
$ac_ext
19979 cat >>conftest.
$ac_ext <<_ACEOF
19980 /* end confdefs.h. */
19981 $ac_includes_default
19982 #include <$ac_header>
19984 rm -f conftest.
$ac_objext
19985 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19986 (eval $ac_compile) 2>conftest.er1
19988 grep -v '^ *+' conftest.er1
>conftest.err
19990 cat conftest.err
>&5
19991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19992 (exit $ac_status); } &&
19993 { ac_try
='test -z "$ac_c_werror_flag"
19994 || test ! -s conftest.err'
19995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19996 (eval $ac_try) 2>&5
19998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19999 (exit $ac_status); }; } &&
20000 { ac_try
='test -s conftest.$ac_objext'
20001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20002 (eval $ac_try) 2>&5
20004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20005 (exit $ac_status); }; }; then
20006 ac_header_compiler
=yes
20008 echo "$as_me: failed program was:" >&5
20009 sed 's/^/| /' conftest.
$ac_ext >&5
20011 ac_header_compiler
=no
20013 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20014 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20015 echo "${ECHO_T}$ac_header_compiler" >&6
20017 # Is the header present?
20018 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20019 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20020 cat >conftest.
$ac_ext <<_ACEOF
20023 cat confdefs.h
>>conftest.
$ac_ext
20024 cat >>conftest.
$ac_ext <<_ACEOF
20025 /* end confdefs.h. */
20026 #include <$ac_header>
20028 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20029 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
20031 grep -v '^ *+' conftest.er1
>conftest.err
20033 cat conftest.err
>&5
20034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20035 (exit $ac_status); } >/dev
/null
; then
20036 if test -s conftest.err
; then
20037 ac_cpp_err
=$ac_c_preproc_warn_flag
20038 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
20045 if test -z "$ac_cpp_err"; then
20046 ac_header_preproc
=yes
20048 echo "$as_me: failed program was:" >&5
20049 sed 's/^/| /' conftest.
$ac_ext >&5
20051 ac_header_preproc
=no
20053 rm -f conftest.err conftest.
$ac_ext
20054 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20055 echo "${ECHO_T}$ac_header_preproc" >&6
20057 # So? What about this header?
20058 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20060 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20061 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20062 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20063 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20064 ac_header_preproc
=yes
20067 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20068 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20069 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20070 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20071 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20072 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20073 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20074 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20075 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20076 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20077 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20078 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20081 ## ------------------------------------------ ##
20082 ## Report this to the AC_PACKAGE_NAME lists. ##
20083 ## ------------------------------------------ ##
20086 sed "s/^/$as_me: WARNING: /" >&2
20089 echo "$as_me:$LINENO: checking for $ac_header" >&5
20090 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20091 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20092 echo $ECHO_N "(cached) $ECHO_C" >&6
20094 eval "$as_ac_Header=\$ac_header_preproc"
20096 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20097 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20100 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20101 cat >>confdefs.h
<<_ACEOF
20102 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20111 for ac_func
in fork vfork
20113 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20114 echo "$as_me:$LINENO: checking for $ac_func" >&5
20115 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20116 if eval "test \"\${$as_ac_var+set}\" = set"; then
20117 echo $ECHO_N "(cached) $ECHO_C" >&6
20119 cat >conftest.
$ac_ext <<_ACEOF
20122 cat confdefs.h
>>conftest.
$ac_ext
20123 cat >>conftest.
$ac_ext <<_ACEOF
20124 /* end confdefs.h. */
20125 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20126 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20127 #define $ac_func innocuous_$ac_func
20129 /* System header to define __stub macros and hopefully few prototypes,
20130 which can conflict with char $ac_func (); below.
20131 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20132 <limits.h> exists even on freestanding compilers. */
20135 # include <limits.h>
20137 # include <assert.h>
20142 /* Override any gcc2 internal prototype to avoid an error. */
20147 /* We use char because int might match the return type of a gcc2
20148 builtin and then its argument prototype would still apply. */
20150 /* The GNU C library defines this for functions which it implements
20151 to always fail with ENOSYS. Some functions are actually named
20152 something starting with __ and the normal name is an alias. */
20153 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20156 char (*f) () = $ac_func;
20165 return f != $ac_func;
20170 rm -f conftest.
$ac_objext conftest
$ac_exeext
20171 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20172 (eval $ac_link) 2>conftest.er1
20174 grep -v '^ *+' conftest.er1
>conftest.err
20176 cat conftest.err
>&5
20177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20178 (exit $ac_status); } &&
20179 { ac_try
='test -z "$ac_c_werror_flag"
20180 || test ! -s conftest.err'
20181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20182 (eval $ac_try) 2>&5
20184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20185 (exit $ac_status); }; } &&
20186 { ac_try
='test -s conftest$ac_exeext'
20187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20188 (eval $ac_try) 2>&5
20190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20191 (exit $ac_status); }; }; then
20192 eval "$as_ac_var=yes"
20194 echo "$as_me: failed program was:" >&5
20195 sed 's/^/| /' conftest.
$ac_ext >&5
20197 eval "$as_ac_var=no"
20199 rm -f conftest.err conftest.
$ac_objext \
20200 conftest
$ac_exeext conftest.
$ac_ext
20202 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20203 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20204 if test `eval echo '${'$as_ac_var'}'` = yes; then
20205 cat >>confdefs.h
<<_ACEOF
20206 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20212 if test "x$ac_cv_func_fork" = xyes
; then
20213 echo "$as_me:$LINENO: checking for working fork" >&5
20214 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
20215 if test "${ac_cv_func_fork_works+set}" = set; then
20216 echo $ECHO_N "(cached) $ECHO_C" >&6
20218 if test "$cross_compiling" = yes; then
20219 ac_cv_func_fork_works
=cross
20221 cat >conftest.
$ac_ext <<_ACEOF
20222 /* By Ruediger Kuhlmann. */
20223 #include <sys/types.h>
20225 # include <unistd.h>
20227 /* Some systems only have a dummy stub for fork() */
20235 rm -f conftest
$ac_exeext
20236 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20237 (eval $ac_link) 2>&5
20239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20240 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
20241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20242 (eval $ac_try) 2>&5
20244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20245 (exit $ac_status); }; }; then
20246 ac_cv_func_fork_works
=yes
20248 echo "$as_me: program exited with status $ac_status" >&5
20249 echo "$as_me: failed program was:" >&5
20250 sed 's/^/| /' conftest.
$ac_ext >&5
20252 ( exit $ac_status )
20253 ac_cv_func_fork_works
=no
20255 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
20258 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
20259 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
20262 ac_cv_func_fork_works
=$ac_cv_func_fork
20264 if test "x$ac_cv_func_fork_works" = xcross
; then
20266 *-*-amigaos* |
*-*-msdosdjgpp*)
20267 # Override, as these systems have only a dummy fork() stub
20268 ac_cv_func_fork_works
=no
20271 ac_cv_func_fork_works
=yes
20274 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
20275 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
20277 ac_cv_func_vfork_works
=$ac_cv_func_vfork
20278 if test "x$ac_cv_func_vfork" = xyes
; then
20279 echo "$as_me:$LINENO: checking for working vfork" >&5
20280 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
20281 if test "${ac_cv_func_vfork_works+set}" = set; then
20282 echo $ECHO_N "(cached) $ECHO_C" >&6
20284 if test "$cross_compiling" = yes; then
20285 ac_cv_func_vfork_works
=cross
20287 cat >conftest.
$ac_ext <<_ACEOF
20290 cat confdefs.h
>>conftest.
$ac_ext
20291 cat >>conftest.
$ac_ext <<_ACEOF
20292 /* end confdefs.h. */
20293 /* Thanks to Paul Eggert for this test. */
20295 #include <stdlib.h>
20296 #include <sys/types.h>
20297 #include <sys/stat.h>
20298 #include <sys/wait.h>
20300 # include <unistd.h>
20303 # include <vfork.h>
20305 /* On some sparc systems, changes by the child to local and incoming
20306 argument registers are propagated back to the parent. The compiler
20307 is told about this with #include <vfork.h>, but some compilers
20308 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
20309 static variable whose address is put into a register that is
20310 clobbered by the vfork. */
20313 sparc_address_test (int arg)
20315 sparc_address_test (arg) int arg;
20318 static pid_t child;
20336 pid_t parent = getpid ();
20339 sparc_address_test (0);
20344 /* Here is another test for sparc vfork register problems. This
20345 test uses lots of local variables, at least as many local
20346 variables as main has allocated so far including compiler
20347 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
20348 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
20349 reuse the register of parent for one of the local variables,
20350 since it will think that parent can't possibly be used any more
20351 in this routine. Assigning to the local variable will thus
20352 munge parent in the parent process. */
20354 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
20355 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
20356 /* Convince the compiler that p..p7 are live; otherwise, it might
20357 use the same hardware register for all 8 local variables. */
20358 if (p != p1 || p != p2 || p != p3 || p != p4
20359 || p != p5 || p != p6 || p != p7)
20362 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
20363 from child file descriptors. If the child closes a descriptor
20364 before it execs or exits, this munges the parent's descriptor
20365 as well. Test for this by closing stdout in the child. */
20366 _exit(close(fileno(stdout)) != 0);
20371 while (wait(&status) != child)
20374 /* Was there some problem with vforking? */
20377 /* Did the child fail? (This shouldn't happen.) */
20380 /* Did the vfork/compiler bug occur? */
20381 || parent != getpid()
20383 /* Did the file descriptor bug occur? */
20384 || fstat(fileno(stdout), &st) != 0
20389 rm -f conftest
$ac_exeext
20390 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20391 (eval $ac_link) 2>&5
20393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20394 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
20395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20396 (eval $ac_try) 2>&5
20398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20399 (exit $ac_status); }; }; then
20400 ac_cv_func_vfork_works
=yes
20402 echo "$as_me: program exited with status $ac_status" >&5
20403 echo "$as_me: failed program was:" >&5
20404 sed 's/^/| /' conftest.
$ac_ext >&5
20406 ( exit $ac_status )
20407 ac_cv_func_vfork_works
=no
20409 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
20412 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
20413 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
20416 if test "x$ac_cv_func_fork_works" = xcross
; then
20417 ac_cv_func_vfork_works
=$ac_cv_func_vfork
20418 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
20419 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
20422 if test "x$ac_cv_func_vfork_works" = xyes
; then
20424 cat >>confdefs.h
<<\_ACEOF
20425 #define HAVE_WORKING_VFORK 1
20430 cat >>confdefs.h
<<\_ACEOF
20435 if test "x$ac_cv_func_fork_works" = xyes
; then
20437 cat >>confdefs.h
<<\_ACEOF
20438 #define HAVE_WORKING_FORK 1
20444 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
20445 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
20446 if test "${emacs_cv_langinfo_codeset+set}" = set; then
20447 echo $ECHO_N "(cached) $ECHO_C" >&6
20449 cat >conftest.
$ac_ext <<_ACEOF
20452 cat confdefs.h
>>conftest.
$ac_ext
20453 cat >>conftest.
$ac_ext <<_ACEOF
20454 /* end confdefs.h. */
20455 #include <langinfo.h>
20459 char* cs = nl_langinfo(CODESET);
20464 rm -f conftest.
$ac_objext conftest
$ac_exeext
20465 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20466 (eval $ac_link) 2>conftest.er1
20468 grep -v '^ *+' conftest.er1
>conftest.err
20470 cat conftest.err
>&5
20471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20472 (exit $ac_status); } &&
20473 { ac_try
='test -z "$ac_c_werror_flag"
20474 || test ! -s conftest.err'
20475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20476 (eval $ac_try) 2>&5
20478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20479 (exit $ac_status); }; } &&
20480 { ac_try
='test -s conftest$ac_exeext'
20481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20482 (eval $ac_try) 2>&5
20484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20485 (exit $ac_status); }; }; then
20486 emacs_cv_langinfo_codeset
=yes
20488 echo "$as_me: failed program was:" >&5
20489 sed 's/^/| /' conftest.
$ac_ext >&5
20491 emacs_cv_langinfo_codeset
=no
20493 rm -f conftest.err conftest.
$ac_objext \
20494 conftest
$ac_exeext conftest.
$ac_ext
20497 echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
20498 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6
20499 if test $emacs_cv_langinfo_codeset = yes; then
20501 cat >>confdefs.h
<<\_ACEOF
20502 #define HAVE_LANGINFO_CODESET 1
20507 echo "$as_me:$LINENO: checking for size_t" >&5
20508 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
20509 if test "${ac_cv_type_size_t+set}" = set; then
20510 echo $ECHO_N "(cached) $ECHO_C" >&6
20512 cat >conftest.
$ac_ext <<_ACEOF
20515 cat confdefs.h
>>conftest.
$ac_ext
20516 cat >>conftest.
$ac_ext <<_ACEOF
20517 /* end confdefs.h. */
20518 $ac_includes_default
20524 if (sizeof (size_t))
20530 rm -f conftest.
$ac_objext
20531 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20532 (eval $ac_compile) 2>conftest.er1
20534 grep -v '^ *+' conftest.er1
>conftest.err
20536 cat conftest.err
>&5
20537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20538 (exit $ac_status); } &&
20539 { ac_try
='test -z "$ac_c_werror_flag"
20540 || test ! -s conftest.err'
20541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20542 (eval $ac_try) 2>&5
20544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20545 (exit $ac_status); }; } &&
20546 { ac_try
='test -s conftest.$ac_objext'
20547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20548 (eval $ac_try) 2>&5
20550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20551 (exit $ac_status); }; }; then
20552 ac_cv_type_size_t
=yes
20554 echo "$as_me: failed program was:" >&5
20555 sed 's/^/| /' conftest.
$ac_ext >&5
20557 ac_cv_type_size_t
=no
20559 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20561 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20562 echo "${ECHO_T}$ac_cv_type_size_t" >&6
20563 if test $ac_cv_type_size_t = yes; then
20565 cat >>confdefs.h
<<_ACEOF
20566 #define HAVE_SIZE_T 1
20573 echo "$as_me:$LINENO: checking for mbstate_t" >&5
20574 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
20575 if test "${ac_cv_type_mbstate_t+set}" = set; then
20576 echo $ECHO_N "(cached) $ECHO_C" >&6
20578 cat >conftest.
$ac_ext <<_ACEOF
20581 cat confdefs.h
>>conftest.
$ac_ext
20582 cat >>conftest.
$ac_ext <<_ACEOF
20583 /* end confdefs.h. */
20584 $ac_includes_default
20585 # include <wchar.h>
20589 mbstate_t x; return sizeof x;
20594 rm -f conftest.
$ac_objext
20595 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20596 (eval $ac_compile) 2>conftest.er1
20598 grep -v '^ *+' conftest.er1
>conftest.err
20600 cat conftest.err
>&5
20601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20602 (exit $ac_status); } &&
20603 { ac_try
='test -z "$ac_c_werror_flag"
20604 || test ! -s conftest.err'
20605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20606 (eval $ac_try) 2>&5
20608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20609 (exit $ac_status); }; } &&
20610 { ac_try
='test -s conftest.$ac_objext'
20611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20612 (eval $ac_try) 2>&5
20614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20615 (exit $ac_status); }; }; then
20616 ac_cv_type_mbstate_t
=yes
20618 echo "$as_me: failed program was:" >&5
20619 sed 's/^/| /' conftest.
$ac_ext >&5
20621 ac_cv_type_mbstate_t
=no
20623 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20625 echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
20626 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
20627 if test $ac_cv_type_mbstate_t = yes; then
20629 cat >>confdefs.h
<<\_ACEOF
20630 #define HAVE_MBSTATE_T 1
20635 cat >>confdefs.h
<<\_ACEOF
20636 #define mbstate_t int
20641 echo "$as_me:$LINENO: checking for C restrict keyword" >&5
20642 echo $ECHO_N "checking for C restrict keyword... $ECHO_C" >&6
20643 if test "${emacs_cv_c_restrict+set}" = set; then
20644 echo $ECHO_N "(cached) $ECHO_C" >&6
20646 cat >conftest.
$ac_ext <<_ACEOF
20649 cat confdefs.h
>>conftest.
$ac_ext
20650 cat >>conftest.
$ac_ext <<_ACEOF
20651 /* end confdefs.h. */
20652 void fred (int *restrict x);
20661 rm -f conftest.
$ac_objext
20662 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20663 (eval $ac_compile) 2>conftest.er1
20665 grep -v '^ *+' conftest.er1
>conftest.err
20667 cat conftest.err
>&5
20668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20669 (exit $ac_status); } &&
20670 { ac_try
='test -z "$ac_c_werror_flag"
20671 || test ! -s conftest.err'
20672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20673 (eval $ac_try) 2>&5
20675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20676 (exit $ac_status); }; } &&
20677 { ac_try
='test -s conftest.$ac_objext'
20678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20679 (eval $ac_try) 2>&5
20681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20682 (exit $ac_status); }; }; then
20683 emacs_cv_c_restrict
=yes
20685 echo "$as_me: failed program was:" >&5
20686 sed 's/^/| /' conftest.
$ac_ext >&5
20688 cat >conftest.
$ac_ext <<_ACEOF
20691 cat confdefs.h
>>conftest.
$ac_ext
20692 cat >>conftest.
$ac_ext <<_ACEOF
20693 /* end confdefs.h. */
20694 void fred (int *__restrict x);
20703 rm -f conftest.
$ac_objext
20704 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20705 (eval $ac_compile) 2>conftest.er1
20707 grep -v '^ *+' conftest.er1
>conftest.err
20709 cat conftest.err
>&5
20710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20711 (exit $ac_status); } &&
20712 { ac_try
='test -z "$ac_c_werror_flag"
20713 || test ! -s conftest.err'
20714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20715 (eval $ac_try) 2>&5
20717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20718 (exit $ac_status); }; } &&
20719 { ac_try
='test -s conftest.$ac_objext'
20720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20721 (eval $ac_try) 2>&5
20723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20724 (exit $ac_status); }; }; then
20725 emacs_cv_c_restrict
=__restrict
20727 echo "$as_me: failed program was:" >&5
20728 sed 's/^/| /' conftest.
$ac_ext >&5
20730 emacs_cv_c_restrict
=no
20732 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20734 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20736 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
20737 echo "${ECHO_T}$emacs_cv_c_restrict" >&6
20738 case "$emacs_cv_c_restrict" in
20739 yes) emacs_restrict
=restrict
;;
20740 no
) emacs_restrict
="";;
20741 *) emacs_restrict
="$emacs_cv_c_restrict";;
20743 if test "$emacs_restrict" != __restrict
; then
20745 cat >>confdefs.h
<<_ACEOF
20746 #define __restrict $emacs_restrict
20751 echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
20752 echo $ECHO_N "checking for C restricted array declarations... $ECHO_C" >&6
20753 if test "${emacs_cv_c_restrict_arr+set}" = set; then
20754 echo $ECHO_N "(cached) $ECHO_C" >&6
20756 cat >conftest.
$ac_ext <<_ACEOF
20759 cat confdefs.h
>>conftest.
$ac_ext
20760 cat >>conftest.
$ac_ext <<_ACEOF
20761 /* end confdefs.h. */
20762 void fred (int x[__restrict]);
20771 rm -f conftest.
$ac_objext
20772 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20773 (eval $ac_compile) 2>conftest.er1
20775 grep -v '^ *+' conftest.er1
>conftest.err
20777 cat conftest.err
>&5
20778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20779 (exit $ac_status); } &&
20780 { ac_try
='test -z "$ac_c_werror_flag"
20781 || test ! -s conftest.err'
20782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20783 (eval $ac_try) 2>&5
20785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20786 (exit $ac_status); }; } &&
20787 { ac_try
='test -s conftest.$ac_objext'
20788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20789 (eval $ac_try) 2>&5
20791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20792 (exit $ac_status); }; }; then
20793 emacs_cv_c_restrict_arr
=yes
20795 echo "$as_me: failed program was:" >&5
20796 sed 's/^/| /' conftest.
$ac_ext >&5
20798 emacs_cv_c_restrict_arr
=no
20800 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20802 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
20803 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6
20804 if test "$emacs_cv_c_restrict_arr" = yes; then
20806 cat >>confdefs.h
<<\_ACEOF
20807 #define __restrict_arr __restrict
20814 # Set up the CFLAGS for real compilation, so we can substitute it.
20815 CFLAGS
="$REAL_CFLAGS"
20816 CPPFLAGS
="$REAL_CPPFLAGS"
20818 #### Find out which version of Emacs this is.
20819 version
=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
20820 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
20821 if test x
"${version}" = x
; then
20822 { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
20823 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
20824 { (exit 1); exit 1; }; }
20827 ### Specify what sort of things we'll be editing into Makefile and config.h.
20828 ### Use configuration here uncanonicalized to avoid exceeding size limits.
20864 cat >>confdefs.h
<<_ACEOF
20865 #define EMACS_CONFIGURATION "${canonical}"
20869 cat >>confdefs.h
<<_ACEOF
20870 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
20874 cat >>confdefs.h
<<_ACEOF
20875 #define config_machfile "${machfile}"
20879 cat >>confdefs.h
<<_ACEOF
20880 #define config_opsysfile "${opsysfile}"
20884 cat >>confdefs.h
<<_ACEOF
20885 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
20889 cat >>confdefs.h
<<_ACEOF
20890 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
20894 cat >>confdefs.h
<<_ACEOF
20895 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
20899 cat >>confdefs.h
<<_ACEOF
20900 #define UNEXEC_SRC ${UNEXEC_SRC}
20904 if test "${HAVE_X_WINDOWS}" = "yes" ; then
20906 cat >>confdefs.h
<<\_ACEOF
20907 #define HAVE_X_WINDOWS 1
20911 if test "${USE_X_TOOLKIT}" != "none" ; then
20913 cat >>confdefs.h
<<\_ACEOF
20914 #define USE_X_TOOLKIT 1
20918 if test "${HAVE_X11}" = "yes" ; then
20920 cat >>confdefs.h
<<\_ACEOF
20925 if test "${HAVE_XFREE386}" = "yes" ; then
20927 cat >>confdefs.h
<<\_ACEOF
20928 #define HAVE_XFREE386 1
20932 if test "${HAVE_MENUS}" = "yes" ; then
20934 cat >>confdefs.h
<<\_ACEOF
20935 #define HAVE_MENUS 1
20939 if test "${GNU_MALLOC}" = "yes" ; then
20941 cat >>confdefs.h
<<\_ACEOF
20942 #define GNU_MALLOC 1
20946 if test "${REL_ALLOC}" = "yes" ; then
20948 cat >>confdefs.h
<<\_ACEOF
20949 #define REL_ALLOC 1
20958 #### Report on what we decided to do.
20959 #### Report GTK as a toolkit, even if it doesn't use Xt.
20960 #### It makes printing result more understandable as using GTK sets
20961 #### toolkit_scroll_bars to yes by default.
20962 if test "${HAVE_GTK}" = "yes"; then
20967 Configured for \`${canonical}'.
20969 Where should the build process find the source code? ${srcdir}
20970 What operating system and machine description files should Emacs use?
20971 \`${opsysfile}' and \`${machfile}'
20972 What compiler should emacs be built with? ${CC} ${CFLAGS}
20973 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
20974 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
20975 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
20976 What window system should Emacs use? ${window_system}
20977 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
20979 if test -n "${x_includes}"; then
20980 echo " Where do we find X Windows header files? ${x_includes}"
20982 echo " Where do we find X Windows header files? Standard dirs"
20984 if test -n "${x_libraries}"; then
20985 echo " Where do we find X Windows libraries? ${x_libraries}"
20987 echo " Where do we find X Windows libraries? Standard dirs"
20990 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
20991 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
20992 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
20993 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
20994 echo " Does Emacs use -lungif? ${HAVE_GIF}"
20995 echo " Does Emacs use -lpng? ${HAVE_PNG}"
20996 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
20999 # Remove any trailing slashes in these variables.
21000 test "${prefix}" != NONE
&&
21001 prefix
=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
21002 test "${exec_prefix}" != NONE
&&
21003 exec_prefix
=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
21005 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
21006 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
21007 ## from Makefile.c can correctly provide the arg `-traditional' to the
21010 cat >conftest.
$ac_ext <<_ACEOF
21013 cat confdefs.h
>>conftest.
$ac_ext
21014 cat >>conftest.
$ac_ext <<_ACEOF
21015 /* end confdefs.h. */
21018 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21019 $EGREP "yes..yes" >/dev
/null
2>&1; then
21020 CPP_NEED_TRADITIONAL
=no
21022 CPP_NEED_TRADITIONAL
=yes
21027 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"
21028 ac_config_commands
="$ac_config_commands default"
21029 cat >confcache
<<\_ACEOF
21030 # This file is a shell script that caches the results of configure
21031 # tests run on this system so they can be shared between configure
21032 # scripts and configure runs, see configure's option --config-cache.
21033 # It is not useful on other systems. If it contains results you don't
21034 # want to keep, you may remove or edit it.
21036 # config.status only pays attention to the cache file if you give it
21037 # the --recheck option to rerun configure.
21039 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21040 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21041 # following values.
21045 # The following way of writing the cache mishandles newlines in values,
21046 # but we know of no workaround that is simple, portable, and efficient.
21047 # So, don't put newlines in cache variables' values.
21048 # Ultrix sh set writes to stderr and can't be redirected directly,
21049 # and sets the high bit in the cache file unless we assign to the vars.
21052 case `(ac_space=' '; set | grep ac_space) 2>&1` in
21054 # `set' does not quote correctly, so add quotes (double-quote
21055 # substitution turns \\\\ into \\, and sed turns \\ into \).
21058 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21061 # `set' quotes correctly as required by POSIX, so do not add quotes.
21063 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
21070 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21072 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21074 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
21075 if test -w $cache_file; then
21076 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
21077 cat confcache
>$cache_file
21079 echo "not updating unwritable cache $cache_file"
21084 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
21085 # Let make expand exec_prefix.
21086 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
21088 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21089 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21090 # trailing colons and then remove the whole line if VPATH becomes empty
21091 # (actually we leave an empty line to preserve line numbers).
21092 if test "x$srcdir" = x.
; then
21093 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
21094 s/:*\$(srcdir):*/:/;
21095 s/:*\${srcdir}:*/:/;
21097 s/^\([^=]*=[ ]*\):*/\1/;
21103 DEFS
=-DHAVE_CONFIG_H
21107 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
21108 # 1. Remove the extension, and $U if already installed.
21109 ac_i
=`echo "$ac_i" |
21110 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
21112 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
21113 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
21115 LIBOBJS
=$ac_libobjs
21117 LTLIBOBJS
=$ac_ltlibobjs
21121 : ${CONFIG_STATUS=./config.status}
21122 ac_clean_files_save
=$ac_clean_files
21123 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
21124 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21125 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21126 cat >$CONFIG_STATUS <<_ACEOF
21128 # Generated by $as_me.
21129 # Run this file to recreate the current configuration.
21130 # Compiler output produced by configure, useful for debugging
21131 # configure, is in config.log if it exists.
21134 ac_cs_recheck=false
21136 SHELL=\${CONFIG_SHELL-$SHELL}
21139 cat >>$CONFIG_STATUS <<\_ACEOF
21140 ## --------------------- ##
21141 ## M4sh Initialization. ##
21142 ## --------------------- ##
21144 # Be Bourne compatible
21145 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
21148 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21149 # is contrary to our usage. Disable this feature.
21150 alias -g '${1+"$@"}'='"$@"'
21151 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
21154 DUALCASE
=1; export DUALCASE
# for MKS sh
21156 # Support unset when possible.
21157 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
21164 # Work around bugs in pre-3.0 UWIN ksh.
21165 $as_unset ENV MAIL MAILPATH
21172 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21173 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21174 LC_TELEPHONE LC_TIME
21176 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21177 eval $as_var=C
; export $as_var
21183 # Required to use basename.
21184 if expr a
: '\(a\)' >/dev
/null
2>&1; then
21190 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
21191 as_basename
=basename
21197 # Name of the executable.
21198 as_me
=`$as_basename "$0" ||
21199 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21200 X"$0" : 'X\(//\)$' \| \
21201 X"$0" : 'X\(/\)$' \| \
21202 . : '\(.\)' 2>/dev/null ||
21204 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
21205 /^X\/\(\/\/\)$/{ s//\1/; q; }
21206 /^X\/\(\/\).*/{ s//\1/; q; }
21210 # PATH needs CR, and LINENO needs CR and PATH.
21211 # Avoid depending upon Character Ranges.
21212 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
21213 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21214 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
21215 as_cr_digits
='0123456789'
21216 as_cr_alnum
=$as_cr_Letters$as_cr_digits
21218 # The user is always right.
21219 if test "${PATH_SEPARATOR+set}" != set; then
21220 echo "#! /bin/sh" >conf$$.sh
21221 echo "exit 0" >>conf$$.sh
21223 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
21232 as_lineno_1
=$LINENO
21233 as_lineno_2
=$LINENO
21234 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
21235 test "x$as_lineno_1" != "x$as_lineno_2" &&
21236 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
21237 # Find who we are. Look in the path if we contain no path at all
21240 *[\\/]* ) as_myself
=$0 ;;
21241 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21242 for as_dir
in $PATH
21245 test -z "$as_dir" && as_dir
=.
21246 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
21251 # We did not find ourselves, most probably we were run as `sh COMMAND'
21252 # in which case we are not to be found in the path.
21253 if test "x$as_myself" = x
; then
21256 if test ! -f "$as_myself"; then
21257 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
21258 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
21259 { (exit 1); exit 1; }; }
21261 case $CONFIG_SHELL in
21263 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21264 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
21267 test -z "$as_dir" && as_dir
=.
21268 for as_base
in sh bash ksh sh5
; do
21271 if ("$as_dir/$as_base" -c '
21272 as_lineno_1=$LINENO
21273 as_lineno_2=$LINENO
21274 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21275 test "x$as_lineno_1" != "x$as_lineno_2" &&
21276 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
21277 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
21278 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
21279 CONFIG_SHELL
=$as_dir/$as_base
21280 export CONFIG_SHELL
21281 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
21289 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21290 # uniformly replaced by the line number. The first 'sed' inserts a
21291 # line-number line before each line; the second 'sed' does the real
21292 # work. The second script uses 'N' to pair each line-number line
21293 # with the numbered line, and appends trailing '-' during
21294 # substitution so that $LINENO is not a special case at line end.
21295 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21296 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
21297 sed '=' <$as_myself |
21302 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
21305 s,^['$as_cr_digits']*\n,,
21306 ' >$as_me.lineno
&&
21307 chmod +x
$as_me.lineno ||
21308 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
21309 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
21310 { (exit 1); exit 1; }; }
21312 # Don't try to exec as it changes $[0], causing all sort of problems
21313 # (the dirname of $[0] is not the place where we might find the
21314 # original and so on. Autoconf is especially sensible to this).
21316 # Exit status is that of the last command.
21321 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
21322 *c
*,-n*) ECHO_N
= ECHO_C
='
21324 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
21325 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
21328 if expr a
: '\(a\)' >/dev
/null
2>&1; then
21334 rm -f conf$$ conf$$.exe conf$$.
file
21336 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
21337 # We could just check for DJGPP; but this test a) works b) is more generic
21338 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
21339 if test -f conf$$.exe
; then
21340 # Don't use ln at all; we don't have any links
21345 elif ln conf$$.
file conf$$
2>/dev
/null
; then
21350 rm -f conf$$ conf$$.exe conf$$.
file
21352 if mkdir
-p .
2>/dev
/null
; then
21355 test -d .
/-p && rmdir .
/-p
21359 as_executable_p
="test -f"
21361 # Sed expression to map a string onto a valid CPP name.
21362 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21364 # Sed expression to map a string onto a valid variable name.
21365 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21369 # We need space, tab and new line, in precisely that order.
21379 # Open the log real soon, to keep \$[0] and so on meaningful, and to
21380 # report actual input values of CONFIG_FILES etc. instead of their
21381 # values after options handling. Logging --version etc. is OK.
21385 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21386 ## Running $as_me. ##
21391 This file was extended by $as_me, which was
21392 generated by GNU Autoconf 2.59. Invocation command line was
21394 CONFIG_FILES = $CONFIG_FILES
21395 CONFIG_HEADERS = $CONFIG_HEADERS
21396 CONFIG_LINKS = $CONFIG_LINKS
21397 CONFIG_COMMANDS = $CONFIG_COMMANDS
21401 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
21405 # Files that config.status was made for.
21406 if test -n "$ac_config_files"; then
21407 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
21410 if test -n "$ac_config_headers"; then
21411 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
21414 if test -n "$ac_config_links"; then
21415 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
21418 if test -n "$ac_config_commands"; then
21419 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
21422 cat >>$CONFIG_STATUS <<\_ACEOF
21425 \`$as_me' instantiates files from templates according to the
21426 current configuration.
21428 Usage: $0 [OPTIONS] [FILE]...
21430 -h, --help print this help, then exit
21431 -V, --version print version number, then exit
21432 -q, --quiet do not print progress messages
21433 -d, --debug don't remove temporary files
21434 --recheck update $as_me by reconfiguring in the same conditions
21435 --file=FILE[:TEMPLATE]
21436 instantiate the configuration file FILE
21437 --header=FILE[:TEMPLATE]
21438 instantiate the configuration header FILE
21440 Configuration files:
21443 Configuration headers:
21446 Configuration commands:
21449 Report bugs to <bug-autoconf@gnu.org>."
21452 cat >>$CONFIG_STATUS <<_ACEOF
21455 configured by $0, generated by GNU Autoconf 2.59,
21456 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
21458 Copyright (C) 2003 Free Software Foundation, Inc.
21459 This config.status script is free software; the Free Software Foundation
21460 gives unlimited permission to copy, distribute and modify it."
21465 cat >>$CONFIG_STATUS <<\_ACEOF
21466 # If no file are specified by the user, then we need to provide default
21467 # value. By we need to know if files were specified by the user.
21473 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
21474 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
21482 *) # This is not an option, so the user has probably given explicit
21485 ac_need_defaults
=false
;;
21489 # Handling of the options.
21491 cat >>$CONFIG_STATUS <<\_ACEOF
21492 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
21494 --version |
--vers* |
-V )
21495 echo "$ac_cs_version"; exit 0 ;;
21497 # Conflict between --help and --header
21498 { { echo "$as_me:$LINENO: error: ambiguous option: $1
21499 Try \`$0 --help' for more information." >&5
21500 echo "$as_me: error: ambiguous option: $1
21501 Try \`$0 --help' for more information." >&2;}
21502 { (exit 1); exit 1; }; };;
21503 --help |
--hel |
-h )
21504 echo "$ac_cs_usage"; exit 0 ;;
21505 --debug |
--d* |
-d )
21507 --file |
--fil |
--fi |
--f )
21509 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
21510 ac_need_defaults
=false
;;
21511 --header |
--heade |
--head |
--hea )
21513 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
21514 ac_need_defaults
=false
;;
21515 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
21516 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
21519 # This is an error.
21520 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
21521 Try \`$0 --help' for more information." >&5
21522 echo "$as_me: error: unrecognized option: $1
21523 Try \`$0 --help' for more information." >&2;}
21524 { (exit 1); exit 1; }; } ;;
21526 *) ac_config_targets
="$ac_config_targets $1" ;;
21532 ac_configure_extra_args
=
21534 if $ac_cs_silent; then
21536 ac_configure_extra_args
="$ac_configure_extra_args --silent"
21540 cat >>$CONFIG_STATUS <<_ACEOF
21541 if \$ac_cs_recheck; then
21542 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21543 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21548 cat >>$CONFIG_STATUS <<_ACEOF
21550 # INIT-COMMANDS section.
21553 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
21559 cat >>$CONFIG_STATUS <<\_ACEOF
21560 for ac_config_target
in $ac_config_targets
21562 case "$ac_config_target" in
21563 # Handling of arguments.
21564 "Makefile" ) CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
21565 "lib-src/Makefile.c" ) CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
21566 "oldXMenu/Makefile" ) CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
21567 "man/Makefile" ) CONFIG_FILES
="$CONFIG_FILES man/Makefile" ;;
21568 "lwlib/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
21569 "src/Makefile.c" ) CONFIG_FILES
="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
21570 "lisp/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
21571 "lispref/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lispref/Makefile" ;;
21572 "lispintro/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lispintro/Makefile" ;;
21573 "leim/Makefile" ) CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
21574 "default" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
21575 "src/config.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
21576 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21577 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21578 { (exit 1); exit 1; }; };;
21582 # If the user did not use the arguments to specify the items to instantiate,
21583 # then the envvar interface is used. Set only those that are not.
21584 # We use the long form for the default assignment because of an extremely
21585 # bizarre bug on SunOS 4.1.3.
21586 if $ac_need_defaults; then
21587 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
21588 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
21589 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
21592 # Have a temporary directory for convenience. Make it in the build tree
21593 # simply because there is no reason to put it here, and in addition,
21594 # creating and moving files from /tmp can sometimes cause problems.
21595 # Create a temporary directory, and hook for its removal unless debugging.
21598 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
21599 trap '{ (exit 1); exit 1; }' 1 2 13 15
21602 # Create a (secure) tmp directory for tmp files.
21605 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
21606 test -n "$tmp" && test -d "$tmp"
21609 tmp
=.
/confstat$$
-$RANDOM
21610 (umask 077 && mkdir
$tmp)
21613 echo "$me: cannot create a temporary directory in ." >&2
21614 { (exit 1); exit 1; }
21619 cat >>$CONFIG_STATUS <<_ACEOF
21622 # CONFIG_FILES section.
21625 # No need to generate the scripts if there are no CONFIG_FILES.
21626 # This happens for instance when ./config.status config.h
21627 if test -n "\$CONFIG_FILES"; then
21628 # Protect against being on the right side of a sed subst in config.status.
21629 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
21630 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
21631 s,@SHELL@,$SHELL,;t t
21632 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
21633 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
21634 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
21635 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
21636 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
21637 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
21638 s,@exec_prefix@,$exec_prefix,;t t
21639 s,@prefix@,$prefix,;t t
21640 s,@program_transform_name@,$program_transform_name,;t t
21641 s,@bindir@,$bindir,;t t
21642 s,@sbindir@,$sbindir,;t t
21643 s,@libexecdir@,$libexecdir,;t t
21644 s,@datadir@,$datadir,;t t
21645 s,@sysconfdir@,$sysconfdir,;t t
21646 s,@sharedstatedir@,$sharedstatedir,;t t
21647 s,@localstatedir@,$localstatedir,;t t
21648 s,@libdir@,$libdir,;t t
21649 s,@includedir@,$includedir,;t t
21650 s,@oldincludedir@,$oldincludedir,;t t
21651 s,@infodir@,$infodir,;t t
21652 s,@mandir@,$mandir,;t t
21653 s,@build_alias@,$build_alias,;t t
21654 s,@host_alias@,$host_alias,;t t
21655 s,@target_alias@,$target_alias,;t t
21656 s,@DEFS@,$DEFS,;t t
21657 s,@ECHO_C@,$ECHO_C,;t t
21658 s,@ECHO_N@,$ECHO_N,;t t
21659 s,@ECHO_T@,$ECHO_T,;t t
21660 s,@LIBS@,$LIBS,;t t
21661 s,@MAINT@,$MAINT,;t t
21662 s,@build@,$build,;t t
21663 s,@build_cpu@,$build_cpu,;t t
21664 s,@build_vendor@,$build_vendor,;t t
21665 s,@build_os@,$build_os,;t t
21666 s,@host@,$host,;t t
21667 s,@host_cpu@,$host_cpu,;t t
21668 s,@host_vendor@,$host_vendor,;t t
21669 s,@host_os@,$host_os,;t t
21671 s,@CFLAGS@,$CFLAGS,;t t
21672 s,@LDFLAGS@,$LDFLAGS,;t t
21673 s,@CPPFLAGS@,$CPPFLAGS,;t t
21674 s,@ac_ct_CC@,$ac_ct_CC,;t t
21675 s,@EXEEXT@,$EXEEXT,;t t
21676 s,@OBJEXT@,$OBJEXT,;t t
21677 s,@LN_S@,$LN_S,;t t
21679 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
21680 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
21681 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
21682 s,@RANLIB@,$RANLIB,;t t
21683 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
21684 s,@INSTALL_INFO@,$INSTALL_INFO,;t t
21685 s,@EGREP@,$EGREP,;t t
21686 s,@LIBSOUND@,$LIBSOUND,;t t
21687 s,@SET_MAKE@,$SET_MAKE,;t t
21688 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
21689 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
21690 s,@GTK_LIBS@,$GTK_LIBS,;t t
21691 s,@ALLOCA@,$ALLOCA,;t t
21692 s,@liblockfile@,$liblockfile,;t t
21693 s,@LIBOBJS@,$LIBOBJS,;t t
21694 s,@NEED_SETGID@,$NEED_SETGID,;t t
21695 s,@KMEM_GROUP@,$KMEM_GROUP,;t t
21696 s,@GETLOADAVG_LIBS@,$GETLOADAVG_LIBS,;t t
21697 s,@version@,$version,;t t
21698 s,@configuration@,$configuration,;t t
21699 s,@canonical@,$canonical,;t t
21700 s,@srcdir@,$srcdir,;t t
21701 s,@lispdir@,$lispdir,;t t
21702 s,@locallisppath@,$locallisppath,;t t
21703 s,@lisppath@,$lisppath,;t t
21704 s,@x_default_search_path@,$x_default_search_path,;t t
21705 s,@etcdir@,$etcdir,;t t
21706 s,@archlibdir@,$archlibdir,;t t
21707 s,@docdir@,$docdir,;t t
21708 s,@bitmapdir@,$bitmapdir,;t t
21709 s,@gamedir@,$gamedir,;t t
21710 s,@gameuser@,$gameuser,;t t
21711 s,@c_switch_system@,$c_switch_system,;t t
21712 s,@c_switch_machine@,$c_switch_machine,;t t
21713 s,@LD_SWITCH_X_SITE@,$LD_SWITCH_X_SITE,;t t
21714 s,@LD_SWITCH_X_SITE_AUX@,$LD_SWITCH_X_SITE_AUX,;t t
21715 s,@C_SWITCH_X_SITE@,$C_SWITCH_X_SITE,;t t
21716 s,@X_TOOLKIT_TYPE@,$X_TOOLKIT_TYPE,;t t
21717 s,@machfile@,$machfile,;t t
21718 s,@opsysfile@,$opsysfile,;t t
21719 s,@carbon_appdir@,$carbon_appdir,;t t
21720 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
21725 cat >>$CONFIG_STATUS <<\_ACEOF
21726 # Split the substitutions into bite-sized pieces for seds with
21727 # small command number limits, like on Digital OSF/1 and HP-UX.
21728 ac_max_sed_lines
=48
21729 ac_sed_frag
=1 # Number of current file.
21730 ac_beg
=1 # First line for current file.
21731 ac_end
=$ac_max_sed_lines # Line after last line for current file.
21734 while $ac_more_lines; do
21735 if test $ac_beg -gt 1; then
21736 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
21738 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
21740 if test ! -s $tmp/subs.frag
; then
21741 ac_more_lines
=false
21743 # The purpose of the label and of the branching condition is to
21744 # speed up the sed processing (if there are no `@' at all, there
21745 # is no need to browse any of the substitutions).
21746 # These are the two extra sed commands mentioned above.
21748 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
21749 if test -z "$ac_sed_cmds"; then
21750 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
21752 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
21754 ac_sed_frag
=`expr $ac_sed_frag + 1`
21756 ac_end
=`expr $ac_end + $ac_max_sed_lines`
21759 if test -z "$ac_sed_cmds"; then
21762 fi # test -n "$CONFIG_FILES"
21765 cat >>$CONFIG_STATUS <<\_ACEOF
21766 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
21767 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21769 - |
*:- |
*:-:* ) # input from stdin
21771 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
21772 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
21773 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
21774 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
21775 * ) ac_file_in
=$ac_file.
in ;;
21778 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
21779 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
21780 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21781 X"$ac_file" : 'X\(//\)[^/]' \| \
21782 X"$ac_file" : 'X\(//\)$' \| \
21783 X"$ac_file" : 'X\(/\)' \| \
21784 . : '\(.\)' 2>/dev/null ||
21786 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21787 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21788 /^X\(\/\/\)$/{ s//\1/; q; }
21789 /^X\(\/\).*/{ s//\1/; q; }
21791 { if $as_mkdir_p; then
21796 while test ! -d "$as_dir"; do
21797 as_dirs
="$as_dir $as_dirs"
21798 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
21799 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21800 X"$as_dir" : 'X\(//\)[^/]' \| \
21801 X"$as_dir" : 'X\(//\)$' \| \
21802 X"$as_dir" : 'X\(/\)' \| \
21803 . : '\(.\)' 2>/dev/null ||
21805 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21806 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21807 /^X\(\/\/\)$/{ s//\1/; q; }
21808 /^X\(\/\).*/{ s//\1/; q; }
21811 test ! -n "$as_dirs" || mkdir
$as_dirs
21812 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21813 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21814 { (exit 1); exit 1; }; }; }
21818 if test "$ac_dir" != .
; then
21819 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21820 # A "../" for each directory in $ac_dir_suffix.
21821 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21823 ac_dir_suffix
= ac_top_builddir
=
21827 .
) # No --srcdir option. We are building in place.
21829 if test -z "$ac_top_builddir"; then
21832 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
21834 [\\/]* | ?
:[\\/]* ) # Absolute path.
21835 ac_srcdir
=$srcdir$ac_dir_suffix;
21836 ac_top_srcdir
=$srcdir ;;
21837 *) # Relative path.
21838 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
21839 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
21842 # Do not use `cd foo && pwd` to compute absolute paths, because
21843 # the directories may not exist.
21845 .
) ac_abs_builddir
="$ac_dir";;
21848 .
) ac_abs_builddir
=`pwd`;;
21849 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
21850 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
21853 case $ac_abs_builddir in
21854 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
21856 case ${ac_top_builddir}.
in
21857 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
21858 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
21859 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
21862 case $ac_abs_builddir in
21863 .
) ac_abs_srcdir
=$ac_srcdir;;
21866 .
) ac_abs_srcdir
=$ac_abs_builddir;;
21867 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
21868 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
21871 case $ac_abs_builddir in
21872 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
21874 case $ac_top_srcdir in
21875 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
21876 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
21877 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
21883 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
21884 *) ac_INSTALL
=$ac_top_builddir$INSTALL ;;
21887 if test x
"$ac_file" != x-
; then
21888 { echo "$as_me:$LINENO: creating $ac_file" >&5
21889 echo "$as_me: creating $ac_file" >&6;}
21892 # Let's still pretend it is `configure' which instantiates (i.e., don't
21893 # use $as_me), people would be surprised to read:
21894 # /* config.h. Generated by config.status. */
21895 if test x
"$ac_file" = x-
; then
21898 configure_input
="$ac_file. "
21900 configure_input
=$configure_input"Generated from `echo $ac_file_in |
21901 sed 's,.*/,,'` by configure."
21903 # First look for the input files in the build tree, otherwise in the
21905 ac_file_inputs
=`IFS=:
21906 for f in $ac_file_in; do
21908 -) echo $tmp/stdin ;;
21910 # Absolute (can't be DOS-style, as IFS=:)
21911 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21912 echo "$as_me: error: cannot find input file: $f" >&2;}
21913 { (exit 1); exit 1; }; }
21916 if test -f "$f"; then
21919 elif test -f "$srcdir/$f"; then
21924 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21925 echo "$as_me: error: cannot find input file: $f" >&2;}
21926 { (exit 1); exit 1; }; }
21929 done` ||
{ (exit 1); exit 1; }
21931 cat >>$CONFIG_STATUS <<_ACEOF
21935 cat >>$CONFIG_STATUS <<\_ACEOF
21937 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
21938 s
,@configure_input@
,$configure_input,;t t
21939 s
,@srcdir@
,$ac_srcdir,;t t
21940 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
21941 s
,@top_srcdir@
,$ac_top_srcdir,;t t
21942 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
21943 s
,@builddir@
,$ac_builddir,;t t
21944 s
,@abs_builddir@
,$ac_abs_builddir,;t t
21945 s
,@top_builddir@
,$ac_top_builddir,;t t
21946 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
21947 s
,@INSTALL@
,$ac_INSTALL,;t t
21948 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
21950 if test x"$ac_file" != x-; then
21951 mv $tmp/out $ac_file
21959 cat >>$CONFIG_STATUS <<\_ACEOF
21962 # CONFIG_HEADER section.
21965 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
21966 # NAME is the cpp macro being defined and VALUE is the value it is being given.
21968 # ac_d sets the value in "#define NAME VALUE" lines.
21969 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
21970 ac_dB
='[ ].*$,\1#\2'
21973 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
21974 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
21975 ac_uB
='$,\1#\2define\3'
21979 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
21980 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21982 - |
*:- |
*:-:* ) # input from stdin
21984 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
21985 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
21986 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
21987 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
21988 * ) ac_file_in
=$ac_file.
in ;;
21991 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
21992 echo "$as_me: creating $ac_file" >&6;}
21994 # First look for the input files in the build tree, otherwise in the
21996 ac_file_inputs
=`IFS=:
21997 for f in $ac_file_in; do
21999 -) echo $tmp/stdin ;;
22001 # Absolute (can't be DOS-style, as IFS=:)
22002 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22003 echo "$as_me: error: cannot find input file: $f" >&2;}
22004 { (exit 1); exit 1; }; }
22005 # Do quote $f, to prevent DOS paths from being IFS'd.
22008 if test -f "$f"; then
22011 elif test -f "$srcdir/$f"; then
22016 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22017 echo "$as_me: error: cannot find input file: $f" >&2;}
22018 { (exit 1); exit 1; }; }
22021 done` ||
{ (exit 1); exit 1; }
22022 # Remove the trailing spaces.
22023 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
22027 # Transform confdefs.h into two sed scripts, `conftest.defines' and
22028 # `conftest.undefs', that substitutes the proper values into
22029 # config.h.in to produce config.h. The first handles `#define'
22030 # templates, and the second `#undef' templates.
22031 # And first: Protect against being on the right side of a sed subst in
22032 # config.status. Protect against being in an unquoted here document
22033 # in config.status.
22034 rm -f conftest.defines conftest.undefs
22035 # Using a here document instead of a string reduces the quoting nightmare.
22036 # Putting comments in sed scripts is not portable.
22038 # `end' is used to avoid that the second main sed command (meant for
22039 # 0-ary CPP macros) applies to n-ary macro definitions.
22040 # See the Autoconf documentation for `clear'.
22041 cat >confdef2sed.
sed <<\_ACEOF
22046 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
22048 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
22051 # If some macros were called several times there might be several times
22052 # the same #defines, which is useless. Nevertheless, we may not want to
22053 # sort them, since we want the *last* AC-DEFINE to be honored.
22054 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
22055 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
22056 rm -f confdef2sed.sed
22058 # This sed command replaces #undef with comments. This is necessary, for
22059 # example, in the case of _POSIX_SOURCE, which is predefined and required
22060 # on some systems where configure will not decide to define it.
22061 cat >>conftest.undefs <<\_ACEOF
22062 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
22065 # Break up conftest.defines because some shells have a limit on the size
22066 # of here documents, and old seds have small limits too (100 cmds).
22067 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
22068 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
22069 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
22070 echo ' :' >>$CONFIG_STATUS
22071 rm -f conftest.tail
22072 while grep . conftest.defines >/dev/null
22074 # Write a limited-size here document to $tmp/defines.sed.
22075 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
22076 # Speed up: don't consider the non `#define' lines.
22077 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
22078 # Work around the forget-to-reset-the-flag bug.
22079 echo 't clr' >>$CONFIG_STATUS
22080 echo ': clr' >>$CONFIG_STATUS
22081 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
22083 sed -f $tmp/defines.sed $tmp/in >$tmp/out
22085 mv $tmp/out $tmp/in
22087 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
22088 rm -f conftest.defines
22089 mv conftest.
tail conftest.defines
22091 rm -f conftest.defines
22092 echo ' fi # grep' >>$CONFIG_STATUS
22093 echo >>$CONFIG_STATUS
22095 # Break up conftest.undefs because some shells have a limit on the size
22096 # of here documents, and old seds have small limits too (100 cmds).
22097 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
22098 rm -f conftest.
tail
22099 while grep . conftest.undefs
>/dev
/null
22101 # Write a limited-size here document to $tmp/undefs.sed.
22102 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
22103 # Speed up: don't consider the non
`#undef'
22104 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
22105 # Work around the forget-to-reset-the-flag bug.
22106 echo 't clr' >>$CONFIG_STATUS
22107 echo ': clr' >>$CONFIG_STATUS
22108 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
22110 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
22112 mv $tmp/out $tmp/in
22114 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
22115 rm -f conftest.undefs
22116 mv conftest.tail conftest.undefs
22118 rm -f conftest.undefs
22120 cat >>$CONFIG_STATUS <<\_ACEOF
22121 # Let's still pretend it is `configure
' which instantiates (i.e., don't
22122 # use $as_me), people would be surprised to read:
22123 # /* config.h. Generated by config.status. */
22124 if test x
"$ac_file" = x-
; then
22125 echo "/* Generated by configure. */" >$tmp/config.h
22127 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
22129 cat $tmp/in >>$tmp/config.h
22131 if test x
"$ac_file" != x-
; then
22132 if diff $ac_file $tmp/config.h
>/dev
/null
2>&1; then
22133 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22134 echo "$as_me: $ac_file is unchanged" >&6;}
22136 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
22137 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22138 X"$ac_file" : 'X\(//\)[^/]' \| \
22139 X"$ac_file" : 'X\(//\)$' \| \
22140 X"$ac_file" : 'X\(/\)' \| \
22141 . : '\(.\)' 2>/dev/null ||
22143 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22144 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22145 /^X\(\/\/\)$/{ s//\1/; q; }
22146 /^X\(\/\).*/{ s//\1/; q; }
22148 { if $as_mkdir_p; then
22153 while test ! -d "$as_dir"; do
22154 as_dirs
="$as_dir $as_dirs"
22155 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
22156 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22157 X"$as_dir" : 'X\(//\)[^/]' \| \
22158 X"$as_dir" : 'X\(//\)$' \| \
22159 X"$as_dir" : 'X\(/\)' \| \
22160 . : '\(.\)' 2>/dev/null ||
22162 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22163 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22164 /^X\(\/\/\)$/{ s//\1/; q; }
22165 /^X\(\/\).*/{ s//\1/; q; }
22168 test ! -n "$as_dirs" || mkdir
$as_dirs
22169 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22170 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22171 { (exit 1); exit 1; }; }; }
22174 mv $tmp/config.h
$ac_file
22178 rm -f $tmp/config.h
22182 cat >>$CONFIG_STATUS <<\_ACEOF
22185 # CONFIG_COMMANDS section.
22187 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
22188 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
22189 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
22190 ac_dir
=`(dirname "$ac_dest") 2>/dev/null ||
22191 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22192 X"$ac_dest" : 'X\(//\)[^/]' \| \
22193 X"$ac_dest" : 'X\(//\)$' \| \
22194 X"$ac_dest" : 'X\(/\)' \| \
22195 . : '\(.\)' 2>/dev/null ||
22197 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22198 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22199 /^X\(\/\/\)$/{ s//\1/; q; }
22200 /^X\(\/\).*/{ s//\1/; q; }
22202 { if $as_mkdir_p; then
22207 while test ! -d "$as_dir"; do
22208 as_dirs
="$as_dir $as_dirs"
22209 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
22210 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22211 X"$as_dir" : 'X\(//\)[^/]' \| \
22212 X"$as_dir" : 'X\(//\)$' \| \
22213 X"$as_dir" : 'X\(/\)' \| \
22214 . : '\(.\)' 2>/dev/null ||
22216 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22217 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22218 /^X\(\/\/\)$/{ s//\1/; q; }
22219 /^X\(\/\).*/{ s//\1/; q; }
22222 test ! -n "$as_dirs" || mkdir
$as_dirs
22223 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22224 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22225 { (exit 1); exit 1; }; }; }
22229 if test "$ac_dir" != .
; then
22230 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22231 # A "../" for each directory in $ac_dir_suffix.
22232 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22234 ac_dir_suffix
= ac_top_builddir
=
22238 .
) # No --srcdir option. We are building in place.
22240 if test -z "$ac_top_builddir"; then
22243 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
22245 [\\/]* | ?
:[\\/]* ) # Absolute path.
22246 ac_srcdir
=$srcdir$ac_dir_suffix;
22247 ac_top_srcdir
=$srcdir ;;
22248 *) # Relative path.
22249 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
22250 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
22253 # Do not use `cd foo && pwd` to compute absolute paths, because
22254 # the directories may not exist.
22256 .
) ac_abs_builddir
="$ac_dir";;
22259 .
) ac_abs_builddir
=`pwd`;;
22260 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
22261 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
22264 case $ac_abs_builddir in
22265 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
22267 case ${ac_top_builddir}.
in
22268 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
22269 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
22270 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
22273 case $ac_abs_builddir in
22274 .
) ac_abs_srcdir
=$ac_srcdir;;
22277 .
) ac_abs_srcdir
=$ac_abs_builddir;;
22278 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
22279 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
22282 case $ac_abs_builddir in
22283 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
22285 case $ac_top_srcdir in
22286 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
22287 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
22288 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
22293 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
22294 echo "$as_me: executing $ac_dest commands" >&6;}
22298 ### Make the necessary directories, if they don't exist.
22299 for dir
in etc lisp
; do
22300 test -d ${dir} || mkdir
${dir}
22303 # Build src/Makefile from ${srcdir}/src/Makefile.c
22304 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
22305 # This must be done after src/config.h is built, since we rely on that file.
22307 # Now get this: Some word that is part of the ${srcdir} directory name
22308 # or the ${configuration} value might, just might, happen to be an
22309 # identifier like `sun4' or `i386' or something, and be predefined by
22310 # the C preprocessor to some helpful value like 1, or maybe the empty
22311 # string. Needless to say consequent macro substitutions are less
22312 # than conducive to the makefile finding the correct directory.
22313 undefs
="`echo $top_srcdir $configuration $canonical |
22314 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
22315 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
22318 echo creating src
/epaths.h
22319 ${MAKE-make} epaths-force
22321 # As of 2000-11-19, newest development versions of GNU cpp preprocess
22322 # `..' to `. .' unless invoked with -traditional
22324 if test "x$GCC" = xyes
&& test "x$CPP_NEED_TRADITIONAL" = xyes
; then
22325 CPPFLAGS
="$CPPFLAGS -traditional"
22328 echo creating lib-src
/Makefile
22330 rm -f junk.c junk1.c junk2.c
22331 sed -e '/start of cpp stuff/q' \
22332 < Makefile.c
> junk1.c
22333 sed -e '1,/start of cpp stuff/d'\
22334 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
22335 < Makefile.c
> junk.c
22336 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
22337 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
22338 cat junk1.c junk2.c
> Makefile.new
22339 rm -f junk.c junk1.c junk2.c
22340 chmod 444 Makefile.new
22341 mv -f Makefile.new Makefile
22344 echo creating src
/Makefile
22346 rm -f junk.c junk1.c junk2.c
22347 sed -e '/start of cpp stuff/q' \
22348 < Makefile.c
> junk1.c
22349 sed -e '1,/start of cpp stuff/d'\
22350 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
22351 < Makefile.c
> junk.c
22352 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
22353 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
22354 cat junk1.c junk2.c
> Makefile.new
22355 rm -f junk.c junk1.c junk2.c
22356 chmod 444 Makefile.new
22357 mv -f Makefile.new Makefile
22360 if test ! -f src
/.gdbinit
&& test -f $srcdir/src
/.gdbinit
; then
22361 echo creating src
/.gdbinit
22362 echo source $srcdir/src
/.gdbinit
> src
/.gdbinit
22365 # This is how we know whether to re-run configure in certain cases.
22366 touch src
/config.stamp
22373 cat >>$CONFIG_STATUS <<\_ACEOF
22375 { (exit 0); exit 0; }
22377 chmod +x
$CONFIG_STATUS
22378 ac_clean_files
=$ac_clean_files_save
22381 # configure is writing to config.log, and then calls config.status.
22382 # config.status does its own redirection, appending to config.log.
22383 # Unfortunately, on DOS this fails, as config.log is still kept open
22384 # by configure, so config.status won't be able to write to it; its
22385 # output is simply discarded. So we exec the FD to /dev/null,
22386 # effectively closing config.log, so it can be properly (re)opened and
22387 # appended to by config.status. When coming back to configure, we
22388 # need to make the FD available again.
22389 if test "$no_create" != yes; then
22391 ac_config_status_args
=
22392 test "$silent" = yes &&
22393 ac_config_status_args
="$ac_config_status_args --quiet"
22395 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
22397 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22398 # would make configure fail if this is the last instruction.
22399 $ac_cs_success ||
{ (exit 1); exit 1; }