2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
22 DUALCASE
=1; export DUALCASE
# for MKS sh
24 # Support unset when possible.
25 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C
; export $as_var
51 # Required to use basename.
52 if expr a
: '\(a\)' >/dev
/null
2>&1; then
58 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
65 # Name of the executable.
66 as_me
=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits
='0123456789'
84 as_cr_alnum
=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
91 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
102 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
105 # Find who we are. Look in the path if we contain no path at all
108 *[\\/]* ) as_myself
=$0 ;;
109 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
113 test -z "$as_dir" && as_dir
=.
114 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x
; then
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
131 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
134 test -z "$as_dir" && as_dir
=.
135 for as_base
in sh bash ksh sh5
; do
138 if ("$as_dir/$as_base" -c '
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
144 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
145 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
146 CONFIG_SHELL
=$as_dir/$as_base
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 s,^['$as_cr_digits']*\n,,
174 chmod +x
$as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
182 # Exit status is that of the last command.
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c
*,-n*) ECHO_N
= ECHO_C
='
190 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
191 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
194 if expr a
: '\(a\)' >/dev
/null
2>&1; then
200 rm -f conf$$ conf$$.exe conf$$.
file
202 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe
; then
206 # Don't use ln at all; we don't have any links
211 elif ln conf$$.
file conf$$
2>/dev
/null
; then
216 rm -f conf$$ conf$$.exe conf$$.
file
218 if mkdir
-p .
2>/dev
/null
; then
221 test -d .
/-p && rmdir .
/-p
225 as_executable_p
="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
235 # We need space, tab and new line, in precisely that order.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
254 ac_default_prefix
=/usr
/local
255 ac_config_libobj_dir
=.
260 SHELL
=${CONFIG_SHELL-/bin/sh}
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
267 # Identity of this package.
274 ac_unique_file
="src/lisp.h"
275 ac_config_libobj_dir
=src
276 # Factoring default headers for most tests.
277 ac_includes_default
="\
280 # include <sys/types.h>
283 # include <sys/stat.h>
294 # if !STDC_HEADERS && HAVE_MEMORY_H
300 # include <strings.h>
303 # include <inttypes.h>
313 ac_subst_vars
='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS MAINT build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT LN_S CPP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA RANLIB ac_ct_RANLIB INSTALL_INFO EGREP LIBSOUND SET_MAKE PKG_CONFIG GTK_CFLAGS GTK_LIBS ALLOCA liblockfile LIBOBJS NEED_SETGID KMEM_GROUP GETLOADAVG_LIBS version configuration canonical srcdir lispdir locallisppath lisppath x_default_search_path etcdir archlibdir docdir bitmapdir gamedir gameuser c_switch_system c_switch_machine LD_SWITCH_X_SITE LD_SWITCH_X_SITE_AUX C_SWITCH_X_SITE X_TOOLKIT_TYPE machfile opsysfile carbon_appdir LTLIBOBJS'
316 # Initialize some variables set by options.
318 ac_init_version
=false
319 # The variables have the same names as the options, with
320 # dashes changed to underlines.
328 program_transform_name
=s
,x
,x
,
336 # Installation directory options.
337 # These are left unexpanded so users can "make install exec_prefix=/foo"
338 # and all the variables that are supposed to be based on exec_prefix
339 # by default will actually change.
340 # Use braces instead of parens because sh, perl, etc. also accept them.
341 bindir
='${exec_prefix}/bin'
342 sbindir
='${exec_prefix}/sbin'
343 libexecdir
='${exec_prefix}/libexec'
344 datadir
='${prefix}/share'
345 sysconfdir
='${prefix}/etc'
346 sharedstatedir
='${prefix}/com'
347 localstatedir
='${prefix}/var'
348 libdir
='${exec_prefix}/lib'
349 includedir
='${prefix}/include'
350 oldincludedir
='/usr/include'
351 infodir
='${prefix}/info'
352 mandir
='${prefix}/man'
357 # If the previous option needs an argument, assign it.
358 if test -n "$ac_prev"; then
359 eval "$ac_prev=\$ac_option"
364 ac_optarg
=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
366 # Accept the important Cygnus configure options, so we can diagnose typos.
370 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
372 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
375 -build |
--build |
--buil |
--bui |
--bu)
376 ac_prev
=build_alias
;;
377 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
378 build_alias
=$ac_optarg ;;
380 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
381 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
382 ac_prev
=cache_file
;;
383 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
384 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
385 cache_file
=$ac_optarg ;;
388 cache_file
=config.cache
;;
390 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
392 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
394 datadir
=$ac_optarg ;;
396 -disable-* |
--disable-*)
397 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
398 # Reject names that are not valid shell variable names.
399 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
400 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
401 { (exit 1); exit 1; }; }
402 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
403 eval "enable_$ac_feature=no" ;;
405 -enable-* |
--enable-*)
406 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
407 # Reject names that are not valid shell variable names.
408 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
409 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
410 { (exit 1); exit 1; }; }
411 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
413 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
416 eval "enable_$ac_feature='$ac_optarg'" ;;
418 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
419 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
420 |
--exec |
--exe |
--ex)
421 ac_prev
=exec_prefix
;;
422 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
423 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
424 |
--exec=* |
--exe=* |
--ex=*)
425 exec_prefix
=$ac_optarg ;;
427 -gas |
--gas |
--ga |
--g)
428 # Obsolete; use --with-gas.
431 -help |
--help |
--hel |
--he |
-h)
433 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
434 ac_init_help
=recursive
;;
435 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
436 ac_init_help
=short
;;
438 -host |
--host |
--hos |
--ho)
439 ac_prev
=host_alias
;;
440 -host=* |
--host=* |
--hos=* |
--ho=*)
441 host_alias
=$ac_optarg ;;
443 -includedir |
--includedir |
--includedi |
--included |
--include \
444 |
--includ |
--inclu |
--incl |
--inc)
445 ac_prev
=includedir
;;
446 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
447 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
448 includedir
=$ac_optarg ;;
450 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
452 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
453 infodir
=$ac_optarg ;;
455 -libdir |
--libdir |
--libdi |
--libd)
457 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
460 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
461 |
--libexe |
--libex |
--libe)
462 ac_prev
=libexecdir
;;
463 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
464 |
--libexe=* |
--libex=* |
--libe=*)
465 libexecdir
=$ac_optarg ;;
467 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
468 |
--localstate |
--localstat |
--localsta |
--localst \
469 |
--locals |
--local |
--loca |
--loc |
--lo)
470 ac_prev
=localstatedir
;;
471 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
472 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
473 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
474 localstatedir
=$ac_optarg ;;
476 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
478 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
482 # Obsolete; use --without-fp.
485 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
486 |
--no-cr |
--no-c |
-n)
489 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
490 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
493 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
494 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
495 |
--oldin |
--oldi |
--old |
--ol |
--o)
496 ac_prev
=oldincludedir
;;
497 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
498 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
499 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
500 oldincludedir
=$ac_optarg ;;
502 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
504 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
507 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
508 |
--program-pre |
--program-pr |
--program-p)
509 ac_prev
=program_prefix
;;
510 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
511 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
512 program_prefix
=$ac_optarg ;;
514 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
515 |
--program-suf |
--program-su |
--program-s)
516 ac_prev
=program_suffix
;;
517 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
518 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
519 program_suffix
=$ac_optarg ;;
521 -program-transform-name |
--program-transform-name \
522 |
--program-transform-nam |
--program-transform-na \
523 |
--program-transform-n |
--program-transform- \
524 |
--program-transform |
--program-transfor \
525 |
--program-transfo |
--program-transf \
526 |
--program-trans |
--program-tran \
527 |
--progr-tra |
--program-tr |
--program-t)
528 ac_prev
=program_transform_name
;;
529 -program-transform-name=* |
--program-transform-name=* \
530 |
--program-transform-nam=* |
--program-transform-na=* \
531 |
--program-transform-n=* |
--program-transform-=* \
532 |
--program-transform=* |
--program-transfor=* \
533 |
--program-transfo=* |
--program-transf=* \
534 |
--program-trans=* |
--program-tran=* \
535 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
536 program_transform_name
=$ac_optarg ;;
538 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
539 |
-silent |
--silent |
--silen |
--sile |
--sil)
542 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
544 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
546 sbindir
=$ac_optarg ;;
548 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
549 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
550 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
552 ac_prev
=sharedstatedir
;;
553 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
554 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
555 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
557 sharedstatedir
=$ac_optarg ;;
559 -site |
--site |
--sit)
561 -site=* |
--site=* |
--sit=*)
564 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
566 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
569 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
570 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
571 ac_prev
=sysconfdir
;;
572 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
573 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
574 sysconfdir
=$ac_optarg ;;
576 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
577 ac_prev
=target_alias
;;
578 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
579 target_alias
=$ac_optarg ;;
581 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
584 -version |
--version |
--versio |
--versi |
--vers |
-V)
588 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
589 # Reject names that are not valid shell variable names.
590 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
591 { echo "$as_me: error: invalid package name: $ac_package" >&2
592 { (exit 1); exit 1; }; }
593 ac_package
=`echo $ac_package| sed 's/-/_/g'`
595 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
598 eval "with_$ac_package='$ac_optarg'" ;;
600 -without-* |
--without-*)
601 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
602 # Reject names that are not valid shell variable names.
603 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
604 { echo "$as_me: error: invalid package name: $ac_package" >&2
605 { (exit 1); exit 1; }; }
606 ac_package
=`echo $ac_package | sed 's/-/_/g'`
607 eval "with_$ac_package=no" ;;
610 # Obsolete; use --with-x.
613 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
614 |
--x-incl |
--x-inc |
--x-in |
--x-i)
615 ac_prev
=x_includes
;;
616 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
617 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
618 x_includes
=$ac_optarg ;;
620 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
621 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
622 ac_prev
=x_libraries
;;
623 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
624 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
625 x_libraries
=$ac_optarg ;;
627 -*) { echo "$as_me: error: unrecognized option: $ac_option
628 Try \`$0 --help' for more information." >&2
629 { (exit 1); exit 1; }; }
633 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
634 # Reject names that are not valid shell variable names.
635 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
636 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
637 { (exit 1); exit 1; }; }
638 ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
639 eval "$ac_envvar='$ac_optarg'"
643 # FIXME: should be removed in autoconf 3.0.
644 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
645 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
646 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
647 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
653 if test -n "$ac_prev"; then
654 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
655 { echo "$as_me: error: missing argument to $ac_option" >&2
656 { (exit 1); exit 1; }; }
659 # Be sure to have absolute paths.
660 for ac_var
in exec_prefix prefix
662 eval ac_val
=$
`echo $ac_var`
664 [\\/$
]* | ?
:[\\/]* | NONE |
'' ) ;;
665 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
666 { (exit 1); exit 1; }; };;
670 # Be sure to have absolute paths.
671 for ac_var
in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
672 localstatedir libdir includedir oldincludedir infodir mandir
674 eval ac_val
=$
`echo $ac_var`
676 [\\/$
]* | ?
:[\\/]* ) ;;
677 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
678 { (exit 1); exit 1; }; };;
682 # There might be people who depend on the old broken behavior: `$host'
683 # used to hold the argument of --host etc.
684 # FIXME: To remove some day.
689 # FIXME: To remove some day.
690 if test "x$host_alias" != x
; then
691 if test "x$build_alias" = x
; then
692 cross_compiling
=maybe
693 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
694 If a cross compiler is detected then cross compile mode will be used." >&2
695 elif test "x$build_alias" != "x$host_alias"; then
701 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
703 test "$silent" = yes && exec 6>/dev
/null
706 # Find the source files, if location was not specified.
707 if test -z "$srcdir"; then
708 ac_srcdir_defaulted
=yes
709 # Try the directory containing this script, then its parent.
710 ac_confdir
=`(dirname "$0") 2>/dev/null ||
711 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
712 X"$0" : 'X\(//\)[^/]' \| \
713 X"$0" : 'X\(//\)$' \| \
714 X"$0" : 'X\(/\)' \| \
715 . : '\(.\)' 2>/dev/null ||
717 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
718 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
719 /^X\(\/\/\)$/{ s//\1/; q; }
720 /^X\(\/\).*/{ s//\1/; q; }
723 if test ! -r $srcdir/$ac_unique_file; then
727 ac_srcdir_defaulted
=no
729 if test ! -r $srcdir/$ac_unique_file; then
730 if test "$ac_srcdir_defaulted" = yes; then
731 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
732 { (exit 1); exit 1; }; }
734 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
735 { (exit 1); exit 1; }; }
738 (cd $srcdir && test -r .
/$ac_unique_file) 2>/dev
/null ||
739 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
740 { (exit 1); exit 1; }; }
741 srcdir
=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
742 ac_env_build_alias_set
=${build_alias+set}
743 ac_env_build_alias_value
=$build_alias
744 ac_cv_env_build_alias_set
=${build_alias+set}
745 ac_cv_env_build_alias_value
=$build_alias
746 ac_env_host_alias_set
=${host_alias+set}
747 ac_env_host_alias_value
=$host_alias
748 ac_cv_env_host_alias_set
=${host_alias+set}
749 ac_cv_env_host_alias_value
=$host_alias
750 ac_env_target_alias_set
=${target_alias+set}
751 ac_env_target_alias_value
=$target_alias
752 ac_cv_env_target_alias_set
=${target_alias+set}
753 ac_cv_env_target_alias_value
=$target_alias
754 ac_env_CC_set
=${CC+set}
756 ac_cv_env_CC_set
=${CC+set}
757 ac_cv_env_CC_value
=$CC
758 ac_env_CFLAGS_set
=${CFLAGS+set}
759 ac_env_CFLAGS_value
=$CFLAGS
760 ac_cv_env_CFLAGS_set
=${CFLAGS+set}
761 ac_cv_env_CFLAGS_value
=$CFLAGS
762 ac_env_LDFLAGS_set
=${LDFLAGS+set}
763 ac_env_LDFLAGS_value
=$LDFLAGS
764 ac_cv_env_LDFLAGS_set
=${LDFLAGS+set}
765 ac_cv_env_LDFLAGS_value
=$LDFLAGS
766 ac_env_CPPFLAGS_set
=${CPPFLAGS+set}
767 ac_env_CPPFLAGS_value
=$CPPFLAGS
768 ac_cv_env_CPPFLAGS_set
=${CPPFLAGS+set}
769 ac_cv_env_CPPFLAGS_value
=$CPPFLAGS
770 ac_env_CPP_set
=${CPP+set}
771 ac_env_CPP_value
=$CPP
772 ac_cv_env_CPP_set
=${CPP+set}
773 ac_cv_env_CPP_value
=$CPP
776 # Report the --help message.
778 if test "$ac_init_help" = "long"; then
779 # Omit some internal or obsolete options to make the list less imposing.
780 # This message is too long to be a string in the A/UX 3.1 sh.
782 \`configure' configures this package to adapt to many kinds of systems.
784 Usage: $0 [OPTION]... [VAR=VALUE]...
786 To assign environment variables (e.g., CC, CFLAGS...), specify them as
787 VAR=VALUE. See below for descriptions of some of the useful variables.
789 Defaults for the options are specified in brackets.
792 -h, --help display this help and exit
793 --help=short display options specific to this package
794 --help=recursive display the short help of all the included packages
795 -V, --version display version information and exit
796 -q, --quiet, --silent do not print \`checking...' messages
797 --cache-file=FILE cache test results in FILE [disabled]
798 -C, --config-cache alias for \`--cache-file=config.cache'
799 -n, --no-create do not create output files
800 --srcdir=DIR find the sources in DIR [configure dir or \`..']
805 Installation directories:
806 --prefix=PREFIX install architecture-independent files in PREFIX
808 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
811 By default, \`make install' will install all the files in
812 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
813 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
814 for instance \`--prefix=\$HOME'.
816 For better control, use the options below.
818 Fine tuning of the installation directories:
819 --bindir=DIR user executables [EPREFIX/bin]
820 --sbindir=DIR system admin executables [EPREFIX/sbin]
821 --libexecdir=DIR program executables [EPREFIX/libexec]
822 --datadir=DIR read-only architecture-independent data [PREFIX/share]
823 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
824 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
825 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
826 --libdir=DIR object code libraries [EPREFIX/lib]
827 --includedir=DIR C header files [PREFIX/include]
828 --oldincludedir=DIR C header files for non-gcc [/usr/include]
829 --infodir=DIR info documentation [PREFIX/info]
830 --mandir=DIR man documentation [PREFIX/man]
836 --program-prefix=PREFIX prepend PREFIX to installed program names
837 --program-suffix=SUFFIX append SUFFIX to installed program names
838 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
841 --x-includes=DIR X include files are
in DIR
842 --x-libraries=DIR X library files are
in DIR
845 --build=BUILD configure
for building on BUILD
[guessed
]
846 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
850 if test -n "$ac_init_help"; then
855 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
856 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
857 --enable-carbon-app[=DIR
] [DIR
=/Application
]
858 specify
install directory
for Emacs.app on Mac OS X
859 --enable-asserts compile code with asserts enabled
860 --enable-maintainer-mode enable make rules and dependencies not useful
861 (and sometimes confusing
) to the casual installer
862 --disable-largefile omit support
for large files
865 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
866 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
867 --without-gcc don
't use GCC to compile Emacs if GCC is found
868 --without-pop don't support POP
mail retrieval with movemail
869 --with-kerberos support Kerberos-authenticated POP
870 --with-kerberos5 support Kerberos version
5 authenticated POP
871 --with-hesiod support Hesiod to get the POP server
host
872 --without-sound don
't compile with sound support
873 --with-x-toolkit=KIT use an X toolkit
874 (KIT = yes/lucid/athena/motif/gtk/no)
875 --with-xpm use -lXpm for displaying XPM images
876 --with-jpeg use -ljpeg for displaying JPEG images
877 --with-tiff use -ltiff for displaying TIFF images
878 --with-gif use -lungif for displaying GIF images
879 --with-png use -lpng for displaying PNG images
880 --with-gtk use GTK (same as --with-x-toolkit=gtk)
881 --with-pkg-config-prog Path to pkg-config to use for finding GTK
882 --without-toolkit-scroll-bars
883 don't use Motif or Xaw3d scroll bars
884 --without-xim don
't use X11 XIM
885 --without-carbon don't use Carbon GUI on Mac OS X
886 --with-x use the X Window System
888 Some influential environment variables
:
889 CC C compiler
command
890 CFLAGS C compiler flags
891 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
892 nonstandard directory
<lib dir
>
893 CPPFLAGS C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if you have
894 headers
in a nonstandard directory
<include dir
>
897 Use these variables to override the choices made by
`configure' or to help
898 it to find libraries and programs with nonstandard names/locations.
903 if test "$ac_init_help" = "recursive"; then
904 # If there are subdirs, report their specific --help.
906 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
907 test -d $ac_dir || continue
910 if test "$ac_dir" != .; then
911 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
912 # A "../" for each directory in $ac_dir_suffix.
913 ac_top_builddir=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,../,g'`
915 ac_dir_suffix= ac_top_builddir=
919 .) # No --srcdir option. We are building in place.
921 if test -z "$ac_top_builddir"; then
924 ac_top_srcdir=`echo $ac_top_builddir |
sed 's,/$,,'`
926 [\\/]* | ?:[\\/]* ) # Absolute path.
927 ac_srcdir=$srcdir$ac_dir_suffix;
928 ac_top_srcdir=$srcdir ;;
930 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
931 ac_top_srcdir=$ac_top_builddir$srcdir ;;
934 # Do not use `cd foo
&& pwd` to compute absolute paths, because
935 # the directories may not exist.
937 .) ac_abs_builddir="$ac_dir";;
940 .) ac_abs_builddir=`pwd`;;
941 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
942 *) ac_abs_builddir=`pwd`/"$ac_dir";;
945 case $ac_abs_builddir in
946 .) ac_abs_top_builddir=${ac_top_builddir}.;;
948 case ${ac_top_builddir}. in
949 .) ac_abs_top_builddir=$ac_abs_builddir;;
950 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
951 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
954 case $ac_abs_builddir in
955 .) ac_abs_srcdir=$ac_srcdir;;
958 .) ac_abs_srcdir=$ac_abs_builddir;;
959 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
960 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
963 case $ac_abs_builddir in
964 .) ac_abs_top_srcdir=$ac_top_srcdir;;
966 case $ac_top_srcdir in
967 .) ac_abs_top_srcdir=$ac_abs_builddir;;
968 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
969 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
974 # Check for guested configure; otherwise get Cygnus style configure.
975 if test -f $ac_srcdir/configure.gnu; then
977 $SHELL $ac_srcdir/configure.gnu --help=recursive
978 elif test -f $ac_srcdir/configure; then
980 $SHELL $ac_srcdir/configure --help=recursive
981 elif test -f $ac_srcdir/configure.ac ||
982 test -f $ac_srcdir/configure.in; then
986 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
992 test -n "$ac_init_help" && exit 0
993 if $ac_init_version; then
996 Copyright (C) 2003 Free Software Foundation, Inc.
997 This configure script is free software; the Free Software Foundation
998 gives unlimited permission to copy, distribute and modify it.
1004 This file contains any messages produced by compilers while
1005 running configure, to aid debugging if configure makes a mistake.
1007 It was created by $as_me, which was
1008 generated by GNU Autoconf 2.59. Invocation command line was
1019 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1020 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1021 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1022 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1023 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1025 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1026 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1028 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1029 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1030 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1031 hostinfo = `(hostinfo
) 2>/dev
/null ||
echo unknown
`
1032 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1033 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1034 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1042 test -z "$as_dir" && as_dir=.
1043 echo "PATH: $as_dir"
1058 # Keep a trace of the command line.
1059 # Strip out --no-create and --no-recursion so they do not pile up.
1060 # Strip out --silent because we don't want to record it for future runs.
1061 # Also quote any args containing shell meta-characters.
1062 # Make two passes to allow for proper duplicate-argument suppression.
1067 ac_must_keep_next=false
1073 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1074 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1075 | -silent | --silent | --silen | --sile | --sil)
1077 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1078 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1081 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1083 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1084 if test $ac_must_keep_next = true; then
1085 ac_must_keep_next=false # Got value, back to normal.
1088 *=* | --config-cache | -C | -disable-* | --disable-* \
1089 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1090 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1091 | -with-* | --with-* | -without-* | --without-* | --x)
1092 case "$ac_configure_args0 " in
1093 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1096 -* ) ac_must_keep_next=true ;;
1099 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1100 # Get rid of the leading space.
1106 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1107 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1109 # When interrupted or exit'd, cleanup temporary files, and complete
1110 # config.log. We remove comments because anyway the quotes in there
1111 # would cause problems or look ugly.
1112 # WARNING: Be sure not to use single quotes in there, as some shells,
1113 # such as our DU 5.0 friend, will then `close
' the trap.
1114 trap 'exit_status
=$?
1115 # Save into config.log some information that might help in debugging.
1120 ## ---------------- ##
1121 ## Cache variables. ##
1122 ## ---------------- ##
1125 # The following way of writing the cache mishandles newlines in values,
1128 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1131 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1132 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1136 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1143 ## ----------------- ##
1144 ## Output variables. ##
1145 ## ----------------- ##
1148 for ac_var
in $ac_subst_vars
1150 eval ac_val
=$
`echo $ac_var`
1151 echo "$ac_var='"'"'$ac_val'"'"'"
1155 if test -n "$ac_subst_files"; then
1162 for ac_var
in $ac_subst_files
1164 eval ac_val
=$
`echo $ac_var`
1165 echo "$ac_var='"'"'$ac_val'"'"'"
1170 if test -s confdefs.h
; then
1177 sed "/^$/d" confdefs.h |
sort
1180 test "$ac_signal" != 0 &&
1181 echo "$as_me: caught signal $ac_signal"
1182 echo "$as_me: exit $exit_status"
1184 rm -f core
*.core
&&
1185 rm -rf conftest
* confdefs
* conf$$
* $ac_clean_files &&
1188 for ac_signal in 1 2 13 15; do
1189 trap 'ac_signal
='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1193 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1194 rm -rf conftest* confdefs.h
1195 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1198 # Predefined preprocessor variables.
1200 cat >>confdefs.h <<_ACEOF
1201 #define PACKAGE_NAME "$PACKAGE_NAME"
1205 cat >>confdefs.h <<_ACEOF
1206 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1210 cat >>confdefs.h <<_ACEOF
1211 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1215 cat >>confdefs.h <<_ACEOF
1216 #define PACKAGE_STRING "$PACKAGE_STRING"
1220 cat >>confdefs.h <<_ACEOF
1221 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1225 # Let the site file select an alternate cache file if it wants to.
1226 # Prefer explicitly selected file to automatically selected ones.
1227 if test -z "$CONFIG_SITE"; then
1228 if test "x$prefix" != xNONE; then
1229 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1231 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1234 for ac_site_file in $CONFIG_SITE; do
1235 if test -r "$ac_site_file"; then
1236 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1237 echo "$as_me: loading site script $ac_site_file" >&6;}
1238 sed 's
/^
/|
/' "$ac_site_file" >&5
1243 if test -r "$cache_file"; then
1244 # Some versions of bash will fail to source /dev/null (special
1245 # files actually), so we avoid doing that.
1246 if test -f "$cache_file"; then
1247 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1248 echo "$as_me: loading cache $cache_file" >&6;}
1250 [\\/]* | ?:[\\/]* ) . $cache_file;;
1251 *) . ./$cache_file;;
1255 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1256 echo "$as_me: creating cache $cache_file" >&6;}
1260 # Check that the precious variables saved in the cache have kept the same
1262 ac_cache_corrupted=false
1263 for ac_var in `(set) 2>&1 |
1264 sed -n 's
/^ac_env_\
([a-zA-Z_0-9
]*\
)_set
=.
*/\
1/p
'`; do
1265 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1266 eval ac_new_set=\$ac_env_${ac_var}_set
1267 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1268 eval ac_new_val="\$ac_env_${ac_var}_value"
1269 case $ac_old_set,$ac_new_set in
1271 { echo "$as_me:$LINENO: error: \`$ac_var' was
set to \
`$ac_old_val' in the previous run" >&5
1272 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&2;}
1273 ac_cache_corrupted=: ;;
1275 { echo "$as_me:$LINENO: error
: \
`$ac_var' was not set in the previous run" >&5
1276 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1277 ac_cache_corrupted=: ;;
1280 if test "x$ac_old_val" != "x$ac_new_val"; then
1281 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run
:" >&5
1282 echo "$as_me: error
: \
`$ac_var' has changed since the previous run:" >&2;}
1283 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1284 echo "$as_me: former value: $ac_old_val" >&2;}
1285 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1286 echo "$as_me: current value: $ac_new_val" >&2;}
1287 ac_cache_corrupted=:
1290 # Pass precious variables to config.status.
1291 if test "$ac_new_set" = set; then
1293 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1294 ac_arg=$ac_var=`echo "$ac_new_val" |
sed "s/'/'\\\\\\\\''/g"` ;;
1295 *) ac_arg=$ac_var=$ac_new_val ;;
1297 case " $ac_configure_args " in
1298 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1299 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1303 if $ac_cache_corrupted; then
1304 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1305 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1306 { { echo "$as_me:$LINENO: error: run \`make distclean
' and/or \`rm $cache_file' and start over
" >&5
1307 echo "$as_me: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1308 { (exit 1); exit 1; }; }
1312 ac_cpp='$CPP $CPPFLAGS'
1313 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
1314 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
1315 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1335 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
1338 test "$program_prefix" != NONE &&
1339 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1340 # Use a double $ so make ignores it.
1341 test "$program_suffix" != NONE &&
1342 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1343 # Double any \ or $. echo might interpret backslashes.
1344 # By default was `s,x,x', remove it
if useless.
1345 cat <<\_ACEOF
>conftest.
sed
1346 s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//
1348 program_transform_name
=`echo $program_transform_name | sed -f conftest.sed`
1352 lispdir
='${datadir}/emacs/${version}/lisp'
1353 locallisppath
='${datadir}/emacs/${version}/site-lisp:'\
1354 '${datadir}/emacs/site-lisp:${datadir}/emacs/${version}/leim'
1355 lisppath
='${locallisppath}:${lispdir}'
1356 etcdir
='${datadir}/emacs/${version}/etc'
1357 archlibdir
='${libexecdir}/emacs/${version}/${configuration}'
1358 docdir
='${datadir}/emacs/${version}/etc'
1359 gamedir
='${localstatedir}/games/emacs'
1364 # Check whether --with-gcc or --without-gcc was given.
1365 if test "${with_gcc+set}" = set; then
1370 # Check whether --with-pop or --without-pop was given.
1371 if test "${with_pop+set}" = set; then
1373 if test "$withval" = yes; then
1374 cat >>confdefs.h
<<\_ACEOF
1375 #define MAIL_USE_POP 1
1381 cat >>confdefs.h
<<\_ACEOF
1382 #define MAIL_USE_POP 1
1388 # Check whether --with-kerberos or --without-kerberos was given.
1389 if test "${with_kerberos+set}" = set; then
1390 withval
="$with_kerberos"
1391 cat >>confdefs.h
<<\_ACEOF
1398 # Check whether --with-kerberos5 or --without-kerberos5 was given.
1399 if test "${with_kerberos5+set}" = set; then
1400 withval
="$with_kerberos5"
1401 if test "${with_kerberos5+set}" = set; then
1402 if test "${with_kerberos+set}" != set; then
1404 cat >>confdefs.h
<<\_ACEOF
1411 cat >>confdefs.h
<<\_ACEOF
1417 # Check whether --with-hesiod or --without-hesiod was given.
1418 if test "${with_hesiod+set}" = set; then
1419 withval
="$with_hesiod"
1421 cat >>confdefs.h
<<\_ACEOF
1428 # Check whether --with-sound or --without-sound was given.
1429 if test "${with_sound+set}" = set; then
1430 withval
="$with_sound"
1435 # Check whether --with-x-toolkit or --without-x-toolkit was given.
1436 if test "${with_x_toolkit+set}" = set; then
1437 withval
="$with_x_toolkit"
1438 case "${withval}" in
1439 y | ye |
yes ) val
=athena
;;
1441 l | lu | luc | luci | lucid
) val
=lucid
;;
1442 a |
at | ath | athe | athen | athena
) val
=athena
;;
1443 m | mo | mot | moti | motif
) val
=motif
;;
1444 g | gt | gtk
) val
=gtk
;;
1446 { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid\;
1447 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1448 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&5
1449 echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid\;
1450 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1451 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&2;}
1452 { (exit 1); exit 1; }; }
1459 # Check whether --with-xpm or --without-xpm was given.
1460 if test "${with_xpm+set}" = set; then
1465 # Check whether --with-jpeg or --without-jpeg was given.
1466 if test "${with_jpeg+set}" = set; then
1467 withval
="$with_jpeg"
1471 # Check whether --with-tiff or --without-tiff was given.
1472 if test "${with_tiff+set}" = set; then
1473 withval
="$with_tiff"
1477 # Check whether --with-gif or --without-gif was given.
1478 if test "${with_gif+set}" = set; then
1483 # Check whether --with-png or --without-png was given.
1484 if test "${with_png+set}" = set; then
1489 # Check whether --with-gtk or --without-gtk was given.
1490 if test "${with_gtk+set}" = set; then
1495 # Check whether --with-pkg-config-prog or --without-pkg-config-prog was given.
1496 if test "${with_pkg_config_prog+set}" = set; then
1497 withval
="$with_pkg_config_prog"
1501 # Check whether --with-toolkit-scroll-bars or --without-toolkit-scroll-bars was given.
1502 if test "${with_toolkit_scroll_bars+set}" = set; then
1503 withval
="$with_toolkit_scroll_bars"
1507 # Check whether --with-xim or --without-xim was given.
1508 if test "${with_xim+set}" = set; then
1513 # Check whether --with-carbon or --without-carbon was given.
1514 if test "${with_carbon+set}" = set; then
1515 withval
="$with_carbon"
1518 # Check whether --enable-carbon-app or --disable-carbon-app was given.
1519 if test "${enable_carbon_app+set}" = set; then
1520 enableval
="$enable_carbon_app"
1521 carbon_appdir_x
=${enableval}
1524 # Check whether --enable-asserts or --disable-asserts was given.
1525 if test "${enable_asserts+set}" = set; then
1526 enableval
="$enable_asserts"
1527 USE_XASSERTS
=$enableval
1532 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1533 if test "${enable_maintainer_mode+set}" = set; then
1534 enableval
="$enable_maintainer_mode"
1535 USE_MAINTAINER_MODE
=$enableval
1537 USE_MAINTAINER_MODE
=no
1539 if test $USE_MAINTAINER_MODE = yes; then
1546 #### Make srcdir absolute, if it isn't already. It's important to
1547 #### avoid running the path through pwd unnecessarily, since pwd can
1548 #### give you automounter prefixes, which can go away. We do all this
1549 #### so Emacs can find its files when run uninstalled.
1550 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
1555 ## We may be able to use the $PWD environment variable to make this
1556 ## absolute. But sometimes PWD is inaccurate.
1557 ## Note: we used to use ${PWD} at the end instead of `pwd`,
1558 ## but that tested only for a well-formed and valid PWD,
1559 ## it did not object when PWD was well-formed and valid but just wrong.
1560 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
1564 srcdir
="`(cd ${srcdir}; pwd)`"
1567 * ) srcdir
="`(cd ${srcdir}; pwd)`" ;;
1570 #### Check if the source directory already has a configured system in it.
1571 if test `pwd` != `(cd ${srcdir} && pwd)` \
1572 && test -f "${srcdir}/src/config.h" ; then
1573 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
1574 as a build directory right now; it has been configured in its own
1575 right. To configure in another directory as well, you MUST
1576 use GNU make. If you do not have GNU make, then you must
1577 now do \`make distclean' in ${srcdir},
1578 and then run $0 again." >&5
1579 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
1580 as a build directory right now; it has been configured in its own
1581 right. To configure in another directory as well, you MUST
1582 use GNU make. If you do not have GNU make, then you must
1583 now do \`make distclean' in ${srcdir},
1584 and then run $0 again." >&2;}
1587 #### Given the configuration name, set machfile and opsysfile to the
1588 #### names of the m/*.h and s/*.h files we should use.
1590 ### Canonicalize the configuration name.
1593 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
1594 if test -f $ac_dir/install-sh
; then
1596 ac_install_sh
="$ac_aux_dir/install-sh -c"
1598 elif test -f $ac_dir/install.sh
; then
1600 ac_install_sh
="$ac_aux_dir/install.sh -c"
1602 elif test -f $ac_dir/shtool
; then
1604 ac_install_sh
="$ac_aux_dir/shtool install -c"
1608 if test -z "$ac_aux_dir"; then
1609 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1610 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1611 { (exit 1); exit 1; }; }
1613 ac_config_guess
="$SHELL $ac_aux_dir/config.guess"
1614 ac_config_sub
="$SHELL $ac_aux_dir/config.sub"
1615 ac_configure
="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1617 # Make sure we can run config.sub.
1618 $ac_config_sub sun4
>/dev
/null
2>&1 ||
1619 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1620 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1621 { (exit 1); exit 1; }; }
1623 echo "$as_me:$LINENO: checking build system type" >&5
1624 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1625 if test "${ac_cv_build+set}" = set; then
1626 echo $ECHO_N "(cached) $ECHO_C" >&6
1628 ac_cv_build_alias
=$build_alias
1629 test -z "$ac_cv_build_alias" &&
1630 ac_cv_build_alias
=`$ac_config_guess`
1631 test -z "$ac_cv_build_alias" &&
1632 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1633 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1634 { (exit 1); exit 1; }; }
1635 ac_cv_build
=`$ac_config_sub $ac_cv_build_alias` ||
1636 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1637 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1638 { (exit 1); exit 1; }; }
1641 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1642 echo "${ECHO_T}$ac_cv_build" >&6
1644 build_cpu
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1645 build_vendor
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1646 build_os
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1649 echo "$as_me:$LINENO: checking host system type" >&5
1650 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1651 if test "${ac_cv_host+set}" = set; then
1652 echo $ECHO_N "(cached) $ECHO_C" >&6
1654 ac_cv_host_alias
=$host_alias
1655 test -z "$ac_cv_host_alias" &&
1656 ac_cv_host_alias
=$ac_cv_build_alias
1657 ac_cv_host
=`$ac_config_sub $ac_cv_host_alias` ||
1658 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1659 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1660 { (exit 1); exit 1; }; }
1663 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1664 echo "${ECHO_T}$ac_cv_host" >&6
1666 host_cpu
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1667 host_vendor
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1668 host_os
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1672 configuration
=${host_alias-$host}
1676 ### If you add support for a new configuration, add code to this
1677 ### switch statement to recognize your configuration name and select
1678 ### the appropriate operating system and machine description files.
1680 ### You would hope that you could choose an m/*.h file pretty much
1681 ### based on the machine portion of the configuration name, and an s-
1682 ### file based on the operating system portion. However, it turns out
1683 ### that each m/*.h file is pretty manufacturer-specific - for
1684 ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are
1685 ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS
1686 ### machines. So we basically have to have a special case for each
1687 ### configuration name.
1689 ### As far as handling version numbers on operating systems is
1690 ### concerned, make sure things will fail in a fixable way. If
1691 ### /etc/MACHINES doesn't say anything about version numbers, be
1692 ### prepared to handle anything reasonably. If version numbers
1693 ### matter, be sure /etc/MACHINES says something about it.
1695 ### Eric Raymond says we should accept strings like "sysvr4" to mean
1696 ### "System V Release 4"; he writes, "The old convention encouraged
1697 ### confusion between `system' and `release' levels'."
1699 machine
='' opsys
='' unported
=no
1700 case "${canonical}" in
1705 case "${canonical}" in
1706 alpha
*-*-freebsd*) machine
=alpha
;;
1707 i
[3456]86-*-freebsd*) machine
=intel386
;;
1714 if test -f /usr
/lib
/crti.o
; then
1716 cat >>confdefs.h
<<\_ACEOF
1722 case "${canonical}" in
1723 alpha
*-*-netbsd*) machine
=alpha
;;
1724 i
[3456]86-*-netbsd*) machine
=intel386
;;
1726 # This is somewhat bogus.
1727 machine
=hp9000s300
;;
1728 powerpc-apple-netbsd
*) machine
=macppc
;;
1729 mips-
*-netbsd*) machine
=pmax
;;
1730 mipsel-
*-netbsd*) machine
=pmax
;;
1731 mipseb-
*-netbsd*) machine
=pmax
;;
1732 ns32k-
*-netbsd*) machine
=ns32000
;;
1733 powerpc-
*-netbsd*) machine
=macppc
;;
1734 sparc
*-*-netbsd*) machine
=sparc
;;
1735 vax-
*-netbsd*) machine
=vax
;;
1736 arm-
*-netbsd*) machine
=arm
;;
1743 case "${canonical}" in
1744 alpha
*-*-openbsd*) machine
=alpha
;;
1745 i386-
*-openbsd*) machine
=intel386
;;
1746 m68k-
*-openbsd*) machine
=hp9000s300
;;
1747 mipsel-
*-openbsd*) machine
=pmax
;;
1748 ns32k-
*-openbsd*) machine
=ns32000
;;
1749 sparc-
*-openbsd*) machine
=sparc
;;
1750 vax-
*-openbsd*) machine
=vax
;;
1755 arm-acorn-riscix1.1
* )
1756 machine
=acorn opsys
=riscix1-1
1758 arm-acorn-riscix1.2
* | arm-acorn-riscix
)
1759 ## This name is riscix12 instead of riscix1.2
1760 ## to avoid a file name conflict on MSDOS.
1761 machine
=acorn opsys
=riscix12
1767 case "${canonical}" in
1768 i
[345]86-*-bsdi*) machine
=intel386
;;
1769 sparc-
*-bsdi*) machine
=sparc
;;
1770 powerpc-
*-bsdi*) machine
=macppc
;;
1772 case "${canonical}" in
1773 *-*-bsd386* |
*-*-bsdi1* ) opsys
=bsd386
;;
1774 *-*-bsdi2.0
* ) opsys
=bsdos2
;;
1775 *-*-bsdi2* ) opsys
=bsdos2-1
;;
1776 *-*-bsdi3* ) opsys
=bsdos3
;;
1777 *-*-bsdi[45]* ) opsys
=bsdos4
;;
1782 ## Strictly speaking, we need the version of the alliant operating
1783 ## system to choose the right machine file, but currently the
1784 ## configuration name doesn't tell us enough to choose the right
1785 ## one; we need to give alliants their own operating system name to
1786 ## do this right. When someone cares, they can help us.
1788 machine
=alliant4 opsys
=bsd4-2
1791 machine
=alliant-2800 opsys
=bsd4-3
1794 ## Alpha (DEC) machines.
1796 machine
=alpha opsys
=osf1
1797 # This is needed to find X11R6.1 libraries for certain tests.
1798 NON_GCC_LINK_TEST_OPTIONS
=-Wl,-rpath,/usr
/X11R
6/lib
1799 GCC_LINK_TEST_OPTIONS
=-Wl,-rpath,/usr
/X11R
6/lib
1800 # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile
1801 # due to non-traditional preprocessing with the current compiler
1802 # defaults. OSF 4 can also have that compiler version, and there
1803 # seems always to have been a usable /usr/bin/cpp.
1804 NON_GNU_CPP
=/usr
/bin
/cpp
1805 case "${canonical}" in
1806 alpha
*-dec-osf[5-9]*)
1811 alpha
*-*-linux-gnu* )
1812 machine
=alpha opsys
=gnu-linux
1816 machine
=arm opsys
=gnu-linux
1821 machine
=macppc opsys
=gnu-linux
1826 machine
=altos opsys
=usg5-2
1831 machine
=amdahl opsys
=usg5-2-2
1834 ## Apollo, Domain/OS
1836 machine
=apollo opsys
=bsd4-3
1839 ## AT&T 3b2, 3b5, 3b15, 3b20
1841 machine
=att3b opsys
=usg5-2-2
1844 ## AT&T 3b1 - The Mighty Unix PC!
1846 machine
=7300 opsys
=usg5-2-2
1851 machine
=ibmrs6000 opsys
=aix3-2
1856 machine
=dpx2 opsys
=usg5-3
1861 machine
=sps7 opsys
=usg5-2
1864 ## CCI 5/32, 6/32 -- see "Tahoe".
1867 ## I don't know what configuration name to use for this; config.sub
1868 ## doesn't seem to know anything about it. Hey, Celerity users, get
1869 ## in touch with us!
1870 celerity-celerity-bsd
* )
1871 machine
=celerity opsys
=bsd4-2
1875 ## What operating systems does this chip run that Emacs has been
1879 ## We'll use the catch-all code at the bottom to guess the
1880 ## operating system.
1884 mips-compaq-nonstopux
* )
1885 machine
=nonstopux opsys
=nonstopux
1889 *-convex-bsd* |
*-convex-convexos* )
1890 machine
=convex opsys
=bsd4-3
1891 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
1892 NON_GNU_CPP
="cc -E -P"
1896 i
[3456]86-cubix-sysv* )
1897 machine
=intel386 opsys
=usg5-3
1901 cydra
*-cydrome-sysv* )
1902 machine
=cydra5 opsys
=usg5-3
1905 ## Data General AViiON Machines
1906 ## DG changed naming conventions with the release of 5.4.4.10, they
1907 ## dropped the initial 5.4 but left the intervening R. Because of the
1908 ## R this shouldn't conflict with older versions of the OS (which I
1909 ## think were named like dgux4.*). In addition, DG new AViiONs series
1910 ## uses either Motorola M88k or Intel Pentium CPUs.
1911 m88k-dg-dguxR4.
* | m88k-dg-dgux4
* )
1912 machine
=aviion opsys
=dgux4
1914 m88k-dg-dgux5.4R3
* | m88k-dg-dgux5.4
.3* )
1915 ## This name is dgux5-4-3 instead of dgux5-4r3
1916 ## to avoid a file name conflict on MSDOS.
1917 machine
=aviion opsys
=dgux5-4-3
1919 m88k-dg-dgux5.4R2
* | m88k-dg-dgux5.4
.2* )
1920 machine
=aviion opsys
=dgux5-4r2
1923 machine
=aviion opsys
=dgux
1926 ## Data General AViiON Intel (x86) Machines
1927 ## Exists from 5.4.3 (current i586-dg-dguxR4.11)
1928 ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il
1929 i
[345]86-dg-dguxR4* )
1930 machine
=aviion-intel opsys
=dgux4
1934 mips-dec-ultrix
[0-3].
* | mips-dec-ultrix4.0
* | mips-dec-bsd4.2
* )
1935 machine
=pmax opsys
=bsd4-2
1937 mips-dec-ultrix4.
[12]* | mips-dec-bsd
* )
1938 machine
=pmax opsys
=bsd4-3
1941 machine
=pmax opsys
=ultrix4-3
1944 machine
=pmax opsys
=osf1
1946 mips-dec-mach_bsd4.3
* )
1947 machine
=pmax opsys
=mach-bsd4-3
1950 ## Motorola Delta machines
1951 m68k-motorola-sysv
* | m68000-motorola-sysv
* )
1952 machine
=delta opsys
=usg5-3
1953 if test -z "`type gnucc | grep 'not found'`"
1955 if test -s /etc
/167config
1956 then CC
="gnucc -m68040"
1957 else CC
="gnucc -m68881"
1960 if test -z "`type gcc | grep 'not found'`"
1966 m88k-motorola-sysv4
* )
1967 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
1968 # needs POSIX_SIGNALS and therefore needs usg5-4-2.
1969 # I hope there are not other 4.0 versions for this machine
1970 # which really need usg5-4 instead.
1971 machine
=delta88k opsys
=usg5-4-2
1973 m88k-motorola-sysv
* | m88k-motorola-m88kbcs
* )
1974 machine
=delta88k opsys
=usg5-3
1979 machine
=dual opsys
=usg5-2
1981 m68
*-dual-uniplus* )
1982 machine
=dual opsys
=unipl5-2
1987 machine
=elxsi opsys
=usg5-2
1992 machine
=ns16000 opsys
=umax
1995 ## The GEC 63 - apparently, this port isn't really finished yet.
1996 # I'm sure we finished off the last of the machines, though. -- fx
1998 ## Gould Power Node and NP1
2000 machine
=gould opsys
=bsd4-2
2003 machine
=gould opsys
=bsd4-3
2006 machine
=gould-np1 opsys
=bsd4-3
2009 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
2010 ## as far as Emacs is concerned).
2012 # Build needs to be different on 7.0 and later releases
2013 case "`uname -r`" in
2014 [56].
[0-9] ) machine
=nh4000 opsys
=cxux
;;
2015 [7].
[0-9] ) machine
=nh4000 opsys
=cxux7
;;
2017 NON_GNU_CPP
="/lib/cpp"
2019 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
2021 machine
=nh3000 opsys
=cxux
2023 ## Harris power pc NightHawk running Power UNIX (Series 6000)
2024 powerpc-harris-powerunix
)
2025 machine
=nh6000 opsys
=powerunix
2026 NON_GNU_CPP
="cc -Xo -E -P"
2028 ## SR2001/SR2201 running HI-UX/MPP
2029 hppa1.1
-hitachi-hiuxmpp* )
2030 machine
=sr2k opsys
=hiuxmpp
2032 hppa1.1
-hitachi-hiuxwe2* )
2033 machine
=sr2k opsys
=hiuxwe2
2036 xps
*-honeywell-sysv* )
2037 machine
=xps100 opsys
=usg5-2
2040 ## HP 9000 series 200 or 300
2042 machine
=hp9000s300 opsys
=bsd4-3
2044 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
2046 case "`uname -r`" in
2047 ## Someone's system reports A.B8.05 for this.
2048 ## I wonder what other possibilities there are.
2049 *.B8.
* ) machine
=hp9000s300 opsys
=hpux8
;;
2050 *.08.
* ) machine
=hp9000s300 opsys
=hpux8
;;
2051 *.09.
* ) machine
=hp9000s300 opsys
=hpux9
;;
2052 *.1[0-9].
* ) machine
=hp9000s300 opsys
=hpux9shr
;;
2053 *) machine
=hp9000s300 opsys
=hpux
;;
2057 ## HP 9000 series 700 and 800, running HP/UX
2059 machine
=hp800 opsys
=hpux
2062 machine
=hp800 opsys
=hpux8
2064 hppa
*-hp-hpux9shr* )
2065 machine
=hp800 opsys
=hpux9shr
2068 machine
=hp800 opsys
=hpux9
2070 hppa
*-hp-hpux10.2
* )
2071 machine
=hp800 opsys
=hpux10-20
2074 machine
=hp800 opsys
=hpux10
2076 hppa
*-hp-hpux1[1-9]* )
2077 machine
=hp800 opsys
=hpux11
2080 hppa
*-*-linux-gnu* )
2081 machine
=hp800 opsys
=gnu-linux
2084 ## HP 9000 series 700 and 800, running HP/UX
2086 ## Cross-compilation? Nah!
2087 case "`uname -r`" in
2088 ## Someone's system reports A.B8.05 for this.
2089 ## I wonder what other possibilities there are.
2090 *.B8.
* ) machine
=hp800 opsys
=hpux8
;;
2091 *.08.
* ) machine
=hp800 opsys
=hpux8
;;
2092 *.09.
* ) machine
=hp800 opsys
=hpux9
;;
2093 *) machine
=hp800 opsys
=hpux10
;;
2097 machine
=hp800 opsys
=nextstep
2102 machine
=orion opsys
=bsd4-2
2104 clipper-orion-bsd
* )
2105 machine
=orion105 opsys
=bsd4-2
2109 i
[3456]86-ibm-aix1.1
* )
2110 machine
=ibmps2-aix opsys
=usg5-2-2
2112 i
[3456]86-ibm-aix1.
[23]* | i
[3456]86-ibm-aix* )
2113 machine
=ibmps2-aix opsys
=usg5-3
2116 machine
=ibm370aix opsys
=usg5-3
2119 machine
=ibms390 opsys
=gnu-linux
2121 rs6000-ibm-aix3.1
* | powerpc-ibm-aix3.1
* )
2122 machine
=ibmrs6000 opsys
=aix3-1
2124 rs6000-ibm-aix3.2
.5 | powerpc-ibm-aix3.2
.5 )
2125 machine
=ibmrs6000 opsys
=aix3-2-5
2127 rs6000-ibm-aix4.1
* | powerpc-ibm-aix4.1
* )
2128 machine
=ibmrs6000 opsys
=aix4-1
2130 rs6000-ibm-aix4.2
* | powerpc-ibm-aix4.2
* )
2131 machine
=ibmrs6000 opsys
=aix4-2
2133 rs6000-ibm-aix5
* | powerpc-ibm-aix5
* )
2134 machine
=ibmrs6000 opsys
=aix4-2
2136 rs6000-ibm-aix4.0
* | powerpc-ibm-aix4.0
* )
2137 machine
=ibmrs6000 opsys
=aix4
2139 rs6000-ibm-aix4
* | powerpc-ibm-aix4
* )
2140 machine
=ibmrs6000 opsys
=aix4-1
2142 rs6000-ibm-aix
* | powerpc-ibm-aix
* )
2143 machine
=ibmrs6000 opsys
=aix3-2
2146 machine
=ibmrt opsys
=bsd4-3
2149 machine
=ibmrt opsys
=bsd4-2
2152 machine
=ibmrt opsys
=bsd4-3
2155 machine
=ibmrt opsys
=bsd4-2
2158 machine
=ibmrt opsys
=bsd4-3
2161 machine
=ibmrt opsys
=bsd4-3
2164 machine
=ibmrt-aix opsys
=usg5-2-2
2167 ## Integrated Solutions `Optimum V'
2169 machine
=isi-ov opsys
=bsd4-2
2172 machine
=isi-ov opsys
=bsd4-3
2175 ## Intel 386 machines where we do care about the manufacturer
2176 i
[3456]86-intsys-sysv* )
2177 machine
=is386 opsys
=usg5-2-2
2181 i
[3456]86-prime-sysv* )
2182 machine
=i386 opsys
=usg5-3
2185 ## Sequent Symmetry running Dynix
2186 i
[3456]86-sequent-bsd* )
2187 machine
=symmetry opsys
=bsd4-3
2190 ## Sequent Symmetry running ptx 4, which is a modified SVR4.
2191 i
[3456]86-sequent-ptx4* | i
[3456]86-sequent-sysv4* )
2192 machine
=sequent-ptx opsys
=ptx4
2193 NON_GNU_CPP
=/lib
/cpp
2196 ## Sequent Symmetry running DYNIX/ptx
2197 ## Use the old cpp rather than the newer ANSI one.
2198 i
[3456]86-sequent-ptx* )
2199 machine
=sequent-ptx opsys
=ptx
2200 NON_GNU_CPP
="/lib/cpp"
2203 ## ncr machine running svr4.3.
2204 i
[3456]86-ncr-sysv4.3
)
2205 machine
=ncr386 opsys
=usg5-4-3
2208 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2209 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2210 i
[3456]86-ncr-sysv* )
2211 machine
=ncr386 opsys
=usg5-4-2
2214 ## Intel Paragon OSF/1
2216 machine
=paragon opsys
=osf1 NON_GNU_CPP
=/usr
/mach
/lib
/cpp
2221 machine
=i860 opsys
=usg5-4
2222 NON_GNU_CC
="/bin/cc" # Ie, not the one in /usr/ucb/cc.
2223 NON_GNU_CPP
="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
2226 ## Macintosh PowerPC
2227 powerpc
*-*-linux-gnu* )
2228 machine
=macppc opsys
=gnu-linux
2231 ## Masscomp machines
2232 m68
*-masscomp-rtu* )
2233 machine
=masscomp opsys
=rtu
2236 ## Megatest machines
2237 m68
*-megatest-bsd* )
2238 machine
=mega68 opsys
=bsd4-2
2241 ## Workstations sold by MIPS
2242 ## This is not necessarily all workstations using the MIPS processor -
2243 ## Irises are produced by SGI, and DECstations by DEC.
2245 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
2246 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
2247 ## it gives for choosing between the alternatives seems to be "Use
2248 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
2249 ## the BSD world." I'll assume that these are instructions for
2250 ## handling two odd situations, and that every other situation
2251 ## should use mips.h and usg5-2-2, they being listed first.
2254 ## Fall through to the general code at the bottom to decide on the OS.
2256 mips-mips-riscos4
* )
2257 machine
=mips4 opsys
=bsd4-3
2258 NON_GNU_CC
="cc -systype bsd43"
2259 NON_GNU_CPP
="cc -systype bsd43 -E"
2261 mips-mips-riscos5
* )
2262 machine
=mips4 opsys
=riscos5
2263 NON_GNU_CC
="cc -systype bsd43"
2264 NON_GNU_CPP
="cc -systype bsd43 -E"
2267 machine
=mips opsys
=bsd4-3
2270 machine
=mips opsys
=usg5-2-2
2274 m68
*-next-* | m68k-
*-nextstep* )
2275 machine
=m68k opsys
=nextstep
2278 ## The complete machine from National Semiconductor
2280 machine
=ns32000 opsys
=usg5-2
2284 m68
*-ncr-sysv2* | m68
*-ncr-sysvr2* )
2285 machine
=tower32 opsys
=usg5-2-2
2287 m68
*-ncr-sysv3* | m68
*-ncr-sysvr3* )
2288 machine
=tower32v3 opsys
=usg5-3
2293 machine
=ews4800 opsys
=ux4800
2296 ## Nixdorf Targon 31
2297 m68
*-nixdorf-sysv* )
2298 machine
=targon31 opsys
=usg5-2-2
2303 machine
=nu opsys
=usg5-2
2308 machine
=plexus opsys
=usg5-2
2312 ## I don't really have any idea what sort of processor the Pyramid has,
2313 ## so I'm assuming it is its own architecture.
2314 pyramid-pyramid-bsd
* )
2315 machine
=pyramid opsys
=bsd4-2
2319 ns32k-sequent-bsd4.2
* )
2320 machine
=sequent opsys
=bsd4-2
2322 ns32k-sequent-bsd4.3
* )
2323 machine
=sequent opsys
=bsd4-3
2327 mips-siemens-sysv
* | mips-sni-sysv
*)
2328 machine
=mips-siemens opsys
=usg5-4
2329 NON_GNU_CC
=/usr
/ccs
/bin
/cc
2330 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2333 ## Silicon Graphics machines
2334 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
2336 machine
=irist opsys
=iris3-5
2338 m68
*-sgi-iris3.6
* | m68
*-sgi-iris*)
2339 machine
=irist opsys
=iris3-6
2343 machine
=iris4d opsys
=irix3-3
2346 machine
=iris4d opsys
=irix4-0
2349 machine
=iris4d opsys
=irix6-5
2350 # Without defining _LANGUAGE_C, things get masked out in the headers
2351 # so that, for instance, grepping for `free' in stdlib.h fails and
2352 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2353 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2354 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
2357 machine
=iris4d opsys
=irix6-0
2358 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
2359 # but presumably it does no harm.
2360 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2361 # -32 probably isn't necessary in later v.6s -- anyone know which?
2362 NON_GCC_TEST_OPTIONS
=-32
2364 mips-sgi-irix5.
[01]* )
2365 machine
=iris4d opsys
=irix5-0
2367 mips-sgi-irix5
* | mips-sgi-irix
* )
2368 machine
=iris4d opsys
=irix5-2
2373 machine
=news opsys
=bsd4-2
2376 machine
=news opsys
=bsd4-3
2378 m68
*-sony-newsos3* | m68
*-sony-news3*)
2379 machine
=news opsys
=bsd4-3
2381 mips-sony-bsd
* | mips-sony-newsos4
* | mips-sony-news4
*)
2382 machine
=news-risc opsys
=bsd4-3
2384 mips-sony-newsos6
* )
2385 machine
=news-r6 opsys
=newsos6
2388 machine
=news-risc opsys
=newsos5
2393 machine
=stride opsys
=usg5-2
2397 sparc-
*-linux-gnu* | sparc64-
*-linux-gnu* )
2398 machine
=sparc opsys
=gnu-linux
2401 *-auspex-sunos* |
*-sun-sunos* |
*-sun-bsd* |
*-sun-solaris* \
2402 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* | powerpc
*-*-solaris2* \
2403 | rs6000-
*-solaris2*)
2404 case "${canonical}" in
2405 m68
*-sunos1* ) machine
=sun1
;;
2406 m68
*-sunos2* ) machine
=sun2
;;
2407 m68
* ) machine
=sun3
;;
2408 i
[3456]86-sun-sunos[34]* ) machine
=sun386
;;
2409 i
[3456]86-*-* ) machine
=intel386
;;
2410 powerpcle
* ) machine
=powerpcle
;;
2411 powerpc
* | rs6000
* ) machine
=ibmrs6000
;;
2412 sparc
* ) machine
=sparc
;;
2415 case "${canonical}" in
2416 ## The Sun386 didn't get past 4.0.
2417 i
[3456]86-*-sunos4 ) opsys
=sunos4-0
;;
2418 *-sunos4.0
* ) opsys
=sunos4-0
;;
2419 *-sunos4.1.
[3-9]*noshare
)
2420 ## This name is sunos413 instead of sunos4-1-3
2421 ## to avoid a file name conflict on MSDOS.
2423 NON_GNU_CPP
=/usr
/lib
/cpp
2424 NON_GCC_TEST_OPTIONS
=-Bstatic
2425 GCC_TEST_OPTIONS
=-static
2427 *-sunos4.1.
[3-9]* |
*-sunos4shr*)
2429 NON_GNU_CPP
=/usr
/lib
/cpp
2431 *-sunos4* |
*-sunos )
2433 NON_GCC_TEST_OPTIONS
=-Bstatic
2434 GCC_TEST_OPTIONS
=-static
2436 *-sunos5.3
* |
*-solaris2.3
* )
2438 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2440 *-sunos5.4
* |
*-solaris2.4
* )
2442 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2445 *-sunos5.5
* |
*-solaris2.5
* )
2447 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2450 *-sunos5.6
* |
*-solaris2.6
* )
2452 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2455 *-sunos5* |
*-solaris* )
2457 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2461 ## Watch out for a compiler that we know will not work.
2462 case "${canonical}" in
2463 *-solaris* |
*-sunos5* )
2464 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
2465 ## /usr/ucb/cc doesn't work;
2466 ## we should find some other compiler that does work.
2474 machine
=sparc opsys
=nextstep
2478 m68
*-tadpole-sysv* )
2479 machine
=tad68k opsys
=usg5-3
2483 tahoe-tahoe-bsd4.2
* )
2484 machine
=tahoe opsys
=bsd4-2
2486 tahoe-tahoe-bsd4.3
* )
2487 machine
=tahoe opsys
=bsd4-3
2490 ## Tandem Integrity S2
2492 machine
=tandem-s2 opsys
=usg5-3
2496 m88k-tektronix-sysv3
* )
2497 machine
=tekxd88 opsys
=usg5-3
2500 ## Tektronix 16000 box (6130?)
2501 ns16k-tektronix-bsd
* )
2502 machine
=ns16000 opsys
=bsd4-2
2505 ## src/m/tek4300.h hints that this is a m68k machine.
2506 m68
*-tektronix-bsd* )
2507 machine
=tek4300 opsys
=bsd4-3
2511 ## We seem to have lost the machine-description file titan.h!
2513 machine
=titan opsys
=usg5-3
2516 ## Ustation E30 (SS5E)
2517 m68
*-unisys-uniplus* )
2518 machine
=ustation opsystem
=unipl5-2
2524 case "${canonical}" in
2525 *-bsd4.1
* ) opsys
=bsd4-1
;;
2526 *-bsd4.2
* |
*-ultrix[0-3].
* |
*-ultrix4.0
* ) opsys
=bsd4-2
;;
2527 *-bsd4.3
* |
*-ultrix* ) opsys
=bsd4-3
;;
2528 *-sysv[01]* |
*-sysvr[01]* ) opsys
=usg5-0
;;
2529 *-sysv2* |
*-sysvr2* ) opsys
=usg5-2
;;
2530 *-vms* ) opsys
=vms
;;
2536 ns16k-whitechapel-
* )
2538 ## We don't know what sort of OS runs on these; we'll let the
2539 ## operating system guessing code below try.
2544 machine
=wicat opsys
=usg5-2
2549 machine
=ia64 opsys
=gnu-linux
2552 ## Intel 386 machines where we don't care about the manufacturer
2555 case "${canonical}" in
2556 *-cygwin ) opsys
=cygwin
;;
2557 *-lynxos* ) opsys
=lynxos
;;
2558 *-isc1.
* |
*-isc2.
[01]* ) opsys
=386-ix ;;
2559 *-isc2.2
* ) opsys
=isc2-2
;;
2560 *-isc4.0
* ) opsys
=isc4-0
;;
2561 *-isc4.
* ) opsys
=isc4-1
2562 GCC_TEST_OPTIONS
=-posix
2563 NON_GCC_TEST_OPTIONS
=-Xp
2565 *-isc* ) opsys
=isc3-0
;;
2566 *-esix5* ) opsys
=esix5r4
; NON_GNU_CPP
=/usr
/lib
/cpp
;;
2567 *-esix* ) opsys
=esix
;;
2568 *-xenix* ) opsys
=xenix
;;
2569 *-linux-gnu* ) opsys
=gnu-linux
;;
2570 *-sco3.2v4
* ) opsys
=sco4
; NON_GNU_CPP
=/lib
/cpp
;;
2571 *-sco3.2v5
* ) opsys
=sco5
2572 NON_GNU_CPP
=/lib
/cpp
2573 # Prevent -belf from being passed to $CPP.
2574 # /lib/cpp does not accept it.
2575 OVERRIDE_CPPFLAGS
=" "
2577 *-sysv4.2uw
* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2578 *-sysv5uw* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2579 *-sysv5OpenUNIX* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2580 *-386bsd* ) opsys
=386bsd
;;
2581 *-nextstep* ) opsys
=nextstep
;;
2582 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2586 ## m68k Linux-based GNU system
2588 machine
=m68k opsys
=gnu-linux
2591 ## Mips Linux-based GNU system
2592 mips-
*-linux-gnu* | mipsel-
*-linux-gnu* )
2593 machine
=mips opsys
=gnu-linux
2597 sparc-fujitsu-sysv4
* )
2598 machine
=sparc opsys
=uxpds
2599 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2604 f301-fujitsu-uxpv4.1
)
2605 machine
=f301 opsys
=uxpv
2608 ## Darwin / Mac OS X
2609 powerpc-apple-darwin
* )
2610 machine
=powermac opsys
=darwin
2611 # Define CPP as follows to make autoconf work correctly.
2612 CPP
="${CC-cc} -E -no-cpp-precomp"
2613 # Use fink packages if available.
2614 if test -d /sw
/include
&& test -d /sw
/lib
; then
2615 GCC_TEST_OPTIONS
="-I/sw/include -L/sw/lib"
2616 CPP
="${CPP} ${GCC_TEST_OPTIONS}"
2617 NON_GCC_TEST_OPTIONS
=${GCC_TEST_OPTIONS}
2621 ## AMD x86-64 Linux-based GNU system
2622 x86_64-
*-linux-gnu* )
2623 machine
=amdx86-64 opsys
=gnu-linux
2631 ### If the code above didn't choose an operating system, just choose
2632 ### an operating system based on the configuration name. You really
2633 ### only want to use this when you have no idea what the right
2634 ### operating system is; if you know what operating systems a machine
2635 ### runs, it's cleaner to make it explicit in the case statement
2637 if test x
"${opsys}" = x
; then
2638 case "${canonical}" in
2639 *-gnu* ) opsys
=gnu
;;
2640 *-bsd4.
[01] ) opsys
=bsd4-1
;;
2641 *-bsd4.2
) opsys
=bsd4-2
;;
2642 *-bsd4.3
) opsys
=bsd4-3
;;
2643 *-sysv0 |
*-sysvr0 ) opsys
=usg5-0
;;
2644 *-sysv2 |
*-sysvr2 ) opsys
=usg5-2
;;
2645 *-sysv2.2 |
*-sysvr2.2
) opsys
=usg5-2-2
;;
2646 *-sysv3* |
*-sysvr3* ) opsys
=usg5-3
;;
2647 *-sysv4.2uw
* ) opsys
=unixware
;;
2648 *-sysv5uw* ) opsys
=unixware
;;
2649 *-sysv5OpenUNIX* ) opsys
=unixware
;;
2650 *-sysv4.1
* |
*-sysvr4.1
* )
2651 NON_GNU_CPP
=/usr
/lib
/cpp
2653 *-sysv4.
[2-9]* |
*-sysvr4.
[2-9]* )
2654 if [ x
$NON_GNU_CPP = x
]; then
2655 if [ -f /usr
/ccs
/lib
/cpp
]; then
2656 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2658 NON_GNU_CPP
=/lib
/cpp
2662 *-sysv4* |
*-sysvr4* ) opsys
=usg5-4
;;
2671 if test $unported = yes; then
2672 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
2673 Check \`etc/MACHINES' for recognized configuration names." >&5
2674 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2675 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2676 { (exit 1); exit 1; }; }
2679 machfile
="m/${machine}.h"
2680 opsysfile
="s/${opsys}.h"
2683 #### Choose a compiler.
2684 test -n "$CC" && cc_specified
=yes
2686 # Save the value of CFLAGS that the user specified.
2687 SPECIFIED_CFLAGS
="$CFLAGS"
2690 "yes" ) CC
="gcc" GCC
=yes ;;
2691 "no" ) : ${CC=cc} ;;
2695 ac_cpp
='$CPP $CPPFLAGS'
2696 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2697 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2698 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2699 if test -n "$ac_tool_prefix"; then
2700 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2701 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2702 echo "$as_me:$LINENO: checking for $ac_word" >&5
2703 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2704 if test "${ac_cv_prog_CC+set}" = set; then
2705 echo $ECHO_N "(cached) $ECHO_C" >&6
2707 if test -n "$CC"; then
2708 ac_cv_prog_CC
="$CC" # Let the user override the test.
2710 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2714 test -z "$as_dir" && as_dir
=.
2715 for ac_exec_ext
in '' $ac_executable_extensions; do
2716 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2717 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2718 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2727 if test -n "$CC"; then
2728 echo "$as_me:$LINENO: result: $CC" >&5
2729 echo "${ECHO_T}$CC" >&6
2731 echo "$as_me:$LINENO: result: no" >&5
2732 echo "${ECHO_T}no" >&6
2736 if test -z "$ac_cv_prog_CC"; then
2738 # Extract the first word of "gcc", so it can be a program name with args.
2739 set dummy gcc
; ac_word
=$2
2740 echo "$as_me:$LINENO: checking for $ac_word" >&5
2741 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2742 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2743 echo $ECHO_N "(cached) $ECHO_C" >&6
2745 if test -n "$ac_ct_CC"; then
2746 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2748 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2752 test -z "$as_dir" && as_dir
=.
2753 for ac_exec_ext
in '' $ac_executable_extensions; do
2754 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2755 ac_cv_prog_ac_ct_CC
="gcc"
2756 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2764 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2765 if test -n "$ac_ct_CC"; then
2766 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2767 echo "${ECHO_T}$ac_ct_CC" >&6
2769 echo "$as_me:$LINENO: result: no" >&5
2770 echo "${ECHO_T}no" >&6
2778 if test -z "$CC"; then
2779 if test -n "$ac_tool_prefix"; then
2780 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2781 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2782 echo "$as_me:$LINENO: checking for $ac_word" >&5
2783 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2784 if test "${ac_cv_prog_CC+set}" = set; then
2785 echo $ECHO_N "(cached) $ECHO_C" >&6
2787 if test -n "$CC"; then
2788 ac_cv_prog_CC
="$CC" # Let the user override the test.
2790 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2794 test -z "$as_dir" && as_dir
=.
2795 for ac_exec_ext
in '' $ac_executable_extensions; do
2796 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2797 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2798 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2807 if test -n "$CC"; then
2808 echo "$as_me:$LINENO: result: $CC" >&5
2809 echo "${ECHO_T}$CC" >&6
2811 echo "$as_me:$LINENO: result: no" >&5
2812 echo "${ECHO_T}no" >&6
2816 if test -z "$ac_cv_prog_CC"; then
2818 # Extract the first word of "cc", so it can be a program name with args.
2819 set dummy cc
; ac_word
=$2
2820 echo "$as_me:$LINENO: checking for $ac_word" >&5
2821 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2822 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2823 echo $ECHO_N "(cached) $ECHO_C" >&6
2825 if test -n "$ac_ct_CC"; then
2826 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2828 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2832 test -z "$as_dir" && as_dir
=.
2833 for ac_exec_ext
in '' $ac_executable_extensions; do
2834 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2835 ac_cv_prog_ac_ct_CC
="cc"
2836 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2844 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2845 if test -n "$ac_ct_CC"; then
2846 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2847 echo "${ECHO_T}$ac_ct_CC" >&6
2849 echo "$as_me:$LINENO: result: no" >&5
2850 echo "${ECHO_T}no" >&6
2859 if test -z "$CC"; then
2860 # Extract the first word of "cc", so it can be a program name with args.
2861 set dummy cc
; ac_word
=$2
2862 echo "$as_me:$LINENO: checking for $ac_word" >&5
2863 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2864 if test "${ac_cv_prog_CC+set}" = set; then
2865 echo $ECHO_N "(cached) $ECHO_C" >&6
2867 if test -n "$CC"; then
2868 ac_cv_prog_CC
="$CC" # Let the user override the test.
2871 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2875 test -z "$as_dir" && as_dir
=.
2876 for ac_exec_ext
in '' $ac_executable_extensions; do
2877 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2878 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2879 ac_prog_rejected
=yes
2883 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2889 if test $ac_prog_rejected = yes; then
2890 # We found a bogon in the path, so make sure we never use it.
2891 set dummy
$ac_cv_prog_CC
2893 if test $# != 0; then
2894 # We chose a different compiler from the bogus one.
2895 # However, it has the same basename, so the bogon will be chosen
2896 # first if we set CC to just the basename; use the full file name.
2898 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2904 if test -n "$CC"; then
2905 echo "$as_me:$LINENO: result: $CC" >&5
2906 echo "${ECHO_T}$CC" >&6
2908 echo "$as_me:$LINENO: result: no" >&5
2909 echo "${ECHO_T}no" >&6
2913 if test -z "$CC"; then
2914 if test -n "$ac_tool_prefix"; then
2917 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2918 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2919 echo "$as_me:$LINENO: checking for $ac_word" >&5
2920 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2921 if test "${ac_cv_prog_CC+set}" = set; then
2922 echo $ECHO_N "(cached) $ECHO_C" >&6
2924 if test -n "$CC"; then
2925 ac_cv_prog_CC
="$CC" # Let the user override the test.
2927 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2931 test -z "$as_dir" && as_dir
=.
2932 for ac_exec_ext
in '' $ac_executable_extensions; do
2933 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2934 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2935 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2944 if test -n "$CC"; then
2945 echo "$as_me:$LINENO: result: $CC" >&5
2946 echo "${ECHO_T}$CC" >&6
2948 echo "$as_me:$LINENO: result: no" >&5
2949 echo "${ECHO_T}no" >&6
2952 test -n "$CC" && break
2955 if test -z "$CC"; then
2959 # Extract the first word of "$ac_prog", so it can be a program name with args.
2960 set dummy
$ac_prog; ac_word
=$2
2961 echo "$as_me:$LINENO: checking for $ac_word" >&5
2962 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2963 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2964 echo $ECHO_N "(cached) $ECHO_C" >&6
2966 if test -n "$ac_ct_CC"; then
2967 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2969 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2973 test -z "$as_dir" && as_dir
=.
2974 for ac_exec_ext
in '' $ac_executable_extensions; do
2975 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2976 ac_cv_prog_ac_ct_CC
="$ac_prog"
2977 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2985 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2986 if test -n "$ac_ct_CC"; then
2987 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2988 echo "${ECHO_T}$ac_ct_CC" >&6
2990 echo "$as_me:$LINENO: result: no" >&5
2991 echo "${ECHO_T}no" >&6
2994 test -n "$ac_ct_CC" && break
3003 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3004 See \`config.log' for more details." >&5
3005 echo "$as_me: error: no acceptable C compiler found in \$PATH
3006 See \`config.log' for more details." >&2;}
3007 { (exit 1); exit 1; }; }
3009 # Provide some information about the compiler.
3010 echo "$as_me:$LINENO:" \
3011 "checking for C compiler version" >&5
3012 ac_compiler
=`set X $ac_compile; echo $2`
3013 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3014 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
3016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3017 (exit $ac_status); }
3018 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3019 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
3021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3022 (exit $ac_status); }
3023 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3024 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
3026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3027 (exit $ac_status); }
3029 cat >conftest.
$ac_ext <<_ACEOF
3032 cat confdefs.h
>>conftest.
$ac_ext
3033 cat >>conftest.
$ac_ext <<_ACEOF
3034 /* end confdefs.h. */
3044 ac_clean_files_save
=$ac_clean_files
3045 ac_clean_files
="$ac_clean_files a.out a.exe b.out"
3046 # Try to create an executable without -o first, disregard a.out.
3047 # It will help us diagnose broken compilers, and finding out an intuition
3049 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3050 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
3051 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3052 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
3053 (eval $ac_link_default) 2>&5
3055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3056 (exit $ac_status); }; then
3057 # Find the output, starting from the most likely. This scheme is
3058 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
3061 # Be careful to initialize this variable, since it used to be cached.
3062 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
3064 # b.out is created by i960 compilers.
3065 for ac_file
in a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
3067 test -f "$ac_file" ||
continue
3069 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
)
3072 # This is the source file.
3075 # We found the default executable, but exeext='' is most
3079 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3080 # FIXME: I believe we export ac_cv_exeext for Libtool,
3081 # but it would be cool to find out if it's true. Does anybody
3082 # maintain Libtool? --akim.
3090 echo "$as_me: failed program was:" >&5
3091 sed 's/^/| /' conftest.
$ac_ext >&5
3093 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3094 See \`config.log' for more details." >&5
3095 echo "$as_me: error: C compiler cannot create executables
3096 See \`config.log' for more details." >&2;}
3097 { (exit 77); exit 77; }; }
3100 ac_exeext
=$ac_cv_exeext
3101 echo "$as_me:$LINENO: result: $ac_file" >&5
3102 echo "${ECHO_T}$ac_file" >&6
3104 # Check the compiler produces executables we can run. If not, either
3105 # the compiler is broken, or we cross compile.
3106 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3107 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
3108 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3109 # If not cross compiling, check that we can run a simple program.
3110 if test "$cross_compiling" != yes; then
3111 if { ac_try
='./$ac_file'
3112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3116 (exit $ac_status); }; }; then
3119 if test "$cross_compiling" = maybe
; then
3122 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3123 If you meant to cross compile, use \`--host'.
3124 See \`config.log' for more details." >&5
3125 echo "$as_me: error: cannot run C compiled programs.
3126 If you meant to cross compile, use \`--host'.
3127 See \`config.log' for more details." >&2;}
3128 { (exit 1); exit 1; }; }
3132 echo "$as_me:$LINENO: result: yes" >&5
3133 echo "${ECHO_T}yes" >&6
3135 rm -f a.out a.exe conftest
$ac_cv_exeext b.out
3136 ac_clean_files
=$ac_clean_files_save
3137 # Check the compiler produces executables we can run. If not, either
3138 # the compiler is broken, or we cross compile.
3139 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3140 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3141 echo "$as_me:$LINENO: result: $cross_compiling" >&5
3142 echo "${ECHO_T}$cross_compiling" >&6
3144 echo "$as_me:$LINENO: checking for suffix of executables" >&5
3145 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3146 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3147 (eval $ac_link) 2>&5
3149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3150 (exit $ac_status); }; then
3151 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3152 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3153 # work properly (i.e., refer to `conftest.exe'), while it won't with
3155 for ac_file
in conftest.exe conftest conftest.
*; do
3156 test -f "$ac_file" ||
continue
3158 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
3159 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3166 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3167 See \`config.log' for more details." >&5
3168 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3169 See \`config.log' for more details." >&2;}
3170 { (exit 1); exit 1; }; }
3173 rm -f conftest
$ac_cv_exeext
3174 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3175 echo "${ECHO_T}$ac_cv_exeext" >&6
3177 rm -f conftest.
$ac_ext
3178 EXEEXT
=$ac_cv_exeext
3180 echo "$as_me:$LINENO: checking for suffix of object files" >&5
3181 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
3182 if test "${ac_cv_objext+set}" = set; then
3183 echo $ECHO_N "(cached) $ECHO_C" >&6
3185 cat >conftest.
$ac_ext <<_ACEOF
3188 cat confdefs.h
>>conftest.
$ac_ext
3189 cat >>conftest.
$ac_ext <<_ACEOF
3190 /* end confdefs.h. */
3200 rm -f conftest.o conftest.obj
3201 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3202 (eval $ac_compile) 2>&5
3204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3205 (exit $ac_status); }; then
3206 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3208 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg
) ;;
3209 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
3214 echo "$as_me: failed program was:" >&5
3215 sed 's/^/| /' conftest.
$ac_ext >&5
3217 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3218 See \`config.log' for more details." >&5
3219 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3220 See \`config.log' for more details." >&2;}
3221 { (exit 1); exit 1; }; }
3224 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
3226 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3227 echo "${ECHO_T}$ac_cv_objext" >&6
3228 OBJEXT
=$ac_cv_objext
3230 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3231 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3232 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3233 echo $ECHO_N "(cached) $ECHO_C" >&6
3235 cat >conftest.
$ac_ext <<_ACEOF
3238 cat confdefs.h
>>conftest.
$ac_ext
3239 cat >>conftest.
$ac_ext <<_ACEOF
3240 /* end confdefs.h. */
3253 rm -f conftest.
$ac_objext
3254 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3255 (eval $ac_compile) 2>conftest.er1
3257 grep -v '^ *+' conftest.er1
>conftest.err
3259 cat conftest.err
>&5
3260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3261 (exit $ac_status); } &&
3262 { ac_try
='test -z "$ac_c_werror_flag"
3263 || test ! -s conftest.err'
3264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3268 (exit $ac_status); }; } &&
3269 { ac_try
='test -s conftest.$ac_objext'
3270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3274 (exit $ac_status); }; }; then
3277 echo "$as_me: failed program was:" >&5
3278 sed 's/^/| /' conftest.
$ac_ext >&5
3282 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3283 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
3286 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3287 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3288 GCC
=`test $ac_compiler_gnu = yes && echo yes`
3289 ac_test_CFLAGS
=${CFLAGS+set}
3290 ac_save_CFLAGS
=$CFLAGS
3292 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3293 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3294 if test "${ac_cv_prog_cc_g+set}" = set; then
3295 echo $ECHO_N "(cached) $ECHO_C" >&6
3297 cat >conftest.
$ac_ext <<_ACEOF
3300 cat confdefs.h
>>conftest.
$ac_ext
3301 cat >>conftest.
$ac_ext <<_ACEOF
3302 /* end confdefs.h. */
3312 rm -f conftest.
$ac_objext
3313 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3314 (eval $ac_compile) 2>conftest.er1
3316 grep -v '^ *+' conftest.er1
>conftest.err
3318 cat conftest.err
>&5
3319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3320 (exit $ac_status); } &&
3321 { ac_try
='test -z "$ac_c_werror_flag"
3322 || test ! -s conftest.err'
3323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3327 (exit $ac_status); }; } &&
3328 { ac_try
='test -s conftest.$ac_objext'
3329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3333 (exit $ac_status); }; }; then
3336 echo "$as_me: failed program was:" >&5
3337 sed 's/^/| /' conftest.
$ac_ext >&5
3341 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3343 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3344 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3345 if test "$ac_test_CFLAGS" = set; then
3346 CFLAGS
=$ac_save_CFLAGS
3347 elif test $ac_cv_prog_cc_g = yes; then
3348 if test "$GCC" = yes; then
3354 if test "$GCC" = yes; then
3360 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3361 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3362 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3363 echo $ECHO_N "(cached) $ECHO_C" >&6
3365 ac_cv_prog_cc_stdc
=no
3367 cat >conftest.
$ac_ext <<_ACEOF
3370 cat confdefs.h
>>conftest.
$ac_ext
3371 cat >>conftest.
$ac_ext <<_ACEOF
3372 /* end confdefs.h. */
3375 #include <sys/types.h>
3376 #include <sys/stat.h>
3377 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3378 struct buf { int x; };
3379 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3380 static char *e (p, i)
3386 static char *f (char * (*g) (char **, int), char **p, ...)
3391 s = g (p, va_arg (v,int));
3396 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3397 function prototypes and stuff, but not '\xHH' hex character constants.
3398 These don't provoke an error unfortunately, instead are silently treated
3399 as 'x'. The following induces an error, until -std1 is added to get
3400 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3401 array size at least. It's necessary to write '\x00'==0 to get something
3402 that's true only with -std1. */
3403 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3405 int test (int i, double x);
3406 struct s1 {int (*f) (int a);};
3407 struct s2 {int (*f) (double a);};
3408 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3414 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3419 # Don't try gcc -ansi; that turns off useful extensions and
3420 # breaks some systems' header files.
3421 # AIX -qlanglvl=ansi
3422 # Ultrix and OSF/1 -std1
3423 # HP-UX 10.20 and later -Ae
3424 # HP-UX older versions -Aa -D_HPUX_SOURCE
3425 # SVR4 -Xc -D__EXTENSIONS__
3426 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3428 CC
="$ac_save_CC $ac_arg"
3429 rm -f conftest.
$ac_objext
3430 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3431 (eval $ac_compile) 2>conftest.er1
3433 grep -v '^ *+' conftest.er1
>conftest.err
3435 cat conftest.err
>&5
3436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3437 (exit $ac_status); } &&
3438 { ac_try
='test -z "$ac_c_werror_flag"
3439 || test ! -s conftest.err'
3440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3444 (exit $ac_status); }; } &&
3445 { ac_try
='test -s conftest.$ac_objext'
3446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3450 (exit $ac_status); }; }; then
3451 ac_cv_prog_cc_stdc
=$ac_arg
3454 echo "$as_me: failed program was:" >&5
3455 sed 's/^/| /' conftest.
$ac_ext >&5
3458 rm -f conftest.err conftest.
$ac_objext
3460 rm -f conftest.
$ac_ext conftest.
$ac_objext
3465 case "x$ac_cv_prog_cc_stdc" in
3467 echo "$as_me:$LINENO: result: none needed" >&5
3468 echo "${ECHO_T}none needed" >&6 ;;
3470 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3471 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3472 CC
="$CC $ac_cv_prog_cc_stdc" ;;
3475 # Some people use a C++ compiler to compile C. Since we use `exit',
3476 # in C++ we need to declare it. In case someone uses the same compiler
3477 # for both compiling C and C++ we need to have the C++ compiler decide
3478 # the declaration of exit, since it's the most demanding environment.
3479 cat >conftest.
$ac_ext <<_ACEOF
3484 rm -f conftest.
$ac_objext
3485 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3486 (eval $ac_compile) 2>conftest.er1
3488 grep -v '^ *+' conftest.er1
>conftest.err
3490 cat conftest.err
>&5
3491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3492 (exit $ac_status); } &&
3493 { ac_try
='test -z "$ac_c_werror_flag"
3494 || test ! -s conftest.err'
3495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3499 (exit $ac_status); }; } &&
3500 { ac_try
='test -s conftest.$ac_objext'
3501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3505 (exit $ac_status); }; }; then
3506 for ac_declaration
in \
3508 'extern "C" void std::exit (int) throw (); using std::exit;' \
3509 'extern "C" void std::exit (int); using std::exit;' \
3510 'extern "C" void exit (int) throw ();' \
3511 'extern "C" void exit (int);' \
3514 cat >conftest.
$ac_ext <<_ACEOF
3517 cat confdefs.h
>>conftest.
$ac_ext
3518 cat >>conftest.
$ac_ext <<_ACEOF
3519 /* end confdefs.h. */
3530 rm -f conftest.
$ac_objext
3531 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3532 (eval $ac_compile) 2>conftest.er1
3534 grep -v '^ *+' conftest.er1
>conftest.err
3536 cat conftest.err
>&5
3537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3538 (exit $ac_status); } &&
3539 { ac_try
='test -z "$ac_c_werror_flag"
3540 || test ! -s conftest.err'
3541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3545 (exit $ac_status); }; } &&
3546 { ac_try
='test -s conftest.$ac_objext'
3547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3551 (exit $ac_status); }; }; then
3554 echo "$as_me: failed program was:" >&5
3555 sed 's/^/| /' conftest.
$ac_ext >&5
3559 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3560 cat >conftest.
$ac_ext <<_ACEOF
3563 cat confdefs.h
>>conftest.
$ac_ext
3564 cat >>conftest.
$ac_ext <<_ACEOF
3565 /* end confdefs.h. */
3575 rm -f conftest.
$ac_objext
3576 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3577 (eval $ac_compile) 2>conftest.er1
3579 grep -v '^ *+' conftest.er1
>conftest.err
3581 cat conftest.err
>&5
3582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3583 (exit $ac_status); } &&
3584 { ac_try
='test -z "$ac_c_werror_flag"
3585 || test ! -s conftest.err'
3586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3590 (exit $ac_status); }; } &&
3591 { ac_try
='test -s conftest.$ac_objext'
3592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3596 (exit $ac_status); }; }; then
3599 echo "$as_me: failed program was:" >&5
3600 sed 's/^/| /' conftest.
$ac_ext >&5
3603 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3606 if test -n "$ac_declaration"; then
3607 echo '#ifdef __cplusplus' >>confdefs.h
3608 echo $ac_declaration >>confdefs.h
3609 echo '#endif' >>confdefs.h
3613 echo "$as_me: failed program was:" >&5
3614 sed 's/^/| /' conftest.
$ac_ext >&5
3617 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3619 ac_cpp
='$CPP $CPPFLAGS'
3620 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3621 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3622 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3625 # On Suns, sometimes $CPP names a directory.
3626 if test -n "$CPP" && test -d "$CPP"; then
3630 #### Some systems specify a CPP to use unless we are using GCC.
3631 #### Now that we know whether we are using GCC, we can decide whether
3632 #### to use that one.
3633 if test "x$NON_GNU_CPP" != x
&& test x
$GCC != xyes
&& test "x$CPP" = x
3638 #### Some systems specify a CC to use unless we are using GCC.
3639 #### Now that we know whether we are using GCC, we can decide whether
3640 #### to use that one.
3641 if test "x$NON_GNU_CC" != x
&& test x
$GCC != xyes
&&
3642 test x
$cc_specified != xyes
3647 if test x
$GCC = xyes
&& test "x$GCC_TEST_OPTIONS" != x
3649 CC
="$CC $GCC_TEST_OPTIONS"
3652 if test x
$GCC = x
&& test "x$NON_GCC_TEST_OPTIONS" != x
3654 CC
="$CC $NON_GCC_TEST_OPTIONS"
3657 #### Some other nice autoconf tests.
3659 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3660 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3662 if test "$LN_S" = "ln -s"; then
3663 echo "$as_me:$LINENO: result: yes" >&5
3664 echo "${ECHO_T}yes" >&6
3666 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3667 echo "${ECHO_T}no, using $LN_S" >&6
3671 ac_cpp
='$CPP $CPPFLAGS'
3672 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3673 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3674 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3675 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3676 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3677 # On Suns, sometimes $CPP names a directory.
3678 if test -n "$CPP" && test -d "$CPP"; then
3681 if test -z "$CPP"; then
3682 if test "${ac_cv_prog_CPP+set}" = set; then
3683 echo $ECHO_N "(cached) $ECHO_C" >&6
3685 # Double quotes because CPP needs to be expanded
3686 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3689 for ac_c_preproc_warn_flag
in '' yes
3691 # Use a header file that comes with gcc, so configuring glibc
3692 # with a fresh cross-compiler works.
3693 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3694 # <limits.h> exists even on freestanding compilers.
3695 # On the NeXT, cc -E runs the code through the compiler's parser,
3696 # not just through cpp. "Syntax error" is here to catch this case.
3697 cat >conftest.
$ac_ext <<_ACEOF
3700 cat confdefs.h
>>conftest.
$ac_ext
3701 cat >>conftest.
$ac_ext <<_ACEOF
3702 /* end confdefs.h. */
3704 # include <limits.h>
3706 # include <assert.h>
3710 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3711 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3713 grep -v '^ *+' conftest.er1
>conftest.err
3715 cat conftest.err
>&5
3716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3717 (exit $ac_status); } >/dev
/null
; then
3718 if test -s conftest.err
; then
3719 ac_cpp_err
=$ac_c_preproc_warn_flag
3720 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3727 if test -z "$ac_cpp_err"; then
3730 echo "$as_me: failed program was:" >&5
3731 sed 's/^/| /' conftest.
$ac_ext >&5
3733 # Broken: fails on valid input.
3736 rm -f conftest.err conftest.
$ac_ext
3738 # OK, works on sane cases. Now check whether non-existent headers
3739 # can be detected and how.
3740 cat >conftest.
$ac_ext <<_ACEOF
3743 cat confdefs.h
>>conftest.
$ac_ext
3744 cat >>conftest.
$ac_ext <<_ACEOF
3745 /* end confdefs.h. */
3746 #include <ac_nonexistent.h>
3748 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3749 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3751 grep -v '^ *+' conftest.er1
>conftest.err
3753 cat conftest.err
>&5
3754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3755 (exit $ac_status); } >/dev
/null
; then
3756 if test -s conftest.err
; then
3757 ac_cpp_err
=$ac_c_preproc_warn_flag
3758 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3765 if test -z "$ac_cpp_err"; then
3766 # Broken: success on invalid input.
3769 echo "$as_me: failed program was:" >&5
3770 sed 's/^/| /' conftest.
$ac_ext >&5
3772 # Passes both tests.
3776 rm -f conftest.err conftest.
$ac_ext
3779 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3780 rm -f conftest.err conftest.
$ac_ext
3781 if $ac_preproc_ok; then
3793 echo "$as_me:$LINENO: result: $CPP" >&5
3794 echo "${ECHO_T}$CPP" >&6
3796 for ac_c_preproc_warn_flag
in '' yes
3798 # Use a header file that comes with gcc, so configuring glibc
3799 # with a fresh cross-compiler works.
3800 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3801 # <limits.h> exists even on freestanding compilers.
3802 # On the NeXT, cc -E runs the code through the compiler's parser,
3803 # not just through cpp. "Syntax error" is here to catch this case.
3804 cat >conftest.
$ac_ext <<_ACEOF
3807 cat confdefs.h
>>conftest.
$ac_ext
3808 cat >>conftest.
$ac_ext <<_ACEOF
3809 /* end confdefs.h. */
3811 # include <limits.h>
3813 # include <assert.h>
3817 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3818 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3820 grep -v '^ *+' conftest.er1
>conftest.err
3822 cat conftest.err
>&5
3823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3824 (exit $ac_status); } >/dev
/null
; then
3825 if test -s conftest.err
; then
3826 ac_cpp_err
=$ac_c_preproc_warn_flag
3827 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3834 if test -z "$ac_cpp_err"; then
3837 echo "$as_me: failed program was:" >&5
3838 sed 's/^/| /' conftest.
$ac_ext >&5
3840 # Broken: fails on valid input.
3843 rm -f conftest.err conftest.
$ac_ext
3845 # OK, works on sane cases. Now check whether non-existent headers
3846 # can be detected and how.
3847 cat >conftest.
$ac_ext <<_ACEOF
3850 cat confdefs.h
>>conftest.
$ac_ext
3851 cat >>conftest.
$ac_ext <<_ACEOF
3852 /* end confdefs.h. */
3853 #include <ac_nonexistent.h>
3855 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3856 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3858 grep -v '^ *+' conftest.er1
>conftest.err
3860 cat conftest.err
>&5
3861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3862 (exit $ac_status); } >/dev
/null
; then
3863 if test -s conftest.err
; then
3864 ac_cpp_err
=$ac_c_preproc_warn_flag
3865 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3872 if test -z "$ac_cpp_err"; then
3873 # Broken: success on invalid input.
3876 echo "$as_me: failed program was:" >&5
3877 sed 's/^/| /' conftest.
$ac_ext >&5
3879 # Passes both tests.
3883 rm -f conftest.err conftest.
$ac_ext
3886 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3887 rm -f conftest.err conftest.
$ac_ext
3888 if $ac_preproc_ok; then
3891 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3892 See \`config.log' for more details." >&5
3893 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3894 See \`config.log' for more details." >&2;}
3895 { (exit 1); exit 1; }; }
3899 ac_cpp
='$CPP $CPPFLAGS'
3900 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3901 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3902 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3904 # Find a good install program. We prefer a C program (faster),
3905 # so one script is as good as another. But avoid the broken or
3906 # incompatible versions:
3907 # SysV /etc/install, /usr/sbin/install
3908 # SunOS /usr/etc/install
3909 # IRIX /sbin/install
3911 # AmigaOS /C/install, which installs bootblocks on floppy discs
3912 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3913 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3914 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3915 # OS/2's system install, which has a completely different semantic
3916 # ./install, which can be erroneously created by make from ./install.sh.
3917 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3918 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3919 if test -z "$INSTALL"; then
3920 if test "${ac_cv_path_install+set}" = set; then
3921 echo $ECHO_N "(cached) $ECHO_C" >&6
3923 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3927 test -z "$as_dir" && as_dir
=.
3928 # Account for people who put trailing slashes in PATH elements.
3930 .
/ | .
// |
/cC
/* | \
3931 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
3932 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
3935 # OSF1 and SCO ODT 3.0 have their own names for install.
3936 # Don't use installbsd from OSF since it installs stuff as root
3938 for ac_prog
in ginstall scoinst
install; do
3939 for ac_exec_ext
in '' $ac_executable_extensions; do
3940 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3941 if test $ac_prog = install &&
3942 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3943 # AIX install. It has an incompatible calling convention.
3945 elif test $ac_prog = install &&
3946 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3947 # program-specific install script used by HP pwplus--don't use.
3950 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
3962 if test "${ac_cv_path_install+set}" = set; then
3963 INSTALL
=$ac_cv_path_install
3965 # As a last resort, use the slow shell script. We don't cache a
3966 # path for INSTALL within a source directory, because that will
3967 # break other packages using the cache if that directory is
3968 # removed, or if the path is relative.
3969 INSTALL
=$ac_install_sh
3972 echo "$as_me:$LINENO: result: $INSTALL" >&5
3973 echo "${ECHO_T}$INSTALL" >&6
3975 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3976 # It thinks the first close brace ends the variable substitution.
3977 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
3979 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
3981 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
3983 if test "x$RANLIB" = x
; then
3984 if test -n "$ac_tool_prefix"; then
3985 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3986 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
3987 echo "$as_me:$LINENO: checking for $ac_word" >&5
3988 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3989 if test "${ac_cv_prog_RANLIB+set}" = set; then
3990 echo $ECHO_N "(cached) $ECHO_C" >&6
3992 if test -n "$RANLIB"; then
3993 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
3995 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3999 test -z "$as_dir" && as_dir
=.
4000 for ac_exec_ext
in '' $ac_executable_extensions; do
4001 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4002 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
4003 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4011 RANLIB
=$ac_cv_prog_RANLIB
4012 if test -n "$RANLIB"; then
4013 echo "$as_me:$LINENO: result: $RANLIB" >&5
4014 echo "${ECHO_T}$RANLIB" >&6
4016 echo "$as_me:$LINENO: result: no" >&5
4017 echo "${ECHO_T}no" >&6
4021 if test -z "$ac_cv_prog_RANLIB"; then
4022 ac_ct_RANLIB
=$RANLIB
4023 # Extract the first word of "ranlib", so it can be a program name with args.
4024 set dummy ranlib
; ac_word
=$2
4025 echo "$as_me:$LINENO: checking for $ac_word" >&5
4026 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4027 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4028 echo $ECHO_N "(cached) $ECHO_C" >&6
4030 if test -n "$ac_ct_RANLIB"; then
4031 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
4033 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4037 test -z "$as_dir" && as_dir
=.
4038 for ac_exec_ext
in '' $ac_executable_extensions; do
4039 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4040 ac_cv_prog_ac_ct_RANLIB
="ranlib"
4041 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4047 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
4050 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
4051 if test -n "$ac_ct_RANLIB"; then
4052 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4053 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4055 echo "$as_me:$LINENO: result: no" >&5
4056 echo "${ECHO_T}no" >&6
4059 RANLIB
=$ac_ct_RANLIB
4061 RANLIB
="$ac_cv_prog_RANLIB"
4065 # Extract the first word of "install-info", so it can be a program name with args.
4066 set dummy install-info
; ac_word
=$2
4067 echo "$as_me:$LINENO: checking for $ac_word" >&5
4068 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4069 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4070 echo $ECHO_N "(cached) $ECHO_C" >&6
4072 case $INSTALL_INFO in
4074 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
4077 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4081 test -z "$as_dir" && as_dir
=.
4082 for ac_exec_ext
in '' $ac_executable_extensions; do
4083 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4084 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
4085 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4094 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
4096 if test -n "$INSTALL_INFO"; then
4097 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4098 echo "${ECHO_T}$INSTALL_INFO" >&6
4100 echo "$as_me:$LINENO: result: no" >&5
4101 echo "${ECHO_T}no" >&6
4104 # Extract the first word of "install-info", so it can be a program name with args.
4105 set dummy install-info
; ac_word
=$2
4106 echo "$as_me:$LINENO: checking for $ac_word" >&5
4107 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4108 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4109 echo $ECHO_N "(cached) $ECHO_C" >&6
4111 case $INSTALL_INFO in
4113 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
4116 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4117 for as_dir
in /usr
/sbin
4120 test -z "$as_dir" && as_dir
=.
4121 for ac_exec_ext
in '' $ac_executable_extensions; do
4122 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4123 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
4124 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4133 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
4135 if test -n "$INSTALL_INFO"; then
4136 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4137 echo "${ECHO_T}$INSTALL_INFO" >&6
4139 echo "$as_me:$LINENO: result: no" >&5
4140 echo "${ECHO_T}no" >&6
4143 # Extract the first word of "install-info", so it can be a program name with args.
4144 set dummy install-info
; ac_word
=$2
4145 echo "$as_me:$LINENO: checking for $ac_word" >&5
4146 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4147 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4148 echo $ECHO_N "(cached) $ECHO_C" >&6
4150 case $INSTALL_INFO in
4152 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
4155 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4159 test -z "$as_dir" && as_dir
=.
4160 for ac_exec_ext
in '' $ac_executable_extensions; do
4161 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4162 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
4163 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4169 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO
=":"
4173 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
4175 if test -n "$INSTALL_INFO"; then
4176 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4177 echo "${ECHO_T}$INSTALL_INFO" >&6
4179 echo "$as_me:$LINENO: result: no" >&5
4180 echo "${ECHO_T}no" >&6
4185 if test x
$GCC = xyes
&& test "x$GCC_LINK_TEST_OPTIONS" != x
4187 ac_link
="$ac_link $GCC_LINK_TEST_OPTIONS"
4190 if test x
$GCC = x
&& test "x$NON_GCC_LINK_TEST_OPTIONS" != x
4192 ac_link
="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
4196 late_LDFLAGS
=$LDFLAGS
4197 if test "$GCC" = yes; then
4198 LDFLAGS
="$LDFLAGS -Wl,-znocombreloc"
4200 LDFLAGS
="$LDFLAGS -znocombreloc"
4203 echo "$as_me:$LINENO: checking For -znocombreloc" >&5
4204 echo $ECHO_N "checking For -znocombreloc... $ECHO_C" >&6
4206 cat >conftest.
$ac_ext <<_ACEOF
4209 rm -f conftest.
$ac_objext conftest
$ac_exeext
4210 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4211 (eval $ac_link) 2>conftest.er1
4213 grep -v '^ *+' conftest.er1
>conftest.err
4215 cat conftest.err
>&5
4216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4217 (exit $ac_status); } &&
4218 { ac_try
='test -z "$ac_c_werror_flag"
4219 || test ! -s conftest.err'
4220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4224 (exit $ac_status); }; } &&
4225 { ac_try
='test -s conftest$ac_exeext'
4226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4230 (exit $ac_status); }; }; then
4231 echo "$as_me:$LINENO: result: yes" >&5
4232 echo "${ECHO_T}yes" >&6
4234 echo "$as_me: failed program was:" >&5
4235 sed 's/^/| /' conftest.
$ac_ext >&5
4237 LDFLAGS
=$late_LDFLAGS
4238 echo "$as_me:$LINENO: result: no" >&5
4239 echo "${ECHO_T}no" >&6
4241 rm -f conftest.err conftest.
$ac_objext \
4242 conftest
$ac_exeext conftest.
$ac_ext
4245 echo "$as_me:$LINENO: checking for egrep" >&5
4246 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4247 if test "${ac_cv_prog_egrep+set}" = set; then
4248 echo $ECHO_N "(cached) $ECHO_C" >&6
4250 if echo a |
(grep -E '(a|b)') >/dev
/null
2>&1
4251 then ac_cv_prog_egrep
='grep -E'
4252 else ac_cv_prog_egrep
='egrep'
4255 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4256 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4257 EGREP
=$ac_cv_prog_egrep
4261 echo "$as_me:$LINENO: checking for AIX" >&5
4262 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
4263 cat >conftest.
$ac_ext <<_ACEOF
4266 cat confdefs.h
>>conftest.
$ac_ext
4267 cat >>conftest.
$ac_ext <<_ACEOF
4268 /* end confdefs.h. */
4274 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4275 $EGREP "yes" >/dev
/null
2>&1; then
4276 echo "$as_me:$LINENO: result: yes" >&5
4277 echo "${ECHO_T}yes" >&6
4278 cat >>confdefs.h
<<\_ACEOF
4279 #define _ALL_SOURCE 1
4283 echo "$as_me:$LINENO: result: no" >&5
4284 echo "${ECHO_T}no" >&6
4291 #### Extract some information from the operating system and machine files.
4293 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
4294 - which libraries the lib-src programs will want, and
4295 - whether the GNU malloc routines are usable..." >&5
4296 echo "$as_me: checking the machine- and system-dependent files to find out
4297 - which libraries the lib-src programs will want, and
4298 - whether the GNU malloc routines are usable..." >&6;}
4300 ### First figure out CFLAGS (which we use for running the compiler here)
4301 ### and REAL_CFLAGS (which we use for real compilation).
4302 ### The two are the same except on a few systems, where they are made
4303 ### different to work around various lossages. For example,
4304 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
4305 ### as implying static linking.
4307 ### If the CFLAGS env var is specified, we use that value
4308 ### instead of the default.
4310 ### It's not important that this name contain the PID; you can't run
4311 ### two configures in the same directory and have anything work
4313 tempcname
="conftest.c"
4316 #include "'${srcdir}'/src/'${opsysfile}'"
4317 #include "'${srcdir}'/src/'${machfile}'"
4318 #ifndef LIBS_MACHINE
4319 #define LIBS_MACHINE
4324 #ifndef C_SWITCH_SYSTEM
4325 #define C_SWITCH_SYSTEM
4327 #ifndef C_SWITCH_MACHINE
4328 #define C_SWITCH_MACHINE
4330 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
4331 configure___ c_switch_system=C_SWITCH_SYSTEM
4332 configure___ c_switch_machine=C_SWITCH_MACHINE
4335 #define LIB_X11_LIB -lX11
4338 #ifndef LIBX11_MACHINE
4339 #define LIBX11_MACHINE
4342 #ifndef LIBX11_SYSTEM
4343 #define LIBX11_SYSTEM
4345 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
4348 configure___ unexec=UNEXEC
4350 configure___ unexec=unexec.o
4353 #ifdef SYSTEM_MALLOC
4354 configure___ system_malloc=yes
4356 configure___ system_malloc=no
4359 #ifdef USE_MMAP_FOR_BUFFERS
4360 configure___ use_mmap_for_buffers=yes
4362 configure___ use_mmap_for_buffers=no
4365 #ifndef C_DEBUG_SWITCH
4366 #define C_DEBUG_SWITCH -g
4369 #ifndef C_OPTIMIZE_SWITCH
4371 #define C_OPTIMIZE_SWITCH -O2
4373 #define C_OPTIMIZE_SWITCH -O
4377 #ifndef LD_SWITCH_MACHINE
4378 #define LD_SWITCH_MACHINE
4381 #ifndef LD_SWITCH_SYSTEM
4382 #define LD_SWITCH_SYSTEM
4385 #ifndef LD_SWITCH_X_SITE_AUX
4386 #define LD_SWITCH_X_SITE_AUX
4389 configure___ ld_switch_system=LD_SWITCH_SYSTEM
4390 configure___ ld_switch_machine=LD_SWITCH_MACHINE
4392 #ifdef THIS_IS_CONFIGURE
4394 /* Get the CFLAGS for tests in configure. */
4396 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
4398 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4401 #else /* not THIS_IS_CONFIGURE */
4403 /* Get the CFLAGS for real compilation. */
4405 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
4407 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4410 #endif /* not THIS_IS_CONFIGURE */
4413 # The value of CPP is a quoted variable reference, so we need to do this
4414 # to get its actual value...
4415 CPP
=`eval "echo $CPP"`
4416 eval `${CPP} -Isrc ${tempcname} \
4417 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4418 if test "x$SPECIFIED_CFLAGS" = x
; then
4419 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
4420 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4422 REAL_CFLAGS
="$CFLAGS"
4426 ac_link
="$ac_link $ld_switch_machine $ld_switch_system"
4428 ### Make sure subsequent tests use flags consistent with the build flags.
4430 if test x
"${OVERRIDE_CPPFLAGS}" != x
; then
4431 CPPFLAGS
="${OVERRIDE_CPPFLAGS}"
4433 CPPFLAGS
="$c_switch_system $c_switch_machine $CPPFLAGS"
4439 cat >>confdefs.h
<<\_ACEOF
4440 #define _GNU_SOURCE 1
4445 # Check whether --enable-largefile or --disable-largefile was given.
4446 if test "${enable_largefile+set}" = set; then
4447 enableval
="$enable_largefile"
4450 if test "$enable_largefile" != no
; then
4452 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4453 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
4454 if test "${ac_cv_sys_largefile_CC+set}" = set; then
4455 echo $ECHO_N "(cached) $ECHO_C" >&6
4457 ac_cv_sys_largefile_CC
=no
4458 if test "$GCC" != yes; then
4461 # IRIX 6.2 and later do not support large files by default,
4462 # so use the C compiler's -n32 option if that helps.
4463 cat >conftest.
$ac_ext <<_ACEOF
4466 cat confdefs.h
>>conftest.
$ac_ext
4467 cat >>conftest.
$ac_ext <<_ACEOF
4468 /* end confdefs.h. */
4469 #include <sys/types.h>
4470 /* Check that off_t can represent 2**63 - 1 correctly.
4471 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4472 since some C++ compilers masquerading as C compilers
4473 incorrectly reject 9223372036854775807. */
4474 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4475 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4476 && LARGE_OFF_T % 2147483647 == 1)
4486 rm -f conftest.
$ac_objext
4487 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4488 (eval $ac_compile) 2>conftest.er1
4490 grep -v '^ *+' conftest.er1
>conftest.err
4492 cat conftest.err
>&5
4493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4494 (exit $ac_status); } &&
4495 { ac_try
='test -z "$ac_c_werror_flag"
4496 || test ! -s conftest.err'
4497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4501 (exit $ac_status); }; } &&
4502 { ac_try
='test -s conftest.$ac_objext'
4503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4507 (exit $ac_status); }; }; then
4510 echo "$as_me: failed program was:" >&5
4511 sed 's/^/| /' conftest.
$ac_ext >&5
4514 rm -f conftest.err conftest.
$ac_objext
4516 rm -f conftest.
$ac_objext
4517 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4518 (eval $ac_compile) 2>conftest.er1
4520 grep -v '^ *+' conftest.er1
>conftest.err
4522 cat conftest.err
>&5
4523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4524 (exit $ac_status); } &&
4525 { ac_try
='test -z "$ac_c_werror_flag"
4526 || test ! -s conftest.err'
4527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4531 (exit $ac_status); }; } &&
4532 { ac_try
='test -s conftest.$ac_objext'
4533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4537 (exit $ac_status); }; }; then
4538 ac_cv_sys_largefile_CC
=' -n32'; break
4540 echo "$as_me: failed program was:" >&5
4541 sed 's/^/| /' conftest.
$ac_ext >&5
4544 rm -f conftest.err conftest.
$ac_objext
4548 rm -f conftest.
$ac_ext
4551 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4552 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
4553 if test "$ac_cv_sys_largefile_CC" != no
; then
4554 CC
=$CC$ac_cv_sys_largefile_CC
4557 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4558 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
4559 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4560 echo $ECHO_N "(cached) $ECHO_C" >&6
4563 ac_cv_sys_file_offset_bits
=no
4564 cat >conftest.
$ac_ext <<_ACEOF
4567 cat confdefs.h
>>conftest.
$ac_ext
4568 cat >>conftest.
$ac_ext <<_ACEOF
4569 /* end confdefs.h. */
4570 #include <sys/types.h>
4571 /* Check that off_t can represent 2**63 - 1 correctly.
4572 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4573 since some C++ compilers masquerading as C compilers
4574 incorrectly reject 9223372036854775807. */
4575 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4576 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4577 && LARGE_OFF_T % 2147483647 == 1)
4587 rm -f conftest.
$ac_objext
4588 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4589 (eval $ac_compile) 2>conftest.er1
4591 grep -v '^ *+' conftest.er1
>conftest.err
4593 cat conftest.err
>&5
4594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4595 (exit $ac_status); } &&
4596 { ac_try
='test -z "$ac_c_werror_flag"
4597 || test ! -s conftest.err'
4598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4602 (exit $ac_status); }; } &&
4603 { ac_try
='test -s conftest.$ac_objext'
4604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4608 (exit $ac_status); }; }; then
4611 echo "$as_me: failed program was:" >&5
4612 sed 's/^/| /' conftest.
$ac_ext >&5
4615 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4616 cat >conftest.
$ac_ext <<_ACEOF
4619 cat confdefs.h
>>conftest.
$ac_ext
4620 cat >>conftest.
$ac_ext <<_ACEOF
4621 /* end confdefs.h. */
4622 #define _FILE_OFFSET_BITS 64
4623 #include <sys/types.h>
4624 /* Check that off_t can represent 2**63 - 1 correctly.
4625 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4626 since some C++ compilers masquerading as C compilers
4627 incorrectly reject 9223372036854775807. */
4628 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4629 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4630 && LARGE_OFF_T % 2147483647 == 1)
4640 rm -f conftest.
$ac_objext
4641 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4642 (eval $ac_compile) 2>conftest.er1
4644 grep -v '^ *+' conftest.er1
>conftest.err
4646 cat conftest.err
>&5
4647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4648 (exit $ac_status); } &&
4649 { ac_try
='test -z "$ac_c_werror_flag"
4650 || test ! -s conftest.err'
4651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4655 (exit $ac_status); }; } &&
4656 { ac_try
='test -s conftest.$ac_objext'
4657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4661 (exit $ac_status); }; }; then
4662 ac_cv_sys_file_offset_bits
=64; break
4664 echo "$as_me: failed program was:" >&5
4665 sed 's/^/| /' conftest.
$ac_ext >&5
4668 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4672 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
4673 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
4674 if test "$ac_cv_sys_file_offset_bits" != no
; then
4676 cat >>confdefs.h
<<_ACEOF
4677 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4682 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
4683 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
4684 if test "${ac_cv_sys_large_files+set}" = set; then
4685 echo $ECHO_N "(cached) $ECHO_C" >&6
4688 ac_cv_sys_large_files
=no
4689 cat >conftest.
$ac_ext <<_ACEOF
4692 cat confdefs.h
>>conftest.
$ac_ext
4693 cat >>conftest.
$ac_ext <<_ACEOF
4694 /* end confdefs.h. */
4695 #include <sys/types.h>
4696 /* Check that off_t can represent 2**63 - 1 correctly.
4697 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4698 since some C++ compilers masquerading as C compilers
4699 incorrectly reject 9223372036854775807. */
4700 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4701 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4702 && LARGE_OFF_T % 2147483647 == 1)
4712 rm -f conftest.
$ac_objext
4713 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4714 (eval $ac_compile) 2>conftest.er1
4716 grep -v '^ *+' conftest.er1
>conftest.err
4718 cat conftest.err
>&5
4719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4720 (exit $ac_status); } &&
4721 { ac_try
='test -z "$ac_c_werror_flag"
4722 || test ! -s conftest.err'
4723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4727 (exit $ac_status); }; } &&
4728 { ac_try
='test -s conftest.$ac_objext'
4729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4733 (exit $ac_status); }; }; then
4736 echo "$as_me: failed program was:" >&5
4737 sed 's/^/| /' conftest.
$ac_ext >&5
4740 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4741 cat >conftest.
$ac_ext <<_ACEOF
4744 cat confdefs.h
>>conftest.
$ac_ext
4745 cat >>conftest.
$ac_ext <<_ACEOF
4746 /* end confdefs.h. */
4747 #define _LARGE_FILES 1
4748 #include <sys/types.h>
4749 /* Check that off_t can represent 2**63 - 1 correctly.
4750 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4751 since some C++ compilers masquerading as C compilers
4752 incorrectly reject 9223372036854775807. */
4753 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4754 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4755 && LARGE_OFF_T % 2147483647 == 1)
4765 rm -f conftest.
$ac_objext
4766 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4767 (eval $ac_compile) 2>conftest.er1
4769 grep -v '^ *+' conftest.er1
>conftest.err
4771 cat conftest.err
>&5
4772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4773 (exit $ac_status); } &&
4774 { ac_try
='test -z "$ac_c_werror_flag"
4775 || test ! -s conftest.err'
4776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4780 (exit $ac_status); }; } &&
4781 { ac_try
='test -s conftest.$ac_objext'
4782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4786 (exit $ac_status); }; }; then
4787 ac_cv_sys_large_files
=1; break
4789 echo "$as_me: failed program was:" >&5
4790 sed 's/^/| /' conftest.
$ac_ext >&5
4793 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4797 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
4798 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
4799 if test "$ac_cv_sys_large_files" != no
; then
4801 cat >>confdefs.h
<<_ACEOF
4802 #define _LARGE_FILES $ac_cv_sys_large_files
4810 if test "${with_sound}" != "no"; then
4811 # Sound support for GNU/Linux and the free BSDs.
4812 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4813 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4814 if test "${ac_cv_header_stdc+set}" = set; then
4815 echo $ECHO_N "(cached) $ECHO_C" >&6
4817 cat >conftest.
$ac_ext <<_ACEOF
4820 cat confdefs.h
>>conftest.
$ac_ext
4821 cat >>conftest.
$ac_ext <<_ACEOF
4822 /* end confdefs.h. */
4836 rm -f conftest.
$ac_objext
4837 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4838 (eval $ac_compile) 2>conftest.er1
4840 grep -v '^ *+' conftest.er1
>conftest.err
4842 cat conftest.err
>&5
4843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4844 (exit $ac_status); } &&
4845 { ac_try
='test -z "$ac_c_werror_flag"
4846 || test ! -s conftest.err'
4847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4851 (exit $ac_status); }; } &&
4852 { ac_try
='test -s conftest.$ac_objext'
4853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4857 (exit $ac_status); }; }; then
4858 ac_cv_header_stdc
=yes
4860 echo "$as_me: failed program was:" >&5
4861 sed 's/^/| /' conftest.
$ac_ext >&5
4863 ac_cv_header_stdc
=no
4865 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4867 if test $ac_cv_header_stdc = yes; then
4868 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4869 cat >conftest.
$ac_ext <<_ACEOF
4872 cat confdefs.h
>>conftest.
$ac_ext
4873 cat >>conftest.
$ac_ext <<_ACEOF
4874 /* end confdefs.h. */
4878 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4879 $EGREP "memchr" >/dev
/null
2>&1; then
4882 ac_cv_header_stdc
=no
4888 if test $ac_cv_header_stdc = yes; then
4889 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4890 cat >conftest.
$ac_ext <<_ACEOF
4893 cat confdefs.h
>>conftest.
$ac_ext
4894 cat >>conftest.
$ac_ext <<_ACEOF
4895 /* end confdefs.h. */
4899 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4900 $EGREP "free" >/dev
/null
2>&1; then
4903 ac_cv_header_stdc
=no
4909 if test $ac_cv_header_stdc = yes; then
4910 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4911 if test "$cross_compiling" = yes; then
4914 cat >conftest.
$ac_ext <<_ACEOF
4917 cat confdefs.h
>>conftest.
$ac_ext
4918 cat >>conftest.
$ac_ext <<_ACEOF
4919 /* end confdefs.h. */
4921 #if ((' ' & 0x0FF) == 0x020)
4922 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4923 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4925 # define ISLOWER(c) \
4926 (('a' <= (c) && (c) <= 'i') \
4927 || ('j' <= (c) && (c) <= 'r') \
4928 || ('s' <= (c) && (c) <= 'z'))
4929 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4932 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4937 for (i = 0; i < 256; i++)
4938 if (XOR (islower (i), ISLOWER (i))
4939 || toupper (i) != TOUPPER (i))
4944 rm -f conftest
$ac_exeext
4945 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4946 (eval $ac_link) 2>&5
4948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4949 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4954 (exit $ac_status); }; }; then
4957 echo "$as_me: program exited with status $ac_status" >&5
4958 echo "$as_me: failed program was:" >&5
4959 sed 's/^/| /' conftest.
$ac_ext >&5
4962 ac_cv_header_stdc
=no
4964 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4968 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4969 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4970 if test $ac_cv_header_stdc = yes; then
4972 cat >>confdefs.h
<<\_ACEOF
4973 #define STDC_HEADERS 1
4978 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4988 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4989 inttypes.h stdint.h unistd.h
4991 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4992 echo "$as_me:$LINENO: checking for $ac_header" >&5
4993 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4994 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4995 echo $ECHO_N "(cached) $ECHO_C" >&6
4997 cat >conftest.
$ac_ext <<_ACEOF
5000 cat confdefs.h
>>conftest.
$ac_ext
5001 cat >>conftest.
$ac_ext <<_ACEOF
5002 /* end confdefs.h. */
5003 $ac_includes_default
5005 #include <$ac_header>
5007 rm -f conftest.
$ac_objext
5008 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5009 (eval $ac_compile) 2>conftest.er1
5011 grep -v '^ *+' conftest.er1
>conftest.err
5013 cat conftest.err
>&5
5014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5015 (exit $ac_status); } &&
5016 { ac_try
='test -z "$ac_c_werror_flag"
5017 || test ! -s conftest.err'
5018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5022 (exit $ac_status); }; } &&
5023 { ac_try
='test -s conftest.$ac_objext'
5024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5028 (exit $ac_status); }; }; then
5029 eval "$as_ac_Header=yes"
5031 echo "$as_me: failed program was:" >&5
5032 sed 's/^/| /' conftest.
$ac_ext >&5
5034 eval "$as_ac_Header=no"
5036 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5038 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5039 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5040 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5041 cat >>confdefs.h
<<_ACEOF
5042 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5053 for ac_header
in machine
/soundcard.h sys
/soundcard.h soundcard.h
5055 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5056 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5057 echo "$as_me:$LINENO: checking for $ac_header" >&5
5058 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5059 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5060 echo $ECHO_N "(cached) $ECHO_C" >&6
5062 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5063 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5065 # Is the header compilable?
5066 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5067 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5068 cat >conftest.
$ac_ext <<_ACEOF
5071 cat confdefs.h
>>conftest.
$ac_ext
5072 cat >>conftest.
$ac_ext <<_ACEOF
5073 /* end confdefs.h. */
5074 $ac_includes_default
5075 #include <$ac_header>
5077 rm -f conftest.
$ac_objext
5078 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5079 (eval $ac_compile) 2>conftest.er1
5081 grep -v '^ *+' conftest.er1
>conftest.err
5083 cat conftest.err
>&5
5084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5085 (exit $ac_status); } &&
5086 { ac_try
='test -z "$ac_c_werror_flag"
5087 || test ! -s conftest.err'
5088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5092 (exit $ac_status); }; } &&
5093 { ac_try
='test -s conftest.$ac_objext'
5094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5098 (exit $ac_status); }; }; then
5099 ac_header_compiler
=yes
5101 echo "$as_me: failed program was:" >&5
5102 sed 's/^/| /' conftest.
$ac_ext >&5
5104 ac_header_compiler
=no
5106 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5107 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5108 echo "${ECHO_T}$ac_header_compiler" >&6
5110 # Is the header present?
5111 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5112 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5113 cat >conftest.
$ac_ext <<_ACEOF
5116 cat confdefs.h
>>conftest.
$ac_ext
5117 cat >>conftest.
$ac_ext <<_ACEOF
5118 /* end confdefs.h. */
5119 #include <$ac_header>
5121 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5122 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5124 grep -v '^ *+' conftest.er1
>conftest.err
5126 cat conftest.err
>&5
5127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5128 (exit $ac_status); } >/dev
/null
; then
5129 if test -s conftest.err
; then
5130 ac_cpp_err
=$ac_c_preproc_warn_flag
5131 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
5138 if test -z "$ac_cpp_err"; then
5139 ac_header_preproc
=yes
5141 echo "$as_me: failed program was:" >&5
5142 sed 's/^/| /' conftest.
$ac_ext >&5
5144 ac_header_preproc
=no
5146 rm -f conftest.err conftest.
$ac_ext
5147 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5148 echo "${ECHO_T}$ac_header_preproc" >&6
5150 # So? What about this header?
5151 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5153 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5154 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5155 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5156 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5157 ac_header_preproc
=yes
5160 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5161 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5162 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5163 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5164 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5165 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5166 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5167 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5168 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5169 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5170 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5171 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5174 ## ------------------------------------------ ##
5175 ## Report this to the AC_PACKAGE_NAME lists. ##
5176 ## ------------------------------------------ ##
5179 sed "s/^/$as_me: WARNING: /" >&2
5182 echo "$as_me:$LINENO: checking for $ac_header" >&5
5183 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5184 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5185 echo $ECHO_N "(cached) $ECHO_C" >&6
5187 eval "$as_ac_Header=\$ac_header_preproc"
5189 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5190 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5193 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5194 cat >>confdefs.h
<<_ACEOF
5195 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5202 # Emulation library used on NetBSD.
5203 echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
5204 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
5205 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
5206 echo $ECHO_N "(cached) $ECHO_C" >&6
5208 ac_check_lib_save_LIBS
=$LIBS
5209 LIBS
="-lossaudio $LIBS"
5210 cat >conftest.
$ac_ext <<_ACEOF
5213 cat confdefs.h
>>conftest.
$ac_ext
5214 cat >>conftest.
$ac_ext <<_ACEOF
5215 /* end confdefs.h. */
5217 /* Override any gcc2 internal prototype to avoid an error. */
5221 /* We use char because int might match the return type of a gcc2
5222 builtin and then its argument prototype would still apply. */
5232 rm -f conftest.
$ac_objext conftest
$ac_exeext
5233 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5234 (eval $ac_link) 2>conftest.er1
5236 grep -v '^ *+' conftest.er1
>conftest.err
5238 cat conftest.err
>&5
5239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5240 (exit $ac_status); } &&
5241 { ac_try
='test -z "$ac_c_werror_flag"
5242 || test ! -s conftest.err'
5243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5247 (exit $ac_status); }; } &&
5248 { ac_try
='test -s conftest$ac_exeext'
5249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5253 (exit $ac_status); }; }; then
5254 ac_cv_lib_ossaudio__oss_ioctl
=yes
5256 echo "$as_me: failed program was:" >&5
5257 sed 's/^/| /' conftest.
$ac_ext >&5
5259 ac_cv_lib_ossaudio__oss_ioctl
=no
5261 rm -f conftest.err conftest.
$ac_objext \
5262 conftest
$ac_exeext conftest.
$ac_ext
5263 LIBS
=$ac_check_lib_save_LIBS
5265 echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
5266 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
5267 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
5300 for ac_header
in sys
/select.h sys
/timeb.h sys
/time.h unistd.h utime.h \
5301 linux
/version.h sys
/systeminfo.h termios.h limits.h string.h stdlib.h \
5302 termcap.h stdio_ext.h fcntl.h
strings.h coff.h pty.h sys
/mman.h \
5303 sys
/param.h sys
/vlimit.h sys
/resource.h locale.h sys
/_mbstate_t.h \
5306 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5307 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5308 echo "$as_me:$LINENO: checking for $ac_header" >&5
5309 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5310 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5311 echo $ECHO_N "(cached) $ECHO_C" >&6
5313 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5314 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5316 # Is the header compilable?
5317 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5318 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5319 cat >conftest.
$ac_ext <<_ACEOF
5322 cat confdefs.h
>>conftest.
$ac_ext
5323 cat >>conftest.
$ac_ext <<_ACEOF
5324 /* end confdefs.h. */
5325 $ac_includes_default
5326 #include <$ac_header>
5328 rm -f conftest.
$ac_objext
5329 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5330 (eval $ac_compile) 2>conftest.er1
5332 grep -v '^ *+' conftest.er1
>conftest.err
5334 cat conftest.err
>&5
5335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5336 (exit $ac_status); } &&
5337 { ac_try
='test -z "$ac_c_werror_flag"
5338 || test ! -s conftest.err'
5339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5343 (exit $ac_status); }; } &&
5344 { ac_try
='test -s conftest.$ac_objext'
5345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5349 (exit $ac_status); }; }; then
5350 ac_header_compiler
=yes
5352 echo "$as_me: failed program was:" >&5
5353 sed 's/^/| /' conftest.
$ac_ext >&5
5355 ac_header_compiler
=no
5357 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5358 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5359 echo "${ECHO_T}$ac_header_compiler" >&6
5361 # Is the header present?
5362 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5363 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5364 cat >conftest.
$ac_ext <<_ACEOF
5367 cat confdefs.h
>>conftest.
$ac_ext
5368 cat >>conftest.
$ac_ext <<_ACEOF
5369 /* end confdefs.h. */
5370 #include <$ac_header>
5372 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5373 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5375 grep -v '^ *+' conftest.er1
>conftest.err
5377 cat conftest.err
>&5
5378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5379 (exit $ac_status); } >/dev
/null
; then
5380 if test -s conftest.err
; then
5381 ac_cpp_err
=$ac_c_preproc_warn_flag
5382 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
5389 if test -z "$ac_cpp_err"; then
5390 ac_header_preproc
=yes
5392 echo "$as_me: failed program was:" >&5
5393 sed 's/^/| /' conftest.
$ac_ext >&5
5395 ac_header_preproc
=no
5397 rm -f conftest.err conftest.
$ac_ext
5398 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5399 echo "${ECHO_T}$ac_header_preproc" >&6
5401 # So? What about this header?
5402 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5404 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5405 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5406 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5407 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5408 ac_header_preproc
=yes
5411 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5412 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5413 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5414 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5415 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5416 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5417 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5418 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5419 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5420 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5421 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5422 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5425 ## ------------------------------------------ ##
5426 ## Report this to the AC_PACKAGE_NAME lists. ##
5427 ## ------------------------------------------ ##
5430 sed "s/^/$as_me: WARNING: /" >&2
5433 echo "$as_me:$LINENO: checking for $ac_header" >&5
5434 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5435 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5436 echo $ECHO_N "(cached) $ECHO_C" >&6
5438 eval "$as_ac_Header=\$ac_header_preproc"
5440 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5441 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5444 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5445 cat >>confdefs.h
<<_ACEOF
5446 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5454 echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
5455 echo $ECHO_N "checking if personality LINUX32 can be set... $ECHO_C" >&6
5456 cat >conftest.
$ac_ext <<_ACEOF
5459 cat confdefs.h
>>conftest.
$ac_ext
5460 cat >>conftest.
$ac_ext <<_ACEOF
5461 /* end confdefs.h. */
5462 #include <sys/personality.h>
5466 personality (PER_LINUX32)
5471 rm -f conftest.
$ac_objext
5472 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5473 (eval $ac_compile) 2>conftest.er1
5475 grep -v '^ *+' conftest.er1
>conftest.err
5477 cat conftest.err
>&5
5478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5479 (exit $ac_status); } &&
5480 { ac_try
='test -z "$ac_c_werror_flag"
5481 || test ! -s conftest.err'
5482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5486 (exit $ac_status); }; } &&
5487 { ac_try
='test -s conftest.$ac_objext'
5488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5492 (exit $ac_status); }; }; then
5493 emacs_cv_personality_linux32
=yes
5495 echo "$as_me: failed program was:" >&5
5496 sed 's/^/| /' conftest.
$ac_ext >&5
5498 emacs_cv_personality_linux32
=no
5500 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5501 echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
5502 echo "${ECHO_T}$emacs_cv_personality_linux32" >&6
5504 if test $emacs_cv_personality_linux32 = yes; then
5506 cat >>confdefs.h
<<\_ACEOF
5507 #define HAVE_PERSONALITY_LINUX32 1
5513 for ac_header
in term.h
5515 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5516 echo "$as_me:$LINENO: checking for $ac_header" >&5
5517 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5518 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5519 echo $ECHO_N "(cached) $ECHO_C" >&6
5521 cat >conftest.
$ac_ext <<_ACEOF
5524 cat confdefs.h
>>conftest.
$ac_ext
5525 cat >>conftest.
$ac_ext <<_ACEOF
5526 /* end confdefs.h. */
5527 #include <$ac_header>
5529 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5530 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5532 grep -v '^ *+' conftest.er1
>conftest.err
5534 cat conftest.err
>&5
5535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5536 (exit $ac_status); } >/dev
/null
; then
5537 if test -s conftest.err
; then
5538 ac_cpp_err
=$ac_c_preproc_warn_flag
5539 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
5546 if test -z "$ac_cpp_err"; then
5547 eval "$as_ac_Header=yes"
5549 echo "$as_me: failed program was:" >&5
5550 sed 's/^/| /' conftest.
$ac_ext >&5
5552 eval "$as_ac_Header=no"
5554 rm -f conftest.err conftest.
$ac_ext
5556 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5557 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5558 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5559 cat >>confdefs.h
<<_ACEOF
5560 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5567 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5568 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5569 if test "${ac_cv_header_stdc+set}" = set; then
5570 echo $ECHO_N "(cached) $ECHO_C" >&6
5572 cat >conftest.
$ac_ext <<_ACEOF
5575 cat confdefs.h
>>conftest.
$ac_ext
5576 cat >>conftest.
$ac_ext <<_ACEOF
5577 /* end confdefs.h. */
5591 rm -f conftest.
$ac_objext
5592 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5593 (eval $ac_compile) 2>conftest.er1
5595 grep -v '^ *+' conftest.er1
>conftest.err
5597 cat conftest.err
>&5
5598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5599 (exit $ac_status); } &&
5600 { ac_try
='test -z "$ac_c_werror_flag"
5601 || test ! -s conftest.err'
5602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5606 (exit $ac_status); }; } &&
5607 { ac_try
='test -s conftest.$ac_objext'
5608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5612 (exit $ac_status); }; }; then
5613 ac_cv_header_stdc
=yes
5615 echo "$as_me: failed program was:" >&5
5616 sed 's/^/| /' conftest.
$ac_ext >&5
5618 ac_cv_header_stdc
=no
5620 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5622 if test $ac_cv_header_stdc = yes; then
5623 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5624 cat >conftest.
$ac_ext <<_ACEOF
5627 cat confdefs.h
>>conftest.
$ac_ext
5628 cat >>conftest.
$ac_ext <<_ACEOF
5629 /* end confdefs.h. */
5633 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5634 $EGREP "memchr" >/dev
/null
2>&1; then
5637 ac_cv_header_stdc
=no
5643 if test $ac_cv_header_stdc = yes; then
5644 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5645 cat >conftest.
$ac_ext <<_ACEOF
5648 cat confdefs.h
>>conftest.
$ac_ext
5649 cat >>conftest.
$ac_ext <<_ACEOF
5650 /* end confdefs.h. */
5654 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5655 $EGREP "free" >/dev
/null
2>&1; then
5658 ac_cv_header_stdc
=no
5664 if test $ac_cv_header_stdc = yes; then
5665 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5666 if test "$cross_compiling" = yes; then
5669 cat >conftest.
$ac_ext <<_ACEOF
5672 cat confdefs.h
>>conftest.
$ac_ext
5673 cat >>conftest.
$ac_ext <<_ACEOF
5674 /* end confdefs.h. */
5676 #if ((' ' & 0x0FF) == 0x020)
5677 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5678 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5680 # define ISLOWER(c) \
5681 (('a' <= (c) && (c) <= 'i') \
5682 || ('j' <= (c) && (c) <= 'r') \
5683 || ('s' <= (c) && (c) <= 'z'))
5684 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5687 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5692 for (i = 0; i < 256; i++)
5693 if (XOR (islower (i), ISLOWER (i))
5694 || toupper (i) != TOUPPER (i))
5699 rm -f conftest
$ac_exeext
5700 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5701 (eval $ac_link) 2>&5
5703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5704 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5709 (exit $ac_status); }; }; then
5712 echo "$as_me: program exited with status $ac_status" >&5
5713 echo "$as_me: failed program was:" >&5
5714 sed 's/^/| /' conftest.
$ac_ext >&5
5717 ac_cv_header_stdc
=no
5719 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5723 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5724 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5725 if test $ac_cv_header_stdc = yes; then
5727 cat >>confdefs.h
<<\_ACEOF
5728 #define STDC_HEADERS 1
5733 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
5734 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
5735 if test "${ac_cv_header_time+set}" = set; then
5736 echo $ECHO_N "(cached) $ECHO_C" >&6
5738 cat >conftest.
$ac_ext <<_ACEOF
5741 cat confdefs.h
>>conftest.
$ac_ext
5742 cat >>conftest.
$ac_ext <<_ACEOF
5743 /* end confdefs.h. */
5744 #include <sys/types.h>
5745 #include <sys/time.h>
5751 if ((struct tm *) 0)
5757 rm -f conftest.
$ac_objext
5758 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5759 (eval $ac_compile) 2>conftest.er1
5761 grep -v '^ *+' conftest.er1
>conftest.err
5763 cat conftest.err
>&5
5764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5765 (exit $ac_status); } &&
5766 { ac_try
='test -z "$ac_c_werror_flag"
5767 || test ! -s conftest.err'
5768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5772 (exit $ac_status); }; } &&
5773 { ac_try
='test -s conftest.$ac_objext'
5774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5778 (exit $ac_status); }; }; then
5779 ac_cv_header_time
=yes
5781 echo "$as_me: failed program was:" >&5
5782 sed 's/^/| /' conftest.
$ac_ext >&5
5784 ac_cv_header_time
=no
5786 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5788 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
5789 echo "${ECHO_T}$ac_cv_header_time" >&6
5790 if test $ac_cv_header_time = yes; then
5792 cat >>confdefs.h
<<\_ACEOF
5793 #define TIME_WITH_SYS_TIME 1
5798 echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
5799 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6
5800 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
5801 echo $ECHO_N "(cached) $ECHO_C" >&6
5803 cat >conftest.
$ac_ext <<_ACEOF
5806 cat confdefs.h
>>conftest.
$ac_ext
5807 cat >>conftest.
$ac_ext <<_ACEOF
5808 /* end confdefs.h. */
5809 $ac_includes_default
5814 char *p = (char *) sys_siglist;
5821 rm -f conftest.
$ac_objext
5822 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5823 (eval $ac_compile) 2>conftest.er1
5825 grep -v '^ *+' conftest.er1
>conftest.err
5827 cat conftest.err
>&5
5828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5829 (exit $ac_status); } &&
5830 { ac_try
='test -z "$ac_c_werror_flag"
5831 || test ! -s conftest.err'
5832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5836 (exit $ac_status); }; } &&
5837 { ac_try
='test -s conftest.$ac_objext'
5838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5842 (exit $ac_status); }; }; then
5843 ac_cv_have_decl_sys_siglist
=yes
5845 echo "$as_me: failed program was:" >&5
5846 sed 's/^/| /' conftest.
$ac_ext >&5
5848 ac_cv_have_decl_sys_siglist
=no
5850 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5852 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
5853 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6
5854 if test $ac_cv_have_decl_sys_siglist = yes; then
5856 cat >>confdefs.h
<<_ACEOF
5857 #define HAVE_DECL_SYS_SIGLIST 1
5862 cat >>confdefs.h
<<_ACEOF
5863 #define HAVE_DECL_SYS_SIGLIST 0
5870 if test $ac_cv_have_decl_sys_siglist != yes; then
5871 # For Tru64, at least:
5872 echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
5873 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6
5874 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
5875 echo $ECHO_N "(cached) $ECHO_C" >&6
5877 cat >conftest.
$ac_ext <<_ACEOF
5880 cat confdefs.h
>>conftest.
$ac_ext
5881 cat >>conftest.
$ac_ext <<_ACEOF
5882 /* end confdefs.h. */
5883 $ac_includes_default
5887 #ifndef __sys_siglist
5888 char *p = (char *) __sys_siglist;
5895 rm -f conftest.
$ac_objext
5896 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5897 (eval $ac_compile) 2>conftest.er1
5899 grep -v '^ *+' conftest.er1
>conftest.err
5901 cat conftest.err
>&5
5902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5903 (exit $ac_status); } &&
5904 { ac_try
='test -z "$ac_c_werror_flag"
5905 || test ! -s conftest.err'
5906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5910 (exit $ac_status); }; } &&
5911 { ac_try
='test -s conftest.$ac_objext'
5912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5916 (exit $ac_status); }; }; then
5917 ac_cv_have_decl___sys_siglist
=yes
5919 echo "$as_me: failed program was:" >&5
5920 sed 's/^/| /' conftest.
$ac_ext >&5
5922 ac_cv_have_decl___sys_siglist
=no
5924 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5926 echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
5927 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6
5928 if test $ac_cv_have_decl___sys_siglist = yes; then
5930 cat >>confdefs.h
<<_ACEOF
5931 #define HAVE_DECL___SYS_SIGLIST 1
5936 cat >>confdefs.h
<<_ACEOF
5937 #define HAVE_DECL___SYS_SIGLIST 0
5944 if test $ac_cv_have_decl___sys_siglist = yes; then
5946 cat >>confdefs.h
<<\_ACEOF
5947 #define sys_siglist __sys_siglist
5952 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
5953 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
5954 if test "${ac_cv_header_sys_wait_h+set}" = set; then
5955 echo $ECHO_N "(cached) $ECHO_C" >&6
5957 cat >conftest.
$ac_ext <<_ACEOF
5960 cat confdefs.h
>>conftest.
$ac_ext
5961 cat >>conftest.
$ac_ext <<_ACEOF
5962 /* end confdefs.h. */
5963 #include <sys/types.h>
5964 #include <sys/wait.h>
5966 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
5969 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5977 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5982 rm -f conftest.
$ac_objext
5983 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5984 (eval $ac_compile) 2>conftest.er1
5986 grep -v '^ *+' conftest.er1
>conftest.err
5988 cat conftest.err
>&5
5989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5990 (exit $ac_status); } &&
5991 { ac_try
='test -z "$ac_c_werror_flag"
5992 || test ! -s conftest.err'
5993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5997 (exit $ac_status); }; } &&
5998 { ac_try
='test -s conftest.$ac_objext'
5999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6003 (exit $ac_status); }; }; then
6004 ac_cv_header_sys_wait_h
=yes
6006 echo "$as_me: failed program was:" >&5
6007 sed 's/^/| /' conftest.
$ac_ext >&5
6009 ac_cv_header_sys_wait_h
=no
6011 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6013 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
6014 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
6015 if test $ac_cv_header_sys_wait_h = yes; then
6017 cat >>confdefs.h
<<\_ACEOF
6018 #define HAVE_SYS_WAIT_H 1
6024 echo "$as_me:$LINENO: checking for struct utimbuf" >&5
6025 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6
6026 if test "${emacs_cv_struct_utimbuf+set}" = set; then
6027 echo $ECHO_N "(cached) $ECHO_C" >&6
6029 cat >conftest.
$ac_ext <<_ACEOF
6032 cat confdefs.h
>>conftest.
$ac_ext
6033 cat >>conftest.
$ac_ext <<_ACEOF
6034 /* end confdefs.h. */
6035 #ifdef TIME_WITH_SYS_TIME
6036 #include <sys/time.h>
6039 #ifdef HAVE_SYS_TIME_H
6040 #include <sys/time.h>
6051 static struct utimbuf x; x.actime = x.modtime;
6056 rm -f conftest.
$ac_objext
6057 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6058 (eval $ac_compile) 2>conftest.er1
6060 grep -v '^ *+' conftest.er1
>conftest.err
6062 cat conftest.err
>&5
6063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6064 (exit $ac_status); } &&
6065 { ac_try
='test -z "$ac_c_werror_flag"
6066 || test ! -s conftest.err'
6067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6071 (exit $ac_status); }; } &&
6072 { ac_try
='test -s conftest.$ac_objext'
6073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6077 (exit $ac_status); }; }; then
6078 emacs_cv_struct_utimbuf
=yes
6080 echo "$as_me: failed program was:" >&5
6081 sed 's/^/| /' conftest.
$ac_ext >&5
6083 emacs_cv_struct_utimbuf
=no
6085 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6087 echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
6088 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6
6089 if test $emacs_cv_struct_utimbuf = yes; then
6091 cat >>confdefs.h
<<\_ACEOF
6092 #define HAVE_STRUCT_UTIMBUF 1
6097 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6098 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
6099 if test "${ac_cv_type_signal+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 <sys/types.h>
6114 extern "C" void (*signal (int, void (*)(int)))(int);
6116 void (*signal ()) ();
6127 rm -f conftest.
$ac_objext
6128 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6129 (eval $ac_compile) 2>conftest.er1
6131 grep -v '^ *+' conftest.er1
>conftest.err
6133 cat conftest.err
>&5
6134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6135 (exit $ac_status); } &&
6136 { ac_try
='test -z "$ac_c_werror_flag"
6137 || test ! -s conftest.err'
6138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6142 (exit $ac_status); }; } &&
6143 { ac_try
='test -s conftest.$ac_objext'
6144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6148 (exit $ac_status); }; }; then
6149 ac_cv_type_signal
=void
6151 echo "$as_me: failed program was:" >&5
6152 sed 's/^/| /' conftest.
$ac_ext >&5
6154 ac_cv_type_signal
=int
6156 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6158 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6159 echo "${ECHO_T}$ac_cv_type_signal" >&6
6161 cat >>confdefs.h
<<_ACEOF
6162 #define RETSIGTYPE $ac_cv_type_signal
6167 echo "$as_me:$LINENO: checking for speed_t" >&5
6168 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6
6169 if test "${emacs_cv_speed_t+set}" = set; then
6170 echo $ECHO_N "(cached) $ECHO_C" >&6
6172 cat >conftest.
$ac_ext <<_ACEOF
6175 cat confdefs.h
>>conftest.
$ac_ext
6176 cat >>conftest.
$ac_ext <<_ACEOF
6177 /* end confdefs.h. */
6178 #include <termios.h>
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_speed_t
=yes
6211 echo "$as_me: failed program was:" >&5
6212 sed 's/^/| /' conftest.
$ac_ext >&5
6216 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6218 echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
6219 echo "${ECHO_T}$emacs_cv_speed_t" >&6
6220 if test $emacs_cv_speed_t = yes; then
6222 cat >>confdefs.h
<<\_ACEOF
6223 #define HAVE_SPEED_T 1
6228 echo "$as_me:$LINENO: checking for struct timeval" >&5
6229 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6
6230 if test "${emacs_cv_struct_timeval+set}" = set; then
6231 echo $ECHO_N "(cached) $ECHO_C" >&6
6233 cat >conftest.
$ac_ext <<_ACEOF
6236 cat confdefs.h
>>conftest.
$ac_ext
6237 cat >>conftest.
$ac_ext <<_ACEOF
6238 /* end confdefs.h. */
6239 #ifdef TIME_WITH_SYS_TIME
6240 #include <sys/time.h>
6243 #ifdef HAVE_SYS_TIME_H
6244 #include <sys/time.h>
6252 static struct timeval x; x.tv_sec = x.tv_usec;
6257 rm -f conftest.
$ac_objext
6258 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6259 (eval $ac_compile) 2>conftest.er1
6261 grep -v '^ *+' conftest.er1
>conftest.err
6263 cat conftest.err
>&5
6264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6265 (exit $ac_status); } &&
6266 { ac_try
='test -z "$ac_c_werror_flag"
6267 || test ! -s conftest.err'
6268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6272 (exit $ac_status); }; } &&
6273 { ac_try
='test -s conftest.$ac_objext'
6274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6278 (exit $ac_status); }; }; then
6279 emacs_cv_struct_timeval
=yes
6281 echo "$as_me: failed program was:" >&5
6282 sed 's/^/| /' conftest.
$ac_ext >&5
6284 emacs_cv_struct_timeval
=no
6286 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6288 echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
6289 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6
6290 HAVE_TIMEVAL
=$emacs_cv_struct_timeval
6291 if test $emacs_cv_struct_timeval = yes; then
6293 cat >>confdefs.h
<<\_ACEOF
6294 #define HAVE_TIMEVAL 1
6299 echo "$as_me:$LINENO: checking for struct exception" >&5
6300 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6
6301 if test "${emacs_cv_struct_exception+set}" = set; then
6302 echo $ECHO_N "(cached) $ECHO_C" >&6
6304 cat >conftest.
$ac_ext <<_ACEOF
6307 cat confdefs.h
>>conftest.
$ac_ext
6308 cat >>conftest.
$ac_ext <<_ACEOF
6309 /* end confdefs.h. */
6314 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
6319 rm -f conftest.
$ac_objext
6320 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6321 (eval $ac_compile) 2>conftest.er1
6323 grep -v '^ *+' conftest.er1
>conftest.err
6325 cat conftest.err
>&5
6326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6327 (exit $ac_status); } &&
6328 { ac_try
='test -z "$ac_c_werror_flag"
6329 || test ! -s conftest.err'
6330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6334 (exit $ac_status); }; } &&
6335 { ac_try
='test -s conftest.$ac_objext'
6336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6340 (exit $ac_status); }; }; then
6341 emacs_cv_struct_exception
=yes
6343 echo "$as_me: failed program was:" >&5
6344 sed 's/^/| /' conftest.
$ac_ext >&5
6346 emacs_cv_struct_exception
=no
6348 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6350 echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
6351 echo "${ECHO_T}$emacs_cv_struct_exception" >&6
6352 HAVE_EXCEPTION
=$emacs_cv_struct_exception
6353 if test $emacs_cv_struct_exception != yes; then
6355 cat >>confdefs.h
<<\_ACEOF
6356 #define NO_MATHERR 1
6362 for ac_header
in sys
/socket.h
6364 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6365 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6366 echo "$as_me:$LINENO: checking for $ac_header" >&5
6367 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6368 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6369 echo $ECHO_N "(cached) $ECHO_C" >&6
6371 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6372 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6374 # Is the header compilable?
6375 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6376 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6377 cat >conftest.
$ac_ext <<_ACEOF
6380 cat confdefs.h
>>conftest.
$ac_ext
6381 cat >>conftest.
$ac_ext <<_ACEOF
6382 /* end confdefs.h. */
6383 $ac_includes_default
6384 #include <$ac_header>
6386 rm -f conftest.
$ac_objext
6387 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6388 (eval $ac_compile) 2>conftest.er1
6390 grep -v '^ *+' conftest.er1
>conftest.err
6392 cat conftest.err
>&5
6393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6394 (exit $ac_status); } &&
6395 { ac_try
='test -z "$ac_c_werror_flag"
6396 || test ! -s conftest.err'
6397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6401 (exit $ac_status); }; } &&
6402 { ac_try
='test -s conftest.$ac_objext'
6403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6407 (exit $ac_status); }; }; then
6408 ac_header_compiler
=yes
6410 echo "$as_me: failed program was:" >&5
6411 sed 's/^/| /' conftest.
$ac_ext >&5
6413 ac_header_compiler
=no
6415 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6416 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6417 echo "${ECHO_T}$ac_header_compiler" >&6
6419 # Is the header present?
6420 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6421 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6422 cat >conftest.
$ac_ext <<_ACEOF
6425 cat confdefs.h
>>conftest.
$ac_ext
6426 cat >>conftest.
$ac_ext <<_ACEOF
6427 /* end confdefs.h. */
6428 #include <$ac_header>
6430 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6431 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6433 grep -v '^ *+' conftest.er1
>conftest.err
6435 cat conftest.err
>&5
6436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6437 (exit $ac_status); } >/dev
/null
; then
6438 if test -s conftest.err
; then
6439 ac_cpp_err
=$ac_c_preproc_warn_flag
6440 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6447 if test -z "$ac_cpp_err"; then
6448 ac_header_preproc
=yes
6450 echo "$as_me: failed program was:" >&5
6451 sed 's/^/| /' conftest.
$ac_ext >&5
6453 ac_header_preproc
=no
6455 rm -f conftest.err conftest.
$ac_ext
6456 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6457 echo "${ECHO_T}$ac_header_preproc" >&6
6459 # So? What about this header?
6460 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6462 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6463 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6464 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6465 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6466 ac_header_preproc
=yes
6469 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6470 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6471 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6472 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6473 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6474 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6475 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6476 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6477 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6478 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6479 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6480 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6483 ## ------------------------------------------ ##
6484 ## Report this to the AC_PACKAGE_NAME lists. ##
6485 ## ------------------------------------------ ##
6488 sed "s/^/$as_me: WARNING: /" >&2
6491 echo "$as_me:$LINENO: checking for $ac_header" >&5
6492 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6493 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6494 echo $ECHO_N "(cached) $ECHO_C" >&6
6496 eval "$as_ac_Header=\$ac_header_preproc"
6498 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6499 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6502 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6503 cat >>confdefs.h
<<_ACEOF
6504 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6512 for ac_header
in net
/if.h
6514 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6515 echo "$as_me:$LINENO: checking for $ac_header" >&5
6516 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6517 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6518 echo $ECHO_N "(cached) $ECHO_C" >&6
6520 cat >conftest.
$ac_ext <<_ACEOF
6523 cat confdefs.h
>>conftest.
$ac_ext
6524 cat >>conftest.
$ac_ext <<_ACEOF
6525 /* end confdefs.h. */
6526 $ac_includes_default
6527 #if HAVE_SYS_SOCKET_H
6528 #include <sys/socket.h>
6531 #include <$ac_header>
6533 rm -f conftest.
$ac_objext
6534 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6535 (eval $ac_compile) 2>conftest.er1
6537 grep -v '^ *+' conftest.er1
>conftest.err
6539 cat conftest.err
>&5
6540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6541 (exit $ac_status); } &&
6542 { ac_try
='test -z "$ac_c_werror_flag"
6543 || test ! -s conftest.err'
6544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6548 (exit $ac_status); }; } &&
6549 { ac_try
='test -s conftest.$ac_objext'
6550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6554 (exit $ac_status); }; }; then
6555 eval "$as_ac_Header=yes"
6557 echo "$as_me: failed program was:" >&5
6558 sed 's/^/| /' conftest.
$ac_ext >&5
6560 eval "$as_ac_Header=no"
6562 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6564 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6565 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6566 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6567 cat >>confdefs.h
<<_ACEOF
6568 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6576 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
6577 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
6578 if test "${ac_cv_struct_tm+set}" = set; then
6579 echo $ECHO_N "(cached) $ECHO_C" >&6
6581 cat >conftest.
$ac_ext <<_ACEOF
6584 cat confdefs.h
>>conftest.
$ac_ext
6585 cat >>conftest.
$ac_ext <<_ACEOF
6586 /* end confdefs.h. */
6587 #include <sys/types.h>
6593 struct tm *tp; tp->tm_sec;
6598 rm -f conftest.
$ac_objext
6599 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6600 (eval $ac_compile) 2>conftest.er1
6602 grep -v '^ *+' conftest.er1
>conftest.err
6604 cat conftest.err
>&5
6605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6606 (exit $ac_status); } &&
6607 { ac_try
='test -z "$ac_c_werror_flag"
6608 || test ! -s conftest.err'
6609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6613 (exit $ac_status); }; } &&
6614 { ac_try
='test -s conftest.$ac_objext'
6615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6619 (exit $ac_status); }; }; then
6620 ac_cv_struct_tm
=time.h
6622 echo "$as_me: failed program was:" >&5
6623 sed 's/^/| /' conftest.
$ac_ext >&5
6625 ac_cv_struct_tm
=sys
/time.h
6627 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6629 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
6630 echo "${ECHO_T}$ac_cv_struct_tm" >&6
6631 if test $ac_cv_struct_tm = sys
/time.h
; then
6633 cat >>confdefs.h
<<\_ACEOF
6634 #define TM_IN_SYS_TIME 1
6639 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
6640 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
6641 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
6642 echo $ECHO_N "(cached) $ECHO_C" >&6
6644 cat >conftest.
$ac_ext <<_ACEOF
6647 cat confdefs.h
>>conftest.
$ac_ext
6648 cat >>conftest.
$ac_ext <<_ACEOF
6649 /* end confdefs.h. */
6650 #include <sys/types.h>
6651 #include <$ac_cv_struct_tm>
6657 static struct tm ac_aggr;
6658 if (ac_aggr.tm_zone)
6664 rm -f conftest.
$ac_objext
6665 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6666 (eval $ac_compile) 2>conftest.er1
6668 grep -v '^ *+' conftest.er1
>conftest.err
6670 cat conftest.err
>&5
6671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6672 (exit $ac_status); } &&
6673 { ac_try
='test -z "$ac_c_werror_flag"
6674 || test ! -s conftest.err'
6675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6679 (exit $ac_status); }; } &&
6680 { ac_try
='test -s conftest.$ac_objext'
6681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6685 (exit $ac_status); }; }; then
6686 ac_cv_member_struct_tm_tm_zone
=yes
6688 echo "$as_me: failed program was:" >&5
6689 sed 's/^/| /' conftest.
$ac_ext >&5
6691 cat >conftest.
$ac_ext <<_ACEOF
6694 cat confdefs.h
>>conftest.
$ac_ext
6695 cat >>conftest.
$ac_ext <<_ACEOF
6696 /* end confdefs.h. */
6697 #include <sys/types.h>
6698 #include <$ac_cv_struct_tm>
6704 static struct tm ac_aggr;
6705 if (sizeof ac_aggr.tm_zone)
6711 rm -f conftest.
$ac_objext
6712 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6713 (eval $ac_compile) 2>conftest.er1
6715 grep -v '^ *+' conftest.er1
>conftest.err
6717 cat conftest.err
>&5
6718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6719 (exit $ac_status); } &&
6720 { ac_try
='test -z "$ac_c_werror_flag"
6721 || test ! -s conftest.err'
6722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6726 (exit $ac_status); }; } &&
6727 { ac_try
='test -s conftest.$ac_objext'
6728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6732 (exit $ac_status); }; }; then
6733 ac_cv_member_struct_tm_tm_zone
=yes
6735 echo "$as_me: failed program was:" >&5
6736 sed 's/^/| /' conftest.
$ac_ext >&5
6738 ac_cv_member_struct_tm_tm_zone
=no
6740 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6742 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6744 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
6745 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
6746 if test $ac_cv_member_struct_tm_tm_zone = yes; then
6748 cat >>confdefs.h
<<_ACEOF
6749 #define HAVE_STRUCT_TM_TM_ZONE 1
6755 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6757 cat >>confdefs.h
<<\_ACEOF
6758 #define HAVE_TM_ZONE 1
6762 echo "$as_me:$LINENO: checking for tzname" >&5
6763 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
6764 if test "${ac_cv_var_tzname+set}" = set; then
6765 echo $ECHO_N "(cached) $ECHO_C" >&6
6767 cat >conftest.
$ac_ext <<_ACEOF
6770 cat confdefs.h
>>conftest.
$ac_ext
6771 cat >>conftest.
$ac_ext <<_ACEOF
6772 /* end confdefs.h. */
6774 #ifndef tzname /* For SGI. */
6775 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
6786 rm -f conftest.
$ac_objext conftest
$ac_exeext
6787 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6788 (eval $ac_link) 2>conftest.er1
6790 grep -v '^ *+' conftest.er1
>conftest.err
6792 cat conftest.err
>&5
6793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6794 (exit $ac_status); } &&
6795 { ac_try
='test -z "$ac_c_werror_flag"
6796 || test ! -s conftest.err'
6797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6801 (exit $ac_status); }; } &&
6802 { ac_try
='test -s conftest$ac_exeext'
6803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6807 (exit $ac_status); }; }; then
6808 ac_cv_var_tzname
=yes
6810 echo "$as_me: failed program was:" >&5
6811 sed 's/^/| /' conftest.
$ac_ext >&5
6815 rm -f conftest.err conftest.
$ac_objext \
6816 conftest
$ac_exeext conftest.
$ac_ext
6818 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
6819 echo "${ECHO_T}$ac_cv_var_tzname" >&6
6820 if test $ac_cv_var_tzname = yes; then
6822 cat >>confdefs.h
<<\_ACEOF
6823 #define HAVE_TZNAME 1
6829 echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
6830 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6
6831 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
6832 echo $ECHO_N "(cached) $ECHO_C" >&6
6834 cat >conftest.
$ac_ext <<_ACEOF
6837 cat confdefs.h
>>conftest.
$ac_ext
6838 cat >>conftest.
$ac_ext <<_ACEOF
6839 /* end confdefs.h. */
6845 static struct tm ac_aggr;
6846 if (ac_aggr.tm_gmtoff)
6852 rm -f conftest.
$ac_objext
6853 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6854 (eval $ac_compile) 2>conftest.er1
6856 grep -v '^ *+' conftest.er1
>conftest.err
6858 cat conftest.err
>&5
6859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6860 (exit $ac_status); } &&
6861 { ac_try
='test -z "$ac_c_werror_flag"
6862 || test ! -s conftest.err'
6863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6867 (exit $ac_status); }; } &&
6868 { ac_try
='test -s conftest.$ac_objext'
6869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6873 (exit $ac_status); }; }; then
6874 ac_cv_member_struct_tm_tm_gmtoff
=yes
6876 echo "$as_me: failed program was:" >&5
6877 sed 's/^/| /' conftest.
$ac_ext >&5
6879 cat >conftest.
$ac_ext <<_ACEOF
6882 cat confdefs.h
>>conftest.
$ac_ext
6883 cat >>conftest.
$ac_ext <<_ACEOF
6884 /* end confdefs.h. */
6890 static struct tm ac_aggr;
6891 if (sizeof ac_aggr.tm_gmtoff)
6897 rm -f conftest.
$ac_objext
6898 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6899 (eval $ac_compile) 2>conftest.er1
6901 grep -v '^ *+' conftest.er1
>conftest.err
6903 cat conftest.err
>&5
6904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6905 (exit $ac_status); } &&
6906 { ac_try
='test -z "$ac_c_werror_flag"
6907 || test ! -s conftest.err'
6908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6912 (exit $ac_status); }; } &&
6913 { ac_try
='test -s conftest.$ac_objext'
6914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6918 (exit $ac_status); }; }; then
6919 ac_cv_member_struct_tm_tm_gmtoff
=yes
6921 echo "$as_me: failed program was:" >&5
6922 sed 's/^/| /' conftest.
$ac_ext >&5
6924 ac_cv_member_struct_tm_tm_gmtoff
=no
6926 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6928 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6930 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
6931 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6
6932 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
6934 cat >>confdefs.h
<<\_ACEOF
6935 #define HAVE_TM_GMTOFF 1
6940 echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
6941 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6
6942 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
6943 echo $ECHO_N "(cached) $ECHO_C" >&6
6945 cat >conftest.
$ac_ext <<_ACEOF
6948 cat confdefs.h
>>conftest.
$ac_ext
6949 cat >>conftest.
$ac_ext <<_ACEOF
6950 /* end confdefs.h. */
6951 $ac_includes_default
6952 #if HAVE_SYS_SOCKET_H
6953 #include <sys/socket.h>
6962 static struct ifreq ac_aggr;
6963 if (ac_aggr.ifr_flags)
6969 rm -f conftest.
$ac_objext
6970 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6971 (eval $ac_compile) 2>conftest.er1
6973 grep -v '^ *+' conftest.er1
>conftest.err
6975 cat conftest.err
>&5
6976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6977 (exit $ac_status); } &&
6978 { ac_try
='test -z "$ac_c_werror_flag"
6979 || test ! -s conftest.err'
6980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6984 (exit $ac_status); }; } &&
6985 { ac_try
='test -s conftest.$ac_objext'
6986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6990 (exit $ac_status); }; }; then
6991 ac_cv_member_struct_ifreq_ifr_flags
=yes
6993 echo "$as_me: failed program was:" >&5
6994 sed 's/^/| /' conftest.
$ac_ext >&5
6996 cat >conftest.
$ac_ext <<_ACEOF
6999 cat confdefs.h
>>conftest.
$ac_ext
7000 cat >>conftest.
$ac_ext <<_ACEOF
7001 /* end confdefs.h. */
7002 $ac_includes_default
7003 #if HAVE_SYS_SOCKET_H
7004 #include <sys/socket.h>
7013 static struct ifreq ac_aggr;
7014 if (sizeof ac_aggr.ifr_flags)
7020 rm -f conftest.
$ac_objext
7021 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7022 (eval $ac_compile) 2>conftest.er1
7024 grep -v '^ *+' conftest.er1
>conftest.err
7026 cat conftest.err
>&5
7027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7028 (exit $ac_status); } &&
7029 { ac_try
='test -z "$ac_c_werror_flag"
7030 || test ! -s conftest.err'
7031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7035 (exit $ac_status); }; } &&
7036 { ac_try
='test -s conftest.$ac_objext'
7037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7041 (exit $ac_status); }; }; then
7042 ac_cv_member_struct_ifreq_ifr_flags
=yes
7044 echo "$as_me: failed program was:" >&5
7045 sed 's/^/| /' conftest.
$ac_ext >&5
7047 ac_cv_member_struct_ifreq_ifr_flags
=no
7049 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7051 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7053 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
7054 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6
7055 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
7057 cat >>confdefs.h
<<_ACEOF
7058 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
7063 echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
7064 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6
7065 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
7066 echo $ECHO_N "(cached) $ECHO_C" >&6
7068 cat >conftest.
$ac_ext <<_ACEOF
7071 cat confdefs.h
>>conftest.
$ac_ext
7072 cat >>conftest.
$ac_ext <<_ACEOF
7073 /* end confdefs.h. */
7074 $ac_includes_default
7075 #if HAVE_SYS_SOCKET_H
7076 #include <sys/socket.h>
7085 static struct ifreq ac_aggr;
7086 if (ac_aggr.ifr_hwaddr)
7092 rm -f conftest.
$ac_objext
7093 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7094 (eval $ac_compile) 2>conftest.er1
7096 grep -v '^ *+' conftest.er1
>conftest.err
7098 cat conftest.err
>&5
7099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7100 (exit $ac_status); } &&
7101 { ac_try
='test -z "$ac_c_werror_flag"
7102 || test ! -s conftest.err'
7103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7107 (exit $ac_status); }; } &&
7108 { ac_try
='test -s conftest.$ac_objext'
7109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7113 (exit $ac_status); }; }; then
7114 ac_cv_member_struct_ifreq_ifr_hwaddr
=yes
7116 echo "$as_me: failed program was:" >&5
7117 sed 's/^/| /' conftest.
$ac_ext >&5
7119 cat >conftest.
$ac_ext <<_ACEOF
7122 cat confdefs.h
>>conftest.
$ac_ext
7123 cat >>conftest.
$ac_ext <<_ACEOF
7124 /* end confdefs.h. */
7125 $ac_includes_default
7126 #if HAVE_SYS_SOCKET_H
7127 #include <sys/socket.h>
7136 static struct ifreq ac_aggr;
7137 if (sizeof ac_aggr.ifr_hwaddr)
7143 rm -f conftest.
$ac_objext
7144 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7145 (eval $ac_compile) 2>conftest.er1
7147 grep -v '^ *+' conftest.er1
>conftest.err
7149 cat conftest.err
>&5
7150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7151 (exit $ac_status); } &&
7152 { ac_try
='test -z "$ac_c_werror_flag"
7153 || test ! -s conftest.err'
7154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7158 (exit $ac_status); }; } &&
7159 { ac_try
='test -s conftest.$ac_objext'
7160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7164 (exit $ac_status); }; }; then
7165 ac_cv_member_struct_ifreq_ifr_hwaddr
=yes
7167 echo "$as_me: failed program was:" >&5
7168 sed 's/^/| /' conftest.
$ac_ext >&5
7170 ac_cv_member_struct_ifreq_ifr_hwaddr
=no
7172 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7174 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7176 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
7177 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6
7178 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
7180 cat >>confdefs.h
<<_ACEOF
7181 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
7186 echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
7187 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6
7188 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
7189 echo $ECHO_N "(cached) $ECHO_C" >&6
7191 cat >conftest.
$ac_ext <<_ACEOF
7194 cat confdefs.h
>>conftest.
$ac_ext
7195 cat >>conftest.
$ac_ext <<_ACEOF
7196 /* end confdefs.h. */
7197 $ac_includes_default
7198 #if HAVE_SYS_SOCKET_H
7199 #include <sys/socket.h>
7208 static struct ifreq ac_aggr;
7209 if (ac_aggr.ifr_netmask)
7215 rm -f conftest.
$ac_objext
7216 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7217 (eval $ac_compile) 2>conftest.er1
7219 grep -v '^ *+' conftest.er1
>conftest.err
7221 cat conftest.err
>&5
7222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7223 (exit $ac_status); } &&
7224 { ac_try
='test -z "$ac_c_werror_flag"
7225 || test ! -s conftest.err'
7226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7230 (exit $ac_status); }; } &&
7231 { ac_try
='test -s conftest.$ac_objext'
7232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7236 (exit $ac_status); }; }; then
7237 ac_cv_member_struct_ifreq_ifr_netmask
=yes
7239 echo "$as_me: failed program was:" >&5
7240 sed 's/^/| /' conftest.
$ac_ext >&5
7242 cat >conftest.
$ac_ext <<_ACEOF
7245 cat confdefs.h
>>conftest.
$ac_ext
7246 cat >>conftest.
$ac_ext <<_ACEOF
7247 /* end confdefs.h. */
7248 $ac_includes_default
7249 #if HAVE_SYS_SOCKET_H
7250 #include <sys/socket.h>
7259 static struct ifreq ac_aggr;
7260 if (sizeof ac_aggr.ifr_netmask)
7266 rm -f conftest.
$ac_objext
7267 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7268 (eval $ac_compile) 2>conftest.er1
7270 grep -v '^ *+' conftest.er1
>conftest.err
7272 cat conftest.err
>&5
7273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7274 (exit $ac_status); } &&
7275 { ac_try
='test -z "$ac_c_werror_flag"
7276 || test ! -s conftest.err'
7277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7281 (exit $ac_status); }; } &&
7282 { ac_try
='test -s conftest.$ac_objext'
7283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7287 (exit $ac_status); }; }; then
7288 ac_cv_member_struct_ifreq_ifr_netmask
=yes
7290 echo "$as_me: failed program was:" >&5
7291 sed 's/^/| /' conftest.
$ac_ext >&5
7293 ac_cv_member_struct_ifreq_ifr_netmask
=no
7295 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7297 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7299 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
7300 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6
7301 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
7303 cat >>confdefs.h
<<_ACEOF
7304 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
7309 echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
7310 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6
7311 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
7312 echo $ECHO_N "(cached) $ECHO_C" >&6
7314 cat >conftest.
$ac_ext <<_ACEOF
7317 cat confdefs.h
>>conftest.
$ac_ext
7318 cat >>conftest.
$ac_ext <<_ACEOF
7319 /* end confdefs.h. */
7320 $ac_includes_default
7321 #if HAVE_SYS_SOCKET_H
7322 #include <sys/socket.h>
7331 static struct ifreq ac_aggr;
7332 if (ac_aggr.ifr_broadaddr)
7338 rm -f conftest.
$ac_objext
7339 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7340 (eval $ac_compile) 2>conftest.er1
7342 grep -v '^ *+' conftest.er1
>conftest.err
7344 cat conftest.err
>&5
7345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7346 (exit $ac_status); } &&
7347 { ac_try
='test -z "$ac_c_werror_flag"
7348 || test ! -s conftest.err'
7349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7353 (exit $ac_status); }; } &&
7354 { ac_try
='test -s conftest.$ac_objext'
7355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7359 (exit $ac_status); }; }; then
7360 ac_cv_member_struct_ifreq_ifr_broadaddr
=yes
7362 echo "$as_me: failed program was:" >&5
7363 sed 's/^/| /' conftest.
$ac_ext >&5
7365 cat >conftest.
$ac_ext <<_ACEOF
7368 cat confdefs.h
>>conftest.
$ac_ext
7369 cat >>conftest.
$ac_ext <<_ACEOF
7370 /* end confdefs.h. */
7371 $ac_includes_default
7372 #if HAVE_SYS_SOCKET_H
7373 #include <sys/socket.h>
7382 static struct ifreq ac_aggr;
7383 if (sizeof ac_aggr.ifr_broadaddr)
7389 rm -f conftest.
$ac_objext
7390 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7391 (eval $ac_compile) 2>conftest.er1
7393 grep -v '^ *+' conftest.er1
>conftest.err
7395 cat conftest.err
>&5
7396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7397 (exit $ac_status); } &&
7398 { ac_try
='test -z "$ac_c_werror_flag"
7399 || test ! -s conftest.err'
7400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7404 (exit $ac_status); }; } &&
7405 { ac_try
='test -s conftest.$ac_objext'
7406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7410 (exit $ac_status); }; }; then
7411 ac_cv_member_struct_ifreq_ifr_broadaddr
=yes
7413 echo "$as_me: failed program was:" >&5
7414 sed 's/^/| /' conftest.
$ac_ext >&5
7416 ac_cv_member_struct_ifreq_ifr_broadaddr
=no
7418 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7420 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7422 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
7423 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6
7424 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
7426 cat >>confdefs.h
<<_ACEOF
7427 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
7432 echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
7433 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6
7434 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
7435 echo $ECHO_N "(cached) $ECHO_C" >&6
7437 cat >conftest.
$ac_ext <<_ACEOF
7440 cat confdefs.h
>>conftest.
$ac_ext
7441 cat >>conftest.
$ac_ext <<_ACEOF
7442 /* end confdefs.h. */
7443 $ac_includes_default
7444 #if HAVE_SYS_SOCKET_H
7445 #include <sys/socket.h>
7454 static struct ifreq ac_aggr;
7455 if (ac_aggr.ifr_addr)
7461 rm -f conftest.
$ac_objext
7462 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7463 (eval $ac_compile) 2>conftest.er1
7465 grep -v '^ *+' conftest.er1
>conftest.err
7467 cat conftest.err
>&5
7468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7469 (exit $ac_status); } &&
7470 { ac_try
='test -z "$ac_c_werror_flag"
7471 || test ! -s conftest.err'
7472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7476 (exit $ac_status); }; } &&
7477 { ac_try
='test -s conftest.$ac_objext'
7478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7482 (exit $ac_status); }; }; then
7483 ac_cv_member_struct_ifreq_ifr_addr
=yes
7485 echo "$as_me: failed program was:" >&5
7486 sed 's/^/| /' conftest.
$ac_ext >&5
7488 cat >conftest.
$ac_ext <<_ACEOF
7491 cat confdefs.h
>>conftest.
$ac_ext
7492 cat >>conftest.
$ac_ext <<_ACEOF
7493 /* end confdefs.h. */
7494 $ac_includes_default
7495 #if HAVE_SYS_SOCKET_H
7496 #include <sys/socket.h>
7505 static struct ifreq ac_aggr;
7506 if (sizeof ac_aggr.ifr_addr)
7512 rm -f conftest.
$ac_objext
7513 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7514 (eval $ac_compile) 2>conftest.er1
7516 grep -v '^ *+' conftest.er1
>conftest.err
7518 cat conftest.err
>&5
7519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7520 (exit $ac_status); } &&
7521 { ac_try
='test -z "$ac_c_werror_flag"
7522 || test ! -s conftest.err'
7523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7527 (exit $ac_status); }; } &&
7528 { ac_try
='test -s conftest.$ac_objext'
7529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7533 (exit $ac_status); }; }; then
7534 ac_cv_member_struct_ifreq_ifr_addr
=yes
7536 echo "$as_me: failed program was:" >&5
7537 sed 's/^/| /' conftest.
$ac_ext >&5
7539 ac_cv_member_struct_ifreq_ifr_addr
=no
7541 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7543 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7545 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
7546 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6
7547 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
7549 cat >>confdefs.h
<<_ACEOF
7550 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
7558 echo "$as_me:$LINENO: checking for function prototypes" >&5
7559 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
7560 if test "$ac_cv_prog_cc_stdc" != no
; then
7561 echo "$as_me:$LINENO: result: yes" >&5
7562 echo "${ECHO_T}yes" >&6
7564 cat >>confdefs.h
<<\_ACEOF
7565 #define PROTOTYPES 1
7569 cat >>confdefs.h
<<\_ACEOF
7570 #define __PROTOTYPES 1
7574 echo "$as_me:$LINENO: result: no" >&5
7575 echo "${ECHO_T}no" >&6
7578 echo "$as_me:$LINENO: checking for working volatile" >&5
7579 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
7580 if test "${ac_cv_c_volatile+set}" = set; then
7581 echo $ECHO_N "(cached) $ECHO_C" >&6
7583 cat >conftest.
$ac_ext <<_ACEOF
7586 cat confdefs.h
>>conftest.
$ac_ext
7587 cat >>conftest.
$ac_ext <<_ACEOF
7588 /* end confdefs.h. */
7600 rm -f conftest.
$ac_objext
7601 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7602 (eval $ac_compile) 2>conftest.er1
7604 grep -v '^ *+' conftest.er1
>conftest.err
7606 cat conftest.err
>&5
7607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7608 (exit $ac_status); } &&
7609 { ac_try
='test -z "$ac_c_werror_flag"
7610 || test ! -s conftest.err'
7611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7615 (exit $ac_status); }; } &&
7616 { ac_try
='test -s conftest.$ac_objext'
7617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7621 (exit $ac_status); }; }; then
7622 ac_cv_c_volatile
=yes
7624 echo "$as_me: failed program was:" >&5
7625 sed 's/^/| /' conftest.
$ac_ext >&5
7629 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7631 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
7632 echo "${ECHO_T}$ac_cv_c_volatile" >&6
7633 if test $ac_cv_c_volatile = no
; then
7635 cat >>confdefs.h
<<\_ACEOF
7641 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7642 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
7643 if test "${ac_cv_c_const+set}" = set; then
7644 echo $ECHO_N "(cached) $ECHO_C" >&6
7646 cat >conftest.
$ac_ext <<_ACEOF
7649 cat confdefs.h
>>conftest.
$ac_ext
7650 cat >>conftest.
$ac_ext <<_ACEOF
7651 /* end confdefs.h. */
7656 /* FIXME: Include the comments suggested by Paul. */
7658 /* Ultrix mips cc rejects this. */
7659 typedef int charset[2];
7661 /* SunOS 4.1.1 cc rejects this. */
7662 char const *const *ccp;
7664 /* NEC SVR4.0.2 mips cc rejects this. */
7665 struct point {int x, y;};
7666 static struct point const zero = {0,0};
7667 /* AIX XL C 1.02.0.0 rejects this.
7668 It does not let you subtract one const X* pointer from another in
7669 an arm of an if-expression whose if-part is not a constant
7671 const char *g = "string";
7672 ccp = &g + (g ? g-g : 0);
7673 /* HPUX 7.0 cc rejects these. */
7676 ccp = (char const *const *) p;
7677 { /* SCO 3.2v4 cc rejects this. */
7679 char const *s = 0 ? (char *) 0 : (char const *) 0;
7683 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7685 const int *foo = &x[0];
7688 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7689 typedef const int *iptr;
7693 { /* AIX XL C 1.02.0.0 rejects this saying
7694 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7695 struct s { int j; const int *ap[3]; };
7696 struct s *b; b->j = 5;
7698 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7707 rm -f conftest.
$ac_objext
7708 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7709 (eval $ac_compile) 2>conftest.er1
7711 grep -v '^ *+' conftest.er1
>conftest.err
7713 cat conftest.err
>&5
7714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7715 (exit $ac_status); } &&
7716 { ac_try
='test -z "$ac_c_werror_flag"
7717 || test ! -s conftest.err'
7718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7722 (exit $ac_status); }; } &&
7723 { ac_try
='test -s conftest.$ac_objext'
7724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7728 (exit $ac_status); }; }; then
7731 echo "$as_me: failed program was:" >&5
7732 sed 's/^/| /' conftest.
$ac_ext >&5
7736 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7738 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7739 echo "${ECHO_T}$ac_cv_c_const" >&6
7740 if test $ac_cv_c_const = no
; then
7742 cat >>confdefs.h
<<\_ACEOF
7748 echo "$as_me:$LINENO: checking for void * support" >&5
7749 echo $ECHO_N "checking for void * support... $ECHO_C" >&6
7750 if test "${emacs_cv_void_star+set}" = set; then
7751 echo $ECHO_N "(cached) $ECHO_C" >&6
7753 cat >conftest.
$ac_ext <<_ACEOF
7756 cat confdefs.h
>>conftest.
$ac_ext
7757 cat >>conftest.
$ac_ext <<_ACEOF
7758 /* end confdefs.h. */
7768 rm -f conftest.
$ac_objext
7769 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7770 (eval $ac_compile) 2>conftest.er1
7772 grep -v '^ *+' conftest.er1
>conftest.err
7774 cat conftest.err
>&5
7775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7776 (exit $ac_status); } &&
7777 { ac_try
='test -z "$ac_c_werror_flag"
7778 || test ! -s conftest.err'
7779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7783 (exit $ac_status); }; } &&
7784 { ac_try
='test -s conftest.$ac_objext'
7785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7789 (exit $ac_status); }; }; then
7790 emacs_cv_void_star
=yes
7792 echo "$as_me: failed program was:" >&5
7793 sed 's/^/| /' conftest.
$ac_ext >&5
7795 emacs_cv_void_star
=no
7797 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7799 echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
7800 echo "${ECHO_T}$emacs_cv_void_star" >&6
7801 if test $emacs_cv_void_star = yes; then
7802 cat >>confdefs.h
<<\_ACEOF
7803 #define POINTER_TYPE void
7807 cat >>confdefs.h
<<\_ACEOF
7808 #define POINTER_TYPE char
7817 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7818 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
7819 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y,:./+-,___p_,'`
7820 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
7821 echo $ECHO_N "(cached) $ECHO_C" >&6
7823 cat >conftest.
make <<\_ACEOF
7825 @
echo 'ac_maketemp="$(MAKE)"'
7827 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7828 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
7829 if test -n "$ac_maketemp"; then
7830 eval ac_cv_prog_make_
${ac_make}_set
=yes
7832 eval ac_cv_prog_make_
${ac_make}_set
=no
7836 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
7837 echo "$as_me:$LINENO: result: yes" >&5
7838 echo "${ECHO_T}yes" >&6
7841 echo "$as_me:$LINENO: result: no" >&5
7842 echo "${ECHO_T}no" >&6
7843 SET_MAKE
="MAKE=${MAKE-make}"
7847 echo "$as_me:$LINENO: checking for long file names" >&5
7848 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
7849 if test "${ac_cv_sys_long_file_names+set}" = set; then
7850 echo $ECHO_N "(cached) $ECHO_C" >&6
7852 ac_cv_sys_long_file_names
=yes
7853 # Test for long file names in all the places we know might matter:
7854 # . the current directory, where building will happen
7855 # $prefix/lib where we will be installing things
7856 # $exec_prefix/lib likewise
7857 # eval it to expand exec_prefix.
7858 # $TMPDIR if set, where it might want to write temporary files
7859 # if $TMPDIR is not set:
7860 # /tmp where it might want to write temporary files
7863 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
7866 ac_tmpdirs
='/tmp /var/tmp /usr/tmp'
7868 for ac_dir
in .
$ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
7869 test -d $ac_dir ||
continue
7870 test -w $ac_dir ||
continue # It is less confusing to not echo anything here.
7871 ac_xdir
=$ac_dir/cf$$
7872 (umask 077 && mkdir
$ac_xdir 2>/dev
/null
) ||
continue
7873 ac_tf1
=$ac_xdir/conftest9012345
7874 ac_tf2
=$ac_xdir/conftest9012346
7875 (echo 1 >$ac_tf1) 2>/dev
/null
7876 (echo 2 >$ac_tf2) 2>/dev
/null
7877 ac_val
=`cat $ac_tf1 2>/dev/null`
7878 if test ! -f $ac_tf1 ||
test "$ac_val" != 1; then
7879 ac_cv_sys_long_file_names
=no
7880 rm -rf $ac_xdir 2>/dev
/null
7883 rm -rf $ac_xdir 2>/dev
/null
7886 echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
7887 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
7888 if test $ac_cv_sys_long_file_names = yes; then
7890 cat >>confdefs.h
<<\_ACEOF
7891 #define HAVE_LONG_FILE_NAMES 1
7897 #### Choose a window system.
7899 echo "$as_me:$LINENO: checking for X" >&5
7900 echo $ECHO_N "checking for X... $ECHO_C" >&6
7903 # Check whether --with-x or --without-x was given.
7904 if test "${with_x+set}" = set; then
7908 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7909 if test "x$with_x" = xno
; then
7910 # The user explicitly disabled X.
7913 if test "x$x_includes" != xNONE
&& test "x$x_libraries" != xNONE
; then
7914 # Both variables are already set.
7917 if test "${ac_cv_have_x+set}" = set; then
7918 echo $ECHO_N "(cached) $ECHO_C" >&6
7920 # One or both of the vars are not set, and there is no cached value.
7921 ac_x_includes
=no ac_x_libraries
=no
7923 if mkdir conftest.dir
; then
7925 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
7926 cat >Imakefile
<<'_ACEOF'
7928 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
7930 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
7931 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7932 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
7933 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7934 for ac_extension
in a so sl
; do
7935 if test ! -f $ac_im_usrlibdir/libX11.
$ac_extension &&
7936 test -f $ac_im_libdir/libX11.
$ac_extension; then
7937 ac_im_usrlibdir
=$ac_im_libdir; break
7940 # Screen out bogus values from the imake configuration. They are
7941 # bogus both because they are the default anyway, and because
7942 # using them would break gcc on systems where it needs fixed includes.
7943 case $ac_im_incroot in
7945 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
7947 case $ac_im_usrlibdir in
7949 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
7956 # Standard set of common directories for X headers.
7957 # Check X11 before X11Rn because it is often a symlink to the current release.
7969 /usr/local/X11/include
7970 /usr/local/X11R6/include
7971 /usr/local/X11R5/include
7972 /usr/local/X11R4/include
7974 /usr/local/include/X11
7975 /usr/local/include/X11R6
7976 /usr/local/include/X11R5
7977 /usr/local/include/X11R4
7981 /usr/XFree86/include/X11
7985 /usr/unsupported/include
7987 /usr/local/x11r5/include
7988 /usr/lpp/Xamples/include
7990 /usr/openwin/include
7991 /usr/openwin/share/include'
7993 if test "$ac_x_includes" = no
; then
7994 # Guess where to find include files, by looking for Intrinsic.h.
7995 # First, try using that file with no special directory specified.
7996 cat >conftest.
$ac_ext <<_ACEOF
7999 cat confdefs.h
>>conftest.
$ac_ext
8000 cat >>conftest.
$ac_ext <<_ACEOF
8001 /* end confdefs.h. */
8002 #include <X11/Intrinsic.h>
8004 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8005 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8007 grep -v '^ *+' conftest.er1
>conftest.err
8009 cat conftest.err
>&5
8010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8011 (exit $ac_status); } >/dev
/null
; then
8012 if test -s conftest.err
; then
8013 ac_cpp_err
=$ac_c_preproc_warn_flag
8014 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
8021 if test -z "$ac_cpp_err"; then
8022 # We can compile using X headers with no special include directory.
8025 echo "$as_me: failed program was:" >&5
8026 sed 's/^/| /' conftest.
$ac_ext >&5
8028 for ac_dir
in $ac_x_header_dirs; do
8029 if test -r "$ac_dir/X11/Intrinsic.h"; then
8030 ac_x_includes
=$ac_dir
8035 rm -f conftest.err conftest.
$ac_ext
8036 fi # $ac_x_includes = no
8038 if test "$ac_x_libraries" = no
; then
8039 # Check for the libraries.
8040 # See if we find them without any special options.
8041 # Don't add to $LIBS permanently.
8044 cat >conftest.
$ac_ext <<_ACEOF
8047 cat confdefs.h
>>conftest.
$ac_ext
8048 cat >>conftest.
$ac_ext <<_ACEOF
8049 /* end confdefs.h. */
8050 #include <X11/Intrinsic.h>
8059 rm -f conftest.
$ac_objext conftest
$ac_exeext
8060 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8061 (eval $ac_link) 2>conftest.er1
8063 grep -v '^ *+' conftest.er1
>conftest.err
8065 cat conftest.err
>&5
8066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8067 (exit $ac_status); } &&
8068 { ac_try
='test -z "$ac_c_werror_flag"
8069 || test ! -s conftest.err'
8070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8074 (exit $ac_status); }; } &&
8075 { ac_try
='test -s conftest$ac_exeext'
8076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8080 (exit $ac_status); }; }; then
8082 # We can link X programs with no special library path.
8085 echo "$as_me: failed program was:" >&5
8086 sed 's/^/| /' conftest.
$ac_ext >&5
8089 for ac_dir
in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8091 # Don't even attempt the hair of trying to link an X program!
8092 for ac_extension
in a so sl
; do
8093 if test -r $ac_dir/libXt.
$ac_extension; then
8094 ac_x_libraries
=$ac_dir
8100 rm -f conftest.err conftest.
$ac_objext \
8101 conftest
$ac_exeext conftest.
$ac_ext
8102 fi # $ac_x_libraries = no
8104 if test "$ac_x_includes" = no ||
test "$ac_x_libraries" = no
; then
8105 # Didn't find X anywhere. Cache the known absence of X.
8106 ac_cv_have_x
="have_x=no"
8108 # Record where we found X for the cache.
8109 ac_cv_have_x
="have_x=yes \
8110 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
8115 eval "$ac_cv_have_x"
8118 if test "$have_x" != yes; then
8119 echo "$as_me:$LINENO: result: $have_x" >&5
8120 echo "${ECHO_T}$have_x" >&6
8123 # If each of the values was on the command line, it overrides each guess.
8124 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
8125 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
8126 # Update the cache value to reflect the command line values.
8127 ac_cv_have_x
="have_x=yes \
8128 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
8129 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
8130 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
8133 if test "$no_x" = yes; then
8139 if test "${x_libraries}" != NONE
&& test -n "${x_libraries}"; then
8140 LD_SWITCH_X_SITE
=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
8141 LD_SWITCH_X_SITE_AUX
=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
8142 x_default_search_path
=""
8143 for x_library
in `echo ${x_libraries} | sed -e "s/:/ /g"`; do
8145 ${x_library}/X11/%L/%T/%N%C%S:\
8146 ${x_library}/X11/%l/%T/%N%C%S:\
8147 ${x_library}/X11/%T/%N%C%S:\
8148 ${x_library}/X11/%L/%T/%N%S:\
8149 ${x_library}/X11/%l/%T/%N%S:\
8150 ${x_library}/X11/%T/%N%S"
8151 if test x
"${x_default_search_path}" = x
; then
8152 x_default_search_path
=${x_search_path}
8154 x_default_search_path
="${x_search_path}:${x_default_search_path}"
8158 if test "${x_includes}" != NONE
&& test -n "${x_includes}"; then
8159 C_SWITCH_X_SITE
=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
8162 if test x
"${x_includes}" = x
; then
8163 bitmapdir
=/usr
/include
/X11
/bitmaps
8165 # accumulate include directories that have X11 bitmap subdirectories
8167 for bmd
in `echo ${x_includes} | sed -e "s/:/ /g"`; do
8168 if test -d "${bmd}/X11/bitmaps"; then
8169 bmd_acc
="${bmd_acc}:${bmd}/X11/bitmaps"
8171 if test -d "${bmd}/bitmaps"; then
8172 bmd_acc
="${bmd_acc}:${bmd}/bitmaps"
8175 if test ${bmd_acc} != "dummyval"; then
8176 bitmapdir
=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
8180 case "${window_system}" in
8184 case "${with_x_toolkit}" in
8185 athena | lucid
) USE_X_TOOLKIT
=LUCID
;;
8186 motif
) USE_X_TOOLKIT
=MOTIF
;;
8188 USE_X_TOOLKIT
=none
;;
8189 no
) USE_X_TOOLKIT
=none
;;
8190 * ) USE_X_TOOLKIT
=maybe
;;
8200 ### If we're using X11, we should use the X menu package.
8203 yes ) HAVE_MENUS
=yes ;;
8206 if test "${opsys}" = "hpux9"; then
8207 case "${x_libraries}" in
8209 opsysfile
="s/hpux9-x11r4.h"
8214 if test "${opsys}" = "hpux9shr"; then
8215 case "${x_libraries}" in
8217 opsysfile
="s/hpux9shxr4.h"
8222 ### Compute the unexec source name from the object name.
8223 UNEXEC_SRC
="`echo ${unexec} | sed 's/\.o/.c/'`"
8225 # Do the opsystem or machine files prohibit the use of the GNU malloc?
8226 # Assume not, until told otherwise.
8229 echo "$as_me:$LINENO: checking for malloc_get_state" >&5
8230 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6
8231 if test "${ac_cv_func_malloc_get_state+set}" = set; then
8232 echo $ECHO_N "(cached) $ECHO_C" >&6
8234 cat >conftest.
$ac_ext <<_ACEOF
8237 cat confdefs.h
>>conftest.
$ac_ext
8238 cat >>conftest.
$ac_ext <<_ACEOF
8239 /* end confdefs.h. */
8240 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
8241 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8242 #define malloc_get_state innocuous_malloc_get_state
8244 /* System header to define __stub macros and hopefully few prototypes,
8245 which can conflict with char malloc_get_state (); below.
8246 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8247 <limits.h> exists even on freestanding compilers. */
8250 # include <limits.h>
8252 # include <assert.h>
8255 #undef malloc_get_state
8257 /* Override any gcc2 internal prototype to avoid an error. */
8262 /* We use char because int might match the return type of a gcc2
8263 builtin and then its argument prototype would still apply. */
8264 char malloc_get_state ();
8265 /* The GNU C library defines this for functions which it implements
8266 to always fail with ENOSYS. Some functions are actually named
8267 something starting with __ and the normal name is an alias. */
8268 #if defined (__stub_malloc_get_state) || defined (__stub___malloc_get_state)
8271 char (*f) () = malloc_get_state;
8280 return f != malloc_get_state;
8285 rm -f conftest.
$ac_objext conftest
$ac_exeext
8286 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8287 (eval $ac_link) 2>conftest.er1
8289 grep -v '^ *+' conftest.er1
>conftest.err
8291 cat conftest.err
>&5
8292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8293 (exit $ac_status); } &&
8294 { ac_try
='test -z "$ac_c_werror_flag"
8295 || test ! -s conftest.err'
8296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8300 (exit $ac_status); }; } &&
8301 { ac_try
='test -s conftest$ac_exeext'
8302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8306 (exit $ac_status); }; }; then
8307 ac_cv_func_malloc_get_state
=yes
8309 echo "$as_me: failed program was:" >&5
8310 sed 's/^/| /' conftest.
$ac_ext >&5
8312 ac_cv_func_malloc_get_state
=no
8314 rm -f conftest.err conftest.
$ac_objext \
8315 conftest
$ac_exeext conftest.
$ac_ext
8317 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
8318 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6
8319 if test $ac_cv_func_malloc_get_state = yes; then
8325 echo "$as_me:$LINENO: checking for malloc_set_state" >&5
8326 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6
8327 if test "${ac_cv_func_malloc_set_state+set}" = set; then
8328 echo $ECHO_N "(cached) $ECHO_C" >&6
8330 cat >conftest.
$ac_ext <<_ACEOF
8333 cat confdefs.h
>>conftest.
$ac_ext
8334 cat >>conftest.
$ac_ext <<_ACEOF
8335 /* end confdefs.h. */
8336 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
8337 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8338 #define malloc_set_state innocuous_malloc_set_state
8340 /* System header to define __stub macros and hopefully few prototypes,
8341 which can conflict with char malloc_set_state (); below.
8342 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8343 <limits.h> exists even on freestanding compilers. */
8346 # include <limits.h>
8348 # include <assert.h>
8351 #undef malloc_set_state
8353 /* Override any gcc2 internal prototype to avoid an error. */
8358 /* We use char because int might match the return type of a gcc2
8359 builtin and then its argument prototype would still apply. */
8360 char malloc_set_state ();
8361 /* The GNU C library defines this for functions which it implements
8362 to always fail with ENOSYS. Some functions are actually named
8363 something starting with __ and the normal name is an alias. */
8364 #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state)
8367 char (*f) () = malloc_set_state;
8376 return f != malloc_set_state;
8381 rm -f conftest.
$ac_objext conftest
$ac_exeext
8382 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8383 (eval $ac_link) 2>conftest.er1
8385 grep -v '^ *+' conftest.er1
>conftest.err
8387 cat conftest.err
>&5
8388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8389 (exit $ac_status); } &&
8390 { ac_try
='test -z "$ac_c_werror_flag"
8391 || test ! -s conftest.err'
8392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8396 (exit $ac_status); }; } &&
8397 { ac_try
='test -s conftest$ac_exeext'
8398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8402 (exit $ac_status); }; }; then
8403 ac_cv_func_malloc_set_state
=yes
8405 echo "$as_me: failed program was:" >&5
8406 sed 's/^/| /' conftest.
$ac_ext >&5
8408 ac_cv_func_malloc_set_state
=no
8410 rm -f conftest.err conftest.
$ac_objext \
8411 conftest
$ac_exeext conftest.
$ac_ext
8413 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
8414 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6
8415 if test $ac_cv_func_malloc_set_state = yes; then
8421 echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
8422 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6
8423 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
8424 echo $ECHO_N "(cached) $ECHO_C" >&6
8426 cat >conftest.
$ac_ext <<_ACEOF
8429 cat confdefs.h
>>conftest.
$ac_ext
8430 cat >>conftest.
$ac_ext <<_ACEOF
8431 /* end confdefs.h. */
8432 extern void (* __after_morecore_hook)();
8436 __after_morecore_hook = 0
8441 rm -f conftest.
$ac_objext conftest
$ac_exeext
8442 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8443 (eval $ac_link) 2>conftest.er1
8445 grep -v '^ *+' conftest.er1
>conftest.err
8447 cat conftest.err
>&5
8448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8449 (exit $ac_status); } &&
8450 { ac_try
='test -z "$ac_c_werror_flag"
8451 || test ! -s conftest.err'
8452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8456 (exit $ac_status); }; } &&
8457 { ac_try
='test -s conftest$ac_exeext'
8458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8462 (exit $ac_status); }; }; then
8463 emacs_cv_var___after_morecore_hook
=yes
8465 echo "$as_me: failed program was:" >&5
8466 sed 's/^/| /' conftest.
$ac_ext >&5
8468 emacs_cv_var___after_morecore_hook
=no
8470 rm -f conftest.err conftest.
$ac_objext \
8471 conftest
$ac_exeext conftest.
$ac_ext
8473 echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
8474 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6
8475 if test $emacs_cv_var___after_morecore_hook = no
; then
8478 if test "${system_malloc}" = "yes"; then
8481 (The GNU allocators don't work with this system configuration.)"
8483 if test "$doug_lea_malloc" = "yes" ; then
8484 if test "$GNU_MALLOC" = yes ; then
8486 (Using Doug Lea's new malloc from the GNU C Library.)"
8489 cat >>confdefs.h
<<\_ACEOF
8490 #define DOUG_LEA_MALLOC 1
8495 if test x
"${REL_ALLOC}" = x
; then
8496 REL_ALLOC
=${GNU_MALLOC}
8502 for ac_header
in stdlib.h unistd.h
8504 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8505 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8506 echo "$as_me:$LINENO: checking for $ac_header" >&5
8507 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8508 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8509 echo $ECHO_N "(cached) $ECHO_C" >&6
8511 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8512 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8514 # Is the header compilable?
8515 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8516 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8517 cat >conftest.
$ac_ext <<_ACEOF
8520 cat confdefs.h
>>conftest.
$ac_ext
8521 cat >>conftest.
$ac_ext <<_ACEOF
8522 /* end confdefs.h. */
8523 $ac_includes_default
8524 #include <$ac_header>
8526 rm -f conftest.
$ac_objext
8527 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8528 (eval $ac_compile) 2>conftest.er1
8530 grep -v '^ *+' conftest.er1
>conftest.err
8532 cat conftest.err
>&5
8533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8534 (exit $ac_status); } &&
8535 { ac_try
='test -z "$ac_c_werror_flag"
8536 || test ! -s conftest.err'
8537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8541 (exit $ac_status); }; } &&
8542 { ac_try
='test -s conftest.$ac_objext'
8543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8547 (exit $ac_status); }; }; then
8548 ac_header_compiler
=yes
8550 echo "$as_me: failed program was:" >&5
8551 sed 's/^/| /' conftest.
$ac_ext >&5
8553 ac_header_compiler
=no
8555 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8556 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8557 echo "${ECHO_T}$ac_header_compiler" >&6
8559 # Is the header present?
8560 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8561 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8562 cat >conftest.
$ac_ext <<_ACEOF
8565 cat confdefs.h
>>conftest.
$ac_ext
8566 cat >>conftest.
$ac_ext <<_ACEOF
8567 /* end confdefs.h. */
8568 #include <$ac_header>
8570 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8571 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8573 grep -v '^ *+' conftest.er1
>conftest.err
8575 cat conftest.err
>&5
8576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8577 (exit $ac_status); } >/dev
/null
; then
8578 if test -s conftest.err
; then
8579 ac_cpp_err
=$ac_c_preproc_warn_flag
8580 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
8587 if test -z "$ac_cpp_err"; then
8588 ac_header_preproc
=yes
8590 echo "$as_me: failed program was:" >&5
8591 sed 's/^/| /' conftest.
$ac_ext >&5
8593 ac_header_preproc
=no
8595 rm -f conftest.err conftest.
$ac_ext
8596 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8597 echo "${ECHO_T}$ac_header_preproc" >&6
8599 # So? What about this header?
8600 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8602 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8603 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8604 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8605 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8606 ac_header_preproc
=yes
8609 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8610 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8611 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8612 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8613 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8614 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8615 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8616 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8617 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8618 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8619 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8620 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8623 ## ------------------------------------------ ##
8624 ## Report this to the AC_PACKAGE_NAME lists. ##
8625 ## ------------------------------------------ ##
8628 sed "s/^/$as_me: WARNING: /" >&2
8631 echo "$as_me:$LINENO: checking for $ac_header" >&5
8632 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8633 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8634 echo $ECHO_N "(cached) $ECHO_C" >&6
8636 eval "$as_ac_Header=\$ac_header_preproc"
8638 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8639 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8642 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8643 cat >>confdefs.h
<<_ACEOF
8644 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8652 for ac_func
in getpagesize
8654 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8655 echo "$as_me:$LINENO: checking for $ac_func" >&5
8656 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8657 if eval "test \"\${$as_ac_var+set}\" = set"; then
8658 echo $ECHO_N "(cached) $ECHO_C" >&6
8660 cat >conftest.
$ac_ext <<_ACEOF
8663 cat confdefs.h
>>conftest.
$ac_ext
8664 cat >>conftest.
$ac_ext <<_ACEOF
8665 /* end confdefs.h. */
8666 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8667 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8668 #define $ac_func innocuous_$ac_func
8670 /* System header to define __stub macros and hopefully few prototypes,
8671 which can conflict with char $ac_func (); below.
8672 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8673 <limits.h> exists even on freestanding compilers. */
8676 # include <limits.h>
8678 # include <assert.h>
8683 /* Override any gcc2 internal prototype to avoid an error. */
8688 /* We use char because int might match the return type of a gcc2
8689 builtin and then its argument prototype would still apply. */
8691 /* The GNU C library defines this for functions which it implements
8692 to always fail with ENOSYS. Some functions are actually named
8693 something starting with __ and the normal name is an alias. */
8694 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8697 char (*f) () = $ac_func;
8706 return f != $ac_func;
8711 rm -f conftest.
$ac_objext conftest
$ac_exeext
8712 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8713 (eval $ac_link) 2>conftest.er1
8715 grep -v '^ *+' conftest.er1
>conftest.err
8717 cat conftest.err
>&5
8718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8719 (exit $ac_status); } &&
8720 { ac_try
='test -z "$ac_c_werror_flag"
8721 || test ! -s conftest.err'
8722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8726 (exit $ac_status); }; } &&
8727 { ac_try
='test -s conftest$ac_exeext'
8728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8732 (exit $ac_status); }; }; then
8733 eval "$as_ac_var=yes"
8735 echo "$as_me: failed program was:" >&5
8736 sed 's/^/| /' conftest.
$ac_ext >&5
8738 eval "$as_ac_var=no"
8740 rm -f conftest.err conftest.
$ac_objext \
8741 conftest
$ac_exeext conftest.
$ac_ext
8743 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8744 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8745 if test `eval echo '${'$as_ac_var'}'` = yes; then
8746 cat >>confdefs.h
<<_ACEOF
8747 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8753 echo "$as_me:$LINENO: checking for working mmap" >&5
8754 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
8755 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
8756 echo $ECHO_N "(cached) $ECHO_C" >&6
8758 if test "$cross_compiling" = yes; then
8759 ac_cv_func_mmap_fixed_mapped
=no
8761 cat >conftest.
$ac_ext <<_ACEOF
8764 cat confdefs.h
>>conftest.
$ac_ext
8765 cat >>conftest.
$ac_ext <<_ACEOF
8766 /* end confdefs.h. */
8767 $ac_includes_default
8768 /* malloc might have been renamed as rpl_malloc. */
8771 /* Thanks to Mike Haertel and Jim Avera for this test.
8772 Here is a matrix of mmap possibilities:
8773 mmap private not fixed
8774 mmap private fixed at somewhere currently unmapped
8775 mmap private fixed at somewhere already mapped
8776 mmap shared not fixed
8777 mmap shared fixed at somewhere currently unmapped
8778 mmap shared fixed at somewhere already mapped
8779 For private mappings, we should verify that changes cannot be read()
8780 back from the file, nor mmap's back from the file at a different
8781 address. (There have been systems where private was not correctly
8782 implemented like the infamous i386 svr4.0, and systems where the
8783 VM page cache was not coherent with the file system buffer cache
8784 like early versions of FreeBSD and possibly contemporary NetBSD.)
8785 For shared mappings, we should conversely verify that changes get
8786 propagated back to all the places they're supposed to be.
8788 Grep wants private fixed already mapped.
8789 The main things grep needs to know about mmap are:
8790 * does it exist and is it safe to write into the mmap'd area
8791 * how to use it (BSD variants) */
8794 #include <sys/mman.h>
8796 #if !STDC_HEADERS && !HAVE_STDLIB_H
8800 /* This mess was copied from the GNU getpagesize.h. */
8801 #if !HAVE_GETPAGESIZE
8802 /* Assume that all systems that can run configure have sys/param.h. */
8803 # if !HAVE_SYS_PARAM_H
8804 # define HAVE_SYS_PARAM_H 1
8807 # ifdef _SC_PAGESIZE
8808 # define getpagesize() sysconf(_SC_PAGESIZE)
8809 # else /* no _SC_PAGESIZE */
8810 # if HAVE_SYS_PARAM_H
8811 # include <sys/param.h>
8812 # ifdef EXEC_PAGESIZE
8813 # define getpagesize() EXEC_PAGESIZE
8814 # else /* no EXEC_PAGESIZE */
8816 # define getpagesize() NBPG * CLSIZE
8819 # endif /* no CLSIZE */
8820 # else /* no NBPG */
8822 # define getpagesize() NBPC
8823 # else /* no NBPC */
8825 # define getpagesize() PAGESIZE
8826 # endif /* PAGESIZE */
8827 # endif /* no NBPC */
8828 # endif /* no NBPG */
8829 # endif /* no EXEC_PAGESIZE */
8830 # else /* no HAVE_SYS_PARAM_H */
8831 # define getpagesize() 8192 /* punt totally */
8832 # endif /* no HAVE_SYS_PARAM_H */
8833 # endif /* no _SC_PAGESIZE */
8835 #endif /* no HAVE_GETPAGESIZE */
8840 char *data, *data2, *data3;
8844 pagesize = getpagesize ();
8846 /* First, make a file with some known garbage in it. */
8847 data = (char *) malloc (pagesize);
8850 for (i = 0; i < pagesize; ++i)
8851 *(data + i) = rand ();
8853 fd = creat ("conftest.mmap", 0600);
8856 if (write (fd, data, pagesize) != pagesize)
8860 /* Next, try to mmap the file at a fixed address which already has
8861 something else allocated at it. If we can, also make sure that
8862 we see the same garbage. */
8863 fd = open ("conftest.mmap", O_RDWR);
8866 data2 = (char *) malloc (2 * pagesize);
8869 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
8870 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8871 MAP_PRIVATE | MAP_FIXED, fd, 0L))
8873 for (i = 0; i < pagesize; ++i)
8874 if (*(data + i) != *(data2 + i))
8877 /* Finally, make sure that changes to the mapped area do not
8878 percolate back to the file as seen by read(). (This is a bug on
8879 some variants of i386 svr4.0.) */
8880 for (i = 0; i < pagesize; ++i)
8881 *(data2 + i) = *(data2 + i) + 1;
8882 data3 = (char *) malloc (pagesize);
8885 if (read (fd, data3, pagesize) != pagesize)
8887 for (i = 0; i < pagesize; ++i)
8888 if (*(data + i) != *(data3 + i))
8894 rm -f conftest
$ac_exeext
8895 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8896 (eval $ac_link) 2>&5
8898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8899 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
8900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8904 (exit $ac_status); }; }; then
8905 ac_cv_func_mmap_fixed_mapped
=yes
8907 echo "$as_me: program exited with status $ac_status" >&5
8908 echo "$as_me: failed program was:" >&5
8909 sed 's/^/| /' conftest.
$ac_ext >&5
8912 ac_cv_func_mmap_fixed_mapped
=no
8914 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
8917 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
8918 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
8919 if test $ac_cv_func_mmap_fixed_mapped = yes; then
8921 cat >>confdefs.h
<<\_ACEOF
8928 if test $use_mmap_for_buffers = yes; then
8932 LIBS
="$libsrc_libs $LIBS"
8935 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
8936 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
8937 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
8938 echo $ECHO_N "(cached) $ECHO_C" >&6
8940 ac_check_lib_save_LIBS
=$LIBS
8942 cat >conftest.
$ac_ext <<_ACEOF
8945 cat confdefs.h
>>conftest.
$ac_ext
8946 cat >>conftest.
$ac_ext <<_ACEOF
8947 /* end confdefs.h. */
8949 /* Override any gcc2 internal prototype to avoid an error. */
8953 /* We use char because int might match the return type of a gcc2
8954 builtin and then its argument prototype would still apply. */
8964 rm -f conftest.
$ac_objext conftest
$ac_exeext
8965 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8966 (eval $ac_link) 2>conftest.er1
8968 grep -v '^ *+' conftest.er1
>conftest.err
8970 cat conftest.err
>&5
8971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8972 (exit $ac_status); } &&
8973 { ac_try
='test -z "$ac_c_werror_flag"
8974 || test ! -s conftest.err'
8975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8979 (exit $ac_status); }; } &&
8980 { ac_try
='test -s conftest$ac_exeext'
8981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8985 (exit $ac_status); }; }; then
8986 ac_cv_lib_dnet_dnet_ntoa
=yes
8988 echo "$as_me: failed program was:" >&5
8989 sed 's/^/| /' conftest.
$ac_ext >&5
8991 ac_cv_lib_dnet_dnet_ntoa
=no
8993 rm -f conftest.err conftest.
$ac_objext \
8994 conftest
$ac_exeext conftest.
$ac_ext
8995 LIBS
=$ac_check_lib_save_LIBS
8997 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
8998 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
8999 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
9000 cat >>confdefs.h
<<_ACEOF
9001 #define HAVE_LIBDNET 1
9009 echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
9010 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6
9011 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
9012 echo $ECHO_N "(cached) $ECHO_C" >&6
9014 ac_check_lib_save_LIBS
=$LIBS
9016 cat >conftest.
$ac_ext <<_ACEOF
9019 cat confdefs.h
>>conftest.
$ac_ext
9020 cat >>conftest.
$ac_ext <<_ACEOF
9021 /* end confdefs.h. */
9032 rm -f conftest.
$ac_objext conftest
$ac_exeext
9033 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9034 (eval $ac_link) 2>conftest.er1
9036 grep -v '^ *+' conftest.er1
>conftest.err
9038 cat conftest.err
>&5
9039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9040 (exit $ac_status); } &&
9041 { ac_try
='test -z "$ac_c_werror_flag"
9042 || test ! -s conftest.err'
9043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9047 (exit $ac_status); }; } &&
9048 { ac_try
='test -s conftest$ac_exeext'
9049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9053 (exit $ac_status); }; }; then
9054 ac_cv_lib_Xbsd_main
=yes
9056 echo "$as_me: failed program was:" >&5
9057 sed 's/^/| /' conftest.
$ac_ext >&5
9059 ac_cv_lib_Xbsd_main
=no
9061 rm -f conftest.err conftest.
$ac_objext \
9062 conftest
$ac_exeext conftest.
$ac_ext
9063 LIBS
=$ac_check_lib_save_LIBS
9065 echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
9066 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6
9067 if test $ac_cv_lib_Xbsd_main = yes; then
9068 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -lXbsd"
9073 echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
9074 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6
9075 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
9076 echo $ECHO_N "(cached) $ECHO_C" >&6
9078 ac_check_lib_save_LIBS
=$LIBS
9079 LIBS
="-lpthreads $LIBS"
9080 cat >conftest.
$ac_ext <<_ACEOF
9083 cat confdefs.h
>>conftest.
$ac_ext
9084 cat >>conftest.
$ac_ext <<_ACEOF
9085 /* end confdefs.h. */
9087 /* Override any gcc2 internal prototype to avoid an error. */
9091 /* We use char because int might match the return type of a gcc2
9092 builtin and then its argument prototype would still apply. */
9102 rm -f conftest.
$ac_objext conftest
$ac_exeext
9103 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9104 (eval $ac_link) 2>conftest.er1
9106 grep -v '^ *+' conftest.er1
>conftest.err
9108 cat conftest.err
>&5
9109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9110 (exit $ac_status); } &&
9111 { ac_try
='test -z "$ac_c_werror_flag"
9112 || test ! -s conftest.err'
9113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9117 (exit $ac_status); }; } &&
9118 { ac_try
='test -s conftest$ac_exeext'
9119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9123 (exit $ac_status); }; }; then
9124 ac_cv_lib_pthreads_cma_open
=yes
9126 echo "$as_me: failed program was:" >&5
9127 sed 's/^/| /' conftest.
$ac_ext >&5
9129 ac_cv_lib_pthreads_cma_open
=no
9131 rm -f conftest.err conftest.
$ac_objext \
9132 conftest
$ac_exeext conftest.
$ac_ext
9133 LIBS
=$ac_check_lib_save_LIBS
9135 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
9136 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6
9137 if test $ac_cv_lib_pthreads_cma_open = yes; then
9138 cat >>confdefs.h
<<_ACEOF
9139 #define HAVE_LIBPTHREADS 1
9142 LIBS
="-lpthreads $LIBS"
9147 echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
9148 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6
9149 if test -d /usr
/X386
/include
; then
9151 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
9155 echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
9156 echo "${ECHO_T}$HAVE_XFREE386" >&6
9161 echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
9162 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6
9163 if test "${gdb_cv_bigtoc+set}" = set; then
9164 echo $ECHO_N "(cached) $ECHO_C" >&6
9168 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
9169 *) gdb_cv_bigtoc
=-bbigtoc ;;
9172 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
9173 cat >conftest.
$ac_ext <<_ACEOF
9176 cat confdefs.h
>>conftest.
$ac_ext
9177 cat >>conftest.
$ac_ext <<_ACEOF
9178 /* end confdefs.h. */
9188 rm -f conftest.
$ac_objext conftest
$ac_exeext
9189 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9190 (eval $ac_link) 2>conftest.er1
9192 grep -v '^ *+' conftest.er1
>conftest.err
9194 cat conftest.err
>&5
9195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9196 (exit $ac_status); } &&
9197 { ac_try
='test -z "$ac_c_werror_flag"
9198 || test ! -s conftest.err'
9199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9203 (exit $ac_status); }; } &&
9204 { ac_try
='test -s conftest$ac_exeext'
9205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9209 (exit $ac_status); }; }; then
9212 echo "$as_me: failed program was:" >&5
9213 sed 's/^/| /' conftest.
$ac_ext >&5
9217 rm -f conftest.err conftest.
$ac_objext \
9218 conftest
$ac_exeext conftest.
$ac_ext
9221 echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
9222 echo "${ECHO_T}$gdb_cv_bigtoc" >&6
9226 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
9227 # used for the tests that follow. We set them back to REAL_CFLAGS and
9228 # REAL_CPPFLAGS later on.
9230 REAL_CPPFLAGS
="$CPPFLAGS"
9232 if test "${HAVE_X11}" = "yes"; then
9233 DEFS
="$C_SWITCH_X_SITE $DEFS"
9234 LDFLAGS
="$LDFLAGS $LD_SWITCH_X_SITE"
9236 CFLAGS
="$C_SWITCH_X_SITE $CFLAGS"
9237 CPPFLAGS
="$C_SWITCH_X_SITE $CPPFLAGS"
9239 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
9240 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
9241 # but it's more convenient here to set LD_RUN_PATH
9242 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
9243 if test "${x_libraries}" != NONE
&& test -n "${x_libraries}"; then
9244 LD_RUN_PATH
=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
9248 if test "${opsys}" = "gnu-linux"; then
9249 echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
9250 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6
9251 cat >conftest.
$ac_ext <<_ACEOF
9254 cat confdefs.h
>>conftest.
$ac_ext
9255 cat >>conftest.
$ac_ext <<_ACEOF
9256 /* end confdefs.h. */
9261 XOpenDisplay ("foo");
9266 rm -f conftest.
$ac_objext conftest
$ac_exeext
9267 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9268 (eval $ac_link) 2>conftest.er1
9270 grep -v '^ *+' conftest.er1
>conftest.err
9272 cat conftest.err
>&5
9273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9274 (exit $ac_status); } &&
9275 { ac_try
='test -z "$ac_c_werror_flag"
9276 || test ! -s conftest.err'
9277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9281 (exit $ac_status); }; } &&
9282 { ac_try
='test -s conftest$ac_exeext'
9283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9287 (exit $ac_status); }; }; then
9288 xlinux_first_failure
=no
9290 echo "$as_me: failed program was:" >&5
9291 sed 's/^/| /' conftest.
$ac_ext >&5
9293 xlinux_first_failure
=yes
9295 rm -f conftest.err conftest.
$ac_objext \
9296 conftest
$ac_exeext conftest.
$ac_ext
9297 if test "${xlinux_first_failure}" = "yes"; then
9298 OLD_LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE"
9299 OLD_C_SWITCH_X_SITE
="$C_SWITCH_X_SITE"
9300 OLD_CPPFLAGS
="$CPPFLAGS"
9302 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -b i486-linuxaout"
9303 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE -b i486-linuxaout"
9304 CPPFLAGS
="$CPPFLAGS -b i486-linuxaout"
9305 LIBS
="$LIBS -b i486-linuxaout"
9306 cat >conftest.
$ac_ext <<_ACEOF
9309 cat confdefs.h
>>conftest.
$ac_ext
9310 cat >>conftest.
$ac_ext <<_ACEOF
9311 /* end confdefs.h. */
9316 XOpenDisplay ("foo");
9321 rm -f conftest.
$ac_objext conftest
$ac_exeext
9322 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9323 (eval $ac_link) 2>conftest.er1
9325 grep -v '^ *+' conftest.er1
>conftest.err
9327 cat conftest.err
>&5
9328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9329 (exit $ac_status); } &&
9330 { ac_try
='test -z "$ac_c_werror_flag"
9331 || test ! -s conftest.err'
9332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9336 (exit $ac_status); }; } &&
9337 { ac_try
='test -s conftest$ac_exeext'
9338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9342 (exit $ac_status); }; }; then
9343 xlinux_second_failure
=no
9345 echo "$as_me: failed program was:" >&5
9346 sed 's/^/| /' conftest.
$ac_ext >&5
9348 xlinux_second_failure
=yes
9350 rm -f conftest.err conftest.
$ac_objext \
9351 conftest
$ac_exeext conftest.
$ac_ext
9352 if test "${xlinux_second_failure}" = "yes"; then
9353 # If we get the same failure with -b, there is no use adding -b.
9354 # So take it out. This plays safe.
9355 LD_SWITCH_X_SITE
="$OLD_LD_SWITCH_X_SITE"
9356 C_SWITCH_X_SITE
="$OLD_C_SWITCH_X_SITE"
9357 CPPFLAGS
="$OLD_CPPFLAGS"
9359 echo "$as_me:$LINENO: result: no" >&5
9360 echo "${ECHO_T}no" >&6
9362 echo "$as_me:$LINENO: result: yes" >&5
9363 echo "${ECHO_T}yes" >&6
9366 echo "$as_me:$LINENO: result: no" >&5
9367 echo "${ECHO_T}no" >&6
9371 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
9372 # header files included from there.
9373 echo "$as_me:$LINENO: checking for Xkb" >&5
9374 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6
9375 cat >conftest.
$ac_ext <<_ACEOF
9378 cat confdefs.h
>>conftest.
$ac_ext
9379 cat >>conftest.
$ac_ext <<_ACEOF
9380 /* end confdefs.h. */
9381 #include <X11/Xlib.h>
9382 #include <X11/XKBlib.h>
9386 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
9391 rm -f conftest.
$ac_objext conftest
$ac_exeext
9392 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9393 (eval $ac_link) 2>conftest.er1
9395 grep -v '^ *+' conftest.er1
>conftest.err
9397 cat conftest.err
>&5
9398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9399 (exit $ac_status); } &&
9400 { ac_try
='test -z "$ac_c_werror_flag"
9401 || test ! -s conftest.err'
9402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9406 (exit $ac_status); }; } &&
9407 { ac_try
='test -s conftest$ac_exeext'
9408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9412 (exit $ac_status); }; }; then
9415 echo "$as_me: failed program was:" >&5
9416 sed 's/^/| /' conftest.
$ac_ext >&5
9420 rm -f conftest.err conftest.
$ac_objext \
9421 conftest
$ac_exeext conftest.
$ac_ext
9422 echo "$as_me:$LINENO: result: $emacs_xkb" >&5
9423 echo "${ECHO_T}$emacs_xkb" >&6
9424 if test $emacs_xkb = yes; then
9426 cat >>confdefs.h
<<\_ACEOF
9427 #define HAVE_XKBGETKEYBOARD 1
9436 for ac_func
in XrmSetDatabase XScreenResourceString \
9437 XScreenNumberOfScreen XSetWMProtocols
9439 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9440 echo "$as_me:$LINENO: checking for $ac_func" >&5
9441 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9442 if eval "test \"\${$as_ac_var+set}\" = set"; then
9443 echo $ECHO_N "(cached) $ECHO_C" >&6
9445 cat >conftest.
$ac_ext <<_ACEOF
9448 cat confdefs.h
>>conftest.
$ac_ext
9449 cat >>conftest.
$ac_ext <<_ACEOF
9450 /* end confdefs.h. */
9451 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9452 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9453 #define $ac_func innocuous_$ac_func
9455 /* System header to define __stub macros and hopefully few prototypes,
9456 which can conflict with char $ac_func (); below.
9457 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9458 <limits.h> exists even on freestanding compilers. */
9461 # include <limits.h>
9463 # include <assert.h>
9468 /* Override any gcc2 internal prototype to avoid an error. */
9473 /* We use char because int might match the return type of a gcc2
9474 builtin and then its argument prototype would still apply. */
9476 /* The GNU C library defines this for functions which it implements
9477 to always fail with ENOSYS. Some functions are actually named
9478 something starting with __ and the normal name is an alias. */
9479 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9482 char (*f) () = $ac_func;
9491 return f != $ac_func;
9496 rm -f conftest.
$ac_objext conftest
$ac_exeext
9497 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9498 (eval $ac_link) 2>conftest.er1
9500 grep -v '^ *+' conftest.er1
>conftest.err
9502 cat conftest.err
>&5
9503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9504 (exit $ac_status); } &&
9505 { ac_try
='test -z "$ac_c_werror_flag"
9506 || test ! -s conftest.err'
9507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9511 (exit $ac_status); }; } &&
9512 { ac_try
='test -s conftest$ac_exeext'
9513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9517 (exit $ac_status); }; }; then
9518 eval "$as_ac_var=yes"
9520 echo "$as_me: failed program was:" >&5
9521 sed 's/^/| /' conftest.
$ac_ext >&5
9523 eval "$as_ac_var=no"
9525 rm -f conftest.err conftest.
$ac_objext \
9526 conftest
$ac_exeext conftest.
$ac_ext
9528 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9529 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9530 if test `eval echo '${'$as_ac_var'}'` = yes; then
9531 cat >>confdefs.h
<<_ACEOF
9532 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9540 if test "${window_system}" = "x11"; then
9541 echo "$as_me:$LINENO: checking X11 version 6" >&5
9542 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6
9543 if test "${emacs_cv_x11_version_6+set}" = set; then
9544 echo $ECHO_N "(cached) $ECHO_C" >&6
9546 cat >conftest.
$ac_ext <<_ACEOF
9549 cat confdefs.h
>>conftest.
$ac_ext
9550 cat >>conftest.
$ac_ext <<_ACEOF
9551 /* end confdefs.h. */
9552 #include <X11/Xlib.h>
9556 #if XlibSpecificationRelease < 6
9564 rm -f conftest.
$ac_objext conftest
$ac_exeext
9565 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9566 (eval $ac_link) 2>conftest.er1
9568 grep -v '^ *+' conftest.er1
>conftest.err
9570 cat conftest.err
>&5
9571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9572 (exit $ac_status); } &&
9573 { ac_try
='test -z "$ac_c_werror_flag"
9574 || test ! -s conftest.err'
9575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9579 (exit $ac_status); }; } &&
9580 { ac_try
='test -s conftest$ac_exeext'
9581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9585 (exit $ac_status); }; }; then
9586 emacs_cv_x11_version_6
=yes
9588 echo "$as_me: failed program was:" >&5
9589 sed 's/^/| /' conftest.
$ac_ext >&5
9591 emacs_cv_x11_version_6
=no
9593 rm -f conftest.err conftest.
$ac_objext \
9594 conftest
$ac_exeext conftest.
$ac_ext
9597 if test $emacs_cv_x11_version_6 = yes; then
9598 echo "$as_me:$LINENO: result: 6 or newer" >&5
9599 echo "${ECHO_T}6 or newer" >&6
9601 cat >>confdefs.h
<<\_ACEOF
9602 #define HAVE_X11R6 1
9606 echo "$as_me:$LINENO: result: before 6" >&5
9607 echo "${ECHO_T}before 6" >&6
9611 if test "${window_system}" = "x11"; then
9612 echo "$as_me:$LINENO: checking X11 version 5" >&5
9613 echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6
9614 if test "${emacs_cv_x11_version_5+set}" = set; then
9615 echo $ECHO_N "(cached) $ECHO_C" >&6
9617 cat >conftest.
$ac_ext <<_ACEOF
9620 cat confdefs.h
>>conftest.
$ac_ext
9621 cat >>conftest.
$ac_ext <<_ACEOF
9622 /* end confdefs.h. */
9623 #include <X11/Xlib.h>
9627 #if XlibSpecificationRelease < 5
9635 rm -f conftest.
$ac_objext conftest
$ac_exeext
9636 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9637 (eval $ac_link) 2>conftest.er1
9639 grep -v '^ *+' conftest.er1
>conftest.err
9641 cat conftest.err
>&5
9642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9643 (exit $ac_status); } &&
9644 { ac_try
='test -z "$ac_c_werror_flag"
9645 || test ! -s conftest.err'
9646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9650 (exit $ac_status); }; } &&
9651 { ac_try
='test -s conftest$ac_exeext'
9652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9656 (exit $ac_status); }; }; then
9657 emacs_cv_x11_version_5
=yes
9659 echo "$as_me: failed program was:" >&5
9660 sed 's/^/| /' conftest.
$ac_ext >&5
9662 emacs_cv_x11_version_5
=no
9664 rm -f conftest.err conftest.
$ac_objext \
9665 conftest
$ac_exeext conftest.
$ac_ext
9668 if test $emacs_cv_x11_version_5 = yes; then
9669 echo "$as_me:$LINENO: result: 5 or newer" >&5
9670 echo "${ECHO_T}5 or newer" >&6
9673 cat >>confdefs.h
<<\_ACEOF
9674 #define HAVE_X11R5 1
9679 echo "$as_me:$LINENO: result: before 5" >&5
9680 echo "${ECHO_T}before 5" >&6
9687 if test "${with_gtk}" = "yes" ||
test "$USE_X_TOOLKIT" = "gtk"; then
9688 if test "$USE_X_TOOLKIT" != "none" && test "$USE_X_TOOLKIT" != "maybe"; then
9689 { { echo "$as_me:$LINENO: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&5
9690 echo "$as_me: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&2;}
9691 { (exit 1); exit 1; }; };
9695 GTK_MODULES
="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
9697 if test "X${with_pkg_config_prog}" != X
; then
9698 PKG_CONFIG
="${with_pkg_config_prog}"
9703 if test -z "$PKG_CONFIG"; then
9704 # Extract the first word of "pkg-config", so it can be a program name with args.
9705 set dummy pkg-config
; ac_word
=$2
9706 echo "$as_me:$LINENO: checking for $ac_word" >&5
9707 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9708 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
9709 echo $ECHO_N "(cached) $ECHO_C" >&6
9713 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
9716 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9720 test -z "$as_dir" && as_dir
=.
9721 for ac_exec_ext
in '' $ac_executable_extensions; do
9722 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9723 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
9724 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9730 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
9734 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
9736 if test -n "$PKG_CONFIG"; then
9737 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
9738 echo "${ECHO_T}$PKG_CONFIG" >&6
9740 echo "$as_me:$LINENO: result: no" >&5
9741 echo "${ECHO_T}no" >&6
9746 if test "$PKG_CONFIG" = "no" ; then
9747 echo "*** The pkg-config script could not be found. Make sure it is"
9748 echo "*** in your path, or give the full path to pkg-config with"
9749 echo "*** the PKG_CONFIG environment variable or --with-pkg-config-prog."
9750 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
9752 PKG_CONFIG_MIN_VERSION
=0.9.0
9753 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9754 echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
9755 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6
9757 if $PKG_CONFIG --exists "$GTK_MODULES" ; then
9758 echo "$as_me:$LINENO: result: yes" >&5
9759 echo "${ECHO_T}yes" >&6
9762 echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
9763 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6
9764 GTK_CFLAGS
=`$PKG_CONFIG --cflags "$GTK_MODULES"`
9765 echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
9766 echo "${ECHO_T}$GTK_CFLAGS" >&6
9768 echo "$as_me:$LINENO: checking GTK_LIBS" >&5
9769 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6
9770 GTK_LIBS
=`$PKG_CONFIG --libs "$GTK_MODULES"`
9771 echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
9772 echo "${ECHO_T}$GTK_LIBS" >&6
9776 ## If we have a custom action on failure, don't print errors, but
9777 ## do set a variable so people can do so.
9778 GTK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
9779 echo $GTK_PKG_ERRORS
9785 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9786 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9790 if test $succeeded = yes; then
9793 { { 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
9794 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;}
9795 { (exit 1); exit 1; }; }
9800 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $GTK_CFLAGS"
9801 CFLAGS
="$CFLAGS $GTK_CFLAGS"
9802 LIBS
="$GTK_LIBS $LIBS"
9805 cat >>confdefs.h
<<\_ACEOF
9811 if test "$with_toolkit_scroll_bars" != no
; then
9812 with_toolkit_scroll_bars
=yes
9815 HAVE_GTK_MULTIDISPLAY
=no
9817 for ac_func
in gdk_display_open
9819 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9820 echo "$as_me:$LINENO: checking for $ac_func" >&5
9821 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9822 if eval "test \"\${$as_ac_var+set}\" = set"; then
9823 echo $ECHO_N "(cached) $ECHO_C" >&6
9825 cat >conftest.
$ac_ext <<_ACEOF
9828 cat confdefs.h
>>conftest.
$ac_ext
9829 cat >>conftest.
$ac_ext <<_ACEOF
9830 /* end confdefs.h. */
9831 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9832 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9833 #define $ac_func innocuous_$ac_func
9835 /* System header to define __stub macros and hopefully few prototypes,
9836 which can conflict with char $ac_func (); below.
9837 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9838 <limits.h> exists even on freestanding compilers. */
9841 # include <limits.h>
9843 # include <assert.h>
9848 /* Override any gcc2 internal prototype to avoid an error. */
9853 /* We use char because int might match the return type of a gcc2
9854 builtin and then its argument prototype would still apply. */
9856 /* The GNU C library defines this for functions which it implements
9857 to always fail with ENOSYS. Some functions are actually named
9858 something starting with __ and the normal name is an alias. */
9859 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9862 char (*f) () = $ac_func;
9871 return f != $ac_func;
9876 rm -f conftest.
$ac_objext conftest
$ac_exeext
9877 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9878 (eval $ac_link) 2>conftest.er1
9880 grep -v '^ *+' conftest.er1
>conftest.err
9882 cat conftest.err
>&5
9883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9884 (exit $ac_status); } &&
9885 { ac_try
='test -z "$ac_c_werror_flag"
9886 || test ! -s conftest.err'
9887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9891 (exit $ac_status); }; } &&
9892 { ac_try
='test -s conftest$ac_exeext'
9893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9897 (exit $ac_status); }; }; then
9898 eval "$as_ac_var=yes"
9900 echo "$as_me: failed program was:" >&5
9901 sed 's/^/| /' conftest.
$ac_ext >&5
9903 eval "$as_ac_var=no"
9905 rm -f conftest.err conftest.
$ac_objext \
9906 conftest
$ac_exeext conftest.
$ac_ext
9908 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9909 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9910 if test `eval echo '${'$as_ac_var'}'` = yes; then
9911 cat >>confdefs.h
<<_ACEOF
9912 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9914 HAVE_GTK_MULTIDISPLAY
=yes
9918 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
9920 cat >>confdefs.h
<<\_ACEOF
9921 #define HAVE_GTK_MULTIDISPLAY 1
9925 HAVE_GTK_FILE_SELECTION
=no
9927 for ac_func
in gtk_file_selection_new
9929 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9930 echo "$as_me:$LINENO: checking for $ac_func" >&5
9931 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9932 if eval "test \"\${$as_ac_var+set}\" = set"; then
9933 echo $ECHO_N "(cached) $ECHO_C" >&6
9935 cat >conftest.
$ac_ext <<_ACEOF
9938 cat confdefs.h
>>conftest.
$ac_ext
9939 cat >>conftest.
$ac_ext <<_ACEOF
9940 /* end confdefs.h. */
9941 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9942 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9943 #define $ac_func innocuous_$ac_func
9945 /* System header to define __stub macros and hopefully few prototypes,
9946 which can conflict with char $ac_func (); below.
9947 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9948 <limits.h> exists even on freestanding compilers. */
9951 # include <limits.h>
9953 # include <assert.h>
9958 /* Override any gcc2 internal prototype to avoid an error. */
9963 /* We use char because int might match the return type of a gcc2
9964 builtin and then its argument prototype would still apply. */
9966 /* The GNU C library defines this for functions which it implements
9967 to always fail with ENOSYS. Some functions are actually named
9968 something starting with __ and the normal name is an alias. */
9969 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9972 char (*f) () = $ac_func;
9981 return f != $ac_func;
9986 rm -f conftest.
$ac_objext conftest
$ac_exeext
9987 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9988 (eval $ac_link) 2>conftest.er1
9990 grep -v '^ *+' conftest.er1
>conftest.err
9992 cat conftest.err
>&5
9993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9994 (exit $ac_status); } &&
9995 { ac_try
='test -z "$ac_c_werror_flag"
9996 || test ! -s conftest.err'
9997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10001 (exit $ac_status); }; } &&
10002 { ac_try
='test -s conftest$ac_exeext'
10003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10004 (eval $ac_try) 2>&5
10006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10007 (exit $ac_status); }; }; then
10008 eval "$as_ac_var=yes"
10010 echo "$as_me: failed program was:" >&5
10011 sed 's/^/| /' conftest.
$ac_ext >&5
10013 eval "$as_ac_var=no"
10015 rm -f conftest.err conftest.
$ac_objext \
10016 conftest
$ac_exeext conftest.
$ac_ext
10018 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10019 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10020 if test `eval echo '${'$as_ac_var'}'` = yes; then
10021 cat >>confdefs.h
<<_ACEOF
10022 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10024 HAVE_GTK_FILE_SELECTION
=yes
10029 HAVE_GTK_FILE_CHOOSER
=no
10031 for ac_func
in gtk_file_chooser_dialog_new
10033 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10034 echo "$as_me:$LINENO: checking for $ac_func" >&5
10035 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10036 if eval "test \"\${$as_ac_var+set}\" = set"; then
10037 echo $ECHO_N "(cached) $ECHO_C" >&6
10039 cat >conftest.
$ac_ext <<_ACEOF
10042 cat confdefs.h
>>conftest.
$ac_ext
10043 cat >>conftest.
$ac_ext <<_ACEOF
10044 /* end confdefs.h. */
10045 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10046 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10047 #define $ac_func innocuous_$ac_func
10049 /* System header to define __stub macros and hopefully few prototypes,
10050 which can conflict with char $ac_func (); below.
10051 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10052 <limits.h> exists even on freestanding compilers. */
10055 # include <limits.h>
10057 # include <assert.h>
10062 /* Override any gcc2 internal prototype to avoid an error. */
10067 /* We use char because int might match the return type of a gcc2
10068 builtin and then its argument prototype would still apply. */
10070 /* The GNU C library defines this for functions which it implements
10071 to always fail with ENOSYS. Some functions are actually named
10072 something starting with __ and the normal name is an alias. */
10073 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10076 char (*f) () = $ac_func;
10085 return f != $ac_func;
10090 rm -f conftest.
$ac_objext conftest
$ac_exeext
10091 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10092 (eval $ac_link) 2>conftest.er1
10094 grep -v '^ *+' conftest.er1
>conftest.err
10096 cat conftest.err
>&5
10097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10098 (exit $ac_status); } &&
10099 { ac_try
='test -z "$ac_c_werror_flag"
10100 || test ! -s conftest.err'
10101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10102 (eval $ac_try) 2>&5
10104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10105 (exit $ac_status); }; } &&
10106 { ac_try
='test -s conftest$ac_exeext'
10107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10108 (eval $ac_try) 2>&5
10110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10111 (exit $ac_status); }; }; then
10112 eval "$as_ac_var=yes"
10114 echo "$as_me: failed program was:" >&5
10115 sed 's/^/| /' conftest.
$ac_ext >&5
10117 eval "$as_ac_var=no"
10119 rm -f conftest.err conftest.
$ac_objext \
10120 conftest
$ac_exeext conftest.
$ac_ext
10122 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10123 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10124 if test `eval echo '${'$as_ac_var'}'` = yes; then
10125 cat >>confdefs.h
<<_ACEOF
10126 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10128 HAVE_GTK_FILE_CHOOSER
=yes
10133 if test "$HAVE_GTK_FILE_SELECTION" = yes \
10134 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
10136 cat >>confdefs.h
<<\_ACEOF
10137 #define HAVE_GTK_FILE_BOTH 1
10142 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
10143 HAVE_GTK_AND_PTHREAD
=no
10145 for ac_header
in pthread.h
10147 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10148 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10149 echo "$as_me:$LINENO: checking for $ac_header" >&5
10150 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10151 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10152 echo $ECHO_N "(cached) $ECHO_C" >&6
10154 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10155 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10157 # Is the header compilable?
10158 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10159 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10160 cat >conftest.
$ac_ext <<_ACEOF
10163 cat confdefs.h
>>conftest.
$ac_ext
10164 cat >>conftest.
$ac_ext <<_ACEOF
10165 /* end confdefs.h. */
10166 $ac_includes_default
10167 #include <$ac_header>
10169 rm -f conftest.
$ac_objext
10170 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10171 (eval $ac_compile) 2>conftest.er1
10173 grep -v '^ *+' conftest.er1
>conftest.err
10175 cat conftest.err
>&5
10176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10177 (exit $ac_status); } &&
10178 { ac_try
='test -z "$ac_c_werror_flag"
10179 || test ! -s conftest.err'
10180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10181 (eval $ac_try) 2>&5
10183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10184 (exit $ac_status); }; } &&
10185 { ac_try
='test -s conftest.$ac_objext'
10186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10187 (eval $ac_try) 2>&5
10189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10190 (exit $ac_status); }; }; then
10191 ac_header_compiler
=yes
10193 echo "$as_me: failed program was:" >&5
10194 sed 's/^/| /' conftest.
$ac_ext >&5
10196 ac_header_compiler
=no
10198 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10199 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10200 echo "${ECHO_T}$ac_header_compiler" >&6
10202 # Is the header present?
10203 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10204 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10205 cat >conftest.
$ac_ext <<_ACEOF
10208 cat confdefs.h
>>conftest.
$ac_ext
10209 cat >>conftest.
$ac_ext <<_ACEOF
10210 /* end confdefs.h. */
10211 #include <$ac_header>
10213 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10214 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
10216 grep -v '^ *+' conftest.er1
>conftest.err
10218 cat conftest.err
>&5
10219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10220 (exit $ac_status); } >/dev
/null
; then
10221 if test -s conftest.err
; then
10222 ac_cpp_err
=$ac_c_preproc_warn_flag
10223 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
10230 if test -z "$ac_cpp_err"; then
10231 ac_header_preproc
=yes
10233 echo "$as_me: failed program was:" >&5
10234 sed 's/^/| /' conftest.
$ac_ext >&5
10236 ac_header_preproc
=no
10238 rm -f conftest.err conftest.
$ac_ext
10239 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10240 echo "${ECHO_T}$ac_header_preproc" >&6
10242 # So? What about this header?
10243 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10245 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10246 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10247 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10248 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10249 ac_header_preproc
=yes
10252 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10253 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10254 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10255 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10256 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10257 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10258 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10259 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10260 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10261 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10262 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10263 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10266 ## ------------------------------------------ ##
10267 ## Report this to the AC_PACKAGE_NAME lists. ##
10268 ## ------------------------------------------ ##
10271 sed "s/^/$as_me: WARNING: /" >&2
10274 echo "$as_me:$LINENO: checking for $ac_header" >&5
10275 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10276 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10277 echo $ECHO_N "(cached) $ECHO_C" >&6
10279 eval "$as_ac_Header=\$ac_header_preproc"
10281 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10282 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10285 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10286 cat >>confdefs.h
<<_ACEOF
10287 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10294 if test "$ac_cv_header_pthread_h"; then
10295 echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
10296 echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6
10297 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
10298 echo $ECHO_N "(cached) $ECHO_C" >&6
10300 ac_check_lib_save_LIBS
=$LIBS
10301 LIBS
="-lpthread $LIBS"
10302 cat >conftest.
$ac_ext <<_ACEOF
10305 cat confdefs.h
>>conftest.
$ac_ext
10306 cat >>conftest.
$ac_ext <<_ACEOF
10307 /* end confdefs.h. */
10309 /* Override any gcc2 internal prototype to avoid an error. */
10313 /* We use char because int might match the return type of a gcc2
10314 builtin and then its argument prototype would still apply. */
10315 char pthread_self ();
10324 rm -f conftest.
$ac_objext conftest
$ac_exeext
10325 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10326 (eval $ac_link) 2>conftest.er1
10328 grep -v '^ *+' conftest.er1
>conftest.err
10330 cat conftest.err
>&5
10331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10332 (exit $ac_status); } &&
10333 { ac_try
='test -z "$ac_c_werror_flag"
10334 || test ! -s conftest.err'
10335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10336 (eval $ac_try) 2>&5
10338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10339 (exit $ac_status); }; } &&
10340 { ac_try
='test -s conftest$ac_exeext'
10341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10342 (eval $ac_try) 2>&5
10344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10345 (exit $ac_status); }; }; then
10346 ac_cv_lib_pthread_pthread_self
=yes
10348 echo "$as_me: failed program was:" >&5
10349 sed 's/^/| /' conftest.
$ac_ext >&5
10351 ac_cv_lib_pthread_pthread_self
=no
10353 rm -f conftest.err conftest.
$ac_objext \
10354 conftest
$ac_exeext conftest.
$ac_ext
10355 LIBS
=$ac_check_lib_save_LIBS
10357 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
10358 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6
10359 if test $ac_cv_lib_pthread_pthread_self = yes; then
10360 HAVE_GTK_AND_PTHREAD
=yes
10364 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
10365 GTK_LIBS
="$GTK_LIBS -lpthread"
10367 cat >>confdefs.h
<<\_ACEOF
10368 #define HAVE_GTK_AND_PTHREAD 1
10375 if test x
"${USE_X_TOOLKIT}" = xmaybe
; then
10376 if test x
"${HAVE_X11R5}" = xyes
; then
10377 echo "$as_me:$LINENO: checking X11 version 5 with Xaw" >&5
10378 echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6
10379 if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then
10380 echo $ECHO_N "(cached) $ECHO_C" >&6
10382 cat >conftest.
$ac_ext <<_ACEOF
10385 cat confdefs.h
>>conftest.
$ac_ext
10386 cat >>conftest.
$ac_ext <<_ACEOF
10387 /* end confdefs.h. */
10389 #include <X11/Intrinsic.h>
10390 #include <X11/Xaw/Simple.h>
10399 rm -f conftest.
$ac_objext conftest
$ac_exeext
10400 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10401 (eval $ac_link) 2>conftest.er1
10403 grep -v '^ *+' conftest.er1
>conftest.err
10405 cat conftest.err
>&5
10406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10407 (exit $ac_status); } &&
10408 { ac_try
='test -z "$ac_c_werror_flag"
10409 || test ! -s conftest.err'
10410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10411 (eval $ac_try) 2>&5
10413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10414 (exit $ac_status); }; } &&
10415 { ac_try
='test -s conftest$ac_exeext'
10416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10417 (eval $ac_try) 2>&5
10419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10420 (exit $ac_status); }; }; then
10421 emacs_cv_x11_version_5_with_xaw
=yes
10423 echo "$as_me: failed program was:" >&5
10424 sed 's/^/| /' conftest.
$ac_ext >&5
10426 emacs_cv_x11_version_5_with_xaw
=no
10428 rm -f conftest.err conftest.
$ac_objext \
10429 conftest
$ac_exeext conftest.
$ac_ext
10432 if test $emacs_cv_x11_version_5_with_xaw = yes; then
10433 echo "$as_me:$LINENO: result: 5 or newer, with Xaw; use toolkit by default" >&5
10434 echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6
10435 USE_X_TOOLKIT
=LUCID
10437 echo "$as_me:$LINENO: result: before 5 or no Xaw; do not use toolkit by default" >&5
10438 echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6
10446 X_TOOLKIT_TYPE
=$USE_X_TOOLKIT
10448 if test "${USE_X_TOOLKIT}" != "none"; then
10449 echo "$as_me:$LINENO: checking X11 toolkit version" >&5
10450 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6
10451 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
10452 echo $ECHO_N "(cached) $ECHO_C" >&6
10454 cat >conftest.
$ac_ext <<_ACEOF
10457 cat confdefs.h
>>conftest.
$ac_ext
10458 cat >>conftest.
$ac_ext <<_ACEOF
10459 /* end confdefs.h. */
10460 #include <X11/Intrinsic.h>
10464 #if XtSpecificationRelease < 6
10472 rm -f conftest.
$ac_objext conftest
$ac_exeext
10473 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10474 (eval $ac_link) 2>conftest.er1
10476 grep -v '^ *+' conftest.er1
>conftest.err
10478 cat conftest.err
>&5
10479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10480 (exit $ac_status); } &&
10481 { ac_try
='test -z "$ac_c_werror_flag"
10482 || test ! -s conftest.err'
10483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10484 (eval $ac_try) 2>&5
10486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10487 (exit $ac_status); }; } &&
10488 { ac_try
='test -s conftest$ac_exeext'
10489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10490 (eval $ac_try) 2>&5
10492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10493 (exit $ac_status); }; }; then
10494 emacs_cv_x11_toolkit_version_6
=yes
10496 echo "$as_me: failed program was:" >&5
10497 sed 's/^/| /' conftest.
$ac_ext >&5
10499 emacs_cv_x11_toolkit_version_6
=no
10501 rm -f conftest.err conftest.
$ac_objext \
10502 conftest
$ac_exeext conftest.
$ac_ext
10505 HAVE_X11XTR6
=$emacs_cv_x11_toolkit_version_6
10506 if test $emacs_cv_x11_toolkit_version_6 = yes; then
10507 echo "$as_me:$LINENO: result: 6 or newer" >&5
10508 echo "${ECHO_T}6 or newer" >&6
10510 cat >>confdefs.h
<<\_ACEOF
10511 #define HAVE_X11XTR6 1
10515 echo "$as_me:$LINENO: result: before 6" >&5
10516 echo "${ECHO_T}before 6" >&6
10520 if test x
$HAVE_X11XTR6 = xyes
; then
10521 LIBS
="-lXt -lSM -lICE $LIBS"
10526 echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
10527 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6
10528 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
10529 echo $ECHO_N "(cached) $ECHO_C" >&6
10531 ac_check_lib_save_LIBS
=$LIBS
10533 cat >conftest.
$ac_ext <<_ACEOF
10536 cat confdefs.h
>>conftest.
$ac_ext
10537 cat >>conftest.
$ac_ext <<_ACEOF
10538 /* end confdefs.h. */
10540 /* Override any gcc2 internal prototype to avoid an error. */
10544 /* We use char because int might match the return type of a gcc2
10545 builtin and then its argument prototype would still apply. */
10546 char XmuConvertStandardSelection ();
10550 XmuConvertStandardSelection ();
10555 rm -f conftest.
$ac_objext conftest
$ac_exeext
10556 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10557 (eval $ac_link) 2>conftest.er1
10559 grep -v '^ *+' conftest.er1
>conftest.err
10561 cat conftest.err
>&5
10562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10563 (exit $ac_status); } &&
10564 { ac_try
='test -z "$ac_c_werror_flag"
10565 || test ! -s conftest.err'
10566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10567 (eval $ac_try) 2>&5
10569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10570 (exit $ac_status); }; } &&
10571 { ac_try
='test -s conftest$ac_exeext'
10572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10573 (eval $ac_try) 2>&5
10575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10576 (exit $ac_status); }; }; then
10577 ac_cv_lib_Xmu_XmuConvertStandardSelection
=yes
10579 echo "$as_me: failed program was:" >&5
10580 sed 's/^/| /' conftest.
$ac_ext >&5
10582 ac_cv_lib_Xmu_XmuConvertStandardSelection
=no
10584 rm -f conftest.err conftest.
$ac_objext \
10585 conftest
$ac_exeext conftest.
$ac_ext
10586 LIBS
=$ac_check_lib_save_LIBS
10588 echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
10589 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6
10590 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
10591 cat >>confdefs.h
<<_ACEOF
10592 #define HAVE_LIBXMU 1
10599 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no
&& LIBS
="$OLDLIBS"
10602 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
10603 if test "${HAVE_X11}" = "yes"; then
10604 if test "${USE_X_TOOLKIT}" != "none"; then
10606 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
10607 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
10608 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
10609 echo $ECHO_N "(cached) $ECHO_C" >&6
10611 ac_check_lib_save_LIBS
=$LIBS
10612 LIBS
="-lXext $LIBS"
10613 cat >conftest.
$ac_ext <<_ACEOF
10616 cat confdefs.h
>>conftest.
$ac_ext
10617 cat >>conftest.
$ac_ext <<_ACEOF
10618 /* end confdefs.h. */
10620 /* Override any gcc2 internal prototype to avoid an error. */
10624 /* We use char because int might match the return type of a gcc2
10625 builtin and then its argument prototype would still apply. */
10626 char XShapeQueryExtension ();
10630 XShapeQueryExtension ();
10635 rm -f conftest.
$ac_objext conftest
$ac_exeext
10636 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10637 (eval $ac_link) 2>conftest.er1
10639 grep -v '^ *+' conftest.er1
>conftest.err
10641 cat conftest.err
>&5
10642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10643 (exit $ac_status); } &&
10644 { ac_try
='test -z "$ac_c_werror_flag"
10645 || test ! -s conftest.err'
10646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10647 (eval $ac_try) 2>&5
10649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10650 (exit $ac_status); }; } &&
10651 { ac_try
='test -s conftest$ac_exeext'
10652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10653 (eval $ac_try) 2>&5
10655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10656 (exit $ac_status); }; }; then
10657 ac_cv_lib_Xext_XShapeQueryExtension
=yes
10659 echo "$as_me: failed program was:" >&5
10660 sed 's/^/| /' conftest.
$ac_ext >&5
10662 ac_cv_lib_Xext_XShapeQueryExtension
=no
10664 rm -f conftest.err conftest.
$ac_objext \
10665 conftest
$ac_exeext conftest.
$ac_ext
10666 LIBS
=$ac_check_lib_save_LIBS
10668 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
10669 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
10670 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
10671 cat >>confdefs.h
<<_ACEOF
10672 #define HAVE_LIBXEXT 1
10675 LIBS
="-lXext $LIBS"
10682 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
10683 echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
10684 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6
10685 if test "${emacs_cv_lesstif+set}" = set; then
10686 echo $ECHO_N "(cached) $ECHO_C" >&6
10688 # We put this in CFLAGS temporarily to precede other -I options
10689 # that might be in CFLAGS temporarily.
10690 # We put this in CPPFLAGS where it precedes the other -I options.
10691 OLD_CPPFLAGS
=$CPPFLAGS
10693 CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
10694 CFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
10695 cat >conftest.
$ac_ext <<_ACEOF
10698 cat confdefs.h
>>conftest.
$ac_ext
10699 cat >>conftest.
$ac_ext <<_ACEOF
10700 /* end confdefs.h. */
10701 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
10710 rm -f conftest.
$ac_objext
10711 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10712 (eval $ac_compile) 2>conftest.er1
10714 grep -v '^ *+' conftest.er1
>conftest.err
10716 cat conftest.err
>&5
10717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10718 (exit $ac_status); } &&
10719 { ac_try
='test -z "$ac_c_werror_flag"
10720 || test ! -s conftest.err'
10721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10722 (eval $ac_try) 2>&5
10724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10725 (exit $ac_status); }; } &&
10726 { ac_try
='test -s conftest.$ac_objext'
10727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10728 (eval $ac_try) 2>&5
10730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10731 (exit $ac_status); }; }; then
10732 emacs_cv_lesstif
=yes
10734 echo "$as_me: failed program was:" >&5
10735 sed 's/^/| /' conftest.
$ac_ext >&5
10737 emacs_cv_lesstif
=no
10739 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10741 echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
10742 echo "${ECHO_T}$emacs_cv_lesstif" >&6
10743 if test $emacs_cv_lesstif = yes; then
10744 # Make sure this -I option remains in CPPFLAGS after it is set
10745 # back to REAL_CPPFLAGS.
10746 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
10747 # have those other -I options anyway. Ultimately, having this
10748 # directory ultimately in CPPFLAGS will be enough.
10749 REAL_CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
10750 LDFLAGS
="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
10753 CPPFLAGS
=$OLD_CPPFLAGS
10755 echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
10756 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6
10757 if test "${emacs_cv_motif_version_2_1+set}" = set; then
10758 echo $ECHO_N "(cached) $ECHO_C" >&6
10760 cat >conftest.
$ac_ext <<_ACEOF
10763 cat confdefs.h
>>conftest.
$ac_ext
10764 cat >>conftest.
$ac_ext <<_ACEOF
10765 /* end confdefs.h. */
10770 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
10773 Motif version prior to 2.1.
10779 rm -f conftest.
$ac_objext
10780 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10781 (eval $ac_compile) 2>conftest.er1
10783 grep -v '^ *+' conftest.er1
>conftest.err
10785 cat conftest.err
>&5
10786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10787 (exit $ac_status); } &&
10788 { ac_try
='test -z "$ac_c_werror_flag"
10789 || test ! -s conftest.err'
10790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10791 (eval $ac_try) 2>&5
10793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10794 (exit $ac_status); }; } &&
10795 { ac_try
='test -s conftest.$ac_objext'
10796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10797 (eval $ac_try) 2>&5
10799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10800 (exit $ac_status); }; }; then
10801 emacs_cv_motif_version_2_1
=yes
10803 echo "$as_me: failed program was:" >&5
10804 sed 's/^/| /' conftest.
$ac_ext >&5
10806 emacs_cv_motif_version_2_1
=no
10808 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10810 echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
10811 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6
10812 HAVE_MOTIF_2_1
=$emacs_cv_motif_version_2_1
10813 if test $emacs_cv_motif_version_2_1 = yes; then
10816 cat >>confdefs.h
<<\_ACEOF
10817 #define HAVE_MOTIF_2_1 1
10820 echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
10821 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6
10822 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
10823 echo $ECHO_N "(cached) $ECHO_C" >&6
10825 ac_check_lib_save_LIBS
=$LIBS
10827 cat >conftest.
$ac_ext <<_ACEOF
10830 cat confdefs.h
>>conftest.
$ac_ext
10831 cat >>conftest.
$ac_ext <<_ACEOF
10832 /* end confdefs.h. */
10834 /* Override any gcc2 internal prototype to avoid an error. */
10838 /* We use char because int might match the return type of a gcc2
10839 builtin and then its argument prototype would still apply. */
10840 char XpCreateContext ();
10844 XpCreateContext ();
10849 rm -f conftest.
$ac_objext conftest
$ac_exeext
10850 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10851 (eval $ac_link) 2>conftest.er1
10853 grep -v '^ *+' conftest.er1
>conftest.err
10855 cat conftest.err
>&5
10856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10857 (exit $ac_status); } &&
10858 { ac_try
='test -z "$ac_c_werror_flag"
10859 || test ! -s conftest.err'
10860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10861 (eval $ac_try) 2>&5
10863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10864 (exit $ac_status); }; } &&
10865 { ac_try
='test -s conftest$ac_exeext'
10866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10867 (eval $ac_try) 2>&5
10869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10870 (exit $ac_status); }; }; then
10871 ac_cv_lib_Xp_XpCreateContext
=yes
10873 echo "$as_me: failed program was:" >&5
10874 sed 's/^/| /' conftest.
$ac_ext >&5
10876 ac_cv_lib_Xp_XpCreateContext
=no
10878 rm -f conftest.err conftest.
$ac_objext \
10879 conftest
$ac_exeext conftest.
$ac_ext
10880 LIBS
=$ac_check_lib_save_LIBS
10882 echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
10883 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6
10884 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
10888 if test ${HAVE_LIBXP} = yes; then
10890 cat >>confdefs.h
<<\_ACEOF
10891 #define HAVE_LIBXP 1
10898 ### Is -lXaw3d available?
10900 if test "${HAVE_X11}" = "yes"; then
10901 if test "${USE_X_TOOLKIT}" != "none"; then
10902 echo "$as_me:$LINENO: checking for X11/Xaw3d/Scrollbar.h" >&5
10903 echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6
10904 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
10905 echo $ECHO_N "(cached) $ECHO_C" >&6
10907 cat >conftest.
$ac_ext <<_ACEOF
10910 cat confdefs.h
>>conftest.
$ac_ext
10911 cat >>conftest.
$ac_ext <<_ACEOF
10912 /* end confdefs.h. */
10913 #include <X11/Xaw3d/Scrollbar.h>
10915 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10916 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
10918 grep -v '^ *+' conftest.er1
>conftest.err
10920 cat conftest.err
>&5
10921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10922 (exit $ac_status); } >/dev
/null
; then
10923 if test -s conftest.err
; then
10924 ac_cpp_err
=$ac_c_preproc_warn_flag
10925 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
10932 if test -z "$ac_cpp_err"; then
10933 ac_cv_header_X11_Xaw3d_Scrollbar_h
=yes
10935 echo "$as_me: failed program was:" >&5
10936 sed 's/^/| /' conftest.
$ac_ext >&5
10938 ac_cv_header_X11_Xaw3d_Scrollbar_h
=no
10940 rm -f conftest.err conftest.
$ac_ext
10942 echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
10943 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6
10944 if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then
10945 echo "$as_me:$LINENO: checking for XawScrollbarSetThumb in -lXaw3d" >&5
10946 echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6
10947 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then
10948 echo $ECHO_N "(cached) $ECHO_C" >&6
10950 ac_check_lib_save_LIBS
=$LIBS
10951 LIBS
="-lXaw3d $LIBS"
10952 cat >conftest.
$ac_ext <<_ACEOF
10955 cat confdefs.h
>>conftest.
$ac_ext
10956 cat >>conftest.
$ac_ext <<_ACEOF
10957 /* end confdefs.h. */
10959 /* Override any gcc2 internal prototype to avoid an error. */
10963 /* We use char because int might match the return type of a gcc2
10964 builtin and then its argument prototype would still apply. */
10965 char XawScrollbarSetThumb ();
10969 XawScrollbarSetThumb ();
10974 rm -f conftest.
$ac_objext conftest
$ac_exeext
10975 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10976 (eval $ac_link) 2>conftest.er1
10978 grep -v '^ *+' conftest.er1
>conftest.err
10980 cat conftest.err
>&5
10981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10982 (exit $ac_status); } &&
10983 { ac_try
='test -z "$ac_c_werror_flag"
10984 || test ! -s conftest.err'
10985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10986 (eval $ac_try) 2>&5
10988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10989 (exit $ac_status); }; } &&
10990 { ac_try
='test -s conftest$ac_exeext'
10991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10992 (eval $ac_try) 2>&5
10994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10995 (exit $ac_status); }; }; then
10996 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=yes
10998 echo "$as_me: failed program was:" >&5
10999 sed 's/^/| /' conftest.
$ac_ext >&5
11001 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=no
11003 rm -f conftest.err conftest.
$ac_objext \
11004 conftest
$ac_exeext conftest.
$ac_ext
11005 LIBS
=$ac_check_lib_save_LIBS
11007 echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
11008 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6
11009 if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then
11016 if test "${HAVE_XAW3D}" = "yes"; then
11018 cat >>confdefs.h
<<\_ACEOF
11019 #define HAVE_XAW3D 1
11028 USE_TOOLKIT_SCROLL_BARS
=no
11029 if test "${with_toolkit_scroll_bars}" != "no"; then
11030 if test "${USE_X_TOOLKIT}" != "none"; then
11031 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11032 cat >>confdefs.h
<<\_ACEOF
11033 #define USE_TOOLKIT_SCROLL_BARS 1
11037 USE_TOOLKIT_SCROLL_BARS
=yes
11038 elif test "${HAVE_XAW3D}" = "yes"; then
11039 cat >>confdefs.h
<<\_ACEOF
11040 #define USE_TOOLKIT_SCROLL_BARS 1
11043 USE_TOOLKIT_SCROLL_BARS
=yes
11045 elif test "${HAVE_GTK}" = "yes"; then
11046 cat >>confdefs.h
<<\_ACEOF
11047 #define USE_TOOLKIT_SCROLL_BARS 1
11050 USE_TOOLKIT_SCROLL_BARS
=yes
11054 cat >conftest.
$ac_ext <<_ACEOF
11057 cat confdefs.h
>>conftest.
$ac_ext
11058 cat >>conftest.
$ac_ext <<_ACEOF
11059 /* end confdefs.h. */
11061 #include <X11/Xlib.h>
11062 #include <X11/Xresource.h>
11071 rm -f conftest.
$ac_objext
11072 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11073 (eval $ac_compile) 2>conftest.er1
11075 grep -v '^ *+' conftest.er1
>conftest.err
11077 cat conftest.err
>&5
11078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11079 (exit $ac_status); } &&
11080 { ac_try
='test -z "$ac_c_werror_flag"
11081 || test ! -s conftest.err'
11082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11083 (eval $ac_try) 2>&5
11085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11086 (exit $ac_status); }; } &&
11087 { ac_try
='test -s conftest.$ac_objext'
11088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11089 (eval $ac_try) 2>&5
11091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11092 (exit $ac_status); }; }; then
11095 cat >>confdefs.h
<<\_ACEOF
11100 echo "$as_me: failed program was:" >&5
11101 sed 's/^/| /' conftest.
$ac_ext >&5
11105 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11108 if test "${with_xim}" != "no"; then
11110 cat >>confdefs.h
<<\_ACEOF
11117 if test "${HAVE_XIM}" != "no"; then
11118 late_CFLAGS
=$CFLAGS
11119 if test "$GCC" = yes; then
11120 CFLAGS
="$CFLAGS --pedantic-errors"
11122 cat >conftest.
$ac_ext <<_ACEOF
11125 cat confdefs.h
>>conftest.
$ac_ext
11126 cat >>conftest.
$ac_ext <<_ACEOF
11127 /* end confdefs.h. */
11129 #include <X11/Xlib.h>
11130 #include <X11/Xresource.h>
11139 XPointer *client_data;
11141 /* If we're not using GCC, it's probably not XFree86, and this is
11142 probably right, but we can't use something like --pedantic-errors. */
11143 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
11144 char*, XIMProc, XPointer*);
11146 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
11152 rm -f conftest.
$ac_objext
11153 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11154 (eval $ac_compile) 2>conftest.er1
11156 grep -v '^ *+' conftest.er1
>conftest.err
11158 cat conftest.err
>&5
11159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11160 (exit $ac_status); } &&
11161 { ac_try
='test -z "$ac_c_werror_flag"
11162 || test ! -s conftest.err'
11163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11164 (eval $ac_try) 2>&5
11166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11167 (exit $ac_status); }; } &&
11168 { ac_try
='test -s conftest.$ac_objext'
11169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11170 (eval $ac_try) 2>&5
11172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11173 (exit $ac_status); }; }; then
11174 emacs_cv_arg6_star
=yes
11176 echo "$as_me: failed program was:" >&5
11177 sed 's/^/| /' conftest.
$ac_ext >&5
11180 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11182 if test "$emacs_cv_arg6_star" = yes; then
11183 cat >>confdefs.h
<<\_ACEOF
11184 #define XRegisterIMInstantiateCallback_arg6 XPointer*
11188 cat >>confdefs.h
<<\_ACEOF
11189 #define XRegisterIMInstantiateCallback_arg6 XPointer
11193 CFLAGS
=$late_CFLAGS
11196 ### Use -lXpm if available, unless `--with-xpm=no'.
11198 if test "${HAVE_X11}" = "yes"; then
11199 if test "${with_xpm}" != "no"; then
11200 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
11201 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
11202 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
11203 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
11204 echo $ECHO_N "(cached) $ECHO_C" >&6
11206 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
11207 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
11209 # Is the header compilable?
11210 echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
11211 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6
11212 cat >conftest.
$ac_ext <<_ACEOF
11215 cat confdefs.h
>>conftest.
$ac_ext
11216 cat >>conftest.
$ac_ext <<_ACEOF
11217 /* end confdefs.h. */
11218 $ac_includes_default
11219 #include <X11/xpm.h>
11221 rm -f conftest.
$ac_objext
11222 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11223 (eval $ac_compile) 2>conftest.er1
11225 grep -v '^ *+' conftest.er1
>conftest.err
11227 cat conftest.err
>&5
11228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11229 (exit $ac_status); } &&
11230 { ac_try
='test -z "$ac_c_werror_flag"
11231 || test ! -s conftest.err'
11232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11233 (eval $ac_try) 2>&5
11235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11236 (exit $ac_status); }; } &&
11237 { ac_try
='test -s conftest.$ac_objext'
11238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11239 (eval $ac_try) 2>&5
11241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11242 (exit $ac_status); }; }; then
11243 ac_header_compiler
=yes
11245 echo "$as_me: failed program was:" >&5
11246 sed 's/^/| /' conftest.
$ac_ext >&5
11248 ac_header_compiler
=no
11250 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11251 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11252 echo "${ECHO_T}$ac_header_compiler" >&6
11254 # Is the header present?
11255 echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
11256 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6
11257 cat >conftest.
$ac_ext <<_ACEOF
11260 cat confdefs.h
>>conftest.
$ac_ext
11261 cat >>conftest.
$ac_ext <<_ACEOF
11262 /* end confdefs.h. */
11263 #include <X11/xpm.h>
11265 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11266 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11268 grep -v '^ *+' conftest.er1
>conftest.err
11270 cat conftest.err
>&5
11271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11272 (exit $ac_status); } >/dev
/null
; then
11273 if test -s conftest.err
; then
11274 ac_cpp_err
=$ac_c_preproc_warn_flag
11275 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
11282 if test -z "$ac_cpp_err"; then
11283 ac_header_preproc
=yes
11285 echo "$as_me: failed program was:" >&5
11286 sed 's/^/| /' conftest.
$ac_ext >&5
11288 ac_header_preproc
=no
11290 rm -f conftest.err conftest.
$ac_ext
11291 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11292 echo "${ECHO_T}$ac_header_preproc" >&6
11294 # So? What about this header?
11295 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11297 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
11298 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11299 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
11300 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
11301 ac_header_preproc
=yes
11304 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
11305 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
11306 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
11307 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
11308 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
11309 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
11310 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
11311 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
11312 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
11313 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
11314 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
11315 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
11318 ## ------------------------------------------ ##
11319 ## Report this to the AC_PACKAGE_NAME lists. ##
11320 ## ------------------------------------------ ##
11323 sed "s/^/$as_me: WARNING: /" >&2
11326 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
11327 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
11328 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
11329 echo $ECHO_N "(cached) $ECHO_C" >&6
11331 ac_cv_header_X11_xpm_h
=$ac_header_preproc
11333 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
11334 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
11337 if test $ac_cv_header_X11_xpm_h = yes; then
11338 echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
11339 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6
11340 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
11341 echo $ECHO_N "(cached) $ECHO_C" >&6
11343 ac_check_lib_save_LIBS
=$LIBS
11344 LIBS
="-lXpm -lX11 $LIBS"
11345 cat >conftest.
$ac_ext <<_ACEOF
11348 cat confdefs.h
>>conftest.
$ac_ext
11349 cat >>conftest.
$ac_ext <<_ACEOF
11350 /* end confdefs.h. */
11352 /* Override any gcc2 internal prototype to avoid an error. */
11356 /* We use char because int might match the return type of a gcc2
11357 builtin and then its argument prototype would still apply. */
11358 char XpmReadFileToPixmap ();
11362 XpmReadFileToPixmap ();
11367 rm -f conftest.
$ac_objext conftest
$ac_exeext
11368 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11369 (eval $ac_link) 2>conftest.er1
11371 grep -v '^ *+' conftest.er1
>conftest.err
11373 cat conftest.err
>&5
11374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11375 (exit $ac_status); } &&
11376 { ac_try
='test -z "$ac_c_werror_flag"
11377 || test ! -s conftest.err'
11378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11379 (eval $ac_try) 2>&5
11381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11382 (exit $ac_status); }; } &&
11383 { ac_try
='test -s conftest$ac_exeext'
11384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11385 (eval $ac_try) 2>&5
11387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11388 (exit $ac_status); }; }; then
11389 ac_cv_lib_Xpm_XpmReadFileToPixmap
=yes
11391 echo "$as_me: failed program was:" >&5
11392 sed 's/^/| /' conftest.
$ac_ext >&5
11394 ac_cv_lib_Xpm_XpmReadFileToPixmap
=no
11396 rm -f conftest.err conftest.
$ac_objext \
11397 conftest
$ac_exeext conftest.
$ac_ext
11398 LIBS
=$ac_check_lib_save_LIBS
11400 echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
11401 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6
11402 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
11409 if test "${HAVE_XPM}" = "yes"; then
11410 echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
11411 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6
11412 cat >conftest.
$ac_ext <<_ACEOF
11415 cat confdefs.h
>>conftest.
$ac_ext
11416 cat >>conftest.
$ac_ext <<_ACEOF
11417 /* end confdefs.h. */
11418 #include "X11/xpm.h"
11419 #ifndef XpmReturnAllocPixels
11420 no_return_alloc_pixels
11424 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11425 $EGREP "no_return_alloc_pixels" >/dev
/null
2>&1; then
11433 if test "${HAVE_XPM}" = "yes"; then
11434 echo "$as_me:$LINENO: result: yes" >&5
11435 echo "${ECHO_T}yes" >&6
11437 echo "$as_me:$LINENO: result: no" >&5
11438 echo "${ECHO_T}no" >&6
11443 if test "${HAVE_XPM}" = "yes"; then
11445 cat >>confdefs.h
<<\_ACEOF
11452 ### Use -ljpeg if available, unless `--with-jpeg=no'.
11454 if test "${HAVE_X11}" = "yes"; then
11455 if test "${with_jpeg}" != "no"; then
11456 if test "${ac_cv_header_jerror_h+set}" = set; then
11457 echo "$as_me:$LINENO: checking for jerror.h" >&5
11458 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
11459 if test "${ac_cv_header_jerror_h+set}" = set; then
11460 echo $ECHO_N "(cached) $ECHO_C" >&6
11462 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
11463 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
11465 # Is the header compilable?
11466 echo "$as_me:$LINENO: checking jerror.h usability" >&5
11467 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6
11468 cat >conftest.
$ac_ext <<_ACEOF
11471 cat confdefs.h
>>conftest.
$ac_ext
11472 cat >>conftest.
$ac_ext <<_ACEOF
11473 /* end confdefs.h. */
11474 $ac_includes_default
11475 #include <jerror.h>
11477 rm -f conftest.
$ac_objext
11478 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11479 (eval $ac_compile) 2>conftest.er1
11481 grep -v '^ *+' conftest.er1
>conftest.err
11483 cat conftest.err
>&5
11484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11485 (exit $ac_status); } &&
11486 { ac_try
='test -z "$ac_c_werror_flag"
11487 || test ! -s conftest.err'
11488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11489 (eval $ac_try) 2>&5
11491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11492 (exit $ac_status); }; } &&
11493 { ac_try
='test -s conftest.$ac_objext'
11494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11495 (eval $ac_try) 2>&5
11497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11498 (exit $ac_status); }; }; then
11499 ac_header_compiler
=yes
11501 echo "$as_me: failed program was:" >&5
11502 sed 's/^/| /' conftest.
$ac_ext >&5
11504 ac_header_compiler
=no
11506 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11507 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11508 echo "${ECHO_T}$ac_header_compiler" >&6
11510 # Is the header present?
11511 echo "$as_me:$LINENO: checking jerror.h presence" >&5
11512 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6
11513 cat >conftest.
$ac_ext <<_ACEOF
11516 cat confdefs.h
>>conftest.
$ac_ext
11517 cat >>conftest.
$ac_ext <<_ACEOF
11518 /* end confdefs.h. */
11519 #include <jerror.h>
11521 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11522 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11524 grep -v '^ *+' conftest.er1
>conftest.err
11526 cat conftest.err
>&5
11527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11528 (exit $ac_status); } >/dev
/null
; then
11529 if test -s conftest.err
; then
11530 ac_cpp_err
=$ac_c_preproc_warn_flag
11531 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
11538 if test -z "$ac_cpp_err"; then
11539 ac_header_preproc
=yes
11541 echo "$as_me: failed program was:" >&5
11542 sed 's/^/| /' conftest.
$ac_ext >&5
11544 ac_header_preproc
=no
11546 rm -f conftest.err conftest.
$ac_ext
11547 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11548 echo "${ECHO_T}$ac_header_preproc" >&6
11550 # So? What about this header?
11551 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11553 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
11554 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11555 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
11556 echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
11557 ac_header_preproc
=yes
11560 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
11561 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
11562 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
11563 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
11564 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
11565 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
11566 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
11567 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
11568 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
11569 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
11570 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
11571 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
11574 ## ------------------------------------------ ##
11575 ## Report this to the AC_PACKAGE_NAME lists. ##
11576 ## ------------------------------------------ ##
11579 sed "s/^/$as_me: WARNING: /" >&2
11582 echo "$as_me:$LINENO: checking for jerror.h" >&5
11583 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
11584 if test "${ac_cv_header_jerror_h+set}" = set; then
11585 echo $ECHO_N "(cached) $ECHO_C" >&6
11587 ac_cv_header_jerror_h
=$ac_header_preproc
11589 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
11590 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
11593 if test $ac_cv_header_jerror_h = yes; then
11594 echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
11595 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6
11596 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
11597 echo $ECHO_N "(cached) $ECHO_C" >&6
11599 ac_check_lib_save_LIBS
=$LIBS
11600 LIBS
="-ljpeg $LIBS"
11601 cat >conftest.
$ac_ext <<_ACEOF
11604 cat confdefs.h
>>conftest.
$ac_ext
11605 cat >>conftest.
$ac_ext <<_ACEOF
11606 /* end confdefs.h. */
11608 /* Override any gcc2 internal prototype to avoid an error. */
11612 /* We use char because int might match the return type of a gcc2
11613 builtin and then its argument prototype would still apply. */
11614 char jpeg_destroy_compress ();
11618 jpeg_destroy_compress ();
11623 rm -f conftest.
$ac_objext conftest
$ac_exeext
11624 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11625 (eval $ac_link) 2>conftest.er1
11627 grep -v '^ *+' conftest.er1
>conftest.err
11629 cat conftest.err
>&5
11630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11631 (exit $ac_status); } &&
11632 { ac_try
='test -z "$ac_c_werror_flag"
11633 || test ! -s conftest.err'
11634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11635 (eval $ac_try) 2>&5
11637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11638 (exit $ac_status); }; } &&
11639 { ac_try
='test -s conftest$ac_exeext'
11640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11641 (eval $ac_try) 2>&5
11643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11644 (exit $ac_status); }; }; then
11645 ac_cv_lib_jpeg_jpeg_destroy_compress
=yes
11647 echo "$as_me: failed program was:" >&5
11648 sed 's/^/| /' conftest.
$ac_ext >&5
11650 ac_cv_lib_jpeg_jpeg_destroy_compress
=no
11652 rm -f conftest.err conftest.
$ac_objext \
11653 conftest
$ac_exeext conftest.
$ac_ext
11654 LIBS
=$ac_check_lib_save_LIBS
11656 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
11657 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6
11658 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
11668 if test "${HAVE_JPEG}" = "yes"; then
11669 cat >>confdefs.h
<<\_ACEOF
11670 #define HAVE_JPEG 1
11673 cat >conftest.
$ac_ext <<_ACEOF
11676 cat confdefs.h
>>conftest.
$ac_ext
11677 cat >>conftest.
$ac_ext <<_ACEOF
11678 /* end confdefs.h. */
11679 #include <jpeglib.h>
11680 version=JPEG_LIB_VERSION
11683 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11684 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev
/null
2>&1; then
11685 cat >>confdefs.h
<<\_ACEOF
11686 #define HAVE_JPEG 1
11690 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
11691 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
11699 ### Use -lpng if available, unless `--with-png=no'.
11701 if test "${HAVE_X11}" = "yes"; then
11702 if test "${with_png}" != "no"; then
11703 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
11704 # in /usr/include/libpng.
11707 for ac_header
in png.h libpng
/png.h
11709 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11710 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11711 echo "$as_me:$LINENO: checking for $ac_header" >&5
11712 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11713 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11714 echo $ECHO_N "(cached) $ECHO_C" >&6
11716 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11717 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11719 # Is the header compilable?
11720 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11721 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11722 cat >conftest.
$ac_ext <<_ACEOF
11725 cat confdefs.h
>>conftest.
$ac_ext
11726 cat >>conftest.
$ac_ext <<_ACEOF
11727 /* end confdefs.h. */
11728 $ac_includes_default
11729 #include <$ac_header>
11731 rm -f conftest.
$ac_objext
11732 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11733 (eval $ac_compile) 2>conftest.er1
11735 grep -v '^ *+' conftest.er1
>conftest.err
11737 cat conftest.err
>&5
11738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11739 (exit $ac_status); } &&
11740 { ac_try
='test -z "$ac_c_werror_flag"
11741 || test ! -s conftest.err'
11742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11743 (eval $ac_try) 2>&5
11745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11746 (exit $ac_status); }; } &&
11747 { ac_try
='test -s conftest.$ac_objext'
11748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11749 (eval $ac_try) 2>&5
11751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11752 (exit $ac_status); }; }; then
11753 ac_header_compiler
=yes
11755 echo "$as_me: failed program was:" >&5
11756 sed 's/^/| /' conftest.
$ac_ext >&5
11758 ac_header_compiler
=no
11760 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11761 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11762 echo "${ECHO_T}$ac_header_compiler" >&6
11764 # Is the header present?
11765 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11766 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11767 cat >conftest.
$ac_ext <<_ACEOF
11770 cat confdefs.h
>>conftest.
$ac_ext
11771 cat >>conftest.
$ac_ext <<_ACEOF
11772 /* end confdefs.h. */
11773 #include <$ac_header>
11775 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11776 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11778 grep -v '^ *+' conftest.er1
>conftest.err
11780 cat conftest.err
>&5
11781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11782 (exit $ac_status); } >/dev
/null
; then
11783 if test -s conftest.err
; then
11784 ac_cpp_err
=$ac_c_preproc_warn_flag
11785 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
11792 if test -z "$ac_cpp_err"; then
11793 ac_header_preproc
=yes
11795 echo "$as_me: failed program was:" >&5
11796 sed 's/^/| /' conftest.
$ac_ext >&5
11798 ac_header_preproc
=no
11800 rm -f conftest.err conftest.
$ac_ext
11801 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11802 echo "${ECHO_T}$ac_header_preproc" >&6
11804 # So? What about this header?
11805 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11807 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11808 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11809 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11810 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11811 ac_header_preproc
=yes
11814 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11815 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11816 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11817 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11818 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11819 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11820 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11821 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11822 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11823 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11824 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11825 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11828 ## ------------------------------------------ ##
11829 ## Report this to the AC_PACKAGE_NAME lists. ##
11830 ## ------------------------------------------ ##
11833 sed "s/^/$as_me: WARNING: /" >&2
11836 echo "$as_me:$LINENO: checking for $ac_header" >&5
11837 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11838 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11839 echo $ECHO_N "(cached) $ECHO_C" >&6
11841 eval "$as_ac_Header=\$ac_header_preproc"
11843 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11844 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11847 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11848 cat >>confdefs.h
<<_ACEOF
11849 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11856 if test "$ac_cv_header_png_h" = yes ||
test "$ac_cv_header_libpng_png_h" = yes ; then
11857 echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
11858 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6
11859 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
11860 echo $ECHO_N "(cached) $ECHO_C" >&6
11862 ac_check_lib_save_LIBS
=$LIBS
11863 LIBS
="-lpng -lz -lm $LIBS"
11864 cat >conftest.
$ac_ext <<_ACEOF
11867 cat confdefs.h
>>conftest.
$ac_ext
11868 cat >>conftest.
$ac_ext <<_ACEOF
11869 /* end confdefs.h. */
11871 /* Override any gcc2 internal prototype to avoid an error. */
11875 /* We use char because int might match the return type of a gcc2
11876 builtin and then its argument prototype would still apply. */
11877 char png_get_channels ();
11881 png_get_channels ();
11886 rm -f conftest.
$ac_objext conftest
$ac_exeext
11887 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11888 (eval $ac_link) 2>conftest.er1
11890 grep -v '^ *+' conftest.er1
>conftest.err
11892 cat conftest.err
>&5
11893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11894 (exit $ac_status); } &&
11895 { ac_try
='test -z "$ac_c_werror_flag"
11896 || test ! -s conftest.err'
11897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11898 (eval $ac_try) 2>&5
11900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11901 (exit $ac_status); }; } &&
11902 { ac_try
='test -s conftest$ac_exeext'
11903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11904 (eval $ac_try) 2>&5
11906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11907 (exit $ac_status); }; }; then
11908 ac_cv_lib_png_png_get_channels
=yes
11910 echo "$as_me: failed program was:" >&5
11911 sed 's/^/| /' conftest.
$ac_ext >&5
11913 ac_cv_lib_png_png_get_channels
=no
11915 rm -f conftest.err conftest.
$ac_objext \
11916 conftest
$ac_exeext conftest.
$ac_ext
11917 LIBS
=$ac_check_lib_save_LIBS
11919 echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
11920 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6
11921 if test $ac_cv_lib_png_png_get_channels = yes; then
11928 if test "${HAVE_PNG}" = "yes"; then
11930 cat >>confdefs.h
<<\_ACEOF
11937 ### Use -ltiff if available, unless `--with-tiff=no'.
11939 if test "${HAVE_X11}" = "yes"; then
11940 if test "${with_tiff}" != "no"; then
11941 if test "${ac_cv_header_tiffio_h+set}" = set; then
11942 echo "$as_me:$LINENO: checking for tiffio.h" >&5
11943 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
11944 if test "${ac_cv_header_tiffio_h+set}" = set; then
11945 echo $ECHO_N "(cached) $ECHO_C" >&6
11947 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
11948 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
11950 # Is the header compilable?
11951 echo "$as_me:$LINENO: checking tiffio.h usability" >&5
11952 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
11953 cat >conftest.
$ac_ext <<_ACEOF
11956 cat confdefs.h
>>conftest.
$ac_ext
11957 cat >>conftest.
$ac_ext <<_ACEOF
11958 /* end confdefs.h. */
11959 $ac_includes_default
11960 #include <tiffio.h>
11962 rm -f conftest.
$ac_objext
11963 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11964 (eval $ac_compile) 2>conftest.er1
11966 grep -v '^ *+' conftest.er1
>conftest.err
11968 cat conftest.err
>&5
11969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11970 (exit $ac_status); } &&
11971 { ac_try
='test -z "$ac_c_werror_flag"
11972 || test ! -s conftest.err'
11973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11974 (eval $ac_try) 2>&5
11976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11977 (exit $ac_status); }; } &&
11978 { ac_try
='test -s conftest.$ac_objext'
11979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11980 (eval $ac_try) 2>&5
11982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11983 (exit $ac_status); }; }; then
11984 ac_header_compiler
=yes
11986 echo "$as_me: failed program was:" >&5
11987 sed 's/^/| /' conftest.
$ac_ext >&5
11989 ac_header_compiler
=no
11991 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11992 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11993 echo "${ECHO_T}$ac_header_compiler" >&6
11995 # Is the header present?
11996 echo "$as_me:$LINENO: checking tiffio.h presence" >&5
11997 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
11998 cat >conftest.
$ac_ext <<_ACEOF
12001 cat confdefs.h
>>conftest.
$ac_ext
12002 cat >>conftest.
$ac_ext <<_ACEOF
12003 /* end confdefs.h. */
12004 #include <tiffio.h>
12006 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12007 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12009 grep -v '^ *+' conftest.er1
>conftest.err
12011 cat conftest.err
>&5
12012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12013 (exit $ac_status); } >/dev
/null
; then
12014 if test -s conftest.err
; then
12015 ac_cpp_err
=$ac_c_preproc_warn_flag
12016 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12023 if test -z "$ac_cpp_err"; then
12024 ac_header_preproc
=yes
12026 echo "$as_me: failed program was:" >&5
12027 sed 's/^/| /' conftest.
$ac_ext >&5
12029 ac_header_preproc
=no
12031 rm -f conftest.err conftest.
$ac_ext
12032 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12033 echo "${ECHO_T}$ac_header_preproc" >&6
12035 # So? What about this header?
12036 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12038 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
12039 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12040 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
12041 echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
12042 ac_header_preproc
=yes
12045 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
12046 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
12047 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
12048 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
12049 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
12050 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
12051 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
12052 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
12053 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
12054 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
12055 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
12056 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
12059 ## ------------------------------------------ ##
12060 ## Report this to the AC_PACKAGE_NAME lists. ##
12061 ## ------------------------------------------ ##
12064 sed "s/^/$as_me: WARNING: /" >&2
12067 echo "$as_me:$LINENO: checking for tiffio.h" >&5
12068 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
12069 if test "${ac_cv_header_tiffio_h+set}" = set; then
12070 echo $ECHO_N "(cached) $ECHO_C" >&6
12072 ac_cv_header_tiffio_h
=$ac_header_preproc
12074 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
12075 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
12078 if test $ac_cv_header_tiffio_h = yes; then
12080 # At least one tiff package requires the jpeg library.
12081 if test "${HAVE_JPEG}" = yes; then tifflibs
="-ljpeg $tifflibs"; fi
12082 echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
12083 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6
12084 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
12085 echo $ECHO_N "(cached) $ECHO_C" >&6
12087 ac_check_lib_save_LIBS
=$LIBS
12088 LIBS
="-ltiff $tifflibs $LIBS"
12089 cat >conftest.
$ac_ext <<_ACEOF
12092 cat confdefs.h
>>conftest.
$ac_ext
12093 cat >>conftest.
$ac_ext <<_ACEOF
12094 /* end confdefs.h. */
12096 /* Override any gcc2 internal prototype to avoid an error. */
12100 /* We use char because int might match the return type of a gcc2
12101 builtin and then its argument prototype would still apply. */
12102 char TIFFGetVersion ();
12111 rm -f conftest.
$ac_objext conftest
$ac_exeext
12112 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12113 (eval $ac_link) 2>conftest.er1
12115 grep -v '^ *+' conftest.er1
>conftest.err
12117 cat conftest.err
>&5
12118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12119 (exit $ac_status); } &&
12120 { ac_try
='test -z "$ac_c_werror_flag"
12121 || test ! -s conftest.err'
12122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12123 (eval $ac_try) 2>&5
12125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12126 (exit $ac_status); }; } &&
12127 { ac_try
='test -s conftest$ac_exeext'
12128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12129 (eval $ac_try) 2>&5
12131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12132 (exit $ac_status); }; }; then
12133 ac_cv_lib_tiff_TIFFGetVersion
=yes
12135 echo "$as_me: failed program was:" >&5
12136 sed 's/^/| /' conftest.
$ac_ext >&5
12138 ac_cv_lib_tiff_TIFFGetVersion
=no
12140 rm -f conftest.err conftest.
$ac_objext \
12141 conftest
$ac_exeext conftest.
$ac_ext
12142 LIBS
=$ac_check_lib_save_LIBS
12144 echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
12145 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6
12146 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
12155 if test "${HAVE_TIFF}" = "yes"; then
12157 cat >>confdefs.h
<<\_ACEOF
12158 #define HAVE_TIFF 1
12164 ### Use -lgif if available, unless `--with-gif=no'.
12166 if test "${HAVE_X11}" = "yes"; then
12167 if test "${with_gif}" != "no"; then
12168 if test "${ac_cv_header_gif_lib_h+set}" = set; then
12169 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
12170 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
12171 if test "${ac_cv_header_gif_lib_h+set}" = set; then
12172 echo $ECHO_N "(cached) $ECHO_C" >&6
12174 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
12175 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
12177 # Is the header compilable?
12178 echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
12179 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6
12180 cat >conftest.
$ac_ext <<_ACEOF
12183 cat confdefs.h
>>conftest.
$ac_ext
12184 cat >>conftest.
$ac_ext <<_ACEOF
12185 /* end confdefs.h. */
12186 $ac_includes_default
12187 #include <gif_lib.h>
12189 rm -f conftest.
$ac_objext
12190 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12191 (eval $ac_compile) 2>conftest.er1
12193 grep -v '^ *+' conftest.er1
>conftest.err
12195 cat conftest.err
>&5
12196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12197 (exit $ac_status); } &&
12198 { ac_try
='test -z "$ac_c_werror_flag"
12199 || test ! -s conftest.err'
12200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12201 (eval $ac_try) 2>&5
12203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12204 (exit $ac_status); }; } &&
12205 { ac_try
='test -s conftest.$ac_objext'
12206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12207 (eval $ac_try) 2>&5
12209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12210 (exit $ac_status); }; }; then
12211 ac_header_compiler
=yes
12213 echo "$as_me: failed program was:" >&5
12214 sed 's/^/| /' conftest.
$ac_ext >&5
12216 ac_header_compiler
=no
12218 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12219 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12220 echo "${ECHO_T}$ac_header_compiler" >&6
12222 # Is the header present?
12223 echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
12224 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6
12225 cat >conftest.
$ac_ext <<_ACEOF
12228 cat confdefs.h
>>conftest.
$ac_ext
12229 cat >>conftest.
$ac_ext <<_ACEOF
12230 /* end confdefs.h. */
12231 #include <gif_lib.h>
12233 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12234 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12236 grep -v '^ *+' conftest.er1
>conftest.err
12238 cat conftest.err
>&5
12239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12240 (exit $ac_status); } >/dev
/null
; then
12241 if test -s conftest.err
; then
12242 ac_cpp_err
=$ac_c_preproc_warn_flag
12243 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12250 if test -z "$ac_cpp_err"; then
12251 ac_header_preproc
=yes
12253 echo "$as_me: failed program was:" >&5
12254 sed 's/^/| /' conftest.
$ac_ext >&5
12256 ac_header_preproc
=no
12258 rm -f conftest.err conftest.
$ac_ext
12259 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12260 echo "${ECHO_T}$ac_header_preproc" >&6
12262 # So? What about this header?
12263 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12265 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
12266 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12267 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
12268 echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
12269 ac_header_preproc
=yes
12272 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
12273 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
12274 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
12275 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
12276 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
12277 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
12278 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
12279 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
12280 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
12281 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
12282 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
12283 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
12286 ## ------------------------------------------ ##
12287 ## Report this to the AC_PACKAGE_NAME lists. ##
12288 ## ------------------------------------------ ##
12291 sed "s/^/$as_me: WARNING: /" >&2
12294 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
12295 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
12296 if test "${ac_cv_header_gif_lib_h+set}" = set; then
12297 echo $ECHO_N "(cached) $ECHO_C" >&6
12299 ac_cv_header_gif_lib_h
=$ac_header_preproc
12301 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
12302 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
12305 if test $ac_cv_header_gif_lib_h = yes; then
12306 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
12307 # Earlier versions can crash Emacs.
12308 echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
12309 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6
12310 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
12311 echo $ECHO_N "(cached) $ECHO_C" >&6
12313 ac_check_lib_save_LIBS
=$LIBS
12314 LIBS
="-lungif $LIBS"
12315 cat >conftest.
$ac_ext <<_ACEOF
12318 cat confdefs.h
>>conftest.
$ac_ext
12319 cat >>conftest.
$ac_ext <<_ACEOF
12320 /* end confdefs.h. */
12322 /* Override any gcc2 internal prototype to avoid an error. */
12326 /* We use char because int might match the return type of a gcc2
12327 builtin and then its argument prototype would still apply. */
12328 char EGifPutExtensionLast ();
12332 EGifPutExtensionLast ();
12337 rm -f conftest.
$ac_objext conftest
$ac_exeext
12338 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12339 (eval $ac_link) 2>conftest.er1
12341 grep -v '^ *+' conftest.er1
>conftest.err
12343 cat conftest.err
>&5
12344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12345 (exit $ac_status); } &&
12346 { ac_try
='test -z "$ac_c_werror_flag"
12347 || test ! -s conftest.err'
12348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12349 (eval $ac_try) 2>&5
12351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12352 (exit $ac_status); }; } &&
12353 { ac_try
='test -s conftest$ac_exeext'
12354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12355 (eval $ac_try) 2>&5
12357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12358 (exit $ac_status); }; }; then
12359 ac_cv_lib_ungif_EGifPutExtensionLast
=yes
12361 echo "$as_me: failed program was:" >&5
12362 sed 's/^/| /' conftest.
$ac_ext >&5
12364 ac_cv_lib_ungif_EGifPutExtensionLast
=no
12366 rm -f conftest.err conftest.
$ac_objext \
12367 conftest
$ac_exeext conftest.
$ac_ext
12368 LIBS
=$ac_check_lib_save_LIBS
12370 echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
12371 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6
12372 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
12381 if test "${HAVE_GIF}" = "yes"; then
12383 cat >>confdefs.h
<<\_ACEOF
12390 ### Use Mac OS X Carbon API to implement GUI.
12392 if test "${with_carbon}" != "no"; then
12393 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
12394 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
12395 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
12396 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
12397 echo $ECHO_N "(cached) $ECHO_C" >&6
12399 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
12400 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
12402 # Is the header compilable?
12403 echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
12404 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6
12405 cat >conftest.
$ac_ext <<_ACEOF
12408 cat confdefs.h
>>conftest.
$ac_ext
12409 cat >>conftest.
$ac_ext <<_ACEOF
12410 /* end confdefs.h. */
12411 $ac_includes_default
12412 #include <Carbon/Carbon.h>
12414 rm -f conftest.
$ac_objext
12415 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12416 (eval $ac_compile) 2>conftest.er1
12418 grep -v '^ *+' conftest.er1
>conftest.err
12420 cat conftest.err
>&5
12421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12422 (exit $ac_status); } &&
12423 { ac_try
='test -z "$ac_c_werror_flag"
12424 || test ! -s conftest.err'
12425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12426 (eval $ac_try) 2>&5
12428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12429 (exit $ac_status); }; } &&
12430 { ac_try
='test -s conftest.$ac_objext'
12431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12432 (eval $ac_try) 2>&5
12434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12435 (exit $ac_status); }; }; then
12436 ac_header_compiler
=yes
12438 echo "$as_me: failed program was:" >&5
12439 sed 's/^/| /' conftest.
$ac_ext >&5
12441 ac_header_compiler
=no
12443 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12444 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12445 echo "${ECHO_T}$ac_header_compiler" >&6
12447 # Is the header present?
12448 echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
12449 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6
12450 cat >conftest.
$ac_ext <<_ACEOF
12453 cat confdefs.h
>>conftest.
$ac_ext
12454 cat >>conftest.
$ac_ext <<_ACEOF
12455 /* end confdefs.h. */
12456 #include <Carbon/Carbon.h>
12458 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12459 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12461 grep -v '^ *+' conftest.er1
>conftest.err
12463 cat conftest.err
>&5
12464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12465 (exit $ac_status); } >/dev
/null
; then
12466 if test -s conftest.err
; then
12467 ac_cpp_err
=$ac_c_preproc_warn_flag
12468 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12475 if test -z "$ac_cpp_err"; then
12476 ac_header_preproc
=yes
12478 echo "$as_me: failed program was:" >&5
12479 sed 's/^/| /' conftest.
$ac_ext >&5
12481 ac_header_preproc
=no
12483 rm -f conftest.err conftest.
$ac_ext
12484 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12485 echo "${ECHO_T}$ac_header_preproc" >&6
12487 # So? What about this header?
12488 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12490 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
12491 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12492 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
12493 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
12494 ac_header_preproc
=yes
12497 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
12498 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
12499 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
12500 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
12501 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
12502 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
12503 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
12504 echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
12505 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
12506 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
12507 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
12508 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
12511 ## ------------------------------------------ ##
12512 ## Report this to the AC_PACKAGE_NAME lists. ##
12513 ## ------------------------------------------ ##
12516 sed "s/^/$as_me: WARNING: /" >&2
12519 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
12520 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
12521 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
12522 echo $ECHO_N "(cached) $ECHO_C" >&6
12524 ac_cv_header_Carbon_Carbon_h
=$ac_header_preproc
12526 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
12527 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
12530 if test $ac_cv_header_Carbon_Carbon_h = yes; then
12537 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
12538 echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
12539 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6
12540 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
12541 echo $ECHO_N "(cached) $ECHO_C" >&6
12543 echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
12544 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6
12546 # Is the header compilable?
12547 echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
12548 echo $ECHO_N "checking malloc/malloc.h usability... $ECHO_C" >&6
12549 cat >conftest.
$ac_ext <<_ACEOF
12552 cat confdefs.h
>>conftest.
$ac_ext
12553 cat >>conftest.
$ac_ext <<_ACEOF
12554 /* end confdefs.h. */
12555 $ac_includes_default
12556 #include <malloc/malloc.h>
12558 rm -f conftest.
$ac_objext
12559 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12560 (eval $ac_compile) 2>conftest.er1
12562 grep -v '^ *+' conftest.er1
>conftest.err
12564 cat conftest.err
>&5
12565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12566 (exit $ac_status); } &&
12567 { ac_try
='test -z "$ac_c_werror_flag"
12568 || test ! -s conftest.err'
12569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12570 (eval $ac_try) 2>&5
12572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12573 (exit $ac_status); }; } &&
12574 { ac_try
='test -s conftest.$ac_objext'
12575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12576 (eval $ac_try) 2>&5
12578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12579 (exit $ac_status); }; }; then
12580 ac_header_compiler
=yes
12582 echo "$as_me: failed program was:" >&5
12583 sed 's/^/| /' conftest.
$ac_ext >&5
12585 ac_header_compiler
=no
12587 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12588 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12589 echo "${ECHO_T}$ac_header_compiler" >&6
12591 # Is the header present?
12592 echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
12593 echo $ECHO_N "checking malloc/malloc.h presence... $ECHO_C" >&6
12594 cat >conftest.
$ac_ext <<_ACEOF
12597 cat confdefs.h
>>conftest.
$ac_ext
12598 cat >>conftest.
$ac_ext <<_ACEOF
12599 /* end confdefs.h. */
12600 #include <malloc/malloc.h>
12602 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12603 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12605 grep -v '^ *+' conftest.er1
>conftest.err
12607 cat conftest.err
>&5
12608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12609 (exit $ac_status); } >/dev
/null
; then
12610 if test -s conftest.err
; then
12611 ac_cpp_err
=$ac_c_preproc_warn_flag
12612 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12619 if test -z "$ac_cpp_err"; then
12620 ac_header_preproc
=yes
12622 echo "$as_me: failed program was:" >&5
12623 sed 's/^/| /' conftest.
$ac_ext >&5
12625 ac_header_preproc
=no
12627 rm -f conftest.err conftest.
$ac_ext
12628 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12629 echo "${ECHO_T}$ac_header_preproc" >&6
12631 # So? What about this header?
12632 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12634 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
12635 echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12636 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
12637 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
12638 ac_header_preproc
=yes
12641 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
12642 echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
12643 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
12644 echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
12645 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
12646 echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
12647 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
12648 echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
12649 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
12650 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
12651 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
12652 echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
12655 ## ------------------------------------------ ##
12656 ## Report this to the AC_PACKAGE_NAME lists. ##
12657 ## ------------------------------------------ ##
12660 sed "s/^/$as_me: WARNING: /" >&2
12663 echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
12664 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6
12665 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
12666 echo $ECHO_N "(cached) $ECHO_C" >&6
12668 ac_cv_header_malloc_malloc_h
=$ac_header_preproc
12670 echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
12671 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6
12674 if test $ac_cv_header_malloc_malloc_h = yes; then
12676 cat >>confdefs.h
<<\_ACEOF
12677 #define HAVE_MALLOC_MALLOC_H 1
12684 if test "${HAVE_CARBON}" = "yes"; then
12686 cat >>confdefs.h
<<\_ACEOF
12687 #define HAVE_CARBON 1
12691 ## Specify the install directory
12693 if test "${carbon_appdir_x}" != ""; then
12694 case ${carbon_appdir_x} in
12695 y | ye |
yes) carbon_appdir
=/Applications
;;
12696 * ) carbon_appdir
=${carbon_appdir_x} ;;
12699 # We also have mouse menus.
12703 ### Use session management (-lSM -lICE) if available
12705 if test "${HAVE_X11}" = "yes"; then
12706 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
12707 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
12708 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
12709 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
12710 echo $ECHO_N "(cached) $ECHO_C" >&6
12712 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
12713 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
12715 # Is the header compilable?
12716 echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
12717 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6
12718 cat >conftest.
$ac_ext <<_ACEOF
12721 cat confdefs.h
>>conftest.
$ac_ext
12722 cat >>conftest.
$ac_ext <<_ACEOF
12723 /* end confdefs.h. */
12724 $ac_includes_default
12725 #include <X11/SM/SMlib.h>
12727 rm -f conftest.
$ac_objext
12728 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12729 (eval $ac_compile) 2>conftest.er1
12731 grep -v '^ *+' conftest.er1
>conftest.err
12733 cat conftest.err
>&5
12734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12735 (exit $ac_status); } &&
12736 { ac_try
='test -z "$ac_c_werror_flag"
12737 || test ! -s conftest.err'
12738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12739 (eval $ac_try) 2>&5
12741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12742 (exit $ac_status); }; } &&
12743 { ac_try
='test -s conftest.$ac_objext'
12744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12745 (eval $ac_try) 2>&5
12747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12748 (exit $ac_status); }; }; then
12749 ac_header_compiler
=yes
12751 echo "$as_me: failed program was:" >&5
12752 sed 's/^/| /' conftest.
$ac_ext >&5
12754 ac_header_compiler
=no
12756 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12757 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12758 echo "${ECHO_T}$ac_header_compiler" >&6
12760 # Is the header present?
12761 echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
12762 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6
12763 cat >conftest.
$ac_ext <<_ACEOF
12766 cat confdefs.h
>>conftest.
$ac_ext
12767 cat >>conftest.
$ac_ext <<_ACEOF
12768 /* end confdefs.h. */
12769 #include <X11/SM/SMlib.h>
12771 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12772 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12774 grep -v '^ *+' conftest.er1
>conftest.err
12776 cat conftest.err
>&5
12777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12778 (exit $ac_status); } >/dev
/null
; then
12779 if test -s conftest.err
; then
12780 ac_cpp_err
=$ac_c_preproc_warn_flag
12781 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12788 if test -z "$ac_cpp_err"; then
12789 ac_header_preproc
=yes
12791 echo "$as_me: failed program was:" >&5
12792 sed 's/^/| /' conftest.
$ac_ext >&5
12794 ac_header_preproc
=no
12796 rm -f conftest.err conftest.
$ac_ext
12797 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12798 echo "${ECHO_T}$ac_header_preproc" >&6
12800 # So? What about this header?
12801 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12803 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
12804 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12805 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
12806 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
12807 ac_header_preproc
=yes
12810 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
12811 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
12812 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
12813 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
12814 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
12815 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
12816 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
12817 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
12818 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
12819 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
12820 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
12821 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
12824 ## ------------------------------------------ ##
12825 ## Report this to the AC_PACKAGE_NAME lists. ##
12826 ## ------------------------------------------ ##
12829 sed "s/^/$as_me: WARNING: /" >&2
12832 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
12833 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
12834 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
12835 echo $ECHO_N "(cached) $ECHO_C" >&6
12837 ac_cv_header_X11_SM_SMlib_h
=$ac_header_preproc
12839 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
12840 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
12843 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
12844 echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
12845 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6
12846 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
12847 echo $ECHO_N "(cached) $ECHO_C" >&6
12849 ac_check_lib_save_LIBS
=$LIBS
12850 LIBS
="-lSM -lICE $LIBS"
12851 cat >conftest.
$ac_ext <<_ACEOF
12854 cat confdefs.h
>>conftest.
$ac_ext
12855 cat >>conftest.
$ac_ext <<_ACEOF
12856 /* end confdefs.h. */
12858 /* Override any gcc2 internal prototype to avoid an error. */
12862 /* We use char because int might match the return type of a gcc2
12863 builtin and then its argument prototype would still apply. */
12864 char SmcOpenConnection ();
12868 SmcOpenConnection ();
12873 rm -f conftest.
$ac_objext conftest
$ac_exeext
12874 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12875 (eval $ac_link) 2>conftest.er1
12877 grep -v '^ *+' conftest.er1
>conftest.err
12879 cat conftest.err
>&5
12880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12881 (exit $ac_status); } &&
12882 { ac_try
='test -z "$ac_c_werror_flag"
12883 || test ! -s conftest.err'
12884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12885 (eval $ac_try) 2>&5
12887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12888 (exit $ac_status); }; } &&
12889 { ac_try
='test -s conftest$ac_exeext'
12890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12891 (eval $ac_try) 2>&5
12893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12894 (exit $ac_status); }; }; then
12895 ac_cv_lib_SM_SmcOpenConnection
=yes
12897 echo "$as_me: failed program was:" >&5
12898 sed 's/^/| /' conftest.
$ac_ext >&5
12900 ac_cv_lib_SM_SmcOpenConnection
=no
12902 rm -f conftest.err conftest.
$ac_objext \
12903 conftest
$ac_exeext conftest.
$ac_ext
12904 LIBS
=$ac_check_lib_save_LIBS
12906 echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
12907 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6
12908 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
12916 if test "${HAVE_X_SM}" = "yes"; then
12918 cat >>confdefs.h
<<\_ACEOF
12919 #define HAVE_X_SM 1
12924 *) LIBS
="-lSM -lICE $LIBS" ;;
12929 # If netdb.h doesn't declare h_errno, we must declare it by hand.
12930 echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
12931 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6
12932 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
12933 echo $ECHO_N "(cached) $ECHO_C" >&6
12935 cat >conftest.
$ac_ext <<_ACEOF
12938 cat confdefs.h
>>conftest.
$ac_ext
12939 cat >>conftest.
$ac_ext <<_ACEOF
12940 /* end confdefs.h. */
12950 rm -f conftest.
$ac_objext conftest
$ac_exeext
12951 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12952 (eval $ac_link) 2>conftest.er1
12954 grep -v '^ *+' conftest.er1
>conftest.err
12956 cat conftest.err
>&5
12957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12958 (exit $ac_status); } &&
12959 { ac_try
='test -z "$ac_c_werror_flag"
12960 || test ! -s conftest.err'
12961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12962 (eval $ac_try) 2>&5
12964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12965 (exit $ac_status); }; } &&
12966 { ac_try
='test -s conftest$ac_exeext'
12967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12968 (eval $ac_try) 2>&5
12970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12971 (exit $ac_status); }; }; then
12972 emacs_cv_netdb_declares_h_errno
=yes
12974 echo "$as_me: failed program was:" >&5
12975 sed 's/^/| /' conftest.
$ac_ext >&5
12977 emacs_cv_netdb_declares_h_errno
=no
12979 rm -f conftest.err conftest.
$ac_objext \
12980 conftest
$ac_exeext conftest.
$ac_ext
12982 echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
12983 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6
12984 if test $emacs_cv_netdb_declares_h_errno = yes; then
12986 cat >>confdefs.h
<<\_ACEOF
12987 #define HAVE_H_ERRNO 1
12992 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
12993 # for constant arguments. Useless!
12994 echo "$as_me:$LINENO: checking for working alloca.h" >&5
12995 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
12996 if test "${ac_cv_working_alloca_h+set}" = set; then
12997 echo $ECHO_N "(cached) $ECHO_C" >&6
12999 cat >conftest.
$ac_ext <<_ACEOF
13002 cat confdefs.h
>>conftest.
$ac_ext
13003 cat >>conftest.
$ac_ext <<_ACEOF
13004 /* end confdefs.h. */
13005 #include <alloca.h>
13009 char *p = (char *) alloca (2 * sizeof (int));
13014 rm -f conftest.
$ac_objext conftest
$ac_exeext
13015 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13016 (eval $ac_link) 2>conftest.er1
13018 grep -v '^ *+' conftest.er1
>conftest.err
13020 cat conftest.err
>&5
13021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13022 (exit $ac_status); } &&
13023 { ac_try
='test -z "$ac_c_werror_flag"
13024 || test ! -s conftest.err'
13025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13026 (eval $ac_try) 2>&5
13028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13029 (exit $ac_status); }; } &&
13030 { ac_try
='test -s conftest$ac_exeext'
13031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13032 (eval $ac_try) 2>&5
13034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13035 (exit $ac_status); }; }; then
13036 ac_cv_working_alloca_h
=yes
13038 echo "$as_me: failed program was:" >&5
13039 sed 's/^/| /' conftest.
$ac_ext >&5
13041 ac_cv_working_alloca_h
=no
13043 rm -f conftest.err conftest.
$ac_objext \
13044 conftest
$ac_exeext conftest.
$ac_ext
13046 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
13047 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
13048 if test $ac_cv_working_alloca_h = yes; then
13050 cat >>confdefs.h
<<\_ACEOF
13051 #define HAVE_ALLOCA_H 1
13056 echo "$as_me:$LINENO: checking for alloca" >&5
13057 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
13058 if test "${ac_cv_func_alloca_works+set}" = set; then
13059 echo $ECHO_N "(cached) $ECHO_C" >&6
13061 cat >conftest.
$ac_ext <<_ACEOF
13064 cat confdefs.h
>>conftest.
$ac_ext
13065 cat >>conftest.
$ac_ext <<_ACEOF
13066 /* end confdefs.h. */
13068 # define alloca __builtin_alloca
13071 # include <malloc.h>
13072 # define alloca _alloca
13075 # include <alloca.h>
13080 # ifndef alloca /* predefined by HP cc +Olibcalls */
13091 char *p = (char *) alloca (1);
13096 rm -f conftest.
$ac_objext conftest
$ac_exeext
13097 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13098 (eval $ac_link) 2>conftest.er1
13100 grep -v '^ *+' conftest.er1
>conftest.err
13102 cat conftest.err
>&5
13103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13104 (exit $ac_status); } &&
13105 { ac_try
='test -z "$ac_c_werror_flag"
13106 || test ! -s conftest.err'
13107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13108 (eval $ac_try) 2>&5
13110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13111 (exit $ac_status); }; } &&
13112 { ac_try
='test -s conftest$ac_exeext'
13113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13114 (eval $ac_try) 2>&5
13116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13117 (exit $ac_status); }; }; then
13118 ac_cv_func_alloca_works
=yes
13120 echo "$as_me: failed program was:" >&5
13121 sed 's/^/| /' conftest.
$ac_ext >&5
13123 ac_cv_func_alloca_works
=no
13125 rm -f conftest.err conftest.
$ac_objext \
13126 conftest
$ac_exeext conftest.
$ac_ext
13128 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
13129 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
13131 if test $ac_cv_func_alloca_works = yes; then
13133 cat >>confdefs.h
<<\_ACEOF
13134 #define HAVE_ALLOCA 1
13138 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
13139 # that cause trouble. Some versions do not even contain alloca or
13140 # contain a buggy version. If you still want to use their alloca,
13141 # use ar to extract alloca.o from them instead of compiling alloca.c.
13143 ALLOCA
=alloca.
$ac_objext
13145 cat >>confdefs.h
<<\_ACEOF
13150 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
13151 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
13152 if test "${ac_cv_os_cray+set}" = set; then
13153 echo $ECHO_N "(cached) $ECHO_C" >&6
13155 cat >conftest.
$ac_ext <<_ACEOF
13158 cat confdefs.h
>>conftest.
$ac_ext
13159 cat >>conftest.
$ac_ext <<_ACEOF
13160 /* end confdefs.h. */
13161 #if defined(CRAY) && ! defined(CRAY2)
13168 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13169 $EGREP "webecray" >/dev
/null
2>&1; then
13177 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
13178 echo "${ECHO_T}$ac_cv_os_cray" >&6
13179 if test $ac_cv_os_cray = yes; then
13180 for ac_func
in _getb67 GETB67 getb67
; do
13181 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13182 echo "$as_me:$LINENO: checking for $ac_func" >&5
13183 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13184 if eval "test \"\${$as_ac_var+set}\" = set"; then
13185 echo $ECHO_N "(cached) $ECHO_C" >&6
13187 cat >conftest.
$ac_ext <<_ACEOF
13190 cat confdefs.h
>>conftest.
$ac_ext
13191 cat >>conftest.
$ac_ext <<_ACEOF
13192 /* end confdefs.h. */
13193 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13194 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13195 #define $ac_func innocuous_$ac_func
13197 /* System header to define __stub macros and hopefully few prototypes,
13198 which can conflict with char $ac_func (); below.
13199 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13200 <limits.h> exists even on freestanding compilers. */
13203 # include <limits.h>
13205 # include <assert.h>
13210 /* Override any gcc2 internal prototype to avoid an error. */
13215 /* We use char because int might match the return type of a gcc2
13216 builtin and then its argument prototype would still apply. */
13218 /* The GNU C library defines this for functions which it implements
13219 to always fail with ENOSYS. Some functions are actually named
13220 something starting with __ and the normal name is an alias. */
13221 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13224 char (*f) () = $ac_func;
13233 return f != $ac_func;
13238 rm -f conftest.
$ac_objext conftest
$ac_exeext
13239 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13240 (eval $ac_link) 2>conftest.er1
13242 grep -v '^ *+' conftest.er1
>conftest.err
13244 cat conftest.err
>&5
13245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13246 (exit $ac_status); } &&
13247 { ac_try
='test -z "$ac_c_werror_flag"
13248 || test ! -s conftest.err'
13249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13250 (eval $ac_try) 2>&5
13252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13253 (exit $ac_status); }; } &&
13254 { ac_try
='test -s conftest$ac_exeext'
13255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13256 (eval $ac_try) 2>&5
13258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13259 (exit $ac_status); }; }; then
13260 eval "$as_ac_var=yes"
13262 echo "$as_me: failed program was:" >&5
13263 sed 's/^/| /' conftest.
$ac_ext >&5
13265 eval "$as_ac_var=no"
13267 rm -f conftest.err conftest.
$ac_objext \
13268 conftest
$ac_exeext conftest.
$ac_ext
13270 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13271 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13272 if test `eval echo '${'$as_ac_var'}'` = yes; then
13274 cat >>confdefs.h
<<_ACEOF
13275 #define CRAY_STACKSEG_END $ac_func
13284 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
13285 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
13286 if test "${ac_cv_c_stack_direction+set}" = set; then
13287 echo $ECHO_N "(cached) $ECHO_C" >&6
13289 if test "$cross_compiling" = yes; then
13290 ac_cv_c_stack_direction
=0
13292 cat >conftest.
$ac_ext <<_ACEOF
13295 cat confdefs.h
>>conftest.
$ac_ext
13296 cat >>conftest.
$ac_ext <<_ACEOF
13297 /* end confdefs.h. */
13299 find_stack_direction ()
13301 static char *addr = 0;
13306 return find_stack_direction ();
13309 return (&dummy > addr) ? 1 : -1;
13315 exit (find_stack_direction () < 0);
13318 rm -f conftest
$ac_exeext
13319 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13320 (eval $ac_link) 2>&5
13322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13323 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
13324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13325 (eval $ac_try) 2>&5
13327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13328 (exit $ac_status); }; }; then
13329 ac_cv_c_stack_direction
=1
13331 echo "$as_me: program exited with status $ac_status" >&5
13332 echo "$as_me: failed program was:" >&5
13333 sed 's/^/| /' conftest.
$ac_ext >&5
13335 ( exit $ac_status )
13336 ac_cv_c_stack_direction
=-1
13338 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
13341 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
13342 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
13344 cat >>confdefs.h
<<_ACEOF
13345 #define STACK_DIRECTION $ac_cv_c_stack_direction
13352 # fmod, logb, and frexp are found in -lm on most systems.
13353 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
13355 echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
13356 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
13357 if test "${ac_cv_lib_m_sqrt+set}" = set; then
13358 echo $ECHO_N "(cached) $ECHO_C" >&6
13360 ac_check_lib_save_LIBS
=$LIBS
13362 cat >conftest.
$ac_ext <<_ACEOF
13365 cat confdefs.h
>>conftest.
$ac_ext
13366 cat >>conftest.
$ac_ext <<_ACEOF
13367 /* end confdefs.h. */
13369 /* Override any gcc2 internal prototype to avoid an error. */
13373 /* We use char because int might match the return type of a gcc2
13374 builtin and then its argument prototype would still apply. */
13384 rm -f conftest.
$ac_objext conftest
$ac_exeext
13385 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13386 (eval $ac_link) 2>conftest.er1
13388 grep -v '^ *+' conftest.er1
>conftest.err
13390 cat conftest.err
>&5
13391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13392 (exit $ac_status); } &&
13393 { ac_try
='test -z "$ac_c_werror_flag"
13394 || test ! -s conftest.err'
13395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13396 (eval $ac_try) 2>&5
13398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13399 (exit $ac_status); }; } &&
13400 { ac_try
='test -s conftest$ac_exeext'
13401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13402 (eval $ac_try) 2>&5
13404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13405 (exit $ac_status); }; }; then
13406 ac_cv_lib_m_sqrt
=yes
13408 echo "$as_me: failed program was:" >&5
13409 sed 's/^/| /' conftest.
$ac_ext >&5
13411 ac_cv_lib_m_sqrt
=no
13413 rm -f conftest.err conftest.
$ac_objext \
13414 conftest
$ac_exeext conftest.
$ac_ext
13415 LIBS
=$ac_check_lib_save_LIBS
13417 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
13418 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
13419 if test $ac_cv_lib_m_sqrt = yes; then
13420 cat >>confdefs.h
<<_ACEOF
13421 #define HAVE_LIBM 1
13429 # Check for mail-locking functions in a "mail" library. Probably this should
13430 # have the same check as for liblockfile below.
13432 echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
13433 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6
13434 if test "${ac_cv_lib_mail_maillock+set}" = set; then
13435 echo $ECHO_N "(cached) $ECHO_C" >&6
13437 ac_check_lib_save_LIBS
=$LIBS
13438 LIBS
="-lmail $LIBS"
13439 cat >conftest.
$ac_ext <<_ACEOF
13442 cat confdefs.h
>>conftest.
$ac_ext
13443 cat >>conftest.
$ac_ext <<_ACEOF
13444 /* end confdefs.h. */
13446 /* Override any gcc2 internal prototype to avoid an error. */
13450 /* We use char because int might match the return type of a gcc2
13451 builtin and then its argument prototype would still apply. */
13461 rm -f conftest.
$ac_objext conftest
$ac_exeext
13462 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13463 (eval $ac_link) 2>conftest.er1
13465 grep -v '^ *+' conftest.er1
>conftest.err
13467 cat conftest.err
>&5
13468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13469 (exit $ac_status); } &&
13470 { ac_try
='test -z "$ac_c_werror_flag"
13471 || test ! -s conftest.err'
13472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13473 (eval $ac_try) 2>&5
13475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13476 (exit $ac_status); }; } &&
13477 { ac_try
='test -s conftest$ac_exeext'
13478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13479 (eval $ac_try) 2>&5
13481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13482 (exit $ac_status); }; }; then
13483 ac_cv_lib_mail_maillock
=yes
13485 echo "$as_me: failed program was:" >&5
13486 sed 's/^/| /' conftest.
$ac_ext >&5
13488 ac_cv_lib_mail_maillock
=no
13490 rm -f conftest.err conftest.
$ac_objext \
13491 conftest
$ac_exeext conftest.
$ac_ext
13492 LIBS
=$ac_check_lib_save_LIBS
13494 echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
13495 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6
13496 if test $ac_cv_lib_mail_maillock = yes; then
13497 cat >>confdefs.h
<<_ACEOF
13498 #define HAVE_LIBMAIL 1
13501 LIBS
="-lmail $LIBS"
13506 echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
13507 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6
13508 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
13509 echo $ECHO_N "(cached) $ECHO_C" >&6
13511 ac_check_lib_save_LIBS
=$LIBS
13512 LIBS
="-llockfile $LIBS"
13513 cat >conftest.
$ac_ext <<_ACEOF
13516 cat confdefs.h
>>conftest.
$ac_ext
13517 cat >>conftest.
$ac_ext <<_ACEOF
13518 /* end confdefs.h. */
13520 /* Override any gcc2 internal prototype to avoid an error. */
13524 /* We use char because int might match the return type of a gcc2
13525 builtin and then its argument prototype would still apply. */
13535 rm -f conftest.
$ac_objext conftest
$ac_exeext
13536 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13537 (eval $ac_link) 2>conftest.er1
13539 grep -v '^ *+' conftest.er1
>conftest.err
13541 cat conftest.err
>&5
13542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13543 (exit $ac_status); } &&
13544 { ac_try
='test -z "$ac_c_werror_flag"
13545 || test ! -s conftest.err'
13546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13547 (eval $ac_try) 2>&5
13549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13550 (exit $ac_status); }; } &&
13551 { ac_try
='test -s conftest$ac_exeext'
13552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13553 (eval $ac_try) 2>&5
13555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13556 (exit $ac_status); }; }; then
13557 ac_cv_lib_lockfile_maillock
=yes
13559 echo "$as_me: failed program was:" >&5
13560 sed 's/^/| /' conftest.
$ac_ext >&5
13562 ac_cv_lib_lockfile_maillock
=no
13564 rm -f conftest.err conftest.
$ac_objext \
13565 conftest
$ac_exeext conftest.
$ac_ext
13566 LIBS
=$ac_check_lib_save_LIBS
13568 echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
13569 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6
13570 if test $ac_cv_lib_lockfile_maillock = yes; then
13571 cat >>confdefs.h
<<_ACEOF
13572 #define HAVE_LIBLOCKFILE 1
13575 LIBS
="-llockfile $LIBS"
13579 # If we have the shared liblockfile, assume we must use it for mail
13580 # locking (e.g. Debian). If we couldn't link against liblockfile
13581 # (no liblockfile.a installed), ensure that we don't need to.
13582 if test "$ac_cv_lib_lockfile_maillock" = no
; then
13583 # Extract the first word of "liblockfile.so", so it can be a program name with args.
13584 set dummy liblockfile.so
; ac_word
=$2
13585 echo "$as_me:$LINENO: checking for $ac_word" >&5
13586 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13587 if test "${ac_cv_prog_liblockfile+set}" = set; then
13588 echo $ECHO_N "(cached) $ECHO_C" >&6
13590 if test -n "$liblockfile"; then
13591 ac_cv_prog_liblockfile
="$liblockfile" # Let the user override the test.
13593 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13594 as_dummy
="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
13595 for as_dir
in $as_dummy
13598 test -z "$as_dir" && as_dir
=.
13599 for ac_exec_ext
in '' $ac_executable_extensions; do
13600 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13601 ac_cv_prog_liblockfile
="yes"
13602 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13608 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile
="no"
13611 liblockfile
=$ac_cv_prog_liblockfile
13612 if test -n "$liblockfile"; then
13613 echo "$as_me:$LINENO: result: $liblockfile" >&5
13614 echo "${ECHO_T}$liblockfile" >&6
13616 echo "$as_me:$LINENO: result: no" >&5
13617 echo "${ECHO_T}no" >&6
13620 if test $ac_cv_prog_liblockfile = yes; then
13621 { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
13622 This probably means that movemail could lose mail.
13623 There may be a \`development' package to install containing liblockfile." >&5
13624 echo "$as_me: error: Shared liblockfile found but can't link against it.
13625 This probably means that movemail could lose mail.
13626 There may be a \`development' package to install containing liblockfile." >&2;}
13627 { (exit 1); exit 1; }; }
13632 for ac_func
in touchlock
13634 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13635 echo "$as_me:$LINENO: checking for $ac_func" >&5
13636 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13637 if eval "test \"\${$as_ac_var+set}\" = set"; then
13638 echo $ECHO_N "(cached) $ECHO_C" >&6
13640 cat >conftest.
$ac_ext <<_ACEOF
13643 cat confdefs.h
>>conftest.
$ac_ext
13644 cat >>conftest.
$ac_ext <<_ACEOF
13645 /* end confdefs.h. */
13646 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13647 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13648 #define $ac_func innocuous_$ac_func
13650 /* System header to define __stub macros and hopefully few prototypes,
13651 which can conflict with char $ac_func (); below.
13652 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13653 <limits.h> exists even on freestanding compilers. */
13656 # include <limits.h>
13658 # include <assert.h>
13663 /* Override any gcc2 internal prototype to avoid an error. */
13668 /* We use char because int might match the return type of a gcc2
13669 builtin and then its argument prototype would still apply. */
13671 /* The GNU C library defines this for functions which it implements
13672 to always fail with ENOSYS. Some functions are actually named
13673 something starting with __ and the normal name is an alias. */
13674 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13677 char (*f) () = $ac_func;
13686 return f != $ac_func;
13691 rm -f conftest.
$ac_objext conftest
$ac_exeext
13692 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13693 (eval $ac_link) 2>conftest.er1
13695 grep -v '^ *+' conftest.er1
>conftest.err
13697 cat conftest.err
>&5
13698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13699 (exit $ac_status); } &&
13700 { ac_try
='test -z "$ac_c_werror_flag"
13701 || test ! -s conftest.err'
13702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13703 (eval $ac_try) 2>&5
13705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13706 (exit $ac_status); }; } &&
13707 { ac_try
='test -s conftest$ac_exeext'
13708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13709 (eval $ac_try) 2>&5
13711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13712 (exit $ac_status); }; }; then
13713 eval "$as_ac_var=yes"
13715 echo "$as_me: failed program was:" >&5
13716 sed 's/^/| /' conftest.
$ac_ext >&5
13718 eval "$as_ac_var=no"
13720 rm -f conftest.err conftest.
$ac_objext \
13721 conftest
$ac_exeext conftest.
$ac_ext
13723 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13724 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13725 if test `eval echo '${'$as_ac_var'}'` = yes; then
13726 cat >>confdefs.h
<<_ACEOF
13727 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13734 for ac_header
in maillock.h
13736 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13737 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13738 echo "$as_me:$LINENO: checking for $ac_header" >&5
13739 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13740 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13741 echo $ECHO_N "(cached) $ECHO_C" >&6
13743 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13744 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13746 # Is the header compilable?
13747 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13748 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13749 cat >conftest.
$ac_ext <<_ACEOF
13752 cat confdefs.h
>>conftest.
$ac_ext
13753 cat >>conftest.
$ac_ext <<_ACEOF
13754 /* end confdefs.h. */
13755 $ac_includes_default
13756 #include <$ac_header>
13758 rm -f conftest.
$ac_objext
13759 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13760 (eval $ac_compile) 2>conftest.er1
13762 grep -v '^ *+' conftest.er1
>conftest.err
13764 cat conftest.err
>&5
13765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13766 (exit $ac_status); } &&
13767 { ac_try
='test -z "$ac_c_werror_flag"
13768 || test ! -s conftest.err'
13769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13770 (eval $ac_try) 2>&5
13772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13773 (exit $ac_status); }; } &&
13774 { ac_try
='test -s conftest.$ac_objext'
13775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13776 (eval $ac_try) 2>&5
13778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13779 (exit $ac_status); }; }; then
13780 ac_header_compiler
=yes
13782 echo "$as_me: failed program was:" >&5
13783 sed 's/^/| /' conftest.
$ac_ext >&5
13785 ac_header_compiler
=no
13787 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13788 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13789 echo "${ECHO_T}$ac_header_compiler" >&6
13791 # Is the header present?
13792 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13793 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13794 cat >conftest.
$ac_ext <<_ACEOF
13797 cat confdefs.h
>>conftest.
$ac_ext
13798 cat >>conftest.
$ac_ext <<_ACEOF
13799 /* end confdefs.h. */
13800 #include <$ac_header>
13802 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13803 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
13805 grep -v '^ *+' conftest.er1
>conftest.err
13807 cat conftest.err
>&5
13808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13809 (exit $ac_status); } >/dev
/null
; then
13810 if test -s conftest.err
; then
13811 ac_cpp_err
=$ac_c_preproc_warn_flag
13812 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
13819 if test -z "$ac_cpp_err"; then
13820 ac_header_preproc
=yes
13822 echo "$as_me: failed program was:" >&5
13823 sed 's/^/| /' conftest.
$ac_ext >&5
13825 ac_header_preproc
=no
13827 rm -f conftest.err conftest.
$ac_ext
13828 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13829 echo "${ECHO_T}$ac_header_preproc" >&6
13831 # So? What about this header?
13832 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13834 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13835 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13836 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13837 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13838 ac_header_preproc
=yes
13841 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13842 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13843 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13844 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13845 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13846 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13847 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13848 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13849 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13850 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13851 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13852 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13855 ## ------------------------------------------ ##
13856 ## Report this to the AC_PACKAGE_NAME lists. ##
13857 ## ------------------------------------------ ##
13860 sed "s/^/$as_me: WARNING: /" >&2
13863 echo "$as_me:$LINENO: checking for $ac_header" >&5
13864 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13865 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13866 echo $ECHO_N "(cached) $ECHO_C" >&6
13868 eval "$as_ac_Header=\$ac_header_preproc"
13870 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13871 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13874 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13875 cat >>confdefs.h
<<_ACEOF
13876 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13951 for ac_func
in gethostname getdomainname dup2 \
13952 rename closedir mkdir
rmdir sysinfo getrusage \
13953 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
13954 strerror fpathconf
select mktime euidaccess getpagesize tzset setlocale \
13955 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
13956 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
13957 sendto recvfrom getsockopt setsockopt getsockname getpeername \
13958 gai_strerror mkstemp getline getdelim mremap memmove fsync bzero \
13959 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign
13961 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13962 echo "$as_me:$LINENO: checking for $ac_func" >&5
13963 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13964 if eval "test \"\${$as_ac_var+set}\" = set"; then
13965 echo $ECHO_N "(cached) $ECHO_C" >&6
13967 cat >conftest.
$ac_ext <<_ACEOF
13970 cat confdefs.h
>>conftest.
$ac_ext
13971 cat >>conftest.
$ac_ext <<_ACEOF
13972 /* end confdefs.h. */
13973 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13974 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13975 #define $ac_func innocuous_$ac_func
13977 /* System header to define __stub macros and hopefully few prototypes,
13978 which can conflict with char $ac_func (); below.
13979 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13980 <limits.h> exists even on freestanding compilers. */
13983 # include <limits.h>
13985 # include <assert.h>
13990 /* Override any gcc2 internal prototype to avoid an error. */
13995 /* We use char because int might match the return type of a gcc2
13996 builtin and then its argument prototype would still apply. */
13998 /* The GNU C library defines this for functions which it implements
13999 to always fail with ENOSYS. Some functions are actually named
14000 something starting with __ and the normal name is an alias. */
14001 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14004 char (*f) () = $ac_func;
14013 return f != $ac_func;
14018 rm -f conftest.
$ac_objext conftest
$ac_exeext
14019 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14020 (eval $ac_link) 2>conftest.er1
14022 grep -v '^ *+' conftest.er1
>conftest.err
14024 cat conftest.err
>&5
14025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14026 (exit $ac_status); } &&
14027 { ac_try
='test -z "$ac_c_werror_flag"
14028 || test ! -s conftest.err'
14029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14030 (eval $ac_try) 2>&5
14032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14033 (exit $ac_status); }; } &&
14034 { ac_try
='test -s conftest$ac_exeext'
14035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14036 (eval $ac_try) 2>&5
14038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14039 (exit $ac_status); }; }; then
14040 eval "$as_ac_var=yes"
14042 echo "$as_me: failed program was:" >&5
14043 sed 's/^/| /' conftest.
$ac_ext >&5
14045 eval "$as_ac_var=no"
14047 rm -f conftest.err conftest.
$ac_objext \
14048 conftest
$ac_exeext conftest.
$ac_ext
14050 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14051 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14052 if test `eval echo '${'$as_ac_var'}'` = yes; then
14053 cat >>confdefs.h
<<_ACEOF
14054 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14062 for ac_header
in sys
/un.h
14064 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14065 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14066 echo "$as_me:$LINENO: checking for $ac_header" >&5
14067 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14068 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14069 echo $ECHO_N "(cached) $ECHO_C" >&6
14071 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14072 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14074 # Is the header compilable?
14075 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14076 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14077 cat >conftest.
$ac_ext <<_ACEOF
14080 cat confdefs.h
>>conftest.
$ac_ext
14081 cat >>conftest.
$ac_ext <<_ACEOF
14082 /* end confdefs.h. */
14083 $ac_includes_default
14084 #include <$ac_header>
14086 rm -f conftest.
$ac_objext
14087 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14088 (eval $ac_compile) 2>conftest.er1
14090 grep -v '^ *+' conftest.er1
>conftest.err
14092 cat conftest.err
>&5
14093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14094 (exit $ac_status); } &&
14095 { ac_try
='test -z "$ac_c_werror_flag"
14096 || test ! -s conftest.err'
14097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14098 (eval $ac_try) 2>&5
14100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14101 (exit $ac_status); }; } &&
14102 { ac_try
='test -s conftest.$ac_objext'
14103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14104 (eval $ac_try) 2>&5
14106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14107 (exit $ac_status); }; }; then
14108 ac_header_compiler
=yes
14110 echo "$as_me: failed program was:" >&5
14111 sed 's/^/| /' conftest.
$ac_ext >&5
14113 ac_header_compiler
=no
14115 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14116 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14117 echo "${ECHO_T}$ac_header_compiler" >&6
14119 # Is the header present?
14120 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14121 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14122 cat >conftest.
$ac_ext <<_ACEOF
14125 cat confdefs.h
>>conftest.
$ac_ext
14126 cat >>conftest.
$ac_ext <<_ACEOF
14127 /* end confdefs.h. */
14128 #include <$ac_header>
14130 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14131 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
14133 grep -v '^ *+' conftest.er1
>conftest.err
14135 cat conftest.err
>&5
14136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14137 (exit $ac_status); } >/dev
/null
; then
14138 if test -s conftest.err
; then
14139 ac_cpp_err
=$ac_c_preproc_warn_flag
14140 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
14147 if test -z "$ac_cpp_err"; then
14148 ac_header_preproc
=yes
14150 echo "$as_me: failed program was:" >&5
14151 sed 's/^/| /' conftest.
$ac_ext >&5
14153 ac_header_preproc
=no
14155 rm -f conftest.err conftest.
$ac_ext
14156 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14157 echo "${ECHO_T}$ac_header_preproc" >&6
14159 # So? What about this header?
14160 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14162 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14163 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14164 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14165 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14166 ac_header_preproc
=yes
14169 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14170 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14171 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14172 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14173 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14174 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14175 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14176 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14177 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14178 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14179 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14180 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14183 ## ------------------------------------------ ##
14184 ## Report this to the AC_PACKAGE_NAME lists. ##
14185 ## ------------------------------------------ ##
14188 sed "s/^/$as_me: WARNING: /" >&2
14191 echo "$as_me:$LINENO: checking for $ac_header" >&5
14192 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14193 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14194 echo $ECHO_N "(cached) $ECHO_C" >&6
14196 eval "$as_ac_Header=\$ac_header_preproc"
14198 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14199 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14202 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14203 cat >>confdefs.h
<<_ACEOF
14204 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14215 for ac_header
in stdlib.h sys
/time.h unistd.h
14217 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14218 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14219 echo "$as_me:$LINENO: checking for $ac_header" >&5
14220 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14221 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14222 echo $ECHO_N "(cached) $ECHO_C" >&6
14224 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14225 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14227 # Is the header compilable?
14228 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14229 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14230 cat >conftest.
$ac_ext <<_ACEOF
14233 cat confdefs.h
>>conftest.
$ac_ext
14234 cat >>conftest.
$ac_ext <<_ACEOF
14235 /* end confdefs.h. */
14236 $ac_includes_default
14237 #include <$ac_header>
14239 rm -f conftest.
$ac_objext
14240 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14241 (eval $ac_compile) 2>conftest.er1
14243 grep -v '^ *+' conftest.er1
>conftest.err
14245 cat conftest.err
>&5
14246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14247 (exit $ac_status); } &&
14248 { ac_try
='test -z "$ac_c_werror_flag"
14249 || test ! -s conftest.err'
14250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14251 (eval $ac_try) 2>&5
14253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14254 (exit $ac_status); }; } &&
14255 { ac_try
='test -s conftest.$ac_objext'
14256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14257 (eval $ac_try) 2>&5
14259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14260 (exit $ac_status); }; }; then
14261 ac_header_compiler
=yes
14263 echo "$as_me: failed program was:" >&5
14264 sed 's/^/| /' conftest.
$ac_ext >&5
14266 ac_header_compiler
=no
14268 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14269 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14270 echo "${ECHO_T}$ac_header_compiler" >&6
14272 # Is the header present?
14273 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14274 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14275 cat >conftest.
$ac_ext <<_ACEOF
14278 cat confdefs.h
>>conftest.
$ac_ext
14279 cat >>conftest.
$ac_ext <<_ACEOF
14280 /* end confdefs.h. */
14281 #include <$ac_header>
14283 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14284 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
14286 grep -v '^ *+' conftest.er1
>conftest.err
14288 cat conftest.err
>&5
14289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14290 (exit $ac_status); } >/dev
/null
; then
14291 if test -s conftest.err
; then
14292 ac_cpp_err
=$ac_c_preproc_warn_flag
14293 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
14300 if test -z "$ac_cpp_err"; then
14301 ac_header_preproc
=yes
14303 echo "$as_me: failed program was:" >&5
14304 sed 's/^/| /' conftest.
$ac_ext >&5
14306 ac_header_preproc
=no
14308 rm -f conftest.err conftest.
$ac_ext
14309 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14310 echo "${ECHO_T}$ac_header_preproc" >&6
14312 # So? What about this header?
14313 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14315 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14316 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14317 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14318 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14319 ac_header_preproc
=yes
14322 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14323 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14324 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14325 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14326 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14327 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14328 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14329 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14330 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14331 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14332 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14333 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14336 ## ------------------------------------------ ##
14337 ## Report this to the AC_PACKAGE_NAME lists. ##
14338 ## ------------------------------------------ ##
14341 sed "s/^/$as_me: WARNING: /" >&2
14344 echo "$as_me:$LINENO: checking for $ac_header" >&5
14345 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14346 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14347 echo $ECHO_N "(cached) $ECHO_C" >&6
14349 eval "$as_ac_Header=\$ac_header_preproc"
14351 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14352 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14355 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14356 cat >>confdefs.h
<<_ACEOF
14357 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14365 for ac_func
in alarm
14367 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14368 echo "$as_me:$LINENO: checking for $ac_func" >&5
14369 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14370 if eval "test \"\${$as_ac_var+set}\" = set"; then
14371 echo $ECHO_N "(cached) $ECHO_C" >&6
14373 cat >conftest.
$ac_ext <<_ACEOF
14376 cat confdefs.h
>>conftest.
$ac_ext
14377 cat >>conftest.
$ac_ext <<_ACEOF
14378 /* end confdefs.h. */
14379 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14380 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14381 #define $ac_func innocuous_$ac_func
14383 /* System header to define __stub macros and hopefully few prototypes,
14384 which can conflict with char $ac_func (); below.
14385 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14386 <limits.h> exists even on freestanding compilers. */
14389 # include <limits.h>
14391 # include <assert.h>
14396 /* Override any gcc2 internal prototype to avoid an error. */
14401 /* We use char because int might match the return type of a gcc2
14402 builtin and then its argument prototype would still apply. */
14404 /* The GNU C library defines this for functions which it implements
14405 to always fail with ENOSYS. Some functions are actually named
14406 something starting with __ and the normal name is an alias. */
14407 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14410 char (*f) () = $ac_func;
14419 return f != $ac_func;
14424 rm -f conftest.
$ac_objext conftest
$ac_exeext
14425 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14426 (eval $ac_link) 2>conftest.er1
14428 grep -v '^ *+' conftest.er1
>conftest.err
14430 cat conftest.err
>&5
14431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14432 (exit $ac_status); } &&
14433 { ac_try
='test -z "$ac_c_werror_flag"
14434 || test ! -s conftest.err'
14435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14436 (eval $ac_try) 2>&5
14438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14439 (exit $ac_status); }; } &&
14440 { ac_try
='test -s conftest$ac_exeext'
14441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14442 (eval $ac_try) 2>&5
14444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14445 (exit $ac_status); }; }; then
14446 eval "$as_ac_var=yes"
14448 echo "$as_me: failed program was:" >&5
14449 sed 's/^/| /' conftest.
$ac_ext >&5
14451 eval "$as_ac_var=no"
14453 rm -f conftest.err conftest.
$ac_objext \
14454 conftest
$ac_exeext conftest.
$ac_ext
14456 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14457 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14458 if test `eval echo '${'$as_ac_var'}'` = yes; then
14459 cat >>confdefs.h
<<_ACEOF
14460 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14466 echo "$as_me:$LINENO: checking for working mktime" >&5
14467 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
14468 if test "${ac_cv_func_working_mktime+set}" = set; then
14469 echo $ECHO_N "(cached) $ECHO_C" >&6
14471 if test "$cross_compiling" = yes; then
14472 ac_cv_func_working_mktime
=no
14474 cat >conftest.
$ac_ext <<_ACEOF
14477 cat confdefs.h
>>conftest.
$ac_ext
14478 cat >>conftest.
$ac_ext <<_ACEOF
14479 /* end confdefs.h. */
14480 /* Test program from Paul Eggert and Tony Leneis. */
14481 #if TIME_WITH_SYS_TIME
14482 # include <sys/time.h>
14485 # if HAVE_SYS_TIME_H
14486 # include <sys/time.h>
14493 # include <stdlib.h>
14497 # include <unistd.h>
14501 # define alarm(X) /* empty */
14504 /* Work around redefinition to rpl_putenv by other config tests. */
14507 static time_t time_t_max;
14508 static time_t time_t_min;
14510 /* Values we'll use to set the TZ environment variable. */
14511 static char *tz_strings[] = {
14512 (char *) 0, "TZ=GMT0", "TZ=JST-9",
14513 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
14515 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
14517 /* Fail if mktime fails to convert a date in the spring-forward gap.
14518 Based on a problem report from Andreas Jaeger. */
14520 spring_forward_gap ()
14522 /* glibc (up to about 1998-10-07) failed this test. */
14525 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
14526 instead of "TZ=America/Vancouver" in order to detect the bug even
14527 on systems that don't support the Olson extension, or don't have the
14528 full zoneinfo tables installed. */
14529 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
14538 if (mktime (&tm) == (time_t)-1)
14547 if ((lt = localtime (&now)) && mktime (lt) != now)
14555 mktime_test1 (now);
14556 mktime_test1 ((time_t) (time_t_max - now));
14557 mktime_test1 ((time_t) (time_t_min + now));
14563 /* Based on code from Ariel Faigon. */
14573 if (tm.tm_mon != 2 || tm.tm_mday != 31)
14583 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
14584 now = mktime (&tm);
14585 if (now != (time_t) -1)
14587 struct tm *lt = localtime (&now);
14589 && lt->tm_year == tm.tm_year
14590 && lt->tm_mon == tm.tm_mon
14591 && lt->tm_mday == tm.tm_mday
14592 && lt->tm_hour == tm.tm_hour
14593 && lt->tm_min == tm.tm_min
14594 && lt->tm_sec == tm.tm_sec
14595 && lt->tm_yday == tm.tm_yday
14596 && lt->tm_wday == tm.tm_wday
14597 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
14598 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
14609 /* This test makes some buggy mktime implementations loop.
14610 Give up after 60 seconds; a mktime slower than that
14611 isn't worth using anyway. */
14614 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
14617 if ((time_t) -1 < 0)
14618 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
14620 delta = time_t_max / 997; /* a suitable prime number */
14621 for (i = 0; i < N_STRINGS; i++)
14624 putenv (tz_strings[i]);
14626 for (t = 0; t <= time_t_max - delta; t += delta)
14628 mktime_test ((time_t) 1);
14629 mktime_test ((time_t) (60 * 60));
14630 mktime_test ((time_t) (60 * 60 * 24));
14632 for (j = 1; 0 < j; j *= 2)
14634 bigtime_test (j - 1);
14637 spring_forward_gap ();
14641 rm -f conftest
$ac_exeext
14642 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14643 (eval $ac_link) 2>&5
14645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14646 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
14647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14648 (eval $ac_try) 2>&5
14650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14651 (exit $ac_status); }; }; then
14652 ac_cv_func_working_mktime
=yes
14654 echo "$as_me: program exited with status $ac_status" >&5
14655 echo "$as_me: failed program was:" >&5
14656 sed 's/^/| /' conftest.
$ac_ext >&5
14658 ( exit $ac_status )
14659 ac_cv_func_working_mktime
=no
14661 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
14664 echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
14665 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
14666 if test $ac_cv_func_working_mktime = no
; then
14668 "mktime.$ac_objext" | \
14669 *" mktime.$ac_objext" | \
14670 "mktime.$ac_objext "* | \
14671 *" mktime.$ac_objext "* ) ;;
14672 *) LIBOBJS
="$LIBOBJS mktime.$ac_objext" ;;
14677 if test "$ac_cv_func_working_mktime" = no
; then
14679 cat >>confdefs.h
<<\_ACEOF
14680 #define BROKEN_MKTIME 1
14685 ac_have_func
=no
# yes means we've found a way to get the load average.
14687 # Make sure getloadavg.c is where it belongs, at configure-time.
14688 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
14689 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
14690 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
14691 { (exit 1); exit 1; }; }
14695 # Check for getloadavg, but be sure not to touch the cache variable.
14696 (echo "$as_me:$LINENO: checking for getloadavg" >&5
14697 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6
14698 if test "${ac_cv_func_getloadavg+set}" = set; then
14699 echo $ECHO_N "(cached) $ECHO_C" >&6
14701 cat >conftest.
$ac_ext <<_ACEOF
14704 cat confdefs.h
>>conftest.
$ac_ext
14705 cat >>conftest.
$ac_ext <<_ACEOF
14706 /* end confdefs.h. */
14707 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
14708 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14709 #define getloadavg innocuous_getloadavg
14711 /* System header to define __stub macros and hopefully few prototypes,
14712 which can conflict with char getloadavg (); below.
14713 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14714 <limits.h> exists even on freestanding compilers. */
14717 # include <limits.h>
14719 # include <assert.h>
14724 /* Override any gcc2 internal prototype to avoid an error. */
14729 /* We use char because int might match the return type of a gcc2
14730 builtin and then its argument prototype would still apply. */
14731 char getloadavg ();
14732 /* The GNU C library defines this for functions which it implements
14733 to always fail with ENOSYS. Some functions are actually named
14734 something starting with __ and the normal name is an alias. */
14735 #if defined (__stub_getloadavg) || defined (__stub___getloadavg)
14738 char (*f) () = getloadavg;
14747 return f != getloadavg;
14752 rm -f conftest.
$ac_objext conftest
$ac_exeext
14753 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14754 (eval $ac_link) 2>conftest.er1
14756 grep -v '^ *+' conftest.er1
>conftest.err
14758 cat conftest.err
>&5
14759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14760 (exit $ac_status); } &&
14761 { ac_try
='test -z "$ac_c_werror_flag"
14762 || test ! -s conftest.err'
14763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14764 (eval $ac_try) 2>&5
14766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14767 (exit $ac_status); }; } &&
14768 { ac_try
='test -s conftest$ac_exeext'
14769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14770 (eval $ac_try) 2>&5
14772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14773 (exit $ac_status); }; }; then
14774 ac_cv_func_getloadavg
=yes
14776 echo "$as_me: failed program was:" >&5
14777 sed 's/^/| /' conftest.
$ac_ext >&5
14779 ac_cv_func_getloadavg
=no
14781 rm -f conftest.err conftest.
$ac_objext \
14782 conftest
$ac_exeext conftest.
$ac_ext
14784 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
14785 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6
14786 if test $ac_cv_func_getloadavg = yes; then
14791 ) && ac_have_func
=yes
14793 # On HPUX9, an unprivileged user can get load averages through this function.
14795 for ac_func
in pstat_getdynamic
14797 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14798 echo "$as_me:$LINENO: checking for $ac_func" >&5
14799 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14800 if eval "test \"\${$as_ac_var+set}\" = set"; then
14801 echo $ECHO_N "(cached) $ECHO_C" >&6
14803 cat >conftest.
$ac_ext <<_ACEOF
14806 cat confdefs.h
>>conftest.
$ac_ext
14807 cat >>conftest.
$ac_ext <<_ACEOF
14808 /* end confdefs.h. */
14809 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14810 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14811 #define $ac_func innocuous_$ac_func
14813 /* System header to define __stub macros and hopefully few prototypes,
14814 which can conflict with char $ac_func (); below.
14815 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14816 <limits.h> exists even on freestanding compilers. */
14819 # include <limits.h>
14821 # include <assert.h>
14826 /* Override any gcc2 internal prototype to avoid an error. */
14831 /* We use char because int might match the return type of a gcc2
14832 builtin and then its argument prototype would still apply. */
14834 /* The GNU C library defines this for functions which it implements
14835 to always fail with ENOSYS. Some functions are actually named
14836 something starting with __ and the normal name is an alias. */
14837 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14840 char (*f) () = $ac_func;
14849 return f != $ac_func;
14854 rm -f conftest.
$ac_objext conftest
$ac_exeext
14855 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14856 (eval $ac_link) 2>conftest.er1
14858 grep -v '^ *+' conftest.er1
>conftest.err
14860 cat conftest.err
>&5
14861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14862 (exit $ac_status); } &&
14863 { ac_try
='test -z "$ac_c_werror_flag"
14864 || test ! -s conftest.err'
14865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14866 (eval $ac_try) 2>&5
14868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14869 (exit $ac_status); }; } &&
14870 { ac_try
='test -s conftest$ac_exeext'
14871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14872 (eval $ac_try) 2>&5
14874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14875 (exit $ac_status); }; }; then
14876 eval "$as_ac_var=yes"
14878 echo "$as_me: failed program was:" >&5
14879 sed 's/^/| /' conftest.
$ac_ext >&5
14881 eval "$as_ac_var=no"
14883 rm -f conftest.err conftest.
$ac_objext \
14884 conftest
$ac_exeext conftest.
$ac_ext
14886 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14887 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14888 if test `eval echo '${'$as_ac_var'}'` = yes; then
14889 cat >>confdefs.h
<<_ACEOF
14890 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14897 # Solaris has libkstat which does not require root.
14899 echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
14900 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6
14901 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
14902 echo $ECHO_N "(cached) $ECHO_C" >&6
14904 ac_check_lib_save_LIBS
=$LIBS
14905 LIBS
="-lkstat $LIBS"
14906 cat >conftest.
$ac_ext <<_ACEOF
14909 cat confdefs.h
>>conftest.
$ac_ext
14910 cat >>conftest.
$ac_ext <<_ACEOF
14911 /* end confdefs.h. */
14913 /* Override any gcc2 internal prototype to avoid an error. */
14917 /* We use char because int might match the return type of a gcc2
14918 builtin and then its argument prototype would still apply. */
14919 char kstat_open ();
14928 rm -f conftest.
$ac_objext conftest
$ac_exeext
14929 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14930 (eval $ac_link) 2>conftest.er1
14932 grep -v '^ *+' conftest.er1
>conftest.err
14934 cat conftest.err
>&5
14935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14936 (exit $ac_status); } &&
14937 { ac_try
='test -z "$ac_c_werror_flag"
14938 || test ! -s conftest.err'
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); }; } &&
14944 { ac_try
='test -s conftest$ac_exeext'
14945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14946 (eval $ac_try) 2>&5
14948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14949 (exit $ac_status); }; }; then
14950 ac_cv_lib_kstat_kstat_open
=yes
14952 echo "$as_me: failed program was:" >&5
14953 sed 's/^/| /' conftest.
$ac_ext >&5
14955 ac_cv_lib_kstat_kstat_open
=no
14957 rm -f conftest.err conftest.
$ac_objext \
14958 conftest
$ac_exeext conftest.
$ac_ext
14959 LIBS
=$ac_check_lib_save_LIBS
14961 echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
14962 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6
14963 if test $ac_cv_lib_kstat_kstat_open = yes; then
14964 cat >>confdefs.h
<<_ACEOF
14965 #define HAVE_LIBKSTAT 1
14968 LIBS
="-lkstat $LIBS"
14972 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func
=yes
14974 # Some systems with -lutil have (and need) -lkvm as well, some do not.
14975 # On Solaris, -lkvm requires nlist from -lelf, so check that first
14976 # to get the right answer into the cache.
14977 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
14978 if test $ac_have_func = no
; then
14979 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
14980 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
14981 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
14982 echo $ECHO_N "(cached) $ECHO_C" >&6
14984 ac_check_lib_save_LIBS
=$LIBS
14986 cat >conftest.
$ac_ext <<_ACEOF
14989 cat confdefs.h
>>conftest.
$ac_ext
14990 cat >>conftest.
$ac_ext <<_ACEOF
14991 /* end confdefs.h. */
14993 /* Override any gcc2 internal prototype to avoid an error. */
14997 /* We use char because int might match the return type of a gcc2
14998 builtin and then its argument prototype would still apply. */
15008 rm -f conftest.
$ac_objext conftest
$ac_exeext
15009 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15010 (eval $ac_link) 2>conftest.er1
15012 grep -v '^ *+' conftest.er1
>conftest.err
15014 cat conftest.err
>&5
15015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15016 (exit $ac_status); } &&
15017 { ac_try
='test -z "$ac_c_werror_flag"
15018 || test ! -s conftest.err'
15019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15020 (eval $ac_try) 2>&5
15022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15023 (exit $ac_status); }; } &&
15024 { ac_try
='test -s conftest$ac_exeext'
15025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15026 (eval $ac_try) 2>&5
15028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15029 (exit $ac_status); }; }; then
15030 ac_cv_lib_elf_elf_begin
=yes
15032 echo "$as_me: failed program was:" >&5
15033 sed 's/^/| /' conftest.
$ac_ext >&5
15035 ac_cv_lib_elf_elf_begin
=no
15037 rm -f conftest.err conftest.
$ac_objext \
15038 conftest
$ac_exeext conftest.
$ac_ext
15039 LIBS
=$ac_check_lib_save_LIBS
15041 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
15042 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
15043 if test $ac_cv_lib_elf_elf_begin = yes; then
15048 if test $ac_have_func = no
; then
15049 echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
15050 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6
15051 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
15052 echo $ECHO_N "(cached) $ECHO_C" >&6
15054 ac_check_lib_save_LIBS
=$LIBS
15056 cat >conftest.
$ac_ext <<_ACEOF
15059 cat confdefs.h
>>conftest.
$ac_ext
15060 cat >>conftest.
$ac_ext <<_ACEOF
15061 /* end confdefs.h. */
15063 /* Override any gcc2 internal prototype to avoid an error. */
15067 /* We use char because int might match the return type of a gcc2
15068 builtin and then its argument prototype would still apply. */
15078 rm -f conftest.
$ac_objext conftest
$ac_exeext
15079 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15080 (eval $ac_link) 2>conftest.er1
15082 grep -v '^ *+' conftest.er1
>conftest.err
15084 cat conftest.err
>&5
15085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15086 (exit $ac_status); } &&
15087 { ac_try
='test -z "$ac_c_werror_flag"
15088 || test ! -s conftest.err'
15089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15090 (eval $ac_try) 2>&5
15092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15093 (exit $ac_status); }; } &&
15094 { ac_try
='test -s conftest$ac_exeext'
15095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15096 (eval $ac_try) 2>&5
15098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15099 (exit $ac_status); }; }; then
15100 ac_cv_lib_kvm_kvm_open
=yes
15102 echo "$as_me: failed program was:" >&5
15103 sed 's/^/| /' conftest.
$ac_ext >&5
15105 ac_cv_lib_kvm_kvm_open
=no
15107 rm -f conftest.err conftest.
$ac_objext \
15108 conftest
$ac_exeext conftest.
$ac_ext
15109 LIBS
=$ac_check_lib_save_LIBS
15111 echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
15112 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6
15113 if test $ac_cv_lib_kvm_kvm_open = yes; then
15117 # Check for the 4.4BSD definition of getloadavg.
15118 echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
15119 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6
15120 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
15121 echo $ECHO_N "(cached) $ECHO_C" >&6
15123 ac_check_lib_save_LIBS
=$LIBS
15124 LIBS
="-lutil $LIBS"
15125 cat >conftest.
$ac_ext <<_ACEOF
15128 cat confdefs.h
>>conftest.
$ac_ext
15129 cat >>conftest.
$ac_ext <<_ACEOF
15130 /* end confdefs.h. */
15132 /* Override any gcc2 internal prototype to avoid an error. */
15136 /* We use char because int might match the return type of a gcc2
15137 builtin and then its argument prototype would still apply. */
15138 char getloadavg ();
15147 rm -f conftest.
$ac_objext conftest
$ac_exeext
15148 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15149 (eval $ac_link) 2>conftest.er1
15151 grep -v '^ *+' conftest.er1
>conftest.err
15153 cat conftest.err
>&5
15154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15155 (exit $ac_status); } &&
15156 { ac_try
='test -z "$ac_c_werror_flag"
15157 || test ! -s conftest.err'
15158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15159 (eval $ac_try) 2>&5
15161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15162 (exit $ac_status); }; } &&
15163 { ac_try
='test -s conftest$ac_exeext'
15164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15165 (eval $ac_try) 2>&5
15167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15168 (exit $ac_status); }; }; then
15169 ac_cv_lib_util_getloadavg
=yes
15171 echo "$as_me: failed program was:" >&5
15172 sed 's/^/| /' conftest.
$ac_ext >&5
15174 ac_cv_lib_util_getloadavg
=no
15176 rm -f conftest.err conftest.
$ac_objext \
15177 conftest
$ac_exeext conftest.
$ac_ext
15178 LIBS
=$ac_check_lib_save_LIBS
15180 echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
15181 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6
15182 if test $ac_cv_lib_util_getloadavg = yes; then
15183 LIBS
="-lutil $LIBS" ac_have_func
=yes ac_cv_func_getloadavg_setgid
=yes
15188 if test $ac_have_func = no
; then
15189 # There is a commonly available library for RS/6000 AIX.
15190 # Since it is not a standard part of AIX, it might be installed locally.
15191 ac_getloadavg_LIBS
=$LIBS
15192 LIBS
="-L/usr/local/lib $LIBS"
15193 echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
15194 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6
15195 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
15196 echo $ECHO_N "(cached) $ECHO_C" >&6
15198 ac_check_lib_save_LIBS
=$LIBS
15199 LIBS
="-lgetloadavg $LIBS"
15200 cat >conftest.
$ac_ext <<_ACEOF
15203 cat confdefs.h
>>conftest.
$ac_ext
15204 cat >>conftest.
$ac_ext <<_ACEOF
15205 /* end confdefs.h. */
15207 /* Override any gcc2 internal prototype to avoid an error. */
15211 /* We use char because int might match the return type of a gcc2
15212 builtin and then its argument prototype would still apply. */
15213 char getloadavg ();
15222 rm -f conftest.
$ac_objext conftest
$ac_exeext
15223 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15224 (eval $ac_link) 2>conftest.er1
15226 grep -v '^ *+' conftest.er1
>conftest.err
15228 cat conftest.err
>&5
15229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15230 (exit $ac_status); } &&
15231 { ac_try
='test -z "$ac_c_werror_flag"
15232 || test ! -s conftest.err'
15233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15234 (eval $ac_try) 2>&5
15236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15237 (exit $ac_status); }; } &&
15238 { ac_try
='test -s conftest$ac_exeext'
15239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15240 (eval $ac_try) 2>&5
15242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15243 (exit $ac_status); }; }; then
15244 ac_cv_lib_getloadavg_getloadavg
=yes
15246 echo "$as_me: failed program was:" >&5
15247 sed 's/^/| /' conftest.
$ac_ext >&5
15249 ac_cv_lib_getloadavg_getloadavg
=no
15251 rm -f conftest.err conftest.
$ac_objext \
15252 conftest
$ac_exeext conftest.
$ac_ext
15253 LIBS
=$ac_check_lib_save_LIBS
15255 echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
15256 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6
15257 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
15258 LIBS
="-lgetloadavg $LIBS"
15260 LIBS
=$ac_getloadavg_LIBS
15265 # Make sure it is really in the library, if we think we found it,
15266 # otherwise set up the replacement function.
15268 for ac_func
in getloadavg
15270 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15271 echo "$as_me:$LINENO: checking for $ac_func" >&5
15272 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15273 if eval "test \"\${$as_ac_var+set}\" = set"; then
15274 echo $ECHO_N "(cached) $ECHO_C" >&6
15276 cat >conftest.
$ac_ext <<_ACEOF
15279 cat confdefs.h
>>conftest.
$ac_ext
15280 cat >>conftest.
$ac_ext <<_ACEOF
15281 /* end confdefs.h. */
15282 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15283 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15284 #define $ac_func innocuous_$ac_func
15286 /* System header to define __stub macros and hopefully few prototypes,
15287 which can conflict with char $ac_func (); below.
15288 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15289 <limits.h> exists even on freestanding compilers. */
15292 # include <limits.h>
15294 # include <assert.h>
15299 /* Override any gcc2 internal prototype to avoid an error. */
15304 /* We use char because int might match the return type of a gcc2
15305 builtin and then its argument prototype would still apply. */
15307 /* The GNU C library defines this for functions which it implements
15308 to always fail with ENOSYS. Some functions are actually named
15309 something starting with __ and the normal name is an alias. */
15310 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15313 char (*f) () = $ac_func;
15322 return f != $ac_func;
15327 rm -f conftest.
$ac_objext conftest
$ac_exeext
15328 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15329 (eval $ac_link) 2>conftest.er1
15331 grep -v '^ *+' conftest.er1
>conftest.err
15333 cat conftest.err
>&5
15334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15335 (exit $ac_status); } &&
15336 { ac_try
='test -z "$ac_c_werror_flag"
15337 || test ! -s conftest.err'
15338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15339 (eval $ac_try) 2>&5
15341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15342 (exit $ac_status); }; } &&
15343 { ac_try
='test -s conftest$ac_exeext'
15344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15345 (eval $ac_try) 2>&5
15347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15348 (exit $ac_status); }; }; then
15349 eval "$as_ac_var=yes"
15351 echo "$as_me: failed program was:" >&5
15352 sed 's/^/| /' conftest.
$ac_ext >&5
15354 eval "$as_ac_var=no"
15356 rm -f conftest.err conftest.
$ac_objext \
15357 conftest
$ac_exeext conftest.
$ac_ext
15359 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15360 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15361 if test `eval echo '${'$as_ac_var'}'` = yes; then
15362 cat >>confdefs.h
<<_ACEOF
15363 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15368 "getloadavg.$ac_objext" | \
15369 *" getloadavg.$ac_objext" | \
15370 "getloadavg.$ac_objext "* | \
15371 *" getloadavg.$ac_objext "* ) ;;
15372 *) LIBOBJS
="$LIBOBJS getloadavg.$ac_objext" ;;
15376 cat >>confdefs.h
<<\_ACEOF
15377 #define C_GETLOADAVG 1
15380 # Figure out what our getloadavg.c needs.
15382 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
15383 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
15384 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
15385 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
15386 echo $ECHO_N "(cached) $ECHO_C" >&6
15388 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
15389 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
15391 # Is the header compilable?
15392 echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
15393 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6
15394 cat >conftest.
$ac_ext <<_ACEOF
15397 cat confdefs.h
>>conftest.
$ac_ext
15398 cat >>conftest.
$ac_ext <<_ACEOF
15399 /* end confdefs.h. */
15400 $ac_includes_default
15401 #include <sys/dg_sys_info.h>
15403 rm -f conftest.
$ac_objext
15404 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15405 (eval $ac_compile) 2>conftest.er1
15407 grep -v '^ *+' conftest.er1
>conftest.err
15409 cat conftest.err
>&5
15410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15411 (exit $ac_status); } &&
15412 { ac_try
='test -z "$ac_c_werror_flag"
15413 || test ! -s conftest.err'
15414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15415 (eval $ac_try) 2>&5
15417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15418 (exit $ac_status); }; } &&
15419 { ac_try
='test -s conftest.$ac_objext'
15420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15421 (eval $ac_try) 2>&5
15423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15424 (exit $ac_status); }; }; then
15425 ac_header_compiler
=yes
15427 echo "$as_me: failed program was:" >&5
15428 sed 's/^/| /' conftest.
$ac_ext >&5
15430 ac_header_compiler
=no
15432 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15433 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15434 echo "${ECHO_T}$ac_header_compiler" >&6
15436 # Is the header present?
15437 echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
15438 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6
15439 cat >conftest.
$ac_ext <<_ACEOF
15442 cat confdefs.h
>>conftest.
$ac_ext
15443 cat >>conftest.
$ac_ext <<_ACEOF
15444 /* end confdefs.h. */
15445 #include <sys/dg_sys_info.h>
15447 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15448 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
15450 grep -v '^ *+' conftest.er1
>conftest.err
15452 cat conftest.err
>&5
15453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15454 (exit $ac_status); } >/dev
/null
; then
15455 if test -s conftest.err
; then
15456 ac_cpp_err
=$ac_c_preproc_warn_flag
15457 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
15464 if test -z "$ac_cpp_err"; then
15465 ac_header_preproc
=yes
15467 echo "$as_me: failed program was:" >&5
15468 sed 's/^/| /' conftest.
$ac_ext >&5
15470 ac_header_preproc
=no
15472 rm -f conftest.err conftest.
$ac_ext
15473 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15474 echo "${ECHO_T}$ac_header_preproc" >&6
15476 # So? What about this header?
15477 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15479 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
15480 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15481 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
15482 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
15483 ac_header_preproc
=yes
15486 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
15487 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
15488 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
15489 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
15490 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
15491 echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
15492 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
15493 echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
15494 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
15495 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
15496 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
15497 echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
15500 ## ------------------------------------------ ##
15501 ## Report this to the AC_PACKAGE_NAME lists. ##
15502 ## ------------------------------------------ ##
15505 sed "s/^/$as_me: WARNING: /" >&2
15508 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
15509 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
15510 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
15511 echo $ECHO_N "(cached) $ECHO_C" >&6
15513 ac_cv_header_sys_dg_sys_info_h
=$ac_header_preproc
15515 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
15516 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
15519 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
15522 cat >>confdefs.h
<<\_ACEOF
15527 echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
15528 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6
15529 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
15530 echo $ECHO_N "(cached) $ECHO_C" >&6
15532 ac_check_lib_save_LIBS
=$LIBS
15534 cat >conftest.
$ac_ext <<_ACEOF
15537 cat confdefs.h
>>conftest.
$ac_ext
15538 cat >>conftest.
$ac_ext <<_ACEOF
15539 /* end confdefs.h. */
15541 /* Override any gcc2 internal prototype to avoid an error. */
15545 /* We use char because int might match the return type of a gcc2
15546 builtin and then its argument prototype would still apply. */
15547 char dg_sys_info ();
15556 rm -f conftest.
$ac_objext conftest
$ac_exeext
15557 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15558 (eval $ac_link) 2>conftest.er1
15560 grep -v '^ *+' conftest.er1
>conftest.err
15562 cat conftest.err
>&5
15563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15564 (exit $ac_status); } &&
15565 { ac_try
='test -z "$ac_c_werror_flag"
15566 || test ! -s conftest.err'
15567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15568 (eval $ac_try) 2>&5
15570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15571 (exit $ac_status); }; } &&
15572 { ac_try
='test -s conftest$ac_exeext'
15573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15574 (eval $ac_try) 2>&5
15576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15577 (exit $ac_status); }; }; then
15578 ac_cv_lib_dgc_dg_sys_info
=yes
15580 echo "$as_me: failed program was:" >&5
15581 sed 's/^/| /' conftest.
$ac_ext >&5
15583 ac_cv_lib_dgc_dg_sys_info
=no
15585 rm -f conftest.err conftest.
$ac_objext \
15586 conftest
$ac_exeext conftest.
$ac_ext
15587 LIBS
=$ac_check_lib_save_LIBS
15589 echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
15590 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6
15591 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
15592 cat >>confdefs.h
<<_ACEOF
15593 #define HAVE_LIBDGC 1
15604 if test "${ac_cv_header_locale_h+set}" = set; then
15605 echo "$as_me:$LINENO: checking for locale.h" >&5
15606 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
15607 if test "${ac_cv_header_locale_h+set}" = set; then
15608 echo $ECHO_N "(cached) $ECHO_C" >&6
15610 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
15611 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
15613 # Is the header compilable?
15614 echo "$as_me:$LINENO: checking locale.h usability" >&5
15615 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6
15616 cat >conftest.
$ac_ext <<_ACEOF
15619 cat confdefs.h
>>conftest.
$ac_ext
15620 cat >>conftest.
$ac_ext <<_ACEOF
15621 /* end confdefs.h. */
15622 $ac_includes_default
15623 #include <locale.h>
15625 rm -f conftest.
$ac_objext
15626 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15627 (eval $ac_compile) 2>conftest.er1
15629 grep -v '^ *+' conftest.er1
>conftest.err
15631 cat conftest.err
>&5
15632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15633 (exit $ac_status); } &&
15634 { ac_try
='test -z "$ac_c_werror_flag"
15635 || test ! -s conftest.err'
15636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15637 (eval $ac_try) 2>&5
15639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15640 (exit $ac_status); }; } &&
15641 { ac_try
='test -s conftest.$ac_objext'
15642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15643 (eval $ac_try) 2>&5
15645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15646 (exit $ac_status); }; }; then
15647 ac_header_compiler
=yes
15649 echo "$as_me: failed program was:" >&5
15650 sed 's/^/| /' conftest.
$ac_ext >&5
15652 ac_header_compiler
=no
15654 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15655 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15656 echo "${ECHO_T}$ac_header_compiler" >&6
15658 # Is the header present?
15659 echo "$as_me:$LINENO: checking locale.h presence" >&5
15660 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6
15661 cat >conftest.
$ac_ext <<_ACEOF
15664 cat confdefs.h
>>conftest.
$ac_ext
15665 cat >>conftest.
$ac_ext <<_ACEOF
15666 /* end confdefs.h. */
15667 #include <locale.h>
15669 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15670 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
15672 grep -v '^ *+' conftest.er1
>conftest.err
15674 cat conftest.err
>&5
15675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15676 (exit $ac_status); } >/dev
/null
; then
15677 if test -s conftest.err
; then
15678 ac_cpp_err
=$ac_c_preproc_warn_flag
15679 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
15686 if test -z "$ac_cpp_err"; then
15687 ac_header_preproc
=yes
15689 echo "$as_me: failed program was:" >&5
15690 sed 's/^/| /' conftest.
$ac_ext >&5
15692 ac_header_preproc
=no
15694 rm -f conftest.err conftest.
$ac_ext
15695 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15696 echo "${ECHO_T}$ac_header_preproc" >&6
15698 # So? What about this header?
15699 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15701 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
15702 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15703 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
15704 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
15705 ac_header_preproc
=yes
15708 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
15709 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
15710 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
15711 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
15712 { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
15713 echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
15714 { echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
15715 echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
15716 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
15717 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
15718 { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
15719 echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
15722 ## ------------------------------------------ ##
15723 ## Report this to the AC_PACKAGE_NAME lists. ##
15724 ## ------------------------------------------ ##
15727 sed "s/^/$as_me: WARNING: /" >&2
15730 echo "$as_me:$LINENO: checking for locale.h" >&5
15731 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
15732 if test "${ac_cv_header_locale_h+set}" = set; then
15733 echo $ECHO_N "(cached) $ECHO_C" >&6
15735 ac_cv_header_locale_h
=$ac_header_preproc
15737 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
15738 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
15744 for ac_func
in setlocale
15746 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15747 echo "$as_me:$LINENO: checking for $ac_func" >&5
15748 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15749 if eval "test \"\${$as_ac_var+set}\" = set"; then
15750 echo $ECHO_N "(cached) $ECHO_C" >&6
15752 cat >conftest.
$ac_ext <<_ACEOF
15755 cat confdefs.h
>>conftest.
$ac_ext
15756 cat >>conftest.
$ac_ext <<_ACEOF
15757 /* end confdefs.h. */
15758 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15759 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15760 #define $ac_func innocuous_$ac_func
15762 /* System header to define __stub macros and hopefully few prototypes,
15763 which can conflict with char $ac_func (); below.
15764 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15765 <limits.h> exists even on freestanding compilers. */
15768 # include <limits.h>
15770 # include <assert.h>
15775 /* Override any gcc2 internal prototype to avoid an error. */
15780 /* We use char because int might match the return type of a gcc2
15781 builtin and then its argument prototype would still apply. */
15783 /* The GNU C library defines this for functions which it implements
15784 to always fail with ENOSYS. Some functions are actually named
15785 something starting with __ and the normal name is an alias. */
15786 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15789 char (*f) () = $ac_func;
15798 return f != $ac_func;
15803 rm -f conftest.
$ac_objext conftest
$ac_exeext
15804 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15805 (eval $ac_link) 2>conftest.er1
15807 grep -v '^ *+' conftest.er1
>conftest.err
15809 cat conftest.err
>&5
15810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15811 (exit $ac_status); } &&
15812 { ac_try
='test -z "$ac_c_werror_flag"
15813 || test ! -s conftest.err'
15814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15815 (eval $ac_try) 2>&5
15817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15818 (exit $ac_status); }; } &&
15819 { ac_try
='test -s conftest$ac_exeext'
15820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15821 (eval $ac_try) 2>&5
15823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15824 (exit $ac_status); }; }; then
15825 eval "$as_ac_var=yes"
15827 echo "$as_me: failed program was:" >&5
15828 sed 's/^/| /' conftest.
$ac_ext >&5
15830 eval "$as_ac_var=no"
15832 rm -f conftest.err conftest.
$ac_objext \
15833 conftest
$ac_exeext conftest.
$ac_ext
15835 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15836 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15837 if test `eval echo '${'$as_ac_var'}'` = yes; then
15838 cat >>confdefs.h
<<_ACEOF
15839 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15846 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
15847 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
15848 # Irix 4.0.5F has the header but not the library.
15849 if test $ac_have_func = no
&& test "$ac_cv_lib_elf_elf_begin" = yes; then
15852 cat >>confdefs.h
<<\_ACEOF
15858 if test $ac_have_func = no
; then
15859 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
15860 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
15861 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
15862 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
15863 echo $ECHO_N "(cached) $ECHO_C" >&6
15865 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
15866 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
15868 # Is the header compilable?
15869 echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
15870 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6
15871 cat >conftest.
$ac_ext <<_ACEOF
15874 cat confdefs.h
>>conftest.
$ac_ext
15875 cat >>conftest.
$ac_ext <<_ACEOF
15876 /* end confdefs.h. */
15877 $ac_includes_default
15878 #include <inq_stats/cpustats.h>
15880 rm -f conftest.
$ac_objext
15881 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15882 (eval $ac_compile) 2>conftest.er1
15884 grep -v '^ *+' conftest.er1
>conftest.err
15886 cat conftest.err
>&5
15887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15888 (exit $ac_status); } &&
15889 { ac_try
='test -z "$ac_c_werror_flag"
15890 || test ! -s conftest.err'
15891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15892 (eval $ac_try) 2>&5
15894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15895 (exit $ac_status); }; } &&
15896 { ac_try
='test -s conftest.$ac_objext'
15897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15898 (eval $ac_try) 2>&5
15900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15901 (exit $ac_status); }; }; then
15902 ac_header_compiler
=yes
15904 echo "$as_me: failed program was:" >&5
15905 sed 's/^/| /' conftest.
$ac_ext >&5
15907 ac_header_compiler
=no
15909 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15910 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15911 echo "${ECHO_T}$ac_header_compiler" >&6
15913 # Is the header present?
15914 echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
15915 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6
15916 cat >conftest.
$ac_ext <<_ACEOF
15919 cat confdefs.h
>>conftest.
$ac_ext
15920 cat >>conftest.
$ac_ext <<_ACEOF
15921 /* end confdefs.h. */
15922 #include <inq_stats/cpustats.h>
15924 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15925 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
15927 grep -v '^ *+' conftest.er1
>conftest.err
15929 cat conftest.err
>&5
15930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15931 (exit $ac_status); } >/dev
/null
; then
15932 if test -s conftest.err
; then
15933 ac_cpp_err
=$ac_c_preproc_warn_flag
15934 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
15941 if test -z "$ac_cpp_err"; then
15942 ac_header_preproc
=yes
15944 echo "$as_me: failed program was:" >&5
15945 sed 's/^/| /' conftest.
$ac_ext >&5
15947 ac_header_preproc
=no
15949 rm -f conftest.err conftest.
$ac_ext
15950 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15951 echo "${ECHO_T}$ac_header_preproc" >&6
15953 # So? What about this header?
15954 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15956 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
15957 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15958 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
15959 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
15960 ac_header_preproc
=yes
15963 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
15964 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
15965 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
15966 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
15967 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
15968 echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
15969 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
15970 echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
15971 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
15972 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
15973 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
15974 echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
15977 ## ------------------------------------------ ##
15978 ## Report this to the AC_PACKAGE_NAME lists. ##
15979 ## ------------------------------------------ ##
15982 sed "s/^/$as_me: WARNING: /" >&2
15985 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
15986 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
15987 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
15988 echo $ECHO_N "(cached) $ECHO_C" >&6
15990 ac_cv_header_inq_stats_cpustats_h
=$ac_header_preproc
15992 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
15993 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
15996 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
15999 cat >>confdefs.h
<<\_ACEOF
16004 cat >>confdefs.h
<<\_ACEOF
16013 if test $ac_have_func = no
; then
16014 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
16015 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
16016 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
16017 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
16018 echo $ECHO_N "(cached) $ECHO_C" >&6
16020 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
16021 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
16023 # Is the header compilable?
16024 echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
16025 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6
16026 cat >conftest.
$ac_ext <<_ACEOF
16029 cat confdefs.h
>>conftest.
$ac_ext
16030 cat >>conftest.
$ac_ext <<_ACEOF
16031 /* end confdefs.h. */
16032 $ac_includes_default
16033 #include <sys/cpustats.h>
16035 rm -f conftest.
$ac_objext
16036 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16037 (eval $ac_compile) 2>conftest.er1
16039 grep -v '^ *+' conftest.er1
>conftest.err
16041 cat conftest.err
>&5
16042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16043 (exit $ac_status); } &&
16044 { ac_try
='test -z "$ac_c_werror_flag"
16045 || test ! -s conftest.err'
16046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16047 (eval $ac_try) 2>&5
16049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16050 (exit $ac_status); }; } &&
16051 { ac_try
='test -s conftest.$ac_objext'
16052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16053 (eval $ac_try) 2>&5
16055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16056 (exit $ac_status); }; }; then
16057 ac_header_compiler
=yes
16059 echo "$as_me: failed program was:" >&5
16060 sed 's/^/| /' conftest.
$ac_ext >&5
16062 ac_header_compiler
=no
16064 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16065 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16066 echo "${ECHO_T}$ac_header_compiler" >&6
16068 # Is the header present?
16069 echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
16070 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6
16071 cat >conftest.
$ac_ext <<_ACEOF
16074 cat confdefs.h
>>conftest.
$ac_ext
16075 cat >>conftest.
$ac_ext <<_ACEOF
16076 /* end confdefs.h. */
16077 #include <sys/cpustats.h>
16079 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16080 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
16082 grep -v '^ *+' conftest.er1
>conftest.err
16084 cat conftest.err
>&5
16085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16086 (exit $ac_status); } >/dev
/null
; then
16087 if test -s conftest.err
; then
16088 ac_cpp_err
=$ac_c_preproc_warn_flag
16089 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
16096 if test -z "$ac_cpp_err"; then
16097 ac_header_preproc
=yes
16099 echo "$as_me: failed program was:" >&5
16100 sed 's/^/| /' conftest.
$ac_ext >&5
16102 ac_header_preproc
=no
16104 rm -f conftest.err conftest.
$ac_ext
16105 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16106 echo "${ECHO_T}$ac_header_preproc" >&6
16108 # So? What about this header?
16109 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16111 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
16112 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16113 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
16114 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
16115 ac_header_preproc
=yes
16118 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
16119 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
16120 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
16121 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
16122 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
16123 echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
16124 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
16125 echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
16126 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
16127 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
16128 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
16129 echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
16132 ## ------------------------------------------ ##
16133 ## Report this to the AC_PACKAGE_NAME lists. ##
16134 ## ------------------------------------------ ##
16137 sed "s/^/$as_me: WARNING: /" >&2
16140 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
16141 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
16142 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
16143 echo $ECHO_N "(cached) $ECHO_C" >&6
16145 ac_cv_header_sys_cpustats_h
=$ac_header_preproc
16147 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
16148 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
16151 if test $ac_cv_header_sys_cpustats_h = yes; then
16152 ac_have_func
=yes; cat >>confdefs.h
<<\_ACEOF
16161 if test $ac_have_func = no
; then
16163 for ac_header
in mach
/mach.h
16165 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16166 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16167 echo "$as_me:$LINENO: checking for $ac_header" >&5
16168 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16169 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16170 echo $ECHO_N "(cached) $ECHO_C" >&6
16172 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16173 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16175 # Is the header compilable?
16176 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16177 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16178 cat >conftest.
$ac_ext <<_ACEOF
16181 cat confdefs.h
>>conftest.
$ac_ext
16182 cat >>conftest.
$ac_ext <<_ACEOF
16183 /* end confdefs.h. */
16184 $ac_includes_default
16185 #include <$ac_header>
16187 rm -f conftest.
$ac_objext
16188 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16189 (eval $ac_compile) 2>conftest.er1
16191 grep -v '^ *+' conftest.er1
>conftest.err
16193 cat conftest.err
>&5
16194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16195 (exit $ac_status); } &&
16196 { ac_try
='test -z "$ac_c_werror_flag"
16197 || test ! -s conftest.err'
16198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16199 (eval $ac_try) 2>&5
16201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16202 (exit $ac_status); }; } &&
16203 { ac_try
='test -s conftest.$ac_objext'
16204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16205 (eval $ac_try) 2>&5
16207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16208 (exit $ac_status); }; }; then
16209 ac_header_compiler
=yes
16211 echo "$as_me: failed program was:" >&5
16212 sed 's/^/| /' conftest.
$ac_ext >&5
16214 ac_header_compiler
=no
16216 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16217 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16218 echo "${ECHO_T}$ac_header_compiler" >&6
16220 # Is the header present?
16221 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16222 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16223 cat >conftest.
$ac_ext <<_ACEOF
16226 cat confdefs.h
>>conftest.
$ac_ext
16227 cat >>conftest.
$ac_ext <<_ACEOF
16228 /* end confdefs.h. */
16229 #include <$ac_header>
16231 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16232 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
16234 grep -v '^ *+' conftest.er1
>conftest.err
16236 cat conftest.err
>&5
16237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16238 (exit $ac_status); } >/dev
/null
; then
16239 if test -s conftest.err
; then
16240 ac_cpp_err
=$ac_c_preproc_warn_flag
16241 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
16248 if test -z "$ac_cpp_err"; then
16249 ac_header_preproc
=yes
16251 echo "$as_me: failed program was:" >&5
16252 sed 's/^/| /' conftest.
$ac_ext >&5
16254 ac_header_preproc
=no
16256 rm -f conftest.err conftest.
$ac_ext
16257 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16258 echo "${ECHO_T}$ac_header_preproc" >&6
16260 # So? What about this header?
16261 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16263 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16264 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16265 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16266 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16267 ac_header_preproc
=yes
16270 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16271 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16272 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16273 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16274 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16275 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16276 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16277 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16278 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16279 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16280 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16281 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16284 ## ------------------------------------------ ##
16285 ## Report this to the AC_PACKAGE_NAME lists. ##
16286 ## ------------------------------------------ ##
16289 sed "s/^/$as_me: WARNING: /" >&2
16292 echo "$as_me:$LINENO: checking for $ac_header" >&5
16293 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16294 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16295 echo $ECHO_N "(cached) $ECHO_C" >&6
16297 eval "$as_ac_Header=\$ac_header_preproc"
16299 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16300 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16303 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16304 cat >>confdefs.h
<<_ACEOF
16305 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16315 for ac_header
in nlist.h
16317 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16318 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16319 echo "$as_me:$LINENO: checking for $ac_header" >&5
16320 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16321 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16322 echo $ECHO_N "(cached) $ECHO_C" >&6
16324 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16325 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16327 # Is the header compilable?
16328 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16329 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16330 cat >conftest.
$ac_ext <<_ACEOF
16333 cat confdefs.h
>>conftest.
$ac_ext
16334 cat >>conftest.
$ac_ext <<_ACEOF
16335 /* end confdefs.h. */
16336 $ac_includes_default
16337 #include <$ac_header>
16339 rm -f conftest.
$ac_objext
16340 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16341 (eval $ac_compile) 2>conftest.er1
16343 grep -v '^ *+' conftest.er1
>conftest.err
16345 cat conftest.err
>&5
16346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16347 (exit $ac_status); } &&
16348 { ac_try
='test -z "$ac_c_werror_flag"
16349 || test ! -s conftest.err'
16350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16351 (eval $ac_try) 2>&5
16353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16354 (exit $ac_status); }; } &&
16355 { ac_try
='test -s conftest.$ac_objext'
16356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16357 (eval $ac_try) 2>&5
16359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16360 (exit $ac_status); }; }; then
16361 ac_header_compiler
=yes
16363 echo "$as_me: failed program was:" >&5
16364 sed 's/^/| /' conftest.
$ac_ext >&5
16366 ac_header_compiler
=no
16368 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16369 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16370 echo "${ECHO_T}$ac_header_compiler" >&6
16372 # Is the header present?
16373 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16374 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16375 cat >conftest.
$ac_ext <<_ACEOF
16378 cat confdefs.h
>>conftest.
$ac_ext
16379 cat >>conftest.
$ac_ext <<_ACEOF
16380 /* end confdefs.h. */
16381 #include <$ac_header>
16383 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16384 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
16386 grep -v '^ *+' conftest.er1
>conftest.err
16388 cat conftest.err
>&5
16389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16390 (exit $ac_status); } >/dev
/null
; then
16391 if test -s conftest.err
; then
16392 ac_cpp_err
=$ac_c_preproc_warn_flag
16393 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
16400 if test -z "$ac_cpp_err"; then
16401 ac_header_preproc
=yes
16403 echo "$as_me: failed program was:" >&5
16404 sed 's/^/| /' conftest.
$ac_ext >&5
16406 ac_header_preproc
=no
16408 rm -f conftest.err conftest.
$ac_ext
16409 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16410 echo "${ECHO_T}$ac_header_preproc" >&6
16412 # So? What about this header?
16413 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16415 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16416 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16417 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16418 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16419 ac_header_preproc
=yes
16422 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16423 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16424 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16425 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16426 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16427 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16428 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16429 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16430 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16431 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16432 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16433 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16436 ## ------------------------------------------ ##
16437 ## Report this to the AC_PACKAGE_NAME lists. ##
16438 ## ------------------------------------------ ##
16441 sed "s/^/$as_me: WARNING: /" >&2
16444 echo "$as_me:$LINENO: checking for $ac_header" >&5
16445 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16446 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16447 echo $ECHO_N "(cached) $ECHO_C" >&6
16449 eval "$as_ac_Header=\$ac_header_preproc"
16451 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16452 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16455 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16456 cat >>confdefs.h
<<_ACEOF
16457 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16459 echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
16460 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6
16461 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
16462 echo $ECHO_N "(cached) $ECHO_C" >&6
16464 cat >conftest.
$ac_ext <<_ACEOF
16467 cat confdefs.h
>>conftest.
$ac_ext
16468 cat >>conftest.
$ac_ext <<_ACEOF
16469 /* end confdefs.h. */
16475 static struct nlist ac_aggr;
16476 if (ac_aggr.n_un.n_name)
16482 rm -f conftest.
$ac_objext
16483 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16484 (eval $ac_compile) 2>conftest.er1
16486 grep -v '^ *+' conftest.er1
>conftest.err
16488 cat conftest.err
>&5
16489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16490 (exit $ac_status); } &&
16491 { ac_try
='test -z "$ac_c_werror_flag"
16492 || test ! -s conftest.err'
16493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16494 (eval $ac_try) 2>&5
16496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16497 (exit $ac_status); }; } &&
16498 { ac_try
='test -s conftest.$ac_objext'
16499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16500 (eval $ac_try) 2>&5
16502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16503 (exit $ac_status); }; }; then
16504 ac_cv_member_struct_nlist_n_un_n_name
=yes
16506 echo "$as_me: failed program was:" >&5
16507 sed 's/^/| /' conftest.
$ac_ext >&5
16509 cat >conftest.
$ac_ext <<_ACEOF
16512 cat confdefs.h
>>conftest.
$ac_ext
16513 cat >>conftest.
$ac_ext <<_ACEOF
16514 /* end confdefs.h. */
16520 static struct nlist ac_aggr;
16521 if (sizeof ac_aggr.n_un.n_name)
16527 rm -f conftest.
$ac_objext
16528 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16529 (eval $ac_compile) 2>conftest.er1
16531 grep -v '^ *+' conftest.er1
>conftest.err
16533 cat conftest.err
>&5
16534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16535 (exit $ac_status); } &&
16536 { ac_try
='test -z "$ac_c_werror_flag"
16537 || test ! -s conftest.err'
16538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16539 (eval $ac_try) 2>&5
16541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16542 (exit $ac_status); }; } &&
16543 { ac_try
='test -s conftest.$ac_objext'
16544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16545 (eval $ac_try) 2>&5
16547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16548 (exit $ac_status); }; }; then
16549 ac_cv_member_struct_nlist_n_un_n_name
=yes
16551 echo "$as_me: failed program was:" >&5
16552 sed 's/^/| /' conftest.
$ac_ext >&5
16554 ac_cv_member_struct_nlist_n_un_n_name
=no
16556 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16558 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16560 echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
16561 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6
16562 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
16564 cat >>confdefs.h
<<_ACEOF
16565 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
16569 cat >>confdefs.h
<<\_ACEOF
16570 #define NLIST_NAME_UNION 1
16584 # Some definitions of getloadavg require that the program be installed setgid.
16585 echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
16586 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6
16587 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
16588 echo $ECHO_N "(cached) $ECHO_C" >&6
16590 cat >conftest.
$ac_ext <<_ACEOF
16593 cat confdefs.h
>>conftest.
$ac_ext
16594 cat >>conftest.
$ac_ext <<_ACEOF
16595 /* end confdefs.h. */
16596 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
16597 #ifdef LDAV_PRIVILEGED
16598 Yowza Am I SETGID yet
16601 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16602 $EGREP "Yowza Am I SETGID yet" >/dev
/null
2>&1; then
16603 ac_cv_func_getloadavg_setgid
=yes
16605 ac_cv_func_getloadavg_setgid
=no
16610 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
16611 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6
16612 if test $ac_cv_func_getloadavg_setgid = yes; then
16615 cat >>confdefs.h
<<\_ACEOF
16616 #define GETLOADAVG_PRIVILEGED 1
16623 if test $ac_cv_func_getloadavg_setgid = yes; then
16624 echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
16625 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6
16626 if test "${ac_cv_group_kmem+set}" = set; then
16627 echo $ECHO_N "(cached) $ECHO_C" >&6
16629 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
16630 ac_ls_output
=`ls -lgL /dev/kmem 2>/dev/null`
16631 # If we got an error (system does not support symlinks), try without -L.
16632 test -z "$ac_ls_output" && ac_ls_output
=`ls -lg /dev/kmem`
16633 ac_cv_group_kmem
=`echo $ac_ls_output \
16634 | sed -ne 's/[ ][ ]*/ /g;
16635 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
16639 echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
16640 echo "${ECHO_T}$ac_cv_group_kmem" >&6
16641 KMEM_GROUP
=$ac_cv_group_kmem
16643 if test "x$ac_save_LIBS" = x
; then
16644 GETLOADAVG_LIBS
=$LIBS
16646 GETLOADAVG_LIBS
=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
16652 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
16653 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
16654 if test "${ac_cv_sys_largefile_source+set}" = set; then
16655 echo $ECHO_N "(cached) $ECHO_C" >&6
16658 ac_cv_sys_largefile_source
=no
16659 cat >conftest.
$ac_ext <<_ACEOF
16662 cat confdefs.h
>>conftest.
$ac_ext
16663 cat >>conftest.
$ac_ext <<_ACEOF
16664 /* end confdefs.h. */
16674 rm -f conftest.
$ac_objext
16675 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16676 (eval $ac_compile) 2>conftest.er1
16678 grep -v '^ *+' conftest.er1
>conftest.err
16680 cat conftest.err
>&5
16681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16682 (exit $ac_status); } &&
16683 { ac_try
='test -z "$ac_c_werror_flag"
16684 || test ! -s conftest.err'
16685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16686 (eval $ac_try) 2>&5
16688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16689 (exit $ac_status); }; } &&
16690 { ac_try
='test -s conftest.$ac_objext'
16691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16692 (eval $ac_try) 2>&5
16694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16695 (exit $ac_status); }; }; then
16698 echo "$as_me: failed program was:" >&5
16699 sed 's/^/| /' conftest.
$ac_ext >&5
16702 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16703 cat >conftest.
$ac_ext <<_ACEOF
16706 cat confdefs.h
>>conftest.
$ac_ext
16707 cat >>conftest.
$ac_ext <<_ACEOF
16708 /* end confdefs.h. */
16709 #define _LARGEFILE_SOURCE 1
16719 rm -f conftest.
$ac_objext
16720 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16721 (eval $ac_compile) 2>conftest.er1
16723 grep -v '^ *+' conftest.er1
>conftest.err
16725 cat conftest.err
>&5
16726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16727 (exit $ac_status); } &&
16728 { ac_try
='test -z "$ac_c_werror_flag"
16729 || test ! -s conftest.err'
16730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16731 (eval $ac_try) 2>&5
16733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16734 (exit $ac_status); }; } &&
16735 { ac_try
='test -s conftest.$ac_objext'
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); }; }; then
16741 ac_cv_sys_largefile_source
=1; break
16743 echo "$as_me: failed program was:" >&5
16744 sed 's/^/| /' conftest.
$ac_ext >&5
16747 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16751 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
16752 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
16753 if test "$ac_cv_sys_largefile_source" != no
; then
16755 cat >>confdefs.h
<<_ACEOF
16756 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
16762 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
16763 # in glibc 2.1.3, but that breaks too many other things.
16764 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
16765 echo "$as_me:$LINENO: checking for fseeko" >&5
16766 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
16767 if test "${ac_cv_func_fseeko+set}" = set; then
16768 echo $ECHO_N "(cached) $ECHO_C" >&6
16770 cat >conftest.
$ac_ext <<_ACEOF
16773 cat confdefs.h
>>conftest.
$ac_ext
16774 cat >>conftest.
$ac_ext <<_ACEOF
16775 /* end confdefs.h. */
16780 return fseeko && fseeko (stdin, 0, 0);
16785 rm -f conftest.
$ac_objext conftest
$ac_exeext
16786 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16787 (eval $ac_link) 2>conftest.er1
16789 grep -v '^ *+' conftest.er1
>conftest.err
16791 cat conftest.err
>&5
16792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16793 (exit $ac_status); } &&
16794 { ac_try
='test -z "$ac_c_werror_flag"
16795 || test ! -s conftest.err'
16796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16797 (eval $ac_try) 2>&5
16799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16800 (exit $ac_status); }; } &&
16801 { ac_try
='test -s conftest$ac_exeext'
16802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16803 (eval $ac_try) 2>&5
16805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16806 (exit $ac_status); }; }; then
16807 ac_cv_func_fseeko
=yes
16809 echo "$as_me: failed program was:" >&5
16810 sed 's/^/| /' conftest.
$ac_ext >&5
16812 ac_cv_func_fseeko
=no
16814 rm -f conftest.err conftest.
$ac_objext \
16815 conftest
$ac_exeext conftest.
$ac_ext
16817 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
16818 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
16819 if test $ac_cv_func_fseeko = yes; then
16821 cat >>confdefs.h
<<\_ACEOF
16822 #define HAVE_FSEEKO 1
16828 echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
16829 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6
16830 if test "${ac_cv_func_getpgrp_void+set}" = set; then
16831 echo $ECHO_N "(cached) $ECHO_C" >&6
16833 # Use it with a single arg.
16834 cat >conftest.
$ac_ext <<_ACEOF
16837 cat confdefs.h
>>conftest.
$ac_ext
16838 cat >>conftest.
$ac_ext <<_ACEOF
16839 /* end confdefs.h. */
16840 $ac_includes_default
16849 rm -f conftest.
$ac_objext
16850 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16851 (eval $ac_compile) 2>conftest.er1
16853 grep -v '^ *+' conftest.er1
>conftest.err
16855 cat conftest.err
>&5
16856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16857 (exit $ac_status); } &&
16858 { ac_try
='test -z "$ac_c_werror_flag"
16859 || test ! -s conftest.err'
16860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16861 (eval $ac_try) 2>&5
16863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16864 (exit $ac_status); }; } &&
16865 { ac_try
='test -s conftest.$ac_objext'
16866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16867 (eval $ac_try) 2>&5
16869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16870 (exit $ac_status); }; }; then
16871 ac_cv_func_getpgrp_void
=no
16873 echo "$as_me: failed program was:" >&5
16874 sed 's/^/| /' conftest.
$ac_ext >&5
16876 ac_cv_func_getpgrp_void
=yes
16878 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16881 echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
16882 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6
16883 if test $ac_cv_func_getpgrp_void = yes; then
16885 cat >>confdefs.h
<<\_ACEOF
16886 #define GETPGRP_VOID 1
16893 for ac_func
in strftime
16895 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16896 echo "$as_me:$LINENO: checking for $ac_func" >&5
16897 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16898 if eval "test \"\${$as_ac_var+set}\" = set"; then
16899 echo $ECHO_N "(cached) $ECHO_C" >&6
16901 cat >conftest.
$ac_ext <<_ACEOF
16904 cat confdefs.h
>>conftest.
$ac_ext
16905 cat >>conftest.
$ac_ext <<_ACEOF
16906 /* end confdefs.h. */
16907 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16908 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16909 #define $ac_func innocuous_$ac_func
16911 /* System header to define __stub macros and hopefully few prototypes,
16912 which can conflict with char $ac_func (); below.
16913 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16914 <limits.h> exists even on freestanding compilers. */
16917 # include <limits.h>
16919 # include <assert.h>
16924 /* Override any gcc2 internal prototype to avoid an error. */
16929 /* We use char because int might match the return type of a gcc2
16930 builtin and then its argument prototype would still apply. */
16932 /* The GNU C library defines this for functions which it implements
16933 to always fail with ENOSYS. Some functions are actually named
16934 something starting with __ and the normal name is an alias. */
16935 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16938 char (*f) () = $ac_func;
16947 return f != $ac_func;
16952 rm -f conftest.
$ac_objext conftest
$ac_exeext
16953 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16954 (eval $ac_link) 2>conftest.er1
16956 grep -v '^ *+' conftest.er1
>conftest.err
16958 cat conftest.err
>&5
16959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16960 (exit $ac_status); } &&
16961 { ac_try
='test -z "$ac_c_werror_flag"
16962 || test ! -s conftest.err'
16963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16964 (eval $ac_try) 2>&5
16966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16967 (exit $ac_status); }; } &&
16968 { ac_try
='test -s conftest$ac_exeext'
16969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16970 (eval $ac_try) 2>&5
16972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16973 (exit $ac_status); }; }; then
16974 eval "$as_ac_var=yes"
16976 echo "$as_me: failed program was:" >&5
16977 sed 's/^/| /' conftest.
$ac_ext >&5
16979 eval "$as_ac_var=no"
16981 rm -f conftest.err conftest.
$ac_objext \
16982 conftest
$ac_exeext conftest.
$ac_ext
16984 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16985 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16986 if test `eval echo '${'$as_ac_var'}'` = yes; then
16987 cat >>confdefs.h
<<_ACEOF
16988 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16992 # strftime is in -lintl on SCO UNIX.
16993 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
16994 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
16995 if test "${ac_cv_lib_intl_strftime+set}" = set; then
16996 echo $ECHO_N "(cached) $ECHO_C" >&6
16998 ac_check_lib_save_LIBS
=$LIBS
16999 LIBS
="-lintl $LIBS"
17000 cat >conftest.
$ac_ext <<_ACEOF
17003 cat confdefs.h
>>conftest.
$ac_ext
17004 cat >>conftest.
$ac_ext <<_ACEOF
17005 /* end confdefs.h. */
17007 /* Override any gcc2 internal prototype to avoid an error. */
17011 /* We use char because int might match the return type of a gcc2
17012 builtin and then its argument prototype would still apply. */
17022 rm -f conftest.
$ac_objext conftest
$ac_exeext
17023 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17024 (eval $ac_link) 2>conftest.er1
17026 grep -v '^ *+' conftest.er1
>conftest.err
17028 cat conftest.err
>&5
17029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17030 (exit $ac_status); } &&
17031 { ac_try
='test -z "$ac_c_werror_flag"
17032 || test ! -s conftest.err'
17033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17034 (eval $ac_try) 2>&5
17036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17037 (exit $ac_status); }; } &&
17038 { ac_try
='test -s conftest$ac_exeext'
17039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17040 (eval $ac_try) 2>&5
17042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17043 (exit $ac_status); }; }; then
17044 ac_cv_lib_intl_strftime
=yes
17046 echo "$as_me: failed program was:" >&5
17047 sed 's/^/| /' conftest.
$ac_ext >&5
17049 ac_cv_lib_intl_strftime
=no
17051 rm -f conftest.err conftest.
$ac_objext \
17052 conftest
$ac_exeext conftest.
$ac_ext
17053 LIBS
=$ac_check_lib_save_LIBS
17055 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
17056 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
17057 if test $ac_cv_lib_intl_strftime = yes; then
17058 cat >>confdefs.h
<<\_ACEOF
17059 #define HAVE_STRFTIME 1
17062 LIBS
="-lintl $LIBS"
17071 for ac_func
in grantpt
17073 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17074 echo "$as_me:$LINENO: checking for $ac_func" >&5
17075 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17076 if eval "test \"\${$as_ac_var+set}\" = set"; then
17077 echo $ECHO_N "(cached) $ECHO_C" >&6
17079 cat >conftest.
$ac_ext <<_ACEOF
17082 cat confdefs.h
>>conftest.
$ac_ext
17083 cat >>conftest.
$ac_ext <<_ACEOF
17084 /* end confdefs.h. */
17085 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17086 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17087 #define $ac_func innocuous_$ac_func
17089 /* System header to define __stub macros and hopefully few prototypes,
17090 which can conflict with char $ac_func (); below.
17091 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17092 <limits.h> exists even on freestanding compilers. */
17095 # include <limits.h>
17097 # include <assert.h>
17102 /* Override any gcc2 internal prototype to avoid an error. */
17107 /* We use char because int might match the return type of a gcc2
17108 builtin and then its argument prototype would still apply. */
17110 /* The GNU C library defines this for functions which it implements
17111 to always fail with ENOSYS. Some functions are actually named
17112 something starting with __ and the normal name is an alias. */
17113 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17116 char (*f) () = $ac_func;
17125 return f != $ac_func;
17130 rm -f conftest.
$ac_objext conftest
$ac_exeext
17131 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17132 (eval $ac_link) 2>conftest.er1
17134 grep -v '^ *+' conftest.er1
>conftest.err
17136 cat conftest.err
>&5
17137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17138 (exit $ac_status); } &&
17139 { ac_try
='test -z "$ac_c_werror_flag"
17140 || test ! -s conftest.err'
17141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17142 (eval $ac_try) 2>&5
17144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17145 (exit $ac_status); }; } &&
17146 { ac_try
='test -s conftest$ac_exeext'
17147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17148 (eval $ac_try) 2>&5
17150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17151 (exit $ac_status); }; }; then
17152 eval "$as_ac_var=yes"
17154 echo "$as_me: failed program was:" >&5
17155 sed 's/^/| /' conftest.
$ac_ext >&5
17157 eval "$as_ac_var=no"
17159 rm -f conftest.err conftest.
$ac_objext \
17160 conftest
$ac_exeext conftest.
$ac_ext
17162 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17163 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17164 if test `eval echo '${'$as_ac_var'}'` = yes; then
17165 cat >>confdefs.h
<<_ACEOF
17166 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17173 # PTY-related GNU extensions.
17175 for ac_func
in getpt
17177 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17178 echo "$as_me:$LINENO: checking for $ac_func" >&5
17179 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17180 if eval "test \"\${$as_ac_var+set}\" = set"; then
17181 echo $ECHO_N "(cached) $ECHO_C" >&6
17183 cat >conftest.
$ac_ext <<_ACEOF
17186 cat confdefs.h
>>conftest.
$ac_ext
17187 cat >>conftest.
$ac_ext <<_ACEOF
17188 /* end confdefs.h. */
17189 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17190 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17191 #define $ac_func innocuous_$ac_func
17193 /* System header to define __stub macros and hopefully few prototypes,
17194 which can conflict with char $ac_func (); below.
17195 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17196 <limits.h> exists even on freestanding compilers. */
17199 # include <limits.h>
17201 # include <assert.h>
17206 /* Override any gcc2 internal prototype to avoid an error. */
17211 /* We use char because int might match the return type of a gcc2
17212 builtin and then its argument prototype would still apply. */
17214 /* The GNU C library defines this for functions which it implements
17215 to always fail with ENOSYS. Some functions are actually named
17216 something starting with __ and the normal name is an alias. */
17217 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17220 char (*f) () = $ac_func;
17229 return f != $ac_func;
17234 rm -f conftest.
$ac_objext conftest
$ac_exeext
17235 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17236 (eval $ac_link) 2>conftest.er1
17238 grep -v '^ *+' conftest.er1
>conftest.err
17240 cat conftest.err
>&5
17241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17242 (exit $ac_status); } &&
17243 { ac_try
='test -z "$ac_c_werror_flag"
17244 || test ! -s conftest.err'
17245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17246 (eval $ac_try) 2>&5
17248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17249 (exit $ac_status); }; } &&
17250 { ac_try
='test -s conftest$ac_exeext'
17251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17252 (eval $ac_try) 2>&5
17254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17255 (exit $ac_status); }; }; then
17256 eval "$as_ac_var=yes"
17258 echo "$as_me: failed program was:" >&5
17259 sed 's/^/| /' conftest.
$ac_ext >&5
17261 eval "$as_ac_var=no"
17263 rm -f conftest.err conftest.
$ac_objext \
17264 conftest
$ac_exeext conftest.
$ac_ext
17266 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17267 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17268 if test `eval echo '${'$as_ac_var'}'` = yes; then
17269 cat >>confdefs.h
<<_ACEOF
17270 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17277 # Check this now, so that we will NOT find the above functions in ncurses.
17278 # That is because we have not set up to link ncurses in lib-src.
17279 # It's better to believe a function is not available
17280 # than to expect to find it in ncurses.
17282 echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
17283 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6
17284 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
17285 echo $ECHO_N "(cached) $ECHO_C" >&6
17287 ac_check_lib_save_LIBS
=$LIBS
17288 LIBS
="-lncurses $LIBS"
17289 cat >conftest.
$ac_ext <<_ACEOF
17292 cat confdefs.h
>>conftest.
$ac_ext
17293 cat >>conftest.
$ac_ext <<_ACEOF
17294 /* end confdefs.h. */
17296 /* Override any gcc2 internal prototype to avoid an error. */
17300 /* We use char because int might match the return type of a gcc2
17301 builtin and then its argument prototype would still apply. */
17311 rm -f conftest.
$ac_objext conftest
$ac_exeext
17312 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17313 (eval $ac_link) 2>conftest.er1
17315 grep -v '^ *+' conftest.er1
>conftest.err
17317 cat conftest.err
>&5
17318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17319 (exit $ac_status); } &&
17320 { ac_try
='test -z "$ac_c_werror_flag"
17321 || test ! -s conftest.err'
17322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17323 (eval $ac_try) 2>&5
17325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17326 (exit $ac_status); }; } &&
17327 { ac_try
='test -s conftest$ac_exeext'
17328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17329 (eval $ac_try) 2>&5
17331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17332 (exit $ac_status); }; }; then
17333 ac_cv_lib_ncurses_tparm
=yes
17335 echo "$as_me: failed program was:" >&5
17336 sed 's/^/| /' conftest.
$ac_ext >&5
17338 ac_cv_lib_ncurses_tparm
=no
17340 rm -f conftest.err conftest.
$ac_objext \
17341 conftest
$ac_exeext conftest.
$ac_ext
17342 LIBS
=$ac_check_lib_save_LIBS
17344 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
17345 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6
17346 if test $ac_cv_lib_ncurses_tparm = yes; then
17347 cat >>confdefs.h
<<_ACEOF
17348 #define HAVE_LIBNCURSES 1
17351 LIBS
="-lncurses $LIBS"
17356 # Do we need the Hesiod library to provide the support routines?
17357 if test "$with_hesiod" = yes ; then
17358 # Don't set $LIBS here -- see comments above.
17360 echo "$as_me:$LINENO: checking for res_send" >&5
17361 echo $ECHO_N "checking for res_send... $ECHO_C" >&6
17362 if test "${ac_cv_func_res_send+set}" = set; then
17363 echo $ECHO_N "(cached) $ECHO_C" >&6
17365 cat >conftest.
$ac_ext <<_ACEOF
17368 cat confdefs.h
>>conftest.
$ac_ext
17369 cat >>conftest.
$ac_ext <<_ACEOF
17370 /* end confdefs.h. */
17371 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
17372 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17373 #define res_send innocuous_res_send
17375 /* System header to define __stub macros and hopefully few prototypes,
17376 which can conflict with char res_send (); below.
17377 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17378 <limits.h> exists even on freestanding compilers. */
17381 # include <limits.h>
17383 # include <assert.h>
17388 /* Override any gcc2 internal prototype to avoid an error. */
17393 /* We use char because int might match the return type of a gcc2
17394 builtin and then its argument prototype would still apply. */
17396 /* The GNU C library defines this for functions which it implements
17397 to always fail with ENOSYS. Some functions are actually named
17398 something starting with __ and the normal name is an alias. */
17399 #if defined (__stub_res_send) || defined (__stub___res_send)
17402 char (*f) () = res_send;
17411 return f != res_send;
17416 rm -f conftest.
$ac_objext conftest
$ac_exeext
17417 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17418 (eval $ac_link) 2>conftest.er1
17420 grep -v '^ *+' conftest.er1
>conftest.err
17422 cat conftest.err
>&5
17423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17424 (exit $ac_status); } &&
17425 { ac_try
='test -z "$ac_c_werror_flag"
17426 || test ! -s conftest.err'
17427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17428 (eval $ac_try) 2>&5
17430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17431 (exit $ac_status); }; } &&
17432 { ac_try
='test -s conftest$ac_exeext'
17433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17434 (eval $ac_try) 2>&5
17436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17437 (exit $ac_status); }; }; then
17438 ac_cv_func_res_send
=yes
17440 echo "$as_me: failed program was:" >&5
17441 sed 's/^/| /' conftest.
$ac_ext >&5
17443 ac_cv_func_res_send
=no
17445 rm -f conftest.err conftest.
$ac_objext \
17446 conftest
$ac_exeext conftest.
$ac_ext
17448 echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
17449 echo "${ECHO_T}$ac_cv_func_res_send" >&6
17450 if test $ac_cv_func_res_send = yes; then
17453 echo "$as_me:$LINENO: checking for __res_send" >&5
17454 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6
17455 if test "${ac_cv_func___res_send+set}" = set; then
17456 echo $ECHO_N "(cached) $ECHO_C" >&6
17458 cat >conftest.
$ac_ext <<_ACEOF
17461 cat confdefs.h
>>conftest.
$ac_ext
17462 cat >>conftest.
$ac_ext <<_ACEOF
17463 /* end confdefs.h. */
17464 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
17465 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17466 #define __res_send innocuous___res_send
17468 /* System header to define __stub macros and hopefully few prototypes,
17469 which can conflict with char __res_send (); below.
17470 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17471 <limits.h> exists even on freestanding compilers. */
17474 # include <limits.h>
17476 # include <assert.h>
17481 /* Override any gcc2 internal prototype to avoid an error. */
17486 /* We use char because int might match the return type of a gcc2
17487 builtin and then its argument prototype would still apply. */
17488 char __res_send ();
17489 /* The GNU C library defines this for functions which it implements
17490 to always fail with ENOSYS. Some functions are actually named
17491 something starting with __ and the normal name is an alias. */
17492 #if defined (__stub___res_send) || defined (__stub_____res_send)
17495 char (*f) () = __res_send;
17504 return f != __res_send;
17509 rm -f conftest.
$ac_objext conftest
$ac_exeext
17510 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17511 (eval $ac_link) 2>conftest.er1
17513 grep -v '^ *+' conftest.er1
>conftest.err
17515 cat conftest.err
>&5
17516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17517 (exit $ac_status); } &&
17518 { ac_try
='test -z "$ac_c_werror_flag"
17519 || test ! -s conftest.err'
17520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17521 (eval $ac_try) 2>&5
17523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17524 (exit $ac_status); }; } &&
17525 { ac_try
='test -s conftest$ac_exeext'
17526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17527 (eval $ac_try) 2>&5
17529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17530 (exit $ac_status); }; }; then
17531 ac_cv_func___res_send
=yes
17533 echo "$as_me: failed program was:" >&5
17534 sed 's/^/| /' conftest.
$ac_ext >&5
17536 ac_cv_func___res_send
=no
17538 rm -f conftest.err conftest.
$ac_objext \
17539 conftest
$ac_exeext conftest.
$ac_ext
17541 echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
17542 echo "${ECHO_T}$ac_cv_func___res_send" >&6
17543 if test $ac_cv_func___res_send = yes; then
17546 echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
17547 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6
17548 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
17549 echo $ECHO_N "(cached) $ECHO_C" >&6
17551 ac_check_lib_save_LIBS
=$LIBS
17552 LIBS
="-lresolv $LIBS"
17553 cat >conftest.
$ac_ext <<_ACEOF
17556 cat confdefs.h
>>conftest.
$ac_ext
17557 cat >>conftest.
$ac_ext <<_ACEOF
17558 /* end confdefs.h. */
17560 /* Override any gcc2 internal prototype to avoid an error. */
17564 /* We use char because int might match the return type of a gcc2
17565 builtin and then its argument prototype would still apply. */
17575 rm -f conftest.
$ac_objext conftest
$ac_exeext
17576 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17577 (eval $ac_link) 2>conftest.er1
17579 grep -v '^ *+' conftest.er1
>conftest.err
17581 cat conftest.err
>&5
17582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17583 (exit $ac_status); } &&
17584 { ac_try
='test -z "$ac_c_werror_flag"
17585 || test ! -s conftest.err'
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); }; } &&
17591 { ac_try
='test -s conftest$ac_exeext'
17592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17593 (eval $ac_try) 2>&5
17595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17596 (exit $ac_status); }; }; then
17597 ac_cv_lib_resolv_res_send
=yes
17599 echo "$as_me: failed program was:" >&5
17600 sed 's/^/| /' conftest.
$ac_ext >&5
17602 ac_cv_lib_resolv_res_send
=no
17604 rm -f conftest.err conftest.
$ac_objext \
17605 conftest
$ac_exeext conftest.
$ac_ext
17606 LIBS
=$ac_check_lib_save_LIBS
17608 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
17609 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6
17610 if test $ac_cv_lib_resolv_res_send = yes; then
17613 echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
17614 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6
17615 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
17616 echo $ECHO_N "(cached) $ECHO_C" >&6
17618 ac_check_lib_save_LIBS
=$LIBS
17619 LIBS
="-lresolv $LIBS"
17620 cat >conftest.
$ac_ext <<_ACEOF
17623 cat confdefs.h
>>conftest.
$ac_ext
17624 cat >>conftest.
$ac_ext <<_ACEOF
17625 /* end confdefs.h. */
17627 /* Override any gcc2 internal prototype to avoid an error. */
17631 /* We use char because int might match the return type of a gcc2
17632 builtin and then its argument prototype would still apply. */
17633 char __res_send ();
17642 rm -f conftest.
$ac_objext conftest
$ac_exeext
17643 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17644 (eval $ac_link) 2>conftest.er1
17646 grep -v '^ *+' conftest.er1
>conftest.err
17648 cat conftest.err
>&5
17649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17650 (exit $ac_status); } &&
17651 { ac_try
='test -z "$ac_c_werror_flag"
17652 || test ! -s conftest.err'
17653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17654 (eval $ac_try) 2>&5
17656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17657 (exit $ac_status); }; } &&
17658 { ac_try
='test -s conftest$ac_exeext'
17659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17660 (eval $ac_try) 2>&5
17662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17663 (exit $ac_status); }; }; then
17664 ac_cv_lib_resolv___res_send
=yes
17666 echo "$as_me: failed program was:" >&5
17667 sed 's/^/| /' conftest.
$ac_ext >&5
17669 ac_cv_lib_resolv___res_send
=no
17671 rm -f conftest.err conftest.
$ac_objext \
17672 conftest
$ac_exeext conftest.
$ac_ext
17673 LIBS
=$ac_check_lib_save_LIBS
17675 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
17676 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6
17677 if test $ac_cv_lib_resolv___res_send = yes; then
17687 if test "$resolv" = yes ; then
17690 cat >>confdefs.h
<<\_ACEOF
17691 #define HAVE_LIBRESOLV 1
17697 echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
17698 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6
17699 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
17700 echo $ECHO_N "(cached) $ECHO_C" >&6
17702 cat >conftest.
$ac_ext <<_ACEOF
17705 cat confdefs.h
>>conftest.
$ac_ext
17706 cat >>conftest.
$ac_ext <<_ACEOF
17707 /* end confdefs.h. */
17708 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
17709 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17710 #define hes_getmailhost innocuous_hes_getmailhost
17712 /* System header to define __stub macros and hopefully few prototypes,
17713 which can conflict with char hes_getmailhost (); below.
17714 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17715 <limits.h> exists even on freestanding compilers. */
17718 # include <limits.h>
17720 # include <assert.h>
17723 #undef hes_getmailhost
17725 /* Override any gcc2 internal prototype to avoid an error. */
17730 /* We use char because int might match the return type of a gcc2
17731 builtin and then its argument prototype would still apply. */
17732 char hes_getmailhost ();
17733 /* The GNU C library defines this for functions which it implements
17734 to always fail with ENOSYS. Some functions are actually named
17735 something starting with __ and the normal name is an alias. */
17736 #if defined (__stub_hes_getmailhost) || defined (__stub___hes_getmailhost)
17739 char (*f) () = hes_getmailhost;
17748 return f != hes_getmailhost;
17753 rm -f conftest.
$ac_objext conftest
$ac_exeext
17754 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17755 (eval $ac_link) 2>conftest.er1
17757 grep -v '^ *+' conftest.er1
>conftest.err
17759 cat conftest.err
>&5
17760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17761 (exit $ac_status); } &&
17762 { ac_try
='test -z "$ac_c_werror_flag"
17763 || test ! -s conftest.err'
17764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17765 (eval $ac_try) 2>&5
17767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17768 (exit $ac_status); }; } &&
17769 { ac_try
='test -s conftest$ac_exeext'
17770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17771 (eval $ac_try) 2>&5
17773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17774 (exit $ac_status); }; }; then
17775 ac_cv_func_hes_getmailhost
=yes
17777 echo "$as_me: failed program was:" >&5
17778 sed 's/^/| /' conftest.
$ac_ext >&5
17780 ac_cv_func_hes_getmailhost
=no
17782 rm -f conftest.err conftest.
$ac_objext \
17783 conftest
$ac_exeext conftest.
$ac_ext
17785 echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
17786 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6
17787 if test $ac_cv_func_hes_getmailhost = yes; then
17790 echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
17791 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6
17792 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
17793 echo $ECHO_N "(cached) $ECHO_C" >&6
17795 ac_check_lib_save_LIBS
=$LIBS
17796 LIBS
="-lhesiod $RESOLVLIB $LIBS"
17797 cat >conftest.
$ac_ext <<_ACEOF
17800 cat confdefs.h
>>conftest.
$ac_ext
17801 cat >>conftest.
$ac_ext <<_ACEOF
17802 /* end confdefs.h. */
17804 /* Override any gcc2 internal prototype to avoid an error. */
17808 /* We use char because int might match the return type of a gcc2
17809 builtin and then its argument prototype would still apply. */
17810 char hes_getmailhost ();
17814 hes_getmailhost ();
17819 rm -f conftest.
$ac_objext conftest
$ac_exeext
17820 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17821 (eval $ac_link) 2>conftest.er1
17823 grep -v '^ *+' conftest.er1
>conftest.err
17825 cat conftest.err
>&5
17826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17827 (exit $ac_status); } &&
17828 { ac_try
='test -z "$ac_c_werror_flag"
17829 || test ! -s conftest.err'
17830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17831 (eval $ac_try) 2>&5
17833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17834 (exit $ac_status); }; } &&
17835 { ac_try
='test -s conftest$ac_exeext'
17836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17837 (eval $ac_try) 2>&5
17839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17840 (exit $ac_status); }; }; then
17841 ac_cv_lib_hesiod_hes_getmailhost
=yes
17843 echo "$as_me: failed program was:" >&5
17844 sed 's/^/| /' conftest.
$ac_ext >&5
17846 ac_cv_lib_hesiod_hes_getmailhost
=no
17848 rm -f conftest.err conftest.
$ac_objext \
17849 conftest
$ac_exeext conftest.
$ac_ext
17850 LIBS
=$ac_check_lib_save_LIBS
17852 echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
17853 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6
17854 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
17856 cat >>confdefs.h
<<\_ACEOF
17857 #define HAVE_LIBHESIOD 1
17868 # These tell us which Kerberos-related libraries to use.
17869 if test "${with_kerberos+set}" = set; then
17871 echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
17872 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6
17873 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
17874 echo $ECHO_N "(cached) $ECHO_C" >&6
17876 ac_check_lib_save_LIBS
=$LIBS
17877 LIBS
="-lcom_err $LIBS"
17878 cat >conftest.
$ac_ext <<_ACEOF
17881 cat confdefs.h
>>conftest.
$ac_ext
17882 cat >>conftest.
$ac_ext <<_ACEOF
17883 /* end confdefs.h. */
17885 /* Override any gcc2 internal prototype to avoid an error. */
17889 /* We use char because int might match the return type of a gcc2
17890 builtin and then its argument prototype would still apply. */
17900 rm -f conftest.
$ac_objext conftest
$ac_exeext
17901 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17902 (eval $ac_link) 2>conftest.er1
17904 grep -v '^ *+' conftest.er1
>conftest.err
17906 cat conftest.err
>&5
17907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17908 (exit $ac_status); } &&
17909 { ac_try
='test -z "$ac_c_werror_flag"
17910 || test ! -s conftest.err'
17911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17912 (eval $ac_try) 2>&5
17914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17915 (exit $ac_status); }; } &&
17916 { ac_try
='test -s conftest$ac_exeext'
17917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17918 (eval $ac_try) 2>&5
17920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17921 (exit $ac_status); }; }; then
17922 ac_cv_lib_com_err_com_err
=yes
17924 echo "$as_me: failed program was:" >&5
17925 sed 's/^/| /' conftest.
$ac_ext >&5
17927 ac_cv_lib_com_err_com_err
=no
17929 rm -f conftest.err conftest.
$ac_objext \
17930 conftest
$ac_exeext conftest.
$ac_ext
17931 LIBS
=$ac_check_lib_save_LIBS
17933 echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
17934 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6
17935 if test $ac_cv_lib_com_err_com_err = yes; then
17936 cat >>confdefs.h
<<_ACEOF
17937 #define HAVE_LIBCOM_ERR 1
17940 LIBS
="-lcom_err $LIBS"
17945 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
17946 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6
17947 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
17948 echo $ECHO_N "(cached) $ECHO_C" >&6
17950 ac_check_lib_save_LIBS
=$LIBS
17951 LIBS
="-lk5crypto $LIBS"
17952 cat >conftest.
$ac_ext <<_ACEOF
17955 cat confdefs.h
>>conftest.
$ac_ext
17956 cat >>conftest.
$ac_ext <<_ACEOF
17957 /* end confdefs.h. */
17959 /* Override any gcc2 internal prototype to avoid an error. */
17963 /* We use char because int might match the return type of a gcc2
17964 builtin and then its argument prototype would still apply. */
17965 char mit_des_cbc_encrypt ();
17969 mit_des_cbc_encrypt ();
17974 rm -f conftest.
$ac_objext conftest
$ac_exeext
17975 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17976 (eval $ac_link) 2>conftest.er1
17978 grep -v '^ *+' conftest.er1
>conftest.err
17980 cat conftest.err
>&5
17981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17982 (exit $ac_status); } &&
17983 { ac_try
='test -z "$ac_c_werror_flag"
17984 || test ! -s conftest.err'
17985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17986 (eval $ac_try) 2>&5
17988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17989 (exit $ac_status); }; } &&
17990 { ac_try
='test -s conftest$ac_exeext'
17991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17992 (eval $ac_try) 2>&5
17994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17995 (exit $ac_status); }; }; then
17996 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=yes
17998 echo "$as_me: failed program was:" >&5
17999 sed 's/^/| /' conftest.
$ac_ext >&5
18001 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=no
18003 rm -f conftest.err conftest.
$ac_objext \
18004 conftest
$ac_exeext conftest.
$ac_ext
18005 LIBS
=$ac_check_lib_save_LIBS
18007 echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
18008 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6
18009 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
18010 cat >>confdefs.h
<<_ACEOF
18011 #define HAVE_LIBK5CRYPTO 1
18014 LIBS
="-lk5crypto $LIBS"
18019 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
18020 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6
18021 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
18022 echo $ECHO_N "(cached) $ECHO_C" >&6
18024 ac_check_lib_save_LIBS
=$LIBS
18025 LIBS
="-lcrypto $LIBS"
18026 cat >conftest.
$ac_ext <<_ACEOF
18029 cat confdefs.h
>>conftest.
$ac_ext
18030 cat >>conftest.
$ac_ext <<_ACEOF
18031 /* end confdefs.h. */
18033 /* Override any gcc2 internal prototype to avoid an error. */
18037 /* We use char because int might match the return type of a gcc2
18038 builtin and then its argument prototype would still apply. */
18039 char mit_des_cbc_encrypt ();
18043 mit_des_cbc_encrypt ();
18048 rm -f conftest.
$ac_objext conftest
$ac_exeext
18049 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18050 (eval $ac_link) 2>conftest.er1
18052 grep -v '^ *+' conftest.er1
>conftest.err
18054 cat conftest.err
>&5
18055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18056 (exit $ac_status); } &&
18057 { ac_try
='test -z "$ac_c_werror_flag"
18058 || test ! -s conftest.err'
18059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18060 (eval $ac_try) 2>&5
18062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18063 (exit $ac_status); }; } &&
18064 { ac_try
='test -s conftest$ac_exeext'
18065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18066 (eval $ac_try) 2>&5
18068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18069 (exit $ac_status); }; }; then
18070 ac_cv_lib_crypto_mit_des_cbc_encrypt
=yes
18072 echo "$as_me: failed program was:" >&5
18073 sed 's/^/| /' conftest.
$ac_ext >&5
18075 ac_cv_lib_crypto_mit_des_cbc_encrypt
=no
18077 rm -f conftest.err conftest.
$ac_objext \
18078 conftest
$ac_exeext conftest.
$ac_ext
18079 LIBS
=$ac_check_lib_save_LIBS
18081 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
18082 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6
18083 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
18084 cat >>confdefs.h
<<_ACEOF
18085 #define HAVE_LIBCRYPTO 1
18088 LIBS
="-lcrypto $LIBS"
18093 echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
18094 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6
18095 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
18096 echo $ECHO_N "(cached) $ECHO_C" >&6
18098 ac_check_lib_save_LIBS
=$LIBS
18099 LIBS
="-lkrb5 $LIBS"
18100 cat >conftest.
$ac_ext <<_ACEOF
18103 cat confdefs.h
>>conftest.
$ac_ext
18104 cat >>conftest.
$ac_ext <<_ACEOF
18105 /* end confdefs.h. */
18107 /* Override any gcc2 internal prototype to avoid an error. */
18111 /* We use char because int might match the return type of a gcc2
18112 builtin and then its argument prototype would still apply. */
18113 char krb5_init_context ();
18117 krb5_init_context ();
18122 rm -f conftest.
$ac_objext conftest
$ac_exeext
18123 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18124 (eval $ac_link) 2>conftest.er1
18126 grep -v '^ *+' conftest.er1
>conftest.err
18128 cat conftest.err
>&5
18129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18130 (exit $ac_status); } &&
18131 { ac_try
='test -z "$ac_c_werror_flag"
18132 || test ! -s conftest.err'
18133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18134 (eval $ac_try) 2>&5
18136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18137 (exit $ac_status); }; } &&
18138 { ac_try
='test -s conftest$ac_exeext'
18139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18140 (eval $ac_try) 2>&5
18142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18143 (exit $ac_status); }; }; then
18144 ac_cv_lib_krb5_krb5_init_context
=yes
18146 echo "$as_me: failed program was:" >&5
18147 sed 's/^/| /' conftest.
$ac_ext >&5
18149 ac_cv_lib_krb5_krb5_init_context
=no
18151 rm -f conftest.err conftest.
$ac_objext \
18152 conftest
$ac_exeext conftest.
$ac_ext
18153 LIBS
=$ac_check_lib_save_LIBS
18155 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
18156 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6
18157 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
18158 cat >>confdefs.h
<<_ACEOF
18159 #define HAVE_LIBKRB5 1
18162 LIBS
="-lkrb5 $LIBS"
18166 if test "${with_kerberos5+set}" != set; then
18168 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
18169 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6
18170 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
18171 echo $ECHO_N "(cached) $ECHO_C" >&6
18173 ac_check_lib_save_LIBS
=$LIBS
18174 LIBS
="-ldes425 $LIBS"
18175 cat >conftest.
$ac_ext <<_ACEOF
18178 cat confdefs.h
>>conftest.
$ac_ext
18179 cat >>conftest.
$ac_ext <<_ACEOF
18180 /* end confdefs.h. */
18182 /* Override any gcc2 internal prototype to avoid an error. */
18186 /* We use char because int might match the return type of a gcc2
18187 builtin and then its argument prototype would still apply. */
18188 char des_cbc_encrypt ();
18192 des_cbc_encrypt ();
18197 rm -f conftest.
$ac_objext conftest
$ac_exeext
18198 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18199 (eval $ac_link) 2>conftest.er1
18201 grep -v '^ *+' conftest.er1
>conftest.err
18203 cat conftest.err
>&5
18204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18205 (exit $ac_status); } &&
18206 { ac_try
='test -z "$ac_c_werror_flag"
18207 || test ! -s conftest.err'
18208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18209 (eval $ac_try) 2>&5
18211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18212 (exit $ac_status); }; } &&
18213 { ac_try
='test -s conftest$ac_exeext'
18214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18215 (eval $ac_try) 2>&5
18217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18218 (exit $ac_status); }; }; then
18219 ac_cv_lib_des425_des_cbc_encrypt
=yes
18221 echo "$as_me: failed program was:" >&5
18222 sed 's/^/| /' conftest.
$ac_ext >&5
18224 ac_cv_lib_des425_des_cbc_encrypt
=no
18226 rm -f conftest.err conftest.
$ac_objext \
18227 conftest
$ac_exeext conftest.
$ac_ext
18228 LIBS
=$ac_check_lib_save_LIBS
18230 echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
18231 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6
18232 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
18233 cat >>confdefs.h
<<_ACEOF
18234 #define HAVE_LIBDES425 1
18237 LIBS
="-ldes425 $LIBS"
18241 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
18242 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6
18243 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
18244 echo $ECHO_N "(cached) $ECHO_C" >&6
18246 ac_check_lib_save_LIBS
=$LIBS
18248 cat >conftest.
$ac_ext <<_ACEOF
18251 cat confdefs.h
>>conftest.
$ac_ext
18252 cat >>conftest.
$ac_ext <<_ACEOF
18253 /* end confdefs.h. */
18255 /* Override any gcc2 internal prototype to avoid an error. */
18259 /* We use char because int might match the return type of a gcc2
18260 builtin and then its argument prototype would still apply. */
18261 char des_cbc_encrypt ();
18265 des_cbc_encrypt ();
18270 rm -f conftest.
$ac_objext conftest
$ac_exeext
18271 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18272 (eval $ac_link) 2>conftest.er1
18274 grep -v '^ *+' conftest.er1
>conftest.err
18276 cat conftest.err
>&5
18277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18278 (exit $ac_status); } &&
18279 { ac_try
='test -z "$ac_c_werror_flag"
18280 || test ! -s conftest.err'
18281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18282 (eval $ac_try) 2>&5
18284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18285 (exit $ac_status); }; } &&
18286 { ac_try
='test -s conftest$ac_exeext'
18287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18288 (eval $ac_try) 2>&5
18290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18291 (exit $ac_status); }; }; then
18292 ac_cv_lib_des_des_cbc_encrypt
=yes
18294 echo "$as_me: failed program was:" >&5
18295 sed 's/^/| /' conftest.
$ac_ext >&5
18297 ac_cv_lib_des_des_cbc_encrypt
=no
18299 rm -f conftest.err conftest.
$ac_objext \
18300 conftest
$ac_exeext conftest.
$ac_ext
18301 LIBS
=$ac_check_lib_save_LIBS
18303 echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
18304 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6
18305 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
18306 cat >>confdefs.h
<<_ACEOF
18307 #define HAVE_LIBDES 1
18317 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
18318 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6
18319 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
18320 echo $ECHO_N "(cached) $ECHO_C" >&6
18322 ac_check_lib_save_LIBS
=$LIBS
18323 LIBS
="-lkrb4 $LIBS"
18324 cat >conftest.
$ac_ext <<_ACEOF
18327 cat confdefs.h
>>conftest.
$ac_ext
18328 cat >>conftest.
$ac_ext <<_ACEOF
18329 /* end confdefs.h. */
18331 /* Override any gcc2 internal prototype to avoid an error. */
18335 /* We use char because int might match the return type of a gcc2
18336 builtin and then its argument prototype would still apply. */
18337 char krb_get_cred ();
18346 rm -f conftest.
$ac_objext conftest
$ac_exeext
18347 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18348 (eval $ac_link) 2>conftest.er1
18350 grep -v '^ *+' conftest.er1
>conftest.err
18352 cat conftest.err
>&5
18353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18354 (exit $ac_status); } &&
18355 { ac_try
='test -z "$ac_c_werror_flag"
18356 || test ! -s conftest.err'
18357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18358 (eval $ac_try) 2>&5
18360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18361 (exit $ac_status); }; } &&
18362 { ac_try
='test -s conftest$ac_exeext'
18363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18364 (eval $ac_try) 2>&5
18366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18367 (exit $ac_status); }; }; then
18368 ac_cv_lib_krb4_krb_get_cred
=yes
18370 echo "$as_me: failed program was:" >&5
18371 sed 's/^/| /' conftest.
$ac_ext >&5
18373 ac_cv_lib_krb4_krb_get_cred
=no
18375 rm -f conftest.err conftest.
$ac_objext \
18376 conftest
$ac_exeext conftest.
$ac_ext
18377 LIBS
=$ac_check_lib_save_LIBS
18379 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
18380 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6
18381 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
18382 cat >>confdefs.h
<<_ACEOF
18383 #define HAVE_LIBKRB4 1
18386 LIBS
="-lkrb4 $LIBS"
18390 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
18391 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6
18392 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
18393 echo $ECHO_N "(cached) $ECHO_C" >&6
18395 ac_check_lib_save_LIBS
=$LIBS
18397 cat >conftest.
$ac_ext <<_ACEOF
18400 cat confdefs.h
>>conftest.
$ac_ext
18401 cat >>conftest.
$ac_ext <<_ACEOF
18402 /* end confdefs.h. */
18404 /* Override any gcc2 internal prototype to avoid an error. */
18408 /* We use char because int might match the return type of a gcc2
18409 builtin and then its argument prototype would still apply. */
18410 char krb_get_cred ();
18419 rm -f conftest.
$ac_objext conftest
$ac_exeext
18420 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18421 (eval $ac_link) 2>conftest.er1
18423 grep -v '^ *+' conftest.er1
>conftest.err
18425 cat conftest.err
>&5
18426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18427 (exit $ac_status); } &&
18428 { ac_try
='test -z "$ac_c_werror_flag"
18429 || test ! -s conftest.err'
18430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18431 (eval $ac_try) 2>&5
18433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18434 (exit $ac_status); }; } &&
18435 { ac_try
='test -s conftest$ac_exeext'
18436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18437 (eval $ac_try) 2>&5
18439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18440 (exit $ac_status); }; }; then
18441 ac_cv_lib_krb_krb_get_cred
=yes
18443 echo "$as_me: failed program was:" >&5
18444 sed 's/^/| /' conftest.
$ac_ext >&5
18446 ac_cv_lib_krb_krb_get_cred
=no
18448 rm -f conftest.err conftest.
$ac_objext \
18449 conftest
$ac_exeext conftest.
$ac_ext
18450 LIBS
=$ac_check_lib_save_LIBS
18452 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
18453 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6
18454 if test $ac_cv_lib_krb_krb_get_cred = yes; then
18455 cat >>confdefs.h
<<_ACEOF
18456 #define HAVE_LIBKRB 1
18467 if test "${with_kerberos5+set}" = set; then
18469 for ac_header
in krb5.h
18471 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18472 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18473 echo "$as_me:$LINENO: checking for $ac_header" >&5
18474 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18475 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18476 echo $ECHO_N "(cached) $ECHO_C" >&6
18478 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18479 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18481 # Is the header compilable?
18482 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18483 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18484 cat >conftest.
$ac_ext <<_ACEOF
18487 cat confdefs.h
>>conftest.
$ac_ext
18488 cat >>conftest.
$ac_ext <<_ACEOF
18489 /* end confdefs.h. */
18490 $ac_includes_default
18491 #include <$ac_header>
18493 rm -f conftest.
$ac_objext
18494 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18495 (eval $ac_compile) 2>conftest.er1
18497 grep -v '^ *+' conftest.er1
>conftest.err
18499 cat conftest.err
>&5
18500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18501 (exit $ac_status); } &&
18502 { ac_try
='test -z "$ac_c_werror_flag"
18503 || test ! -s conftest.err'
18504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18505 (eval $ac_try) 2>&5
18507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18508 (exit $ac_status); }; } &&
18509 { ac_try
='test -s conftest.$ac_objext'
18510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18511 (eval $ac_try) 2>&5
18513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18514 (exit $ac_status); }; }; then
18515 ac_header_compiler
=yes
18517 echo "$as_me: failed program was:" >&5
18518 sed 's/^/| /' conftest.
$ac_ext >&5
18520 ac_header_compiler
=no
18522 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18523 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18524 echo "${ECHO_T}$ac_header_compiler" >&6
18526 # Is the header present?
18527 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18528 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18529 cat >conftest.
$ac_ext <<_ACEOF
18532 cat confdefs.h
>>conftest.
$ac_ext
18533 cat >>conftest.
$ac_ext <<_ACEOF
18534 /* end confdefs.h. */
18535 #include <$ac_header>
18537 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18538 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
18540 grep -v '^ *+' conftest.er1
>conftest.err
18542 cat conftest.err
>&5
18543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18544 (exit $ac_status); } >/dev
/null
; then
18545 if test -s conftest.err
; then
18546 ac_cpp_err
=$ac_c_preproc_warn_flag
18547 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
18554 if test -z "$ac_cpp_err"; then
18555 ac_header_preproc
=yes
18557 echo "$as_me: failed program was:" >&5
18558 sed 's/^/| /' conftest.
$ac_ext >&5
18560 ac_header_preproc
=no
18562 rm -f conftest.err conftest.
$ac_ext
18563 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18564 echo "${ECHO_T}$ac_header_preproc" >&6
18566 # So? What about this header?
18567 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18569 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18570 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18571 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18572 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18573 ac_header_preproc
=yes
18576 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18577 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18578 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18579 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18580 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18581 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18582 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18583 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18584 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18585 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18586 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18587 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18590 ## ------------------------------------------ ##
18591 ## Report this to the AC_PACKAGE_NAME lists. ##
18592 ## ------------------------------------------ ##
18595 sed "s/^/$as_me: WARNING: /" >&2
18598 echo "$as_me:$LINENO: checking for $ac_header" >&5
18599 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18600 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18601 echo $ECHO_N "(cached) $ECHO_C" >&6
18603 eval "$as_ac_Header=\$ac_header_preproc"
18605 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18606 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18609 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18610 cat >>confdefs.h
<<_ACEOF
18611 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18620 for ac_header
in des.h
18622 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18623 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18624 echo "$as_me:$LINENO: checking for $ac_header" >&5
18625 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18626 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18627 echo $ECHO_N "(cached) $ECHO_C" >&6
18629 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18630 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18632 # Is the header compilable?
18633 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18634 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18635 cat >conftest.
$ac_ext <<_ACEOF
18638 cat confdefs.h
>>conftest.
$ac_ext
18639 cat >>conftest.
$ac_ext <<_ACEOF
18640 /* end confdefs.h. */
18641 $ac_includes_default
18642 #include <$ac_header>
18644 rm -f conftest.
$ac_objext
18645 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18646 (eval $ac_compile) 2>conftest.er1
18648 grep -v '^ *+' conftest.er1
>conftest.err
18650 cat conftest.err
>&5
18651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18652 (exit $ac_status); } &&
18653 { ac_try
='test -z "$ac_c_werror_flag"
18654 || test ! -s conftest.err'
18655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18656 (eval $ac_try) 2>&5
18658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18659 (exit $ac_status); }; } &&
18660 { ac_try
='test -s conftest.$ac_objext'
18661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18662 (eval $ac_try) 2>&5
18664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18665 (exit $ac_status); }; }; then
18666 ac_header_compiler
=yes
18668 echo "$as_me: failed program was:" >&5
18669 sed 's/^/| /' conftest.
$ac_ext >&5
18671 ac_header_compiler
=no
18673 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18674 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18675 echo "${ECHO_T}$ac_header_compiler" >&6
18677 # Is the header present?
18678 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18679 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18680 cat >conftest.
$ac_ext <<_ACEOF
18683 cat confdefs.h
>>conftest.
$ac_ext
18684 cat >>conftest.
$ac_ext <<_ACEOF
18685 /* end confdefs.h. */
18686 #include <$ac_header>
18688 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18689 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
18691 grep -v '^ *+' conftest.er1
>conftest.err
18693 cat conftest.err
>&5
18694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18695 (exit $ac_status); } >/dev
/null
; then
18696 if test -s conftest.err
; then
18697 ac_cpp_err
=$ac_c_preproc_warn_flag
18698 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
18705 if test -z "$ac_cpp_err"; then
18706 ac_header_preproc
=yes
18708 echo "$as_me: failed program was:" >&5
18709 sed 's/^/| /' conftest.
$ac_ext >&5
18711 ac_header_preproc
=no
18713 rm -f conftest.err conftest.
$ac_ext
18714 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18715 echo "${ECHO_T}$ac_header_preproc" >&6
18717 # So? What about this header?
18718 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18720 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18721 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18722 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18723 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18724 ac_header_preproc
=yes
18727 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18728 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18729 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18730 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18731 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18732 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18733 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18734 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18735 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18736 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18737 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18738 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18741 ## ------------------------------------------ ##
18742 ## Report this to the AC_PACKAGE_NAME lists. ##
18743 ## ------------------------------------------ ##
18746 sed "s/^/$as_me: WARNING: /" >&2
18749 echo "$as_me:$LINENO: checking for $ac_header" >&5
18750 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18751 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18752 echo $ECHO_N "(cached) $ECHO_C" >&6
18754 eval "$as_ac_Header=\$ac_header_preproc"
18756 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18757 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18760 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18761 cat >>confdefs.h
<<_ACEOF
18762 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18767 for ac_header
in kerberosIV
/des.h
18769 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18770 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18771 echo "$as_me:$LINENO: checking for $ac_header" >&5
18772 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18773 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18774 echo $ECHO_N "(cached) $ECHO_C" >&6
18776 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18777 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18779 # Is the header compilable?
18780 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18781 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18782 cat >conftest.
$ac_ext <<_ACEOF
18785 cat confdefs.h
>>conftest.
$ac_ext
18786 cat >>conftest.
$ac_ext <<_ACEOF
18787 /* end confdefs.h. */
18788 $ac_includes_default
18789 #include <$ac_header>
18791 rm -f conftest.
$ac_objext
18792 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18793 (eval $ac_compile) 2>conftest.er1
18795 grep -v '^ *+' conftest.er1
>conftest.err
18797 cat conftest.err
>&5
18798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18799 (exit $ac_status); } &&
18800 { ac_try
='test -z "$ac_c_werror_flag"
18801 || test ! -s conftest.err'
18802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18803 (eval $ac_try) 2>&5
18805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18806 (exit $ac_status); }; } &&
18807 { ac_try
='test -s conftest.$ac_objext'
18808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18809 (eval $ac_try) 2>&5
18811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18812 (exit $ac_status); }; }; then
18813 ac_header_compiler
=yes
18815 echo "$as_me: failed program was:" >&5
18816 sed 's/^/| /' conftest.
$ac_ext >&5
18818 ac_header_compiler
=no
18820 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18821 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18822 echo "${ECHO_T}$ac_header_compiler" >&6
18824 # Is the header present?
18825 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18826 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18827 cat >conftest.
$ac_ext <<_ACEOF
18830 cat confdefs.h
>>conftest.
$ac_ext
18831 cat >>conftest.
$ac_ext <<_ACEOF
18832 /* end confdefs.h. */
18833 #include <$ac_header>
18835 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18836 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
18838 grep -v '^ *+' conftest.er1
>conftest.err
18840 cat conftest.err
>&5
18841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18842 (exit $ac_status); } >/dev
/null
; then
18843 if test -s conftest.err
; then
18844 ac_cpp_err
=$ac_c_preproc_warn_flag
18845 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
18852 if test -z "$ac_cpp_err"; then
18853 ac_header_preproc
=yes
18855 echo "$as_me: failed program was:" >&5
18856 sed 's/^/| /' conftest.
$ac_ext >&5
18858 ac_header_preproc
=no
18860 rm -f conftest.err conftest.
$ac_ext
18861 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18862 echo "${ECHO_T}$ac_header_preproc" >&6
18864 # So? What about this header?
18865 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18867 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18868 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18869 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18870 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18871 ac_header_preproc
=yes
18874 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18875 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18876 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18877 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18878 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18879 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18880 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18881 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18882 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18883 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18884 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18885 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18888 ## ------------------------------------------ ##
18889 ## Report this to the AC_PACKAGE_NAME lists. ##
18890 ## ------------------------------------------ ##
18893 sed "s/^/$as_me: WARNING: /" >&2
18896 echo "$as_me:$LINENO: checking for $ac_header" >&5
18897 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18898 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18899 echo $ECHO_N "(cached) $ECHO_C" >&6
18901 eval "$as_ac_Header=\$ac_header_preproc"
18903 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18904 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18907 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18908 cat >>confdefs.h
<<_ACEOF
18909 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18914 for ac_header
in kerberos
/des.h
18916 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18917 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18918 echo "$as_me:$LINENO: checking for $ac_header" >&5
18919 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18920 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18921 echo $ECHO_N "(cached) $ECHO_C" >&6
18923 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18924 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18926 # Is the header compilable?
18927 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18928 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18929 cat >conftest.
$ac_ext <<_ACEOF
18932 cat confdefs.h
>>conftest.
$ac_ext
18933 cat >>conftest.
$ac_ext <<_ACEOF
18934 /* end confdefs.h. */
18935 $ac_includes_default
18936 #include <$ac_header>
18938 rm -f conftest.
$ac_objext
18939 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18940 (eval $ac_compile) 2>conftest.er1
18942 grep -v '^ *+' conftest.er1
>conftest.err
18944 cat conftest.err
>&5
18945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18946 (exit $ac_status); } &&
18947 { ac_try
='test -z "$ac_c_werror_flag"
18948 || test ! -s conftest.err'
18949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18950 (eval $ac_try) 2>&5
18952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18953 (exit $ac_status); }; } &&
18954 { ac_try
='test -s conftest.$ac_objext'
18955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18956 (eval $ac_try) 2>&5
18958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18959 (exit $ac_status); }; }; then
18960 ac_header_compiler
=yes
18962 echo "$as_me: failed program was:" >&5
18963 sed 's/^/| /' conftest.
$ac_ext >&5
18965 ac_header_compiler
=no
18967 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18968 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18969 echo "${ECHO_T}$ac_header_compiler" >&6
18971 # Is the header present?
18972 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18973 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18974 cat >conftest.
$ac_ext <<_ACEOF
18977 cat confdefs.h
>>conftest.
$ac_ext
18978 cat >>conftest.
$ac_ext <<_ACEOF
18979 /* end confdefs.h. */
18980 #include <$ac_header>
18982 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18983 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
18985 grep -v '^ *+' conftest.er1
>conftest.err
18987 cat conftest.err
>&5
18988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18989 (exit $ac_status); } >/dev
/null
; then
18990 if test -s conftest.err
; then
18991 ac_cpp_err
=$ac_c_preproc_warn_flag
18992 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
18999 if test -z "$ac_cpp_err"; then
19000 ac_header_preproc
=yes
19002 echo "$as_me: failed program was:" >&5
19003 sed 's/^/| /' conftest.
$ac_ext >&5
19005 ac_header_preproc
=no
19007 rm -f conftest.err conftest.
$ac_ext
19008 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19009 echo "${ECHO_T}$ac_header_preproc" >&6
19011 # So? What about this header?
19012 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19014 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19015 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19016 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19017 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19018 ac_header_preproc
=yes
19021 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19022 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19023 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19024 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19025 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19026 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19027 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19028 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19029 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19030 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19031 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19032 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19035 ## ------------------------------------------ ##
19036 ## Report this to the AC_PACKAGE_NAME lists. ##
19037 ## ------------------------------------------ ##
19040 sed "s/^/$as_me: WARNING: /" >&2
19043 echo "$as_me:$LINENO: checking for $ac_header" >&5
19044 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19045 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19046 echo $ECHO_N "(cached) $ECHO_C" >&6
19048 eval "$as_ac_Header=\$ac_header_preproc"
19050 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19051 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19054 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19055 cat >>confdefs.h
<<_ACEOF
19056 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19072 for ac_header
in krb.h
19074 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19075 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19076 echo "$as_me:$LINENO: checking for $ac_header" >&5
19077 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19078 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19079 echo $ECHO_N "(cached) $ECHO_C" >&6
19081 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19082 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19084 # Is the header compilable?
19085 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19086 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19087 cat >conftest.
$ac_ext <<_ACEOF
19090 cat confdefs.h
>>conftest.
$ac_ext
19091 cat >>conftest.
$ac_ext <<_ACEOF
19092 /* end confdefs.h. */
19093 $ac_includes_default
19094 #include <$ac_header>
19096 rm -f conftest.
$ac_objext
19097 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19098 (eval $ac_compile) 2>conftest.er1
19100 grep -v '^ *+' conftest.er1
>conftest.err
19102 cat conftest.err
>&5
19103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19104 (exit $ac_status); } &&
19105 { ac_try
='test -z "$ac_c_werror_flag"
19106 || test ! -s conftest.err'
19107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19108 (eval $ac_try) 2>&5
19110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19111 (exit $ac_status); }; } &&
19112 { ac_try
='test -s conftest.$ac_objext'
19113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19114 (eval $ac_try) 2>&5
19116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19117 (exit $ac_status); }; }; then
19118 ac_header_compiler
=yes
19120 echo "$as_me: failed program was:" >&5
19121 sed 's/^/| /' conftest.
$ac_ext >&5
19123 ac_header_compiler
=no
19125 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19126 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19127 echo "${ECHO_T}$ac_header_compiler" >&6
19129 # Is the header present?
19130 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19131 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19132 cat >conftest.
$ac_ext <<_ACEOF
19135 cat confdefs.h
>>conftest.
$ac_ext
19136 cat >>conftest.
$ac_ext <<_ACEOF
19137 /* end confdefs.h. */
19138 #include <$ac_header>
19140 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19141 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
19143 grep -v '^ *+' conftest.er1
>conftest.err
19145 cat conftest.err
>&5
19146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19147 (exit $ac_status); } >/dev
/null
; then
19148 if test -s conftest.err
; then
19149 ac_cpp_err
=$ac_c_preproc_warn_flag
19150 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
19157 if test -z "$ac_cpp_err"; then
19158 ac_header_preproc
=yes
19160 echo "$as_me: failed program was:" >&5
19161 sed 's/^/| /' conftest.
$ac_ext >&5
19163 ac_header_preproc
=no
19165 rm -f conftest.err conftest.
$ac_ext
19166 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19167 echo "${ECHO_T}$ac_header_preproc" >&6
19169 # So? What about this header?
19170 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19172 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19173 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19174 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19175 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19176 ac_header_preproc
=yes
19179 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19180 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19181 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19182 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19183 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19184 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19185 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19186 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19187 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19188 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19189 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19190 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19193 ## ------------------------------------------ ##
19194 ## Report this to the AC_PACKAGE_NAME lists. ##
19195 ## ------------------------------------------ ##
19198 sed "s/^/$as_me: WARNING: /" >&2
19201 echo "$as_me:$LINENO: checking for $ac_header" >&5
19202 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19203 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19204 echo $ECHO_N "(cached) $ECHO_C" >&6
19206 eval "$as_ac_Header=\$ac_header_preproc"
19208 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19209 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19212 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19213 cat >>confdefs.h
<<_ACEOF
19214 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19219 for ac_header
in kerberosIV
/krb.h
19221 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19222 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19223 echo "$as_me:$LINENO: checking for $ac_header" >&5
19224 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19225 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19226 echo $ECHO_N "(cached) $ECHO_C" >&6
19228 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19229 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19231 # Is the header compilable?
19232 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19233 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19234 cat >conftest.
$ac_ext <<_ACEOF
19237 cat confdefs.h
>>conftest.
$ac_ext
19238 cat >>conftest.
$ac_ext <<_ACEOF
19239 /* end confdefs.h. */
19240 $ac_includes_default
19241 #include <$ac_header>
19243 rm -f conftest.
$ac_objext
19244 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19245 (eval $ac_compile) 2>conftest.er1
19247 grep -v '^ *+' conftest.er1
>conftest.err
19249 cat conftest.err
>&5
19250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19251 (exit $ac_status); } &&
19252 { ac_try
='test -z "$ac_c_werror_flag"
19253 || test ! -s conftest.err'
19254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19255 (eval $ac_try) 2>&5
19257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19258 (exit $ac_status); }; } &&
19259 { ac_try
='test -s conftest.$ac_objext'
19260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19261 (eval $ac_try) 2>&5
19263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19264 (exit $ac_status); }; }; then
19265 ac_header_compiler
=yes
19267 echo "$as_me: failed program was:" >&5
19268 sed 's/^/| /' conftest.
$ac_ext >&5
19270 ac_header_compiler
=no
19272 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19273 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19274 echo "${ECHO_T}$ac_header_compiler" >&6
19276 # Is the header present?
19277 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19278 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19279 cat >conftest.
$ac_ext <<_ACEOF
19282 cat confdefs.h
>>conftest.
$ac_ext
19283 cat >>conftest.
$ac_ext <<_ACEOF
19284 /* end confdefs.h. */
19285 #include <$ac_header>
19287 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19288 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
19290 grep -v '^ *+' conftest.er1
>conftest.err
19292 cat conftest.err
>&5
19293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19294 (exit $ac_status); } >/dev
/null
; then
19295 if test -s conftest.err
; then
19296 ac_cpp_err
=$ac_c_preproc_warn_flag
19297 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
19304 if test -z "$ac_cpp_err"; then
19305 ac_header_preproc
=yes
19307 echo "$as_me: failed program was:" >&5
19308 sed 's/^/| /' conftest.
$ac_ext >&5
19310 ac_header_preproc
=no
19312 rm -f conftest.err conftest.
$ac_ext
19313 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19314 echo "${ECHO_T}$ac_header_preproc" >&6
19316 # So? What about this header?
19317 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19319 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19320 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19321 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19322 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19323 ac_header_preproc
=yes
19326 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19327 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19328 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19329 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19330 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19331 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19332 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19333 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19334 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19335 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19336 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19337 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19340 ## ------------------------------------------ ##
19341 ## Report this to the AC_PACKAGE_NAME lists. ##
19342 ## ------------------------------------------ ##
19345 sed "s/^/$as_me: WARNING: /" >&2
19348 echo "$as_me:$LINENO: checking for $ac_header" >&5
19349 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19350 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19351 echo $ECHO_N "(cached) $ECHO_C" >&6
19353 eval "$as_ac_Header=\$ac_header_preproc"
19355 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19356 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19359 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19360 cat >>confdefs.h
<<_ACEOF
19361 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19366 for ac_header
in kerberos
/krb.h
19368 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19369 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19370 echo "$as_me:$LINENO: checking for $ac_header" >&5
19371 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19372 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19373 echo $ECHO_N "(cached) $ECHO_C" >&6
19375 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19376 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19378 # Is the header compilable?
19379 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19380 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19381 cat >conftest.
$ac_ext <<_ACEOF
19384 cat confdefs.h
>>conftest.
$ac_ext
19385 cat >>conftest.
$ac_ext <<_ACEOF
19386 /* end confdefs.h. */
19387 $ac_includes_default
19388 #include <$ac_header>
19390 rm -f conftest.
$ac_objext
19391 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19392 (eval $ac_compile) 2>conftest.er1
19394 grep -v '^ *+' conftest.er1
>conftest.err
19396 cat conftest.err
>&5
19397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19398 (exit $ac_status); } &&
19399 { ac_try
='test -z "$ac_c_werror_flag"
19400 || test ! -s conftest.err'
19401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19402 (eval $ac_try) 2>&5
19404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19405 (exit $ac_status); }; } &&
19406 { ac_try
='test -s conftest.$ac_objext'
19407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19408 (eval $ac_try) 2>&5
19410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19411 (exit $ac_status); }; }; then
19412 ac_header_compiler
=yes
19414 echo "$as_me: failed program was:" >&5
19415 sed 's/^/| /' conftest.
$ac_ext >&5
19417 ac_header_compiler
=no
19419 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19420 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19421 echo "${ECHO_T}$ac_header_compiler" >&6
19423 # Is the header present?
19424 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19425 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19426 cat >conftest.
$ac_ext <<_ACEOF
19429 cat confdefs.h
>>conftest.
$ac_ext
19430 cat >>conftest.
$ac_ext <<_ACEOF
19431 /* end confdefs.h. */
19432 #include <$ac_header>
19434 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19435 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
19437 grep -v '^ *+' conftest.er1
>conftest.err
19439 cat conftest.err
>&5
19440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19441 (exit $ac_status); } >/dev
/null
; then
19442 if test -s conftest.err
; then
19443 ac_cpp_err
=$ac_c_preproc_warn_flag
19444 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
19451 if test -z "$ac_cpp_err"; then
19452 ac_header_preproc
=yes
19454 echo "$as_me: failed program was:" >&5
19455 sed 's/^/| /' conftest.
$ac_ext >&5
19457 ac_header_preproc
=no
19459 rm -f conftest.err conftest.
$ac_ext
19460 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19461 echo "${ECHO_T}$ac_header_preproc" >&6
19463 # So? What about this header?
19464 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19466 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19467 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19468 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19469 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19470 ac_header_preproc
=yes
19473 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19474 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19475 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19476 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19477 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19478 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19479 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19480 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19481 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19482 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19483 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19484 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19487 ## ------------------------------------------ ##
19488 ## Report this to the AC_PACKAGE_NAME lists. ##
19489 ## ------------------------------------------ ##
19492 sed "s/^/$as_me: WARNING: /" >&2
19495 echo "$as_me:$LINENO: checking for $ac_header" >&5
19496 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19497 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19498 echo $ECHO_N "(cached) $ECHO_C" >&6
19500 eval "$as_ac_Header=\$ac_header_preproc"
19502 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19503 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19506 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19507 cat >>confdefs.h
<<_ACEOF
19508 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19525 for ac_header
in com_err.h
19527 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19528 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19529 echo "$as_me:$LINENO: checking for $ac_header" >&5
19530 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19531 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19532 echo $ECHO_N "(cached) $ECHO_C" >&6
19534 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19535 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19537 # Is the header compilable?
19538 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19539 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19540 cat >conftest.
$ac_ext <<_ACEOF
19543 cat confdefs.h
>>conftest.
$ac_ext
19544 cat >>conftest.
$ac_ext <<_ACEOF
19545 /* end confdefs.h. */
19546 $ac_includes_default
19547 #include <$ac_header>
19549 rm -f conftest.
$ac_objext
19550 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19551 (eval $ac_compile) 2>conftest.er1
19553 grep -v '^ *+' conftest.er1
>conftest.err
19555 cat conftest.err
>&5
19556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19557 (exit $ac_status); } &&
19558 { ac_try
='test -z "$ac_c_werror_flag"
19559 || test ! -s conftest.err'
19560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19561 (eval $ac_try) 2>&5
19563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19564 (exit $ac_status); }; } &&
19565 { ac_try
='test -s conftest.$ac_objext'
19566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19567 (eval $ac_try) 2>&5
19569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19570 (exit $ac_status); }; }; then
19571 ac_header_compiler
=yes
19573 echo "$as_me: failed program was:" >&5
19574 sed 's/^/| /' conftest.
$ac_ext >&5
19576 ac_header_compiler
=no
19578 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19579 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19580 echo "${ECHO_T}$ac_header_compiler" >&6
19582 # Is the header present?
19583 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19584 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19585 cat >conftest.
$ac_ext <<_ACEOF
19588 cat confdefs.h
>>conftest.
$ac_ext
19589 cat >>conftest.
$ac_ext <<_ACEOF
19590 /* end confdefs.h. */
19591 #include <$ac_header>
19593 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19594 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
19596 grep -v '^ *+' conftest.er1
>conftest.err
19598 cat conftest.err
>&5
19599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19600 (exit $ac_status); } >/dev
/null
; then
19601 if test -s conftest.err
; then
19602 ac_cpp_err
=$ac_c_preproc_warn_flag
19603 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
19610 if test -z "$ac_cpp_err"; then
19611 ac_header_preproc
=yes
19613 echo "$as_me: failed program was:" >&5
19614 sed 's/^/| /' conftest.
$ac_ext >&5
19616 ac_header_preproc
=no
19618 rm -f conftest.err conftest.
$ac_ext
19619 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19620 echo "${ECHO_T}$ac_header_preproc" >&6
19622 # So? What about this header?
19623 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19625 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19626 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19627 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19628 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19629 ac_header_preproc
=yes
19632 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19633 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19634 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19635 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19636 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19637 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19638 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19639 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19640 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19641 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19642 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19643 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19646 ## ------------------------------------------ ##
19647 ## Report this to the AC_PACKAGE_NAME lists. ##
19648 ## ------------------------------------------ ##
19651 sed "s/^/$as_me: WARNING: /" >&2
19654 echo "$as_me:$LINENO: checking for $ac_header" >&5
19655 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19656 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19657 echo $ECHO_N "(cached) $ECHO_C" >&6
19659 eval "$as_ac_Header=\$ac_header_preproc"
19661 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19662 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19665 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19666 cat >>confdefs.h
<<_ACEOF
19667 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19676 # Solaris requires -lintl if you want strerror (which calls dgettext)
19677 # to return localized messages.
19679 echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
19680 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6
19681 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
19682 echo $ECHO_N "(cached) $ECHO_C" >&6
19684 ac_check_lib_save_LIBS
=$LIBS
19685 LIBS
="-lintl $LIBS"
19686 cat >conftest.
$ac_ext <<_ACEOF
19689 cat confdefs.h
>>conftest.
$ac_ext
19690 cat >>conftest.
$ac_ext <<_ACEOF
19691 /* end confdefs.h. */
19693 /* Override any gcc2 internal prototype to avoid an error. */
19697 /* We use char because int might match the return type of a gcc2
19698 builtin and then its argument prototype would still apply. */
19708 rm -f conftest.
$ac_objext conftest
$ac_exeext
19709 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19710 (eval $ac_link) 2>conftest.er1
19712 grep -v '^ *+' conftest.er1
>conftest.err
19714 cat conftest.err
>&5
19715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19716 (exit $ac_status); } &&
19717 { ac_try
='test -z "$ac_c_werror_flag"
19718 || test ! -s conftest.err'
19719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19720 (eval $ac_try) 2>&5
19722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19723 (exit $ac_status); }; } &&
19724 { ac_try
='test -s conftest$ac_exeext'
19725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19726 (eval $ac_try) 2>&5
19728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19729 (exit $ac_status); }; }; then
19730 ac_cv_lib_intl_dgettext
=yes
19732 echo "$as_me: failed program was:" >&5
19733 sed 's/^/| /' conftest.
$ac_ext >&5
19735 ac_cv_lib_intl_dgettext
=no
19737 rm -f conftest.err conftest.
$ac_objext \
19738 conftest
$ac_exeext conftest.
$ac_ext
19739 LIBS
=$ac_check_lib_save_LIBS
19741 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
19742 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6
19743 if test $ac_cv_lib_intl_dgettext = yes; then
19744 cat >>confdefs.h
<<_ACEOF
19745 #define HAVE_LIBINTL 1
19748 LIBS
="-lintl $LIBS"
19753 echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
19754 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6
19755 if test "${emacs_cv_localtime_cache+set}" = set; then
19756 echo $ECHO_N "(cached) $ECHO_C" >&6
19758 if test x
$ac_cv_func_tzset = xyes
; then
19759 if test "$cross_compiling" = yes; then
19760 # If we have tzset, assume the worst when cross-compiling.
19761 emacs_cv_localtime_cache
=yes
19763 cat >conftest.
$ac_ext <<_ACEOF
19766 cat confdefs.h
>>conftest.
$ac_ext
19767 cat >>conftest.
$ac_ext <<_ACEOF
19768 /* end confdefs.h. */
19770 extern char **environ;
19774 for (to = from = environ; (*to = *from); from++)
19775 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
19778 char TZ_GMT0[] = "TZ=GMT0";
19779 char TZ_PST8[] = "TZ=PST8";
19782 time_t now = time ((time_t *) 0);
19783 int hour_GMT0, hour_unset;
19784 if (putenv (TZ_GMT0) != 0)
19786 hour_GMT0 = localtime (&now)->tm_hour;
19788 hour_unset = localtime (&now)->tm_hour;
19789 if (putenv (TZ_PST8) != 0)
19791 if (localtime (&now)->tm_hour == hour_GMT0)
19794 if (localtime (&now)->tm_hour != hour_unset)
19799 rm -f conftest
$ac_exeext
19800 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19801 (eval $ac_link) 2>&5
19803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19804 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
19805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19806 (eval $ac_try) 2>&5
19808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19809 (exit $ac_status); }; }; then
19810 emacs_cv_localtime_cache
=no
19812 echo "$as_me: program exited with status $ac_status" >&5
19813 echo "$as_me: failed program was:" >&5
19814 sed 's/^/| /' conftest.
$ac_ext >&5
19816 ( exit $ac_status )
19817 emacs_cv_localtime_cache
=yes
19819 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
19822 # If we lack tzset, report that localtime does not cache TZ,
19823 # since we can't invalidate the cache if we don't have tzset.
19824 emacs_cv_localtime_cache
=no
19827 echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
19828 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6
19829 if test $emacs_cv_localtime_cache = yes; then
19831 cat >>confdefs.h
<<\_ACEOF
19832 #define LOCALTIME_CACHE 1
19837 if test "x$HAVE_TIMEVAL" = xyes
; then
19839 for ac_func
in gettimeofday
19841 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19842 echo "$as_me:$LINENO: checking for $ac_func" >&5
19843 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19844 if eval "test \"\${$as_ac_var+set}\" = set"; then
19845 echo $ECHO_N "(cached) $ECHO_C" >&6
19847 cat >conftest.
$ac_ext <<_ACEOF
19850 cat confdefs.h
>>conftest.
$ac_ext
19851 cat >>conftest.
$ac_ext <<_ACEOF
19852 /* end confdefs.h. */
19853 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19854 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19855 #define $ac_func innocuous_$ac_func
19857 /* System header to define __stub macros and hopefully few prototypes,
19858 which can conflict with char $ac_func (); below.
19859 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19860 <limits.h> exists even on freestanding compilers. */
19863 # include <limits.h>
19865 # include <assert.h>
19870 /* Override any gcc2 internal prototype to avoid an error. */
19875 /* We use char because int might match the return type of a gcc2
19876 builtin and then its argument prototype would still apply. */
19878 /* The GNU C library defines this for functions which it implements
19879 to always fail with ENOSYS. Some functions are actually named
19880 something starting with __ and the normal name is an alias. */
19881 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19884 char (*f) () = $ac_func;
19893 return f != $ac_func;
19898 rm -f conftest.
$ac_objext conftest
$ac_exeext
19899 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19900 (eval $ac_link) 2>conftest.er1
19902 grep -v '^ *+' conftest.er1
>conftest.err
19904 cat conftest.err
>&5
19905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19906 (exit $ac_status); } &&
19907 { ac_try
='test -z "$ac_c_werror_flag"
19908 || test ! -s conftest.err'
19909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19910 (eval $ac_try) 2>&5
19912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19913 (exit $ac_status); }; } &&
19914 { ac_try
='test -s conftest$ac_exeext'
19915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19916 (eval $ac_try) 2>&5
19918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19919 (exit $ac_status); }; }; then
19920 eval "$as_ac_var=yes"
19922 echo "$as_me: failed program was:" >&5
19923 sed 's/^/| /' conftest.
$ac_ext >&5
19925 eval "$as_ac_var=no"
19927 rm -f conftest.err conftest.
$ac_objext \
19928 conftest
$ac_exeext conftest.
$ac_ext
19930 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19931 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19932 if test `eval echo '${'$as_ac_var'}'` = yes; then
19933 cat >>confdefs.h
<<_ACEOF
19934 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19940 if test $ac_cv_func_gettimeofday = yes; then
19941 echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
19942 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6
19943 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
19944 echo $ECHO_N "(cached) $ECHO_C" >&6
19946 cat >conftest.
$ac_ext <<_ACEOF
19949 cat confdefs.h
>>conftest.
$ac_ext
19950 cat >>conftest.
$ac_ext <<_ACEOF
19951 /* end confdefs.h. */
19953 #ifdef TIME_WITH_SYS_TIME
19954 #include <sys/time.h>
19957 #ifdef HAVE_SYS_TIME_H
19958 #include <sys/time.h>
19966 struct timeval time;
19967 gettimeofday (&time, 0);
19972 rm -f conftest.
$ac_objext
19973 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19974 (eval $ac_compile) 2>conftest.er1
19976 grep -v '^ *+' conftest.er1
>conftest.err
19978 cat conftest.err
>&5
19979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19980 (exit $ac_status); } &&
19981 { ac_try
='test -z "$ac_c_werror_flag"
19982 || test ! -s conftest.err'
19983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19984 (eval $ac_try) 2>&5
19986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19987 (exit $ac_status); }; } &&
19988 { ac_try
='test -s conftest.$ac_objext'
19989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19990 (eval $ac_try) 2>&5
19992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19993 (exit $ac_status); }; }; then
19994 emacs_cv_gettimeofday_two_arguments
=yes
19996 echo "$as_me: failed program was:" >&5
19997 sed 's/^/| /' conftest.
$ac_ext >&5
19999 emacs_cv_gettimeofday_two_arguments
=no
20001 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20003 echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
20004 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6
20005 if test $emacs_cv_gettimeofday_two_arguments = no
; then
20007 cat >>confdefs.h
<<\_ACEOF
20008 #define GETTIMEOFDAY_ONE_ARGUMENT 1
20015 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
20016 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
20017 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
20018 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
20019 echo $ECHO_N "(cached) $ECHO_C" >&6
20021 cat >conftest.
$ac_ext <<_ACEOF
20024 cat confdefs.h
>>conftest.
$ac_ext
20025 cat >>conftest.
$ac_ext <<_ACEOF
20026 /* end confdefs.h. */
20027 #include <sys/types.h>
20028 #include <$ac_cv_struct_tm>
20034 static struct tm ac_aggr;
20035 if (ac_aggr.tm_zone)
20041 rm -f conftest.
$ac_objext
20042 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20043 (eval $ac_compile) 2>conftest.er1
20045 grep -v '^ *+' conftest.er1
>conftest.err
20047 cat conftest.err
>&5
20048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20049 (exit $ac_status); } &&
20050 { ac_try
='test -z "$ac_c_werror_flag"
20051 || test ! -s conftest.err'
20052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20053 (eval $ac_try) 2>&5
20055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20056 (exit $ac_status); }; } &&
20057 { ac_try
='test -s conftest.$ac_objext'
20058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20059 (eval $ac_try) 2>&5
20061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20062 (exit $ac_status); }; }; then
20063 ac_cv_member_struct_tm_tm_zone
=yes
20065 echo "$as_me: failed program was:" >&5
20066 sed 's/^/| /' conftest.
$ac_ext >&5
20068 cat >conftest.
$ac_ext <<_ACEOF
20071 cat confdefs.h
>>conftest.
$ac_ext
20072 cat >>conftest.
$ac_ext <<_ACEOF
20073 /* end confdefs.h. */
20074 #include <sys/types.h>
20075 #include <$ac_cv_struct_tm>
20081 static struct tm ac_aggr;
20082 if (sizeof ac_aggr.tm_zone)
20088 rm -f conftest.
$ac_objext
20089 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20090 (eval $ac_compile) 2>conftest.er1
20092 grep -v '^ *+' conftest.er1
>conftest.err
20094 cat conftest.err
>&5
20095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20096 (exit $ac_status); } &&
20097 { ac_try
='test -z "$ac_c_werror_flag"
20098 || test ! -s conftest.err'
20099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20100 (eval $ac_try) 2>&5
20102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20103 (exit $ac_status); }; } &&
20104 { ac_try
='test -s conftest.$ac_objext'
20105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20106 (eval $ac_try) 2>&5
20108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20109 (exit $ac_status); }; }; then
20110 ac_cv_member_struct_tm_tm_zone
=yes
20112 echo "$as_me: failed program was:" >&5
20113 sed 's/^/| /' conftest.
$ac_ext >&5
20115 ac_cv_member_struct_tm_tm_zone
=no
20117 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20119 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20121 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
20122 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
20123 if test $ac_cv_member_struct_tm_tm_zone = yes; then
20125 cat >>confdefs.h
<<_ACEOF
20126 #define HAVE_STRUCT_TM_TM_ZONE 1
20132 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
20134 cat >>confdefs.h
<<\_ACEOF
20135 #define HAVE_TM_ZONE 1
20139 echo "$as_me:$LINENO: checking for tzname" >&5
20140 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
20141 if test "${ac_cv_var_tzname+set}" = set; then
20142 echo $ECHO_N "(cached) $ECHO_C" >&6
20144 cat >conftest.
$ac_ext <<_ACEOF
20147 cat confdefs.h
>>conftest.
$ac_ext
20148 cat >>conftest.
$ac_ext <<_ACEOF
20149 /* end confdefs.h. */
20151 #ifndef tzname /* For SGI. */
20152 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
20163 rm -f conftest.
$ac_objext conftest
$ac_exeext
20164 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20165 (eval $ac_link) 2>conftest.er1
20167 grep -v '^ *+' conftest.er1
>conftest.err
20169 cat conftest.err
>&5
20170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20171 (exit $ac_status); } &&
20172 { ac_try
='test -z "$ac_c_werror_flag"
20173 || test ! -s conftest.err'
20174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20175 (eval $ac_try) 2>&5
20177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20178 (exit $ac_status); }; } &&
20179 { ac_try
='test -s conftest$ac_exeext'
20180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20181 (eval $ac_try) 2>&5
20183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20184 (exit $ac_status); }; }; then
20185 ac_cv_var_tzname
=yes
20187 echo "$as_me: failed program was:" >&5
20188 sed 's/^/| /' conftest.
$ac_ext >&5
20190 ac_cv_var_tzname
=no
20192 rm -f conftest.err conftest.
$ac_objext \
20193 conftest
$ac_exeext conftest.
$ac_ext
20195 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
20196 echo "${ECHO_T}$ac_cv_var_tzname" >&6
20197 if test $ac_cv_var_tzname = yes; then
20199 cat >>confdefs.h
<<\_ACEOF
20200 #define HAVE_TZNAME 1
20207 if test "$ac_cv_func_gettimeofday" = yes; then
20208 echo "$as_me:$LINENO: checking for struct timezone" >&5
20209 echo $ECHO_N "checking for struct timezone... $ECHO_C" >&6
20210 if test "${emacs_cv_struct_timezone+set}" = set; then
20211 echo $ECHO_N "(cached) $ECHO_C" >&6
20213 cat >conftest.
$ac_ext <<_ACEOF
20216 cat confdefs.h
>>conftest.
$ac_ext
20217 cat >>conftest.
$ac_ext <<_ACEOF
20218 /* end confdefs.h. */
20219 #include <sys/time.h>
20223 struct timezone tz;
20228 rm -f conftest.
$ac_objext
20229 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20230 (eval $ac_compile) 2>conftest.er1
20232 grep -v '^ *+' conftest.er1
>conftest.err
20234 cat conftest.err
>&5
20235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20236 (exit $ac_status); } &&
20237 { ac_try
='test -z "$ac_c_werror_flag"
20238 || test ! -s conftest.err'
20239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20240 (eval $ac_try) 2>&5
20242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20243 (exit $ac_status); }; } &&
20244 { ac_try
='test -s conftest.$ac_objext'
20245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20246 (eval $ac_try) 2>&5
20248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20249 (exit $ac_status); }; }; then
20250 if test "$cross_compiling" = yes; then
20251 emacs_cv_struct_timezone
=yes
20253 cat >conftest.
$ac_ext <<_ACEOF
20256 cat confdefs.h
>>conftest.
$ac_ext
20257 cat >>conftest.
$ac_ext <<_ACEOF
20258 /* end confdefs.h. */
20260 #ifdef TIME_WITH_SYS_TIME
20261 #include <sys/time.h>
20264 #ifdef HAVE_SYS_TIME_H
20265 #include <sys/time.h>
20271 struct timeval time;
20272 struct timezone dummy;
20273 exit (gettimeofday (&time, &dummy));
20276 rm -f conftest
$ac_exeext
20277 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20278 (eval $ac_link) 2>&5
20280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20281 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
20282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20283 (eval $ac_try) 2>&5
20285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20286 (exit $ac_status); }; }; then
20287 emacs_cv_struct_timezone
=yes
20289 echo "$as_me: program exited with status $ac_status" >&5
20290 echo "$as_me: failed program was:" >&5
20291 sed 's/^/| /' conftest.
$ac_ext >&5
20293 ( exit $ac_status )
20294 emacs_cv_struct_timezone
=no
20296 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
20299 echo "$as_me: failed program was:" >&5
20300 sed 's/^/| /' conftest.
$ac_ext >&5
20302 emacs_cv_struct_timezone
=no
20304 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20306 echo "$as_me:$LINENO: result: $emacs_cv_struct_timezone" >&5
20307 echo "${ECHO_T}$emacs_cv_struct_timezone" >&6
20311 echo "$as_me:$LINENO: checking for socket" >&5
20312 echo $ECHO_N "checking for socket... $ECHO_C" >&6
20313 if test "${ac_cv_func_socket+set}" = set; then
20314 echo $ECHO_N "(cached) $ECHO_C" >&6
20316 cat >conftest.
$ac_ext <<_ACEOF
20319 cat confdefs.h
>>conftest.
$ac_ext
20320 cat >>conftest.
$ac_ext <<_ACEOF
20321 /* end confdefs.h. */
20322 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
20323 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20324 #define socket innocuous_socket
20326 /* System header to define __stub macros and hopefully few prototypes,
20327 which can conflict with char socket (); below.
20328 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20329 <limits.h> exists even on freestanding compilers. */
20332 # include <limits.h>
20334 # include <assert.h>
20339 /* Override any gcc2 internal prototype to avoid an error. */
20344 /* We use char because int might match the return type of a gcc2
20345 builtin and then its argument prototype would still apply. */
20347 /* The GNU C library defines this for functions which it implements
20348 to always fail with ENOSYS. Some functions are actually named
20349 something starting with __ and the normal name is an alias. */
20350 #if defined (__stub_socket) || defined (__stub___socket)
20353 char (*f) () = socket;
20362 return f != socket;
20367 rm -f conftest.
$ac_objext conftest
$ac_exeext
20368 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20369 (eval $ac_link) 2>conftest.er1
20371 grep -v '^ *+' conftest.er1
>conftest.err
20373 cat conftest.err
>&5
20374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20375 (exit $ac_status); } &&
20376 { ac_try
='test -z "$ac_c_werror_flag"
20377 || test ! -s conftest.err'
20378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20379 (eval $ac_try) 2>&5
20381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20382 (exit $ac_status); }; } &&
20383 { ac_try
='test -s conftest$ac_exeext'
20384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20385 (eval $ac_try) 2>&5
20387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20388 (exit $ac_status); }; }; then
20389 ac_cv_func_socket
=yes
20391 echo "$as_me: failed program was:" >&5
20392 sed 's/^/| /' conftest.
$ac_ext >&5
20394 ac_cv_func_socket
=no
20396 rm -f conftest.err conftest.
$ac_objext \
20397 conftest
$ac_exeext conftest.
$ac_ext
20399 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
20400 echo "${ECHO_T}$ac_cv_func_socket" >&6
20401 if test $ac_cv_func_socket = yes; then
20407 if test $ok_so_far = yes; then
20408 if test "${ac_cv_header_netinet_in_h+set}" = set; then
20409 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
20410 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
20411 if test "${ac_cv_header_netinet_in_h+set}" = set; then
20412 echo $ECHO_N "(cached) $ECHO_C" >&6
20414 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
20415 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
20417 # Is the header compilable?
20418 echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
20419 echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6
20420 cat >conftest.
$ac_ext <<_ACEOF
20423 cat confdefs.h
>>conftest.
$ac_ext
20424 cat >>conftest.
$ac_ext <<_ACEOF
20425 /* end confdefs.h. */
20426 $ac_includes_default
20427 #include <netinet/in.h>
20429 rm -f conftest.
$ac_objext
20430 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20431 (eval $ac_compile) 2>conftest.er1
20433 grep -v '^ *+' conftest.er1
>conftest.err
20435 cat conftest.err
>&5
20436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20437 (exit $ac_status); } &&
20438 { ac_try
='test -z "$ac_c_werror_flag"
20439 || test ! -s conftest.err'
20440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20441 (eval $ac_try) 2>&5
20443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20444 (exit $ac_status); }; } &&
20445 { ac_try
='test -s conftest.$ac_objext'
20446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20447 (eval $ac_try) 2>&5
20449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20450 (exit $ac_status); }; }; then
20451 ac_header_compiler
=yes
20453 echo "$as_me: failed program was:" >&5
20454 sed 's/^/| /' conftest.
$ac_ext >&5
20456 ac_header_compiler
=no
20458 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20459 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20460 echo "${ECHO_T}$ac_header_compiler" >&6
20462 # Is the header present?
20463 echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
20464 echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6
20465 cat >conftest.
$ac_ext <<_ACEOF
20468 cat confdefs.h
>>conftest.
$ac_ext
20469 cat >>conftest.
$ac_ext <<_ACEOF
20470 /* end confdefs.h. */
20471 #include <netinet/in.h>
20473 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20474 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
20476 grep -v '^ *+' conftest.er1
>conftest.err
20478 cat conftest.err
>&5
20479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20480 (exit $ac_status); } >/dev
/null
; then
20481 if test -s conftest.err
; then
20482 ac_cpp_err
=$ac_c_preproc_warn_flag
20483 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
20490 if test -z "$ac_cpp_err"; then
20491 ac_header_preproc
=yes
20493 echo "$as_me: failed program was:" >&5
20494 sed 's/^/| /' conftest.
$ac_ext >&5
20496 ac_header_preproc
=no
20498 rm -f conftest.err conftest.
$ac_ext
20499 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20500 echo "${ECHO_T}$ac_header_preproc" >&6
20502 # So? What about this header?
20503 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20505 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
20506 echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20507 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
20508 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
20509 ac_header_preproc
=yes
20512 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
20513 echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
20514 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
20515 echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
20516 { echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
20517 echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
20518 { echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
20519 echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
20520 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
20521 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
20522 { echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
20523 echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
20526 ## ------------------------------------------ ##
20527 ## Report this to the AC_PACKAGE_NAME lists. ##
20528 ## ------------------------------------------ ##
20531 sed "s/^/$as_me: WARNING: /" >&2
20534 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
20535 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
20536 if test "${ac_cv_header_netinet_in_h+set}" = set; then
20537 echo $ECHO_N "(cached) $ECHO_C" >&6
20539 ac_cv_header_netinet_in_h
=$ac_header_preproc
20541 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
20542 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
20545 if test $ac_cv_header_netinet_in_h = yes; then
20553 if test $ok_so_far = yes; then
20554 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
20555 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
20556 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
20557 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
20558 echo $ECHO_N "(cached) $ECHO_C" >&6
20560 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
20561 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
20563 # Is the header compilable?
20564 echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
20565 echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6
20566 cat >conftest.
$ac_ext <<_ACEOF
20569 cat confdefs.h
>>conftest.
$ac_ext
20570 cat >>conftest.
$ac_ext <<_ACEOF
20571 /* end confdefs.h. */
20572 $ac_includes_default
20573 #include <arpa/inet.h>
20575 rm -f conftest.
$ac_objext
20576 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20577 (eval $ac_compile) 2>conftest.er1
20579 grep -v '^ *+' conftest.er1
>conftest.err
20581 cat conftest.err
>&5
20582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20583 (exit $ac_status); } &&
20584 { ac_try
='test -z "$ac_c_werror_flag"
20585 || test ! -s conftest.err'
20586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20587 (eval $ac_try) 2>&5
20589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20590 (exit $ac_status); }; } &&
20591 { ac_try
='test -s conftest.$ac_objext'
20592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20593 (eval $ac_try) 2>&5
20595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20596 (exit $ac_status); }; }; then
20597 ac_header_compiler
=yes
20599 echo "$as_me: failed program was:" >&5
20600 sed 's/^/| /' conftest.
$ac_ext >&5
20602 ac_header_compiler
=no
20604 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20605 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20606 echo "${ECHO_T}$ac_header_compiler" >&6
20608 # Is the header present?
20609 echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
20610 echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6
20611 cat >conftest.
$ac_ext <<_ACEOF
20614 cat confdefs.h
>>conftest.
$ac_ext
20615 cat >>conftest.
$ac_ext <<_ACEOF
20616 /* end confdefs.h. */
20617 #include <arpa/inet.h>
20619 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20620 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
20622 grep -v '^ *+' conftest.er1
>conftest.err
20624 cat conftest.err
>&5
20625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20626 (exit $ac_status); } >/dev
/null
; then
20627 if test -s conftest.err
; then
20628 ac_cpp_err
=$ac_c_preproc_warn_flag
20629 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
20636 if test -z "$ac_cpp_err"; then
20637 ac_header_preproc
=yes
20639 echo "$as_me: failed program was:" >&5
20640 sed 's/^/| /' conftest.
$ac_ext >&5
20642 ac_header_preproc
=no
20644 rm -f conftest.err conftest.
$ac_ext
20645 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20646 echo "${ECHO_T}$ac_header_preproc" >&6
20648 # So? What about this header?
20649 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20651 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
20652 echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20653 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
20654 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
20655 ac_header_preproc
=yes
20658 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
20659 echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
20660 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
20661 echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
20662 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
20663 echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
20664 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
20665 echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
20666 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
20667 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
20668 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
20669 echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
20672 ## ------------------------------------------ ##
20673 ## Report this to the AC_PACKAGE_NAME lists. ##
20674 ## ------------------------------------------ ##
20677 sed "s/^/$as_me: WARNING: /" >&2
20680 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
20681 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
20682 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
20683 echo $ECHO_N "(cached) $ECHO_C" >&6
20685 ac_cv_header_arpa_inet_h
=$ac_header_preproc
20687 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
20688 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
20691 if test $ac_cv_header_arpa_inet_h = yes; then
20699 if test $ok_so_far = yes; then
20701 cat >>confdefs.h
<<\_ACEOF
20702 #define HAVE_INET_SOCKETS 1
20708 for ac_header
in sys
/ioctl.h
20710 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20711 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20712 echo "$as_me:$LINENO: checking for $ac_header" >&5
20713 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20714 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20715 echo $ECHO_N "(cached) $ECHO_C" >&6
20717 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20718 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20720 # Is the header compilable?
20721 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20722 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20723 cat >conftest.
$ac_ext <<_ACEOF
20726 cat confdefs.h
>>conftest.
$ac_ext
20727 cat >>conftest.
$ac_ext <<_ACEOF
20728 /* end confdefs.h. */
20729 $ac_includes_default
20730 #include <$ac_header>
20732 rm -f conftest.
$ac_objext
20733 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20734 (eval $ac_compile) 2>conftest.er1
20736 grep -v '^ *+' conftest.er1
>conftest.err
20738 cat conftest.err
>&5
20739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20740 (exit $ac_status); } &&
20741 { ac_try
='test -z "$ac_c_werror_flag"
20742 || test ! -s conftest.err'
20743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20744 (eval $ac_try) 2>&5
20746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20747 (exit $ac_status); }; } &&
20748 { ac_try
='test -s conftest.$ac_objext'
20749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20750 (eval $ac_try) 2>&5
20752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20753 (exit $ac_status); }; }; then
20754 ac_header_compiler
=yes
20756 echo "$as_me: failed program was:" >&5
20757 sed 's/^/| /' conftest.
$ac_ext >&5
20759 ac_header_compiler
=no
20761 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20762 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20763 echo "${ECHO_T}$ac_header_compiler" >&6
20765 # Is the header present?
20766 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20767 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20768 cat >conftest.
$ac_ext <<_ACEOF
20771 cat confdefs.h
>>conftest.
$ac_ext
20772 cat >>conftest.
$ac_ext <<_ACEOF
20773 /* end confdefs.h. */
20774 #include <$ac_header>
20776 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20777 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
20779 grep -v '^ *+' conftest.er1
>conftest.err
20781 cat conftest.err
>&5
20782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20783 (exit $ac_status); } >/dev
/null
; then
20784 if test -s conftest.err
; then
20785 ac_cpp_err
=$ac_c_preproc_warn_flag
20786 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
20793 if test -z "$ac_cpp_err"; then
20794 ac_header_preproc
=yes
20796 echo "$as_me: failed program was:" >&5
20797 sed 's/^/| /' conftest.
$ac_ext >&5
20799 ac_header_preproc
=no
20801 rm -f conftest.err conftest.
$ac_ext
20802 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20803 echo "${ECHO_T}$ac_header_preproc" >&6
20805 # So? What about this header?
20806 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20808 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20809 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20810 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20811 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20812 ac_header_preproc
=yes
20815 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20816 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20817 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20818 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20819 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20820 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20821 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20822 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20823 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20824 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20825 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20826 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20829 ## ------------------------------------------ ##
20830 ## Report this to the AC_PACKAGE_NAME lists. ##
20831 ## ------------------------------------------ ##
20834 sed "s/^/$as_me: WARNING: /" >&2
20837 echo "$as_me:$LINENO: checking for $ac_header" >&5
20838 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20839 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20840 echo $ECHO_N "(cached) $ECHO_C" >&6
20842 eval "$as_ac_Header=\$ac_header_preproc"
20844 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20845 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20848 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20849 cat >>confdefs.h
<<_ACEOF
20850 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20858 if test -f /usr
/lpp
/X11
/bin
/smt.exp
; then
20860 cat >>confdefs.h
<<\_ACEOF
20861 #define HAVE_AIX_SMT_EXP 1
20866 echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
20867 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6
20868 if test -d /dev
/pts
&& ls -d /dev
/ptmx
> /dev
/null
2>&1 ; then
20869 echo "$as_me:$LINENO: result: yes" >&5
20870 echo "${ECHO_T}yes" >&6
20872 cat >>confdefs.h
<<\_ACEOF
20873 #define HAVE_DEV_PTMX 1
20877 echo "$as_me:$LINENO: result: no" >&5
20878 echo "${ECHO_T}no" >&6
20881 echo "$as_me:$LINENO: checking for pid_t" >&5
20882 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
20883 if test "${ac_cv_type_pid_t+set}" = set; then
20884 echo $ECHO_N "(cached) $ECHO_C" >&6
20886 cat >conftest.
$ac_ext <<_ACEOF
20889 cat confdefs.h
>>conftest.
$ac_ext
20890 cat >>conftest.
$ac_ext <<_ACEOF
20891 /* end confdefs.h. */
20892 $ac_includes_default
20898 if (sizeof (pid_t))
20904 rm -f conftest.
$ac_objext
20905 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20906 (eval $ac_compile) 2>conftest.er1
20908 grep -v '^ *+' conftest.er1
>conftest.err
20910 cat conftest.err
>&5
20911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20912 (exit $ac_status); } &&
20913 { ac_try
='test -z "$ac_c_werror_flag"
20914 || test ! -s conftest.err'
20915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20916 (eval $ac_try) 2>&5
20918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20919 (exit $ac_status); }; } &&
20920 { ac_try
='test -s conftest.$ac_objext'
20921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20922 (eval $ac_try) 2>&5
20924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20925 (exit $ac_status); }; }; then
20926 ac_cv_type_pid_t
=yes
20928 echo "$as_me: failed program was:" >&5
20929 sed 's/^/| /' conftest.
$ac_ext >&5
20931 ac_cv_type_pid_t
=no
20933 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20935 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
20936 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
20937 if test $ac_cv_type_pid_t = yes; then
20941 cat >>confdefs.h
<<_ACEOF
20949 for ac_header
in unistd.h vfork.h
20951 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20952 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20953 echo "$as_me:$LINENO: checking for $ac_header" >&5
20954 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20955 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20956 echo $ECHO_N "(cached) $ECHO_C" >&6
20958 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20959 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20961 # Is the header compilable?
20962 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20963 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20964 cat >conftest.
$ac_ext <<_ACEOF
20967 cat confdefs.h
>>conftest.
$ac_ext
20968 cat >>conftest.
$ac_ext <<_ACEOF
20969 /* end confdefs.h. */
20970 $ac_includes_default
20971 #include <$ac_header>
20973 rm -f conftest.
$ac_objext
20974 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20975 (eval $ac_compile) 2>conftest.er1
20977 grep -v '^ *+' conftest.er1
>conftest.err
20979 cat conftest.err
>&5
20980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20981 (exit $ac_status); } &&
20982 { ac_try
='test -z "$ac_c_werror_flag"
20983 || test ! -s conftest.err'
20984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20985 (eval $ac_try) 2>&5
20987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20988 (exit $ac_status); }; } &&
20989 { ac_try
='test -s conftest.$ac_objext'
20990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20991 (eval $ac_try) 2>&5
20993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20994 (exit $ac_status); }; }; then
20995 ac_header_compiler
=yes
20997 echo "$as_me: failed program was:" >&5
20998 sed 's/^/| /' conftest.
$ac_ext >&5
21000 ac_header_compiler
=no
21002 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21003 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21004 echo "${ECHO_T}$ac_header_compiler" >&6
21006 # Is the header present?
21007 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21008 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21009 cat >conftest.
$ac_ext <<_ACEOF
21012 cat confdefs.h
>>conftest.
$ac_ext
21013 cat >>conftest.
$ac_ext <<_ACEOF
21014 /* end confdefs.h. */
21015 #include <$ac_header>
21017 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21018 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
21020 grep -v '^ *+' conftest.er1
>conftest.err
21022 cat conftest.err
>&5
21023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21024 (exit $ac_status); } >/dev
/null
; then
21025 if test -s conftest.err
; then
21026 ac_cpp_err
=$ac_c_preproc_warn_flag
21027 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
21034 if test -z "$ac_cpp_err"; then
21035 ac_header_preproc
=yes
21037 echo "$as_me: failed program was:" >&5
21038 sed 's/^/| /' conftest.
$ac_ext >&5
21040 ac_header_preproc
=no
21042 rm -f conftest.err conftest.
$ac_ext
21043 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21044 echo "${ECHO_T}$ac_header_preproc" >&6
21046 # So? What about this header?
21047 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21049 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21050 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21051 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21052 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21053 ac_header_preproc
=yes
21056 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21057 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21058 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21059 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21060 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21061 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21062 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21063 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21064 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21065 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21066 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21067 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21070 ## ------------------------------------------ ##
21071 ## Report this to the AC_PACKAGE_NAME lists. ##
21072 ## ------------------------------------------ ##
21075 sed "s/^/$as_me: WARNING: /" >&2
21078 echo "$as_me:$LINENO: checking for $ac_header" >&5
21079 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21080 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21081 echo $ECHO_N "(cached) $ECHO_C" >&6
21083 eval "$as_ac_Header=\$ac_header_preproc"
21085 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21086 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21089 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21090 cat >>confdefs.h
<<_ACEOF
21091 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21100 for ac_func
in fork vfork
21102 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21103 echo "$as_me:$LINENO: checking for $ac_func" >&5
21104 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21105 if eval "test \"\${$as_ac_var+set}\" = set"; then
21106 echo $ECHO_N "(cached) $ECHO_C" >&6
21108 cat >conftest.
$ac_ext <<_ACEOF
21111 cat confdefs.h
>>conftest.
$ac_ext
21112 cat >>conftest.
$ac_ext <<_ACEOF
21113 /* end confdefs.h. */
21114 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21115 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21116 #define $ac_func innocuous_$ac_func
21118 /* System header to define __stub macros and hopefully few prototypes,
21119 which can conflict with char $ac_func (); below.
21120 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21121 <limits.h> exists even on freestanding compilers. */
21124 # include <limits.h>
21126 # include <assert.h>
21131 /* Override any gcc2 internal prototype to avoid an error. */
21136 /* We use char because int might match the return type of a gcc2
21137 builtin and then its argument prototype would still apply. */
21139 /* The GNU C library defines this for functions which it implements
21140 to always fail with ENOSYS. Some functions are actually named
21141 something starting with __ and the normal name is an alias. */
21142 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21145 char (*f) () = $ac_func;
21154 return f != $ac_func;
21159 rm -f conftest.
$ac_objext conftest
$ac_exeext
21160 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21161 (eval $ac_link) 2>conftest.er1
21163 grep -v '^ *+' conftest.er1
>conftest.err
21165 cat conftest.err
>&5
21166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21167 (exit $ac_status); } &&
21168 { ac_try
='test -z "$ac_c_werror_flag"
21169 || test ! -s conftest.err'
21170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21171 (eval $ac_try) 2>&5
21173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21174 (exit $ac_status); }; } &&
21175 { ac_try
='test -s conftest$ac_exeext'
21176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21177 (eval $ac_try) 2>&5
21179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21180 (exit $ac_status); }; }; then
21181 eval "$as_ac_var=yes"
21183 echo "$as_me: failed program was:" >&5
21184 sed 's/^/| /' conftest.
$ac_ext >&5
21186 eval "$as_ac_var=no"
21188 rm -f conftest.err conftest.
$ac_objext \
21189 conftest
$ac_exeext conftest.
$ac_ext
21191 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21192 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21193 if test `eval echo '${'$as_ac_var'}'` = yes; then
21194 cat >>confdefs.h
<<_ACEOF
21195 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21201 if test "x$ac_cv_func_fork" = xyes
; then
21202 echo "$as_me:$LINENO: checking for working fork" >&5
21203 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
21204 if test "${ac_cv_func_fork_works+set}" = set; then
21205 echo $ECHO_N "(cached) $ECHO_C" >&6
21207 if test "$cross_compiling" = yes; then
21208 ac_cv_func_fork_works
=cross
21210 cat >conftest.
$ac_ext <<_ACEOF
21211 /* By Ruediger Kuhlmann. */
21212 #include <sys/types.h>
21214 # include <unistd.h>
21216 /* Some systems only have a dummy stub for fork() */
21224 rm -f conftest
$ac_exeext
21225 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21226 (eval $ac_link) 2>&5
21228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21229 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
21230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21231 (eval $ac_try) 2>&5
21233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21234 (exit $ac_status); }; }; then
21235 ac_cv_func_fork_works
=yes
21237 echo "$as_me: program exited with status $ac_status" >&5
21238 echo "$as_me: failed program was:" >&5
21239 sed 's/^/| /' conftest.
$ac_ext >&5
21241 ( exit $ac_status )
21242 ac_cv_func_fork_works
=no
21244 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
21247 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
21248 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
21251 ac_cv_func_fork_works
=$ac_cv_func_fork
21253 if test "x$ac_cv_func_fork_works" = xcross
; then
21255 *-*-amigaos* |
*-*-msdosdjgpp*)
21256 # Override, as these systems have only a dummy fork() stub
21257 ac_cv_func_fork_works
=no
21260 ac_cv_func_fork_works
=yes
21263 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
21264 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
21266 ac_cv_func_vfork_works
=$ac_cv_func_vfork
21267 if test "x$ac_cv_func_vfork" = xyes
; then
21268 echo "$as_me:$LINENO: checking for working vfork" >&5
21269 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
21270 if test "${ac_cv_func_vfork_works+set}" = set; then
21271 echo $ECHO_N "(cached) $ECHO_C" >&6
21273 if test "$cross_compiling" = yes; then
21274 ac_cv_func_vfork_works
=cross
21276 cat >conftest.
$ac_ext <<_ACEOF
21279 cat confdefs.h
>>conftest.
$ac_ext
21280 cat >>conftest.
$ac_ext <<_ACEOF
21281 /* end confdefs.h. */
21282 /* Thanks to Paul Eggert for this test. */
21284 #include <stdlib.h>
21285 #include <sys/types.h>
21286 #include <sys/stat.h>
21287 #include <sys/wait.h>
21289 # include <unistd.h>
21292 # include <vfork.h>
21294 /* On some sparc systems, changes by the child to local and incoming
21295 argument registers are propagated back to the parent. The compiler
21296 is told about this with #include <vfork.h>, but some compilers
21297 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
21298 static variable whose address is put into a register that is
21299 clobbered by the vfork. */
21302 sparc_address_test (int arg)
21304 sparc_address_test (arg) int arg;
21307 static pid_t child;
21325 pid_t parent = getpid ();
21328 sparc_address_test (0);
21333 /* Here is another test for sparc vfork register problems. This
21334 test uses lots of local variables, at least as many local
21335 variables as main has allocated so far including compiler
21336 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
21337 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
21338 reuse the register of parent for one of the local variables,
21339 since it will think that parent can't possibly be used any more
21340 in this routine. Assigning to the local variable will thus
21341 munge parent in the parent process. */
21343 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
21344 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
21345 /* Convince the compiler that p..p7 are live; otherwise, it might
21346 use the same hardware register for all 8 local variables. */
21347 if (p != p1 || p != p2 || p != p3 || p != p4
21348 || p != p5 || p != p6 || p != p7)
21351 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
21352 from child file descriptors. If the child closes a descriptor
21353 before it execs or exits, this munges the parent's descriptor
21354 as well. Test for this by closing stdout in the child. */
21355 _exit(close(fileno(stdout)) != 0);
21360 while (wait(&status) != child)
21363 /* Was there some problem with vforking? */
21366 /* Did the child fail? (This shouldn't happen.) */
21369 /* Did the vfork/compiler bug occur? */
21370 || parent != getpid()
21372 /* Did the file descriptor bug occur? */
21373 || fstat(fileno(stdout), &st) != 0
21378 rm -f conftest
$ac_exeext
21379 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21380 (eval $ac_link) 2>&5
21382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21383 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
21384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21385 (eval $ac_try) 2>&5
21387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21388 (exit $ac_status); }; }; then
21389 ac_cv_func_vfork_works
=yes
21391 echo "$as_me: program exited with status $ac_status" >&5
21392 echo "$as_me: failed program was:" >&5
21393 sed 's/^/| /' conftest.
$ac_ext >&5
21395 ( exit $ac_status )
21396 ac_cv_func_vfork_works
=no
21398 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
21401 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
21402 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
21405 if test "x$ac_cv_func_fork_works" = xcross
; then
21406 ac_cv_func_vfork_works
=$ac_cv_func_vfork
21407 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
21408 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
21411 if test "x$ac_cv_func_vfork_works" = xyes
; then
21413 cat >>confdefs.h
<<\_ACEOF
21414 #define HAVE_WORKING_VFORK 1
21419 cat >>confdefs.h
<<\_ACEOF
21424 if test "x$ac_cv_func_fork_works" = xyes
; then
21426 cat >>confdefs.h
<<\_ACEOF
21427 #define HAVE_WORKING_FORK 1
21433 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
21434 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
21435 if test "${emacs_cv_langinfo_codeset+set}" = set; then
21436 echo $ECHO_N "(cached) $ECHO_C" >&6
21438 cat >conftest.
$ac_ext <<_ACEOF
21441 cat confdefs.h
>>conftest.
$ac_ext
21442 cat >>conftest.
$ac_ext <<_ACEOF
21443 /* end confdefs.h. */
21444 #include <langinfo.h>
21448 char* cs = nl_langinfo(CODESET);
21453 rm -f conftest.
$ac_objext conftest
$ac_exeext
21454 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21455 (eval $ac_link) 2>conftest.er1
21457 grep -v '^ *+' conftest.er1
>conftest.err
21459 cat conftest.err
>&5
21460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21461 (exit $ac_status); } &&
21462 { ac_try
='test -z "$ac_c_werror_flag"
21463 || test ! -s conftest.err'
21464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21465 (eval $ac_try) 2>&5
21467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21468 (exit $ac_status); }; } &&
21469 { ac_try
='test -s conftest$ac_exeext'
21470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21471 (eval $ac_try) 2>&5
21473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21474 (exit $ac_status); }; }; then
21475 emacs_cv_langinfo_codeset
=yes
21477 echo "$as_me: failed program was:" >&5
21478 sed 's/^/| /' conftest.
$ac_ext >&5
21480 emacs_cv_langinfo_codeset
=no
21482 rm -f conftest.err conftest.
$ac_objext \
21483 conftest
$ac_exeext conftest.
$ac_ext
21486 echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
21487 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6
21488 if test $emacs_cv_langinfo_codeset = yes; then
21490 cat >>confdefs.h
<<\_ACEOF
21491 #define HAVE_LANGINFO_CODESET 1
21496 echo "$as_me:$LINENO: checking for size_t" >&5
21497 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
21498 if test "${ac_cv_type_size_t+set}" = set; then
21499 echo $ECHO_N "(cached) $ECHO_C" >&6
21501 cat >conftest.
$ac_ext <<_ACEOF
21504 cat confdefs.h
>>conftest.
$ac_ext
21505 cat >>conftest.
$ac_ext <<_ACEOF
21506 /* end confdefs.h. */
21507 $ac_includes_default
21513 if (sizeof (size_t))
21519 rm -f conftest.
$ac_objext
21520 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21521 (eval $ac_compile) 2>conftest.er1
21523 grep -v '^ *+' conftest.er1
>conftest.err
21525 cat conftest.err
>&5
21526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21527 (exit $ac_status); } &&
21528 { ac_try
='test -z "$ac_c_werror_flag"
21529 || test ! -s conftest.err'
21530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21531 (eval $ac_try) 2>&5
21533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21534 (exit $ac_status); }; } &&
21535 { ac_try
='test -s conftest.$ac_objext'
21536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21537 (eval $ac_try) 2>&5
21539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21540 (exit $ac_status); }; }; then
21541 ac_cv_type_size_t
=yes
21543 echo "$as_me: failed program was:" >&5
21544 sed 's/^/| /' conftest.
$ac_ext >&5
21546 ac_cv_type_size_t
=no
21548 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21550 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
21551 echo "${ECHO_T}$ac_cv_type_size_t" >&6
21552 if test $ac_cv_type_size_t = yes; then
21554 cat >>confdefs.h
<<_ACEOF
21555 #define HAVE_SIZE_T 1
21562 echo "$as_me:$LINENO: checking for mbstate_t" >&5
21563 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
21564 if test "${ac_cv_type_mbstate_t+set}" = set; then
21565 echo $ECHO_N "(cached) $ECHO_C" >&6
21567 cat >conftest.
$ac_ext <<_ACEOF
21570 cat confdefs.h
>>conftest.
$ac_ext
21571 cat >>conftest.
$ac_ext <<_ACEOF
21572 /* end confdefs.h. */
21573 $ac_includes_default
21574 # include <wchar.h>
21578 mbstate_t x; return sizeof x;
21583 rm -f conftest.
$ac_objext
21584 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21585 (eval $ac_compile) 2>conftest.er1
21587 grep -v '^ *+' conftest.er1
>conftest.err
21589 cat conftest.err
>&5
21590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21591 (exit $ac_status); } &&
21592 { ac_try
='test -z "$ac_c_werror_flag"
21593 || test ! -s conftest.err'
21594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21595 (eval $ac_try) 2>&5
21597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21598 (exit $ac_status); }; } &&
21599 { ac_try
='test -s conftest.$ac_objext'
21600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21601 (eval $ac_try) 2>&5
21603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21604 (exit $ac_status); }; }; then
21605 ac_cv_type_mbstate_t
=yes
21607 echo "$as_me: failed program was:" >&5
21608 sed 's/^/| /' conftest.
$ac_ext >&5
21610 ac_cv_type_mbstate_t
=no
21612 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21614 echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
21615 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
21616 if test $ac_cv_type_mbstate_t = yes; then
21618 cat >>confdefs.h
<<\_ACEOF
21619 #define HAVE_MBSTATE_T 1
21624 cat >>confdefs.h
<<\_ACEOF
21625 #define mbstate_t int
21630 echo "$as_me:$LINENO: checking for C restrict keyword" >&5
21631 echo $ECHO_N "checking for C restrict keyword... $ECHO_C" >&6
21632 if test "${emacs_cv_c_restrict+set}" = set; then
21633 echo $ECHO_N "(cached) $ECHO_C" >&6
21635 cat >conftest.
$ac_ext <<_ACEOF
21638 cat confdefs.h
>>conftest.
$ac_ext
21639 cat >>conftest.
$ac_ext <<_ACEOF
21640 /* end confdefs.h. */
21641 void fred (int *restrict x);
21650 rm -f conftest.
$ac_objext
21651 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21652 (eval $ac_compile) 2>conftest.er1
21654 grep -v '^ *+' conftest.er1
>conftest.err
21656 cat conftest.err
>&5
21657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21658 (exit $ac_status); } &&
21659 { ac_try
='test -z "$ac_c_werror_flag"
21660 || test ! -s conftest.err'
21661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21662 (eval $ac_try) 2>&5
21664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21665 (exit $ac_status); }; } &&
21666 { ac_try
='test -s conftest.$ac_objext'
21667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21668 (eval $ac_try) 2>&5
21670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21671 (exit $ac_status); }; }; then
21672 emacs_cv_c_restrict
=yes
21674 echo "$as_me: failed program was:" >&5
21675 sed 's/^/| /' conftest.
$ac_ext >&5
21677 cat >conftest.
$ac_ext <<_ACEOF
21680 cat confdefs.h
>>conftest.
$ac_ext
21681 cat >>conftest.
$ac_ext <<_ACEOF
21682 /* end confdefs.h. */
21683 void fred (int *__restrict x);
21692 rm -f conftest.
$ac_objext
21693 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21694 (eval $ac_compile) 2>conftest.er1
21696 grep -v '^ *+' conftest.er1
>conftest.err
21698 cat conftest.err
>&5
21699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21700 (exit $ac_status); } &&
21701 { ac_try
='test -z "$ac_c_werror_flag"
21702 || test ! -s conftest.err'
21703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21704 (eval $ac_try) 2>&5
21706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21707 (exit $ac_status); }; } &&
21708 { ac_try
='test -s conftest.$ac_objext'
21709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21710 (eval $ac_try) 2>&5
21712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21713 (exit $ac_status); }; }; then
21714 emacs_cv_c_restrict
=__restrict
21716 echo "$as_me: failed program was:" >&5
21717 sed 's/^/| /' conftest.
$ac_ext >&5
21719 emacs_cv_c_restrict
=no
21721 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21723 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21725 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
21726 echo "${ECHO_T}$emacs_cv_c_restrict" >&6
21727 case "$emacs_cv_c_restrict" in
21728 yes) emacs_restrict
=restrict
;;
21729 no
) emacs_restrict
="";;
21730 *) emacs_restrict
="$emacs_cv_c_restrict";;
21732 if test "$emacs_restrict" != __restrict
; then
21734 cat >>confdefs.h
<<_ACEOF
21735 #define __restrict $emacs_restrict
21740 echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
21741 echo $ECHO_N "checking for C restricted array declarations... $ECHO_C" >&6
21742 if test "${emacs_cv_c_restrict_arr+set}" = set; then
21743 echo $ECHO_N "(cached) $ECHO_C" >&6
21745 cat >conftest.
$ac_ext <<_ACEOF
21748 cat confdefs.h
>>conftest.
$ac_ext
21749 cat >>conftest.
$ac_ext <<_ACEOF
21750 /* end confdefs.h. */
21751 void fred (int x[__restrict]);
21760 rm -f conftest.
$ac_objext
21761 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21762 (eval $ac_compile) 2>conftest.er1
21764 grep -v '^ *+' conftest.er1
>conftest.err
21766 cat conftest.err
>&5
21767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21768 (exit $ac_status); } &&
21769 { ac_try
='test -z "$ac_c_werror_flag"
21770 || test ! -s conftest.err'
21771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21772 (eval $ac_try) 2>&5
21774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21775 (exit $ac_status); }; } &&
21776 { ac_try
='test -s conftest.$ac_objext'
21777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21778 (eval $ac_try) 2>&5
21780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21781 (exit $ac_status); }; }; then
21782 emacs_cv_c_restrict_arr
=yes
21784 echo "$as_me: failed program was:" >&5
21785 sed 's/^/| /' conftest.
$ac_ext >&5
21787 emacs_cv_c_restrict_arr
=no
21789 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21791 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
21792 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6
21793 if test "$emacs_cv_c_restrict_arr" = yes; then
21795 cat >>confdefs.h
<<\_ACEOF
21796 #define __restrict_arr __restrict
21803 # Set up the CFLAGS for real compilation, so we can substitute it.
21804 CFLAGS
="$REAL_CFLAGS"
21805 CPPFLAGS
="$REAL_CPPFLAGS"
21807 #### Find out which version of Emacs this is.
21808 version
=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
21809 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
21810 if test x
"${version}" = x
; then
21811 { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
21812 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
21813 { (exit 1); exit 1; }; }
21816 ### Specify what sort of things we'll be editing into Makefile and config.h.
21817 ### Use configuration here uncanonicalized to avoid exceeding size limits.
21853 cat >>confdefs.h
<<_ACEOF
21854 #define EMACS_CONFIGURATION "${canonical}"
21858 cat >>confdefs.h
<<_ACEOF
21859 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
21863 cat >>confdefs.h
<<_ACEOF
21864 #define config_machfile "${machfile}"
21868 cat >>confdefs.h
<<_ACEOF
21869 #define config_opsysfile "${opsysfile}"
21873 cat >>confdefs.h
<<_ACEOF
21874 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
21878 cat >>confdefs.h
<<_ACEOF
21879 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
21883 cat >>confdefs.h
<<_ACEOF
21884 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
21888 cat >>confdefs.h
<<_ACEOF
21889 #define UNEXEC_SRC ${UNEXEC_SRC}
21893 if test "${HAVE_X_WINDOWS}" = "yes" ; then
21895 cat >>confdefs.h
<<\_ACEOF
21896 #define HAVE_X_WINDOWS 1
21900 if test "${USE_X_TOOLKIT}" != "none" ; then
21902 cat >>confdefs.h
<<\_ACEOF
21903 #define USE_X_TOOLKIT 1
21907 if test "${HAVE_X11}" = "yes" ; then
21909 cat >>confdefs.h
<<\_ACEOF
21914 if test "${HAVE_XFREE386}" = "yes" ; then
21916 cat >>confdefs.h
<<\_ACEOF
21917 #define HAVE_XFREE386 1
21921 if test "${HAVE_MENUS}" = "yes" ; then
21923 cat >>confdefs.h
<<\_ACEOF
21924 #define HAVE_MENUS 1
21928 if test "${GNU_MALLOC}" = "yes" ; then
21930 cat >>confdefs.h
<<\_ACEOF
21931 #define GNU_MALLOC 1
21935 if test "${REL_ALLOC}" = "yes" ; then
21937 cat >>confdefs.h
<<\_ACEOF
21938 #define REL_ALLOC 1
21947 #### Report on what we decided to do.
21948 #### Report GTK as a toolkit, even if it doesn't use Xt.
21949 #### It makes printing result more understandable as using GTK sets
21950 #### toolkit_scroll_bars to yes by default.
21951 if test "${HAVE_GTK}" = "yes"; then
21956 Configured for \`${canonical}'.
21958 Where should the build process find the source code? ${srcdir}
21959 What operating system and machine description files should Emacs use?
21960 \`${opsysfile}' and \`${machfile}'
21961 What compiler should emacs be built with? ${CC} ${CFLAGS}
21962 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
21963 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
21964 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
21965 What window system should Emacs use? ${window_system}
21966 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
21968 if test -n "${x_includes}"; then
21969 echo " Where do we find X Windows header files? ${x_includes}"
21971 echo " Where do we find X Windows header files? Standard dirs"
21973 if test -n "${x_libraries}"; then
21974 echo " Where do we find X Windows libraries? ${x_libraries}"
21976 echo " Where do we find X Windows libraries? Standard dirs"
21979 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
21980 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
21981 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
21982 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
21983 echo " Does Emacs use -lungif? ${HAVE_GIF}"
21984 echo " Does Emacs use -lpng? ${HAVE_PNG}"
21985 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
21988 if test $USE_XASSERTS = yes; then
21989 echo " Compiling with asserts turned on."
21990 CFLAGS
="$CFLAGS -DXASSERTS=1"
21991 CPPFLAGS
="$CPPFLAGS -DXASSERTS=1"
21997 # Remove any trailing slashes in these variables.
21998 test "${prefix}" != NONE
&&
21999 prefix
=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
22000 test "${exec_prefix}" != NONE
&&
22001 exec_prefix
=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
22003 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
22004 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
22005 ## from Makefile.c can correctly provide the arg `-traditional' to the
22008 cat >conftest.
$ac_ext <<_ACEOF
22011 cat confdefs.h
>>conftest.
$ac_ext
22012 cat >>conftest.
$ac_ext <<_ACEOF
22013 /* end confdefs.h. */
22016 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22017 $EGREP "yes..yes" >/dev
/null
2>&1; then
22018 CPP_NEED_TRADITIONAL
=no
22020 CPP_NEED_TRADITIONAL
=yes
22025 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"
22026 ac_config_commands
="$ac_config_commands default"
22027 cat >confcache
<<\_ACEOF
22028 # This file is a shell script that caches the results of configure
22029 # tests run on this system so they can be shared between configure
22030 # scripts and configure runs, see configure's option --config-cache.
22031 # It is not useful on other systems. If it contains results you don't
22032 # want to keep, you may remove or edit it.
22034 # config.status only pays attention to the cache file if you give it
22035 # the --recheck option to rerun configure.
22037 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22038 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22039 # following values.
22043 # The following way of writing the cache mishandles newlines in values,
22044 # but we know of no workaround that is simple, portable, and efficient.
22045 # So, don't put newlines in cache variables' values.
22046 # Ultrix sh set writes to stderr and can't be redirected directly,
22047 # and sets the high bit in the cache file unless we assign to the vars.
22050 case `(ac_space=' '; set | grep ac_space) 2>&1` in
22052 # `set' does not quote correctly, so add quotes (double-quote
22053 # substitution turns \\\\ into \\, and sed turns \\ into \).
22056 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22059 # `set' quotes correctly as required by POSIX, so do not add quotes.
22061 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22068 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22070 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22072 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
22073 if test -w $cache_file; then
22074 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22075 cat confcache
>$cache_file
22077 echo "not updating unwritable cache $cache_file"
22082 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
22083 # Let make expand exec_prefix.
22084 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
22086 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22087 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22088 # trailing colons and then remove the whole line if VPATH becomes empty
22089 # (actually we leave an empty line to preserve line numbers).
22090 if test "x$srcdir" = x.
; then
22091 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
22092 s/:*\$(srcdir):*/:/;
22093 s/:*\${srcdir}:*/:/;
22095 s/^\([^=]*=[ ]*\):*/\1/;
22101 DEFS
=-DHAVE_CONFIG_H
22105 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
22106 # 1. Remove the extension, and $U if already installed.
22107 ac_i
=`echo "$ac_i" |
22108 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
22110 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
22111 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
22113 LIBOBJS
=$ac_libobjs
22115 LTLIBOBJS
=$ac_ltlibobjs
22119 : ${CONFIG_STATUS=./config.status}
22120 ac_clean_files_save
=$ac_clean_files
22121 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
22122 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22123 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22124 cat >$CONFIG_STATUS <<_ACEOF
22126 # Generated by $as_me.
22127 # Run this file to recreate the current configuration.
22128 # Compiler output produced by configure, useful for debugging
22129 # configure, is in config.log if it exists.
22132 ac_cs_recheck=false
22134 SHELL=\${CONFIG_SHELL-$SHELL}
22137 cat >>$CONFIG_STATUS <<\_ACEOF
22138 ## --------------------- ##
22139 ## M4sh Initialization. ##
22140 ## --------------------- ##
22142 # Be Bourne compatible
22143 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
22146 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22147 # is contrary to our usage. Disable this feature.
22148 alias -g '${1+"$@"}'='"$@"'
22149 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
22152 DUALCASE
=1; export DUALCASE
# for MKS sh
22154 # Support unset when possible.
22155 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
22162 # Work around bugs in pre-3.0 UWIN ksh.
22163 $as_unset ENV MAIL MAILPATH
22170 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22171 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22172 LC_TELEPHONE LC_TIME
22174 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22175 eval $as_var=C
; export $as_var
22181 # Required to use basename.
22182 if expr a
: '\(a\)' >/dev
/null
2>&1; then
22188 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
22189 as_basename
=basename
22195 # Name of the executable.
22196 as_me
=`$as_basename "$0" ||
22197 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22198 X"$0" : 'X\(//\)$' \| \
22199 X"$0" : 'X\(/\)$' \| \
22200 . : '\(.\)' 2>/dev/null ||
22202 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
22203 /^X\/\(\/\/\)$/{ s//\1/; q; }
22204 /^X\/\(\/\).*/{ s//\1/; q; }
22208 # PATH needs CR, and LINENO needs CR and PATH.
22209 # Avoid depending upon Character Ranges.
22210 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
22211 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22212 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
22213 as_cr_digits
='0123456789'
22214 as_cr_alnum
=$as_cr_Letters$as_cr_digits
22216 # The user is always right.
22217 if test "${PATH_SEPARATOR+set}" != set; then
22218 echo "#! /bin/sh" >conf$$.sh
22219 echo "exit 0" >>conf$$.sh
22221 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
22230 as_lineno_1
=$LINENO
22231 as_lineno_2
=$LINENO
22232 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
22233 test "x$as_lineno_1" != "x$as_lineno_2" &&
22234 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
22235 # Find who we are. Look in the path if we contain no path at all
22238 *[\\/]* ) as_myself
=$0 ;;
22239 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
22240 for as_dir
in $PATH
22243 test -z "$as_dir" && as_dir
=.
22244 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
22249 # We did not find ourselves, most probably we were run as `sh COMMAND'
22250 # in which case we are not to be found in the path.
22251 if test "x$as_myself" = x
; then
22254 if test ! -f "$as_myself"; then
22255 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
22256 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
22257 { (exit 1); exit 1; }; }
22259 case $CONFIG_SHELL in
22261 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
22262 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
22265 test -z "$as_dir" && as_dir
=.
22266 for as_base
in sh bash ksh sh5
; do
22269 if ("$as_dir/$as_base" -c '
22270 as_lineno_1=$LINENO
22271 as_lineno_2=$LINENO
22272 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22273 test "x$as_lineno_1" != "x$as_lineno_2" &&
22274 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
22275 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
22276 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
22277 CONFIG_SHELL
=$as_dir/$as_base
22278 export CONFIG_SHELL
22279 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
22287 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22288 # uniformly replaced by the line number. The first 'sed' inserts a
22289 # line-number line before each line; the second 'sed' does the real
22290 # work. The second script uses 'N' to pair each line-number line
22291 # with the numbered line, and appends trailing '-' during
22292 # substitution so that $LINENO is not a special case at line end.
22293 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22294 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
22295 sed '=' <$as_myself |
22300 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
22303 s,^['$as_cr_digits']*\n,,
22304 ' >$as_me.lineno
&&
22305 chmod +x
$as_me.lineno ||
22306 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
22307 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
22308 { (exit 1); exit 1; }; }
22310 # Don't try to exec as it changes $[0], causing all sort of problems
22311 # (the dirname of $[0] is not the place where we might find the
22312 # original and so on. Autoconf is especially sensible to this).
22314 # Exit status is that of the last command.
22319 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
22320 *c
*,-n*) ECHO_N
= ECHO_C
='
22322 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
22323 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
22326 if expr a
: '\(a\)' >/dev
/null
2>&1; then
22332 rm -f conf$$ conf$$.exe conf$$.
file
22334 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
22335 # We could just check for DJGPP; but this test a) works b) is more generic
22336 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
22337 if test -f conf$$.exe
; then
22338 # Don't use ln at all; we don't have any links
22343 elif ln conf$$.
file conf$$
2>/dev
/null
; then
22348 rm -f conf$$ conf$$.exe conf$$.
file
22350 if mkdir
-p .
2>/dev
/null
; then
22353 test -d .
/-p && rmdir .
/-p
22357 as_executable_p
="test -f"
22359 # Sed expression to map a string onto a valid CPP name.
22360 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22362 # Sed expression to map a string onto a valid variable name.
22363 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22367 # We need space, tab and new line, in precisely that order.
22377 # Open the log real soon, to keep \$[0] and so on meaningful, and to
22378 # report actual input values of CONFIG_FILES etc. instead of their
22379 # values after options handling. Logging --version etc. is OK.
22383 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22384 ## Running $as_me. ##
22389 This file was extended by $as_me, which was
22390 generated by GNU Autoconf 2.59. Invocation command line was
22392 CONFIG_FILES = $CONFIG_FILES
22393 CONFIG_HEADERS = $CONFIG_HEADERS
22394 CONFIG_LINKS = $CONFIG_LINKS
22395 CONFIG_COMMANDS = $CONFIG_COMMANDS
22399 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
22403 # Files that config.status was made for.
22404 if test -n "$ac_config_files"; then
22405 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
22408 if test -n "$ac_config_headers"; then
22409 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
22412 if test -n "$ac_config_links"; then
22413 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
22416 if test -n "$ac_config_commands"; then
22417 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
22420 cat >>$CONFIG_STATUS <<\_ACEOF
22423 \`$as_me' instantiates files from templates according to the
22424 current configuration.
22426 Usage: $0 [OPTIONS] [FILE]...
22428 -h, --help print this help, then exit
22429 -V, --version print version number, then exit
22430 -q, --quiet do not print progress messages
22431 -d, --debug don't remove temporary files
22432 --recheck update $as_me by reconfiguring in the same conditions
22433 --file=FILE[:TEMPLATE]
22434 instantiate the configuration file FILE
22435 --header=FILE[:TEMPLATE]
22436 instantiate the configuration header FILE
22438 Configuration files:
22441 Configuration headers:
22444 Configuration commands:
22447 Report bugs to <bug-autoconf@gnu.org>."
22450 cat >>$CONFIG_STATUS <<_ACEOF
22453 configured by $0, generated by GNU Autoconf 2.59,
22454 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
22456 Copyright (C) 2003 Free Software Foundation, Inc.
22457 This config.status script is free software; the Free Software Foundation
22458 gives unlimited permission to copy, distribute and modify it."
22463 cat >>$CONFIG_STATUS <<\_ACEOF
22464 # If no file are specified by the user, then we need to provide default
22465 # value. By we need to know if files were specified by the user.
22471 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
22472 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
22480 *) # This is not an option, so the user has probably given explicit
22483 ac_need_defaults
=false
;;
22487 # Handling of the options.
22489 cat >>$CONFIG_STATUS <<\_ACEOF
22490 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
22492 --version |
--vers* |
-V )
22493 echo "$ac_cs_version"; exit 0 ;;
22495 # Conflict between --help and --header
22496 { { echo "$as_me:$LINENO: error: ambiguous option: $1
22497 Try \`$0 --help' for more information." >&5
22498 echo "$as_me: error: ambiguous option: $1
22499 Try \`$0 --help' for more information." >&2;}
22500 { (exit 1); exit 1; }; };;
22501 --help |
--hel |
-h )
22502 echo "$ac_cs_usage"; exit 0 ;;
22503 --debug |
--d* |
-d )
22505 --file |
--fil |
--fi |
--f )
22507 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
22508 ac_need_defaults
=false
;;
22509 --header |
--heade |
--head |
--hea )
22511 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
22512 ac_need_defaults
=false
;;
22513 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
22514 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
22517 # This is an error.
22518 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
22519 Try \`$0 --help' for more information." >&5
22520 echo "$as_me: error: unrecognized option: $1
22521 Try \`$0 --help' for more information." >&2;}
22522 { (exit 1); exit 1; }; } ;;
22524 *) ac_config_targets
="$ac_config_targets $1" ;;
22530 ac_configure_extra_args
=
22532 if $ac_cs_silent; then
22534 ac_configure_extra_args
="$ac_configure_extra_args --silent"
22538 cat >>$CONFIG_STATUS <<_ACEOF
22539 if \$ac_cs_recheck; then
22540 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22541 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22546 cat >>$CONFIG_STATUS <<_ACEOF
22548 # INIT-COMMANDS section.
22551 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
22557 cat >>$CONFIG_STATUS <<\_ACEOF
22558 for ac_config_target
in $ac_config_targets
22560 case "$ac_config_target" in
22561 # Handling of arguments.
22562 "Makefile" ) CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
22563 "lib-src/Makefile.c" ) CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
22564 "oldXMenu/Makefile" ) CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
22565 "man/Makefile" ) CONFIG_FILES
="$CONFIG_FILES man/Makefile" ;;
22566 "lwlib/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
22567 "src/Makefile.c" ) CONFIG_FILES
="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
22568 "lisp/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
22569 "lispref/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lispref/Makefile" ;;
22570 "lispintro/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lispintro/Makefile" ;;
22571 "leim/Makefile" ) CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
22572 "default" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
22573 "src/config.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
22574 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22575 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22576 { (exit 1); exit 1; }; };;
22580 # If the user did not use the arguments to specify the items to instantiate,
22581 # then the envvar interface is used. Set only those that are not.
22582 # We use the long form for the default assignment because of an extremely
22583 # bizarre bug on SunOS 4.1.3.
22584 if $ac_need_defaults; then
22585 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
22586 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
22587 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
22590 # Have a temporary directory for convenience. Make it in the build tree
22591 # simply because there is no reason to put it here, and in addition,
22592 # creating and moving files from /tmp can sometimes cause problems.
22593 # Create a temporary directory, and hook for its removal unless debugging.
22596 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
22597 trap '{ (exit 1); exit 1; }' 1 2 13 15
22600 # Create a (secure) tmp directory for tmp files.
22603 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
22604 test -n "$tmp" && test -d "$tmp"
22607 tmp
=.
/confstat$$
-$RANDOM
22608 (umask 077 && mkdir
$tmp)
22611 echo "$me: cannot create a temporary directory in ." >&2
22612 { (exit 1); exit 1; }
22617 cat >>$CONFIG_STATUS <<_ACEOF
22620 # CONFIG_FILES section.
22623 # No need to generate the scripts if there are no CONFIG_FILES.
22624 # This happens for instance when ./config.status config.h
22625 if test -n "\$CONFIG_FILES"; then
22626 # Protect against being on the right side of a sed subst in config.status.
22627 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
22628 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
22629 s,@SHELL@,$SHELL,;t t
22630 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
22631 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
22632 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
22633 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
22634 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
22635 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
22636 s,@exec_prefix@,$exec_prefix,;t t
22637 s,@prefix@,$prefix,;t t
22638 s,@program_transform_name@,$program_transform_name,;t t
22639 s,@bindir@,$bindir,;t t
22640 s,@sbindir@,$sbindir,;t t
22641 s,@libexecdir@,$libexecdir,;t t
22642 s,@datadir@,$datadir,;t t
22643 s,@sysconfdir@,$sysconfdir,;t t
22644 s,@sharedstatedir@,$sharedstatedir,;t t
22645 s,@localstatedir@,$localstatedir,;t t
22646 s,@libdir@,$libdir,;t t
22647 s,@includedir@,$includedir,;t t
22648 s,@oldincludedir@,$oldincludedir,;t t
22649 s,@infodir@,$infodir,;t t
22650 s,@mandir@,$mandir,;t t
22651 s,@build_alias@,$build_alias,;t t
22652 s,@host_alias@,$host_alias,;t t
22653 s,@target_alias@,$target_alias,;t t
22654 s,@DEFS@,$DEFS,;t t
22655 s,@ECHO_C@,$ECHO_C,;t t
22656 s,@ECHO_N@,$ECHO_N,;t t
22657 s,@ECHO_T@,$ECHO_T,;t t
22658 s,@LIBS@,$LIBS,;t t
22659 s,@MAINT@,$MAINT,;t t
22660 s,@build@,$build,;t t
22661 s,@build_cpu@,$build_cpu,;t t
22662 s,@build_vendor@,$build_vendor,;t t
22663 s,@build_os@,$build_os,;t t
22664 s,@host@,$host,;t t
22665 s,@host_cpu@,$host_cpu,;t t
22666 s,@host_vendor@,$host_vendor,;t t
22667 s,@host_os@,$host_os,;t t
22669 s,@CFLAGS@,$CFLAGS,;t t
22670 s,@LDFLAGS@,$LDFLAGS,;t t
22671 s,@CPPFLAGS@,$CPPFLAGS,;t t
22672 s,@ac_ct_CC@,$ac_ct_CC,;t t
22673 s,@EXEEXT@,$EXEEXT,;t t
22674 s,@OBJEXT@,$OBJEXT,;t t
22675 s,@LN_S@,$LN_S,;t t
22677 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
22678 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
22679 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
22680 s,@RANLIB@,$RANLIB,;t t
22681 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
22682 s,@INSTALL_INFO@,$INSTALL_INFO,;t t
22683 s,@EGREP@,$EGREP,;t t
22684 s,@LIBSOUND@,$LIBSOUND,;t t
22685 s,@SET_MAKE@,$SET_MAKE,;t t
22686 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
22687 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
22688 s,@GTK_LIBS@,$GTK_LIBS,;t t
22689 s,@ALLOCA@,$ALLOCA,;t t
22690 s,@liblockfile@,$liblockfile,;t t
22691 s,@LIBOBJS@,$LIBOBJS,;t t
22692 s,@NEED_SETGID@,$NEED_SETGID,;t t
22693 s,@KMEM_GROUP@,$KMEM_GROUP,;t t
22694 s,@GETLOADAVG_LIBS@,$GETLOADAVG_LIBS,;t t
22695 s,@version@,$version,;t t
22696 s,@configuration@,$configuration,;t t
22697 s,@canonical@,$canonical,;t t
22698 s,@srcdir@,$srcdir,;t t
22699 s,@lispdir@,$lispdir,;t t
22700 s,@locallisppath@,$locallisppath,;t t
22701 s,@lisppath@,$lisppath,;t t
22702 s,@x_default_search_path@,$x_default_search_path,;t t
22703 s,@etcdir@,$etcdir,;t t
22704 s,@archlibdir@,$archlibdir,;t t
22705 s,@docdir@,$docdir,;t t
22706 s,@bitmapdir@,$bitmapdir,;t t
22707 s,@gamedir@,$gamedir,;t t
22708 s,@gameuser@,$gameuser,;t t
22709 s,@c_switch_system@,$c_switch_system,;t t
22710 s,@c_switch_machine@,$c_switch_machine,;t t
22711 s,@LD_SWITCH_X_SITE@,$LD_SWITCH_X_SITE,;t t
22712 s,@LD_SWITCH_X_SITE_AUX@,$LD_SWITCH_X_SITE_AUX,;t t
22713 s,@C_SWITCH_X_SITE@,$C_SWITCH_X_SITE,;t t
22714 s,@X_TOOLKIT_TYPE@,$X_TOOLKIT_TYPE,;t t
22715 s,@machfile@,$machfile,;t t
22716 s,@opsysfile@,$opsysfile,;t t
22717 s,@carbon_appdir@,$carbon_appdir,;t t
22718 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
22723 cat >>$CONFIG_STATUS <<\_ACEOF
22724 # Split the substitutions into bite-sized pieces for seds with
22725 # small command number limits, like on Digital OSF/1 and HP-UX.
22726 ac_max_sed_lines
=48
22727 ac_sed_frag
=1 # Number of current file.
22728 ac_beg
=1 # First line for current file.
22729 ac_end
=$ac_max_sed_lines # Line after last line for current file.
22732 while $ac_more_lines; do
22733 if test $ac_beg -gt 1; then
22734 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
22736 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
22738 if test ! -s $tmp/subs.frag
; then
22739 ac_more_lines
=false
22741 # The purpose of the label and of the branching condition is to
22742 # speed up the sed processing (if there are no `@' at all, there
22743 # is no need to browse any of the substitutions).
22744 # These are the two extra sed commands mentioned above.
22746 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
22747 if test -z "$ac_sed_cmds"; then
22748 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
22750 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
22752 ac_sed_frag
=`expr $ac_sed_frag + 1`
22754 ac_end
=`expr $ac_end + $ac_max_sed_lines`
22757 if test -z "$ac_sed_cmds"; then
22760 fi # test -n "$CONFIG_FILES"
22763 cat >>$CONFIG_STATUS <<\_ACEOF
22764 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
22765 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22767 - |
*:- |
*:-:* ) # input from stdin
22769 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
22770 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
22771 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
22772 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
22773 * ) ac_file_in
=$ac_file.
in ;;
22776 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
22777 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
22778 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22779 X"$ac_file" : 'X\(//\)[^/]' \| \
22780 X"$ac_file" : 'X\(//\)$' \| \
22781 X"$ac_file" : 'X\(/\)' \| \
22782 . : '\(.\)' 2>/dev/null ||
22784 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22785 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22786 /^X\(\/\/\)$/{ s//\1/; q; }
22787 /^X\(\/\).*/{ s//\1/; q; }
22789 { if $as_mkdir_p; then
22794 while test ! -d "$as_dir"; do
22795 as_dirs
="$as_dir $as_dirs"
22796 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
22797 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22798 X"$as_dir" : 'X\(//\)[^/]' \| \
22799 X"$as_dir" : 'X\(//\)$' \| \
22800 X"$as_dir" : 'X\(/\)' \| \
22801 . : '\(.\)' 2>/dev/null ||
22803 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22804 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22805 /^X\(\/\/\)$/{ s//\1/; q; }
22806 /^X\(\/\).*/{ s//\1/; q; }
22809 test ! -n "$as_dirs" || mkdir
$as_dirs
22810 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22811 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22812 { (exit 1); exit 1; }; }; }
22816 if test "$ac_dir" != .
; then
22817 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22818 # A "../" for each directory in $ac_dir_suffix.
22819 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22821 ac_dir_suffix
= ac_top_builddir
=
22825 .
) # No --srcdir option. We are building in place.
22827 if test -z "$ac_top_builddir"; then
22830 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
22832 [\\/]* | ?
:[\\/]* ) # Absolute path.
22833 ac_srcdir
=$srcdir$ac_dir_suffix;
22834 ac_top_srcdir
=$srcdir ;;
22835 *) # Relative path.
22836 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
22837 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
22840 # Do not use `cd foo && pwd` to compute absolute paths, because
22841 # the directories may not exist.
22843 .
) ac_abs_builddir
="$ac_dir";;
22846 .
) ac_abs_builddir
=`pwd`;;
22847 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
22848 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
22851 case $ac_abs_builddir in
22852 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
22854 case ${ac_top_builddir}.
in
22855 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
22856 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
22857 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
22860 case $ac_abs_builddir in
22861 .
) ac_abs_srcdir
=$ac_srcdir;;
22864 .
) ac_abs_srcdir
=$ac_abs_builddir;;
22865 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
22866 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
22869 case $ac_abs_builddir in
22870 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
22872 case $ac_top_srcdir in
22873 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
22874 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
22875 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
22881 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
22882 *) ac_INSTALL
=$ac_top_builddir$INSTALL ;;
22885 if test x
"$ac_file" != x-
; then
22886 { echo "$as_me:$LINENO: creating $ac_file" >&5
22887 echo "$as_me: creating $ac_file" >&6;}
22890 # Let's still pretend it is `configure' which instantiates (i.e., don't
22891 # use $as_me), people would be surprised to read:
22892 # /* config.h. Generated by config.status. */
22893 if test x
"$ac_file" = x-
; then
22896 configure_input
="$ac_file. "
22898 configure_input
=$configure_input"Generated from `echo $ac_file_in |
22899 sed 's,.*/,,'` by configure."
22901 # First look for the input files in the build tree, otherwise in the
22903 ac_file_inputs
=`IFS=:
22904 for f in $ac_file_in; do
22906 -) echo $tmp/stdin ;;
22908 # Absolute (can't be DOS-style, as IFS=:)
22909 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22910 echo "$as_me: error: cannot find input file: $f" >&2;}
22911 { (exit 1); exit 1; }; }
22914 if test -f "$f"; then
22917 elif test -f "$srcdir/$f"; then
22922 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22923 echo "$as_me: error: cannot find input file: $f" >&2;}
22924 { (exit 1); exit 1; }; }
22927 done` ||
{ (exit 1); exit 1; }
22929 cat >>$CONFIG_STATUS <<_ACEOF
22933 cat >>$CONFIG_STATUS <<\_ACEOF
22935 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
22936 s
,@configure_input@
,$configure_input,;t t
22937 s
,@srcdir@
,$ac_srcdir,;t t
22938 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
22939 s
,@top_srcdir@
,$ac_top_srcdir,;t t
22940 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
22941 s
,@builddir@
,$ac_builddir,;t t
22942 s
,@abs_builddir@
,$ac_abs_builddir,;t t
22943 s
,@top_builddir@
,$ac_top_builddir,;t t
22944 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
22945 s
,@INSTALL@
,$ac_INSTALL,;t t
22946 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
22948 if test x"$ac_file" != x-; then
22949 mv $tmp/out $ac_file
22957 cat >>$CONFIG_STATUS <<\_ACEOF
22960 # CONFIG_HEADER section.
22963 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
22964 # NAME is the cpp macro being defined and VALUE is the value it is being given.
22966 # ac_d sets the value in "#define NAME VALUE" lines.
22967 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
22968 ac_dB
='[ ].*$,\1#\2'
22971 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22972 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
22973 ac_uB
='$,\1#\2define\3'
22977 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
22978 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22980 - |
*:- |
*:-:* ) # input from stdin
22982 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
22983 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
22984 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
22985 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
22986 * ) ac_file_in
=$ac_file.
in ;;
22989 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
22990 echo "$as_me: creating $ac_file" >&6;}
22992 # First look for the input files in the build tree, otherwise in the
22994 ac_file_inputs
=`IFS=:
22995 for f in $ac_file_in; do
22997 -) echo $tmp/stdin ;;
22999 # Absolute (can't be DOS-style, as IFS=:)
23000 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23001 echo "$as_me: error: cannot find input file: $f" >&2;}
23002 { (exit 1); exit 1; }; }
23003 # Do quote $f, to prevent DOS paths from being IFS'd.
23006 if test -f "$f"; then
23009 elif test -f "$srcdir/$f"; then
23014 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23015 echo "$as_me: error: cannot find input file: $f" >&2;}
23016 { (exit 1); exit 1; }; }
23019 done` ||
{ (exit 1); exit 1; }
23020 # Remove the trailing spaces.
23021 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
23025 # Transform confdefs.h into two sed scripts, `conftest.defines' and
23026 # `conftest.undefs', that substitutes the proper values into
23027 # config.h.in to produce config.h. The first handles `#define'
23028 # templates, and the second `#undef' templates.
23029 # And first: Protect against being on the right side of a sed subst in
23030 # config.status. Protect against being in an unquoted here document
23031 # in config.status.
23032 rm -f conftest.defines conftest.undefs
23033 # Using a here document instead of a string reduces the quoting nightmare.
23034 # Putting comments in sed scripts is not portable.
23036 # `end' is used to avoid that the second main sed command (meant for
23037 # 0-ary CPP macros) applies to n-ary macro definitions.
23038 # See the Autoconf documentation for `clear'.
23039 cat >confdef2sed.
sed <<\_ACEOF
23044 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
23046 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
23049 # If some macros were called several times there might be several times
23050 # the same #defines, which is useless. Nevertheless, we may not want to
23051 # sort them, since we want the *last* AC-DEFINE to be honored.
23052 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
23053 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
23054 rm -f confdef2sed.sed
23056 # This sed command replaces #undef with comments. This is necessary, for
23057 # example, in the case of _POSIX_SOURCE, which is predefined and required
23058 # on some systems where configure will not decide to define it.
23059 cat >>conftest.undefs <<\_ACEOF
23060 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
23063 # Break up conftest.defines because some shells have a limit on the size
23064 # of here documents, and old seds have small limits too (100 cmds).
23065 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
23066 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
23067 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
23068 echo ' :' >>$CONFIG_STATUS
23069 rm -f conftest.tail
23070 while grep . conftest.defines >/dev/null
23072 # Write a limited-size here document to $tmp/defines.sed.
23073 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
23074 # Speed up: don't consider the non `#define' lines.
23075 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
23076 # Work around the forget-to-reset-the-flag bug.
23077 echo 't clr' >>$CONFIG_STATUS
23078 echo ': clr' >>$CONFIG_STATUS
23079 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
23081 sed -f $tmp/defines.sed $tmp/in >$tmp/out
23083 mv $tmp/out $tmp/in
23085 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
23086 rm -f conftest.defines
23087 mv conftest.
tail conftest.defines
23089 rm -f conftest.defines
23090 echo ' fi # grep' >>$CONFIG_STATUS
23091 echo >>$CONFIG_STATUS
23093 # Break up conftest.undefs because some shells have a limit on the size
23094 # of here documents, and old seds have small limits too (100 cmds).
23095 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
23096 rm -f conftest.
tail
23097 while grep . conftest.undefs
>/dev
/null
23099 # Write a limited-size here document to $tmp/undefs.sed.
23100 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
23101 # Speed up: don't consider the non
`#undef'
23102 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
23103 # Work around the forget-to-reset-the-flag bug.
23104 echo 't clr' >>$CONFIG_STATUS
23105 echo ': clr' >>$CONFIG_STATUS
23106 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
23108 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
23110 mv $tmp/out $tmp/in
23112 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
23113 rm -f conftest.undefs
23114 mv conftest.tail conftest.undefs
23116 rm -f conftest.undefs
23118 cat >>$CONFIG_STATUS <<\_ACEOF
23119 # Let's still pretend it is `configure
' which instantiates (i.e., don't
23120 # use $as_me), people would be surprised to read:
23121 # /* config.h. Generated by config.status. */
23122 if test x
"$ac_file" = x-
; then
23123 echo "/* Generated by configure. */" >$tmp/config.h
23125 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
23127 cat $tmp/in >>$tmp/config.h
23129 if test x
"$ac_file" != x-
; then
23130 if diff $ac_file $tmp/config.h
>/dev
/null
2>&1; then
23131 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23132 echo "$as_me: $ac_file is unchanged" >&6;}
23134 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
23135 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23136 X"$ac_file" : 'X\(//\)[^/]' \| \
23137 X"$ac_file" : 'X\(//\)$' \| \
23138 X"$ac_file" : 'X\(/\)' \| \
23139 . : '\(.\)' 2>/dev/null ||
23141 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23142 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23143 /^X\(\/\/\)$/{ s//\1/; q; }
23144 /^X\(\/\).*/{ s//\1/; q; }
23146 { if $as_mkdir_p; then
23151 while test ! -d "$as_dir"; do
23152 as_dirs
="$as_dir $as_dirs"
23153 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
23154 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23155 X"$as_dir" : 'X\(//\)[^/]' \| \
23156 X"$as_dir" : 'X\(//\)$' \| \
23157 X"$as_dir" : 'X\(/\)' \| \
23158 . : '\(.\)' 2>/dev/null ||
23160 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23161 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23162 /^X\(\/\/\)$/{ s//\1/; q; }
23163 /^X\(\/\).*/{ s//\1/; q; }
23166 test ! -n "$as_dirs" || mkdir
$as_dirs
23167 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23168 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23169 { (exit 1); exit 1; }; }; }
23172 mv $tmp/config.h
$ac_file
23176 rm -f $tmp/config.h
23180 cat >>$CONFIG_STATUS <<\_ACEOF
23183 # CONFIG_COMMANDS section.
23185 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
23186 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
23187 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
23188 ac_dir
=`(dirname "$ac_dest") 2>/dev/null ||
23189 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23190 X"$ac_dest" : 'X\(//\)[^/]' \| \
23191 X"$ac_dest" : 'X\(//\)$' \| \
23192 X"$ac_dest" : 'X\(/\)' \| \
23193 . : '\(.\)' 2>/dev/null ||
23195 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23196 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23197 /^X\(\/\/\)$/{ s//\1/; q; }
23198 /^X\(\/\).*/{ s//\1/; q; }
23200 { if $as_mkdir_p; then
23205 while test ! -d "$as_dir"; do
23206 as_dirs
="$as_dir $as_dirs"
23207 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
23208 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23209 X"$as_dir" : 'X\(//\)[^/]' \| \
23210 X"$as_dir" : 'X\(//\)$' \| \
23211 X"$as_dir" : 'X\(/\)' \| \
23212 . : '\(.\)' 2>/dev/null ||
23214 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23215 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23216 /^X\(\/\/\)$/{ s//\1/; q; }
23217 /^X\(\/\).*/{ s//\1/; q; }
23220 test ! -n "$as_dirs" || mkdir
$as_dirs
23221 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23222 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23223 { (exit 1); exit 1; }; }; }
23227 if test "$ac_dir" != .
; then
23228 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23229 # A "../" for each directory in $ac_dir_suffix.
23230 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23232 ac_dir_suffix
= ac_top_builddir
=
23236 .
) # No --srcdir option. We are building in place.
23238 if test -z "$ac_top_builddir"; then
23241 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
23243 [\\/]* | ?
:[\\/]* ) # Absolute path.
23244 ac_srcdir
=$srcdir$ac_dir_suffix;
23245 ac_top_srcdir
=$srcdir ;;
23246 *) # Relative path.
23247 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
23248 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
23251 # Do not use `cd foo && pwd` to compute absolute paths, because
23252 # the directories may not exist.
23254 .
) ac_abs_builddir
="$ac_dir";;
23257 .
) ac_abs_builddir
=`pwd`;;
23258 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
23259 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
23262 case $ac_abs_builddir in
23263 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
23265 case ${ac_top_builddir}.
in
23266 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
23267 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
23268 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
23271 case $ac_abs_builddir in
23272 .
) ac_abs_srcdir
=$ac_srcdir;;
23275 .
) ac_abs_srcdir
=$ac_abs_builddir;;
23276 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
23277 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
23280 case $ac_abs_builddir in
23281 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
23283 case $ac_top_srcdir in
23284 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
23285 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
23286 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
23291 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
23292 echo "$as_me: executing $ac_dest commands" >&6;}
23296 ### Make the necessary directories, if they don't exist.
23297 for dir
in etc lisp
; do
23298 test -d ${dir} || mkdir
${dir}
23301 # Build src/Makefile from ${srcdir}/src/Makefile.c
23302 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
23303 # This must be done after src/config.h is built, since we rely on that file.
23305 # Now get this: Some word that is part of the ${srcdir} directory name
23306 # or the ${configuration} value might, just might, happen to be an
23307 # identifier like `sun4' or `i386' or something, and be predefined by
23308 # the C preprocessor to some helpful value like 1, or maybe the empty
23309 # string. Needless to say consequent macro substitutions are less
23310 # than conducive to the makefile finding the correct directory.
23311 undefs
="`echo $top_srcdir $configuration $canonical |
23312 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
23313 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
23316 echo creating src
/epaths.h
23317 ${MAKE-make} epaths-force
23319 # As of 2000-11-19, newest development versions of GNU cpp preprocess
23320 # `..' to `. .' unless invoked with -traditional
23322 if test "x$GCC" = xyes
&& test "x$CPP_NEED_TRADITIONAL" = xyes
; then
23323 CPPFLAGS
="$CPPFLAGS -traditional"
23326 echo creating lib-src
/Makefile
23328 rm -f junk.c junk1.c junk2.c
23329 sed -e '/start of cpp stuff/q' \
23330 < Makefile.c
> junk1.c
23331 sed -e '1,/start of cpp stuff/d'\
23332 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
23333 < Makefile.c
> junk.c
23334 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
23335 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
23336 cat junk1.c junk2.c
> Makefile.new
23337 rm -f junk.c junk1.c junk2.c
23338 chmod 444 Makefile.new
23339 mv -f Makefile.new Makefile
23342 echo creating src
/Makefile
23344 rm -f junk.c junk1.c junk2.c
23345 sed -e '/start of cpp stuff/q' \
23346 < Makefile.c
> junk1.c
23347 sed -e '1,/start of cpp stuff/d'\
23348 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
23349 < Makefile.c
> junk.c
23350 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
23351 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
23352 cat junk1.c junk2.c
> Makefile.new
23353 rm -f junk.c junk1.c junk2.c
23354 chmod 444 Makefile.new
23355 mv -f Makefile.new Makefile
23358 if test ! -f src
/.gdbinit
&& test -f $srcdir/src
/.gdbinit
; then
23359 echo creating src
/.gdbinit
23360 echo source $srcdir/src
/.gdbinit
> src
/.gdbinit
23363 # This is how we know whether to re-run configure in certain cases.
23364 touch src
/config.stamp
23371 cat >>$CONFIG_STATUS <<\_ACEOF
23373 { (exit 0); exit 0; }
23375 chmod +x
$CONFIG_STATUS
23376 ac_clean_files
=$ac_clean_files_save
23379 # configure is writing to config.log, and then calls config.status.
23380 # config.status does its own redirection, appending to config.log.
23381 # Unfortunately, on DOS this fails, as config.log is still kept open
23382 # by configure, so config.status won't be able to write to it; its
23383 # output is simply discarded. So we exec the FD to /dev/null,
23384 # effectively closing config.log, so it can be properly (re)opened and
23385 # appended to by config.status. When coming back to configure, we
23386 # need to make the FD available again.
23387 if test "$no_create" != yes; then
23389 ac_config_status_args
=
23390 test "$silent" = yes &&
23391 ac_config_status_args
="$ac_config_status_args --quiet"
23393 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
23395 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23396 # would make configure fail if this is the last instruction.
23397 $ac_cs_success ||
{ (exit 1); exit 1; }