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 SETARCH SET_MAKE PKG_CONFIG GTK_CFLAGS GTK_LIBS ALLOCA liblockfile LIBOBJS NEED_SETGID KMEM_GROUP GETLOADAVG_LIBS version configuration canonical srcdir lispdir locallisppath lisppath x_default_search_path etcdir archlibdir docdir bitmapdir gamedir gameuser c_switch_system c_switch_machine LD_SWITCH_X_SITE LD_SWITCH_X_SITE_AUX C_SWITCH_X_SITE X_TOOLKIT_TYPE machfile opsysfile carbon_appdir LTLIBOBJS'
316 # Initialize some variables set by options.
318 ac_init_version
=false
319 # The variables have the same names as the options, with
320 # dashes changed to underlines.
328 program_transform_name
=s
,x
,x
,
336 # Installation directory options.
337 # These are left unexpanded so users can "make install exec_prefix=/foo"
338 # and all the variables that are supposed to be based on exec_prefix
339 # by default will actually change.
340 # Use braces instead of parens because sh, perl, etc. also accept them.
341 bindir
='${exec_prefix}/bin'
342 sbindir
='${exec_prefix}/sbin'
343 libexecdir
='${exec_prefix}/libexec'
344 datadir
='${prefix}/share'
345 sysconfdir
='${prefix}/etc'
346 sharedstatedir
='${prefix}/com'
347 localstatedir
='${prefix}/var'
348 libdir
='${exec_prefix}/lib'
349 includedir
='${prefix}/include'
350 oldincludedir
='/usr/include'
351 infodir
='${prefix}/info'
352 mandir
='${prefix}/man'
357 # If the previous option needs an argument, assign it.
358 if test -n "$ac_prev"; then
359 eval "$ac_prev=\$ac_option"
364 ac_optarg
=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
366 # Accept the important Cygnus configure options, so we can diagnose typos.
370 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
372 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
375 -build |
--build |
--buil |
--bui |
--bu)
376 ac_prev
=build_alias
;;
377 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
378 build_alias
=$ac_optarg ;;
380 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
381 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
382 ac_prev
=cache_file
;;
383 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
384 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
385 cache_file
=$ac_optarg ;;
388 cache_file
=config.cache
;;
390 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
392 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
394 datadir
=$ac_optarg ;;
396 -disable-* |
--disable-*)
397 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
398 # Reject names that are not valid shell variable names.
399 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
400 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
401 { (exit 1); exit 1; }; }
402 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
403 eval "enable_$ac_feature=no" ;;
405 -enable-* |
--enable-*)
406 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
407 # Reject names that are not valid shell variable names.
408 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
409 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
410 { (exit 1); exit 1; }; }
411 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
413 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
416 eval "enable_$ac_feature='$ac_optarg'" ;;
418 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
419 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
420 |
--exec |
--exe |
--ex)
421 ac_prev
=exec_prefix
;;
422 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
423 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
424 |
--exec=* |
--exe=* |
--ex=*)
425 exec_prefix
=$ac_optarg ;;
427 -gas |
--gas |
--ga |
--g)
428 # Obsolete; use --with-gas.
431 -help |
--help |
--hel |
--he |
-h)
433 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
434 ac_init_help
=recursive
;;
435 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
436 ac_init_help
=short
;;
438 -host |
--host |
--hos |
--ho)
439 ac_prev
=host_alias
;;
440 -host=* |
--host=* |
--hos=* |
--ho=*)
441 host_alias
=$ac_optarg ;;
443 -includedir |
--includedir |
--includedi |
--included |
--include \
444 |
--includ |
--inclu |
--incl |
--inc)
445 ac_prev
=includedir
;;
446 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
447 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
448 includedir
=$ac_optarg ;;
450 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
452 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
453 infodir
=$ac_optarg ;;
455 -libdir |
--libdir |
--libdi |
--libd)
457 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
460 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
461 |
--libexe |
--libex |
--libe)
462 ac_prev
=libexecdir
;;
463 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
464 |
--libexe=* |
--libex=* |
--libe=*)
465 libexecdir
=$ac_optarg ;;
467 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
468 |
--localstate |
--localstat |
--localsta |
--localst \
469 |
--locals |
--local |
--loca |
--loc |
--lo)
470 ac_prev
=localstatedir
;;
471 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
472 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
473 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
474 localstatedir
=$ac_optarg ;;
476 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
478 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
482 # Obsolete; use --without-fp.
485 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
486 |
--no-cr |
--no-c |
-n)
489 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
490 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
493 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
494 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
495 |
--oldin |
--oldi |
--old |
--ol |
--o)
496 ac_prev
=oldincludedir
;;
497 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
498 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
499 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
500 oldincludedir
=$ac_optarg ;;
502 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
504 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
507 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
508 |
--program-pre |
--program-pr |
--program-p)
509 ac_prev
=program_prefix
;;
510 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
511 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
512 program_prefix
=$ac_optarg ;;
514 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
515 |
--program-suf |
--program-su |
--program-s)
516 ac_prev
=program_suffix
;;
517 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
518 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
519 program_suffix
=$ac_optarg ;;
521 -program-transform-name |
--program-transform-name \
522 |
--program-transform-nam |
--program-transform-na \
523 |
--program-transform-n |
--program-transform- \
524 |
--program-transform |
--program-transfor \
525 |
--program-transfo |
--program-transf \
526 |
--program-trans |
--program-tran \
527 |
--progr-tra |
--program-tr |
--program-t)
528 ac_prev
=program_transform_name
;;
529 -program-transform-name=* |
--program-transform-name=* \
530 |
--program-transform-nam=* |
--program-transform-na=* \
531 |
--program-transform-n=* |
--program-transform-=* \
532 |
--program-transform=* |
--program-transfor=* \
533 |
--program-transfo=* |
--program-transf=* \
534 |
--program-trans=* |
--program-tran=* \
535 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
536 program_transform_name
=$ac_optarg ;;
538 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
539 |
-silent |
--silent |
--silen |
--sile |
--sil)
542 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
544 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
546 sbindir
=$ac_optarg ;;
548 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
549 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
550 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
552 ac_prev
=sharedstatedir
;;
553 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
554 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
555 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
557 sharedstatedir
=$ac_optarg ;;
559 -site |
--site |
--sit)
561 -site=* |
--site=* |
--sit=*)
564 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
566 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
569 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
570 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
571 ac_prev
=sysconfdir
;;
572 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
573 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
574 sysconfdir
=$ac_optarg ;;
576 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
577 ac_prev
=target_alias
;;
578 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
579 target_alias
=$ac_optarg ;;
581 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
584 -version |
--version |
--versio |
--versi |
--vers |
-V)
588 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
589 # Reject names that are not valid shell variable names.
590 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
591 { echo "$as_me: error: invalid package name: $ac_package" >&2
592 { (exit 1); exit 1; }; }
593 ac_package
=`echo $ac_package| sed 's/-/_/g'`
595 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
598 eval "with_$ac_package='$ac_optarg'" ;;
600 -without-* |
--without-*)
601 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
602 # Reject names that are not valid shell variable names.
603 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
604 { echo "$as_me: error: invalid package name: $ac_package" >&2
605 { (exit 1); exit 1; }; }
606 ac_package
=`echo $ac_package | sed 's/-/_/g'`
607 eval "with_$ac_package=no" ;;
610 # Obsolete; use --with-x.
613 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
614 |
--x-incl |
--x-inc |
--x-in |
--x-i)
615 ac_prev
=x_includes
;;
616 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
617 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
618 x_includes
=$ac_optarg ;;
620 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
621 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
622 ac_prev
=x_libraries
;;
623 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
624 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
625 x_libraries
=$ac_optarg ;;
627 -*) { echo "$as_me: error: unrecognized option: $ac_option
628 Try \`$0 --help' for more information." >&2
629 { (exit 1); exit 1; }; }
633 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
634 # Reject names that are not valid shell variable names.
635 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
636 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
637 { (exit 1); exit 1; }; }
638 ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
639 eval "$ac_envvar='$ac_optarg'"
643 # FIXME: should be removed in autoconf 3.0.
644 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
645 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
646 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
647 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
653 if test -n "$ac_prev"; then
654 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
655 { echo "$as_me: error: missing argument to $ac_option" >&2
656 { (exit 1); exit 1; }; }
659 # Be sure to have absolute paths.
660 for ac_var
in exec_prefix prefix
662 eval ac_val
=$
`echo $ac_var`
664 [\\/$
]* | ?
:[\\/]* | NONE |
'' ) ;;
665 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
666 { (exit 1); exit 1; }; };;
670 # Be sure to have absolute paths.
671 for ac_var
in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
672 localstatedir libdir includedir oldincludedir infodir mandir
674 eval ac_val
=$
`echo $ac_var`
676 [\\/$
]* | ?
:[\\/]* ) ;;
677 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
678 { (exit 1); exit 1; }; };;
682 # There might be people who depend on the old broken behavior: `$host'
683 # used to hold the argument of --host etc.
684 # FIXME: To remove some day.
689 # FIXME: To remove some day.
690 if test "x$host_alias" != x
; then
691 if test "x$build_alias" = x
; then
692 cross_compiling
=maybe
693 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
694 If a cross compiler is detected then cross compile mode will be used." >&2
695 elif test "x$build_alias" != "x$host_alias"; then
701 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
703 test "$silent" = yes && exec 6>/dev
/null
706 # Find the source files, if location was not specified.
707 if test -z "$srcdir"; then
708 ac_srcdir_defaulted
=yes
709 # Try the directory containing this script, then its parent.
710 ac_confdir
=`(dirname "$0") 2>/dev/null ||
711 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
712 X"$0" : 'X\(//\)[^/]' \| \
713 X"$0" : 'X\(//\)$' \| \
714 X"$0" : 'X\(/\)' \| \
715 . : '\(.\)' 2>/dev/null ||
717 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
718 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
719 /^X\(\/\/\)$/{ s//\1/; q; }
720 /^X\(\/\).*/{ s//\1/; q; }
723 if test ! -r $srcdir/$ac_unique_file; then
727 ac_srcdir_defaulted
=no
729 if test ! -r $srcdir/$ac_unique_file; then
730 if test "$ac_srcdir_defaulted" = yes; then
731 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
732 { (exit 1); exit 1; }; }
734 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
735 { (exit 1); exit 1; }; }
738 (cd $srcdir && test -r .
/$ac_unique_file) 2>/dev
/null ||
739 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
740 { (exit 1); exit 1; }; }
741 srcdir
=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
742 ac_env_build_alias_set
=${build_alias+set}
743 ac_env_build_alias_value
=$build_alias
744 ac_cv_env_build_alias_set
=${build_alias+set}
745 ac_cv_env_build_alias_value
=$build_alias
746 ac_env_host_alias_set
=${host_alias+set}
747 ac_env_host_alias_value
=$host_alias
748 ac_cv_env_host_alias_set
=${host_alias+set}
749 ac_cv_env_host_alias_value
=$host_alias
750 ac_env_target_alias_set
=${target_alias+set}
751 ac_env_target_alias_value
=$target_alias
752 ac_cv_env_target_alias_set
=${target_alias+set}
753 ac_cv_env_target_alias_value
=$target_alias
754 ac_env_CC_set
=${CC+set}
756 ac_cv_env_CC_set
=${CC+set}
757 ac_cv_env_CC_value
=$CC
758 ac_env_CFLAGS_set
=${CFLAGS+set}
759 ac_env_CFLAGS_value
=$CFLAGS
760 ac_cv_env_CFLAGS_set
=${CFLAGS+set}
761 ac_cv_env_CFLAGS_value
=$CFLAGS
762 ac_env_LDFLAGS_set
=${LDFLAGS+set}
763 ac_env_LDFLAGS_value
=$LDFLAGS
764 ac_cv_env_LDFLAGS_set
=${LDFLAGS+set}
765 ac_cv_env_LDFLAGS_value
=$LDFLAGS
766 ac_env_CPPFLAGS_set
=${CPPFLAGS+set}
767 ac_env_CPPFLAGS_value
=$CPPFLAGS
768 ac_cv_env_CPPFLAGS_set
=${CPPFLAGS+set}
769 ac_cv_env_CPPFLAGS_value
=$CPPFLAGS
770 ac_env_CPP_set
=${CPP+set}
771 ac_env_CPP_value
=$CPP
772 ac_cv_env_CPP_set
=${CPP+set}
773 ac_cv_env_CPP_value
=$CPP
776 # Report the --help message.
778 if test "$ac_init_help" = "long"; then
779 # Omit some internal or obsolete options to make the list less imposing.
780 # This message is too long to be a string in the A/UX 3.1 sh.
782 \`configure' configures this package to adapt to many kinds of systems.
784 Usage: $0 [OPTION]... [VAR=VALUE]...
786 To assign environment variables (e.g., CC, CFLAGS...), specify them as
787 VAR=VALUE. See below for descriptions of some of the useful variables.
789 Defaults for the options are specified in brackets.
792 -h, --help display this help and exit
793 --help=short display options specific to this package
794 --help=recursive display the short help of all the included packages
795 -V, --version display version information and exit
796 -q, --quiet, --silent do not print \`checking...' messages
797 --cache-file=FILE cache test results in FILE [disabled]
798 -C, --config-cache alias for \`--cache-file=config.cache'
799 -n, --no-create do not create output files
800 --srcdir=DIR find the sources in DIR [configure dir or \`..']
805 Installation directories:
806 --prefix=PREFIX install architecture-independent files in PREFIX
808 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
811 By default, \`make install' will install all the files in
812 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
813 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
814 for instance \`--prefix=\$HOME'.
816 For better control, use the options below.
818 Fine tuning of the installation directories:
819 --bindir=DIR user executables [EPREFIX/bin]
820 --sbindir=DIR system admin executables [EPREFIX/sbin]
821 --libexecdir=DIR program executables [EPREFIX/libexec]
822 --datadir=DIR read-only architecture-independent data [PREFIX/share]
823 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
824 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
825 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
826 --libdir=DIR object code libraries [EPREFIX/lib]
827 --includedir=DIR C header files [PREFIX/include]
828 --oldincludedir=DIR C header files for non-gcc [/usr/include]
829 --infodir=DIR info documentation [PREFIX/info]
830 --mandir=DIR man documentation [PREFIX/man]
836 --program-prefix=PREFIX prepend PREFIX to installed program names
837 --program-suffix=SUFFIX append SUFFIX to installed program names
838 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
841 --x-includes=DIR X include files are
in DIR
842 --x-libraries=DIR X library files are
in DIR
845 --build=BUILD configure
for building on BUILD
[guessed
]
846 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
850 if test -n "$ac_init_help"; then
855 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
856 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
857 --enable-carbon-app[=DIR
] [DIR
=/Application
]
858 specify
install directory
for Emacs.app on Mac OS X
859 --enable-maintainer-mode enable make rules and dependencies not useful
860 (and sometimes confusing
) to the casual installer
861 --disable-largefile omit support
for large files
864 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
865 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
866 --without-gcc don
't use GCC to compile Emacs if GCC is found
867 --without-pop don't support POP
mail retrieval with movemail
868 --with-kerberos support Kerberos-authenticated POP
869 --with-kerberos5 support Kerberos version
5 authenticated POP
870 --with-hesiod support Hesiod to get the POP server
host
871 --without-sound don
't compile with sound support
872 --with-x-toolkit=KIT use an X toolkit
873 (KIT = yes/lucid/athena/motif/gtk/no)
874 --with-xpm use -lXpm for displaying XPM images
875 --with-jpeg use -ljpeg for displaying JPEG images
876 --with-tiff use -ltiff for displaying TIFF images
877 --with-gif use -lungif for displaying GIF images
878 --with-png use -lpng for displaying PNG images
879 --with-gtk use GTK (same as --with-x-toolkit=gtk)
880 --with-pkg-config-prog Path to pkg-config to use for finding GTK
881 --without-toolkit-scroll-bars
882 don't use Motif or Xaw3d scroll bars
883 --without-xim don
't use X11 XIM
884 --without-carbon don't use Carbon GUI on Mac OS X
885 --with-x use the X Window System
887 Some influential environment variables
:
888 CC C compiler
command
889 CFLAGS C compiler flags
890 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
891 nonstandard directory
<lib dir
>
892 CPPFLAGS C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if you have
893 headers
in a nonstandard directory
<include dir
>
896 Use these variables to override the choices made by
`configure' or to help
897 it to find libraries and programs with nonstandard names/locations.
902 if test "$ac_init_help" = "recursive"; then
903 # If there are subdirs, report their specific --help.
905 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
906 test -d $ac_dir || continue
909 if test "$ac_dir" != .; then
910 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
911 # A "../" for each directory in $ac_dir_suffix.
912 ac_top_builddir=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,../,g'`
914 ac_dir_suffix= ac_top_builddir=
918 .) # No --srcdir option. We are building in place.
920 if test -z "$ac_top_builddir"; then
923 ac_top_srcdir=`echo $ac_top_builddir |
sed 's,/$,,'`
925 [\\/]* | ?:[\\/]* ) # Absolute path.
926 ac_srcdir=$srcdir$ac_dir_suffix;
927 ac_top_srcdir=$srcdir ;;
929 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
930 ac_top_srcdir=$ac_top_builddir$srcdir ;;
933 # Do not use `cd foo
&& pwd` to compute absolute paths, because
934 # the directories may not exist.
936 .) ac_abs_builddir="$ac_dir";;
939 .) ac_abs_builddir=`pwd`;;
940 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
941 *) ac_abs_builddir=`pwd`/"$ac_dir";;
944 case $ac_abs_builddir in
945 .) ac_abs_top_builddir=${ac_top_builddir}.;;
947 case ${ac_top_builddir}. in
948 .) ac_abs_top_builddir=$ac_abs_builddir;;
949 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
950 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
953 case $ac_abs_builddir in
954 .) ac_abs_srcdir=$ac_srcdir;;
957 .) ac_abs_srcdir=$ac_abs_builddir;;
958 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
959 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
962 case $ac_abs_builddir in
963 .) ac_abs_top_srcdir=$ac_top_srcdir;;
965 case $ac_top_srcdir in
966 .) ac_abs_top_srcdir=$ac_abs_builddir;;
967 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
968 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
973 # Check for guested configure; otherwise get Cygnus style configure.
974 if test -f $ac_srcdir/configure.gnu; then
976 $SHELL $ac_srcdir/configure.gnu --help=recursive
977 elif test -f $ac_srcdir/configure; then
979 $SHELL $ac_srcdir/configure --help=recursive
980 elif test -f $ac_srcdir/configure.ac ||
981 test -f $ac_srcdir/configure.in; then
985 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
991 test -n "$ac_init_help" && exit 0
992 if $ac_init_version; then
995 Copyright (C) 2003 Free Software Foundation, Inc.
996 This configure script is free software; the Free Software Foundation
997 gives unlimited permission to copy, distribute and modify it.
1003 This file contains any messages produced by compilers while
1004 running configure, to aid debugging if configure makes a mistake.
1006 It was created by $as_me, which was
1007 generated by GNU Autoconf 2.59. Invocation command line was
1018 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1019 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1020 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1021 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1022 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1024 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1025 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1027 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1028 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1029 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1030 hostinfo = `(hostinfo
) 2>/dev
/null ||
echo unknown
`
1031 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1032 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1033 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1041 test -z "$as_dir" && as_dir=.
1042 echo "PATH: $as_dir"
1057 # Keep a trace of the command line.
1058 # Strip out --no-create and --no-recursion so they do not pile up.
1059 # Strip out --silent because we don't want to record it for future runs.
1060 # Also quote any args containing shell meta-characters.
1061 # Make two passes to allow for proper duplicate-argument suppression.
1066 ac_must_keep_next=false
1072 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1073 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1074 | -silent | --silent | --silen | --sile | --sil)
1076 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1077 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1080 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1082 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1083 if test $ac_must_keep_next = true; then
1084 ac_must_keep_next=false # Got value, back to normal.
1087 *=* | --config-cache | -C | -disable-* | --disable-* \
1088 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1089 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1090 | -with-* | --with-* | -without-* | --without-* | --x)
1091 case "$ac_configure_args0 " in
1092 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1095 -* ) ac_must_keep_next=true ;;
1098 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1099 # Get rid of the leading space.
1105 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1106 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1108 # When interrupted or exit'd, cleanup temporary files, and complete
1109 # config.log. We remove comments because anyway the quotes in there
1110 # would cause problems or look ugly.
1111 # WARNING: Be sure not to use single quotes in there, as some shells,
1112 # such as our DU 5.0 friend, will then `close
' the trap.
1113 trap 'exit_status
=$?
1114 # Save into config.log some information that might help in debugging.
1119 ## ---------------- ##
1120 ## Cache variables. ##
1121 ## ---------------- ##
1124 # The following way of writing the cache mishandles newlines in values,
1127 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1130 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1131 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1135 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1142 ## ----------------- ##
1143 ## Output variables. ##
1144 ## ----------------- ##
1147 for ac_var
in $ac_subst_vars
1149 eval ac_val
=$
`echo $ac_var`
1150 echo "$ac_var='"'"'$ac_val'"'"'"
1154 if test -n "$ac_subst_files"; then
1161 for ac_var
in $ac_subst_files
1163 eval ac_val
=$
`echo $ac_var`
1164 echo "$ac_var='"'"'$ac_val'"'"'"
1169 if test -s confdefs.h
; then
1176 sed "/^$/d" confdefs.h |
sort
1179 test "$ac_signal" != 0 &&
1180 echo "$as_me: caught signal $ac_signal"
1181 echo "$as_me: exit $exit_status"
1183 rm -f core
*.core
&&
1184 rm -rf conftest
* confdefs
* conf$$
* $ac_clean_files &&
1187 for ac_signal in 1 2 13 15; do
1188 trap 'ac_signal
='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1192 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1193 rm -rf conftest* confdefs.h
1194 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1197 # Predefined preprocessor variables.
1199 cat >>confdefs.h <<_ACEOF
1200 #define PACKAGE_NAME "$PACKAGE_NAME"
1204 cat >>confdefs.h <<_ACEOF
1205 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1209 cat >>confdefs.h <<_ACEOF
1210 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1214 cat >>confdefs.h <<_ACEOF
1215 #define PACKAGE_STRING "$PACKAGE_STRING"
1219 cat >>confdefs.h <<_ACEOF
1220 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1224 # Let the site file select an alternate cache file if it wants to.
1225 # Prefer explicitly selected file to automatically selected ones.
1226 if test -z "$CONFIG_SITE"; then
1227 if test "x$prefix" != xNONE; then
1228 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1230 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1233 for ac_site_file in $CONFIG_SITE; do
1234 if test -r "$ac_site_file"; then
1235 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1236 echo "$as_me: loading site script $ac_site_file" >&6;}
1237 sed 's
/^
/|
/' "$ac_site_file" >&5
1242 if test -r "$cache_file"; then
1243 # Some versions of bash will fail to source /dev/null (special
1244 # files actually), so we avoid doing that.
1245 if test -f "$cache_file"; then
1246 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1247 echo "$as_me: loading cache $cache_file" >&6;}
1249 [\\/]* | ?:[\\/]* ) . $cache_file;;
1250 *) . ./$cache_file;;
1254 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1255 echo "$as_me: creating cache $cache_file" >&6;}
1259 # Check that the precious variables saved in the cache have kept the same
1261 ac_cache_corrupted=false
1262 for ac_var in `(set) 2>&1 |
1263 sed -n 's
/^ac_env_\
([a-zA-Z_0-9
]*\
)_set
=.
*/\
1/p
'`; do
1264 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1265 eval ac_new_set=\$ac_env_${ac_var}_set
1266 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1267 eval ac_new_val="\$ac_env_${ac_var}_value"
1268 case $ac_old_set,$ac_new_set in
1270 { echo "$as_me:$LINENO: error: \`$ac_var' was
set to \
`$ac_old_val' in the previous run" >&5
1271 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&2;}
1272 ac_cache_corrupted=: ;;
1274 { echo "$as_me:$LINENO: error
: \
`$ac_var' was not set in the previous run" >&5
1275 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1276 ac_cache_corrupted=: ;;
1279 if test "x$ac_old_val" != "x$ac_new_val"; then
1280 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run
:" >&5
1281 echo "$as_me: error
: \
`$ac_var' has changed since the previous run:" >&2;}
1282 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1283 echo "$as_me: former value: $ac_old_val" >&2;}
1284 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1285 echo "$as_me: current value: $ac_new_val" >&2;}
1286 ac_cache_corrupted=:
1289 # Pass precious variables to config.status.
1290 if test "$ac_new_set" = set; then
1292 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1293 ac_arg=$ac_var=`echo "$ac_new_val" |
sed "s/'/'\\\\\\\\''/g"` ;;
1294 *) ac_arg=$ac_var=$ac_new_val ;;
1296 case " $ac_configure_args " in
1297 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1298 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1302 if $ac_cache_corrupted; then
1303 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1304 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1305 { { echo "$as_me:$LINENO: error: run \`make distclean
' and/or \`rm $cache_file' and start over
" >&5
1306 echo "$as_me: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1307 { (exit 1); exit 1; }; }
1311 ac_cpp='$CPP $CPPFLAGS'
1312 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
1313 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
1314 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1334 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
1337 test "$program_prefix" != NONE &&
1338 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1339 # Use a double $ so make ignores it.
1340 test "$program_suffix" != NONE &&
1341 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1342 # Double any \ or $. echo might interpret backslashes.
1343 # By default was `s,x,x', remove it
if useless.
1344 cat <<\_ACEOF
>conftest.
sed
1345 s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//
1347 program_transform_name
=`echo $program_transform_name | sed -f conftest.sed`
1351 lispdir
='${datadir}/emacs/${version}/lisp'
1352 locallisppath
='${datadir}/emacs/${version}/site-lisp:'\
1353 '${datadir}/emacs/site-lisp:${datadir}/emacs/${version}/leim'
1354 lisppath
='${locallisppath}:${lispdir}'
1355 etcdir
='${datadir}/emacs/${version}/etc'
1356 archlibdir
='${libexecdir}/emacs/${version}/${configuration}'
1357 docdir
='${datadir}/emacs/${version}/etc'
1358 gamedir
='${localstatedir}/games/emacs'
1363 # Check whether --with-gcc or --without-gcc was given.
1364 if test "${with_gcc+set}" = set; then
1369 # Check whether --with-pop or --without-pop was given.
1370 if test "${with_pop+set}" = set; then
1372 if test "$withval" = yes; then
1373 cat >>confdefs.h
<<\_ACEOF
1374 #define MAIL_USE_POP 1
1380 cat >>confdefs.h
<<\_ACEOF
1381 #define MAIL_USE_POP 1
1387 # Check whether --with-kerberos or --without-kerberos was given.
1388 if test "${with_kerberos+set}" = set; then
1389 withval
="$with_kerberos"
1390 cat >>confdefs.h
<<\_ACEOF
1397 # Check whether --with-kerberos5 or --without-kerberos5 was given.
1398 if test "${with_kerberos5+set}" = set; then
1399 withval
="$with_kerberos5"
1400 if test "${with_kerberos5+set}" = set; then
1401 if test "${with_kerberos+set}" != set; then
1403 cat >>confdefs.h
<<\_ACEOF
1410 cat >>confdefs.h
<<\_ACEOF
1416 # Check whether --with-hesiod or --without-hesiod was given.
1417 if test "${with_hesiod+set}" = set; then
1418 withval
="$with_hesiod"
1420 cat >>confdefs.h
<<\_ACEOF
1427 # Check whether --with-sound or --without-sound was given.
1428 if test "${with_sound+set}" = set; then
1429 withval
="$with_sound"
1434 # Check whether --with-x-toolkit or --without-x-toolkit was given.
1435 if test "${with_x_toolkit+set}" = set; then
1436 withval
="$with_x_toolkit"
1437 case "${withval}" in
1438 y | ye |
yes ) val
=athena
;;
1440 l | lu | luc | luci | lucid
) val
=lucid
;;
1441 a |
at | ath | athe | athen | athena
) val
=athena
;;
1442 m | mo | mot | moti | motif
) val
=motif
;;
1443 g | gt | gtk
) val
=gtk
;;
1445 { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid\;
1446 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1447 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&5
1448 echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid\;
1449 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1450 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&2;}
1451 { (exit 1); exit 1; }; }
1458 # Check whether --with-xpm or --without-xpm was given.
1459 if test "${with_xpm+set}" = set; then
1464 # Check whether --with-jpeg or --without-jpeg was given.
1465 if test "${with_jpeg+set}" = set; then
1466 withval
="$with_jpeg"
1470 # Check whether --with-tiff or --without-tiff was given.
1471 if test "${with_tiff+set}" = set; then
1472 withval
="$with_tiff"
1476 # Check whether --with-gif or --without-gif was given.
1477 if test "${with_gif+set}" = set; then
1482 # Check whether --with-png or --without-png was given.
1483 if test "${with_png+set}" = set; then
1488 # Check whether --with-gtk or --without-gtk was given.
1489 if test "${with_gtk+set}" = set; then
1494 # Check whether --with-pkg-config-prog or --without-pkg-config-prog was given.
1495 if test "${with_pkg_config_prog+set}" = set; then
1496 withval
="$with_pkg_config_prog"
1500 # Check whether --with-toolkit-scroll-bars or --without-toolkit-scroll-bars was given.
1501 if test "${with_toolkit_scroll_bars+set}" = set; then
1502 withval
="$with_toolkit_scroll_bars"
1506 # Check whether --with-xim or --without-xim was given.
1507 if test "${with_xim+set}" = set; then
1512 # Check whether --with-carbon or --without-carbon was given.
1513 if test "${with_carbon+set}" = set; then
1514 withval
="$with_carbon"
1517 # Check whether --enable-carbon-app or --disable-carbon-app was given.
1518 if test "${enable_carbon_app+set}" = set; then
1519 enableval
="$enable_carbon_app"
1520 carbon_appdir_x
=${enableval}
1523 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1524 if test "${enable_maintainer_mode+set}" = set; then
1525 enableval
="$enable_maintainer_mode"
1526 USE_MAINTAINER_MODE
=$enableval
1528 USE_MAINTAINER_MODE
=no
1530 if test $USE_MAINTAINER_MODE = yes; then
1537 #### Make srcdir absolute, if it isn't already. It's important to
1538 #### avoid running the path through pwd unnecessarily, since pwd can
1539 #### give you automounter prefixes, which can go away. We do all this
1540 #### so Emacs can find its files when run uninstalled.
1541 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
1546 ## We may be able to use the $PWD environment variable to make this
1547 ## absolute. But sometimes PWD is inaccurate.
1548 ## Note: we used to use ${PWD} at the end instead of `pwd`,
1549 ## but that tested only for a well-formed and valid PWD,
1550 ## it did not object when PWD was well-formed and valid but just wrong.
1551 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
1555 srcdir
="`(cd ${srcdir}; pwd)`"
1558 * ) srcdir
="`(cd ${srcdir}; pwd)`" ;;
1561 #### Check if the source directory already has a configured system in it.
1562 if test `pwd` != `(cd ${srcdir} && pwd)` \
1563 && test -f "${srcdir}/src/config.h" ; then
1564 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
1565 as a build directory right now; it has been configured in its own
1566 right. To configure in another directory as well, you MUST
1567 use GNU make. If you do not have GNU make, then you must
1568 now do \`make distclean' in ${srcdir},
1569 and then run $0 again." >&5
1570 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
1571 as a build directory right now; it has been configured in its own
1572 right. To configure in another directory as well, you MUST
1573 use GNU make. If you do not have GNU make, then you must
1574 now do \`make distclean' in ${srcdir},
1575 and then run $0 again." >&2;}
1578 #### Given the configuration name, set machfile and opsysfile to the
1579 #### names of the m/*.h and s/*.h files we should use.
1581 ### Canonicalize the configuration name.
1584 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
1585 if test -f $ac_dir/install-sh
; then
1587 ac_install_sh
="$ac_aux_dir/install-sh -c"
1589 elif test -f $ac_dir/install.sh
; then
1591 ac_install_sh
="$ac_aux_dir/install.sh -c"
1593 elif test -f $ac_dir/shtool
; then
1595 ac_install_sh
="$ac_aux_dir/shtool install -c"
1599 if test -z "$ac_aux_dir"; then
1600 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1601 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1602 { (exit 1); exit 1; }; }
1604 ac_config_guess
="$SHELL $ac_aux_dir/config.guess"
1605 ac_config_sub
="$SHELL $ac_aux_dir/config.sub"
1606 ac_configure
="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1608 # Make sure we can run config.sub.
1609 $ac_config_sub sun4
>/dev
/null
2>&1 ||
1610 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1611 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1612 { (exit 1); exit 1; }; }
1614 echo "$as_me:$LINENO: checking build system type" >&5
1615 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1616 if test "${ac_cv_build+set}" = set; then
1617 echo $ECHO_N "(cached) $ECHO_C" >&6
1619 ac_cv_build_alias
=$build_alias
1620 test -z "$ac_cv_build_alias" &&
1621 ac_cv_build_alias
=`$ac_config_guess`
1622 test -z "$ac_cv_build_alias" &&
1623 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1624 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1625 { (exit 1); exit 1; }; }
1626 ac_cv_build
=`$ac_config_sub $ac_cv_build_alias` ||
1627 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1628 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1629 { (exit 1); exit 1; }; }
1632 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1633 echo "${ECHO_T}$ac_cv_build" >&6
1635 build_cpu
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1636 build_vendor
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1637 build_os
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1640 echo "$as_me:$LINENO: checking host system type" >&5
1641 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1642 if test "${ac_cv_host+set}" = set; then
1643 echo $ECHO_N "(cached) $ECHO_C" >&6
1645 ac_cv_host_alias
=$host_alias
1646 test -z "$ac_cv_host_alias" &&
1647 ac_cv_host_alias
=$ac_cv_build_alias
1648 ac_cv_host
=`$ac_config_sub $ac_cv_host_alias` ||
1649 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1650 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1651 { (exit 1); exit 1; }; }
1654 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1655 echo "${ECHO_T}$ac_cv_host" >&6
1657 host_cpu
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1658 host_vendor
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1659 host_os
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1663 configuration
=${host_alias-$host}
1667 ### If you add support for a new configuration, add code to this
1668 ### switch statement to recognize your configuration name and select
1669 ### the appropriate operating system and machine description files.
1671 ### You would hope that you could choose an m/*.h file pretty much
1672 ### based on the machine portion of the configuration name, and an s-
1673 ### file based on the operating system portion. However, it turns out
1674 ### that each m/*.h file is pretty manufacturer-specific - for
1675 ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are
1676 ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS
1677 ### machines. So we basically have to have a special case for each
1678 ### configuration name.
1680 ### As far as handling version numbers on operating systems is
1681 ### concerned, make sure things will fail in a fixable way. If
1682 ### /etc/MACHINES doesn't say anything about version numbers, be
1683 ### prepared to handle anything reasonably. If version numbers
1684 ### matter, be sure /etc/MACHINES says something about it.
1686 ### Eric Raymond says we should accept strings like "sysvr4" to mean
1687 ### "System V Release 4"; he writes, "The old convention encouraged
1688 ### confusion between `system' and `release' levels'."
1690 machine
='' opsys
='' unported
=no
1691 case "${canonical}" in
1696 case "${canonical}" in
1697 alpha
*-*-freebsd*) machine
=alpha
;;
1698 i
[3456]86-*-freebsd*) machine
=intel386
;;
1705 if test -f /usr
/lib
/crti.o
; then
1707 cat >>confdefs.h
<<\_ACEOF
1713 case "${canonical}" in
1714 alpha
*-*-netbsd*) machine
=alpha
;;
1715 i
[3456]86-*-netbsd*) machine
=intel386
;;
1717 # This is somewhat bogus.
1718 machine
=hp9000s300
;;
1719 powerpc-apple-netbsd
*) machine
=macppc
;;
1720 mips-
*-netbsd*) machine
=pmax
;;
1721 mipsel-
*-netbsd*) machine
=pmax
;;
1722 mipseb-
*-netbsd*) machine
=pmax
;;
1723 ns32k-
*-netbsd*) machine
=ns32000
;;
1724 powerpc-
*-netbsd*) machine
=macppc
;;
1725 sparc
*-*-netbsd*) machine
=sparc
;;
1726 vax-
*-netbsd*) machine
=vax
;;
1727 arm-
*-netbsd*) machine
=arm
;;
1734 case "${canonical}" in
1735 alpha
*-*-openbsd*) machine
=alpha
;;
1736 i386-
*-openbsd*) machine
=intel386
;;
1737 m68k-
*-openbsd*) machine
=hp9000s300
;;
1738 mipsel-
*-openbsd*) machine
=pmax
;;
1739 ns32k-
*-openbsd*) machine
=ns32000
;;
1740 sparc-
*-openbsd*) machine
=sparc
;;
1741 vax-
*-openbsd*) machine
=vax
;;
1746 arm-acorn-riscix1.1
* )
1747 machine
=acorn opsys
=riscix1-1
1749 arm-acorn-riscix1.2
* | arm-acorn-riscix
)
1750 ## This name is riscix12 instead of riscix1.2
1751 ## to avoid a file name conflict on MSDOS.
1752 machine
=acorn opsys
=riscix12
1758 case "${canonical}" in
1759 i
[345]86-*-bsdi*) machine
=intel386
;;
1760 sparc-
*-bsdi*) machine
=sparc
;;
1761 powerpc-
*-bsdi*) machine
=macppc
;;
1763 case "${canonical}" in
1764 *-*-bsd386* |
*-*-bsdi1* ) opsys
=bsd386
;;
1765 *-*-bsdi2.0
* ) opsys
=bsdos2
;;
1766 *-*-bsdi2* ) opsys
=bsdos2-1
;;
1767 *-*-bsdi3* ) opsys
=bsdos3
;;
1768 *-*-bsdi[45]* ) opsys
=bsdos4
;;
1773 ## Strictly speaking, we need the version of the alliant operating
1774 ## system to choose the right machine file, but currently the
1775 ## configuration name doesn't tell us enough to choose the right
1776 ## one; we need to give alliants their own operating system name to
1777 ## do this right. When someone cares, they can help us.
1779 machine
=alliant4 opsys
=bsd4-2
1782 machine
=alliant-2800 opsys
=bsd4-3
1785 ## Alpha (DEC) machines.
1787 machine
=alpha opsys
=osf1
1788 # This is needed to find X11R6.1 libraries for certain tests.
1789 NON_GCC_LINK_TEST_OPTIONS
=-Wl,-rpath,/usr
/X11R
6/lib
1790 GCC_LINK_TEST_OPTIONS
=-Wl,-rpath,/usr
/X11R
6/lib
1791 # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile
1792 # due to non-traditional preprocessing with the current compiler
1793 # defaults. OSF 4 can also have that compiler version, and there
1794 # seems always to have been a usable /usr/bin/cpp.
1795 NON_GNU_CPP
=/usr
/bin
/cpp
1796 case "${canonical}" in
1797 alpha
*-dec-osf[5-9]*)
1802 alpha
*-*-linux-gnu* )
1803 machine
=alpha opsys
=gnu-linux
1807 machine
=arm opsys
=gnu-linux
1812 machine
=macppc opsys
=gnu-linux
1817 machine
=altos opsys
=usg5-2
1822 machine
=amdahl opsys
=usg5-2-2
1825 ## Apollo, Domain/OS
1827 machine
=apollo opsys
=bsd4-3
1830 ## AT&T 3b2, 3b5, 3b15, 3b20
1832 machine
=att3b opsys
=usg5-2-2
1835 ## AT&T 3b1 - The Mighty Unix PC!
1837 machine
=7300 opsys
=usg5-2-2
1842 machine
=ibmrs6000 opsys
=aix3-2
1847 machine
=dpx2 opsys
=usg5-3
1852 machine
=sps7 opsys
=usg5-2
1855 ## CCI 5/32, 6/32 -- see "Tahoe".
1858 ## I don't know what configuration name to use for this; config.sub
1859 ## doesn't seem to know anything about it. Hey, Celerity users, get
1860 ## in touch with us!
1861 celerity-celerity-bsd
* )
1862 machine
=celerity opsys
=bsd4-2
1866 ## What operating systems does this chip run that Emacs has been
1870 ## We'll use the catch-all code at the bottom to guess the
1871 ## operating system.
1875 mips-compaq-nonstopux
* )
1876 machine
=nonstopux opsys
=nonstopux
1880 *-convex-bsd* |
*-convex-convexos* )
1881 machine
=convex opsys
=bsd4-3
1882 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
1883 NON_GNU_CPP
="cc -E -P"
1887 i
[3456]86-cubix-sysv* )
1888 machine
=intel386 opsys
=usg5-3
1892 cydra
*-cydrome-sysv* )
1893 machine
=cydra5 opsys
=usg5-3
1896 ## Data General AViiON Machines
1897 ## DG changed naming conventions with the release of 5.4.4.10, they
1898 ## dropped the initial 5.4 but left the intervening R. Because of the
1899 ## R this shouldn't conflict with older versions of the OS (which I
1900 ## think were named like dgux4.*). In addition, DG new AViiONs series
1901 ## uses either Motorola M88k or Intel Pentium CPUs.
1902 m88k-dg-dguxR4.
* | m88k-dg-dgux4
* )
1903 machine
=aviion opsys
=dgux4
1905 m88k-dg-dgux5.4R3
* | m88k-dg-dgux5.4
.3* )
1906 ## This name is dgux5-4-3 instead of dgux5-4r3
1907 ## to avoid a file name conflict on MSDOS.
1908 machine
=aviion opsys
=dgux5-4-3
1910 m88k-dg-dgux5.4R2
* | m88k-dg-dgux5.4
.2* )
1911 machine
=aviion opsys
=dgux5-4r2
1914 machine
=aviion opsys
=dgux
1917 ## Data General AViiON Intel (x86) Machines
1918 ## Exists from 5.4.3 (current i586-dg-dguxR4.11)
1919 ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il
1920 i
[345]86-dg-dguxR4* )
1921 machine
=aviion-intel opsys
=dgux4
1925 mips-dec-ultrix
[0-3].
* | mips-dec-ultrix4.0
* | mips-dec-bsd4.2
* )
1926 machine
=pmax opsys
=bsd4-2
1928 mips-dec-ultrix4.
[12]* | mips-dec-bsd
* )
1929 machine
=pmax opsys
=bsd4-3
1932 machine
=pmax opsys
=ultrix4-3
1935 machine
=pmax opsys
=osf1
1937 mips-dec-mach_bsd4.3
* )
1938 machine
=pmax opsys
=mach-bsd4-3
1941 ## Motorola Delta machines
1942 m68k-motorola-sysv
* | m68000-motorola-sysv
* )
1943 machine
=delta opsys
=usg5-3
1944 if test -z "`type gnucc | grep 'not found'`"
1946 if test -s /etc
/167config
1947 then CC
="gnucc -m68040"
1948 else CC
="gnucc -m68881"
1951 if test -z "`type gcc | grep 'not found'`"
1957 m88k-motorola-sysv4
* )
1958 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
1959 # needs POSIX_SIGNALS and therefore needs usg5-4-2.
1960 # I hope there are not other 4.0 versions for this machine
1961 # which really need usg5-4 instead.
1962 machine
=delta88k opsys
=usg5-4-2
1964 m88k-motorola-sysv
* | m88k-motorola-m88kbcs
* )
1965 machine
=delta88k opsys
=usg5-3
1970 machine
=dual opsys
=usg5-2
1972 m68
*-dual-uniplus* )
1973 machine
=dual opsys
=unipl5-2
1978 machine
=elxsi opsys
=usg5-2
1983 machine
=ns16000 opsys
=umax
1986 ## The GEC 63 - apparently, this port isn't really finished yet.
1987 # I'm sure we finished off the last of the machines, though. -- fx
1989 ## Gould Power Node and NP1
1991 machine
=gould opsys
=bsd4-2
1994 machine
=gould opsys
=bsd4-3
1997 machine
=gould-np1 opsys
=bsd4-3
2000 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
2001 ## as far as Emacs is concerned).
2003 # Build needs to be different on 7.0 and later releases
2004 case "`uname -r`" in
2005 [56].
[0-9] ) machine
=nh4000 opsys
=cxux
;;
2006 [7].
[0-9] ) machine
=nh4000 opsys
=cxux7
;;
2008 NON_GNU_CPP
="/lib/cpp"
2010 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
2012 machine
=nh3000 opsys
=cxux
2014 ## Harris power pc NightHawk running Power UNIX (Series 6000)
2015 powerpc-harris-powerunix
)
2016 machine
=nh6000 opsys
=powerunix
2017 NON_GNU_CPP
="cc -Xo -E -P"
2019 ## SR2001/SR2201 running HI-UX/MPP
2020 hppa1.1
-hitachi-hiuxmpp* )
2021 machine
=sr2k opsys
=hiuxmpp
2023 hppa1.1
-hitachi-hiuxwe2* )
2024 machine
=sr2k opsys
=hiuxwe2
2027 xps
*-honeywell-sysv* )
2028 machine
=xps100 opsys
=usg5-2
2031 ## HP 9000 series 200 or 300
2033 machine
=hp9000s300 opsys
=bsd4-3
2035 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
2037 case "`uname -r`" in
2038 ## Someone's system reports A.B8.05 for this.
2039 ## I wonder what other possibilities there are.
2040 *.B8.
* ) machine
=hp9000s300 opsys
=hpux8
;;
2041 *.08.
* ) machine
=hp9000s300 opsys
=hpux8
;;
2042 *.09.
* ) machine
=hp9000s300 opsys
=hpux9
;;
2043 *.1[0-9].
* ) machine
=hp9000s300 opsys
=hpux9shr
;;
2044 *) machine
=hp9000s300 opsys
=hpux
;;
2048 ## HP 9000 series 700 and 800, running HP/UX
2050 machine
=hp800 opsys
=hpux
2053 machine
=hp800 opsys
=hpux8
2055 hppa
*-hp-hpux9shr* )
2056 machine
=hp800 opsys
=hpux9shr
2059 machine
=hp800 opsys
=hpux9
2061 hppa
*-hp-hpux10.2
* )
2062 machine
=hp800 opsys
=hpux10-20
2065 machine
=hp800 opsys
=hpux10
2067 hppa
*-hp-hpux1[1-9]* )
2068 machine
=hp800 opsys
=hpux11
2071 hppa
*-*-linux-gnu* )
2072 machine
=hp800 opsys
=gnu-linux
2075 ## HP 9000 series 700 and 800, running HP/UX
2077 ## Cross-compilation? Nah!
2078 case "`uname -r`" in
2079 ## Someone's system reports A.B8.05 for this.
2080 ## I wonder what other possibilities there are.
2081 *.B8.
* ) machine
=hp800 opsys
=hpux8
;;
2082 *.08.
* ) machine
=hp800 opsys
=hpux8
;;
2083 *.09.
* ) machine
=hp800 opsys
=hpux9
;;
2084 *) machine
=hp800 opsys
=hpux10
;;
2088 machine
=hp800 opsys
=nextstep
2093 machine
=orion opsys
=bsd4-2
2095 clipper-orion-bsd
* )
2096 machine
=orion105 opsys
=bsd4-2
2100 i
[3456]86-ibm-aix1.1
* )
2101 machine
=ibmps2-aix opsys
=usg5-2-2
2103 i
[3456]86-ibm-aix1.
[23]* | i
[3456]86-ibm-aix* )
2104 machine
=ibmps2-aix opsys
=usg5-3
2107 machine
=ibm370aix opsys
=usg5-3
2110 machine
=ibms390 opsys
=gnu-linux
2112 rs6000-ibm-aix3.1
* | powerpc-ibm-aix3.1
* )
2113 machine
=ibmrs6000 opsys
=aix3-1
2115 rs6000-ibm-aix3.2
.5 | powerpc-ibm-aix3.2
.5 )
2116 machine
=ibmrs6000 opsys
=aix3-2-5
2118 rs6000-ibm-aix4.1
* | powerpc-ibm-aix4.1
* )
2119 machine
=ibmrs6000 opsys
=aix4-1
2121 rs6000-ibm-aix4.2
* | powerpc-ibm-aix4.2
* )
2122 machine
=ibmrs6000 opsys
=aix4-2
2124 rs6000-ibm-aix5
* | powerpc-ibm-aix5
* )
2125 machine
=ibmrs6000 opsys
=aix4-2
2127 rs6000-ibm-aix4.0
* | powerpc-ibm-aix4.0
* )
2128 machine
=ibmrs6000 opsys
=aix4
2130 rs6000-ibm-aix4
* | powerpc-ibm-aix4
* )
2131 machine
=ibmrs6000 opsys
=aix4-1
2133 rs6000-ibm-aix
* | powerpc-ibm-aix
* )
2134 machine
=ibmrs6000 opsys
=aix3-2
2137 machine
=ibmrt opsys
=bsd4-3
2140 machine
=ibmrt opsys
=bsd4-2
2143 machine
=ibmrt opsys
=bsd4-3
2146 machine
=ibmrt opsys
=bsd4-2
2149 machine
=ibmrt opsys
=bsd4-3
2152 machine
=ibmrt opsys
=bsd4-3
2155 machine
=ibmrt-aix opsys
=usg5-2-2
2158 ## Integrated Solutions `Optimum V'
2160 machine
=isi-ov opsys
=bsd4-2
2163 machine
=isi-ov opsys
=bsd4-3
2166 ## Intel 386 machines where we do care about the manufacturer
2167 i
[3456]86-intsys-sysv* )
2168 machine
=is386 opsys
=usg5-2-2
2172 i
[3456]86-prime-sysv* )
2173 machine
=i386 opsys
=usg5-3
2176 ## Sequent Symmetry running Dynix
2177 i
[3456]86-sequent-bsd* )
2178 machine
=symmetry opsys
=bsd4-3
2181 ## Sequent Symmetry running ptx 4, which is a modified SVR4.
2182 i
[3456]86-sequent-ptx4* | i
[3456]86-sequent-sysv4* )
2183 machine
=sequent-ptx opsys
=ptx4
2184 NON_GNU_CPP
=/lib
/cpp
2187 ## Sequent Symmetry running DYNIX/ptx
2188 ## Use the old cpp rather than the newer ANSI one.
2189 i
[3456]86-sequent-ptx* )
2190 machine
=sequent-ptx opsys
=ptx
2191 NON_GNU_CPP
="/lib/cpp"
2194 ## ncr machine running svr4.3.
2195 i
[3456]86-ncr-sysv4.3
)
2196 machine
=ncr386 opsys
=usg5-4-3
2199 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2200 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2201 i
[3456]86-ncr-sysv* )
2202 machine
=ncr386 opsys
=usg5-4-2
2205 ## Intel Paragon OSF/1
2207 machine
=paragon opsys
=osf1 NON_GNU_CPP
=/usr
/mach
/lib
/cpp
2212 machine
=i860 opsys
=usg5-4
2213 NON_GNU_CC
="/bin/cc" # Ie, not the one in /usr/ucb/cc.
2214 NON_GNU_CPP
="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
2217 ## Macintosh PowerPC
2218 powerpc
*-*-linux-gnu* )
2219 machine
=macppc opsys
=gnu-linux
2222 ## Masscomp machines
2223 m68
*-masscomp-rtu* )
2224 machine
=masscomp opsys
=rtu
2227 ## Megatest machines
2228 m68
*-megatest-bsd* )
2229 machine
=mega68 opsys
=bsd4-2
2232 ## Workstations sold by MIPS
2233 ## This is not necessarily all workstations using the MIPS processor -
2234 ## Irises are produced by SGI, and DECstations by DEC.
2236 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
2237 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
2238 ## it gives for choosing between the alternatives seems to be "Use
2239 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
2240 ## the BSD world." I'll assume that these are instructions for
2241 ## handling two odd situations, and that every other situation
2242 ## should use mips.h and usg5-2-2, they being listed first.
2245 ## Fall through to the general code at the bottom to decide on the OS.
2247 mips-mips-riscos4
* )
2248 machine
=mips4 opsys
=bsd4-3
2249 NON_GNU_CC
="cc -systype bsd43"
2250 NON_GNU_CPP
="cc -systype bsd43 -E"
2252 mips-mips-riscos5
* )
2253 machine
=mips4 opsys
=riscos5
2254 NON_GNU_CC
="cc -systype bsd43"
2255 NON_GNU_CPP
="cc -systype bsd43 -E"
2258 machine
=mips opsys
=bsd4-3
2261 machine
=mips opsys
=usg5-2-2
2265 m68
*-next-* | m68k-
*-nextstep* )
2266 machine
=m68k opsys
=nextstep
2269 ## The complete machine from National Semiconductor
2271 machine
=ns32000 opsys
=usg5-2
2275 m68
*-ncr-sysv2* | m68
*-ncr-sysvr2* )
2276 machine
=tower32 opsys
=usg5-2-2
2278 m68
*-ncr-sysv3* | m68
*-ncr-sysvr3* )
2279 machine
=tower32v3 opsys
=usg5-3
2284 machine
=ews4800 opsys
=ux4800
2287 ## Nixdorf Targon 31
2288 m68
*-nixdorf-sysv* )
2289 machine
=targon31 opsys
=usg5-2-2
2294 machine
=nu opsys
=usg5-2
2299 machine
=plexus opsys
=usg5-2
2303 ## I don't really have any idea what sort of processor the Pyramid has,
2304 ## so I'm assuming it is its own architecture.
2305 pyramid-pyramid-bsd
* )
2306 machine
=pyramid opsys
=bsd4-2
2310 ns32k-sequent-bsd4.2
* )
2311 machine
=sequent opsys
=bsd4-2
2313 ns32k-sequent-bsd4.3
* )
2314 machine
=sequent opsys
=bsd4-3
2318 mips-siemens-sysv
* | mips-sni-sysv
*)
2319 machine
=mips-siemens opsys
=usg5-4
2320 NON_GNU_CC
=/usr
/ccs
/bin
/cc
2321 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2324 ## Silicon Graphics machines
2325 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
2327 machine
=irist opsys
=iris3-5
2329 m68
*-sgi-iris3.6
* | m68
*-sgi-iris*)
2330 machine
=irist opsys
=iris3-6
2334 machine
=iris4d opsys
=irix3-3
2337 machine
=iris4d opsys
=irix4-0
2340 machine
=iris4d opsys
=irix6-5
2341 # Without defining _LANGUAGE_C, things get masked out in the headers
2342 # so that, for instance, grepping for `free' in stdlib.h fails and
2343 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2344 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2345 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
2348 machine
=iris4d opsys
=irix6-0
2349 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
2350 # but presumably it does no harm.
2351 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2352 # -32 probably isn't necessary in later v.6s -- anyone know which?
2353 NON_GCC_TEST_OPTIONS
=-32
2355 mips-sgi-irix5.
[01]* )
2356 machine
=iris4d opsys
=irix5-0
2358 mips-sgi-irix5
* | mips-sgi-irix
* )
2359 machine
=iris4d opsys
=irix5-2
2364 machine
=news opsys
=bsd4-2
2367 machine
=news opsys
=bsd4-3
2369 m68
*-sony-newsos3* | m68
*-sony-news3*)
2370 machine
=news opsys
=bsd4-3
2372 mips-sony-bsd
* | mips-sony-newsos4
* | mips-sony-news4
*)
2373 machine
=news-risc opsys
=bsd4-3
2375 mips-sony-newsos6
* )
2376 machine
=news-r6 opsys
=newsos6
2379 machine
=news-risc opsys
=newsos5
2384 machine
=stride opsys
=usg5-2
2388 sparc-
*-linux-gnu* | sparc64-
*-linux-gnu* )
2389 machine
=sparc opsys
=gnu-linux
2392 *-auspex-sunos* |
*-sun-sunos* |
*-sun-bsd* |
*-sun-solaris* \
2393 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* | powerpc
*-*-solaris2* \
2394 | rs6000-
*-solaris2*)
2395 case "${canonical}" in
2396 m68
*-sunos1* ) machine
=sun1
;;
2397 m68
*-sunos2* ) machine
=sun2
;;
2398 m68
* ) machine
=sun3
;;
2399 i
[3456]86-sun-sunos[34]* ) machine
=sun386
;;
2400 i
[3456]86-*-* ) machine
=intel386
;;
2401 powerpcle
* ) machine
=powerpcle
;;
2402 powerpc
* | rs6000
* ) machine
=ibmrs6000
;;
2403 sparc
* ) machine
=sparc
;;
2406 case "${canonical}" in
2407 ## The Sun386 didn't get past 4.0.
2408 i
[3456]86-*-sunos4 ) opsys
=sunos4-0
;;
2409 *-sunos4.0
* ) opsys
=sunos4-0
;;
2410 *-sunos4.1.
[3-9]*noshare
)
2411 ## This name is sunos413 instead of sunos4-1-3
2412 ## to avoid a file name conflict on MSDOS.
2414 NON_GNU_CPP
=/usr
/lib
/cpp
2415 NON_GCC_TEST_OPTIONS
=-Bstatic
2416 GCC_TEST_OPTIONS
=-static
2418 *-sunos4.1.
[3-9]* |
*-sunos4shr*)
2420 NON_GNU_CPP
=/usr
/lib
/cpp
2422 *-sunos4* |
*-sunos )
2424 NON_GCC_TEST_OPTIONS
=-Bstatic
2425 GCC_TEST_OPTIONS
=-static
2427 *-sunos5.3
* |
*-solaris2.3
* )
2429 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2431 *-sunos5.4
* |
*-solaris2.4
* )
2433 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2436 *-sunos5.5
* |
*-solaris2.5
* )
2438 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2441 *-sunos5.6
* |
*-solaris2.6
* )
2443 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2446 *-sunos5* |
*-solaris* )
2448 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2452 ## Watch out for a compiler that we know will not work.
2453 case "${canonical}" in
2454 *-solaris* |
*-sunos5* )
2455 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
2456 ## /usr/ucb/cc doesn't work;
2457 ## we should find some other compiler that does work.
2465 machine
=sparc opsys
=nextstep
2469 m68
*-tadpole-sysv* )
2470 machine
=tad68k opsys
=usg5-3
2474 tahoe-tahoe-bsd4.2
* )
2475 machine
=tahoe opsys
=bsd4-2
2477 tahoe-tahoe-bsd4.3
* )
2478 machine
=tahoe opsys
=bsd4-3
2481 ## Tandem Integrity S2
2483 machine
=tandem-s2 opsys
=usg5-3
2487 m88k-tektronix-sysv3
* )
2488 machine
=tekxd88 opsys
=usg5-3
2491 ## Tektronix 16000 box (6130?)
2492 ns16k-tektronix-bsd
* )
2493 machine
=ns16000 opsys
=bsd4-2
2496 ## src/m/tek4300.h hints that this is a m68k machine.
2497 m68
*-tektronix-bsd* )
2498 machine
=tek4300 opsys
=bsd4-3
2502 ## We seem to have lost the machine-description file titan.h!
2504 machine
=titan opsys
=usg5-3
2507 ## Ustation E30 (SS5E)
2508 m68
*-unisys-uniplus* )
2509 machine
=ustation opsystem
=unipl5-2
2515 case "${canonical}" in
2516 *-bsd4.1
* ) opsys
=bsd4-1
;;
2517 *-bsd4.2
* |
*-ultrix[0-3].
* |
*-ultrix4.0
* ) opsys
=bsd4-2
;;
2518 *-bsd4.3
* |
*-ultrix* ) opsys
=bsd4-3
;;
2519 *-sysv[01]* |
*-sysvr[01]* ) opsys
=usg5-0
;;
2520 *-sysv2* |
*-sysvr2* ) opsys
=usg5-2
;;
2521 *-vms* ) opsys
=vms
;;
2527 ns16k-whitechapel-
* )
2529 ## We don't know what sort of OS runs on these; we'll let the
2530 ## operating system guessing code below try.
2535 machine
=wicat opsys
=usg5-2
2540 machine
=ia64 opsys
=gnu-linux
2543 ## Intel 386 machines where we don't care about the manufacturer
2546 case "${canonical}" in
2547 *-cygwin ) opsys
=cygwin
;;
2548 *-lynxos* ) opsys
=lynxos
;;
2549 *-isc1.
* |
*-isc2.
[01]* ) opsys
=386-ix ;;
2550 *-isc2.2
* ) opsys
=isc2-2
;;
2551 *-isc4.0
* ) opsys
=isc4-0
;;
2552 *-isc4.
* ) opsys
=isc4-1
2553 GCC_TEST_OPTIONS
=-posix
2554 NON_GCC_TEST_OPTIONS
=-Xp
2556 *-isc* ) opsys
=isc3-0
;;
2557 *-esix5* ) opsys
=esix5r4
; NON_GNU_CPP
=/usr
/lib
/cpp
;;
2558 *-esix* ) opsys
=esix
;;
2559 *-xenix* ) opsys
=xenix
;;
2560 *-linux-gnu* ) opsys
=gnu-linux
;;
2561 *-sco3.2v4
* ) opsys
=sco4
; NON_GNU_CPP
=/lib
/cpp
;;
2562 *-sco3.2v5
* ) opsys
=sco5
2563 NON_GNU_CPP
=/lib
/cpp
2564 # Prevent -belf from being passed to $CPP.
2565 # /lib/cpp does not accept it.
2566 OVERRIDE_CPPFLAGS
=" "
2568 *-sysv4.2uw
* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2569 *-sysv5uw* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2570 *-sysv5OpenUNIX* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2571 *-386bsd* ) opsys
=386bsd
;;
2572 *-nextstep* ) opsys
=nextstep
;;
2573 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2577 ## m68k Linux-based GNU system
2579 machine
=m68k opsys
=gnu-linux
2582 ## Mips Linux-based GNU system
2583 mips-
*-linux-gnu* | mipsel-
*-linux-gnu* )
2584 machine
=mips opsys
=gnu-linux
2588 sparc-fujitsu-sysv4
* )
2589 machine
=sparc opsys
=uxpds
2590 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2595 f301-fujitsu-uxpv4.1
)
2596 machine
=f301 opsys
=uxpv
2599 ## Darwin / Mac OS X
2600 powerpc-apple-darwin
* )
2601 machine
=powermac opsys
=darwin
2602 # Define CPP as follows to make autoconf work correctly.
2603 CPP
="${CC-cc} -E -no-cpp-precomp"
2604 # Use fink packages if available.
2605 if test -d /sw
/include
&& test -d /sw
/lib
; then
2606 GCC_TEST_OPTIONS
="-I/sw/include -L/sw/lib"
2607 CPP
="${CPP} ${GCC_TEST_OPTIONS}"
2608 NON_GCC_TEST_OPTIONS
=${GCC_TEST_OPTIONS}
2612 ## AMD x86-64 Linux-based GNU system
2613 x86_64-
*-linux-gnu* )
2614 machine
=amdx86-64 opsys
=gnu-linux
2622 ### If the code above didn't choose an operating system, just choose
2623 ### an operating system based on the configuration name. You really
2624 ### only want to use this when you have no idea what the right
2625 ### operating system is; if you know what operating systems a machine
2626 ### runs, it's cleaner to make it explicit in the case statement
2628 if test x
"${opsys}" = x
; then
2629 case "${canonical}" in
2630 *-gnu* ) opsys
=gnu
;;
2631 *-bsd4.
[01] ) opsys
=bsd4-1
;;
2632 *-bsd4.2
) opsys
=bsd4-2
;;
2633 *-bsd4.3
) opsys
=bsd4-3
;;
2634 *-sysv0 |
*-sysvr0 ) opsys
=usg5-0
;;
2635 *-sysv2 |
*-sysvr2 ) opsys
=usg5-2
;;
2636 *-sysv2.2 |
*-sysvr2.2
) opsys
=usg5-2-2
;;
2637 *-sysv3* |
*-sysvr3* ) opsys
=usg5-3
;;
2638 *-sysv4.2uw
* ) opsys
=unixware
;;
2639 *-sysv5uw* ) opsys
=unixware
;;
2640 *-sysv5OpenUNIX* ) opsys
=unixware
;;
2641 *-sysv4.1
* |
*-sysvr4.1
* )
2642 NON_GNU_CPP
=/usr
/lib
/cpp
2644 *-sysv4.
[2-9]* |
*-sysvr4.
[2-9]* )
2645 if [ x
$NON_GNU_CPP = x
]; then
2646 if [ -f /usr
/ccs
/lib
/cpp
]; then
2647 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2649 NON_GNU_CPP
=/lib
/cpp
2653 *-sysv4* |
*-sysvr4* ) opsys
=usg5-4
;;
2662 if test $unported = yes; then
2663 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
2664 Check \`etc/MACHINES' for recognized configuration names." >&5
2665 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2666 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2667 { (exit 1); exit 1; }; }
2670 machfile
="m/${machine}.h"
2671 opsysfile
="s/${opsys}.h"
2674 #### Choose a compiler.
2675 test -n "$CC" && cc_specified
=yes
2677 # Save the value of CFLAGS that the user specified.
2678 SPECIFIED_CFLAGS
="$CFLAGS"
2681 "yes" ) CC
="gcc" GCC
=yes ;;
2682 "no" ) : ${CC=cc} ;;
2686 ac_cpp
='$CPP $CPPFLAGS'
2687 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2688 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2689 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2690 if test -n "$ac_tool_prefix"; then
2691 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2692 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2693 echo "$as_me:$LINENO: checking for $ac_word" >&5
2694 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2695 if test "${ac_cv_prog_CC+set}" = set; then
2696 echo $ECHO_N "(cached) $ECHO_C" >&6
2698 if test -n "$CC"; then
2699 ac_cv_prog_CC
="$CC" # Let the user override the test.
2701 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2705 test -z "$as_dir" && as_dir
=.
2706 for ac_exec_ext
in '' $ac_executable_extensions; do
2707 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2708 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2709 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2718 if test -n "$CC"; then
2719 echo "$as_me:$LINENO: result: $CC" >&5
2720 echo "${ECHO_T}$CC" >&6
2722 echo "$as_me:$LINENO: result: no" >&5
2723 echo "${ECHO_T}no" >&6
2727 if test -z "$ac_cv_prog_CC"; then
2729 # Extract the first word of "gcc", so it can be a program name with args.
2730 set dummy gcc
; ac_word
=$2
2731 echo "$as_me:$LINENO: checking for $ac_word" >&5
2732 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2733 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2734 echo $ECHO_N "(cached) $ECHO_C" >&6
2736 if test -n "$ac_ct_CC"; then
2737 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2739 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2743 test -z "$as_dir" && as_dir
=.
2744 for ac_exec_ext
in '' $ac_executable_extensions; do
2745 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2746 ac_cv_prog_ac_ct_CC
="gcc"
2747 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2755 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2756 if test -n "$ac_ct_CC"; then
2757 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2758 echo "${ECHO_T}$ac_ct_CC" >&6
2760 echo "$as_me:$LINENO: result: no" >&5
2761 echo "${ECHO_T}no" >&6
2769 if test -z "$CC"; then
2770 if test -n "$ac_tool_prefix"; then
2771 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2772 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2773 echo "$as_me:$LINENO: checking for $ac_word" >&5
2774 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2775 if test "${ac_cv_prog_CC+set}" = set; then
2776 echo $ECHO_N "(cached) $ECHO_C" >&6
2778 if test -n "$CC"; then
2779 ac_cv_prog_CC
="$CC" # Let the user override the test.
2781 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2785 test -z "$as_dir" && as_dir
=.
2786 for ac_exec_ext
in '' $ac_executable_extensions; do
2787 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2788 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2789 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2798 if test -n "$CC"; then
2799 echo "$as_me:$LINENO: result: $CC" >&5
2800 echo "${ECHO_T}$CC" >&6
2802 echo "$as_me:$LINENO: result: no" >&5
2803 echo "${ECHO_T}no" >&6
2807 if test -z "$ac_cv_prog_CC"; then
2809 # Extract the first word of "cc", so it can be a program name with args.
2810 set dummy cc
; ac_word
=$2
2811 echo "$as_me:$LINENO: checking for $ac_word" >&5
2812 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2813 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2814 echo $ECHO_N "(cached) $ECHO_C" >&6
2816 if test -n "$ac_ct_CC"; then
2817 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2819 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2823 test -z "$as_dir" && as_dir
=.
2824 for ac_exec_ext
in '' $ac_executable_extensions; do
2825 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2826 ac_cv_prog_ac_ct_CC
="cc"
2827 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2835 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2836 if test -n "$ac_ct_CC"; then
2837 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2838 echo "${ECHO_T}$ac_ct_CC" >&6
2840 echo "$as_me:$LINENO: result: no" >&5
2841 echo "${ECHO_T}no" >&6
2850 if test -z "$CC"; then
2851 # Extract the first word of "cc", so it can be a program name with args.
2852 set dummy cc
; ac_word
=$2
2853 echo "$as_me:$LINENO: checking for $ac_word" >&5
2854 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2855 if test "${ac_cv_prog_CC+set}" = set; then
2856 echo $ECHO_N "(cached) $ECHO_C" >&6
2858 if test -n "$CC"; then
2859 ac_cv_prog_CC
="$CC" # Let the user override the test.
2862 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2866 test -z "$as_dir" && as_dir
=.
2867 for ac_exec_ext
in '' $ac_executable_extensions; do
2868 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2869 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2870 ac_prog_rejected
=yes
2874 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2880 if test $ac_prog_rejected = yes; then
2881 # We found a bogon in the path, so make sure we never use it.
2882 set dummy
$ac_cv_prog_CC
2884 if test $# != 0; then
2885 # We chose a different compiler from the bogus one.
2886 # However, it has the same basename, so the bogon will be chosen
2887 # first if we set CC to just the basename; use the full file name.
2889 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2895 if test -n "$CC"; then
2896 echo "$as_me:$LINENO: result: $CC" >&5
2897 echo "${ECHO_T}$CC" >&6
2899 echo "$as_me:$LINENO: result: no" >&5
2900 echo "${ECHO_T}no" >&6
2904 if test -z "$CC"; then
2905 if test -n "$ac_tool_prefix"; then
2908 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2909 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2910 echo "$as_me:$LINENO: checking for $ac_word" >&5
2911 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2912 if test "${ac_cv_prog_CC+set}" = set; then
2913 echo $ECHO_N "(cached) $ECHO_C" >&6
2915 if test -n "$CC"; then
2916 ac_cv_prog_CC
="$CC" # Let the user override the test.
2918 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2922 test -z "$as_dir" && as_dir
=.
2923 for ac_exec_ext
in '' $ac_executable_extensions; do
2924 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2925 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2926 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2935 if test -n "$CC"; then
2936 echo "$as_me:$LINENO: result: $CC" >&5
2937 echo "${ECHO_T}$CC" >&6
2939 echo "$as_me:$LINENO: result: no" >&5
2940 echo "${ECHO_T}no" >&6
2943 test -n "$CC" && break
2946 if test -z "$CC"; then
2950 # Extract the first word of "$ac_prog", so it can be a program name with args.
2951 set dummy
$ac_prog; ac_word
=$2
2952 echo "$as_me:$LINENO: checking for $ac_word" >&5
2953 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2954 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2955 echo $ECHO_N "(cached) $ECHO_C" >&6
2957 if test -n "$ac_ct_CC"; then
2958 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2960 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2964 test -z "$as_dir" && as_dir
=.
2965 for ac_exec_ext
in '' $ac_executable_extensions; do
2966 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2967 ac_cv_prog_ac_ct_CC
="$ac_prog"
2968 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2976 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2977 if test -n "$ac_ct_CC"; then
2978 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2979 echo "${ECHO_T}$ac_ct_CC" >&6
2981 echo "$as_me:$LINENO: result: no" >&5
2982 echo "${ECHO_T}no" >&6
2985 test -n "$ac_ct_CC" && break
2994 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2995 See \`config.log' for more details." >&5
2996 echo "$as_me: error: no acceptable C compiler found in \$PATH
2997 See \`config.log' for more details." >&2;}
2998 { (exit 1); exit 1; }; }
3000 # Provide some information about the compiler.
3001 echo "$as_me:$LINENO:" \
3002 "checking for C compiler version" >&5
3003 ac_compiler
=`set X $ac_compile; echo $2`
3004 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3005 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
3007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3008 (exit $ac_status); }
3009 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3010 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
3012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3013 (exit $ac_status); }
3014 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3015 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
3017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3018 (exit $ac_status); }
3020 cat >conftest.
$ac_ext <<_ACEOF
3023 cat confdefs.h
>>conftest.
$ac_ext
3024 cat >>conftest.
$ac_ext <<_ACEOF
3025 /* end confdefs.h. */
3035 ac_clean_files_save
=$ac_clean_files
3036 ac_clean_files
="$ac_clean_files a.out a.exe b.out"
3037 # Try to create an executable without -o first, disregard a.out.
3038 # It will help us diagnose broken compilers, and finding out an intuition
3040 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3041 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
3042 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3043 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
3044 (eval $ac_link_default) 2>&5
3046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3047 (exit $ac_status); }; then
3048 # Find the output, starting from the most likely. This scheme is
3049 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
3052 # Be careful to initialize this variable, since it used to be cached.
3053 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
3055 # b.out is created by i960 compilers.
3056 for ac_file
in a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
3058 test -f "$ac_file" ||
continue
3060 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
)
3063 # This is the source file.
3066 # We found the default executable, but exeext='' is most
3070 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3071 # FIXME: I believe we export ac_cv_exeext for Libtool,
3072 # but it would be cool to find out if it's true. Does anybody
3073 # maintain Libtool? --akim.
3081 echo "$as_me: failed program was:" >&5
3082 sed 's/^/| /' conftest.
$ac_ext >&5
3084 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3085 See \`config.log' for more details." >&5
3086 echo "$as_me: error: C compiler cannot create executables
3087 See \`config.log' for more details." >&2;}
3088 { (exit 77); exit 77; }; }
3091 ac_exeext
=$ac_cv_exeext
3092 echo "$as_me:$LINENO: result: $ac_file" >&5
3093 echo "${ECHO_T}$ac_file" >&6
3095 # Check the compiler produces executables we can run. If not, either
3096 # the compiler is broken, or we cross compile.
3097 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3098 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
3099 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3100 # If not cross compiling, check that we can run a simple program.
3101 if test "$cross_compiling" != yes; then
3102 if { ac_try
='./$ac_file'
3103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3107 (exit $ac_status); }; }; then
3110 if test "$cross_compiling" = maybe
; then
3113 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3114 If you meant to cross compile, use \`--host'.
3115 See \`config.log' for more details." >&5
3116 echo "$as_me: error: cannot run C compiled programs.
3117 If you meant to cross compile, use \`--host'.
3118 See \`config.log' for more details." >&2;}
3119 { (exit 1); exit 1; }; }
3123 echo "$as_me:$LINENO: result: yes" >&5
3124 echo "${ECHO_T}yes" >&6
3126 rm -f a.out a.exe conftest
$ac_cv_exeext b.out
3127 ac_clean_files
=$ac_clean_files_save
3128 # Check the compiler produces executables we can run. If not, either
3129 # the compiler is broken, or we cross compile.
3130 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3131 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3132 echo "$as_me:$LINENO: result: $cross_compiling" >&5
3133 echo "${ECHO_T}$cross_compiling" >&6
3135 echo "$as_me:$LINENO: checking for suffix of executables" >&5
3136 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3137 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3138 (eval $ac_link) 2>&5
3140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3141 (exit $ac_status); }; then
3142 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3143 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3144 # work properly (i.e., refer to `conftest.exe'), while it won't with
3146 for ac_file
in conftest.exe conftest conftest.
*; do
3147 test -f "$ac_file" ||
continue
3149 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
3150 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3157 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3158 See \`config.log' for more details." >&5
3159 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3160 See \`config.log' for more details." >&2;}
3161 { (exit 1); exit 1; }; }
3164 rm -f conftest
$ac_cv_exeext
3165 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3166 echo "${ECHO_T}$ac_cv_exeext" >&6
3168 rm -f conftest.
$ac_ext
3169 EXEEXT
=$ac_cv_exeext
3171 echo "$as_me:$LINENO: checking for suffix of object files" >&5
3172 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
3173 if test "${ac_cv_objext+set}" = set; then
3174 echo $ECHO_N "(cached) $ECHO_C" >&6
3176 cat >conftest.
$ac_ext <<_ACEOF
3179 cat confdefs.h
>>conftest.
$ac_ext
3180 cat >>conftest.
$ac_ext <<_ACEOF
3181 /* end confdefs.h. */
3191 rm -f conftest.o conftest.obj
3192 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3193 (eval $ac_compile) 2>&5
3195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3196 (exit $ac_status); }; then
3197 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3199 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg
) ;;
3200 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
3205 echo "$as_me: failed program was:" >&5
3206 sed 's/^/| /' conftest.
$ac_ext >&5
3208 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3209 See \`config.log' for more details." >&5
3210 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3211 See \`config.log' for more details." >&2;}
3212 { (exit 1); exit 1; }; }
3215 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
3217 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3218 echo "${ECHO_T}$ac_cv_objext" >&6
3219 OBJEXT
=$ac_cv_objext
3221 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3222 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3223 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3224 echo $ECHO_N "(cached) $ECHO_C" >&6
3226 cat >conftest.
$ac_ext <<_ACEOF
3229 cat confdefs.h
>>conftest.
$ac_ext
3230 cat >>conftest.
$ac_ext <<_ACEOF
3231 /* end confdefs.h. */
3244 rm -f conftest.
$ac_objext
3245 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3246 (eval $ac_compile) 2>conftest.er1
3248 grep -v '^ *+' conftest.er1
>conftest.err
3250 cat conftest.err
>&5
3251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3252 (exit $ac_status); } &&
3253 { ac_try
='test -z "$ac_c_werror_flag"
3254 || test ! -s conftest.err'
3255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3259 (exit $ac_status); }; } &&
3260 { ac_try
='test -s conftest.$ac_objext'
3261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3265 (exit $ac_status); }; }; then
3268 echo "$as_me: failed program was:" >&5
3269 sed 's/^/| /' conftest.
$ac_ext >&5
3273 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3274 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
3277 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3278 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3279 GCC
=`test $ac_compiler_gnu = yes && echo yes`
3280 ac_test_CFLAGS
=${CFLAGS+set}
3281 ac_save_CFLAGS
=$CFLAGS
3283 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3284 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3285 if test "${ac_cv_prog_cc_g+set}" = set; then
3286 echo $ECHO_N "(cached) $ECHO_C" >&6
3288 cat >conftest.
$ac_ext <<_ACEOF
3291 cat confdefs.h
>>conftest.
$ac_ext
3292 cat >>conftest.
$ac_ext <<_ACEOF
3293 /* end confdefs.h. */
3303 rm -f conftest.
$ac_objext
3304 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3305 (eval $ac_compile) 2>conftest.er1
3307 grep -v '^ *+' conftest.er1
>conftest.err
3309 cat conftest.err
>&5
3310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3311 (exit $ac_status); } &&
3312 { ac_try
='test -z "$ac_c_werror_flag"
3313 || test ! -s conftest.err'
3314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3318 (exit $ac_status); }; } &&
3319 { ac_try
='test -s conftest.$ac_objext'
3320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3324 (exit $ac_status); }; }; then
3327 echo "$as_me: failed program was:" >&5
3328 sed 's/^/| /' conftest.
$ac_ext >&5
3332 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3334 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3335 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3336 if test "$ac_test_CFLAGS" = set; then
3337 CFLAGS
=$ac_save_CFLAGS
3338 elif test $ac_cv_prog_cc_g = yes; then
3339 if test "$GCC" = yes; then
3345 if test "$GCC" = yes; then
3351 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3352 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3353 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3354 echo $ECHO_N "(cached) $ECHO_C" >&6
3356 ac_cv_prog_cc_stdc
=no
3358 cat >conftest.
$ac_ext <<_ACEOF
3361 cat confdefs.h
>>conftest.
$ac_ext
3362 cat >>conftest.
$ac_ext <<_ACEOF
3363 /* end confdefs.h. */
3366 #include <sys/types.h>
3367 #include <sys/stat.h>
3368 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3369 struct buf { int x; };
3370 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3371 static char *e (p, i)
3377 static char *f (char * (*g) (char **, int), char **p, ...)
3382 s = g (p, va_arg (v,int));
3387 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3388 function prototypes and stuff, but not '\xHH' hex character constants.
3389 These don't provoke an error unfortunately, instead are silently treated
3390 as 'x'. The following induces an error, until -std1 is added to get
3391 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3392 array size at least. It's necessary to write '\x00'==0 to get something
3393 that's true only with -std1. */
3394 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3396 int test (int i, double x);
3397 struct s1 {int (*f) (int a);};
3398 struct s2 {int (*f) (double a);};
3399 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3405 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3410 # Don't try gcc -ansi; that turns off useful extensions and
3411 # breaks some systems' header files.
3412 # AIX -qlanglvl=ansi
3413 # Ultrix and OSF/1 -std1
3414 # HP-UX 10.20 and later -Ae
3415 # HP-UX older versions -Aa -D_HPUX_SOURCE
3416 # SVR4 -Xc -D__EXTENSIONS__
3417 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3419 CC
="$ac_save_CC $ac_arg"
3420 rm -f conftest.
$ac_objext
3421 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3422 (eval $ac_compile) 2>conftest.er1
3424 grep -v '^ *+' conftest.er1
>conftest.err
3426 cat conftest.err
>&5
3427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3428 (exit $ac_status); } &&
3429 { ac_try
='test -z "$ac_c_werror_flag"
3430 || test ! -s conftest.err'
3431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3435 (exit $ac_status); }; } &&
3436 { ac_try
='test -s conftest.$ac_objext'
3437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3441 (exit $ac_status); }; }; then
3442 ac_cv_prog_cc_stdc
=$ac_arg
3445 echo "$as_me: failed program was:" >&5
3446 sed 's/^/| /' conftest.
$ac_ext >&5
3449 rm -f conftest.err conftest.
$ac_objext
3451 rm -f conftest.
$ac_ext conftest.
$ac_objext
3456 case "x$ac_cv_prog_cc_stdc" in
3458 echo "$as_me:$LINENO: result: none needed" >&5
3459 echo "${ECHO_T}none needed" >&6 ;;
3461 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3462 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3463 CC
="$CC $ac_cv_prog_cc_stdc" ;;
3466 # Some people use a C++ compiler to compile C. Since we use `exit',
3467 # in C++ we need to declare it. In case someone uses the same compiler
3468 # for both compiling C and C++ we need to have the C++ compiler decide
3469 # the declaration of exit, since it's the most demanding environment.
3470 cat >conftest.
$ac_ext <<_ACEOF
3475 rm -f conftest.
$ac_objext
3476 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3477 (eval $ac_compile) 2>conftest.er1
3479 grep -v '^ *+' conftest.er1
>conftest.err
3481 cat conftest.err
>&5
3482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3483 (exit $ac_status); } &&
3484 { ac_try
='test -z "$ac_c_werror_flag"
3485 || test ! -s conftest.err'
3486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3490 (exit $ac_status); }; } &&
3491 { ac_try
='test -s conftest.$ac_objext'
3492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3496 (exit $ac_status); }; }; then
3497 for ac_declaration
in \
3499 'extern "C" void std::exit (int) throw (); using std::exit;' \
3500 'extern "C" void std::exit (int); using std::exit;' \
3501 'extern "C" void exit (int) throw ();' \
3502 'extern "C" void exit (int);' \
3505 cat >conftest.
$ac_ext <<_ACEOF
3508 cat confdefs.h
>>conftest.
$ac_ext
3509 cat >>conftest.
$ac_ext <<_ACEOF
3510 /* end confdefs.h. */
3521 rm -f conftest.
$ac_objext
3522 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3523 (eval $ac_compile) 2>conftest.er1
3525 grep -v '^ *+' conftest.er1
>conftest.err
3527 cat conftest.err
>&5
3528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3529 (exit $ac_status); } &&
3530 { ac_try
='test -z "$ac_c_werror_flag"
3531 || test ! -s conftest.err'
3532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3536 (exit $ac_status); }; } &&
3537 { ac_try
='test -s conftest.$ac_objext'
3538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3542 (exit $ac_status); }; }; then
3545 echo "$as_me: failed program was:" >&5
3546 sed 's/^/| /' conftest.
$ac_ext >&5
3550 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3551 cat >conftest.
$ac_ext <<_ACEOF
3554 cat confdefs.h
>>conftest.
$ac_ext
3555 cat >>conftest.
$ac_ext <<_ACEOF
3556 /* end confdefs.h. */
3566 rm -f conftest.
$ac_objext
3567 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3568 (eval $ac_compile) 2>conftest.er1
3570 grep -v '^ *+' conftest.er1
>conftest.err
3572 cat conftest.err
>&5
3573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3574 (exit $ac_status); } &&
3575 { ac_try
='test -z "$ac_c_werror_flag"
3576 || test ! -s conftest.err'
3577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3581 (exit $ac_status); }; } &&
3582 { ac_try
='test -s conftest.$ac_objext'
3583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3587 (exit $ac_status); }; }; then
3590 echo "$as_me: failed program was:" >&5
3591 sed 's/^/| /' conftest.
$ac_ext >&5
3594 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3597 if test -n "$ac_declaration"; then
3598 echo '#ifdef __cplusplus' >>confdefs.h
3599 echo $ac_declaration >>confdefs.h
3600 echo '#endif' >>confdefs.h
3604 echo "$as_me: failed program was:" >&5
3605 sed 's/^/| /' conftest.
$ac_ext >&5
3608 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3610 ac_cpp
='$CPP $CPPFLAGS'
3611 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3612 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3613 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3616 # On Suns, sometimes $CPP names a directory.
3617 if test -n "$CPP" && test -d "$CPP"; then
3621 #### Some systems specify a CPP to use unless we are using GCC.
3622 #### Now that we know whether we are using GCC, we can decide whether
3623 #### to use that one.
3624 if test "x$NON_GNU_CPP" != x
&& test x
$GCC != xyes
&& test "x$CPP" = x
3629 #### Some systems specify a CC to use unless we are using GCC.
3630 #### Now that we know whether we are using GCC, we can decide whether
3631 #### to use that one.
3632 if test "x$NON_GNU_CC" != x
&& test x
$GCC != xyes
&&
3633 test x
$cc_specified != xyes
3638 if test x
$GCC = xyes
&& test "x$GCC_TEST_OPTIONS" != x
3640 CC
="$CC $GCC_TEST_OPTIONS"
3643 if test x
$GCC = x
&& test "x$NON_GCC_TEST_OPTIONS" != x
3645 CC
="$CC $NON_GCC_TEST_OPTIONS"
3648 #### Some other nice autoconf tests.
3650 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3651 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3653 if test "$LN_S" = "ln -s"; then
3654 echo "$as_me:$LINENO: result: yes" >&5
3655 echo "${ECHO_T}yes" >&6
3657 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3658 echo "${ECHO_T}no, using $LN_S" >&6
3662 ac_cpp
='$CPP $CPPFLAGS'
3663 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3664 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3665 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3666 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3667 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3668 # On Suns, sometimes $CPP names a directory.
3669 if test -n "$CPP" && test -d "$CPP"; then
3672 if test -z "$CPP"; then
3673 if test "${ac_cv_prog_CPP+set}" = set; then
3674 echo $ECHO_N "(cached) $ECHO_C" >&6
3676 # Double quotes because CPP needs to be expanded
3677 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3680 for ac_c_preproc_warn_flag
in '' yes
3682 # Use a header file that comes with gcc, so configuring glibc
3683 # with a fresh cross-compiler works.
3684 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3685 # <limits.h> exists even on freestanding compilers.
3686 # On the NeXT, cc -E runs the code through the compiler's parser,
3687 # not just through cpp. "Syntax error" is here to catch this case.
3688 cat >conftest.
$ac_ext <<_ACEOF
3691 cat confdefs.h
>>conftest.
$ac_ext
3692 cat >>conftest.
$ac_ext <<_ACEOF
3693 /* end confdefs.h. */
3695 # include <limits.h>
3697 # include <assert.h>
3701 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3702 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3704 grep -v '^ *+' conftest.er1
>conftest.err
3706 cat conftest.err
>&5
3707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3708 (exit $ac_status); } >/dev
/null
; then
3709 if test -s conftest.err
; then
3710 ac_cpp_err
=$ac_c_preproc_warn_flag
3711 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3718 if test -z "$ac_cpp_err"; then
3721 echo "$as_me: failed program was:" >&5
3722 sed 's/^/| /' conftest.
$ac_ext >&5
3724 # Broken: fails on valid input.
3727 rm -f conftest.err conftest.
$ac_ext
3729 # OK, works on sane cases. Now check whether non-existent headers
3730 # can be detected and how.
3731 cat >conftest.
$ac_ext <<_ACEOF
3734 cat confdefs.h
>>conftest.
$ac_ext
3735 cat >>conftest.
$ac_ext <<_ACEOF
3736 /* end confdefs.h. */
3737 #include <ac_nonexistent.h>
3739 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3740 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3742 grep -v '^ *+' conftest.er1
>conftest.err
3744 cat conftest.err
>&5
3745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3746 (exit $ac_status); } >/dev
/null
; then
3747 if test -s conftest.err
; then
3748 ac_cpp_err
=$ac_c_preproc_warn_flag
3749 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3756 if test -z "$ac_cpp_err"; then
3757 # Broken: success on invalid input.
3760 echo "$as_me: failed program was:" >&5
3761 sed 's/^/| /' conftest.
$ac_ext >&5
3763 # Passes both tests.
3767 rm -f conftest.err conftest.
$ac_ext
3770 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3771 rm -f conftest.err conftest.
$ac_ext
3772 if $ac_preproc_ok; then
3784 echo "$as_me:$LINENO: result: $CPP" >&5
3785 echo "${ECHO_T}$CPP" >&6
3787 for ac_c_preproc_warn_flag
in '' yes
3789 # Use a header file that comes with gcc, so configuring glibc
3790 # with a fresh cross-compiler works.
3791 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3792 # <limits.h> exists even on freestanding compilers.
3793 # On the NeXT, cc -E runs the code through the compiler's parser,
3794 # not just through cpp. "Syntax error" is here to catch this case.
3795 cat >conftest.
$ac_ext <<_ACEOF
3798 cat confdefs.h
>>conftest.
$ac_ext
3799 cat >>conftest.
$ac_ext <<_ACEOF
3800 /* end confdefs.h. */
3802 # include <limits.h>
3804 # include <assert.h>
3808 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3809 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3811 grep -v '^ *+' conftest.er1
>conftest.err
3813 cat conftest.err
>&5
3814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3815 (exit $ac_status); } >/dev
/null
; then
3816 if test -s conftest.err
; then
3817 ac_cpp_err
=$ac_c_preproc_warn_flag
3818 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3825 if test -z "$ac_cpp_err"; then
3828 echo "$as_me: failed program was:" >&5
3829 sed 's/^/| /' conftest.
$ac_ext >&5
3831 # Broken: fails on valid input.
3834 rm -f conftest.err conftest.
$ac_ext
3836 # OK, works on sane cases. Now check whether non-existent headers
3837 # can be detected and how.
3838 cat >conftest.
$ac_ext <<_ACEOF
3841 cat confdefs.h
>>conftest.
$ac_ext
3842 cat >>conftest.
$ac_ext <<_ACEOF
3843 /* end confdefs.h. */
3844 #include <ac_nonexistent.h>
3846 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3847 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3849 grep -v '^ *+' conftest.er1
>conftest.err
3851 cat conftest.err
>&5
3852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3853 (exit $ac_status); } >/dev
/null
; then
3854 if test -s conftest.err
; then
3855 ac_cpp_err
=$ac_c_preproc_warn_flag
3856 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3863 if test -z "$ac_cpp_err"; then
3864 # Broken: success on invalid input.
3867 echo "$as_me: failed program was:" >&5
3868 sed 's/^/| /' conftest.
$ac_ext >&5
3870 # Passes both tests.
3874 rm -f conftest.err conftest.
$ac_ext
3877 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3878 rm -f conftest.err conftest.
$ac_ext
3879 if $ac_preproc_ok; then
3882 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3883 See \`config.log' for more details." >&5
3884 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3885 See \`config.log' for more details." >&2;}
3886 { (exit 1); exit 1; }; }
3890 ac_cpp
='$CPP $CPPFLAGS'
3891 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3892 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3893 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3895 # Find a good install program. We prefer a C program (faster),
3896 # so one script is as good as another. But avoid the broken or
3897 # incompatible versions:
3898 # SysV /etc/install, /usr/sbin/install
3899 # SunOS /usr/etc/install
3900 # IRIX /sbin/install
3902 # AmigaOS /C/install, which installs bootblocks on floppy discs
3903 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3904 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3905 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3906 # OS/2's system install, which has a completely different semantic
3907 # ./install, which can be erroneously created by make from ./install.sh.
3908 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3909 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3910 if test -z "$INSTALL"; then
3911 if test "${ac_cv_path_install+set}" = set; then
3912 echo $ECHO_N "(cached) $ECHO_C" >&6
3914 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3918 test -z "$as_dir" && as_dir
=.
3919 # Account for people who put trailing slashes in PATH elements.
3921 .
/ | .
// |
/cC
/* | \
3922 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
3923 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
3926 # OSF1 and SCO ODT 3.0 have their own names for install.
3927 # Don't use installbsd from OSF since it installs stuff as root
3929 for ac_prog
in ginstall scoinst
install; do
3930 for ac_exec_ext
in '' $ac_executable_extensions; do
3931 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3932 if test $ac_prog = install &&
3933 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3934 # AIX install. It has an incompatible calling convention.
3936 elif test $ac_prog = install &&
3937 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3938 # program-specific install script used by HP pwplus--don't use.
3941 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
3953 if test "${ac_cv_path_install+set}" = set; then
3954 INSTALL
=$ac_cv_path_install
3956 # As a last resort, use the slow shell script. We don't cache a
3957 # path for INSTALL within a source directory, because that will
3958 # break other packages using the cache if that directory is
3959 # removed, or if the path is relative.
3960 INSTALL
=$ac_install_sh
3963 echo "$as_me:$LINENO: result: $INSTALL" >&5
3964 echo "${ECHO_T}$INSTALL" >&6
3966 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3967 # It thinks the first close brace ends the variable substitution.
3968 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
3970 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
3972 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
3974 if test "x$RANLIB" = x
; then
3975 if test -n "$ac_tool_prefix"; then
3976 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3977 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
3978 echo "$as_me:$LINENO: checking for $ac_word" >&5
3979 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3980 if test "${ac_cv_prog_RANLIB+set}" = set; then
3981 echo $ECHO_N "(cached) $ECHO_C" >&6
3983 if test -n "$RANLIB"; then
3984 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
3986 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3990 test -z "$as_dir" && as_dir
=.
3991 for ac_exec_ext
in '' $ac_executable_extensions; do
3992 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3993 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
3994 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4002 RANLIB
=$ac_cv_prog_RANLIB
4003 if test -n "$RANLIB"; then
4004 echo "$as_me:$LINENO: result: $RANLIB" >&5
4005 echo "${ECHO_T}$RANLIB" >&6
4007 echo "$as_me:$LINENO: result: no" >&5
4008 echo "${ECHO_T}no" >&6
4012 if test -z "$ac_cv_prog_RANLIB"; then
4013 ac_ct_RANLIB
=$RANLIB
4014 # Extract the first word of "ranlib", so it can be a program name with args.
4015 set dummy ranlib
; ac_word
=$2
4016 echo "$as_me:$LINENO: checking for $ac_word" >&5
4017 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4018 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4019 echo $ECHO_N "(cached) $ECHO_C" >&6
4021 if test -n "$ac_ct_RANLIB"; then
4022 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
4024 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4028 test -z "$as_dir" && as_dir
=.
4029 for ac_exec_ext
in '' $ac_executable_extensions; do
4030 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4031 ac_cv_prog_ac_ct_RANLIB
="ranlib"
4032 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4038 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
4041 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
4042 if test -n "$ac_ct_RANLIB"; then
4043 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4044 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4046 echo "$as_me:$LINENO: result: no" >&5
4047 echo "${ECHO_T}no" >&6
4050 RANLIB
=$ac_ct_RANLIB
4052 RANLIB
="$ac_cv_prog_RANLIB"
4056 # Extract the first word of "install-info", so it can be a program name with args.
4057 set dummy install-info
; ac_word
=$2
4058 echo "$as_me:$LINENO: checking for $ac_word" >&5
4059 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4060 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4061 echo $ECHO_N "(cached) $ECHO_C" >&6
4063 case $INSTALL_INFO in
4065 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
4068 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4072 test -z "$as_dir" && as_dir
=.
4073 for ac_exec_ext
in '' $ac_executable_extensions; do
4074 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4075 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
4076 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4085 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
4087 if test -n "$INSTALL_INFO"; then
4088 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4089 echo "${ECHO_T}$INSTALL_INFO" >&6
4091 echo "$as_me:$LINENO: result: no" >&5
4092 echo "${ECHO_T}no" >&6
4095 # Extract the first word of "install-info", so it can be a program name with args.
4096 set dummy install-info
; ac_word
=$2
4097 echo "$as_me:$LINENO: checking for $ac_word" >&5
4098 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4099 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4100 echo $ECHO_N "(cached) $ECHO_C" >&6
4102 case $INSTALL_INFO in
4104 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
4107 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4108 for as_dir
in /usr
/sbin
4111 test -z "$as_dir" && as_dir
=.
4112 for ac_exec_ext
in '' $ac_executable_extensions; do
4113 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4114 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
4115 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4124 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
4126 if test -n "$INSTALL_INFO"; then
4127 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4128 echo "${ECHO_T}$INSTALL_INFO" >&6
4130 echo "$as_me:$LINENO: result: no" >&5
4131 echo "${ECHO_T}no" >&6
4134 # Extract the first word of "install-info", so it can be a program name with args.
4135 set dummy install-info
; ac_word
=$2
4136 echo "$as_me:$LINENO: checking for $ac_word" >&5
4137 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4138 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4139 echo $ECHO_N "(cached) $ECHO_C" >&6
4141 case $INSTALL_INFO in
4143 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
4146 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4150 test -z "$as_dir" && as_dir
=.
4151 for ac_exec_ext
in '' $ac_executable_extensions; do
4152 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4153 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
4154 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4160 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO
=":"
4164 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
4166 if test -n "$INSTALL_INFO"; then
4167 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4168 echo "${ECHO_T}$INSTALL_INFO" >&6
4170 echo "$as_me:$LINENO: result: no" >&5
4171 echo "${ECHO_T}no" >&6
4176 if test x
$GCC = xyes
&& test "x$GCC_LINK_TEST_OPTIONS" != x
4178 ac_link
="$ac_link $GCC_LINK_TEST_OPTIONS"
4181 if test x
$GCC = x
&& test "x$NON_GCC_LINK_TEST_OPTIONS" != x
4183 ac_link
="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
4187 late_LDFLAGS
=$LDFLAGS
4188 if test "$GCC" = yes; then
4189 LDFLAGS
="$LDFLAGS -Wl,-znocombreloc"
4191 LDFLAGS
="$LDFLAGS -znocombreloc"
4194 echo "$as_me:$LINENO: checking For -znocombreloc" >&5
4195 echo $ECHO_N "checking For -znocombreloc... $ECHO_C" >&6
4197 cat >conftest.
$ac_ext <<_ACEOF
4200 rm -f conftest.
$ac_objext conftest
$ac_exeext
4201 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4202 (eval $ac_link) 2>conftest.er1
4204 grep -v '^ *+' conftest.er1
>conftest.err
4206 cat conftest.err
>&5
4207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4208 (exit $ac_status); } &&
4209 { ac_try
='test -z "$ac_c_werror_flag"
4210 || test ! -s conftest.err'
4211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4215 (exit $ac_status); }; } &&
4216 { ac_try
='test -s conftest$ac_exeext'
4217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4221 (exit $ac_status); }; }; then
4222 echo "$as_me:$LINENO: result: yes" >&5
4223 echo "${ECHO_T}yes" >&6
4225 echo "$as_me: failed program was:" >&5
4226 sed 's/^/| /' conftest.
$ac_ext >&5
4228 LDFLAGS
=$late_LDFLAGS
4229 echo "$as_me:$LINENO: result: no" >&5
4230 echo "${ECHO_T}no" >&6
4232 rm -f conftest.err conftest.
$ac_objext \
4233 conftest
$ac_exeext conftest.
$ac_ext
4236 echo "$as_me:$LINENO: checking for egrep" >&5
4237 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4238 if test "${ac_cv_prog_egrep+set}" = set; then
4239 echo $ECHO_N "(cached) $ECHO_C" >&6
4241 if echo a |
(grep -E '(a|b)') >/dev
/null
2>&1
4242 then ac_cv_prog_egrep
='grep -E'
4243 else ac_cv_prog_egrep
='egrep'
4246 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4247 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4248 EGREP
=$ac_cv_prog_egrep
4252 echo "$as_me:$LINENO: checking for AIX" >&5
4253 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
4254 cat >conftest.
$ac_ext <<_ACEOF
4257 cat confdefs.h
>>conftest.
$ac_ext
4258 cat >>conftest.
$ac_ext <<_ACEOF
4259 /* end confdefs.h. */
4265 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4266 $EGREP "yes" >/dev
/null
2>&1; then
4267 echo "$as_me:$LINENO: result: yes" >&5
4268 echo "${ECHO_T}yes" >&6
4269 cat >>confdefs.h
<<\_ACEOF
4270 #define _ALL_SOURCE 1
4274 echo "$as_me:$LINENO: result: no" >&5
4275 echo "${ECHO_T}no" >&6
4282 #### Extract some information from the operating system and machine files.
4284 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
4285 - which libraries the lib-src programs will want, and
4286 - whether the GNU malloc routines are usable..." >&5
4287 echo "$as_me: checking the machine- and system-dependent files to find out
4288 - which libraries the lib-src programs will want, and
4289 - whether the GNU malloc routines are usable..." >&6;}
4291 ### First figure out CFLAGS (which we use for running the compiler here)
4292 ### and REAL_CFLAGS (which we use for real compilation).
4293 ### The two are the same except on a few systems, where they are made
4294 ### different to work around various lossages. For example,
4295 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
4296 ### as implying static linking.
4298 ### If the CFLAGS env var is specified, we use that value
4299 ### instead of the default.
4301 ### It's not important that this name contain the PID; you can't run
4302 ### two configures in the same directory and have anything work
4304 tempcname
="conftest.c"
4307 #include "'${srcdir}'/src/'${opsysfile}'"
4308 #include "'${srcdir}'/src/'${machfile}'"
4309 #ifndef LIBS_MACHINE
4310 #define LIBS_MACHINE
4315 #ifndef C_SWITCH_SYSTEM
4316 #define C_SWITCH_SYSTEM
4318 #ifndef C_SWITCH_MACHINE
4319 #define C_SWITCH_MACHINE
4321 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
4322 configure___ c_switch_system=C_SWITCH_SYSTEM
4323 configure___ c_switch_machine=C_SWITCH_MACHINE
4326 #define LIB_X11_LIB -lX11
4329 #ifndef LIBX11_MACHINE
4330 #define LIBX11_MACHINE
4333 #ifndef LIBX11_SYSTEM
4334 #define LIBX11_SYSTEM
4336 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
4339 configure___ unexec=UNEXEC
4341 configure___ unexec=unexec.o
4344 #ifdef SYSTEM_MALLOC
4345 configure___ system_malloc=yes
4347 configure___ system_malloc=no
4350 #ifdef USE_MMAP_FOR_BUFFERS
4351 configure___ use_mmap_for_buffers=yes
4353 configure___ use_mmap_for_buffers=no
4356 #ifndef C_DEBUG_SWITCH
4357 #define C_DEBUG_SWITCH -g
4360 #ifndef C_OPTIMIZE_SWITCH
4362 #define C_OPTIMIZE_SWITCH -O2
4364 #define C_OPTIMIZE_SWITCH -O
4368 #ifndef LD_SWITCH_MACHINE
4369 #define LD_SWITCH_MACHINE
4372 #ifndef LD_SWITCH_SYSTEM
4373 #define LD_SWITCH_SYSTEM
4376 #ifndef LD_SWITCH_X_SITE_AUX
4377 #define LD_SWITCH_X_SITE_AUX
4380 configure___ ld_switch_system=LD_SWITCH_SYSTEM
4381 configure___ ld_switch_machine=LD_SWITCH_MACHINE
4383 #ifdef THIS_IS_CONFIGURE
4385 /* Get the CFLAGS for tests in configure. */
4387 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
4389 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4392 #else /* not THIS_IS_CONFIGURE */
4394 /* Get the CFLAGS for real compilation. */
4396 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
4398 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4401 #endif /* not THIS_IS_CONFIGURE */
4404 # The value of CPP is a quoted variable reference, so we need to do this
4405 # to get its actual value...
4406 CPP
=`eval "echo $CPP"`
4407 eval `${CPP} -Isrc ${tempcname} \
4408 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4409 if test "x$SPECIFIED_CFLAGS" = x
; then
4410 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
4411 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4413 REAL_CFLAGS
="$CFLAGS"
4417 ac_link
="$ac_link $ld_switch_machine $ld_switch_system"
4419 ### Make sure subsequent tests use flags consistent with the build flags.
4421 if test x
"${OVERRIDE_CPPFLAGS}" != x
; then
4422 CPPFLAGS
="${OVERRIDE_CPPFLAGS}"
4424 CPPFLAGS
="$c_switch_system $c_switch_machine $CPPFLAGS"
4430 cat >>confdefs.h
<<\_ACEOF
4431 #define _GNU_SOURCE 1
4436 # Check whether --enable-largefile or --disable-largefile was given.
4437 if test "${enable_largefile+set}" = set; then
4438 enableval
="$enable_largefile"
4441 if test "$enable_largefile" != no
; then
4443 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4444 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
4445 if test "${ac_cv_sys_largefile_CC+set}" = set; then
4446 echo $ECHO_N "(cached) $ECHO_C" >&6
4448 ac_cv_sys_largefile_CC
=no
4449 if test "$GCC" != yes; then
4452 # IRIX 6.2 and later do not support large files by default,
4453 # so use the C compiler's -n32 option if that helps.
4454 cat >conftest.
$ac_ext <<_ACEOF
4457 cat confdefs.h
>>conftest.
$ac_ext
4458 cat >>conftest.
$ac_ext <<_ACEOF
4459 /* end confdefs.h. */
4460 #include <sys/types.h>
4461 /* Check that off_t can represent 2**63 - 1 correctly.
4462 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4463 since some C++ compilers masquerading as C compilers
4464 incorrectly reject 9223372036854775807. */
4465 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4466 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4467 && LARGE_OFF_T % 2147483647 == 1)
4477 rm -f conftest.
$ac_objext
4478 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4479 (eval $ac_compile) 2>conftest.er1
4481 grep -v '^ *+' conftest.er1
>conftest.err
4483 cat conftest.err
>&5
4484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4485 (exit $ac_status); } &&
4486 { ac_try
='test -z "$ac_c_werror_flag"
4487 || test ! -s conftest.err'
4488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4492 (exit $ac_status); }; } &&
4493 { ac_try
='test -s conftest.$ac_objext'
4494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4498 (exit $ac_status); }; }; then
4501 echo "$as_me: failed program was:" >&5
4502 sed 's/^/| /' conftest.
$ac_ext >&5
4505 rm -f conftest.err conftest.
$ac_objext
4507 rm -f conftest.
$ac_objext
4508 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4509 (eval $ac_compile) 2>conftest.er1
4511 grep -v '^ *+' conftest.er1
>conftest.err
4513 cat conftest.err
>&5
4514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4515 (exit $ac_status); } &&
4516 { ac_try
='test -z "$ac_c_werror_flag"
4517 || test ! -s conftest.err'
4518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4522 (exit $ac_status); }; } &&
4523 { ac_try
='test -s conftest.$ac_objext'
4524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4528 (exit $ac_status); }; }; then
4529 ac_cv_sys_largefile_CC
=' -n32'; break
4531 echo "$as_me: failed program was:" >&5
4532 sed 's/^/| /' conftest.
$ac_ext >&5
4535 rm -f conftest.err conftest.
$ac_objext
4539 rm -f conftest.
$ac_ext
4542 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4543 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
4544 if test "$ac_cv_sys_largefile_CC" != no
; then
4545 CC
=$CC$ac_cv_sys_largefile_CC
4548 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4549 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
4550 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4551 echo $ECHO_N "(cached) $ECHO_C" >&6
4554 ac_cv_sys_file_offset_bits
=no
4555 cat >conftest.
$ac_ext <<_ACEOF
4558 cat confdefs.h
>>conftest.
$ac_ext
4559 cat >>conftest.
$ac_ext <<_ACEOF
4560 /* end confdefs.h. */
4561 #include <sys/types.h>
4562 /* Check that off_t can represent 2**63 - 1 correctly.
4563 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4564 since some C++ compilers masquerading as C compilers
4565 incorrectly reject 9223372036854775807. */
4566 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4567 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4568 && LARGE_OFF_T % 2147483647 == 1)
4578 rm -f conftest.
$ac_objext
4579 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4580 (eval $ac_compile) 2>conftest.er1
4582 grep -v '^ *+' conftest.er1
>conftest.err
4584 cat conftest.err
>&5
4585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4586 (exit $ac_status); } &&
4587 { ac_try
='test -z "$ac_c_werror_flag"
4588 || test ! -s conftest.err'
4589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4593 (exit $ac_status); }; } &&
4594 { ac_try
='test -s conftest.$ac_objext'
4595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4599 (exit $ac_status); }; }; then
4602 echo "$as_me: failed program was:" >&5
4603 sed 's/^/| /' conftest.
$ac_ext >&5
4606 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4607 cat >conftest.
$ac_ext <<_ACEOF
4610 cat confdefs.h
>>conftest.
$ac_ext
4611 cat >>conftest.
$ac_ext <<_ACEOF
4612 /* end confdefs.h. */
4613 #define _FILE_OFFSET_BITS 64
4614 #include <sys/types.h>
4615 /* Check that off_t can represent 2**63 - 1 correctly.
4616 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4617 since some C++ compilers masquerading as C compilers
4618 incorrectly reject 9223372036854775807. */
4619 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4620 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4621 && LARGE_OFF_T % 2147483647 == 1)
4631 rm -f conftest.
$ac_objext
4632 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4633 (eval $ac_compile) 2>conftest.er1
4635 grep -v '^ *+' conftest.er1
>conftest.err
4637 cat conftest.err
>&5
4638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4639 (exit $ac_status); } &&
4640 { ac_try
='test -z "$ac_c_werror_flag"
4641 || test ! -s conftest.err'
4642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4646 (exit $ac_status); }; } &&
4647 { ac_try
='test -s conftest.$ac_objext'
4648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4652 (exit $ac_status); }; }; then
4653 ac_cv_sys_file_offset_bits
=64; break
4655 echo "$as_me: failed program was:" >&5
4656 sed 's/^/| /' conftest.
$ac_ext >&5
4659 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4663 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
4664 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
4665 if test "$ac_cv_sys_file_offset_bits" != no
; then
4667 cat >>confdefs.h
<<_ACEOF
4668 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4673 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
4674 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
4675 if test "${ac_cv_sys_large_files+set}" = set; then
4676 echo $ECHO_N "(cached) $ECHO_C" >&6
4679 ac_cv_sys_large_files
=no
4680 cat >conftest.
$ac_ext <<_ACEOF
4683 cat confdefs.h
>>conftest.
$ac_ext
4684 cat >>conftest.
$ac_ext <<_ACEOF
4685 /* end confdefs.h. */
4686 #include <sys/types.h>
4687 /* Check that off_t can represent 2**63 - 1 correctly.
4688 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4689 since some C++ compilers masquerading as C compilers
4690 incorrectly reject 9223372036854775807. */
4691 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4692 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4693 && LARGE_OFF_T % 2147483647 == 1)
4703 rm -f conftest.
$ac_objext
4704 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4705 (eval $ac_compile) 2>conftest.er1
4707 grep -v '^ *+' conftest.er1
>conftest.err
4709 cat conftest.err
>&5
4710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4711 (exit $ac_status); } &&
4712 { ac_try
='test -z "$ac_c_werror_flag"
4713 || test ! -s conftest.err'
4714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4718 (exit $ac_status); }; } &&
4719 { ac_try
='test -s conftest.$ac_objext'
4720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4724 (exit $ac_status); }; }; then
4727 echo "$as_me: failed program was:" >&5
4728 sed 's/^/| /' conftest.
$ac_ext >&5
4731 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4732 cat >conftest.
$ac_ext <<_ACEOF
4735 cat confdefs.h
>>conftest.
$ac_ext
4736 cat >>conftest.
$ac_ext <<_ACEOF
4737 /* end confdefs.h. */
4738 #define _LARGE_FILES 1
4739 #include <sys/types.h>
4740 /* Check that off_t can represent 2**63 - 1 correctly.
4741 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4742 since some C++ compilers masquerading as C compilers
4743 incorrectly reject 9223372036854775807. */
4744 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4745 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4746 && LARGE_OFF_T % 2147483647 == 1)
4756 rm -f conftest.
$ac_objext
4757 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4758 (eval $ac_compile) 2>conftest.er1
4760 grep -v '^ *+' conftest.er1
>conftest.err
4762 cat conftest.err
>&5
4763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4764 (exit $ac_status); } &&
4765 { ac_try
='test -z "$ac_c_werror_flag"
4766 || test ! -s conftest.err'
4767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4771 (exit $ac_status); }; } &&
4772 { ac_try
='test -s conftest.$ac_objext'
4773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4777 (exit $ac_status); }; }; then
4778 ac_cv_sys_large_files
=1; break
4780 echo "$as_me: failed program was:" >&5
4781 sed 's/^/| /' conftest.
$ac_ext >&5
4784 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4788 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
4789 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
4790 if test "$ac_cv_sys_large_files" != no
; then
4792 cat >>confdefs.h
<<_ACEOF
4793 #define _LARGE_FILES $ac_cv_sys_large_files
4801 if test "${with_sound}" != "no"; then
4802 # Sound support for GNU/Linux and the free BSDs.
4803 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4804 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4805 if test "${ac_cv_header_stdc+set}" = set; then
4806 echo $ECHO_N "(cached) $ECHO_C" >&6
4808 cat >conftest.
$ac_ext <<_ACEOF
4811 cat confdefs.h
>>conftest.
$ac_ext
4812 cat >>conftest.
$ac_ext <<_ACEOF
4813 /* end confdefs.h. */
4827 rm -f conftest.
$ac_objext
4828 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4829 (eval $ac_compile) 2>conftest.er1
4831 grep -v '^ *+' conftest.er1
>conftest.err
4833 cat conftest.err
>&5
4834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4835 (exit $ac_status); } &&
4836 { ac_try
='test -z "$ac_c_werror_flag"
4837 || test ! -s conftest.err'
4838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4842 (exit $ac_status); }; } &&
4843 { ac_try
='test -s conftest.$ac_objext'
4844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4848 (exit $ac_status); }; }; then
4849 ac_cv_header_stdc
=yes
4851 echo "$as_me: failed program was:" >&5
4852 sed 's/^/| /' conftest.
$ac_ext >&5
4854 ac_cv_header_stdc
=no
4856 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4858 if test $ac_cv_header_stdc = yes; then
4859 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4860 cat >conftest.
$ac_ext <<_ACEOF
4863 cat confdefs.h
>>conftest.
$ac_ext
4864 cat >>conftest.
$ac_ext <<_ACEOF
4865 /* end confdefs.h. */
4869 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4870 $EGREP "memchr" >/dev
/null
2>&1; then
4873 ac_cv_header_stdc
=no
4879 if test $ac_cv_header_stdc = yes; then
4880 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4881 cat >conftest.
$ac_ext <<_ACEOF
4884 cat confdefs.h
>>conftest.
$ac_ext
4885 cat >>conftest.
$ac_ext <<_ACEOF
4886 /* end confdefs.h. */
4890 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4891 $EGREP "free" >/dev
/null
2>&1; then
4894 ac_cv_header_stdc
=no
4900 if test $ac_cv_header_stdc = yes; then
4901 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4902 if test "$cross_compiling" = yes; then
4905 cat >conftest.
$ac_ext <<_ACEOF
4908 cat confdefs.h
>>conftest.
$ac_ext
4909 cat >>conftest.
$ac_ext <<_ACEOF
4910 /* end confdefs.h. */
4912 #if ((' ' & 0x0FF) == 0x020)
4913 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4914 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4916 # define ISLOWER(c) \
4917 (('a' <= (c) && (c) <= 'i') \
4918 || ('j' <= (c) && (c) <= 'r') \
4919 || ('s' <= (c) && (c) <= 'z'))
4920 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4923 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4928 for (i = 0; i < 256; i++)
4929 if (XOR (islower (i), ISLOWER (i))
4930 || toupper (i) != TOUPPER (i))
4935 rm -f conftest
$ac_exeext
4936 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4937 (eval $ac_link) 2>&5
4939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4940 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4945 (exit $ac_status); }; }; then
4948 echo "$as_me: program exited with status $ac_status" >&5
4949 echo "$as_me: failed program was:" >&5
4950 sed 's/^/| /' conftest.
$ac_ext >&5
4953 ac_cv_header_stdc
=no
4955 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4959 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4960 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4961 if test $ac_cv_header_stdc = yes; then
4963 cat >>confdefs.h
<<\_ACEOF
4964 #define STDC_HEADERS 1
4969 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4979 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4980 inttypes.h stdint.h unistd.h
4982 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4983 echo "$as_me:$LINENO: checking for $ac_header" >&5
4984 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4985 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4986 echo $ECHO_N "(cached) $ECHO_C" >&6
4988 cat >conftest.
$ac_ext <<_ACEOF
4991 cat confdefs.h
>>conftest.
$ac_ext
4992 cat >>conftest.
$ac_ext <<_ACEOF
4993 /* end confdefs.h. */
4994 $ac_includes_default
4996 #include <$ac_header>
4998 rm -f conftest.
$ac_objext
4999 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5000 (eval $ac_compile) 2>conftest.er1
5002 grep -v '^ *+' conftest.er1
>conftest.err
5004 cat conftest.err
>&5
5005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5006 (exit $ac_status); } &&
5007 { ac_try
='test -z "$ac_c_werror_flag"
5008 || test ! -s conftest.err'
5009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5013 (exit $ac_status); }; } &&
5014 { ac_try
='test -s conftest.$ac_objext'
5015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5019 (exit $ac_status); }; }; then
5020 eval "$as_ac_Header=yes"
5022 echo "$as_me: failed program was:" >&5
5023 sed 's/^/| /' conftest.
$ac_ext >&5
5025 eval "$as_ac_Header=no"
5027 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5029 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5030 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5031 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5032 cat >>confdefs.h
<<_ACEOF
5033 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5044 for ac_header
in machine
/soundcard.h sys
/soundcard.h soundcard.h
5046 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5047 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5048 echo "$as_me:$LINENO: checking for $ac_header" >&5
5049 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5050 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5051 echo $ECHO_N "(cached) $ECHO_C" >&6
5053 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5054 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5056 # Is the header compilable?
5057 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5058 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5059 cat >conftest.
$ac_ext <<_ACEOF
5062 cat confdefs.h
>>conftest.
$ac_ext
5063 cat >>conftest.
$ac_ext <<_ACEOF
5064 /* end confdefs.h. */
5065 $ac_includes_default
5066 #include <$ac_header>
5068 rm -f conftest.
$ac_objext
5069 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5070 (eval $ac_compile) 2>conftest.er1
5072 grep -v '^ *+' conftest.er1
>conftest.err
5074 cat conftest.err
>&5
5075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5076 (exit $ac_status); } &&
5077 { ac_try
='test -z "$ac_c_werror_flag"
5078 || test ! -s conftest.err'
5079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5083 (exit $ac_status); }; } &&
5084 { ac_try
='test -s conftest.$ac_objext'
5085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5089 (exit $ac_status); }; }; then
5090 ac_header_compiler
=yes
5092 echo "$as_me: failed program was:" >&5
5093 sed 's/^/| /' conftest.
$ac_ext >&5
5095 ac_header_compiler
=no
5097 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5098 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5099 echo "${ECHO_T}$ac_header_compiler" >&6
5101 # Is the header present?
5102 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5103 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5104 cat >conftest.
$ac_ext <<_ACEOF
5107 cat confdefs.h
>>conftest.
$ac_ext
5108 cat >>conftest.
$ac_ext <<_ACEOF
5109 /* end confdefs.h. */
5110 #include <$ac_header>
5112 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5113 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5115 grep -v '^ *+' conftest.er1
>conftest.err
5117 cat conftest.err
>&5
5118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5119 (exit $ac_status); } >/dev
/null
; then
5120 if test -s conftest.err
; then
5121 ac_cpp_err
=$ac_c_preproc_warn_flag
5122 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
5129 if test -z "$ac_cpp_err"; then
5130 ac_header_preproc
=yes
5132 echo "$as_me: failed program was:" >&5
5133 sed 's/^/| /' conftest.
$ac_ext >&5
5135 ac_header_preproc
=no
5137 rm -f conftest.err conftest.
$ac_ext
5138 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5139 echo "${ECHO_T}$ac_header_preproc" >&6
5141 # So? What about this header?
5142 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5144 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5145 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5146 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5147 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5148 ac_header_preproc
=yes
5151 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5152 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5153 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5154 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5155 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5156 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5157 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5158 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5159 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5160 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5161 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5162 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5165 ## ------------------------------------------ ##
5166 ## Report this to the AC_PACKAGE_NAME lists. ##
5167 ## ------------------------------------------ ##
5170 sed "s/^/$as_me: WARNING: /" >&2
5173 echo "$as_me:$LINENO: checking for $ac_header" >&5
5174 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5175 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5176 echo $ECHO_N "(cached) $ECHO_C" >&6
5178 eval "$as_ac_Header=\$ac_header_preproc"
5180 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5181 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5184 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5185 cat >>confdefs.h
<<_ACEOF
5186 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5193 # Emulation library used on NetBSD.
5194 echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
5195 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
5196 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
5197 echo $ECHO_N "(cached) $ECHO_C" >&6
5199 ac_check_lib_save_LIBS
=$LIBS
5200 LIBS
="-lossaudio $LIBS"
5201 cat >conftest.
$ac_ext <<_ACEOF
5204 cat confdefs.h
>>conftest.
$ac_ext
5205 cat >>conftest.
$ac_ext <<_ACEOF
5206 /* end confdefs.h. */
5208 /* Override any gcc2 internal prototype to avoid an error. */
5212 /* We use char because int might match the return type of a gcc2
5213 builtin and then its argument prototype would still apply. */
5223 rm -f conftest.
$ac_objext conftest
$ac_exeext
5224 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5225 (eval $ac_link) 2>conftest.er1
5227 grep -v '^ *+' conftest.er1
>conftest.err
5229 cat conftest.err
>&5
5230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5231 (exit $ac_status); } &&
5232 { ac_try
='test -z "$ac_c_werror_flag"
5233 || test ! -s conftest.err'
5234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5238 (exit $ac_status); }; } &&
5239 { ac_try
='test -s conftest$ac_exeext'
5240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5244 (exit $ac_status); }; }; then
5245 ac_cv_lib_ossaudio__oss_ioctl
=yes
5247 echo "$as_me: failed program was:" >&5
5248 sed 's/^/| /' conftest.
$ac_ext >&5
5250 ac_cv_lib_ossaudio__oss_ioctl
=no
5252 rm -f conftest.err conftest.
$ac_objext \
5253 conftest
$ac_exeext conftest.
$ac_ext
5254 LIBS
=$ac_check_lib_save_LIBS
5256 echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
5257 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
5258 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
5290 for ac_header
in sys
/select.h sys
/timeb.h sys
/time.h unistd.h utime.h \
5291 linux
/version.h sys
/systeminfo.h termios.h limits.h string.h stdlib.h \
5292 termcap.h stdio_ext.h fcntl.h
strings.h coff.h pty.h sys
/mman.h \
5293 sys
/param.h sys
/vlimit.h sys
/resource.h locale.h sys
/_mbstate_t.h
5295 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5296 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5297 echo "$as_me:$LINENO: checking for $ac_header" >&5
5298 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5299 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5300 echo $ECHO_N "(cached) $ECHO_C" >&6
5302 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5303 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5305 # Is the header compilable?
5306 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5307 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5308 cat >conftest.
$ac_ext <<_ACEOF
5311 cat confdefs.h
>>conftest.
$ac_ext
5312 cat >>conftest.
$ac_ext <<_ACEOF
5313 /* end confdefs.h. */
5314 $ac_includes_default
5315 #include <$ac_header>
5317 rm -f conftest.
$ac_objext
5318 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5319 (eval $ac_compile) 2>conftest.er1
5321 grep -v '^ *+' conftest.er1
>conftest.err
5323 cat conftest.err
>&5
5324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5325 (exit $ac_status); } &&
5326 { ac_try
='test -z "$ac_c_werror_flag"
5327 || test ! -s conftest.err'
5328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5332 (exit $ac_status); }; } &&
5333 { ac_try
='test -s conftest.$ac_objext'
5334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5338 (exit $ac_status); }; }; then
5339 ac_header_compiler
=yes
5341 echo "$as_me: failed program was:" >&5
5342 sed 's/^/| /' conftest.
$ac_ext >&5
5344 ac_header_compiler
=no
5346 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5347 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5348 echo "${ECHO_T}$ac_header_compiler" >&6
5350 # Is the header present?
5351 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5352 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5353 cat >conftest.
$ac_ext <<_ACEOF
5356 cat confdefs.h
>>conftest.
$ac_ext
5357 cat >>conftest.
$ac_ext <<_ACEOF
5358 /* end confdefs.h. */
5359 #include <$ac_header>
5361 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5362 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5364 grep -v '^ *+' conftest.er1
>conftest.err
5366 cat conftest.err
>&5
5367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5368 (exit $ac_status); } >/dev
/null
; then
5369 if test -s conftest.err
; then
5370 ac_cpp_err
=$ac_c_preproc_warn_flag
5371 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
5378 if test -z "$ac_cpp_err"; then
5379 ac_header_preproc
=yes
5381 echo "$as_me: failed program was:" >&5
5382 sed 's/^/| /' conftest.
$ac_ext >&5
5384 ac_header_preproc
=no
5386 rm -f conftest.err conftest.
$ac_ext
5387 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5388 echo "${ECHO_T}$ac_header_preproc" >&6
5390 # So? What about this header?
5391 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5393 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5394 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5395 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5396 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5397 ac_header_preproc
=yes
5400 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5401 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5402 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5403 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5404 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5405 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5406 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5407 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5408 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5409 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5410 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5411 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5414 ## ------------------------------------------ ##
5415 ## Report this to the AC_PACKAGE_NAME lists. ##
5416 ## ------------------------------------------ ##
5419 sed "s/^/$as_me: WARNING: /" >&2
5422 echo "$as_me:$LINENO: checking for $ac_header" >&5
5423 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5424 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5425 echo $ECHO_N "(cached) $ECHO_C" >&6
5427 eval "$as_ac_Header=\$ac_header_preproc"
5429 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5430 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5433 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5434 cat >>confdefs.h
<<_ACEOF
5435 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5443 for ac_header
in term.h
5445 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5446 echo "$as_me:$LINENO: checking for $ac_header" >&5
5447 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5448 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5449 echo $ECHO_N "(cached) $ECHO_C" >&6
5451 cat >conftest.
$ac_ext <<_ACEOF
5454 cat confdefs.h
>>conftest.
$ac_ext
5455 cat >>conftest.
$ac_ext <<_ACEOF
5456 /* end confdefs.h. */
5457 #include <$ac_header>
5459 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5460 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5462 grep -v '^ *+' conftest.er1
>conftest.err
5464 cat conftest.err
>&5
5465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5466 (exit $ac_status); } >/dev
/null
; then
5467 if test -s conftest.err
; then
5468 ac_cpp_err
=$ac_c_preproc_warn_flag
5469 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
5476 if test -z "$ac_cpp_err"; then
5477 eval "$as_ac_Header=yes"
5479 echo "$as_me: failed program was:" >&5
5480 sed 's/^/| /' conftest.
$ac_ext >&5
5482 eval "$as_ac_Header=no"
5484 rm -f conftest.err conftest.
$ac_ext
5486 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5487 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5488 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5489 cat >>confdefs.h
<<_ACEOF
5490 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5497 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5498 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5499 if test "${ac_cv_header_stdc+set}" = set; then
5500 echo $ECHO_N "(cached) $ECHO_C" >&6
5502 cat >conftest.
$ac_ext <<_ACEOF
5505 cat confdefs.h
>>conftest.
$ac_ext
5506 cat >>conftest.
$ac_ext <<_ACEOF
5507 /* end confdefs.h. */
5521 rm -f conftest.
$ac_objext
5522 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5523 (eval $ac_compile) 2>conftest.er1
5525 grep -v '^ *+' conftest.er1
>conftest.err
5527 cat conftest.err
>&5
5528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5529 (exit $ac_status); } &&
5530 { ac_try
='test -z "$ac_c_werror_flag"
5531 || test ! -s conftest.err'
5532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5536 (exit $ac_status); }; } &&
5537 { ac_try
='test -s conftest.$ac_objext'
5538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5542 (exit $ac_status); }; }; then
5543 ac_cv_header_stdc
=yes
5545 echo "$as_me: failed program was:" >&5
5546 sed 's/^/| /' conftest.
$ac_ext >&5
5548 ac_cv_header_stdc
=no
5550 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5552 if test $ac_cv_header_stdc = yes; then
5553 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5554 cat >conftest.
$ac_ext <<_ACEOF
5557 cat confdefs.h
>>conftest.
$ac_ext
5558 cat >>conftest.
$ac_ext <<_ACEOF
5559 /* end confdefs.h. */
5563 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5564 $EGREP "memchr" >/dev
/null
2>&1; then
5567 ac_cv_header_stdc
=no
5573 if test $ac_cv_header_stdc = yes; then
5574 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5575 cat >conftest.
$ac_ext <<_ACEOF
5578 cat confdefs.h
>>conftest.
$ac_ext
5579 cat >>conftest.
$ac_ext <<_ACEOF
5580 /* end confdefs.h. */
5584 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5585 $EGREP "free" >/dev
/null
2>&1; then
5588 ac_cv_header_stdc
=no
5594 if test $ac_cv_header_stdc = yes; then
5595 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5596 if test "$cross_compiling" = yes; then
5599 cat >conftest.
$ac_ext <<_ACEOF
5602 cat confdefs.h
>>conftest.
$ac_ext
5603 cat >>conftest.
$ac_ext <<_ACEOF
5604 /* end confdefs.h. */
5606 #if ((' ' & 0x0FF) == 0x020)
5607 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5608 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5610 # define ISLOWER(c) \
5611 (('a' <= (c) && (c) <= 'i') \
5612 || ('j' <= (c) && (c) <= 'r') \
5613 || ('s' <= (c) && (c) <= 'z'))
5614 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5617 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5622 for (i = 0; i < 256; i++)
5623 if (XOR (islower (i), ISLOWER (i))
5624 || toupper (i) != TOUPPER (i))
5629 rm -f conftest
$ac_exeext
5630 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5631 (eval $ac_link) 2>&5
5633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5634 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5639 (exit $ac_status); }; }; then
5642 echo "$as_me: program exited with status $ac_status" >&5
5643 echo "$as_me: failed program was:" >&5
5644 sed 's/^/| /' conftest.
$ac_ext >&5
5647 ac_cv_header_stdc
=no
5649 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5653 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5654 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5655 if test $ac_cv_header_stdc = yes; then
5657 cat >>confdefs.h
<<\_ACEOF
5658 #define STDC_HEADERS 1
5663 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
5664 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
5665 if test "${ac_cv_header_time+set}" = set; then
5666 echo $ECHO_N "(cached) $ECHO_C" >&6
5668 cat >conftest.
$ac_ext <<_ACEOF
5671 cat confdefs.h
>>conftest.
$ac_ext
5672 cat >>conftest.
$ac_ext <<_ACEOF
5673 /* end confdefs.h. */
5674 #include <sys/types.h>
5675 #include <sys/time.h>
5681 if ((struct tm *) 0)
5687 rm -f conftest.
$ac_objext
5688 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5689 (eval $ac_compile) 2>conftest.er1
5691 grep -v '^ *+' conftest.er1
>conftest.err
5693 cat conftest.err
>&5
5694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5695 (exit $ac_status); } &&
5696 { ac_try
='test -z "$ac_c_werror_flag"
5697 || test ! -s conftest.err'
5698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5702 (exit $ac_status); }; } &&
5703 { ac_try
='test -s conftest.$ac_objext'
5704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5708 (exit $ac_status); }; }; then
5709 ac_cv_header_time
=yes
5711 echo "$as_me: failed program was:" >&5
5712 sed 's/^/| /' conftest.
$ac_ext >&5
5714 ac_cv_header_time
=no
5716 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5718 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
5719 echo "${ECHO_T}$ac_cv_header_time" >&6
5720 if test $ac_cv_header_time = yes; then
5722 cat >>confdefs.h
<<\_ACEOF
5723 #define TIME_WITH_SYS_TIME 1
5728 echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
5729 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6
5730 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
5731 echo $ECHO_N "(cached) $ECHO_C" >&6
5733 cat >conftest.
$ac_ext <<_ACEOF
5736 cat confdefs.h
>>conftest.
$ac_ext
5737 cat >>conftest.
$ac_ext <<_ACEOF
5738 /* end confdefs.h. */
5739 $ac_includes_default
5744 char *p = (char *) sys_siglist;
5751 rm -f conftest.
$ac_objext
5752 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5753 (eval $ac_compile) 2>conftest.er1
5755 grep -v '^ *+' conftest.er1
>conftest.err
5757 cat conftest.err
>&5
5758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5759 (exit $ac_status); } &&
5760 { ac_try
='test -z "$ac_c_werror_flag"
5761 || test ! -s conftest.err'
5762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5766 (exit $ac_status); }; } &&
5767 { ac_try
='test -s conftest.$ac_objext'
5768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5772 (exit $ac_status); }; }; then
5773 ac_cv_have_decl_sys_siglist
=yes
5775 echo "$as_me: failed program was:" >&5
5776 sed 's/^/| /' conftest.
$ac_ext >&5
5778 ac_cv_have_decl_sys_siglist
=no
5780 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5782 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
5783 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6
5784 if test $ac_cv_have_decl_sys_siglist = yes; then
5786 cat >>confdefs.h
<<_ACEOF
5787 #define HAVE_DECL_SYS_SIGLIST 1
5792 cat >>confdefs.h
<<_ACEOF
5793 #define HAVE_DECL_SYS_SIGLIST 0
5800 if test $ac_cv_have_decl_sys_siglist != yes; then
5801 # For Tru64, at least:
5802 echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
5803 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6
5804 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
5805 echo $ECHO_N "(cached) $ECHO_C" >&6
5807 cat >conftest.
$ac_ext <<_ACEOF
5810 cat confdefs.h
>>conftest.
$ac_ext
5811 cat >>conftest.
$ac_ext <<_ACEOF
5812 /* end confdefs.h. */
5813 $ac_includes_default
5817 #ifndef __sys_siglist
5818 char *p = (char *) __sys_siglist;
5825 rm -f conftest.
$ac_objext
5826 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5827 (eval $ac_compile) 2>conftest.er1
5829 grep -v '^ *+' conftest.er1
>conftest.err
5831 cat conftest.err
>&5
5832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5833 (exit $ac_status); } &&
5834 { ac_try
='test -z "$ac_c_werror_flag"
5835 || test ! -s conftest.err'
5836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5840 (exit $ac_status); }; } &&
5841 { ac_try
='test -s conftest.$ac_objext'
5842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5846 (exit $ac_status); }; }; then
5847 ac_cv_have_decl___sys_siglist
=yes
5849 echo "$as_me: failed program was:" >&5
5850 sed 's/^/| /' conftest.
$ac_ext >&5
5852 ac_cv_have_decl___sys_siglist
=no
5854 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5856 echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
5857 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6
5858 if test $ac_cv_have_decl___sys_siglist = yes; then
5860 cat >>confdefs.h
<<_ACEOF
5861 #define HAVE_DECL___SYS_SIGLIST 1
5866 cat >>confdefs.h
<<_ACEOF
5867 #define HAVE_DECL___SYS_SIGLIST 0
5874 if test $ac_cv_have_decl___sys_siglist = yes; then
5876 cat >>confdefs.h
<<\_ACEOF
5877 #define sys_siglist __sys_siglist
5882 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
5883 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
5884 if test "${ac_cv_header_sys_wait_h+set}" = set; then
5885 echo $ECHO_N "(cached) $ECHO_C" >&6
5887 cat >conftest.
$ac_ext <<_ACEOF
5890 cat confdefs.h
>>conftest.
$ac_ext
5891 cat >>conftest.
$ac_ext <<_ACEOF
5892 /* end confdefs.h. */
5893 #include <sys/types.h>
5894 #include <sys/wait.h>
5896 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
5899 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5907 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5912 rm -f conftest.
$ac_objext
5913 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5914 (eval $ac_compile) 2>conftest.er1
5916 grep -v '^ *+' conftest.er1
>conftest.err
5918 cat conftest.err
>&5
5919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5920 (exit $ac_status); } &&
5921 { ac_try
='test -z "$ac_c_werror_flag"
5922 || test ! -s conftest.err'
5923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5927 (exit $ac_status); }; } &&
5928 { ac_try
='test -s conftest.$ac_objext'
5929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5933 (exit $ac_status); }; }; then
5934 ac_cv_header_sys_wait_h
=yes
5936 echo "$as_me: failed program was:" >&5
5937 sed 's/^/| /' conftest.
$ac_ext >&5
5939 ac_cv_header_sys_wait_h
=no
5941 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5943 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
5944 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
5945 if test $ac_cv_header_sys_wait_h = yes; then
5947 cat >>confdefs.h
<<\_ACEOF
5948 #define HAVE_SYS_WAIT_H 1
5954 echo "$as_me:$LINENO: checking for struct utimbuf" >&5
5955 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6
5956 if test "${emacs_cv_struct_utimbuf+set}" = set; then
5957 echo $ECHO_N "(cached) $ECHO_C" >&6
5959 cat >conftest.
$ac_ext <<_ACEOF
5962 cat confdefs.h
>>conftest.
$ac_ext
5963 cat >>conftest.
$ac_ext <<_ACEOF
5964 /* end confdefs.h. */
5965 #ifdef TIME_WITH_SYS_TIME
5966 #include <sys/time.h>
5969 #ifdef HAVE_SYS_TIME_H
5970 #include <sys/time.h>
5981 static struct utimbuf x; x.actime = x.modtime;
5986 rm -f conftest.
$ac_objext
5987 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5988 (eval $ac_compile) 2>conftest.er1
5990 grep -v '^ *+' conftest.er1
>conftest.err
5992 cat conftest.err
>&5
5993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5994 (exit $ac_status); } &&
5995 { ac_try
='test -z "$ac_c_werror_flag"
5996 || test ! -s conftest.err'
5997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6001 (exit $ac_status); }; } &&
6002 { ac_try
='test -s conftest.$ac_objext'
6003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6007 (exit $ac_status); }; }; then
6008 emacs_cv_struct_utimbuf
=yes
6010 echo "$as_me: failed program was:" >&5
6011 sed 's/^/| /' conftest.
$ac_ext >&5
6013 emacs_cv_struct_utimbuf
=no
6015 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6017 echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
6018 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6
6019 if test $emacs_cv_struct_utimbuf = yes; then
6021 cat >>confdefs.h
<<\_ACEOF
6022 #define HAVE_STRUCT_UTIMBUF 1
6027 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6028 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
6029 if test "${ac_cv_type_signal+set}" = set; then
6030 echo $ECHO_N "(cached) $ECHO_C" >&6
6032 cat >conftest.
$ac_ext <<_ACEOF
6035 cat confdefs.h
>>conftest.
$ac_ext
6036 cat >>conftest.
$ac_ext <<_ACEOF
6037 /* end confdefs.h. */
6038 #include <sys/types.h>
6044 extern "C" void (*signal (int, void (*)(int)))(int);
6046 void (*signal ()) ();
6057 rm -f conftest.
$ac_objext
6058 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6059 (eval $ac_compile) 2>conftest.er1
6061 grep -v '^ *+' conftest.er1
>conftest.err
6063 cat conftest.err
>&5
6064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6065 (exit $ac_status); } &&
6066 { ac_try
='test -z "$ac_c_werror_flag"
6067 || test ! -s conftest.err'
6068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6072 (exit $ac_status); }; } &&
6073 { ac_try
='test -s conftest.$ac_objext'
6074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6078 (exit $ac_status); }; }; then
6079 ac_cv_type_signal
=void
6081 echo "$as_me: failed program was:" >&5
6082 sed 's/^/| /' conftest.
$ac_ext >&5
6084 ac_cv_type_signal
=int
6086 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6088 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6089 echo "${ECHO_T}$ac_cv_type_signal" >&6
6091 cat >>confdefs.h
<<_ACEOF
6092 #define RETSIGTYPE $ac_cv_type_signal
6097 echo "$as_me:$LINENO: checking for speed_t" >&5
6098 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6
6099 if test "${emacs_cv_speed_t+set}" = set; then
6100 echo $ECHO_N "(cached) $ECHO_C" >&6
6102 cat >conftest.
$ac_ext <<_ACEOF
6105 cat confdefs.h
>>conftest.
$ac_ext
6106 cat >>conftest.
$ac_ext <<_ACEOF
6107 /* end confdefs.h. */
6108 #include <termios.h>
6117 rm -f conftest.
$ac_objext
6118 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6119 (eval $ac_compile) 2>conftest.er1
6121 grep -v '^ *+' conftest.er1
>conftest.err
6123 cat conftest.err
>&5
6124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6125 (exit $ac_status); } &&
6126 { ac_try
='test -z "$ac_c_werror_flag"
6127 || test ! -s conftest.err'
6128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6132 (exit $ac_status); }; } &&
6133 { ac_try
='test -s conftest.$ac_objext'
6134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6138 (exit $ac_status); }; }; then
6139 emacs_cv_speed_t
=yes
6141 echo "$as_me: failed program was:" >&5
6142 sed 's/^/| /' conftest.
$ac_ext >&5
6146 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6148 echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
6149 echo "${ECHO_T}$emacs_cv_speed_t" >&6
6150 if test $emacs_cv_speed_t = yes; then
6152 cat >>confdefs.h
<<\_ACEOF
6153 #define HAVE_SPEED_T 1
6158 echo "$as_me:$LINENO: checking for struct timeval" >&5
6159 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6
6160 if test "${emacs_cv_struct_timeval+set}" = set; then
6161 echo $ECHO_N "(cached) $ECHO_C" >&6
6163 cat >conftest.
$ac_ext <<_ACEOF
6166 cat confdefs.h
>>conftest.
$ac_ext
6167 cat >>conftest.
$ac_ext <<_ACEOF
6168 /* end confdefs.h. */
6169 #ifdef TIME_WITH_SYS_TIME
6170 #include <sys/time.h>
6173 #ifdef HAVE_SYS_TIME_H
6174 #include <sys/time.h>
6182 static struct timeval x; x.tv_sec = x.tv_usec;
6187 rm -f conftest.
$ac_objext
6188 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6189 (eval $ac_compile) 2>conftest.er1
6191 grep -v '^ *+' conftest.er1
>conftest.err
6193 cat conftest.err
>&5
6194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6195 (exit $ac_status); } &&
6196 { ac_try
='test -z "$ac_c_werror_flag"
6197 || test ! -s conftest.err'
6198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6202 (exit $ac_status); }; } &&
6203 { ac_try
='test -s conftest.$ac_objext'
6204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6208 (exit $ac_status); }; }; then
6209 emacs_cv_struct_timeval
=yes
6211 echo "$as_me: failed program was:" >&5
6212 sed 's/^/| /' conftest.
$ac_ext >&5
6214 emacs_cv_struct_timeval
=no
6216 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6218 echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
6219 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6
6220 HAVE_TIMEVAL
=$emacs_cv_struct_timeval
6221 if test $emacs_cv_struct_timeval = yes; then
6223 cat >>confdefs.h
<<\_ACEOF
6224 #define HAVE_TIMEVAL 1
6229 echo "$as_me:$LINENO: checking for struct exception" >&5
6230 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6
6231 if test "${emacs_cv_struct_exception+set}" = set; then
6232 echo $ECHO_N "(cached) $ECHO_C" >&6
6234 cat >conftest.
$ac_ext <<_ACEOF
6237 cat confdefs.h
>>conftest.
$ac_ext
6238 cat >>conftest.
$ac_ext <<_ACEOF
6239 /* end confdefs.h. */
6244 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
6249 rm -f conftest.
$ac_objext
6250 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6251 (eval $ac_compile) 2>conftest.er1
6253 grep -v '^ *+' conftest.er1
>conftest.err
6255 cat conftest.err
>&5
6256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6257 (exit $ac_status); } &&
6258 { ac_try
='test -z "$ac_c_werror_flag"
6259 || test ! -s conftest.err'
6260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6264 (exit $ac_status); }; } &&
6265 { ac_try
='test -s conftest.$ac_objext'
6266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6270 (exit $ac_status); }; }; then
6271 emacs_cv_struct_exception
=yes
6273 echo "$as_me: failed program was:" >&5
6274 sed 's/^/| /' conftest.
$ac_ext >&5
6276 emacs_cv_struct_exception
=no
6278 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6280 echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
6281 echo "${ECHO_T}$emacs_cv_struct_exception" >&6
6282 HAVE_EXCEPTION
=$emacs_cv_struct_exception
6283 if test $emacs_cv_struct_exception != yes; then
6285 cat >>confdefs.h
<<\_ACEOF
6286 #define NO_MATHERR 1
6292 for ac_header
in sys
/socket.h
6294 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6295 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6296 echo "$as_me:$LINENO: checking for $ac_header" >&5
6297 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6298 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6299 echo $ECHO_N "(cached) $ECHO_C" >&6
6301 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6302 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6304 # Is the header compilable?
6305 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6306 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6307 cat >conftest.
$ac_ext <<_ACEOF
6310 cat confdefs.h
>>conftest.
$ac_ext
6311 cat >>conftest.
$ac_ext <<_ACEOF
6312 /* end confdefs.h. */
6313 $ac_includes_default
6314 #include <$ac_header>
6316 rm -f conftest.
$ac_objext
6317 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6318 (eval $ac_compile) 2>conftest.er1
6320 grep -v '^ *+' conftest.er1
>conftest.err
6322 cat conftest.err
>&5
6323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6324 (exit $ac_status); } &&
6325 { ac_try
='test -z "$ac_c_werror_flag"
6326 || test ! -s conftest.err'
6327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6331 (exit $ac_status); }; } &&
6332 { ac_try
='test -s conftest.$ac_objext'
6333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6337 (exit $ac_status); }; }; then
6338 ac_header_compiler
=yes
6340 echo "$as_me: failed program was:" >&5
6341 sed 's/^/| /' conftest.
$ac_ext >&5
6343 ac_header_compiler
=no
6345 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6346 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6347 echo "${ECHO_T}$ac_header_compiler" >&6
6349 # Is the header present?
6350 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6351 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6352 cat >conftest.
$ac_ext <<_ACEOF
6355 cat confdefs.h
>>conftest.
$ac_ext
6356 cat >>conftest.
$ac_ext <<_ACEOF
6357 /* end confdefs.h. */
6358 #include <$ac_header>
6360 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6361 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6363 grep -v '^ *+' conftest.er1
>conftest.err
6365 cat conftest.err
>&5
6366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6367 (exit $ac_status); } >/dev
/null
; then
6368 if test -s conftest.err
; then
6369 ac_cpp_err
=$ac_c_preproc_warn_flag
6370 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6377 if test -z "$ac_cpp_err"; then
6378 ac_header_preproc
=yes
6380 echo "$as_me: failed program was:" >&5
6381 sed 's/^/| /' conftest.
$ac_ext >&5
6383 ac_header_preproc
=no
6385 rm -f conftest.err conftest.
$ac_ext
6386 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6387 echo "${ECHO_T}$ac_header_preproc" >&6
6389 # So? What about this header?
6390 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6392 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6393 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6394 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6395 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6396 ac_header_preproc
=yes
6399 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6400 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6401 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6402 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6403 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6404 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6405 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6406 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6407 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6408 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6409 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6410 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6413 ## ------------------------------------------ ##
6414 ## Report this to the AC_PACKAGE_NAME lists. ##
6415 ## ------------------------------------------ ##
6418 sed "s/^/$as_me: WARNING: /" >&2
6421 echo "$as_me:$LINENO: checking for $ac_header" >&5
6422 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6423 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6424 echo $ECHO_N "(cached) $ECHO_C" >&6
6426 eval "$as_ac_Header=\$ac_header_preproc"
6428 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6429 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6432 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6433 cat >>confdefs.h
<<_ACEOF
6434 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6442 for ac_header
in net
/if.h
6444 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6445 echo "$as_me:$LINENO: checking for $ac_header" >&5
6446 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6447 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6448 echo $ECHO_N "(cached) $ECHO_C" >&6
6450 cat >conftest.
$ac_ext <<_ACEOF
6453 cat confdefs.h
>>conftest.
$ac_ext
6454 cat >>conftest.
$ac_ext <<_ACEOF
6455 /* end confdefs.h. */
6456 $ac_includes_default
6457 #if HAVE_SYS_SOCKET_H
6458 #include <sys/socket.h>
6461 #include <$ac_header>
6463 rm -f conftest.
$ac_objext
6464 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6465 (eval $ac_compile) 2>conftest.er1
6467 grep -v '^ *+' conftest.er1
>conftest.err
6469 cat conftest.err
>&5
6470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6471 (exit $ac_status); } &&
6472 { ac_try
='test -z "$ac_c_werror_flag"
6473 || test ! -s conftest.err'
6474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6478 (exit $ac_status); }; } &&
6479 { ac_try
='test -s conftest.$ac_objext'
6480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6484 (exit $ac_status); }; }; then
6485 eval "$as_ac_Header=yes"
6487 echo "$as_me: failed program was:" >&5
6488 sed 's/^/| /' conftest.
$ac_ext >&5
6490 eval "$as_ac_Header=no"
6492 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6494 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6495 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6496 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6497 cat >>confdefs.h
<<_ACEOF
6498 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6506 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
6507 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
6508 if test "${ac_cv_struct_tm+set}" = set; then
6509 echo $ECHO_N "(cached) $ECHO_C" >&6
6511 cat >conftest.
$ac_ext <<_ACEOF
6514 cat confdefs.h
>>conftest.
$ac_ext
6515 cat >>conftest.
$ac_ext <<_ACEOF
6516 /* end confdefs.h. */
6517 #include <sys/types.h>
6523 struct tm *tp; tp->tm_sec;
6528 rm -f conftest.
$ac_objext
6529 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6530 (eval $ac_compile) 2>conftest.er1
6532 grep -v '^ *+' conftest.er1
>conftest.err
6534 cat conftest.err
>&5
6535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6536 (exit $ac_status); } &&
6537 { ac_try
='test -z "$ac_c_werror_flag"
6538 || test ! -s conftest.err'
6539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6543 (exit $ac_status); }; } &&
6544 { ac_try
='test -s conftest.$ac_objext'
6545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6549 (exit $ac_status); }; }; then
6550 ac_cv_struct_tm
=time.h
6552 echo "$as_me: failed program was:" >&5
6553 sed 's/^/| /' conftest.
$ac_ext >&5
6555 ac_cv_struct_tm
=sys
/time.h
6557 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6559 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
6560 echo "${ECHO_T}$ac_cv_struct_tm" >&6
6561 if test $ac_cv_struct_tm = sys
/time.h
; then
6563 cat >>confdefs.h
<<\_ACEOF
6564 #define TM_IN_SYS_TIME 1
6569 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
6570 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
6571 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
6572 echo $ECHO_N "(cached) $ECHO_C" >&6
6574 cat >conftest.
$ac_ext <<_ACEOF
6577 cat confdefs.h
>>conftest.
$ac_ext
6578 cat >>conftest.
$ac_ext <<_ACEOF
6579 /* end confdefs.h. */
6580 #include <sys/types.h>
6581 #include <$ac_cv_struct_tm>
6587 static struct tm ac_aggr;
6588 if (ac_aggr.tm_zone)
6594 rm -f conftest.
$ac_objext
6595 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6596 (eval $ac_compile) 2>conftest.er1
6598 grep -v '^ *+' conftest.er1
>conftest.err
6600 cat conftest.err
>&5
6601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6602 (exit $ac_status); } &&
6603 { ac_try
='test -z "$ac_c_werror_flag"
6604 || test ! -s conftest.err'
6605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6609 (exit $ac_status); }; } &&
6610 { ac_try
='test -s conftest.$ac_objext'
6611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6615 (exit $ac_status); }; }; then
6616 ac_cv_member_struct_tm_tm_zone
=yes
6618 echo "$as_me: failed program was:" >&5
6619 sed 's/^/| /' conftest.
$ac_ext >&5
6621 cat >conftest.
$ac_ext <<_ACEOF
6624 cat confdefs.h
>>conftest.
$ac_ext
6625 cat >>conftest.
$ac_ext <<_ACEOF
6626 /* end confdefs.h. */
6627 #include <sys/types.h>
6628 #include <$ac_cv_struct_tm>
6634 static struct tm ac_aggr;
6635 if (sizeof ac_aggr.tm_zone)
6641 rm -f conftest.
$ac_objext
6642 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6643 (eval $ac_compile) 2>conftest.er1
6645 grep -v '^ *+' conftest.er1
>conftest.err
6647 cat conftest.err
>&5
6648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6649 (exit $ac_status); } &&
6650 { ac_try
='test -z "$ac_c_werror_flag"
6651 || test ! -s conftest.err'
6652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6656 (exit $ac_status); }; } &&
6657 { ac_try
='test -s conftest.$ac_objext'
6658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6662 (exit $ac_status); }; }; then
6663 ac_cv_member_struct_tm_tm_zone
=yes
6665 echo "$as_me: failed program was:" >&5
6666 sed 's/^/| /' conftest.
$ac_ext >&5
6668 ac_cv_member_struct_tm_tm_zone
=no
6670 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6672 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6674 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
6675 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
6676 if test $ac_cv_member_struct_tm_tm_zone = yes; then
6678 cat >>confdefs.h
<<_ACEOF
6679 #define HAVE_STRUCT_TM_TM_ZONE 1
6685 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6687 cat >>confdefs.h
<<\_ACEOF
6688 #define HAVE_TM_ZONE 1
6692 echo "$as_me:$LINENO: checking for tzname" >&5
6693 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
6694 if test "${ac_cv_var_tzname+set}" = set; then
6695 echo $ECHO_N "(cached) $ECHO_C" >&6
6697 cat >conftest.
$ac_ext <<_ACEOF
6700 cat confdefs.h
>>conftest.
$ac_ext
6701 cat >>conftest.
$ac_ext <<_ACEOF
6702 /* end confdefs.h. */
6704 #ifndef tzname /* For SGI. */
6705 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
6716 rm -f conftest.
$ac_objext conftest
$ac_exeext
6717 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6718 (eval $ac_link) 2>conftest.er1
6720 grep -v '^ *+' conftest.er1
>conftest.err
6722 cat conftest.err
>&5
6723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6724 (exit $ac_status); } &&
6725 { ac_try
='test -z "$ac_c_werror_flag"
6726 || test ! -s conftest.err'
6727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6731 (exit $ac_status); }; } &&
6732 { ac_try
='test -s conftest$ac_exeext'
6733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6737 (exit $ac_status); }; }; then
6738 ac_cv_var_tzname
=yes
6740 echo "$as_me: failed program was:" >&5
6741 sed 's/^/| /' conftest.
$ac_ext >&5
6745 rm -f conftest.err conftest.
$ac_objext \
6746 conftest
$ac_exeext conftest.
$ac_ext
6748 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
6749 echo "${ECHO_T}$ac_cv_var_tzname" >&6
6750 if test $ac_cv_var_tzname = yes; then
6752 cat >>confdefs.h
<<\_ACEOF
6753 #define HAVE_TZNAME 1
6759 echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
6760 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6
6761 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
6762 echo $ECHO_N "(cached) $ECHO_C" >&6
6764 cat >conftest.
$ac_ext <<_ACEOF
6767 cat confdefs.h
>>conftest.
$ac_ext
6768 cat >>conftest.
$ac_ext <<_ACEOF
6769 /* end confdefs.h. */
6775 static struct tm ac_aggr;
6776 if (ac_aggr.tm_gmtoff)
6782 rm -f conftest.
$ac_objext
6783 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6784 (eval $ac_compile) 2>conftest.er1
6786 grep -v '^ *+' conftest.er1
>conftest.err
6788 cat conftest.err
>&5
6789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6790 (exit $ac_status); } &&
6791 { ac_try
='test -z "$ac_c_werror_flag"
6792 || test ! -s conftest.err'
6793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6797 (exit $ac_status); }; } &&
6798 { ac_try
='test -s conftest.$ac_objext'
6799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6803 (exit $ac_status); }; }; then
6804 ac_cv_member_struct_tm_tm_gmtoff
=yes
6806 echo "$as_me: failed program was:" >&5
6807 sed 's/^/| /' conftest.
$ac_ext >&5
6809 cat >conftest.
$ac_ext <<_ACEOF
6812 cat confdefs.h
>>conftest.
$ac_ext
6813 cat >>conftest.
$ac_ext <<_ACEOF
6814 /* end confdefs.h. */
6820 static struct tm ac_aggr;
6821 if (sizeof ac_aggr.tm_gmtoff)
6827 rm -f conftest.
$ac_objext
6828 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6829 (eval $ac_compile) 2>conftest.er1
6831 grep -v '^ *+' conftest.er1
>conftest.err
6833 cat conftest.err
>&5
6834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6835 (exit $ac_status); } &&
6836 { ac_try
='test -z "$ac_c_werror_flag"
6837 || test ! -s conftest.err'
6838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6842 (exit $ac_status); }; } &&
6843 { ac_try
='test -s conftest.$ac_objext'
6844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6848 (exit $ac_status); }; }; then
6849 ac_cv_member_struct_tm_tm_gmtoff
=yes
6851 echo "$as_me: failed program was:" >&5
6852 sed 's/^/| /' conftest.
$ac_ext >&5
6854 ac_cv_member_struct_tm_tm_gmtoff
=no
6856 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6858 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6860 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
6861 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6
6862 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
6864 cat >>confdefs.h
<<\_ACEOF
6865 #define HAVE_TM_GMTOFF 1
6870 echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
6871 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6
6872 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
6873 echo $ECHO_N "(cached) $ECHO_C" >&6
6875 cat >conftest.
$ac_ext <<_ACEOF
6878 cat confdefs.h
>>conftest.
$ac_ext
6879 cat >>conftest.
$ac_ext <<_ACEOF
6880 /* end confdefs.h. */
6881 $ac_includes_default
6882 #if HAVE_SYS_SOCKET_H
6883 #include <sys/socket.h>
6892 static struct ifreq ac_aggr;
6893 if (ac_aggr.ifr_flags)
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_flags
=yes
6923 echo "$as_me: failed program was:" >&5
6924 sed 's/^/| /' conftest.
$ac_ext >&5
6926 cat >conftest.
$ac_ext <<_ACEOF
6929 cat confdefs.h
>>conftest.
$ac_ext
6930 cat >>conftest.
$ac_ext <<_ACEOF
6931 /* end confdefs.h. */
6932 $ac_includes_default
6933 #if HAVE_SYS_SOCKET_H
6934 #include <sys/socket.h>
6943 static struct ifreq ac_aggr;
6944 if (sizeof ac_aggr.ifr_flags)
6950 rm -f conftest.
$ac_objext
6951 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6952 (eval $ac_compile) 2>conftest.er1
6954 grep -v '^ *+' conftest.er1
>conftest.err
6956 cat conftest.err
>&5
6957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6958 (exit $ac_status); } &&
6959 { ac_try
='test -z "$ac_c_werror_flag"
6960 || test ! -s conftest.err'
6961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6965 (exit $ac_status); }; } &&
6966 { ac_try
='test -s conftest.$ac_objext'
6967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6971 (exit $ac_status); }; }; then
6972 ac_cv_member_struct_ifreq_ifr_flags
=yes
6974 echo "$as_me: failed program was:" >&5
6975 sed 's/^/| /' conftest.
$ac_ext >&5
6977 ac_cv_member_struct_ifreq_ifr_flags
=no
6979 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6981 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6983 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
6984 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6
6985 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
6987 cat >>confdefs.h
<<_ACEOF
6988 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
6993 echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
6994 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6
6995 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
6996 echo $ECHO_N "(cached) $ECHO_C" >&6
6998 cat >conftest.
$ac_ext <<_ACEOF
7001 cat confdefs.h
>>conftest.
$ac_ext
7002 cat >>conftest.
$ac_ext <<_ACEOF
7003 /* end confdefs.h. */
7004 $ac_includes_default
7005 #if HAVE_SYS_SOCKET_H
7006 #include <sys/socket.h>
7015 static struct ifreq ac_aggr;
7016 if (ac_aggr.ifr_hwaddr)
7022 rm -f conftest.
$ac_objext
7023 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7024 (eval $ac_compile) 2>conftest.er1
7026 grep -v '^ *+' conftest.er1
>conftest.err
7028 cat conftest.err
>&5
7029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7030 (exit $ac_status); } &&
7031 { ac_try
='test -z "$ac_c_werror_flag"
7032 || test ! -s conftest.err'
7033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7037 (exit $ac_status); }; } &&
7038 { ac_try
='test -s conftest.$ac_objext'
7039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7043 (exit $ac_status); }; }; then
7044 ac_cv_member_struct_ifreq_ifr_hwaddr
=yes
7046 echo "$as_me: failed program was:" >&5
7047 sed 's/^/| /' conftest.
$ac_ext >&5
7049 cat >conftest.
$ac_ext <<_ACEOF
7052 cat confdefs.h
>>conftest.
$ac_ext
7053 cat >>conftest.
$ac_ext <<_ACEOF
7054 /* end confdefs.h. */
7055 $ac_includes_default
7056 #if HAVE_SYS_SOCKET_H
7057 #include <sys/socket.h>
7066 static struct ifreq ac_aggr;
7067 if (sizeof ac_aggr.ifr_hwaddr)
7073 rm -f conftest.
$ac_objext
7074 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7075 (eval $ac_compile) 2>conftest.er1
7077 grep -v '^ *+' conftest.er1
>conftest.err
7079 cat conftest.err
>&5
7080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7081 (exit $ac_status); } &&
7082 { ac_try
='test -z "$ac_c_werror_flag"
7083 || test ! -s conftest.err'
7084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7088 (exit $ac_status); }; } &&
7089 { ac_try
='test -s conftest.$ac_objext'
7090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7094 (exit $ac_status); }; }; then
7095 ac_cv_member_struct_ifreq_ifr_hwaddr
=yes
7097 echo "$as_me: failed program was:" >&5
7098 sed 's/^/| /' conftest.
$ac_ext >&5
7100 ac_cv_member_struct_ifreq_ifr_hwaddr
=no
7102 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7104 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7106 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
7107 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6
7108 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
7110 cat >>confdefs.h
<<_ACEOF
7111 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
7116 echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
7117 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6
7118 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
7119 echo $ECHO_N "(cached) $ECHO_C" >&6
7121 cat >conftest.
$ac_ext <<_ACEOF
7124 cat confdefs.h
>>conftest.
$ac_ext
7125 cat >>conftest.
$ac_ext <<_ACEOF
7126 /* end confdefs.h. */
7127 $ac_includes_default
7128 #if HAVE_SYS_SOCKET_H
7129 #include <sys/socket.h>
7138 static struct ifreq ac_aggr;
7139 if (ac_aggr.ifr_netmask)
7145 rm -f conftest.
$ac_objext
7146 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7147 (eval $ac_compile) 2>conftest.er1
7149 grep -v '^ *+' conftest.er1
>conftest.err
7151 cat conftest.err
>&5
7152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7153 (exit $ac_status); } &&
7154 { ac_try
='test -z "$ac_c_werror_flag"
7155 || test ! -s conftest.err'
7156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7160 (exit $ac_status); }; } &&
7161 { ac_try
='test -s conftest.$ac_objext'
7162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7166 (exit $ac_status); }; }; then
7167 ac_cv_member_struct_ifreq_ifr_netmask
=yes
7169 echo "$as_me: failed program was:" >&5
7170 sed 's/^/| /' conftest.
$ac_ext >&5
7172 cat >conftest.
$ac_ext <<_ACEOF
7175 cat confdefs.h
>>conftest.
$ac_ext
7176 cat >>conftest.
$ac_ext <<_ACEOF
7177 /* end confdefs.h. */
7178 $ac_includes_default
7179 #if HAVE_SYS_SOCKET_H
7180 #include <sys/socket.h>
7189 static struct ifreq ac_aggr;
7190 if (sizeof ac_aggr.ifr_netmask)
7196 rm -f conftest.
$ac_objext
7197 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7198 (eval $ac_compile) 2>conftest.er1
7200 grep -v '^ *+' conftest.er1
>conftest.err
7202 cat conftest.err
>&5
7203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7204 (exit $ac_status); } &&
7205 { ac_try
='test -z "$ac_c_werror_flag"
7206 || test ! -s conftest.err'
7207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7211 (exit $ac_status); }; } &&
7212 { ac_try
='test -s conftest.$ac_objext'
7213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7217 (exit $ac_status); }; }; then
7218 ac_cv_member_struct_ifreq_ifr_netmask
=yes
7220 echo "$as_me: failed program was:" >&5
7221 sed 's/^/| /' conftest.
$ac_ext >&5
7223 ac_cv_member_struct_ifreq_ifr_netmask
=no
7225 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7227 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7229 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
7230 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6
7231 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
7233 cat >>confdefs.h
<<_ACEOF
7234 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
7239 echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
7240 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6
7241 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
7242 echo $ECHO_N "(cached) $ECHO_C" >&6
7244 cat >conftest.
$ac_ext <<_ACEOF
7247 cat confdefs.h
>>conftest.
$ac_ext
7248 cat >>conftest.
$ac_ext <<_ACEOF
7249 /* end confdefs.h. */
7250 $ac_includes_default
7251 #if HAVE_SYS_SOCKET_H
7252 #include <sys/socket.h>
7261 static struct ifreq ac_aggr;
7262 if (ac_aggr.ifr_broadaddr)
7268 rm -f conftest.
$ac_objext
7269 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7270 (eval $ac_compile) 2>conftest.er1
7272 grep -v '^ *+' conftest.er1
>conftest.err
7274 cat conftest.err
>&5
7275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7276 (exit $ac_status); } &&
7277 { ac_try
='test -z "$ac_c_werror_flag"
7278 || test ! -s conftest.err'
7279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7283 (exit $ac_status); }; } &&
7284 { ac_try
='test -s conftest.$ac_objext'
7285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7289 (exit $ac_status); }; }; then
7290 ac_cv_member_struct_ifreq_ifr_broadaddr
=yes
7292 echo "$as_me: failed program was:" >&5
7293 sed 's/^/| /' conftest.
$ac_ext >&5
7295 cat >conftest.
$ac_ext <<_ACEOF
7298 cat confdefs.h
>>conftest.
$ac_ext
7299 cat >>conftest.
$ac_ext <<_ACEOF
7300 /* end confdefs.h. */
7301 $ac_includes_default
7302 #if HAVE_SYS_SOCKET_H
7303 #include <sys/socket.h>
7312 static struct ifreq ac_aggr;
7313 if (sizeof ac_aggr.ifr_broadaddr)
7319 rm -f conftest.
$ac_objext
7320 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7321 (eval $ac_compile) 2>conftest.er1
7323 grep -v '^ *+' conftest.er1
>conftest.err
7325 cat conftest.err
>&5
7326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7327 (exit $ac_status); } &&
7328 { ac_try
='test -z "$ac_c_werror_flag"
7329 || test ! -s conftest.err'
7330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7334 (exit $ac_status); }; } &&
7335 { ac_try
='test -s conftest.$ac_objext'
7336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7340 (exit $ac_status); }; }; then
7341 ac_cv_member_struct_ifreq_ifr_broadaddr
=yes
7343 echo "$as_me: failed program was:" >&5
7344 sed 's/^/| /' conftest.
$ac_ext >&5
7346 ac_cv_member_struct_ifreq_ifr_broadaddr
=no
7348 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7350 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7352 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
7353 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6
7354 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
7356 cat >>confdefs.h
<<_ACEOF
7357 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
7362 echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
7363 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6
7364 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
7365 echo $ECHO_N "(cached) $ECHO_C" >&6
7367 cat >conftest.
$ac_ext <<_ACEOF
7370 cat confdefs.h
>>conftest.
$ac_ext
7371 cat >>conftest.
$ac_ext <<_ACEOF
7372 /* end confdefs.h. */
7373 $ac_includes_default
7374 #if HAVE_SYS_SOCKET_H
7375 #include <sys/socket.h>
7384 static struct ifreq ac_aggr;
7385 if (ac_aggr.ifr_addr)
7391 rm -f conftest.
$ac_objext
7392 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7393 (eval $ac_compile) 2>conftest.er1
7395 grep -v '^ *+' conftest.er1
>conftest.err
7397 cat conftest.err
>&5
7398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7399 (exit $ac_status); } &&
7400 { ac_try
='test -z "$ac_c_werror_flag"
7401 || test ! -s conftest.err'
7402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7406 (exit $ac_status); }; } &&
7407 { ac_try
='test -s conftest.$ac_objext'
7408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7412 (exit $ac_status); }; }; then
7413 ac_cv_member_struct_ifreq_ifr_addr
=yes
7415 echo "$as_me: failed program was:" >&5
7416 sed 's/^/| /' conftest.
$ac_ext >&5
7418 cat >conftest.
$ac_ext <<_ACEOF
7421 cat confdefs.h
>>conftest.
$ac_ext
7422 cat >>conftest.
$ac_ext <<_ACEOF
7423 /* end confdefs.h. */
7424 $ac_includes_default
7425 #if HAVE_SYS_SOCKET_H
7426 #include <sys/socket.h>
7435 static struct ifreq ac_aggr;
7436 if (sizeof ac_aggr.ifr_addr)
7442 rm -f conftest.
$ac_objext
7443 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7444 (eval $ac_compile) 2>conftest.er1
7446 grep -v '^ *+' conftest.er1
>conftest.err
7448 cat conftest.err
>&5
7449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7450 (exit $ac_status); } &&
7451 { ac_try
='test -z "$ac_c_werror_flag"
7452 || test ! -s conftest.err'
7453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7457 (exit $ac_status); }; } &&
7458 { ac_try
='test -s conftest.$ac_objext'
7459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7463 (exit $ac_status); }; }; then
7464 ac_cv_member_struct_ifreq_ifr_addr
=yes
7466 echo "$as_me: failed program was:" >&5
7467 sed 's/^/| /' conftest.
$ac_ext >&5
7469 ac_cv_member_struct_ifreq_ifr_addr
=no
7471 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7473 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7475 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
7476 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6
7477 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
7479 cat >>confdefs.h
<<_ACEOF
7480 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
7488 echo "$as_me:$LINENO: checking for function prototypes" >&5
7489 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
7490 if test "$ac_cv_prog_cc_stdc" != no
; then
7491 echo "$as_me:$LINENO: result: yes" >&5
7492 echo "${ECHO_T}yes" >&6
7494 cat >>confdefs.h
<<\_ACEOF
7495 #define PROTOTYPES 1
7499 cat >>confdefs.h
<<\_ACEOF
7500 #define __PROTOTYPES 1
7504 echo "$as_me:$LINENO: result: no" >&5
7505 echo "${ECHO_T}no" >&6
7508 echo "$as_me:$LINENO: checking for working volatile" >&5
7509 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
7510 if test "${ac_cv_c_volatile+set}" = set; then
7511 echo $ECHO_N "(cached) $ECHO_C" >&6
7513 cat >conftest.
$ac_ext <<_ACEOF
7516 cat confdefs.h
>>conftest.
$ac_ext
7517 cat >>conftest.
$ac_ext <<_ACEOF
7518 /* end confdefs.h. */
7530 rm -f conftest.
$ac_objext
7531 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7532 (eval $ac_compile) 2>conftest.er1
7534 grep -v '^ *+' conftest.er1
>conftest.err
7536 cat conftest.err
>&5
7537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7538 (exit $ac_status); } &&
7539 { ac_try
='test -z "$ac_c_werror_flag"
7540 || test ! -s conftest.err'
7541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7545 (exit $ac_status); }; } &&
7546 { ac_try
='test -s conftest.$ac_objext'
7547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7551 (exit $ac_status); }; }; then
7552 ac_cv_c_volatile
=yes
7554 echo "$as_me: failed program was:" >&5
7555 sed 's/^/| /' conftest.
$ac_ext >&5
7559 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7561 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
7562 echo "${ECHO_T}$ac_cv_c_volatile" >&6
7563 if test $ac_cv_c_volatile = no
; then
7565 cat >>confdefs.h
<<\_ACEOF
7571 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7572 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
7573 if test "${ac_cv_c_const+set}" = set; then
7574 echo $ECHO_N "(cached) $ECHO_C" >&6
7576 cat >conftest.
$ac_ext <<_ACEOF
7579 cat confdefs.h
>>conftest.
$ac_ext
7580 cat >>conftest.
$ac_ext <<_ACEOF
7581 /* end confdefs.h. */
7586 /* FIXME: Include the comments suggested by Paul. */
7588 /* Ultrix mips cc rejects this. */
7589 typedef int charset[2];
7591 /* SunOS 4.1.1 cc rejects this. */
7592 char const *const *ccp;
7594 /* NEC SVR4.0.2 mips cc rejects this. */
7595 struct point {int x, y;};
7596 static struct point const zero = {0,0};
7597 /* AIX XL C 1.02.0.0 rejects this.
7598 It does not let you subtract one const X* pointer from another in
7599 an arm of an if-expression whose if-part is not a constant
7601 const char *g = "string";
7602 ccp = &g + (g ? g-g : 0);
7603 /* HPUX 7.0 cc rejects these. */
7606 ccp = (char const *const *) p;
7607 { /* SCO 3.2v4 cc rejects this. */
7609 char const *s = 0 ? (char *) 0 : (char const *) 0;
7613 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7615 const int *foo = &x[0];
7618 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7619 typedef const int *iptr;
7623 { /* AIX XL C 1.02.0.0 rejects this saying
7624 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7625 struct s { int j; const int *ap[3]; };
7626 struct s *b; b->j = 5;
7628 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7637 rm -f conftest.
$ac_objext
7638 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7639 (eval $ac_compile) 2>conftest.er1
7641 grep -v '^ *+' conftest.er1
>conftest.err
7643 cat conftest.err
>&5
7644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7645 (exit $ac_status); } &&
7646 { ac_try
='test -z "$ac_c_werror_flag"
7647 || test ! -s conftest.err'
7648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7652 (exit $ac_status); }; } &&
7653 { ac_try
='test -s conftest.$ac_objext'
7654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7658 (exit $ac_status); }; }; then
7661 echo "$as_me: failed program was:" >&5
7662 sed 's/^/| /' conftest.
$ac_ext >&5
7666 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7668 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7669 echo "${ECHO_T}$ac_cv_c_const" >&6
7670 if test $ac_cv_c_const = no
; then
7672 cat >>confdefs.h
<<\_ACEOF
7678 echo "$as_me:$LINENO: checking for void * support" >&5
7679 echo $ECHO_N "checking for void * support... $ECHO_C" >&6
7680 if test "${emacs_cv_void_star+set}" = set; then
7681 echo $ECHO_N "(cached) $ECHO_C" >&6
7683 cat >conftest.
$ac_ext <<_ACEOF
7686 cat confdefs.h
>>conftest.
$ac_ext
7687 cat >>conftest.
$ac_ext <<_ACEOF
7688 /* end confdefs.h. */
7698 rm -f conftest.
$ac_objext
7699 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7700 (eval $ac_compile) 2>conftest.er1
7702 grep -v '^ *+' conftest.er1
>conftest.err
7704 cat conftest.err
>&5
7705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7706 (exit $ac_status); } &&
7707 { ac_try
='test -z "$ac_c_werror_flag"
7708 || test ! -s conftest.err'
7709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7713 (exit $ac_status); }; } &&
7714 { ac_try
='test -s conftest.$ac_objext'
7715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7719 (exit $ac_status); }; }; then
7720 emacs_cv_void_star
=yes
7722 echo "$as_me: failed program was:" >&5
7723 sed 's/^/| /' conftest.
$ac_ext >&5
7725 emacs_cv_void_star
=no
7727 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7729 echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
7730 echo "${ECHO_T}$emacs_cv_void_star" >&6
7731 if test $emacs_cv_void_star = yes; then
7732 cat >>confdefs.h
<<\_ACEOF
7733 #define POINTER_TYPE void
7737 cat >>confdefs.h
<<\_ACEOF
7738 #define POINTER_TYPE char
7744 echo "$as_me:$LINENO: checking whether heap start address is randomized" >&5
7745 echo $ECHO_N "checking whether heap start address is randomized... $ECHO_C" >&6
7746 if test x
"$ac_cv_header_unistd_h" != x
&& test x
"$ac_cv_header_stdlib_h" != x
7748 if test "$cross_compiling" = yes; then
7749 emacs_cv_randomheap
='assuming no'
7751 cat >conftest.
$ac_ext <<_ACEOF
7754 cat confdefs.h
>>conftest.
$ac_ext
7755 cat >>conftest.
$ac_ext <<_ACEOF
7756 /* end confdefs.h. */
7760 int main (int argc, char *argv[])
7762 unsigned long old_sbrk = 0;
7763 unsigned long this_sbrk = (unsigned long) sbrk(0);
7766 old_sbrk = strtoul (argv[1], 0, 0);
7767 nr = atoi (argv[2])+1;
7769 if (argc == 1 || (old_sbrk == this_sbrk && nr < 3))
7771 char buf1[32], buf2[32];
7772 sprintf (buf1, "%lu", this_sbrk);
7773 sprintf (buf2, "%d", nr);
7774 execl (argv[0], argv[0], buf1, buf2, 0);
7777 exit (this_sbrk == old_sbrk);
7780 rm -f conftest
$ac_exeext
7781 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7782 (eval $ac_link) 2>&5
7784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7785 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7790 (exit $ac_status); }; }; then
7791 emacs_cv_randomheap
=yes
7793 echo "$as_me: program exited with status $ac_status" >&5
7794 echo "$as_me: failed program was:" >&5
7795 sed 's/^/| /' conftest.
$ac_ext >&5
7798 emacs_cv_randomheap
=no
7800 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7803 emacs_cv_randomheap
='assuming no'
7805 echo "$as_me:$LINENO: result: $emacs_cv_randomheap" >&5
7806 echo "${ECHO_T}$emacs_cv_randomheap" >&6
7808 if test "$emacs_cv_randomheap" = yes; then
7809 # Extract the first word of "setarch", so it can be a program name with args.
7810 set dummy setarch
; ac_word
=$2
7811 echo "$as_me:$LINENO: checking for $ac_word" >&5
7812 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7813 if test "${ac_cv_path_SETARCH+set}" = set; then
7814 echo $ECHO_N "(cached) $ECHO_C" >&6
7818 ac_cv_path_SETARCH
="$SETARCH" # Let the user override the test with a path.
7821 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7825 test -z "$as_dir" && as_dir
=.
7826 for ac_exec_ext
in '' $ac_executable_extensions; do
7827 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7828 ac_cv_path_SETARCH
="$as_dir/$ac_word$ac_exec_ext"
7829 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7835 test -z "$ac_cv_path_SETARCH" && ac_cv_path_SETARCH
="no"
7839 SETARCH
=$ac_cv_path_SETARCH
7841 if test -n "$SETARCH"; then
7842 echo "$as_me:$LINENO: result: $SETARCH" >&5
7843 echo "${ECHO_T}$SETARCH" >&6
7845 echo "$as_me:$LINENO: result: no" >&5
7846 echo "${ECHO_T}no" >&6
7850 if test "$SETARCH" != no
&& test "$machine" = "intel386"; then
7852 cat >>confdefs.h
<<\_ACEOF
7853 #define HAVE_RANDOM_HEAPSTART 1
7857 emacs_cv_randomheap
=warn
7863 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7864 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
7865 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y,:./+-,___p_,'`
7866 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
7867 echo $ECHO_N "(cached) $ECHO_C" >&6
7869 cat >conftest.
make <<\_ACEOF
7871 @
echo 'ac_maketemp="$(MAKE)"'
7873 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7874 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
7875 if test -n "$ac_maketemp"; then
7876 eval ac_cv_prog_make_
${ac_make}_set
=yes
7878 eval ac_cv_prog_make_
${ac_make}_set
=no
7882 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
7883 echo "$as_me:$LINENO: result: yes" >&5
7884 echo "${ECHO_T}yes" >&6
7887 echo "$as_me:$LINENO: result: no" >&5
7888 echo "${ECHO_T}no" >&6
7889 SET_MAKE
="MAKE=${MAKE-make}"
7893 echo "$as_me:$LINENO: checking for long file names" >&5
7894 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
7895 if test "${ac_cv_sys_long_file_names+set}" = set; then
7896 echo $ECHO_N "(cached) $ECHO_C" >&6
7898 ac_cv_sys_long_file_names
=yes
7899 # Test for long file names in all the places we know might matter:
7900 # . the current directory, where building will happen
7901 # $prefix/lib where we will be installing things
7902 # $exec_prefix/lib likewise
7903 # eval it to expand exec_prefix.
7904 # $TMPDIR if set, where it might want to write temporary files
7905 # if $TMPDIR is not set:
7906 # /tmp where it might want to write temporary files
7909 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
7912 ac_tmpdirs
='/tmp /var/tmp /usr/tmp'
7914 for ac_dir
in .
$ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
7915 test -d $ac_dir ||
continue
7916 test -w $ac_dir ||
continue # It is less confusing to not echo anything here.
7917 ac_xdir
=$ac_dir/cf$$
7918 (umask 077 && mkdir
$ac_xdir 2>/dev
/null
) ||
continue
7919 ac_tf1
=$ac_xdir/conftest9012345
7920 ac_tf2
=$ac_xdir/conftest9012346
7921 (echo 1 >$ac_tf1) 2>/dev
/null
7922 (echo 2 >$ac_tf2) 2>/dev
/null
7923 ac_val
=`cat $ac_tf1 2>/dev/null`
7924 if test ! -f $ac_tf1 ||
test "$ac_val" != 1; then
7925 ac_cv_sys_long_file_names
=no
7926 rm -rf $ac_xdir 2>/dev
/null
7929 rm -rf $ac_xdir 2>/dev
/null
7932 echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
7933 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
7934 if test $ac_cv_sys_long_file_names = yes; then
7936 cat >>confdefs.h
<<\_ACEOF
7937 #define HAVE_LONG_FILE_NAMES 1
7943 #### Choose a window system.
7945 echo "$as_me:$LINENO: checking for X" >&5
7946 echo $ECHO_N "checking for X... $ECHO_C" >&6
7949 # Check whether --with-x or --without-x was given.
7950 if test "${with_x+set}" = set; then
7954 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7955 if test "x$with_x" = xno
; then
7956 # The user explicitly disabled X.
7959 if test "x$x_includes" != xNONE
&& test "x$x_libraries" != xNONE
; then
7960 # Both variables are already set.
7963 if test "${ac_cv_have_x+set}" = set; then
7964 echo $ECHO_N "(cached) $ECHO_C" >&6
7966 # One or both of the vars are not set, and there is no cached value.
7967 ac_x_includes
=no ac_x_libraries
=no
7969 if mkdir conftest.dir
; then
7971 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
7972 cat >Imakefile
<<'_ACEOF'
7974 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
7976 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
7977 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7978 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
7979 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7980 for ac_extension
in a so sl
; do
7981 if test ! -f $ac_im_usrlibdir/libX11.
$ac_extension &&
7982 test -f $ac_im_libdir/libX11.
$ac_extension; then
7983 ac_im_usrlibdir
=$ac_im_libdir; break
7986 # Screen out bogus values from the imake configuration. They are
7987 # bogus both because they are the default anyway, and because
7988 # using them would break gcc on systems where it needs fixed includes.
7989 case $ac_im_incroot in
7991 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
7993 case $ac_im_usrlibdir in
7995 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
8002 # Standard set of common directories for X headers.
8003 # Check X11 before X11Rn because it is often a symlink to the current release.
8015 /usr/local/X11/include
8016 /usr/local/X11R6/include
8017 /usr/local/X11R5/include
8018 /usr/local/X11R4/include
8020 /usr/local/include/X11
8021 /usr/local/include/X11R6
8022 /usr/local/include/X11R5
8023 /usr/local/include/X11R4
8027 /usr/XFree86/include/X11
8031 /usr/unsupported/include
8033 /usr/local/x11r5/include
8034 /usr/lpp/Xamples/include
8036 /usr/openwin/include
8037 /usr/openwin/share/include'
8039 if test "$ac_x_includes" = no
; then
8040 # Guess where to find include files, by looking for Intrinsic.h.
8041 # First, try using that file with no special directory specified.
8042 cat >conftest.
$ac_ext <<_ACEOF
8045 cat confdefs.h
>>conftest.
$ac_ext
8046 cat >>conftest.
$ac_ext <<_ACEOF
8047 /* end confdefs.h. */
8048 #include <X11/Intrinsic.h>
8050 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8051 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8053 grep -v '^ *+' conftest.er1
>conftest.err
8055 cat conftest.err
>&5
8056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8057 (exit $ac_status); } >/dev
/null
; then
8058 if test -s conftest.err
; then
8059 ac_cpp_err
=$ac_c_preproc_warn_flag
8060 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
8067 if test -z "$ac_cpp_err"; then
8068 # We can compile using X headers with no special include directory.
8071 echo "$as_me: failed program was:" >&5
8072 sed 's/^/| /' conftest.
$ac_ext >&5
8074 for ac_dir
in $ac_x_header_dirs; do
8075 if test -r "$ac_dir/X11/Intrinsic.h"; then
8076 ac_x_includes
=$ac_dir
8081 rm -f conftest.err conftest.
$ac_ext
8082 fi # $ac_x_includes = no
8084 if test "$ac_x_libraries" = no
; then
8085 # Check for the libraries.
8086 # See if we find them without any special options.
8087 # Don't add to $LIBS permanently.
8090 cat >conftest.
$ac_ext <<_ACEOF
8093 cat confdefs.h
>>conftest.
$ac_ext
8094 cat >>conftest.
$ac_ext <<_ACEOF
8095 /* end confdefs.h. */
8096 #include <X11/Intrinsic.h>
8105 rm -f conftest.
$ac_objext conftest
$ac_exeext
8106 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8107 (eval $ac_link) 2>conftest.er1
8109 grep -v '^ *+' conftest.er1
>conftest.err
8111 cat conftest.err
>&5
8112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8113 (exit $ac_status); } &&
8114 { ac_try
='test -z "$ac_c_werror_flag"
8115 || test ! -s conftest.err'
8116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8120 (exit $ac_status); }; } &&
8121 { ac_try
='test -s conftest$ac_exeext'
8122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8126 (exit $ac_status); }; }; then
8128 # We can link X programs with no special library path.
8131 echo "$as_me: failed program was:" >&5
8132 sed 's/^/| /' conftest.
$ac_ext >&5
8135 for ac_dir
in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8137 # Don't even attempt the hair of trying to link an X program!
8138 for ac_extension
in a so sl
; do
8139 if test -r $ac_dir/libXt.
$ac_extension; then
8140 ac_x_libraries
=$ac_dir
8146 rm -f conftest.err conftest.
$ac_objext \
8147 conftest
$ac_exeext conftest.
$ac_ext
8148 fi # $ac_x_libraries = no
8150 if test "$ac_x_includes" = no ||
test "$ac_x_libraries" = no
; then
8151 # Didn't find X anywhere. Cache the known absence of X.
8152 ac_cv_have_x
="have_x=no"
8154 # Record where we found X for the cache.
8155 ac_cv_have_x
="have_x=yes \
8156 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
8161 eval "$ac_cv_have_x"
8164 if test "$have_x" != yes; then
8165 echo "$as_me:$LINENO: result: $have_x" >&5
8166 echo "${ECHO_T}$have_x" >&6
8169 # If each of the values was on the command line, it overrides each guess.
8170 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
8171 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
8172 # Update the cache value to reflect the command line values.
8173 ac_cv_have_x
="have_x=yes \
8174 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
8175 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
8176 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
8179 if test "$no_x" = yes; then
8185 if test "${x_libraries}" != NONE
&& test -n "${x_libraries}"; then
8186 LD_SWITCH_X_SITE
=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
8187 LD_SWITCH_X_SITE_AUX
=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
8188 x_default_search_path
=""
8189 for x_library
in `echo ${x_libraries} | sed -e "s/:/ /g"`; do
8191 ${x_library}/X11/%L/%T/%N%C%S:\
8192 ${x_library}/X11/%l/%T/%N%C%S:\
8193 ${x_library}/X11/%T/%N%C%S:\
8194 ${x_library}/X11/%L/%T/%N%S:\
8195 ${x_library}/X11/%l/%T/%N%S:\
8196 ${x_library}/X11/%T/%N%S"
8197 if test x
"${x_default_search_path}" = x
; then
8198 x_default_search_path
=${x_search_path}
8200 x_default_search_path
="${x_search_path}:${x_default_search_path}"
8204 if test "${x_includes}" != NONE
&& test -n "${x_includes}"; then
8205 C_SWITCH_X_SITE
=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
8208 if test x
"${x_includes}" = x
; then
8209 bitmapdir
=/usr
/include
/X11
/bitmaps
8211 # accumulate include directories that have X11 bitmap subdirectories
8213 for bmd
in `echo ${x_includes} | sed -e "s/:/ /g"`; do
8214 if test -d "${bmd}/X11/bitmaps"; then
8215 bmd_acc
="${bmd_acc}:${bmd}/X11/bitmaps"
8217 if test -d "${bmd}/bitmaps"; then
8218 bmd_acc
="${bmd_acc}:${bmd}/bitmaps"
8221 if test ${bmd_acc} != "dummyval"; then
8222 bitmapdir
=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
8226 case "${window_system}" in
8230 case "${with_x_toolkit}" in
8231 athena | lucid
) USE_X_TOOLKIT
=LUCID
;;
8232 motif
) USE_X_TOOLKIT
=MOTIF
;;
8234 USE_X_TOOLKIT
=none
;;
8235 no
) USE_X_TOOLKIT
=none
;;
8236 * ) USE_X_TOOLKIT
=maybe
;;
8246 ### If we're using X11, we should use the X menu package.
8249 yes ) HAVE_MENUS
=yes ;;
8252 if test "${opsys}" = "hpux9"; then
8253 case "${x_libraries}" in
8255 opsysfile
="s/hpux9-x11r4.h"
8260 if test "${opsys}" = "hpux9shr"; then
8261 case "${x_libraries}" in
8263 opsysfile
="s/hpux9shxr4.h"
8268 ### Compute the unexec source name from the object name.
8269 UNEXEC_SRC
="`echo ${unexec} | sed 's/\.o/.c/'`"
8271 # Do the opsystem or machine files prohibit the use of the GNU malloc?
8272 # Assume not, until told otherwise.
8275 echo "$as_me:$LINENO: checking for malloc_get_state" >&5
8276 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6
8277 if test "${ac_cv_func_malloc_get_state+set}" = set; then
8278 echo $ECHO_N "(cached) $ECHO_C" >&6
8280 cat >conftest.
$ac_ext <<_ACEOF
8283 cat confdefs.h
>>conftest.
$ac_ext
8284 cat >>conftest.
$ac_ext <<_ACEOF
8285 /* end confdefs.h. */
8286 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
8287 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8288 #define malloc_get_state innocuous_malloc_get_state
8290 /* System header to define __stub macros and hopefully few prototypes,
8291 which can conflict with char malloc_get_state (); below.
8292 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8293 <limits.h> exists even on freestanding compilers. */
8296 # include <limits.h>
8298 # include <assert.h>
8301 #undef malloc_get_state
8303 /* Override any gcc2 internal prototype to avoid an error. */
8308 /* We use char because int might match the return type of a gcc2
8309 builtin and then its argument prototype would still apply. */
8310 char malloc_get_state ();
8311 /* The GNU C library defines this for functions which it implements
8312 to always fail with ENOSYS. Some functions are actually named
8313 something starting with __ and the normal name is an alias. */
8314 #if defined (__stub_malloc_get_state) || defined (__stub___malloc_get_state)
8317 char (*f) () = malloc_get_state;
8326 return f != malloc_get_state;
8331 rm -f conftest.
$ac_objext conftest
$ac_exeext
8332 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8333 (eval $ac_link) 2>conftest.er1
8335 grep -v '^ *+' conftest.er1
>conftest.err
8337 cat conftest.err
>&5
8338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8339 (exit $ac_status); } &&
8340 { ac_try
='test -z "$ac_c_werror_flag"
8341 || test ! -s conftest.err'
8342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8346 (exit $ac_status); }; } &&
8347 { ac_try
='test -s conftest$ac_exeext'
8348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8352 (exit $ac_status); }; }; then
8353 ac_cv_func_malloc_get_state
=yes
8355 echo "$as_me: failed program was:" >&5
8356 sed 's/^/| /' conftest.
$ac_ext >&5
8358 ac_cv_func_malloc_get_state
=no
8360 rm -f conftest.err conftest.
$ac_objext \
8361 conftest
$ac_exeext conftest.
$ac_ext
8363 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
8364 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6
8365 if test $ac_cv_func_malloc_get_state = yes; then
8371 echo "$as_me:$LINENO: checking for malloc_set_state" >&5
8372 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6
8373 if test "${ac_cv_func_malloc_set_state+set}" = set; then
8374 echo $ECHO_N "(cached) $ECHO_C" >&6
8376 cat >conftest.
$ac_ext <<_ACEOF
8379 cat confdefs.h
>>conftest.
$ac_ext
8380 cat >>conftest.
$ac_ext <<_ACEOF
8381 /* end confdefs.h. */
8382 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
8383 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8384 #define malloc_set_state innocuous_malloc_set_state
8386 /* System header to define __stub macros and hopefully few prototypes,
8387 which can conflict with char malloc_set_state (); below.
8388 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8389 <limits.h> exists even on freestanding compilers. */
8392 # include <limits.h>
8394 # include <assert.h>
8397 #undef malloc_set_state
8399 /* Override any gcc2 internal prototype to avoid an error. */
8404 /* We use char because int might match the return type of a gcc2
8405 builtin and then its argument prototype would still apply. */
8406 char malloc_set_state ();
8407 /* The GNU C library defines this for functions which it implements
8408 to always fail with ENOSYS. Some functions are actually named
8409 something starting with __ and the normal name is an alias. */
8410 #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state)
8413 char (*f) () = malloc_set_state;
8422 return f != malloc_set_state;
8427 rm -f conftest.
$ac_objext conftest
$ac_exeext
8428 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8429 (eval $ac_link) 2>conftest.er1
8431 grep -v '^ *+' conftest.er1
>conftest.err
8433 cat conftest.err
>&5
8434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8435 (exit $ac_status); } &&
8436 { ac_try
='test -z "$ac_c_werror_flag"
8437 || test ! -s conftest.err'
8438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8442 (exit $ac_status); }; } &&
8443 { ac_try
='test -s conftest$ac_exeext'
8444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8448 (exit $ac_status); }; }; then
8449 ac_cv_func_malloc_set_state
=yes
8451 echo "$as_me: failed program was:" >&5
8452 sed 's/^/| /' conftest.
$ac_ext >&5
8454 ac_cv_func_malloc_set_state
=no
8456 rm -f conftest.err conftest.
$ac_objext \
8457 conftest
$ac_exeext conftest.
$ac_ext
8459 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
8460 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6
8461 if test $ac_cv_func_malloc_set_state = yes; then
8467 echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
8468 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6
8469 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
8470 echo $ECHO_N "(cached) $ECHO_C" >&6
8472 cat >conftest.
$ac_ext <<_ACEOF
8475 cat confdefs.h
>>conftest.
$ac_ext
8476 cat >>conftest.
$ac_ext <<_ACEOF
8477 /* end confdefs.h. */
8478 extern void (* __after_morecore_hook)();
8482 __after_morecore_hook = 0
8487 rm -f conftest.
$ac_objext conftest
$ac_exeext
8488 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8489 (eval $ac_link) 2>conftest.er1
8491 grep -v '^ *+' conftest.er1
>conftest.err
8493 cat conftest.err
>&5
8494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8495 (exit $ac_status); } &&
8496 { ac_try
='test -z "$ac_c_werror_flag"
8497 || test ! -s conftest.err'
8498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8502 (exit $ac_status); }; } &&
8503 { ac_try
='test -s conftest$ac_exeext'
8504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8508 (exit $ac_status); }; }; then
8509 emacs_cv_var___after_morecore_hook
=yes
8511 echo "$as_me: failed program was:" >&5
8512 sed 's/^/| /' conftest.
$ac_ext >&5
8514 emacs_cv_var___after_morecore_hook
=no
8516 rm -f conftest.err conftest.
$ac_objext \
8517 conftest
$ac_exeext conftest.
$ac_ext
8519 echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
8520 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6
8521 if test $emacs_cv_var___after_morecore_hook = no
; then
8524 if test "${system_malloc}" = "yes"; then
8527 (The GNU allocators don't work with this system configuration.)"
8529 if test "$doug_lea_malloc" = "yes" ; then
8530 if test "$GNU_MALLOC" = yes ; then
8532 (Using Doug Lea's new malloc from the GNU C Library.)"
8535 cat >>confdefs.h
<<\_ACEOF
8536 #define DOUG_LEA_MALLOC 1
8541 if test x
"${REL_ALLOC}" = x
; then
8542 REL_ALLOC
=${GNU_MALLOC}
8548 for ac_header
in stdlib.h unistd.h
8550 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8551 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8552 echo "$as_me:$LINENO: checking for $ac_header" >&5
8553 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8554 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8555 echo $ECHO_N "(cached) $ECHO_C" >&6
8557 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8558 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8560 # Is the header compilable?
8561 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8562 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8563 cat >conftest.
$ac_ext <<_ACEOF
8566 cat confdefs.h
>>conftest.
$ac_ext
8567 cat >>conftest.
$ac_ext <<_ACEOF
8568 /* end confdefs.h. */
8569 $ac_includes_default
8570 #include <$ac_header>
8572 rm -f conftest.
$ac_objext
8573 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8574 (eval $ac_compile) 2>conftest.er1
8576 grep -v '^ *+' conftest.er1
>conftest.err
8578 cat conftest.err
>&5
8579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8580 (exit $ac_status); } &&
8581 { ac_try
='test -z "$ac_c_werror_flag"
8582 || test ! -s conftest.err'
8583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8587 (exit $ac_status); }; } &&
8588 { ac_try
='test -s conftest.$ac_objext'
8589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8593 (exit $ac_status); }; }; then
8594 ac_header_compiler
=yes
8596 echo "$as_me: failed program was:" >&5
8597 sed 's/^/| /' conftest.
$ac_ext >&5
8599 ac_header_compiler
=no
8601 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8602 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8603 echo "${ECHO_T}$ac_header_compiler" >&6
8605 # Is the header present?
8606 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8607 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8608 cat >conftest.
$ac_ext <<_ACEOF
8611 cat confdefs.h
>>conftest.
$ac_ext
8612 cat >>conftest.
$ac_ext <<_ACEOF
8613 /* end confdefs.h. */
8614 #include <$ac_header>
8616 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8617 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8619 grep -v '^ *+' conftest.er1
>conftest.err
8621 cat conftest.err
>&5
8622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8623 (exit $ac_status); } >/dev
/null
; then
8624 if test -s conftest.err
; then
8625 ac_cpp_err
=$ac_c_preproc_warn_flag
8626 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
8633 if test -z "$ac_cpp_err"; then
8634 ac_header_preproc
=yes
8636 echo "$as_me: failed program was:" >&5
8637 sed 's/^/| /' conftest.
$ac_ext >&5
8639 ac_header_preproc
=no
8641 rm -f conftest.err conftest.
$ac_ext
8642 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8643 echo "${ECHO_T}$ac_header_preproc" >&6
8645 # So? What about this header?
8646 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8648 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8649 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8650 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8651 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8652 ac_header_preproc
=yes
8655 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8656 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8657 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8658 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8659 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8660 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8661 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8662 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8663 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8664 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8665 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8666 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8669 ## ------------------------------------------ ##
8670 ## Report this to the AC_PACKAGE_NAME lists. ##
8671 ## ------------------------------------------ ##
8674 sed "s/^/$as_me: WARNING: /" >&2
8677 echo "$as_me:$LINENO: checking for $ac_header" >&5
8678 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8679 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8680 echo $ECHO_N "(cached) $ECHO_C" >&6
8682 eval "$as_ac_Header=\$ac_header_preproc"
8684 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8685 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8688 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8689 cat >>confdefs.h
<<_ACEOF
8690 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8698 for ac_func
in getpagesize
8700 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8701 echo "$as_me:$LINENO: checking for $ac_func" >&5
8702 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8703 if eval "test \"\${$as_ac_var+set}\" = set"; then
8704 echo $ECHO_N "(cached) $ECHO_C" >&6
8706 cat >conftest.
$ac_ext <<_ACEOF
8709 cat confdefs.h
>>conftest.
$ac_ext
8710 cat >>conftest.
$ac_ext <<_ACEOF
8711 /* end confdefs.h. */
8712 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8713 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8714 #define $ac_func innocuous_$ac_func
8716 /* System header to define __stub macros and hopefully few prototypes,
8717 which can conflict with char $ac_func (); below.
8718 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8719 <limits.h> exists even on freestanding compilers. */
8722 # include <limits.h>
8724 # include <assert.h>
8729 /* Override any gcc2 internal prototype to avoid an error. */
8734 /* We use char because int might match the return type of a gcc2
8735 builtin and then its argument prototype would still apply. */
8737 /* The GNU C library defines this for functions which it implements
8738 to always fail with ENOSYS. Some functions are actually named
8739 something starting with __ and the normal name is an alias. */
8740 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8743 char (*f) () = $ac_func;
8752 return f != $ac_func;
8757 rm -f conftest.
$ac_objext conftest
$ac_exeext
8758 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8759 (eval $ac_link) 2>conftest.er1
8761 grep -v '^ *+' conftest.er1
>conftest.err
8763 cat conftest.err
>&5
8764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8765 (exit $ac_status); } &&
8766 { ac_try
='test -z "$ac_c_werror_flag"
8767 || test ! -s conftest.err'
8768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8772 (exit $ac_status); }; } &&
8773 { ac_try
='test -s conftest$ac_exeext'
8774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8778 (exit $ac_status); }; }; then
8779 eval "$as_ac_var=yes"
8781 echo "$as_me: failed program was:" >&5
8782 sed 's/^/| /' conftest.
$ac_ext >&5
8784 eval "$as_ac_var=no"
8786 rm -f conftest.err conftest.
$ac_objext \
8787 conftest
$ac_exeext conftest.
$ac_ext
8789 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8790 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8791 if test `eval echo '${'$as_ac_var'}'` = yes; then
8792 cat >>confdefs.h
<<_ACEOF
8793 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8799 echo "$as_me:$LINENO: checking for working mmap" >&5
8800 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
8801 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
8802 echo $ECHO_N "(cached) $ECHO_C" >&6
8804 if test "$cross_compiling" = yes; then
8805 ac_cv_func_mmap_fixed_mapped
=no
8807 cat >conftest.
$ac_ext <<_ACEOF
8810 cat confdefs.h
>>conftest.
$ac_ext
8811 cat >>conftest.
$ac_ext <<_ACEOF
8812 /* end confdefs.h. */
8813 $ac_includes_default
8814 /* malloc might have been renamed as rpl_malloc. */
8817 /* Thanks to Mike Haertel and Jim Avera for this test.
8818 Here is a matrix of mmap possibilities:
8819 mmap private not fixed
8820 mmap private fixed at somewhere currently unmapped
8821 mmap private fixed at somewhere already mapped
8822 mmap shared not fixed
8823 mmap shared fixed at somewhere currently unmapped
8824 mmap shared fixed at somewhere already mapped
8825 For private mappings, we should verify that changes cannot be read()
8826 back from the file, nor mmap's back from the file at a different
8827 address. (There have been systems where private was not correctly
8828 implemented like the infamous i386 svr4.0, and systems where the
8829 VM page cache was not coherent with the file system buffer cache
8830 like early versions of FreeBSD and possibly contemporary NetBSD.)
8831 For shared mappings, we should conversely verify that changes get
8832 propagated back to all the places they're supposed to be.
8834 Grep wants private fixed already mapped.
8835 The main things grep needs to know about mmap are:
8836 * does it exist and is it safe to write into the mmap'd area
8837 * how to use it (BSD variants) */
8840 #include <sys/mman.h>
8842 #if !STDC_HEADERS && !HAVE_STDLIB_H
8846 /* This mess was copied from the GNU getpagesize.h. */
8847 #if !HAVE_GETPAGESIZE
8848 /* Assume that all systems that can run configure have sys/param.h. */
8849 # if !HAVE_SYS_PARAM_H
8850 # define HAVE_SYS_PARAM_H 1
8853 # ifdef _SC_PAGESIZE
8854 # define getpagesize() sysconf(_SC_PAGESIZE)
8855 # else /* no _SC_PAGESIZE */
8856 # if HAVE_SYS_PARAM_H
8857 # include <sys/param.h>
8858 # ifdef EXEC_PAGESIZE
8859 # define getpagesize() EXEC_PAGESIZE
8860 # else /* no EXEC_PAGESIZE */
8862 # define getpagesize() NBPG * CLSIZE
8865 # endif /* no CLSIZE */
8866 # else /* no NBPG */
8868 # define getpagesize() NBPC
8869 # else /* no NBPC */
8871 # define getpagesize() PAGESIZE
8872 # endif /* PAGESIZE */
8873 # endif /* no NBPC */
8874 # endif /* no NBPG */
8875 # endif /* no EXEC_PAGESIZE */
8876 # else /* no HAVE_SYS_PARAM_H */
8877 # define getpagesize() 8192 /* punt totally */
8878 # endif /* no HAVE_SYS_PARAM_H */
8879 # endif /* no _SC_PAGESIZE */
8881 #endif /* no HAVE_GETPAGESIZE */
8886 char *data, *data2, *data3;
8890 pagesize = getpagesize ();
8892 /* First, make a file with some known garbage in it. */
8893 data = (char *) malloc (pagesize);
8896 for (i = 0; i < pagesize; ++i)
8897 *(data + i) = rand ();
8899 fd = creat ("conftest.mmap", 0600);
8902 if (write (fd, data, pagesize) != pagesize)
8906 /* Next, try to mmap the file at a fixed address which already has
8907 something else allocated at it. If we can, also make sure that
8908 we see the same garbage. */
8909 fd = open ("conftest.mmap", O_RDWR);
8912 data2 = (char *) malloc (2 * pagesize);
8915 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
8916 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8917 MAP_PRIVATE | MAP_FIXED, fd, 0L))
8919 for (i = 0; i < pagesize; ++i)
8920 if (*(data + i) != *(data2 + i))
8923 /* Finally, make sure that changes to the mapped area do not
8924 percolate back to the file as seen by read(). (This is a bug on
8925 some variants of i386 svr4.0.) */
8926 for (i = 0; i < pagesize; ++i)
8927 *(data2 + i) = *(data2 + i) + 1;
8928 data3 = (char *) malloc (pagesize);
8931 if (read (fd, data3, pagesize) != pagesize)
8933 for (i = 0; i < pagesize; ++i)
8934 if (*(data + i) != *(data3 + i))
8940 rm -f conftest
$ac_exeext
8941 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8942 (eval $ac_link) 2>&5
8944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8945 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
8946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8950 (exit $ac_status); }; }; then
8951 ac_cv_func_mmap_fixed_mapped
=yes
8953 echo "$as_me: program exited with status $ac_status" >&5
8954 echo "$as_me: failed program was:" >&5
8955 sed 's/^/| /' conftest.
$ac_ext >&5
8958 ac_cv_func_mmap_fixed_mapped
=no
8960 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
8963 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
8964 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
8965 if test $ac_cv_func_mmap_fixed_mapped = yes; then
8967 cat >>confdefs.h
<<\_ACEOF
8974 if test $use_mmap_for_buffers = yes; then
8978 LIBS
="$libsrc_libs $LIBS"
8981 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
8982 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
8983 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
8984 echo $ECHO_N "(cached) $ECHO_C" >&6
8986 ac_check_lib_save_LIBS
=$LIBS
8988 cat >conftest.
$ac_ext <<_ACEOF
8991 cat confdefs.h
>>conftest.
$ac_ext
8992 cat >>conftest.
$ac_ext <<_ACEOF
8993 /* end confdefs.h. */
8995 /* Override any gcc2 internal prototype to avoid an error. */
8999 /* We use char because int might match the return type of a gcc2
9000 builtin and then its argument prototype would still apply. */
9010 rm -f conftest.
$ac_objext conftest
$ac_exeext
9011 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9012 (eval $ac_link) 2>conftest.er1
9014 grep -v '^ *+' conftest.er1
>conftest.err
9016 cat conftest.err
>&5
9017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9018 (exit $ac_status); } &&
9019 { ac_try
='test -z "$ac_c_werror_flag"
9020 || test ! -s conftest.err'
9021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9025 (exit $ac_status); }; } &&
9026 { ac_try
='test -s conftest$ac_exeext'
9027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9031 (exit $ac_status); }; }; then
9032 ac_cv_lib_dnet_dnet_ntoa
=yes
9034 echo "$as_me: failed program was:" >&5
9035 sed 's/^/| /' conftest.
$ac_ext >&5
9037 ac_cv_lib_dnet_dnet_ntoa
=no
9039 rm -f conftest.err conftest.
$ac_objext \
9040 conftest
$ac_exeext conftest.
$ac_ext
9041 LIBS
=$ac_check_lib_save_LIBS
9043 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
9044 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
9045 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
9046 cat >>confdefs.h
<<_ACEOF
9047 #define HAVE_LIBDNET 1
9055 echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
9056 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6
9057 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
9058 echo $ECHO_N "(cached) $ECHO_C" >&6
9060 ac_check_lib_save_LIBS
=$LIBS
9062 cat >conftest.
$ac_ext <<_ACEOF
9065 cat confdefs.h
>>conftest.
$ac_ext
9066 cat >>conftest.
$ac_ext <<_ACEOF
9067 /* end confdefs.h. */
9078 rm -f conftest.
$ac_objext conftest
$ac_exeext
9079 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9080 (eval $ac_link) 2>conftest.er1
9082 grep -v '^ *+' conftest.er1
>conftest.err
9084 cat conftest.err
>&5
9085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9086 (exit $ac_status); } &&
9087 { ac_try
='test -z "$ac_c_werror_flag"
9088 || test ! -s conftest.err'
9089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9093 (exit $ac_status); }; } &&
9094 { ac_try
='test -s conftest$ac_exeext'
9095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9099 (exit $ac_status); }; }; then
9100 ac_cv_lib_Xbsd_main
=yes
9102 echo "$as_me: failed program was:" >&5
9103 sed 's/^/| /' conftest.
$ac_ext >&5
9105 ac_cv_lib_Xbsd_main
=no
9107 rm -f conftest.err conftest.
$ac_objext \
9108 conftest
$ac_exeext conftest.
$ac_ext
9109 LIBS
=$ac_check_lib_save_LIBS
9111 echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
9112 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6
9113 if test $ac_cv_lib_Xbsd_main = yes; then
9114 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -lXbsd"
9119 echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
9120 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6
9121 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
9122 echo $ECHO_N "(cached) $ECHO_C" >&6
9124 ac_check_lib_save_LIBS
=$LIBS
9125 LIBS
="-lpthreads $LIBS"
9126 cat >conftest.
$ac_ext <<_ACEOF
9129 cat confdefs.h
>>conftest.
$ac_ext
9130 cat >>conftest.
$ac_ext <<_ACEOF
9131 /* end confdefs.h. */
9133 /* Override any gcc2 internal prototype to avoid an error. */
9137 /* We use char because int might match the return type of a gcc2
9138 builtin and then its argument prototype would still apply. */
9148 rm -f conftest.
$ac_objext conftest
$ac_exeext
9149 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9150 (eval $ac_link) 2>conftest.er1
9152 grep -v '^ *+' conftest.er1
>conftest.err
9154 cat conftest.err
>&5
9155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9156 (exit $ac_status); } &&
9157 { ac_try
='test -z "$ac_c_werror_flag"
9158 || test ! -s conftest.err'
9159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9163 (exit $ac_status); }; } &&
9164 { ac_try
='test -s conftest$ac_exeext'
9165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9169 (exit $ac_status); }; }; then
9170 ac_cv_lib_pthreads_cma_open
=yes
9172 echo "$as_me: failed program was:" >&5
9173 sed 's/^/| /' conftest.
$ac_ext >&5
9175 ac_cv_lib_pthreads_cma_open
=no
9177 rm -f conftest.err conftest.
$ac_objext \
9178 conftest
$ac_exeext conftest.
$ac_ext
9179 LIBS
=$ac_check_lib_save_LIBS
9181 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
9182 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6
9183 if test $ac_cv_lib_pthreads_cma_open = yes; then
9184 cat >>confdefs.h
<<_ACEOF
9185 #define HAVE_LIBPTHREADS 1
9188 LIBS
="-lpthreads $LIBS"
9193 echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
9194 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6
9195 if test -d /usr
/X386
/include
; then
9197 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
9201 echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
9202 echo "${ECHO_T}$HAVE_XFREE386" >&6
9207 echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
9208 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6
9209 if test "${gdb_cv_bigtoc+set}" = set; then
9210 echo $ECHO_N "(cached) $ECHO_C" >&6
9214 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
9215 *) gdb_cv_bigtoc
=-bbigtoc ;;
9218 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
9219 cat >conftest.
$ac_ext <<_ACEOF
9222 cat confdefs.h
>>conftest.
$ac_ext
9223 cat >>conftest.
$ac_ext <<_ACEOF
9224 /* end confdefs.h. */
9234 rm -f conftest.
$ac_objext conftest
$ac_exeext
9235 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9236 (eval $ac_link) 2>conftest.er1
9238 grep -v '^ *+' conftest.er1
>conftest.err
9240 cat conftest.err
>&5
9241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9242 (exit $ac_status); } &&
9243 { ac_try
='test -z "$ac_c_werror_flag"
9244 || test ! -s conftest.err'
9245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9249 (exit $ac_status); }; } &&
9250 { ac_try
='test -s conftest$ac_exeext'
9251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9255 (exit $ac_status); }; }; then
9258 echo "$as_me: failed program was:" >&5
9259 sed 's/^/| /' conftest.
$ac_ext >&5
9263 rm -f conftest.err conftest.
$ac_objext \
9264 conftest
$ac_exeext conftest.
$ac_ext
9267 echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
9268 echo "${ECHO_T}$gdb_cv_bigtoc" >&6
9272 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
9273 # used for the tests that follow. We set them back to REAL_CFLAGS and
9274 # REAL_CPPFLAGS later on.
9276 REAL_CPPFLAGS
="$CPPFLAGS"
9278 if test "${HAVE_X11}" = "yes"; then
9279 DEFS
="$C_SWITCH_X_SITE $DEFS"
9280 LDFLAGS
="$LDFLAGS $LD_SWITCH_X_SITE"
9282 CFLAGS
="$C_SWITCH_X_SITE $CFLAGS"
9283 CPPFLAGS
="$C_SWITCH_X_SITE $CPPFLAGS"
9285 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
9286 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
9287 # but it's more convenient here to set LD_RUN_PATH
9288 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
9289 if test "${x_libraries}" != NONE
&& test -n "${x_libraries}"; then
9290 LD_RUN_PATH
=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
9294 if test "${opsys}" = "gnu-linux"; then
9295 echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
9296 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6
9297 cat >conftest.
$ac_ext <<_ACEOF
9300 cat confdefs.h
>>conftest.
$ac_ext
9301 cat >>conftest.
$ac_ext <<_ACEOF
9302 /* end confdefs.h. */
9307 XOpenDisplay ("foo");
9312 rm -f conftest.
$ac_objext conftest
$ac_exeext
9313 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9314 (eval $ac_link) 2>conftest.er1
9316 grep -v '^ *+' conftest.er1
>conftest.err
9318 cat conftest.err
>&5
9319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9320 (exit $ac_status); } &&
9321 { ac_try
='test -z "$ac_c_werror_flag"
9322 || test ! -s conftest.err'
9323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9327 (exit $ac_status); }; } &&
9328 { ac_try
='test -s conftest$ac_exeext'
9329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9333 (exit $ac_status); }; }; then
9334 xlinux_first_failure
=no
9336 echo "$as_me: failed program was:" >&5
9337 sed 's/^/| /' conftest.
$ac_ext >&5
9339 xlinux_first_failure
=yes
9341 rm -f conftest.err conftest.
$ac_objext \
9342 conftest
$ac_exeext conftest.
$ac_ext
9343 if test "${xlinux_first_failure}" = "yes"; then
9344 OLD_LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE"
9345 OLD_C_SWITCH_X_SITE
="$C_SWITCH_X_SITE"
9346 OLD_CPPFLAGS
="$CPPFLAGS"
9348 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -b i486-linuxaout"
9349 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE -b i486-linuxaout"
9350 CPPFLAGS
="$CPPFLAGS -b i486-linuxaout"
9351 LIBS
="$LIBS -b i486-linuxaout"
9352 cat >conftest.
$ac_ext <<_ACEOF
9355 cat confdefs.h
>>conftest.
$ac_ext
9356 cat >>conftest.
$ac_ext <<_ACEOF
9357 /* end confdefs.h. */
9362 XOpenDisplay ("foo");
9367 rm -f conftest.
$ac_objext conftest
$ac_exeext
9368 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9369 (eval $ac_link) 2>conftest.er1
9371 grep -v '^ *+' conftest.er1
>conftest.err
9373 cat conftest.err
>&5
9374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9375 (exit $ac_status); } &&
9376 { ac_try
='test -z "$ac_c_werror_flag"
9377 || test ! -s conftest.err'
9378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9382 (exit $ac_status); }; } &&
9383 { ac_try
='test -s conftest$ac_exeext'
9384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9388 (exit $ac_status); }; }; then
9389 xlinux_second_failure
=no
9391 echo "$as_me: failed program was:" >&5
9392 sed 's/^/| /' conftest.
$ac_ext >&5
9394 xlinux_second_failure
=yes
9396 rm -f conftest.err conftest.
$ac_objext \
9397 conftest
$ac_exeext conftest.
$ac_ext
9398 if test "${xlinux_second_failure}" = "yes"; then
9399 # If we get the same failure with -b, there is no use adding -b.
9400 # So take it out. This plays safe.
9401 LD_SWITCH_X_SITE
="$OLD_LD_SWITCH_X_SITE"
9402 C_SWITCH_X_SITE
="$OLD_C_SWITCH_X_SITE"
9403 CPPFLAGS
="$OLD_CPPFLAGS"
9405 echo "$as_me:$LINENO: result: no" >&5
9406 echo "${ECHO_T}no" >&6
9408 echo "$as_me:$LINENO: result: yes" >&5
9409 echo "${ECHO_T}yes" >&6
9412 echo "$as_me:$LINENO: result: no" >&5
9413 echo "${ECHO_T}no" >&6
9417 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
9418 # header files included from there.
9419 echo "$as_me:$LINENO: checking for Xkb" >&5
9420 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6
9421 cat >conftest.
$ac_ext <<_ACEOF
9424 cat confdefs.h
>>conftest.
$ac_ext
9425 cat >>conftest.
$ac_ext <<_ACEOF
9426 /* end confdefs.h. */
9427 #include <X11/Xlib.h>
9428 #include <X11/XKBlib.h>
9432 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
9437 rm -f conftest.
$ac_objext conftest
$ac_exeext
9438 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9439 (eval $ac_link) 2>conftest.er1
9441 grep -v '^ *+' conftest.er1
>conftest.err
9443 cat conftest.err
>&5
9444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9445 (exit $ac_status); } &&
9446 { ac_try
='test -z "$ac_c_werror_flag"
9447 || test ! -s conftest.err'
9448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9452 (exit $ac_status); }; } &&
9453 { ac_try
='test -s conftest$ac_exeext'
9454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9458 (exit $ac_status); }; }; then
9461 echo "$as_me: failed program was:" >&5
9462 sed 's/^/| /' conftest.
$ac_ext >&5
9466 rm -f conftest.err conftest.
$ac_objext \
9467 conftest
$ac_exeext conftest.
$ac_ext
9468 echo "$as_me:$LINENO: result: $emacs_xkb" >&5
9469 echo "${ECHO_T}$emacs_xkb" >&6
9470 if test $emacs_xkb = yes; then
9472 cat >>confdefs.h
<<\_ACEOF
9473 #define HAVE_XKBGETKEYBOARD 1
9482 for ac_func
in XrmSetDatabase XScreenResourceString \
9483 XScreenNumberOfScreen XSetWMProtocols
9485 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9486 echo "$as_me:$LINENO: checking for $ac_func" >&5
9487 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9488 if eval "test \"\${$as_ac_var+set}\" = set"; then
9489 echo $ECHO_N "(cached) $ECHO_C" >&6
9491 cat >conftest.
$ac_ext <<_ACEOF
9494 cat confdefs.h
>>conftest.
$ac_ext
9495 cat >>conftest.
$ac_ext <<_ACEOF
9496 /* end confdefs.h. */
9497 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9498 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9499 #define $ac_func innocuous_$ac_func
9501 /* System header to define __stub macros and hopefully few prototypes,
9502 which can conflict with char $ac_func (); below.
9503 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9504 <limits.h> exists even on freestanding compilers. */
9507 # include <limits.h>
9509 # include <assert.h>
9514 /* Override any gcc2 internal prototype to avoid an error. */
9519 /* We use char because int might match the return type of a gcc2
9520 builtin and then its argument prototype would still apply. */
9522 /* The GNU C library defines this for functions which it implements
9523 to always fail with ENOSYS. Some functions are actually named
9524 something starting with __ and the normal name is an alias. */
9525 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9528 char (*f) () = $ac_func;
9537 return f != $ac_func;
9542 rm -f conftest.
$ac_objext conftest
$ac_exeext
9543 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9544 (eval $ac_link) 2>conftest.er1
9546 grep -v '^ *+' conftest.er1
>conftest.err
9548 cat conftest.err
>&5
9549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9550 (exit $ac_status); } &&
9551 { ac_try
='test -z "$ac_c_werror_flag"
9552 || test ! -s conftest.err'
9553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9557 (exit $ac_status); }; } &&
9558 { ac_try
='test -s conftest$ac_exeext'
9559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9563 (exit $ac_status); }; }; then
9564 eval "$as_ac_var=yes"
9566 echo "$as_me: failed program was:" >&5
9567 sed 's/^/| /' conftest.
$ac_ext >&5
9569 eval "$as_ac_var=no"
9571 rm -f conftest.err conftest.
$ac_objext \
9572 conftest
$ac_exeext conftest.
$ac_ext
9574 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9575 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9576 if test `eval echo '${'$as_ac_var'}'` = yes; then
9577 cat >>confdefs.h
<<_ACEOF
9578 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9586 if test "${window_system}" = "x11"; then
9587 echo "$as_me:$LINENO: checking X11 version 6" >&5
9588 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6
9589 if test "${emacs_cv_x11_version_6+set}" = set; then
9590 echo $ECHO_N "(cached) $ECHO_C" >&6
9592 cat >conftest.
$ac_ext <<_ACEOF
9595 cat confdefs.h
>>conftest.
$ac_ext
9596 cat >>conftest.
$ac_ext <<_ACEOF
9597 /* end confdefs.h. */
9598 #include <X11/Xlib.h>
9602 #if XlibSpecificationRelease < 6
9610 rm -f conftest.
$ac_objext conftest
$ac_exeext
9611 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9612 (eval $ac_link) 2>conftest.er1
9614 grep -v '^ *+' conftest.er1
>conftest.err
9616 cat conftest.err
>&5
9617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9618 (exit $ac_status); } &&
9619 { ac_try
='test -z "$ac_c_werror_flag"
9620 || test ! -s conftest.err'
9621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9625 (exit $ac_status); }; } &&
9626 { ac_try
='test -s conftest$ac_exeext'
9627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9631 (exit $ac_status); }; }; then
9632 emacs_cv_x11_version_6
=yes
9634 echo "$as_me: failed program was:" >&5
9635 sed 's/^/| /' conftest.
$ac_ext >&5
9637 emacs_cv_x11_version_6
=no
9639 rm -f conftest.err conftest.
$ac_objext \
9640 conftest
$ac_exeext conftest.
$ac_ext
9643 if test $emacs_cv_x11_version_6 = yes; then
9644 echo "$as_me:$LINENO: result: 6 or newer" >&5
9645 echo "${ECHO_T}6 or newer" >&6
9647 cat >>confdefs.h
<<\_ACEOF
9648 #define HAVE_X11R6 1
9652 echo "$as_me:$LINENO: result: before 6" >&5
9653 echo "${ECHO_T}before 6" >&6
9657 if test "${window_system}" = "x11"; then
9658 echo "$as_me:$LINENO: checking X11 version 5" >&5
9659 echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6
9660 if test "${emacs_cv_x11_version_5+set}" = set; then
9661 echo $ECHO_N "(cached) $ECHO_C" >&6
9663 cat >conftest.
$ac_ext <<_ACEOF
9666 cat confdefs.h
>>conftest.
$ac_ext
9667 cat >>conftest.
$ac_ext <<_ACEOF
9668 /* end confdefs.h. */
9669 #include <X11/Xlib.h>
9673 #if XlibSpecificationRelease < 5
9681 rm -f conftest.
$ac_objext conftest
$ac_exeext
9682 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9683 (eval $ac_link) 2>conftest.er1
9685 grep -v '^ *+' conftest.er1
>conftest.err
9687 cat conftest.err
>&5
9688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9689 (exit $ac_status); } &&
9690 { ac_try
='test -z "$ac_c_werror_flag"
9691 || test ! -s conftest.err'
9692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9696 (exit $ac_status); }; } &&
9697 { ac_try
='test -s conftest$ac_exeext'
9698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9702 (exit $ac_status); }; }; then
9703 emacs_cv_x11_version_5
=yes
9705 echo "$as_me: failed program was:" >&5
9706 sed 's/^/| /' conftest.
$ac_ext >&5
9708 emacs_cv_x11_version_5
=no
9710 rm -f conftest.err conftest.
$ac_objext \
9711 conftest
$ac_exeext conftest.
$ac_ext
9714 if test $emacs_cv_x11_version_5 = yes; then
9715 echo "$as_me:$LINENO: result: 5 or newer" >&5
9716 echo "${ECHO_T}5 or newer" >&6
9719 cat >>confdefs.h
<<\_ACEOF
9720 #define HAVE_X11R5 1
9725 echo "$as_me:$LINENO: result: before 5" >&5
9726 echo "${ECHO_T}before 5" >&6
9733 if test "${with_gtk}" = "yes" ||
test "$USE_X_TOOLKIT" = "gtk"; then
9734 if test "$USE_X_TOOLKIT" != "none" && test "$USE_X_TOOLKIT" != "maybe"; then
9735 { { echo "$as_me:$LINENO: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&5
9736 echo "$as_me: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&2;}
9737 { (exit 1); exit 1; }; };
9741 GTK_MODULES
="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
9743 if test "X${with_pkg_config_prog}" != X
; then
9744 PKG_CONFIG
="${with_pkg_config_prog}"
9749 if test -z "$PKG_CONFIG"; then
9750 # Extract the first word of "pkg-config", so it can be a program name with args.
9751 set dummy pkg-config
; ac_word
=$2
9752 echo "$as_me:$LINENO: checking for $ac_word" >&5
9753 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9754 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
9755 echo $ECHO_N "(cached) $ECHO_C" >&6
9759 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
9762 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9766 test -z "$as_dir" && as_dir
=.
9767 for ac_exec_ext
in '' $ac_executable_extensions; do
9768 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9769 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
9770 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9776 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
9780 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
9782 if test -n "$PKG_CONFIG"; then
9783 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
9784 echo "${ECHO_T}$PKG_CONFIG" >&6
9786 echo "$as_me:$LINENO: result: no" >&5
9787 echo "${ECHO_T}no" >&6
9792 if test "$PKG_CONFIG" = "no" ; then
9793 echo "*** The pkg-config script could not be found. Make sure it is"
9794 echo "*** in your path, or give the full path to pkg-config with"
9795 echo "*** the PKG_CONFIG environment variable or --with-pkg-config-prog."
9796 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
9798 PKG_CONFIG_MIN_VERSION
=0.9.0
9799 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9800 echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
9801 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6
9803 if $PKG_CONFIG --exists "$GTK_MODULES" ; then
9804 echo "$as_me:$LINENO: result: yes" >&5
9805 echo "${ECHO_T}yes" >&6
9808 echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
9809 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6
9810 GTK_CFLAGS
=`$PKG_CONFIG --cflags "$GTK_MODULES"`
9811 echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
9812 echo "${ECHO_T}$GTK_CFLAGS" >&6
9814 echo "$as_me:$LINENO: checking GTK_LIBS" >&5
9815 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6
9816 GTK_LIBS
=`$PKG_CONFIG --libs "$GTK_MODULES"`
9817 echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
9818 echo "${ECHO_T}$GTK_LIBS" >&6
9822 ## If we have a custom action on failure, don't print errors, but
9823 ## do set a variable so people can do so.
9824 GTK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
9825 echo $GTK_PKG_ERRORS
9831 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9832 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9836 if test $succeeded = yes; then
9839 { { 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
9840 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;}
9841 { (exit 1); exit 1; }; }
9846 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $GTK_CFLAGS"
9847 CFLAGS
="$CFLAGS $GTK_CFLAGS"
9848 LIBS
="$GTK_LIBS $LIBS"
9851 cat >>confdefs.h
<<\_ACEOF
9857 with_toolkit_scroll_bars
=yes
9859 HAVE_GTK_MULTIDISPLAY
=no
9861 for ac_func
in gdk_display_open
9863 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9864 echo "$as_me:$LINENO: checking for $ac_func" >&5
9865 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9866 if eval "test \"\${$as_ac_var+set}\" = set"; then
9867 echo $ECHO_N "(cached) $ECHO_C" >&6
9869 cat >conftest.
$ac_ext <<_ACEOF
9872 cat confdefs.h
>>conftest.
$ac_ext
9873 cat >>conftest.
$ac_ext <<_ACEOF
9874 /* end confdefs.h. */
9875 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9876 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9877 #define $ac_func innocuous_$ac_func
9879 /* System header to define __stub macros and hopefully few prototypes,
9880 which can conflict with char $ac_func (); below.
9881 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9882 <limits.h> exists even on freestanding compilers. */
9885 # include <limits.h>
9887 # include <assert.h>
9892 /* Override any gcc2 internal prototype to avoid an error. */
9897 /* We use char because int might match the return type of a gcc2
9898 builtin and then its argument prototype would still apply. */
9900 /* The GNU C library defines this for functions which it implements
9901 to always fail with ENOSYS. Some functions are actually named
9902 something starting with __ and the normal name is an alias. */
9903 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9906 char (*f) () = $ac_func;
9915 return f != $ac_func;
9920 rm -f conftest.
$ac_objext conftest
$ac_exeext
9921 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9922 (eval $ac_link) 2>conftest.er1
9924 grep -v '^ *+' conftest.er1
>conftest.err
9926 cat conftest.err
>&5
9927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9928 (exit $ac_status); } &&
9929 { ac_try
='test -z "$ac_c_werror_flag"
9930 || test ! -s conftest.err'
9931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9935 (exit $ac_status); }; } &&
9936 { ac_try
='test -s conftest$ac_exeext'
9937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9941 (exit $ac_status); }; }; then
9942 eval "$as_ac_var=yes"
9944 echo "$as_me: failed program was:" >&5
9945 sed 's/^/| /' conftest.
$ac_ext >&5
9947 eval "$as_ac_var=no"
9949 rm -f conftest.err conftest.
$ac_objext \
9950 conftest
$ac_exeext conftest.
$ac_ext
9952 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9953 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9954 if test `eval echo '${'$as_ac_var'}'` = yes; then
9955 cat >>confdefs.h
<<_ACEOF
9956 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9958 HAVE_GTK_MULTIDISPLAY
=yes
9962 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
9964 cat >>confdefs.h
<<\_ACEOF
9965 #define HAVE_GTK_MULTIDISPLAY 1
9971 if test x
"${USE_X_TOOLKIT}" = xmaybe
; then
9972 if test x
"${HAVE_X11R5}" = xyes
; then
9973 echo "$as_me:$LINENO: checking X11 version 5 with Xaw" >&5
9974 echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6
9975 if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then
9976 echo $ECHO_N "(cached) $ECHO_C" >&6
9978 cat >conftest.
$ac_ext <<_ACEOF
9981 cat confdefs.h
>>conftest.
$ac_ext
9982 cat >>conftest.
$ac_ext <<_ACEOF
9983 /* end confdefs.h. */
9985 #include <X11/Intrinsic.h>
9986 #include <X11/Xaw/Simple.h>
9995 rm -f conftest.
$ac_objext conftest
$ac_exeext
9996 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9997 (eval $ac_link) 2>conftest.er1
9999 grep -v '^ *+' conftest.er1
>conftest.err
10001 cat conftest.err
>&5
10002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10003 (exit $ac_status); } &&
10004 { ac_try
='test -z "$ac_c_werror_flag"
10005 || test ! -s conftest.err'
10006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10007 (eval $ac_try) 2>&5
10009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10010 (exit $ac_status); }; } &&
10011 { ac_try
='test -s conftest$ac_exeext'
10012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10013 (eval $ac_try) 2>&5
10015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10016 (exit $ac_status); }; }; then
10017 emacs_cv_x11_version_5_with_xaw
=yes
10019 echo "$as_me: failed program was:" >&5
10020 sed 's/^/| /' conftest.
$ac_ext >&5
10022 emacs_cv_x11_version_5_with_xaw
=no
10024 rm -f conftest.err conftest.
$ac_objext \
10025 conftest
$ac_exeext conftest.
$ac_ext
10028 if test $emacs_cv_x11_version_5_with_xaw = yes; then
10029 echo "$as_me:$LINENO: result: 5 or newer, with Xaw; use toolkit by default" >&5
10030 echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6
10031 USE_X_TOOLKIT
=LUCID
10033 echo "$as_me:$LINENO: result: before 5 or no Xaw; do not use toolkit by default" >&5
10034 echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6
10042 X_TOOLKIT_TYPE
=$USE_X_TOOLKIT
10044 if test "${USE_X_TOOLKIT}" != "none"; then
10045 echo "$as_me:$LINENO: checking X11 toolkit version" >&5
10046 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6
10047 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
10048 echo $ECHO_N "(cached) $ECHO_C" >&6
10050 cat >conftest.
$ac_ext <<_ACEOF
10053 cat confdefs.h
>>conftest.
$ac_ext
10054 cat >>conftest.
$ac_ext <<_ACEOF
10055 /* end confdefs.h. */
10056 #include <X11/Intrinsic.h>
10060 #if XtSpecificationRelease < 6
10068 rm -f conftest.
$ac_objext conftest
$ac_exeext
10069 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10070 (eval $ac_link) 2>conftest.er1
10072 grep -v '^ *+' conftest.er1
>conftest.err
10074 cat conftest.err
>&5
10075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10076 (exit $ac_status); } &&
10077 { ac_try
='test -z "$ac_c_werror_flag"
10078 || test ! -s conftest.err'
10079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10080 (eval $ac_try) 2>&5
10082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10083 (exit $ac_status); }; } &&
10084 { ac_try
='test -s conftest$ac_exeext'
10085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10086 (eval $ac_try) 2>&5
10088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10089 (exit $ac_status); }; }; then
10090 emacs_cv_x11_toolkit_version_6
=yes
10092 echo "$as_me: failed program was:" >&5
10093 sed 's/^/| /' conftest.
$ac_ext >&5
10095 emacs_cv_x11_toolkit_version_6
=no
10097 rm -f conftest.err conftest.
$ac_objext \
10098 conftest
$ac_exeext conftest.
$ac_ext
10101 HAVE_X11XTR6
=$emacs_cv_x11_toolkit_version_6
10102 if test $emacs_cv_x11_toolkit_version_6 = yes; then
10103 echo "$as_me:$LINENO: result: 6 or newer" >&5
10104 echo "${ECHO_T}6 or newer" >&6
10106 cat >>confdefs.h
<<\_ACEOF
10107 #define HAVE_X11XTR6 1
10111 echo "$as_me:$LINENO: result: before 6" >&5
10112 echo "${ECHO_T}before 6" >&6
10116 if test x
$HAVE_X11XTR6 = xyes
; then
10117 LIBS
="-lXt -lSM -lICE $LIBS"
10122 echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
10123 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6
10124 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
10125 echo $ECHO_N "(cached) $ECHO_C" >&6
10127 ac_check_lib_save_LIBS
=$LIBS
10129 cat >conftest.
$ac_ext <<_ACEOF
10132 cat confdefs.h
>>conftest.
$ac_ext
10133 cat >>conftest.
$ac_ext <<_ACEOF
10134 /* end confdefs.h. */
10136 /* Override any gcc2 internal prototype to avoid an error. */
10140 /* We use char because int might match the return type of a gcc2
10141 builtin and then its argument prototype would still apply. */
10142 char XmuConvertStandardSelection ();
10146 XmuConvertStandardSelection ();
10151 rm -f conftest.
$ac_objext conftest
$ac_exeext
10152 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10153 (eval $ac_link) 2>conftest.er1
10155 grep -v '^ *+' conftest.er1
>conftest.err
10157 cat conftest.err
>&5
10158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10159 (exit $ac_status); } &&
10160 { ac_try
='test -z "$ac_c_werror_flag"
10161 || test ! -s conftest.err'
10162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10163 (eval $ac_try) 2>&5
10165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10166 (exit $ac_status); }; } &&
10167 { ac_try
='test -s conftest$ac_exeext'
10168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10169 (eval $ac_try) 2>&5
10171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10172 (exit $ac_status); }; }; then
10173 ac_cv_lib_Xmu_XmuConvertStandardSelection
=yes
10175 echo "$as_me: failed program was:" >&5
10176 sed 's/^/| /' conftest.
$ac_ext >&5
10178 ac_cv_lib_Xmu_XmuConvertStandardSelection
=no
10180 rm -f conftest.err conftest.
$ac_objext \
10181 conftest
$ac_exeext conftest.
$ac_ext
10182 LIBS
=$ac_check_lib_save_LIBS
10184 echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
10185 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6
10186 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
10187 cat >>confdefs.h
<<_ACEOF
10188 #define HAVE_LIBXMU 1
10195 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no
&& LIBS
="$OLDLIBS"
10198 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
10199 if test "${HAVE_X11}" = "yes"; then
10200 if test "${USE_X_TOOLKIT}" != "none"; then
10202 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
10203 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
10204 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
10205 echo $ECHO_N "(cached) $ECHO_C" >&6
10207 ac_check_lib_save_LIBS
=$LIBS
10208 LIBS
="-lXext $LIBS"
10209 cat >conftest.
$ac_ext <<_ACEOF
10212 cat confdefs.h
>>conftest.
$ac_ext
10213 cat >>conftest.
$ac_ext <<_ACEOF
10214 /* end confdefs.h. */
10216 /* Override any gcc2 internal prototype to avoid an error. */
10220 /* We use char because int might match the return type of a gcc2
10221 builtin and then its argument prototype would still apply. */
10222 char XShapeQueryExtension ();
10226 XShapeQueryExtension ();
10231 rm -f conftest.
$ac_objext conftest
$ac_exeext
10232 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10233 (eval $ac_link) 2>conftest.er1
10235 grep -v '^ *+' conftest.er1
>conftest.err
10237 cat conftest.err
>&5
10238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10239 (exit $ac_status); } &&
10240 { ac_try
='test -z "$ac_c_werror_flag"
10241 || test ! -s conftest.err'
10242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10243 (eval $ac_try) 2>&5
10245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10246 (exit $ac_status); }; } &&
10247 { ac_try
='test -s conftest$ac_exeext'
10248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10249 (eval $ac_try) 2>&5
10251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10252 (exit $ac_status); }; }; then
10253 ac_cv_lib_Xext_XShapeQueryExtension
=yes
10255 echo "$as_me: failed program was:" >&5
10256 sed 's/^/| /' conftest.
$ac_ext >&5
10258 ac_cv_lib_Xext_XShapeQueryExtension
=no
10260 rm -f conftest.err conftest.
$ac_objext \
10261 conftest
$ac_exeext conftest.
$ac_ext
10262 LIBS
=$ac_check_lib_save_LIBS
10264 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
10265 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
10266 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
10267 cat >>confdefs.h
<<_ACEOF
10268 #define HAVE_LIBXEXT 1
10271 LIBS
="-lXext $LIBS"
10278 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
10279 echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
10280 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6
10281 if test "${emacs_cv_lesstif+set}" = set; then
10282 echo $ECHO_N "(cached) $ECHO_C" >&6
10284 # We put this in CFLAGS temporarily to precede other -I options
10285 # that might be in CFLAGS temporarily.
10286 # We put this in CPPFLAGS where it precedes the other -I options.
10287 OLD_CPPFLAGS
=$CPPFLAGS
10289 CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
10290 CFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
10291 cat >conftest.
$ac_ext <<_ACEOF
10294 cat confdefs.h
>>conftest.
$ac_ext
10295 cat >>conftest.
$ac_ext <<_ACEOF
10296 /* end confdefs.h. */
10297 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
10306 rm -f conftest.
$ac_objext
10307 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10308 (eval $ac_compile) 2>conftest.er1
10310 grep -v '^ *+' conftest.er1
>conftest.err
10312 cat conftest.err
>&5
10313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10314 (exit $ac_status); } &&
10315 { ac_try
='test -z "$ac_c_werror_flag"
10316 || test ! -s conftest.err'
10317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10318 (eval $ac_try) 2>&5
10320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10321 (exit $ac_status); }; } &&
10322 { ac_try
='test -s conftest.$ac_objext'
10323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10324 (eval $ac_try) 2>&5
10326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10327 (exit $ac_status); }; }; then
10328 emacs_cv_lesstif
=yes
10330 echo "$as_me: failed program was:" >&5
10331 sed 's/^/| /' conftest.
$ac_ext >&5
10333 emacs_cv_lesstif
=no
10335 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10337 echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
10338 echo "${ECHO_T}$emacs_cv_lesstif" >&6
10339 if test $emacs_cv_lesstif = yes; then
10340 # Make sure this -I option remains in CPPFLAGS after it is set
10341 # back to REAL_CPPFLAGS.
10342 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
10343 # have those other -I options anyway. Ultimately, having this
10344 # directory ultimately in CPPFLAGS will be enough.
10345 REAL_CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
10346 LDFLAGS
="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
10349 CPPFLAGS
=$OLD_CPPFLAGS
10351 echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
10352 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6
10353 if test "${emacs_cv_motif_version_2_1+set}" = set; then
10354 echo $ECHO_N "(cached) $ECHO_C" >&6
10356 cat >conftest.
$ac_ext <<_ACEOF
10359 cat confdefs.h
>>conftest.
$ac_ext
10360 cat >>conftest.
$ac_ext <<_ACEOF
10361 /* end confdefs.h. */
10366 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
10369 Motif version prior to 2.1.
10375 rm -f conftest.
$ac_objext
10376 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10377 (eval $ac_compile) 2>conftest.er1
10379 grep -v '^ *+' conftest.er1
>conftest.err
10381 cat conftest.err
>&5
10382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10383 (exit $ac_status); } &&
10384 { ac_try
='test -z "$ac_c_werror_flag"
10385 || test ! -s conftest.err'
10386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10387 (eval $ac_try) 2>&5
10389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10390 (exit $ac_status); }; } &&
10391 { ac_try
='test -s conftest.$ac_objext'
10392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10393 (eval $ac_try) 2>&5
10395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10396 (exit $ac_status); }; }; then
10397 emacs_cv_motif_version_2_1
=yes
10399 echo "$as_me: failed program was:" >&5
10400 sed 's/^/| /' conftest.
$ac_ext >&5
10402 emacs_cv_motif_version_2_1
=no
10404 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10406 echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
10407 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6
10408 HAVE_MOTIF_2_1
=$emacs_cv_motif_version_2_1
10409 if test $emacs_cv_motif_version_2_1 = yes; then
10412 cat >>confdefs.h
<<\_ACEOF
10413 #define HAVE_MOTIF_2_1 1
10416 echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
10417 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6
10418 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
10419 echo $ECHO_N "(cached) $ECHO_C" >&6
10421 ac_check_lib_save_LIBS
=$LIBS
10423 cat >conftest.
$ac_ext <<_ACEOF
10426 cat confdefs.h
>>conftest.
$ac_ext
10427 cat >>conftest.
$ac_ext <<_ACEOF
10428 /* end confdefs.h. */
10430 /* Override any gcc2 internal prototype to avoid an error. */
10434 /* We use char because int might match the return type of a gcc2
10435 builtin and then its argument prototype would still apply. */
10436 char XpCreateContext ();
10440 XpCreateContext ();
10445 rm -f conftest.
$ac_objext conftest
$ac_exeext
10446 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10447 (eval $ac_link) 2>conftest.er1
10449 grep -v '^ *+' conftest.er1
>conftest.err
10451 cat conftest.err
>&5
10452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10453 (exit $ac_status); } &&
10454 { ac_try
='test -z "$ac_c_werror_flag"
10455 || test ! -s conftest.err'
10456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10457 (eval $ac_try) 2>&5
10459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10460 (exit $ac_status); }; } &&
10461 { ac_try
='test -s conftest$ac_exeext'
10462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10463 (eval $ac_try) 2>&5
10465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10466 (exit $ac_status); }; }; then
10467 ac_cv_lib_Xp_XpCreateContext
=yes
10469 echo "$as_me: failed program was:" >&5
10470 sed 's/^/| /' conftest.
$ac_ext >&5
10472 ac_cv_lib_Xp_XpCreateContext
=no
10474 rm -f conftest.err conftest.
$ac_objext \
10475 conftest
$ac_exeext conftest.
$ac_ext
10476 LIBS
=$ac_check_lib_save_LIBS
10478 echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
10479 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6
10480 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
10484 if test ${HAVE_LIBXP} = yes; then
10486 cat >>confdefs.h
<<\_ACEOF
10487 #define HAVE_LIBXP 1
10494 ### Is -lXaw3d available?
10496 if test "${HAVE_X11}" = "yes"; then
10497 if test "${USE_X_TOOLKIT}" != "none"; then
10498 echo "$as_me:$LINENO: checking for X11/Xaw3d/Scrollbar.h" >&5
10499 echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6
10500 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
10501 echo $ECHO_N "(cached) $ECHO_C" >&6
10503 cat >conftest.
$ac_ext <<_ACEOF
10506 cat confdefs.h
>>conftest.
$ac_ext
10507 cat >>conftest.
$ac_ext <<_ACEOF
10508 /* end confdefs.h. */
10509 #include <X11/Xaw3d/Scrollbar.h>
10511 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10512 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
10514 grep -v '^ *+' conftest.er1
>conftest.err
10516 cat conftest.err
>&5
10517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10518 (exit $ac_status); } >/dev
/null
; then
10519 if test -s conftest.err
; then
10520 ac_cpp_err
=$ac_c_preproc_warn_flag
10521 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
10528 if test -z "$ac_cpp_err"; then
10529 ac_cv_header_X11_Xaw3d_Scrollbar_h
=yes
10531 echo "$as_me: failed program was:" >&5
10532 sed 's/^/| /' conftest.
$ac_ext >&5
10534 ac_cv_header_X11_Xaw3d_Scrollbar_h
=no
10536 rm -f conftest.err conftest.
$ac_ext
10538 echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
10539 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6
10540 if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then
10541 echo "$as_me:$LINENO: checking for XawScrollbarSetThumb in -lXaw3d" >&5
10542 echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6
10543 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then
10544 echo $ECHO_N "(cached) $ECHO_C" >&6
10546 ac_check_lib_save_LIBS
=$LIBS
10547 LIBS
="-lXaw3d $LIBS"
10548 cat >conftest.
$ac_ext <<_ACEOF
10551 cat confdefs.h
>>conftest.
$ac_ext
10552 cat >>conftest.
$ac_ext <<_ACEOF
10553 /* end confdefs.h. */
10555 /* Override any gcc2 internal prototype to avoid an error. */
10559 /* We use char because int might match the return type of a gcc2
10560 builtin and then its argument prototype would still apply. */
10561 char XawScrollbarSetThumb ();
10565 XawScrollbarSetThumb ();
10570 rm -f conftest.
$ac_objext conftest
$ac_exeext
10571 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10572 (eval $ac_link) 2>conftest.er1
10574 grep -v '^ *+' conftest.er1
>conftest.err
10576 cat conftest.err
>&5
10577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10578 (exit $ac_status); } &&
10579 { ac_try
='test -z "$ac_c_werror_flag"
10580 || test ! -s conftest.err'
10581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10582 (eval $ac_try) 2>&5
10584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10585 (exit $ac_status); }; } &&
10586 { ac_try
='test -s conftest$ac_exeext'
10587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10588 (eval $ac_try) 2>&5
10590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10591 (exit $ac_status); }; }; then
10592 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=yes
10594 echo "$as_me: failed program was:" >&5
10595 sed 's/^/| /' conftest.
$ac_ext >&5
10597 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=no
10599 rm -f conftest.err conftest.
$ac_objext \
10600 conftest
$ac_exeext conftest.
$ac_ext
10601 LIBS
=$ac_check_lib_save_LIBS
10603 echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
10604 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6
10605 if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then
10612 if test "${HAVE_XAW3D}" = "yes"; then
10614 cat >>confdefs.h
<<\_ACEOF
10615 #define HAVE_XAW3D 1
10624 USE_TOOLKIT_SCROLL_BARS
=no
10625 if test "${with_toolkit_scroll_bars}" != "no"; then
10626 if test "${USE_X_TOOLKIT}" != "none"; then
10627 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
10628 cat >>confdefs.h
<<\_ACEOF
10629 #define USE_TOOLKIT_SCROLL_BARS 1
10633 USE_TOOLKIT_SCROLL_BARS
=yes
10634 elif test "${HAVE_XAW3D}" = "yes"; then
10635 cat >>confdefs.h
<<\_ACEOF
10636 #define USE_TOOLKIT_SCROLL_BARS 1
10639 USE_TOOLKIT_SCROLL_BARS
=yes
10641 elif test "${HAVE_GTK}" = "yes"; then
10642 cat >>confdefs.h
<<\_ACEOF
10643 #define USE_TOOLKIT_SCROLL_BARS 1
10646 USE_TOOLKIT_SCROLL_BARS
=yes
10650 cat >conftest.
$ac_ext <<_ACEOF
10653 cat confdefs.h
>>conftest.
$ac_ext
10654 cat >>conftest.
$ac_ext <<_ACEOF
10655 /* end confdefs.h. */
10657 #include <X11/Xlib.h>
10658 #include <X11/Xresource.h>
10667 rm -f conftest.
$ac_objext
10668 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10669 (eval $ac_compile) 2>conftest.er1
10671 grep -v '^ *+' conftest.er1
>conftest.err
10673 cat conftest.err
>&5
10674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10675 (exit $ac_status); } &&
10676 { ac_try
='test -z "$ac_c_werror_flag"
10677 || test ! -s conftest.err'
10678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10679 (eval $ac_try) 2>&5
10681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10682 (exit $ac_status); }; } &&
10683 { ac_try
='test -s conftest.$ac_objext'
10684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10685 (eval $ac_try) 2>&5
10687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10688 (exit $ac_status); }; }; then
10691 cat >>confdefs.h
<<\_ACEOF
10696 echo "$as_me: failed program was:" >&5
10697 sed 's/^/| /' conftest.
$ac_ext >&5
10701 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10704 if test "${with_xim}" != "no"; then
10706 cat >>confdefs.h
<<\_ACEOF
10713 if test "${HAVE_XIM}" != "no"; then
10714 late_CFLAGS
=$CFLAGS
10715 if test "$GCC" = yes; then
10716 CFLAGS
="$CFLAGS --pedantic-errors"
10718 cat >conftest.
$ac_ext <<_ACEOF
10721 cat confdefs.h
>>conftest.
$ac_ext
10722 cat >>conftest.
$ac_ext <<_ACEOF
10723 /* end confdefs.h. */
10725 #include <X11/Xlib.h>
10726 #include <X11/Xresource.h>
10735 XPointer *client_data;
10737 /* If we're not using GCC, it's probably not XFree86, and this is
10738 probably right, but we can't use something like --pedantic-errors. */
10739 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
10740 char*, XIMProc, XPointer*);
10742 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
10748 rm -f conftest.
$ac_objext
10749 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10750 (eval $ac_compile) 2>conftest.er1
10752 grep -v '^ *+' conftest.er1
>conftest.err
10754 cat conftest.err
>&5
10755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10756 (exit $ac_status); } &&
10757 { ac_try
='test -z "$ac_c_werror_flag"
10758 || test ! -s conftest.err'
10759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10760 (eval $ac_try) 2>&5
10762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10763 (exit $ac_status); }; } &&
10764 { ac_try
='test -s conftest.$ac_objext'
10765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10766 (eval $ac_try) 2>&5
10768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10769 (exit $ac_status); }; }; then
10770 emacs_cv_arg6_star
=yes
10772 echo "$as_me: failed program was:" >&5
10773 sed 's/^/| /' conftest.
$ac_ext >&5
10776 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10778 if test "$emacs_cv_arg6_star" = yes; then
10779 cat >>confdefs.h
<<\_ACEOF
10780 #define XRegisterIMInstantiateCallback_arg6 XPointer*
10784 cat >>confdefs.h
<<\_ACEOF
10785 #define XRegisterIMInstantiateCallback_arg6 XPointer
10789 CFLAGS
=$late_CFLAGS
10792 ### Use -lXpm if available, unless `--with-xpm=no'.
10794 if test "${HAVE_X11}" = "yes"; then
10795 if test "${with_xpm}" != "no"; then
10796 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
10797 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
10798 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
10799 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
10800 echo $ECHO_N "(cached) $ECHO_C" >&6
10802 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
10803 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
10805 # Is the header compilable?
10806 echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
10807 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6
10808 cat >conftest.
$ac_ext <<_ACEOF
10811 cat confdefs.h
>>conftest.
$ac_ext
10812 cat >>conftest.
$ac_ext <<_ACEOF
10813 /* end confdefs.h. */
10814 $ac_includes_default
10815 #include <X11/xpm.h>
10817 rm -f conftest.
$ac_objext
10818 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10819 (eval $ac_compile) 2>conftest.er1
10821 grep -v '^ *+' conftest.er1
>conftest.err
10823 cat conftest.err
>&5
10824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10825 (exit $ac_status); } &&
10826 { ac_try
='test -z "$ac_c_werror_flag"
10827 || test ! -s conftest.err'
10828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10829 (eval $ac_try) 2>&5
10831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10832 (exit $ac_status); }; } &&
10833 { ac_try
='test -s conftest.$ac_objext'
10834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10835 (eval $ac_try) 2>&5
10837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10838 (exit $ac_status); }; }; then
10839 ac_header_compiler
=yes
10841 echo "$as_me: failed program was:" >&5
10842 sed 's/^/| /' conftest.
$ac_ext >&5
10844 ac_header_compiler
=no
10846 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10847 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10848 echo "${ECHO_T}$ac_header_compiler" >&6
10850 # Is the header present?
10851 echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
10852 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6
10853 cat >conftest.
$ac_ext <<_ACEOF
10856 cat confdefs.h
>>conftest.
$ac_ext
10857 cat >>conftest.
$ac_ext <<_ACEOF
10858 /* end confdefs.h. */
10859 #include <X11/xpm.h>
10861 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10862 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
10864 grep -v '^ *+' conftest.er1
>conftest.err
10866 cat conftest.err
>&5
10867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10868 (exit $ac_status); } >/dev
/null
; then
10869 if test -s conftest.err
; then
10870 ac_cpp_err
=$ac_c_preproc_warn_flag
10871 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
10878 if test -z "$ac_cpp_err"; then
10879 ac_header_preproc
=yes
10881 echo "$as_me: failed program was:" >&5
10882 sed 's/^/| /' conftest.
$ac_ext >&5
10884 ac_header_preproc
=no
10886 rm -f conftest.err conftest.
$ac_ext
10887 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10888 echo "${ECHO_T}$ac_header_preproc" >&6
10890 # So? What about this header?
10891 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10893 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
10894 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10895 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
10896 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
10897 ac_header_preproc
=yes
10900 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
10901 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
10902 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
10903 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
10904 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
10905 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
10906 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
10907 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
10908 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
10909 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
10910 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
10911 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
10914 ## ------------------------------------------ ##
10915 ## Report this to the AC_PACKAGE_NAME lists. ##
10916 ## ------------------------------------------ ##
10919 sed "s/^/$as_me: WARNING: /" >&2
10922 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
10923 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
10924 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
10925 echo $ECHO_N "(cached) $ECHO_C" >&6
10927 ac_cv_header_X11_xpm_h
=$ac_header_preproc
10929 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
10930 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
10933 if test $ac_cv_header_X11_xpm_h = yes; then
10934 echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
10935 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6
10936 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
10937 echo $ECHO_N "(cached) $ECHO_C" >&6
10939 ac_check_lib_save_LIBS
=$LIBS
10940 LIBS
="-lXpm -lX11 $LIBS"
10941 cat >conftest.
$ac_ext <<_ACEOF
10944 cat confdefs.h
>>conftest.
$ac_ext
10945 cat >>conftest.
$ac_ext <<_ACEOF
10946 /* end confdefs.h. */
10948 /* Override any gcc2 internal prototype to avoid an error. */
10952 /* We use char because int might match the return type of a gcc2
10953 builtin and then its argument prototype would still apply. */
10954 char XpmReadFileToPixmap ();
10958 XpmReadFileToPixmap ();
10963 rm -f conftest.
$ac_objext conftest
$ac_exeext
10964 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10965 (eval $ac_link) 2>conftest.er1
10967 grep -v '^ *+' conftest.er1
>conftest.err
10969 cat conftest.err
>&5
10970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10971 (exit $ac_status); } &&
10972 { ac_try
='test -z "$ac_c_werror_flag"
10973 || test ! -s conftest.err'
10974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10975 (eval $ac_try) 2>&5
10977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10978 (exit $ac_status); }; } &&
10979 { ac_try
='test -s conftest$ac_exeext'
10980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10981 (eval $ac_try) 2>&5
10983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10984 (exit $ac_status); }; }; then
10985 ac_cv_lib_Xpm_XpmReadFileToPixmap
=yes
10987 echo "$as_me: failed program was:" >&5
10988 sed 's/^/| /' conftest.
$ac_ext >&5
10990 ac_cv_lib_Xpm_XpmReadFileToPixmap
=no
10992 rm -f conftest.err conftest.
$ac_objext \
10993 conftest
$ac_exeext conftest.
$ac_ext
10994 LIBS
=$ac_check_lib_save_LIBS
10996 echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
10997 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6
10998 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
11005 if test "${HAVE_XPM}" = "yes"; then
11006 echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
11007 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6
11008 cat >conftest.
$ac_ext <<_ACEOF
11011 cat confdefs.h
>>conftest.
$ac_ext
11012 cat >>conftest.
$ac_ext <<_ACEOF
11013 /* end confdefs.h. */
11014 #include "X11/xpm.h"
11015 #ifndef XpmReturnAllocPixels
11016 no_return_alloc_pixels
11020 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11021 $EGREP "no_return_alloc_pixels" >/dev
/null
2>&1; then
11029 if test "${HAVE_XPM}" = "yes"; then
11030 echo "$as_me:$LINENO: result: yes" >&5
11031 echo "${ECHO_T}yes" >&6
11033 echo "$as_me:$LINENO: result: no" >&5
11034 echo "${ECHO_T}no" >&6
11039 if test "${HAVE_XPM}" = "yes"; then
11041 cat >>confdefs.h
<<\_ACEOF
11048 ### Use -ljpeg if available, unless `--with-jpeg=no'.
11050 if test "${HAVE_X11}" = "yes"; then
11051 if test "${with_jpeg}" != "no"; then
11052 if test "${ac_cv_header_jerror_h+set}" = set; then
11053 echo "$as_me:$LINENO: checking for jerror.h" >&5
11054 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
11055 if test "${ac_cv_header_jerror_h+set}" = set; then
11056 echo $ECHO_N "(cached) $ECHO_C" >&6
11058 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
11059 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
11061 # Is the header compilable?
11062 echo "$as_me:$LINENO: checking jerror.h usability" >&5
11063 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6
11064 cat >conftest.
$ac_ext <<_ACEOF
11067 cat confdefs.h
>>conftest.
$ac_ext
11068 cat >>conftest.
$ac_ext <<_ACEOF
11069 /* end confdefs.h. */
11070 $ac_includes_default
11071 #include <jerror.h>
11073 rm -f conftest.
$ac_objext
11074 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11075 (eval $ac_compile) 2>conftest.er1
11077 grep -v '^ *+' conftest.er1
>conftest.err
11079 cat conftest.err
>&5
11080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11081 (exit $ac_status); } &&
11082 { ac_try
='test -z "$ac_c_werror_flag"
11083 || test ! -s conftest.err'
11084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11085 (eval $ac_try) 2>&5
11087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11088 (exit $ac_status); }; } &&
11089 { ac_try
='test -s conftest.$ac_objext'
11090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11091 (eval $ac_try) 2>&5
11093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11094 (exit $ac_status); }; }; then
11095 ac_header_compiler
=yes
11097 echo "$as_me: failed program was:" >&5
11098 sed 's/^/| /' conftest.
$ac_ext >&5
11100 ac_header_compiler
=no
11102 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11103 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11104 echo "${ECHO_T}$ac_header_compiler" >&6
11106 # Is the header present?
11107 echo "$as_me:$LINENO: checking jerror.h presence" >&5
11108 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6
11109 cat >conftest.
$ac_ext <<_ACEOF
11112 cat confdefs.h
>>conftest.
$ac_ext
11113 cat >>conftest.
$ac_ext <<_ACEOF
11114 /* end confdefs.h. */
11115 #include <jerror.h>
11117 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11118 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11120 grep -v '^ *+' conftest.er1
>conftest.err
11122 cat conftest.err
>&5
11123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11124 (exit $ac_status); } >/dev
/null
; then
11125 if test -s conftest.err
; then
11126 ac_cpp_err
=$ac_c_preproc_warn_flag
11127 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
11134 if test -z "$ac_cpp_err"; then
11135 ac_header_preproc
=yes
11137 echo "$as_me: failed program was:" >&5
11138 sed 's/^/| /' conftest.
$ac_ext >&5
11140 ac_header_preproc
=no
11142 rm -f conftest.err conftest.
$ac_ext
11143 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11144 echo "${ECHO_T}$ac_header_preproc" >&6
11146 # So? What about this header?
11147 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11149 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
11150 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11151 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
11152 echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
11153 ac_header_preproc
=yes
11156 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
11157 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
11158 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
11159 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
11160 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
11161 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
11162 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
11163 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
11164 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
11165 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
11166 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
11167 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
11170 ## ------------------------------------------ ##
11171 ## Report this to the AC_PACKAGE_NAME lists. ##
11172 ## ------------------------------------------ ##
11175 sed "s/^/$as_me: WARNING: /" >&2
11178 echo "$as_me:$LINENO: checking for jerror.h" >&5
11179 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
11180 if test "${ac_cv_header_jerror_h+set}" = set; then
11181 echo $ECHO_N "(cached) $ECHO_C" >&6
11183 ac_cv_header_jerror_h
=$ac_header_preproc
11185 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
11186 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
11189 if test $ac_cv_header_jerror_h = yes; then
11190 echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
11191 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6
11192 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
11193 echo $ECHO_N "(cached) $ECHO_C" >&6
11195 ac_check_lib_save_LIBS
=$LIBS
11196 LIBS
="-ljpeg $LIBS"
11197 cat >conftest.
$ac_ext <<_ACEOF
11200 cat confdefs.h
>>conftest.
$ac_ext
11201 cat >>conftest.
$ac_ext <<_ACEOF
11202 /* end confdefs.h. */
11204 /* Override any gcc2 internal prototype to avoid an error. */
11208 /* We use char because int might match the return type of a gcc2
11209 builtin and then its argument prototype would still apply. */
11210 char jpeg_destroy_compress ();
11214 jpeg_destroy_compress ();
11219 rm -f conftest.
$ac_objext conftest
$ac_exeext
11220 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11221 (eval $ac_link) 2>conftest.er1
11223 grep -v '^ *+' conftest.er1
>conftest.err
11225 cat conftest.err
>&5
11226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11227 (exit $ac_status); } &&
11228 { ac_try
='test -z "$ac_c_werror_flag"
11229 || test ! -s conftest.err'
11230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11231 (eval $ac_try) 2>&5
11233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11234 (exit $ac_status); }; } &&
11235 { ac_try
='test -s conftest$ac_exeext'
11236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11237 (eval $ac_try) 2>&5
11239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11240 (exit $ac_status); }; }; then
11241 ac_cv_lib_jpeg_jpeg_destroy_compress
=yes
11243 echo "$as_me: failed program was:" >&5
11244 sed 's/^/| /' conftest.
$ac_ext >&5
11246 ac_cv_lib_jpeg_jpeg_destroy_compress
=no
11248 rm -f conftest.err conftest.
$ac_objext \
11249 conftest
$ac_exeext conftest.
$ac_ext
11250 LIBS
=$ac_check_lib_save_LIBS
11252 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
11253 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6
11254 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
11264 if test "${HAVE_JPEG}" = "yes"; then
11265 cat >>confdefs.h
<<\_ACEOF
11266 #define HAVE_JPEG 1
11269 cat >conftest.
$ac_ext <<_ACEOF
11272 cat confdefs.h
>>conftest.
$ac_ext
11273 cat >>conftest.
$ac_ext <<_ACEOF
11274 /* end confdefs.h. */
11275 #include <jpeglib.h>
11276 version=JPEG_LIB_VERSION
11279 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11280 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev
/null
2>&1; then
11281 cat >>confdefs.h
<<\_ACEOF
11282 #define HAVE_JPEG 1
11286 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
11287 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
11295 ### Use -lpng if available, unless `--with-png=no'.
11297 if test "${HAVE_X11}" = "yes"; then
11298 if test "${with_png}" != "no"; then
11299 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
11300 # in /usr/include/libpng.
11303 for ac_header
in png.h libpng
/png.h
11305 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11306 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11307 echo "$as_me:$LINENO: checking for $ac_header" >&5
11308 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11309 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11310 echo $ECHO_N "(cached) $ECHO_C" >&6
11312 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11313 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11315 # Is the header compilable?
11316 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11317 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11318 cat >conftest.
$ac_ext <<_ACEOF
11321 cat confdefs.h
>>conftest.
$ac_ext
11322 cat >>conftest.
$ac_ext <<_ACEOF
11323 /* end confdefs.h. */
11324 $ac_includes_default
11325 #include <$ac_header>
11327 rm -f conftest.
$ac_objext
11328 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11329 (eval $ac_compile) 2>conftest.er1
11331 grep -v '^ *+' conftest.er1
>conftest.err
11333 cat conftest.err
>&5
11334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11335 (exit $ac_status); } &&
11336 { ac_try
='test -z "$ac_c_werror_flag"
11337 || test ! -s conftest.err'
11338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11339 (eval $ac_try) 2>&5
11341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11342 (exit $ac_status); }; } &&
11343 { ac_try
='test -s conftest.$ac_objext'
11344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11345 (eval $ac_try) 2>&5
11347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11348 (exit $ac_status); }; }; then
11349 ac_header_compiler
=yes
11351 echo "$as_me: failed program was:" >&5
11352 sed 's/^/| /' conftest.
$ac_ext >&5
11354 ac_header_compiler
=no
11356 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11357 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11358 echo "${ECHO_T}$ac_header_compiler" >&6
11360 # Is the header present?
11361 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11362 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11363 cat >conftest.
$ac_ext <<_ACEOF
11366 cat confdefs.h
>>conftest.
$ac_ext
11367 cat >>conftest.
$ac_ext <<_ACEOF
11368 /* end confdefs.h. */
11369 #include <$ac_header>
11371 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11372 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11374 grep -v '^ *+' conftest.er1
>conftest.err
11376 cat conftest.err
>&5
11377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11378 (exit $ac_status); } >/dev
/null
; then
11379 if test -s conftest.err
; then
11380 ac_cpp_err
=$ac_c_preproc_warn_flag
11381 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
11388 if test -z "$ac_cpp_err"; then
11389 ac_header_preproc
=yes
11391 echo "$as_me: failed program was:" >&5
11392 sed 's/^/| /' conftest.
$ac_ext >&5
11394 ac_header_preproc
=no
11396 rm -f conftest.err conftest.
$ac_ext
11397 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11398 echo "${ECHO_T}$ac_header_preproc" >&6
11400 # So? What about this header?
11401 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11403 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11404 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11405 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11406 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11407 ac_header_preproc
=yes
11410 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11411 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11412 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11413 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11414 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11415 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11416 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11417 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11418 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11419 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11420 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11421 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11424 ## ------------------------------------------ ##
11425 ## Report this to the AC_PACKAGE_NAME lists. ##
11426 ## ------------------------------------------ ##
11429 sed "s/^/$as_me: WARNING: /" >&2
11432 echo "$as_me:$LINENO: checking for $ac_header" >&5
11433 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11434 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11435 echo $ECHO_N "(cached) $ECHO_C" >&6
11437 eval "$as_ac_Header=\$ac_header_preproc"
11439 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11440 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11443 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11444 cat >>confdefs.h
<<_ACEOF
11445 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11452 if test "$ac_cv_header_png_h" = yes ||
test "$ac_cv_header_libpng_png_h" = yes ; then
11453 echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
11454 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6
11455 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
11456 echo $ECHO_N "(cached) $ECHO_C" >&6
11458 ac_check_lib_save_LIBS
=$LIBS
11459 LIBS
="-lpng -lz -lm $LIBS"
11460 cat >conftest.
$ac_ext <<_ACEOF
11463 cat confdefs.h
>>conftest.
$ac_ext
11464 cat >>conftest.
$ac_ext <<_ACEOF
11465 /* end confdefs.h. */
11467 /* Override any gcc2 internal prototype to avoid an error. */
11471 /* We use char because int might match the return type of a gcc2
11472 builtin and then its argument prototype would still apply. */
11473 char png_get_channels ();
11477 png_get_channels ();
11482 rm -f conftest.
$ac_objext conftest
$ac_exeext
11483 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11484 (eval $ac_link) 2>conftest.er1
11486 grep -v '^ *+' conftest.er1
>conftest.err
11488 cat conftest.err
>&5
11489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11490 (exit $ac_status); } &&
11491 { ac_try
='test -z "$ac_c_werror_flag"
11492 || test ! -s conftest.err'
11493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11494 (eval $ac_try) 2>&5
11496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11497 (exit $ac_status); }; } &&
11498 { ac_try
='test -s conftest$ac_exeext'
11499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11500 (eval $ac_try) 2>&5
11502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11503 (exit $ac_status); }; }; then
11504 ac_cv_lib_png_png_get_channels
=yes
11506 echo "$as_me: failed program was:" >&5
11507 sed 's/^/| /' conftest.
$ac_ext >&5
11509 ac_cv_lib_png_png_get_channels
=no
11511 rm -f conftest.err conftest.
$ac_objext \
11512 conftest
$ac_exeext conftest.
$ac_ext
11513 LIBS
=$ac_check_lib_save_LIBS
11515 echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
11516 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6
11517 if test $ac_cv_lib_png_png_get_channels = yes; then
11524 if test "${HAVE_PNG}" = "yes"; then
11526 cat >>confdefs.h
<<\_ACEOF
11533 ### Use -ltiff if available, unless `--with-tiff=no'.
11535 if test "${HAVE_X11}" = "yes"; then
11536 if test "${with_tiff}" != "no"; then
11537 if test "${ac_cv_header_tiffio_h+set}" = set; then
11538 echo "$as_me:$LINENO: checking for tiffio.h" >&5
11539 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
11540 if test "${ac_cv_header_tiffio_h+set}" = set; then
11541 echo $ECHO_N "(cached) $ECHO_C" >&6
11543 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
11544 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
11546 # Is the header compilable?
11547 echo "$as_me:$LINENO: checking tiffio.h usability" >&5
11548 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
11549 cat >conftest.
$ac_ext <<_ACEOF
11552 cat confdefs.h
>>conftest.
$ac_ext
11553 cat >>conftest.
$ac_ext <<_ACEOF
11554 /* end confdefs.h. */
11555 $ac_includes_default
11556 #include <tiffio.h>
11558 rm -f conftest.
$ac_objext
11559 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11560 (eval $ac_compile) 2>conftest.er1
11562 grep -v '^ *+' conftest.er1
>conftest.err
11564 cat conftest.err
>&5
11565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11566 (exit $ac_status); } &&
11567 { ac_try
='test -z "$ac_c_werror_flag"
11568 || test ! -s conftest.err'
11569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11570 (eval $ac_try) 2>&5
11572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11573 (exit $ac_status); }; } &&
11574 { ac_try
='test -s conftest.$ac_objext'
11575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11576 (eval $ac_try) 2>&5
11578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11579 (exit $ac_status); }; }; then
11580 ac_header_compiler
=yes
11582 echo "$as_me: failed program was:" >&5
11583 sed 's/^/| /' conftest.
$ac_ext >&5
11585 ac_header_compiler
=no
11587 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11588 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11589 echo "${ECHO_T}$ac_header_compiler" >&6
11591 # Is the header present?
11592 echo "$as_me:$LINENO: checking tiffio.h presence" >&5
11593 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
11594 cat >conftest.
$ac_ext <<_ACEOF
11597 cat confdefs.h
>>conftest.
$ac_ext
11598 cat >>conftest.
$ac_ext <<_ACEOF
11599 /* end confdefs.h. */
11600 #include <tiffio.h>
11602 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11603 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11605 grep -v '^ *+' conftest.er1
>conftest.err
11607 cat conftest.err
>&5
11608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11609 (exit $ac_status); } >/dev
/null
; then
11610 if test -s conftest.err
; then
11611 ac_cpp_err
=$ac_c_preproc_warn_flag
11612 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
11619 if test -z "$ac_cpp_err"; then
11620 ac_header_preproc
=yes
11622 echo "$as_me: failed program was:" >&5
11623 sed 's/^/| /' conftest.
$ac_ext >&5
11625 ac_header_preproc
=no
11627 rm -f conftest.err conftest.
$ac_ext
11628 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11629 echo "${ECHO_T}$ac_header_preproc" >&6
11631 # So? What about this header?
11632 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11634 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
11635 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11636 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
11637 echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
11638 ac_header_preproc
=yes
11641 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
11642 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
11643 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
11644 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
11645 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
11646 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
11647 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
11648 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
11649 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
11650 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
11651 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
11652 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
11655 ## ------------------------------------------ ##
11656 ## Report this to the AC_PACKAGE_NAME lists. ##
11657 ## ------------------------------------------ ##
11660 sed "s/^/$as_me: WARNING: /" >&2
11663 echo "$as_me:$LINENO: checking for tiffio.h" >&5
11664 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
11665 if test "${ac_cv_header_tiffio_h+set}" = set; then
11666 echo $ECHO_N "(cached) $ECHO_C" >&6
11668 ac_cv_header_tiffio_h
=$ac_header_preproc
11670 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
11671 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
11674 if test $ac_cv_header_tiffio_h = yes; then
11676 # At least one tiff package requires the jpeg library.
11677 if test "${HAVE_JPEG}" = yes; then tifflibs
="-ljpeg $tifflibs"; fi
11678 echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
11679 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6
11680 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
11681 echo $ECHO_N "(cached) $ECHO_C" >&6
11683 ac_check_lib_save_LIBS
=$LIBS
11684 LIBS
="-ltiff $tifflibs $LIBS"
11685 cat >conftest.
$ac_ext <<_ACEOF
11688 cat confdefs.h
>>conftest.
$ac_ext
11689 cat >>conftest.
$ac_ext <<_ACEOF
11690 /* end confdefs.h. */
11692 /* Override any gcc2 internal prototype to avoid an error. */
11696 /* We use char because int might match the return type of a gcc2
11697 builtin and then its argument prototype would still apply. */
11698 char TIFFGetVersion ();
11707 rm -f conftest.
$ac_objext conftest
$ac_exeext
11708 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11709 (eval $ac_link) 2>conftest.er1
11711 grep -v '^ *+' conftest.er1
>conftest.err
11713 cat conftest.err
>&5
11714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11715 (exit $ac_status); } &&
11716 { ac_try
='test -z "$ac_c_werror_flag"
11717 || test ! -s conftest.err'
11718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11719 (eval $ac_try) 2>&5
11721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11722 (exit $ac_status); }; } &&
11723 { ac_try
='test -s conftest$ac_exeext'
11724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11725 (eval $ac_try) 2>&5
11727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11728 (exit $ac_status); }; }; then
11729 ac_cv_lib_tiff_TIFFGetVersion
=yes
11731 echo "$as_me: failed program was:" >&5
11732 sed 's/^/| /' conftest.
$ac_ext >&5
11734 ac_cv_lib_tiff_TIFFGetVersion
=no
11736 rm -f conftest.err conftest.
$ac_objext \
11737 conftest
$ac_exeext conftest.
$ac_ext
11738 LIBS
=$ac_check_lib_save_LIBS
11740 echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
11741 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6
11742 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
11751 if test "${HAVE_TIFF}" = "yes"; then
11753 cat >>confdefs.h
<<\_ACEOF
11754 #define HAVE_TIFF 1
11760 ### Use -lgif if available, unless `--with-gif=no'.
11762 if test "${HAVE_X11}" = "yes"; then
11763 if test "${with_gif}" != "no"; then
11764 if test "${ac_cv_header_gif_lib_h+set}" = set; then
11765 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
11766 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
11767 if test "${ac_cv_header_gif_lib_h+set}" = set; then
11768 echo $ECHO_N "(cached) $ECHO_C" >&6
11770 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
11771 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
11773 # Is the header compilable?
11774 echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
11775 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6
11776 cat >conftest.
$ac_ext <<_ACEOF
11779 cat confdefs.h
>>conftest.
$ac_ext
11780 cat >>conftest.
$ac_ext <<_ACEOF
11781 /* end confdefs.h. */
11782 $ac_includes_default
11783 #include <gif_lib.h>
11785 rm -f conftest.
$ac_objext
11786 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11787 (eval $ac_compile) 2>conftest.er1
11789 grep -v '^ *+' conftest.er1
>conftest.err
11791 cat conftest.err
>&5
11792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11793 (exit $ac_status); } &&
11794 { ac_try
='test -z "$ac_c_werror_flag"
11795 || test ! -s conftest.err'
11796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11797 (eval $ac_try) 2>&5
11799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11800 (exit $ac_status); }; } &&
11801 { ac_try
='test -s conftest.$ac_objext'
11802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11803 (eval $ac_try) 2>&5
11805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11806 (exit $ac_status); }; }; then
11807 ac_header_compiler
=yes
11809 echo "$as_me: failed program was:" >&5
11810 sed 's/^/| /' conftest.
$ac_ext >&5
11812 ac_header_compiler
=no
11814 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11815 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11816 echo "${ECHO_T}$ac_header_compiler" >&6
11818 # Is the header present?
11819 echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
11820 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6
11821 cat >conftest.
$ac_ext <<_ACEOF
11824 cat confdefs.h
>>conftest.
$ac_ext
11825 cat >>conftest.
$ac_ext <<_ACEOF
11826 /* end confdefs.h. */
11827 #include <gif_lib.h>
11829 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11830 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11832 grep -v '^ *+' conftest.er1
>conftest.err
11834 cat conftest.err
>&5
11835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11836 (exit $ac_status); } >/dev
/null
; then
11837 if test -s conftest.err
; then
11838 ac_cpp_err
=$ac_c_preproc_warn_flag
11839 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
11846 if test -z "$ac_cpp_err"; then
11847 ac_header_preproc
=yes
11849 echo "$as_me: failed program was:" >&5
11850 sed 's/^/| /' conftest.
$ac_ext >&5
11852 ac_header_preproc
=no
11854 rm -f conftest.err conftest.
$ac_ext
11855 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11856 echo "${ECHO_T}$ac_header_preproc" >&6
11858 # So? What about this header?
11859 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11861 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
11862 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11863 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
11864 echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
11865 ac_header_preproc
=yes
11868 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
11869 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
11870 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
11871 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
11872 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
11873 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
11874 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
11875 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
11876 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
11877 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
11878 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
11879 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
11882 ## ------------------------------------------ ##
11883 ## Report this to the AC_PACKAGE_NAME lists. ##
11884 ## ------------------------------------------ ##
11887 sed "s/^/$as_me: WARNING: /" >&2
11890 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
11891 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
11892 if test "${ac_cv_header_gif_lib_h+set}" = set; then
11893 echo $ECHO_N "(cached) $ECHO_C" >&6
11895 ac_cv_header_gif_lib_h
=$ac_header_preproc
11897 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
11898 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
11901 if test $ac_cv_header_gif_lib_h = yes; then
11902 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
11903 # Earlier versions can crash Emacs.
11904 echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
11905 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6
11906 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
11907 echo $ECHO_N "(cached) $ECHO_C" >&6
11909 ac_check_lib_save_LIBS
=$LIBS
11910 LIBS
="-lungif $LIBS"
11911 cat >conftest.
$ac_ext <<_ACEOF
11914 cat confdefs.h
>>conftest.
$ac_ext
11915 cat >>conftest.
$ac_ext <<_ACEOF
11916 /* end confdefs.h. */
11918 /* Override any gcc2 internal prototype to avoid an error. */
11922 /* We use char because int might match the return type of a gcc2
11923 builtin and then its argument prototype would still apply. */
11924 char EGifPutExtensionLast ();
11928 EGifPutExtensionLast ();
11933 rm -f conftest.
$ac_objext conftest
$ac_exeext
11934 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11935 (eval $ac_link) 2>conftest.er1
11937 grep -v '^ *+' conftest.er1
>conftest.err
11939 cat conftest.err
>&5
11940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11941 (exit $ac_status); } &&
11942 { ac_try
='test -z "$ac_c_werror_flag"
11943 || test ! -s conftest.err'
11944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11945 (eval $ac_try) 2>&5
11947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11948 (exit $ac_status); }; } &&
11949 { ac_try
='test -s conftest$ac_exeext'
11950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11951 (eval $ac_try) 2>&5
11953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11954 (exit $ac_status); }; }; then
11955 ac_cv_lib_ungif_EGifPutExtensionLast
=yes
11957 echo "$as_me: failed program was:" >&5
11958 sed 's/^/| /' conftest.
$ac_ext >&5
11960 ac_cv_lib_ungif_EGifPutExtensionLast
=no
11962 rm -f conftest.err conftest.
$ac_objext \
11963 conftest
$ac_exeext conftest.
$ac_ext
11964 LIBS
=$ac_check_lib_save_LIBS
11966 echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
11967 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6
11968 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
11977 if test "${HAVE_GIF}" = "yes"; then
11979 cat >>confdefs.h
<<\_ACEOF
11986 ### Use Mac OS X Carbon API to implement GUI.
11988 if test "${with_carbon}" != "no"; then
11989 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
11990 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
11991 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
11992 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
11993 echo $ECHO_N "(cached) $ECHO_C" >&6
11995 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
11996 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
11998 # Is the header compilable?
11999 echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
12000 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6
12001 cat >conftest.
$ac_ext <<_ACEOF
12004 cat confdefs.h
>>conftest.
$ac_ext
12005 cat >>conftest.
$ac_ext <<_ACEOF
12006 /* end confdefs.h. */
12007 $ac_includes_default
12008 #include <Carbon/Carbon.h>
12010 rm -f conftest.
$ac_objext
12011 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12012 (eval $ac_compile) 2>conftest.er1
12014 grep -v '^ *+' conftest.er1
>conftest.err
12016 cat conftest.err
>&5
12017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12018 (exit $ac_status); } &&
12019 { ac_try
='test -z "$ac_c_werror_flag"
12020 || test ! -s conftest.err'
12021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12022 (eval $ac_try) 2>&5
12024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12025 (exit $ac_status); }; } &&
12026 { ac_try
='test -s conftest.$ac_objext'
12027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12028 (eval $ac_try) 2>&5
12030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12031 (exit $ac_status); }; }; then
12032 ac_header_compiler
=yes
12034 echo "$as_me: failed program was:" >&5
12035 sed 's/^/| /' conftest.
$ac_ext >&5
12037 ac_header_compiler
=no
12039 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12040 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12041 echo "${ECHO_T}$ac_header_compiler" >&6
12043 # Is the header present?
12044 echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
12045 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6
12046 cat >conftest.
$ac_ext <<_ACEOF
12049 cat confdefs.h
>>conftest.
$ac_ext
12050 cat >>conftest.
$ac_ext <<_ACEOF
12051 /* end confdefs.h. */
12052 #include <Carbon/Carbon.h>
12054 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12055 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12057 grep -v '^ *+' conftest.er1
>conftest.err
12059 cat conftest.err
>&5
12060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12061 (exit $ac_status); } >/dev
/null
; then
12062 if test -s conftest.err
; then
12063 ac_cpp_err
=$ac_c_preproc_warn_flag
12064 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12071 if test -z "$ac_cpp_err"; then
12072 ac_header_preproc
=yes
12074 echo "$as_me: failed program was:" >&5
12075 sed 's/^/| /' conftest.
$ac_ext >&5
12077 ac_header_preproc
=no
12079 rm -f conftest.err conftest.
$ac_ext
12080 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12081 echo "${ECHO_T}$ac_header_preproc" >&6
12083 # So? What about this header?
12084 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12086 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
12087 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12088 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
12089 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
12090 ac_header_preproc
=yes
12093 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
12094 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
12095 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
12096 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
12097 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
12098 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
12099 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
12100 echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
12101 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
12102 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
12103 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
12104 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
12107 ## ------------------------------------------ ##
12108 ## Report this to the AC_PACKAGE_NAME lists. ##
12109 ## ------------------------------------------ ##
12112 sed "s/^/$as_me: WARNING: /" >&2
12115 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
12116 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
12117 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
12118 echo $ECHO_N "(cached) $ECHO_C" >&6
12120 ac_cv_header_Carbon_Carbon_h
=$ac_header_preproc
12122 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
12123 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
12126 if test $ac_cv_header_Carbon_Carbon_h = yes; then
12133 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
12134 echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
12135 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6
12136 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
12137 echo $ECHO_N "(cached) $ECHO_C" >&6
12139 echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
12140 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6
12142 # Is the header compilable?
12143 echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
12144 echo $ECHO_N "checking malloc/malloc.h usability... $ECHO_C" >&6
12145 cat >conftest.
$ac_ext <<_ACEOF
12148 cat confdefs.h
>>conftest.
$ac_ext
12149 cat >>conftest.
$ac_ext <<_ACEOF
12150 /* end confdefs.h. */
12151 $ac_includes_default
12152 #include <malloc/malloc.h>
12154 rm -f conftest.
$ac_objext
12155 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12156 (eval $ac_compile) 2>conftest.er1
12158 grep -v '^ *+' conftest.er1
>conftest.err
12160 cat conftest.err
>&5
12161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12162 (exit $ac_status); } &&
12163 { ac_try
='test -z "$ac_c_werror_flag"
12164 || test ! -s conftest.err'
12165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12166 (eval $ac_try) 2>&5
12168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12169 (exit $ac_status); }; } &&
12170 { ac_try
='test -s conftest.$ac_objext'
12171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12172 (eval $ac_try) 2>&5
12174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12175 (exit $ac_status); }; }; then
12176 ac_header_compiler
=yes
12178 echo "$as_me: failed program was:" >&5
12179 sed 's/^/| /' conftest.
$ac_ext >&5
12181 ac_header_compiler
=no
12183 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12184 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12185 echo "${ECHO_T}$ac_header_compiler" >&6
12187 # Is the header present?
12188 echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
12189 echo $ECHO_N "checking malloc/malloc.h presence... $ECHO_C" >&6
12190 cat >conftest.
$ac_ext <<_ACEOF
12193 cat confdefs.h
>>conftest.
$ac_ext
12194 cat >>conftest.
$ac_ext <<_ACEOF
12195 /* end confdefs.h. */
12196 #include <malloc/malloc.h>
12198 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12199 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12201 grep -v '^ *+' conftest.er1
>conftest.err
12203 cat conftest.err
>&5
12204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12205 (exit $ac_status); } >/dev
/null
; then
12206 if test -s conftest.err
; then
12207 ac_cpp_err
=$ac_c_preproc_warn_flag
12208 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12215 if test -z "$ac_cpp_err"; then
12216 ac_header_preproc
=yes
12218 echo "$as_me: failed program was:" >&5
12219 sed 's/^/| /' conftest.
$ac_ext >&5
12221 ac_header_preproc
=no
12223 rm -f conftest.err conftest.
$ac_ext
12224 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12225 echo "${ECHO_T}$ac_header_preproc" >&6
12227 # So? What about this header?
12228 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12230 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
12231 echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12232 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
12233 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
12234 ac_header_preproc
=yes
12237 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
12238 echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
12239 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
12240 echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
12241 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
12242 echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
12243 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
12244 echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
12245 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
12246 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
12247 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
12248 echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
12251 ## ------------------------------------------ ##
12252 ## Report this to the AC_PACKAGE_NAME lists. ##
12253 ## ------------------------------------------ ##
12256 sed "s/^/$as_me: WARNING: /" >&2
12259 echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
12260 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6
12261 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
12262 echo $ECHO_N "(cached) $ECHO_C" >&6
12264 ac_cv_header_malloc_malloc_h
=$ac_header_preproc
12266 echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
12267 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6
12270 if test $ac_cv_header_malloc_malloc_h = yes; then
12272 cat >>confdefs.h
<<\_ACEOF
12273 #define HAVE_MALLOC_MALLOC_H 1
12280 if test "${HAVE_CARBON}" = "yes"; then
12282 cat >>confdefs.h
<<\_ACEOF
12283 #define HAVE_CARBON 1
12287 ## Specify the install directory
12289 if test "${carbon_appdir_x}" != ""; then
12290 case ${carbon_appdir_x} in
12291 y | ye |
yes) carbon_appdir
=/Applications
;;
12292 * ) carbon_appdir
=${carbon_appdir_x} ;;
12295 # We also have mouse menus.
12299 ### Use session management (-lSM -lICE) if available
12301 if test "${HAVE_X11}" = "yes"; then
12302 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
12303 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
12304 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
12305 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
12306 echo $ECHO_N "(cached) $ECHO_C" >&6
12308 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
12309 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
12311 # Is the header compilable?
12312 echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
12313 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6
12314 cat >conftest.
$ac_ext <<_ACEOF
12317 cat confdefs.h
>>conftest.
$ac_ext
12318 cat >>conftest.
$ac_ext <<_ACEOF
12319 /* end confdefs.h. */
12320 $ac_includes_default
12321 #include <X11/SM/SMlib.h>
12323 rm -f conftest.
$ac_objext
12324 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12325 (eval $ac_compile) 2>conftest.er1
12327 grep -v '^ *+' conftest.er1
>conftest.err
12329 cat conftest.err
>&5
12330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12331 (exit $ac_status); } &&
12332 { ac_try
='test -z "$ac_c_werror_flag"
12333 || test ! -s conftest.err'
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); }; } &&
12339 { ac_try
='test -s conftest.$ac_objext'
12340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12341 (eval $ac_try) 2>&5
12343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12344 (exit $ac_status); }; }; then
12345 ac_header_compiler
=yes
12347 echo "$as_me: failed program was:" >&5
12348 sed 's/^/| /' conftest.
$ac_ext >&5
12350 ac_header_compiler
=no
12352 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12353 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12354 echo "${ECHO_T}$ac_header_compiler" >&6
12356 # Is the header present?
12357 echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
12358 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6
12359 cat >conftest.
$ac_ext <<_ACEOF
12362 cat confdefs.h
>>conftest.
$ac_ext
12363 cat >>conftest.
$ac_ext <<_ACEOF
12364 /* end confdefs.h. */
12365 #include <X11/SM/SMlib.h>
12367 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12368 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12370 grep -v '^ *+' conftest.er1
>conftest.err
12372 cat conftest.err
>&5
12373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12374 (exit $ac_status); } >/dev
/null
; then
12375 if test -s conftest.err
; then
12376 ac_cpp_err
=$ac_c_preproc_warn_flag
12377 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12384 if test -z "$ac_cpp_err"; then
12385 ac_header_preproc
=yes
12387 echo "$as_me: failed program was:" >&5
12388 sed 's/^/| /' conftest.
$ac_ext >&5
12390 ac_header_preproc
=no
12392 rm -f conftest.err conftest.
$ac_ext
12393 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12394 echo "${ECHO_T}$ac_header_preproc" >&6
12396 # So? What about this header?
12397 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12399 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
12400 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12401 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
12402 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
12403 ac_header_preproc
=yes
12406 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
12407 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
12408 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
12409 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
12410 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
12411 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
12412 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
12413 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
12414 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
12415 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
12416 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
12417 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
12420 ## ------------------------------------------ ##
12421 ## Report this to the AC_PACKAGE_NAME lists. ##
12422 ## ------------------------------------------ ##
12425 sed "s/^/$as_me: WARNING: /" >&2
12428 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
12429 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
12430 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
12431 echo $ECHO_N "(cached) $ECHO_C" >&6
12433 ac_cv_header_X11_SM_SMlib_h
=$ac_header_preproc
12435 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
12436 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
12439 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
12440 echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
12441 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6
12442 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
12443 echo $ECHO_N "(cached) $ECHO_C" >&6
12445 ac_check_lib_save_LIBS
=$LIBS
12446 LIBS
="-lSM -lICE $LIBS"
12447 cat >conftest.
$ac_ext <<_ACEOF
12450 cat confdefs.h
>>conftest.
$ac_ext
12451 cat >>conftest.
$ac_ext <<_ACEOF
12452 /* end confdefs.h. */
12454 /* Override any gcc2 internal prototype to avoid an error. */
12458 /* We use char because int might match the return type of a gcc2
12459 builtin and then its argument prototype would still apply. */
12460 char SmcOpenConnection ();
12464 SmcOpenConnection ();
12469 rm -f conftest.
$ac_objext conftest
$ac_exeext
12470 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12471 (eval $ac_link) 2>conftest.er1
12473 grep -v '^ *+' conftest.er1
>conftest.err
12475 cat conftest.err
>&5
12476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12477 (exit $ac_status); } &&
12478 { ac_try
='test -z "$ac_c_werror_flag"
12479 || test ! -s conftest.err'
12480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12481 (eval $ac_try) 2>&5
12483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12484 (exit $ac_status); }; } &&
12485 { ac_try
='test -s conftest$ac_exeext'
12486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12487 (eval $ac_try) 2>&5
12489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12490 (exit $ac_status); }; }; then
12491 ac_cv_lib_SM_SmcOpenConnection
=yes
12493 echo "$as_me: failed program was:" >&5
12494 sed 's/^/| /' conftest.
$ac_ext >&5
12496 ac_cv_lib_SM_SmcOpenConnection
=no
12498 rm -f conftest.err conftest.
$ac_objext \
12499 conftest
$ac_exeext conftest.
$ac_ext
12500 LIBS
=$ac_check_lib_save_LIBS
12502 echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
12503 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6
12504 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
12512 if test "${HAVE_X_SM}" = "yes"; then
12514 cat >>confdefs.h
<<\_ACEOF
12515 #define HAVE_X_SM 1
12520 *) LIBS
="-lSM -lICE $LIBS" ;;
12525 # If netdb.h doesn't declare h_errno, we must declare it by hand.
12526 echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
12527 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6
12528 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
12529 echo $ECHO_N "(cached) $ECHO_C" >&6
12531 cat >conftest.
$ac_ext <<_ACEOF
12534 cat confdefs.h
>>conftest.
$ac_ext
12535 cat >>conftest.
$ac_ext <<_ACEOF
12536 /* end confdefs.h. */
12546 rm -f conftest.
$ac_objext conftest
$ac_exeext
12547 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12548 (eval $ac_link) 2>conftest.er1
12550 grep -v '^ *+' conftest.er1
>conftest.err
12552 cat conftest.err
>&5
12553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12554 (exit $ac_status); } &&
12555 { ac_try
='test -z "$ac_c_werror_flag"
12556 || test ! -s conftest.err'
12557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12558 (eval $ac_try) 2>&5
12560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12561 (exit $ac_status); }; } &&
12562 { ac_try
='test -s conftest$ac_exeext'
12563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12564 (eval $ac_try) 2>&5
12566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12567 (exit $ac_status); }; }; then
12568 emacs_cv_netdb_declares_h_errno
=yes
12570 echo "$as_me: failed program was:" >&5
12571 sed 's/^/| /' conftest.
$ac_ext >&5
12573 emacs_cv_netdb_declares_h_errno
=no
12575 rm -f conftest.err conftest.
$ac_objext \
12576 conftest
$ac_exeext conftest.
$ac_ext
12578 echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
12579 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6
12580 if test $emacs_cv_netdb_declares_h_errno = yes; then
12582 cat >>confdefs.h
<<\_ACEOF
12583 #define HAVE_H_ERRNO 1
12588 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
12589 # for constant arguments. Useless!
12590 echo "$as_me:$LINENO: checking for working alloca.h" >&5
12591 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
12592 if test "${ac_cv_working_alloca_h+set}" = set; then
12593 echo $ECHO_N "(cached) $ECHO_C" >&6
12595 cat >conftest.
$ac_ext <<_ACEOF
12598 cat confdefs.h
>>conftest.
$ac_ext
12599 cat >>conftest.
$ac_ext <<_ACEOF
12600 /* end confdefs.h. */
12601 #include <alloca.h>
12605 char *p = (char *) alloca (2 * sizeof (int));
12610 rm -f conftest.
$ac_objext conftest
$ac_exeext
12611 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12612 (eval $ac_link) 2>conftest.er1
12614 grep -v '^ *+' conftest.er1
>conftest.err
12616 cat conftest.err
>&5
12617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12618 (exit $ac_status); } &&
12619 { ac_try
='test -z "$ac_c_werror_flag"
12620 || test ! -s conftest.err'
12621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12622 (eval $ac_try) 2>&5
12624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12625 (exit $ac_status); }; } &&
12626 { ac_try
='test -s conftest$ac_exeext'
12627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12628 (eval $ac_try) 2>&5
12630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12631 (exit $ac_status); }; }; then
12632 ac_cv_working_alloca_h
=yes
12634 echo "$as_me: failed program was:" >&5
12635 sed 's/^/| /' conftest.
$ac_ext >&5
12637 ac_cv_working_alloca_h
=no
12639 rm -f conftest.err conftest.
$ac_objext \
12640 conftest
$ac_exeext conftest.
$ac_ext
12642 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
12643 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
12644 if test $ac_cv_working_alloca_h = yes; then
12646 cat >>confdefs.h
<<\_ACEOF
12647 #define HAVE_ALLOCA_H 1
12652 echo "$as_me:$LINENO: checking for alloca" >&5
12653 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
12654 if test "${ac_cv_func_alloca_works+set}" = set; then
12655 echo $ECHO_N "(cached) $ECHO_C" >&6
12657 cat >conftest.
$ac_ext <<_ACEOF
12660 cat confdefs.h
>>conftest.
$ac_ext
12661 cat >>conftest.
$ac_ext <<_ACEOF
12662 /* end confdefs.h. */
12664 # define alloca __builtin_alloca
12667 # include <malloc.h>
12668 # define alloca _alloca
12671 # include <alloca.h>
12676 # ifndef alloca /* predefined by HP cc +Olibcalls */
12687 char *p = (char *) alloca (1);
12692 rm -f conftest.
$ac_objext conftest
$ac_exeext
12693 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12694 (eval $ac_link) 2>conftest.er1
12696 grep -v '^ *+' conftest.er1
>conftest.err
12698 cat conftest.err
>&5
12699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12700 (exit $ac_status); } &&
12701 { ac_try
='test -z "$ac_c_werror_flag"
12702 || test ! -s conftest.err'
12703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12704 (eval $ac_try) 2>&5
12706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12707 (exit $ac_status); }; } &&
12708 { ac_try
='test -s conftest$ac_exeext'
12709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12710 (eval $ac_try) 2>&5
12712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12713 (exit $ac_status); }; }; then
12714 ac_cv_func_alloca_works
=yes
12716 echo "$as_me: failed program was:" >&5
12717 sed 's/^/| /' conftest.
$ac_ext >&5
12719 ac_cv_func_alloca_works
=no
12721 rm -f conftest.err conftest.
$ac_objext \
12722 conftest
$ac_exeext conftest.
$ac_ext
12724 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
12725 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
12727 if test $ac_cv_func_alloca_works = yes; then
12729 cat >>confdefs.h
<<\_ACEOF
12730 #define HAVE_ALLOCA 1
12734 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
12735 # that cause trouble. Some versions do not even contain alloca or
12736 # contain a buggy version. If you still want to use their alloca,
12737 # use ar to extract alloca.o from them instead of compiling alloca.c.
12739 ALLOCA
=alloca.
$ac_objext
12741 cat >>confdefs.h
<<\_ACEOF
12746 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
12747 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
12748 if test "${ac_cv_os_cray+set}" = set; then
12749 echo $ECHO_N "(cached) $ECHO_C" >&6
12751 cat >conftest.
$ac_ext <<_ACEOF
12754 cat confdefs.h
>>conftest.
$ac_ext
12755 cat >>conftest.
$ac_ext <<_ACEOF
12756 /* end confdefs.h. */
12757 #if defined(CRAY) && ! defined(CRAY2)
12764 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12765 $EGREP "webecray" >/dev
/null
2>&1; then
12773 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
12774 echo "${ECHO_T}$ac_cv_os_cray" >&6
12775 if test $ac_cv_os_cray = yes; then
12776 for ac_func
in _getb67 GETB67 getb67
; do
12777 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12778 echo "$as_me:$LINENO: checking for $ac_func" >&5
12779 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12780 if eval "test \"\${$as_ac_var+set}\" = set"; then
12781 echo $ECHO_N "(cached) $ECHO_C" >&6
12783 cat >conftest.
$ac_ext <<_ACEOF
12786 cat confdefs.h
>>conftest.
$ac_ext
12787 cat >>conftest.
$ac_ext <<_ACEOF
12788 /* end confdefs.h. */
12789 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12790 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12791 #define $ac_func innocuous_$ac_func
12793 /* System header to define __stub macros and hopefully few prototypes,
12794 which can conflict with char $ac_func (); below.
12795 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12796 <limits.h> exists even on freestanding compilers. */
12799 # include <limits.h>
12801 # include <assert.h>
12806 /* Override any gcc2 internal prototype to avoid an error. */
12811 /* We use char because int might match the return type of a gcc2
12812 builtin and then its argument prototype would still apply. */
12814 /* The GNU C library defines this for functions which it implements
12815 to always fail with ENOSYS. Some functions are actually named
12816 something starting with __ and the normal name is an alias. */
12817 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12820 char (*f) () = $ac_func;
12829 return f != $ac_func;
12834 rm -f conftest.
$ac_objext conftest
$ac_exeext
12835 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12836 (eval $ac_link) 2>conftest.er1
12838 grep -v '^ *+' conftest.er1
>conftest.err
12840 cat conftest.err
>&5
12841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12842 (exit $ac_status); } &&
12843 { ac_try
='test -z "$ac_c_werror_flag"
12844 || test ! -s conftest.err'
12845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12846 (eval $ac_try) 2>&5
12848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12849 (exit $ac_status); }; } &&
12850 { ac_try
='test -s conftest$ac_exeext'
12851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12852 (eval $ac_try) 2>&5
12854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12855 (exit $ac_status); }; }; then
12856 eval "$as_ac_var=yes"
12858 echo "$as_me: failed program was:" >&5
12859 sed 's/^/| /' conftest.
$ac_ext >&5
12861 eval "$as_ac_var=no"
12863 rm -f conftest.err conftest.
$ac_objext \
12864 conftest
$ac_exeext conftest.
$ac_ext
12866 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12867 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12868 if test `eval echo '${'$as_ac_var'}'` = yes; then
12870 cat >>confdefs.h
<<_ACEOF
12871 #define CRAY_STACKSEG_END $ac_func
12880 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
12881 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
12882 if test "${ac_cv_c_stack_direction+set}" = set; then
12883 echo $ECHO_N "(cached) $ECHO_C" >&6
12885 if test "$cross_compiling" = yes; then
12886 ac_cv_c_stack_direction
=0
12888 cat >conftest.
$ac_ext <<_ACEOF
12891 cat confdefs.h
>>conftest.
$ac_ext
12892 cat >>conftest.
$ac_ext <<_ACEOF
12893 /* end confdefs.h. */
12895 find_stack_direction ()
12897 static char *addr = 0;
12902 return find_stack_direction ();
12905 return (&dummy > addr) ? 1 : -1;
12911 exit (find_stack_direction () < 0);
12914 rm -f conftest
$ac_exeext
12915 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12916 (eval $ac_link) 2>&5
12918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12919 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
12920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12921 (eval $ac_try) 2>&5
12923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12924 (exit $ac_status); }; }; then
12925 ac_cv_c_stack_direction
=1
12927 echo "$as_me: program exited with status $ac_status" >&5
12928 echo "$as_me: failed program was:" >&5
12929 sed 's/^/| /' conftest.
$ac_ext >&5
12931 ( exit $ac_status )
12932 ac_cv_c_stack_direction
=-1
12934 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
12937 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
12938 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
12940 cat >>confdefs.h
<<_ACEOF
12941 #define STACK_DIRECTION $ac_cv_c_stack_direction
12948 # fmod, logb, and frexp are found in -lm on most systems.
12949 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
12951 echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
12952 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
12953 if test "${ac_cv_lib_m_sqrt+set}" = set; then
12954 echo $ECHO_N "(cached) $ECHO_C" >&6
12956 ac_check_lib_save_LIBS
=$LIBS
12958 cat >conftest.
$ac_ext <<_ACEOF
12961 cat confdefs.h
>>conftest.
$ac_ext
12962 cat >>conftest.
$ac_ext <<_ACEOF
12963 /* end confdefs.h. */
12965 /* Override any gcc2 internal prototype to avoid an error. */
12969 /* We use char because int might match the return type of a gcc2
12970 builtin and then its argument prototype would still apply. */
12980 rm -f conftest.
$ac_objext conftest
$ac_exeext
12981 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12982 (eval $ac_link) 2>conftest.er1
12984 grep -v '^ *+' conftest.er1
>conftest.err
12986 cat conftest.err
>&5
12987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12988 (exit $ac_status); } &&
12989 { ac_try
='test -z "$ac_c_werror_flag"
12990 || test ! -s conftest.err'
12991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12992 (eval $ac_try) 2>&5
12994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12995 (exit $ac_status); }; } &&
12996 { ac_try
='test -s conftest$ac_exeext'
12997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12998 (eval $ac_try) 2>&5
13000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13001 (exit $ac_status); }; }; then
13002 ac_cv_lib_m_sqrt
=yes
13004 echo "$as_me: failed program was:" >&5
13005 sed 's/^/| /' conftest.
$ac_ext >&5
13007 ac_cv_lib_m_sqrt
=no
13009 rm -f conftest.err conftest.
$ac_objext \
13010 conftest
$ac_exeext conftest.
$ac_ext
13011 LIBS
=$ac_check_lib_save_LIBS
13013 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
13014 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
13015 if test $ac_cv_lib_m_sqrt = yes; then
13016 cat >>confdefs.h
<<_ACEOF
13017 #define HAVE_LIBM 1
13025 # Check for mail-locking functions in a "mail" library. Probably this should
13026 # have the same check as for liblockfile below.
13028 echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
13029 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6
13030 if test "${ac_cv_lib_mail_maillock+set}" = set; then
13031 echo $ECHO_N "(cached) $ECHO_C" >&6
13033 ac_check_lib_save_LIBS
=$LIBS
13034 LIBS
="-lmail $LIBS"
13035 cat >conftest.
$ac_ext <<_ACEOF
13038 cat confdefs.h
>>conftest.
$ac_ext
13039 cat >>conftest.
$ac_ext <<_ACEOF
13040 /* end confdefs.h. */
13042 /* Override any gcc2 internal prototype to avoid an error. */
13046 /* We use char because int might match the return type of a gcc2
13047 builtin and then its argument prototype would still apply. */
13057 rm -f conftest.
$ac_objext conftest
$ac_exeext
13058 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13059 (eval $ac_link) 2>conftest.er1
13061 grep -v '^ *+' conftest.er1
>conftest.err
13063 cat conftest.err
>&5
13064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13065 (exit $ac_status); } &&
13066 { ac_try
='test -z "$ac_c_werror_flag"
13067 || test ! -s conftest.err'
13068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13069 (eval $ac_try) 2>&5
13071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13072 (exit $ac_status); }; } &&
13073 { ac_try
='test -s conftest$ac_exeext'
13074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13075 (eval $ac_try) 2>&5
13077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13078 (exit $ac_status); }; }; then
13079 ac_cv_lib_mail_maillock
=yes
13081 echo "$as_me: failed program was:" >&5
13082 sed 's/^/| /' conftest.
$ac_ext >&5
13084 ac_cv_lib_mail_maillock
=no
13086 rm -f conftest.err conftest.
$ac_objext \
13087 conftest
$ac_exeext conftest.
$ac_ext
13088 LIBS
=$ac_check_lib_save_LIBS
13090 echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
13091 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6
13092 if test $ac_cv_lib_mail_maillock = yes; then
13093 cat >>confdefs.h
<<_ACEOF
13094 #define HAVE_LIBMAIL 1
13097 LIBS
="-lmail $LIBS"
13102 echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
13103 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6
13104 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
13105 echo $ECHO_N "(cached) $ECHO_C" >&6
13107 ac_check_lib_save_LIBS
=$LIBS
13108 LIBS
="-llockfile $LIBS"
13109 cat >conftest.
$ac_ext <<_ACEOF
13112 cat confdefs.h
>>conftest.
$ac_ext
13113 cat >>conftest.
$ac_ext <<_ACEOF
13114 /* end confdefs.h. */
13116 /* Override any gcc2 internal prototype to avoid an error. */
13120 /* We use char because int might match the return type of a gcc2
13121 builtin and then its argument prototype would still apply. */
13131 rm -f conftest.
$ac_objext conftest
$ac_exeext
13132 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13133 (eval $ac_link) 2>conftest.er1
13135 grep -v '^ *+' conftest.er1
>conftest.err
13137 cat conftest.err
>&5
13138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13139 (exit $ac_status); } &&
13140 { ac_try
='test -z "$ac_c_werror_flag"
13141 || test ! -s conftest.err'
13142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13143 (eval $ac_try) 2>&5
13145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13146 (exit $ac_status); }; } &&
13147 { ac_try
='test -s conftest$ac_exeext'
13148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13149 (eval $ac_try) 2>&5
13151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13152 (exit $ac_status); }; }; then
13153 ac_cv_lib_lockfile_maillock
=yes
13155 echo "$as_me: failed program was:" >&5
13156 sed 's/^/| /' conftest.
$ac_ext >&5
13158 ac_cv_lib_lockfile_maillock
=no
13160 rm -f conftest.err conftest.
$ac_objext \
13161 conftest
$ac_exeext conftest.
$ac_ext
13162 LIBS
=$ac_check_lib_save_LIBS
13164 echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
13165 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6
13166 if test $ac_cv_lib_lockfile_maillock = yes; then
13167 cat >>confdefs.h
<<_ACEOF
13168 #define HAVE_LIBLOCKFILE 1
13171 LIBS
="-llockfile $LIBS"
13175 # If we have the shared liblockfile, assume we must use it for mail
13176 # locking (e.g. Debian). If we couldn't link against liblockfile
13177 # (no liblockfile.a installed), ensure that we don't need to.
13178 if test "$ac_cv_lib_lockfile_maillock" = no
; then
13179 # Extract the first word of "liblockfile.so", so it can be a program name with args.
13180 set dummy liblockfile.so
; ac_word
=$2
13181 echo "$as_me:$LINENO: checking for $ac_word" >&5
13182 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13183 if test "${ac_cv_prog_liblockfile+set}" = set; then
13184 echo $ECHO_N "(cached) $ECHO_C" >&6
13186 if test -n "$liblockfile"; then
13187 ac_cv_prog_liblockfile
="$liblockfile" # Let the user override the test.
13189 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13190 as_dummy
="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
13191 for as_dir
in $as_dummy
13194 test -z "$as_dir" && as_dir
=.
13195 for ac_exec_ext
in '' $ac_executable_extensions; do
13196 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13197 ac_cv_prog_liblockfile
="yes"
13198 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13204 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile
="no"
13207 liblockfile
=$ac_cv_prog_liblockfile
13208 if test -n "$liblockfile"; then
13209 echo "$as_me:$LINENO: result: $liblockfile" >&5
13210 echo "${ECHO_T}$liblockfile" >&6
13212 echo "$as_me:$LINENO: result: no" >&5
13213 echo "${ECHO_T}no" >&6
13216 if test $ac_cv_prog_liblockfile = yes; then
13217 { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
13218 This probably means that movemail could lose mail.
13219 There may be a \`development' package to install containing liblockfile." >&5
13220 echo "$as_me: error: Shared liblockfile found but can't link against it.
13221 This probably means that movemail could lose mail.
13222 There may be a \`development' package to install containing liblockfile." >&2;}
13223 { (exit 1); exit 1; }; }
13228 for ac_func
in touchlock
13230 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13231 echo "$as_me:$LINENO: checking for $ac_func" >&5
13232 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13233 if eval "test \"\${$as_ac_var+set}\" = set"; then
13234 echo $ECHO_N "(cached) $ECHO_C" >&6
13236 cat >conftest.
$ac_ext <<_ACEOF
13239 cat confdefs.h
>>conftest.
$ac_ext
13240 cat >>conftest.
$ac_ext <<_ACEOF
13241 /* end confdefs.h. */
13242 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13243 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13244 #define $ac_func innocuous_$ac_func
13246 /* System header to define __stub macros and hopefully few prototypes,
13247 which can conflict with char $ac_func (); below.
13248 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13249 <limits.h> exists even on freestanding compilers. */
13252 # include <limits.h>
13254 # include <assert.h>
13259 /* Override any gcc2 internal prototype to avoid an error. */
13264 /* We use char because int might match the return type of a gcc2
13265 builtin and then its argument prototype would still apply. */
13267 /* The GNU C library defines this for functions which it implements
13268 to always fail with ENOSYS. Some functions are actually named
13269 something starting with __ and the normal name is an alias. */
13270 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13273 char (*f) () = $ac_func;
13282 return f != $ac_func;
13287 rm -f conftest.
$ac_objext conftest
$ac_exeext
13288 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13289 (eval $ac_link) 2>conftest.er1
13291 grep -v '^ *+' conftest.er1
>conftest.err
13293 cat conftest.err
>&5
13294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13295 (exit $ac_status); } &&
13296 { ac_try
='test -z "$ac_c_werror_flag"
13297 || test ! -s conftest.err'
13298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13299 (eval $ac_try) 2>&5
13301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13302 (exit $ac_status); }; } &&
13303 { ac_try
='test -s conftest$ac_exeext'
13304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13305 (eval $ac_try) 2>&5
13307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13308 (exit $ac_status); }; }; then
13309 eval "$as_ac_var=yes"
13311 echo "$as_me: failed program was:" >&5
13312 sed 's/^/| /' conftest.
$ac_ext >&5
13314 eval "$as_ac_var=no"
13316 rm -f conftest.err conftest.
$ac_objext \
13317 conftest
$ac_exeext conftest.
$ac_ext
13319 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13320 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13321 if test `eval echo '${'$as_ac_var'}'` = yes; then
13322 cat >>confdefs.h
<<_ACEOF
13323 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13330 for ac_header
in maillock.h
13332 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13333 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13334 echo "$as_me:$LINENO: checking for $ac_header" >&5
13335 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13336 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13337 echo $ECHO_N "(cached) $ECHO_C" >&6
13339 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13340 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13342 # Is the header compilable?
13343 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13344 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13345 cat >conftest.
$ac_ext <<_ACEOF
13348 cat confdefs.h
>>conftest.
$ac_ext
13349 cat >>conftest.
$ac_ext <<_ACEOF
13350 /* end confdefs.h. */
13351 $ac_includes_default
13352 #include <$ac_header>
13354 rm -f conftest.
$ac_objext
13355 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13356 (eval $ac_compile) 2>conftest.er1
13358 grep -v '^ *+' conftest.er1
>conftest.err
13360 cat conftest.err
>&5
13361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13362 (exit $ac_status); } &&
13363 { ac_try
='test -z "$ac_c_werror_flag"
13364 || test ! -s conftest.err'
13365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13366 (eval $ac_try) 2>&5
13368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13369 (exit $ac_status); }; } &&
13370 { ac_try
='test -s conftest.$ac_objext'
13371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13372 (eval $ac_try) 2>&5
13374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13375 (exit $ac_status); }; }; then
13376 ac_header_compiler
=yes
13378 echo "$as_me: failed program was:" >&5
13379 sed 's/^/| /' conftest.
$ac_ext >&5
13381 ac_header_compiler
=no
13383 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13384 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13385 echo "${ECHO_T}$ac_header_compiler" >&6
13387 # Is the header present?
13388 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13389 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13390 cat >conftest.
$ac_ext <<_ACEOF
13393 cat confdefs.h
>>conftest.
$ac_ext
13394 cat >>conftest.
$ac_ext <<_ACEOF
13395 /* end confdefs.h. */
13396 #include <$ac_header>
13398 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13399 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
13401 grep -v '^ *+' conftest.er1
>conftest.err
13403 cat conftest.err
>&5
13404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13405 (exit $ac_status); } >/dev
/null
; then
13406 if test -s conftest.err
; then
13407 ac_cpp_err
=$ac_c_preproc_warn_flag
13408 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
13415 if test -z "$ac_cpp_err"; then
13416 ac_header_preproc
=yes
13418 echo "$as_me: failed program was:" >&5
13419 sed 's/^/| /' conftest.
$ac_ext >&5
13421 ac_header_preproc
=no
13423 rm -f conftest.err conftest.
$ac_ext
13424 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13425 echo "${ECHO_T}$ac_header_preproc" >&6
13427 # So? What about this header?
13428 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13430 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13431 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13432 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13433 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13434 ac_header_preproc
=yes
13437 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13438 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13439 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13440 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13441 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13442 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13443 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13444 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13445 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13446 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13447 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13448 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13451 ## ------------------------------------------ ##
13452 ## Report this to the AC_PACKAGE_NAME lists. ##
13453 ## ------------------------------------------ ##
13456 sed "s/^/$as_me: WARNING: /" >&2
13459 echo "$as_me:$LINENO: checking for $ac_header" >&5
13460 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13461 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13462 echo $ECHO_N "(cached) $ECHO_C" >&6
13464 eval "$as_ac_Header=\$ac_header_preproc"
13466 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13467 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13470 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13471 cat >>confdefs.h
<<_ACEOF
13472 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13546 for ac_func
in gethostname getdomainname dup2 \
13547 rename closedir mkdir
rmdir sysinfo \
13548 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
13549 strerror fpathconf
select mktime euidaccess getpagesize tzset setlocale \
13550 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
13551 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
13552 sendto recvfrom getsockopt setsockopt getsockname getpeername \
13553 gai_strerror mkstemp getline getdelim mremap memmove fsync bzero \
13554 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign
13556 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13557 echo "$as_me:$LINENO: checking for $ac_func" >&5
13558 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13559 if eval "test \"\${$as_ac_var+set}\" = set"; then
13560 echo $ECHO_N "(cached) $ECHO_C" >&6
13562 cat >conftest.
$ac_ext <<_ACEOF
13565 cat confdefs.h
>>conftest.
$ac_ext
13566 cat >>conftest.
$ac_ext <<_ACEOF
13567 /* end confdefs.h. */
13568 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13569 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13570 #define $ac_func innocuous_$ac_func
13572 /* System header to define __stub macros and hopefully few prototypes,
13573 which can conflict with char $ac_func (); below.
13574 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13575 <limits.h> exists even on freestanding compilers. */
13578 # include <limits.h>
13580 # include <assert.h>
13585 /* Override any gcc2 internal prototype to avoid an error. */
13590 /* We use char because int might match the return type of a gcc2
13591 builtin and then its argument prototype would still apply. */
13593 /* The GNU C library defines this for functions which it implements
13594 to always fail with ENOSYS. Some functions are actually named
13595 something starting with __ and the normal name is an alias. */
13596 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13599 char (*f) () = $ac_func;
13608 return f != $ac_func;
13613 rm -f conftest.
$ac_objext conftest
$ac_exeext
13614 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13615 (eval $ac_link) 2>conftest.er1
13617 grep -v '^ *+' conftest.er1
>conftest.err
13619 cat conftest.err
>&5
13620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13621 (exit $ac_status); } &&
13622 { ac_try
='test -z "$ac_c_werror_flag"
13623 || test ! -s conftest.err'
13624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13625 (eval $ac_try) 2>&5
13627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13628 (exit $ac_status); }; } &&
13629 { ac_try
='test -s conftest$ac_exeext'
13630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13631 (eval $ac_try) 2>&5
13633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13634 (exit $ac_status); }; }; then
13635 eval "$as_ac_var=yes"
13637 echo "$as_me: failed program was:" >&5
13638 sed 's/^/| /' conftest.
$ac_ext >&5
13640 eval "$as_ac_var=no"
13642 rm -f conftest.err conftest.
$ac_objext \
13643 conftest
$ac_exeext conftest.
$ac_ext
13645 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13646 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13647 if test `eval echo '${'$as_ac_var'}'` = yes; then
13648 cat >>confdefs.h
<<_ACEOF
13649 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13657 for ac_header
in sys
/un.h
13659 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13660 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13661 echo "$as_me:$LINENO: checking for $ac_header" >&5
13662 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13663 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13664 echo $ECHO_N "(cached) $ECHO_C" >&6
13666 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13667 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13669 # Is the header compilable?
13670 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13671 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13672 cat >conftest.
$ac_ext <<_ACEOF
13675 cat confdefs.h
>>conftest.
$ac_ext
13676 cat >>conftest.
$ac_ext <<_ACEOF
13677 /* end confdefs.h. */
13678 $ac_includes_default
13679 #include <$ac_header>
13681 rm -f conftest.
$ac_objext
13682 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13683 (eval $ac_compile) 2>conftest.er1
13685 grep -v '^ *+' conftest.er1
>conftest.err
13687 cat conftest.err
>&5
13688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13689 (exit $ac_status); } &&
13690 { ac_try
='test -z "$ac_c_werror_flag"
13691 || test ! -s conftest.err'
13692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13693 (eval $ac_try) 2>&5
13695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13696 (exit $ac_status); }; } &&
13697 { ac_try
='test -s conftest.$ac_objext'
13698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13699 (eval $ac_try) 2>&5
13701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13702 (exit $ac_status); }; }; then
13703 ac_header_compiler
=yes
13705 echo "$as_me: failed program was:" >&5
13706 sed 's/^/| /' conftest.
$ac_ext >&5
13708 ac_header_compiler
=no
13710 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13711 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13712 echo "${ECHO_T}$ac_header_compiler" >&6
13714 # Is the header present?
13715 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13716 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13717 cat >conftest.
$ac_ext <<_ACEOF
13720 cat confdefs.h
>>conftest.
$ac_ext
13721 cat >>conftest.
$ac_ext <<_ACEOF
13722 /* end confdefs.h. */
13723 #include <$ac_header>
13725 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13726 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
13728 grep -v '^ *+' conftest.er1
>conftest.err
13730 cat conftest.err
>&5
13731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13732 (exit $ac_status); } >/dev
/null
; then
13733 if test -s conftest.err
; then
13734 ac_cpp_err
=$ac_c_preproc_warn_flag
13735 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
13742 if test -z "$ac_cpp_err"; then
13743 ac_header_preproc
=yes
13745 echo "$as_me: failed program was:" >&5
13746 sed 's/^/| /' conftest.
$ac_ext >&5
13748 ac_header_preproc
=no
13750 rm -f conftest.err conftest.
$ac_ext
13751 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13752 echo "${ECHO_T}$ac_header_preproc" >&6
13754 # So? What about this header?
13755 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13757 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13758 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13759 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13760 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13761 ac_header_preproc
=yes
13764 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13765 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13766 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13767 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13768 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13769 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13770 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13771 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13772 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13773 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13774 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13775 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13778 ## ------------------------------------------ ##
13779 ## Report this to the AC_PACKAGE_NAME lists. ##
13780 ## ------------------------------------------ ##
13783 sed "s/^/$as_me: WARNING: /" >&2
13786 echo "$as_me:$LINENO: checking for $ac_header" >&5
13787 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13788 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13789 echo $ECHO_N "(cached) $ECHO_C" >&6
13791 eval "$as_ac_Header=\$ac_header_preproc"
13793 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13794 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13797 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13798 cat >>confdefs.h
<<_ACEOF
13799 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13810 for ac_header
in stdlib.h sys
/time.h unistd.h
13812 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13813 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13814 echo "$as_me:$LINENO: checking for $ac_header" >&5
13815 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13816 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13817 echo $ECHO_N "(cached) $ECHO_C" >&6
13819 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13820 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13822 # Is the header compilable?
13823 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13824 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13825 cat >conftest.
$ac_ext <<_ACEOF
13828 cat confdefs.h
>>conftest.
$ac_ext
13829 cat >>conftest.
$ac_ext <<_ACEOF
13830 /* end confdefs.h. */
13831 $ac_includes_default
13832 #include <$ac_header>
13834 rm -f conftest.
$ac_objext
13835 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13836 (eval $ac_compile) 2>conftest.er1
13838 grep -v '^ *+' conftest.er1
>conftest.err
13840 cat conftest.err
>&5
13841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13842 (exit $ac_status); } &&
13843 { ac_try
='test -z "$ac_c_werror_flag"
13844 || test ! -s conftest.err'
13845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13846 (eval $ac_try) 2>&5
13848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13849 (exit $ac_status); }; } &&
13850 { ac_try
='test -s conftest.$ac_objext'
13851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13852 (eval $ac_try) 2>&5
13854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13855 (exit $ac_status); }; }; then
13856 ac_header_compiler
=yes
13858 echo "$as_me: failed program was:" >&5
13859 sed 's/^/| /' conftest.
$ac_ext >&5
13861 ac_header_compiler
=no
13863 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13864 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13865 echo "${ECHO_T}$ac_header_compiler" >&6
13867 # Is the header present?
13868 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13869 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13870 cat >conftest.
$ac_ext <<_ACEOF
13873 cat confdefs.h
>>conftest.
$ac_ext
13874 cat >>conftest.
$ac_ext <<_ACEOF
13875 /* end confdefs.h. */
13876 #include <$ac_header>
13878 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13879 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
13881 grep -v '^ *+' conftest.er1
>conftest.err
13883 cat conftest.err
>&5
13884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13885 (exit $ac_status); } >/dev
/null
; then
13886 if test -s conftest.err
; then
13887 ac_cpp_err
=$ac_c_preproc_warn_flag
13888 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
13895 if test -z "$ac_cpp_err"; then
13896 ac_header_preproc
=yes
13898 echo "$as_me: failed program was:" >&5
13899 sed 's/^/| /' conftest.
$ac_ext >&5
13901 ac_header_preproc
=no
13903 rm -f conftest.err conftest.
$ac_ext
13904 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13905 echo "${ECHO_T}$ac_header_preproc" >&6
13907 # So? What about this header?
13908 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13910 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13911 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13912 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13913 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13914 ac_header_preproc
=yes
13917 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13918 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13919 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13920 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13921 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13922 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13923 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13924 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13925 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13926 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13927 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13928 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13931 ## ------------------------------------------ ##
13932 ## Report this to the AC_PACKAGE_NAME lists. ##
13933 ## ------------------------------------------ ##
13936 sed "s/^/$as_me: WARNING: /" >&2
13939 echo "$as_me:$LINENO: checking for $ac_header" >&5
13940 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13941 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13942 echo $ECHO_N "(cached) $ECHO_C" >&6
13944 eval "$as_ac_Header=\$ac_header_preproc"
13946 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13947 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13950 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13951 cat >>confdefs.h
<<_ACEOF
13952 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13960 for ac_func
in alarm
13962 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13963 echo "$as_me:$LINENO: checking for $ac_func" >&5
13964 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13965 if eval "test \"\${$as_ac_var+set}\" = set"; then
13966 echo $ECHO_N "(cached) $ECHO_C" >&6
13968 cat >conftest.
$ac_ext <<_ACEOF
13971 cat confdefs.h
>>conftest.
$ac_ext
13972 cat >>conftest.
$ac_ext <<_ACEOF
13973 /* end confdefs.h. */
13974 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13975 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13976 #define $ac_func innocuous_$ac_func
13978 /* System header to define __stub macros and hopefully few prototypes,
13979 which can conflict with char $ac_func (); below.
13980 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13981 <limits.h> exists even on freestanding compilers. */
13984 # include <limits.h>
13986 # include <assert.h>
13991 /* Override any gcc2 internal prototype to avoid an error. */
13996 /* We use char because int might match the return type of a gcc2
13997 builtin and then its argument prototype would still apply. */
13999 /* The GNU C library defines this for functions which it implements
14000 to always fail with ENOSYS. Some functions are actually named
14001 something starting with __ and the normal name is an alias. */
14002 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14005 char (*f) () = $ac_func;
14014 return f != $ac_func;
14019 rm -f conftest.
$ac_objext conftest
$ac_exeext
14020 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14021 (eval $ac_link) 2>conftest.er1
14023 grep -v '^ *+' conftest.er1
>conftest.err
14025 cat conftest.err
>&5
14026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14027 (exit $ac_status); } &&
14028 { ac_try
='test -z "$ac_c_werror_flag"
14029 || test ! -s conftest.err'
14030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14031 (eval $ac_try) 2>&5
14033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14034 (exit $ac_status); }; } &&
14035 { ac_try
='test -s conftest$ac_exeext'
14036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14037 (eval $ac_try) 2>&5
14039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14040 (exit $ac_status); }; }; then
14041 eval "$as_ac_var=yes"
14043 echo "$as_me: failed program was:" >&5
14044 sed 's/^/| /' conftest.
$ac_ext >&5
14046 eval "$as_ac_var=no"
14048 rm -f conftest.err conftest.
$ac_objext \
14049 conftest
$ac_exeext conftest.
$ac_ext
14051 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14052 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14053 if test `eval echo '${'$as_ac_var'}'` = yes; then
14054 cat >>confdefs.h
<<_ACEOF
14055 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14061 echo "$as_me:$LINENO: checking for working mktime" >&5
14062 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
14063 if test "${ac_cv_func_working_mktime+set}" = set; then
14064 echo $ECHO_N "(cached) $ECHO_C" >&6
14066 if test "$cross_compiling" = yes; then
14067 ac_cv_func_working_mktime
=no
14069 cat >conftest.
$ac_ext <<_ACEOF
14072 cat confdefs.h
>>conftest.
$ac_ext
14073 cat >>conftest.
$ac_ext <<_ACEOF
14074 /* end confdefs.h. */
14075 /* Test program from Paul Eggert and Tony Leneis. */
14076 #if TIME_WITH_SYS_TIME
14077 # include <sys/time.h>
14080 # if HAVE_SYS_TIME_H
14081 # include <sys/time.h>
14088 # include <stdlib.h>
14092 # include <unistd.h>
14096 # define alarm(X) /* empty */
14099 /* Work around redefinition to rpl_putenv by other config tests. */
14102 static time_t time_t_max;
14103 static time_t time_t_min;
14105 /* Values we'll use to set the TZ environment variable. */
14106 static char *tz_strings[] = {
14107 (char *) 0, "TZ=GMT0", "TZ=JST-9",
14108 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
14110 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
14112 /* Fail if mktime fails to convert a date in the spring-forward gap.
14113 Based on a problem report from Andreas Jaeger. */
14115 spring_forward_gap ()
14117 /* glibc (up to about 1998-10-07) failed this test. */
14120 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
14121 instead of "TZ=America/Vancouver" in order to detect the bug even
14122 on systems that don't support the Olson extension, or don't have the
14123 full zoneinfo tables installed. */
14124 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
14133 if (mktime (&tm) == (time_t)-1)
14142 if ((lt = localtime (&now)) && mktime (lt) != now)
14150 mktime_test1 (now);
14151 mktime_test1 ((time_t) (time_t_max - now));
14152 mktime_test1 ((time_t) (time_t_min + now));
14158 /* Based on code from Ariel Faigon. */
14168 if (tm.tm_mon != 2 || tm.tm_mday != 31)
14178 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
14179 now = mktime (&tm);
14180 if (now != (time_t) -1)
14182 struct tm *lt = localtime (&now);
14184 && lt->tm_year == tm.tm_year
14185 && lt->tm_mon == tm.tm_mon
14186 && lt->tm_mday == tm.tm_mday
14187 && lt->tm_hour == tm.tm_hour
14188 && lt->tm_min == tm.tm_min
14189 && lt->tm_sec == tm.tm_sec
14190 && lt->tm_yday == tm.tm_yday
14191 && lt->tm_wday == tm.tm_wday
14192 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
14193 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
14204 /* This test makes some buggy mktime implementations loop.
14205 Give up after 60 seconds; a mktime slower than that
14206 isn't worth using anyway. */
14209 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
14212 if ((time_t) -1 < 0)
14213 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
14215 delta = time_t_max / 997; /* a suitable prime number */
14216 for (i = 0; i < N_STRINGS; i++)
14219 putenv (tz_strings[i]);
14221 for (t = 0; t <= time_t_max - delta; t += delta)
14223 mktime_test ((time_t) 1);
14224 mktime_test ((time_t) (60 * 60));
14225 mktime_test ((time_t) (60 * 60 * 24));
14227 for (j = 1; 0 < j; j *= 2)
14229 bigtime_test (j - 1);
14232 spring_forward_gap ();
14236 rm -f conftest
$ac_exeext
14237 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14238 (eval $ac_link) 2>&5
14240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14241 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
14242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14243 (eval $ac_try) 2>&5
14245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14246 (exit $ac_status); }; }; then
14247 ac_cv_func_working_mktime
=yes
14249 echo "$as_me: program exited with status $ac_status" >&5
14250 echo "$as_me: failed program was:" >&5
14251 sed 's/^/| /' conftest.
$ac_ext >&5
14253 ( exit $ac_status )
14254 ac_cv_func_working_mktime
=no
14256 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
14259 echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
14260 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
14261 if test $ac_cv_func_working_mktime = no
; then
14263 "mktime.$ac_objext" | \
14264 *" mktime.$ac_objext" | \
14265 "mktime.$ac_objext "* | \
14266 *" mktime.$ac_objext "* ) ;;
14267 *) LIBOBJS
="$LIBOBJS mktime.$ac_objext" ;;
14272 if test "$ac_cv_func_working_mktime" = no
; then
14274 cat >>confdefs.h
<<\_ACEOF
14275 #define BROKEN_MKTIME 1
14280 ac_have_func
=no
# yes means we've found a way to get the load average.
14282 # Make sure getloadavg.c is where it belongs, at configure-time.
14283 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
14284 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
14285 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
14286 { (exit 1); exit 1; }; }
14290 # Check for getloadavg, but be sure not to touch the cache variable.
14291 (echo "$as_me:$LINENO: checking for getloadavg" >&5
14292 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6
14293 if test "${ac_cv_func_getloadavg+set}" = set; then
14294 echo $ECHO_N "(cached) $ECHO_C" >&6
14296 cat >conftest.
$ac_ext <<_ACEOF
14299 cat confdefs.h
>>conftest.
$ac_ext
14300 cat >>conftest.
$ac_ext <<_ACEOF
14301 /* end confdefs.h. */
14302 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
14303 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14304 #define getloadavg innocuous_getloadavg
14306 /* System header to define __stub macros and hopefully few prototypes,
14307 which can conflict with char getloadavg (); below.
14308 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14309 <limits.h> exists even on freestanding compilers. */
14312 # include <limits.h>
14314 # include <assert.h>
14319 /* Override any gcc2 internal prototype to avoid an error. */
14324 /* We use char because int might match the return type of a gcc2
14325 builtin and then its argument prototype would still apply. */
14326 char getloadavg ();
14327 /* The GNU C library defines this for functions which it implements
14328 to always fail with ENOSYS. Some functions are actually named
14329 something starting with __ and the normal name is an alias. */
14330 #if defined (__stub_getloadavg) || defined (__stub___getloadavg)
14333 char (*f) () = getloadavg;
14342 return f != getloadavg;
14347 rm -f conftest.
$ac_objext conftest
$ac_exeext
14348 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14349 (eval $ac_link) 2>conftest.er1
14351 grep -v '^ *+' conftest.er1
>conftest.err
14353 cat conftest.err
>&5
14354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14355 (exit $ac_status); } &&
14356 { ac_try
='test -z "$ac_c_werror_flag"
14357 || test ! -s conftest.err'
14358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14359 (eval $ac_try) 2>&5
14361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14362 (exit $ac_status); }; } &&
14363 { ac_try
='test -s conftest$ac_exeext'
14364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14365 (eval $ac_try) 2>&5
14367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14368 (exit $ac_status); }; }; then
14369 ac_cv_func_getloadavg
=yes
14371 echo "$as_me: failed program was:" >&5
14372 sed 's/^/| /' conftest.
$ac_ext >&5
14374 ac_cv_func_getloadavg
=no
14376 rm -f conftest.err conftest.
$ac_objext \
14377 conftest
$ac_exeext conftest.
$ac_ext
14379 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
14380 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6
14381 if test $ac_cv_func_getloadavg = yes; then
14386 ) && ac_have_func
=yes
14388 # On HPUX9, an unprivileged user can get load averages through this function.
14390 for ac_func
in pstat_getdynamic
14392 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14393 echo "$as_me:$LINENO: checking for $ac_func" >&5
14394 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14395 if eval "test \"\${$as_ac_var+set}\" = set"; then
14396 echo $ECHO_N "(cached) $ECHO_C" >&6
14398 cat >conftest.
$ac_ext <<_ACEOF
14401 cat confdefs.h
>>conftest.
$ac_ext
14402 cat >>conftest.
$ac_ext <<_ACEOF
14403 /* end confdefs.h. */
14404 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14405 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14406 #define $ac_func innocuous_$ac_func
14408 /* System header to define __stub macros and hopefully few prototypes,
14409 which can conflict with char $ac_func (); below.
14410 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14411 <limits.h> exists even on freestanding compilers. */
14414 # include <limits.h>
14416 # include <assert.h>
14421 /* Override any gcc2 internal prototype to avoid an error. */
14426 /* We use char because int might match the return type of a gcc2
14427 builtin and then its argument prototype would still apply. */
14429 /* The GNU C library defines this for functions which it implements
14430 to always fail with ENOSYS. Some functions are actually named
14431 something starting with __ and the normal name is an alias. */
14432 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14435 char (*f) () = $ac_func;
14444 return f != $ac_func;
14449 rm -f conftest.
$ac_objext conftest
$ac_exeext
14450 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14451 (eval $ac_link) 2>conftest.er1
14453 grep -v '^ *+' conftest.er1
>conftest.err
14455 cat conftest.err
>&5
14456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14457 (exit $ac_status); } &&
14458 { ac_try
='test -z "$ac_c_werror_flag"
14459 || test ! -s conftest.err'
14460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14461 (eval $ac_try) 2>&5
14463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14464 (exit $ac_status); }; } &&
14465 { ac_try
='test -s conftest$ac_exeext'
14466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14467 (eval $ac_try) 2>&5
14469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14470 (exit $ac_status); }; }; then
14471 eval "$as_ac_var=yes"
14473 echo "$as_me: failed program was:" >&5
14474 sed 's/^/| /' conftest.
$ac_ext >&5
14476 eval "$as_ac_var=no"
14478 rm -f conftest.err conftest.
$ac_objext \
14479 conftest
$ac_exeext conftest.
$ac_ext
14481 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14482 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14483 if test `eval echo '${'$as_ac_var'}'` = yes; then
14484 cat >>confdefs.h
<<_ACEOF
14485 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14492 # Solaris has libkstat which does not require root.
14494 echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
14495 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6
14496 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
14497 echo $ECHO_N "(cached) $ECHO_C" >&6
14499 ac_check_lib_save_LIBS
=$LIBS
14500 LIBS
="-lkstat $LIBS"
14501 cat >conftest.
$ac_ext <<_ACEOF
14504 cat confdefs.h
>>conftest.
$ac_ext
14505 cat >>conftest.
$ac_ext <<_ACEOF
14506 /* end confdefs.h. */
14508 /* Override any gcc2 internal prototype to avoid an error. */
14512 /* We use char because int might match the return type of a gcc2
14513 builtin and then its argument prototype would still apply. */
14514 char kstat_open ();
14523 rm -f conftest.
$ac_objext conftest
$ac_exeext
14524 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14525 (eval $ac_link) 2>conftest.er1
14527 grep -v '^ *+' conftest.er1
>conftest.err
14529 cat conftest.err
>&5
14530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14531 (exit $ac_status); } &&
14532 { ac_try
='test -z "$ac_c_werror_flag"
14533 || test ! -s conftest.err'
14534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14535 (eval $ac_try) 2>&5
14537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14538 (exit $ac_status); }; } &&
14539 { ac_try
='test -s conftest$ac_exeext'
14540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14541 (eval $ac_try) 2>&5
14543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14544 (exit $ac_status); }; }; then
14545 ac_cv_lib_kstat_kstat_open
=yes
14547 echo "$as_me: failed program was:" >&5
14548 sed 's/^/| /' conftest.
$ac_ext >&5
14550 ac_cv_lib_kstat_kstat_open
=no
14552 rm -f conftest.err conftest.
$ac_objext \
14553 conftest
$ac_exeext conftest.
$ac_ext
14554 LIBS
=$ac_check_lib_save_LIBS
14556 echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
14557 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6
14558 if test $ac_cv_lib_kstat_kstat_open = yes; then
14559 cat >>confdefs.h
<<_ACEOF
14560 #define HAVE_LIBKSTAT 1
14563 LIBS
="-lkstat $LIBS"
14567 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func
=yes
14569 # Some systems with -lutil have (and need) -lkvm as well, some do not.
14570 # On Solaris, -lkvm requires nlist from -lelf, so check that first
14571 # to get the right answer into the cache.
14572 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
14573 if test $ac_have_func = no
; then
14574 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
14575 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
14576 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
14577 echo $ECHO_N "(cached) $ECHO_C" >&6
14579 ac_check_lib_save_LIBS
=$LIBS
14581 cat >conftest.
$ac_ext <<_ACEOF
14584 cat confdefs.h
>>conftest.
$ac_ext
14585 cat >>conftest.
$ac_ext <<_ACEOF
14586 /* end confdefs.h. */
14588 /* Override any gcc2 internal prototype to avoid an error. */
14592 /* We use char because int might match the return type of a gcc2
14593 builtin and then its argument prototype would still apply. */
14603 rm -f conftest.
$ac_objext conftest
$ac_exeext
14604 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14605 (eval $ac_link) 2>conftest.er1
14607 grep -v '^ *+' conftest.er1
>conftest.err
14609 cat conftest.err
>&5
14610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14611 (exit $ac_status); } &&
14612 { ac_try
='test -z "$ac_c_werror_flag"
14613 || test ! -s conftest.err'
14614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14615 (eval $ac_try) 2>&5
14617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14618 (exit $ac_status); }; } &&
14619 { ac_try
='test -s conftest$ac_exeext'
14620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14621 (eval $ac_try) 2>&5
14623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14624 (exit $ac_status); }; }; then
14625 ac_cv_lib_elf_elf_begin
=yes
14627 echo "$as_me: failed program was:" >&5
14628 sed 's/^/| /' conftest.
$ac_ext >&5
14630 ac_cv_lib_elf_elf_begin
=no
14632 rm -f conftest.err conftest.
$ac_objext \
14633 conftest
$ac_exeext conftest.
$ac_ext
14634 LIBS
=$ac_check_lib_save_LIBS
14636 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
14637 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
14638 if test $ac_cv_lib_elf_elf_begin = yes; then
14643 if test $ac_have_func = no
; then
14644 echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
14645 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6
14646 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
14647 echo $ECHO_N "(cached) $ECHO_C" >&6
14649 ac_check_lib_save_LIBS
=$LIBS
14651 cat >conftest.
$ac_ext <<_ACEOF
14654 cat confdefs.h
>>conftest.
$ac_ext
14655 cat >>conftest.
$ac_ext <<_ACEOF
14656 /* end confdefs.h. */
14658 /* Override any gcc2 internal prototype to avoid an error. */
14662 /* We use char because int might match the return type of a gcc2
14663 builtin and then its argument prototype would still apply. */
14673 rm -f conftest.
$ac_objext conftest
$ac_exeext
14674 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14675 (eval $ac_link) 2>conftest.er1
14677 grep -v '^ *+' conftest.er1
>conftest.err
14679 cat conftest.err
>&5
14680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14681 (exit $ac_status); } &&
14682 { ac_try
='test -z "$ac_c_werror_flag"
14683 || test ! -s conftest.err'
14684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14685 (eval $ac_try) 2>&5
14687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14688 (exit $ac_status); }; } &&
14689 { ac_try
='test -s conftest$ac_exeext'
14690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14691 (eval $ac_try) 2>&5
14693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14694 (exit $ac_status); }; }; then
14695 ac_cv_lib_kvm_kvm_open
=yes
14697 echo "$as_me: failed program was:" >&5
14698 sed 's/^/| /' conftest.
$ac_ext >&5
14700 ac_cv_lib_kvm_kvm_open
=no
14702 rm -f conftest.err conftest.
$ac_objext \
14703 conftest
$ac_exeext conftest.
$ac_ext
14704 LIBS
=$ac_check_lib_save_LIBS
14706 echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
14707 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6
14708 if test $ac_cv_lib_kvm_kvm_open = yes; then
14712 # Check for the 4.4BSD definition of getloadavg.
14713 echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
14714 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6
14715 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
14716 echo $ECHO_N "(cached) $ECHO_C" >&6
14718 ac_check_lib_save_LIBS
=$LIBS
14719 LIBS
="-lutil $LIBS"
14720 cat >conftest.
$ac_ext <<_ACEOF
14723 cat confdefs.h
>>conftest.
$ac_ext
14724 cat >>conftest.
$ac_ext <<_ACEOF
14725 /* end confdefs.h. */
14727 /* Override any gcc2 internal prototype to avoid an error. */
14731 /* We use char because int might match the return type of a gcc2
14732 builtin and then its argument prototype would still apply. */
14733 char getloadavg ();
14742 rm -f conftest.
$ac_objext conftest
$ac_exeext
14743 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14744 (eval $ac_link) 2>conftest.er1
14746 grep -v '^ *+' conftest.er1
>conftest.err
14748 cat conftest.err
>&5
14749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14750 (exit $ac_status); } &&
14751 { ac_try
='test -z "$ac_c_werror_flag"
14752 || test ! -s conftest.err'
14753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14754 (eval $ac_try) 2>&5
14756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14757 (exit $ac_status); }; } &&
14758 { ac_try
='test -s conftest$ac_exeext'
14759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14760 (eval $ac_try) 2>&5
14762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14763 (exit $ac_status); }; }; then
14764 ac_cv_lib_util_getloadavg
=yes
14766 echo "$as_me: failed program was:" >&5
14767 sed 's/^/| /' conftest.
$ac_ext >&5
14769 ac_cv_lib_util_getloadavg
=no
14771 rm -f conftest.err conftest.
$ac_objext \
14772 conftest
$ac_exeext conftest.
$ac_ext
14773 LIBS
=$ac_check_lib_save_LIBS
14775 echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
14776 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6
14777 if test $ac_cv_lib_util_getloadavg = yes; then
14778 LIBS
="-lutil $LIBS" ac_have_func
=yes ac_cv_func_getloadavg_setgid
=yes
14783 if test $ac_have_func = no
; then
14784 # There is a commonly available library for RS/6000 AIX.
14785 # Since it is not a standard part of AIX, it might be installed locally.
14786 ac_getloadavg_LIBS
=$LIBS
14787 LIBS
="-L/usr/local/lib $LIBS"
14788 echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
14789 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6
14790 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
14791 echo $ECHO_N "(cached) $ECHO_C" >&6
14793 ac_check_lib_save_LIBS
=$LIBS
14794 LIBS
="-lgetloadavg $LIBS"
14795 cat >conftest.
$ac_ext <<_ACEOF
14798 cat confdefs.h
>>conftest.
$ac_ext
14799 cat >>conftest.
$ac_ext <<_ACEOF
14800 /* end confdefs.h. */
14802 /* Override any gcc2 internal prototype to avoid an error. */
14806 /* We use char because int might match the return type of a gcc2
14807 builtin and then its argument prototype would still apply. */
14808 char getloadavg ();
14817 rm -f conftest.
$ac_objext conftest
$ac_exeext
14818 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14819 (eval $ac_link) 2>conftest.er1
14821 grep -v '^ *+' conftest.er1
>conftest.err
14823 cat conftest.err
>&5
14824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14825 (exit $ac_status); } &&
14826 { ac_try
='test -z "$ac_c_werror_flag"
14827 || test ! -s conftest.err'
14828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14829 (eval $ac_try) 2>&5
14831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14832 (exit $ac_status); }; } &&
14833 { ac_try
='test -s conftest$ac_exeext'
14834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14835 (eval $ac_try) 2>&5
14837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14838 (exit $ac_status); }; }; then
14839 ac_cv_lib_getloadavg_getloadavg
=yes
14841 echo "$as_me: failed program was:" >&5
14842 sed 's/^/| /' conftest.
$ac_ext >&5
14844 ac_cv_lib_getloadavg_getloadavg
=no
14846 rm -f conftest.err conftest.
$ac_objext \
14847 conftest
$ac_exeext conftest.
$ac_ext
14848 LIBS
=$ac_check_lib_save_LIBS
14850 echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
14851 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6
14852 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
14853 LIBS
="-lgetloadavg $LIBS"
14855 LIBS
=$ac_getloadavg_LIBS
14860 # Make sure it is really in the library, if we think we found it,
14861 # otherwise set up the replacement function.
14863 for ac_func
in getloadavg
14865 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14866 echo "$as_me:$LINENO: checking for $ac_func" >&5
14867 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14868 if eval "test \"\${$as_ac_var+set}\" = set"; then
14869 echo $ECHO_N "(cached) $ECHO_C" >&6
14871 cat >conftest.
$ac_ext <<_ACEOF
14874 cat confdefs.h
>>conftest.
$ac_ext
14875 cat >>conftest.
$ac_ext <<_ACEOF
14876 /* end confdefs.h. */
14877 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14878 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14879 #define $ac_func innocuous_$ac_func
14881 /* System header to define __stub macros and hopefully few prototypes,
14882 which can conflict with char $ac_func (); below.
14883 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14884 <limits.h> exists even on freestanding compilers. */
14887 # include <limits.h>
14889 # include <assert.h>
14894 /* Override any gcc2 internal prototype to avoid an error. */
14899 /* We use char because int might match the return type of a gcc2
14900 builtin and then its argument prototype would still apply. */
14902 /* The GNU C library defines this for functions which it implements
14903 to always fail with ENOSYS. Some functions are actually named
14904 something starting with __ and the normal name is an alias. */
14905 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14908 char (*f) () = $ac_func;
14917 return f != $ac_func;
14922 rm -f conftest.
$ac_objext conftest
$ac_exeext
14923 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14924 (eval $ac_link) 2>conftest.er1
14926 grep -v '^ *+' conftest.er1
>conftest.err
14928 cat conftest.err
>&5
14929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14930 (exit $ac_status); } &&
14931 { ac_try
='test -z "$ac_c_werror_flag"
14932 || test ! -s conftest.err'
14933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14934 (eval $ac_try) 2>&5
14936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14937 (exit $ac_status); }; } &&
14938 { ac_try
='test -s conftest$ac_exeext'
14939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14940 (eval $ac_try) 2>&5
14942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14943 (exit $ac_status); }; }; then
14944 eval "$as_ac_var=yes"
14946 echo "$as_me: failed program was:" >&5
14947 sed 's/^/| /' conftest.
$ac_ext >&5
14949 eval "$as_ac_var=no"
14951 rm -f conftest.err conftest.
$ac_objext \
14952 conftest
$ac_exeext conftest.
$ac_ext
14954 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14955 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14956 if test `eval echo '${'$as_ac_var'}'` = yes; then
14957 cat >>confdefs.h
<<_ACEOF
14958 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14963 "getloadavg.$ac_objext" | \
14964 *" getloadavg.$ac_objext" | \
14965 "getloadavg.$ac_objext "* | \
14966 *" getloadavg.$ac_objext "* ) ;;
14967 *) LIBOBJS
="$LIBOBJS getloadavg.$ac_objext" ;;
14971 cat >>confdefs.h
<<\_ACEOF
14972 #define C_GETLOADAVG 1
14975 # Figure out what our getloadavg.c needs.
14977 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
14978 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
14979 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
14980 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
14981 echo $ECHO_N "(cached) $ECHO_C" >&6
14983 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
14984 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
14986 # Is the header compilable?
14987 echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
14988 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6
14989 cat >conftest.
$ac_ext <<_ACEOF
14992 cat confdefs.h
>>conftest.
$ac_ext
14993 cat >>conftest.
$ac_ext <<_ACEOF
14994 /* end confdefs.h. */
14995 $ac_includes_default
14996 #include <sys/dg_sys_info.h>
14998 rm -f conftest.
$ac_objext
14999 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15000 (eval $ac_compile) 2>conftest.er1
15002 grep -v '^ *+' conftest.er1
>conftest.err
15004 cat conftest.err
>&5
15005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15006 (exit $ac_status); } &&
15007 { ac_try
='test -z "$ac_c_werror_flag"
15008 || test ! -s conftest.err'
15009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15010 (eval $ac_try) 2>&5
15012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15013 (exit $ac_status); }; } &&
15014 { ac_try
='test -s conftest.$ac_objext'
15015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15016 (eval $ac_try) 2>&5
15018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15019 (exit $ac_status); }; }; then
15020 ac_header_compiler
=yes
15022 echo "$as_me: failed program was:" >&5
15023 sed 's/^/| /' conftest.
$ac_ext >&5
15025 ac_header_compiler
=no
15027 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15028 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15029 echo "${ECHO_T}$ac_header_compiler" >&6
15031 # Is the header present?
15032 echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
15033 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6
15034 cat >conftest.
$ac_ext <<_ACEOF
15037 cat confdefs.h
>>conftest.
$ac_ext
15038 cat >>conftest.
$ac_ext <<_ACEOF
15039 /* end confdefs.h. */
15040 #include <sys/dg_sys_info.h>
15042 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15043 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
15045 grep -v '^ *+' conftest.er1
>conftest.err
15047 cat conftest.err
>&5
15048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15049 (exit $ac_status); } >/dev
/null
; then
15050 if test -s conftest.err
; then
15051 ac_cpp_err
=$ac_c_preproc_warn_flag
15052 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
15059 if test -z "$ac_cpp_err"; then
15060 ac_header_preproc
=yes
15062 echo "$as_me: failed program was:" >&5
15063 sed 's/^/| /' conftest.
$ac_ext >&5
15065 ac_header_preproc
=no
15067 rm -f conftest.err conftest.
$ac_ext
15068 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15069 echo "${ECHO_T}$ac_header_preproc" >&6
15071 # So? What about this header?
15072 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15074 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
15075 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15076 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
15077 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
15078 ac_header_preproc
=yes
15081 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
15082 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
15083 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
15084 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
15085 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
15086 echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
15087 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
15088 echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
15089 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
15090 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
15091 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
15092 echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
15095 ## ------------------------------------------ ##
15096 ## Report this to the AC_PACKAGE_NAME lists. ##
15097 ## ------------------------------------------ ##
15100 sed "s/^/$as_me: WARNING: /" >&2
15103 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
15104 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
15105 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
15106 echo $ECHO_N "(cached) $ECHO_C" >&6
15108 ac_cv_header_sys_dg_sys_info_h
=$ac_header_preproc
15110 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
15111 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
15114 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
15117 cat >>confdefs.h
<<\_ACEOF
15122 echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
15123 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6
15124 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
15125 echo $ECHO_N "(cached) $ECHO_C" >&6
15127 ac_check_lib_save_LIBS
=$LIBS
15129 cat >conftest.
$ac_ext <<_ACEOF
15132 cat confdefs.h
>>conftest.
$ac_ext
15133 cat >>conftest.
$ac_ext <<_ACEOF
15134 /* end confdefs.h. */
15136 /* Override any gcc2 internal prototype to avoid an error. */
15140 /* We use char because int might match the return type of a gcc2
15141 builtin and then its argument prototype would still apply. */
15142 char dg_sys_info ();
15151 rm -f conftest.
$ac_objext conftest
$ac_exeext
15152 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15153 (eval $ac_link) 2>conftest.er1
15155 grep -v '^ *+' conftest.er1
>conftest.err
15157 cat conftest.err
>&5
15158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15159 (exit $ac_status); } &&
15160 { ac_try
='test -z "$ac_c_werror_flag"
15161 || test ! -s conftest.err'
15162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15163 (eval $ac_try) 2>&5
15165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15166 (exit $ac_status); }; } &&
15167 { ac_try
='test -s conftest$ac_exeext'
15168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15169 (eval $ac_try) 2>&5
15171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15172 (exit $ac_status); }; }; then
15173 ac_cv_lib_dgc_dg_sys_info
=yes
15175 echo "$as_me: failed program was:" >&5
15176 sed 's/^/| /' conftest.
$ac_ext >&5
15178 ac_cv_lib_dgc_dg_sys_info
=no
15180 rm -f conftest.err conftest.
$ac_objext \
15181 conftest
$ac_exeext conftest.
$ac_ext
15182 LIBS
=$ac_check_lib_save_LIBS
15184 echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
15185 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6
15186 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
15187 cat >>confdefs.h
<<_ACEOF
15188 #define HAVE_LIBDGC 1
15199 if test "${ac_cv_header_locale_h+set}" = set; then
15200 echo "$as_me:$LINENO: checking for locale.h" >&5
15201 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
15202 if test "${ac_cv_header_locale_h+set}" = set; then
15203 echo $ECHO_N "(cached) $ECHO_C" >&6
15205 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
15206 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
15208 # Is the header compilable?
15209 echo "$as_me:$LINENO: checking locale.h usability" >&5
15210 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6
15211 cat >conftest.
$ac_ext <<_ACEOF
15214 cat confdefs.h
>>conftest.
$ac_ext
15215 cat >>conftest.
$ac_ext <<_ACEOF
15216 /* end confdefs.h. */
15217 $ac_includes_default
15218 #include <locale.h>
15220 rm -f conftest.
$ac_objext
15221 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15222 (eval $ac_compile) 2>conftest.er1
15224 grep -v '^ *+' conftest.er1
>conftest.err
15226 cat conftest.err
>&5
15227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15228 (exit $ac_status); } &&
15229 { ac_try
='test -z "$ac_c_werror_flag"
15230 || test ! -s conftest.err'
15231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15232 (eval $ac_try) 2>&5
15234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15235 (exit $ac_status); }; } &&
15236 { ac_try
='test -s conftest.$ac_objext'
15237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15238 (eval $ac_try) 2>&5
15240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15241 (exit $ac_status); }; }; then
15242 ac_header_compiler
=yes
15244 echo "$as_me: failed program was:" >&5
15245 sed 's/^/| /' conftest.
$ac_ext >&5
15247 ac_header_compiler
=no
15249 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15250 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15251 echo "${ECHO_T}$ac_header_compiler" >&6
15253 # Is the header present?
15254 echo "$as_me:$LINENO: checking locale.h presence" >&5
15255 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6
15256 cat >conftest.
$ac_ext <<_ACEOF
15259 cat confdefs.h
>>conftest.
$ac_ext
15260 cat >>conftest.
$ac_ext <<_ACEOF
15261 /* end confdefs.h. */
15262 #include <locale.h>
15264 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15265 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
15267 grep -v '^ *+' conftest.er1
>conftest.err
15269 cat conftest.err
>&5
15270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15271 (exit $ac_status); } >/dev
/null
; then
15272 if test -s conftest.err
; then
15273 ac_cpp_err
=$ac_c_preproc_warn_flag
15274 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
15281 if test -z "$ac_cpp_err"; then
15282 ac_header_preproc
=yes
15284 echo "$as_me: failed program was:" >&5
15285 sed 's/^/| /' conftest.
$ac_ext >&5
15287 ac_header_preproc
=no
15289 rm -f conftest.err conftest.
$ac_ext
15290 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15291 echo "${ECHO_T}$ac_header_preproc" >&6
15293 # So? What about this header?
15294 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15296 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
15297 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15298 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
15299 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
15300 ac_header_preproc
=yes
15303 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
15304 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
15305 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
15306 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
15307 { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
15308 echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
15309 { echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
15310 echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
15311 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
15312 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
15313 { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
15314 echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
15317 ## ------------------------------------------ ##
15318 ## Report this to the AC_PACKAGE_NAME lists. ##
15319 ## ------------------------------------------ ##
15322 sed "s/^/$as_me: WARNING: /" >&2
15325 echo "$as_me:$LINENO: checking for locale.h" >&5
15326 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
15327 if test "${ac_cv_header_locale_h+set}" = set; then
15328 echo $ECHO_N "(cached) $ECHO_C" >&6
15330 ac_cv_header_locale_h
=$ac_header_preproc
15332 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
15333 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
15339 for ac_func
in setlocale
15341 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15342 echo "$as_me:$LINENO: checking for $ac_func" >&5
15343 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15344 if eval "test \"\${$as_ac_var+set}\" = set"; then
15345 echo $ECHO_N "(cached) $ECHO_C" >&6
15347 cat >conftest.
$ac_ext <<_ACEOF
15350 cat confdefs.h
>>conftest.
$ac_ext
15351 cat >>conftest.
$ac_ext <<_ACEOF
15352 /* end confdefs.h. */
15353 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15354 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15355 #define $ac_func innocuous_$ac_func
15357 /* System header to define __stub macros and hopefully few prototypes,
15358 which can conflict with char $ac_func (); below.
15359 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15360 <limits.h> exists even on freestanding compilers. */
15363 # include <limits.h>
15365 # include <assert.h>
15370 /* Override any gcc2 internal prototype to avoid an error. */
15375 /* We use char because int might match the return type of a gcc2
15376 builtin and then its argument prototype would still apply. */
15378 /* The GNU C library defines this for functions which it implements
15379 to always fail with ENOSYS. Some functions are actually named
15380 something starting with __ and the normal name is an alias. */
15381 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15384 char (*f) () = $ac_func;
15393 return f != $ac_func;
15398 rm -f conftest.
$ac_objext conftest
$ac_exeext
15399 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15400 (eval $ac_link) 2>conftest.er1
15402 grep -v '^ *+' conftest.er1
>conftest.err
15404 cat conftest.err
>&5
15405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15406 (exit $ac_status); } &&
15407 { ac_try
='test -z "$ac_c_werror_flag"
15408 || test ! -s conftest.err'
15409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15410 (eval $ac_try) 2>&5
15412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15413 (exit $ac_status); }; } &&
15414 { ac_try
='test -s conftest$ac_exeext'
15415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15416 (eval $ac_try) 2>&5
15418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15419 (exit $ac_status); }; }; then
15420 eval "$as_ac_var=yes"
15422 echo "$as_me: failed program was:" >&5
15423 sed 's/^/| /' conftest.
$ac_ext >&5
15425 eval "$as_ac_var=no"
15427 rm -f conftest.err conftest.
$ac_objext \
15428 conftest
$ac_exeext conftest.
$ac_ext
15430 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15431 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15432 if test `eval echo '${'$as_ac_var'}'` = yes; then
15433 cat >>confdefs.h
<<_ACEOF
15434 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15441 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
15442 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
15443 # Irix 4.0.5F has the header but not the library.
15444 if test $ac_have_func = no
&& test "$ac_cv_lib_elf_elf_begin" = yes; then
15447 cat >>confdefs.h
<<\_ACEOF
15453 if test $ac_have_func = no
; then
15454 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
15455 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
15456 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
15457 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
15458 echo $ECHO_N "(cached) $ECHO_C" >&6
15460 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
15461 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
15463 # Is the header compilable?
15464 echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
15465 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6
15466 cat >conftest.
$ac_ext <<_ACEOF
15469 cat confdefs.h
>>conftest.
$ac_ext
15470 cat >>conftest.
$ac_ext <<_ACEOF
15471 /* end confdefs.h. */
15472 $ac_includes_default
15473 #include <inq_stats/cpustats.h>
15475 rm -f conftest.
$ac_objext
15476 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15477 (eval $ac_compile) 2>conftest.er1
15479 grep -v '^ *+' conftest.er1
>conftest.err
15481 cat conftest.err
>&5
15482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15483 (exit $ac_status); } &&
15484 { ac_try
='test -z "$ac_c_werror_flag"
15485 || test ! -s conftest.err'
15486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15487 (eval $ac_try) 2>&5
15489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15490 (exit $ac_status); }; } &&
15491 { ac_try
='test -s conftest.$ac_objext'
15492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15493 (eval $ac_try) 2>&5
15495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15496 (exit $ac_status); }; }; then
15497 ac_header_compiler
=yes
15499 echo "$as_me: failed program was:" >&5
15500 sed 's/^/| /' conftest.
$ac_ext >&5
15502 ac_header_compiler
=no
15504 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15505 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15506 echo "${ECHO_T}$ac_header_compiler" >&6
15508 # Is the header present?
15509 echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
15510 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6
15511 cat >conftest.
$ac_ext <<_ACEOF
15514 cat confdefs.h
>>conftest.
$ac_ext
15515 cat >>conftest.
$ac_ext <<_ACEOF
15516 /* end confdefs.h. */
15517 #include <inq_stats/cpustats.h>
15519 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15520 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
15522 grep -v '^ *+' conftest.er1
>conftest.err
15524 cat conftest.err
>&5
15525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15526 (exit $ac_status); } >/dev
/null
; then
15527 if test -s conftest.err
; then
15528 ac_cpp_err
=$ac_c_preproc_warn_flag
15529 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
15536 if test -z "$ac_cpp_err"; then
15537 ac_header_preproc
=yes
15539 echo "$as_me: failed program was:" >&5
15540 sed 's/^/| /' conftest.
$ac_ext >&5
15542 ac_header_preproc
=no
15544 rm -f conftest.err conftest.
$ac_ext
15545 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15546 echo "${ECHO_T}$ac_header_preproc" >&6
15548 # So? What about this header?
15549 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15551 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
15552 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15553 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
15554 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
15555 ac_header_preproc
=yes
15558 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
15559 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
15560 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
15561 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
15562 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
15563 echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
15564 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
15565 echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
15566 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
15567 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
15568 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
15569 echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
15572 ## ------------------------------------------ ##
15573 ## Report this to the AC_PACKAGE_NAME lists. ##
15574 ## ------------------------------------------ ##
15577 sed "s/^/$as_me: WARNING: /" >&2
15580 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
15581 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
15582 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
15583 echo $ECHO_N "(cached) $ECHO_C" >&6
15585 ac_cv_header_inq_stats_cpustats_h
=$ac_header_preproc
15587 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
15588 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
15591 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
15594 cat >>confdefs.h
<<\_ACEOF
15599 cat >>confdefs.h
<<\_ACEOF
15608 if test $ac_have_func = no
; then
15609 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
15610 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
15611 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
15612 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
15613 echo $ECHO_N "(cached) $ECHO_C" >&6
15615 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
15616 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
15618 # Is the header compilable?
15619 echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
15620 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6
15621 cat >conftest.
$ac_ext <<_ACEOF
15624 cat confdefs.h
>>conftest.
$ac_ext
15625 cat >>conftest.
$ac_ext <<_ACEOF
15626 /* end confdefs.h. */
15627 $ac_includes_default
15628 #include <sys/cpustats.h>
15630 rm -f conftest.
$ac_objext
15631 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15632 (eval $ac_compile) 2>conftest.er1
15634 grep -v '^ *+' conftest.er1
>conftest.err
15636 cat conftest.err
>&5
15637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15638 (exit $ac_status); } &&
15639 { ac_try
='test -z "$ac_c_werror_flag"
15640 || test ! -s conftest.err'
15641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15642 (eval $ac_try) 2>&5
15644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15645 (exit $ac_status); }; } &&
15646 { ac_try
='test -s conftest.$ac_objext'
15647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15648 (eval $ac_try) 2>&5
15650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15651 (exit $ac_status); }; }; then
15652 ac_header_compiler
=yes
15654 echo "$as_me: failed program was:" >&5
15655 sed 's/^/| /' conftest.
$ac_ext >&5
15657 ac_header_compiler
=no
15659 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15660 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15661 echo "${ECHO_T}$ac_header_compiler" >&6
15663 # Is the header present?
15664 echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
15665 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6
15666 cat >conftest.
$ac_ext <<_ACEOF
15669 cat confdefs.h
>>conftest.
$ac_ext
15670 cat >>conftest.
$ac_ext <<_ACEOF
15671 /* end confdefs.h. */
15672 #include <sys/cpustats.h>
15674 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15675 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
15677 grep -v '^ *+' conftest.er1
>conftest.err
15679 cat conftest.err
>&5
15680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15681 (exit $ac_status); } >/dev
/null
; then
15682 if test -s conftest.err
; then
15683 ac_cpp_err
=$ac_c_preproc_warn_flag
15684 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
15691 if test -z "$ac_cpp_err"; then
15692 ac_header_preproc
=yes
15694 echo "$as_me: failed program was:" >&5
15695 sed 's/^/| /' conftest.
$ac_ext >&5
15697 ac_header_preproc
=no
15699 rm -f conftest.err conftest.
$ac_ext
15700 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15701 echo "${ECHO_T}$ac_header_preproc" >&6
15703 # So? What about this header?
15704 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15706 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
15707 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15708 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
15709 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
15710 ac_header_preproc
=yes
15713 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
15714 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
15715 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
15716 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
15717 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
15718 echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
15719 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
15720 echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
15721 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
15722 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
15723 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
15724 echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
15727 ## ------------------------------------------ ##
15728 ## Report this to the AC_PACKAGE_NAME lists. ##
15729 ## ------------------------------------------ ##
15732 sed "s/^/$as_me: WARNING: /" >&2
15735 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
15736 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
15737 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
15738 echo $ECHO_N "(cached) $ECHO_C" >&6
15740 ac_cv_header_sys_cpustats_h
=$ac_header_preproc
15742 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
15743 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
15746 if test $ac_cv_header_sys_cpustats_h = yes; then
15747 ac_have_func
=yes; cat >>confdefs.h
<<\_ACEOF
15756 if test $ac_have_func = no
; then
15758 for ac_header
in mach
/mach.h
15760 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15761 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15762 echo "$as_me:$LINENO: checking for $ac_header" >&5
15763 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15764 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15765 echo $ECHO_N "(cached) $ECHO_C" >&6
15767 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15768 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15770 # Is the header compilable?
15771 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15772 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15773 cat >conftest.
$ac_ext <<_ACEOF
15776 cat confdefs.h
>>conftest.
$ac_ext
15777 cat >>conftest.
$ac_ext <<_ACEOF
15778 /* end confdefs.h. */
15779 $ac_includes_default
15780 #include <$ac_header>
15782 rm -f conftest.
$ac_objext
15783 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15784 (eval $ac_compile) 2>conftest.er1
15786 grep -v '^ *+' conftest.er1
>conftest.err
15788 cat conftest.err
>&5
15789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15790 (exit $ac_status); } &&
15791 { ac_try
='test -z "$ac_c_werror_flag"
15792 || test ! -s conftest.err'
15793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15794 (eval $ac_try) 2>&5
15796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15797 (exit $ac_status); }; } &&
15798 { ac_try
='test -s conftest.$ac_objext'
15799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15800 (eval $ac_try) 2>&5
15802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15803 (exit $ac_status); }; }; then
15804 ac_header_compiler
=yes
15806 echo "$as_me: failed program was:" >&5
15807 sed 's/^/| /' conftest.
$ac_ext >&5
15809 ac_header_compiler
=no
15811 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15812 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15813 echo "${ECHO_T}$ac_header_compiler" >&6
15815 # Is the header present?
15816 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15817 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15818 cat >conftest.
$ac_ext <<_ACEOF
15821 cat confdefs.h
>>conftest.
$ac_ext
15822 cat >>conftest.
$ac_ext <<_ACEOF
15823 /* end confdefs.h. */
15824 #include <$ac_header>
15826 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15827 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
15829 grep -v '^ *+' conftest.er1
>conftest.err
15831 cat conftest.err
>&5
15832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15833 (exit $ac_status); } >/dev
/null
; then
15834 if test -s conftest.err
; then
15835 ac_cpp_err
=$ac_c_preproc_warn_flag
15836 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
15843 if test -z "$ac_cpp_err"; then
15844 ac_header_preproc
=yes
15846 echo "$as_me: failed program was:" >&5
15847 sed 's/^/| /' conftest.
$ac_ext >&5
15849 ac_header_preproc
=no
15851 rm -f conftest.err conftest.
$ac_ext
15852 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15853 echo "${ECHO_T}$ac_header_preproc" >&6
15855 # So? What about this header?
15856 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15858 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15859 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15860 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15861 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15862 ac_header_preproc
=yes
15865 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15866 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15867 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15868 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15869 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15870 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15871 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15872 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15873 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15874 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15875 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15876 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15879 ## ------------------------------------------ ##
15880 ## Report this to the AC_PACKAGE_NAME lists. ##
15881 ## ------------------------------------------ ##
15884 sed "s/^/$as_me: WARNING: /" >&2
15887 echo "$as_me:$LINENO: checking for $ac_header" >&5
15888 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15889 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15890 echo $ECHO_N "(cached) $ECHO_C" >&6
15892 eval "$as_ac_Header=\$ac_header_preproc"
15894 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15895 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15898 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15899 cat >>confdefs.h
<<_ACEOF
15900 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15910 for ac_header
in nlist.h
15912 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15913 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15914 echo "$as_me:$LINENO: checking for $ac_header" >&5
15915 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15916 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15917 echo $ECHO_N "(cached) $ECHO_C" >&6
15919 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15920 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15922 # Is the header compilable?
15923 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15924 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15925 cat >conftest.
$ac_ext <<_ACEOF
15928 cat confdefs.h
>>conftest.
$ac_ext
15929 cat >>conftest.
$ac_ext <<_ACEOF
15930 /* end confdefs.h. */
15931 $ac_includes_default
15932 #include <$ac_header>
15934 rm -f conftest.
$ac_objext
15935 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15936 (eval $ac_compile) 2>conftest.er1
15938 grep -v '^ *+' conftest.er1
>conftest.err
15940 cat conftest.err
>&5
15941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15942 (exit $ac_status); } &&
15943 { ac_try
='test -z "$ac_c_werror_flag"
15944 || test ! -s conftest.err'
15945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15946 (eval $ac_try) 2>&5
15948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15949 (exit $ac_status); }; } &&
15950 { ac_try
='test -s conftest.$ac_objext'
15951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15952 (eval $ac_try) 2>&5
15954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15955 (exit $ac_status); }; }; then
15956 ac_header_compiler
=yes
15958 echo "$as_me: failed program was:" >&5
15959 sed 's/^/| /' conftest.
$ac_ext >&5
15961 ac_header_compiler
=no
15963 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15964 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15965 echo "${ECHO_T}$ac_header_compiler" >&6
15967 # Is the header present?
15968 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15969 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15970 cat >conftest.
$ac_ext <<_ACEOF
15973 cat confdefs.h
>>conftest.
$ac_ext
15974 cat >>conftest.
$ac_ext <<_ACEOF
15975 /* end confdefs.h. */
15976 #include <$ac_header>
15978 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15979 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
15981 grep -v '^ *+' conftest.er1
>conftest.err
15983 cat conftest.err
>&5
15984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15985 (exit $ac_status); } >/dev
/null
; then
15986 if test -s conftest.err
; then
15987 ac_cpp_err
=$ac_c_preproc_warn_flag
15988 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
15995 if test -z "$ac_cpp_err"; then
15996 ac_header_preproc
=yes
15998 echo "$as_me: failed program was:" >&5
15999 sed 's/^/| /' conftest.
$ac_ext >&5
16001 ac_header_preproc
=no
16003 rm -f conftest.err conftest.
$ac_ext
16004 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16005 echo "${ECHO_T}$ac_header_preproc" >&6
16007 # So? What about this header?
16008 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16010 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16011 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16012 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16013 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16014 ac_header_preproc
=yes
16017 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16018 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16019 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16020 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16021 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16022 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16023 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16024 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16025 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16026 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16027 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16028 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16031 ## ------------------------------------------ ##
16032 ## Report this to the AC_PACKAGE_NAME lists. ##
16033 ## ------------------------------------------ ##
16036 sed "s/^/$as_me: WARNING: /" >&2
16039 echo "$as_me:$LINENO: checking for $ac_header" >&5
16040 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16041 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16042 echo $ECHO_N "(cached) $ECHO_C" >&6
16044 eval "$as_ac_Header=\$ac_header_preproc"
16046 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16047 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16050 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16051 cat >>confdefs.h
<<_ACEOF
16052 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16054 echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
16055 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6
16056 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
16057 echo $ECHO_N "(cached) $ECHO_C" >&6
16059 cat >conftest.
$ac_ext <<_ACEOF
16062 cat confdefs.h
>>conftest.
$ac_ext
16063 cat >>conftest.
$ac_ext <<_ACEOF
16064 /* end confdefs.h. */
16070 static struct nlist ac_aggr;
16071 if (ac_aggr.n_un.n_name)
16077 rm -f conftest.
$ac_objext
16078 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16079 (eval $ac_compile) 2>conftest.er1
16081 grep -v '^ *+' conftest.er1
>conftest.err
16083 cat conftest.err
>&5
16084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16085 (exit $ac_status); } &&
16086 { ac_try
='test -z "$ac_c_werror_flag"
16087 || test ! -s conftest.err'
16088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16089 (eval $ac_try) 2>&5
16091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16092 (exit $ac_status); }; } &&
16093 { ac_try
='test -s conftest.$ac_objext'
16094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16095 (eval $ac_try) 2>&5
16097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16098 (exit $ac_status); }; }; then
16099 ac_cv_member_struct_nlist_n_un_n_name
=yes
16101 echo "$as_me: failed program was:" >&5
16102 sed 's/^/| /' conftest.
$ac_ext >&5
16104 cat >conftest.
$ac_ext <<_ACEOF
16107 cat confdefs.h
>>conftest.
$ac_ext
16108 cat >>conftest.
$ac_ext <<_ACEOF
16109 /* end confdefs.h. */
16115 static struct nlist ac_aggr;
16116 if (sizeof ac_aggr.n_un.n_name)
16122 rm -f conftest.
$ac_objext
16123 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16124 (eval $ac_compile) 2>conftest.er1
16126 grep -v '^ *+' conftest.er1
>conftest.err
16128 cat conftest.err
>&5
16129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16130 (exit $ac_status); } &&
16131 { ac_try
='test -z "$ac_c_werror_flag"
16132 || test ! -s conftest.err'
16133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16134 (eval $ac_try) 2>&5
16136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16137 (exit $ac_status); }; } &&
16138 { ac_try
='test -s conftest.$ac_objext'
16139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16140 (eval $ac_try) 2>&5
16142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16143 (exit $ac_status); }; }; then
16144 ac_cv_member_struct_nlist_n_un_n_name
=yes
16146 echo "$as_me: failed program was:" >&5
16147 sed 's/^/| /' conftest.
$ac_ext >&5
16149 ac_cv_member_struct_nlist_n_un_n_name
=no
16151 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16153 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16155 echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
16156 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6
16157 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
16159 cat >>confdefs.h
<<_ACEOF
16160 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
16164 cat >>confdefs.h
<<\_ACEOF
16165 #define NLIST_NAME_UNION 1
16179 # Some definitions of getloadavg require that the program be installed setgid.
16180 echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
16181 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6
16182 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
16183 echo $ECHO_N "(cached) $ECHO_C" >&6
16185 cat >conftest.
$ac_ext <<_ACEOF
16188 cat confdefs.h
>>conftest.
$ac_ext
16189 cat >>conftest.
$ac_ext <<_ACEOF
16190 /* end confdefs.h. */
16191 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
16192 #ifdef LDAV_PRIVILEGED
16193 Yowza Am I SETGID yet
16196 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16197 $EGREP "Yowza Am I SETGID yet" >/dev
/null
2>&1; then
16198 ac_cv_func_getloadavg_setgid
=yes
16200 ac_cv_func_getloadavg_setgid
=no
16205 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
16206 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6
16207 if test $ac_cv_func_getloadavg_setgid = yes; then
16210 cat >>confdefs.h
<<\_ACEOF
16211 #define GETLOADAVG_PRIVILEGED 1
16218 if test $ac_cv_func_getloadavg_setgid = yes; then
16219 echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
16220 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6
16221 if test "${ac_cv_group_kmem+set}" = set; then
16222 echo $ECHO_N "(cached) $ECHO_C" >&6
16224 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
16225 ac_ls_output
=`ls -lgL /dev/kmem 2>/dev/null`
16226 # If we got an error (system does not support symlinks), try without -L.
16227 test -z "$ac_ls_output" && ac_ls_output
=`ls -lg /dev/kmem`
16228 ac_cv_group_kmem
=`echo $ac_ls_output \
16229 | sed -ne 's/[ ][ ]*/ /g;
16230 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
16234 echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
16235 echo "${ECHO_T}$ac_cv_group_kmem" >&6
16236 KMEM_GROUP
=$ac_cv_group_kmem
16238 if test "x$ac_save_LIBS" = x
; then
16239 GETLOADAVG_LIBS
=$LIBS
16241 GETLOADAVG_LIBS
=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
16247 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
16248 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
16249 if test "${ac_cv_sys_largefile_source+set}" = set; then
16250 echo $ECHO_N "(cached) $ECHO_C" >&6
16253 ac_cv_sys_largefile_source
=no
16254 cat >conftest.
$ac_ext <<_ACEOF
16257 cat confdefs.h
>>conftest.
$ac_ext
16258 cat >>conftest.
$ac_ext <<_ACEOF
16259 /* end confdefs.h. */
16269 rm -f conftest.
$ac_objext
16270 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16271 (eval $ac_compile) 2>conftest.er1
16273 grep -v '^ *+' conftest.er1
>conftest.err
16275 cat conftest.err
>&5
16276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16277 (exit $ac_status); } &&
16278 { ac_try
='test -z "$ac_c_werror_flag"
16279 || test ! -s conftest.err'
16280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16281 (eval $ac_try) 2>&5
16283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16284 (exit $ac_status); }; } &&
16285 { ac_try
='test -s conftest.$ac_objext'
16286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16287 (eval $ac_try) 2>&5
16289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16290 (exit $ac_status); }; }; then
16293 echo "$as_me: failed program was:" >&5
16294 sed 's/^/| /' conftest.
$ac_ext >&5
16297 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16298 cat >conftest.
$ac_ext <<_ACEOF
16301 cat confdefs.h
>>conftest.
$ac_ext
16302 cat >>conftest.
$ac_ext <<_ACEOF
16303 /* end confdefs.h. */
16304 #define _LARGEFILE_SOURCE 1
16314 rm -f conftest.
$ac_objext
16315 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16316 (eval $ac_compile) 2>conftest.er1
16318 grep -v '^ *+' conftest.er1
>conftest.err
16320 cat conftest.err
>&5
16321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16322 (exit $ac_status); } &&
16323 { ac_try
='test -z "$ac_c_werror_flag"
16324 || test ! -s conftest.err'
16325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16326 (eval $ac_try) 2>&5
16328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16329 (exit $ac_status); }; } &&
16330 { ac_try
='test -s conftest.$ac_objext'
16331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16332 (eval $ac_try) 2>&5
16334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16335 (exit $ac_status); }; }; then
16336 ac_cv_sys_largefile_source
=1; break
16338 echo "$as_me: failed program was:" >&5
16339 sed 's/^/| /' conftest.
$ac_ext >&5
16342 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16346 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
16347 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
16348 if test "$ac_cv_sys_largefile_source" != no
; then
16350 cat >>confdefs.h
<<_ACEOF
16351 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
16357 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
16358 # in glibc 2.1.3, but that breaks too many other things.
16359 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
16360 echo "$as_me:$LINENO: checking for fseeko" >&5
16361 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
16362 if test "${ac_cv_func_fseeko+set}" = set; then
16363 echo $ECHO_N "(cached) $ECHO_C" >&6
16365 cat >conftest.
$ac_ext <<_ACEOF
16368 cat confdefs.h
>>conftest.
$ac_ext
16369 cat >>conftest.
$ac_ext <<_ACEOF
16370 /* end confdefs.h. */
16375 return fseeko && fseeko (stdin, 0, 0);
16380 rm -f conftest.
$ac_objext conftest
$ac_exeext
16381 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16382 (eval $ac_link) 2>conftest.er1
16384 grep -v '^ *+' conftest.er1
>conftest.err
16386 cat conftest.err
>&5
16387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16388 (exit $ac_status); } &&
16389 { ac_try
='test -z "$ac_c_werror_flag"
16390 || test ! -s conftest.err'
16391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16392 (eval $ac_try) 2>&5
16394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16395 (exit $ac_status); }; } &&
16396 { ac_try
='test -s conftest$ac_exeext'
16397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16398 (eval $ac_try) 2>&5
16400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16401 (exit $ac_status); }; }; then
16402 ac_cv_func_fseeko
=yes
16404 echo "$as_me: failed program was:" >&5
16405 sed 's/^/| /' conftest.
$ac_ext >&5
16407 ac_cv_func_fseeko
=no
16409 rm -f conftest.err conftest.
$ac_objext \
16410 conftest
$ac_exeext conftest.
$ac_ext
16412 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
16413 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
16414 if test $ac_cv_func_fseeko = yes; then
16416 cat >>confdefs.h
<<\_ACEOF
16417 #define HAVE_FSEEKO 1
16423 echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
16424 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6
16425 if test "${ac_cv_func_getpgrp_void+set}" = set; then
16426 echo $ECHO_N "(cached) $ECHO_C" >&6
16428 # Use it with a single arg.
16429 cat >conftest.
$ac_ext <<_ACEOF
16432 cat confdefs.h
>>conftest.
$ac_ext
16433 cat >>conftest.
$ac_ext <<_ACEOF
16434 /* end confdefs.h. */
16435 $ac_includes_default
16444 rm -f conftest.
$ac_objext
16445 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16446 (eval $ac_compile) 2>conftest.er1
16448 grep -v '^ *+' conftest.er1
>conftest.err
16450 cat conftest.err
>&5
16451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16452 (exit $ac_status); } &&
16453 { ac_try
='test -z "$ac_c_werror_flag"
16454 || test ! -s conftest.err'
16455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16456 (eval $ac_try) 2>&5
16458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16459 (exit $ac_status); }; } &&
16460 { ac_try
='test -s conftest.$ac_objext'
16461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16462 (eval $ac_try) 2>&5
16464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16465 (exit $ac_status); }; }; then
16466 ac_cv_func_getpgrp_void
=no
16468 echo "$as_me: failed program was:" >&5
16469 sed 's/^/| /' conftest.
$ac_ext >&5
16471 ac_cv_func_getpgrp_void
=yes
16473 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16476 echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
16477 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6
16478 if test $ac_cv_func_getpgrp_void = yes; then
16480 cat >>confdefs.h
<<\_ACEOF
16481 #define GETPGRP_VOID 1
16488 for ac_func
in strftime
16490 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16491 echo "$as_me:$LINENO: checking for $ac_func" >&5
16492 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16493 if eval "test \"\${$as_ac_var+set}\" = set"; then
16494 echo $ECHO_N "(cached) $ECHO_C" >&6
16496 cat >conftest.
$ac_ext <<_ACEOF
16499 cat confdefs.h
>>conftest.
$ac_ext
16500 cat >>conftest.
$ac_ext <<_ACEOF
16501 /* end confdefs.h. */
16502 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16503 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16504 #define $ac_func innocuous_$ac_func
16506 /* System header to define __stub macros and hopefully few prototypes,
16507 which can conflict with char $ac_func (); below.
16508 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16509 <limits.h> exists even on freestanding compilers. */
16512 # include <limits.h>
16514 # include <assert.h>
16519 /* Override any gcc2 internal prototype to avoid an error. */
16524 /* We use char because int might match the return type of a gcc2
16525 builtin and then its argument prototype would still apply. */
16527 /* The GNU C library defines this for functions which it implements
16528 to always fail with ENOSYS. Some functions are actually named
16529 something starting with __ and the normal name is an alias. */
16530 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16533 char (*f) () = $ac_func;
16542 return f != $ac_func;
16547 rm -f conftest.
$ac_objext conftest
$ac_exeext
16548 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16549 (eval $ac_link) 2>conftest.er1
16551 grep -v '^ *+' conftest.er1
>conftest.err
16553 cat conftest.err
>&5
16554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16555 (exit $ac_status); } &&
16556 { ac_try
='test -z "$ac_c_werror_flag"
16557 || test ! -s conftest.err'
16558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16559 (eval $ac_try) 2>&5
16561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16562 (exit $ac_status); }; } &&
16563 { ac_try
='test -s conftest$ac_exeext'
16564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16565 (eval $ac_try) 2>&5
16567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16568 (exit $ac_status); }; }; then
16569 eval "$as_ac_var=yes"
16571 echo "$as_me: failed program was:" >&5
16572 sed 's/^/| /' conftest.
$ac_ext >&5
16574 eval "$as_ac_var=no"
16576 rm -f conftest.err conftest.
$ac_objext \
16577 conftest
$ac_exeext conftest.
$ac_ext
16579 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16580 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16581 if test `eval echo '${'$as_ac_var'}'` = yes; then
16582 cat >>confdefs.h
<<_ACEOF
16583 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16587 # strftime is in -lintl on SCO UNIX.
16588 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
16589 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
16590 if test "${ac_cv_lib_intl_strftime+set}" = set; then
16591 echo $ECHO_N "(cached) $ECHO_C" >&6
16593 ac_check_lib_save_LIBS
=$LIBS
16594 LIBS
="-lintl $LIBS"
16595 cat >conftest.
$ac_ext <<_ACEOF
16598 cat confdefs.h
>>conftest.
$ac_ext
16599 cat >>conftest.
$ac_ext <<_ACEOF
16600 /* end confdefs.h. */
16602 /* Override any gcc2 internal prototype to avoid an error. */
16606 /* We use char because int might match the return type of a gcc2
16607 builtin and then its argument prototype would still apply. */
16617 rm -f conftest.
$ac_objext conftest
$ac_exeext
16618 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16619 (eval $ac_link) 2>conftest.er1
16621 grep -v '^ *+' conftest.er1
>conftest.err
16623 cat conftest.err
>&5
16624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16625 (exit $ac_status); } &&
16626 { ac_try
='test -z "$ac_c_werror_flag"
16627 || test ! -s conftest.err'
16628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16629 (eval $ac_try) 2>&5
16631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16632 (exit $ac_status); }; } &&
16633 { ac_try
='test -s conftest$ac_exeext'
16634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16635 (eval $ac_try) 2>&5
16637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16638 (exit $ac_status); }; }; then
16639 ac_cv_lib_intl_strftime
=yes
16641 echo "$as_me: failed program was:" >&5
16642 sed 's/^/| /' conftest.
$ac_ext >&5
16644 ac_cv_lib_intl_strftime
=no
16646 rm -f conftest.err conftest.
$ac_objext \
16647 conftest
$ac_exeext conftest.
$ac_ext
16648 LIBS
=$ac_check_lib_save_LIBS
16650 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
16651 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
16652 if test $ac_cv_lib_intl_strftime = yes; then
16653 cat >>confdefs.h
<<\_ACEOF
16654 #define HAVE_STRFTIME 1
16657 LIBS
="-lintl $LIBS"
16666 for ac_func
in grantpt
16668 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16669 echo "$as_me:$LINENO: checking for $ac_func" >&5
16670 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16671 if eval "test \"\${$as_ac_var+set}\" = set"; then
16672 echo $ECHO_N "(cached) $ECHO_C" >&6
16674 cat >conftest.
$ac_ext <<_ACEOF
16677 cat confdefs.h
>>conftest.
$ac_ext
16678 cat >>conftest.
$ac_ext <<_ACEOF
16679 /* end confdefs.h. */
16680 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16681 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16682 #define $ac_func innocuous_$ac_func
16684 /* System header to define __stub macros and hopefully few prototypes,
16685 which can conflict with char $ac_func (); below.
16686 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16687 <limits.h> exists even on freestanding compilers. */
16690 # include <limits.h>
16692 # include <assert.h>
16697 /* Override any gcc2 internal prototype to avoid an error. */
16702 /* We use char because int might match the return type of a gcc2
16703 builtin and then its argument prototype would still apply. */
16705 /* The GNU C library defines this for functions which it implements
16706 to always fail with ENOSYS. Some functions are actually named
16707 something starting with __ and the normal name is an alias. */
16708 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16711 char (*f) () = $ac_func;
16720 return f != $ac_func;
16725 rm -f conftest.
$ac_objext conftest
$ac_exeext
16726 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16727 (eval $ac_link) 2>conftest.er1
16729 grep -v '^ *+' conftest.er1
>conftest.err
16731 cat conftest.err
>&5
16732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16733 (exit $ac_status); } &&
16734 { ac_try
='test -z "$ac_c_werror_flag"
16735 || test ! -s conftest.err'
16736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16737 (eval $ac_try) 2>&5
16739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16740 (exit $ac_status); }; } &&
16741 { ac_try
='test -s conftest$ac_exeext'
16742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16743 (eval $ac_try) 2>&5
16745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16746 (exit $ac_status); }; }; then
16747 eval "$as_ac_var=yes"
16749 echo "$as_me: failed program was:" >&5
16750 sed 's/^/| /' conftest.
$ac_ext >&5
16752 eval "$as_ac_var=no"
16754 rm -f conftest.err conftest.
$ac_objext \
16755 conftest
$ac_exeext conftest.
$ac_ext
16757 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16758 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16759 if test `eval echo '${'$as_ac_var'}'` = yes; then
16760 cat >>confdefs.h
<<_ACEOF
16761 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16768 # PTY-related GNU extensions.
16770 for ac_func
in getpt
16772 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16773 echo "$as_me:$LINENO: checking for $ac_func" >&5
16774 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16775 if eval "test \"\${$as_ac_var+set}\" = set"; then
16776 echo $ECHO_N "(cached) $ECHO_C" >&6
16778 cat >conftest.
$ac_ext <<_ACEOF
16781 cat confdefs.h
>>conftest.
$ac_ext
16782 cat >>conftest.
$ac_ext <<_ACEOF
16783 /* end confdefs.h. */
16784 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16785 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16786 #define $ac_func innocuous_$ac_func
16788 /* System header to define __stub macros and hopefully few prototypes,
16789 which can conflict with char $ac_func (); below.
16790 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16791 <limits.h> exists even on freestanding compilers. */
16794 # include <limits.h>
16796 # include <assert.h>
16801 /* Override any gcc2 internal prototype to avoid an error. */
16806 /* We use char because int might match the return type of a gcc2
16807 builtin and then its argument prototype would still apply. */
16809 /* The GNU C library defines this for functions which it implements
16810 to always fail with ENOSYS. Some functions are actually named
16811 something starting with __ and the normal name is an alias. */
16812 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16815 char (*f) () = $ac_func;
16824 return f != $ac_func;
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 eval "$as_ac_var=yes"
16853 echo "$as_me: failed program was:" >&5
16854 sed 's/^/| /' conftest.
$ac_ext >&5
16856 eval "$as_ac_var=no"
16858 rm -f conftest.err conftest.
$ac_objext \
16859 conftest
$ac_exeext conftest.
$ac_ext
16861 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16862 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16863 if test `eval echo '${'$as_ac_var'}'` = yes; then
16864 cat >>confdefs.h
<<_ACEOF
16865 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16872 # Check this now, so that we will NOT find the above functions in ncurses.
16873 # That is because we have not set up to link ncurses in lib-src.
16874 # It's better to believe a function is not available
16875 # than to expect to find it in ncurses.
16877 echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
16878 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6
16879 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
16880 echo $ECHO_N "(cached) $ECHO_C" >&6
16882 ac_check_lib_save_LIBS
=$LIBS
16883 LIBS
="-lncurses $LIBS"
16884 cat >conftest.
$ac_ext <<_ACEOF
16887 cat confdefs.h
>>conftest.
$ac_ext
16888 cat >>conftest.
$ac_ext <<_ACEOF
16889 /* end confdefs.h. */
16891 /* Override any gcc2 internal prototype to avoid an error. */
16895 /* We use char because int might match the return type of a gcc2
16896 builtin and then its argument prototype would still apply. */
16906 rm -f conftest.
$ac_objext conftest
$ac_exeext
16907 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16908 (eval $ac_link) 2>conftest.er1
16910 grep -v '^ *+' conftest.er1
>conftest.err
16912 cat conftest.err
>&5
16913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16914 (exit $ac_status); } &&
16915 { ac_try
='test -z "$ac_c_werror_flag"
16916 || test ! -s conftest.err'
16917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16918 (eval $ac_try) 2>&5
16920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16921 (exit $ac_status); }; } &&
16922 { ac_try
='test -s conftest$ac_exeext'
16923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16924 (eval $ac_try) 2>&5
16926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16927 (exit $ac_status); }; }; then
16928 ac_cv_lib_ncurses_tparm
=yes
16930 echo "$as_me: failed program was:" >&5
16931 sed 's/^/| /' conftest.
$ac_ext >&5
16933 ac_cv_lib_ncurses_tparm
=no
16935 rm -f conftest.err conftest.
$ac_objext \
16936 conftest
$ac_exeext conftest.
$ac_ext
16937 LIBS
=$ac_check_lib_save_LIBS
16939 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
16940 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6
16941 if test $ac_cv_lib_ncurses_tparm = yes; then
16942 cat >>confdefs.h
<<_ACEOF
16943 #define HAVE_LIBNCURSES 1
16946 LIBS
="-lncurses $LIBS"
16951 # Do we need the Hesiod library to provide the support routines?
16952 if test "$with_hesiod" = yes ; then
16953 # Don't set $LIBS here -- see comments above.
16955 echo "$as_me:$LINENO: checking for res_send" >&5
16956 echo $ECHO_N "checking for res_send... $ECHO_C" >&6
16957 if test "${ac_cv_func_res_send+set}" = set; then
16958 echo $ECHO_N "(cached) $ECHO_C" >&6
16960 cat >conftest.
$ac_ext <<_ACEOF
16963 cat confdefs.h
>>conftest.
$ac_ext
16964 cat >>conftest.
$ac_ext <<_ACEOF
16965 /* end confdefs.h. */
16966 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
16967 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16968 #define res_send innocuous_res_send
16970 /* System header to define __stub macros and hopefully few prototypes,
16971 which can conflict with char res_send (); below.
16972 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16973 <limits.h> exists even on freestanding compilers. */
16976 # include <limits.h>
16978 # include <assert.h>
16983 /* Override any gcc2 internal prototype to avoid an error. */
16988 /* We use char because int might match the return type of a gcc2
16989 builtin and then its argument prototype would still apply. */
16991 /* The GNU C library defines this for functions which it implements
16992 to always fail with ENOSYS. Some functions are actually named
16993 something starting with __ and the normal name is an alias. */
16994 #if defined (__stub_res_send) || defined (__stub___res_send)
16997 char (*f) () = res_send;
17006 return f != res_send;
17011 rm -f conftest.
$ac_objext conftest
$ac_exeext
17012 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17013 (eval $ac_link) 2>conftest.er1
17015 grep -v '^ *+' conftest.er1
>conftest.err
17017 cat conftest.err
>&5
17018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17019 (exit $ac_status); } &&
17020 { ac_try
='test -z "$ac_c_werror_flag"
17021 || test ! -s conftest.err'
17022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17023 (eval $ac_try) 2>&5
17025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17026 (exit $ac_status); }; } &&
17027 { ac_try
='test -s conftest$ac_exeext'
17028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17029 (eval $ac_try) 2>&5
17031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17032 (exit $ac_status); }; }; then
17033 ac_cv_func_res_send
=yes
17035 echo "$as_me: failed program was:" >&5
17036 sed 's/^/| /' conftest.
$ac_ext >&5
17038 ac_cv_func_res_send
=no
17040 rm -f conftest.err conftest.
$ac_objext \
17041 conftest
$ac_exeext conftest.
$ac_ext
17043 echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
17044 echo "${ECHO_T}$ac_cv_func_res_send" >&6
17045 if test $ac_cv_func_res_send = yes; then
17048 echo "$as_me:$LINENO: checking for __res_send" >&5
17049 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6
17050 if test "${ac_cv_func___res_send+set}" = set; then
17051 echo $ECHO_N "(cached) $ECHO_C" >&6
17053 cat >conftest.
$ac_ext <<_ACEOF
17056 cat confdefs.h
>>conftest.
$ac_ext
17057 cat >>conftest.
$ac_ext <<_ACEOF
17058 /* end confdefs.h. */
17059 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
17060 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17061 #define __res_send innocuous___res_send
17063 /* System header to define __stub macros and hopefully few prototypes,
17064 which can conflict with char __res_send (); below.
17065 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17066 <limits.h> exists even on freestanding compilers. */
17069 # include <limits.h>
17071 # include <assert.h>
17076 /* Override any gcc2 internal prototype to avoid an error. */
17081 /* We use char because int might match the return type of a gcc2
17082 builtin and then its argument prototype would still apply. */
17083 char __res_send ();
17084 /* The GNU C library defines this for functions which it implements
17085 to always fail with ENOSYS. Some functions are actually named
17086 something starting with __ and the normal name is an alias. */
17087 #if defined (__stub___res_send) || defined (__stub_____res_send)
17090 char (*f) () = __res_send;
17099 return f != __res_send;
17104 rm -f conftest.
$ac_objext conftest
$ac_exeext
17105 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17106 (eval $ac_link) 2>conftest.er1
17108 grep -v '^ *+' conftest.er1
>conftest.err
17110 cat conftest.err
>&5
17111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17112 (exit $ac_status); } &&
17113 { ac_try
='test -z "$ac_c_werror_flag"
17114 || test ! -s conftest.err'
17115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17116 (eval $ac_try) 2>&5
17118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17119 (exit $ac_status); }; } &&
17120 { ac_try
='test -s conftest$ac_exeext'
17121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17122 (eval $ac_try) 2>&5
17124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17125 (exit $ac_status); }; }; then
17126 ac_cv_func___res_send
=yes
17128 echo "$as_me: failed program was:" >&5
17129 sed 's/^/| /' conftest.
$ac_ext >&5
17131 ac_cv_func___res_send
=no
17133 rm -f conftest.err conftest.
$ac_objext \
17134 conftest
$ac_exeext conftest.
$ac_ext
17136 echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
17137 echo "${ECHO_T}$ac_cv_func___res_send" >&6
17138 if test $ac_cv_func___res_send = yes; then
17141 echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
17142 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6
17143 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
17144 echo $ECHO_N "(cached) $ECHO_C" >&6
17146 ac_check_lib_save_LIBS
=$LIBS
17147 LIBS
="-lresolv $LIBS"
17148 cat >conftest.
$ac_ext <<_ACEOF
17151 cat confdefs.h
>>conftest.
$ac_ext
17152 cat >>conftest.
$ac_ext <<_ACEOF
17153 /* end confdefs.h. */
17155 /* Override any gcc2 internal prototype to avoid an error. */
17159 /* We use char because int might match the return type of a gcc2
17160 builtin and then its argument prototype would still apply. */
17170 rm -f conftest.
$ac_objext conftest
$ac_exeext
17171 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17172 (eval $ac_link) 2>conftest.er1
17174 grep -v '^ *+' conftest.er1
>conftest.err
17176 cat conftest.err
>&5
17177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17178 (exit $ac_status); } &&
17179 { ac_try
='test -z "$ac_c_werror_flag"
17180 || test ! -s conftest.err'
17181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17182 (eval $ac_try) 2>&5
17184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17185 (exit $ac_status); }; } &&
17186 { ac_try
='test -s conftest$ac_exeext'
17187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17188 (eval $ac_try) 2>&5
17190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17191 (exit $ac_status); }; }; then
17192 ac_cv_lib_resolv_res_send
=yes
17194 echo "$as_me: failed program was:" >&5
17195 sed 's/^/| /' conftest.
$ac_ext >&5
17197 ac_cv_lib_resolv_res_send
=no
17199 rm -f conftest.err conftest.
$ac_objext \
17200 conftest
$ac_exeext conftest.
$ac_ext
17201 LIBS
=$ac_check_lib_save_LIBS
17203 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
17204 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6
17205 if test $ac_cv_lib_resolv_res_send = yes; then
17208 echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
17209 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6
17210 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
17211 echo $ECHO_N "(cached) $ECHO_C" >&6
17213 ac_check_lib_save_LIBS
=$LIBS
17214 LIBS
="-lresolv $LIBS"
17215 cat >conftest.
$ac_ext <<_ACEOF
17218 cat confdefs.h
>>conftest.
$ac_ext
17219 cat >>conftest.
$ac_ext <<_ACEOF
17220 /* end confdefs.h. */
17222 /* Override any gcc2 internal prototype to avoid an error. */
17226 /* We use char because int might match the return type of a gcc2
17227 builtin and then its argument prototype would still apply. */
17228 char __res_send ();
17237 rm -f conftest.
$ac_objext conftest
$ac_exeext
17238 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17239 (eval $ac_link) 2>conftest.er1
17241 grep -v '^ *+' conftest.er1
>conftest.err
17243 cat conftest.err
>&5
17244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17245 (exit $ac_status); } &&
17246 { ac_try
='test -z "$ac_c_werror_flag"
17247 || test ! -s conftest.err'
17248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17249 (eval $ac_try) 2>&5
17251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17252 (exit $ac_status); }; } &&
17253 { ac_try
='test -s conftest$ac_exeext'
17254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17255 (eval $ac_try) 2>&5
17257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17258 (exit $ac_status); }; }; then
17259 ac_cv_lib_resolv___res_send
=yes
17261 echo "$as_me: failed program was:" >&5
17262 sed 's/^/| /' conftest.
$ac_ext >&5
17264 ac_cv_lib_resolv___res_send
=no
17266 rm -f conftest.err conftest.
$ac_objext \
17267 conftest
$ac_exeext conftest.
$ac_ext
17268 LIBS
=$ac_check_lib_save_LIBS
17270 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
17271 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6
17272 if test $ac_cv_lib_resolv___res_send = yes; then
17282 if test "$resolv" = yes ; then
17285 cat >>confdefs.h
<<\_ACEOF
17286 #define HAVE_LIBRESOLV 1
17292 echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
17293 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6
17294 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
17295 echo $ECHO_N "(cached) $ECHO_C" >&6
17297 cat >conftest.
$ac_ext <<_ACEOF
17300 cat confdefs.h
>>conftest.
$ac_ext
17301 cat >>conftest.
$ac_ext <<_ACEOF
17302 /* end confdefs.h. */
17303 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
17304 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17305 #define hes_getmailhost innocuous_hes_getmailhost
17307 /* System header to define __stub macros and hopefully few prototypes,
17308 which can conflict with char hes_getmailhost (); below.
17309 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17310 <limits.h> exists even on freestanding compilers. */
17313 # include <limits.h>
17315 # include <assert.h>
17318 #undef hes_getmailhost
17320 /* Override any gcc2 internal prototype to avoid an error. */
17325 /* We use char because int might match the return type of a gcc2
17326 builtin and then its argument prototype would still apply. */
17327 char hes_getmailhost ();
17328 /* The GNU C library defines this for functions which it implements
17329 to always fail with ENOSYS. Some functions are actually named
17330 something starting with __ and the normal name is an alias. */
17331 #if defined (__stub_hes_getmailhost) || defined (__stub___hes_getmailhost)
17334 char (*f) () = hes_getmailhost;
17343 return f != hes_getmailhost;
17348 rm -f conftest.
$ac_objext conftest
$ac_exeext
17349 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17350 (eval $ac_link) 2>conftest.er1
17352 grep -v '^ *+' conftest.er1
>conftest.err
17354 cat conftest.err
>&5
17355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17356 (exit $ac_status); } &&
17357 { ac_try
='test -z "$ac_c_werror_flag"
17358 || test ! -s conftest.err'
17359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17360 (eval $ac_try) 2>&5
17362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17363 (exit $ac_status); }; } &&
17364 { ac_try
='test -s conftest$ac_exeext'
17365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17366 (eval $ac_try) 2>&5
17368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17369 (exit $ac_status); }; }; then
17370 ac_cv_func_hes_getmailhost
=yes
17372 echo "$as_me: failed program was:" >&5
17373 sed 's/^/| /' conftest.
$ac_ext >&5
17375 ac_cv_func_hes_getmailhost
=no
17377 rm -f conftest.err conftest.
$ac_objext \
17378 conftest
$ac_exeext conftest.
$ac_ext
17380 echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
17381 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6
17382 if test $ac_cv_func_hes_getmailhost = yes; then
17385 echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
17386 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6
17387 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
17388 echo $ECHO_N "(cached) $ECHO_C" >&6
17390 ac_check_lib_save_LIBS
=$LIBS
17391 LIBS
="-lhesiod $RESOLVLIB $LIBS"
17392 cat >conftest.
$ac_ext <<_ACEOF
17395 cat confdefs.h
>>conftest.
$ac_ext
17396 cat >>conftest.
$ac_ext <<_ACEOF
17397 /* end confdefs.h. */
17399 /* Override any gcc2 internal prototype to avoid an error. */
17403 /* We use char because int might match the return type of a gcc2
17404 builtin and then its argument prototype would still apply. */
17405 char hes_getmailhost ();
17409 hes_getmailhost ();
17414 rm -f conftest.
$ac_objext conftest
$ac_exeext
17415 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17416 (eval $ac_link) 2>conftest.er1
17418 grep -v '^ *+' conftest.er1
>conftest.err
17420 cat conftest.err
>&5
17421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17422 (exit $ac_status); } &&
17423 { ac_try
='test -z "$ac_c_werror_flag"
17424 || test ! -s conftest.err'
17425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17426 (eval $ac_try) 2>&5
17428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17429 (exit $ac_status); }; } &&
17430 { ac_try
='test -s conftest$ac_exeext'
17431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17432 (eval $ac_try) 2>&5
17434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17435 (exit $ac_status); }; }; then
17436 ac_cv_lib_hesiod_hes_getmailhost
=yes
17438 echo "$as_me: failed program was:" >&5
17439 sed 's/^/| /' conftest.
$ac_ext >&5
17441 ac_cv_lib_hesiod_hes_getmailhost
=no
17443 rm -f conftest.err conftest.
$ac_objext \
17444 conftest
$ac_exeext conftest.
$ac_ext
17445 LIBS
=$ac_check_lib_save_LIBS
17447 echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
17448 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6
17449 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
17451 cat >>confdefs.h
<<\_ACEOF
17452 #define HAVE_LIBHESIOD 1
17463 # These tell us which Kerberos-related libraries to use.
17464 if test "${with_kerberos+set}" = set; then
17466 echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
17467 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6
17468 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
17469 echo $ECHO_N "(cached) $ECHO_C" >&6
17471 ac_check_lib_save_LIBS
=$LIBS
17472 LIBS
="-lcom_err $LIBS"
17473 cat >conftest.
$ac_ext <<_ACEOF
17476 cat confdefs.h
>>conftest.
$ac_ext
17477 cat >>conftest.
$ac_ext <<_ACEOF
17478 /* end confdefs.h. */
17480 /* Override any gcc2 internal prototype to avoid an error. */
17484 /* We use char because int might match the return type of a gcc2
17485 builtin and then its argument prototype would still apply. */
17495 rm -f conftest.
$ac_objext conftest
$ac_exeext
17496 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17497 (eval $ac_link) 2>conftest.er1
17499 grep -v '^ *+' conftest.er1
>conftest.err
17501 cat conftest.err
>&5
17502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17503 (exit $ac_status); } &&
17504 { ac_try
='test -z "$ac_c_werror_flag"
17505 || test ! -s conftest.err'
17506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17507 (eval $ac_try) 2>&5
17509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17510 (exit $ac_status); }; } &&
17511 { ac_try
='test -s conftest$ac_exeext'
17512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17513 (eval $ac_try) 2>&5
17515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17516 (exit $ac_status); }; }; then
17517 ac_cv_lib_com_err_com_err
=yes
17519 echo "$as_me: failed program was:" >&5
17520 sed 's/^/| /' conftest.
$ac_ext >&5
17522 ac_cv_lib_com_err_com_err
=no
17524 rm -f conftest.err conftest.
$ac_objext \
17525 conftest
$ac_exeext conftest.
$ac_ext
17526 LIBS
=$ac_check_lib_save_LIBS
17528 echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
17529 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6
17530 if test $ac_cv_lib_com_err_com_err = yes; then
17531 cat >>confdefs.h
<<_ACEOF
17532 #define HAVE_LIBCOM_ERR 1
17535 LIBS
="-lcom_err $LIBS"
17540 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
17541 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6
17542 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
17543 echo $ECHO_N "(cached) $ECHO_C" >&6
17545 ac_check_lib_save_LIBS
=$LIBS
17546 LIBS
="-lk5crypto $LIBS"
17547 cat >conftest.
$ac_ext <<_ACEOF
17550 cat confdefs.h
>>conftest.
$ac_ext
17551 cat >>conftest.
$ac_ext <<_ACEOF
17552 /* end confdefs.h. */
17554 /* Override any gcc2 internal prototype to avoid an error. */
17558 /* We use char because int might match the return type of a gcc2
17559 builtin and then its argument prototype would still apply. */
17560 char mit_des_cbc_encrypt ();
17564 mit_des_cbc_encrypt ();
17569 rm -f conftest.
$ac_objext conftest
$ac_exeext
17570 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17571 (eval $ac_link) 2>conftest.er1
17573 grep -v '^ *+' conftest.er1
>conftest.err
17575 cat conftest.err
>&5
17576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17577 (exit $ac_status); } &&
17578 { ac_try
='test -z "$ac_c_werror_flag"
17579 || test ! -s conftest.err'
17580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17581 (eval $ac_try) 2>&5
17583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17584 (exit $ac_status); }; } &&
17585 { ac_try
='test -s conftest$ac_exeext'
17586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17587 (eval $ac_try) 2>&5
17589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17590 (exit $ac_status); }; }; then
17591 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=yes
17593 echo "$as_me: failed program was:" >&5
17594 sed 's/^/| /' conftest.
$ac_ext >&5
17596 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=no
17598 rm -f conftest.err conftest.
$ac_objext \
17599 conftest
$ac_exeext conftest.
$ac_ext
17600 LIBS
=$ac_check_lib_save_LIBS
17602 echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
17603 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6
17604 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
17605 cat >>confdefs.h
<<_ACEOF
17606 #define HAVE_LIBK5CRYPTO 1
17609 LIBS
="-lk5crypto $LIBS"
17614 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
17615 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6
17616 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
17617 echo $ECHO_N "(cached) $ECHO_C" >&6
17619 ac_check_lib_save_LIBS
=$LIBS
17620 LIBS
="-lcrypto $LIBS"
17621 cat >conftest.
$ac_ext <<_ACEOF
17624 cat confdefs.h
>>conftest.
$ac_ext
17625 cat >>conftest.
$ac_ext <<_ACEOF
17626 /* end confdefs.h. */
17628 /* Override any gcc2 internal prototype to avoid an error. */
17632 /* We use char because int might match the return type of a gcc2
17633 builtin and then its argument prototype would still apply. */
17634 char mit_des_cbc_encrypt ();
17638 mit_des_cbc_encrypt ();
17643 rm -f conftest.
$ac_objext conftest
$ac_exeext
17644 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17645 (eval $ac_link) 2>conftest.er1
17647 grep -v '^ *+' conftest.er1
>conftest.err
17649 cat conftest.err
>&5
17650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17651 (exit $ac_status); } &&
17652 { ac_try
='test -z "$ac_c_werror_flag"
17653 || test ! -s conftest.err'
17654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17655 (eval $ac_try) 2>&5
17657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17658 (exit $ac_status); }; } &&
17659 { ac_try
='test -s conftest$ac_exeext'
17660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17661 (eval $ac_try) 2>&5
17663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17664 (exit $ac_status); }; }; then
17665 ac_cv_lib_crypto_mit_des_cbc_encrypt
=yes
17667 echo "$as_me: failed program was:" >&5
17668 sed 's/^/| /' conftest.
$ac_ext >&5
17670 ac_cv_lib_crypto_mit_des_cbc_encrypt
=no
17672 rm -f conftest.err conftest.
$ac_objext \
17673 conftest
$ac_exeext conftest.
$ac_ext
17674 LIBS
=$ac_check_lib_save_LIBS
17676 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
17677 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6
17678 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
17679 cat >>confdefs.h
<<_ACEOF
17680 #define HAVE_LIBCRYPTO 1
17683 LIBS
="-lcrypto $LIBS"
17688 echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
17689 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6
17690 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
17691 echo $ECHO_N "(cached) $ECHO_C" >&6
17693 ac_check_lib_save_LIBS
=$LIBS
17694 LIBS
="-lkrb5 $LIBS"
17695 cat >conftest.
$ac_ext <<_ACEOF
17698 cat confdefs.h
>>conftest.
$ac_ext
17699 cat >>conftest.
$ac_ext <<_ACEOF
17700 /* end confdefs.h. */
17702 /* Override any gcc2 internal prototype to avoid an error. */
17706 /* We use char because int might match the return type of a gcc2
17707 builtin and then its argument prototype would still apply. */
17708 char krb5_init_context ();
17712 krb5_init_context ();
17717 rm -f conftest.
$ac_objext conftest
$ac_exeext
17718 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17719 (eval $ac_link) 2>conftest.er1
17721 grep -v '^ *+' conftest.er1
>conftest.err
17723 cat conftest.err
>&5
17724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17725 (exit $ac_status); } &&
17726 { ac_try
='test -z "$ac_c_werror_flag"
17727 || test ! -s conftest.err'
17728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17729 (eval $ac_try) 2>&5
17731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17732 (exit $ac_status); }; } &&
17733 { ac_try
='test -s conftest$ac_exeext'
17734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17735 (eval $ac_try) 2>&5
17737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17738 (exit $ac_status); }; }; then
17739 ac_cv_lib_krb5_krb5_init_context
=yes
17741 echo "$as_me: failed program was:" >&5
17742 sed 's/^/| /' conftest.
$ac_ext >&5
17744 ac_cv_lib_krb5_krb5_init_context
=no
17746 rm -f conftest.err conftest.
$ac_objext \
17747 conftest
$ac_exeext conftest.
$ac_ext
17748 LIBS
=$ac_check_lib_save_LIBS
17750 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
17751 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6
17752 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
17753 cat >>confdefs.h
<<_ACEOF
17754 #define HAVE_LIBKRB5 1
17757 LIBS
="-lkrb5 $LIBS"
17761 if test "${with_kerberos5+set}" != set; then
17763 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
17764 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6
17765 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
17766 echo $ECHO_N "(cached) $ECHO_C" >&6
17768 ac_check_lib_save_LIBS
=$LIBS
17769 LIBS
="-ldes425 $LIBS"
17770 cat >conftest.
$ac_ext <<_ACEOF
17773 cat confdefs.h
>>conftest.
$ac_ext
17774 cat >>conftest.
$ac_ext <<_ACEOF
17775 /* end confdefs.h. */
17777 /* Override any gcc2 internal prototype to avoid an error. */
17781 /* We use char because int might match the return type of a gcc2
17782 builtin and then its argument prototype would still apply. */
17783 char des_cbc_encrypt ();
17787 des_cbc_encrypt ();
17792 rm -f conftest.
$ac_objext conftest
$ac_exeext
17793 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17794 (eval $ac_link) 2>conftest.er1
17796 grep -v '^ *+' conftest.er1
>conftest.err
17798 cat conftest.err
>&5
17799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17800 (exit $ac_status); } &&
17801 { ac_try
='test -z "$ac_c_werror_flag"
17802 || test ! -s conftest.err'
17803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17804 (eval $ac_try) 2>&5
17806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17807 (exit $ac_status); }; } &&
17808 { ac_try
='test -s conftest$ac_exeext'
17809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17810 (eval $ac_try) 2>&5
17812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17813 (exit $ac_status); }; }; then
17814 ac_cv_lib_des425_des_cbc_encrypt
=yes
17816 echo "$as_me: failed program was:" >&5
17817 sed 's/^/| /' conftest.
$ac_ext >&5
17819 ac_cv_lib_des425_des_cbc_encrypt
=no
17821 rm -f conftest.err conftest.
$ac_objext \
17822 conftest
$ac_exeext conftest.
$ac_ext
17823 LIBS
=$ac_check_lib_save_LIBS
17825 echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
17826 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6
17827 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
17828 cat >>confdefs.h
<<_ACEOF
17829 #define HAVE_LIBDES425 1
17832 LIBS
="-ldes425 $LIBS"
17836 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
17837 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6
17838 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
17839 echo $ECHO_N "(cached) $ECHO_C" >&6
17841 ac_check_lib_save_LIBS
=$LIBS
17843 cat >conftest.
$ac_ext <<_ACEOF
17846 cat confdefs.h
>>conftest.
$ac_ext
17847 cat >>conftest.
$ac_ext <<_ACEOF
17848 /* end confdefs.h. */
17850 /* Override any gcc2 internal prototype to avoid an error. */
17854 /* We use char because int might match the return type of a gcc2
17855 builtin and then its argument prototype would still apply. */
17856 char des_cbc_encrypt ();
17860 des_cbc_encrypt ();
17865 rm -f conftest.
$ac_objext conftest
$ac_exeext
17866 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17867 (eval $ac_link) 2>conftest.er1
17869 grep -v '^ *+' conftest.er1
>conftest.err
17871 cat conftest.err
>&5
17872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17873 (exit $ac_status); } &&
17874 { ac_try
='test -z "$ac_c_werror_flag"
17875 || test ! -s conftest.err'
17876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17877 (eval $ac_try) 2>&5
17879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17880 (exit $ac_status); }; } &&
17881 { ac_try
='test -s conftest$ac_exeext'
17882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17883 (eval $ac_try) 2>&5
17885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17886 (exit $ac_status); }; }; then
17887 ac_cv_lib_des_des_cbc_encrypt
=yes
17889 echo "$as_me: failed program was:" >&5
17890 sed 's/^/| /' conftest.
$ac_ext >&5
17892 ac_cv_lib_des_des_cbc_encrypt
=no
17894 rm -f conftest.err conftest.
$ac_objext \
17895 conftest
$ac_exeext conftest.
$ac_ext
17896 LIBS
=$ac_check_lib_save_LIBS
17898 echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
17899 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6
17900 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
17901 cat >>confdefs.h
<<_ACEOF
17902 #define HAVE_LIBDES 1
17912 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
17913 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6
17914 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
17915 echo $ECHO_N "(cached) $ECHO_C" >&6
17917 ac_check_lib_save_LIBS
=$LIBS
17918 LIBS
="-lkrb4 $LIBS"
17919 cat >conftest.
$ac_ext <<_ACEOF
17922 cat confdefs.h
>>conftest.
$ac_ext
17923 cat >>conftest.
$ac_ext <<_ACEOF
17924 /* end confdefs.h. */
17926 /* Override any gcc2 internal prototype to avoid an error. */
17930 /* We use char because int might match the return type of a gcc2
17931 builtin and then its argument prototype would still apply. */
17932 char krb_get_cred ();
17941 rm -f conftest.
$ac_objext conftest
$ac_exeext
17942 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17943 (eval $ac_link) 2>conftest.er1
17945 grep -v '^ *+' conftest.er1
>conftest.err
17947 cat conftest.err
>&5
17948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17949 (exit $ac_status); } &&
17950 { ac_try
='test -z "$ac_c_werror_flag"
17951 || test ! -s conftest.err'
17952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17953 (eval $ac_try) 2>&5
17955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17956 (exit $ac_status); }; } &&
17957 { ac_try
='test -s conftest$ac_exeext'
17958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17959 (eval $ac_try) 2>&5
17961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17962 (exit $ac_status); }; }; then
17963 ac_cv_lib_krb4_krb_get_cred
=yes
17965 echo "$as_me: failed program was:" >&5
17966 sed 's/^/| /' conftest.
$ac_ext >&5
17968 ac_cv_lib_krb4_krb_get_cred
=no
17970 rm -f conftest.err conftest.
$ac_objext \
17971 conftest
$ac_exeext conftest.
$ac_ext
17972 LIBS
=$ac_check_lib_save_LIBS
17974 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
17975 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6
17976 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
17977 cat >>confdefs.h
<<_ACEOF
17978 #define HAVE_LIBKRB4 1
17981 LIBS
="-lkrb4 $LIBS"
17985 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
17986 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6
17987 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
17988 echo $ECHO_N "(cached) $ECHO_C" >&6
17990 ac_check_lib_save_LIBS
=$LIBS
17992 cat >conftest.
$ac_ext <<_ACEOF
17995 cat confdefs.h
>>conftest.
$ac_ext
17996 cat >>conftest.
$ac_ext <<_ACEOF
17997 /* end confdefs.h. */
17999 /* Override any gcc2 internal prototype to avoid an error. */
18003 /* We use char because int might match the return type of a gcc2
18004 builtin and then its argument prototype would still apply. */
18005 char krb_get_cred ();
18014 rm -f conftest.
$ac_objext conftest
$ac_exeext
18015 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18016 (eval $ac_link) 2>conftest.er1
18018 grep -v '^ *+' conftest.er1
>conftest.err
18020 cat conftest.err
>&5
18021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18022 (exit $ac_status); } &&
18023 { ac_try
='test -z "$ac_c_werror_flag"
18024 || test ! -s conftest.err'
18025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18026 (eval $ac_try) 2>&5
18028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18029 (exit $ac_status); }; } &&
18030 { ac_try
='test -s conftest$ac_exeext'
18031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18032 (eval $ac_try) 2>&5
18034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18035 (exit $ac_status); }; }; then
18036 ac_cv_lib_krb_krb_get_cred
=yes
18038 echo "$as_me: failed program was:" >&5
18039 sed 's/^/| /' conftest.
$ac_ext >&5
18041 ac_cv_lib_krb_krb_get_cred
=no
18043 rm -f conftest.err conftest.
$ac_objext \
18044 conftest
$ac_exeext conftest.
$ac_ext
18045 LIBS
=$ac_check_lib_save_LIBS
18047 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
18048 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6
18049 if test $ac_cv_lib_krb_krb_get_cred = yes; then
18050 cat >>confdefs.h
<<_ACEOF
18051 #define HAVE_LIBKRB 1
18062 if test "${with_kerberos5+set}" = set; then
18064 for ac_header
in krb5.h
18066 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18067 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18068 echo "$as_me:$LINENO: checking for $ac_header" >&5
18069 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18070 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18071 echo $ECHO_N "(cached) $ECHO_C" >&6
18073 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18074 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18076 # Is the header compilable?
18077 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18078 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18079 cat >conftest.
$ac_ext <<_ACEOF
18082 cat confdefs.h
>>conftest.
$ac_ext
18083 cat >>conftest.
$ac_ext <<_ACEOF
18084 /* end confdefs.h. */
18085 $ac_includes_default
18086 #include <$ac_header>
18088 rm -f conftest.
$ac_objext
18089 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18090 (eval $ac_compile) 2>conftest.er1
18092 grep -v '^ *+' conftest.er1
>conftest.err
18094 cat conftest.err
>&5
18095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18096 (exit $ac_status); } &&
18097 { ac_try
='test -z "$ac_c_werror_flag"
18098 || test ! -s conftest.err'
18099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18100 (eval $ac_try) 2>&5
18102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18103 (exit $ac_status); }; } &&
18104 { ac_try
='test -s conftest.$ac_objext'
18105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18106 (eval $ac_try) 2>&5
18108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18109 (exit $ac_status); }; }; then
18110 ac_header_compiler
=yes
18112 echo "$as_me: failed program was:" >&5
18113 sed 's/^/| /' conftest.
$ac_ext >&5
18115 ac_header_compiler
=no
18117 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18118 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18119 echo "${ECHO_T}$ac_header_compiler" >&6
18121 # Is the header present?
18122 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18123 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18124 cat >conftest.
$ac_ext <<_ACEOF
18127 cat confdefs.h
>>conftest.
$ac_ext
18128 cat >>conftest.
$ac_ext <<_ACEOF
18129 /* end confdefs.h. */
18130 #include <$ac_header>
18132 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18133 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
18135 grep -v '^ *+' conftest.er1
>conftest.err
18137 cat conftest.err
>&5
18138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18139 (exit $ac_status); } >/dev
/null
; then
18140 if test -s conftest.err
; then
18141 ac_cpp_err
=$ac_c_preproc_warn_flag
18142 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
18149 if test -z "$ac_cpp_err"; then
18150 ac_header_preproc
=yes
18152 echo "$as_me: failed program was:" >&5
18153 sed 's/^/| /' conftest.
$ac_ext >&5
18155 ac_header_preproc
=no
18157 rm -f conftest.err conftest.
$ac_ext
18158 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18159 echo "${ECHO_T}$ac_header_preproc" >&6
18161 # So? What about this header?
18162 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18164 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18165 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18166 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18167 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18168 ac_header_preproc
=yes
18171 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18172 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18173 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18174 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18175 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18176 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18177 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18178 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18179 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18180 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18181 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18182 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18185 ## ------------------------------------------ ##
18186 ## Report this to the AC_PACKAGE_NAME lists. ##
18187 ## ------------------------------------------ ##
18190 sed "s/^/$as_me: WARNING: /" >&2
18193 echo "$as_me:$LINENO: checking for $ac_header" >&5
18194 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18195 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18196 echo $ECHO_N "(cached) $ECHO_C" >&6
18198 eval "$as_ac_Header=\$ac_header_preproc"
18200 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18201 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18204 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18205 cat >>confdefs.h
<<_ACEOF
18206 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18215 for ac_header
in des.h
18217 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18218 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18219 echo "$as_me:$LINENO: checking for $ac_header" >&5
18220 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18221 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18222 echo $ECHO_N "(cached) $ECHO_C" >&6
18224 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18225 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18227 # Is the header compilable?
18228 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18229 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18230 cat >conftest.
$ac_ext <<_ACEOF
18233 cat confdefs.h
>>conftest.
$ac_ext
18234 cat >>conftest.
$ac_ext <<_ACEOF
18235 /* end confdefs.h. */
18236 $ac_includes_default
18237 #include <$ac_header>
18239 rm -f conftest.
$ac_objext
18240 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18241 (eval $ac_compile) 2>conftest.er1
18243 grep -v '^ *+' conftest.er1
>conftest.err
18245 cat conftest.err
>&5
18246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18247 (exit $ac_status); } &&
18248 { ac_try
='test -z "$ac_c_werror_flag"
18249 || test ! -s conftest.err'
18250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18251 (eval $ac_try) 2>&5
18253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18254 (exit $ac_status); }; } &&
18255 { ac_try
='test -s conftest.$ac_objext'
18256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18257 (eval $ac_try) 2>&5
18259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18260 (exit $ac_status); }; }; then
18261 ac_header_compiler
=yes
18263 echo "$as_me: failed program was:" >&5
18264 sed 's/^/| /' conftest.
$ac_ext >&5
18266 ac_header_compiler
=no
18268 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18269 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18270 echo "${ECHO_T}$ac_header_compiler" >&6
18272 # Is the header present?
18273 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18274 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18275 cat >conftest.
$ac_ext <<_ACEOF
18278 cat confdefs.h
>>conftest.
$ac_ext
18279 cat >>conftest.
$ac_ext <<_ACEOF
18280 /* end confdefs.h. */
18281 #include <$ac_header>
18283 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18284 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
18286 grep -v '^ *+' conftest.er1
>conftest.err
18288 cat conftest.err
>&5
18289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18290 (exit $ac_status); } >/dev
/null
; then
18291 if test -s conftest.err
; then
18292 ac_cpp_err
=$ac_c_preproc_warn_flag
18293 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
18300 if test -z "$ac_cpp_err"; then
18301 ac_header_preproc
=yes
18303 echo "$as_me: failed program was:" >&5
18304 sed 's/^/| /' conftest.
$ac_ext >&5
18306 ac_header_preproc
=no
18308 rm -f conftest.err conftest.
$ac_ext
18309 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18310 echo "${ECHO_T}$ac_header_preproc" >&6
18312 # So? What about this header?
18313 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18315 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18316 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18317 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18318 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18319 ac_header_preproc
=yes
18322 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18323 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18324 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18325 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18326 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18327 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18328 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18329 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18330 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18331 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18332 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18333 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18336 ## ------------------------------------------ ##
18337 ## Report this to the AC_PACKAGE_NAME lists. ##
18338 ## ------------------------------------------ ##
18341 sed "s/^/$as_me: WARNING: /" >&2
18344 echo "$as_me:$LINENO: checking for $ac_header" >&5
18345 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18346 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18347 echo $ECHO_N "(cached) $ECHO_C" >&6
18349 eval "$as_ac_Header=\$ac_header_preproc"
18351 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18352 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18355 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18356 cat >>confdefs.h
<<_ACEOF
18357 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18362 for ac_header
in kerberosIV
/des.h
18364 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18365 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18366 echo "$as_me:$LINENO: checking for $ac_header" >&5
18367 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18368 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18369 echo $ECHO_N "(cached) $ECHO_C" >&6
18371 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18372 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18374 # Is the header compilable?
18375 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18376 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18377 cat >conftest.
$ac_ext <<_ACEOF
18380 cat confdefs.h
>>conftest.
$ac_ext
18381 cat >>conftest.
$ac_ext <<_ACEOF
18382 /* end confdefs.h. */
18383 $ac_includes_default
18384 #include <$ac_header>
18386 rm -f conftest.
$ac_objext
18387 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18388 (eval $ac_compile) 2>conftest.er1
18390 grep -v '^ *+' conftest.er1
>conftest.err
18392 cat conftest.err
>&5
18393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18394 (exit $ac_status); } &&
18395 { ac_try
='test -z "$ac_c_werror_flag"
18396 || test ! -s conftest.err'
18397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18398 (eval $ac_try) 2>&5
18400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18401 (exit $ac_status); }; } &&
18402 { ac_try
='test -s conftest.$ac_objext'
18403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18404 (eval $ac_try) 2>&5
18406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18407 (exit $ac_status); }; }; then
18408 ac_header_compiler
=yes
18410 echo "$as_me: failed program was:" >&5
18411 sed 's/^/| /' conftest.
$ac_ext >&5
18413 ac_header_compiler
=no
18415 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18416 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18417 echo "${ECHO_T}$ac_header_compiler" >&6
18419 # Is the header present?
18420 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18421 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18422 cat >conftest.
$ac_ext <<_ACEOF
18425 cat confdefs.h
>>conftest.
$ac_ext
18426 cat >>conftest.
$ac_ext <<_ACEOF
18427 /* end confdefs.h. */
18428 #include <$ac_header>
18430 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18431 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
18433 grep -v '^ *+' conftest.er1
>conftest.err
18435 cat conftest.err
>&5
18436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18437 (exit $ac_status); } >/dev
/null
; then
18438 if test -s conftest.err
; then
18439 ac_cpp_err
=$ac_c_preproc_warn_flag
18440 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
18447 if test -z "$ac_cpp_err"; then
18448 ac_header_preproc
=yes
18450 echo "$as_me: failed program was:" >&5
18451 sed 's/^/| /' conftest.
$ac_ext >&5
18453 ac_header_preproc
=no
18455 rm -f conftest.err conftest.
$ac_ext
18456 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18457 echo "${ECHO_T}$ac_header_preproc" >&6
18459 # So? What about this header?
18460 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18462 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18463 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18464 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18465 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18466 ac_header_preproc
=yes
18469 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18470 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18471 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18472 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18473 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18474 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18475 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18476 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18477 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18478 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18479 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18480 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18483 ## ------------------------------------------ ##
18484 ## Report this to the AC_PACKAGE_NAME lists. ##
18485 ## ------------------------------------------ ##
18488 sed "s/^/$as_me: WARNING: /" >&2
18491 echo "$as_me:$LINENO: checking for $ac_header" >&5
18492 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18493 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18494 echo $ECHO_N "(cached) $ECHO_C" >&6
18496 eval "$as_ac_Header=\$ac_header_preproc"
18498 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18499 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18502 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18503 cat >>confdefs.h
<<_ACEOF
18504 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18509 for ac_header
in kerberos
/des.h
18511 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18512 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18513 echo "$as_me:$LINENO: checking for $ac_header" >&5
18514 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18515 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18516 echo $ECHO_N "(cached) $ECHO_C" >&6
18518 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18519 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18521 # Is the header compilable?
18522 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18523 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18524 cat >conftest.
$ac_ext <<_ACEOF
18527 cat confdefs.h
>>conftest.
$ac_ext
18528 cat >>conftest.
$ac_ext <<_ACEOF
18529 /* end confdefs.h. */
18530 $ac_includes_default
18531 #include <$ac_header>
18533 rm -f conftest.
$ac_objext
18534 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18535 (eval $ac_compile) 2>conftest.er1
18537 grep -v '^ *+' conftest.er1
>conftest.err
18539 cat conftest.err
>&5
18540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18541 (exit $ac_status); } &&
18542 { ac_try
='test -z "$ac_c_werror_flag"
18543 || test ! -s conftest.err'
18544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18545 (eval $ac_try) 2>&5
18547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18548 (exit $ac_status); }; } &&
18549 { ac_try
='test -s conftest.$ac_objext'
18550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18551 (eval $ac_try) 2>&5
18553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18554 (exit $ac_status); }; }; then
18555 ac_header_compiler
=yes
18557 echo "$as_me: failed program was:" >&5
18558 sed 's/^/| /' conftest.
$ac_ext >&5
18560 ac_header_compiler
=no
18562 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18563 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18564 echo "${ECHO_T}$ac_header_compiler" >&6
18566 # Is the header present?
18567 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18568 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18569 cat >conftest.
$ac_ext <<_ACEOF
18572 cat confdefs.h
>>conftest.
$ac_ext
18573 cat >>conftest.
$ac_ext <<_ACEOF
18574 /* end confdefs.h. */
18575 #include <$ac_header>
18577 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18578 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
18580 grep -v '^ *+' conftest.er1
>conftest.err
18582 cat conftest.err
>&5
18583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18584 (exit $ac_status); } >/dev
/null
; then
18585 if test -s conftest.err
; then
18586 ac_cpp_err
=$ac_c_preproc_warn_flag
18587 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
18594 if test -z "$ac_cpp_err"; then
18595 ac_header_preproc
=yes
18597 echo "$as_me: failed program was:" >&5
18598 sed 's/^/| /' conftest.
$ac_ext >&5
18600 ac_header_preproc
=no
18602 rm -f conftest.err conftest.
$ac_ext
18603 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18604 echo "${ECHO_T}$ac_header_preproc" >&6
18606 # So? What about this header?
18607 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18609 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18610 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18611 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18612 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18613 ac_header_preproc
=yes
18616 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18617 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18618 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18619 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18620 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18621 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18622 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18623 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18624 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18625 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18626 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18627 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18630 ## ------------------------------------------ ##
18631 ## Report this to the AC_PACKAGE_NAME lists. ##
18632 ## ------------------------------------------ ##
18635 sed "s/^/$as_me: WARNING: /" >&2
18638 echo "$as_me:$LINENO: checking for $ac_header" >&5
18639 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18640 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18641 echo $ECHO_N "(cached) $ECHO_C" >&6
18643 eval "$as_ac_Header=\$ac_header_preproc"
18645 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18646 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18649 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18650 cat >>confdefs.h
<<_ACEOF
18651 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18667 for ac_header
in krb.h
18669 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18670 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18671 echo "$as_me:$LINENO: checking for $ac_header" >&5
18672 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18673 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18674 echo $ECHO_N "(cached) $ECHO_C" >&6
18676 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18677 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18679 # Is the header compilable?
18680 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18681 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18682 cat >conftest.
$ac_ext <<_ACEOF
18685 cat confdefs.h
>>conftest.
$ac_ext
18686 cat >>conftest.
$ac_ext <<_ACEOF
18687 /* end confdefs.h. */
18688 $ac_includes_default
18689 #include <$ac_header>
18691 rm -f conftest.
$ac_objext
18692 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18693 (eval $ac_compile) 2>conftest.er1
18695 grep -v '^ *+' conftest.er1
>conftest.err
18697 cat conftest.err
>&5
18698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18699 (exit $ac_status); } &&
18700 { ac_try
='test -z "$ac_c_werror_flag"
18701 || test ! -s conftest.err'
18702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18703 (eval $ac_try) 2>&5
18705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18706 (exit $ac_status); }; } &&
18707 { ac_try
='test -s conftest.$ac_objext'
18708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18709 (eval $ac_try) 2>&5
18711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18712 (exit $ac_status); }; }; then
18713 ac_header_compiler
=yes
18715 echo "$as_me: failed program was:" >&5
18716 sed 's/^/| /' conftest.
$ac_ext >&5
18718 ac_header_compiler
=no
18720 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18721 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18722 echo "${ECHO_T}$ac_header_compiler" >&6
18724 # Is the header present?
18725 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18726 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18727 cat >conftest.
$ac_ext <<_ACEOF
18730 cat confdefs.h
>>conftest.
$ac_ext
18731 cat >>conftest.
$ac_ext <<_ACEOF
18732 /* end confdefs.h. */
18733 #include <$ac_header>
18735 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18736 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
18738 grep -v '^ *+' conftest.er1
>conftest.err
18740 cat conftest.err
>&5
18741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18742 (exit $ac_status); } >/dev
/null
; then
18743 if test -s conftest.err
; then
18744 ac_cpp_err
=$ac_c_preproc_warn_flag
18745 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
18752 if test -z "$ac_cpp_err"; then
18753 ac_header_preproc
=yes
18755 echo "$as_me: failed program was:" >&5
18756 sed 's/^/| /' conftest.
$ac_ext >&5
18758 ac_header_preproc
=no
18760 rm -f conftest.err conftest.
$ac_ext
18761 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18762 echo "${ECHO_T}$ac_header_preproc" >&6
18764 # So? What about this header?
18765 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18767 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18768 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18769 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18770 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18771 ac_header_preproc
=yes
18774 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18775 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18776 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18777 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18778 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18779 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18780 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18781 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18782 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18783 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18784 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18785 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18788 ## ------------------------------------------ ##
18789 ## Report this to the AC_PACKAGE_NAME lists. ##
18790 ## ------------------------------------------ ##
18793 sed "s/^/$as_me: WARNING: /" >&2
18796 echo "$as_me:$LINENO: checking for $ac_header" >&5
18797 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18798 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18799 echo $ECHO_N "(cached) $ECHO_C" >&6
18801 eval "$as_ac_Header=\$ac_header_preproc"
18803 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18804 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18807 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18808 cat >>confdefs.h
<<_ACEOF
18809 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18814 for ac_header
in kerberosIV
/krb.h
18816 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18817 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18818 echo "$as_me:$LINENO: checking for $ac_header" >&5
18819 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18820 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18821 echo $ECHO_N "(cached) $ECHO_C" >&6
18823 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18824 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18826 # Is the header compilable?
18827 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18828 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18829 cat >conftest.
$ac_ext <<_ACEOF
18832 cat confdefs.h
>>conftest.
$ac_ext
18833 cat >>conftest.
$ac_ext <<_ACEOF
18834 /* end confdefs.h. */
18835 $ac_includes_default
18836 #include <$ac_header>
18838 rm -f conftest.
$ac_objext
18839 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18840 (eval $ac_compile) 2>conftest.er1
18842 grep -v '^ *+' conftest.er1
>conftest.err
18844 cat conftest.err
>&5
18845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18846 (exit $ac_status); } &&
18847 { ac_try
='test -z "$ac_c_werror_flag"
18848 || test ! -s conftest.err'
18849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18850 (eval $ac_try) 2>&5
18852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18853 (exit $ac_status); }; } &&
18854 { ac_try
='test -s conftest.$ac_objext'
18855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18856 (eval $ac_try) 2>&5
18858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18859 (exit $ac_status); }; }; then
18860 ac_header_compiler
=yes
18862 echo "$as_me: failed program was:" >&5
18863 sed 's/^/| /' conftest.
$ac_ext >&5
18865 ac_header_compiler
=no
18867 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18868 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18869 echo "${ECHO_T}$ac_header_compiler" >&6
18871 # Is the header present?
18872 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18873 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18874 cat >conftest.
$ac_ext <<_ACEOF
18877 cat confdefs.h
>>conftest.
$ac_ext
18878 cat >>conftest.
$ac_ext <<_ACEOF
18879 /* end confdefs.h. */
18880 #include <$ac_header>
18882 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18883 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
18885 grep -v '^ *+' conftest.er1
>conftest.err
18887 cat conftest.err
>&5
18888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18889 (exit $ac_status); } >/dev
/null
; then
18890 if test -s conftest.err
; then
18891 ac_cpp_err
=$ac_c_preproc_warn_flag
18892 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
18899 if test -z "$ac_cpp_err"; then
18900 ac_header_preproc
=yes
18902 echo "$as_me: failed program was:" >&5
18903 sed 's/^/| /' conftest.
$ac_ext >&5
18905 ac_header_preproc
=no
18907 rm -f conftest.err conftest.
$ac_ext
18908 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18909 echo "${ECHO_T}$ac_header_preproc" >&6
18911 # So? What about this header?
18912 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18914 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18915 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18916 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18917 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18918 ac_header_preproc
=yes
18921 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18922 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18923 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18924 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18925 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18926 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18927 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18928 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18929 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18930 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18931 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18932 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18935 ## ------------------------------------------ ##
18936 ## Report this to the AC_PACKAGE_NAME lists. ##
18937 ## ------------------------------------------ ##
18940 sed "s/^/$as_me: WARNING: /" >&2
18943 echo "$as_me:$LINENO: checking for $ac_header" >&5
18944 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18945 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18946 echo $ECHO_N "(cached) $ECHO_C" >&6
18948 eval "$as_ac_Header=\$ac_header_preproc"
18950 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18951 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18954 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18955 cat >>confdefs.h
<<_ACEOF
18956 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18961 for ac_header
in kerberos
/krb.h
18963 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18964 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18965 echo "$as_me:$LINENO: checking for $ac_header" >&5
18966 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18967 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18968 echo $ECHO_N "(cached) $ECHO_C" >&6
18970 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18971 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18973 # Is the header compilable?
18974 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18975 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18976 cat >conftest.
$ac_ext <<_ACEOF
18979 cat confdefs.h
>>conftest.
$ac_ext
18980 cat >>conftest.
$ac_ext <<_ACEOF
18981 /* end confdefs.h. */
18982 $ac_includes_default
18983 #include <$ac_header>
18985 rm -f conftest.
$ac_objext
18986 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18987 (eval $ac_compile) 2>conftest.er1
18989 grep -v '^ *+' conftest.er1
>conftest.err
18991 cat conftest.err
>&5
18992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18993 (exit $ac_status); } &&
18994 { ac_try
='test -z "$ac_c_werror_flag"
18995 || test ! -s conftest.err'
18996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18997 (eval $ac_try) 2>&5
18999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19000 (exit $ac_status); }; } &&
19001 { ac_try
='test -s conftest.$ac_objext'
19002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19003 (eval $ac_try) 2>&5
19005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19006 (exit $ac_status); }; }; then
19007 ac_header_compiler
=yes
19009 echo "$as_me: failed program was:" >&5
19010 sed 's/^/| /' conftest.
$ac_ext >&5
19012 ac_header_compiler
=no
19014 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19015 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19016 echo "${ECHO_T}$ac_header_compiler" >&6
19018 # Is the header present?
19019 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19020 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19021 cat >conftest.
$ac_ext <<_ACEOF
19024 cat confdefs.h
>>conftest.
$ac_ext
19025 cat >>conftest.
$ac_ext <<_ACEOF
19026 /* end confdefs.h. */
19027 #include <$ac_header>
19029 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19030 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
19032 grep -v '^ *+' conftest.er1
>conftest.err
19034 cat conftest.err
>&5
19035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19036 (exit $ac_status); } >/dev
/null
; then
19037 if test -s conftest.err
; then
19038 ac_cpp_err
=$ac_c_preproc_warn_flag
19039 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
19046 if test -z "$ac_cpp_err"; then
19047 ac_header_preproc
=yes
19049 echo "$as_me: failed program was:" >&5
19050 sed 's/^/| /' conftest.
$ac_ext >&5
19052 ac_header_preproc
=no
19054 rm -f conftest.err conftest.
$ac_ext
19055 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19056 echo "${ECHO_T}$ac_header_preproc" >&6
19058 # So? What about this header?
19059 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19061 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19062 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19063 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19064 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19065 ac_header_preproc
=yes
19068 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19069 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19070 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19071 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19072 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19073 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19074 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19075 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19076 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19077 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19078 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19079 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19082 ## ------------------------------------------ ##
19083 ## Report this to the AC_PACKAGE_NAME lists. ##
19084 ## ------------------------------------------ ##
19087 sed "s/^/$as_me: WARNING: /" >&2
19090 echo "$as_me:$LINENO: checking for $ac_header" >&5
19091 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19092 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19093 echo $ECHO_N "(cached) $ECHO_C" >&6
19095 eval "$as_ac_Header=\$ac_header_preproc"
19097 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19098 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19101 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19102 cat >>confdefs.h
<<_ACEOF
19103 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19120 for ac_header
in com_err.h
19122 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19123 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19124 echo "$as_me:$LINENO: checking for $ac_header" >&5
19125 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19126 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19127 echo $ECHO_N "(cached) $ECHO_C" >&6
19129 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19130 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19132 # Is the header compilable?
19133 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19134 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19135 cat >conftest.
$ac_ext <<_ACEOF
19138 cat confdefs.h
>>conftest.
$ac_ext
19139 cat >>conftest.
$ac_ext <<_ACEOF
19140 /* end confdefs.h. */
19141 $ac_includes_default
19142 #include <$ac_header>
19144 rm -f conftest.
$ac_objext
19145 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19146 (eval $ac_compile) 2>conftest.er1
19148 grep -v '^ *+' conftest.er1
>conftest.err
19150 cat conftest.err
>&5
19151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19152 (exit $ac_status); } &&
19153 { ac_try
='test -z "$ac_c_werror_flag"
19154 || test ! -s conftest.err'
19155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19156 (eval $ac_try) 2>&5
19158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19159 (exit $ac_status); }; } &&
19160 { ac_try
='test -s conftest.$ac_objext'
19161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19162 (eval $ac_try) 2>&5
19164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19165 (exit $ac_status); }; }; then
19166 ac_header_compiler
=yes
19168 echo "$as_me: failed program was:" >&5
19169 sed 's/^/| /' conftest.
$ac_ext >&5
19171 ac_header_compiler
=no
19173 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19174 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19175 echo "${ECHO_T}$ac_header_compiler" >&6
19177 # Is the header present?
19178 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19179 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19180 cat >conftest.
$ac_ext <<_ACEOF
19183 cat confdefs.h
>>conftest.
$ac_ext
19184 cat >>conftest.
$ac_ext <<_ACEOF
19185 /* end confdefs.h. */
19186 #include <$ac_header>
19188 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19189 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
19191 grep -v '^ *+' conftest.er1
>conftest.err
19193 cat conftest.err
>&5
19194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19195 (exit $ac_status); } >/dev
/null
; then
19196 if test -s conftest.err
; then
19197 ac_cpp_err
=$ac_c_preproc_warn_flag
19198 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
19205 if test -z "$ac_cpp_err"; then
19206 ac_header_preproc
=yes
19208 echo "$as_me: failed program was:" >&5
19209 sed 's/^/| /' conftest.
$ac_ext >&5
19211 ac_header_preproc
=no
19213 rm -f conftest.err conftest.
$ac_ext
19214 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19215 echo "${ECHO_T}$ac_header_preproc" >&6
19217 # So? What about this header?
19218 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19220 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19221 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19222 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19223 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19224 ac_header_preproc
=yes
19227 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19228 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19229 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19230 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19231 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19232 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19233 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19234 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19235 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19236 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19237 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19238 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19241 ## ------------------------------------------ ##
19242 ## Report this to the AC_PACKAGE_NAME lists. ##
19243 ## ------------------------------------------ ##
19246 sed "s/^/$as_me: WARNING: /" >&2
19249 echo "$as_me:$LINENO: checking for $ac_header" >&5
19250 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19251 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19252 echo $ECHO_N "(cached) $ECHO_C" >&6
19254 eval "$as_ac_Header=\$ac_header_preproc"
19256 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19257 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19260 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19261 cat >>confdefs.h
<<_ACEOF
19262 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19271 # Solaris requires -lintl if you want strerror (which calls dgettext)
19272 # to return localized messages.
19274 echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
19275 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6
19276 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
19277 echo $ECHO_N "(cached) $ECHO_C" >&6
19279 ac_check_lib_save_LIBS
=$LIBS
19280 LIBS
="-lintl $LIBS"
19281 cat >conftest.
$ac_ext <<_ACEOF
19284 cat confdefs.h
>>conftest.
$ac_ext
19285 cat >>conftest.
$ac_ext <<_ACEOF
19286 /* end confdefs.h. */
19288 /* Override any gcc2 internal prototype to avoid an error. */
19292 /* We use char because int might match the return type of a gcc2
19293 builtin and then its argument prototype would still apply. */
19303 rm -f conftest.
$ac_objext conftest
$ac_exeext
19304 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19305 (eval $ac_link) 2>conftest.er1
19307 grep -v '^ *+' conftest.er1
>conftest.err
19309 cat conftest.err
>&5
19310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19311 (exit $ac_status); } &&
19312 { ac_try
='test -z "$ac_c_werror_flag"
19313 || test ! -s conftest.err'
19314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19315 (eval $ac_try) 2>&5
19317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19318 (exit $ac_status); }; } &&
19319 { ac_try
='test -s conftest$ac_exeext'
19320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19321 (eval $ac_try) 2>&5
19323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19324 (exit $ac_status); }; }; then
19325 ac_cv_lib_intl_dgettext
=yes
19327 echo "$as_me: failed program was:" >&5
19328 sed 's/^/| /' conftest.
$ac_ext >&5
19330 ac_cv_lib_intl_dgettext
=no
19332 rm -f conftest.err conftest.
$ac_objext \
19333 conftest
$ac_exeext conftest.
$ac_ext
19334 LIBS
=$ac_check_lib_save_LIBS
19336 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
19337 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6
19338 if test $ac_cv_lib_intl_dgettext = yes; then
19339 cat >>confdefs.h
<<_ACEOF
19340 #define HAVE_LIBINTL 1
19343 LIBS
="-lintl $LIBS"
19348 echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
19349 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6
19350 if test "${emacs_cv_localtime_cache+set}" = set; then
19351 echo $ECHO_N "(cached) $ECHO_C" >&6
19353 if test x
$ac_cv_func_tzset = xyes
; then
19354 if test "$cross_compiling" = yes; then
19355 # If we have tzset, assume the worst when cross-compiling.
19356 emacs_cv_localtime_cache
=yes
19358 cat >conftest.
$ac_ext <<_ACEOF
19361 cat confdefs.h
>>conftest.
$ac_ext
19362 cat >>conftest.
$ac_ext <<_ACEOF
19363 /* end confdefs.h. */
19365 extern char **environ;
19369 for (to = from = environ; (*to = *from); from++)
19370 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
19373 char TZ_GMT0[] = "TZ=GMT0";
19374 char TZ_PST8[] = "TZ=PST8";
19377 time_t now = time ((time_t *) 0);
19378 int hour_GMT0, hour_unset;
19379 if (putenv (TZ_GMT0) != 0)
19381 hour_GMT0 = localtime (&now)->tm_hour;
19383 hour_unset = localtime (&now)->tm_hour;
19384 if (putenv (TZ_PST8) != 0)
19386 if (localtime (&now)->tm_hour == hour_GMT0)
19389 if (localtime (&now)->tm_hour != hour_unset)
19394 rm -f conftest
$ac_exeext
19395 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19396 (eval $ac_link) 2>&5
19398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19399 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
19400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19401 (eval $ac_try) 2>&5
19403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19404 (exit $ac_status); }; }; then
19405 emacs_cv_localtime_cache
=no
19407 echo "$as_me: program exited with status $ac_status" >&5
19408 echo "$as_me: failed program was:" >&5
19409 sed 's/^/| /' conftest.
$ac_ext >&5
19411 ( exit $ac_status )
19412 emacs_cv_localtime_cache
=yes
19414 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
19417 # If we lack tzset, report that localtime does not cache TZ,
19418 # since we can't invalidate the cache if we don't have tzset.
19419 emacs_cv_localtime_cache
=no
19422 echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
19423 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6
19424 if test $emacs_cv_localtime_cache = yes; then
19426 cat >>confdefs.h
<<\_ACEOF
19427 #define LOCALTIME_CACHE 1
19432 if test "x$HAVE_TIMEVAL" = xyes
; then
19434 for ac_func
in gettimeofday
19436 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19437 echo "$as_me:$LINENO: checking for $ac_func" >&5
19438 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19439 if eval "test \"\${$as_ac_var+set}\" = set"; then
19440 echo $ECHO_N "(cached) $ECHO_C" >&6
19442 cat >conftest.
$ac_ext <<_ACEOF
19445 cat confdefs.h
>>conftest.
$ac_ext
19446 cat >>conftest.
$ac_ext <<_ACEOF
19447 /* end confdefs.h. */
19448 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19449 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19450 #define $ac_func innocuous_$ac_func
19452 /* System header to define __stub macros and hopefully few prototypes,
19453 which can conflict with char $ac_func (); below.
19454 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19455 <limits.h> exists even on freestanding compilers. */
19458 # include <limits.h>
19460 # include <assert.h>
19465 /* Override any gcc2 internal prototype to avoid an error. */
19470 /* We use char because int might match the return type of a gcc2
19471 builtin and then its argument prototype would still apply. */
19473 /* The GNU C library defines this for functions which it implements
19474 to always fail with ENOSYS. Some functions are actually named
19475 something starting with __ and the normal name is an alias. */
19476 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19479 char (*f) () = $ac_func;
19488 return f != $ac_func;
19493 rm -f conftest.
$ac_objext conftest
$ac_exeext
19494 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19495 (eval $ac_link) 2>conftest.er1
19497 grep -v '^ *+' conftest.er1
>conftest.err
19499 cat conftest.err
>&5
19500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19501 (exit $ac_status); } &&
19502 { ac_try
='test -z "$ac_c_werror_flag"
19503 || test ! -s conftest.err'
19504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19505 (eval $ac_try) 2>&5
19507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19508 (exit $ac_status); }; } &&
19509 { ac_try
='test -s conftest$ac_exeext'
19510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19511 (eval $ac_try) 2>&5
19513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19514 (exit $ac_status); }; }; then
19515 eval "$as_ac_var=yes"
19517 echo "$as_me: failed program was:" >&5
19518 sed 's/^/| /' conftest.
$ac_ext >&5
19520 eval "$as_ac_var=no"
19522 rm -f conftest.err conftest.
$ac_objext \
19523 conftest
$ac_exeext conftest.
$ac_ext
19525 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19526 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19527 if test `eval echo '${'$as_ac_var'}'` = yes; then
19528 cat >>confdefs.h
<<_ACEOF
19529 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19535 if test $ac_cv_func_gettimeofday = yes; then
19536 echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
19537 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6
19538 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
19539 echo $ECHO_N "(cached) $ECHO_C" >&6
19541 cat >conftest.
$ac_ext <<_ACEOF
19544 cat confdefs.h
>>conftest.
$ac_ext
19545 cat >>conftest.
$ac_ext <<_ACEOF
19546 /* end confdefs.h. */
19548 #ifdef TIME_WITH_SYS_TIME
19549 #include <sys/time.h>
19552 #ifdef HAVE_SYS_TIME_H
19553 #include <sys/time.h>
19561 struct timeval time;
19562 gettimeofday (&time, 0);
19567 rm -f conftest.
$ac_objext
19568 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19569 (eval $ac_compile) 2>conftest.er1
19571 grep -v '^ *+' conftest.er1
>conftest.err
19573 cat conftest.err
>&5
19574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19575 (exit $ac_status); } &&
19576 { ac_try
='test -z "$ac_c_werror_flag"
19577 || test ! -s conftest.err'
19578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19579 (eval $ac_try) 2>&5
19581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19582 (exit $ac_status); }; } &&
19583 { ac_try
='test -s conftest.$ac_objext'
19584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19585 (eval $ac_try) 2>&5
19587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19588 (exit $ac_status); }; }; then
19589 emacs_cv_gettimeofday_two_arguments
=yes
19591 echo "$as_me: failed program was:" >&5
19592 sed 's/^/| /' conftest.
$ac_ext >&5
19594 emacs_cv_gettimeofday_two_arguments
=no
19596 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19598 echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
19599 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6
19600 if test $emacs_cv_gettimeofday_two_arguments = no
; then
19602 cat >>confdefs.h
<<\_ACEOF
19603 #define GETTIMEOFDAY_ONE_ARGUMENT 1
19610 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
19611 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
19612 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
19613 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
19614 echo $ECHO_N "(cached) $ECHO_C" >&6
19616 cat >conftest.
$ac_ext <<_ACEOF
19619 cat confdefs.h
>>conftest.
$ac_ext
19620 cat >>conftest.
$ac_ext <<_ACEOF
19621 /* end confdefs.h. */
19622 #include <sys/types.h>
19623 #include <$ac_cv_struct_tm>
19629 static struct tm ac_aggr;
19630 if (ac_aggr.tm_zone)
19636 rm -f conftest.
$ac_objext
19637 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19638 (eval $ac_compile) 2>conftest.er1
19640 grep -v '^ *+' conftest.er1
>conftest.err
19642 cat conftest.err
>&5
19643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19644 (exit $ac_status); } &&
19645 { ac_try
='test -z "$ac_c_werror_flag"
19646 || test ! -s conftest.err'
19647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19648 (eval $ac_try) 2>&5
19650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19651 (exit $ac_status); }; } &&
19652 { ac_try
='test -s conftest.$ac_objext'
19653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19654 (eval $ac_try) 2>&5
19656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19657 (exit $ac_status); }; }; then
19658 ac_cv_member_struct_tm_tm_zone
=yes
19660 echo "$as_me: failed program was:" >&5
19661 sed 's/^/| /' conftest.
$ac_ext >&5
19663 cat >conftest.
$ac_ext <<_ACEOF
19666 cat confdefs.h
>>conftest.
$ac_ext
19667 cat >>conftest.
$ac_ext <<_ACEOF
19668 /* end confdefs.h. */
19669 #include <sys/types.h>
19670 #include <$ac_cv_struct_tm>
19676 static struct tm ac_aggr;
19677 if (sizeof ac_aggr.tm_zone)
19683 rm -f conftest.
$ac_objext
19684 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19685 (eval $ac_compile) 2>conftest.er1
19687 grep -v '^ *+' conftest.er1
>conftest.err
19689 cat conftest.err
>&5
19690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19691 (exit $ac_status); } &&
19692 { ac_try
='test -z "$ac_c_werror_flag"
19693 || test ! -s conftest.err'
19694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19695 (eval $ac_try) 2>&5
19697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19698 (exit $ac_status); }; } &&
19699 { ac_try
='test -s conftest.$ac_objext'
19700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19701 (eval $ac_try) 2>&5
19703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19704 (exit $ac_status); }; }; then
19705 ac_cv_member_struct_tm_tm_zone
=yes
19707 echo "$as_me: failed program was:" >&5
19708 sed 's/^/| /' conftest.
$ac_ext >&5
19710 ac_cv_member_struct_tm_tm_zone
=no
19712 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19714 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19716 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
19717 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
19718 if test $ac_cv_member_struct_tm_tm_zone = yes; then
19720 cat >>confdefs.h
<<_ACEOF
19721 #define HAVE_STRUCT_TM_TM_ZONE 1
19727 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
19729 cat >>confdefs.h
<<\_ACEOF
19730 #define HAVE_TM_ZONE 1
19734 echo "$as_me:$LINENO: checking for tzname" >&5
19735 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
19736 if test "${ac_cv_var_tzname+set}" = set; then
19737 echo $ECHO_N "(cached) $ECHO_C" >&6
19739 cat >conftest.
$ac_ext <<_ACEOF
19742 cat confdefs.h
>>conftest.
$ac_ext
19743 cat >>conftest.
$ac_ext <<_ACEOF
19744 /* end confdefs.h. */
19746 #ifndef tzname /* For SGI. */
19747 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
19758 rm -f conftest.
$ac_objext conftest
$ac_exeext
19759 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19760 (eval $ac_link) 2>conftest.er1
19762 grep -v '^ *+' conftest.er1
>conftest.err
19764 cat conftest.err
>&5
19765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19766 (exit $ac_status); } &&
19767 { ac_try
='test -z "$ac_c_werror_flag"
19768 || test ! -s conftest.err'
19769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19770 (eval $ac_try) 2>&5
19772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19773 (exit $ac_status); }; } &&
19774 { ac_try
='test -s conftest$ac_exeext'
19775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19776 (eval $ac_try) 2>&5
19778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19779 (exit $ac_status); }; }; then
19780 ac_cv_var_tzname
=yes
19782 echo "$as_me: failed program was:" >&5
19783 sed 's/^/| /' conftest.
$ac_ext >&5
19785 ac_cv_var_tzname
=no
19787 rm -f conftest.err conftest.
$ac_objext \
19788 conftest
$ac_exeext conftest.
$ac_ext
19790 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
19791 echo "${ECHO_T}$ac_cv_var_tzname" >&6
19792 if test $ac_cv_var_tzname = yes; then
19794 cat >>confdefs.h
<<\_ACEOF
19795 #define HAVE_TZNAME 1
19802 if test "$ac_cv_func_gettimeofday" = yes; then
19803 echo "$as_me:$LINENO: checking for struct timezone" >&5
19804 echo $ECHO_N "checking for struct timezone... $ECHO_C" >&6
19805 if test "${emacs_cv_struct_timezone+set}" = set; then
19806 echo $ECHO_N "(cached) $ECHO_C" >&6
19808 cat >conftest.
$ac_ext <<_ACEOF
19811 cat confdefs.h
>>conftest.
$ac_ext
19812 cat >>conftest.
$ac_ext <<_ACEOF
19813 /* end confdefs.h. */
19814 #include <sys/time.h>
19818 struct timezone tz;
19823 rm -f conftest.
$ac_objext
19824 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19825 (eval $ac_compile) 2>conftest.er1
19827 grep -v '^ *+' conftest.er1
>conftest.err
19829 cat conftest.err
>&5
19830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19831 (exit $ac_status); } &&
19832 { ac_try
='test -z "$ac_c_werror_flag"
19833 || test ! -s conftest.err'
19834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19835 (eval $ac_try) 2>&5
19837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19838 (exit $ac_status); }; } &&
19839 { ac_try
='test -s conftest.$ac_objext'
19840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19841 (eval $ac_try) 2>&5
19843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19844 (exit $ac_status); }; }; then
19845 if test "$cross_compiling" = yes; then
19846 emacs_cv_struct_timezone
=yes
19848 cat >conftest.
$ac_ext <<_ACEOF
19851 cat confdefs.h
>>conftest.
$ac_ext
19852 cat >>conftest.
$ac_ext <<_ACEOF
19853 /* end confdefs.h. */
19855 #ifdef TIME_WITH_SYS_TIME
19856 #include <sys/time.h>
19859 #ifdef HAVE_SYS_TIME_H
19860 #include <sys/time.h>
19866 struct timeval time;
19867 struct timezone dummy;
19868 exit (gettimeofday (&time, &dummy));
19871 rm -f conftest
$ac_exeext
19872 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19873 (eval $ac_link) 2>&5
19875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19876 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
19877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19878 (eval $ac_try) 2>&5
19880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19881 (exit $ac_status); }; }; then
19882 emacs_cv_struct_timezone
=yes
19884 echo "$as_me: program exited with status $ac_status" >&5
19885 echo "$as_me: failed program was:" >&5
19886 sed 's/^/| /' conftest.
$ac_ext >&5
19888 ( exit $ac_status )
19889 emacs_cv_struct_timezone
=no
19891 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
19894 echo "$as_me: failed program was:" >&5
19895 sed 's/^/| /' conftest.
$ac_ext >&5
19897 emacs_cv_struct_timezone
=no
19899 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19901 echo "$as_me:$LINENO: result: $emacs_cv_struct_timezone" >&5
19902 echo "${ECHO_T}$emacs_cv_struct_timezone" >&6
19906 echo "$as_me:$LINENO: checking for socket" >&5
19907 echo $ECHO_N "checking for socket... $ECHO_C" >&6
19908 if test "${ac_cv_func_socket+set}" = set; then
19909 echo $ECHO_N "(cached) $ECHO_C" >&6
19911 cat >conftest.
$ac_ext <<_ACEOF
19914 cat confdefs.h
>>conftest.
$ac_ext
19915 cat >>conftest.
$ac_ext <<_ACEOF
19916 /* end confdefs.h. */
19917 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
19918 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19919 #define socket innocuous_socket
19921 /* System header to define __stub macros and hopefully few prototypes,
19922 which can conflict with char socket (); below.
19923 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19924 <limits.h> exists even on freestanding compilers. */
19927 # include <limits.h>
19929 # include <assert.h>
19934 /* Override any gcc2 internal prototype to avoid an error. */
19939 /* We use char because int might match the return type of a gcc2
19940 builtin and then its argument prototype would still apply. */
19942 /* The GNU C library defines this for functions which it implements
19943 to always fail with ENOSYS. Some functions are actually named
19944 something starting with __ and the normal name is an alias. */
19945 #if defined (__stub_socket) || defined (__stub___socket)
19948 char (*f) () = socket;
19957 return f != socket;
19962 rm -f conftest.
$ac_objext conftest
$ac_exeext
19963 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19964 (eval $ac_link) 2>conftest.er1
19966 grep -v '^ *+' conftest.er1
>conftest.err
19968 cat conftest.err
>&5
19969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19970 (exit $ac_status); } &&
19971 { ac_try
='test -z "$ac_c_werror_flag"
19972 || test ! -s conftest.err'
19973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19974 (eval $ac_try) 2>&5
19976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19977 (exit $ac_status); }; } &&
19978 { ac_try
='test -s conftest$ac_exeext'
19979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19980 (eval $ac_try) 2>&5
19982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19983 (exit $ac_status); }; }; then
19984 ac_cv_func_socket
=yes
19986 echo "$as_me: failed program was:" >&5
19987 sed 's/^/| /' conftest.
$ac_ext >&5
19989 ac_cv_func_socket
=no
19991 rm -f conftest.err conftest.
$ac_objext \
19992 conftest
$ac_exeext conftest.
$ac_ext
19994 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
19995 echo "${ECHO_T}$ac_cv_func_socket" >&6
19996 if test $ac_cv_func_socket = yes; then
20002 if test $ok_so_far = yes; then
20003 if test "${ac_cv_header_netinet_in_h+set}" = set; then
20004 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
20005 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
20006 if test "${ac_cv_header_netinet_in_h+set}" = set; then
20007 echo $ECHO_N "(cached) $ECHO_C" >&6
20009 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
20010 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
20012 # Is the header compilable?
20013 echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
20014 echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6
20015 cat >conftest.
$ac_ext <<_ACEOF
20018 cat confdefs.h
>>conftest.
$ac_ext
20019 cat >>conftest.
$ac_ext <<_ACEOF
20020 /* end confdefs.h. */
20021 $ac_includes_default
20022 #include <netinet/in.h>
20024 rm -f conftest.
$ac_objext
20025 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20026 (eval $ac_compile) 2>conftest.er1
20028 grep -v '^ *+' conftest.er1
>conftest.err
20030 cat conftest.err
>&5
20031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20032 (exit $ac_status); } &&
20033 { ac_try
='test -z "$ac_c_werror_flag"
20034 || test ! -s conftest.err'
20035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20036 (eval $ac_try) 2>&5
20038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20039 (exit $ac_status); }; } &&
20040 { ac_try
='test -s conftest.$ac_objext'
20041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20042 (eval $ac_try) 2>&5
20044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20045 (exit $ac_status); }; }; then
20046 ac_header_compiler
=yes
20048 echo "$as_me: failed program was:" >&5
20049 sed 's/^/| /' conftest.
$ac_ext >&5
20051 ac_header_compiler
=no
20053 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20054 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20055 echo "${ECHO_T}$ac_header_compiler" >&6
20057 # Is the header present?
20058 echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
20059 echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6
20060 cat >conftest.
$ac_ext <<_ACEOF
20063 cat confdefs.h
>>conftest.
$ac_ext
20064 cat >>conftest.
$ac_ext <<_ACEOF
20065 /* end confdefs.h. */
20066 #include <netinet/in.h>
20068 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20069 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
20071 grep -v '^ *+' conftest.er1
>conftest.err
20073 cat conftest.err
>&5
20074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20075 (exit $ac_status); } >/dev
/null
; then
20076 if test -s conftest.err
; then
20077 ac_cpp_err
=$ac_c_preproc_warn_flag
20078 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
20085 if test -z "$ac_cpp_err"; then
20086 ac_header_preproc
=yes
20088 echo "$as_me: failed program was:" >&5
20089 sed 's/^/| /' conftest.
$ac_ext >&5
20091 ac_header_preproc
=no
20093 rm -f conftest.err conftest.
$ac_ext
20094 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20095 echo "${ECHO_T}$ac_header_preproc" >&6
20097 # So? What about this header?
20098 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20100 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
20101 echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20102 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
20103 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
20104 ac_header_preproc
=yes
20107 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
20108 echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
20109 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
20110 echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
20111 { echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
20112 echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
20113 { echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
20114 echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
20115 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
20116 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
20117 { echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
20118 echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
20121 ## ------------------------------------------ ##
20122 ## Report this to the AC_PACKAGE_NAME lists. ##
20123 ## ------------------------------------------ ##
20126 sed "s/^/$as_me: WARNING: /" >&2
20129 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
20130 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
20131 if test "${ac_cv_header_netinet_in_h+set}" = set; then
20132 echo $ECHO_N "(cached) $ECHO_C" >&6
20134 ac_cv_header_netinet_in_h
=$ac_header_preproc
20136 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
20137 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
20140 if test $ac_cv_header_netinet_in_h = yes; then
20148 if test $ok_so_far = yes; then
20149 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
20150 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
20151 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
20152 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
20153 echo $ECHO_N "(cached) $ECHO_C" >&6
20155 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
20156 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
20158 # Is the header compilable?
20159 echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
20160 echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6
20161 cat >conftest.
$ac_ext <<_ACEOF
20164 cat confdefs.h
>>conftest.
$ac_ext
20165 cat >>conftest.
$ac_ext <<_ACEOF
20166 /* end confdefs.h. */
20167 $ac_includes_default
20168 #include <arpa/inet.h>
20170 rm -f conftest.
$ac_objext
20171 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20172 (eval $ac_compile) 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_objext'
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 ac_header_compiler
=yes
20194 echo "$as_me: failed program was:" >&5
20195 sed 's/^/| /' conftest.
$ac_ext >&5
20197 ac_header_compiler
=no
20199 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20200 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20201 echo "${ECHO_T}$ac_header_compiler" >&6
20203 # Is the header present?
20204 echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
20205 echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6
20206 cat >conftest.
$ac_ext <<_ACEOF
20209 cat confdefs.h
>>conftest.
$ac_ext
20210 cat >>conftest.
$ac_ext <<_ACEOF
20211 /* end confdefs.h. */
20212 #include <arpa/inet.h>
20214 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20215 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
20217 grep -v '^ *+' conftest.er1
>conftest.err
20219 cat conftest.err
>&5
20220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20221 (exit $ac_status); } >/dev
/null
; then
20222 if test -s conftest.err
; then
20223 ac_cpp_err
=$ac_c_preproc_warn_flag
20224 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
20231 if test -z "$ac_cpp_err"; then
20232 ac_header_preproc
=yes
20234 echo "$as_me: failed program was:" >&5
20235 sed 's/^/| /' conftest.
$ac_ext >&5
20237 ac_header_preproc
=no
20239 rm -f conftest.err conftest.
$ac_ext
20240 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20241 echo "${ECHO_T}$ac_header_preproc" >&6
20243 # So? What about this header?
20244 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20246 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
20247 echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20248 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
20249 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
20250 ac_header_preproc
=yes
20253 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
20254 echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
20255 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
20256 echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
20257 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
20258 echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
20259 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
20260 echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
20261 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
20262 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
20263 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
20264 echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
20267 ## ------------------------------------------ ##
20268 ## Report this to the AC_PACKAGE_NAME lists. ##
20269 ## ------------------------------------------ ##
20272 sed "s/^/$as_me: WARNING: /" >&2
20275 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
20276 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
20277 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
20278 echo $ECHO_N "(cached) $ECHO_C" >&6
20280 ac_cv_header_arpa_inet_h
=$ac_header_preproc
20282 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
20283 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
20286 if test $ac_cv_header_arpa_inet_h = yes; then
20294 if test $ok_so_far = yes; then
20296 cat >>confdefs.h
<<\_ACEOF
20297 #define HAVE_INET_SOCKETS 1
20303 for ac_header
in sys
/ioctl.h
20305 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20306 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20307 echo "$as_me:$LINENO: checking for $ac_header" >&5
20308 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20309 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20310 echo $ECHO_N "(cached) $ECHO_C" >&6
20312 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20313 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20315 # Is the header compilable?
20316 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20317 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20318 cat >conftest.
$ac_ext <<_ACEOF
20321 cat confdefs.h
>>conftest.
$ac_ext
20322 cat >>conftest.
$ac_ext <<_ACEOF
20323 /* end confdefs.h. */
20324 $ac_includes_default
20325 #include <$ac_header>
20327 rm -f conftest.
$ac_objext
20328 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20329 (eval $ac_compile) 2>conftest.er1
20331 grep -v '^ *+' conftest.er1
>conftest.err
20333 cat conftest.err
>&5
20334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20335 (exit $ac_status); } &&
20336 { ac_try
='test -z "$ac_c_werror_flag"
20337 || test ! -s conftest.err'
20338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20339 (eval $ac_try) 2>&5
20341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20342 (exit $ac_status); }; } &&
20343 { ac_try
='test -s conftest.$ac_objext'
20344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20345 (eval $ac_try) 2>&5
20347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20348 (exit $ac_status); }; }; then
20349 ac_header_compiler
=yes
20351 echo "$as_me: failed program was:" >&5
20352 sed 's/^/| /' conftest.
$ac_ext >&5
20354 ac_header_compiler
=no
20356 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20357 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20358 echo "${ECHO_T}$ac_header_compiler" >&6
20360 # Is the header present?
20361 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20362 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20363 cat >conftest.
$ac_ext <<_ACEOF
20366 cat confdefs.h
>>conftest.
$ac_ext
20367 cat >>conftest.
$ac_ext <<_ACEOF
20368 /* end confdefs.h. */
20369 #include <$ac_header>
20371 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20372 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
20374 grep -v '^ *+' conftest.er1
>conftest.err
20376 cat conftest.err
>&5
20377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20378 (exit $ac_status); } >/dev
/null
; then
20379 if test -s conftest.err
; then
20380 ac_cpp_err
=$ac_c_preproc_warn_flag
20381 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
20388 if test -z "$ac_cpp_err"; then
20389 ac_header_preproc
=yes
20391 echo "$as_me: failed program was:" >&5
20392 sed 's/^/| /' conftest.
$ac_ext >&5
20394 ac_header_preproc
=no
20396 rm -f conftest.err conftest.
$ac_ext
20397 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20398 echo "${ECHO_T}$ac_header_preproc" >&6
20400 # So? What about this header?
20401 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20403 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20404 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20405 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20406 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20407 ac_header_preproc
=yes
20410 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20411 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20412 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20413 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20414 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20415 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20416 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20417 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20418 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20419 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20420 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20421 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20424 ## ------------------------------------------ ##
20425 ## Report this to the AC_PACKAGE_NAME lists. ##
20426 ## ------------------------------------------ ##
20429 sed "s/^/$as_me: WARNING: /" >&2
20432 echo "$as_me:$LINENO: checking for $ac_header" >&5
20433 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20434 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20435 echo $ECHO_N "(cached) $ECHO_C" >&6
20437 eval "$as_ac_Header=\$ac_header_preproc"
20439 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20440 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20443 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20444 cat >>confdefs.h
<<_ACEOF
20445 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20453 if test -f /usr
/lpp
/X11
/bin
/smt.exp
; then
20455 cat >>confdefs.h
<<\_ACEOF
20456 #define HAVE_AIX_SMT_EXP 1
20461 echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
20462 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6
20463 if test -d /dev
/pts
&& ls -d /dev
/ptmx
> /dev
/null
2>&1 ; then
20464 echo "$as_me:$LINENO: result: yes" >&5
20465 echo "${ECHO_T}yes" >&6
20467 cat >>confdefs.h
<<\_ACEOF
20468 #define HAVE_DEV_PTMX 1
20472 echo "$as_me:$LINENO: result: no" >&5
20473 echo "${ECHO_T}no" >&6
20476 echo "$as_me:$LINENO: checking for pid_t" >&5
20477 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
20478 if test "${ac_cv_type_pid_t+set}" = set; then
20479 echo $ECHO_N "(cached) $ECHO_C" >&6
20481 cat >conftest.
$ac_ext <<_ACEOF
20484 cat confdefs.h
>>conftest.
$ac_ext
20485 cat >>conftest.
$ac_ext <<_ACEOF
20486 /* end confdefs.h. */
20487 $ac_includes_default
20493 if (sizeof (pid_t))
20499 rm -f conftest.
$ac_objext
20500 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20501 (eval $ac_compile) 2>conftest.er1
20503 grep -v '^ *+' conftest.er1
>conftest.err
20505 cat conftest.err
>&5
20506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20507 (exit $ac_status); } &&
20508 { ac_try
='test -z "$ac_c_werror_flag"
20509 || test ! -s conftest.err'
20510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20511 (eval $ac_try) 2>&5
20513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20514 (exit $ac_status); }; } &&
20515 { ac_try
='test -s conftest.$ac_objext'
20516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20517 (eval $ac_try) 2>&5
20519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20520 (exit $ac_status); }; }; then
20521 ac_cv_type_pid_t
=yes
20523 echo "$as_me: failed program was:" >&5
20524 sed 's/^/| /' conftest.
$ac_ext >&5
20526 ac_cv_type_pid_t
=no
20528 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20530 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
20531 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
20532 if test $ac_cv_type_pid_t = yes; then
20536 cat >>confdefs.h
<<_ACEOF
20544 for ac_header
in unistd.h vfork.h
20546 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20547 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20548 echo "$as_me:$LINENO: checking for $ac_header" >&5
20549 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20550 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20551 echo $ECHO_N "(cached) $ECHO_C" >&6
20553 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20554 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20556 # Is the header compilable?
20557 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20558 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20559 cat >conftest.
$ac_ext <<_ACEOF
20562 cat confdefs.h
>>conftest.
$ac_ext
20563 cat >>conftest.
$ac_ext <<_ACEOF
20564 /* end confdefs.h. */
20565 $ac_includes_default
20566 #include <$ac_header>
20568 rm -f conftest.
$ac_objext
20569 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20570 (eval $ac_compile) 2>conftest.er1
20572 grep -v '^ *+' conftest.er1
>conftest.err
20574 cat conftest.err
>&5
20575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20576 (exit $ac_status); } &&
20577 { ac_try
='test -z "$ac_c_werror_flag"
20578 || test ! -s conftest.err'
20579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20580 (eval $ac_try) 2>&5
20582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20583 (exit $ac_status); }; } &&
20584 { ac_try
='test -s conftest.$ac_objext'
20585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20586 (eval $ac_try) 2>&5
20588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20589 (exit $ac_status); }; }; then
20590 ac_header_compiler
=yes
20592 echo "$as_me: failed program was:" >&5
20593 sed 's/^/| /' conftest.
$ac_ext >&5
20595 ac_header_compiler
=no
20597 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20598 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20599 echo "${ECHO_T}$ac_header_compiler" >&6
20601 # Is the header present?
20602 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20603 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20604 cat >conftest.
$ac_ext <<_ACEOF
20607 cat confdefs.h
>>conftest.
$ac_ext
20608 cat >>conftest.
$ac_ext <<_ACEOF
20609 /* end confdefs.h. */
20610 #include <$ac_header>
20612 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20613 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
20615 grep -v '^ *+' conftest.er1
>conftest.err
20617 cat conftest.err
>&5
20618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20619 (exit $ac_status); } >/dev
/null
; then
20620 if test -s conftest.err
; then
20621 ac_cpp_err
=$ac_c_preproc_warn_flag
20622 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
20629 if test -z "$ac_cpp_err"; then
20630 ac_header_preproc
=yes
20632 echo "$as_me: failed program was:" >&5
20633 sed 's/^/| /' conftest.
$ac_ext >&5
20635 ac_header_preproc
=no
20637 rm -f conftest.err conftest.
$ac_ext
20638 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20639 echo "${ECHO_T}$ac_header_preproc" >&6
20641 # So? What about this header?
20642 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20644 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20645 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20646 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20647 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20648 ac_header_preproc
=yes
20651 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20652 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20653 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20654 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20655 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20656 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20657 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20658 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20659 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20660 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20661 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20662 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20665 ## ------------------------------------------ ##
20666 ## Report this to the AC_PACKAGE_NAME lists. ##
20667 ## ------------------------------------------ ##
20670 sed "s/^/$as_me: WARNING: /" >&2
20673 echo "$as_me:$LINENO: checking for $ac_header" >&5
20674 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20675 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20676 echo $ECHO_N "(cached) $ECHO_C" >&6
20678 eval "$as_ac_Header=\$ac_header_preproc"
20680 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20681 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20684 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20685 cat >>confdefs.h
<<_ACEOF
20686 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20695 for ac_func
in fork vfork
20697 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20698 echo "$as_me:$LINENO: checking for $ac_func" >&5
20699 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20700 if eval "test \"\${$as_ac_var+set}\" = set"; then
20701 echo $ECHO_N "(cached) $ECHO_C" >&6
20703 cat >conftest.
$ac_ext <<_ACEOF
20706 cat confdefs.h
>>conftest.
$ac_ext
20707 cat >>conftest.
$ac_ext <<_ACEOF
20708 /* end confdefs.h. */
20709 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20710 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20711 #define $ac_func innocuous_$ac_func
20713 /* System header to define __stub macros and hopefully few prototypes,
20714 which can conflict with char $ac_func (); below.
20715 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20716 <limits.h> exists even on freestanding compilers. */
20719 # include <limits.h>
20721 # include <assert.h>
20726 /* Override any gcc2 internal prototype to avoid an error. */
20731 /* We use char because int might match the return type of a gcc2
20732 builtin and then its argument prototype would still apply. */
20734 /* The GNU C library defines this for functions which it implements
20735 to always fail with ENOSYS. Some functions are actually named
20736 something starting with __ and the normal name is an alias. */
20737 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20740 char (*f) () = $ac_func;
20749 return f != $ac_func;
20754 rm -f conftest.
$ac_objext conftest
$ac_exeext
20755 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20756 (eval $ac_link) 2>conftest.er1
20758 grep -v '^ *+' conftest.er1
>conftest.err
20760 cat conftest.err
>&5
20761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20762 (exit $ac_status); } &&
20763 { ac_try
='test -z "$ac_c_werror_flag"
20764 || test ! -s conftest.err'
20765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20766 (eval $ac_try) 2>&5
20768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20769 (exit $ac_status); }; } &&
20770 { ac_try
='test -s conftest$ac_exeext'
20771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20772 (eval $ac_try) 2>&5
20774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20775 (exit $ac_status); }; }; then
20776 eval "$as_ac_var=yes"
20778 echo "$as_me: failed program was:" >&5
20779 sed 's/^/| /' conftest.
$ac_ext >&5
20781 eval "$as_ac_var=no"
20783 rm -f conftest.err conftest.
$ac_objext \
20784 conftest
$ac_exeext conftest.
$ac_ext
20786 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20787 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20788 if test `eval echo '${'$as_ac_var'}'` = yes; then
20789 cat >>confdefs.h
<<_ACEOF
20790 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20796 if test "x$ac_cv_func_fork" = xyes
; then
20797 echo "$as_me:$LINENO: checking for working fork" >&5
20798 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
20799 if test "${ac_cv_func_fork_works+set}" = set; then
20800 echo $ECHO_N "(cached) $ECHO_C" >&6
20802 if test "$cross_compiling" = yes; then
20803 ac_cv_func_fork_works
=cross
20805 cat >conftest.
$ac_ext <<_ACEOF
20806 /* By Ruediger Kuhlmann. */
20807 #include <sys/types.h>
20809 # include <unistd.h>
20811 /* Some systems only have a dummy stub for fork() */
20819 rm -f conftest
$ac_exeext
20820 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20821 (eval $ac_link) 2>&5
20823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20824 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
20825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20826 (eval $ac_try) 2>&5
20828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20829 (exit $ac_status); }; }; then
20830 ac_cv_func_fork_works
=yes
20832 echo "$as_me: program exited with status $ac_status" >&5
20833 echo "$as_me: failed program was:" >&5
20834 sed 's/^/| /' conftest.
$ac_ext >&5
20836 ( exit $ac_status )
20837 ac_cv_func_fork_works
=no
20839 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
20842 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
20843 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
20846 ac_cv_func_fork_works
=$ac_cv_func_fork
20848 if test "x$ac_cv_func_fork_works" = xcross
; then
20850 *-*-amigaos* |
*-*-msdosdjgpp*)
20851 # Override, as these systems have only a dummy fork() stub
20852 ac_cv_func_fork_works
=no
20855 ac_cv_func_fork_works
=yes
20858 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
20859 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
20861 ac_cv_func_vfork_works
=$ac_cv_func_vfork
20862 if test "x$ac_cv_func_vfork" = xyes
; then
20863 echo "$as_me:$LINENO: checking for working vfork" >&5
20864 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
20865 if test "${ac_cv_func_vfork_works+set}" = set; then
20866 echo $ECHO_N "(cached) $ECHO_C" >&6
20868 if test "$cross_compiling" = yes; then
20869 ac_cv_func_vfork_works
=cross
20871 cat >conftest.
$ac_ext <<_ACEOF
20874 cat confdefs.h
>>conftest.
$ac_ext
20875 cat >>conftest.
$ac_ext <<_ACEOF
20876 /* end confdefs.h. */
20877 /* Thanks to Paul Eggert for this test. */
20879 #include <stdlib.h>
20880 #include <sys/types.h>
20881 #include <sys/stat.h>
20882 #include <sys/wait.h>
20884 # include <unistd.h>
20887 # include <vfork.h>
20889 /* On some sparc systems, changes by the child to local and incoming
20890 argument registers are propagated back to the parent. The compiler
20891 is told about this with #include <vfork.h>, but some compilers
20892 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
20893 static variable whose address is put into a register that is
20894 clobbered by the vfork. */
20897 sparc_address_test (int arg)
20899 sparc_address_test (arg) int arg;
20902 static pid_t child;
20920 pid_t parent = getpid ();
20923 sparc_address_test (0);
20928 /* Here is another test for sparc vfork register problems. This
20929 test uses lots of local variables, at least as many local
20930 variables as main has allocated so far including compiler
20931 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
20932 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
20933 reuse the register of parent for one of the local variables,
20934 since it will think that parent can't possibly be used any more
20935 in this routine. Assigning to the local variable will thus
20936 munge parent in the parent process. */
20938 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
20939 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
20940 /* Convince the compiler that p..p7 are live; otherwise, it might
20941 use the same hardware register for all 8 local variables. */
20942 if (p != p1 || p != p2 || p != p3 || p != p4
20943 || p != p5 || p != p6 || p != p7)
20946 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
20947 from child file descriptors. If the child closes a descriptor
20948 before it execs or exits, this munges the parent's descriptor
20949 as well. Test for this by closing stdout in the child. */
20950 _exit(close(fileno(stdout)) != 0);
20955 while (wait(&status) != child)
20958 /* Was there some problem with vforking? */
20961 /* Did the child fail? (This shouldn't happen.) */
20964 /* Did the vfork/compiler bug occur? */
20965 || parent != getpid()
20967 /* Did the file descriptor bug occur? */
20968 || fstat(fileno(stdout), &st) != 0
20973 rm -f conftest
$ac_exeext
20974 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20975 (eval $ac_link) 2>&5
20977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20978 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
20979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20980 (eval $ac_try) 2>&5
20982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20983 (exit $ac_status); }; }; then
20984 ac_cv_func_vfork_works
=yes
20986 echo "$as_me: program exited with status $ac_status" >&5
20987 echo "$as_me: failed program was:" >&5
20988 sed 's/^/| /' conftest.
$ac_ext >&5
20990 ( exit $ac_status )
20991 ac_cv_func_vfork_works
=no
20993 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
20996 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
20997 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
21000 if test "x$ac_cv_func_fork_works" = xcross
; then
21001 ac_cv_func_vfork_works
=$ac_cv_func_vfork
21002 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
21003 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
21006 if test "x$ac_cv_func_vfork_works" = xyes
; then
21008 cat >>confdefs.h
<<\_ACEOF
21009 #define HAVE_WORKING_VFORK 1
21014 cat >>confdefs.h
<<\_ACEOF
21019 if test "x$ac_cv_func_fork_works" = xyes
; then
21021 cat >>confdefs.h
<<\_ACEOF
21022 #define HAVE_WORKING_FORK 1
21028 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
21029 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
21030 if test "${emacs_cv_langinfo_codeset+set}" = set; then
21031 echo $ECHO_N "(cached) $ECHO_C" >&6
21033 cat >conftest.
$ac_ext <<_ACEOF
21036 cat confdefs.h
>>conftest.
$ac_ext
21037 cat >>conftest.
$ac_ext <<_ACEOF
21038 /* end confdefs.h. */
21039 #include <langinfo.h>
21043 char* cs = nl_langinfo(CODESET);
21048 rm -f conftest.
$ac_objext conftest
$ac_exeext
21049 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21050 (eval $ac_link) 2>conftest.er1
21052 grep -v '^ *+' conftest.er1
>conftest.err
21054 cat conftest.err
>&5
21055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21056 (exit $ac_status); } &&
21057 { ac_try
='test -z "$ac_c_werror_flag"
21058 || test ! -s conftest.err'
21059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21060 (eval $ac_try) 2>&5
21062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21063 (exit $ac_status); }; } &&
21064 { ac_try
='test -s conftest$ac_exeext'
21065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21066 (eval $ac_try) 2>&5
21068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21069 (exit $ac_status); }; }; then
21070 emacs_cv_langinfo_codeset
=yes
21072 echo "$as_me: failed program was:" >&5
21073 sed 's/^/| /' conftest.
$ac_ext >&5
21075 emacs_cv_langinfo_codeset
=no
21077 rm -f conftest.err conftest.
$ac_objext \
21078 conftest
$ac_exeext conftest.
$ac_ext
21081 echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
21082 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6
21083 if test $emacs_cv_langinfo_codeset = yes; then
21085 cat >>confdefs.h
<<\_ACEOF
21086 #define HAVE_LANGINFO_CODESET 1
21091 echo "$as_me:$LINENO: checking for size_t" >&5
21092 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
21093 if test "${ac_cv_type_size_t+set}" = set; then
21094 echo $ECHO_N "(cached) $ECHO_C" >&6
21096 cat >conftest.
$ac_ext <<_ACEOF
21099 cat confdefs.h
>>conftest.
$ac_ext
21100 cat >>conftest.
$ac_ext <<_ACEOF
21101 /* end confdefs.h. */
21102 $ac_includes_default
21108 if (sizeof (size_t))
21114 rm -f conftest.
$ac_objext
21115 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21116 (eval $ac_compile) 2>conftest.er1
21118 grep -v '^ *+' conftest.er1
>conftest.err
21120 cat conftest.err
>&5
21121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21122 (exit $ac_status); } &&
21123 { ac_try
='test -z "$ac_c_werror_flag"
21124 || test ! -s conftest.err'
21125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21126 (eval $ac_try) 2>&5
21128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21129 (exit $ac_status); }; } &&
21130 { ac_try
='test -s conftest.$ac_objext'
21131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21132 (eval $ac_try) 2>&5
21134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21135 (exit $ac_status); }; }; then
21136 ac_cv_type_size_t
=yes
21138 echo "$as_me: failed program was:" >&5
21139 sed 's/^/| /' conftest.
$ac_ext >&5
21141 ac_cv_type_size_t
=no
21143 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21145 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
21146 echo "${ECHO_T}$ac_cv_type_size_t" >&6
21147 if test $ac_cv_type_size_t = yes; then
21149 cat >>confdefs.h
<<_ACEOF
21150 #define HAVE_SIZE_T 1
21157 echo "$as_me:$LINENO: checking for mbstate_t" >&5
21158 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
21159 if test "${ac_cv_type_mbstate_t+set}" = set; then
21160 echo $ECHO_N "(cached) $ECHO_C" >&6
21162 cat >conftest.
$ac_ext <<_ACEOF
21165 cat confdefs.h
>>conftest.
$ac_ext
21166 cat >>conftest.
$ac_ext <<_ACEOF
21167 /* end confdefs.h. */
21168 $ac_includes_default
21169 # include <wchar.h>
21173 mbstate_t x; return sizeof x;
21178 rm -f conftest.
$ac_objext
21179 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21180 (eval $ac_compile) 2>conftest.er1
21182 grep -v '^ *+' conftest.er1
>conftest.err
21184 cat conftest.err
>&5
21185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21186 (exit $ac_status); } &&
21187 { ac_try
='test -z "$ac_c_werror_flag"
21188 || test ! -s conftest.err'
21189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21190 (eval $ac_try) 2>&5
21192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21193 (exit $ac_status); }; } &&
21194 { ac_try
='test -s conftest.$ac_objext'
21195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21196 (eval $ac_try) 2>&5
21198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21199 (exit $ac_status); }; }; then
21200 ac_cv_type_mbstate_t
=yes
21202 echo "$as_me: failed program was:" >&5
21203 sed 's/^/| /' conftest.
$ac_ext >&5
21205 ac_cv_type_mbstate_t
=no
21207 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21209 echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
21210 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
21211 if test $ac_cv_type_mbstate_t = yes; then
21213 cat >>confdefs.h
<<\_ACEOF
21214 #define HAVE_MBSTATE_T 1
21219 cat >>confdefs.h
<<\_ACEOF
21220 #define mbstate_t int
21225 echo "$as_me:$LINENO: checking for C restrict keyword" >&5
21226 echo $ECHO_N "checking for C restrict keyword... $ECHO_C" >&6
21227 if test "${emacs_cv_c_restrict+set}" = set; then
21228 echo $ECHO_N "(cached) $ECHO_C" >&6
21230 cat >conftest.
$ac_ext <<_ACEOF
21233 cat confdefs.h
>>conftest.
$ac_ext
21234 cat >>conftest.
$ac_ext <<_ACEOF
21235 /* end confdefs.h. */
21236 void fred (int *restrict x);
21245 rm -f conftest.
$ac_objext
21246 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21247 (eval $ac_compile) 2>conftest.er1
21249 grep -v '^ *+' conftest.er1
>conftest.err
21251 cat conftest.err
>&5
21252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21253 (exit $ac_status); } &&
21254 { ac_try
='test -z "$ac_c_werror_flag"
21255 || test ! -s conftest.err'
21256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21257 (eval $ac_try) 2>&5
21259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21260 (exit $ac_status); }; } &&
21261 { ac_try
='test -s conftest.$ac_objext'
21262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21263 (eval $ac_try) 2>&5
21265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21266 (exit $ac_status); }; }; then
21267 emacs_cv_c_restrict
=yes
21269 echo "$as_me: failed program was:" >&5
21270 sed 's/^/| /' conftest.
$ac_ext >&5
21272 cat >conftest.
$ac_ext <<_ACEOF
21275 cat confdefs.h
>>conftest.
$ac_ext
21276 cat >>conftest.
$ac_ext <<_ACEOF
21277 /* end confdefs.h. */
21278 void fred (int *__restrict x);
21287 rm -f conftest.
$ac_objext
21288 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21289 (eval $ac_compile) 2>conftest.er1
21291 grep -v '^ *+' conftest.er1
>conftest.err
21293 cat conftest.err
>&5
21294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21295 (exit $ac_status); } &&
21296 { ac_try
='test -z "$ac_c_werror_flag"
21297 || test ! -s conftest.err'
21298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21299 (eval $ac_try) 2>&5
21301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21302 (exit $ac_status); }; } &&
21303 { ac_try
='test -s conftest.$ac_objext'
21304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21305 (eval $ac_try) 2>&5
21307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21308 (exit $ac_status); }; }; then
21309 emacs_cv_c_restrict
=__restrict
21311 echo "$as_me: failed program was:" >&5
21312 sed 's/^/| /' conftest.
$ac_ext >&5
21314 emacs_cv_c_restrict
=no
21316 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21318 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21320 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
21321 echo "${ECHO_T}$emacs_cv_c_restrict" >&6
21322 case "$emacs_cv_c_restrict" in
21323 yes) emacs_restrict
=restrict
;;
21324 no
) emacs_restrict
="";;
21325 *) emacs_restrict
="$emacs_cv_c_restrict";;
21327 if test "$emacs_restrict" != __restrict
; then
21329 cat >>confdefs.h
<<_ACEOF
21330 #define __restrict $emacs_restrict
21335 echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
21336 echo $ECHO_N "checking for C restricted array declarations... $ECHO_C" >&6
21337 if test "${emacs_cv_c_restrict_arr+set}" = set; then
21338 echo $ECHO_N "(cached) $ECHO_C" >&6
21340 cat >conftest.
$ac_ext <<_ACEOF
21343 cat confdefs.h
>>conftest.
$ac_ext
21344 cat >>conftest.
$ac_ext <<_ACEOF
21345 /* end confdefs.h. */
21346 void fred (int x[__restrict]);
21355 rm -f conftest.
$ac_objext
21356 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21357 (eval $ac_compile) 2>conftest.er1
21359 grep -v '^ *+' conftest.er1
>conftest.err
21361 cat conftest.err
>&5
21362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21363 (exit $ac_status); } &&
21364 { ac_try
='test -z "$ac_c_werror_flag"
21365 || test ! -s conftest.err'
21366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21367 (eval $ac_try) 2>&5
21369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21370 (exit $ac_status); }; } &&
21371 { ac_try
='test -s conftest.$ac_objext'
21372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21373 (eval $ac_try) 2>&5
21375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21376 (exit $ac_status); }; }; then
21377 emacs_cv_c_restrict_arr
=yes
21379 echo "$as_me: failed program was:" >&5
21380 sed 's/^/| /' conftest.
$ac_ext >&5
21382 emacs_cv_c_restrict_arr
=no
21384 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21386 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
21387 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6
21388 if test "$emacs_cv_c_restrict_arr" = yes; then
21390 cat >>confdefs.h
<<\_ACEOF
21391 #define __restrict_arr __restrict
21398 # Set up the CFLAGS for real compilation, so we can substitute it.
21399 CFLAGS
="$REAL_CFLAGS"
21400 CPPFLAGS
="$REAL_CPPFLAGS"
21402 #### Find out which version of Emacs this is.
21403 version
=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
21404 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
21405 if test x
"${version}" = x
; then
21406 { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
21407 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
21408 { (exit 1); exit 1; }; }
21411 ### Specify what sort of things we'll be editing into Makefile and config.h.
21412 ### Use configuration here uncanonicalized to avoid exceeding size limits.
21448 cat >>confdefs.h
<<_ACEOF
21449 #define EMACS_CONFIGURATION "${canonical}"
21453 cat >>confdefs.h
<<_ACEOF
21454 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
21458 cat >>confdefs.h
<<_ACEOF
21459 #define config_machfile "${machfile}"
21463 cat >>confdefs.h
<<_ACEOF
21464 #define config_opsysfile "${opsysfile}"
21468 cat >>confdefs.h
<<_ACEOF
21469 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
21473 cat >>confdefs.h
<<_ACEOF
21474 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
21478 cat >>confdefs.h
<<_ACEOF
21479 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
21483 cat >>confdefs.h
<<_ACEOF
21484 #define UNEXEC_SRC ${UNEXEC_SRC}
21488 if test "${HAVE_X_WINDOWS}" = "yes" ; then
21490 cat >>confdefs.h
<<\_ACEOF
21491 #define HAVE_X_WINDOWS 1
21495 if test "${USE_X_TOOLKIT}" != "none" ; then
21497 cat >>confdefs.h
<<\_ACEOF
21498 #define USE_X_TOOLKIT 1
21502 if test "${HAVE_X11}" = "yes" ; then
21504 cat >>confdefs.h
<<\_ACEOF
21509 if test "${HAVE_XFREE386}" = "yes" ; then
21511 cat >>confdefs.h
<<\_ACEOF
21512 #define HAVE_XFREE386 1
21516 if test "${HAVE_MENUS}" = "yes" ; then
21518 cat >>confdefs.h
<<\_ACEOF
21519 #define HAVE_MENUS 1
21523 if test "${GNU_MALLOC}" = "yes" ; then
21525 cat >>confdefs.h
<<\_ACEOF
21526 #define GNU_MALLOC 1
21530 if test "${REL_ALLOC}" = "yes" ; then
21532 cat >>confdefs.h
<<\_ACEOF
21533 #define REL_ALLOC 1
21542 #### Report on what we decided to do.
21543 #### Report GTK as a toolkit, even if it doesn't use Xt.
21544 #### It makes printing result more understandable as using GTK sets
21545 #### toolkit_scroll_bars to yes by default.
21546 if test "${HAVE_GTK}" = "yes"; then
21551 Configured for \`${canonical}'.
21553 Where should the build process find the source code? ${srcdir}
21554 What operating system and machine description files should Emacs use?
21555 \`${opsysfile}' and \`${machfile}'
21556 What compiler should emacs be built with? ${CC} ${CFLAGS}
21557 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
21558 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
21559 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
21560 What window system should Emacs use? ${window_system}
21561 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
21563 if test -n "${x_includes}"; then
21564 echo " Where do we find X Windows header files? ${x_includes}"
21566 echo " Where do we find X Windows header files? Standard dirs"
21568 if test -n "${x_libraries}"; then
21569 echo " Where do we find X Windows libraries? ${x_libraries}"
21571 echo " Where do we find X Windows libraries? Standard dirs"
21574 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
21575 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
21576 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
21577 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
21578 echo " Does Emacs use -lungif? ${HAVE_GIF}"
21579 echo " Does Emacs use -lpng? ${HAVE_PNG}"
21580 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
21583 if test "$emacs_cv_randomheap" = warn
; then
21584 { echo "$as_me:$LINENO: WARNING:
21585 **********************************************************************
21587 Heap start address is randomized and no workaround is known.
21588 Emacs will probably dump core when temacs is run in the build phase.
21589 Maybe exec-shield is turned on. Read about exec-shield in \`etc/PROBLEMS'
21590 for further information.
21592 **********************************************************************
21594 echo "$as_me: WARNING:
21595 **********************************************************************
21597 Heap start address is randomized and no workaround is known.
21598 Emacs will probably dump core when temacs is run in the build phase.
21599 Maybe exec-shield is turned on. Read about exec-shield in \`etc/PROBLEMS'
21600 for further information.
21602 **********************************************************************
21606 # Remove any trailing slashes in these variables.
21607 test "${prefix}" != NONE
&&
21608 prefix
=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
21609 test "${exec_prefix}" != NONE
&&
21610 exec_prefix
=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
21612 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
21613 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
21614 ## from Makefile.c can correctly provide the arg `-traditional' to the
21617 cat >conftest.
$ac_ext <<_ACEOF
21620 cat confdefs.h
>>conftest.
$ac_ext
21621 cat >>conftest.
$ac_ext <<_ACEOF
21622 /* end confdefs.h. */
21625 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21626 $EGREP "yes..yes" >/dev
/null
2>&1; then
21627 CPP_NEED_TRADITIONAL
=no
21629 CPP_NEED_TRADITIONAL
=yes
21634 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"
21635 ac_config_commands
="$ac_config_commands default"
21636 cat >confcache
<<\_ACEOF
21637 # This file is a shell script that caches the results of configure
21638 # tests run on this system so they can be shared between configure
21639 # scripts and configure runs, see configure's option --config-cache.
21640 # It is not useful on other systems. If it contains results you don't
21641 # want to keep, you may remove or edit it.
21643 # config.status only pays attention to the cache file if you give it
21644 # the --recheck option to rerun configure.
21646 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21647 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21648 # following values.
21652 # The following way of writing the cache mishandles newlines in values,
21653 # but we know of no workaround that is simple, portable, and efficient.
21654 # So, don't put newlines in cache variables' values.
21655 # Ultrix sh set writes to stderr and can't be redirected directly,
21656 # and sets the high bit in the cache file unless we assign to the vars.
21659 case `(ac_space=' '; set | grep ac_space) 2>&1` in
21661 # `set' does not quote correctly, so add quotes (double-quote
21662 # substitution turns \\\\ into \\, and sed turns \\ into \).
21665 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21668 # `set' quotes correctly as required by POSIX, so do not add quotes.
21670 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
21677 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21679 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21681 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
21682 if test -w $cache_file; then
21683 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
21684 cat confcache
>$cache_file
21686 echo "not updating unwritable cache $cache_file"
21691 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
21692 # Let make expand exec_prefix.
21693 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
21695 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21696 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21697 # trailing colons and then remove the whole line if VPATH becomes empty
21698 # (actually we leave an empty line to preserve line numbers).
21699 if test "x$srcdir" = x.
; then
21700 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
21701 s/:*\$(srcdir):*/:/;
21702 s/:*\${srcdir}:*/:/;
21704 s/^\([^=]*=[ ]*\):*/\1/;
21710 DEFS
=-DHAVE_CONFIG_H
21714 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
21715 # 1. Remove the extension, and $U if already installed.
21716 ac_i
=`echo "$ac_i" |
21717 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
21719 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
21720 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
21722 LIBOBJS
=$ac_libobjs
21724 LTLIBOBJS
=$ac_ltlibobjs
21728 : ${CONFIG_STATUS=./config.status}
21729 ac_clean_files_save
=$ac_clean_files
21730 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
21731 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21732 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21733 cat >$CONFIG_STATUS <<_ACEOF
21735 # Generated by $as_me.
21736 # Run this file to recreate the current configuration.
21737 # Compiler output produced by configure, useful for debugging
21738 # configure, is in config.log if it exists.
21741 ac_cs_recheck=false
21743 SHELL=\${CONFIG_SHELL-$SHELL}
21746 cat >>$CONFIG_STATUS <<\_ACEOF
21747 ## --------------------- ##
21748 ## M4sh Initialization. ##
21749 ## --------------------- ##
21751 # Be Bourne compatible
21752 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
21755 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21756 # is contrary to our usage. Disable this feature.
21757 alias -g '${1+"$@"}'='"$@"'
21758 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
21761 DUALCASE
=1; export DUALCASE
# for MKS sh
21763 # Support unset when possible.
21764 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
21771 # Work around bugs in pre-3.0 UWIN ksh.
21772 $as_unset ENV MAIL MAILPATH
21779 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21780 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21781 LC_TELEPHONE LC_TIME
21783 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21784 eval $as_var=C
; export $as_var
21790 # Required to use basename.
21791 if expr a
: '\(a\)' >/dev
/null
2>&1; then
21797 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
21798 as_basename
=basename
21804 # Name of the executable.
21805 as_me
=`$as_basename "$0" ||
21806 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21807 X"$0" : 'X\(//\)$' \| \
21808 X"$0" : 'X\(/\)$' \| \
21809 . : '\(.\)' 2>/dev/null ||
21811 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
21812 /^X\/\(\/\/\)$/{ s//\1/; q; }
21813 /^X\/\(\/\).*/{ s//\1/; q; }
21817 # PATH needs CR, and LINENO needs CR and PATH.
21818 # Avoid depending upon Character Ranges.
21819 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
21820 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21821 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
21822 as_cr_digits
='0123456789'
21823 as_cr_alnum
=$as_cr_Letters$as_cr_digits
21825 # The user is always right.
21826 if test "${PATH_SEPARATOR+set}" != set; then
21827 echo "#! /bin/sh" >conf$$.sh
21828 echo "exit 0" >>conf$$.sh
21830 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
21839 as_lineno_1
=$LINENO
21840 as_lineno_2
=$LINENO
21841 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
21842 test "x$as_lineno_1" != "x$as_lineno_2" &&
21843 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
21844 # Find who we are. Look in the path if we contain no path at all
21847 *[\\/]* ) as_myself
=$0 ;;
21848 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21849 for as_dir
in $PATH
21852 test -z "$as_dir" && as_dir
=.
21853 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
21858 # We did not find ourselves, most probably we were run as `sh COMMAND'
21859 # in which case we are not to be found in the path.
21860 if test "x$as_myself" = x
; then
21863 if test ! -f "$as_myself"; then
21864 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
21865 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
21866 { (exit 1); exit 1; }; }
21868 case $CONFIG_SHELL in
21870 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21871 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
21874 test -z "$as_dir" && as_dir
=.
21875 for as_base
in sh bash ksh sh5
; do
21878 if ("$as_dir/$as_base" -c '
21879 as_lineno_1=$LINENO
21880 as_lineno_2=$LINENO
21881 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21882 test "x$as_lineno_1" != "x$as_lineno_2" &&
21883 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
21884 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
21885 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
21886 CONFIG_SHELL
=$as_dir/$as_base
21887 export CONFIG_SHELL
21888 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
21896 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21897 # uniformly replaced by the line number. The first 'sed' inserts a
21898 # line-number line before each line; the second 'sed' does the real
21899 # work. The second script uses 'N' to pair each line-number line
21900 # with the numbered line, and appends trailing '-' during
21901 # substitution so that $LINENO is not a special case at line end.
21902 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21903 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
21904 sed '=' <$as_myself |
21909 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
21912 s,^['$as_cr_digits']*\n,,
21913 ' >$as_me.lineno
&&
21914 chmod +x
$as_me.lineno ||
21915 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
21916 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
21917 { (exit 1); exit 1; }; }
21919 # Don't try to exec as it changes $[0], causing all sort of problems
21920 # (the dirname of $[0] is not the place where we might find the
21921 # original and so on. Autoconf is especially sensible to this).
21923 # Exit status is that of the last command.
21928 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
21929 *c
*,-n*) ECHO_N
= ECHO_C
='
21931 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
21932 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
21935 if expr a
: '\(a\)' >/dev
/null
2>&1; then
21941 rm -f conf$$ conf$$.exe conf$$.
file
21943 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
21944 # We could just check for DJGPP; but this test a) works b) is more generic
21945 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
21946 if test -f conf$$.exe
; then
21947 # Don't use ln at all; we don't have any links
21952 elif ln conf$$.
file conf$$
2>/dev
/null
; then
21957 rm -f conf$$ conf$$.exe conf$$.
file
21959 if mkdir
-p .
2>/dev
/null
; then
21962 test -d .
/-p && rmdir .
/-p
21966 as_executable_p
="test -f"
21968 # Sed expression to map a string onto a valid CPP name.
21969 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21971 # Sed expression to map a string onto a valid variable name.
21972 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21976 # We need space, tab and new line, in precisely that order.
21986 # Open the log real soon, to keep \$[0] and so on meaningful, and to
21987 # report actual input values of CONFIG_FILES etc. instead of their
21988 # values after options handling. Logging --version etc. is OK.
21992 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21993 ## Running $as_me. ##
21998 This file was extended by $as_me, which was
21999 generated by GNU Autoconf 2.59. Invocation command line was
22001 CONFIG_FILES = $CONFIG_FILES
22002 CONFIG_HEADERS = $CONFIG_HEADERS
22003 CONFIG_LINKS = $CONFIG_LINKS
22004 CONFIG_COMMANDS = $CONFIG_COMMANDS
22008 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
22012 # Files that config.status was made for.
22013 if test -n "$ac_config_files"; then
22014 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
22017 if test -n "$ac_config_headers"; then
22018 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
22021 if test -n "$ac_config_links"; then
22022 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
22025 if test -n "$ac_config_commands"; then
22026 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
22029 cat >>$CONFIG_STATUS <<\_ACEOF
22032 \`$as_me' instantiates files from templates according to the
22033 current configuration.
22035 Usage: $0 [OPTIONS] [FILE]...
22037 -h, --help print this help, then exit
22038 -V, --version print version number, then exit
22039 -q, --quiet do not print progress messages
22040 -d, --debug don't remove temporary files
22041 --recheck update $as_me by reconfiguring in the same conditions
22042 --file=FILE[:TEMPLATE]
22043 instantiate the configuration file FILE
22044 --header=FILE[:TEMPLATE]
22045 instantiate the configuration header FILE
22047 Configuration files:
22050 Configuration headers:
22053 Configuration commands:
22056 Report bugs to <bug-autoconf@gnu.org>."
22059 cat >>$CONFIG_STATUS <<_ACEOF
22062 configured by $0, generated by GNU Autoconf 2.59,
22063 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
22065 Copyright (C) 2003 Free Software Foundation, Inc.
22066 This config.status script is free software; the Free Software Foundation
22067 gives unlimited permission to copy, distribute and modify it."
22072 cat >>$CONFIG_STATUS <<\_ACEOF
22073 # If no file are specified by the user, then we need to provide default
22074 # value. By we need to know if files were specified by the user.
22080 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
22081 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
22089 *) # This is not an option, so the user has probably given explicit
22092 ac_need_defaults
=false
;;
22096 # Handling of the options.
22098 cat >>$CONFIG_STATUS <<\_ACEOF
22099 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
22101 --version |
--vers* |
-V )
22102 echo "$ac_cs_version"; exit 0 ;;
22104 # Conflict between --help and --header
22105 { { echo "$as_me:$LINENO: error: ambiguous option: $1
22106 Try \`$0 --help' for more information." >&5
22107 echo "$as_me: error: ambiguous option: $1
22108 Try \`$0 --help' for more information." >&2;}
22109 { (exit 1); exit 1; }; };;
22110 --help |
--hel |
-h )
22111 echo "$ac_cs_usage"; exit 0 ;;
22112 --debug |
--d* |
-d )
22114 --file |
--fil |
--fi |
--f )
22116 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
22117 ac_need_defaults
=false
;;
22118 --header |
--heade |
--head |
--hea )
22120 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
22121 ac_need_defaults
=false
;;
22122 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
22123 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
22126 # This is an error.
22127 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
22128 Try \`$0 --help' for more information." >&5
22129 echo "$as_me: error: unrecognized option: $1
22130 Try \`$0 --help' for more information." >&2;}
22131 { (exit 1); exit 1; }; } ;;
22133 *) ac_config_targets
="$ac_config_targets $1" ;;
22139 ac_configure_extra_args
=
22141 if $ac_cs_silent; then
22143 ac_configure_extra_args
="$ac_configure_extra_args --silent"
22147 cat >>$CONFIG_STATUS <<_ACEOF
22148 if \$ac_cs_recheck; then
22149 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22150 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22155 cat >>$CONFIG_STATUS <<_ACEOF
22157 # INIT-COMMANDS section.
22160 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
22166 cat >>$CONFIG_STATUS <<\_ACEOF
22167 for ac_config_target
in $ac_config_targets
22169 case "$ac_config_target" in
22170 # Handling of arguments.
22171 "Makefile" ) CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
22172 "lib-src/Makefile.c" ) CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
22173 "oldXMenu/Makefile" ) CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
22174 "man/Makefile" ) CONFIG_FILES
="$CONFIG_FILES man/Makefile" ;;
22175 "lwlib/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
22176 "src/Makefile.c" ) CONFIG_FILES
="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
22177 "lisp/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
22178 "lispref/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lispref/Makefile" ;;
22179 "lispintro/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lispintro/Makefile" ;;
22180 "leim/Makefile" ) CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
22181 "default" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
22182 "src/config.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
22183 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22184 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22185 { (exit 1); exit 1; }; };;
22189 # If the user did not use the arguments to specify the items to instantiate,
22190 # then the envvar interface is used. Set only those that are not.
22191 # We use the long form for the default assignment because of an extremely
22192 # bizarre bug on SunOS 4.1.3.
22193 if $ac_need_defaults; then
22194 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
22195 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
22196 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
22199 # Have a temporary directory for convenience. Make it in the build tree
22200 # simply because there is no reason to put it here, and in addition,
22201 # creating and moving files from /tmp can sometimes cause problems.
22202 # Create a temporary directory, and hook for its removal unless debugging.
22205 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
22206 trap '{ (exit 1); exit 1; }' 1 2 13 15
22209 # Create a (secure) tmp directory for tmp files.
22212 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
22213 test -n "$tmp" && test -d "$tmp"
22216 tmp
=.
/confstat$$
-$RANDOM
22217 (umask 077 && mkdir
$tmp)
22220 echo "$me: cannot create a temporary directory in ." >&2
22221 { (exit 1); exit 1; }
22226 cat >>$CONFIG_STATUS <<_ACEOF
22229 # CONFIG_FILES section.
22232 # No need to generate the scripts if there are no CONFIG_FILES.
22233 # This happens for instance when ./config.status config.h
22234 if test -n "\$CONFIG_FILES"; then
22235 # Protect against being on the right side of a sed subst in config.status.
22236 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
22237 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
22238 s,@SHELL@,$SHELL,;t t
22239 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
22240 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
22241 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
22242 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
22243 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
22244 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
22245 s,@exec_prefix@,$exec_prefix,;t t
22246 s,@prefix@,$prefix,;t t
22247 s,@program_transform_name@,$program_transform_name,;t t
22248 s,@bindir@,$bindir,;t t
22249 s,@sbindir@,$sbindir,;t t
22250 s,@libexecdir@,$libexecdir,;t t
22251 s,@datadir@,$datadir,;t t
22252 s,@sysconfdir@,$sysconfdir,;t t
22253 s,@sharedstatedir@,$sharedstatedir,;t t
22254 s,@localstatedir@,$localstatedir,;t t
22255 s,@libdir@,$libdir,;t t
22256 s,@includedir@,$includedir,;t t
22257 s,@oldincludedir@,$oldincludedir,;t t
22258 s,@infodir@,$infodir,;t t
22259 s,@mandir@,$mandir,;t t
22260 s,@build_alias@,$build_alias,;t t
22261 s,@host_alias@,$host_alias,;t t
22262 s,@target_alias@,$target_alias,;t t
22263 s,@DEFS@,$DEFS,;t t
22264 s,@ECHO_C@,$ECHO_C,;t t
22265 s,@ECHO_N@,$ECHO_N,;t t
22266 s,@ECHO_T@,$ECHO_T,;t t
22267 s,@LIBS@,$LIBS,;t t
22268 s,@MAINT@,$MAINT,;t t
22269 s,@build@,$build,;t t
22270 s,@build_cpu@,$build_cpu,;t t
22271 s,@build_vendor@,$build_vendor,;t t
22272 s,@build_os@,$build_os,;t t
22273 s,@host@,$host,;t t
22274 s,@host_cpu@,$host_cpu,;t t
22275 s,@host_vendor@,$host_vendor,;t t
22276 s,@host_os@,$host_os,;t t
22278 s,@CFLAGS@,$CFLAGS,;t t
22279 s,@LDFLAGS@,$LDFLAGS,;t t
22280 s,@CPPFLAGS@,$CPPFLAGS,;t t
22281 s,@ac_ct_CC@,$ac_ct_CC,;t t
22282 s,@EXEEXT@,$EXEEXT,;t t
22283 s,@OBJEXT@,$OBJEXT,;t t
22284 s,@LN_S@,$LN_S,;t t
22286 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
22287 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
22288 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
22289 s,@RANLIB@,$RANLIB,;t t
22290 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
22291 s,@INSTALL_INFO@,$INSTALL_INFO,;t t
22292 s,@EGREP@,$EGREP,;t t
22293 s,@LIBSOUND@,$LIBSOUND,;t t
22294 s,@SETARCH@,$SETARCH,;t t
22295 s,@SET_MAKE@,$SET_MAKE,;t t
22296 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
22297 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
22298 s,@GTK_LIBS@,$GTK_LIBS,;t t
22299 s,@ALLOCA@,$ALLOCA,;t t
22300 s,@liblockfile@,$liblockfile,;t t
22301 s,@LIBOBJS@,$LIBOBJS,;t t
22302 s,@NEED_SETGID@,$NEED_SETGID,;t t
22303 s,@KMEM_GROUP@,$KMEM_GROUP,;t t
22304 s,@GETLOADAVG_LIBS@,$GETLOADAVG_LIBS,;t t
22305 s,@version@,$version,;t t
22306 s,@configuration@,$configuration,;t t
22307 s,@canonical@,$canonical,;t t
22308 s,@srcdir@,$srcdir,;t t
22309 s,@lispdir@,$lispdir,;t t
22310 s,@locallisppath@,$locallisppath,;t t
22311 s,@lisppath@,$lisppath,;t t
22312 s,@x_default_search_path@,$x_default_search_path,;t t
22313 s,@etcdir@,$etcdir,;t t
22314 s,@archlibdir@,$archlibdir,;t t
22315 s,@docdir@,$docdir,;t t
22316 s,@bitmapdir@,$bitmapdir,;t t
22317 s,@gamedir@,$gamedir,;t t
22318 s,@gameuser@,$gameuser,;t t
22319 s,@c_switch_system@,$c_switch_system,;t t
22320 s,@c_switch_machine@,$c_switch_machine,;t t
22321 s,@LD_SWITCH_X_SITE@,$LD_SWITCH_X_SITE,;t t
22322 s,@LD_SWITCH_X_SITE_AUX@,$LD_SWITCH_X_SITE_AUX,;t t
22323 s,@C_SWITCH_X_SITE@,$C_SWITCH_X_SITE,;t t
22324 s,@X_TOOLKIT_TYPE@,$X_TOOLKIT_TYPE,;t t
22325 s,@machfile@,$machfile,;t t
22326 s,@opsysfile@,$opsysfile,;t t
22327 s,@carbon_appdir@,$carbon_appdir,;t t
22328 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
22333 cat >>$CONFIG_STATUS <<\_ACEOF
22334 # Split the substitutions into bite-sized pieces for seds with
22335 # small command number limits, like on Digital OSF/1 and HP-UX.
22336 ac_max_sed_lines
=48
22337 ac_sed_frag
=1 # Number of current file.
22338 ac_beg
=1 # First line for current file.
22339 ac_end
=$ac_max_sed_lines # Line after last line for current file.
22342 while $ac_more_lines; do
22343 if test $ac_beg -gt 1; then
22344 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
22346 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
22348 if test ! -s $tmp/subs.frag
; then
22349 ac_more_lines
=false
22351 # The purpose of the label and of the branching condition is to
22352 # speed up the sed processing (if there are no `@' at all, there
22353 # is no need to browse any of the substitutions).
22354 # These are the two extra sed commands mentioned above.
22356 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
22357 if test -z "$ac_sed_cmds"; then
22358 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
22360 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
22362 ac_sed_frag
=`expr $ac_sed_frag + 1`
22364 ac_end
=`expr $ac_end + $ac_max_sed_lines`
22367 if test -z "$ac_sed_cmds"; then
22370 fi # test -n "$CONFIG_FILES"
22373 cat >>$CONFIG_STATUS <<\_ACEOF
22374 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
22375 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22377 - |
*:- |
*:-:* ) # input from stdin
22379 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
22380 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
22381 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
22382 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
22383 * ) ac_file_in
=$ac_file.
in ;;
22386 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
22387 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
22388 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22389 X"$ac_file" : 'X\(//\)[^/]' \| \
22390 X"$ac_file" : 'X\(//\)$' \| \
22391 X"$ac_file" : 'X\(/\)' \| \
22392 . : '\(.\)' 2>/dev/null ||
22394 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22395 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22396 /^X\(\/\/\)$/{ s//\1/; q; }
22397 /^X\(\/\).*/{ s//\1/; q; }
22399 { if $as_mkdir_p; then
22404 while test ! -d "$as_dir"; do
22405 as_dirs
="$as_dir $as_dirs"
22406 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
22407 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22408 X"$as_dir" : 'X\(//\)[^/]' \| \
22409 X"$as_dir" : 'X\(//\)$' \| \
22410 X"$as_dir" : 'X\(/\)' \| \
22411 . : '\(.\)' 2>/dev/null ||
22413 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22414 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22415 /^X\(\/\/\)$/{ s//\1/; q; }
22416 /^X\(\/\).*/{ s//\1/; q; }
22419 test ! -n "$as_dirs" || mkdir
$as_dirs
22420 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22421 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22422 { (exit 1); exit 1; }; }; }
22426 if test "$ac_dir" != .
; then
22427 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22428 # A "../" for each directory in $ac_dir_suffix.
22429 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22431 ac_dir_suffix
= ac_top_builddir
=
22435 .
) # No --srcdir option. We are building in place.
22437 if test -z "$ac_top_builddir"; then
22440 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
22442 [\\/]* | ?
:[\\/]* ) # Absolute path.
22443 ac_srcdir
=$srcdir$ac_dir_suffix;
22444 ac_top_srcdir
=$srcdir ;;
22445 *) # Relative path.
22446 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
22447 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
22450 # Do not use `cd foo && pwd` to compute absolute paths, because
22451 # the directories may not exist.
22453 .
) ac_abs_builddir
="$ac_dir";;
22456 .
) ac_abs_builddir
=`pwd`;;
22457 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
22458 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
22461 case $ac_abs_builddir in
22462 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
22464 case ${ac_top_builddir}.
in
22465 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
22466 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
22467 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
22470 case $ac_abs_builddir in
22471 .
) ac_abs_srcdir
=$ac_srcdir;;
22474 .
) ac_abs_srcdir
=$ac_abs_builddir;;
22475 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
22476 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
22479 case $ac_abs_builddir in
22480 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
22482 case $ac_top_srcdir in
22483 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
22484 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
22485 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
22491 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
22492 *) ac_INSTALL
=$ac_top_builddir$INSTALL ;;
22495 if test x
"$ac_file" != x-
; then
22496 { echo "$as_me:$LINENO: creating $ac_file" >&5
22497 echo "$as_me: creating $ac_file" >&6;}
22500 # Let's still pretend it is `configure' which instantiates (i.e., don't
22501 # use $as_me), people would be surprised to read:
22502 # /* config.h. Generated by config.status. */
22503 if test x
"$ac_file" = x-
; then
22506 configure_input
="$ac_file. "
22508 configure_input
=$configure_input"Generated from `echo $ac_file_in |
22509 sed 's,.*/,,'` by configure."
22511 # First look for the input files in the build tree, otherwise in the
22513 ac_file_inputs
=`IFS=:
22514 for f in $ac_file_in; do
22516 -) echo $tmp/stdin ;;
22518 # Absolute (can't be DOS-style, as IFS=:)
22519 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22520 echo "$as_me: error: cannot find input file: $f" >&2;}
22521 { (exit 1); exit 1; }; }
22524 if test -f "$f"; then
22527 elif test -f "$srcdir/$f"; then
22532 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22533 echo "$as_me: error: cannot find input file: $f" >&2;}
22534 { (exit 1); exit 1; }; }
22537 done` ||
{ (exit 1); exit 1; }
22539 cat >>$CONFIG_STATUS <<_ACEOF
22543 cat >>$CONFIG_STATUS <<\_ACEOF
22545 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
22546 s
,@configure_input@
,$configure_input,;t t
22547 s
,@srcdir@
,$ac_srcdir,;t t
22548 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
22549 s
,@top_srcdir@
,$ac_top_srcdir,;t t
22550 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
22551 s
,@builddir@
,$ac_builddir,;t t
22552 s
,@abs_builddir@
,$ac_abs_builddir,;t t
22553 s
,@top_builddir@
,$ac_top_builddir,;t t
22554 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
22555 s
,@INSTALL@
,$ac_INSTALL,;t t
22556 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
22558 if test x"$ac_file" != x-; then
22559 mv $tmp/out $ac_file
22567 cat >>$CONFIG_STATUS <<\_ACEOF
22570 # CONFIG_HEADER section.
22573 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
22574 # NAME is the cpp macro being defined and VALUE is the value it is being given.
22576 # ac_d sets the value in "#define NAME VALUE" lines.
22577 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
22578 ac_dB
='[ ].*$,\1#\2'
22581 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22582 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
22583 ac_uB
='$,\1#\2define\3'
22587 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
22588 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22590 - |
*:- |
*:-:* ) # input from stdin
22592 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
22593 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
22594 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
22595 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
22596 * ) ac_file_in
=$ac_file.
in ;;
22599 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
22600 echo "$as_me: creating $ac_file" >&6;}
22602 # First look for the input files in the build tree, otherwise in the
22604 ac_file_inputs
=`IFS=:
22605 for f in $ac_file_in; do
22607 -) echo $tmp/stdin ;;
22609 # Absolute (can't be DOS-style, as IFS=:)
22610 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22611 echo "$as_me: error: cannot find input file: $f" >&2;}
22612 { (exit 1); exit 1; }; }
22613 # Do quote $f, to prevent DOS paths from being IFS'd.
22616 if test -f "$f"; then
22619 elif test -f "$srcdir/$f"; then
22624 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22625 echo "$as_me: error: cannot find input file: $f" >&2;}
22626 { (exit 1); exit 1; }; }
22629 done` ||
{ (exit 1); exit 1; }
22630 # Remove the trailing spaces.
22631 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
22635 # Transform confdefs.h into two sed scripts, `conftest.defines' and
22636 # `conftest.undefs', that substitutes the proper values into
22637 # config.h.in to produce config.h. The first handles `#define'
22638 # templates, and the second `#undef' templates.
22639 # And first: Protect against being on the right side of a sed subst in
22640 # config.status. Protect against being in an unquoted here document
22641 # in config.status.
22642 rm -f conftest.defines conftest.undefs
22643 # Using a here document instead of a string reduces the quoting nightmare.
22644 # Putting comments in sed scripts is not portable.
22646 # `end' is used to avoid that the second main sed command (meant for
22647 # 0-ary CPP macros) applies to n-ary macro definitions.
22648 # See the Autoconf documentation for `clear'.
22649 cat >confdef2sed.
sed <<\_ACEOF
22654 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
22656 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
22659 # If some macros were called several times there might be several times
22660 # the same #defines, which is useless. Nevertheless, we may not want to
22661 # sort them, since we want the *last* AC-DEFINE to be honored.
22662 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
22663 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
22664 rm -f confdef2sed.sed
22666 # This sed command replaces #undef with comments. This is necessary, for
22667 # example, in the case of _POSIX_SOURCE, which is predefined and required
22668 # on some systems where configure will not decide to define it.
22669 cat >>conftest.undefs <<\_ACEOF
22670 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
22673 # Break up conftest.defines because some shells have a limit on the size
22674 # of here documents, and old seds have small limits too (100 cmds).
22675 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
22676 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
22677 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
22678 echo ' :' >>$CONFIG_STATUS
22679 rm -f conftest.tail
22680 while grep . conftest.defines >/dev/null
22682 # Write a limited-size here document to $tmp/defines.sed.
22683 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
22684 # Speed up: don't consider the non `#define' lines.
22685 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
22686 # Work around the forget-to-reset-the-flag bug.
22687 echo 't clr' >>$CONFIG_STATUS
22688 echo ': clr' >>$CONFIG_STATUS
22689 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
22691 sed -f $tmp/defines.sed $tmp/in >$tmp/out
22693 mv $tmp/out $tmp/in
22695 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
22696 rm -f conftest.defines
22697 mv conftest.
tail conftest.defines
22699 rm -f conftest.defines
22700 echo ' fi # grep' >>$CONFIG_STATUS
22701 echo >>$CONFIG_STATUS
22703 # Break up conftest.undefs because some shells have a limit on the size
22704 # of here documents, and old seds have small limits too (100 cmds).
22705 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
22706 rm -f conftest.
tail
22707 while grep . conftest.undefs
>/dev
/null
22709 # Write a limited-size here document to $tmp/undefs.sed.
22710 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
22711 # Speed up: don't consider the non
`#undef'
22712 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
22713 # Work around the forget-to-reset-the-flag bug.
22714 echo 't clr' >>$CONFIG_STATUS
22715 echo ': clr' >>$CONFIG_STATUS
22716 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
22718 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
22720 mv $tmp/out $tmp/in
22722 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
22723 rm -f conftest.undefs
22724 mv conftest.tail conftest.undefs
22726 rm -f conftest.undefs
22728 cat >>$CONFIG_STATUS <<\_ACEOF
22729 # Let's still pretend it is `configure
' which instantiates (i.e., don't
22730 # use $as_me), people would be surprised to read:
22731 # /* config.h. Generated by config.status. */
22732 if test x
"$ac_file" = x-
; then
22733 echo "/* Generated by configure. */" >$tmp/config.h
22735 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
22737 cat $tmp/in >>$tmp/config.h
22739 if test x
"$ac_file" != x-
; then
22740 if diff $ac_file $tmp/config.h
>/dev
/null
2>&1; then
22741 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22742 echo "$as_me: $ac_file is unchanged" >&6;}
22744 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
22745 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22746 X"$ac_file" : 'X\(//\)[^/]' \| \
22747 X"$ac_file" : 'X\(//\)$' \| \
22748 X"$ac_file" : 'X\(/\)' \| \
22749 . : '\(.\)' 2>/dev/null ||
22751 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22752 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22753 /^X\(\/\/\)$/{ s//\1/; q; }
22754 /^X\(\/\).*/{ s//\1/; q; }
22756 { if $as_mkdir_p; then
22761 while test ! -d "$as_dir"; do
22762 as_dirs
="$as_dir $as_dirs"
22763 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
22764 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22765 X"$as_dir" : 'X\(//\)[^/]' \| \
22766 X"$as_dir" : 'X\(//\)$' \| \
22767 X"$as_dir" : 'X\(/\)' \| \
22768 . : '\(.\)' 2>/dev/null ||
22770 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22771 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22772 /^X\(\/\/\)$/{ s//\1/; q; }
22773 /^X\(\/\).*/{ s//\1/; q; }
22776 test ! -n "$as_dirs" || mkdir
$as_dirs
22777 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22778 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22779 { (exit 1); exit 1; }; }; }
22782 mv $tmp/config.h
$ac_file
22786 rm -f $tmp/config.h
22790 cat >>$CONFIG_STATUS <<\_ACEOF
22793 # CONFIG_COMMANDS section.
22795 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
22796 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
22797 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
22798 ac_dir
=`(dirname "$ac_dest") 2>/dev/null ||
22799 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22800 X"$ac_dest" : 'X\(//\)[^/]' \| \
22801 X"$ac_dest" : 'X\(//\)$' \| \
22802 X"$ac_dest" : 'X\(/\)' \| \
22803 . : '\(.\)' 2>/dev/null ||
22805 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22806 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22807 /^X\(\/\/\)$/{ s//\1/; q; }
22808 /^X\(\/\).*/{ s//\1/; q; }
22810 { if $as_mkdir_p; then
22815 while test ! -d "$as_dir"; do
22816 as_dirs
="$as_dir $as_dirs"
22817 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
22818 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22819 X"$as_dir" : 'X\(//\)[^/]' \| \
22820 X"$as_dir" : 'X\(//\)$' \| \
22821 X"$as_dir" : 'X\(/\)' \| \
22822 . : '\(.\)' 2>/dev/null ||
22824 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22825 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22826 /^X\(\/\/\)$/{ s//\1/; q; }
22827 /^X\(\/\).*/{ s//\1/; q; }
22830 test ! -n "$as_dirs" || mkdir
$as_dirs
22831 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22832 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22833 { (exit 1); exit 1; }; }; }
22837 if test "$ac_dir" != .
; then
22838 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22839 # A "../" for each directory in $ac_dir_suffix.
22840 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22842 ac_dir_suffix
= ac_top_builddir
=
22846 .
) # No --srcdir option. We are building in place.
22848 if test -z "$ac_top_builddir"; then
22851 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
22853 [\\/]* | ?
:[\\/]* ) # Absolute path.
22854 ac_srcdir
=$srcdir$ac_dir_suffix;
22855 ac_top_srcdir
=$srcdir ;;
22856 *) # Relative path.
22857 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
22858 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
22861 # Do not use `cd foo && pwd` to compute absolute paths, because
22862 # the directories may not exist.
22864 .
) ac_abs_builddir
="$ac_dir";;
22867 .
) ac_abs_builddir
=`pwd`;;
22868 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
22869 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
22872 case $ac_abs_builddir in
22873 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
22875 case ${ac_top_builddir}.
in
22876 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
22877 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
22878 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
22881 case $ac_abs_builddir in
22882 .
) ac_abs_srcdir
=$ac_srcdir;;
22885 .
) ac_abs_srcdir
=$ac_abs_builddir;;
22886 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
22887 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
22890 case $ac_abs_builddir in
22891 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
22893 case $ac_top_srcdir in
22894 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
22895 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
22896 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
22901 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
22902 echo "$as_me: executing $ac_dest commands" >&6;}
22906 ### Make the necessary directories, if they don't exist.
22907 for dir
in etc lisp
; do
22908 test -d ${dir} || mkdir
${dir}
22911 # Build src/Makefile from ${srcdir}/src/Makefile.c
22912 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
22913 # This must be done after src/config.h is built, since we rely on that file.
22915 # Now get this: Some word that is part of the ${srcdir} directory name
22916 # or the ${configuration} value might, just might, happen to be an
22917 # identifier like `sun4' or `i386' or something, and be predefined by
22918 # the C preprocessor to some helpful value like 1, or maybe the empty
22919 # string. Needless to say consequent macro substitutions are less
22920 # than conducive to the makefile finding the correct directory.
22921 undefs
="`echo $top_srcdir $configuration $canonical |
22922 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
22923 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
22926 echo creating src
/epaths.h
22927 ${MAKE-make} epaths-force
22929 # As of 2000-11-19, newest development versions of GNU cpp preprocess
22930 # `..' to `. .' unless invoked with -traditional
22932 if test "x$GCC" = xyes
&& test "x$CPP_NEED_TRADITIONAL" = xyes
; then
22933 CPPFLAGS
="$CPPFLAGS -traditional"
22936 echo creating lib-src
/Makefile
22938 rm -f junk.c junk1.c junk2.c
22939 sed -e '/start of cpp stuff/q' \
22940 < Makefile.c
> junk1.c
22941 sed -e '1,/start of cpp stuff/d'\
22942 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
22943 < Makefile.c
> junk.c
22944 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
22945 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
22946 cat junk1.c junk2.c
> Makefile.new
22947 rm -f junk.c junk1.c junk2.c
22948 chmod 444 Makefile.new
22949 mv -f Makefile.new Makefile
22952 echo creating src
/Makefile
22954 rm -f junk.c junk1.c junk2.c
22955 sed -e '/start of cpp stuff/q' \
22956 < Makefile.c
> junk1.c
22957 sed -e '1,/start of cpp stuff/d'\
22958 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
22959 < Makefile.c
> junk.c
22960 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
22961 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
22962 cat junk1.c junk2.c
> Makefile.new
22963 rm -f junk.c junk1.c junk2.c
22964 chmod 444 Makefile.new
22965 mv -f Makefile.new Makefile
22968 if test ! -f src
/.gdbinit
&& test -f $srcdir/src
/.gdbinit
; then
22969 echo creating src
/.gdbinit
22970 echo source $srcdir/src
/.gdbinit
> src
/.gdbinit
22973 # This is how we know whether to re-run configure in certain cases.
22974 touch src
/config.stamp
22981 cat >>$CONFIG_STATUS <<\_ACEOF
22983 { (exit 0); exit 0; }
22985 chmod +x
$CONFIG_STATUS
22986 ac_clean_files
=$ac_clean_files_save
22989 # configure is writing to config.log, and then calls config.status.
22990 # config.status does its own redirection, appending to config.log.
22991 # Unfortunately, on DOS this fails, as config.log is still kept open
22992 # by configure, so config.status won't be able to write to it; its
22993 # output is simply discarded. So we exec the FD to /dev/null,
22994 # effectively closing config.log, so it can be properly (re)opened and
22995 # appended to by config.status. When coming back to configure, we
22996 # need to make the FD available again.
22997 if test "$no_create" != yes; then
22999 ac_config_status_args
=
23000 test "$silent" = yes &&
23001 ac_config_status_args
="$ac_config_status_args --quiet"
23003 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
23005 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23006 # would make configure fail if this is the last instruction.
23007 $ac_cs_success ||
{ (exit 1); exit 1; }