2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
22 DUALCASE
=1; export DUALCASE
# for MKS sh
24 # Support unset when possible.
25 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C
; export $as_var
51 # Required to use basename.
52 if expr a
: '\(a\)' >/dev
/null
2>&1; then
58 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
65 # Name of the executable.
66 as_me
=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits
='0123456789'
84 as_cr_alnum
=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
91 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
102 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
105 # Find who we are. Look in the path if we contain no path at all
108 *[\\/]* ) as_myself
=$0 ;;
109 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
113 test -z "$as_dir" && as_dir
=.
114 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x
; then
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
131 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
134 test -z "$as_dir" && as_dir
=.
135 for as_base
in sh bash ksh sh5
; do
138 if ("$as_dir/$as_base" -c '
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
144 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
145 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
146 CONFIG_SHELL
=$as_dir/$as_base
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 s,^['$as_cr_digits']*\n,,
174 chmod +x
$as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
182 # Exit status is that of the last command.
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c
*,-n*) ECHO_N
= ECHO_C
='
190 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
191 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
194 if expr a
: '\(a\)' >/dev
/null
2>&1; then
200 rm -f conf$$ conf$$.exe conf$$.
file
202 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe
; then
206 # Don't use ln at all; we don't have any links
211 elif ln conf$$.
file conf$$
2>/dev
/null
; then
216 rm -f conf$$ conf$$.exe conf$$.
file
218 if mkdir
-p .
2>/dev
/null
; then
221 test -d .
/-p && rmdir .
/-p
225 as_executable_p
="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
235 # We need space, tab and new line, in precisely that order.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
254 ac_default_prefix
=/usr
/local
255 ac_config_libobj_dir
=.
260 SHELL
=${CONFIG_SHELL-/bin/sh}
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
267 # Identity of this package.
274 ac_unique_file
="src/lisp.h"
275 ac_config_libobj_dir
=src
276 # Factoring default headers for most tests.
277 ac_includes_default
="\
280 # include <sys/types.h>
283 # include <sys/stat.h>
294 # if !STDC_HEADERS && HAVE_MEMORY_H
300 # include <strings.h>
303 # include <inttypes.h>
313 ac_subst_vars
='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS MAINT build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT LN_S CPP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA RANLIB ac_ct_RANLIB INSTALL_INFO EGREP LIBSOUND SETARCH SET_MAKE PKG_CONFIG GTK_CFLAGS GTK_LIBS ALLOCA liblockfile LIBOBJS NEED_SETGID KMEM_GROUP GETLOADAVG_LIBS version configuration canonical srcdir lispdir locallisppath lisppath x_default_search_path etcdir archlibdir docdir bitmapdir gamedir gameuser c_switch_system c_switch_machine LD_SWITCH_X_SITE LD_SWITCH_X_SITE_AUX C_SWITCH_X_SITE X_TOOLKIT_TYPE machfile opsysfile carbon_appdir LTLIBOBJS'
316 # Initialize some variables set by options.
318 ac_init_version
=false
319 # The variables have the same names as the options, with
320 # dashes changed to underlines.
328 program_transform_name
=s
,x
,x
,
336 # Installation directory options.
337 # These are left unexpanded so users can "make install exec_prefix=/foo"
338 # and all the variables that are supposed to be based on exec_prefix
339 # by default will actually change.
340 # Use braces instead of parens because sh, perl, etc. also accept them.
341 bindir
='${exec_prefix}/bin'
342 sbindir
='${exec_prefix}/sbin'
343 libexecdir
='${exec_prefix}/libexec'
344 datadir
='${prefix}/share'
345 sysconfdir
='${prefix}/etc'
346 sharedstatedir
='${prefix}/com'
347 localstatedir
='${prefix}/var'
348 libdir
='${exec_prefix}/lib'
349 includedir
='${prefix}/include'
350 oldincludedir
='/usr/include'
351 infodir
='${prefix}/info'
352 mandir
='${prefix}/man'
357 # If the previous option needs an argument, assign it.
358 if test -n "$ac_prev"; then
359 eval "$ac_prev=\$ac_option"
364 ac_optarg
=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
366 # Accept the important Cygnus configure options, so we can diagnose typos.
370 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
372 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
375 -build |
--build |
--buil |
--bui |
--bu)
376 ac_prev
=build_alias
;;
377 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
378 build_alias
=$ac_optarg ;;
380 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
381 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
382 ac_prev
=cache_file
;;
383 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
384 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
385 cache_file
=$ac_optarg ;;
388 cache_file
=config.cache
;;
390 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
392 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
394 datadir
=$ac_optarg ;;
396 -disable-* |
--disable-*)
397 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
398 # Reject names that are not valid shell variable names.
399 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
400 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
401 { (exit 1); exit 1; }; }
402 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
403 eval "enable_$ac_feature=no" ;;
405 -enable-* |
--enable-*)
406 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
407 # Reject names that are not valid shell variable names.
408 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
409 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
410 { (exit 1); exit 1; }; }
411 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
413 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
416 eval "enable_$ac_feature='$ac_optarg'" ;;
418 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
419 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
420 |
--exec |
--exe |
--ex)
421 ac_prev
=exec_prefix
;;
422 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
423 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
424 |
--exec=* |
--exe=* |
--ex=*)
425 exec_prefix
=$ac_optarg ;;
427 -gas |
--gas |
--ga |
--g)
428 # Obsolete; use --with-gas.
431 -help |
--help |
--hel |
--he |
-h)
433 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
434 ac_init_help
=recursive
;;
435 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
436 ac_init_help
=short
;;
438 -host |
--host |
--hos |
--ho)
439 ac_prev
=host_alias
;;
440 -host=* |
--host=* |
--hos=* |
--ho=*)
441 host_alias
=$ac_optarg ;;
443 -includedir |
--includedir |
--includedi |
--included |
--include \
444 |
--includ |
--inclu |
--incl |
--inc)
445 ac_prev
=includedir
;;
446 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
447 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
448 includedir
=$ac_optarg ;;
450 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
452 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
453 infodir
=$ac_optarg ;;
455 -libdir |
--libdir |
--libdi |
--libd)
457 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
460 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
461 |
--libexe |
--libex |
--libe)
462 ac_prev
=libexecdir
;;
463 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
464 |
--libexe=* |
--libex=* |
--libe=*)
465 libexecdir
=$ac_optarg ;;
467 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
468 |
--localstate |
--localstat |
--localsta |
--localst \
469 |
--locals |
--local |
--loca |
--loc |
--lo)
470 ac_prev
=localstatedir
;;
471 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
472 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
473 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
474 localstatedir
=$ac_optarg ;;
476 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
478 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
482 # Obsolete; use --without-fp.
485 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
486 |
--no-cr |
--no-c |
-n)
489 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
490 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
493 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
494 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
495 |
--oldin |
--oldi |
--old |
--ol |
--o)
496 ac_prev
=oldincludedir
;;
497 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
498 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
499 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
500 oldincludedir
=$ac_optarg ;;
502 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
504 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
507 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
508 |
--program-pre |
--program-pr |
--program-p)
509 ac_prev
=program_prefix
;;
510 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
511 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
512 program_prefix
=$ac_optarg ;;
514 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
515 |
--program-suf |
--program-su |
--program-s)
516 ac_prev
=program_suffix
;;
517 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
518 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
519 program_suffix
=$ac_optarg ;;
521 -program-transform-name |
--program-transform-name \
522 |
--program-transform-nam |
--program-transform-na \
523 |
--program-transform-n |
--program-transform- \
524 |
--program-transform |
--program-transfor \
525 |
--program-transfo |
--program-transf \
526 |
--program-trans |
--program-tran \
527 |
--progr-tra |
--program-tr |
--program-t)
528 ac_prev
=program_transform_name
;;
529 -program-transform-name=* |
--program-transform-name=* \
530 |
--program-transform-nam=* |
--program-transform-na=* \
531 |
--program-transform-n=* |
--program-transform-=* \
532 |
--program-transform=* |
--program-transfor=* \
533 |
--program-transfo=* |
--program-transf=* \
534 |
--program-trans=* |
--program-tran=* \
535 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
536 program_transform_name
=$ac_optarg ;;
538 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
539 |
-silent |
--silent |
--silen |
--sile |
--sil)
542 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
544 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
546 sbindir
=$ac_optarg ;;
548 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
549 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
550 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
552 ac_prev
=sharedstatedir
;;
553 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
554 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
555 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
557 sharedstatedir
=$ac_optarg ;;
559 -site |
--site |
--sit)
561 -site=* |
--site=* |
--sit=*)
564 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
566 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
569 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
570 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
571 ac_prev
=sysconfdir
;;
572 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
573 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
574 sysconfdir
=$ac_optarg ;;
576 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
577 ac_prev
=target_alias
;;
578 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
579 target_alias
=$ac_optarg ;;
581 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
584 -version |
--version |
--versio |
--versi |
--vers |
-V)
588 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
589 # Reject names that are not valid shell variable names.
590 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
591 { echo "$as_me: error: invalid package name: $ac_package" >&2
592 { (exit 1); exit 1; }; }
593 ac_package
=`echo $ac_package| sed 's/-/_/g'`
595 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
598 eval "with_$ac_package='$ac_optarg'" ;;
600 -without-* |
--without-*)
601 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
602 # Reject names that are not valid shell variable names.
603 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
604 { echo "$as_me: error: invalid package name: $ac_package" >&2
605 { (exit 1); exit 1; }; }
606 ac_package
=`echo $ac_package | sed 's/-/_/g'`
607 eval "with_$ac_package=no" ;;
610 # Obsolete; use --with-x.
613 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
614 |
--x-incl |
--x-inc |
--x-in |
--x-i)
615 ac_prev
=x_includes
;;
616 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
617 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
618 x_includes
=$ac_optarg ;;
620 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
621 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
622 ac_prev
=x_libraries
;;
623 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
624 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
625 x_libraries
=$ac_optarg ;;
627 -*) { echo "$as_me: error: unrecognized option: $ac_option
628 Try \`$0 --help' for more information." >&2
629 { (exit 1); exit 1; }; }
633 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
634 # Reject names that are not valid shell variable names.
635 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
636 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
637 { (exit 1); exit 1; }; }
638 ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
639 eval "$ac_envvar='$ac_optarg'"
643 # FIXME: should be removed in autoconf 3.0.
644 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
645 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
646 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
647 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
653 if test -n "$ac_prev"; then
654 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
655 { echo "$as_me: error: missing argument to $ac_option" >&2
656 { (exit 1); exit 1; }; }
659 # Be sure to have absolute paths.
660 for ac_var
in exec_prefix prefix
662 eval ac_val
=$
`echo $ac_var`
664 [\\/$
]* | ?
:[\\/]* | NONE |
'' ) ;;
665 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
666 { (exit 1); exit 1; }; };;
670 # Be sure to have absolute paths.
671 for ac_var
in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
672 localstatedir libdir includedir oldincludedir infodir mandir
674 eval ac_val
=$
`echo $ac_var`
676 [\\/$
]* | ?
:[\\/]* ) ;;
677 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
678 { (exit 1); exit 1; }; };;
682 # There might be people who depend on the old broken behavior: `$host'
683 # used to hold the argument of --host etc.
684 # FIXME: To remove some day.
689 # FIXME: To remove some day.
690 if test "x$host_alias" != x
; then
691 if test "x$build_alias" = x
; then
692 cross_compiling
=maybe
693 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
694 If a cross compiler is detected then cross compile mode will be used." >&2
695 elif test "x$build_alias" != "x$host_alias"; then
701 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
703 test "$silent" = yes && exec 6>/dev
/null
706 # Find the source files, if location was not specified.
707 if test -z "$srcdir"; then
708 ac_srcdir_defaulted
=yes
709 # Try the directory containing this script, then its parent.
710 ac_confdir
=`(dirname "$0") 2>/dev/null ||
711 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
712 X"$0" : 'X\(//\)[^/]' \| \
713 X"$0" : 'X\(//\)$' \| \
714 X"$0" : 'X\(/\)' \| \
715 . : '\(.\)' 2>/dev/null ||
717 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
718 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
719 /^X\(\/\/\)$/{ s//\1/; q; }
720 /^X\(\/\).*/{ s//\1/; q; }
723 if test ! -r $srcdir/$ac_unique_file; then
727 ac_srcdir_defaulted
=no
729 if test ! -r $srcdir/$ac_unique_file; then
730 if test "$ac_srcdir_defaulted" = yes; then
731 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
732 { (exit 1); exit 1; }; }
734 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
735 { (exit 1); exit 1; }; }
738 (cd $srcdir && test -r .
/$ac_unique_file) 2>/dev
/null ||
739 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
740 { (exit 1); exit 1; }; }
741 srcdir
=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
742 ac_env_build_alias_set
=${build_alias+set}
743 ac_env_build_alias_value
=$build_alias
744 ac_cv_env_build_alias_set
=${build_alias+set}
745 ac_cv_env_build_alias_value
=$build_alias
746 ac_env_host_alias_set
=${host_alias+set}
747 ac_env_host_alias_value
=$host_alias
748 ac_cv_env_host_alias_set
=${host_alias+set}
749 ac_cv_env_host_alias_value
=$host_alias
750 ac_env_target_alias_set
=${target_alias+set}
751 ac_env_target_alias_value
=$target_alias
752 ac_cv_env_target_alias_set
=${target_alias+set}
753 ac_cv_env_target_alias_value
=$target_alias
754 ac_env_CC_set
=${CC+set}
756 ac_cv_env_CC_set
=${CC+set}
757 ac_cv_env_CC_value
=$CC
758 ac_env_CFLAGS_set
=${CFLAGS+set}
759 ac_env_CFLAGS_value
=$CFLAGS
760 ac_cv_env_CFLAGS_set
=${CFLAGS+set}
761 ac_cv_env_CFLAGS_value
=$CFLAGS
762 ac_env_LDFLAGS_set
=${LDFLAGS+set}
763 ac_env_LDFLAGS_value
=$LDFLAGS
764 ac_cv_env_LDFLAGS_set
=${LDFLAGS+set}
765 ac_cv_env_LDFLAGS_value
=$LDFLAGS
766 ac_env_CPPFLAGS_set
=${CPPFLAGS+set}
767 ac_env_CPPFLAGS_value
=$CPPFLAGS
768 ac_cv_env_CPPFLAGS_set
=${CPPFLAGS+set}
769 ac_cv_env_CPPFLAGS_value
=$CPPFLAGS
770 ac_env_CPP_set
=${CPP+set}
771 ac_env_CPP_value
=$CPP
772 ac_cv_env_CPP_set
=${CPP+set}
773 ac_cv_env_CPP_value
=$CPP
776 # Report the --help message.
778 if test "$ac_init_help" = "long"; then
779 # Omit some internal or obsolete options to make the list less imposing.
780 # This message is too long to be a string in the A/UX 3.1 sh.
782 \`configure' configures this package to adapt to many kinds of systems.
784 Usage: $0 [OPTION]... [VAR=VALUE]...
786 To assign environment variables (e.g., CC, CFLAGS...), specify them as
787 VAR=VALUE. See below for descriptions of some of the useful variables.
789 Defaults for the options are specified in brackets.
792 -h, --help display this help and exit
793 --help=short display options specific to this package
794 --help=recursive display the short help of all the included packages
795 -V, --version display version information and exit
796 -q, --quiet, --silent do not print \`checking...' messages
797 --cache-file=FILE cache test results in FILE [disabled]
798 -C, --config-cache alias for \`--cache-file=config.cache'
799 -n, --no-create do not create output files
800 --srcdir=DIR find the sources in DIR [configure dir or \`..']
805 Installation directories:
806 --prefix=PREFIX install architecture-independent files in PREFIX
808 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
811 By default, \`make install' will install all the files in
812 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
813 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
814 for instance \`--prefix=\$HOME'.
816 For better control, use the options below.
818 Fine tuning of the installation directories:
819 --bindir=DIR user executables [EPREFIX/bin]
820 --sbindir=DIR system admin executables [EPREFIX/sbin]
821 --libexecdir=DIR program executables [EPREFIX/libexec]
822 --datadir=DIR read-only architecture-independent data [PREFIX/share]
823 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
824 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
825 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
826 --libdir=DIR object code libraries [EPREFIX/lib]
827 --includedir=DIR C header files [PREFIX/include]
828 --oldincludedir=DIR C header files for non-gcc [/usr/include]
829 --infodir=DIR info documentation [PREFIX/info]
830 --mandir=DIR man documentation [PREFIX/man]
836 --program-prefix=PREFIX prepend PREFIX to installed program names
837 --program-suffix=SUFFIX append SUFFIX to installed program names
838 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
841 --x-includes=DIR X include files are
in DIR
842 --x-libraries=DIR X library files are
in DIR
845 --build=BUILD configure
for building on BUILD
[guessed
]
846 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
850 if test -n "$ac_init_help"; then
855 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
856 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
857 --enable-carbon-app[=DIR
] [DIR
=/Application
]
858 specify
install directory
for Emacs.app on Mac OS X
859 --enable-maintainer-mode enable make rules and dependencies not useful
860 (and sometimes confusing
) to the casual installer
861 --disable-largefile omit support
for large files
864 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
865 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
866 --without-gcc don
't use GCC to compile Emacs if GCC is found
867 --without-pop don't support POP
mail retrieval with movemail
868 --with-kerberos support Kerberos-authenticated POP
869 --with-kerberos5 support Kerberos version
5 authenticated POP
870 --with-hesiod support Hesiod to get the POP server
host
871 --without-sound don
't compile with sound support
872 --with-x-toolkit=KIT use an X toolkit
873 (KIT = yes/lucid/athena/motif/gtk/no)
874 --with-xpm use -lXpm for displaying XPM images
875 --with-jpeg use -ljpeg for displaying JPEG images
876 --with-tiff use -ltiff for displaying TIFF images
877 --with-gif use -lungif for displaying GIF images
878 --with-png use -lpng for displaying PNG images
879 --with-gtk use GTK (same as --with-x-toolkit=gtk)
880 --with-pkg-config-prog Path to pkg-config to use for finding GTK
881 --without-toolkit-scroll-bars
882 don't use Motif or Xaw3d scroll bars
883 --without-xim don
't use X11 XIM
884 --without-carbon don't use Carbon GUI on Mac OS X
885 --with-x use the X Window System
887 Some influential environment variables
:
888 CC C compiler
command
889 CFLAGS C compiler flags
890 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
891 nonstandard directory
<lib dir
>
892 CPPFLAGS C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if you have
893 headers
in a nonstandard directory
<include dir
>
896 Use these variables to override the choices made by
`configure' or to help
897 it to find libraries and programs with nonstandard names/locations.
902 if test "$ac_init_help" = "recursive"; then
903 # If there are subdirs, report their specific --help.
905 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
906 test -d $ac_dir || continue
909 if test "$ac_dir" != .; then
910 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
911 # A "../" for each directory in $ac_dir_suffix.
912 ac_top_builddir=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,../,g'`
914 ac_dir_suffix= ac_top_builddir=
918 .) # No --srcdir option. We are building in place.
920 if test -z "$ac_top_builddir"; then
923 ac_top_srcdir=`echo $ac_top_builddir |
sed 's,/$,,'`
925 [\\/]* | ?:[\\/]* ) # Absolute path.
926 ac_srcdir=$srcdir$ac_dir_suffix;
927 ac_top_srcdir=$srcdir ;;
929 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
930 ac_top_srcdir=$ac_top_builddir$srcdir ;;
933 # Do not use `cd foo
&& pwd` to compute absolute paths, because
934 # the directories may not exist.
936 .) ac_abs_builddir="$ac_dir";;
939 .) ac_abs_builddir=`pwd`;;
940 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
941 *) ac_abs_builddir=`pwd`/"$ac_dir";;
944 case $ac_abs_builddir in
945 .) ac_abs_top_builddir=${ac_top_builddir}.;;
947 case ${ac_top_builddir}. in
948 .) ac_abs_top_builddir=$ac_abs_builddir;;
949 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
950 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
953 case $ac_abs_builddir in
954 .) ac_abs_srcdir=$ac_srcdir;;
957 .) ac_abs_srcdir=$ac_abs_builddir;;
958 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
959 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
962 case $ac_abs_builddir in
963 .) ac_abs_top_srcdir=$ac_top_srcdir;;
965 case $ac_top_srcdir in
966 .) ac_abs_top_srcdir=$ac_abs_builddir;;
967 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
968 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
973 # Check for guested configure; otherwise get Cygnus style configure.
974 if test -f $ac_srcdir/configure.gnu; then
976 $SHELL $ac_srcdir/configure.gnu --help=recursive
977 elif test -f $ac_srcdir/configure; then
979 $SHELL $ac_srcdir/configure --help=recursive
980 elif test -f $ac_srcdir/configure.ac ||
981 test -f $ac_srcdir/configure.in; then
985 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
991 test -n "$ac_init_help" && exit 0
992 if $ac_init_version; then
995 Copyright (C) 2003 Free Software Foundation, Inc.
996 This configure script is free software; the Free Software Foundation
997 gives unlimited permission to copy, distribute and modify it.
1003 This file contains any messages produced by compilers while
1004 running configure, to aid debugging if configure makes a mistake.
1006 It was created by $as_me, which was
1007 generated by GNU Autoconf 2.59. Invocation command line was
1018 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1019 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1020 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1021 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1022 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1024 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1025 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1027 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1028 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1029 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1030 hostinfo = `(hostinfo
) 2>/dev
/null ||
echo unknown
`
1031 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1032 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1033 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1041 test -z "$as_dir" && as_dir=.
1042 echo "PATH: $as_dir"
1057 # Keep a trace of the command line.
1058 # Strip out --no-create and --no-recursion so they do not pile up.
1059 # Strip out --silent because we don't want to record it for future runs.
1060 # Also quote any args containing shell meta-characters.
1061 # Make two passes to allow for proper duplicate-argument suppression.
1066 ac_must_keep_next=false
1072 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1073 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1074 | -silent | --silent | --silen | --sile | --sil)
1076 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1077 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1080 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1082 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1083 if test $ac_must_keep_next = true; then
1084 ac_must_keep_next=false # Got value, back to normal.
1087 *=* | --config-cache | -C | -disable-* | --disable-* \
1088 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1089 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1090 | -with-* | --with-* | -without-* | --without-* | --x)
1091 case "$ac_configure_args0 " in
1092 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1095 -* ) ac_must_keep_next=true ;;
1098 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1099 # Get rid of the leading space.
1105 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1106 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1108 # When interrupted or exit'd, cleanup temporary files, and complete
1109 # config.log. We remove comments because anyway the quotes in there
1110 # would cause problems or look ugly.
1111 # WARNING: Be sure not to use single quotes in there, as some shells,
1112 # such as our DU 5.0 friend, will then `close
' the trap.
1113 trap 'exit_status
=$?
1114 # Save into config.log some information that might help in debugging.
1119 ## ---------------- ##
1120 ## Cache variables. ##
1121 ## ---------------- ##
1124 # The following way of writing the cache mishandles newlines in values,
1127 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1130 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1131 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1135 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1142 ## ----------------- ##
1143 ## Output variables. ##
1144 ## ----------------- ##
1147 for ac_var
in $ac_subst_vars
1149 eval ac_val
=$
`echo $ac_var`
1150 echo "$ac_var='"'"'$ac_val'"'"'"
1154 if test -n "$ac_subst_files"; then
1161 for ac_var
in $ac_subst_files
1163 eval ac_val
=$
`echo $ac_var`
1164 echo "$ac_var='"'"'$ac_val'"'"'"
1169 if test -s confdefs.h
; then
1176 sed "/^$/d" confdefs.h |
sort
1179 test "$ac_signal" != 0 &&
1180 echo "$as_me: caught signal $ac_signal"
1181 echo "$as_me: exit $exit_status"
1183 rm -f core
*.core
&&
1184 rm -rf conftest
* confdefs
* conf$$
* $ac_clean_files &&
1187 for ac_signal in 1 2 13 15; do
1188 trap 'ac_signal
='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1192 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1193 rm -rf conftest* confdefs.h
1194 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1197 # Predefined preprocessor variables.
1199 cat >>confdefs.h <<_ACEOF
1200 #define PACKAGE_NAME "$PACKAGE_NAME"
1204 cat >>confdefs.h <<_ACEOF
1205 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1209 cat >>confdefs.h <<_ACEOF
1210 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1214 cat >>confdefs.h <<_ACEOF
1215 #define PACKAGE_STRING "$PACKAGE_STRING"
1219 cat >>confdefs.h <<_ACEOF
1220 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1224 # Let the site file select an alternate cache file if it wants to.
1225 # Prefer explicitly selected file to automatically selected ones.
1226 if test -z "$CONFIG_SITE"; then
1227 if test "x$prefix" != xNONE; then
1228 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1230 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1233 for ac_site_file in $CONFIG_SITE; do
1234 if test -r "$ac_site_file"; then
1235 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1236 echo "$as_me: loading site script $ac_site_file" >&6;}
1237 sed 's
/^
/|
/' "$ac_site_file" >&5
1242 if test -r "$cache_file"; then
1243 # Some versions of bash will fail to source /dev/null (special
1244 # files actually), so we avoid doing that.
1245 if test -f "$cache_file"; then
1246 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1247 echo "$as_me: loading cache $cache_file" >&6;}
1249 [\\/]* | ?:[\\/]* ) . $cache_file;;
1250 *) . ./$cache_file;;
1254 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1255 echo "$as_me: creating cache $cache_file" >&6;}
1259 # Check that the precious variables saved in the cache have kept the same
1261 ac_cache_corrupted=false
1262 for ac_var in `(set) 2>&1 |
1263 sed -n 's
/^ac_env_\
([a-zA-Z_0-9
]*\
)_set
=.
*/\
1/p
'`; do
1264 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1265 eval ac_new_set=\$ac_env_${ac_var}_set
1266 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1267 eval ac_new_val="\$ac_env_${ac_var}_value"
1268 case $ac_old_set,$ac_new_set in
1270 { echo "$as_me:$LINENO: error: \`$ac_var' was
set to \
`$ac_old_val' in the previous run" >&5
1271 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&2;}
1272 ac_cache_corrupted=: ;;
1274 { echo "$as_me:$LINENO: error
: \
`$ac_var' was not set in the previous run" >&5
1275 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1276 ac_cache_corrupted=: ;;
1279 if test "x$ac_old_val" != "x$ac_new_val"; then
1280 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run
:" >&5
1281 echo "$as_me: error
: \
`$ac_var' has changed since the previous run:" >&2;}
1282 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1283 echo "$as_me: former value: $ac_old_val" >&2;}
1284 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1285 echo "$as_me: current value: $ac_new_val" >&2;}
1286 ac_cache_corrupted=:
1289 # Pass precious variables to config.status.
1290 if test "$ac_new_set" = set; then
1292 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1293 ac_arg=$ac_var=`echo "$ac_new_val" |
sed "s/'/'\\\\\\\\''/g"` ;;
1294 *) ac_arg=$ac_var=$ac_new_val ;;
1296 case " $ac_configure_args " in
1297 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1298 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1302 if $ac_cache_corrupted; then
1303 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1304 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1305 { { echo "$as_me:$LINENO: error: run \`make distclean
' and/or \`rm $cache_file' and start over
" >&5
1306 echo "$as_me: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1307 { (exit 1); exit 1; }; }
1311 ac_cpp='$CPP $CPPFLAGS'
1312 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
1313 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
1314 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1334 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
1337 test "$program_prefix" != NONE &&
1338 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1339 # Use a double $ so make ignores it.
1340 test "$program_suffix" != NONE &&
1341 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1342 # Double any \ or $. echo might interpret backslashes.
1343 # By default was `s,x,x', remove it
if useless.
1344 cat <<\_ACEOF
>conftest.
sed
1345 s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//
1347 program_transform_name
=`echo $program_transform_name | sed -f conftest.sed`
1351 lispdir
='${datadir}/emacs/${version}/lisp'
1352 locallisppath
='${datadir}/emacs/${version}/site-lisp:'\
1353 '${datadir}/emacs/site-lisp:${datadir}/emacs/${version}/leim'
1354 lisppath
='${locallisppath}:${lispdir}'
1355 etcdir
='${datadir}/emacs/${version}/etc'
1356 archlibdir
='${libexecdir}/emacs/${version}/${configuration}'
1357 docdir
='${datadir}/emacs/${version}/etc'
1358 gamedir
='${localstatedir}/games/emacs'
1363 # Check whether --with-gcc or --without-gcc was given.
1364 if test "${with_gcc+set}" = set; then
1369 # Check whether --with-pop or --without-pop was given.
1370 if test "${with_pop+set}" = set; then
1372 if test "$withval" = yes; then
1373 cat >>confdefs.h
<<\_ACEOF
1374 #define MAIL_USE_POP 1
1380 cat >>confdefs.h
<<\_ACEOF
1381 #define MAIL_USE_POP 1
1387 # Check whether --with-kerberos or --without-kerberos was given.
1388 if test "${with_kerberos+set}" = set; then
1389 withval
="$with_kerberos"
1390 cat >>confdefs.h
<<\_ACEOF
1397 # Check whether --with-kerberos5 or --without-kerberos5 was given.
1398 if test "${with_kerberos5+set}" = set; then
1399 withval
="$with_kerberos5"
1400 if test "${with_kerberos5+set}" = set; then
1401 if test "${with_kerberos+set}" != set; then
1403 cat >>confdefs.h
<<\_ACEOF
1410 cat >>confdefs.h
<<\_ACEOF
1416 # Check whether --with-hesiod or --without-hesiod was given.
1417 if test "${with_hesiod+set}" = set; then
1418 withval
="$with_hesiod"
1420 cat >>confdefs.h
<<\_ACEOF
1427 # Check whether --with-sound or --without-sound was given.
1428 if test "${with_sound+set}" = set; then
1429 withval
="$with_sound"
1434 # Check whether --with-x-toolkit or --without-x-toolkit was given.
1435 if test "${with_x_toolkit+set}" = set; then
1436 withval
="$with_x_toolkit"
1437 case "${withval}" in
1438 y | ye |
yes ) val
=athena
;;
1440 l | lu | luc | luci | lucid
) val
=lucid
;;
1441 a |
at | ath | athe | athen | athena
) val
=athena
;;
1442 m | mo | mot | moti | motif
) val
=motif
;;
1443 g | gt | gtk
) val
=gtk
;;
1445 { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid\;
1446 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1447 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&5
1448 echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid\;
1449 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1450 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&2;}
1451 { (exit 1); exit 1; }; }
1458 # Check whether --with-xpm or --without-xpm was given.
1459 if test "${with_xpm+set}" = set; then
1464 # Check whether --with-jpeg or --without-jpeg was given.
1465 if test "${with_jpeg+set}" = set; then
1466 withval
="$with_jpeg"
1470 # Check whether --with-tiff or --without-tiff was given.
1471 if test "${with_tiff+set}" = set; then
1472 withval
="$with_tiff"
1476 # Check whether --with-gif or --without-gif was given.
1477 if test "${with_gif+set}" = set; then
1482 # Check whether --with-png or --without-png was given.
1483 if test "${with_png+set}" = set; then
1488 # Check whether --with-gtk or --without-gtk was given.
1489 if test "${with_gtk+set}" = set; then
1494 # Check whether --with-pkg-config-prog or --without-pkg-config-prog was given.
1495 if test "${with_pkg_config_prog+set}" = set; then
1496 withval
="$with_pkg_config_prog"
1500 # Check whether --with-toolkit-scroll-bars or --without-toolkit-scroll-bars was given.
1501 if test "${with_toolkit_scroll_bars+set}" = set; then
1502 withval
="$with_toolkit_scroll_bars"
1506 # Check whether --with-xim or --without-xim was given.
1507 if test "${with_xim+set}" = set; then
1512 # Check whether --with-carbon or --without-carbon was given.
1513 if test "${with_carbon+set}" = set; then
1514 withval
="$with_carbon"
1517 # Check whether --enable-carbon-app or --disable-carbon-app was given.
1518 if test "${enable_carbon_app+set}" = set; then
1519 enableval
="$enable_carbon_app"
1520 carbon_appdir_x
=${enableval}
1523 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1524 if test "${enable_maintainer_mode+set}" = set; then
1525 enableval
="$enable_maintainer_mode"
1526 USE_MAINTAINER_MODE
=$enableval
1528 USE_MAINTAINER_MODE
=no
1530 if test $USE_MAINTAINER_MODE = yes; then
1537 #### Make srcdir absolute, if it isn't already. It's important to
1538 #### avoid running the path through pwd unnecessarily, since pwd can
1539 #### give you automounter prefixes, which can go away. We do all this
1540 #### so Emacs can find its files when run uninstalled.
1541 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
1546 ## We may be able to use the $PWD environment variable to make this
1547 ## absolute. But sometimes PWD is inaccurate.
1548 ## Note: we used to use ${PWD} at the end instead of `pwd`,
1549 ## but that tested only for a well-formed and valid PWD,
1550 ## it did not object when PWD was well-formed and valid but just wrong.
1551 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
1555 srcdir
="`(cd ${srcdir}; pwd)`"
1558 * ) srcdir
="`(cd ${srcdir}; pwd)`" ;;
1561 #### Check if the source directory already has a configured system in it.
1562 if test `pwd` != `(cd ${srcdir} && pwd)` \
1563 && test -f "${srcdir}/src/config.h" ; then
1564 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
1565 as a build directory right now; it has been configured in its own
1566 right. To configure in another directory as well, you MUST
1567 use GNU make. If you do not have GNU make, then you must
1568 now do \`make distclean' in ${srcdir},
1569 and then run $0 again." >&5
1570 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
1571 as a build directory right now; it has been configured in its own
1572 right. To configure in another directory as well, you MUST
1573 use GNU make. If you do not have GNU make, then you must
1574 now do \`make distclean' in ${srcdir},
1575 and then run $0 again." >&2;}
1578 #### Given the configuration name, set machfile and opsysfile to the
1579 #### names of the m/*.h and s/*.h files we should use.
1581 ### Canonicalize the configuration name.
1584 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
1585 if test -f $ac_dir/install-sh
; then
1587 ac_install_sh
="$ac_aux_dir/install-sh -c"
1589 elif test -f $ac_dir/install.sh
; then
1591 ac_install_sh
="$ac_aux_dir/install.sh -c"
1593 elif test -f $ac_dir/shtool
; then
1595 ac_install_sh
="$ac_aux_dir/shtool install -c"
1599 if test -z "$ac_aux_dir"; then
1600 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1601 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1602 { (exit 1); exit 1; }; }
1604 ac_config_guess
="$SHELL $ac_aux_dir/config.guess"
1605 ac_config_sub
="$SHELL $ac_aux_dir/config.sub"
1606 ac_configure
="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1608 # Make sure we can run config.sub.
1609 $ac_config_sub sun4
>/dev
/null
2>&1 ||
1610 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1611 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1612 { (exit 1); exit 1; }; }
1614 echo "$as_me:$LINENO: checking build system type" >&5
1615 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1616 if test "${ac_cv_build+set}" = set; then
1617 echo $ECHO_N "(cached) $ECHO_C" >&6
1619 ac_cv_build_alias
=$build_alias
1620 test -z "$ac_cv_build_alias" &&
1621 ac_cv_build_alias
=`$ac_config_guess`
1622 test -z "$ac_cv_build_alias" &&
1623 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1624 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1625 { (exit 1); exit 1; }; }
1626 ac_cv_build
=`$ac_config_sub $ac_cv_build_alias` ||
1627 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1628 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1629 { (exit 1); exit 1; }; }
1632 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1633 echo "${ECHO_T}$ac_cv_build" >&6
1635 build_cpu
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1636 build_vendor
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1637 build_os
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1640 echo "$as_me:$LINENO: checking host system type" >&5
1641 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1642 if test "${ac_cv_host+set}" = set; then
1643 echo $ECHO_N "(cached) $ECHO_C" >&6
1645 ac_cv_host_alias
=$host_alias
1646 test -z "$ac_cv_host_alias" &&
1647 ac_cv_host_alias
=$ac_cv_build_alias
1648 ac_cv_host
=`$ac_config_sub $ac_cv_host_alias` ||
1649 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1650 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1651 { (exit 1); exit 1; }; }
1654 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1655 echo "${ECHO_T}$ac_cv_host" >&6
1657 host_cpu
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1658 host_vendor
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1659 host_os
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1663 configuration
=${host_alias-$host}
1667 ### If you add support for a new configuration, add code to this
1668 ### switch statement to recognize your configuration name and select
1669 ### the appropriate operating system and machine description files.
1671 ### You would hope that you could choose an m/*.h file pretty much
1672 ### based on the machine portion of the configuration name, and an s-
1673 ### file based on the operating system portion. However, it turns out
1674 ### that each m/*.h file is pretty manufacturer-specific - for
1675 ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are
1676 ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS
1677 ### machines. So we basically have to have a special case for each
1678 ### configuration name.
1680 ### As far as handling version numbers on operating systems is
1681 ### concerned, make sure things will fail in a fixable way. If
1682 ### /etc/MACHINES doesn't say anything about version numbers, be
1683 ### prepared to handle anything reasonably. If version numbers
1684 ### matter, be sure /etc/MACHINES says something about it.
1686 ### Eric Raymond says we should accept strings like "sysvr4" to mean
1687 ### "System V Release 4"; he writes, "The old convention encouraged
1688 ### confusion between `system' and `release' levels'."
1690 machine
='' opsys
='' unported
=no
1691 case "${canonical}" in
1696 case "${canonical}" in
1697 alpha
*-*-freebsd*) machine
=alpha
;;
1698 i
[3456]86-*-freebsd*) machine
=intel386
;;
1705 if test -f /usr
/lib
/crti.o
; then
1707 cat >>confdefs.h
<<\_ACEOF
1713 case "${canonical}" in
1714 alpha
*-*-netbsd*) machine
=alpha
;;
1715 i
[3456]86-*-netbsd*) machine
=intel386
;;
1717 # This is somewhat bogus.
1718 machine
=hp9000s300
;;
1719 powerpc-apple-netbsd
*) machine
=macppc
;;
1720 mips-
*-netbsd*) machine
=pmax
;;
1721 mipsel-
*-netbsd*) machine
=pmax
;;
1722 mipseb-
*-netbsd*) machine
=pmax
;;
1723 ns32k-
*-netbsd*) machine
=ns32000
;;
1724 powerpc-
*-netbsd*) machine
=macppc
;;
1725 sparc
*-*-netbsd*) machine
=sparc
;;
1726 vax-
*-netbsd*) machine
=vax
;;
1727 arm-
*-netbsd*) machine
=arm
;;
1734 case "${canonical}" in
1735 alpha
*-*-openbsd*) machine
=alpha
;;
1736 i386-
*-openbsd*) machine
=intel386
;;
1737 m68k-
*-openbsd*) machine
=hp9000s300
;;
1738 mipsel-
*-openbsd*) machine
=pmax
;;
1739 ns32k-
*-openbsd*) machine
=ns32000
;;
1740 sparc-
*-openbsd*) machine
=sparc
;;
1741 vax-
*-openbsd*) machine
=vax
;;
1746 arm-acorn-riscix1.1
* )
1747 machine
=acorn opsys
=riscix1-1
1749 arm-acorn-riscix1.2
* | arm-acorn-riscix
)
1750 ## This name is riscix12 instead of riscix1.2
1751 ## to avoid a file name conflict on MSDOS.
1752 machine
=acorn opsys
=riscix12
1758 case "${canonical}" in
1759 i
[345]86-*-bsdi*) machine
=intel386
;;
1760 sparc-
*-bsdi*) machine
=sparc
;;
1761 powerpc-
*-bsdi*) machine
=macppc
;;
1763 case "${canonical}" in
1764 *-*-bsd386* |
*-*-bsdi1* ) opsys
=bsd386
;;
1765 *-*-bsdi2.0
* ) opsys
=bsdos2
;;
1766 *-*-bsdi2* ) opsys
=bsdos2-1
;;
1767 *-*-bsdi3* ) opsys
=bsdos3
;;
1768 *-*-bsdi[45]* ) opsys
=bsdos4
;;
1773 ## Strictly speaking, we need the version of the alliant operating
1774 ## system to choose the right machine file, but currently the
1775 ## configuration name doesn't tell us enough to choose the right
1776 ## one; we need to give alliants their own operating system name to
1777 ## do this right. When someone cares, they can help us.
1779 machine
=alliant4 opsys
=bsd4-2
1782 machine
=alliant-2800 opsys
=bsd4-3
1785 ## Alpha (DEC) machines.
1787 machine
=alpha opsys
=osf1
1788 # This is needed to find X11R6.1 libraries for certain tests.
1789 NON_GCC_LINK_TEST_OPTIONS
=-Wl,-rpath,/usr
/X11R
6/lib
1790 GCC_LINK_TEST_OPTIONS
=-Wl,-rpath,/usr
/X11R
6/lib
1791 # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile
1792 # due to non-traditional preprocessing with the current compiler
1793 # defaults. OSF 4 can also have that compiler version, and there
1794 # seems always to have been a usable /usr/bin/cpp.
1795 NON_GNU_CPP
=/usr
/bin
/cpp
1796 case "${canonical}" in
1797 alpha
*-dec-osf[5-9]*)
1802 alpha
*-*-linux-gnu* )
1803 machine
=alpha opsys
=gnu-linux
1807 machine
=arm opsys
=gnu-linux
1812 machine
=macppc opsys
=gnu-linux
1817 machine
=altos opsys
=usg5-2
1822 machine
=amdahl opsys
=usg5-2-2
1825 ## Apollo, Domain/OS
1827 machine
=apollo opsys
=bsd4-3
1830 ## AT&T 3b2, 3b5, 3b15, 3b20
1832 machine
=att3b opsys
=usg5-2-2
1835 ## AT&T 3b1 - The Mighty Unix PC!
1837 machine
=7300 opsys
=usg5-2-2
1842 machine
=ibmrs6000 opsys
=aix3-2
1847 machine
=dpx2 opsys
=usg5-3
1852 machine
=sps7 opsys
=usg5-2
1855 ## CCI 5/32, 6/32 -- see "Tahoe".
1858 ## I don't know what configuration name to use for this; config.sub
1859 ## doesn't seem to know anything about it. Hey, Celerity users, get
1860 ## in touch with us!
1861 celerity-celerity-bsd
* )
1862 machine
=celerity opsys
=bsd4-2
1866 ## What operating systems does this chip run that Emacs has been
1870 ## We'll use the catch-all code at the bottom to guess the
1871 ## operating system.
1875 mips-compaq-nonstopux
* )
1876 machine
=nonstopux opsys
=nonstopux
1880 *-convex-bsd* |
*-convex-convexos* )
1881 machine
=convex opsys
=bsd4-3
1882 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
1883 NON_GNU_CPP
="cc -E -P"
1887 i
[3456]86-cubix-sysv* )
1888 machine
=intel386 opsys
=usg5-3
1892 cydra
*-cydrome-sysv* )
1893 machine
=cydra5 opsys
=usg5-3
1896 ## Data General AViiON Machines
1897 ## DG changed naming conventions with the release of 5.4.4.10, they
1898 ## dropped the initial 5.4 but left the intervening R. Because of the
1899 ## R this shouldn't conflict with older versions of the OS (which I
1900 ## think were named like dgux4.*). In addition, DG new AViiONs series
1901 ## uses either Motorola M88k or Intel Pentium CPUs.
1902 m88k-dg-dguxR4.
* | m88k-dg-dgux4
* )
1903 machine
=aviion opsys
=dgux4
1905 m88k-dg-dgux5.4R3
* | m88k-dg-dgux5.4
.3* )
1906 ## This name is dgux5-4-3 instead of dgux5-4r3
1907 ## to avoid a file name conflict on MSDOS.
1908 machine
=aviion opsys
=dgux5-4-3
1910 m88k-dg-dgux5.4R2
* | m88k-dg-dgux5.4
.2* )
1911 machine
=aviion opsys
=dgux5-4r2
1914 machine
=aviion opsys
=dgux
1917 ## Data General AViiON Intel (x86) Machines
1918 ## Exists from 5.4.3 (current i586-dg-dguxR4.11)
1919 ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il
1920 i
[345]86-dg-dguxR4* )
1921 machine
=aviion-intel opsys
=dgux4
1925 mips-dec-ultrix
[0-3].
* | mips-dec-ultrix4.0
* | mips-dec-bsd4.2
* )
1926 machine
=pmax opsys
=bsd4-2
1928 mips-dec-ultrix4.
[12]* | mips-dec-bsd
* )
1929 machine
=pmax opsys
=bsd4-3
1932 machine
=pmax opsys
=ultrix4-3
1935 machine
=pmax opsys
=osf1
1937 mips-dec-mach_bsd4.3
* )
1938 machine
=pmax opsys
=mach-bsd4-3
1941 ## Motorola Delta machines
1942 m68k-motorola-sysv
* | m68000-motorola-sysv
* )
1943 machine
=delta opsys
=usg5-3
1944 if test -z "`type gnucc | grep 'not found'`"
1946 if test -s /etc
/167config
1947 then CC
="gnucc -m68040"
1948 else CC
="gnucc -m68881"
1951 if test -z "`type gcc | grep 'not found'`"
1957 m88k-motorola-sysv4
* )
1958 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
1959 # needs POSIX_SIGNALS and therefore needs usg5-4-2.
1960 # I hope there are not other 4.0 versions for this machine
1961 # which really need usg5-4 instead.
1962 machine
=delta88k opsys
=usg5-4-2
1964 m88k-motorola-sysv
* | m88k-motorola-m88kbcs
* )
1965 machine
=delta88k opsys
=usg5-3
1970 machine
=dual opsys
=usg5-2
1972 m68
*-dual-uniplus* )
1973 machine
=dual opsys
=unipl5-2
1978 machine
=elxsi opsys
=usg5-2
1983 machine
=ns16000 opsys
=umax
1986 ## The GEC 63 - apparently, this port isn't really finished yet.
1987 # I'm sure we finished off the last of the machines, though. -- fx
1989 ## Gould Power Node and NP1
1991 machine
=gould opsys
=bsd4-2
1994 machine
=gould opsys
=bsd4-3
1997 machine
=gould-np1 opsys
=bsd4-3
2000 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
2001 ## as far as Emacs is concerned).
2003 # Build needs to be different on 7.0 and later releases
2004 case "`uname -r`" in
2005 [56].
[0-9] ) machine
=nh4000 opsys
=cxux
;;
2006 [7].
[0-9] ) machine
=nh4000 opsys
=cxux7
;;
2008 NON_GNU_CPP
="/lib/cpp"
2010 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
2012 machine
=nh3000 opsys
=cxux
2014 ## Harris power pc NightHawk running Power UNIX (Series 6000)
2015 powerpc-harris-powerunix
)
2016 machine
=nh6000 opsys
=powerunix
2017 NON_GNU_CPP
="cc -Xo -E -P"
2019 ## SR2001/SR2201 running HI-UX/MPP
2020 hppa1.1
-hitachi-hiuxmpp* )
2021 machine
=sr2k opsys
=hiuxmpp
2023 hppa1.1
-hitachi-hiuxwe2* )
2024 machine
=sr2k opsys
=hiuxwe2
2027 xps
*-honeywell-sysv* )
2028 machine
=xps100 opsys
=usg5-2
2031 ## HP 9000 series 200 or 300
2033 machine
=hp9000s300 opsys
=bsd4-3
2035 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
2037 case "`uname -r`" in
2038 ## Someone's system reports A.B8.05 for this.
2039 ## I wonder what other possibilities there are.
2040 *.B8.
* ) machine
=hp9000s300 opsys
=hpux8
;;
2041 *.08.
* ) machine
=hp9000s300 opsys
=hpux8
;;
2042 *.09.
* ) machine
=hp9000s300 opsys
=hpux9
;;
2043 *.1[0-9].
* ) machine
=hp9000s300 opsys
=hpux9shr
;;
2044 *) machine
=hp9000s300 opsys
=hpux
;;
2048 ## HP 9000 series 700 and 800, running HP/UX
2050 machine
=hp800 opsys
=hpux
2053 machine
=hp800 opsys
=hpux8
2055 hppa
*-hp-hpux9shr* )
2056 machine
=hp800 opsys
=hpux9shr
2059 machine
=hp800 opsys
=hpux9
2061 hppa
*-hp-hpux10.2
* )
2062 machine
=hp800 opsys
=hpux10-20
2065 machine
=hp800 opsys
=hpux10
2067 hppa
*-hp-hpux1[1-9]* )
2068 machine
=hp800 opsys
=hpux11
2071 hppa
*-*-linux-gnu* )
2072 machine
=hp800 opsys
=gnu-linux
2075 ## HP 9000 series 700 and 800, running HP/UX
2077 ## Cross-compilation? Nah!
2078 case "`uname -r`" in
2079 ## Someone's system reports A.B8.05 for this.
2080 ## I wonder what other possibilities there are.
2081 *.B8.
* ) machine
=hp800 opsys
=hpux8
;;
2082 *.08.
* ) machine
=hp800 opsys
=hpux8
;;
2083 *.09.
* ) machine
=hp800 opsys
=hpux9
;;
2084 *) machine
=hp800 opsys
=hpux10
;;
2088 machine
=hp800 opsys
=nextstep
2093 machine
=orion opsys
=bsd4-2
2095 clipper-orion-bsd
* )
2096 machine
=orion105 opsys
=bsd4-2
2100 i
[3456]86-ibm-aix1.1
* )
2101 machine
=ibmps2-aix opsys
=usg5-2-2
2103 i
[3456]86-ibm-aix1.
[23]* | i
[3456]86-ibm-aix* )
2104 machine
=ibmps2-aix opsys
=usg5-3
2107 machine
=ibm370aix opsys
=usg5-3
2110 machine
=ibms390 opsys
=gnu-linux
2112 rs6000-ibm-aix3.1
* | powerpc-ibm-aix3.1
* )
2113 machine
=ibmrs6000 opsys
=aix3-1
2115 rs6000-ibm-aix3.2
.5 | powerpc-ibm-aix3.2
.5 )
2116 machine
=ibmrs6000 opsys
=aix3-2-5
2118 rs6000-ibm-aix4.1
* | powerpc-ibm-aix4.1
* )
2119 machine
=ibmrs6000 opsys
=aix4-1
2121 rs6000-ibm-aix4.2
* | powerpc-ibm-aix4.2
* )
2122 machine
=ibmrs6000 opsys
=aix4-2
2124 rs6000-ibm-aix5
* | powerpc-ibm-aix5
* )
2125 machine
=ibmrs6000 opsys
=aix4-2
2127 rs6000-ibm-aix4.0
* | powerpc-ibm-aix4.0
* )
2128 machine
=ibmrs6000 opsys
=aix4
2130 rs6000-ibm-aix4
* | powerpc-ibm-aix4
* )
2131 machine
=ibmrs6000 opsys
=aix4-1
2133 rs6000-ibm-aix
* | powerpc-ibm-aix
* )
2134 machine
=ibmrs6000 opsys
=aix3-2
2137 machine
=ibmrt opsys
=bsd4-3
2140 machine
=ibmrt opsys
=bsd4-2
2143 machine
=ibmrt opsys
=bsd4-3
2146 machine
=ibmrt opsys
=bsd4-2
2149 machine
=ibmrt opsys
=bsd4-3
2152 machine
=ibmrt opsys
=bsd4-3
2155 machine
=ibmrt-aix opsys
=usg5-2-2
2158 ## Integrated Solutions `Optimum V'
2160 machine
=isi-ov opsys
=bsd4-2
2163 machine
=isi-ov opsys
=bsd4-3
2166 ## Intel 386 machines where we do care about the manufacturer
2167 i
[3456]86-intsys-sysv* )
2168 machine
=is386 opsys
=usg5-2-2
2172 i
[3456]86-prime-sysv* )
2173 machine
=i386 opsys
=usg5-3
2176 ## Sequent Symmetry running Dynix
2177 i
[3456]86-sequent-bsd* )
2178 machine
=symmetry opsys
=bsd4-3
2181 ## Sequent Symmetry running ptx 4, which is a modified SVR4.
2182 i
[3456]86-sequent-ptx4* | i
[3456]86-sequent-sysv4* )
2183 machine
=sequent-ptx opsys
=ptx4
2184 NON_GNU_CPP
=/lib
/cpp
2187 ## Sequent Symmetry running DYNIX/ptx
2188 ## Use the old cpp rather than the newer ANSI one.
2189 i
[3456]86-sequent-ptx* )
2190 machine
=sequent-ptx opsys
=ptx
2191 NON_GNU_CPP
="/lib/cpp"
2194 ## ncr machine running svr4.3.
2195 i
[3456]86-ncr-sysv4.3
)
2196 machine
=ncr386 opsys
=usg5-4-3
2199 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2200 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2201 i
[3456]86-ncr-sysv* )
2202 machine
=ncr386 opsys
=usg5-4-2
2205 ## Intel Paragon OSF/1
2207 machine
=paragon opsys
=osf1 NON_GNU_CPP
=/usr
/mach
/lib
/cpp
2212 machine
=i860 opsys
=usg5-4
2213 NON_GNU_CC
="/bin/cc" # Ie, not the one in /usr/ucb/cc.
2214 NON_GNU_CPP
="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
2217 ## Macintosh PowerPC
2218 powerpc
*-*-linux-gnu* )
2219 machine
=macppc opsys
=gnu-linux
2222 ## Masscomp machines
2223 m68
*-masscomp-rtu* )
2224 machine
=masscomp opsys
=rtu
2227 ## Megatest machines
2228 m68
*-megatest-bsd* )
2229 machine
=mega68 opsys
=bsd4-2
2232 ## Workstations sold by MIPS
2233 ## This is not necessarily all workstations using the MIPS processor -
2234 ## Irises are produced by SGI, and DECstations by DEC.
2236 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
2237 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
2238 ## it gives for choosing between the alternatives seems to be "Use
2239 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
2240 ## the BSD world." I'll assume that these are instructions for
2241 ## handling two odd situations, and that every other situation
2242 ## should use mips.h and usg5-2-2, they being listed first.
2245 ## Fall through to the general code at the bottom to decide on the OS.
2247 mips-mips-riscos4
* )
2248 machine
=mips4 opsys
=bsd4-3
2249 NON_GNU_CC
="cc -systype bsd43"
2250 NON_GNU_CPP
="cc -systype bsd43 -E"
2252 mips-mips-riscos5
* )
2253 machine
=mips4 opsys
=riscos5
2254 NON_GNU_CC
="cc -systype bsd43"
2255 NON_GNU_CPP
="cc -systype bsd43 -E"
2258 machine
=mips opsys
=bsd4-3
2261 machine
=mips opsys
=usg5-2-2
2265 m68
*-next-* | m68k-
*-nextstep* )
2266 machine
=m68k opsys
=nextstep
2269 ## The complete machine from National Semiconductor
2271 machine
=ns32000 opsys
=usg5-2
2275 m68
*-ncr-sysv2* | m68
*-ncr-sysvr2* )
2276 machine
=tower32 opsys
=usg5-2-2
2278 m68
*-ncr-sysv3* | m68
*-ncr-sysvr3* )
2279 machine
=tower32v3 opsys
=usg5-3
2284 machine
=ews4800 opsys
=ux4800
2287 ## Nixdorf Targon 31
2288 m68
*-nixdorf-sysv* )
2289 machine
=targon31 opsys
=usg5-2-2
2294 machine
=nu opsys
=usg5-2
2299 machine
=plexus opsys
=usg5-2
2303 ## I don't really have any idea what sort of processor the Pyramid has,
2304 ## so I'm assuming it is its own architecture.
2305 pyramid-pyramid-bsd
* )
2306 machine
=pyramid opsys
=bsd4-2
2310 ns32k-sequent-bsd4.2
* )
2311 machine
=sequent opsys
=bsd4-2
2313 ns32k-sequent-bsd4.3
* )
2314 machine
=sequent opsys
=bsd4-3
2318 mips-siemens-sysv
* | mips-sni-sysv
*)
2319 machine
=mips-siemens opsys
=usg5-4
2320 NON_GNU_CC
=/usr
/ccs
/bin
/cc
2321 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2324 ## Silicon Graphics machines
2325 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
2327 machine
=irist opsys
=iris3-5
2329 m68
*-sgi-iris3.6
* | m68
*-sgi-iris*)
2330 machine
=irist opsys
=iris3-6
2334 machine
=iris4d opsys
=irix3-3
2337 machine
=iris4d opsys
=irix4-0
2340 machine
=iris4d opsys
=irix6-5
2341 # Without defining _LANGUAGE_C, things get masked out in the headers
2342 # so that, for instance, grepping for `free' in stdlib.h fails and
2343 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2344 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2345 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
2348 machine
=iris4d opsys
=irix6-0
2349 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
2350 # but presumably it does no harm.
2351 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2352 # -32 probably isn't necessary in later v.6s -- anyone know which?
2353 NON_GCC_TEST_OPTIONS
=-32
2355 mips-sgi-irix5.
[01]* )
2356 machine
=iris4d opsys
=irix5-0
2358 mips-sgi-irix5
* | mips-sgi-irix
* )
2359 machine
=iris4d opsys
=irix5-2
2364 machine
=news opsys
=bsd4-2
2367 machine
=news opsys
=bsd4-3
2369 m68
*-sony-newsos3* | m68
*-sony-news3*)
2370 machine
=news opsys
=bsd4-3
2372 mips-sony-bsd
* | mips-sony-newsos4
* | mips-sony-news4
*)
2373 machine
=news-risc opsys
=bsd4-3
2375 mips-sony-newsos6
* )
2376 machine
=news-r6 opsys
=newsos6
2379 machine
=news-risc opsys
=newsos5
2384 machine
=stride opsys
=usg5-2
2388 sparc-
*-linux-gnu* | sparc64-
*-linux-gnu* )
2389 machine
=sparc opsys
=gnu-linux
2392 *-auspex-sunos* |
*-sun-sunos* |
*-sun-bsd* |
*-sun-solaris* \
2393 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* | powerpc
*-*-solaris2* \
2394 | rs6000-
*-solaris2*)
2395 case "${canonical}" in
2396 m68
*-sunos1* ) machine
=sun1
;;
2397 m68
*-sunos2* ) machine
=sun2
;;
2398 m68
* ) machine
=sun3
;;
2399 i
[3456]86-sun-sunos[34]* ) machine
=sun386
;;
2400 i
[3456]86-*-* ) machine
=intel386
;;
2401 powerpcle
* ) machine
=powerpcle
;;
2402 powerpc
* | rs6000
* ) machine
=ibmrs6000
;;
2403 sparc
* ) machine
=sparc
;;
2406 case "${canonical}" in
2407 ## The Sun386 didn't get past 4.0.
2408 i
[3456]86-*-sunos4 ) opsys
=sunos4-0
;;
2409 *-sunos4.0
* ) opsys
=sunos4-0
;;
2410 *-sunos4.1.
[3-9]*noshare
)
2411 ## This name is sunos413 instead of sunos4-1-3
2412 ## to avoid a file name conflict on MSDOS.
2414 NON_GNU_CPP
=/usr
/lib
/cpp
2415 NON_GCC_TEST_OPTIONS
=-Bstatic
2416 GCC_TEST_OPTIONS
=-static
2418 *-sunos4.1.
[3-9]* |
*-sunos4shr*)
2420 NON_GNU_CPP
=/usr
/lib
/cpp
2422 *-sunos4* |
*-sunos )
2424 NON_GCC_TEST_OPTIONS
=-Bstatic
2425 GCC_TEST_OPTIONS
=-static
2427 *-sunos5.3
* |
*-solaris2.3
* )
2429 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2431 *-sunos5.4
* |
*-solaris2.4
* )
2433 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2436 *-sunos5.5
* |
*-solaris2.5
* )
2438 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2441 *-sunos5.6
* |
*-solaris2.6
* )
2443 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2446 *-sunos5* |
*-solaris* )
2448 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2452 ## Watch out for a compiler that we know will not work.
2453 case "${canonical}" in
2454 *-solaris* |
*-sunos5* )
2455 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
2456 ## /usr/ucb/cc doesn't work;
2457 ## we should find some other compiler that does work.
2465 machine
=sparc opsys
=nextstep
2469 m68
*-tadpole-sysv* )
2470 machine
=tad68k opsys
=usg5-3
2474 tahoe-tahoe-bsd4.2
* )
2475 machine
=tahoe opsys
=bsd4-2
2477 tahoe-tahoe-bsd4.3
* )
2478 machine
=tahoe opsys
=bsd4-3
2481 ## Tandem Integrity S2
2483 machine
=tandem-s2 opsys
=usg5-3
2487 m88k-tektronix-sysv3
* )
2488 machine
=tekxd88 opsys
=usg5-3
2491 ## Tektronix 16000 box (6130?)
2492 ns16k-tektronix-bsd
* )
2493 machine
=ns16000 opsys
=bsd4-2
2496 ## src/m/tek4300.h hints that this is a m68k machine.
2497 m68
*-tektronix-bsd* )
2498 machine
=tek4300 opsys
=bsd4-3
2502 ## We seem to have lost the machine-description file titan.h!
2504 machine
=titan opsys
=usg5-3
2507 ## Ustation E30 (SS5E)
2508 m68
*-unisys-uniplus* )
2509 machine
=ustation opsystem
=unipl5-2
2515 case "${canonical}" in
2516 *-bsd4.1
* ) opsys
=bsd4-1
;;
2517 *-bsd4.2
* |
*-ultrix[0-3].
* |
*-ultrix4.0
* ) opsys
=bsd4-2
;;
2518 *-bsd4.3
* |
*-ultrix* ) opsys
=bsd4-3
;;
2519 *-sysv[01]* |
*-sysvr[01]* ) opsys
=usg5-0
;;
2520 *-sysv2* |
*-sysvr2* ) opsys
=usg5-2
;;
2521 *-vms* ) opsys
=vms
;;
2527 ns16k-whitechapel-
* )
2529 ## We don't know what sort of OS runs on these; we'll let the
2530 ## operating system guessing code below try.
2535 machine
=wicat opsys
=usg5-2
2540 machine
=ia64 opsys
=gnu-linux
2543 ## Intel 386 machines where we don't care about the manufacturer
2546 case "${canonical}" in
2547 *-cygwin ) opsys
=cygwin
;;
2548 *-lynxos* ) opsys
=lynxos
;;
2549 *-isc1.
* |
*-isc2.
[01]* ) opsys
=386-ix ;;
2550 *-isc2.2
* ) opsys
=isc2-2
;;
2551 *-isc4.0
* ) opsys
=isc4-0
;;
2552 *-isc4.
* ) opsys
=isc4-1
2553 GCC_TEST_OPTIONS
=-posix
2554 NON_GCC_TEST_OPTIONS
=-Xp
2556 *-isc* ) opsys
=isc3-0
;;
2557 *-esix5* ) opsys
=esix5r4
; NON_GNU_CPP
=/usr
/lib
/cpp
;;
2558 *-esix* ) opsys
=esix
;;
2559 *-xenix* ) opsys
=xenix
;;
2560 *-linux-gnu* ) opsys
=gnu-linux
;;
2561 *-sco3.2v4
* ) opsys
=sco4
; NON_GNU_CPP
=/lib
/cpp
;;
2562 *-sco3.2v5
* ) opsys
=sco5
2563 NON_GNU_CPP
=/lib
/cpp
2564 # Prevent -belf from being passed to $CPP.
2565 # /lib/cpp does not accept it.
2566 OVERRIDE_CPPFLAGS
=" "
2568 *-sysv4.2uw
* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2569 *-sysv5uw* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2570 *-sysv5OpenUNIX* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2571 *-386bsd* ) opsys
=386bsd
;;
2572 *-nextstep* ) opsys
=nextstep
;;
2573 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2577 ## m68k Linux-based GNU system
2579 machine
=m68k opsys
=gnu-linux
2582 ## Mips Linux-based GNU system
2583 mips-
*-linux-gnu* | mipsel-
*-linux-gnu* )
2584 machine
=mips opsys
=gnu-linux
2588 sparc-fujitsu-sysv4
* )
2589 machine
=sparc opsys
=uxpds
2590 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2595 f301-fujitsu-uxpv4.1
)
2596 machine
=f301 opsys
=uxpv
2599 ## Darwin / Mac OS X
2600 powerpc-apple-darwin
* )
2601 machine
=powermac opsys
=darwin
2602 # Define CPP as follows to make autoconf work correctly.
2603 CPP
="${CC-cc} -E -no-cpp-precomp"
2604 # Use fink packages if available.
2605 if test -d /sw
/include
&& test -d /sw
/lib
; then
2606 GCC_TEST_OPTIONS
="-I/sw/include -L/sw/lib"
2607 CPP
="${CPP} ${GCC_TEST_OPTIONS}"
2608 NON_GCC_TEST_OPTIONS
=${GCC_TEST_OPTIONS}
2612 ## AMD x86-64 Linux-based GNU system
2613 x86_64-
*-linux-gnu* )
2614 machine
=amdx86-64 opsys
=gnu-linux
2622 ### If the code above didn't choose an operating system, just choose
2623 ### an operating system based on the configuration name. You really
2624 ### only want to use this when you have no idea what the right
2625 ### operating system is; if you know what operating systems a machine
2626 ### runs, it's cleaner to make it explicit in the case statement
2628 if test x
"${opsys}" = x
; then
2629 case "${canonical}" in
2630 *-gnu* ) opsys
=gnu
;;
2631 *-bsd4.
[01] ) opsys
=bsd4-1
;;
2632 *-bsd4.2
) opsys
=bsd4-2
;;
2633 *-bsd4.3
) opsys
=bsd4-3
;;
2634 *-sysv0 |
*-sysvr0 ) opsys
=usg5-0
;;
2635 *-sysv2 |
*-sysvr2 ) opsys
=usg5-2
;;
2636 *-sysv2.2 |
*-sysvr2.2
) opsys
=usg5-2-2
;;
2637 *-sysv3* |
*-sysvr3* ) opsys
=usg5-3
;;
2638 *-sysv4.2uw
* ) opsys
=unixware
;;
2639 *-sysv5uw* ) opsys
=unixware
;;
2640 *-sysv5OpenUNIX* ) opsys
=unixware
;;
2641 *-sysv4.1
* |
*-sysvr4.1
* )
2642 NON_GNU_CPP
=/usr
/lib
/cpp
2644 *-sysv4.
[2-9]* |
*-sysvr4.
[2-9]* )
2645 if [ x
$NON_GNU_CPP = x
]; then
2646 if [ -f /usr
/ccs
/lib
/cpp
]; then
2647 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2649 NON_GNU_CPP
=/lib
/cpp
2653 *-sysv4* |
*-sysvr4* ) opsys
=usg5-4
;;
2662 if test $unported = yes; then
2663 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
2664 Check \`etc/MACHINES' for recognized configuration names." >&5
2665 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2666 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2667 { (exit 1); exit 1; }; }
2670 machfile
="m/${machine}.h"
2671 opsysfile
="s/${opsys}.h"
2674 #### Choose a compiler.
2675 test -n "$CC" && cc_specified
=yes
2677 # Save the value of CFLAGS that the user specified.
2678 SPECIFIED_CFLAGS
="$CFLAGS"
2681 "yes" ) CC
="gcc" GCC
=yes ;;
2682 "no" ) : ${CC=cc} ;;
2686 ac_cpp
='$CPP $CPPFLAGS'
2687 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2688 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2689 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2690 if test -n "$ac_tool_prefix"; then
2691 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2692 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2693 echo "$as_me:$LINENO: checking for $ac_word" >&5
2694 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2695 if test "${ac_cv_prog_CC+set}" = set; then
2696 echo $ECHO_N "(cached) $ECHO_C" >&6
2698 if test -n "$CC"; then
2699 ac_cv_prog_CC
="$CC" # Let the user override the test.
2701 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2705 test -z "$as_dir" && as_dir
=.
2706 for ac_exec_ext
in '' $ac_executable_extensions; do
2707 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2708 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2709 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2718 if test -n "$CC"; then
2719 echo "$as_me:$LINENO: result: $CC" >&5
2720 echo "${ECHO_T}$CC" >&6
2722 echo "$as_me:$LINENO: result: no" >&5
2723 echo "${ECHO_T}no" >&6
2727 if test -z "$ac_cv_prog_CC"; then
2729 # Extract the first word of "gcc", so it can be a program name with args.
2730 set dummy gcc
; ac_word
=$2
2731 echo "$as_me:$LINENO: checking for $ac_word" >&5
2732 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2733 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2734 echo $ECHO_N "(cached) $ECHO_C" >&6
2736 if test -n "$ac_ct_CC"; then
2737 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2739 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2743 test -z "$as_dir" && as_dir
=.
2744 for ac_exec_ext
in '' $ac_executable_extensions; do
2745 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2746 ac_cv_prog_ac_ct_CC
="gcc"
2747 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2755 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2756 if test -n "$ac_ct_CC"; then
2757 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2758 echo "${ECHO_T}$ac_ct_CC" >&6
2760 echo "$as_me:$LINENO: result: no" >&5
2761 echo "${ECHO_T}no" >&6
2769 if test -z "$CC"; then
2770 if test -n "$ac_tool_prefix"; then
2771 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2772 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2773 echo "$as_me:$LINENO: checking for $ac_word" >&5
2774 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2775 if test "${ac_cv_prog_CC+set}" = set; then
2776 echo $ECHO_N "(cached) $ECHO_C" >&6
2778 if test -n "$CC"; then
2779 ac_cv_prog_CC
="$CC" # Let the user override the test.
2781 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2785 test -z "$as_dir" && as_dir
=.
2786 for ac_exec_ext
in '' $ac_executable_extensions; do
2787 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2788 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2789 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2798 if test -n "$CC"; then
2799 echo "$as_me:$LINENO: result: $CC" >&5
2800 echo "${ECHO_T}$CC" >&6
2802 echo "$as_me:$LINENO: result: no" >&5
2803 echo "${ECHO_T}no" >&6
2807 if test -z "$ac_cv_prog_CC"; then
2809 # Extract the first word of "cc", so it can be a program name with args.
2810 set dummy cc
; ac_word
=$2
2811 echo "$as_me:$LINENO: checking for $ac_word" >&5
2812 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2813 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2814 echo $ECHO_N "(cached) $ECHO_C" >&6
2816 if test -n "$ac_ct_CC"; then
2817 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2819 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2823 test -z "$as_dir" && as_dir
=.
2824 for ac_exec_ext
in '' $ac_executable_extensions; do
2825 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2826 ac_cv_prog_ac_ct_CC
="cc"
2827 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2835 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2836 if test -n "$ac_ct_CC"; then
2837 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2838 echo "${ECHO_T}$ac_ct_CC" >&6
2840 echo "$as_me:$LINENO: result: no" >&5
2841 echo "${ECHO_T}no" >&6
2850 if test -z "$CC"; then
2851 # Extract the first word of "cc", so it can be a program name with args.
2852 set dummy cc
; ac_word
=$2
2853 echo "$as_me:$LINENO: checking for $ac_word" >&5
2854 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2855 if test "${ac_cv_prog_CC+set}" = set; then
2856 echo $ECHO_N "(cached) $ECHO_C" >&6
2858 if test -n "$CC"; then
2859 ac_cv_prog_CC
="$CC" # Let the user override the test.
2862 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2866 test -z "$as_dir" && as_dir
=.
2867 for ac_exec_ext
in '' $ac_executable_extensions; do
2868 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2869 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2870 ac_prog_rejected
=yes
2874 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2880 if test $ac_prog_rejected = yes; then
2881 # We found a bogon in the path, so make sure we never use it.
2882 set dummy
$ac_cv_prog_CC
2884 if test $# != 0; then
2885 # We chose a different compiler from the bogus one.
2886 # However, it has the same basename, so the bogon will be chosen
2887 # first if we set CC to just the basename; use the full file name.
2889 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2895 if test -n "$CC"; then
2896 echo "$as_me:$LINENO: result: $CC" >&5
2897 echo "${ECHO_T}$CC" >&6
2899 echo "$as_me:$LINENO: result: no" >&5
2900 echo "${ECHO_T}no" >&6
2904 if test -z "$CC"; then
2905 if test -n "$ac_tool_prefix"; then
2908 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2909 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2910 echo "$as_me:$LINENO: checking for $ac_word" >&5
2911 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2912 if test "${ac_cv_prog_CC+set}" = set; then
2913 echo $ECHO_N "(cached) $ECHO_C" >&6
2915 if test -n "$CC"; then
2916 ac_cv_prog_CC
="$CC" # Let the user override the test.
2918 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2922 test -z "$as_dir" && as_dir
=.
2923 for ac_exec_ext
in '' $ac_executable_extensions; do
2924 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2925 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2926 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2935 if test -n "$CC"; then
2936 echo "$as_me:$LINENO: result: $CC" >&5
2937 echo "${ECHO_T}$CC" >&6
2939 echo "$as_me:$LINENO: result: no" >&5
2940 echo "${ECHO_T}no" >&6
2943 test -n "$CC" && break
2946 if test -z "$CC"; then
2950 # Extract the first word of "$ac_prog", so it can be a program name with args.
2951 set dummy
$ac_prog; ac_word
=$2
2952 echo "$as_me:$LINENO: checking for $ac_word" >&5
2953 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2954 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2955 echo $ECHO_N "(cached) $ECHO_C" >&6
2957 if test -n "$ac_ct_CC"; then
2958 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2960 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2964 test -z "$as_dir" && as_dir
=.
2965 for ac_exec_ext
in '' $ac_executable_extensions; do
2966 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2967 ac_cv_prog_ac_ct_CC
="$ac_prog"
2968 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2976 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2977 if test -n "$ac_ct_CC"; then
2978 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2979 echo "${ECHO_T}$ac_ct_CC" >&6
2981 echo "$as_me:$LINENO: result: no" >&5
2982 echo "${ECHO_T}no" >&6
2985 test -n "$ac_ct_CC" && break
2994 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2995 See \`config.log' for more details." >&5
2996 echo "$as_me: error: no acceptable C compiler found in \$PATH
2997 See \`config.log' for more details." >&2;}
2998 { (exit 1); exit 1; }; }
3000 # Provide some information about the compiler.
3001 echo "$as_me:$LINENO:" \
3002 "checking for C compiler version" >&5
3003 ac_compiler
=`set X $ac_compile; echo $2`
3004 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3005 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
3007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3008 (exit $ac_status); }
3009 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3010 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
3012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3013 (exit $ac_status); }
3014 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3015 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
3017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3018 (exit $ac_status); }
3020 cat >conftest.
$ac_ext <<_ACEOF
3023 cat confdefs.h
>>conftest.
$ac_ext
3024 cat >>conftest.
$ac_ext <<_ACEOF
3025 /* end confdefs.h. */
3035 ac_clean_files_save
=$ac_clean_files
3036 ac_clean_files
="$ac_clean_files a.out a.exe b.out"
3037 # Try to create an executable without -o first, disregard a.out.
3038 # It will help us diagnose broken compilers, and finding out an intuition
3040 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3041 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
3042 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3043 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
3044 (eval $ac_link_default) 2>&5
3046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3047 (exit $ac_status); }; then
3048 # Find the output, starting from the most likely. This scheme is
3049 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
3052 # Be careful to initialize this variable, since it used to be cached.
3053 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
3055 # b.out is created by i960 compilers.
3056 for ac_file
in a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
3058 test -f "$ac_file" ||
continue
3060 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
)
3063 # This is the source file.
3066 # We found the default executable, but exeext='' is most
3070 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3071 # FIXME: I believe we export ac_cv_exeext for Libtool,
3072 # but it would be cool to find out if it's true. Does anybody
3073 # maintain Libtool? --akim.
3081 echo "$as_me: failed program was:" >&5
3082 sed 's/^/| /' conftest.
$ac_ext >&5
3084 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3085 See \`config.log' for more details." >&5
3086 echo "$as_me: error: C compiler cannot create executables
3087 See \`config.log' for more details." >&2;}
3088 { (exit 77); exit 77; }; }
3091 ac_exeext
=$ac_cv_exeext
3092 echo "$as_me:$LINENO: result: $ac_file" >&5
3093 echo "${ECHO_T}$ac_file" >&6
3095 # Check the compiler produces executables we can run. If not, either
3096 # the compiler is broken, or we cross compile.
3097 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3098 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
3099 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3100 # If not cross compiling, check that we can run a simple program.
3101 if test "$cross_compiling" != yes; then
3102 if { ac_try
='./$ac_file'
3103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3107 (exit $ac_status); }; }; then
3110 if test "$cross_compiling" = maybe
; then
3113 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3114 If you meant to cross compile, use \`--host'.
3115 See \`config.log' for more details." >&5
3116 echo "$as_me: error: cannot run C compiled programs.
3117 If you meant to cross compile, use \`--host'.
3118 See \`config.log' for more details." >&2;}
3119 { (exit 1); exit 1; }; }
3123 echo "$as_me:$LINENO: result: yes" >&5
3124 echo "${ECHO_T}yes" >&6
3126 rm -f a.out a.exe conftest
$ac_cv_exeext b.out
3127 ac_clean_files
=$ac_clean_files_save
3128 # Check the compiler produces executables we can run. If not, either
3129 # the compiler is broken, or we cross compile.
3130 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3131 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3132 echo "$as_me:$LINENO: result: $cross_compiling" >&5
3133 echo "${ECHO_T}$cross_compiling" >&6
3135 echo "$as_me:$LINENO: checking for suffix of executables" >&5
3136 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3137 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3138 (eval $ac_link) 2>&5
3140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3141 (exit $ac_status); }; then
3142 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3143 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3144 # work properly (i.e., refer to `conftest.exe'), while it won't with
3146 for ac_file
in conftest.exe conftest conftest.
*; do
3147 test -f "$ac_file" ||
continue
3149 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
3150 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3157 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3158 See \`config.log' for more details." >&5
3159 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3160 See \`config.log' for more details." >&2;}
3161 { (exit 1); exit 1; }; }
3164 rm -f conftest
$ac_cv_exeext
3165 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3166 echo "${ECHO_T}$ac_cv_exeext" >&6
3168 rm -f conftest.
$ac_ext
3169 EXEEXT
=$ac_cv_exeext
3171 echo "$as_me:$LINENO: checking for suffix of object files" >&5
3172 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
3173 if test "${ac_cv_objext+set}" = set; then
3174 echo $ECHO_N "(cached) $ECHO_C" >&6
3176 cat >conftest.
$ac_ext <<_ACEOF
3179 cat confdefs.h
>>conftest.
$ac_ext
3180 cat >>conftest.
$ac_ext <<_ACEOF
3181 /* end confdefs.h. */
3191 rm -f conftest.o conftest.obj
3192 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3193 (eval $ac_compile) 2>&5
3195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3196 (exit $ac_status); }; then
3197 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3199 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg
) ;;
3200 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
3205 echo "$as_me: failed program was:" >&5
3206 sed 's/^/| /' conftest.
$ac_ext >&5
3208 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3209 See \`config.log' for more details." >&5
3210 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3211 See \`config.log' for more details." >&2;}
3212 { (exit 1); exit 1; }; }
3215 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
3217 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3218 echo "${ECHO_T}$ac_cv_objext" >&6
3219 OBJEXT
=$ac_cv_objext
3221 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3222 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3223 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3224 echo $ECHO_N "(cached) $ECHO_C" >&6
3226 cat >conftest.
$ac_ext <<_ACEOF
3229 cat confdefs.h
>>conftest.
$ac_ext
3230 cat >>conftest.
$ac_ext <<_ACEOF
3231 /* end confdefs.h. */
3244 rm -f conftest.
$ac_objext
3245 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3246 (eval $ac_compile) 2>conftest.er1
3248 grep -v '^ *+' conftest.er1
>conftest.err
3250 cat conftest.err
>&5
3251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3252 (exit $ac_status); } &&
3253 { ac_try
='test -z "$ac_c_werror_flag"
3254 || test ! -s conftest.err'
3255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3259 (exit $ac_status); }; } &&
3260 { ac_try
='test -s conftest.$ac_objext'
3261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3265 (exit $ac_status); }; }; then
3268 echo "$as_me: failed program was:" >&5
3269 sed 's/^/| /' conftest.
$ac_ext >&5
3273 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3274 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
3277 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3278 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3279 GCC
=`test $ac_compiler_gnu = yes && echo yes`
3280 ac_test_CFLAGS
=${CFLAGS+set}
3281 ac_save_CFLAGS
=$CFLAGS
3283 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3284 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3285 if test "${ac_cv_prog_cc_g+set}" = set; then
3286 echo $ECHO_N "(cached) $ECHO_C" >&6
3288 cat >conftest.
$ac_ext <<_ACEOF
3291 cat confdefs.h
>>conftest.
$ac_ext
3292 cat >>conftest.
$ac_ext <<_ACEOF
3293 /* end confdefs.h. */
3303 rm -f conftest.
$ac_objext
3304 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3305 (eval $ac_compile) 2>conftest.er1
3307 grep -v '^ *+' conftest.er1
>conftest.err
3309 cat conftest.err
>&5
3310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3311 (exit $ac_status); } &&
3312 { ac_try
='test -z "$ac_c_werror_flag"
3313 || test ! -s conftest.err'
3314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3318 (exit $ac_status); }; } &&
3319 { ac_try
='test -s conftest.$ac_objext'
3320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3324 (exit $ac_status); }; }; then
3327 echo "$as_me: failed program was:" >&5
3328 sed 's/^/| /' conftest.
$ac_ext >&5
3332 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3334 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3335 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3336 if test "$ac_test_CFLAGS" = set; then
3337 CFLAGS
=$ac_save_CFLAGS
3338 elif test $ac_cv_prog_cc_g = yes; then
3339 if test "$GCC" = yes; then
3345 if test "$GCC" = yes; then
3351 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3352 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3353 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3354 echo $ECHO_N "(cached) $ECHO_C" >&6
3356 ac_cv_prog_cc_stdc
=no
3358 cat >conftest.
$ac_ext <<_ACEOF
3361 cat confdefs.h
>>conftest.
$ac_ext
3362 cat >>conftest.
$ac_ext <<_ACEOF
3363 /* end confdefs.h. */
3366 #include <sys/types.h>
3367 #include <sys/stat.h>
3368 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3369 struct buf { int x; };
3370 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3371 static char *e (p, i)
3377 static char *f (char * (*g) (char **, int), char **p, ...)
3382 s = g (p, va_arg (v,int));
3387 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3388 function prototypes and stuff, but not '\xHH' hex character constants.
3389 These don't provoke an error unfortunately, instead are silently treated
3390 as 'x'. The following induces an error, until -std1 is added to get
3391 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3392 array size at least. It's necessary to write '\x00'==0 to get something
3393 that's true only with -std1. */
3394 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3396 int test (int i, double x);
3397 struct s1 {int (*f) (int a);};
3398 struct s2 {int (*f) (double a);};
3399 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3405 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3410 # Don't try gcc -ansi; that turns off useful extensions and
3411 # breaks some systems' header files.
3412 # AIX -qlanglvl=ansi
3413 # Ultrix and OSF/1 -std1
3414 # HP-UX 10.20 and later -Ae
3415 # HP-UX older versions -Aa -D_HPUX_SOURCE
3416 # SVR4 -Xc -D__EXTENSIONS__
3417 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3419 CC
="$ac_save_CC $ac_arg"
3420 rm -f conftest.
$ac_objext
3421 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3422 (eval $ac_compile) 2>conftest.er1
3424 grep -v '^ *+' conftest.er1
>conftest.err
3426 cat conftest.err
>&5
3427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3428 (exit $ac_status); } &&
3429 { ac_try
='test -z "$ac_c_werror_flag"
3430 || test ! -s conftest.err'
3431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3435 (exit $ac_status); }; } &&
3436 { ac_try
='test -s conftest.$ac_objext'
3437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3441 (exit $ac_status); }; }; then
3442 ac_cv_prog_cc_stdc
=$ac_arg
3445 echo "$as_me: failed program was:" >&5
3446 sed 's/^/| /' conftest.
$ac_ext >&5
3449 rm -f conftest.err conftest.
$ac_objext
3451 rm -f conftest.
$ac_ext conftest.
$ac_objext
3456 case "x$ac_cv_prog_cc_stdc" in
3458 echo "$as_me:$LINENO: result: none needed" >&5
3459 echo "${ECHO_T}none needed" >&6 ;;
3461 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3462 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3463 CC
="$CC $ac_cv_prog_cc_stdc" ;;
3466 # Some people use a C++ compiler to compile C. Since we use `exit',
3467 # in C++ we need to declare it. In case someone uses the same compiler
3468 # for both compiling C and C++ we need to have the C++ compiler decide
3469 # the declaration of exit, since it's the most demanding environment.
3470 cat >conftest.
$ac_ext <<_ACEOF
3475 rm -f conftest.
$ac_objext
3476 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3477 (eval $ac_compile) 2>conftest.er1
3479 grep -v '^ *+' conftest.er1
>conftest.err
3481 cat conftest.err
>&5
3482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3483 (exit $ac_status); } &&
3484 { ac_try
='test -z "$ac_c_werror_flag"
3485 || test ! -s conftest.err'
3486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3490 (exit $ac_status); }; } &&
3491 { ac_try
='test -s conftest.$ac_objext'
3492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3496 (exit $ac_status); }; }; then
3497 for ac_declaration
in \
3499 'extern "C" void std::exit (int) throw (); using std::exit;' \
3500 'extern "C" void std::exit (int); using std::exit;' \
3501 'extern "C" void exit (int) throw ();' \
3502 'extern "C" void exit (int);' \
3505 cat >conftest.
$ac_ext <<_ACEOF
3508 cat confdefs.h
>>conftest.
$ac_ext
3509 cat >>conftest.
$ac_ext <<_ACEOF
3510 /* end confdefs.h. */
3521 rm -f conftest.
$ac_objext
3522 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3523 (eval $ac_compile) 2>conftest.er1
3525 grep -v '^ *+' conftest.er1
>conftest.err
3527 cat conftest.err
>&5
3528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3529 (exit $ac_status); } &&
3530 { ac_try
='test -z "$ac_c_werror_flag"
3531 || test ! -s conftest.err'
3532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3536 (exit $ac_status); }; } &&
3537 { ac_try
='test -s conftest.$ac_objext'
3538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3542 (exit $ac_status); }; }; then
3545 echo "$as_me: failed program was:" >&5
3546 sed 's/^/| /' conftest.
$ac_ext >&5
3550 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3551 cat >conftest.
$ac_ext <<_ACEOF
3554 cat confdefs.h
>>conftest.
$ac_ext
3555 cat >>conftest.
$ac_ext <<_ACEOF
3556 /* end confdefs.h. */
3566 rm -f conftest.
$ac_objext
3567 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3568 (eval $ac_compile) 2>conftest.er1
3570 grep -v '^ *+' conftest.er1
>conftest.err
3572 cat conftest.err
>&5
3573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3574 (exit $ac_status); } &&
3575 { ac_try
='test -z "$ac_c_werror_flag"
3576 || test ! -s conftest.err'
3577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3581 (exit $ac_status); }; } &&
3582 { ac_try
='test -s conftest.$ac_objext'
3583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3587 (exit $ac_status); }; }; then
3590 echo "$as_me: failed program was:" >&5
3591 sed 's/^/| /' conftest.
$ac_ext >&5
3594 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3597 if test -n "$ac_declaration"; then
3598 echo '#ifdef __cplusplus' >>confdefs.h
3599 echo $ac_declaration >>confdefs.h
3600 echo '#endif' >>confdefs.h
3604 echo "$as_me: failed program was:" >&5
3605 sed 's/^/| /' conftest.
$ac_ext >&5
3608 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3610 ac_cpp
='$CPP $CPPFLAGS'
3611 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3612 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3613 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3616 # On Suns, sometimes $CPP names a directory.
3617 if test -n "$CPP" && test -d "$CPP"; then
3621 #### Some systems specify a CPP to use unless we are using GCC.
3622 #### Now that we know whether we are using GCC, we can decide whether
3623 #### to use that one.
3624 if test "x$NON_GNU_CPP" != x
&& test x
$GCC != xyes
&& test "x$CPP" = x
3629 #### Some systems specify a CC to use unless we are using GCC.
3630 #### Now that we know whether we are using GCC, we can decide whether
3631 #### to use that one.
3632 if test "x$NON_GNU_CC" != x
&& test x
$GCC != xyes
&&
3633 test x
$cc_specified != xyes
3638 if test x
$GCC = xyes
&& test "x$GCC_TEST_OPTIONS" != x
3640 CC
="$CC $GCC_TEST_OPTIONS"
3643 if test x
$GCC = x
&& test "x$NON_GCC_TEST_OPTIONS" != x
3645 CC
="$CC $NON_GCC_TEST_OPTIONS"
3648 #### Some other nice autoconf tests.
3650 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3651 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3653 if test "$LN_S" = "ln -s"; then
3654 echo "$as_me:$LINENO: result: yes" >&5
3655 echo "${ECHO_T}yes" >&6
3657 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3658 echo "${ECHO_T}no, using $LN_S" >&6
3662 ac_cpp
='$CPP $CPPFLAGS'
3663 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3664 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3665 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3666 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3667 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3668 # On Suns, sometimes $CPP names a directory.
3669 if test -n "$CPP" && test -d "$CPP"; then
3672 if test -z "$CPP"; then
3673 if test "${ac_cv_prog_CPP+set}" = set; then
3674 echo $ECHO_N "(cached) $ECHO_C" >&6
3676 # Double quotes because CPP needs to be expanded
3677 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3680 for ac_c_preproc_warn_flag
in '' yes
3682 # Use a header file that comes with gcc, so configuring glibc
3683 # with a fresh cross-compiler works.
3684 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3685 # <limits.h> exists even on freestanding compilers.
3686 # On the NeXT, cc -E runs the code through the compiler's parser,
3687 # not just through cpp. "Syntax error" is here to catch this case.
3688 cat >conftest.
$ac_ext <<_ACEOF
3691 cat confdefs.h
>>conftest.
$ac_ext
3692 cat >>conftest.
$ac_ext <<_ACEOF
3693 /* end confdefs.h. */
3695 # include <limits.h>
3697 # include <assert.h>
3701 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3702 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3704 grep -v '^ *+' conftest.er1
>conftest.err
3706 cat conftest.err
>&5
3707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3708 (exit $ac_status); } >/dev
/null
; then
3709 if test -s conftest.err
; then
3710 ac_cpp_err
=$ac_c_preproc_warn_flag
3711 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3718 if test -z "$ac_cpp_err"; then
3721 echo "$as_me: failed program was:" >&5
3722 sed 's/^/| /' conftest.
$ac_ext >&5
3724 # Broken: fails on valid input.
3727 rm -f conftest.err conftest.
$ac_ext
3729 # OK, works on sane cases. Now check whether non-existent headers
3730 # can be detected and how.
3731 cat >conftest.
$ac_ext <<_ACEOF
3734 cat confdefs.h
>>conftest.
$ac_ext
3735 cat >>conftest.
$ac_ext <<_ACEOF
3736 /* end confdefs.h. */
3737 #include <ac_nonexistent.h>
3739 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3740 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3742 grep -v '^ *+' conftest.er1
>conftest.err
3744 cat conftest.err
>&5
3745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3746 (exit $ac_status); } >/dev
/null
; then
3747 if test -s conftest.err
; then
3748 ac_cpp_err
=$ac_c_preproc_warn_flag
3749 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3756 if test -z "$ac_cpp_err"; then
3757 # Broken: success on invalid input.
3760 echo "$as_me: failed program was:" >&5
3761 sed 's/^/| /' conftest.
$ac_ext >&5
3763 # Passes both tests.
3767 rm -f conftest.err conftest.
$ac_ext
3770 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3771 rm -f conftest.err conftest.
$ac_ext
3772 if $ac_preproc_ok; then
3784 echo "$as_me:$LINENO: result: $CPP" >&5
3785 echo "${ECHO_T}$CPP" >&6
3787 for ac_c_preproc_warn_flag
in '' yes
3789 # Use a header file that comes with gcc, so configuring glibc
3790 # with a fresh cross-compiler works.
3791 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3792 # <limits.h> exists even on freestanding compilers.
3793 # On the NeXT, cc -E runs the code through the compiler's parser,
3794 # not just through cpp. "Syntax error" is here to catch this case.
3795 cat >conftest.
$ac_ext <<_ACEOF
3798 cat confdefs.h
>>conftest.
$ac_ext
3799 cat >>conftest.
$ac_ext <<_ACEOF
3800 /* end confdefs.h. */
3802 # include <limits.h>
3804 # include <assert.h>
3808 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3809 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3811 grep -v '^ *+' conftest.er1
>conftest.err
3813 cat conftest.err
>&5
3814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3815 (exit $ac_status); } >/dev
/null
; then
3816 if test -s conftest.err
; then
3817 ac_cpp_err
=$ac_c_preproc_warn_flag
3818 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3825 if test -z "$ac_cpp_err"; then
3828 echo "$as_me: failed program was:" >&5
3829 sed 's/^/| /' conftest.
$ac_ext >&5
3831 # Broken: fails on valid input.
3834 rm -f conftest.err conftest.
$ac_ext
3836 # OK, works on sane cases. Now check whether non-existent headers
3837 # can be detected and how.
3838 cat >conftest.
$ac_ext <<_ACEOF
3841 cat confdefs.h
>>conftest.
$ac_ext
3842 cat >>conftest.
$ac_ext <<_ACEOF
3843 /* end confdefs.h. */
3844 #include <ac_nonexistent.h>
3846 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3847 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3849 grep -v '^ *+' conftest.er1
>conftest.err
3851 cat conftest.err
>&5
3852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3853 (exit $ac_status); } >/dev
/null
; then
3854 if test -s conftest.err
; then
3855 ac_cpp_err
=$ac_c_preproc_warn_flag
3856 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3863 if test -z "$ac_cpp_err"; then
3864 # Broken: success on invalid input.
3867 echo "$as_me: failed program was:" >&5
3868 sed 's/^/| /' conftest.
$ac_ext >&5
3870 # Passes both tests.
3874 rm -f conftest.err conftest.
$ac_ext
3877 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3878 rm -f conftest.err conftest.
$ac_ext
3879 if $ac_preproc_ok; then
3882 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3883 See \`config.log' for more details." >&5
3884 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3885 See \`config.log' for more details." >&2;}
3886 { (exit 1); exit 1; }; }
3890 ac_cpp
='$CPP $CPPFLAGS'
3891 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3892 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3893 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3895 # Find a good install program. We prefer a C program (faster),
3896 # so one script is as good as another. But avoid the broken or
3897 # incompatible versions:
3898 # SysV /etc/install, /usr/sbin/install
3899 # SunOS /usr/etc/install
3900 # IRIX /sbin/install
3902 # AmigaOS /C/install, which installs bootblocks on floppy discs
3903 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3904 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3905 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3906 # OS/2's system install, which has a completely different semantic
3907 # ./install, which can be erroneously created by make from ./install.sh.
3908 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3909 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3910 if test -z "$INSTALL"; then
3911 if test "${ac_cv_path_install+set}" = set; then
3912 echo $ECHO_N "(cached) $ECHO_C" >&6
3914 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3918 test -z "$as_dir" && as_dir
=.
3919 # Account for people who put trailing slashes in PATH elements.
3921 .
/ | .
// |
/cC
/* | \
3922 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
3923 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
3926 # OSF1 and SCO ODT 3.0 have their own names for install.
3927 # Don't use installbsd from OSF since it installs stuff as root
3929 for ac_prog
in ginstall scoinst
install; do
3930 for ac_exec_ext
in '' $ac_executable_extensions; do
3931 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3932 if test $ac_prog = install &&
3933 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3934 # AIX install. It has an incompatible calling convention.
3936 elif test $ac_prog = install &&
3937 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3938 # program-specific install script used by HP pwplus--don't use.
3941 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
3953 if test "${ac_cv_path_install+set}" = set; then
3954 INSTALL
=$ac_cv_path_install
3956 # As a last resort, use the slow shell script. We don't cache a
3957 # path for INSTALL within a source directory, because that will
3958 # break other packages using the cache if that directory is
3959 # removed, or if the path is relative.
3960 INSTALL
=$ac_install_sh
3963 echo "$as_me:$LINENO: result: $INSTALL" >&5
3964 echo "${ECHO_T}$INSTALL" >&6
3966 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3967 # It thinks the first close brace ends the variable substitution.
3968 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
3970 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
3972 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
3974 if test "x$RANLIB" = x
; then
3975 if test -n "$ac_tool_prefix"; then
3976 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3977 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
3978 echo "$as_me:$LINENO: checking for $ac_word" >&5
3979 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3980 if test "${ac_cv_prog_RANLIB+set}" = set; then
3981 echo $ECHO_N "(cached) $ECHO_C" >&6
3983 if test -n "$RANLIB"; then
3984 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
3986 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3990 test -z "$as_dir" && as_dir
=.
3991 for ac_exec_ext
in '' $ac_executable_extensions; do
3992 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3993 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
3994 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4002 RANLIB
=$ac_cv_prog_RANLIB
4003 if test -n "$RANLIB"; then
4004 echo "$as_me:$LINENO: result: $RANLIB" >&5
4005 echo "${ECHO_T}$RANLIB" >&6
4007 echo "$as_me:$LINENO: result: no" >&5
4008 echo "${ECHO_T}no" >&6
4012 if test -z "$ac_cv_prog_RANLIB"; then
4013 ac_ct_RANLIB
=$RANLIB
4014 # Extract the first word of "ranlib", so it can be a program name with args.
4015 set dummy ranlib
; ac_word
=$2
4016 echo "$as_me:$LINENO: checking for $ac_word" >&5
4017 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4018 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4019 echo $ECHO_N "(cached) $ECHO_C" >&6
4021 if test -n "$ac_ct_RANLIB"; then
4022 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
4024 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4028 test -z "$as_dir" && as_dir
=.
4029 for ac_exec_ext
in '' $ac_executable_extensions; do
4030 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4031 ac_cv_prog_ac_ct_RANLIB
="ranlib"
4032 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4038 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
4041 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
4042 if test -n "$ac_ct_RANLIB"; then
4043 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4044 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4046 echo "$as_me:$LINENO: result: no" >&5
4047 echo "${ECHO_T}no" >&6
4050 RANLIB
=$ac_ct_RANLIB
4052 RANLIB
="$ac_cv_prog_RANLIB"
4056 # Extract the first word of "install-info", so it can be a program name with args.
4057 set dummy install-info
; ac_word
=$2
4058 echo "$as_me:$LINENO: checking for $ac_word" >&5
4059 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4060 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4061 echo $ECHO_N "(cached) $ECHO_C" >&6
4063 case $INSTALL_INFO in
4065 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
4068 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4072 test -z "$as_dir" && as_dir
=.
4073 for ac_exec_ext
in '' $ac_executable_extensions; do
4074 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4075 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
4076 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4085 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
4087 if test -n "$INSTALL_INFO"; then
4088 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4089 echo "${ECHO_T}$INSTALL_INFO" >&6
4091 echo "$as_me:$LINENO: result: no" >&5
4092 echo "${ECHO_T}no" >&6
4095 # Extract the first word of "install-info", so it can be a program name with args.
4096 set dummy install-info
; ac_word
=$2
4097 echo "$as_me:$LINENO: checking for $ac_word" >&5
4098 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4099 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4100 echo $ECHO_N "(cached) $ECHO_C" >&6
4102 case $INSTALL_INFO in
4104 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
4107 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4108 for as_dir
in /usr
/sbin
4111 test -z "$as_dir" && as_dir
=.
4112 for ac_exec_ext
in '' $ac_executable_extensions; do
4113 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4114 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
4115 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4124 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
4126 if test -n "$INSTALL_INFO"; then
4127 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4128 echo "${ECHO_T}$INSTALL_INFO" >&6
4130 echo "$as_me:$LINENO: result: no" >&5
4131 echo "${ECHO_T}no" >&6
4134 # Extract the first word of "install-info", so it can be a program name with args.
4135 set dummy install-info
; ac_word
=$2
4136 echo "$as_me:$LINENO: checking for $ac_word" >&5
4137 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4138 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4139 echo $ECHO_N "(cached) $ECHO_C" >&6
4141 case $INSTALL_INFO in
4143 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
4146 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4150 test -z "$as_dir" && as_dir
=.
4151 for ac_exec_ext
in '' $ac_executable_extensions; do
4152 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4153 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
4154 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4160 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO
=":"
4164 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
4166 if test -n "$INSTALL_INFO"; then
4167 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4168 echo "${ECHO_T}$INSTALL_INFO" >&6
4170 echo "$as_me:$LINENO: result: no" >&5
4171 echo "${ECHO_T}no" >&6
4176 if test x
$GCC = xyes
&& test "x$GCC_LINK_TEST_OPTIONS" != x
4178 ac_link
="$ac_link $GCC_LINK_TEST_OPTIONS"
4181 if test x
$GCC = x
&& test "x$NON_GCC_LINK_TEST_OPTIONS" != x
4183 ac_link
="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
4187 late_LDFLAGS
=$LDFLAGS
4188 if test "$GCC" = yes; then
4189 LDFLAGS
="$LDFLAGS -Wl,-znocombreloc"
4191 LDFLAGS
="$LDFLAGS -znocombreloc"
4194 echo "$as_me:$LINENO: checking For -znocombreloc" >&5
4195 echo $ECHO_N "checking For -znocombreloc... $ECHO_C" >&6
4197 cat >conftest.
$ac_ext <<_ACEOF
4200 rm -f conftest.
$ac_objext conftest
$ac_exeext
4201 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4202 (eval $ac_link) 2>conftest.er1
4204 grep -v '^ *+' conftest.er1
>conftest.err
4206 cat conftest.err
>&5
4207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4208 (exit $ac_status); } &&
4209 { ac_try
='test -z "$ac_c_werror_flag"
4210 || test ! -s conftest.err'
4211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4215 (exit $ac_status); }; } &&
4216 { ac_try
='test -s conftest$ac_exeext'
4217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4221 (exit $ac_status); }; }; then
4222 echo "$as_me:$LINENO: result: yes" >&5
4223 echo "${ECHO_T}yes" >&6
4225 echo "$as_me: failed program was:" >&5
4226 sed 's/^/| /' conftest.
$ac_ext >&5
4228 LDFLAGS
=$late_LDFLAGS
4229 echo "$as_me:$LINENO: result: no" >&5
4230 echo "${ECHO_T}no" >&6
4232 rm -f conftest.err conftest.
$ac_objext \
4233 conftest
$ac_exeext conftest.
$ac_ext
4236 echo "$as_me:$LINENO: checking for egrep" >&5
4237 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4238 if test "${ac_cv_prog_egrep+set}" = set; then
4239 echo $ECHO_N "(cached) $ECHO_C" >&6
4241 if echo a |
(grep -E '(a|b)') >/dev
/null
2>&1
4242 then ac_cv_prog_egrep
='grep -E'
4243 else ac_cv_prog_egrep
='egrep'
4246 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4247 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4248 EGREP
=$ac_cv_prog_egrep
4252 echo "$as_me:$LINENO: checking for AIX" >&5
4253 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
4254 cat >conftest.
$ac_ext <<_ACEOF
4257 cat confdefs.h
>>conftest.
$ac_ext
4258 cat >>conftest.
$ac_ext <<_ACEOF
4259 /* end confdefs.h. */
4265 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4266 $EGREP "yes" >/dev
/null
2>&1; then
4267 echo "$as_me:$LINENO: result: yes" >&5
4268 echo "${ECHO_T}yes" >&6
4269 cat >>confdefs.h
<<\_ACEOF
4270 #define _ALL_SOURCE 1
4274 echo "$as_me:$LINENO: result: no" >&5
4275 echo "${ECHO_T}no" >&6
4282 #### Extract some information from the operating system and machine files.
4284 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
4285 - which libraries the lib-src programs will want, and
4286 - whether the GNU malloc routines are usable..." >&5
4287 echo "$as_me: checking the machine- and system-dependent files to find out
4288 - which libraries the lib-src programs will want, and
4289 - whether the GNU malloc routines are usable..." >&6;}
4291 ### First figure out CFLAGS (which we use for running the compiler here)
4292 ### and REAL_CFLAGS (which we use for real compilation).
4293 ### The two are the same except on a few systems, where they are made
4294 ### different to work around various lossages. For example,
4295 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
4296 ### as implying static linking.
4298 ### If the CFLAGS env var is specified, we use that value
4299 ### instead of the default.
4301 ### It's not important that this name contain the PID; you can't run
4302 ### two configures in the same directory and have anything work
4304 tempcname
="conftest.c"
4307 #include "'${srcdir}'/src/'${opsysfile}'"
4308 #include "'${srcdir}'/src/'${machfile}'"
4309 #ifndef LIBS_MACHINE
4310 #define LIBS_MACHINE
4315 #ifndef C_SWITCH_SYSTEM
4316 #define C_SWITCH_SYSTEM
4318 #ifndef C_SWITCH_MACHINE
4319 #define C_SWITCH_MACHINE
4321 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
4322 configure___ c_switch_system=C_SWITCH_SYSTEM
4323 configure___ c_switch_machine=C_SWITCH_MACHINE
4326 #define LIB_X11_LIB -lX11
4329 #ifndef LIBX11_MACHINE
4330 #define LIBX11_MACHINE
4333 #ifndef LIBX11_SYSTEM
4334 #define LIBX11_SYSTEM
4336 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
4339 configure___ unexec=UNEXEC
4341 configure___ unexec=unexec.o
4344 #ifdef SYSTEM_MALLOC
4345 configure___ system_malloc=yes
4347 configure___ system_malloc=no
4350 #ifdef USE_MMAP_FOR_BUFFERS
4351 configure___ use_mmap_for_buffers=yes
4353 configure___ use_mmap_for_buffers=no
4356 #ifndef C_DEBUG_SWITCH
4357 #define C_DEBUG_SWITCH -g
4360 #ifndef C_OPTIMIZE_SWITCH
4362 #define C_OPTIMIZE_SWITCH -O2
4364 #define C_OPTIMIZE_SWITCH -O
4368 #ifndef LD_SWITCH_MACHINE
4369 #define LD_SWITCH_MACHINE
4372 #ifndef LD_SWITCH_SYSTEM
4373 #define LD_SWITCH_SYSTEM
4376 #ifndef LD_SWITCH_X_SITE_AUX
4377 #define LD_SWITCH_X_SITE_AUX
4380 configure___ ld_switch_system=LD_SWITCH_SYSTEM
4381 configure___ ld_switch_machine=LD_SWITCH_MACHINE
4383 #ifdef THIS_IS_CONFIGURE
4385 /* Get the CFLAGS for tests in configure. */
4387 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
4389 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4392 #else /* not THIS_IS_CONFIGURE */
4394 /* Get the CFLAGS for real compilation. */
4396 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
4398 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4401 #endif /* not THIS_IS_CONFIGURE */
4404 # The value of CPP is a quoted variable reference, so we need to do this
4405 # to get its actual value...
4406 CPP
=`eval "echo $CPP"`
4407 eval `${CPP} -Isrc ${tempcname} \
4408 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4409 if test "x$SPECIFIED_CFLAGS" = x
; then
4410 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
4411 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4413 REAL_CFLAGS
="$CFLAGS"
4417 ac_link
="$ac_link $ld_switch_machine $ld_switch_system"
4419 ### Make sure subsequent tests use flags consistent with the build flags.
4421 if test x
"${OVERRIDE_CPPFLAGS}" != x
; then
4422 CPPFLAGS
="${OVERRIDE_CPPFLAGS}"
4424 CPPFLAGS
="$c_switch_system $c_switch_machine $CPPFLAGS"
4430 cat >>confdefs.h
<<\_ACEOF
4431 #define _GNU_SOURCE 1
4436 # Check whether --enable-largefile or --disable-largefile was given.
4437 if test "${enable_largefile+set}" = set; then
4438 enableval
="$enable_largefile"
4441 if test "$enable_largefile" != no
; then
4443 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4444 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
4445 if test "${ac_cv_sys_largefile_CC+set}" = set; then
4446 echo $ECHO_N "(cached) $ECHO_C" >&6
4448 ac_cv_sys_largefile_CC
=no
4449 if test "$GCC" != yes; then
4452 # IRIX 6.2 and later do not support large files by default,
4453 # so use the C compiler's -n32 option if that helps.
4454 cat >conftest.
$ac_ext <<_ACEOF
4457 cat confdefs.h
>>conftest.
$ac_ext
4458 cat >>conftest.
$ac_ext <<_ACEOF
4459 /* end confdefs.h. */
4460 #include <sys/types.h>
4461 /* Check that off_t can represent 2**63 - 1 correctly.
4462 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4463 since some C++ compilers masquerading as C compilers
4464 incorrectly reject 9223372036854775807. */
4465 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4466 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4467 && LARGE_OFF_T % 2147483647 == 1)
4477 rm -f conftest.
$ac_objext
4478 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4479 (eval $ac_compile) 2>conftest.er1
4481 grep -v '^ *+' conftest.er1
>conftest.err
4483 cat conftest.err
>&5
4484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4485 (exit $ac_status); } &&
4486 { ac_try
='test -z "$ac_c_werror_flag"
4487 || test ! -s conftest.err'
4488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4492 (exit $ac_status); }; } &&
4493 { ac_try
='test -s conftest.$ac_objext'
4494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4498 (exit $ac_status); }; }; then
4501 echo "$as_me: failed program was:" >&5
4502 sed 's/^/| /' conftest.
$ac_ext >&5
4505 rm -f conftest.err conftest.
$ac_objext
4507 rm -f conftest.
$ac_objext
4508 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4509 (eval $ac_compile) 2>conftest.er1
4511 grep -v '^ *+' conftest.er1
>conftest.err
4513 cat conftest.err
>&5
4514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4515 (exit $ac_status); } &&
4516 { ac_try
='test -z "$ac_c_werror_flag"
4517 || test ! -s conftest.err'
4518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4522 (exit $ac_status); }; } &&
4523 { ac_try
='test -s conftest.$ac_objext'
4524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4528 (exit $ac_status); }; }; then
4529 ac_cv_sys_largefile_CC
=' -n32'; break
4531 echo "$as_me: failed program was:" >&5
4532 sed 's/^/| /' conftest.
$ac_ext >&5
4535 rm -f conftest.err conftest.
$ac_objext
4539 rm -f conftest.
$ac_ext
4542 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4543 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
4544 if test "$ac_cv_sys_largefile_CC" != no
; then
4545 CC
=$CC$ac_cv_sys_largefile_CC
4548 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4549 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
4550 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4551 echo $ECHO_N "(cached) $ECHO_C" >&6
4554 ac_cv_sys_file_offset_bits
=no
4555 cat >conftest.
$ac_ext <<_ACEOF
4558 cat confdefs.h
>>conftest.
$ac_ext
4559 cat >>conftest.
$ac_ext <<_ACEOF
4560 /* end confdefs.h. */
4561 #include <sys/types.h>
4562 /* Check that off_t can represent 2**63 - 1 correctly.
4563 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4564 since some C++ compilers masquerading as C compilers
4565 incorrectly reject 9223372036854775807. */
4566 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4567 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4568 && LARGE_OFF_T % 2147483647 == 1)
4578 rm -f conftest.
$ac_objext
4579 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4580 (eval $ac_compile) 2>conftest.er1
4582 grep -v '^ *+' conftest.er1
>conftest.err
4584 cat conftest.err
>&5
4585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4586 (exit $ac_status); } &&
4587 { ac_try
='test -z "$ac_c_werror_flag"
4588 || test ! -s conftest.err'
4589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4593 (exit $ac_status); }; } &&
4594 { ac_try
='test -s conftest.$ac_objext'
4595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4599 (exit $ac_status); }; }; then
4602 echo "$as_me: failed program was:" >&5
4603 sed 's/^/| /' conftest.
$ac_ext >&5
4606 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4607 cat >conftest.
$ac_ext <<_ACEOF
4610 cat confdefs.h
>>conftest.
$ac_ext
4611 cat >>conftest.
$ac_ext <<_ACEOF
4612 /* end confdefs.h. */
4613 #define _FILE_OFFSET_BITS 64
4614 #include <sys/types.h>
4615 /* Check that off_t can represent 2**63 - 1 correctly.
4616 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4617 since some C++ compilers masquerading as C compilers
4618 incorrectly reject 9223372036854775807. */
4619 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4620 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4621 && LARGE_OFF_T % 2147483647 == 1)
4631 rm -f conftest.
$ac_objext
4632 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4633 (eval $ac_compile) 2>conftest.er1
4635 grep -v '^ *+' conftest.er1
>conftest.err
4637 cat conftest.err
>&5
4638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4639 (exit $ac_status); } &&
4640 { ac_try
='test -z "$ac_c_werror_flag"
4641 || test ! -s conftest.err'
4642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4646 (exit $ac_status); }; } &&
4647 { ac_try
='test -s conftest.$ac_objext'
4648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4652 (exit $ac_status); }; }; then
4653 ac_cv_sys_file_offset_bits
=64; break
4655 echo "$as_me: failed program was:" >&5
4656 sed 's/^/| /' conftest.
$ac_ext >&5
4659 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4663 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
4664 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
4665 if test "$ac_cv_sys_file_offset_bits" != no
; then
4667 cat >>confdefs.h
<<_ACEOF
4668 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4673 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
4674 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
4675 if test "${ac_cv_sys_large_files+set}" = set; then
4676 echo $ECHO_N "(cached) $ECHO_C" >&6
4679 ac_cv_sys_large_files
=no
4680 cat >conftest.
$ac_ext <<_ACEOF
4683 cat confdefs.h
>>conftest.
$ac_ext
4684 cat >>conftest.
$ac_ext <<_ACEOF
4685 /* end confdefs.h. */
4686 #include <sys/types.h>
4687 /* Check that off_t can represent 2**63 - 1 correctly.
4688 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4689 since some C++ compilers masquerading as C compilers
4690 incorrectly reject 9223372036854775807. */
4691 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4692 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4693 && LARGE_OFF_T % 2147483647 == 1)
4703 rm -f conftest.
$ac_objext
4704 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4705 (eval $ac_compile) 2>conftest.er1
4707 grep -v '^ *+' conftest.er1
>conftest.err
4709 cat conftest.err
>&5
4710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4711 (exit $ac_status); } &&
4712 { ac_try
='test -z "$ac_c_werror_flag"
4713 || test ! -s conftest.err'
4714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4718 (exit $ac_status); }; } &&
4719 { ac_try
='test -s conftest.$ac_objext'
4720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4724 (exit $ac_status); }; }; then
4727 echo "$as_me: failed program was:" >&5
4728 sed 's/^/| /' conftest.
$ac_ext >&5
4731 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4732 cat >conftest.
$ac_ext <<_ACEOF
4735 cat confdefs.h
>>conftest.
$ac_ext
4736 cat >>conftest.
$ac_ext <<_ACEOF
4737 /* end confdefs.h. */
4738 #define _LARGE_FILES 1
4739 #include <sys/types.h>
4740 /* Check that off_t can represent 2**63 - 1 correctly.
4741 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4742 since some C++ compilers masquerading as C compilers
4743 incorrectly reject 9223372036854775807. */
4744 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4745 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4746 && LARGE_OFF_T % 2147483647 == 1)
4756 rm -f conftest.
$ac_objext
4757 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4758 (eval $ac_compile) 2>conftest.er1
4760 grep -v '^ *+' conftest.er1
>conftest.err
4762 cat conftest.err
>&5
4763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4764 (exit $ac_status); } &&
4765 { ac_try
='test -z "$ac_c_werror_flag"
4766 || test ! -s conftest.err'
4767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4771 (exit $ac_status); }; } &&
4772 { ac_try
='test -s conftest.$ac_objext'
4773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4777 (exit $ac_status); }; }; then
4778 ac_cv_sys_large_files
=1; break
4780 echo "$as_me: failed program was:" >&5
4781 sed 's/^/| /' conftest.
$ac_ext >&5
4784 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4788 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
4789 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
4790 if test "$ac_cv_sys_large_files" != no
; then
4792 cat >>confdefs.h
<<_ACEOF
4793 #define _LARGE_FILES $ac_cv_sys_large_files
4801 if test "${with_sound}" != "no"; then
4802 # Sound support for GNU/Linux and the free BSDs.
4803 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4804 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4805 if test "${ac_cv_header_stdc+set}" = set; then
4806 echo $ECHO_N "(cached) $ECHO_C" >&6
4808 cat >conftest.
$ac_ext <<_ACEOF
4811 cat confdefs.h
>>conftest.
$ac_ext
4812 cat >>conftest.
$ac_ext <<_ACEOF
4813 /* end confdefs.h. */
4827 rm -f conftest.
$ac_objext
4828 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4829 (eval $ac_compile) 2>conftest.er1
4831 grep -v '^ *+' conftest.er1
>conftest.err
4833 cat conftest.err
>&5
4834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4835 (exit $ac_status); } &&
4836 { ac_try
='test -z "$ac_c_werror_flag"
4837 || test ! -s conftest.err'
4838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4842 (exit $ac_status); }; } &&
4843 { ac_try
='test -s conftest.$ac_objext'
4844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4848 (exit $ac_status); }; }; then
4849 ac_cv_header_stdc
=yes
4851 echo "$as_me: failed program was:" >&5
4852 sed 's/^/| /' conftest.
$ac_ext >&5
4854 ac_cv_header_stdc
=no
4856 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4858 if test $ac_cv_header_stdc = yes; then
4859 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4860 cat >conftest.
$ac_ext <<_ACEOF
4863 cat confdefs.h
>>conftest.
$ac_ext
4864 cat >>conftest.
$ac_ext <<_ACEOF
4865 /* end confdefs.h. */
4869 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4870 $EGREP "memchr" >/dev
/null
2>&1; then
4873 ac_cv_header_stdc
=no
4879 if test $ac_cv_header_stdc = yes; then
4880 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4881 cat >conftest.
$ac_ext <<_ACEOF
4884 cat confdefs.h
>>conftest.
$ac_ext
4885 cat >>conftest.
$ac_ext <<_ACEOF
4886 /* end confdefs.h. */
4890 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4891 $EGREP "free" >/dev
/null
2>&1; then
4894 ac_cv_header_stdc
=no
4900 if test $ac_cv_header_stdc = yes; then
4901 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4902 if test "$cross_compiling" = yes; then
4905 cat >conftest.
$ac_ext <<_ACEOF
4908 cat confdefs.h
>>conftest.
$ac_ext
4909 cat >>conftest.
$ac_ext <<_ACEOF
4910 /* end confdefs.h. */
4912 #if ((' ' & 0x0FF) == 0x020)
4913 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4914 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4916 # define ISLOWER(c) \
4917 (('a' <= (c) && (c) <= 'i') \
4918 || ('j' <= (c) && (c) <= 'r') \
4919 || ('s' <= (c) && (c) <= 'z'))
4920 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4923 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4928 for (i = 0; i < 256; i++)
4929 if (XOR (islower (i), ISLOWER (i))
4930 || toupper (i) != TOUPPER (i))
4935 rm -f conftest
$ac_exeext
4936 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4937 (eval $ac_link) 2>&5
4939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4940 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4945 (exit $ac_status); }; }; then
4948 echo "$as_me: program exited with status $ac_status" >&5
4949 echo "$as_me: failed program was:" >&5
4950 sed 's/^/| /' conftest.
$ac_ext >&5
4953 ac_cv_header_stdc
=no
4955 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4959 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4960 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4961 if test $ac_cv_header_stdc = yes; then
4963 cat >>confdefs.h
<<\_ACEOF
4964 #define STDC_HEADERS 1
4969 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4979 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4980 inttypes.h stdint.h unistd.h
4982 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4983 echo "$as_me:$LINENO: checking for $ac_header" >&5
4984 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4985 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4986 echo $ECHO_N "(cached) $ECHO_C" >&6
4988 cat >conftest.
$ac_ext <<_ACEOF
4991 cat confdefs.h
>>conftest.
$ac_ext
4992 cat >>conftest.
$ac_ext <<_ACEOF
4993 /* end confdefs.h. */
4994 $ac_includes_default
4996 #include <$ac_header>
4998 rm -f conftest.
$ac_objext
4999 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5000 (eval $ac_compile) 2>conftest.er1
5002 grep -v '^ *+' conftest.er1
>conftest.err
5004 cat conftest.err
>&5
5005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5006 (exit $ac_status); } &&
5007 { ac_try
='test -z "$ac_c_werror_flag"
5008 || test ! -s conftest.err'
5009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5013 (exit $ac_status); }; } &&
5014 { ac_try
='test -s conftest.$ac_objext'
5015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5019 (exit $ac_status); }; }; then
5020 eval "$as_ac_Header=yes"
5022 echo "$as_me: failed program was:" >&5
5023 sed 's/^/| /' conftest.
$ac_ext >&5
5025 eval "$as_ac_Header=no"
5027 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5029 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5030 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5031 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5032 cat >>confdefs.h
<<_ACEOF
5033 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5044 for ac_header
in machine
/soundcard.h sys
/soundcard.h soundcard.h
5046 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5047 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5048 echo "$as_me:$LINENO: checking for $ac_header" >&5
5049 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5050 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5051 echo $ECHO_N "(cached) $ECHO_C" >&6
5053 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5054 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5056 # Is the header compilable?
5057 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5058 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5059 cat >conftest.
$ac_ext <<_ACEOF
5062 cat confdefs.h
>>conftest.
$ac_ext
5063 cat >>conftest.
$ac_ext <<_ACEOF
5064 /* end confdefs.h. */
5065 $ac_includes_default
5066 #include <$ac_header>
5068 rm -f conftest.
$ac_objext
5069 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5070 (eval $ac_compile) 2>conftest.er1
5072 grep -v '^ *+' conftest.er1
>conftest.err
5074 cat conftest.err
>&5
5075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5076 (exit $ac_status); } &&
5077 { ac_try
='test -z "$ac_c_werror_flag"
5078 || test ! -s conftest.err'
5079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5083 (exit $ac_status); }; } &&
5084 { ac_try
='test -s conftest.$ac_objext'
5085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5089 (exit $ac_status); }; }; then
5090 ac_header_compiler
=yes
5092 echo "$as_me: failed program was:" >&5
5093 sed 's/^/| /' conftest.
$ac_ext >&5
5095 ac_header_compiler
=no
5097 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5098 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5099 echo "${ECHO_T}$ac_header_compiler" >&6
5101 # Is the header present?
5102 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5103 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5104 cat >conftest.
$ac_ext <<_ACEOF
5107 cat confdefs.h
>>conftest.
$ac_ext
5108 cat >>conftest.
$ac_ext <<_ACEOF
5109 /* end confdefs.h. */
5110 #include <$ac_header>
5112 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5113 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5115 grep -v '^ *+' conftest.er1
>conftest.err
5117 cat conftest.err
>&5
5118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5119 (exit $ac_status); } >/dev
/null
; then
5120 if test -s conftest.err
; then
5121 ac_cpp_err
=$ac_c_preproc_warn_flag
5122 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
5129 if test -z "$ac_cpp_err"; then
5130 ac_header_preproc
=yes
5132 echo "$as_me: failed program was:" >&5
5133 sed 's/^/| /' conftest.
$ac_ext >&5
5135 ac_header_preproc
=no
5137 rm -f conftest.err conftest.
$ac_ext
5138 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5139 echo "${ECHO_T}$ac_header_preproc" >&6
5141 # So? What about this header?
5142 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5144 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5145 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5146 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5147 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5148 ac_header_preproc
=yes
5151 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5152 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5153 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5154 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5155 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5156 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5157 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5158 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5159 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5160 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5161 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5162 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5165 ## ------------------------------------------ ##
5166 ## Report this to the AC_PACKAGE_NAME lists. ##
5167 ## ------------------------------------------ ##
5170 sed "s/^/$as_me: WARNING: /" >&2
5173 echo "$as_me:$LINENO: checking for $ac_header" >&5
5174 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5175 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5176 echo $ECHO_N "(cached) $ECHO_C" >&6
5178 eval "$as_ac_Header=\$ac_header_preproc"
5180 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5181 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5184 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5185 cat >>confdefs.h
<<_ACEOF
5186 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5193 # Emulation library used on NetBSD.
5194 echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
5195 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
5196 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
5197 echo $ECHO_N "(cached) $ECHO_C" >&6
5199 ac_check_lib_save_LIBS
=$LIBS
5200 LIBS
="-lossaudio $LIBS"
5201 cat >conftest.
$ac_ext <<_ACEOF
5204 cat confdefs.h
>>conftest.
$ac_ext
5205 cat >>conftest.
$ac_ext <<_ACEOF
5206 /* end confdefs.h. */
5208 /* Override any gcc2 internal prototype to avoid an error. */
5212 /* We use char because int might match the return type of a gcc2
5213 builtin and then its argument prototype would still apply. */
5223 rm -f conftest.
$ac_objext conftest
$ac_exeext
5224 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5225 (eval $ac_link) 2>conftest.er1
5227 grep -v '^ *+' conftest.er1
>conftest.err
5229 cat conftest.err
>&5
5230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5231 (exit $ac_status); } &&
5232 { ac_try
='test -z "$ac_c_werror_flag"
5233 || test ! -s conftest.err'
5234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5238 (exit $ac_status); }; } &&
5239 { ac_try
='test -s conftest$ac_exeext'
5240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5244 (exit $ac_status); }; }; then
5245 ac_cv_lib_ossaudio__oss_ioctl
=yes
5247 echo "$as_me: failed program was:" >&5
5248 sed 's/^/| /' conftest.
$ac_ext >&5
5250 ac_cv_lib_ossaudio__oss_ioctl
=no
5252 rm -f conftest.err conftest.
$ac_objext \
5253 conftest
$ac_exeext conftest.
$ac_ext
5254 LIBS
=$ac_check_lib_save_LIBS
5256 echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
5257 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
5258 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
5290 for ac_header
in sys
/select.h sys
/timeb.h sys
/time.h unistd.h utime.h \
5291 linux
/version.h sys
/systeminfo.h termios.h limits.h string.h stdlib.h \
5292 termcap.h stdio_ext.h fcntl.h
strings.h coff.h pty.h sys
/mman.h \
5293 sys
/param.h sys
/vlimit.h sys
/resource.h locale.h sys
/_mbstate_t.h
5295 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5296 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5297 echo "$as_me:$LINENO: checking for $ac_header" >&5
5298 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5299 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5300 echo $ECHO_N "(cached) $ECHO_C" >&6
5302 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5303 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5305 # Is the header compilable?
5306 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5307 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5308 cat >conftest.
$ac_ext <<_ACEOF
5311 cat confdefs.h
>>conftest.
$ac_ext
5312 cat >>conftest.
$ac_ext <<_ACEOF
5313 /* end confdefs.h. */
5314 $ac_includes_default
5315 #include <$ac_header>
5317 rm -f conftest.
$ac_objext
5318 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5319 (eval $ac_compile) 2>conftest.er1
5321 grep -v '^ *+' conftest.er1
>conftest.err
5323 cat conftest.err
>&5
5324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5325 (exit $ac_status); } &&
5326 { ac_try
='test -z "$ac_c_werror_flag"
5327 || test ! -s conftest.err'
5328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5332 (exit $ac_status); }; } &&
5333 { ac_try
='test -s conftest.$ac_objext'
5334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5338 (exit $ac_status); }; }; then
5339 ac_header_compiler
=yes
5341 echo "$as_me: failed program was:" >&5
5342 sed 's/^/| /' conftest.
$ac_ext >&5
5344 ac_header_compiler
=no
5346 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5347 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5348 echo "${ECHO_T}$ac_header_compiler" >&6
5350 # Is the header present?
5351 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5352 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5353 cat >conftest.
$ac_ext <<_ACEOF
5356 cat confdefs.h
>>conftest.
$ac_ext
5357 cat >>conftest.
$ac_ext <<_ACEOF
5358 /* end confdefs.h. */
5359 #include <$ac_header>
5361 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5362 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5364 grep -v '^ *+' conftest.er1
>conftest.err
5366 cat conftest.err
>&5
5367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5368 (exit $ac_status); } >/dev
/null
; then
5369 if test -s conftest.err
; then
5370 ac_cpp_err
=$ac_c_preproc_warn_flag
5371 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
5378 if test -z "$ac_cpp_err"; then
5379 ac_header_preproc
=yes
5381 echo "$as_me: failed program was:" >&5
5382 sed 's/^/| /' conftest.
$ac_ext >&5
5384 ac_header_preproc
=no
5386 rm -f conftest.err conftest.
$ac_ext
5387 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5388 echo "${ECHO_T}$ac_header_preproc" >&6
5390 # So? What about this header?
5391 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5393 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5394 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5395 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5396 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5397 ac_header_preproc
=yes
5400 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5401 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5402 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5403 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5404 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5405 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5406 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5407 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5408 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5409 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5410 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5411 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5414 ## ------------------------------------------ ##
5415 ## Report this to the AC_PACKAGE_NAME lists. ##
5416 ## ------------------------------------------ ##
5419 sed "s/^/$as_me: WARNING: /" >&2
5422 echo "$as_me:$LINENO: checking for $ac_header" >&5
5423 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5424 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5425 echo $ECHO_N "(cached) $ECHO_C" >&6
5427 eval "$as_ac_Header=\$ac_header_preproc"
5429 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5430 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5433 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5434 cat >>confdefs.h
<<_ACEOF
5435 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5443 for ac_header
in term.h
5445 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5446 echo "$as_me:$LINENO: checking for $ac_header" >&5
5447 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5448 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5449 echo $ECHO_N "(cached) $ECHO_C" >&6
5451 cat >conftest.
$ac_ext <<_ACEOF
5454 cat confdefs.h
>>conftest.
$ac_ext
5455 cat >>conftest.
$ac_ext <<_ACEOF
5456 /* end confdefs.h. */
5457 #include <$ac_header>
5459 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5460 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5462 grep -v '^ *+' conftest.er1
>conftest.err
5464 cat conftest.err
>&5
5465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5466 (exit $ac_status); } >/dev
/null
; then
5467 if test -s conftest.err
; then
5468 ac_cpp_err
=$ac_c_preproc_warn_flag
5469 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
5476 if test -z "$ac_cpp_err"; then
5477 eval "$as_ac_Header=yes"
5479 echo "$as_me: failed program was:" >&5
5480 sed 's/^/| /' conftest.
$ac_ext >&5
5482 eval "$as_ac_Header=no"
5484 rm -f conftest.err conftest.
$ac_ext
5486 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5487 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5488 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5489 cat >>confdefs.h
<<_ACEOF
5490 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5497 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5498 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5499 if test "${ac_cv_header_stdc+set}" = set; then
5500 echo $ECHO_N "(cached) $ECHO_C" >&6
5502 cat >conftest.
$ac_ext <<_ACEOF
5505 cat confdefs.h
>>conftest.
$ac_ext
5506 cat >>conftest.
$ac_ext <<_ACEOF
5507 /* end confdefs.h. */
5521 rm -f conftest.
$ac_objext
5522 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5523 (eval $ac_compile) 2>conftest.er1
5525 grep -v '^ *+' conftest.er1
>conftest.err
5527 cat conftest.err
>&5
5528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5529 (exit $ac_status); } &&
5530 { ac_try
='test -z "$ac_c_werror_flag"
5531 || test ! -s conftest.err'
5532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5536 (exit $ac_status); }; } &&
5537 { ac_try
='test -s conftest.$ac_objext'
5538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5542 (exit $ac_status); }; }; then
5543 ac_cv_header_stdc
=yes
5545 echo "$as_me: failed program was:" >&5
5546 sed 's/^/| /' conftest.
$ac_ext >&5
5548 ac_cv_header_stdc
=no
5550 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5552 if test $ac_cv_header_stdc = yes; then
5553 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5554 cat >conftest.
$ac_ext <<_ACEOF
5557 cat confdefs.h
>>conftest.
$ac_ext
5558 cat >>conftest.
$ac_ext <<_ACEOF
5559 /* end confdefs.h. */
5563 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5564 $EGREP "memchr" >/dev
/null
2>&1; then
5567 ac_cv_header_stdc
=no
5573 if test $ac_cv_header_stdc = yes; then
5574 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5575 cat >conftest.
$ac_ext <<_ACEOF
5578 cat confdefs.h
>>conftest.
$ac_ext
5579 cat >>conftest.
$ac_ext <<_ACEOF
5580 /* end confdefs.h. */
5584 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5585 $EGREP "free" >/dev
/null
2>&1; then
5588 ac_cv_header_stdc
=no
5594 if test $ac_cv_header_stdc = yes; then
5595 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5596 if test "$cross_compiling" = yes; then
5599 cat >conftest.
$ac_ext <<_ACEOF
5602 cat confdefs.h
>>conftest.
$ac_ext
5603 cat >>conftest.
$ac_ext <<_ACEOF
5604 /* end confdefs.h. */
5606 #if ((' ' & 0x0FF) == 0x020)
5607 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5608 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5610 # define ISLOWER(c) \
5611 (('a' <= (c) && (c) <= 'i') \
5612 || ('j' <= (c) && (c) <= 'r') \
5613 || ('s' <= (c) && (c) <= 'z'))
5614 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5617 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5622 for (i = 0; i < 256; i++)
5623 if (XOR (islower (i), ISLOWER (i))
5624 || toupper (i) != TOUPPER (i))
5629 rm -f conftest
$ac_exeext
5630 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5631 (eval $ac_link) 2>&5
5633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5634 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5639 (exit $ac_status); }; }; then
5642 echo "$as_me: program exited with status $ac_status" >&5
5643 echo "$as_me: failed program was:" >&5
5644 sed 's/^/| /' conftest.
$ac_ext >&5
5647 ac_cv_header_stdc
=no
5649 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5653 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5654 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5655 if test $ac_cv_header_stdc = yes; then
5657 cat >>confdefs.h
<<\_ACEOF
5658 #define STDC_HEADERS 1
5663 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
5664 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
5665 if test "${ac_cv_header_time+set}" = set; then
5666 echo $ECHO_N "(cached) $ECHO_C" >&6
5668 cat >conftest.
$ac_ext <<_ACEOF
5671 cat confdefs.h
>>conftest.
$ac_ext
5672 cat >>conftest.
$ac_ext <<_ACEOF
5673 /* end confdefs.h. */
5674 #include <sys/types.h>
5675 #include <sys/time.h>
5681 if ((struct tm *) 0)
5687 rm -f conftest.
$ac_objext
5688 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5689 (eval $ac_compile) 2>conftest.er1
5691 grep -v '^ *+' conftest.er1
>conftest.err
5693 cat conftest.err
>&5
5694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5695 (exit $ac_status); } &&
5696 { ac_try
='test -z "$ac_c_werror_flag"
5697 || test ! -s conftest.err'
5698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5702 (exit $ac_status); }; } &&
5703 { ac_try
='test -s conftest.$ac_objext'
5704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5708 (exit $ac_status); }; }; then
5709 ac_cv_header_time
=yes
5711 echo "$as_me: failed program was:" >&5
5712 sed 's/^/| /' conftest.
$ac_ext >&5
5714 ac_cv_header_time
=no
5716 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5718 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
5719 echo "${ECHO_T}$ac_cv_header_time" >&6
5720 if test $ac_cv_header_time = yes; then
5722 cat >>confdefs.h
<<\_ACEOF
5723 #define TIME_WITH_SYS_TIME 1
5728 echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
5729 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6
5730 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
5731 echo $ECHO_N "(cached) $ECHO_C" >&6
5733 cat >conftest.
$ac_ext <<_ACEOF
5736 cat confdefs.h
>>conftest.
$ac_ext
5737 cat >>conftest.
$ac_ext <<_ACEOF
5738 /* end confdefs.h. */
5739 $ac_includes_default
5744 char *p = (char *) sys_siglist;
5751 rm -f conftest.
$ac_objext
5752 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5753 (eval $ac_compile) 2>conftest.er1
5755 grep -v '^ *+' conftest.er1
>conftest.err
5757 cat conftest.err
>&5
5758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5759 (exit $ac_status); } &&
5760 { ac_try
='test -z "$ac_c_werror_flag"
5761 || test ! -s conftest.err'
5762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5766 (exit $ac_status); }; } &&
5767 { ac_try
='test -s conftest.$ac_objext'
5768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5772 (exit $ac_status); }; }; then
5773 ac_cv_have_decl_sys_siglist
=yes
5775 echo "$as_me: failed program was:" >&5
5776 sed 's/^/| /' conftest.
$ac_ext >&5
5778 ac_cv_have_decl_sys_siglist
=no
5780 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5782 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
5783 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6
5784 if test $ac_cv_have_decl_sys_siglist = yes; then
5786 cat >>confdefs.h
<<_ACEOF
5787 #define HAVE_DECL_SYS_SIGLIST 1
5792 cat >>confdefs.h
<<_ACEOF
5793 #define HAVE_DECL_SYS_SIGLIST 0
5800 if test $ac_cv_have_decl_sys_siglist != yes; then
5801 # For Tru64, at least:
5802 echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
5803 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6
5804 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
5805 echo $ECHO_N "(cached) $ECHO_C" >&6
5807 cat >conftest.
$ac_ext <<_ACEOF
5810 cat confdefs.h
>>conftest.
$ac_ext
5811 cat >>conftest.
$ac_ext <<_ACEOF
5812 /* end confdefs.h. */
5813 $ac_includes_default
5817 #ifndef __sys_siglist
5818 char *p = (char *) __sys_siglist;
5825 rm -f conftest.
$ac_objext
5826 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5827 (eval $ac_compile) 2>conftest.er1
5829 grep -v '^ *+' conftest.er1
>conftest.err
5831 cat conftest.err
>&5
5832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5833 (exit $ac_status); } &&
5834 { ac_try
='test -z "$ac_c_werror_flag"
5835 || test ! -s conftest.err'
5836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5840 (exit $ac_status); }; } &&
5841 { ac_try
='test -s conftest.$ac_objext'
5842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5846 (exit $ac_status); }; }; then
5847 ac_cv_have_decl___sys_siglist
=yes
5849 echo "$as_me: failed program was:" >&5
5850 sed 's/^/| /' conftest.
$ac_ext >&5
5852 ac_cv_have_decl___sys_siglist
=no
5854 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5856 echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
5857 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6
5858 if test $ac_cv_have_decl___sys_siglist = yes; then
5860 cat >>confdefs.h
<<_ACEOF
5861 #define HAVE_DECL___SYS_SIGLIST 1
5866 cat >>confdefs.h
<<_ACEOF
5867 #define HAVE_DECL___SYS_SIGLIST 0
5874 if test $ac_cv_have_decl___sys_siglist = yes; then
5876 cat >>confdefs.h
<<\_ACEOF
5877 #define sys_siglist __sys_siglist
5882 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
5883 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
5884 if test "${ac_cv_header_sys_wait_h+set}" = set; then
5885 echo $ECHO_N "(cached) $ECHO_C" >&6
5887 cat >conftest.
$ac_ext <<_ACEOF
5890 cat confdefs.h
>>conftest.
$ac_ext
5891 cat >>conftest.
$ac_ext <<_ACEOF
5892 /* end confdefs.h. */
5893 #include <sys/types.h>
5894 #include <sys/wait.h>
5896 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
5899 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5907 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5912 rm -f conftest.
$ac_objext
5913 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5914 (eval $ac_compile) 2>conftest.er1
5916 grep -v '^ *+' conftest.er1
>conftest.err
5918 cat conftest.err
>&5
5919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5920 (exit $ac_status); } &&
5921 { ac_try
='test -z "$ac_c_werror_flag"
5922 || test ! -s conftest.err'
5923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5927 (exit $ac_status); }; } &&
5928 { ac_try
='test -s conftest.$ac_objext'
5929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5933 (exit $ac_status); }; }; then
5934 ac_cv_header_sys_wait_h
=yes
5936 echo "$as_me: failed program was:" >&5
5937 sed 's/^/| /' conftest.
$ac_ext >&5
5939 ac_cv_header_sys_wait_h
=no
5941 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5943 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
5944 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
5945 if test $ac_cv_header_sys_wait_h = yes; then
5947 cat >>confdefs.h
<<\_ACEOF
5948 #define HAVE_SYS_WAIT_H 1
5954 echo "$as_me:$LINENO: checking for struct utimbuf" >&5
5955 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6
5956 if test "${emacs_cv_struct_utimbuf+set}" = set; then
5957 echo $ECHO_N "(cached) $ECHO_C" >&6
5959 cat >conftest.
$ac_ext <<_ACEOF
5962 cat confdefs.h
>>conftest.
$ac_ext
5963 cat >>conftest.
$ac_ext <<_ACEOF
5964 /* end confdefs.h. */
5965 #ifdef TIME_WITH_SYS_TIME
5966 #include <sys/time.h>
5969 #ifdef HAVE_SYS_TIME_H
5970 #include <sys/time.h>
5981 static struct utimbuf x; x.actime = x.modtime;
5986 rm -f conftest.
$ac_objext
5987 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5988 (eval $ac_compile) 2>conftest.er1
5990 grep -v '^ *+' conftest.er1
>conftest.err
5992 cat conftest.err
>&5
5993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5994 (exit $ac_status); } &&
5995 { ac_try
='test -z "$ac_c_werror_flag"
5996 || test ! -s conftest.err'
5997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6001 (exit $ac_status); }; } &&
6002 { ac_try
='test -s conftest.$ac_objext'
6003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6007 (exit $ac_status); }; }; then
6008 emacs_cv_struct_utimbuf
=yes
6010 echo "$as_me: failed program was:" >&5
6011 sed 's/^/| /' conftest.
$ac_ext >&5
6013 emacs_cv_struct_utimbuf
=no
6015 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6017 echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
6018 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6
6019 if test $emacs_cv_struct_utimbuf = yes; then
6021 cat >>confdefs.h
<<\_ACEOF
6022 #define HAVE_STRUCT_UTIMBUF 1
6027 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6028 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
6029 if test "${ac_cv_type_signal+set}" = set; then
6030 echo $ECHO_N "(cached) $ECHO_C" >&6
6032 cat >conftest.
$ac_ext <<_ACEOF
6035 cat confdefs.h
>>conftest.
$ac_ext
6036 cat >>conftest.
$ac_ext <<_ACEOF
6037 /* end confdefs.h. */
6038 #include <sys/types.h>
6044 extern "C" void (*signal (int, void (*)(int)))(int);
6046 void (*signal ()) ();
6057 rm -f conftest.
$ac_objext
6058 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6059 (eval $ac_compile) 2>conftest.er1
6061 grep -v '^ *+' conftest.er1
>conftest.err
6063 cat conftest.err
>&5
6064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6065 (exit $ac_status); } &&
6066 { ac_try
='test -z "$ac_c_werror_flag"
6067 || test ! -s conftest.err'
6068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6072 (exit $ac_status); }; } &&
6073 { ac_try
='test -s conftest.$ac_objext'
6074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6078 (exit $ac_status); }; }; then
6079 ac_cv_type_signal
=void
6081 echo "$as_me: failed program was:" >&5
6082 sed 's/^/| /' conftest.
$ac_ext >&5
6084 ac_cv_type_signal
=int
6086 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6088 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6089 echo "${ECHO_T}$ac_cv_type_signal" >&6
6091 cat >>confdefs.h
<<_ACEOF
6092 #define RETSIGTYPE $ac_cv_type_signal
6097 echo "$as_me:$LINENO: checking for speed_t" >&5
6098 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6
6099 if test "${emacs_cv_speed_t+set}" = set; then
6100 echo $ECHO_N "(cached) $ECHO_C" >&6
6102 cat >conftest.
$ac_ext <<_ACEOF
6105 cat confdefs.h
>>conftest.
$ac_ext
6106 cat >>conftest.
$ac_ext <<_ACEOF
6107 /* end confdefs.h. */
6108 #include <termios.h>
6117 rm -f conftest.
$ac_objext
6118 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6119 (eval $ac_compile) 2>conftest.er1
6121 grep -v '^ *+' conftest.er1
>conftest.err
6123 cat conftest.err
>&5
6124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6125 (exit $ac_status); } &&
6126 { ac_try
='test -z "$ac_c_werror_flag"
6127 || test ! -s conftest.err'
6128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6132 (exit $ac_status); }; } &&
6133 { ac_try
='test -s conftest.$ac_objext'
6134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6138 (exit $ac_status); }; }; then
6139 emacs_cv_speed_t
=yes
6141 echo "$as_me: failed program was:" >&5
6142 sed 's/^/| /' conftest.
$ac_ext >&5
6146 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6148 echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
6149 echo "${ECHO_T}$emacs_cv_speed_t" >&6
6150 if test $emacs_cv_speed_t = yes; then
6152 cat >>confdefs.h
<<\_ACEOF
6153 #define HAVE_SPEED_T 1
6158 echo "$as_me:$LINENO: checking for struct timeval" >&5
6159 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6
6160 if test "${emacs_cv_struct_timeval+set}" = set; then
6161 echo $ECHO_N "(cached) $ECHO_C" >&6
6163 cat >conftest.
$ac_ext <<_ACEOF
6166 cat confdefs.h
>>conftest.
$ac_ext
6167 cat >>conftest.
$ac_ext <<_ACEOF
6168 /* end confdefs.h. */
6169 #ifdef TIME_WITH_SYS_TIME
6170 #include <sys/time.h>
6173 #ifdef HAVE_SYS_TIME_H
6174 #include <sys/time.h>
6182 static struct timeval x; x.tv_sec = x.tv_usec;
6187 rm -f conftest.
$ac_objext
6188 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6189 (eval $ac_compile) 2>conftest.er1
6191 grep -v '^ *+' conftest.er1
>conftest.err
6193 cat conftest.err
>&5
6194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6195 (exit $ac_status); } &&
6196 { ac_try
='test -z "$ac_c_werror_flag"
6197 || test ! -s conftest.err'
6198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6202 (exit $ac_status); }; } &&
6203 { ac_try
='test -s conftest.$ac_objext'
6204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6208 (exit $ac_status); }; }; then
6209 emacs_cv_struct_timeval
=yes
6211 echo "$as_me: failed program was:" >&5
6212 sed 's/^/| /' conftest.
$ac_ext >&5
6214 emacs_cv_struct_timeval
=no
6216 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6218 echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
6219 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6
6220 HAVE_TIMEVAL
=$emacs_cv_struct_timeval
6221 if test $emacs_cv_struct_timeval = yes; then
6223 cat >>confdefs.h
<<\_ACEOF
6224 #define HAVE_TIMEVAL 1
6229 echo "$as_me:$LINENO: checking for struct exception" >&5
6230 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6
6231 if test "${emacs_cv_struct_exception+set}" = set; then
6232 echo $ECHO_N "(cached) $ECHO_C" >&6
6234 cat >conftest.
$ac_ext <<_ACEOF
6237 cat confdefs.h
>>conftest.
$ac_ext
6238 cat >>conftest.
$ac_ext <<_ACEOF
6239 /* end confdefs.h. */
6244 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
6249 rm -f conftest.
$ac_objext
6250 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6251 (eval $ac_compile) 2>conftest.er1
6253 grep -v '^ *+' conftest.er1
>conftest.err
6255 cat conftest.err
>&5
6256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6257 (exit $ac_status); } &&
6258 { ac_try
='test -z "$ac_c_werror_flag"
6259 || test ! -s conftest.err'
6260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6264 (exit $ac_status); }; } &&
6265 { ac_try
='test -s conftest.$ac_objext'
6266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6270 (exit $ac_status); }; }; then
6271 emacs_cv_struct_exception
=yes
6273 echo "$as_me: failed program was:" >&5
6274 sed 's/^/| /' conftest.
$ac_ext >&5
6276 emacs_cv_struct_exception
=no
6278 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6280 echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
6281 echo "${ECHO_T}$emacs_cv_struct_exception" >&6
6282 HAVE_EXCEPTION
=$emacs_cv_struct_exception
6283 if test $emacs_cv_struct_exception != yes; then
6285 cat >>confdefs.h
<<\_ACEOF
6286 #define NO_MATHERR 1
6292 for ac_header
in sys
/socket.h
6294 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6295 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6296 echo "$as_me:$LINENO: checking for $ac_header" >&5
6297 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6298 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6299 echo $ECHO_N "(cached) $ECHO_C" >&6
6301 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6302 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6304 # Is the header compilable?
6305 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6306 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6307 cat >conftest.
$ac_ext <<_ACEOF
6310 cat confdefs.h
>>conftest.
$ac_ext
6311 cat >>conftest.
$ac_ext <<_ACEOF
6312 /* end confdefs.h. */
6313 $ac_includes_default
6314 #include <$ac_header>
6316 rm -f conftest.
$ac_objext
6317 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6318 (eval $ac_compile) 2>conftest.er1
6320 grep -v '^ *+' conftest.er1
>conftest.err
6322 cat conftest.err
>&5
6323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6324 (exit $ac_status); } &&
6325 { ac_try
='test -z "$ac_c_werror_flag"
6326 || test ! -s conftest.err'
6327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6331 (exit $ac_status); }; } &&
6332 { ac_try
='test -s conftest.$ac_objext'
6333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6337 (exit $ac_status); }; }; then
6338 ac_header_compiler
=yes
6340 echo "$as_me: failed program was:" >&5
6341 sed 's/^/| /' conftest.
$ac_ext >&5
6343 ac_header_compiler
=no
6345 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6346 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6347 echo "${ECHO_T}$ac_header_compiler" >&6
6349 # Is the header present?
6350 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6351 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6352 cat >conftest.
$ac_ext <<_ACEOF
6355 cat confdefs.h
>>conftest.
$ac_ext
6356 cat >>conftest.
$ac_ext <<_ACEOF
6357 /* end confdefs.h. */
6358 #include <$ac_header>
6360 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6361 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6363 grep -v '^ *+' conftest.er1
>conftest.err
6365 cat conftest.err
>&5
6366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6367 (exit $ac_status); } >/dev
/null
; then
6368 if test -s conftest.err
; then
6369 ac_cpp_err
=$ac_c_preproc_warn_flag
6370 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6377 if test -z "$ac_cpp_err"; then
6378 ac_header_preproc
=yes
6380 echo "$as_me: failed program was:" >&5
6381 sed 's/^/| /' conftest.
$ac_ext >&5
6383 ac_header_preproc
=no
6385 rm -f conftest.err conftest.
$ac_ext
6386 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6387 echo "${ECHO_T}$ac_header_preproc" >&6
6389 # So? What about this header?
6390 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6392 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6393 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6394 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6395 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6396 ac_header_preproc
=yes
6399 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6400 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6401 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6402 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6403 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6404 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6405 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6406 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6407 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6408 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6409 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6410 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6413 ## ------------------------------------------ ##
6414 ## Report this to the AC_PACKAGE_NAME lists. ##
6415 ## ------------------------------------------ ##
6418 sed "s/^/$as_me: WARNING: /" >&2
6421 echo "$as_me:$LINENO: checking for $ac_header" >&5
6422 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6423 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6424 echo $ECHO_N "(cached) $ECHO_C" >&6
6426 eval "$as_ac_Header=\$ac_header_preproc"
6428 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6429 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6432 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6433 cat >>confdefs.h
<<_ACEOF
6434 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6442 for ac_header
in net
/if.h
6444 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6445 echo "$as_me:$LINENO: checking for $ac_header" >&5
6446 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6447 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6448 echo $ECHO_N "(cached) $ECHO_C" >&6
6450 cat >conftest.
$ac_ext <<_ACEOF
6453 cat confdefs.h
>>conftest.
$ac_ext
6454 cat >>conftest.
$ac_ext <<_ACEOF
6455 /* end confdefs.h. */
6456 $ac_includes_default
6457 #if HAVE_SYS_SOCKET_H
6458 #include <sys/socket.h>
6461 #include <$ac_header>
6463 rm -f conftest.
$ac_objext
6464 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6465 (eval $ac_compile) 2>conftest.er1
6467 grep -v '^ *+' conftest.er1
>conftest.err
6469 cat conftest.err
>&5
6470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6471 (exit $ac_status); } &&
6472 { ac_try
='test -z "$ac_c_werror_flag"
6473 || test ! -s conftest.err'
6474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6478 (exit $ac_status); }; } &&
6479 { ac_try
='test -s conftest.$ac_objext'
6480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6484 (exit $ac_status); }; }; then
6485 eval "$as_ac_Header=yes"
6487 echo "$as_me: failed program was:" >&5
6488 sed 's/^/| /' conftest.
$ac_ext >&5
6490 eval "$as_ac_Header=no"
6492 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6494 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6495 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6496 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6497 cat >>confdefs.h
<<_ACEOF
6498 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6506 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
6507 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
6508 if test "${ac_cv_struct_tm+set}" = set; then
6509 echo $ECHO_N "(cached) $ECHO_C" >&6
6511 cat >conftest.
$ac_ext <<_ACEOF
6514 cat confdefs.h
>>conftest.
$ac_ext
6515 cat >>conftest.
$ac_ext <<_ACEOF
6516 /* end confdefs.h. */
6517 #include <sys/types.h>
6523 struct tm *tp; tp->tm_sec;
6528 rm -f conftest.
$ac_objext
6529 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6530 (eval $ac_compile) 2>conftest.er1
6532 grep -v '^ *+' conftest.er1
>conftest.err
6534 cat conftest.err
>&5
6535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6536 (exit $ac_status); } &&
6537 { ac_try
='test -z "$ac_c_werror_flag"
6538 || test ! -s conftest.err'
6539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6543 (exit $ac_status); }; } &&
6544 { ac_try
='test -s conftest.$ac_objext'
6545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6549 (exit $ac_status); }; }; then
6550 ac_cv_struct_tm
=time.h
6552 echo "$as_me: failed program was:" >&5
6553 sed 's/^/| /' conftest.
$ac_ext >&5
6555 ac_cv_struct_tm
=sys
/time.h
6557 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6559 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
6560 echo "${ECHO_T}$ac_cv_struct_tm" >&6
6561 if test $ac_cv_struct_tm = sys
/time.h
; then
6563 cat >>confdefs.h
<<\_ACEOF
6564 #define TM_IN_SYS_TIME 1
6569 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
6570 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
6571 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
6572 echo $ECHO_N "(cached) $ECHO_C" >&6
6574 cat >conftest.
$ac_ext <<_ACEOF
6577 cat confdefs.h
>>conftest.
$ac_ext
6578 cat >>conftest.
$ac_ext <<_ACEOF
6579 /* end confdefs.h. */
6580 #include <sys/types.h>
6581 #include <$ac_cv_struct_tm>
6587 static struct tm ac_aggr;
6588 if (ac_aggr.tm_zone)
6594 rm -f conftest.
$ac_objext
6595 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6596 (eval $ac_compile) 2>conftest.er1
6598 grep -v '^ *+' conftest.er1
>conftest.err
6600 cat conftest.err
>&5
6601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6602 (exit $ac_status); } &&
6603 { ac_try
='test -z "$ac_c_werror_flag"
6604 || test ! -s conftest.err'
6605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6609 (exit $ac_status); }; } &&
6610 { ac_try
='test -s conftest.$ac_objext'
6611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6615 (exit $ac_status); }; }; then
6616 ac_cv_member_struct_tm_tm_zone
=yes
6618 echo "$as_me: failed program was:" >&5
6619 sed 's/^/| /' conftest.
$ac_ext >&5
6621 cat >conftest.
$ac_ext <<_ACEOF
6624 cat confdefs.h
>>conftest.
$ac_ext
6625 cat >>conftest.
$ac_ext <<_ACEOF
6626 /* end confdefs.h. */
6627 #include <sys/types.h>
6628 #include <$ac_cv_struct_tm>
6634 static struct tm ac_aggr;
6635 if (sizeof ac_aggr.tm_zone)
6641 rm -f conftest.
$ac_objext
6642 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6643 (eval $ac_compile) 2>conftest.er1
6645 grep -v '^ *+' conftest.er1
>conftest.err
6647 cat conftest.err
>&5
6648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6649 (exit $ac_status); } &&
6650 { ac_try
='test -z "$ac_c_werror_flag"
6651 || test ! -s conftest.err'
6652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6656 (exit $ac_status); }; } &&
6657 { ac_try
='test -s conftest.$ac_objext'
6658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6662 (exit $ac_status); }; }; then
6663 ac_cv_member_struct_tm_tm_zone
=yes
6665 echo "$as_me: failed program was:" >&5
6666 sed 's/^/| /' conftest.
$ac_ext >&5
6668 ac_cv_member_struct_tm_tm_zone
=no
6670 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6672 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6674 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
6675 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
6676 if test $ac_cv_member_struct_tm_tm_zone = yes; then
6678 cat >>confdefs.h
<<_ACEOF
6679 #define HAVE_STRUCT_TM_TM_ZONE 1
6685 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6687 cat >>confdefs.h
<<\_ACEOF
6688 #define HAVE_TM_ZONE 1
6692 echo "$as_me:$LINENO: checking for tzname" >&5
6693 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
6694 if test "${ac_cv_var_tzname+set}" = set; then
6695 echo $ECHO_N "(cached) $ECHO_C" >&6
6697 cat >conftest.
$ac_ext <<_ACEOF
6700 cat confdefs.h
>>conftest.
$ac_ext
6701 cat >>conftest.
$ac_ext <<_ACEOF
6702 /* end confdefs.h. */
6704 #ifndef tzname /* For SGI. */
6705 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
6716 rm -f conftest.
$ac_objext conftest
$ac_exeext
6717 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6718 (eval $ac_link) 2>conftest.er1
6720 grep -v '^ *+' conftest.er1
>conftest.err
6722 cat conftest.err
>&5
6723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6724 (exit $ac_status); } &&
6725 { ac_try
='test -z "$ac_c_werror_flag"
6726 || test ! -s conftest.err'
6727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6731 (exit $ac_status); }; } &&
6732 { ac_try
='test -s conftest$ac_exeext'
6733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6737 (exit $ac_status); }; }; then
6738 ac_cv_var_tzname
=yes
6740 echo "$as_me: failed program was:" >&5
6741 sed 's/^/| /' conftest.
$ac_ext >&5
6745 rm -f conftest.err conftest.
$ac_objext \
6746 conftest
$ac_exeext conftest.
$ac_ext
6748 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
6749 echo "${ECHO_T}$ac_cv_var_tzname" >&6
6750 if test $ac_cv_var_tzname = yes; then
6752 cat >>confdefs.h
<<\_ACEOF
6753 #define HAVE_TZNAME 1
6759 echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
6760 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6
6761 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
6762 echo $ECHO_N "(cached) $ECHO_C" >&6
6764 cat >conftest.
$ac_ext <<_ACEOF
6767 cat confdefs.h
>>conftest.
$ac_ext
6768 cat >>conftest.
$ac_ext <<_ACEOF
6769 /* end confdefs.h. */
6775 static struct tm ac_aggr;
6776 if (ac_aggr.tm_gmtoff)
6782 rm -f conftest.
$ac_objext
6783 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6784 (eval $ac_compile) 2>conftest.er1
6786 grep -v '^ *+' conftest.er1
>conftest.err
6788 cat conftest.err
>&5
6789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6790 (exit $ac_status); } &&
6791 { ac_try
='test -z "$ac_c_werror_flag"
6792 || test ! -s conftest.err'
6793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6797 (exit $ac_status); }; } &&
6798 { ac_try
='test -s conftest.$ac_objext'
6799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6803 (exit $ac_status); }; }; then
6804 ac_cv_member_struct_tm_tm_gmtoff
=yes
6806 echo "$as_me: failed program was:" >&5
6807 sed 's/^/| /' conftest.
$ac_ext >&5
6809 cat >conftest.
$ac_ext <<_ACEOF
6812 cat confdefs.h
>>conftest.
$ac_ext
6813 cat >>conftest.
$ac_ext <<_ACEOF
6814 /* end confdefs.h. */
6820 static struct tm ac_aggr;
6821 if (sizeof ac_aggr.tm_gmtoff)
6827 rm -f conftest.
$ac_objext
6828 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6829 (eval $ac_compile) 2>conftest.er1
6831 grep -v '^ *+' conftest.er1
>conftest.err
6833 cat conftest.err
>&5
6834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6835 (exit $ac_status); } &&
6836 { ac_try
='test -z "$ac_c_werror_flag"
6837 || test ! -s conftest.err'
6838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6842 (exit $ac_status); }; } &&
6843 { ac_try
='test -s conftest.$ac_objext'
6844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6848 (exit $ac_status); }; }; then
6849 ac_cv_member_struct_tm_tm_gmtoff
=yes
6851 echo "$as_me: failed program was:" >&5
6852 sed 's/^/| /' conftest.
$ac_ext >&5
6854 ac_cv_member_struct_tm_tm_gmtoff
=no
6856 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6858 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6860 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
6861 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6
6862 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
6864 cat >>confdefs.h
<<\_ACEOF
6865 #define HAVE_TM_GMTOFF 1
6870 echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
6871 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6
6872 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
6873 echo $ECHO_N "(cached) $ECHO_C" >&6
6875 cat >conftest.
$ac_ext <<_ACEOF
6878 cat confdefs.h
>>conftest.
$ac_ext
6879 cat >>conftest.
$ac_ext <<_ACEOF
6880 /* end confdefs.h. */
6881 $ac_includes_default
6882 #if HAVE_SYS_SOCKET_H
6883 #include <sys/socket.h>
6892 static struct ifreq ac_aggr;
6893 if (ac_aggr.ifr_flags)
6899 rm -f conftest.
$ac_objext
6900 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6901 (eval $ac_compile) 2>conftest.er1
6903 grep -v '^ *+' conftest.er1
>conftest.err
6905 cat conftest.err
>&5
6906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6907 (exit $ac_status); } &&
6908 { ac_try
='test -z "$ac_c_werror_flag"
6909 || test ! -s conftest.err'
6910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6914 (exit $ac_status); }; } &&
6915 { ac_try
='test -s conftest.$ac_objext'
6916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6920 (exit $ac_status); }; }; then
6921 ac_cv_member_struct_ifreq_ifr_flags
=yes
6923 echo "$as_me: failed program was:" >&5
6924 sed 's/^/| /' conftest.
$ac_ext >&5
6926 cat >conftest.
$ac_ext <<_ACEOF
6929 cat confdefs.h
>>conftest.
$ac_ext
6930 cat >>conftest.
$ac_ext <<_ACEOF
6931 /* end confdefs.h. */
6932 $ac_includes_default
6933 #if HAVE_SYS_SOCKET_H
6934 #include <sys/socket.h>
6943 static struct ifreq ac_aggr;
6944 if (sizeof ac_aggr.ifr_flags)
6950 rm -f conftest.
$ac_objext
6951 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6952 (eval $ac_compile) 2>conftest.er1
6954 grep -v '^ *+' conftest.er1
>conftest.err
6956 cat conftest.err
>&5
6957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6958 (exit $ac_status); } &&
6959 { ac_try
='test -z "$ac_c_werror_flag"
6960 || test ! -s conftest.err'
6961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6965 (exit $ac_status); }; } &&
6966 { ac_try
='test -s conftest.$ac_objext'
6967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6971 (exit $ac_status); }; }; then
6972 ac_cv_member_struct_ifreq_ifr_flags
=yes
6974 echo "$as_me: failed program was:" >&5
6975 sed 's/^/| /' conftest.
$ac_ext >&5
6977 ac_cv_member_struct_ifreq_ifr_flags
=no
6979 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6981 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6983 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
6984 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6
6985 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
6987 cat >>confdefs.h
<<_ACEOF
6988 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
6993 echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
6994 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6
6995 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
6996 echo $ECHO_N "(cached) $ECHO_C" >&6
6998 cat >conftest.
$ac_ext <<_ACEOF
7001 cat confdefs.h
>>conftest.
$ac_ext
7002 cat >>conftest.
$ac_ext <<_ACEOF
7003 /* end confdefs.h. */
7004 $ac_includes_default
7005 #if HAVE_SYS_SOCKET_H
7006 #include <sys/socket.h>
7015 static struct ifreq ac_aggr;
7016 if (ac_aggr.ifr_hwaddr)
7022 rm -f conftest.
$ac_objext
7023 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7024 (eval $ac_compile) 2>conftest.er1
7026 grep -v '^ *+' conftest.er1
>conftest.err
7028 cat conftest.err
>&5
7029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7030 (exit $ac_status); } &&
7031 { ac_try
='test -z "$ac_c_werror_flag"
7032 || test ! -s conftest.err'
7033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7037 (exit $ac_status); }; } &&
7038 { ac_try
='test -s conftest.$ac_objext'
7039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7043 (exit $ac_status); }; }; then
7044 ac_cv_member_struct_ifreq_ifr_hwaddr
=yes
7046 echo "$as_me: failed program was:" >&5
7047 sed 's/^/| /' conftest.
$ac_ext >&5
7049 cat >conftest.
$ac_ext <<_ACEOF
7052 cat confdefs.h
>>conftest.
$ac_ext
7053 cat >>conftest.
$ac_ext <<_ACEOF
7054 /* end confdefs.h. */
7055 $ac_includes_default
7056 #if HAVE_SYS_SOCKET_H
7057 #include <sys/socket.h>
7066 static struct ifreq ac_aggr;
7067 if (sizeof ac_aggr.ifr_hwaddr)
7073 rm -f conftest.
$ac_objext
7074 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7075 (eval $ac_compile) 2>conftest.er1
7077 grep -v '^ *+' conftest.er1
>conftest.err
7079 cat conftest.err
>&5
7080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7081 (exit $ac_status); } &&
7082 { ac_try
='test -z "$ac_c_werror_flag"
7083 || test ! -s conftest.err'
7084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7088 (exit $ac_status); }; } &&
7089 { ac_try
='test -s conftest.$ac_objext'
7090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7094 (exit $ac_status); }; }; then
7095 ac_cv_member_struct_ifreq_ifr_hwaddr
=yes
7097 echo "$as_me: failed program was:" >&5
7098 sed 's/^/| /' conftest.
$ac_ext >&5
7100 ac_cv_member_struct_ifreq_ifr_hwaddr
=no
7102 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7104 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7106 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
7107 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6
7108 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
7110 cat >>confdefs.h
<<_ACEOF
7111 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
7116 echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
7117 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6
7118 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
7119 echo $ECHO_N "(cached) $ECHO_C" >&6
7121 cat >conftest.
$ac_ext <<_ACEOF
7124 cat confdefs.h
>>conftest.
$ac_ext
7125 cat >>conftest.
$ac_ext <<_ACEOF
7126 /* end confdefs.h. */
7127 $ac_includes_default
7128 #if HAVE_SYS_SOCKET_H
7129 #include <sys/socket.h>
7138 static struct ifreq ac_aggr;
7139 if (ac_aggr.ifr_netmask)
7145 rm -f conftest.
$ac_objext
7146 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7147 (eval $ac_compile) 2>conftest.er1
7149 grep -v '^ *+' conftest.er1
>conftest.err
7151 cat conftest.err
>&5
7152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7153 (exit $ac_status); } &&
7154 { ac_try
='test -z "$ac_c_werror_flag"
7155 || test ! -s conftest.err'
7156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7160 (exit $ac_status); }; } &&
7161 { ac_try
='test -s conftest.$ac_objext'
7162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7166 (exit $ac_status); }; }; then
7167 ac_cv_member_struct_ifreq_ifr_netmask
=yes
7169 echo "$as_me: failed program was:" >&5
7170 sed 's/^/| /' conftest.
$ac_ext >&5
7172 cat >conftest.
$ac_ext <<_ACEOF
7175 cat confdefs.h
>>conftest.
$ac_ext
7176 cat >>conftest.
$ac_ext <<_ACEOF
7177 /* end confdefs.h. */
7178 $ac_includes_default
7179 #if HAVE_SYS_SOCKET_H
7180 #include <sys/socket.h>
7189 static struct ifreq ac_aggr;
7190 if (sizeof ac_aggr.ifr_netmask)
7196 rm -f conftest.
$ac_objext
7197 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7198 (eval $ac_compile) 2>conftest.er1
7200 grep -v '^ *+' conftest.er1
>conftest.err
7202 cat conftest.err
>&5
7203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7204 (exit $ac_status); } &&
7205 { ac_try
='test -z "$ac_c_werror_flag"
7206 || test ! -s conftest.err'
7207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7211 (exit $ac_status); }; } &&
7212 { ac_try
='test -s conftest.$ac_objext'
7213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7217 (exit $ac_status); }; }; then
7218 ac_cv_member_struct_ifreq_ifr_netmask
=yes
7220 echo "$as_me: failed program was:" >&5
7221 sed 's/^/| /' conftest.
$ac_ext >&5
7223 ac_cv_member_struct_ifreq_ifr_netmask
=no
7225 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7227 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7229 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
7230 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6
7231 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
7233 cat >>confdefs.h
<<_ACEOF
7234 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
7239 echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
7240 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6
7241 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
7242 echo $ECHO_N "(cached) $ECHO_C" >&6
7244 cat >conftest.
$ac_ext <<_ACEOF
7247 cat confdefs.h
>>conftest.
$ac_ext
7248 cat >>conftest.
$ac_ext <<_ACEOF
7249 /* end confdefs.h. */
7250 $ac_includes_default
7251 #if HAVE_SYS_SOCKET_H
7252 #include <sys/socket.h>
7261 static struct ifreq ac_aggr;
7262 if (ac_aggr.ifr_broadaddr)
7268 rm -f conftest.
$ac_objext
7269 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7270 (eval $ac_compile) 2>conftest.er1
7272 grep -v '^ *+' conftest.er1
>conftest.err
7274 cat conftest.err
>&5
7275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7276 (exit $ac_status); } &&
7277 { ac_try
='test -z "$ac_c_werror_flag"
7278 || test ! -s conftest.err'
7279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7283 (exit $ac_status); }; } &&
7284 { ac_try
='test -s conftest.$ac_objext'
7285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7289 (exit $ac_status); }; }; then
7290 ac_cv_member_struct_ifreq_ifr_broadaddr
=yes
7292 echo "$as_me: failed program was:" >&5
7293 sed 's/^/| /' conftest.
$ac_ext >&5
7295 cat >conftest.
$ac_ext <<_ACEOF
7298 cat confdefs.h
>>conftest.
$ac_ext
7299 cat >>conftest.
$ac_ext <<_ACEOF
7300 /* end confdefs.h. */
7301 $ac_includes_default
7302 #if HAVE_SYS_SOCKET_H
7303 #include <sys/socket.h>
7312 static struct ifreq ac_aggr;
7313 if (sizeof ac_aggr.ifr_broadaddr)
7319 rm -f conftest.
$ac_objext
7320 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7321 (eval $ac_compile) 2>conftest.er1
7323 grep -v '^ *+' conftest.er1
>conftest.err
7325 cat conftest.err
>&5
7326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7327 (exit $ac_status); } &&
7328 { ac_try
='test -z "$ac_c_werror_flag"
7329 || test ! -s conftest.err'
7330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7334 (exit $ac_status); }; } &&
7335 { ac_try
='test -s conftest.$ac_objext'
7336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7340 (exit $ac_status); }; }; then
7341 ac_cv_member_struct_ifreq_ifr_broadaddr
=yes
7343 echo "$as_me: failed program was:" >&5
7344 sed 's/^/| /' conftest.
$ac_ext >&5
7346 ac_cv_member_struct_ifreq_ifr_broadaddr
=no
7348 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7350 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7352 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
7353 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6
7354 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
7356 cat >>confdefs.h
<<_ACEOF
7357 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
7362 echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
7363 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6
7364 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
7365 echo $ECHO_N "(cached) $ECHO_C" >&6
7367 cat >conftest.
$ac_ext <<_ACEOF
7370 cat confdefs.h
>>conftest.
$ac_ext
7371 cat >>conftest.
$ac_ext <<_ACEOF
7372 /* end confdefs.h. */
7373 $ac_includes_default
7374 #if HAVE_SYS_SOCKET_H
7375 #include <sys/socket.h>
7384 static struct ifreq ac_aggr;
7385 if (ac_aggr.ifr_addr)
7391 rm -f conftest.
$ac_objext
7392 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7393 (eval $ac_compile) 2>conftest.er1
7395 grep -v '^ *+' conftest.er1
>conftest.err
7397 cat conftest.err
>&5
7398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7399 (exit $ac_status); } &&
7400 { ac_try
='test -z "$ac_c_werror_flag"
7401 || test ! -s conftest.err'
7402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7406 (exit $ac_status); }; } &&
7407 { ac_try
='test -s conftest.$ac_objext'
7408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7412 (exit $ac_status); }; }; then
7413 ac_cv_member_struct_ifreq_ifr_addr
=yes
7415 echo "$as_me: failed program was:" >&5
7416 sed 's/^/| /' conftest.
$ac_ext >&5
7418 cat >conftest.
$ac_ext <<_ACEOF
7421 cat confdefs.h
>>conftest.
$ac_ext
7422 cat >>conftest.
$ac_ext <<_ACEOF
7423 /* end confdefs.h. */
7424 $ac_includes_default
7425 #if HAVE_SYS_SOCKET_H
7426 #include <sys/socket.h>
7435 static struct ifreq ac_aggr;
7436 if (sizeof ac_aggr.ifr_addr)
7442 rm -f conftest.
$ac_objext
7443 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7444 (eval $ac_compile) 2>conftest.er1
7446 grep -v '^ *+' conftest.er1
>conftest.err
7448 cat conftest.err
>&5
7449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7450 (exit $ac_status); } &&
7451 { ac_try
='test -z "$ac_c_werror_flag"
7452 || test ! -s conftest.err'
7453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7457 (exit $ac_status); }; } &&
7458 { ac_try
='test -s conftest.$ac_objext'
7459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7463 (exit $ac_status); }; }; then
7464 ac_cv_member_struct_ifreq_ifr_addr
=yes
7466 echo "$as_me: failed program was:" >&5
7467 sed 's/^/| /' conftest.
$ac_ext >&5
7469 ac_cv_member_struct_ifreq_ifr_addr
=no
7471 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7473 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7475 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
7476 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6
7477 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
7479 cat >>confdefs.h
<<_ACEOF
7480 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
7488 echo "$as_me:$LINENO: checking for function prototypes" >&5
7489 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
7490 if test "$ac_cv_prog_cc_stdc" != no
; then
7491 echo "$as_me:$LINENO: result: yes" >&5
7492 echo "${ECHO_T}yes" >&6
7494 cat >>confdefs.h
<<\_ACEOF
7495 #define PROTOTYPES 1
7499 cat >>confdefs.h
<<\_ACEOF
7500 #define __PROTOTYPES 1
7504 echo "$as_me:$LINENO: result: no" >&5
7505 echo "${ECHO_T}no" >&6
7508 echo "$as_me:$LINENO: checking for working volatile" >&5
7509 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
7510 if test "${ac_cv_c_volatile+set}" = set; then
7511 echo $ECHO_N "(cached) $ECHO_C" >&6
7513 cat >conftest.
$ac_ext <<_ACEOF
7516 cat confdefs.h
>>conftest.
$ac_ext
7517 cat >>conftest.
$ac_ext <<_ACEOF
7518 /* end confdefs.h. */
7530 rm -f conftest.
$ac_objext
7531 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7532 (eval $ac_compile) 2>conftest.er1
7534 grep -v '^ *+' conftest.er1
>conftest.err
7536 cat conftest.err
>&5
7537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7538 (exit $ac_status); } &&
7539 { ac_try
='test -z "$ac_c_werror_flag"
7540 || test ! -s conftest.err'
7541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7545 (exit $ac_status); }; } &&
7546 { ac_try
='test -s conftest.$ac_objext'
7547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7551 (exit $ac_status); }; }; then
7552 ac_cv_c_volatile
=yes
7554 echo "$as_me: failed program was:" >&5
7555 sed 's/^/| /' conftest.
$ac_ext >&5
7559 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7561 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
7562 echo "${ECHO_T}$ac_cv_c_volatile" >&6
7563 if test $ac_cv_c_volatile = no
; then
7565 cat >>confdefs.h
<<\_ACEOF
7571 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7572 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
7573 if test "${ac_cv_c_const+set}" = set; then
7574 echo $ECHO_N "(cached) $ECHO_C" >&6
7576 cat >conftest.
$ac_ext <<_ACEOF
7579 cat confdefs.h
>>conftest.
$ac_ext
7580 cat >>conftest.
$ac_ext <<_ACEOF
7581 /* end confdefs.h. */
7586 /* FIXME: Include the comments suggested by Paul. */
7588 /* Ultrix mips cc rejects this. */
7589 typedef int charset[2];
7591 /* SunOS 4.1.1 cc rejects this. */
7592 char const *const *ccp;
7594 /* NEC SVR4.0.2 mips cc rejects this. */
7595 struct point {int x, y;};
7596 static struct point const zero = {0,0};
7597 /* AIX XL C 1.02.0.0 rejects this.
7598 It does not let you subtract one const X* pointer from another in
7599 an arm of an if-expression whose if-part is not a constant
7601 const char *g = "string";
7602 ccp = &g + (g ? g-g : 0);
7603 /* HPUX 7.0 cc rejects these. */
7606 ccp = (char const *const *) p;
7607 { /* SCO 3.2v4 cc rejects this. */
7609 char const *s = 0 ? (char *) 0 : (char const *) 0;
7613 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7615 const int *foo = &x[0];
7618 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7619 typedef const int *iptr;
7623 { /* AIX XL C 1.02.0.0 rejects this saying
7624 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7625 struct s { int j; const int *ap[3]; };
7626 struct s *b; b->j = 5;
7628 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7637 rm -f conftest.
$ac_objext
7638 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7639 (eval $ac_compile) 2>conftest.er1
7641 grep -v '^ *+' conftest.er1
>conftest.err
7643 cat conftest.err
>&5
7644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7645 (exit $ac_status); } &&
7646 { ac_try
='test -z "$ac_c_werror_flag"
7647 || test ! -s conftest.err'
7648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7652 (exit $ac_status); }; } &&
7653 { ac_try
='test -s conftest.$ac_objext'
7654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7658 (exit $ac_status); }; }; then
7661 echo "$as_me: failed program was:" >&5
7662 sed 's/^/| /' conftest.
$ac_ext >&5
7666 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7668 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7669 echo "${ECHO_T}$ac_cv_c_const" >&6
7670 if test $ac_cv_c_const = no
; then
7672 cat >>confdefs.h
<<\_ACEOF
7678 echo "$as_me:$LINENO: checking for void * support" >&5
7679 echo $ECHO_N "checking for void * support... $ECHO_C" >&6
7680 if test "${emacs_cv_void_star+set}" = set; then
7681 echo $ECHO_N "(cached) $ECHO_C" >&6
7683 cat >conftest.
$ac_ext <<_ACEOF
7686 cat confdefs.h
>>conftest.
$ac_ext
7687 cat >>conftest.
$ac_ext <<_ACEOF
7688 /* end confdefs.h. */
7698 rm -f conftest.
$ac_objext
7699 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7700 (eval $ac_compile) 2>conftest.er1
7702 grep -v '^ *+' conftest.er1
>conftest.err
7704 cat conftest.err
>&5
7705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7706 (exit $ac_status); } &&
7707 { ac_try
='test -z "$ac_c_werror_flag"
7708 || test ! -s conftest.err'
7709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7713 (exit $ac_status); }; } &&
7714 { ac_try
='test -s conftest.$ac_objext'
7715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7719 (exit $ac_status); }; }; then
7720 emacs_cv_void_star
=yes
7722 echo "$as_me: failed program was:" >&5
7723 sed 's/^/| /' conftest.
$ac_ext >&5
7725 emacs_cv_void_star
=no
7727 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7729 echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
7730 echo "${ECHO_T}$emacs_cv_void_star" >&6
7731 if test $emacs_cv_void_star = yes; then
7732 cat >>confdefs.h
<<\_ACEOF
7733 #define POINTER_TYPE void
7737 cat >>confdefs.h
<<\_ACEOF
7738 #define POINTER_TYPE char
7744 echo "$as_me:$LINENO: checking whether heap start address is randomized" >&5
7745 echo $ECHO_N "checking whether heap start address is randomized... $ECHO_C" >&6
7746 if test x
"$ac_cv_header_unistd_h" != x
&& test x
"$ac_cv_header_stdlib_h" != x
7748 if test "$cross_compiling" = yes; then
7749 emacs_cv_randomheap
='assuming no'
7751 cat >conftest.
$ac_ext <<_ACEOF
7754 cat confdefs.h
>>conftest.
$ac_ext
7755 cat >>conftest.
$ac_ext <<_ACEOF
7756 /* end confdefs.h. */
7760 int main (int argc, char *argv[])
7762 unsigned long old_sbrk = 0;
7763 unsigned long this_sbrk = (unsigned long) sbrk(0);
7766 old_sbrk = strtoul (argv[1], 0, 0);
7767 nr = atoi (argv[2])+1;
7769 if (argc == 1 || (old_sbrk == this_sbrk && nr < 3))
7771 char buf1[32], buf2[32];
7772 sprintf (buf1, "%lu", this_sbrk);
7773 sprintf (buf2, "%d", nr);
7774 execl (argv[0], argv[0], buf1, buf2, 0);
7777 exit (this_sbrk == old_sbrk);
7780 rm -f conftest
$ac_exeext
7781 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7782 (eval $ac_link) 2>&5
7784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7785 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7790 (exit $ac_status); }; }; then
7791 emacs_cv_randomheap
=yes
7793 echo "$as_me: program exited with status $ac_status" >&5
7794 echo "$as_me: failed program was:" >&5
7795 sed 's/^/| /' conftest.
$ac_ext >&5
7798 emacs_cv_randomheap
=no
7800 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7803 emacs_cv_randomheap
='assuming no'
7805 echo "$as_me:$LINENO: result: $emacs_cv_randomheap" >&5
7806 echo "${ECHO_T}$emacs_cv_randomheap" >&6
7808 if test "$emacs_cv_randomheap" = yes; then
7809 # Extract the first word of "setarch", so it can be a program name with args.
7810 set dummy setarch
; ac_word
=$2
7811 echo "$as_me:$LINENO: checking for $ac_word" >&5
7812 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7813 if test "${ac_cv_path_SETARCH+set}" = set; then
7814 echo $ECHO_N "(cached) $ECHO_C" >&6
7818 ac_cv_path_SETARCH
="$SETARCH" # Let the user override the test with a path.
7821 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7825 test -z "$as_dir" && as_dir
=.
7826 for ac_exec_ext
in '' $ac_executable_extensions; do
7827 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7828 ac_cv_path_SETARCH
="$as_dir/$ac_word$ac_exec_ext"
7829 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7835 test -z "$ac_cv_path_SETARCH" && ac_cv_path_SETARCH
="no"
7839 SETARCH
=$ac_cv_path_SETARCH
7841 if test -n "$SETARCH"; then
7842 echo "$as_me:$LINENO: result: $SETARCH" >&5
7843 echo "${ECHO_T}$SETARCH" >&6
7845 echo "$as_me:$LINENO: result: no" >&5
7846 echo "${ECHO_T}no" >&6
7850 if test "$SETARCH" != no
&& test "$machine" = "intel386"; then
7852 cat >>confdefs.h
<<\_ACEOF
7853 #define HAVE_RANDOM_HEAPSTART 1
7857 emacs_cv_randomheap
=warn
7863 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7864 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
7865 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y,:./+-,___p_,'`
7866 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
7867 echo $ECHO_N "(cached) $ECHO_C" >&6
7869 cat >conftest.
make <<\_ACEOF
7871 @
echo 'ac_maketemp="$(MAKE)"'
7873 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7874 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
7875 if test -n "$ac_maketemp"; then
7876 eval ac_cv_prog_make_
${ac_make}_set
=yes
7878 eval ac_cv_prog_make_
${ac_make}_set
=no
7882 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
7883 echo "$as_me:$LINENO: result: yes" >&5
7884 echo "${ECHO_T}yes" >&6
7887 echo "$as_me:$LINENO: result: no" >&5
7888 echo "${ECHO_T}no" >&6
7889 SET_MAKE
="MAKE=${MAKE-make}"
7893 echo "$as_me:$LINENO: checking for long file names" >&5
7894 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
7895 if test "${ac_cv_sys_long_file_names+set}" = set; then
7896 echo $ECHO_N "(cached) $ECHO_C" >&6
7898 ac_cv_sys_long_file_names
=yes
7899 # Test for long file names in all the places we know might matter:
7900 # . the current directory, where building will happen
7901 # $prefix/lib where we will be installing things
7902 # $exec_prefix/lib likewise
7903 # eval it to expand exec_prefix.
7904 # $TMPDIR if set, where it might want to write temporary files
7905 # if $TMPDIR is not set:
7906 # /tmp where it might want to write temporary files
7909 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
7912 ac_tmpdirs
='/tmp /var/tmp /usr/tmp'
7914 for ac_dir
in .
$ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
7915 test -d $ac_dir ||
continue
7916 test -w $ac_dir ||
continue # It is less confusing to not echo anything here.
7917 ac_xdir
=$ac_dir/cf$$
7918 (umask 077 && mkdir
$ac_xdir 2>/dev
/null
) ||
continue
7919 ac_tf1
=$ac_xdir/conftest9012345
7920 ac_tf2
=$ac_xdir/conftest9012346
7921 (echo 1 >$ac_tf1) 2>/dev
/null
7922 (echo 2 >$ac_tf2) 2>/dev
/null
7923 ac_val
=`cat $ac_tf1 2>/dev/null`
7924 if test ! -f $ac_tf1 ||
test "$ac_val" != 1; then
7925 ac_cv_sys_long_file_names
=no
7926 rm -rf $ac_xdir 2>/dev
/null
7929 rm -rf $ac_xdir 2>/dev
/null
7932 echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
7933 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
7934 if test $ac_cv_sys_long_file_names = yes; then
7936 cat >>confdefs.h
<<\_ACEOF
7937 #define HAVE_LONG_FILE_NAMES 1
7943 #### Choose a window system.
7945 echo "$as_me:$LINENO: checking for X" >&5
7946 echo $ECHO_N "checking for X... $ECHO_C" >&6
7949 # Check whether --with-x or --without-x was given.
7950 if test "${with_x+set}" = set; then
7954 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7955 if test "x$with_x" = xno
; then
7956 # The user explicitly disabled X.
7959 if test "x$x_includes" != xNONE
&& test "x$x_libraries" != xNONE
; then
7960 # Both variables are already set.
7963 if test "${ac_cv_have_x+set}" = set; then
7964 echo $ECHO_N "(cached) $ECHO_C" >&6
7966 # One or both of the vars are not set, and there is no cached value.
7967 ac_x_includes
=no ac_x_libraries
=no
7969 if mkdir conftest.dir
; then
7971 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
7972 cat >Imakefile
<<'_ACEOF'
7974 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
7976 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
7977 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7978 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
7979 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7980 for ac_extension
in a so sl
; do
7981 if test ! -f $ac_im_usrlibdir/libX11.
$ac_extension &&
7982 test -f $ac_im_libdir/libX11.
$ac_extension; then
7983 ac_im_usrlibdir
=$ac_im_libdir; break
7986 # Screen out bogus values from the imake configuration. They are
7987 # bogus both because they are the default anyway, and because
7988 # using them would break gcc on systems where it needs fixed includes.
7989 case $ac_im_incroot in
7991 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
7993 case $ac_im_usrlibdir in
7995 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
8002 # Standard set of common directories for X headers.
8003 # Check X11 before X11Rn because it is often a symlink to the current release.
8015 /usr/local/X11/include
8016 /usr/local/X11R6/include
8017 /usr/local/X11R5/include
8018 /usr/local/X11R4/include
8020 /usr/local/include/X11
8021 /usr/local/include/X11R6
8022 /usr/local/include/X11R5
8023 /usr/local/include/X11R4
8027 /usr/XFree86/include/X11
8031 /usr/unsupported/include
8033 /usr/local/x11r5/include
8034 /usr/lpp/Xamples/include
8036 /usr/openwin/include
8037 /usr/openwin/share/include'
8039 if test "$ac_x_includes" = no
; then
8040 # Guess where to find include files, by looking for Intrinsic.h.
8041 # First, try using that file with no special directory specified.
8042 cat >conftest.
$ac_ext <<_ACEOF
8045 cat confdefs.h
>>conftest.
$ac_ext
8046 cat >>conftest.
$ac_ext <<_ACEOF
8047 /* end confdefs.h. */
8048 #include <X11/Intrinsic.h>
8050 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8051 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8053 grep -v '^ *+' conftest.er1
>conftest.err
8055 cat conftest.err
>&5
8056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8057 (exit $ac_status); } >/dev
/null
; then
8058 if test -s conftest.err
; then
8059 ac_cpp_err
=$ac_c_preproc_warn_flag
8060 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
8067 if test -z "$ac_cpp_err"; then
8068 # We can compile using X headers with no special include directory.
8071 echo "$as_me: failed program was:" >&5
8072 sed 's/^/| /' conftest.
$ac_ext >&5
8074 for ac_dir
in $ac_x_header_dirs; do
8075 if test -r "$ac_dir/X11/Intrinsic.h"; then
8076 ac_x_includes
=$ac_dir
8081 rm -f conftest.err conftest.
$ac_ext
8082 fi # $ac_x_includes = no
8084 if test "$ac_x_libraries" = no
; then
8085 # Check for the libraries.
8086 # See if we find them without any special options.
8087 # Don't add to $LIBS permanently.
8090 cat >conftest.
$ac_ext <<_ACEOF
8093 cat confdefs.h
>>conftest.
$ac_ext
8094 cat >>conftest.
$ac_ext <<_ACEOF
8095 /* end confdefs.h. */
8096 #include <X11/Intrinsic.h>
8105 rm -f conftest.
$ac_objext conftest
$ac_exeext
8106 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8107 (eval $ac_link) 2>conftest.er1
8109 grep -v '^ *+' conftest.er1
>conftest.err
8111 cat conftest.err
>&5
8112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8113 (exit $ac_status); } &&
8114 { ac_try
='test -z "$ac_c_werror_flag"
8115 || test ! -s conftest.err'
8116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8120 (exit $ac_status); }; } &&
8121 { ac_try
='test -s conftest$ac_exeext'
8122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8126 (exit $ac_status); }; }; then
8128 # We can link X programs with no special library path.
8131 echo "$as_me: failed program was:" >&5
8132 sed 's/^/| /' conftest.
$ac_ext >&5
8135 for ac_dir
in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8137 # Don't even attempt the hair of trying to link an X program!
8138 for ac_extension
in a so sl
; do
8139 if test -r $ac_dir/libXt.
$ac_extension; then
8140 ac_x_libraries
=$ac_dir
8146 rm -f conftest.err conftest.
$ac_objext \
8147 conftest
$ac_exeext conftest.
$ac_ext
8148 fi # $ac_x_libraries = no
8150 if test "$ac_x_includes" = no ||
test "$ac_x_libraries" = no
; then
8151 # Didn't find X anywhere. Cache the known absence of X.
8152 ac_cv_have_x
="have_x=no"
8154 # Record where we found X for the cache.
8155 ac_cv_have_x
="have_x=yes \
8156 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
8161 eval "$ac_cv_have_x"
8164 if test "$have_x" != yes; then
8165 echo "$as_me:$LINENO: result: $have_x" >&5
8166 echo "${ECHO_T}$have_x" >&6
8169 # If each of the values was on the command line, it overrides each guess.
8170 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
8171 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
8172 # Update the cache value to reflect the command line values.
8173 ac_cv_have_x
="have_x=yes \
8174 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
8175 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
8176 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
8179 if test "$no_x" = yes; then
8185 if test "${x_libraries}" != NONE
&& test -n "${x_libraries}"; then
8186 LD_SWITCH_X_SITE
=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
8187 LD_SWITCH_X_SITE_AUX
=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
8188 x_default_search_path
=""
8189 for x_library
in `echo ${x_libraries} | sed -e "s/:/ /g"`; do
8191 ${x_library}/X11/%L/%T/%N%C%S:\
8192 ${x_library}/X11/%l/%T/%N%C%S:\
8193 ${x_library}/X11/%T/%N%C%S:\
8194 ${x_library}/X11/%L/%T/%N%S:\
8195 ${x_library}/X11/%l/%T/%N%S:\
8196 ${x_library}/X11/%T/%N%S"
8197 if test x
"${x_default_search_path}" = x
; then
8198 x_default_search_path
=${x_search_path}
8200 x_default_search_path
="${x_search_path}:${x_default_search_path}"
8204 if test "${x_includes}" != NONE
&& test -n "${x_includes}"; then
8205 C_SWITCH_X_SITE
=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
8208 if test x
"${x_includes}" = x
; then
8209 bitmapdir
=/usr
/include
/X11
/bitmaps
8211 # accumulate include directories that have X11 bitmap subdirectories
8213 for bmd
in `echo ${x_includes} | sed -e "s/:/ /g"`; do
8214 if test -d "${bmd}/X11/bitmaps"; then
8215 bmd_acc
="${bmd_acc}:${bmd}/X11/bitmaps"
8217 if test -d "${bmd}/bitmaps"; then
8218 bmd_acc
="${bmd_acc}:${bmd}/bitmaps"
8221 if test ${bmd_acc} != "dummyval"; then
8222 bitmapdir
=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
8226 case "${window_system}" in
8230 case "${with_x_toolkit}" in
8231 athena | lucid
) USE_X_TOOLKIT
=LUCID
;;
8232 motif
) USE_X_TOOLKIT
=MOTIF
;;
8234 USE_X_TOOLKIT
=none
;;
8235 no
) USE_X_TOOLKIT
=none
;;
8236 * ) USE_X_TOOLKIT
=maybe
;;
8246 ### If we're using X11, we should use the X menu package.
8249 yes ) HAVE_MENUS
=yes ;;
8252 if test "${opsys}" = "hpux9"; then
8253 case "${x_libraries}" in
8255 opsysfile
="s/hpux9-x11r4.h"
8260 if test "${opsys}" = "hpux9shr"; then
8261 case "${x_libraries}" in
8263 opsysfile
="s/hpux9shxr4.h"
8268 ### Compute the unexec source name from the object name.
8269 UNEXEC_SRC
="`echo ${unexec} | sed 's/\.o/.c/'`"
8271 # Do the opsystem or machine files prohibit the use of the GNU malloc?
8272 # Assume not, until told otherwise.
8275 echo "$as_me:$LINENO: checking for malloc_get_state" >&5
8276 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6
8277 if test "${ac_cv_func_malloc_get_state+set}" = set; then
8278 echo $ECHO_N "(cached) $ECHO_C" >&6
8280 cat >conftest.
$ac_ext <<_ACEOF
8283 cat confdefs.h
>>conftest.
$ac_ext
8284 cat >>conftest.
$ac_ext <<_ACEOF
8285 /* end confdefs.h. */
8286 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
8287 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8288 #define malloc_get_state innocuous_malloc_get_state
8290 /* System header to define __stub macros and hopefully few prototypes,
8291 which can conflict with char malloc_get_state (); below.
8292 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8293 <limits.h> exists even on freestanding compilers. */
8296 # include <limits.h>
8298 # include <assert.h>
8301 #undef malloc_get_state
8303 /* Override any gcc2 internal prototype to avoid an error. */
8308 /* We use char because int might match the return type of a gcc2
8309 builtin and then its argument prototype would still apply. */
8310 char malloc_get_state ();
8311 /* The GNU C library defines this for functions which it implements
8312 to always fail with ENOSYS. Some functions are actually named
8313 something starting with __ and the normal name is an alias. */
8314 #if defined (__stub_malloc_get_state) || defined (__stub___malloc_get_state)
8317 char (*f) () = malloc_get_state;
8326 return f != malloc_get_state;
8331 rm -f conftest.
$ac_objext conftest
$ac_exeext
8332 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8333 (eval $ac_link) 2>conftest.er1
8335 grep -v '^ *+' conftest.er1
>conftest.err
8337 cat conftest.err
>&5
8338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8339 (exit $ac_status); } &&
8340 { ac_try
='test -z "$ac_c_werror_flag"
8341 || test ! -s conftest.err'
8342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8346 (exit $ac_status); }; } &&
8347 { ac_try
='test -s conftest$ac_exeext'
8348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8352 (exit $ac_status); }; }; then
8353 ac_cv_func_malloc_get_state
=yes
8355 echo "$as_me: failed program was:" >&5
8356 sed 's/^/| /' conftest.
$ac_ext >&5
8358 ac_cv_func_malloc_get_state
=no
8360 rm -f conftest.err conftest.
$ac_objext \
8361 conftest
$ac_exeext conftest.
$ac_ext
8363 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
8364 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6
8365 if test $ac_cv_func_malloc_get_state = yes; then
8371 echo "$as_me:$LINENO: checking for malloc_set_state" >&5
8372 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6
8373 if test "${ac_cv_func_malloc_set_state+set}" = set; then
8374 echo $ECHO_N "(cached) $ECHO_C" >&6
8376 cat >conftest.
$ac_ext <<_ACEOF
8379 cat confdefs.h
>>conftest.
$ac_ext
8380 cat >>conftest.
$ac_ext <<_ACEOF
8381 /* end confdefs.h. */
8382 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
8383 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8384 #define malloc_set_state innocuous_malloc_set_state
8386 /* System header to define __stub macros and hopefully few prototypes,
8387 which can conflict with char malloc_set_state (); below.
8388 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8389 <limits.h> exists even on freestanding compilers. */
8392 # include <limits.h>
8394 # include <assert.h>
8397 #undef malloc_set_state
8399 /* Override any gcc2 internal prototype to avoid an error. */
8404 /* We use char because int might match the return type of a gcc2
8405 builtin and then its argument prototype would still apply. */
8406 char malloc_set_state ();
8407 /* The GNU C library defines this for functions which it implements
8408 to always fail with ENOSYS. Some functions are actually named
8409 something starting with __ and the normal name is an alias. */
8410 #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state)
8413 char (*f) () = malloc_set_state;
8422 return f != malloc_set_state;
8427 rm -f conftest.
$ac_objext conftest
$ac_exeext
8428 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8429 (eval $ac_link) 2>conftest.er1
8431 grep -v '^ *+' conftest.er1
>conftest.err
8433 cat conftest.err
>&5
8434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8435 (exit $ac_status); } &&
8436 { ac_try
='test -z "$ac_c_werror_flag"
8437 || test ! -s conftest.err'
8438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8442 (exit $ac_status); }; } &&
8443 { ac_try
='test -s conftest$ac_exeext'
8444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8448 (exit $ac_status); }; }; then
8449 ac_cv_func_malloc_set_state
=yes
8451 echo "$as_me: failed program was:" >&5
8452 sed 's/^/| /' conftest.
$ac_ext >&5
8454 ac_cv_func_malloc_set_state
=no
8456 rm -f conftest.err conftest.
$ac_objext \
8457 conftest
$ac_exeext conftest.
$ac_ext
8459 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
8460 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6
8461 if test $ac_cv_func_malloc_set_state = yes; then
8467 echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
8468 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6
8469 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
8470 echo $ECHO_N "(cached) $ECHO_C" >&6
8472 cat >conftest.
$ac_ext <<_ACEOF
8475 cat confdefs.h
>>conftest.
$ac_ext
8476 cat >>conftest.
$ac_ext <<_ACEOF
8477 /* end confdefs.h. */
8478 extern void (* __after_morecore_hook)();
8482 __after_morecore_hook = 0
8487 rm -f conftest.
$ac_objext conftest
$ac_exeext
8488 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8489 (eval $ac_link) 2>conftest.er1
8491 grep -v '^ *+' conftest.er1
>conftest.err
8493 cat conftest.err
>&5
8494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8495 (exit $ac_status); } &&
8496 { ac_try
='test -z "$ac_c_werror_flag"
8497 || test ! -s conftest.err'
8498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8502 (exit $ac_status); }; } &&
8503 { ac_try
='test -s conftest$ac_exeext'
8504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8508 (exit $ac_status); }; }; then
8509 emacs_cv_var___after_morecore_hook
=yes
8511 echo "$as_me: failed program was:" >&5
8512 sed 's/^/| /' conftest.
$ac_ext >&5
8514 emacs_cv_var___after_morecore_hook
=no
8516 rm -f conftest.err conftest.
$ac_objext \
8517 conftest
$ac_exeext conftest.
$ac_ext
8519 echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
8520 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6
8521 if test $emacs_cv_var___after_morecore_hook = no
; then
8524 if test "${system_malloc}" = "yes"; then
8527 (The GNU allocators don't work with this system configuration.)"
8529 if test "$doug_lea_malloc" = "yes" ; then
8530 if test "$GNU_MALLOC" = yes ; then
8532 (Using Doug Lea's new malloc from the GNU C Library.)"
8535 cat >>confdefs.h
<<\_ACEOF
8536 #define DOUG_LEA_MALLOC 1
8541 if test x
"${REL_ALLOC}" = x
; then
8542 REL_ALLOC
=${GNU_MALLOC}
8548 for ac_header
in stdlib.h unistd.h
8550 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8551 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8552 echo "$as_me:$LINENO: checking for $ac_header" >&5
8553 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8554 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8555 echo $ECHO_N "(cached) $ECHO_C" >&6
8557 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8558 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8560 # Is the header compilable?
8561 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8562 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8563 cat >conftest.
$ac_ext <<_ACEOF
8566 cat confdefs.h
>>conftest.
$ac_ext
8567 cat >>conftest.
$ac_ext <<_ACEOF
8568 /* end confdefs.h. */
8569 $ac_includes_default
8570 #include <$ac_header>
8572 rm -f conftest.
$ac_objext
8573 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8574 (eval $ac_compile) 2>conftest.er1
8576 grep -v '^ *+' conftest.er1
>conftest.err
8578 cat conftest.err
>&5
8579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8580 (exit $ac_status); } &&
8581 { ac_try
='test -z "$ac_c_werror_flag"
8582 || test ! -s conftest.err'
8583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8587 (exit $ac_status); }; } &&
8588 { ac_try
='test -s conftest.$ac_objext'
8589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8593 (exit $ac_status); }; }; then
8594 ac_header_compiler
=yes
8596 echo "$as_me: failed program was:" >&5
8597 sed 's/^/| /' conftest.
$ac_ext >&5
8599 ac_header_compiler
=no
8601 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8602 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8603 echo "${ECHO_T}$ac_header_compiler" >&6
8605 # Is the header present?
8606 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8607 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8608 cat >conftest.
$ac_ext <<_ACEOF
8611 cat confdefs.h
>>conftest.
$ac_ext
8612 cat >>conftest.
$ac_ext <<_ACEOF
8613 /* end confdefs.h. */
8614 #include <$ac_header>
8616 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8617 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8619 grep -v '^ *+' conftest.er1
>conftest.err
8621 cat conftest.err
>&5
8622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8623 (exit $ac_status); } >/dev
/null
; then
8624 if test -s conftest.err
; then
8625 ac_cpp_err
=$ac_c_preproc_warn_flag
8626 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
8633 if test -z "$ac_cpp_err"; then
8634 ac_header_preproc
=yes
8636 echo "$as_me: failed program was:" >&5
8637 sed 's/^/| /' conftest.
$ac_ext >&5
8639 ac_header_preproc
=no
8641 rm -f conftest.err conftest.
$ac_ext
8642 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8643 echo "${ECHO_T}$ac_header_preproc" >&6
8645 # So? What about this header?
8646 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8648 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8649 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8650 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8651 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8652 ac_header_preproc
=yes
8655 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8656 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8657 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8658 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8659 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8660 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8661 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8662 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8663 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8664 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8665 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8666 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8669 ## ------------------------------------------ ##
8670 ## Report this to the AC_PACKAGE_NAME lists. ##
8671 ## ------------------------------------------ ##
8674 sed "s/^/$as_me: WARNING: /" >&2
8677 echo "$as_me:$LINENO: checking for $ac_header" >&5
8678 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8679 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8680 echo $ECHO_N "(cached) $ECHO_C" >&6
8682 eval "$as_ac_Header=\$ac_header_preproc"
8684 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8685 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8688 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8689 cat >>confdefs.h
<<_ACEOF
8690 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8698 for ac_func
in getpagesize
8700 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8701 echo "$as_me:$LINENO: checking for $ac_func" >&5
8702 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8703 if eval "test \"\${$as_ac_var+set}\" = set"; then
8704 echo $ECHO_N "(cached) $ECHO_C" >&6
8706 cat >conftest.
$ac_ext <<_ACEOF
8709 cat confdefs.h
>>conftest.
$ac_ext
8710 cat >>conftest.
$ac_ext <<_ACEOF
8711 /* end confdefs.h. */
8712 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8713 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8714 #define $ac_func innocuous_$ac_func
8716 /* System header to define __stub macros and hopefully few prototypes,
8717 which can conflict with char $ac_func (); below.
8718 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8719 <limits.h> exists even on freestanding compilers. */
8722 # include <limits.h>
8724 # include <assert.h>
8729 /* Override any gcc2 internal prototype to avoid an error. */
8734 /* We use char because int might match the return type of a gcc2
8735 builtin and then its argument prototype would still apply. */
8737 /* The GNU C library defines this for functions which it implements
8738 to always fail with ENOSYS. Some functions are actually named
8739 something starting with __ and the normal name is an alias. */
8740 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8743 char (*f) () = $ac_func;
8752 return f != $ac_func;
8757 rm -f conftest.
$ac_objext conftest
$ac_exeext
8758 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8759 (eval $ac_link) 2>conftest.er1
8761 grep -v '^ *+' conftest.er1
>conftest.err
8763 cat conftest.err
>&5
8764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8765 (exit $ac_status); } &&
8766 { ac_try
='test -z "$ac_c_werror_flag"
8767 || test ! -s conftest.err'
8768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8772 (exit $ac_status); }; } &&
8773 { ac_try
='test -s conftest$ac_exeext'
8774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8778 (exit $ac_status); }; }; then
8779 eval "$as_ac_var=yes"
8781 echo "$as_me: failed program was:" >&5
8782 sed 's/^/| /' conftest.
$ac_ext >&5
8784 eval "$as_ac_var=no"
8786 rm -f conftest.err conftest.
$ac_objext \
8787 conftest
$ac_exeext conftest.
$ac_ext
8789 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8790 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8791 if test `eval echo '${'$as_ac_var'}'` = yes; then
8792 cat >>confdefs.h
<<_ACEOF
8793 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8799 echo "$as_me:$LINENO: checking for working mmap" >&5
8800 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
8801 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
8802 echo $ECHO_N "(cached) $ECHO_C" >&6
8804 if test "$cross_compiling" = yes; then
8805 ac_cv_func_mmap_fixed_mapped
=no
8807 cat >conftest.
$ac_ext <<_ACEOF
8810 cat confdefs.h
>>conftest.
$ac_ext
8811 cat >>conftest.
$ac_ext <<_ACEOF
8812 /* end confdefs.h. */
8813 $ac_includes_default
8814 /* malloc might have been renamed as rpl_malloc. */
8817 /* Thanks to Mike Haertel and Jim Avera for this test.
8818 Here is a matrix of mmap possibilities:
8819 mmap private not fixed
8820 mmap private fixed at somewhere currently unmapped
8821 mmap private fixed at somewhere already mapped
8822 mmap shared not fixed
8823 mmap shared fixed at somewhere currently unmapped
8824 mmap shared fixed at somewhere already mapped
8825 For private mappings, we should verify that changes cannot be read()
8826 back from the file, nor mmap's back from the file at a different
8827 address. (There have been systems where private was not correctly
8828 implemented like the infamous i386 svr4.0, and systems where the
8829 VM page cache was not coherent with the file system buffer cache
8830 like early versions of FreeBSD and possibly contemporary NetBSD.)
8831 For shared mappings, we should conversely verify that changes get
8832 propagated back to all the places they're supposed to be.
8834 Grep wants private fixed already mapped.
8835 The main things grep needs to know about mmap are:
8836 * does it exist and is it safe to write into the mmap'd area
8837 * how to use it (BSD variants) */
8840 #include <sys/mman.h>
8842 #if !STDC_HEADERS && !HAVE_STDLIB_H
8846 /* This mess was copied from the GNU getpagesize.h. */
8847 #if !HAVE_GETPAGESIZE
8848 /* Assume that all systems that can run configure have sys/param.h. */
8849 # if !HAVE_SYS_PARAM_H
8850 # define HAVE_SYS_PARAM_H 1
8853 # ifdef _SC_PAGESIZE
8854 # define getpagesize() sysconf(_SC_PAGESIZE)
8855 # else /* no _SC_PAGESIZE */
8856 # if HAVE_SYS_PARAM_H
8857 # include <sys/param.h>
8858 # ifdef EXEC_PAGESIZE
8859 # define getpagesize() EXEC_PAGESIZE
8860 # else /* no EXEC_PAGESIZE */
8862 # define getpagesize() NBPG * CLSIZE
8865 # endif /* no CLSIZE */
8866 # else /* no NBPG */
8868 # define getpagesize() NBPC
8869 # else /* no NBPC */
8871 # define getpagesize() PAGESIZE
8872 # endif /* PAGESIZE */
8873 # endif /* no NBPC */
8874 # endif /* no NBPG */
8875 # endif /* no EXEC_PAGESIZE */
8876 # else /* no HAVE_SYS_PARAM_H */
8877 # define getpagesize() 8192 /* punt totally */
8878 # endif /* no HAVE_SYS_PARAM_H */
8879 # endif /* no _SC_PAGESIZE */
8881 #endif /* no HAVE_GETPAGESIZE */
8886 char *data, *data2, *data3;
8890 pagesize = getpagesize ();
8892 /* First, make a file with some known garbage in it. */
8893 data = (char *) malloc (pagesize);
8896 for (i = 0; i < pagesize; ++i)
8897 *(data + i) = rand ();
8899 fd = creat ("conftest.mmap", 0600);
8902 if (write (fd, data, pagesize) != pagesize)
8906 /* Next, try to mmap the file at a fixed address which already has
8907 something else allocated at it. If we can, also make sure that
8908 we see the same garbage. */
8909 fd = open ("conftest.mmap", O_RDWR);
8912 data2 = (char *) malloc (2 * pagesize);
8915 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
8916 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8917 MAP_PRIVATE | MAP_FIXED, fd, 0L))
8919 for (i = 0; i < pagesize; ++i)
8920 if (*(data + i) != *(data2 + i))
8923 /* Finally, make sure that changes to the mapped area do not
8924 percolate back to the file as seen by read(). (This is a bug on
8925 some variants of i386 svr4.0.) */
8926 for (i = 0; i < pagesize; ++i)
8927 *(data2 + i) = *(data2 + i) + 1;
8928 data3 = (char *) malloc (pagesize);
8931 if (read (fd, data3, pagesize) != pagesize)
8933 for (i = 0; i < pagesize; ++i)
8934 if (*(data + i) != *(data3 + i))
8940 rm -f conftest
$ac_exeext
8941 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8942 (eval $ac_link) 2>&5
8944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8945 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
8946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8950 (exit $ac_status); }; }; then
8951 ac_cv_func_mmap_fixed_mapped
=yes
8953 echo "$as_me: program exited with status $ac_status" >&5
8954 echo "$as_me: failed program was:" >&5
8955 sed 's/^/| /' conftest.
$ac_ext >&5
8958 ac_cv_func_mmap_fixed_mapped
=no
8960 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
8963 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
8964 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
8965 if test $ac_cv_func_mmap_fixed_mapped = yes; then
8967 cat >>confdefs.h
<<\_ACEOF
8974 if test $use_mmap_for_buffers = yes; then
8978 LIBS
="$libsrc_libs $LIBS"
8981 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
8982 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
8983 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
8984 echo $ECHO_N "(cached) $ECHO_C" >&6
8986 ac_check_lib_save_LIBS
=$LIBS
8988 cat >conftest.
$ac_ext <<_ACEOF
8991 cat confdefs.h
>>conftest.
$ac_ext
8992 cat >>conftest.
$ac_ext <<_ACEOF
8993 /* end confdefs.h. */
8995 /* Override any gcc2 internal prototype to avoid an error. */
8999 /* We use char because int might match the return type of a gcc2
9000 builtin and then its argument prototype would still apply. */
9010 rm -f conftest.
$ac_objext conftest
$ac_exeext
9011 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9012 (eval $ac_link) 2>conftest.er1
9014 grep -v '^ *+' conftest.er1
>conftest.err
9016 cat conftest.err
>&5
9017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9018 (exit $ac_status); } &&
9019 { ac_try
='test -z "$ac_c_werror_flag"
9020 || test ! -s conftest.err'
9021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9025 (exit $ac_status); }; } &&
9026 { ac_try
='test -s conftest$ac_exeext'
9027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9031 (exit $ac_status); }; }; then
9032 ac_cv_lib_dnet_dnet_ntoa
=yes
9034 echo "$as_me: failed program was:" >&5
9035 sed 's/^/| /' conftest.
$ac_ext >&5
9037 ac_cv_lib_dnet_dnet_ntoa
=no
9039 rm -f conftest.err conftest.
$ac_objext \
9040 conftest
$ac_exeext conftest.
$ac_ext
9041 LIBS
=$ac_check_lib_save_LIBS
9043 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
9044 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
9045 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
9046 cat >>confdefs.h
<<_ACEOF
9047 #define HAVE_LIBDNET 1
9055 echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
9056 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6
9057 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
9058 echo $ECHO_N "(cached) $ECHO_C" >&6
9060 ac_check_lib_save_LIBS
=$LIBS
9062 cat >conftest.
$ac_ext <<_ACEOF
9065 cat confdefs.h
>>conftest.
$ac_ext
9066 cat >>conftest.
$ac_ext <<_ACEOF
9067 /* end confdefs.h. */
9078 rm -f conftest.
$ac_objext conftest
$ac_exeext
9079 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9080 (eval $ac_link) 2>conftest.er1
9082 grep -v '^ *+' conftest.er1
>conftest.err
9084 cat conftest.err
>&5
9085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9086 (exit $ac_status); } &&
9087 { ac_try
='test -z "$ac_c_werror_flag"
9088 || test ! -s conftest.err'
9089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9093 (exit $ac_status); }; } &&
9094 { ac_try
='test -s conftest$ac_exeext'
9095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9099 (exit $ac_status); }; }; then
9100 ac_cv_lib_Xbsd_main
=yes
9102 echo "$as_me: failed program was:" >&5
9103 sed 's/^/| /' conftest.
$ac_ext >&5
9105 ac_cv_lib_Xbsd_main
=no
9107 rm -f conftest.err conftest.
$ac_objext \
9108 conftest
$ac_exeext conftest.
$ac_ext
9109 LIBS
=$ac_check_lib_save_LIBS
9111 echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
9112 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6
9113 if test $ac_cv_lib_Xbsd_main = yes; then
9114 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -lXbsd"
9119 echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
9120 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6
9121 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
9122 echo $ECHO_N "(cached) $ECHO_C" >&6
9124 ac_check_lib_save_LIBS
=$LIBS
9125 LIBS
="-lpthreads $LIBS"
9126 cat >conftest.
$ac_ext <<_ACEOF
9129 cat confdefs.h
>>conftest.
$ac_ext
9130 cat >>conftest.
$ac_ext <<_ACEOF
9131 /* end confdefs.h. */
9133 /* Override any gcc2 internal prototype to avoid an error. */
9137 /* We use char because int might match the return type of a gcc2
9138 builtin and then its argument prototype would still apply. */
9148 rm -f conftest.
$ac_objext conftest
$ac_exeext
9149 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9150 (eval $ac_link) 2>conftest.er1
9152 grep -v '^ *+' conftest.er1
>conftest.err
9154 cat conftest.err
>&5
9155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9156 (exit $ac_status); } &&
9157 { ac_try
='test -z "$ac_c_werror_flag"
9158 || test ! -s conftest.err'
9159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9163 (exit $ac_status); }; } &&
9164 { ac_try
='test -s conftest$ac_exeext'
9165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9169 (exit $ac_status); }; }; then
9170 ac_cv_lib_pthreads_cma_open
=yes
9172 echo "$as_me: failed program was:" >&5
9173 sed 's/^/| /' conftest.
$ac_ext >&5
9175 ac_cv_lib_pthreads_cma_open
=no
9177 rm -f conftest.err conftest.
$ac_objext \
9178 conftest
$ac_exeext conftest.
$ac_ext
9179 LIBS
=$ac_check_lib_save_LIBS
9181 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
9182 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6
9183 if test $ac_cv_lib_pthreads_cma_open = yes; then
9184 cat >>confdefs.h
<<_ACEOF
9185 #define HAVE_LIBPTHREADS 1
9188 LIBS
="-lpthreads $LIBS"
9193 echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
9194 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6
9195 if test -d /usr
/X386
/include
; then
9197 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
9201 echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
9202 echo "${ECHO_T}$HAVE_XFREE386" >&6
9207 echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
9208 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6
9209 if test "${gdb_cv_bigtoc+set}" = set; then
9210 echo $ECHO_N "(cached) $ECHO_C" >&6
9214 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
9215 *) gdb_cv_bigtoc
=-bbigtoc ;;
9218 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
9219 cat >conftest.
$ac_ext <<_ACEOF
9222 cat confdefs.h
>>conftest.
$ac_ext
9223 cat >>conftest.
$ac_ext <<_ACEOF
9224 /* end confdefs.h. */
9234 rm -f conftest.
$ac_objext conftest
$ac_exeext
9235 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9236 (eval $ac_link) 2>conftest.er1
9238 grep -v '^ *+' conftest.er1
>conftest.err
9240 cat conftest.err
>&5
9241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9242 (exit $ac_status); } &&
9243 { ac_try
='test -z "$ac_c_werror_flag"
9244 || test ! -s conftest.err'
9245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9249 (exit $ac_status); }; } &&
9250 { ac_try
='test -s conftest$ac_exeext'
9251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9255 (exit $ac_status); }; }; then
9258 echo "$as_me: failed program was:" >&5
9259 sed 's/^/| /' conftest.
$ac_ext >&5
9263 rm -f conftest.err conftest.
$ac_objext \
9264 conftest
$ac_exeext conftest.
$ac_ext
9267 echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
9268 echo "${ECHO_T}$gdb_cv_bigtoc" >&6
9272 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
9273 # used for the tests that follow. We set them back to REAL_CFLAGS and
9274 # REAL_CPPFLAGS later on.
9276 REAL_CPPFLAGS
="$CPPFLAGS"
9278 if test "${HAVE_X11}" = "yes"; then
9279 DEFS
="$C_SWITCH_X_SITE $DEFS"
9280 LDFLAGS
="$LDFLAGS $LD_SWITCH_X_SITE"
9282 CFLAGS
="$C_SWITCH_X_SITE $CFLAGS"
9283 CPPFLAGS
="$C_SWITCH_X_SITE $CPPFLAGS"
9285 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
9286 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
9287 # but it's more convenient here to set LD_RUN_PATH
9288 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
9289 if test "${x_libraries}" != NONE
&& test -n "${x_libraries}"; then
9290 LD_RUN_PATH
=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
9294 if test "${opsys}" = "gnu-linux"; then
9295 echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
9296 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6
9297 cat >conftest.
$ac_ext <<_ACEOF
9300 cat confdefs.h
>>conftest.
$ac_ext
9301 cat >>conftest.
$ac_ext <<_ACEOF
9302 /* end confdefs.h. */
9307 XOpenDisplay ("foo");
9312 rm -f conftest.
$ac_objext conftest
$ac_exeext
9313 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9314 (eval $ac_link) 2>conftest.er1
9316 grep -v '^ *+' conftest.er1
>conftest.err
9318 cat conftest.err
>&5
9319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9320 (exit $ac_status); } &&
9321 { ac_try
='test -z "$ac_c_werror_flag"
9322 || test ! -s conftest.err'
9323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9327 (exit $ac_status); }; } &&
9328 { ac_try
='test -s conftest$ac_exeext'
9329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9333 (exit $ac_status); }; }; then
9334 xlinux_first_failure
=no
9336 echo "$as_me: failed program was:" >&5
9337 sed 's/^/| /' conftest.
$ac_ext >&5
9339 xlinux_first_failure
=yes
9341 rm -f conftest.err conftest.
$ac_objext \
9342 conftest
$ac_exeext conftest.
$ac_ext
9343 if test "${xlinux_first_failure}" = "yes"; then
9344 OLD_LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE"
9345 OLD_C_SWITCH_X_SITE
="$C_SWITCH_X_SITE"
9346 OLD_CPPFLAGS
="$CPPFLAGS"
9348 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -b i486-linuxaout"
9349 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE -b i486-linuxaout"
9350 CPPFLAGS
="$CPPFLAGS -b i486-linuxaout"
9351 LIBS
="$LIBS -b i486-linuxaout"
9352 cat >conftest.
$ac_ext <<_ACEOF
9355 cat confdefs.h
>>conftest.
$ac_ext
9356 cat >>conftest.
$ac_ext <<_ACEOF
9357 /* end confdefs.h. */
9362 XOpenDisplay ("foo");
9367 rm -f conftest.
$ac_objext conftest
$ac_exeext
9368 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9369 (eval $ac_link) 2>conftest.er1
9371 grep -v '^ *+' conftest.er1
>conftest.err
9373 cat conftest.err
>&5
9374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9375 (exit $ac_status); } &&
9376 { ac_try
='test -z "$ac_c_werror_flag"
9377 || test ! -s conftest.err'
9378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9382 (exit $ac_status); }; } &&
9383 { ac_try
='test -s conftest$ac_exeext'
9384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9388 (exit $ac_status); }; }; then
9389 xlinux_second_failure
=no
9391 echo "$as_me: failed program was:" >&5
9392 sed 's/^/| /' conftest.
$ac_ext >&5
9394 xlinux_second_failure
=yes
9396 rm -f conftest.err conftest.
$ac_objext \
9397 conftest
$ac_exeext conftest.
$ac_ext
9398 if test "${xlinux_second_failure}" = "yes"; then
9399 # If we get the same failure with -b, there is no use adding -b.
9400 # So take it out. This plays safe.
9401 LD_SWITCH_X_SITE
="$OLD_LD_SWITCH_X_SITE"
9402 C_SWITCH_X_SITE
="$OLD_C_SWITCH_X_SITE"
9403 CPPFLAGS
="$OLD_CPPFLAGS"
9405 echo "$as_me:$LINENO: result: no" >&5
9406 echo "${ECHO_T}no" >&6
9408 echo "$as_me:$LINENO: result: yes" >&5
9409 echo "${ECHO_T}yes" >&6
9412 echo "$as_me:$LINENO: result: no" >&5
9413 echo "${ECHO_T}no" >&6
9417 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
9418 # header files included from there.
9419 echo "$as_me:$LINENO: checking for Xkb" >&5
9420 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6
9421 cat >conftest.
$ac_ext <<_ACEOF
9424 cat confdefs.h
>>conftest.
$ac_ext
9425 cat >>conftest.
$ac_ext <<_ACEOF
9426 /* end confdefs.h. */
9427 #include <X11/Xlib.h>
9428 #include <X11/XKBlib.h>
9432 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
9437 rm -f conftest.
$ac_objext conftest
$ac_exeext
9438 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9439 (eval $ac_link) 2>conftest.er1
9441 grep -v '^ *+' conftest.er1
>conftest.err
9443 cat conftest.err
>&5
9444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9445 (exit $ac_status); } &&
9446 { ac_try
='test -z "$ac_c_werror_flag"
9447 || test ! -s conftest.err'
9448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9452 (exit $ac_status); }; } &&
9453 { ac_try
='test -s conftest$ac_exeext'
9454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9458 (exit $ac_status); }; }; then
9461 echo "$as_me: failed program was:" >&5
9462 sed 's/^/| /' conftest.
$ac_ext >&5
9466 rm -f conftest.err conftest.
$ac_objext \
9467 conftest
$ac_exeext conftest.
$ac_ext
9468 echo "$as_me:$LINENO: result: $emacs_xkb" >&5
9469 echo "${ECHO_T}$emacs_xkb" >&6
9470 if test $emacs_xkb = yes; then
9472 cat >>confdefs.h
<<\_ACEOF
9473 #define HAVE_XKBGETKEYBOARD 1
9482 for ac_func
in XrmSetDatabase XScreenResourceString \
9483 XScreenNumberOfScreen XSetWMProtocols
9485 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9486 echo "$as_me:$LINENO: checking for $ac_func" >&5
9487 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9488 if eval "test \"\${$as_ac_var+set}\" = set"; then
9489 echo $ECHO_N "(cached) $ECHO_C" >&6
9491 cat >conftest.
$ac_ext <<_ACEOF
9494 cat confdefs.h
>>conftest.
$ac_ext
9495 cat >>conftest.
$ac_ext <<_ACEOF
9496 /* end confdefs.h. */
9497 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9498 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9499 #define $ac_func innocuous_$ac_func
9501 /* System header to define __stub macros and hopefully few prototypes,
9502 which can conflict with char $ac_func (); below.
9503 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9504 <limits.h> exists even on freestanding compilers. */
9507 # include <limits.h>
9509 # include <assert.h>
9514 /* Override any gcc2 internal prototype to avoid an error. */
9519 /* We use char because int might match the return type of a gcc2
9520 builtin and then its argument prototype would still apply. */
9522 /* The GNU C library defines this for functions which it implements
9523 to always fail with ENOSYS. Some functions are actually named
9524 something starting with __ and the normal name is an alias. */
9525 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9528 char (*f) () = $ac_func;
9537 return f != $ac_func;
9542 rm -f conftest.
$ac_objext conftest
$ac_exeext
9543 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9544 (eval $ac_link) 2>conftest.er1
9546 grep -v '^ *+' conftest.er1
>conftest.err
9548 cat conftest.err
>&5
9549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9550 (exit $ac_status); } &&
9551 { ac_try
='test -z "$ac_c_werror_flag"
9552 || test ! -s conftest.err'
9553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9557 (exit $ac_status); }; } &&
9558 { ac_try
='test -s conftest$ac_exeext'
9559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9563 (exit $ac_status); }; }; then
9564 eval "$as_ac_var=yes"
9566 echo "$as_me: failed program was:" >&5
9567 sed 's/^/| /' conftest.
$ac_ext >&5
9569 eval "$as_ac_var=no"
9571 rm -f conftest.err conftest.
$ac_objext \
9572 conftest
$ac_exeext conftest.
$ac_ext
9574 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9575 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9576 if test `eval echo '${'$as_ac_var'}'` = yes; then
9577 cat >>confdefs.h
<<_ACEOF
9578 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9586 if test "${window_system}" = "x11"; then
9587 echo "$as_me:$LINENO: checking X11 version 6" >&5
9588 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6
9589 if test "${emacs_cv_x11_version_6+set}" = set; then
9590 echo $ECHO_N "(cached) $ECHO_C" >&6
9592 cat >conftest.
$ac_ext <<_ACEOF
9595 cat confdefs.h
>>conftest.
$ac_ext
9596 cat >>conftest.
$ac_ext <<_ACEOF
9597 /* end confdefs.h. */
9598 #include <X11/Xlib.h>
9602 #if XlibSpecificationRelease < 6
9610 rm -f conftest.
$ac_objext conftest
$ac_exeext
9611 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9612 (eval $ac_link) 2>conftest.er1
9614 grep -v '^ *+' conftest.er1
>conftest.err
9616 cat conftest.err
>&5
9617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9618 (exit $ac_status); } &&
9619 { ac_try
='test -z "$ac_c_werror_flag"
9620 || test ! -s conftest.err'
9621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9625 (exit $ac_status); }; } &&
9626 { ac_try
='test -s conftest$ac_exeext'
9627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9631 (exit $ac_status); }; }; then
9632 emacs_cv_x11_version_6
=yes
9634 echo "$as_me: failed program was:" >&5
9635 sed 's/^/| /' conftest.
$ac_ext >&5
9637 emacs_cv_x11_version_6
=no
9639 rm -f conftest.err conftest.
$ac_objext \
9640 conftest
$ac_exeext conftest.
$ac_ext
9643 if test $emacs_cv_x11_version_6 = yes; then
9644 echo "$as_me:$LINENO: result: 6 or newer" >&5
9645 echo "${ECHO_T}6 or newer" >&6
9647 cat >>confdefs.h
<<\_ACEOF
9648 #define HAVE_X11R6 1
9652 echo "$as_me:$LINENO: result: before 6" >&5
9653 echo "${ECHO_T}before 6" >&6
9657 if test "${window_system}" = "x11"; then
9658 echo "$as_me:$LINENO: checking X11 version 5" >&5
9659 echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6
9660 if test "${emacs_cv_x11_version_5+set}" = set; then
9661 echo $ECHO_N "(cached) $ECHO_C" >&6
9663 cat >conftest.
$ac_ext <<_ACEOF
9666 cat confdefs.h
>>conftest.
$ac_ext
9667 cat >>conftest.
$ac_ext <<_ACEOF
9668 /* end confdefs.h. */
9669 #include <X11/Xlib.h>
9673 #if XlibSpecificationRelease < 5
9681 rm -f conftest.
$ac_objext conftest
$ac_exeext
9682 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9683 (eval $ac_link) 2>conftest.er1
9685 grep -v '^ *+' conftest.er1
>conftest.err
9687 cat conftest.err
>&5
9688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9689 (exit $ac_status); } &&
9690 { ac_try
='test -z "$ac_c_werror_flag"
9691 || test ! -s conftest.err'
9692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9696 (exit $ac_status); }; } &&
9697 { ac_try
='test -s conftest$ac_exeext'
9698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9702 (exit $ac_status); }; }; then
9703 emacs_cv_x11_version_5
=yes
9705 echo "$as_me: failed program was:" >&5
9706 sed 's/^/| /' conftest.
$ac_ext >&5
9708 emacs_cv_x11_version_5
=no
9710 rm -f conftest.err conftest.
$ac_objext \
9711 conftest
$ac_exeext conftest.
$ac_ext
9714 if test $emacs_cv_x11_version_5 = yes; then
9715 echo "$as_me:$LINENO: result: 5 or newer" >&5
9716 echo "${ECHO_T}5 or newer" >&6
9719 cat >>confdefs.h
<<\_ACEOF
9720 #define HAVE_X11R5 1
9725 echo "$as_me:$LINENO: result: before 5" >&5
9726 echo "${ECHO_T}before 5" >&6
9733 if test "${with_gtk}" = "yes" ||
test "$USE_X_TOOLKIT" = "gtk"; then
9734 if test "$USE_X_TOOLKIT" != "none" && test "$USE_X_TOOLKIT" != "maybe"; then
9735 { { echo "$as_me:$LINENO: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&5
9736 echo "$as_me: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&2;}
9737 { (exit 1); exit 1; }; };
9741 GTK_MODULES
="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
9743 if test "X${with_pkg_config_prog}" != X
; then
9744 PKG_CONFIG
="${with_pkg_config_prog}"
9749 if test -z "$PKG_CONFIG"; then
9750 # Extract the first word of "pkg-config", so it can be a program name with args.
9751 set dummy pkg-config
; ac_word
=$2
9752 echo "$as_me:$LINENO: checking for $ac_word" >&5
9753 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9754 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
9755 echo $ECHO_N "(cached) $ECHO_C" >&6
9759 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
9762 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9766 test -z "$as_dir" && as_dir
=.
9767 for ac_exec_ext
in '' $ac_executable_extensions; do
9768 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9769 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
9770 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9776 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
9780 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
9782 if test -n "$PKG_CONFIG"; then
9783 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
9784 echo "${ECHO_T}$PKG_CONFIG" >&6
9786 echo "$as_me:$LINENO: result: no" >&5
9787 echo "${ECHO_T}no" >&6
9792 if test "$PKG_CONFIG" = "no" ; then
9793 echo "*** The pkg-config script could not be found. Make sure it is"
9794 echo "*** in your path, or give the full path to pkg-config with"
9795 echo "*** the PKG_CONFIG environment variable or --with-pkg-config-prog."
9796 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
9798 PKG_CONFIG_MIN_VERSION
=0.9.0
9799 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9800 echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
9801 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6
9803 if $PKG_CONFIG --exists "$GTK_MODULES" ; then
9804 echo "$as_me:$LINENO: result: yes" >&5
9805 echo "${ECHO_T}yes" >&6
9808 echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
9809 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6
9810 GTK_CFLAGS
=`$PKG_CONFIG --cflags "$GTK_MODULES"`
9811 echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
9812 echo "${ECHO_T}$GTK_CFLAGS" >&6
9814 echo "$as_me:$LINENO: checking GTK_LIBS" >&5
9815 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6
9816 GTK_LIBS
=`$PKG_CONFIG --libs "$GTK_MODULES"`
9817 echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
9818 echo "${ECHO_T}$GTK_LIBS" >&6
9822 ## If we have a custom action on failure, don't print errors, but
9823 ## do set a variable so people can do so.
9824 GTK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
9825 echo $GTK_PKG_ERRORS
9831 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9832 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9836 if test $succeeded = yes; then
9839 { { echo "$as_me:$LINENO: error: Library requirements ($GTK_MODULES) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
9840 echo "$as_me: error: Library requirements ($GTK_MODULES) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
9841 { (exit 1); exit 1; }; }
9846 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $GTK_CFLAGS"
9847 CFLAGS
="$CFLAGS $GTK_CFLAGS"
9848 LIBS
="$GTK_LIBS $LIBS"
9851 cat >>confdefs.h
<<\_ACEOF
9857 with_toolkit_scroll_bars
=yes
9859 HAVE_GTK_MULTIDISPLAY
=no
9861 for ac_func
in gdk_display_open
9863 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9864 echo "$as_me:$LINENO: checking for $ac_func" >&5
9865 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9866 if eval "test \"\${$as_ac_var+set}\" = set"; then
9867 echo $ECHO_N "(cached) $ECHO_C" >&6
9869 cat >conftest.
$ac_ext <<_ACEOF
9872 cat confdefs.h
>>conftest.
$ac_ext
9873 cat >>conftest.
$ac_ext <<_ACEOF
9874 /* end confdefs.h. */
9875 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9876 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9877 #define $ac_func innocuous_$ac_func
9879 /* System header to define __stub macros and hopefully few prototypes,
9880 which can conflict with char $ac_func (); below.
9881 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9882 <limits.h> exists even on freestanding compilers. */
9885 # include <limits.h>
9887 # include <assert.h>
9892 /* Override any gcc2 internal prototype to avoid an error. */
9897 /* We use char because int might match the return type of a gcc2
9898 builtin and then its argument prototype would still apply. */
9900 /* The GNU C library defines this for functions which it implements
9901 to always fail with ENOSYS. Some functions are actually named
9902 something starting with __ and the normal name is an alias. */
9903 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9906 char (*f) () = $ac_func;
9915 return f != $ac_func;
9920 rm -f conftest.
$ac_objext conftest
$ac_exeext
9921 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9922 (eval $ac_link) 2>conftest.er1
9924 grep -v '^ *+' conftest.er1
>conftest.err
9926 cat conftest.err
>&5
9927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9928 (exit $ac_status); } &&
9929 { ac_try
='test -z "$ac_c_werror_flag"
9930 || test ! -s conftest.err'
9931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9935 (exit $ac_status); }; } &&
9936 { ac_try
='test -s conftest$ac_exeext'
9937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9941 (exit $ac_status); }; }; then
9942 eval "$as_ac_var=yes"
9944 echo "$as_me: failed program was:" >&5
9945 sed 's/^/| /' conftest.
$ac_ext >&5
9947 eval "$as_ac_var=no"
9949 rm -f conftest.err conftest.
$ac_objext \
9950 conftest
$ac_exeext conftest.
$ac_ext
9952 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9953 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9954 if test `eval echo '${'$as_ac_var'}'` = yes; then
9955 cat >>confdefs.h
<<_ACEOF
9956 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9958 HAVE_GTK_MULTIDISPLAY
=yes
9962 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
9964 cat >>confdefs.h
<<\_ACEOF
9965 #define HAVE_GTK_MULTIDISPLAY 1
9971 if test x
"${USE_X_TOOLKIT}" = xmaybe
; then
9972 if test x
"${HAVE_X11R5}" = xyes
; then
9973 echo "$as_me:$LINENO: checking X11 version 5 with Xaw" >&5
9974 echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6
9975 if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then
9976 echo $ECHO_N "(cached) $ECHO_C" >&6
9978 cat >conftest.
$ac_ext <<_ACEOF
9981 cat confdefs.h
>>conftest.
$ac_ext
9982 cat >>conftest.
$ac_ext <<_ACEOF
9983 /* end confdefs.h. */
9985 #include <X11/Intrinsic.h>
9986 #include <X11/Xaw/Simple.h>
9995 rm -f conftest.
$ac_objext conftest
$ac_exeext
9996 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9997 (eval $ac_link) 2>conftest.er1
9999 grep -v '^ *+' conftest.er1
>conftest.err
10001 cat conftest.err
>&5
10002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10003 (exit $ac_status); } &&
10004 { ac_try
='test -z "$ac_c_werror_flag"
10005 || test ! -s conftest.err'
10006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10007 (eval $ac_try) 2>&5
10009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10010 (exit $ac_status); }; } &&
10011 { ac_try
='test -s conftest$ac_exeext'
10012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10013 (eval $ac_try) 2>&5
10015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10016 (exit $ac_status); }; }; then
10017 emacs_cv_x11_version_5_with_xaw
=yes
10019 echo "$as_me: failed program was:" >&5
10020 sed 's/^/| /' conftest.
$ac_ext >&5
10022 emacs_cv_x11_version_5_with_xaw
=no
10024 rm -f conftest.err conftest.
$ac_objext \
10025 conftest
$ac_exeext conftest.
$ac_ext
10028 if test $emacs_cv_x11_version_5_with_xaw = yes; then
10029 echo "$as_me:$LINENO: result: 5 or newer, with Xaw; use toolkit by default" >&5
10030 echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6
10031 USE_X_TOOLKIT
=LUCID
10033 echo "$as_me:$LINENO: result: before 5 or no Xaw; do not use toolkit by default" >&5
10034 echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6
10042 X_TOOLKIT_TYPE
=$USE_X_TOOLKIT
10044 if test "${USE_X_TOOLKIT}" != "none"; then
10045 echo "$as_me:$LINENO: checking X11 toolkit version" >&5
10046 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6
10047 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
10048 echo $ECHO_N "(cached) $ECHO_C" >&6
10050 cat >conftest.
$ac_ext <<_ACEOF
10053 cat confdefs.h
>>conftest.
$ac_ext
10054 cat >>conftest.
$ac_ext <<_ACEOF
10055 /* end confdefs.h. */
10056 #include <X11/Intrinsic.h>
10060 #if XtSpecificationRelease < 6
10068 rm -f conftest.
$ac_objext conftest
$ac_exeext
10069 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10070 (eval $ac_link) 2>conftest.er1
10072 grep -v '^ *+' conftest.er1
>conftest.err
10074 cat conftest.err
>&5
10075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10076 (exit $ac_status); } &&
10077 { ac_try
='test -z "$ac_c_werror_flag"
10078 || test ! -s conftest.err'
10079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10080 (eval $ac_try) 2>&5
10082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10083 (exit $ac_status); }; } &&
10084 { ac_try
='test -s conftest$ac_exeext'
10085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10086 (eval $ac_try) 2>&5
10088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10089 (exit $ac_status); }; }; then
10090 emacs_cv_x11_toolkit_version_6
=yes
10092 echo "$as_me: failed program was:" >&5
10093 sed 's/^/| /' conftest.
$ac_ext >&5
10095 emacs_cv_x11_toolkit_version_6
=no
10097 rm -f conftest.err conftest.
$ac_objext \
10098 conftest
$ac_exeext conftest.
$ac_ext
10101 HAVE_X11XTR6
=$emacs_cv_x11_toolkit_version_6
10102 if test $emacs_cv_x11_toolkit_version_6 = yes; then
10103 echo "$as_me:$LINENO: result: 6 or newer" >&5
10104 echo "${ECHO_T}6 or newer" >&6
10106 cat >>confdefs.h
<<\_ACEOF
10107 #define HAVE_X11XTR6 1
10111 echo "$as_me:$LINENO: result: before 6" >&5
10112 echo "${ECHO_T}before 6" >&6
10116 if test x
$HAVE_X11XTR6 = xyes
; then
10117 LIBS
="-lXt -lSM -lICE $LIBS"
10122 echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
10123 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6
10124 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
10125 echo $ECHO_N "(cached) $ECHO_C" >&6
10127 ac_check_lib_save_LIBS
=$LIBS
10129 cat >conftest.
$ac_ext <<_ACEOF
10132 cat confdefs.h
>>conftest.
$ac_ext
10133 cat >>conftest.
$ac_ext <<_ACEOF
10134 /* end confdefs.h. */
10136 /* Override any gcc2 internal prototype to avoid an error. */
10140 /* We use char because int might match the return type of a gcc2
10141 builtin and then its argument prototype would still apply. */
10142 char XmuConvertStandardSelection ();
10146 XmuConvertStandardSelection ();
10151 rm -f conftest.
$ac_objext conftest
$ac_exeext
10152 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10153 (eval $ac_link) 2>conftest.er1
10155 grep -v '^ *+' conftest.er1
>conftest.err
10157 cat conftest.err
>&5
10158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10159 (exit $ac_status); } &&
10160 { ac_try
='test -z "$ac_c_werror_flag"
10161 || test ! -s conftest.err'
10162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10163 (eval $ac_try) 2>&5
10165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10166 (exit $ac_status); }; } &&
10167 { ac_try
='test -s conftest$ac_exeext'
10168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10169 (eval $ac_try) 2>&5
10171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10172 (exit $ac_status); }; }; then
10173 ac_cv_lib_Xmu_XmuConvertStandardSelection
=yes
10175 echo "$as_me: failed program was:" >&5
10176 sed 's/^/| /' conftest.
$ac_ext >&5
10178 ac_cv_lib_Xmu_XmuConvertStandardSelection
=no
10180 rm -f conftest.err conftest.
$ac_objext \
10181 conftest
$ac_exeext conftest.
$ac_ext
10182 LIBS
=$ac_check_lib_save_LIBS
10184 echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
10185 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6
10186 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
10187 cat >>confdefs.h
<<_ACEOF
10188 #define HAVE_LIBXMU 1
10195 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no
&& LIBS
="$OLDLIBS"
10198 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
10199 if test "${HAVE_X11}" = "yes"; then
10200 if test "${USE_X_TOOLKIT}" != "none"; then
10202 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
10203 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
10204 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
10205 echo $ECHO_N "(cached) $ECHO_C" >&6
10207 ac_check_lib_save_LIBS
=$LIBS
10208 LIBS
="-lXext $LIBS"
10209 cat >conftest.
$ac_ext <<_ACEOF
10212 cat confdefs.h
>>conftest.
$ac_ext
10213 cat >>conftest.
$ac_ext <<_ACEOF
10214 /* end confdefs.h. */
10216 /* Override any gcc2 internal prototype to avoid an error. */
10220 /* We use char because int might match the return type of a gcc2
10221 builtin and then its argument prototype would still apply. */
10222 char XShapeQueryExtension ();
10226 XShapeQueryExtension ();
10231 rm -f conftest.
$ac_objext conftest
$ac_exeext
10232 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10233 (eval $ac_link) 2>conftest.er1
10235 grep -v '^ *+' conftest.er1
>conftest.err
10237 cat conftest.err
>&5
10238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10239 (exit $ac_status); } &&
10240 { ac_try
='test -z "$ac_c_werror_flag"
10241 || test ! -s conftest.err'
10242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10243 (eval $ac_try) 2>&5
10245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10246 (exit $ac_status); }; } &&
10247 { ac_try
='test -s conftest$ac_exeext'
10248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10249 (eval $ac_try) 2>&5
10251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10252 (exit $ac_status); }; }; then
10253 ac_cv_lib_Xext_XShapeQueryExtension
=yes
10255 echo "$as_me: failed program was:" >&5
10256 sed 's/^/| /' conftest.
$ac_ext >&5
10258 ac_cv_lib_Xext_XShapeQueryExtension
=no
10260 rm -f conftest.err conftest.
$ac_objext \
10261 conftest
$ac_exeext conftest.
$ac_ext
10262 LIBS
=$ac_check_lib_save_LIBS
10264 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
10265 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
10266 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
10267 cat >>confdefs.h
<<_ACEOF
10268 #define HAVE_LIBXEXT 1
10271 LIBS
="-lXext $LIBS"
10278 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
10279 echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
10280 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6
10281 if test "${emacs_cv_lesstif+set}" = set; then
10282 echo $ECHO_N "(cached) $ECHO_C" >&6
10284 # We put this in CFLAGS temporarily to precede other -I options
10285 # that might be in CFLAGS temporarily.
10286 # We put this in CPPFLAGS where it precedes the other -I options.
10287 OLD_CPPFLAGS
=$CPPFLAGS
10289 CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
10290 CFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
10291 cat >conftest.
$ac_ext <<_ACEOF
10294 cat confdefs.h
>>conftest.
$ac_ext
10295 cat >>conftest.
$ac_ext <<_ACEOF
10296 /* end confdefs.h. */
10297 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
10306 rm -f conftest.
$ac_objext
10307 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10308 (eval $ac_compile) 2>conftest.er1
10310 grep -v '^ *+' conftest.er1
>conftest.err
10312 cat conftest.err
>&5
10313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10314 (exit $ac_status); } &&
10315 { ac_try
='test -z "$ac_c_werror_flag"
10316 || test ! -s conftest.err'
10317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10318 (eval $ac_try) 2>&5
10320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10321 (exit $ac_status); }; } &&
10322 { ac_try
='test -s conftest.$ac_objext'
10323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10324 (eval $ac_try) 2>&5
10326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10327 (exit $ac_status); }; }; then
10328 emacs_cv_lesstif
=yes
10330 echo "$as_me: failed program was:" >&5
10331 sed 's/^/| /' conftest.
$ac_ext >&5
10333 emacs_cv_lesstif
=no
10335 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10337 echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
10338 echo "${ECHO_T}$emacs_cv_lesstif" >&6
10339 if test $emacs_cv_lesstif = yes; then
10340 # Make sure this -I option remains in CPPFLAGS after it is set
10341 # back to REAL_CPPFLAGS.
10342 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
10343 # have those other -I options anyway. Ultimately, having this
10344 # directory ultimately in CPPFLAGS will be enough.
10345 REAL_CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
10346 LDFLAGS
="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
10349 CPPFLAGS
=$OLD_CPPFLAGS
10351 echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
10352 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6
10353 if test "${emacs_cv_motif_version_2_1+set}" = set; then
10354 echo $ECHO_N "(cached) $ECHO_C" >&6
10356 cat >conftest.
$ac_ext <<_ACEOF
10359 cat confdefs.h
>>conftest.
$ac_ext
10360 cat >>conftest.
$ac_ext <<_ACEOF
10361 /* end confdefs.h. */
10366 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
10369 Motif version prior to 2.1.
10375 rm -f conftest.
$ac_objext
10376 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10377 (eval $ac_compile) 2>conftest.er1
10379 grep -v '^ *+' conftest.er1
>conftest.err
10381 cat conftest.err
>&5
10382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10383 (exit $ac_status); } &&
10384 { ac_try
='test -z "$ac_c_werror_flag"
10385 || test ! -s conftest.err'
10386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10387 (eval $ac_try) 2>&5
10389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10390 (exit $ac_status); }; } &&
10391 { ac_try
='test -s conftest.$ac_objext'
10392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10393 (eval $ac_try) 2>&5
10395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10396 (exit $ac_status); }; }; then
10397 emacs_cv_motif_version_2_1
=yes
10399 echo "$as_me: failed program was:" >&5
10400 sed 's/^/| /' conftest.
$ac_ext >&5
10402 emacs_cv_motif_version_2_1
=no
10404 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10406 echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
10407 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6
10408 HAVE_MOTIF_2_1
=$emacs_cv_motif_version_2_1
10409 if test $emacs_cv_motif_version_2_1 = yes; then
10412 cat >>confdefs.h
<<\_ACEOF
10413 #define HAVE_MOTIF_2_1 1
10416 echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
10417 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6
10418 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
10419 echo $ECHO_N "(cached) $ECHO_C" >&6
10421 ac_check_lib_save_LIBS
=$LIBS
10423 cat >conftest.
$ac_ext <<_ACEOF
10426 cat confdefs.h
>>conftest.
$ac_ext
10427 cat >>conftest.
$ac_ext <<_ACEOF
10428 /* end confdefs.h. */
10430 /* Override any gcc2 internal prototype to avoid an error. */
10434 /* We use char because int might match the return type of a gcc2
10435 builtin and then its argument prototype would still apply. */
10436 char XpCreateContext ();
10440 XpCreateContext ();
10445 rm -f conftest.
$ac_objext conftest
$ac_exeext
10446 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10447 (eval $ac_link) 2>conftest.er1
10449 grep -v '^ *+' conftest.er1
>conftest.err
10451 cat conftest.err
>&5
10452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10453 (exit $ac_status); } &&
10454 { ac_try
='test -z "$ac_c_werror_flag"
10455 || test ! -s conftest.err'
10456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10457 (eval $ac_try) 2>&5
10459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10460 (exit $ac_status); }; } &&
10461 { ac_try
='test -s conftest$ac_exeext'
10462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10463 (eval $ac_try) 2>&5
10465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10466 (exit $ac_status); }; }; then
10467 ac_cv_lib_Xp_XpCreateContext
=yes
10469 echo "$as_me: failed program was:" >&5
10470 sed 's/^/| /' conftest.
$ac_ext >&5
10472 ac_cv_lib_Xp_XpCreateContext
=no
10474 rm -f conftest.err conftest.
$ac_objext \
10475 conftest
$ac_exeext conftest.
$ac_ext
10476 LIBS
=$ac_check_lib_save_LIBS
10478 echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
10479 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6
10480 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
10484 if test ${HAVE_LIBXP} = yes; then
10486 cat >>confdefs.h
<<\_ACEOF
10487 #define HAVE_LIBXP 1
10494 ### Is -lXaw3d available?
10496 if test "${HAVE_X11}" = "yes"; then
10497 if test "${USE_X_TOOLKIT}" != "none"; then
10498 echo "$as_me:$LINENO: checking for X11/Xaw3d/Scrollbar.h" >&5
10499 echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6
10500 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
10501 echo $ECHO_N "(cached) $ECHO_C" >&6
10503 cat >conftest.
$ac_ext <<_ACEOF
10506 cat confdefs.h
>>conftest.
$ac_ext
10507 cat >>conftest.
$ac_ext <<_ACEOF
10508 /* end confdefs.h. */
10509 #include <X11/Xaw3d/Scrollbar.h>
10511 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10512 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
10514 grep -v '^ *+' conftest.er1
>conftest.err
10516 cat conftest.err
>&5
10517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10518 (exit $ac_status); } >/dev
/null
; then
10519 if test -s conftest.err
; then
10520 ac_cpp_err
=$ac_c_preproc_warn_flag
10521 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
10528 if test -z "$ac_cpp_err"; then
10529 ac_cv_header_X11_Xaw3d_Scrollbar_h
=yes
10531 echo "$as_me: failed program was:" >&5
10532 sed 's/^/| /' conftest.
$ac_ext >&5
10534 ac_cv_header_X11_Xaw3d_Scrollbar_h
=no
10536 rm -f conftest.err conftest.
$ac_ext
10538 echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
10539 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6
10540 if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then
10541 echo "$as_me:$LINENO: checking for XawScrollbarSetThumb in -lXaw3d" >&5
10542 echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6
10543 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then
10544 echo $ECHO_N "(cached) $ECHO_C" >&6
10546 ac_check_lib_save_LIBS
=$LIBS
10547 LIBS
="-lXaw3d $LIBS"
10548 cat >conftest.
$ac_ext <<_ACEOF
10551 cat confdefs.h
>>conftest.
$ac_ext
10552 cat >>conftest.
$ac_ext <<_ACEOF
10553 /* end confdefs.h. */
10555 /* Override any gcc2 internal prototype to avoid an error. */
10559 /* We use char because int might match the return type of a gcc2
10560 builtin and then its argument prototype would still apply. */
10561 char XawScrollbarSetThumb ();
10565 XawScrollbarSetThumb ();
10570 rm -f conftest.
$ac_objext conftest
$ac_exeext
10571 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10572 (eval $ac_link) 2>conftest.er1
10574 grep -v '^ *+' conftest.er1
>conftest.err
10576 cat conftest.err
>&5
10577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10578 (exit $ac_status); } &&
10579 { ac_try
='test -z "$ac_c_werror_flag"
10580 || test ! -s conftest.err'
10581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10582 (eval $ac_try) 2>&5
10584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10585 (exit $ac_status); }; } &&
10586 { ac_try
='test -s conftest$ac_exeext'
10587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10588 (eval $ac_try) 2>&5
10590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10591 (exit $ac_status); }; }; then
10592 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=yes
10594 echo "$as_me: failed program was:" >&5
10595 sed 's/^/| /' conftest.
$ac_ext >&5
10597 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=no
10599 rm -f conftest.err conftest.
$ac_objext \
10600 conftest
$ac_exeext conftest.
$ac_ext
10601 LIBS
=$ac_check_lib_save_LIBS
10603 echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
10604 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6
10605 if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then
10612 if test "${HAVE_XAW3D}" = "yes"; then
10614 cat >>confdefs.h
<<\_ACEOF
10615 #define HAVE_XAW3D 1
10624 USE_TOOLKIT_SCROLL_BARS
=no
10625 if test "${with_toolkit_scroll_bars}" != "no"; then
10626 if test "${USE_X_TOOLKIT}" != "none"; then
10627 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
10628 cat >>confdefs.h
<<\_ACEOF
10629 #define USE_TOOLKIT_SCROLL_BARS 1
10633 USE_TOOLKIT_SCROLL_BARS
=yes
10634 elif test "${HAVE_XAW3D}" = "yes"; then
10635 cat >>confdefs.h
<<\_ACEOF
10636 #define USE_TOOLKIT_SCROLL_BARS 1
10639 USE_TOOLKIT_SCROLL_BARS
=yes
10641 elif test "${HAVE_GTK}" = "yes"; then
10642 cat >>confdefs.h
<<\_ACEOF
10643 #define USE_TOOLKIT_SCROLL_BARS 1
10646 USE_TOOLKIT_SCROLL_BARS
=yes
10650 cat >conftest.
$ac_ext <<_ACEOF
10653 cat confdefs.h
>>conftest.
$ac_ext
10654 cat >>conftest.
$ac_ext <<_ACEOF
10655 /* end confdefs.h. */
10657 #include <X11/Xlib.h>
10658 #include <X11/Xresource.h>
10667 rm -f conftest.
$ac_objext
10668 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10669 (eval $ac_compile) 2>conftest.er1
10671 grep -v '^ *+' conftest.er1
>conftest.err
10673 cat conftest.err
>&5
10674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10675 (exit $ac_status); } &&
10676 { ac_try
='test -z "$ac_c_werror_flag"
10677 || test ! -s conftest.err'
10678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10679 (eval $ac_try) 2>&5
10681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10682 (exit $ac_status); }; } &&
10683 { ac_try
='test -s conftest.$ac_objext'
10684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10685 (eval $ac_try) 2>&5
10687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10688 (exit $ac_status); }; }; then
10691 cat >>confdefs.h
<<\_ACEOF
10696 echo "$as_me: failed program was:" >&5
10697 sed 's/^/| /' conftest.
$ac_ext >&5
10701 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10704 if test "${with_xim}" != "no"; then
10706 cat >>confdefs.h
<<\_ACEOF
10713 if test "${HAVE_XIM}" != "no"; then
10714 late_CFLAGS
=$CFLAGS
10715 if test "$GCC" = yes; then
10716 CFLAGS
="$CFLAGS --pedantic-errors"
10718 cat >conftest.
$ac_ext <<_ACEOF
10721 cat confdefs.h
>>conftest.
$ac_ext
10722 cat >>conftest.
$ac_ext <<_ACEOF
10723 /* end confdefs.h. */
10725 #include <X11/Xlib.h>
10726 #include <X11/Xresource.h>
10735 XPointer *client_data;
10737 /* If we're not using GCC, it's probably not XFree86, and this is
10738 probably right, but we can't use something like --pedantic-errors. */
10739 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
10740 char*, XIMProc, XPointer*);
10742 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
10748 rm -f conftest.
$ac_objext
10749 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10750 (eval $ac_compile) 2>conftest.er1
10752 grep -v '^ *+' conftest.er1
>conftest.err
10754 cat conftest.err
>&5
10755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10756 (exit $ac_status); } &&
10757 { ac_try
='test -z "$ac_c_werror_flag"
10758 || test ! -s conftest.err'
10759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10760 (eval $ac_try) 2>&5
10762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10763 (exit $ac_status); }; } &&
10764 { ac_try
='test -s conftest.$ac_objext'
10765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10766 (eval $ac_try) 2>&5
10768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10769 (exit $ac_status); }; }; then
10770 emacs_cv_arg6_star
=yes
10772 echo "$as_me: failed program was:" >&5
10773 sed 's/^/| /' conftest.
$ac_ext >&5
10776 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10778 if test "$emacs_cv_arg6_star" = yes; then
10779 cat >>confdefs.h
<<\_ACEOF
10780 #define XRegisterIMInstantiateCallback_arg6 XPointer*
10784 cat >>confdefs.h
<<\_ACEOF
10785 #define XRegisterIMInstantiateCallback_arg6 XPointer
10789 CFLAGS
=$late_CFLAGS
10792 ### Use -lXpm if available, unless `--with-xpm=no'.
10794 if test "${HAVE_X11}" = "yes"; then
10795 if test "${with_xpm}" != "no"; then
10796 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
10797 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
10798 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
10799 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
10800 echo $ECHO_N "(cached) $ECHO_C" >&6
10802 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
10803 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
10805 # Is the header compilable?
10806 echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
10807 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6
10808 cat >conftest.
$ac_ext <<_ACEOF
10811 cat confdefs.h
>>conftest.
$ac_ext
10812 cat >>conftest.
$ac_ext <<_ACEOF
10813 /* end confdefs.h. */
10814 $ac_includes_default
10815 #include <X11/xpm.h>
10817 rm -f conftest.
$ac_objext
10818 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10819 (eval $ac_compile) 2>conftest.er1
10821 grep -v '^ *+' conftest.er1
>conftest.err
10823 cat conftest.err
>&5
10824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10825 (exit $ac_status); } &&
10826 { ac_try
='test -z "$ac_c_werror_flag"
10827 || test ! -s conftest.err'
10828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10829 (eval $ac_try) 2>&5
10831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10832 (exit $ac_status); }; } &&
10833 { ac_try
='test -s conftest.$ac_objext'
10834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10835 (eval $ac_try) 2>&5
10837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10838 (exit $ac_status); }; }; then
10839 ac_header_compiler
=yes
10841 echo "$as_me: failed program was:" >&5
10842 sed 's/^/| /' conftest.
$ac_ext >&5
10844 ac_header_compiler
=no
10846 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10847 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10848 echo "${ECHO_T}$ac_header_compiler" >&6
10850 # Is the header present?
10851 echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
10852 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6
10853 cat >conftest.
$ac_ext <<_ACEOF
10856 cat confdefs.h
>>conftest.
$ac_ext
10857 cat >>conftest.
$ac_ext <<_ACEOF
10858 /* end confdefs.h. */
10859 #include <X11/xpm.h>
10861 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10862 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
10864 grep -v '^ *+' conftest.er1
>conftest.err
10866 cat conftest.err
>&5
10867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10868 (exit $ac_status); } >/dev
/null
; then
10869 if test -s conftest.err
; then
10870 ac_cpp_err
=$ac_c_preproc_warn_flag
10871 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
10878 if test -z "$ac_cpp_err"; then
10879 ac_header_preproc
=yes
10881 echo "$as_me: failed program was:" >&5
10882 sed 's/^/| /' conftest.
$ac_ext >&5
10884 ac_header_preproc
=no
10886 rm -f conftest.err conftest.
$ac_ext
10887 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10888 echo "${ECHO_T}$ac_header_preproc" >&6
10890 # So? What about this header?
10891 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10893 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
10894 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10895 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
10896 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
10897 ac_header_preproc
=yes
10900 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
10901 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
10902 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
10903 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
10904 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
10905 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
10906 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
10907 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
10908 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
10909 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
10910 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
10911 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
10914 ## ------------------------------------------ ##
10915 ## Report this to the AC_PACKAGE_NAME lists. ##
10916 ## ------------------------------------------ ##
10919 sed "s/^/$as_me: WARNING: /" >&2
10922 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
10923 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
10924 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
10925 echo $ECHO_N "(cached) $ECHO_C" >&6
10927 ac_cv_header_X11_xpm_h
=$ac_header_preproc
10929 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
10930 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
10933 if test $ac_cv_header_X11_xpm_h = yes; then
10934 echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
10935 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6
10936 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
10937 echo $ECHO_N "(cached) $ECHO_C" >&6
10939 ac_check_lib_save_LIBS
=$LIBS
10940 LIBS
="-lXpm -lX11 $LIBS"
10941 cat >conftest.
$ac_ext <<_ACEOF
10944 cat confdefs.h
>>conftest.
$ac_ext
10945 cat >>conftest.
$ac_ext <<_ACEOF
10946 /* end confdefs.h. */
10948 /* Override any gcc2 internal prototype to avoid an error. */
10952 /* We use char because int might match the return type of a gcc2
10953 builtin and then its argument prototype would still apply. */
10954 char XpmReadFileToPixmap ();
10958 XpmReadFileToPixmap ();
10963 rm -f conftest.
$ac_objext conftest
$ac_exeext
10964 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10965 (eval $ac_link) 2>conftest.er1
10967 grep -v '^ *+' conftest.er1
>conftest.err
10969 cat conftest.err
>&5
10970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10971 (exit $ac_status); } &&
10972 { ac_try
='test -z "$ac_c_werror_flag"
10973 || test ! -s conftest.err'
10974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10975 (eval $ac_try) 2>&5
10977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10978 (exit $ac_status); }; } &&
10979 { ac_try
='test -s conftest$ac_exeext'
10980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10981 (eval $ac_try) 2>&5
10983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10984 (exit $ac_status); }; }; then
10985 ac_cv_lib_Xpm_XpmReadFileToPixmap
=yes
10987 echo "$as_me: failed program was:" >&5
10988 sed 's/^/| /' conftest.
$ac_ext >&5
10990 ac_cv_lib_Xpm_XpmReadFileToPixmap
=no
10992 rm -f conftest.err conftest.
$ac_objext \
10993 conftest
$ac_exeext conftest.
$ac_ext
10994 LIBS
=$ac_check_lib_save_LIBS
10996 echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
10997 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6
10998 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
11005 if test "${HAVE_XPM}" = "yes"; then
11006 echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
11007 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6
11008 cat >conftest.
$ac_ext <<_ACEOF
11011 cat confdefs.h
>>conftest.
$ac_ext
11012 cat >>conftest.
$ac_ext <<_ACEOF
11013 /* end confdefs.h. */
11014 #include "X11/xpm.h"
11015 #ifndef XpmReturnAllocPixels
11016 no_return_alloc_pixels
11020 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11021 $EGREP "no_return_alloc_pixels" >/dev
/null
2>&1; then
11029 if test "${HAVE_XPM}" = "yes"; then
11030 echo "$as_me:$LINENO: result: yes" >&5
11031 echo "${ECHO_T}yes" >&6
11033 echo "$as_me:$LINENO: result: no" >&5
11034 echo "${ECHO_T}no" >&6
11039 if test "${HAVE_XPM}" = "yes"; then
11041 cat >>confdefs.h
<<\_ACEOF
11048 ### Use -ljpeg if available, unless `--with-jpeg=no'.
11050 if test "${HAVE_X11}" = "yes"; then
11051 if test "${with_jpeg}" != "no"; then
11052 if test "${ac_cv_header_jerror_h+set}" = set; then
11053 echo "$as_me:$LINENO: checking for jerror.h" >&5
11054 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
11055 if test "${ac_cv_header_jerror_h+set}" = set; then
11056 echo $ECHO_N "(cached) $ECHO_C" >&6
11058 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
11059 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
11061 # Is the header compilable?
11062 echo "$as_me:$LINENO: checking jerror.h usability" >&5
11063 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6
11064 cat >conftest.
$ac_ext <<_ACEOF
11067 cat confdefs.h
>>conftest.
$ac_ext
11068 cat >>conftest.
$ac_ext <<_ACEOF
11069 /* end confdefs.h. */
11070 $ac_includes_default
11071 #include <jerror.h>
11073 rm -f conftest.
$ac_objext
11074 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11075 (eval $ac_compile) 2>conftest.er1
11077 grep -v '^ *+' conftest.er1
>conftest.err
11079 cat conftest.err
>&5
11080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11081 (exit $ac_status); } &&
11082 { ac_try
='test -z "$ac_c_werror_flag"
11083 || test ! -s conftest.err'
11084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11085 (eval $ac_try) 2>&5
11087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11088 (exit $ac_status); }; } &&
11089 { ac_try
='test -s conftest.$ac_objext'
11090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11091 (eval $ac_try) 2>&5
11093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11094 (exit $ac_status); }; }; then
11095 ac_header_compiler
=yes
11097 echo "$as_me: failed program was:" >&5
11098 sed 's/^/| /' conftest.
$ac_ext >&5
11100 ac_header_compiler
=no
11102 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11103 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11104 echo "${ECHO_T}$ac_header_compiler" >&6
11106 # Is the header present?
11107 echo "$as_me:$LINENO: checking jerror.h presence" >&5
11108 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6
11109 cat >conftest.
$ac_ext <<_ACEOF
11112 cat confdefs.h
>>conftest.
$ac_ext
11113 cat >>conftest.
$ac_ext <<_ACEOF
11114 /* end confdefs.h. */
11115 #include <jerror.h>
11117 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11118 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11120 grep -v '^ *+' conftest.er1
>conftest.err
11122 cat conftest.err
>&5
11123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11124 (exit $ac_status); } >/dev
/null
; then
11125 if test -s conftest.err
; then
11126 ac_cpp_err
=$ac_c_preproc_warn_flag
11127 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
11134 if test -z "$ac_cpp_err"; then
11135 ac_header_preproc
=yes
11137 echo "$as_me: failed program was:" >&5
11138 sed 's/^/| /' conftest.
$ac_ext >&5
11140 ac_header_preproc
=no
11142 rm -f conftest.err conftest.
$ac_ext
11143 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11144 echo "${ECHO_T}$ac_header_preproc" >&6
11146 # So? What about this header?
11147 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11149 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
11150 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11151 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
11152 echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
11153 ac_header_preproc
=yes
11156 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
11157 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
11158 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
11159 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
11160 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
11161 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
11162 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
11163 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
11164 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
11165 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
11166 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
11167 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
11170 ## ------------------------------------------ ##
11171 ## Report this to the AC_PACKAGE_NAME lists. ##
11172 ## ------------------------------------------ ##
11175 sed "s/^/$as_me: WARNING: /" >&2
11178 echo "$as_me:$LINENO: checking for jerror.h" >&5
11179 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
11180 if test "${ac_cv_header_jerror_h+set}" = set; then
11181 echo $ECHO_N "(cached) $ECHO_C" >&6
11183 ac_cv_header_jerror_h
=$ac_header_preproc
11185 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
11186 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
11189 if test $ac_cv_header_jerror_h = yes; then
11190 echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
11191 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6
11192 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
11193 echo $ECHO_N "(cached) $ECHO_C" >&6
11195 ac_check_lib_save_LIBS
=$LIBS
11196 LIBS
="-ljpeg $LIBS"
11197 cat >conftest.
$ac_ext <<_ACEOF
11200 cat confdefs.h
>>conftest.
$ac_ext
11201 cat >>conftest.
$ac_ext <<_ACEOF
11202 /* end confdefs.h. */
11204 /* Override any gcc2 internal prototype to avoid an error. */
11208 /* We use char because int might match the return type of a gcc2
11209 builtin and then its argument prototype would still apply. */
11210 char jpeg_destroy_compress ();
11214 jpeg_destroy_compress ();
11219 rm -f conftest.
$ac_objext conftest
$ac_exeext
11220 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11221 (eval $ac_link) 2>conftest.er1
11223 grep -v '^ *+' conftest.er1
>conftest.err
11225 cat conftest.err
>&5
11226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11227 (exit $ac_status); } &&
11228 { ac_try
='test -z "$ac_c_werror_flag"
11229 || test ! -s conftest.err'
11230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11231 (eval $ac_try) 2>&5
11233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11234 (exit $ac_status); }; } &&
11235 { ac_try
='test -s conftest$ac_exeext'
11236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11237 (eval $ac_try) 2>&5
11239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11240 (exit $ac_status); }; }; then
11241 ac_cv_lib_jpeg_jpeg_destroy_compress
=yes
11243 echo "$as_me: failed program was:" >&5
11244 sed 's/^/| /' conftest.
$ac_ext >&5
11246 ac_cv_lib_jpeg_jpeg_destroy_compress
=no
11248 rm -f conftest.err conftest.
$ac_objext \
11249 conftest
$ac_exeext conftest.
$ac_ext
11250 LIBS
=$ac_check_lib_save_LIBS
11252 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
11253 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6
11254 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
11264 if test "${HAVE_JPEG}" = "yes"; then
11265 cat >>confdefs.h
<<\_ACEOF
11266 #define HAVE_JPEG 1
11269 cat >conftest.
$ac_ext <<_ACEOF
11272 cat confdefs.h
>>conftest.
$ac_ext
11273 cat >>conftest.
$ac_ext <<_ACEOF
11274 /* end confdefs.h. */
11275 #include <jpeglib.h>
11276 version=JPEG_LIB_VERSION
11279 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11280 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev
/null
2>&1; then
11281 cat >>confdefs.h
<<\_ACEOF
11282 #define HAVE_JPEG 1
11286 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
11287 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
11295 ### Use -lpng if available, unless `--with-png=no'.
11297 if test "${HAVE_X11}" = "yes"; then
11298 if test "${with_png}" != "no"; then
11299 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
11300 # in /usr/include/libpng.
11303 for ac_header
in png.h libpng
/png.h
11305 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11306 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11307 echo "$as_me:$LINENO: checking for $ac_header" >&5
11308 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11309 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11310 echo $ECHO_N "(cached) $ECHO_C" >&6
11312 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11313 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11315 # Is the header compilable?
11316 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11317 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11318 cat >conftest.
$ac_ext <<_ACEOF
11321 cat confdefs.h
>>conftest.
$ac_ext
11322 cat >>conftest.
$ac_ext <<_ACEOF
11323 /* end confdefs.h. */
11324 $ac_includes_default
11325 #include <$ac_header>
11327 rm -f conftest.
$ac_objext
11328 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11329 (eval $ac_compile) 2>conftest.er1
11331 grep -v '^ *+' conftest.er1
>conftest.err
11333 cat conftest.err
>&5
11334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11335 (exit $ac_status); } &&
11336 { ac_try
='test -z "$ac_c_werror_flag"
11337 || test ! -s conftest.err'
11338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11339 (eval $ac_try) 2>&5
11341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11342 (exit $ac_status); }; } &&
11343 { ac_try
='test -s conftest.$ac_objext'
11344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11345 (eval $ac_try) 2>&5
11347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11348 (exit $ac_status); }; }; then
11349 ac_header_compiler
=yes
11351 echo "$as_me: failed program was:" >&5
11352 sed 's/^/| /' conftest.
$ac_ext >&5
11354 ac_header_compiler
=no
11356 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11357 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11358 echo "${ECHO_T}$ac_header_compiler" >&6
11360 # Is the header present?
11361 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11362 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11363 cat >conftest.
$ac_ext <<_ACEOF
11366 cat confdefs.h
>>conftest.
$ac_ext
11367 cat >>conftest.
$ac_ext <<_ACEOF
11368 /* end confdefs.h. */
11369 #include <$ac_header>
11371 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11372 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11374 grep -v '^ *+' conftest.er1
>conftest.err
11376 cat conftest.err
>&5
11377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11378 (exit $ac_status); } >/dev
/null
; then
11379 if test -s conftest.err
; then
11380 ac_cpp_err
=$ac_c_preproc_warn_flag
11381 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
11388 if test -z "$ac_cpp_err"; then
11389 ac_header_preproc
=yes
11391 echo "$as_me: failed program was:" >&5
11392 sed 's/^/| /' conftest.
$ac_ext >&5
11394 ac_header_preproc
=no
11396 rm -f conftest.err conftest.
$ac_ext
11397 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11398 echo "${ECHO_T}$ac_header_preproc" >&6
11400 # So? What about this header?
11401 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11403 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11404 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11405 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11406 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11407 ac_header_preproc
=yes
11410 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11411 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11412 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11413 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11414 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11415 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11416 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11417 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11418 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11419 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11420 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11421 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11424 ## ------------------------------------------ ##
11425 ## Report this to the AC_PACKAGE_NAME lists. ##
11426 ## ------------------------------------------ ##
11429 sed "s/^/$as_me: WARNING: /" >&2
11432 echo "$as_me:$LINENO: checking for $ac_header" >&5
11433 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11434 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11435 echo $ECHO_N "(cached) $ECHO_C" >&6
11437 eval "$as_ac_Header=\$ac_header_preproc"
11439 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11440 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11443 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11444 cat >>confdefs.h
<<_ACEOF
11445 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11452 if test "$ac_cv_header_png_h" = yes ||
test "$ac_cv_header_libpng_png_h" = yes ; then
11453 echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
11454 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6
11455 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
11456 echo $ECHO_N "(cached) $ECHO_C" >&6
11458 ac_check_lib_save_LIBS
=$LIBS
11459 LIBS
="-lpng -lz -lm $LIBS"
11460 cat >conftest.
$ac_ext <<_ACEOF
11463 cat confdefs.h
>>conftest.
$ac_ext
11464 cat >>conftest.
$ac_ext <<_ACEOF
11465 /* end confdefs.h. */
11467 /* Override any gcc2 internal prototype to avoid an error. */
11471 /* We use char because int might match the return type of a gcc2
11472 builtin and then its argument prototype would still apply. */
11473 char png_get_channels ();
11477 png_get_channels ();
11482 rm -f conftest.
$ac_objext conftest
$ac_exeext
11483 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11484 (eval $ac_link) 2>conftest.er1
11486 grep -v '^ *+' conftest.er1
>conftest.err
11488 cat conftest.err
>&5
11489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11490 (exit $ac_status); } &&
11491 { ac_try
='test -z "$ac_c_werror_flag"
11492 || test ! -s conftest.err'
11493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11494 (eval $ac_try) 2>&5
11496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11497 (exit $ac_status); }; } &&
11498 { ac_try
='test -s conftest$ac_exeext'
11499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11500 (eval $ac_try) 2>&5
11502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11503 (exit $ac_status); }; }; then
11504 ac_cv_lib_png_png_get_channels
=yes
11506 echo "$as_me: failed program was:" >&5
11507 sed 's/^/| /' conftest.
$ac_ext >&5
11509 ac_cv_lib_png_png_get_channels
=no
11511 rm -f conftest.err conftest.
$ac_objext \
11512 conftest
$ac_exeext conftest.
$ac_ext
11513 LIBS
=$ac_check_lib_save_LIBS
11515 echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
11516 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6
11517 if test $ac_cv_lib_png_png_get_channels = yes; then
11524 if test "${HAVE_PNG}" = "yes"; then
11526 cat >>confdefs.h
<<\_ACEOF
11533 ### Use -ltiff if available, unless `--with-tiff=no'.
11535 if test "${HAVE_X11}" = "yes"; then
11536 if test "${with_tiff}" != "no"; then
11537 if test "${ac_cv_header_tiffio_h+set}" = set; then
11538 echo "$as_me:$LINENO: checking for tiffio.h" >&5
11539 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
11540 if test "${ac_cv_header_tiffio_h+set}" = set; then
11541 echo $ECHO_N "(cached) $ECHO_C" >&6
11543 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
11544 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
11546 # Is the header compilable?
11547 echo "$as_me:$LINENO: checking tiffio.h usability" >&5
11548 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
11549 cat >conftest.
$ac_ext <<_ACEOF
11552 cat confdefs.h
>>conftest.
$ac_ext
11553 cat >>conftest.
$ac_ext <<_ACEOF
11554 /* end confdefs.h. */
11555 $ac_includes_default
11556 #include <tiffio.h>
11558 rm -f conftest.
$ac_objext
11559 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11560 (eval $ac_compile) 2>conftest.er1
11562 grep -v '^ *+' conftest.er1
>conftest.err
11564 cat conftest.err
>&5
11565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11566 (exit $ac_status); } &&
11567 { ac_try
='test -z "$ac_c_werror_flag"
11568 || test ! -s conftest.err'
11569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11570 (eval $ac_try) 2>&5
11572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11573 (exit $ac_status); }; } &&
11574 { ac_try
='test -s conftest.$ac_objext'
11575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11576 (eval $ac_try) 2>&5
11578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11579 (exit $ac_status); }; }; then
11580 ac_header_compiler
=yes
11582 echo "$as_me: failed program was:" >&5
11583 sed 's/^/| /' conftest.
$ac_ext >&5
11585 ac_header_compiler
=no
11587 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11588 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11589 echo "${ECHO_T}$ac_header_compiler" >&6
11591 # Is the header present?
11592 echo "$as_me:$LINENO: checking tiffio.h presence" >&5
11593 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
11594 cat >conftest.
$ac_ext <<_ACEOF
11597 cat confdefs.h
>>conftest.
$ac_ext
11598 cat >>conftest.
$ac_ext <<_ACEOF
11599 /* end confdefs.h. */
11600 #include <tiffio.h>
11602 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11603 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11605 grep -v '^ *+' conftest.er1
>conftest.err
11607 cat conftest.err
>&5
11608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11609 (exit $ac_status); } >/dev
/null
; then
11610 if test -s conftest.err
; then
11611 ac_cpp_err
=$ac_c_preproc_warn_flag
11612 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
11619 if test -z "$ac_cpp_err"; then
11620 ac_header_preproc
=yes
11622 echo "$as_me: failed program was:" >&5
11623 sed 's/^/| /' conftest.
$ac_ext >&5
11625 ac_header_preproc
=no
11627 rm -f conftest.err conftest.
$ac_ext
11628 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11629 echo "${ECHO_T}$ac_header_preproc" >&6
11631 # So? What about this header?
11632 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11634 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
11635 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11636 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
11637 echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
11638 ac_header_preproc
=yes
11641 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
11642 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
11643 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
11644 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
11645 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
11646 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
11647 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
11648 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
11649 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
11650 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
11651 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
11652 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
11655 ## ------------------------------------------ ##
11656 ## Report this to the AC_PACKAGE_NAME lists. ##
11657 ## ------------------------------------------ ##
11660 sed "s/^/$as_me: WARNING: /" >&2
11663 echo "$as_me:$LINENO: checking for tiffio.h" >&5
11664 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
11665 if test "${ac_cv_header_tiffio_h+set}" = set; then
11666 echo $ECHO_N "(cached) $ECHO_C" >&6
11668 ac_cv_header_tiffio_h
=$ac_header_preproc
11670 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
11671 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
11674 if test $ac_cv_header_tiffio_h = yes; then
11676 # At least one tiff package requires the jpeg library.
11677 if test "${HAVE_JPEG}" = yes; then tifflibs
="-ljpeg $tifflibs"; fi
11678 echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
11679 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6
11680 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
11681 echo $ECHO_N "(cached) $ECHO_C" >&6
11683 ac_check_lib_save_LIBS
=$LIBS
11684 LIBS
="-ltiff $tifflibs $LIBS"
11685 cat >conftest.
$ac_ext <<_ACEOF
11688 cat confdefs.h
>>conftest.
$ac_ext
11689 cat >>conftest.
$ac_ext <<_ACEOF
11690 /* end confdefs.h. */
11692 /* Override any gcc2 internal prototype to avoid an error. */
11696 /* We use char because int might match the return type of a gcc2
11697 builtin and then its argument prototype would still apply. */
11698 char TIFFGetVersion ();
11707 rm -f conftest.
$ac_objext conftest
$ac_exeext
11708 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11709 (eval $ac_link) 2>conftest.er1
11711 grep -v '^ *+' conftest.er1
>conftest.err
11713 cat conftest.err
>&5
11714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11715 (exit $ac_status); } &&
11716 { ac_try
='test -z "$ac_c_werror_flag"
11717 || test ! -s conftest.err'
11718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11719 (eval $ac_try) 2>&5
11721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11722 (exit $ac_status); }; } &&
11723 { ac_try
='test -s conftest$ac_exeext'
11724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11725 (eval $ac_try) 2>&5
11727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11728 (exit $ac_status); }; }; then
11729 ac_cv_lib_tiff_TIFFGetVersion
=yes
11731 echo "$as_me: failed program was:" >&5
11732 sed 's/^/| /' conftest.
$ac_ext >&5
11734 ac_cv_lib_tiff_TIFFGetVersion
=no
11736 rm -f conftest.err conftest.
$ac_objext \
11737 conftest
$ac_exeext conftest.
$ac_ext
11738 LIBS
=$ac_check_lib_save_LIBS
11740 echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
11741 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6
11742 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
11751 if test "${HAVE_TIFF}" = "yes"; then
11753 cat >>confdefs.h
<<\_ACEOF
11754 #define HAVE_TIFF 1
11760 ### Use -lgif if available, unless `--with-gif=no'.
11762 if test "${HAVE_X11}" = "yes"; then
11763 if test "${with_gif}" != "no"; then
11764 if test "${ac_cv_header_gif_lib_h+set}" = set; then
11765 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
11766 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
11767 if test "${ac_cv_header_gif_lib_h+set}" = set; then
11768 echo $ECHO_N "(cached) $ECHO_C" >&6
11770 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
11771 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
11773 # Is the header compilable?
11774 echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
11775 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6
11776 cat >conftest.
$ac_ext <<_ACEOF
11779 cat confdefs.h
>>conftest.
$ac_ext
11780 cat >>conftest.
$ac_ext <<_ACEOF
11781 /* end confdefs.h. */
11782 $ac_includes_default
11783 #include <gif_lib.h>
11785 rm -f conftest.
$ac_objext
11786 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11787 (eval $ac_compile) 2>conftest.er1
11789 grep -v '^ *+' conftest.er1
>conftest.err
11791 cat conftest.err
>&5
11792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11793 (exit $ac_status); } &&
11794 { ac_try
='test -z "$ac_c_werror_flag"
11795 || test ! -s conftest.err'
11796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11797 (eval $ac_try) 2>&5
11799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11800 (exit $ac_status); }; } &&
11801 { ac_try
='test -s conftest.$ac_objext'
11802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11803 (eval $ac_try) 2>&5
11805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11806 (exit $ac_status); }; }; then
11807 ac_header_compiler
=yes
11809 echo "$as_me: failed program was:" >&5
11810 sed 's/^/| /' conftest.
$ac_ext >&5
11812 ac_header_compiler
=no
11814 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11815 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11816 echo "${ECHO_T}$ac_header_compiler" >&6
11818 # Is the header present?
11819 echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
11820 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6
11821 cat >conftest.
$ac_ext <<_ACEOF
11824 cat confdefs.h
>>conftest.
$ac_ext
11825 cat >>conftest.
$ac_ext <<_ACEOF
11826 /* end confdefs.h. */
11827 #include <gif_lib.h>
11829 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11830 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11832 grep -v '^ *+' conftest.er1
>conftest.err
11834 cat conftest.err
>&5
11835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11836 (exit $ac_status); } >/dev
/null
; then
11837 if test -s conftest.err
; then
11838 ac_cpp_err
=$ac_c_preproc_warn_flag
11839 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
11846 if test -z "$ac_cpp_err"; then
11847 ac_header_preproc
=yes
11849 echo "$as_me: failed program was:" >&5
11850 sed 's/^/| /' conftest.
$ac_ext >&5
11852 ac_header_preproc
=no
11854 rm -f conftest.err conftest.
$ac_ext
11855 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11856 echo "${ECHO_T}$ac_header_preproc" >&6
11858 # So? What about this header?
11859 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11861 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
11862 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11863 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
11864 echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
11865 ac_header_preproc
=yes
11868 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
11869 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
11870 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
11871 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
11872 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
11873 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
11874 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
11875 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
11876 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
11877 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
11878 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
11879 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
11882 ## ------------------------------------------ ##
11883 ## Report this to the AC_PACKAGE_NAME lists. ##
11884 ## ------------------------------------------ ##
11887 sed "s/^/$as_me: WARNING: /" >&2
11890 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
11891 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
11892 if test "${ac_cv_header_gif_lib_h+set}" = set; then
11893 echo $ECHO_N "(cached) $ECHO_C" >&6
11895 ac_cv_header_gif_lib_h
=$ac_header_preproc
11897 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
11898 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
11901 if test $ac_cv_header_gif_lib_h = yes; then
11902 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
11903 # Earlier versions can crash Emacs.
11904 echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
11905 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6
11906 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
11907 echo $ECHO_N "(cached) $ECHO_C" >&6
11909 ac_check_lib_save_LIBS
=$LIBS
11910 LIBS
="-lungif $LIBS"
11911 cat >conftest.
$ac_ext <<_ACEOF
11914 cat confdefs.h
>>conftest.
$ac_ext
11915 cat >>conftest.
$ac_ext <<_ACEOF
11916 /* end confdefs.h. */
11918 /* Override any gcc2 internal prototype to avoid an error. */
11922 /* We use char because int might match the return type of a gcc2
11923 builtin and then its argument prototype would still apply. */
11924 char EGifPutExtensionLast ();
11928 EGifPutExtensionLast ();
11933 rm -f conftest.
$ac_objext conftest
$ac_exeext
11934 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11935 (eval $ac_link) 2>conftest.er1
11937 grep -v '^ *+' conftest.er1
>conftest.err
11939 cat conftest.err
>&5
11940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11941 (exit $ac_status); } &&
11942 { ac_try
='test -z "$ac_c_werror_flag"
11943 || test ! -s conftest.err'
11944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11945 (eval $ac_try) 2>&5
11947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11948 (exit $ac_status); }; } &&
11949 { ac_try
='test -s conftest$ac_exeext'
11950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11951 (eval $ac_try) 2>&5
11953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11954 (exit $ac_status); }; }; then
11955 ac_cv_lib_ungif_EGifPutExtensionLast
=yes
11957 echo "$as_me: failed program was:" >&5
11958 sed 's/^/| /' conftest.
$ac_ext >&5
11960 ac_cv_lib_ungif_EGifPutExtensionLast
=no
11962 rm -f conftest.err conftest.
$ac_objext \
11963 conftest
$ac_exeext conftest.
$ac_ext
11964 LIBS
=$ac_check_lib_save_LIBS
11966 echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
11967 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6
11968 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
11977 if test "${HAVE_GIF}" = "yes"; then
11979 cat >>confdefs.h
<<\_ACEOF
11986 ### Use Mac OS X Carbon API to implement GUI.
11988 if test "${with_carbon}" != "no"; then
11989 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
11990 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
11991 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
11992 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
11993 echo $ECHO_N "(cached) $ECHO_C" >&6
11995 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
11996 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
11998 # Is the header compilable?
11999 echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
12000 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6
12001 cat >conftest.
$ac_ext <<_ACEOF
12004 cat confdefs.h
>>conftest.
$ac_ext
12005 cat >>conftest.
$ac_ext <<_ACEOF
12006 /* end confdefs.h. */
12007 $ac_includes_default
12008 #include <Carbon/Carbon.h>
12010 rm -f conftest.
$ac_objext
12011 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12012 (eval $ac_compile) 2>conftest.er1
12014 grep -v '^ *+' conftest.er1
>conftest.err
12016 cat conftest.err
>&5
12017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12018 (exit $ac_status); } &&
12019 { ac_try
='test -z "$ac_c_werror_flag"
12020 || test ! -s conftest.err'
12021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12022 (eval $ac_try) 2>&5
12024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12025 (exit $ac_status); }; } &&
12026 { ac_try
='test -s conftest.$ac_objext'
12027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12028 (eval $ac_try) 2>&5
12030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12031 (exit $ac_status); }; }; then
12032 ac_header_compiler
=yes
12034 echo "$as_me: failed program was:" >&5
12035 sed 's/^/| /' conftest.
$ac_ext >&5
12037 ac_header_compiler
=no
12039 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12040 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12041 echo "${ECHO_T}$ac_header_compiler" >&6
12043 # Is the header present?
12044 echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
12045 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6
12046 cat >conftest.
$ac_ext <<_ACEOF
12049 cat confdefs.h
>>conftest.
$ac_ext
12050 cat >>conftest.
$ac_ext <<_ACEOF
12051 /* end confdefs.h. */
12052 #include <Carbon/Carbon.h>
12054 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12055 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12057 grep -v '^ *+' conftest.er1
>conftest.err
12059 cat conftest.err
>&5
12060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12061 (exit $ac_status); } >/dev
/null
; then
12062 if test -s conftest.err
; then
12063 ac_cpp_err
=$ac_c_preproc_warn_flag
12064 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12071 if test -z "$ac_cpp_err"; then
12072 ac_header_preproc
=yes
12074 echo "$as_me: failed program was:" >&5
12075 sed 's/^/| /' conftest.
$ac_ext >&5
12077 ac_header_preproc
=no
12079 rm -f conftest.err conftest.
$ac_ext
12080 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12081 echo "${ECHO_T}$ac_header_preproc" >&6
12083 # So? What about this header?
12084 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12086 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
12087 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12088 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
12089 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
12090 ac_header_preproc
=yes
12093 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
12094 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
12095 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
12096 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
12097 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
12098 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
12099 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
12100 echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
12101 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
12102 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
12103 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
12104 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
12107 ## ------------------------------------------ ##
12108 ## Report this to the AC_PACKAGE_NAME lists. ##
12109 ## ------------------------------------------ ##
12112 sed "s/^/$as_me: WARNING: /" >&2
12115 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
12116 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
12117 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
12118 echo $ECHO_N "(cached) $ECHO_C" >&6
12120 ac_cv_header_Carbon_Carbon_h
=$ac_header_preproc
12122 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
12123 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
12126 if test $ac_cv_header_Carbon_Carbon_h = yes; then
12133 if test "${HAVE_CARBON}" = "yes"; then
12135 cat >>confdefs.h
<<\_ACEOF
12136 #define HAVE_CARBON 1
12140 ## Specify the install directory
12142 if test "${carbon_appdir_x}" != ""; then
12143 case ${carbon_appdir_x} in
12144 y | ye |
yes) carbon_appdir
=/Applications
;;
12145 * ) carbon_appdir
=${carbon_appdir_x} ;;
12148 # We also have mouse menus.
12152 ### Use session management (-lSM -lICE) if available
12154 if test "${HAVE_X11}" = "yes"; then
12155 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
12156 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
12157 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
12158 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
12159 echo $ECHO_N "(cached) $ECHO_C" >&6
12161 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
12162 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
12164 # Is the header compilable?
12165 echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
12166 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6
12167 cat >conftest.
$ac_ext <<_ACEOF
12170 cat confdefs.h
>>conftest.
$ac_ext
12171 cat >>conftest.
$ac_ext <<_ACEOF
12172 /* end confdefs.h. */
12173 $ac_includes_default
12174 #include <X11/SM/SMlib.h>
12176 rm -f conftest.
$ac_objext
12177 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12178 (eval $ac_compile) 2>conftest.er1
12180 grep -v '^ *+' conftest.er1
>conftest.err
12182 cat conftest.err
>&5
12183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12184 (exit $ac_status); } &&
12185 { ac_try
='test -z "$ac_c_werror_flag"
12186 || test ! -s conftest.err'
12187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12188 (eval $ac_try) 2>&5
12190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12191 (exit $ac_status); }; } &&
12192 { ac_try
='test -s conftest.$ac_objext'
12193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12194 (eval $ac_try) 2>&5
12196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12197 (exit $ac_status); }; }; then
12198 ac_header_compiler
=yes
12200 echo "$as_me: failed program was:" >&5
12201 sed 's/^/| /' conftest.
$ac_ext >&5
12203 ac_header_compiler
=no
12205 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12206 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12207 echo "${ECHO_T}$ac_header_compiler" >&6
12209 # Is the header present?
12210 echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
12211 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6
12212 cat >conftest.
$ac_ext <<_ACEOF
12215 cat confdefs.h
>>conftest.
$ac_ext
12216 cat >>conftest.
$ac_ext <<_ACEOF
12217 /* end confdefs.h. */
12218 #include <X11/SM/SMlib.h>
12220 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12221 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12223 grep -v '^ *+' conftest.er1
>conftest.err
12225 cat conftest.err
>&5
12226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12227 (exit $ac_status); } >/dev
/null
; then
12228 if test -s conftest.err
; then
12229 ac_cpp_err
=$ac_c_preproc_warn_flag
12230 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12237 if test -z "$ac_cpp_err"; then
12238 ac_header_preproc
=yes
12240 echo "$as_me: failed program was:" >&5
12241 sed 's/^/| /' conftest.
$ac_ext >&5
12243 ac_header_preproc
=no
12245 rm -f conftest.err conftest.
$ac_ext
12246 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12247 echo "${ECHO_T}$ac_header_preproc" >&6
12249 # So? What about this header?
12250 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12252 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
12253 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12254 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
12255 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
12256 ac_header_preproc
=yes
12259 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
12260 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
12261 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
12262 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
12263 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
12264 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
12265 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
12266 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
12267 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
12268 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
12269 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
12270 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
12273 ## ------------------------------------------ ##
12274 ## Report this to the AC_PACKAGE_NAME lists. ##
12275 ## ------------------------------------------ ##
12278 sed "s/^/$as_me: WARNING: /" >&2
12281 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
12282 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
12283 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
12284 echo $ECHO_N "(cached) $ECHO_C" >&6
12286 ac_cv_header_X11_SM_SMlib_h
=$ac_header_preproc
12288 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
12289 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
12292 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
12293 echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
12294 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6
12295 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
12296 echo $ECHO_N "(cached) $ECHO_C" >&6
12298 ac_check_lib_save_LIBS
=$LIBS
12299 LIBS
="-lSM -lICE $LIBS"
12300 cat >conftest.
$ac_ext <<_ACEOF
12303 cat confdefs.h
>>conftest.
$ac_ext
12304 cat >>conftest.
$ac_ext <<_ACEOF
12305 /* end confdefs.h. */
12307 /* Override any gcc2 internal prototype to avoid an error. */
12311 /* We use char because int might match the return type of a gcc2
12312 builtin and then its argument prototype would still apply. */
12313 char SmcOpenConnection ();
12317 SmcOpenConnection ();
12322 rm -f conftest.
$ac_objext conftest
$ac_exeext
12323 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12324 (eval $ac_link) 2>conftest.er1
12326 grep -v '^ *+' conftest.er1
>conftest.err
12328 cat conftest.err
>&5
12329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12330 (exit $ac_status); } &&
12331 { ac_try
='test -z "$ac_c_werror_flag"
12332 || test ! -s conftest.err'
12333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12334 (eval $ac_try) 2>&5
12336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12337 (exit $ac_status); }; } &&
12338 { ac_try
='test -s conftest$ac_exeext'
12339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12340 (eval $ac_try) 2>&5
12342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12343 (exit $ac_status); }; }; then
12344 ac_cv_lib_SM_SmcOpenConnection
=yes
12346 echo "$as_me: failed program was:" >&5
12347 sed 's/^/| /' conftest.
$ac_ext >&5
12349 ac_cv_lib_SM_SmcOpenConnection
=no
12351 rm -f conftest.err conftest.
$ac_objext \
12352 conftest
$ac_exeext conftest.
$ac_ext
12353 LIBS
=$ac_check_lib_save_LIBS
12355 echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
12356 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6
12357 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
12365 if test "${HAVE_X_SM}" = "yes"; then
12367 cat >>confdefs.h
<<\_ACEOF
12368 #define HAVE_X_SM 1
12373 *) LIBS
="-lSM -lICE $LIBS" ;;
12378 # If netdb.h doesn't declare h_errno, we must declare it by hand.
12379 echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
12380 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6
12381 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
12382 echo $ECHO_N "(cached) $ECHO_C" >&6
12384 cat >conftest.
$ac_ext <<_ACEOF
12387 cat confdefs.h
>>conftest.
$ac_ext
12388 cat >>conftest.
$ac_ext <<_ACEOF
12389 /* end confdefs.h. */
12399 rm -f conftest.
$ac_objext conftest
$ac_exeext
12400 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12401 (eval $ac_link) 2>conftest.er1
12403 grep -v '^ *+' conftest.er1
>conftest.err
12405 cat conftest.err
>&5
12406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12407 (exit $ac_status); } &&
12408 { ac_try
='test -z "$ac_c_werror_flag"
12409 || test ! -s conftest.err'
12410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12411 (eval $ac_try) 2>&5
12413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12414 (exit $ac_status); }; } &&
12415 { ac_try
='test -s conftest$ac_exeext'
12416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12417 (eval $ac_try) 2>&5
12419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12420 (exit $ac_status); }; }; then
12421 emacs_cv_netdb_declares_h_errno
=yes
12423 echo "$as_me: failed program was:" >&5
12424 sed 's/^/| /' conftest.
$ac_ext >&5
12426 emacs_cv_netdb_declares_h_errno
=no
12428 rm -f conftest.err conftest.
$ac_objext \
12429 conftest
$ac_exeext conftest.
$ac_ext
12431 echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
12432 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6
12433 if test $emacs_cv_netdb_declares_h_errno = yes; then
12435 cat >>confdefs.h
<<\_ACEOF
12436 #define HAVE_H_ERRNO 1
12441 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
12442 # for constant arguments. Useless!
12443 echo "$as_me:$LINENO: checking for working alloca.h" >&5
12444 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
12445 if test "${ac_cv_working_alloca_h+set}" = set; then
12446 echo $ECHO_N "(cached) $ECHO_C" >&6
12448 cat >conftest.
$ac_ext <<_ACEOF
12451 cat confdefs.h
>>conftest.
$ac_ext
12452 cat >>conftest.
$ac_ext <<_ACEOF
12453 /* end confdefs.h. */
12454 #include <alloca.h>
12458 char *p = (char *) alloca (2 * sizeof (int));
12463 rm -f conftest.
$ac_objext conftest
$ac_exeext
12464 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12465 (eval $ac_link) 2>conftest.er1
12467 grep -v '^ *+' conftest.er1
>conftest.err
12469 cat conftest.err
>&5
12470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12471 (exit $ac_status); } &&
12472 { ac_try
='test -z "$ac_c_werror_flag"
12473 || test ! -s conftest.err'
12474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12475 (eval $ac_try) 2>&5
12477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12478 (exit $ac_status); }; } &&
12479 { ac_try
='test -s conftest$ac_exeext'
12480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12481 (eval $ac_try) 2>&5
12483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12484 (exit $ac_status); }; }; then
12485 ac_cv_working_alloca_h
=yes
12487 echo "$as_me: failed program was:" >&5
12488 sed 's/^/| /' conftest.
$ac_ext >&5
12490 ac_cv_working_alloca_h
=no
12492 rm -f conftest.err conftest.
$ac_objext \
12493 conftest
$ac_exeext conftest.
$ac_ext
12495 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
12496 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
12497 if test $ac_cv_working_alloca_h = yes; then
12499 cat >>confdefs.h
<<\_ACEOF
12500 #define HAVE_ALLOCA_H 1
12505 echo "$as_me:$LINENO: checking for alloca" >&5
12506 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
12507 if test "${ac_cv_func_alloca_works+set}" = set; then
12508 echo $ECHO_N "(cached) $ECHO_C" >&6
12510 cat >conftest.
$ac_ext <<_ACEOF
12513 cat confdefs.h
>>conftest.
$ac_ext
12514 cat >>conftest.
$ac_ext <<_ACEOF
12515 /* end confdefs.h. */
12517 # define alloca __builtin_alloca
12520 # include <malloc.h>
12521 # define alloca _alloca
12524 # include <alloca.h>
12529 # ifndef alloca /* predefined by HP cc +Olibcalls */
12540 char *p = (char *) alloca (1);
12545 rm -f conftest.
$ac_objext conftest
$ac_exeext
12546 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12547 (eval $ac_link) 2>conftest.er1
12549 grep -v '^ *+' conftest.er1
>conftest.err
12551 cat conftest.err
>&5
12552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12553 (exit $ac_status); } &&
12554 { ac_try
='test -z "$ac_c_werror_flag"
12555 || test ! -s conftest.err'
12556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12557 (eval $ac_try) 2>&5
12559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12560 (exit $ac_status); }; } &&
12561 { ac_try
='test -s conftest$ac_exeext'
12562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12563 (eval $ac_try) 2>&5
12565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12566 (exit $ac_status); }; }; then
12567 ac_cv_func_alloca_works
=yes
12569 echo "$as_me: failed program was:" >&5
12570 sed 's/^/| /' conftest.
$ac_ext >&5
12572 ac_cv_func_alloca_works
=no
12574 rm -f conftest.err conftest.
$ac_objext \
12575 conftest
$ac_exeext conftest.
$ac_ext
12577 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
12578 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
12580 if test $ac_cv_func_alloca_works = yes; then
12582 cat >>confdefs.h
<<\_ACEOF
12583 #define HAVE_ALLOCA 1
12587 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
12588 # that cause trouble. Some versions do not even contain alloca or
12589 # contain a buggy version. If you still want to use their alloca,
12590 # use ar to extract alloca.o from them instead of compiling alloca.c.
12592 ALLOCA
=alloca.
$ac_objext
12594 cat >>confdefs.h
<<\_ACEOF
12599 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
12600 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
12601 if test "${ac_cv_os_cray+set}" = set; then
12602 echo $ECHO_N "(cached) $ECHO_C" >&6
12604 cat >conftest.
$ac_ext <<_ACEOF
12607 cat confdefs.h
>>conftest.
$ac_ext
12608 cat >>conftest.
$ac_ext <<_ACEOF
12609 /* end confdefs.h. */
12610 #if defined(CRAY) && ! defined(CRAY2)
12617 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12618 $EGREP "webecray" >/dev
/null
2>&1; then
12626 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
12627 echo "${ECHO_T}$ac_cv_os_cray" >&6
12628 if test $ac_cv_os_cray = yes; then
12629 for ac_func
in _getb67 GETB67 getb67
; do
12630 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12631 echo "$as_me:$LINENO: checking for $ac_func" >&5
12632 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12633 if eval "test \"\${$as_ac_var+set}\" = set"; then
12634 echo $ECHO_N "(cached) $ECHO_C" >&6
12636 cat >conftest.
$ac_ext <<_ACEOF
12639 cat confdefs.h
>>conftest.
$ac_ext
12640 cat >>conftest.
$ac_ext <<_ACEOF
12641 /* end confdefs.h. */
12642 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12643 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12644 #define $ac_func innocuous_$ac_func
12646 /* System header to define __stub macros and hopefully few prototypes,
12647 which can conflict with char $ac_func (); below.
12648 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12649 <limits.h> exists even on freestanding compilers. */
12652 # include <limits.h>
12654 # include <assert.h>
12659 /* Override any gcc2 internal prototype to avoid an error. */
12664 /* We use char because int might match the return type of a gcc2
12665 builtin and then its argument prototype would still apply. */
12667 /* The GNU C library defines this for functions which it implements
12668 to always fail with ENOSYS. Some functions are actually named
12669 something starting with __ and the normal name is an alias. */
12670 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12673 char (*f) () = $ac_func;
12682 return f != $ac_func;
12687 rm -f conftest.
$ac_objext conftest
$ac_exeext
12688 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12689 (eval $ac_link) 2>conftest.er1
12691 grep -v '^ *+' conftest.er1
>conftest.err
12693 cat conftest.err
>&5
12694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12695 (exit $ac_status); } &&
12696 { ac_try
='test -z "$ac_c_werror_flag"
12697 || test ! -s conftest.err'
12698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12699 (eval $ac_try) 2>&5
12701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12702 (exit $ac_status); }; } &&
12703 { ac_try
='test -s conftest$ac_exeext'
12704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12705 (eval $ac_try) 2>&5
12707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12708 (exit $ac_status); }; }; then
12709 eval "$as_ac_var=yes"
12711 echo "$as_me: failed program was:" >&5
12712 sed 's/^/| /' conftest.
$ac_ext >&5
12714 eval "$as_ac_var=no"
12716 rm -f conftest.err conftest.
$ac_objext \
12717 conftest
$ac_exeext conftest.
$ac_ext
12719 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12720 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12721 if test `eval echo '${'$as_ac_var'}'` = yes; then
12723 cat >>confdefs.h
<<_ACEOF
12724 #define CRAY_STACKSEG_END $ac_func
12733 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
12734 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
12735 if test "${ac_cv_c_stack_direction+set}" = set; then
12736 echo $ECHO_N "(cached) $ECHO_C" >&6
12738 if test "$cross_compiling" = yes; then
12739 ac_cv_c_stack_direction
=0
12741 cat >conftest.
$ac_ext <<_ACEOF
12744 cat confdefs.h
>>conftest.
$ac_ext
12745 cat >>conftest.
$ac_ext <<_ACEOF
12746 /* end confdefs.h. */
12748 find_stack_direction ()
12750 static char *addr = 0;
12755 return find_stack_direction ();
12758 return (&dummy > addr) ? 1 : -1;
12764 exit (find_stack_direction () < 0);
12767 rm -f conftest
$ac_exeext
12768 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12769 (eval $ac_link) 2>&5
12771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12772 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
12773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12774 (eval $ac_try) 2>&5
12776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12777 (exit $ac_status); }; }; then
12778 ac_cv_c_stack_direction
=1
12780 echo "$as_me: program exited with status $ac_status" >&5
12781 echo "$as_me: failed program was:" >&5
12782 sed 's/^/| /' conftest.
$ac_ext >&5
12784 ( exit $ac_status )
12785 ac_cv_c_stack_direction
=-1
12787 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
12790 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
12791 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
12793 cat >>confdefs.h
<<_ACEOF
12794 #define STACK_DIRECTION $ac_cv_c_stack_direction
12801 # fmod, logb, and frexp are found in -lm on most systems.
12802 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
12804 echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
12805 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
12806 if test "${ac_cv_lib_m_sqrt+set}" = set; then
12807 echo $ECHO_N "(cached) $ECHO_C" >&6
12809 ac_check_lib_save_LIBS
=$LIBS
12811 cat >conftest.
$ac_ext <<_ACEOF
12814 cat confdefs.h
>>conftest.
$ac_ext
12815 cat >>conftest.
$ac_ext <<_ACEOF
12816 /* end confdefs.h. */
12818 /* Override any gcc2 internal prototype to avoid an error. */
12822 /* We use char because int might match the return type of a gcc2
12823 builtin and then its argument prototype would still apply. */
12833 rm -f conftest.
$ac_objext conftest
$ac_exeext
12834 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12835 (eval $ac_link) 2>conftest.er1
12837 grep -v '^ *+' conftest.er1
>conftest.err
12839 cat conftest.err
>&5
12840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12841 (exit $ac_status); } &&
12842 { ac_try
='test -z "$ac_c_werror_flag"
12843 || test ! -s conftest.err'
12844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12845 (eval $ac_try) 2>&5
12847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12848 (exit $ac_status); }; } &&
12849 { ac_try
='test -s conftest$ac_exeext'
12850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12851 (eval $ac_try) 2>&5
12853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12854 (exit $ac_status); }; }; then
12855 ac_cv_lib_m_sqrt
=yes
12857 echo "$as_me: failed program was:" >&5
12858 sed 's/^/| /' conftest.
$ac_ext >&5
12860 ac_cv_lib_m_sqrt
=no
12862 rm -f conftest.err conftest.
$ac_objext \
12863 conftest
$ac_exeext conftest.
$ac_ext
12864 LIBS
=$ac_check_lib_save_LIBS
12866 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
12867 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
12868 if test $ac_cv_lib_m_sqrt = yes; then
12869 cat >>confdefs.h
<<_ACEOF
12870 #define HAVE_LIBM 1
12878 # Check for mail-locking functions in a "mail" library. Probably this should
12879 # have the same check as for liblockfile below.
12881 echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
12882 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6
12883 if test "${ac_cv_lib_mail_maillock+set}" = set; then
12884 echo $ECHO_N "(cached) $ECHO_C" >&6
12886 ac_check_lib_save_LIBS
=$LIBS
12887 LIBS
="-lmail $LIBS"
12888 cat >conftest.
$ac_ext <<_ACEOF
12891 cat confdefs.h
>>conftest.
$ac_ext
12892 cat >>conftest.
$ac_ext <<_ACEOF
12893 /* end confdefs.h. */
12895 /* Override any gcc2 internal prototype to avoid an error. */
12899 /* We use char because int might match the return type of a gcc2
12900 builtin and then its argument prototype would still apply. */
12910 rm -f conftest.
$ac_objext conftest
$ac_exeext
12911 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12912 (eval $ac_link) 2>conftest.er1
12914 grep -v '^ *+' conftest.er1
>conftest.err
12916 cat conftest.err
>&5
12917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12918 (exit $ac_status); } &&
12919 { ac_try
='test -z "$ac_c_werror_flag"
12920 || test ! -s conftest.err'
12921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12922 (eval $ac_try) 2>&5
12924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12925 (exit $ac_status); }; } &&
12926 { ac_try
='test -s conftest$ac_exeext'
12927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12928 (eval $ac_try) 2>&5
12930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12931 (exit $ac_status); }; }; then
12932 ac_cv_lib_mail_maillock
=yes
12934 echo "$as_me: failed program was:" >&5
12935 sed 's/^/| /' conftest.
$ac_ext >&5
12937 ac_cv_lib_mail_maillock
=no
12939 rm -f conftest.err conftest.
$ac_objext \
12940 conftest
$ac_exeext conftest.
$ac_ext
12941 LIBS
=$ac_check_lib_save_LIBS
12943 echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
12944 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6
12945 if test $ac_cv_lib_mail_maillock = yes; then
12946 cat >>confdefs.h
<<_ACEOF
12947 #define HAVE_LIBMAIL 1
12950 LIBS
="-lmail $LIBS"
12955 echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
12956 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6
12957 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
12958 echo $ECHO_N "(cached) $ECHO_C" >&6
12960 ac_check_lib_save_LIBS
=$LIBS
12961 LIBS
="-llockfile $LIBS"
12962 cat >conftest.
$ac_ext <<_ACEOF
12965 cat confdefs.h
>>conftest.
$ac_ext
12966 cat >>conftest.
$ac_ext <<_ACEOF
12967 /* end confdefs.h. */
12969 /* Override any gcc2 internal prototype to avoid an error. */
12973 /* We use char because int might match the return type of a gcc2
12974 builtin and then its argument prototype would still apply. */
12984 rm -f conftest.
$ac_objext conftest
$ac_exeext
12985 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12986 (eval $ac_link) 2>conftest.er1
12988 grep -v '^ *+' conftest.er1
>conftest.err
12990 cat conftest.err
>&5
12991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12992 (exit $ac_status); } &&
12993 { ac_try
='test -z "$ac_c_werror_flag"
12994 || test ! -s conftest.err'
12995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12996 (eval $ac_try) 2>&5
12998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12999 (exit $ac_status); }; } &&
13000 { ac_try
='test -s conftest$ac_exeext'
13001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13002 (eval $ac_try) 2>&5
13004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13005 (exit $ac_status); }; }; then
13006 ac_cv_lib_lockfile_maillock
=yes
13008 echo "$as_me: failed program was:" >&5
13009 sed 's/^/| /' conftest.
$ac_ext >&5
13011 ac_cv_lib_lockfile_maillock
=no
13013 rm -f conftest.err conftest.
$ac_objext \
13014 conftest
$ac_exeext conftest.
$ac_ext
13015 LIBS
=$ac_check_lib_save_LIBS
13017 echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
13018 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6
13019 if test $ac_cv_lib_lockfile_maillock = yes; then
13020 cat >>confdefs.h
<<_ACEOF
13021 #define HAVE_LIBLOCKFILE 1
13024 LIBS
="-llockfile $LIBS"
13028 # If we have the shared liblockfile, assume we must use it for mail
13029 # locking (e.g. Debian). If we couldn't link against liblockfile
13030 # (no liblockfile.a installed), ensure that we don't need to.
13031 if test "$ac_cv_lib_lockfile_maillock" = no
; then
13032 # Extract the first word of "liblockfile.so", so it can be a program name with args.
13033 set dummy liblockfile.so
; ac_word
=$2
13034 echo "$as_me:$LINENO: checking for $ac_word" >&5
13035 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13036 if test "${ac_cv_prog_liblockfile+set}" = set; then
13037 echo $ECHO_N "(cached) $ECHO_C" >&6
13039 if test -n "$liblockfile"; then
13040 ac_cv_prog_liblockfile
="$liblockfile" # Let the user override the test.
13042 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13043 as_dummy
="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
13044 for as_dir
in $as_dummy
13047 test -z "$as_dir" && as_dir
=.
13048 for ac_exec_ext
in '' $ac_executable_extensions; do
13049 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13050 ac_cv_prog_liblockfile
="yes"
13051 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13057 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile
="no"
13060 liblockfile
=$ac_cv_prog_liblockfile
13061 if test -n "$liblockfile"; then
13062 echo "$as_me:$LINENO: result: $liblockfile" >&5
13063 echo "${ECHO_T}$liblockfile" >&6
13065 echo "$as_me:$LINENO: result: no" >&5
13066 echo "${ECHO_T}no" >&6
13069 if test $ac_cv_prog_liblockfile = yes; then
13070 { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
13071 This probably means that movemail could lose mail.
13072 There may be a \`development' package to install containing liblockfile." >&5
13073 echo "$as_me: error: Shared liblockfile found but can't link against it.
13074 This probably means that movemail could lose mail.
13075 There may be a \`development' package to install containing liblockfile." >&2;}
13076 { (exit 1); exit 1; }; }
13081 for ac_func
in touchlock
13083 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13084 echo "$as_me:$LINENO: checking for $ac_func" >&5
13085 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13086 if eval "test \"\${$as_ac_var+set}\" = set"; then
13087 echo $ECHO_N "(cached) $ECHO_C" >&6
13089 cat >conftest.
$ac_ext <<_ACEOF
13092 cat confdefs.h
>>conftest.
$ac_ext
13093 cat >>conftest.
$ac_ext <<_ACEOF
13094 /* end confdefs.h. */
13095 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13096 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13097 #define $ac_func innocuous_$ac_func
13099 /* System header to define __stub macros and hopefully few prototypes,
13100 which can conflict with char $ac_func (); below.
13101 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13102 <limits.h> exists even on freestanding compilers. */
13105 # include <limits.h>
13107 # include <assert.h>
13112 /* Override any gcc2 internal prototype to avoid an error. */
13117 /* We use char because int might match the return type of a gcc2
13118 builtin and then its argument prototype would still apply. */
13120 /* The GNU C library defines this for functions which it implements
13121 to always fail with ENOSYS. Some functions are actually named
13122 something starting with __ and the normal name is an alias. */
13123 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13126 char (*f) () = $ac_func;
13135 return f != $ac_func;
13140 rm -f conftest.
$ac_objext conftest
$ac_exeext
13141 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13142 (eval $ac_link) 2>conftest.er1
13144 grep -v '^ *+' conftest.er1
>conftest.err
13146 cat conftest.err
>&5
13147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13148 (exit $ac_status); } &&
13149 { ac_try
='test -z "$ac_c_werror_flag"
13150 || test ! -s conftest.err'
13151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13152 (eval $ac_try) 2>&5
13154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13155 (exit $ac_status); }; } &&
13156 { ac_try
='test -s conftest$ac_exeext'
13157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13158 (eval $ac_try) 2>&5
13160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13161 (exit $ac_status); }; }; then
13162 eval "$as_ac_var=yes"
13164 echo "$as_me: failed program was:" >&5
13165 sed 's/^/| /' conftest.
$ac_ext >&5
13167 eval "$as_ac_var=no"
13169 rm -f conftest.err conftest.
$ac_objext \
13170 conftest
$ac_exeext conftest.
$ac_ext
13172 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13173 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13174 if test `eval echo '${'$as_ac_var'}'` = yes; then
13175 cat >>confdefs.h
<<_ACEOF
13176 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13183 for ac_header
in maillock.h
13185 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13186 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13187 echo "$as_me:$LINENO: checking for $ac_header" >&5
13188 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13189 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13190 echo $ECHO_N "(cached) $ECHO_C" >&6
13192 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13193 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13195 # Is the header compilable?
13196 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13197 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13198 cat >conftest.
$ac_ext <<_ACEOF
13201 cat confdefs.h
>>conftest.
$ac_ext
13202 cat >>conftest.
$ac_ext <<_ACEOF
13203 /* end confdefs.h. */
13204 $ac_includes_default
13205 #include <$ac_header>
13207 rm -f conftest.
$ac_objext
13208 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13209 (eval $ac_compile) 2>conftest.er1
13211 grep -v '^ *+' conftest.er1
>conftest.err
13213 cat conftest.err
>&5
13214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13215 (exit $ac_status); } &&
13216 { ac_try
='test -z "$ac_c_werror_flag"
13217 || test ! -s conftest.err'
13218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13219 (eval $ac_try) 2>&5
13221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13222 (exit $ac_status); }; } &&
13223 { ac_try
='test -s conftest.$ac_objext'
13224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13225 (eval $ac_try) 2>&5
13227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13228 (exit $ac_status); }; }; then
13229 ac_header_compiler
=yes
13231 echo "$as_me: failed program was:" >&5
13232 sed 's/^/| /' conftest.
$ac_ext >&5
13234 ac_header_compiler
=no
13236 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13237 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13238 echo "${ECHO_T}$ac_header_compiler" >&6
13240 # Is the header present?
13241 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13242 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13243 cat >conftest.
$ac_ext <<_ACEOF
13246 cat confdefs.h
>>conftest.
$ac_ext
13247 cat >>conftest.
$ac_ext <<_ACEOF
13248 /* end confdefs.h. */
13249 #include <$ac_header>
13251 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13252 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
13254 grep -v '^ *+' conftest.er1
>conftest.err
13256 cat conftest.err
>&5
13257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13258 (exit $ac_status); } >/dev
/null
; then
13259 if test -s conftest.err
; then
13260 ac_cpp_err
=$ac_c_preproc_warn_flag
13261 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
13268 if test -z "$ac_cpp_err"; then
13269 ac_header_preproc
=yes
13271 echo "$as_me: failed program was:" >&5
13272 sed 's/^/| /' conftest.
$ac_ext >&5
13274 ac_header_preproc
=no
13276 rm -f conftest.err conftest.
$ac_ext
13277 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13278 echo "${ECHO_T}$ac_header_preproc" >&6
13280 # So? What about this header?
13281 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13283 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13284 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13285 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13286 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13287 ac_header_preproc
=yes
13290 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13291 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13292 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13293 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13294 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13295 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13296 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13297 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13298 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13299 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13300 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13301 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13304 ## ------------------------------------------ ##
13305 ## Report this to the AC_PACKAGE_NAME lists. ##
13306 ## ------------------------------------------ ##
13309 sed "s/^/$as_me: WARNING: /" >&2
13312 echo "$as_me:$LINENO: checking for $ac_header" >&5
13313 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13314 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13315 echo $ECHO_N "(cached) $ECHO_C" >&6
13317 eval "$as_ac_Header=\$ac_header_preproc"
13319 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13320 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13323 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13324 cat >>confdefs.h
<<_ACEOF
13325 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13399 for ac_func
in gethostname getdomainname dup2 \
13400 rename closedir mkdir
rmdir sysinfo \
13401 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
13402 strerror fpathconf
select mktime euidaccess getpagesize tzset setlocale \
13403 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
13404 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
13405 sendto recvfrom getsockopt setsockopt getsockname getpeername \
13406 gai_strerror mkstemp getline getdelim mremap memmove fsync bzero \
13407 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign
13409 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13410 echo "$as_me:$LINENO: checking for $ac_func" >&5
13411 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13412 if eval "test \"\${$as_ac_var+set}\" = set"; then
13413 echo $ECHO_N "(cached) $ECHO_C" >&6
13415 cat >conftest.
$ac_ext <<_ACEOF
13418 cat confdefs.h
>>conftest.
$ac_ext
13419 cat >>conftest.
$ac_ext <<_ACEOF
13420 /* end confdefs.h. */
13421 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13422 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13423 #define $ac_func innocuous_$ac_func
13425 /* System header to define __stub macros and hopefully few prototypes,
13426 which can conflict with char $ac_func (); below.
13427 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13428 <limits.h> exists even on freestanding compilers. */
13431 # include <limits.h>
13433 # include <assert.h>
13438 /* Override any gcc2 internal prototype to avoid an error. */
13443 /* We use char because int might match the return type of a gcc2
13444 builtin and then its argument prototype would still apply. */
13446 /* The GNU C library defines this for functions which it implements
13447 to always fail with ENOSYS. Some functions are actually named
13448 something starting with __ and the normal name is an alias. */
13449 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13452 char (*f) () = $ac_func;
13461 return f != $ac_func;
13466 rm -f conftest.
$ac_objext conftest
$ac_exeext
13467 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13468 (eval $ac_link) 2>conftest.er1
13470 grep -v '^ *+' conftest.er1
>conftest.err
13472 cat conftest.err
>&5
13473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13474 (exit $ac_status); } &&
13475 { ac_try
='test -z "$ac_c_werror_flag"
13476 || test ! -s conftest.err'
13477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13478 (eval $ac_try) 2>&5
13480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13481 (exit $ac_status); }; } &&
13482 { ac_try
='test -s conftest$ac_exeext'
13483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13484 (eval $ac_try) 2>&5
13486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13487 (exit $ac_status); }; }; then
13488 eval "$as_ac_var=yes"
13490 echo "$as_me: failed program was:" >&5
13491 sed 's/^/| /' conftest.
$ac_ext >&5
13493 eval "$as_ac_var=no"
13495 rm -f conftest.err conftest.
$ac_objext \
13496 conftest
$ac_exeext conftest.
$ac_ext
13498 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13499 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13500 if test `eval echo '${'$as_ac_var'}'` = yes; then
13501 cat >>confdefs.h
<<_ACEOF
13502 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13510 for ac_header
in sys
/un.h
13512 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13513 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13514 echo "$as_me:$LINENO: checking for $ac_header" >&5
13515 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13516 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13517 echo $ECHO_N "(cached) $ECHO_C" >&6
13519 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13520 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13522 # Is the header compilable?
13523 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13524 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13525 cat >conftest.
$ac_ext <<_ACEOF
13528 cat confdefs.h
>>conftest.
$ac_ext
13529 cat >>conftest.
$ac_ext <<_ACEOF
13530 /* end confdefs.h. */
13531 $ac_includes_default
13532 #include <$ac_header>
13534 rm -f conftest.
$ac_objext
13535 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13536 (eval $ac_compile) 2>conftest.er1
13538 grep -v '^ *+' conftest.er1
>conftest.err
13540 cat conftest.err
>&5
13541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13542 (exit $ac_status); } &&
13543 { ac_try
='test -z "$ac_c_werror_flag"
13544 || test ! -s conftest.err'
13545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13546 (eval $ac_try) 2>&5
13548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13549 (exit $ac_status); }; } &&
13550 { ac_try
='test -s conftest.$ac_objext'
13551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13552 (eval $ac_try) 2>&5
13554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13555 (exit $ac_status); }; }; then
13556 ac_header_compiler
=yes
13558 echo "$as_me: failed program was:" >&5
13559 sed 's/^/| /' conftest.
$ac_ext >&5
13561 ac_header_compiler
=no
13563 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13564 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13565 echo "${ECHO_T}$ac_header_compiler" >&6
13567 # Is the header present?
13568 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13569 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13570 cat >conftest.
$ac_ext <<_ACEOF
13573 cat confdefs.h
>>conftest.
$ac_ext
13574 cat >>conftest.
$ac_ext <<_ACEOF
13575 /* end confdefs.h. */
13576 #include <$ac_header>
13578 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13579 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
13581 grep -v '^ *+' conftest.er1
>conftest.err
13583 cat conftest.err
>&5
13584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13585 (exit $ac_status); } >/dev
/null
; then
13586 if test -s conftest.err
; then
13587 ac_cpp_err
=$ac_c_preproc_warn_flag
13588 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
13595 if test -z "$ac_cpp_err"; then
13596 ac_header_preproc
=yes
13598 echo "$as_me: failed program was:" >&5
13599 sed 's/^/| /' conftest.
$ac_ext >&5
13601 ac_header_preproc
=no
13603 rm -f conftest.err conftest.
$ac_ext
13604 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13605 echo "${ECHO_T}$ac_header_preproc" >&6
13607 # So? What about this header?
13608 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13610 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13611 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13612 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13613 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13614 ac_header_preproc
=yes
13617 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13618 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13619 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13620 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13621 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13622 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13623 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13624 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13625 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13626 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13627 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13628 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13631 ## ------------------------------------------ ##
13632 ## Report this to the AC_PACKAGE_NAME lists. ##
13633 ## ------------------------------------------ ##
13636 sed "s/^/$as_me: WARNING: /" >&2
13639 echo "$as_me:$LINENO: checking for $ac_header" >&5
13640 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13641 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13642 echo $ECHO_N "(cached) $ECHO_C" >&6
13644 eval "$as_ac_Header=\$ac_header_preproc"
13646 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13647 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13650 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13651 cat >>confdefs.h
<<_ACEOF
13652 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13663 for ac_header
in stdlib.h sys
/time.h unistd.h
13665 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13666 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13667 echo "$as_me:$LINENO: checking for $ac_header" >&5
13668 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13669 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13670 echo $ECHO_N "(cached) $ECHO_C" >&6
13672 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13673 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13675 # Is the header compilable?
13676 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13677 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13678 cat >conftest.
$ac_ext <<_ACEOF
13681 cat confdefs.h
>>conftest.
$ac_ext
13682 cat >>conftest.
$ac_ext <<_ACEOF
13683 /* end confdefs.h. */
13684 $ac_includes_default
13685 #include <$ac_header>
13687 rm -f conftest.
$ac_objext
13688 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13689 (eval $ac_compile) 2>conftest.er1
13691 grep -v '^ *+' conftest.er1
>conftest.err
13693 cat conftest.err
>&5
13694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13695 (exit $ac_status); } &&
13696 { ac_try
='test -z "$ac_c_werror_flag"
13697 || test ! -s conftest.err'
13698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13699 (eval $ac_try) 2>&5
13701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13702 (exit $ac_status); }; } &&
13703 { ac_try
='test -s conftest.$ac_objext'
13704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13705 (eval $ac_try) 2>&5
13707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13708 (exit $ac_status); }; }; then
13709 ac_header_compiler
=yes
13711 echo "$as_me: failed program was:" >&5
13712 sed 's/^/| /' conftest.
$ac_ext >&5
13714 ac_header_compiler
=no
13716 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13717 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13718 echo "${ECHO_T}$ac_header_compiler" >&6
13720 # Is the header present?
13721 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13722 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13723 cat >conftest.
$ac_ext <<_ACEOF
13726 cat confdefs.h
>>conftest.
$ac_ext
13727 cat >>conftest.
$ac_ext <<_ACEOF
13728 /* end confdefs.h. */
13729 #include <$ac_header>
13731 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13732 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
13734 grep -v '^ *+' conftest.er1
>conftest.err
13736 cat conftest.err
>&5
13737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13738 (exit $ac_status); } >/dev
/null
; then
13739 if test -s conftest.err
; then
13740 ac_cpp_err
=$ac_c_preproc_warn_flag
13741 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
13748 if test -z "$ac_cpp_err"; then
13749 ac_header_preproc
=yes
13751 echo "$as_me: failed program was:" >&5
13752 sed 's/^/| /' conftest.
$ac_ext >&5
13754 ac_header_preproc
=no
13756 rm -f conftest.err conftest.
$ac_ext
13757 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13758 echo "${ECHO_T}$ac_header_preproc" >&6
13760 # So? What about this header?
13761 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13763 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13764 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13765 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13766 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13767 ac_header_preproc
=yes
13770 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13771 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13772 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13773 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13774 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13775 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13776 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13777 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13778 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13779 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13780 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13781 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13784 ## ------------------------------------------ ##
13785 ## Report this to the AC_PACKAGE_NAME lists. ##
13786 ## ------------------------------------------ ##
13789 sed "s/^/$as_me: WARNING: /" >&2
13792 echo "$as_me:$LINENO: checking for $ac_header" >&5
13793 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13794 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13795 echo $ECHO_N "(cached) $ECHO_C" >&6
13797 eval "$as_ac_Header=\$ac_header_preproc"
13799 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13800 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13803 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13804 cat >>confdefs.h
<<_ACEOF
13805 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13813 for ac_func
in alarm
13815 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13816 echo "$as_me:$LINENO: checking for $ac_func" >&5
13817 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13818 if eval "test \"\${$as_ac_var+set}\" = set"; then
13819 echo $ECHO_N "(cached) $ECHO_C" >&6
13821 cat >conftest.
$ac_ext <<_ACEOF
13824 cat confdefs.h
>>conftest.
$ac_ext
13825 cat >>conftest.
$ac_ext <<_ACEOF
13826 /* end confdefs.h. */
13827 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13828 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13829 #define $ac_func innocuous_$ac_func
13831 /* System header to define __stub macros and hopefully few prototypes,
13832 which can conflict with char $ac_func (); below.
13833 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13834 <limits.h> exists even on freestanding compilers. */
13837 # include <limits.h>
13839 # include <assert.h>
13844 /* Override any gcc2 internal prototype to avoid an error. */
13849 /* We use char because int might match the return type of a gcc2
13850 builtin and then its argument prototype would still apply. */
13852 /* The GNU C library defines this for functions which it implements
13853 to always fail with ENOSYS. Some functions are actually named
13854 something starting with __ and the normal name is an alias. */
13855 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13858 char (*f) () = $ac_func;
13867 return f != $ac_func;
13872 rm -f conftest.
$ac_objext conftest
$ac_exeext
13873 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13874 (eval $ac_link) 2>conftest.er1
13876 grep -v '^ *+' conftest.er1
>conftest.err
13878 cat conftest.err
>&5
13879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13880 (exit $ac_status); } &&
13881 { ac_try
='test -z "$ac_c_werror_flag"
13882 || test ! -s conftest.err'
13883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13884 (eval $ac_try) 2>&5
13886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13887 (exit $ac_status); }; } &&
13888 { ac_try
='test -s conftest$ac_exeext'
13889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13890 (eval $ac_try) 2>&5
13892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13893 (exit $ac_status); }; }; then
13894 eval "$as_ac_var=yes"
13896 echo "$as_me: failed program was:" >&5
13897 sed 's/^/| /' conftest.
$ac_ext >&5
13899 eval "$as_ac_var=no"
13901 rm -f conftest.err conftest.
$ac_objext \
13902 conftest
$ac_exeext conftest.
$ac_ext
13904 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13905 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13906 if test `eval echo '${'$as_ac_var'}'` = yes; then
13907 cat >>confdefs.h
<<_ACEOF
13908 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13914 echo "$as_me:$LINENO: checking for working mktime" >&5
13915 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
13916 if test "${ac_cv_func_working_mktime+set}" = set; then
13917 echo $ECHO_N "(cached) $ECHO_C" >&6
13919 if test "$cross_compiling" = yes; then
13920 ac_cv_func_working_mktime
=no
13922 cat >conftest.
$ac_ext <<_ACEOF
13925 cat confdefs.h
>>conftest.
$ac_ext
13926 cat >>conftest.
$ac_ext <<_ACEOF
13927 /* end confdefs.h. */
13928 /* Test program from Paul Eggert and Tony Leneis. */
13929 #if TIME_WITH_SYS_TIME
13930 # include <sys/time.h>
13933 # if HAVE_SYS_TIME_H
13934 # include <sys/time.h>
13941 # include <stdlib.h>
13945 # include <unistd.h>
13949 # define alarm(X) /* empty */
13952 /* Work around redefinition to rpl_putenv by other config tests. */
13955 static time_t time_t_max;
13956 static time_t time_t_min;
13958 /* Values we'll use to set the TZ environment variable. */
13959 static char *tz_strings[] = {
13960 (char *) 0, "TZ=GMT0", "TZ=JST-9",
13961 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
13963 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
13965 /* Fail if mktime fails to convert a date in the spring-forward gap.
13966 Based on a problem report from Andreas Jaeger. */
13968 spring_forward_gap ()
13970 /* glibc (up to about 1998-10-07) failed this test. */
13973 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
13974 instead of "TZ=America/Vancouver" in order to detect the bug even
13975 on systems that don't support the Olson extension, or don't have the
13976 full zoneinfo tables installed. */
13977 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
13986 if (mktime (&tm) == (time_t)-1)
13995 if ((lt = localtime (&now)) && mktime (lt) != now)
14003 mktime_test1 (now);
14004 mktime_test1 ((time_t) (time_t_max - now));
14005 mktime_test1 ((time_t) (time_t_min + now));
14011 /* Based on code from Ariel Faigon. */
14021 if (tm.tm_mon != 2 || tm.tm_mday != 31)
14031 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
14032 now = mktime (&tm);
14033 if (now != (time_t) -1)
14035 struct tm *lt = localtime (&now);
14037 && lt->tm_year == tm.tm_year
14038 && lt->tm_mon == tm.tm_mon
14039 && lt->tm_mday == tm.tm_mday
14040 && lt->tm_hour == tm.tm_hour
14041 && lt->tm_min == tm.tm_min
14042 && lt->tm_sec == tm.tm_sec
14043 && lt->tm_yday == tm.tm_yday
14044 && lt->tm_wday == tm.tm_wday
14045 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
14046 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
14057 /* This test makes some buggy mktime implementations loop.
14058 Give up after 60 seconds; a mktime slower than that
14059 isn't worth using anyway. */
14062 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
14065 if ((time_t) -1 < 0)
14066 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
14068 delta = time_t_max / 997; /* a suitable prime number */
14069 for (i = 0; i < N_STRINGS; i++)
14072 putenv (tz_strings[i]);
14074 for (t = 0; t <= time_t_max - delta; t += delta)
14076 mktime_test ((time_t) 1);
14077 mktime_test ((time_t) (60 * 60));
14078 mktime_test ((time_t) (60 * 60 * 24));
14080 for (j = 1; 0 < j; j *= 2)
14082 bigtime_test (j - 1);
14085 spring_forward_gap ();
14089 rm -f conftest
$ac_exeext
14090 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14091 (eval $ac_link) 2>&5
14093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14094 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
14095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14096 (eval $ac_try) 2>&5
14098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14099 (exit $ac_status); }; }; then
14100 ac_cv_func_working_mktime
=yes
14102 echo "$as_me: program exited with status $ac_status" >&5
14103 echo "$as_me: failed program was:" >&5
14104 sed 's/^/| /' conftest.
$ac_ext >&5
14106 ( exit $ac_status )
14107 ac_cv_func_working_mktime
=no
14109 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
14112 echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
14113 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
14114 if test $ac_cv_func_working_mktime = no
; then
14116 "mktime.$ac_objext" | \
14117 *" mktime.$ac_objext" | \
14118 "mktime.$ac_objext "* | \
14119 *" mktime.$ac_objext "* ) ;;
14120 *) LIBOBJS
="$LIBOBJS mktime.$ac_objext" ;;
14125 if test "$ac_cv_func_working_mktime" = no
; then
14127 cat >>confdefs.h
<<\_ACEOF
14128 #define BROKEN_MKTIME 1
14133 ac_have_func
=no
# yes means we've found a way to get the load average.
14135 # Make sure getloadavg.c is where it belongs, at configure-time.
14136 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
14137 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
14138 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
14139 { (exit 1); exit 1; }; }
14143 # Check for getloadavg, but be sure not to touch the cache variable.
14144 (echo "$as_me:$LINENO: checking for getloadavg" >&5
14145 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6
14146 if test "${ac_cv_func_getloadavg+set}" = set; then
14147 echo $ECHO_N "(cached) $ECHO_C" >&6
14149 cat >conftest.
$ac_ext <<_ACEOF
14152 cat confdefs.h
>>conftest.
$ac_ext
14153 cat >>conftest.
$ac_ext <<_ACEOF
14154 /* end confdefs.h. */
14155 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
14156 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14157 #define getloadavg innocuous_getloadavg
14159 /* System header to define __stub macros and hopefully few prototypes,
14160 which can conflict with char getloadavg (); below.
14161 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14162 <limits.h> exists even on freestanding compilers. */
14165 # include <limits.h>
14167 # include <assert.h>
14172 /* Override any gcc2 internal prototype to avoid an error. */
14177 /* We use char because int might match the return type of a gcc2
14178 builtin and then its argument prototype would still apply. */
14179 char getloadavg ();
14180 /* The GNU C library defines this for functions which it implements
14181 to always fail with ENOSYS. Some functions are actually named
14182 something starting with __ and the normal name is an alias. */
14183 #if defined (__stub_getloadavg) || defined (__stub___getloadavg)
14186 char (*f) () = getloadavg;
14195 return f != getloadavg;
14200 rm -f conftest.
$ac_objext conftest
$ac_exeext
14201 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14202 (eval $ac_link) 2>conftest.er1
14204 grep -v '^ *+' conftest.er1
>conftest.err
14206 cat conftest.err
>&5
14207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14208 (exit $ac_status); } &&
14209 { ac_try
='test -z "$ac_c_werror_flag"
14210 || test ! -s conftest.err'
14211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14212 (eval $ac_try) 2>&5
14214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14215 (exit $ac_status); }; } &&
14216 { ac_try
='test -s conftest$ac_exeext'
14217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14218 (eval $ac_try) 2>&5
14220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14221 (exit $ac_status); }; }; then
14222 ac_cv_func_getloadavg
=yes
14224 echo "$as_me: failed program was:" >&5
14225 sed 's/^/| /' conftest.
$ac_ext >&5
14227 ac_cv_func_getloadavg
=no
14229 rm -f conftest.err conftest.
$ac_objext \
14230 conftest
$ac_exeext conftest.
$ac_ext
14232 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
14233 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6
14234 if test $ac_cv_func_getloadavg = yes; then
14239 ) && ac_have_func
=yes
14241 # On HPUX9, an unprivileged user can get load averages through this function.
14243 for ac_func
in pstat_getdynamic
14245 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14246 echo "$as_me:$LINENO: checking for $ac_func" >&5
14247 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14248 if eval "test \"\${$as_ac_var+set}\" = set"; then
14249 echo $ECHO_N "(cached) $ECHO_C" >&6
14251 cat >conftest.
$ac_ext <<_ACEOF
14254 cat confdefs.h
>>conftest.
$ac_ext
14255 cat >>conftest.
$ac_ext <<_ACEOF
14256 /* end confdefs.h. */
14257 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14258 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14259 #define $ac_func innocuous_$ac_func
14261 /* System header to define __stub macros and hopefully few prototypes,
14262 which can conflict with char $ac_func (); below.
14263 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14264 <limits.h> exists even on freestanding compilers. */
14267 # include <limits.h>
14269 # include <assert.h>
14274 /* Override any gcc2 internal prototype to avoid an error. */
14279 /* We use char because int might match the return type of a gcc2
14280 builtin and then its argument prototype would still apply. */
14282 /* The GNU C library defines this for functions which it implements
14283 to always fail with ENOSYS. Some functions are actually named
14284 something starting with __ and the normal name is an alias. */
14285 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14288 char (*f) () = $ac_func;
14297 return f != $ac_func;
14302 rm -f conftest.
$ac_objext conftest
$ac_exeext
14303 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14304 (eval $ac_link) 2>conftest.er1
14306 grep -v '^ *+' conftest.er1
>conftest.err
14308 cat conftest.err
>&5
14309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14310 (exit $ac_status); } &&
14311 { ac_try
='test -z "$ac_c_werror_flag"
14312 || test ! -s conftest.err'
14313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14314 (eval $ac_try) 2>&5
14316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14317 (exit $ac_status); }; } &&
14318 { ac_try
='test -s conftest$ac_exeext'
14319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14320 (eval $ac_try) 2>&5
14322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14323 (exit $ac_status); }; }; then
14324 eval "$as_ac_var=yes"
14326 echo "$as_me: failed program was:" >&5
14327 sed 's/^/| /' conftest.
$ac_ext >&5
14329 eval "$as_ac_var=no"
14331 rm -f conftest.err conftest.
$ac_objext \
14332 conftest
$ac_exeext conftest.
$ac_ext
14334 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14335 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14336 if test `eval echo '${'$as_ac_var'}'` = yes; then
14337 cat >>confdefs.h
<<_ACEOF
14338 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14345 # Solaris has libkstat which does not require root.
14347 echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
14348 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6
14349 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
14350 echo $ECHO_N "(cached) $ECHO_C" >&6
14352 ac_check_lib_save_LIBS
=$LIBS
14353 LIBS
="-lkstat $LIBS"
14354 cat >conftest.
$ac_ext <<_ACEOF
14357 cat confdefs.h
>>conftest.
$ac_ext
14358 cat >>conftest.
$ac_ext <<_ACEOF
14359 /* end confdefs.h. */
14361 /* Override any gcc2 internal prototype to avoid an error. */
14365 /* We use char because int might match the return type of a gcc2
14366 builtin and then its argument prototype would still apply. */
14367 char kstat_open ();
14376 rm -f conftest.
$ac_objext conftest
$ac_exeext
14377 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14378 (eval $ac_link) 2>conftest.er1
14380 grep -v '^ *+' conftest.er1
>conftest.err
14382 cat conftest.err
>&5
14383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14384 (exit $ac_status); } &&
14385 { ac_try
='test -z "$ac_c_werror_flag"
14386 || test ! -s conftest.err'
14387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14388 (eval $ac_try) 2>&5
14390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14391 (exit $ac_status); }; } &&
14392 { ac_try
='test -s conftest$ac_exeext'
14393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14394 (eval $ac_try) 2>&5
14396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14397 (exit $ac_status); }; }; then
14398 ac_cv_lib_kstat_kstat_open
=yes
14400 echo "$as_me: failed program was:" >&5
14401 sed 's/^/| /' conftest.
$ac_ext >&5
14403 ac_cv_lib_kstat_kstat_open
=no
14405 rm -f conftest.err conftest.
$ac_objext \
14406 conftest
$ac_exeext conftest.
$ac_ext
14407 LIBS
=$ac_check_lib_save_LIBS
14409 echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
14410 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6
14411 if test $ac_cv_lib_kstat_kstat_open = yes; then
14412 cat >>confdefs.h
<<_ACEOF
14413 #define HAVE_LIBKSTAT 1
14416 LIBS
="-lkstat $LIBS"
14420 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func
=yes
14422 # Some systems with -lutil have (and need) -lkvm as well, some do not.
14423 # On Solaris, -lkvm requires nlist from -lelf, so check that first
14424 # to get the right answer into the cache.
14425 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
14426 if test $ac_have_func = no
; then
14427 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
14428 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
14429 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
14430 echo $ECHO_N "(cached) $ECHO_C" >&6
14432 ac_check_lib_save_LIBS
=$LIBS
14434 cat >conftest.
$ac_ext <<_ACEOF
14437 cat confdefs.h
>>conftest.
$ac_ext
14438 cat >>conftest.
$ac_ext <<_ACEOF
14439 /* end confdefs.h. */
14441 /* Override any gcc2 internal prototype to avoid an error. */
14445 /* We use char because int might match the return type of a gcc2
14446 builtin and then its argument prototype would still apply. */
14456 rm -f conftest.
$ac_objext conftest
$ac_exeext
14457 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14458 (eval $ac_link) 2>conftest.er1
14460 grep -v '^ *+' conftest.er1
>conftest.err
14462 cat conftest.err
>&5
14463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14464 (exit $ac_status); } &&
14465 { ac_try
='test -z "$ac_c_werror_flag"
14466 || test ! -s conftest.err'
14467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14468 (eval $ac_try) 2>&5
14470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14471 (exit $ac_status); }; } &&
14472 { ac_try
='test -s conftest$ac_exeext'
14473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14474 (eval $ac_try) 2>&5
14476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14477 (exit $ac_status); }; }; then
14478 ac_cv_lib_elf_elf_begin
=yes
14480 echo "$as_me: failed program was:" >&5
14481 sed 's/^/| /' conftest.
$ac_ext >&5
14483 ac_cv_lib_elf_elf_begin
=no
14485 rm -f conftest.err conftest.
$ac_objext \
14486 conftest
$ac_exeext conftest.
$ac_ext
14487 LIBS
=$ac_check_lib_save_LIBS
14489 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
14490 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
14491 if test $ac_cv_lib_elf_elf_begin = yes; then
14496 if test $ac_have_func = no
; then
14497 echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
14498 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6
14499 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
14500 echo $ECHO_N "(cached) $ECHO_C" >&6
14502 ac_check_lib_save_LIBS
=$LIBS
14504 cat >conftest.
$ac_ext <<_ACEOF
14507 cat confdefs.h
>>conftest.
$ac_ext
14508 cat >>conftest.
$ac_ext <<_ACEOF
14509 /* end confdefs.h. */
14511 /* Override any gcc2 internal prototype to avoid an error. */
14515 /* We use char because int might match the return type of a gcc2
14516 builtin and then its argument prototype would still apply. */
14526 rm -f conftest.
$ac_objext conftest
$ac_exeext
14527 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14528 (eval $ac_link) 2>conftest.er1
14530 grep -v '^ *+' conftest.er1
>conftest.err
14532 cat conftest.err
>&5
14533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14534 (exit $ac_status); } &&
14535 { ac_try
='test -z "$ac_c_werror_flag"
14536 || test ! -s conftest.err'
14537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14538 (eval $ac_try) 2>&5
14540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14541 (exit $ac_status); }; } &&
14542 { ac_try
='test -s conftest$ac_exeext'
14543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14544 (eval $ac_try) 2>&5
14546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14547 (exit $ac_status); }; }; then
14548 ac_cv_lib_kvm_kvm_open
=yes
14550 echo "$as_me: failed program was:" >&5
14551 sed 's/^/| /' conftest.
$ac_ext >&5
14553 ac_cv_lib_kvm_kvm_open
=no
14555 rm -f conftest.err conftest.
$ac_objext \
14556 conftest
$ac_exeext conftest.
$ac_ext
14557 LIBS
=$ac_check_lib_save_LIBS
14559 echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
14560 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6
14561 if test $ac_cv_lib_kvm_kvm_open = yes; then
14565 # Check for the 4.4BSD definition of getloadavg.
14566 echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
14567 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6
14568 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
14569 echo $ECHO_N "(cached) $ECHO_C" >&6
14571 ac_check_lib_save_LIBS
=$LIBS
14572 LIBS
="-lutil $LIBS"
14573 cat >conftest.
$ac_ext <<_ACEOF
14576 cat confdefs.h
>>conftest.
$ac_ext
14577 cat >>conftest.
$ac_ext <<_ACEOF
14578 /* end confdefs.h. */
14580 /* Override any gcc2 internal prototype to avoid an error. */
14584 /* We use char because int might match the return type of a gcc2
14585 builtin and then its argument prototype would still apply. */
14586 char getloadavg ();
14595 rm -f conftest.
$ac_objext conftest
$ac_exeext
14596 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14597 (eval $ac_link) 2>conftest.er1
14599 grep -v '^ *+' conftest.er1
>conftest.err
14601 cat conftest.err
>&5
14602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14603 (exit $ac_status); } &&
14604 { ac_try
='test -z "$ac_c_werror_flag"
14605 || test ! -s conftest.err'
14606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14607 (eval $ac_try) 2>&5
14609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14610 (exit $ac_status); }; } &&
14611 { ac_try
='test -s conftest$ac_exeext'
14612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14613 (eval $ac_try) 2>&5
14615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14616 (exit $ac_status); }; }; then
14617 ac_cv_lib_util_getloadavg
=yes
14619 echo "$as_me: failed program was:" >&5
14620 sed 's/^/| /' conftest.
$ac_ext >&5
14622 ac_cv_lib_util_getloadavg
=no
14624 rm -f conftest.err conftest.
$ac_objext \
14625 conftest
$ac_exeext conftest.
$ac_ext
14626 LIBS
=$ac_check_lib_save_LIBS
14628 echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
14629 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6
14630 if test $ac_cv_lib_util_getloadavg = yes; then
14631 LIBS
="-lutil $LIBS" ac_have_func
=yes ac_cv_func_getloadavg_setgid
=yes
14636 if test $ac_have_func = no
; then
14637 # There is a commonly available library for RS/6000 AIX.
14638 # Since it is not a standard part of AIX, it might be installed locally.
14639 ac_getloadavg_LIBS
=$LIBS
14640 LIBS
="-L/usr/local/lib $LIBS"
14641 echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
14642 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6
14643 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
14644 echo $ECHO_N "(cached) $ECHO_C" >&6
14646 ac_check_lib_save_LIBS
=$LIBS
14647 LIBS
="-lgetloadavg $LIBS"
14648 cat >conftest.
$ac_ext <<_ACEOF
14651 cat confdefs.h
>>conftest.
$ac_ext
14652 cat >>conftest.
$ac_ext <<_ACEOF
14653 /* end confdefs.h. */
14655 /* Override any gcc2 internal prototype to avoid an error. */
14659 /* We use char because int might match the return type of a gcc2
14660 builtin and then its argument prototype would still apply. */
14661 char getloadavg ();
14670 rm -f conftest.
$ac_objext conftest
$ac_exeext
14671 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14672 (eval $ac_link) 2>conftest.er1
14674 grep -v '^ *+' conftest.er1
>conftest.err
14676 cat conftest.err
>&5
14677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14678 (exit $ac_status); } &&
14679 { ac_try
='test -z "$ac_c_werror_flag"
14680 || test ! -s conftest.err'
14681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14682 (eval $ac_try) 2>&5
14684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14685 (exit $ac_status); }; } &&
14686 { ac_try
='test -s conftest$ac_exeext'
14687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14688 (eval $ac_try) 2>&5
14690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14691 (exit $ac_status); }; }; then
14692 ac_cv_lib_getloadavg_getloadavg
=yes
14694 echo "$as_me: failed program was:" >&5
14695 sed 's/^/| /' conftest.
$ac_ext >&5
14697 ac_cv_lib_getloadavg_getloadavg
=no
14699 rm -f conftest.err conftest.
$ac_objext \
14700 conftest
$ac_exeext conftest.
$ac_ext
14701 LIBS
=$ac_check_lib_save_LIBS
14703 echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
14704 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6
14705 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
14706 LIBS
="-lgetloadavg $LIBS"
14708 LIBS
=$ac_getloadavg_LIBS
14713 # Make sure it is really in the library, if we think we found it,
14714 # otherwise set up the replacement function.
14716 for ac_func
in getloadavg
14718 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14719 echo "$as_me:$LINENO: checking for $ac_func" >&5
14720 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14721 if eval "test \"\${$as_ac_var+set}\" = set"; then
14722 echo $ECHO_N "(cached) $ECHO_C" >&6
14724 cat >conftest.
$ac_ext <<_ACEOF
14727 cat confdefs.h
>>conftest.
$ac_ext
14728 cat >>conftest.
$ac_ext <<_ACEOF
14729 /* end confdefs.h. */
14730 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14731 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14732 #define $ac_func innocuous_$ac_func
14734 /* System header to define __stub macros and hopefully few prototypes,
14735 which can conflict with char $ac_func (); below.
14736 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14737 <limits.h> exists even on freestanding compilers. */
14740 # include <limits.h>
14742 # include <assert.h>
14747 /* Override any gcc2 internal prototype to avoid an error. */
14752 /* We use char because int might match the return type of a gcc2
14753 builtin and then its argument prototype would still apply. */
14755 /* The GNU C library defines this for functions which it implements
14756 to always fail with ENOSYS. Some functions are actually named
14757 something starting with __ and the normal name is an alias. */
14758 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14761 char (*f) () = $ac_func;
14770 return f != $ac_func;
14775 rm -f conftest.
$ac_objext conftest
$ac_exeext
14776 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14777 (eval $ac_link) 2>conftest.er1
14779 grep -v '^ *+' conftest.er1
>conftest.err
14781 cat conftest.err
>&5
14782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14783 (exit $ac_status); } &&
14784 { ac_try
='test -z "$ac_c_werror_flag"
14785 || test ! -s conftest.err'
14786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14787 (eval $ac_try) 2>&5
14789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14790 (exit $ac_status); }; } &&
14791 { ac_try
='test -s conftest$ac_exeext'
14792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14793 (eval $ac_try) 2>&5
14795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14796 (exit $ac_status); }; }; then
14797 eval "$as_ac_var=yes"
14799 echo "$as_me: failed program was:" >&5
14800 sed 's/^/| /' conftest.
$ac_ext >&5
14802 eval "$as_ac_var=no"
14804 rm -f conftest.err conftest.
$ac_objext \
14805 conftest
$ac_exeext conftest.
$ac_ext
14807 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14808 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14809 if test `eval echo '${'$as_ac_var'}'` = yes; then
14810 cat >>confdefs.h
<<_ACEOF
14811 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14816 "getloadavg.$ac_objext" | \
14817 *" getloadavg.$ac_objext" | \
14818 "getloadavg.$ac_objext "* | \
14819 *" getloadavg.$ac_objext "* ) ;;
14820 *) LIBOBJS
="$LIBOBJS getloadavg.$ac_objext" ;;
14824 cat >>confdefs.h
<<\_ACEOF
14825 #define C_GETLOADAVG 1
14828 # Figure out what our getloadavg.c needs.
14830 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
14831 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
14832 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
14833 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
14834 echo $ECHO_N "(cached) $ECHO_C" >&6
14836 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
14837 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
14839 # Is the header compilable?
14840 echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
14841 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6
14842 cat >conftest.
$ac_ext <<_ACEOF
14845 cat confdefs.h
>>conftest.
$ac_ext
14846 cat >>conftest.
$ac_ext <<_ACEOF
14847 /* end confdefs.h. */
14848 $ac_includes_default
14849 #include <sys/dg_sys_info.h>
14851 rm -f conftest.
$ac_objext
14852 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14853 (eval $ac_compile) 2>conftest.er1
14855 grep -v '^ *+' conftest.er1
>conftest.err
14857 cat conftest.err
>&5
14858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14859 (exit $ac_status); } &&
14860 { ac_try
='test -z "$ac_c_werror_flag"
14861 || test ! -s conftest.err'
14862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14863 (eval $ac_try) 2>&5
14865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14866 (exit $ac_status); }; } &&
14867 { ac_try
='test -s conftest.$ac_objext'
14868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14869 (eval $ac_try) 2>&5
14871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14872 (exit $ac_status); }; }; then
14873 ac_header_compiler
=yes
14875 echo "$as_me: failed program was:" >&5
14876 sed 's/^/| /' conftest.
$ac_ext >&5
14878 ac_header_compiler
=no
14880 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14881 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14882 echo "${ECHO_T}$ac_header_compiler" >&6
14884 # Is the header present?
14885 echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
14886 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6
14887 cat >conftest.
$ac_ext <<_ACEOF
14890 cat confdefs.h
>>conftest.
$ac_ext
14891 cat >>conftest.
$ac_ext <<_ACEOF
14892 /* end confdefs.h. */
14893 #include <sys/dg_sys_info.h>
14895 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14896 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
14898 grep -v '^ *+' conftest.er1
>conftest.err
14900 cat conftest.err
>&5
14901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14902 (exit $ac_status); } >/dev
/null
; then
14903 if test -s conftest.err
; then
14904 ac_cpp_err
=$ac_c_preproc_warn_flag
14905 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
14912 if test -z "$ac_cpp_err"; then
14913 ac_header_preproc
=yes
14915 echo "$as_me: failed program was:" >&5
14916 sed 's/^/| /' conftest.
$ac_ext >&5
14918 ac_header_preproc
=no
14920 rm -f conftest.err conftest.
$ac_ext
14921 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14922 echo "${ECHO_T}$ac_header_preproc" >&6
14924 # So? What about this header?
14925 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14927 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
14928 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14929 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
14930 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
14931 ac_header_preproc
=yes
14934 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
14935 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
14936 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
14937 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
14938 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
14939 echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
14940 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
14941 echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
14942 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
14943 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
14944 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
14945 echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
14948 ## ------------------------------------------ ##
14949 ## Report this to the AC_PACKAGE_NAME lists. ##
14950 ## ------------------------------------------ ##
14953 sed "s/^/$as_me: WARNING: /" >&2
14956 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
14957 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
14958 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
14959 echo $ECHO_N "(cached) $ECHO_C" >&6
14961 ac_cv_header_sys_dg_sys_info_h
=$ac_header_preproc
14963 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
14964 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
14967 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
14970 cat >>confdefs.h
<<\_ACEOF
14975 echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
14976 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6
14977 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
14978 echo $ECHO_N "(cached) $ECHO_C" >&6
14980 ac_check_lib_save_LIBS
=$LIBS
14982 cat >conftest.
$ac_ext <<_ACEOF
14985 cat confdefs.h
>>conftest.
$ac_ext
14986 cat >>conftest.
$ac_ext <<_ACEOF
14987 /* end confdefs.h. */
14989 /* Override any gcc2 internal prototype to avoid an error. */
14993 /* We use char because int might match the return type of a gcc2
14994 builtin and then its argument prototype would still apply. */
14995 char dg_sys_info ();
15004 rm -f conftest.
$ac_objext conftest
$ac_exeext
15005 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15006 (eval $ac_link) 2>conftest.er1
15008 grep -v '^ *+' conftest.er1
>conftest.err
15010 cat conftest.err
>&5
15011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15012 (exit $ac_status); } &&
15013 { ac_try
='test -z "$ac_c_werror_flag"
15014 || test ! -s conftest.err'
15015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15016 (eval $ac_try) 2>&5
15018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15019 (exit $ac_status); }; } &&
15020 { ac_try
='test -s conftest$ac_exeext'
15021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15022 (eval $ac_try) 2>&5
15024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15025 (exit $ac_status); }; }; then
15026 ac_cv_lib_dgc_dg_sys_info
=yes
15028 echo "$as_me: failed program was:" >&5
15029 sed 's/^/| /' conftest.
$ac_ext >&5
15031 ac_cv_lib_dgc_dg_sys_info
=no
15033 rm -f conftest.err conftest.
$ac_objext \
15034 conftest
$ac_exeext conftest.
$ac_ext
15035 LIBS
=$ac_check_lib_save_LIBS
15037 echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
15038 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6
15039 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
15040 cat >>confdefs.h
<<_ACEOF
15041 #define HAVE_LIBDGC 1
15052 if test "${ac_cv_header_locale_h+set}" = set; then
15053 echo "$as_me:$LINENO: checking for locale.h" >&5
15054 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
15055 if test "${ac_cv_header_locale_h+set}" = set; then
15056 echo $ECHO_N "(cached) $ECHO_C" >&6
15058 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
15059 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
15061 # Is the header compilable?
15062 echo "$as_me:$LINENO: checking locale.h usability" >&5
15063 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6
15064 cat >conftest.
$ac_ext <<_ACEOF
15067 cat confdefs.h
>>conftest.
$ac_ext
15068 cat >>conftest.
$ac_ext <<_ACEOF
15069 /* end confdefs.h. */
15070 $ac_includes_default
15071 #include <locale.h>
15073 rm -f conftest.
$ac_objext
15074 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15075 (eval $ac_compile) 2>conftest.er1
15077 grep -v '^ *+' conftest.er1
>conftest.err
15079 cat conftest.err
>&5
15080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15081 (exit $ac_status); } &&
15082 { ac_try
='test -z "$ac_c_werror_flag"
15083 || test ! -s conftest.err'
15084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15085 (eval $ac_try) 2>&5
15087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15088 (exit $ac_status); }; } &&
15089 { ac_try
='test -s conftest.$ac_objext'
15090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15091 (eval $ac_try) 2>&5
15093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15094 (exit $ac_status); }; }; then
15095 ac_header_compiler
=yes
15097 echo "$as_me: failed program was:" >&5
15098 sed 's/^/| /' conftest.
$ac_ext >&5
15100 ac_header_compiler
=no
15102 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15103 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15104 echo "${ECHO_T}$ac_header_compiler" >&6
15106 # Is the header present?
15107 echo "$as_me:$LINENO: checking locale.h presence" >&5
15108 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6
15109 cat >conftest.
$ac_ext <<_ACEOF
15112 cat confdefs.h
>>conftest.
$ac_ext
15113 cat >>conftest.
$ac_ext <<_ACEOF
15114 /* end confdefs.h. */
15115 #include <locale.h>
15117 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15118 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
15120 grep -v '^ *+' conftest.er1
>conftest.err
15122 cat conftest.err
>&5
15123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15124 (exit $ac_status); } >/dev
/null
; then
15125 if test -s conftest.err
; then
15126 ac_cpp_err
=$ac_c_preproc_warn_flag
15127 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
15134 if test -z "$ac_cpp_err"; then
15135 ac_header_preproc
=yes
15137 echo "$as_me: failed program was:" >&5
15138 sed 's/^/| /' conftest.
$ac_ext >&5
15140 ac_header_preproc
=no
15142 rm -f conftest.err conftest.
$ac_ext
15143 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15144 echo "${ECHO_T}$ac_header_preproc" >&6
15146 # So? What about this header?
15147 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15149 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
15150 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15151 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
15152 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
15153 ac_header_preproc
=yes
15156 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
15157 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
15158 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
15159 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
15160 { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
15161 echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
15162 { echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
15163 echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
15164 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
15165 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
15166 { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
15167 echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
15170 ## ------------------------------------------ ##
15171 ## Report this to the AC_PACKAGE_NAME lists. ##
15172 ## ------------------------------------------ ##
15175 sed "s/^/$as_me: WARNING: /" >&2
15178 echo "$as_me:$LINENO: checking for locale.h" >&5
15179 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
15180 if test "${ac_cv_header_locale_h+set}" = set; then
15181 echo $ECHO_N "(cached) $ECHO_C" >&6
15183 ac_cv_header_locale_h
=$ac_header_preproc
15185 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
15186 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
15192 for ac_func
in setlocale
15194 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15195 echo "$as_me:$LINENO: checking for $ac_func" >&5
15196 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15197 if eval "test \"\${$as_ac_var+set}\" = set"; then
15198 echo $ECHO_N "(cached) $ECHO_C" >&6
15200 cat >conftest.
$ac_ext <<_ACEOF
15203 cat confdefs.h
>>conftest.
$ac_ext
15204 cat >>conftest.
$ac_ext <<_ACEOF
15205 /* end confdefs.h. */
15206 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15207 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15208 #define $ac_func innocuous_$ac_func
15210 /* System header to define __stub macros and hopefully few prototypes,
15211 which can conflict with char $ac_func (); below.
15212 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15213 <limits.h> exists even on freestanding compilers. */
15216 # include <limits.h>
15218 # include <assert.h>
15223 /* Override any gcc2 internal prototype to avoid an error. */
15228 /* We use char because int might match the return type of a gcc2
15229 builtin and then its argument prototype would still apply. */
15231 /* The GNU C library defines this for functions which it implements
15232 to always fail with ENOSYS. Some functions are actually named
15233 something starting with __ and the normal name is an alias. */
15234 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15237 char (*f) () = $ac_func;
15246 return f != $ac_func;
15251 rm -f conftest.
$ac_objext conftest
$ac_exeext
15252 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15253 (eval $ac_link) 2>conftest.er1
15255 grep -v '^ *+' conftest.er1
>conftest.err
15257 cat conftest.err
>&5
15258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15259 (exit $ac_status); } &&
15260 { ac_try
='test -z "$ac_c_werror_flag"
15261 || test ! -s conftest.err'
15262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15263 (eval $ac_try) 2>&5
15265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15266 (exit $ac_status); }; } &&
15267 { ac_try
='test -s conftest$ac_exeext'
15268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15269 (eval $ac_try) 2>&5
15271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15272 (exit $ac_status); }; }; then
15273 eval "$as_ac_var=yes"
15275 echo "$as_me: failed program was:" >&5
15276 sed 's/^/| /' conftest.
$ac_ext >&5
15278 eval "$as_ac_var=no"
15280 rm -f conftest.err conftest.
$ac_objext \
15281 conftest
$ac_exeext conftest.
$ac_ext
15283 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15284 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15285 if test `eval echo '${'$as_ac_var'}'` = yes; then
15286 cat >>confdefs.h
<<_ACEOF
15287 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15294 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
15295 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
15296 # Irix 4.0.5F has the header but not the library.
15297 if test $ac_have_func = no
&& test "$ac_cv_lib_elf_elf_begin" = yes; then
15300 cat >>confdefs.h
<<\_ACEOF
15306 if test $ac_have_func = no
; then
15307 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
15308 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
15309 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
15310 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
15311 echo $ECHO_N "(cached) $ECHO_C" >&6
15313 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
15314 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
15316 # Is the header compilable?
15317 echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
15318 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6
15319 cat >conftest.
$ac_ext <<_ACEOF
15322 cat confdefs.h
>>conftest.
$ac_ext
15323 cat >>conftest.
$ac_ext <<_ACEOF
15324 /* end confdefs.h. */
15325 $ac_includes_default
15326 #include <inq_stats/cpustats.h>
15328 rm -f conftest.
$ac_objext
15329 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15330 (eval $ac_compile) 2>conftest.er1
15332 grep -v '^ *+' conftest.er1
>conftest.err
15334 cat conftest.err
>&5
15335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15336 (exit $ac_status); } &&
15337 { ac_try
='test -z "$ac_c_werror_flag"
15338 || test ! -s conftest.err'
15339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15340 (eval $ac_try) 2>&5
15342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15343 (exit $ac_status); }; } &&
15344 { ac_try
='test -s conftest.$ac_objext'
15345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15346 (eval $ac_try) 2>&5
15348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15349 (exit $ac_status); }; }; then
15350 ac_header_compiler
=yes
15352 echo "$as_me: failed program was:" >&5
15353 sed 's/^/| /' conftest.
$ac_ext >&5
15355 ac_header_compiler
=no
15357 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15358 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15359 echo "${ECHO_T}$ac_header_compiler" >&6
15361 # Is the header present?
15362 echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
15363 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6
15364 cat >conftest.
$ac_ext <<_ACEOF
15367 cat confdefs.h
>>conftest.
$ac_ext
15368 cat >>conftest.
$ac_ext <<_ACEOF
15369 /* end confdefs.h. */
15370 #include <inq_stats/cpustats.h>
15372 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15373 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
15375 grep -v '^ *+' conftest.er1
>conftest.err
15377 cat conftest.err
>&5
15378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15379 (exit $ac_status); } >/dev
/null
; then
15380 if test -s conftest.err
; then
15381 ac_cpp_err
=$ac_c_preproc_warn_flag
15382 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
15389 if test -z "$ac_cpp_err"; then
15390 ac_header_preproc
=yes
15392 echo "$as_me: failed program was:" >&5
15393 sed 's/^/| /' conftest.
$ac_ext >&5
15395 ac_header_preproc
=no
15397 rm -f conftest.err conftest.
$ac_ext
15398 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15399 echo "${ECHO_T}$ac_header_preproc" >&6
15401 # So? What about this header?
15402 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15404 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
15405 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15406 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
15407 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
15408 ac_header_preproc
=yes
15411 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
15412 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
15413 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
15414 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
15415 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
15416 echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
15417 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
15418 echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
15419 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
15420 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
15421 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
15422 echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
15425 ## ------------------------------------------ ##
15426 ## Report this to the AC_PACKAGE_NAME lists. ##
15427 ## ------------------------------------------ ##
15430 sed "s/^/$as_me: WARNING: /" >&2
15433 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
15434 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
15435 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
15436 echo $ECHO_N "(cached) $ECHO_C" >&6
15438 ac_cv_header_inq_stats_cpustats_h
=$ac_header_preproc
15440 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
15441 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
15444 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
15447 cat >>confdefs.h
<<\_ACEOF
15452 cat >>confdefs.h
<<\_ACEOF
15461 if test $ac_have_func = no
; then
15462 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
15463 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
15464 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
15465 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
15466 echo $ECHO_N "(cached) $ECHO_C" >&6
15468 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
15469 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
15471 # Is the header compilable?
15472 echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
15473 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6
15474 cat >conftest.
$ac_ext <<_ACEOF
15477 cat confdefs.h
>>conftest.
$ac_ext
15478 cat >>conftest.
$ac_ext <<_ACEOF
15479 /* end confdefs.h. */
15480 $ac_includes_default
15481 #include <sys/cpustats.h>
15483 rm -f conftest.
$ac_objext
15484 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15485 (eval $ac_compile) 2>conftest.er1
15487 grep -v '^ *+' conftest.er1
>conftest.err
15489 cat conftest.err
>&5
15490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15491 (exit $ac_status); } &&
15492 { ac_try
='test -z "$ac_c_werror_flag"
15493 || test ! -s conftest.err'
15494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15495 (eval $ac_try) 2>&5
15497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15498 (exit $ac_status); }; } &&
15499 { ac_try
='test -s conftest.$ac_objext'
15500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15501 (eval $ac_try) 2>&5
15503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15504 (exit $ac_status); }; }; then
15505 ac_header_compiler
=yes
15507 echo "$as_me: failed program was:" >&5
15508 sed 's/^/| /' conftest.
$ac_ext >&5
15510 ac_header_compiler
=no
15512 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15513 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15514 echo "${ECHO_T}$ac_header_compiler" >&6
15516 # Is the header present?
15517 echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
15518 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6
15519 cat >conftest.
$ac_ext <<_ACEOF
15522 cat confdefs.h
>>conftest.
$ac_ext
15523 cat >>conftest.
$ac_ext <<_ACEOF
15524 /* end confdefs.h. */
15525 #include <sys/cpustats.h>
15527 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15528 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
15530 grep -v '^ *+' conftest.er1
>conftest.err
15532 cat conftest.err
>&5
15533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15534 (exit $ac_status); } >/dev
/null
; then
15535 if test -s conftest.err
; then
15536 ac_cpp_err
=$ac_c_preproc_warn_flag
15537 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
15544 if test -z "$ac_cpp_err"; then
15545 ac_header_preproc
=yes
15547 echo "$as_me: failed program was:" >&5
15548 sed 's/^/| /' conftest.
$ac_ext >&5
15550 ac_header_preproc
=no
15552 rm -f conftest.err conftest.
$ac_ext
15553 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15554 echo "${ECHO_T}$ac_header_preproc" >&6
15556 # So? What about this header?
15557 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15559 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
15560 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15561 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
15562 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
15563 ac_header_preproc
=yes
15566 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
15567 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
15568 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
15569 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
15570 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
15571 echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
15572 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
15573 echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
15574 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
15575 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
15576 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
15577 echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
15580 ## ------------------------------------------ ##
15581 ## Report this to the AC_PACKAGE_NAME lists. ##
15582 ## ------------------------------------------ ##
15585 sed "s/^/$as_me: WARNING: /" >&2
15588 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
15589 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
15590 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
15591 echo $ECHO_N "(cached) $ECHO_C" >&6
15593 ac_cv_header_sys_cpustats_h
=$ac_header_preproc
15595 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
15596 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
15599 if test $ac_cv_header_sys_cpustats_h = yes; then
15600 ac_have_func
=yes; cat >>confdefs.h
<<\_ACEOF
15609 if test $ac_have_func = no
; then
15611 for ac_header
in mach
/mach.h
15613 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15614 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15615 echo "$as_me:$LINENO: checking for $ac_header" >&5
15616 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15617 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15618 echo $ECHO_N "(cached) $ECHO_C" >&6
15620 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15621 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15623 # Is the header compilable?
15624 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15625 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15626 cat >conftest.
$ac_ext <<_ACEOF
15629 cat confdefs.h
>>conftest.
$ac_ext
15630 cat >>conftest.
$ac_ext <<_ACEOF
15631 /* end confdefs.h. */
15632 $ac_includes_default
15633 #include <$ac_header>
15635 rm -f conftest.
$ac_objext
15636 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15637 (eval $ac_compile) 2>conftest.er1
15639 grep -v '^ *+' conftest.er1
>conftest.err
15641 cat conftest.err
>&5
15642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15643 (exit $ac_status); } &&
15644 { ac_try
='test -z "$ac_c_werror_flag"
15645 || test ! -s conftest.err'
15646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15647 (eval $ac_try) 2>&5
15649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15650 (exit $ac_status); }; } &&
15651 { ac_try
='test -s conftest.$ac_objext'
15652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15653 (eval $ac_try) 2>&5
15655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15656 (exit $ac_status); }; }; then
15657 ac_header_compiler
=yes
15659 echo "$as_me: failed program was:" >&5
15660 sed 's/^/| /' conftest.
$ac_ext >&5
15662 ac_header_compiler
=no
15664 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15665 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15666 echo "${ECHO_T}$ac_header_compiler" >&6
15668 # Is the header present?
15669 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15670 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15671 cat >conftest.
$ac_ext <<_ACEOF
15674 cat confdefs.h
>>conftest.
$ac_ext
15675 cat >>conftest.
$ac_ext <<_ACEOF
15676 /* end confdefs.h. */
15677 #include <$ac_header>
15679 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15680 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
15682 grep -v '^ *+' conftest.er1
>conftest.err
15684 cat conftest.err
>&5
15685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15686 (exit $ac_status); } >/dev
/null
; then
15687 if test -s conftest.err
; then
15688 ac_cpp_err
=$ac_c_preproc_warn_flag
15689 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
15696 if test -z "$ac_cpp_err"; then
15697 ac_header_preproc
=yes
15699 echo "$as_me: failed program was:" >&5
15700 sed 's/^/| /' conftest.
$ac_ext >&5
15702 ac_header_preproc
=no
15704 rm -f conftest.err conftest.
$ac_ext
15705 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15706 echo "${ECHO_T}$ac_header_preproc" >&6
15708 # So? What about this header?
15709 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15711 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15712 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15713 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15714 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15715 ac_header_preproc
=yes
15718 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15719 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15720 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15721 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15722 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15723 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15724 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15725 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15726 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15727 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15728 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15729 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15732 ## ------------------------------------------ ##
15733 ## Report this to the AC_PACKAGE_NAME lists. ##
15734 ## ------------------------------------------ ##
15737 sed "s/^/$as_me: WARNING: /" >&2
15740 echo "$as_me:$LINENO: checking for $ac_header" >&5
15741 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15742 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15743 echo $ECHO_N "(cached) $ECHO_C" >&6
15745 eval "$as_ac_Header=\$ac_header_preproc"
15747 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15748 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15751 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15752 cat >>confdefs.h
<<_ACEOF
15753 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15763 for ac_header
in nlist.h
15765 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15766 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15767 echo "$as_me:$LINENO: checking for $ac_header" >&5
15768 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15769 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15770 echo $ECHO_N "(cached) $ECHO_C" >&6
15772 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15773 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15775 # Is the header compilable?
15776 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15777 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15778 cat >conftest.
$ac_ext <<_ACEOF
15781 cat confdefs.h
>>conftest.
$ac_ext
15782 cat >>conftest.
$ac_ext <<_ACEOF
15783 /* end confdefs.h. */
15784 $ac_includes_default
15785 #include <$ac_header>
15787 rm -f conftest.
$ac_objext
15788 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15789 (eval $ac_compile) 2>conftest.er1
15791 grep -v '^ *+' conftest.er1
>conftest.err
15793 cat conftest.err
>&5
15794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15795 (exit $ac_status); } &&
15796 { ac_try
='test -z "$ac_c_werror_flag"
15797 || test ! -s conftest.err'
15798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15799 (eval $ac_try) 2>&5
15801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15802 (exit $ac_status); }; } &&
15803 { ac_try
='test -s conftest.$ac_objext'
15804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15805 (eval $ac_try) 2>&5
15807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15808 (exit $ac_status); }; }; then
15809 ac_header_compiler
=yes
15811 echo "$as_me: failed program was:" >&5
15812 sed 's/^/| /' conftest.
$ac_ext >&5
15814 ac_header_compiler
=no
15816 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15817 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15818 echo "${ECHO_T}$ac_header_compiler" >&6
15820 # Is the header present?
15821 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15822 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15823 cat >conftest.
$ac_ext <<_ACEOF
15826 cat confdefs.h
>>conftest.
$ac_ext
15827 cat >>conftest.
$ac_ext <<_ACEOF
15828 /* end confdefs.h. */
15829 #include <$ac_header>
15831 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15832 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
15834 grep -v '^ *+' conftest.er1
>conftest.err
15836 cat conftest.err
>&5
15837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15838 (exit $ac_status); } >/dev
/null
; then
15839 if test -s conftest.err
; then
15840 ac_cpp_err
=$ac_c_preproc_warn_flag
15841 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
15848 if test -z "$ac_cpp_err"; then
15849 ac_header_preproc
=yes
15851 echo "$as_me: failed program was:" >&5
15852 sed 's/^/| /' conftest.
$ac_ext >&5
15854 ac_header_preproc
=no
15856 rm -f conftest.err conftest.
$ac_ext
15857 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15858 echo "${ECHO_T}$ac_header_preproc" >&6
15860 # So? What about this header?
15861 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15863 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15864 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15865 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15866 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15867 ac_header_preproc
=yes
15870 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15871 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15872 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15873 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15874 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15875 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15876 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15877 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15878 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15879 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15880 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15881 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15884 ## ------------------------------------------ ##
15885 ## Report this to the AC_PACKAGE_NAME lists. ##
15886 ## ------------------------------------------ ##
15889 sed "s/^/$as_me: WARNING: /" >&2
15892 echo "$as_me:$LINENO: checking for $ac_header" >&5
15893 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15894 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15895 echo $ECHO_N "(cached) $ECHO_C" >&6
15897 eval "$as_ac_Header=\$ac_header_preproc"
15899 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15900 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15903 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15904 cat >>confdefs.h
<<_ACEOF
15905 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15907 echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
15908 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6
15909 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
15910 echo $ECHO_N "(cached) $ECHO_C" >&6
15912 cat >conftest.
$ac_ext <<_ACEOF
15915 cat confdefs.h
>>conftest.
$ac_ext
15916 cat >>conftest.
$ac_ext <<_ACEOF
15917 /* end confdefs.h. */
15923 static struct nlist ac_aggr;
15924 if (ac_aggr.n_un.n_name)
15930 rm -f conftest.
$ac_objext
15931 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15932 (eval $ac_compile) 2>conftest.er1
15934 grep -v '^ *+' conftest.er1
>conftest.err
15936 cat conftest.err
>&5
15937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15938 (exit $ac_status); } &&
15939 { ac_try
='test -z "$ac_c_werror_flag"
15940 || test ! -s conftest.err'
15941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15942 (eval $ac_try) 2>&5
15944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15945 (exit $ac_status); }; } &&
15946 { ac_try
='test -s conftest.$ac_objext'
15947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15948 (eval $ac_try) 2>&5
15950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15951 (exit $ac_status); }; }; then
15952 ac_cv_member_struct_nlist_n_un_n_name
=yes
15954 echo "$as_me: failed program was:" >&5
15955 sed 's/^/| /' conftest.
$ac_ext >&5
15957 cat >conftest.
$ac_ext <<_ACEOF
15960 cat confdefs.h
>>conftest.
$ac_ext
15961 cat >>conftest.
$ac_ext <<_ACEOF
15962 /* end confdefs.h. */
15968 static struct nlist ac_aggr;
15969 if (sizeof ac_aggr.n_un.n_name)
15975 rm -f conftest.
$ac_objext
15976 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15977 (eval $ac_compile) 2>conftest.er1
15979 grep -v '^ *+' conftest.er1
>conftest.err
15981 cat conftest.err
>&5
15982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15983 (exit $ac_status); } &&
15984 { ac_try
='test -z "$ac_c_werror_flag"
15985 || test ! -s conftest.err'
15986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15987 (eval $ac_try) 2>&5
15989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15990 (exit $ac_status); }; } &&
15991 { ac_try
='test -s conftest.$ac_objext'
15992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15993 (eval $ac_try) 2>&5
15995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15996 (exit $ac_status); }; }; then
15997 ac_cv_member_struct_nlist_n_un_n_name
=yes
15999 echo "$as_me: failed program was:" >&5
16000 sed 's/^/| /' conftest.
$ac_ext >&5
16002 ac_cv_member_struct_nlist_n_un_n_name
=no
16004 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16006 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16008 echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
16009 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6
16010 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
16012 cat >>confdefs.h
<<_ACEOF
16013 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
16017 cat >>confdefs.h
<<\_ACEOF
16018 #define NLIST_NAME_UNION 1
16032 # Some definitions of getloadavg require that the program be installed setgid.
16033 echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
16034 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6
16035 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
16036 echo $ECHO_N "(cached) $ECHO_C" >&6
16038 cat >conftest.
$ac_ext <<_ACEOF
16041 cat confdefs.h
>>conftest.
$ac_ext
16042 cat >>conftest.
$ac_ext <<_ACEOF
16043 /* end confdefs.h. */
16044 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
16045 #ifdef LDAV_PRIVILEGED
16046 Yowza Am I SETGID yet
16049 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16050 $EGREP "Yowza Am I SETGID yet" >/dev
/null
2>&1; then
16051 ac_cv_func_getloadavg_setgid
=yes
16053 ac_cv_func_getloadavg_setgid
=no
16058 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
16059 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6
16060 if test $ac_cv_func_getloadavg_setgid = yes; then
16063 cat >>confdefs.h
<<\_ACEOF
16064 #define GETLOADAVG_PRIVILEGED 1
16071 if test $ac_cv_func_getloadavg_setgid = yes; then
16072 echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
16073 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6
16074 if test "${ac_cv_group_kmem+set}" = set; then
16075 echo $ECHO_N "(cached) $ECHO_C" >&6
16077 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
16078 ac_ls_output
=`ls -lgL /dev/kmem 2>/dev/null`
16079 # If we got an error (system does not support symlinks), try without -L.
16080 test -z "$ac_ls_output" && ac_ls_output
=`ls -lg /dev/kmem`
16081 ac_cv_group_kmem
=`echo $ac_ls_output \
16082 | sed -ne 's/[ ][ ]*/ /g;
16083 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
16087 echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
16088 echo "${ECHO_T}$ac_cv_group_kmem" >&6
16089 KMEM_GROUP
=$ac_cv_group_kmem
16091 if test "x$ac_save_LIBS" = x
; then
16092 GETLOADAVG_LIBS
=$LIBS
16094 GETLOADAVG_LIBS
=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
16100 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
16101 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
16102 if test "${ac_cv_sys_largefile_source+set}" = set; then
16103 echo $ECHO_N "(cached) $ECHO_C" >&6
16106 ac_cv_sys_largefile_source
=no
16107 cat >conftest.
$ac_ext <<_ACEOF
16110 cat confdefs.h
>>conftest.
$ac_ext
16111 cat >>conftest.
$ac_ext <<_ACEOF
16112 /* end confdefs.h. */
16122 rm -f conftest.
$ac_objext
16123 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16124 (eval $ac_compile) 2>conftest.er1
16126 grep -v '^ *+' conftest.er1
>conftest.err
16128 cat conftest.err
>&5
16129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16130 (exit $ac_status); } &&
16131 { ac_try
='test -z "$ac_c_werror_flag"
16132 || test ! -s conftest.err'
16133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16134 (eval $ac_try) 2>&5
16136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16137 (exit $ac_status); }; } &&
16138 { ac_try
='test -s conftest.$ac_objext'
16139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16140 (eval $ac_try) 2>&5
16142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16143 (exit $ac_status); }; }; then
16146 echo "$as_me: failed program was:" >&5
16147 sed 's/^/| /' conftest.
$ac_ext >&5
16150 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16151 cat >conftest.
$ac_ext <<_ACEOF
16154 cat confdefs.h
>>conftest.
$ac_ext
16155 cat >>conftest.
$ac_ext <<_ACEOF
16156 /* end confdefs.h. */
16157 #define _LARGEFILE_SOURCE 1
16167 rm -f conftest.
$ac_objext
16168 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16169 (eval $ac_compile) 2>conftest.er1
16171 grep -v '^ *+' conftest.er1
>conftest.err
16173 cat conftest.err
>&5
16174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16175 (exit $ac_status); } &&
16176 { ac_try
='test -z "$ac_c_werror_flag"
16177 || test ! -s conftest.err'
16178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16179 (eval $ac_try) 2>&5
16181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16182 (exit $ac_status); }; } &&
16183 { ac_try
='test -s conftest.$ac_objext'
16184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16185 (eval $ac_try) 2>&5
16187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16188 (exit $ac_status); }; }; then
16189 ac_cv_sys_largefile_source
=1; break
16191 echo "$as_me: failed program was:" >&5
16192 sed 's/^/| /' conftest.
$ac_ext >&5
16195 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16199 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
16200 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
16201 if test "$ac_cv_sys_largefile_source" != no
; then
16203 cat >>confdefs.h
<<_ACEOF
16204 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
16210 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
16211 # in glibc 2.1.3, but that breaks too many other things.
16212 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
16213 echo "$as_me:$LINENO: checking for fseeko" >&5
16214 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
16215 if test "${ac_cv_func_fseeko+set}" = set; then
16216 echo $ECHO_N "(cached) $ECHO_C" >&6
16218 cat >conftest.
$ac_ext <<_ACEOF
16221 cat confdefs.h
>>conftest.
$ac_ext
16222 cat >>conftest.
$ac_ext <<_ACEOF
16223 /* end confdefs.h. */
16228 return fseeko && fseeko (stdin, 0, 0);
16233 rm -f conftest.
$ac_objext conftest
$ac_exeext
16234 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16235 (eval $ac_link) 2>conftest.er1
16237 grep -v '^ *+' conftest.er1
>conftest.err
16239 cat conftest.err
>&5
16240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16241 (exit $ac_status); } &&
16242 { ac_try
='test -z "$ac_c_werror_flag"
16243 || test ! -s conftest.err'
16244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16245 (eval $ac_try) 2>&5
16247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16248 (exit $ac_status); }; } &&
16249 { ac_try
='test -s conftest$ac_exeext'
16250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16251 (eval $ac_try) 2>&5
16253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16254 (exit $ac_status); }; }; then
16255 ac_cv_func_fseeko
=yes
16257 echo "$as_me: failed program was:" >&5
16258 sed 's/^/| /' conftest.
$ac_ext >&5
16260 ac_cv_func_fseeko
=no
16262 rm -f conftest.err conftest.
$ac_objext \
16263 conftest
$ac_exeext conftest.
$ac_ext
16265 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
16266 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
16267 if test $ac_cv_func_fseeko = yes; then
16269 cat >>confdefs.h
<<\_ACEOF
16270 #define HAVE_FSEEKO 1
16276 echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
16277 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6
16278 if test "${ac_cv_func_getpgrp_void+set}" = set; then
16279 echo $ECHO_N "(cached) $ECHO_C" >&6
16281 # Use it with a single arg.
16282 cat >conftest.
$ac_ext <<_ACEOF
16285 cat confdefs.h
>>conftest.
$ac_ext
16286 cat >>conftest.
$ac_ext <<_ACEOF
16287 /* end confdefs.h. */
16288 $ac_includes_default
16297 rm -f conftest.
$ac_objext
16298 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16299 (eval $ac_compile) 2>conftest.er1
16301 grep -v '^ *+' conftest.er1
>conftest.err
16303 cat conftest.err
>&5
16304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16305 (exit $ac_status); } &&
16306 { ac_try
='test -z "$ac_c_werror_flag"
16307 || test ! -s conftest.err'
16308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16309 (eval $ac_try) 2>&5
16311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16312 (exit $ac_status); }; } &&
16313 { ac_try
='test -s conftest.$ac_objext'
16314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16315 (eval $ac_try) 2>&5
16317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16318 (exit $ac_status); }; }; then
16319 ac_cv_func_getpgrp_void
=no
16321 echo "$as_me: failed program was:" >&5
16322 sed 's/^/| /' conftest.
$ac_ext >&5
16324 ac_cv_func_getpgrp_void
=yes
16326 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16329 echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
16330 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6
16331 if test $ac_cv_func_getpgrp_void = yes; then
16333 cat >>confdefs.h
<<\_ACEOF
16334 #define GETPGRP_VOID 1
16341 for ac_func
in strftime
16343 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16344 echo "$as_me:$LINENO: checking for $ac_func" >&5
16345 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16346 if eval "test \"\${$as_ac_var+set}\" = set"; then
16347 echo $ECHO_N "(cached) $ECHO_C" >&6
16349 cat >conftest.
$ac_ext <<_ACEOF
16352 cat confdefs.h
>>conftest.
$ac_ext
16353 cat >>conftest.
$ac_ext <<_ACEOF
16354 /* end confdefs.h. */
16355 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16356 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16357 #define $ac_func innocuous_$ac_func
16359 /* System header to define __stub macros and hopefully few prototypes,
16360 which can conflict with char $ac_func (); below.
16361 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16362 <limits.h> exists even on freestanding compilers. */
16365 # include <limits.h>
16367 # include <assert.h>
16372 /* Override any gcc2 internal prototype to avoid an error. */
16377 /* We use char because int might match the return type of a gcc2
16378 builtin and then its argument prototype would still apply. */
16380 /* The GNU C library defines this for functions which it implements
16381 to always fail with ENOSYS. Some functions are actually named
16382 something starting with __ and the normal name is an alias. */
16383 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16386 char (*f) () = $ac_func;
16395 return f != $ac_func;
16400 rm -f conftest.
$ac_objext conftest
$ac_exeext
16401 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16402 (eval $ac_link) 2>conftest.er1
16404 grep -v '^ *+' conftest.er1
>conftest.err
16406 cat conftest.err
>&5
16407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16408 (exit $ac_status); } &&
16409 { ac_try
='test -z "$ac_c_werror_flag"
16410 || test ! -s conftest.err'
16411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16412 (eval $ac_try) 2>&5
16414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16415 (exit $ac_status); }; } &&
16416 { ac_try
='test -s conftest$ac_exeext'
16417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16418 (eval $ac_try) 2>&5
16420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16421 (exit $ac_status); }; }; then
16422 eval "$as_ac_var=yes"
16424 echo "$as_me: failed program was:" >&5
16425 sed 's/^/| /' conftest.
$ac_ext >&5
16427 eval "$as_ac_var=no"
16429 rm -f conftest.err conftest.
$ac_objext \
16430 conftest
$ac_exeext conftest.
$ac_ext
16432 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16433 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16434 if test `eval echo '${'$as_ac_var'}'` = yes; then
16435 cat >>confdefs.h
<<_ACEOF
16436 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16440 # strftime is in -lintl on SCO UNIX.
16441 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
16442 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
16443 if test "${ac_cv_lib_intl_strftime+set}" = set; then
16444 echo $ECHO_N "(cached) $ECHO_C" >&6
16446 ac_check_lib_save_LIBS
=$LIBS
16447 LIBS
="-lintl $LIBS"
16448 cat >conftest.
$ac_ext <<_ACEOF
16451 cat confdefs.h
>>conftest.
$ac_ext
16452 cat >>conftest.
$ac_ext <<_ACEOF
16453 /* end confdefs.h. */
16455 /* Override any gcc2 internal prototype to avoid an error. */
16459 /* We use char because int might match the return type of a gcc2
16460 builtin and then its argument prototype would still apply. */
16470 rm -f conftest.
$ac_objext conftest
$ac_exeext
16471 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16472 (eval $ac_link) 2>conftest.er1
16474 grep -v '^ *+' conftest.er1
>conftest.err
16476 cat conftest.err
>&5
16477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16478 (exit $ac_status); } &&
16479 { ac_try
='test -z "$ac_c_werror_flag"
16480 || test ! -s conftest.err'
16481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16482 (eval $ac_try) 2>&5
16484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16485 (exit $ac_status); }; } &&
16486 { ac_try
='test -s conftest$ac_exeext'
16487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16488 (eval $ac_try) 2>&5
16490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16491 (exit $ac_status); }; }; then
16492 ac_cv_lib_intl_strftime
=yes
16494 echo "$as_me: failed program was:" >&5
16495 sed 's/^/| /' conftest.
$ac_ext >&5
16497 ac_cv_lib_intl_strftime
=no
16499 rm -f conftest.err conftest.
$ac_objext \
16500 conftest
$ac_exeext conftest.
$ac_ext
16501 LIBS
=$ac_check_lib_save_LIBS
16503 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
16504 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
16505 if test $ac_cv_lib_intl_strftime = yes; then
16506 cat >>confdefs.h
<<\_ACEOF
16507 #define HAVE_STRFTIME 1
16510 LIBS
="-lintl $LIBS"
16519 for ac_func
in grantpt
16521 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16522 echo "$as_me:$LINENO: checking for $ac_func" >&5
16523 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16524 if eval "test \"\${$as_ac_var+set}\" = set"; then
16525 echo $ECHO_N "(cached) $ECHO_C" >&6
16527 cat >conftest.
$ac_ext <<_ACEOF
16530 cat confdefs.h
>>conftest.
$ac_ext
16531 cat >>conftest.
$ac_ext <<_ACEOF
16532 /* end confdefs.h. */
16533 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16534 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16535 #define $ac_func innocuous_$ac_func
16537 /* System header to define __stub macros and hopefully few prototypes,
16538 which can conflict with char $ac_func (); below.
16539 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16540 <limits.h> exists even on freestanding compilers. */
16543 # include <limits.h>
16545 # include <assert.h>
16550 /* Override any gcc2 internal prototype to avoid an error. */
16555 /* We use char because int might match the return type of a gcc2
16556 builtin and then its argument prototype would still apply. */
16558 /* The GNU C library defines this for functions which it implements
16559 to always fail with ENOSYS. Some functions are actually named
16560 something starting with __ and the normal name is an alias. */
16561 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16564 char (*f) () = $ac_func;
16573 return f != $ac_func;
16578 rm -f conftest.
$ac_objext conftest
$ac_exeext
16579 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16580 (eval $ac_link) 2>conftest.er1
16582 grep -v '^ *+' conftest.er1
>conftest.err
16584 cat conftest.err
>&5
16585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16586 (exit $ac_status); } &&
16587 { ac_try
='test -z "$ac_c_werror_flag"
16588 || test ! -s conftest.err'
16589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16590 (eval $ac_try) 2>&5
16592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16593 (exit $ac_status); }; } &&
16594 { ac_try
='test -s conftest$ac_exeext'
16595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16596 (eval $ac_try) 2>&5
16598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16599 (exit $ac_status); }; }; then
16600 eval "$as_ac_var=yes"
16602 echo "$as_me: failed program was:" >&5
16603 sed 's/^/| /' conftest.
$ac_ext >&5
16605 eval "$as_ac_var=no"
16607 rm -f conftest.err conftest.
$ac_objext \
16608 conftest
$ac_exeext conftest.
$ac_ext
16610 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16611 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16612 if test `eval echo '${'$as_ac_var'}'` = yes; then
16613 cat >>confdefs.h
<<_ACEOF
16614 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16621 # PTY-related GNU extensions.
16623 for ac_func
in getpt
16625 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16626 echo "$as_me:$LINENO: checking for $ac_func" >&5
16627 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16628 if eval "test \"\${$as_ac_var+set}\" = set"; then
16629 echo $ECHO_N "(cached) $ECHO_C" >&6
16631 cat >conftest.
$ac_ext <<_ACEOF
16634 cat confdefs.h
>>conftest.
$ac_ext
16635 cat >>conftest.
$ac_ext <<_ACEOF
16636 /* end confdefs.h. */
16637 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16638 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16639 #define $ac_func innocuous_$ac_func
16641 /* System header to define __stub macros and hopefully few prototypes,
16642 which can conflict with char $ac_func (); below.
16643 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16644 <limits.h> exists even on freestanding compilers. */
16647 # include <limits.h>
16649 # include <assert.h>
16654 /* Override any gcc2 internal prototype to avoid an error. */
16659 /* We use char because int might match the return type of a gcc2
16660 builtin and then its argument prototype would still apply. */
16662 /* The GNU C library defines this for functions which it implements
16663 to always fail with ENOSYS. Some functions are actually named
16664 something starting with __ and the normal name is an alias. */
16665 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16668 char (*f) () = $ac_func;
16677 return f != $ac_func;
16682 rm -f conftest.
$ac_objext conftest
$ac_exeext
16683 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16684 (eval $ac_link) 2>conftest.er1
16686 grep -v '^ *+' conftest.er1
>conftest.err
16688 cat conftest.err
>&5
16689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16690 (exit $ac_status); } &&
16691 { ac_try
='test -z "$ac_c_werror_flag"
16692 || test ! -s conftest.err'
16693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16694 (eval $ac_try) 2>&5
16696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16697 (exit $ac_status); }; } &&
16698 { ac_try
='test -s conftest$ac_exeext'
16699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16700 (eval $ac_try) 2>&5
16702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16703 (exit $ac_status); }; }; then
16704 eval "$as_ac_var=yes"
16706 echo "$as_me: failed program was:" >&5
16707 sed 's/^/| /' conftest.
$ac_ext >&5
16709 eval "$as_ac_var=no"
16711 rm -f conftest.err conftest.
$ac_objext \
16712 conftest
$ac_exeext conftest.
$ac_ext
16714 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16715 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16716 if test `eval echo '${'$as_ac_var'}'` = yes; then
16717 cat >>confdefs.h
<<_ACEOF
16718 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16725 # Check this now, so that we will NOT find the above functions in ncurses.
16726 # That is because we have not set up to link ncurses in lib-src.
16727 # It's better to believe a function is not available
16728 # than to expect to find it in ncurses.
16730 echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
16731 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6
16732 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
16733 echo $ECHO_N "(cached) $ECHO_C" >&6
16735 ac_check_lib_save_LIBS
=$LIBS
16736 LIBS
="-lncurses $LIBS"
16737 cat >conftest.
$ac_ext <<_ACEOF
16740 cat confdefs.h
>>conftest.
$ac_ext
16741 cat >>conftest.
$ac_ext <<_ACEOF
16742 /* end confdefs.h. */
16744 /* Override any gcc2 internal prototype to avoid an error. */
16748 /* We use char because int might match the return type of a gcc2
16749 builtin and then its argument prototype would still apply. */
16759 rm -f conftest.
$ac_objext conftest
$ac_exeext
16760 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16761 (eval $ac_link) 2>conftest.er1
16763 grep -v '^ *+' conftest.er1
>conftest.err
16765 cat conftest.err
>&5
16766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16767 (exit $ac_status); } &&
16768 { ac_try
='test -z "$ac_c_werror_flag"
16769 || test ! -s conftest.err'
16770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16771 (eval $ac_try) 2>&5
16773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16774 (exit $ac_status); }; } &&
16775 { ac_try
='test -s conftest$ac_exeext'
16776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16777 (eval $ac_try) 2>&5
16779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16780 (exit $ac_status); }; }; then
16781 ac_cv_lib_ncurses_tparm
=yes
16783 echo "$as_me: failed program was:" >&5
16784 sed 's/^/| /' conftest.
$ac_ext >&5
16786 ac_cv_lib_ncurses_tparm
=no
16788 rm -f conftest.err conftest.
$ac_objext \
16789 conftest
$ac_exeext conftest.
$ac_ext
16790 LIBS
=$ac_check_lib_save_LIBS
16792 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
16793 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6
16794 if test $ac_cv_lib_ncurses_tparm = yes; then
16795 cat >>confdefs.h
<<_ACEOF
16796 #define HAVE_LIBNCURSES 1
16799 LIBS
="-lncurses $LIBS"
16804 # Do we need the Hesiod library to provide the support routines?
16805 if test "$with_hesiod" = yes ; then
16806 # Don't set $LIBS here -- see comments above.
16808 echo "$as_me:$LINENO: checking for res_send" >&5
16809 echo $ECHO_N "checking for res_send... $ECHO_C" >&6
16810 if test "${ac_cv_func_res_send+set}" = set; then
16811 echo $ECHO_N "(cached) $ECHO_C" >&6
16813 cat >conftest.
$ac_ext <<_ACEOF
16816 cat confdefs.h
>>conftest.
$ac_ext
16817 cat >>conftest.
$ac_ext <<_ACEOF
16818 /* end confdefs.h. */
16819 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
16820 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16821 #define res_send innocuous_res_send
16823 /* System header to define __stub macros and hopefully few prototypes,
16824 which can conflict with char res_send (); below.
16825 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16826 <limits.h> exists even on freestanding compilers. */
16829 # include <limits.h>
16831 # include <assert.h>
16836 /* Override any gcc2 internal prototype to avoid an error. */
16841 /* We use char because int might match the return type of a gcc2
16842 builtin and then its argument prototype would still apply. */
16844 /* The GNU C library defines this for functions which it implements
16845 to always fail with ENOSYS. Some functions are actually named
16846 something starting with __ and the normal name is an alias. */
16847 #if defined (__stub_res_send) || defined (__stub___res_send)
16850 char (*f) () = res_send;
16859 return f != res_send;
16864 rm -f conftest.
$ac_objext conftest
$ac_exeext
16865 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16866 (eval $ac_link) 2>conftest.er1
16868 grep -v '^ *+' conftest.er1
>conftest.err
16870 cat conftest.err
>&5
16871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16872 (exit $ac_status); } &&
16873 { ac_try
='test -z "$ac_c_werror_flag"
16874 || test ! -s conftest.err'
16875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16876 (eval $ac_try) 2>&5
16878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16879 (exit $ac_status); }; } &&
16880 { ac_try
='test -s conftest$ac_exeext'
16881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16882 (eval $ac_try) 2>&5
16884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16885 (exit $ac_status); }; }; then
16886 ac_cv_func_res_send
=yes
16888 echo "$as_me: failed program was:" >&5
16889 sed 's/^/| /' conftest.
$ac_ext >&5
16891 ac_cv_func_res_send
=no
16893 rm -f conftest.err conftest.
$ac_objext \
16894 conftest
$ac_exeext conftest.
$ac_ext
16896 echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
16897 echo "${ECHO_T}$ac_cv_func_res_send" >&6
16898 if test $ac_cv_func_res_send = yes; then
16901 echo "$as_me:$LINENO: checking for __res_send" >&5
16902 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6
16903 if test "${ac_cv_func___res_send+set}" = set; then
16904 echo $ECHO_N "(cached) $ECHO_C" >&6
16906 cat >conftest.
$ac_ext <<_ACEOF
16909 cat confdefs.h
>>conftest.
$ac_ext
16910 cat >>conftest.
$ac_ext <<_ACEOF
16911 /* end confdefs.h. */
16912 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
16913 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16914 #define __res_send innocuous___res_send
16916 /* System header to define __stub macros and hopefully few prototypes,
16917 which can conflict with char __res_send (); below.
16918 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16919 <limits.h> exists even on freestanding compilers. */
16922 # include <limits.h>
16924 # include <assert.h>
16929 /* Override any gcc2 internal prototype to avoid an error. */
16934 /* We use char because int might match the return type of a gcc2
16935 builtin and then its argument prototype would still apply. */
16936 char __res_send ();
16937 /* The GNU C library defines this for functions which it implements
16938 to always fail with ENOSYS. Some functions are actually named
16939 something starting with __ and the normal name is an alias. */
16940 #if defined (__stub___res_send) || defined (__stub_____res_send)
16943 char (*f) () = __res_send;
16952 return f != __res_send;
16957 rm -f conftest.
$ac_objext conftest
$ac_exeext
16958 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16959 (eval $ac_link) 2>conftest.er1
16961 grep -v '^ *+' conftest.er1
>conftest.err
16963 cat conftest.err
>&5
16964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16965 (exit $ac_status); } &&
16966 { ac_try
='test -z "$ac_c_werror_flag"
16967 || test ! -s conftest.err'
16968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16969 (eval $ac_try) 2>&5
16971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16972 (exit $ac_status); }; } &&
16973 { ac_try
='test -s conftest$ac_exeext'
16974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16975 (eval $ac_try) 2>&5
16977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16978 (exit $ac_status); }; }; then
16979 ac_cv_func___res_send
=yes
16981 echo "$as_me: failed program was:" >&5
16982 sed 's/^/| /' conftest.
$ac_ext >&5
16984 ac_cv_func___res_send
=no
16986 rm -f conftest.err conftest.
$ac_objext \
16987 conftest
$ac_exeext conftest.
$ac_ext
16989 echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
16990 echo "${ECHO_T}$ac_cv_func___res_send" >&6
16991 if test $ac_cv_func___res_send = yes; then
16994 echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
16995 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6
16996 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
16997 echo $ECHO_N "(cached) $ECHO_C" >&6
16999 ac_check_lib_save_LIBS
=$LIBS
17000 LIBS
="-lresolv $LIBS"
17001 cat >conftest.
$ac_ext <<_ACEOF
17004 cat confdefs.h
>>conftest.
$ac_ext
17005 cat >>conftest.
$ac_ext <<_ACEOF
17006 /* end confdefs.h. */
17008 /* Override any gcc2 internal prototype to avoid an error. */
17012 /* We use char because int might match the return type of a gcc2
17013 builtin and then its argument prototype would still apply. */
17023 rm -f conftest.
$ac_objext conftest
$ac_exeext
17024 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17025 (eval $ac_link) 2>conftest.er1
17027 grep -v '^ *+' conftest.er1
>conftest.err
17029 cat conftest.err
>&5
17030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17031 (exit $ac_status); } &&
17032 { ac_try
='test -z "$ac_c_werror_flag"
17033 || test ! -s conftest.err'
17034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17035 (eval $ac_try) 2>&5
17037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17038 (exit $ac_status); }; } &&
17039 { ac_try
='test -s conftest$ac_exeext'
17040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17041 (eval $ac_try) 2>&5
17043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17044 (exit $ac_status); }; }; then
17045 ac_cv_lib_resolv_res_send
=yes
17047 echo "$as_me: failed program was:" >&5
17048 sed 's/^/| /' conftest.
$ac_ext >&5
17050 ac_cv_lib_resolv_res_send
=no
17052 rm -f conftest.err conftest.
$ac_objext \
17053 conftest
$ac_exeext conftest.
$ac_ext
17054 LIBS
=$ac_check_lib_save_LIBS
17056 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
17057 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6
17058 if test $ac_cv_lib_resolv_res_send = yes; then
17061 echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
17062 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6
17063 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
17064 echo $ECHO_N "(cached) $ECHO_C" >&6
17066 ac_check_lib_save_LIBS
=$LIBS
17067 LIBS
="-lresolv $LIBS"
17068 cat >conftest.
$ac_ext <<_ACEOF
17071 cat confdefs.h
>>conftest.
$ac_ext
17072 cat >>conftest.
$ac_ext <<_ACEOF
17073 /* end confdefs.h. */
17075 /* Override any gcc2 internal prototype to avoid an error. */
17079 /* We use char because int might match the return type of a gcc2
17080 builtin and then its argument prototype would still apply. */
17081 char __res_send ();
17090 rm -f conftest.
$ac_objext conftest
$ac_exeext
17091 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17092 (eval $ac_link) 2>conftest.er1
17094 grep -v '^ *+' conftest.er1
>conftest.err
17096 cat conftest.err
>&5
17097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17098 (exit $ac_status); } &&
17099 { ac_try
='test -z "$ac_c_werror_flag"
17100 || test ! -s conftest.err'
17101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17102 (eval $ac_try) 2>&5
17104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17105 (exit $ac_status); }; } &&
17106 { ac_try
='test -s conftest$ac_exeext'
17107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17108 (eval $ac_try) 2>&5
17110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17111 (exit $ac_status); }; }; then
17112 ac_cv_lib_resolv___res_send
=yes
17114 echo "$as_me: failed program was:" >&5
17115 sed 's/^/| /' conftest.
$ac_ext >&5
17117 ac_cv_lib_resolv___res_send
=no
17119 rm -f conftest.err conftest.
$ac_objext \
17120 conftest
$ac_exeext conftest.
$ac_ext
17121 LIBS
=$ac_check_lib_save_LIBS
17123 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
17124 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6
17125 if test $ac_cv_lib_resolv___res_send = yes; then
17135 if test "$resolv" = yes ; then
17138 cat >>confdefs.h
<<\_ACEOF
17139 #define HAVE_LIBRESOLV 1
17145 echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
17146 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6
17147 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
17148 echo $ECHO_N "(cached) $ECHO_C" >&6
17150 cat >conftest.
$ac_ext <<_ACEOF
17153 cat confdefs.h
>>conftest.
$ac_ext
17154 cat >>conftest.
$ac_ext <<_ACEOF
17155 /* end confdefs.h. */
17156 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
17157 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17158 #define hes_getmailhost innocuous_hes_getmailhost
17160 /* System header to define __stub macros and hopefully few prototypes,
17161 which can conflict with char hes_getmailhost (); below.
17162 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17163 <limits.h> exists even on freestanding compilers. */
17166 # include <limits.h>
17168 # include <assert.h>
17171 #undef hes_getmailhost
17173 /* Override any gcc2 internal prototype to avoid an error. */
17178 /* We use char because int might match the return type of a gcc2
17179 builtin and then its argument prototype would still apply. */
17180 char hes_getmailhost ();
17181 /* The GNU C library defines this for functions which it implements
17182 to always fail with ENOSYS. Some functions are actually named
17183 something starting with __ and the normal name is an alias. */
17184 #if defined (__stub_hes_getmailhost) || defined (__stub___hes_getmailhost)
17187 char (*f) () = hes_getmailhost;
17196 return f != hes_getmailhost;
17201 rm -f conftest.
$ac_objext conftest
$ac_exeext
17202 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17203 (eval $ac_link) 2>conftest.er1
17205 grep -v '^ *+' conftest.er1
>conftest.err
17207 cat conftest.err
>&5
17208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17209 (exit $ac_status); } &&
17210 { ac_try
='test -z "$ac_c_werror_flag"
17211 || test ! -s conftest.err'
17212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17213 (eval $ac_try) 2>&5
17215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17216 (exit $ac_status); }; } &&
17217 { ac_try
='test -s conftest$ac_exeext'
17218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17219 (eval $ac_try) 2>&5
17221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17222 (exit $ac_status); }; }; then
17223 ac_cv_func_hes_getmailhost
=yes
17225 echo "$as_me: failed program was:" >&5
17226 sed 's/^/| /' conftest.
$ac_ext >&5
17228 ac_cv_func_hes_getmailhost
=no
17230 rm -f conftest.err conftest.
$ac_objext \
17231 conftest
$ac_exeext conftest.
$ac_ext
17233 echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
17234 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6
17235 if test $ac_cv_func_hes_getmailhost = yes; then
17238 echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
17239 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6
17240 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
17241 echo $ECHO_N "(cached) $ECHO_C" >&6
17243 ac_check_lib_save_LIBS
=$LIBS
17244 LIBS
="-lhesiod $RESOLVLIB $LIBS"
17245 cat >conftest.
$ac_ext <<_ACEOF
17248 cat confdefs.h
>>conftest.
$ac_ext
17249 cat >>conftest.
$ac_ext <<_ACEOF
17250 /* end confdefs.h. */
17252 /* Override any gcc2 internal prototype to avoid an error. */
17256 /* We use char because int might match the return type of a gcc2
17257 builtin and then its argument prototype would still apply. */
17258 char hes_getmailhost ();
17262 hes_getmailhost ();
17267 rm -f conftest.
$ac_objext conftest
$ac_exeext
17268 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17269 (eval $ac_link) 2>conftest.er1
17271 grep -v '^ *+' conftest.er1
>conftest.err
17273 cat conftest.err
>&5
17274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17275 (exit $ac_status); } &&
17276 { ac_try
='test -z "$ac_c_werror_flag"
17277 || test ! -s conftest.err'
17278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17279 (eval $ac_try) 2>&5
17281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17282 (exit $ac_status); }; } &&
17283 { ac_try
='test -s conftest$ac_exeext'
17284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17285 (eval $ac_try) 2>&5
17287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17288 (exit $ac_status); }; }; then
17289 ac_cv_lib_hesiod_hes_getmailhost
=yes
17291 echo "$as_me: failed program was:" >&5
17292 sed 's/^/| /' conftest.
$ac_ext >&5
17294 ac_cv_lib_hesiod_hes_getmailhost
=no
17296 rm -f conftest.err conftest.
$ac_objext \
17297 conftest
$ac_exeext conftest.
$ac_ext
17298 LIBS
=$ac_check_lib_save_LIBS
17300 echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
17301 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6
17302 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
17304 cat >>confdefs.h
<<\_ACEOF
17305 #define HAVE_LIBHESIOD 1
17316 # These tell us which Kerberos-related libraries to use.
17317 if test "${with_kerberos+set}" = set; then
17319 echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
17320 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6
17321 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
17322 echo $ECHO_N "(cached) $ECHO_C" >&6
17324 ac_check_lib_save_LIBS
=$LIBS
17325 LIBS
="-lcom_err $LIBS"
17326 cat >conftest.
$ac_ext <<_ACEOF
17329 cat confdefs.h
>>conftest.
$ac_ext
17330 cat >>conftest.
$ac_ext <<_ACEOF
17331 /* end confdefs.h. */
17333 /* Override any gcc2 internal prototype to avoid an error. */
17337 /* We use char because int might match the return type of a gcc2
17338 builtin and then its argument prototype would still apply. */
17348 rm -f conftest.
$ac_objext conftest
$ac_exeext
17349 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17350 (eval $ac_link) 2>conftest.er1
17352 grep -v '^ *+' conftest.er1
>conftest.err
17354 cat conftest.err
>&5
17355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17356 (exit $ac_status); } &&
17357 { ac_try
='test -z "$ac_c_werror_flag"
17358 || test ! -s conftest.err'
17359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17360 (eval $ac_try) 2>&5
17362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17363 (exit $ac_status); }; } &&
17364 { ac_try
='test -s conftest$ac_exeext'
17365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17366 (eval $ac_try) 2>&5
17368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17369 (exit $ac_status); }; }; then
17370 ac_cv_lib_com_err_com_err
=yes
17372 echo "$as_me: failed program was:" >&5
17373 sed 's/^/| /' conftest.
$ac_ext >&5
17375 ac_cv_lib_com_err_com_err
=no
17377 rm -f conftest.err conftest.
$ac_objext \
17378 conftest
$ac_exeext conftest.
$ac_ext
17379 LIBS
=$ac_check_lib_save_LIBS
17381 echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
17382 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6
17383 if test $ac_cv_lib_com_err_com_err = yes; then
17384 cat >>confdefs.h
<<_ACEOF
17385 #define HAVE_LIBCOM_ERR 1
17388 LIBS
="-lcom_err $LIBS"
17393 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
17394 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6
17395 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
17396 echo $ECHO_N "(cached) $ECHO_C" >&6
17398 ac_check_lib_save_LIBS
=$LIBS
17399 LIBS
="-lk5crypto $LIBS"
17400 cat >conftest.
$ac_ext <<_ACEOF
17403 cat confdefs.h
>>conftest.
$ac_ext
17404 cat >>conftest.
$ac_ext <<_ACEOF
17405 /* end confdefs.h. */
17407 /* Override any gcc2 internal prototype to avoid an error. */
17411 /* We use char because int might match the return type of a gcc2
17412 builtin and then its argument prototype would still apply. */
17413 char mit_des_cbc_encrypt ();
17417 mit_des_cbc_encrypt ();
17422 rm -f conftest.
$ac_objext conftest
$ac_exeext
17423 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17424 (eval $ac_link) 2>conftest.er1
17426 grep -v '^ *+' conftest.er1
>conftest.err
17428 cat conftest.err
>&5
17429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17430 (exit $ac_status); } &&
17431 { ac_try
='test -z "$ac_c_werror_flag"
17432 || test ! -s conftest.err'
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); }; } &&
17438 { ac_try
='test -s conftest$ac_exeext'
17439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17440 (eval $ac_try) 2>&5
17442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17443 (exit $ac_status); }; }; then
17444 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=yes
17446 echo "$as_me: failed program was:" >&5
17447 sed 's/^/| /' conftest.
$ac_ext >&5
17449 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=no
17451 rm -f conftest.err conftest.
$ac_objext \
17452 conftest
$ac_exeext conftest.
$ac_ext
17453 LIBS
=$ac_check_lib_save_LIBS
17455 echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
17456 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6
17457 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
17458 cat >>confdefs.h
<<_ACEOF
17459 #define HAVE_LIBK5CRYPTO 1
17462 LIBS
="-lk5crypto $LIBS"
17467 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
17468 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6
17469 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
17470 echo $ECHO_N "(cached) $ECHO_C" >&6
17472 ac_check_lib_save_LIBS
=$LIBS
17473 LIBS
="-lcrypto $LIBS"
17474 cat >conftest.
$ac_ext <<_ACEOF
17477 cat confdefs.h
>>conftest.
$ac_ext
17478 cat >>conftest.
$ac_ext <<_ACEOF
17479 /* end confdefs.h. */
17481 /* Override any gcc2 internal prototype to avoid an error. */
17485 /* We use char because int might match the return type of a gcc2
17486 builtin and then its argument prototype would still apply. */
17487 char mit_des_cbc_encrypt ();
17491 mit_des_cbc_encrypt ();
17496 rm -f conftest.
$ac_objext conftest
$ac_exeext
17497 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17498 (eval $ac_link) 2>conftest.er1
17500 grep -v '^ *+' conftest.er1
>conftest.err
17502 cat conftest.err
>&5
17503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17504 (exit $ac_status); } &&
17505 { ac_try
='test -z "$ac_c_werror_flag"
17506 || test ! -s conftest.err'
17507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17508 (eval $ac_try) 2>&5
17510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17511 (exit $ac_status); }; } &&
17512 { ac_try
='test -s conftest$ac_exeext'
17513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17514 (eval $ac_try) 2>&5
17516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17517 (exit $ac_status); }; }; then
17518 ac_cv_lib_crypto_mit_des_cbc_encrypt
=yes
17520 echo "$as_me: failed program was:" >&5
17521 sed 's/^/| /' conftest.
$ac_ext >&5
17523 ac_cv_lib_crypto_mit_des_cbc_encrypt
=no
17525 rm -f conftest.err conftest.
$ac_objext \
17526 conftest
$ac_exeext conftest.
$ac_ext
17527 LIBS
=$ac_check_lib_save_LIBS
17529 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
17530 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6
17531 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
17532 cat >>confdefs.h
<<_ACEOF
17533 #define HAVE_LIBCRYPTO 1
17536 LIBS
="-lcrypto $LIBS"
17541 echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
17542 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6
17543 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
17544 echo $ECHO_N "(cached) $ECHO_C" >&6
17546 ac_check_lib_save_LIBS
=$LIBS
17547 LIBS
="-lkrb5 $LIBS"
17548 cat >conftest.
$ac_ext <<_ACEOF
17551 cat confdefs.h
>>conftest.
$ac_ext
17552 cat >>conftest.
$ac_ext <<_ACEOF
17553 /* end confdefs.h. */
17555 /* Override any gcc2 internal prototype to avoid an error. */
17559 /* We use char because int might match the return type of a gcc2
17560 builtin and then its argument prototype would still apply. */
17561 char krb5_init_context ();
17565 krb5_init_context ();
17570 rm -f conftest.
$ac_objext conftest
$ac_exeext
17571 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17572 (eval $ac_link) 2>conftest.er1
17574 grep -v '^ *+' conftest.er1
>conftest.err
17576 cat conftest.err
>&5
17577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17578 (exit $ac_status); } &&
17579 { ac_try
='test -z "$ac_c_werror_flag"
17580 || test ! -s conftest.err'
17581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17582 (eval $ac_try) 2>&5
17584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17585 (exit $ac_status); }; } &&
17586 { ac_try
='test -s conftest$ac_exeext'
17587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17588 (eval $ac_try) 2>&5
17590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17591 (exit $ac_status); }; }; then
17592 ac_cv_lib_krb5_krb5_init_context
=yes
17594 echo "$as_me: failed program was:" >&5
17595 sed 's/^/| /' conftest.
$ac_ext >&5
17597 ac_cv_lib_krb5_krb5_init_context
=no
17599 rm -f conftest.err conftest.
$ac_objext \
17600 conftest
$ac_exeext conftest.
$ac_ext
17601 LIBS
=$ac_check_lib_save_LIBS
17603 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
17604 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6
17605 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
17606 cat >>confdefs.h
<<_ACEOF
17607 #define HAVE_LIBKRB5 1
17610 LIBS
="-lkrb5 $LIBS"
17614 if test "${with_kerberos5+set}" != set; then
17616 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
17617 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6
17618 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
17619 echo $ECHO_N "(cached) $ECHO_C" >&6
17621 ac_check_lib_save_LIBS
=$LIBS
17622 LIBS
="-ldes425 $LIBS"
17623 cat >conftest.
$ac_ext <<_ACEOF
17626 cat confdefs.h
>>conftest.
$ac_ext
17627 cat >>conftest.
$ac_ext <<_ACEOF
17628 /* end confdefs.h. */
17630 /* Override any gcc2 internal prototype to avoid an error. */
17634 /* We use char because int might match the return type of a gcc2
17635 builtin and then its argument prototype would still apply. */
17636 char des_cbc_encrypt ();
17640 des_cbc_encrypt ();
17645 rm -f conftest.
$ac_objext conftest
$ac_exeext
17646 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17647 (eval $ac_link) 2>conftest.er1
17649 grep -v '^ *+' conftest.er1
>conftest.err
17651 cat conftest.err
>&5
17652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17653 (exit $ac_status); } &&
17654 { ac_try
='test -z "$ac_c_werror_flag"
17655 || test ! -s conftest.err'
17656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17657 (eval $ac_try) 2>&5
17659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17660 (exit $ac_status); }; } &&
17661 { ac_try
='test -s conftest$ac_exeext'
17662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17663 (eval $ac_try) 2>&5
17665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17666 (exit $ac_status); }; }; then
17667 ac_cv_lib_des425_des_cbc_encrypt
=yes
17669 echo "$as_me: failed program was:" >&5
17670 sed 's/^/| /' conftest.
$ac_ext >&5
17672 ac_cv_lib_des425_des_cbc_encrypt
=no
17674 rm -f conftest.err conftest.
$ac_objext \
17675 conftest
$ac_exeext conftest.
$ac_ext
17676 LIBS
=$ac_check_lib_save_LIBS
17678 echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
17679 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6
17680 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
17681 cat >>confdefs.h
<<_ACEOF
17682 #define HAVE_LIBDES425 1
17685 LIBS
="-ldes425 $LIBS"
17689 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
17690 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6
17691 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
17692 echo $ECHO_N "(cached) $ECHO_C" >&6
17694 ac_check_lib_save_LIBS
=$LIBS
17696 cat >conftest.
$ac_ext <<_ACEOF
17699 cat confdefs.h
>>conftest.
$ac_ext
17700 cat >>conftest.
$ac_ext <<_ACEOF
17701 /* end confdefs.h. */
17703 /* Override any gcc2 internal prototype to avoid an error. */
17707 /* We use char because int might match the return type of a gcc2
17708 builtin and then its argument prototype would still apply. */
17709 char des_cbc_encrypt ();
17713 des_cbc_encrypt ();
17718 rm -f conftest.
$ac_objext conftest
$ac_exeext
17719 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17720 (eval $ac_link) 2>conftest.er1
17722 grep -v '^ *+' conftest.er1
>conftest.err
17724 cat conftest.err
>&5
17725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17726 (exit $ac_status); } &&
17727 { ac_try
='test -z "$ac_c_werror_flag"
17728 || test ! -s conftest.err'
17729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17730 (eval $ac_try) 2>&5
17732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17733 (exit $ac_status); }; } &&
17734 { ac_try
='test -s conftest$ac_exeext'
17735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17736 (eval $ac_try) 2>&5
17738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17739 (exit $ac_status); }; }; then
17740 ac_cv_lib_des_des_cbc_encrypt
=yes
17742 echo "$as_me: failed program was:" >&5
17743 sed 's/^/| /' conftest.
$ac_ext >&5
17745 ac_cv_lib_des_des_cbc_encrypt
=no
17747 rm -f conftest.err conftest.
$ac_objext \
17748 conftest
$ac_exeext conftest.
$ac_ext
17749 LIBS
=$ac_check_lib_save_LIBS
17751 echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
17752 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6
17753 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
17754 cat >>confdefs.h
<<_ACEOF
17755 #define HAVE_LIBDES 1
17765 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
17766 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6
17767 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
17768 echo $ECHO_N "(cached) $ECHO_C" >&6
17770 ac_check_lib_save_LIBS
=$LIBS
17771 LIBS
="-lkrb4 $LIBS"
17772 cat >conftest.
$ac_ext <<_ACEOF
17775 cat confdefs.h
>>conftest.
$ac_ext
17776 cat >>conftest.
$ac_ext <<_ACEOF
17777 /* end confdefs.h. */
17779 /* Override any gcc2 internal prototype to avoid an error. */
17783 /* We use char because int might match the return type of a gcc2
17784 builtin and then its argument prototype would still apply. */
17785 char krb_get_cred ();
17794 rm -f conftest.
$ac_objext conftest
$ac_exeext
17795 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17796 (eval $ac_link) 2>conftest.er1
17798 grep -v '^ *+' conftest.er1
>conftest.err
17800 cat conftest.err
>&5
17801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17802 (exit $ac_status); } &&
17803 { ac_try
='test -z "$ac_c_werror_flag"
17804 || test ! -s conftest.err'
17805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17806 (eval $ac_try) 2>&5
17808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17809 (exit $ac_status); }; } &&
17810 { ac_try
='test -s conftest$ac_exeext'
17811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17812 (eval $ac_try) 2>&5
17814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17815 (exit $ac_status); }; }; then
17816 ac_cv_lib_krb4_krb_get_cred
=yes
17818 echo "$as_me: failed program was:" >&5
17819 sed 's/^/| /' conftest.
$ac_ext >&5
17821 ac_cv_lib_krb4_krb_get_cred
=no
17823 rm -f conftest.err conftest.
$ac_objext \
17824 conftest
$ac_exeext conftest.
$ac_ext
17825 LIBS
=$ac_check_lib_save_LIBS
17827 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
17828 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6
17829 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
17830 cat >>confdefs.h
<<_ACEOF
17831 #define HAVE_LIBKRB4 1
17834 LIBS
="-lkrb4 $LIBS"
17838 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
17839 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6
17840 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
17841 echo $ECHO_N "(cached) $ECHO_C" >&6
17843 ac_check_lib_save_LIBS
=$LIBS
17845 cat >conftest.
$ac_ext <<_ACEOF
17848 cat confdefs.h
>>conftest.
$ac_ext
17849 cat >>conftest.
$ac_ext <<_ACEOF
17850 /* end confdefs.h. */
17852 /* Override any gcc2 internal prototype to avoid an error. */
17856 /* We use char because int might match the return type of a gcc2
17857 builtin and then its argument prototype would still apply. */
17858 char krb_get_cred ();
17867 rm -f conftest.
$ac_objext conftest
$ac_exeext
17868 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17869 (eval $ac_link) 2>conftest.er1
17871 grep -v '^ *+' conftest.er1
>conftest.err
17873 cat conftest.err
>&5
17874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17875 (exit $ac_status); } &&
17876 { ac_try
='test -z "$ac_c_werror_flag"
17877 || test ! -s conftest.err'
17878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17879 (eval $ac_try) 2>&5
17881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17882 (exit $ac_status); }; } &&
17883 { ac_try
='test -s conftest$ac_exeext'
17884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17885 (eval $ac_try) 2>&5
17887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17888 (exit $ac_status); }; }; then
17889 ac_cv_lib_krb_krb_get_cred
=yes
17891 echo "$as_me: failed program was:" >&5
17892 sed 's/^/| /' conftest.
$ac_ext >&5
17894 ac_cv_lib_krb_krb_get_cred
=no
17896 rm -f conftest.err conftest.
$ac_objext \
17897 conftest
$ac_exeext conftest.
$ac_ext
17898 LIBS
=$ac_check_lib_save_LIBS
17900 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
17901 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6
17902 if test $ac_cv_lib_krb_krb_get_cred = yes; then
17903 cat >>confdefs.h
<<_ACEOF
17904 #define HAVE_LIBKRB 1
17915 if test "${with_kerberos5+set}" = set; then
17917 for ac_header
in krb5.h
17919 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17920 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17921 echo "$as_me:$LINENO: checking for $ac_header" >&5
17922 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17923 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17924 echo $ECHO_N "(cached) $ECHO_C" >&6
17926 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17927 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17929 # Is the header compilable?
17930 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17931 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17932 cat >conftest.
$ac_ext <<_ACEOF
17935 cat confdefs.h
>>conftest.
$ac_ext
17936 cat >>conftest.
$ac_ext <<_ACEOF
17937 /* end confdefs.h. */
17938 $ac_includes_default
17939 #include <$ac_header>
17941 rm -f conftest.
$ac_objext
17942 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17943 (eval $ac_compile) 2>conftest.er1
17945 grep -v '^ *+' conftest.er1
>conftest.err
17947 cat conftest.err
>&5
17948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17949 (exit $ac_status); } &&
17950 { ac_try
='test -z "$ac_c_werror_flag"
17951 || test ! -s conftest.err'
17952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17953 (eval $ac_try) 2>&5
17955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17956 (exit $ac_status); }; } &&
17957 { ac_try
='test -s conftest.$ac_objext'
17958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17959 (eval $ac_try) 2>&5
17961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17962 (exit $ac_status); }; }; then
17963 ac_header_compiler
=yes
17965 echo "$as_me: failed program was:" >&5
17966 sed 's/^/| /' conftest.
$ac_ext >&5
17968 ac_header_compiler
=no
17970 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17971 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17972 echo "${ECHO_T}$ac_header_compiler" >&6
17974 # Is the header present?
17975 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17976 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17977 cat >conftest.
$ac_ext <<_ACEOF
17980 cat confdefs.h
>>conftest.
$ac_ext
17981 cat >>conftest.
$ac_ext <<_ACEOF
17982 /* end confdefs.h. */
17983 #include <$ac_header>
17985 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17986 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
17988 grep -v '^ *+' conftest.er1
>conftest.err
17990 cat conftest.err
>&5
17991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17992 (exit $ac_status); } >/dev
/null
; then
17993 if test -s conftest.err
; then
17994 ac_cpp_err
=$ac_c_preproc_warn_flag
17995 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
18002 if test -z "$ac_cpp_err"; then
18003 ac_header_preproc
=yes
18005 echo "$as_me: failed program was:" >&5
18006 sed 's/^/| /' conftest.
$ac_ext >&5
18008 ac_header_preproc
=no
18010 rm -f conftest.err conftest.
$ac_ext
18011 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18012 echo "${ECHO_T}$ac_header_preproc" >&6
18014 # So? What about this header?
18015 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18017 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18018 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18019 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18020 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18021 ac_header_preproc
=yes
18024 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18025 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18026 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18027 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18028 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18029 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18030 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18031 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18032 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18033 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18034 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18035 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18038 ## ------------------------------------------ ##
18039 ## Report this to the AC_PACKAGE_NAME lists. ##
18040 ## ------------------------------------------ ##
18043 sed "s/^/$as_me: WARNING: /" >&2
18046 echo "$as_me:$LINENO: checking for $ac_header" >&5
18047 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18048 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18049 echo $ECHO_N "(cached) $ECHO_C" >&6
18051 eval "$as_ac_Header=\$ac_header_preproc"
18053 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18054 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18057 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18058 cat >>confdefs.h
<<_ACEOF
18059 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18068 for ac_header
in des.h
18070 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18071 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18072 echo "$as_me:$LINENO: checking for $ac_header" >&5
18073 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18074 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18075 echo $ECHO_N "(cached) $ECHO_C" >&6
18077 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18078 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18080 # Is the header compilable?
18081 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18082 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18083 cat >conftest.
$ac_ext <<_ACEOF
18086 cat confdefs.h
>>conftest.
$ac_ext
18087 cat >>conftest.
$ac_ext <<_ACEOF
18088 /* end confdefs.h. */
18089 $ac_includes_default
18090 #include <$ac_header>
18092 rm -f conftest.
$ac_objext
18093 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18094 (eval $ac_compile) 2>conftest.er1
18096 grep -v '^ *+' conftest.er1
>conftest.err
18098 cat conftest.err
>&5
18099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18100 (exit $ac_status); } &&
18101 { ac_try
='test -z "$ac_c_werror_flag"
18102 || test ! -s conftest.err'
18103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18104 (eval $ac_try) 2>&5
18106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18107 (exit $ac_status); }; } &&
18108 { ac_try
='test -s conftest.$ac_objext'
18109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18110 (eval $ac_try) 2>&5
18112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18113 (exit $ac_status); }; }; then
18114 ac_header_compiler
=yes
18116 echo "$as_me: failed program was:" >&5
18117 sed 's/^/| /' conftest.
$ac_ext >&5
18119 ac_header_compiler
=no
18121 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18122 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18123 echo "${ECHO_T}$ac_header_compiler" >&6
18125 # Is the header present?
18126 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18127 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18128 cat >conftest.
$ac_ext <<_ACEOF
18131 cat confdefs.h
>>conftest.
$ac_ext
18132 cat >>conftest.
$ac_ext <<_ACEOF
18133 /* end confdefs.h. */
18134 #include <$ac_header>
18136 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18137 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
18139 grep -v '^ *+' conftest.er1
>conftest.err
18141 cat conftest.err
>&5
18142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18143 (exit $ac_status); } >/dev
/null
; then
18144 if test -s conftest.err
; then
18145 ac_cpp_err
=$ac_c_preproc_warn_flag
18146 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
18153 if test -z "$ac_cpp_err"; then
18154 ac_header_preproc
=yes
18156 echo "$as_me: failed program was:" >&5
18157 sed 's/^/| /' conftest.
$ac_ext >&5
18159 ac_header_preproc
=no
18161 rm -f conftest.err conftest.
$ac_ext
18162 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18163 echo "${ECHO_T}$ac_header_preproc" >&6
18165 # So? What about this header?
18166 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18168 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18169 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18170 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18171 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18172 ac_header_preproc
=yes
18175 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18176 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18177 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18178 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18179 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18180 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18181 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18182 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18183 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18184 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18185 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18186 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18189 ## ------------------------------------------ ##
18190 ## Report this to the AC_PACKAGE_NAME lists. ##
18191 ## ------------------------------------------ ##
18194 sed "s/^/$as_me: WARNING: /" >&2
18197 echo "$as_me:$LINENO: checking for $ac_header" >&5
18198 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18199 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18200 echo $ECHO_N "(cached) $ECHO_C" >&6
18202 eval "$as_ac_Header=\$ac_header_preproc"
18204 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18205 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18208 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18209 cat >>confdefs.h
<<_ACEOF
18210 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18215 for ac_header
in kerberosIV
/des.h
18217 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18218 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18219 echo "$as_me:$LINENO: checking for $ac_header" >&5
18220 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18221 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18222 echo $ECHO_N "(cached) $ECHO_C" >&6
18224 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18225 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18227 # Is the header compilable?
18228 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18229 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18230 cat >conftest.
$ac_ext <<_ACEOF
18233 cat confdefs.h
>>conftest.
$ac_ext
18234 cat >>conftest.
$ac_ext <<_ACEOF
18235 /* end confdefs.h. */
18236 $ac_includes_default
18237 #include <$ac_header>
18239 rm -f conftest.
$ac_objext
18240 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18241 (eval $ac_compile) 2>conftest.er1
18243 grep -v '^ *+' conftest.er1
>conftest.err
18245 cat conftest.err
>&5
18246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18247 (exit $ac_status); } &&
18248 { ac_try
='test -z "$ac_c_werror_flag"
18249 || test ! -s conftest.err'
18250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18251 (eval $ac_try) 2>&5
18253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18254 (exit $ac_status); }; } &&
18255 { ac_try
='test -s conftest.$ac_objext'
18256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18257 (eval $ac_try) 2>&5
18259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18260 (exit $ac_status); }; }; then
18261 ac_header_compiler
=yes
18263 echo "$as_me: failed program was:" >&5
18264 sed 's/^/| /' conftest.
$ac_ext >&5
18266 ac_header_compiler
=no
18268 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18269 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18270 echo "${ECHO_T}$ac_header_compiler" >&6
18272 # Is the header present?
18273 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18274 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18275 cat >conftest.
$ac_ext <<_ACEOF
18278 cat confdefs.h
>>conftest.
$ac_ext
18279 cat >>conftest.
$ac_ext <<_ACEOF
18280 /* end confdefs.h. */
18281 #include <$ac_header>
18283 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18284 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
18286 grep -v '^ *+' conftest.er1
>conftest.err
18288 cat conftest.err
>&5
18289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18290 (exit $ac_status); } >/dev
/null
; then
18291 if test -s conftest.err
; then
18292 ac_cpp_err
=$ac_c_preproc_warn_flag
18293 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
18300 if test -z "$ac_cpp_err"; then
18301 ac_header_preproc
=yes
18303 echo "$as_me: failed program was:" >&5
18304 sed 's/^/| /' conftest.
$ac_ext >&5
18306 ac_header_preproc
=no
18308 rm -f conftest.err conftest.
$ac_ext
18309 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18310 echo "${ECHO_T}$ac_header_preproc" >&6
18312 # So? What about this header?
18313 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18315 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18316 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18317 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18318 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18319 ac_header_preproc
=yes
18322 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18323 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18324 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18325 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18326 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18327 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18328 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18329 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18330 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18331 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18332 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18333 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18336 ## ------------------------------------------ ##
18337 ## Report this to the AC_PACKAGE_NAME lists. ##
18338 ## ------------------------------------------ ##
18341 sed "s/^/$as_me: WARNING: /" >&2
18344 echo "$as_me:$LINENO: checking for $ac_header" >&5
18345 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18346 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18347 echo $ECHO_N "(cached) $ECHO_C" >&6
18349 eval "$as_ac_Header=\$ac_header_preproc"
18351 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18352 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18355 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18356 cat >>confdefs.h
<<_ACEOF
18357 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18362 for ac_header
in kerberos
/des.h
18364 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18365 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18366 echo "$as_me:$LINENO: checking for $ac_header" >&5
18367 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18368 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18369 echo $ECHO_N "(cached) $ECHO_C" >&6
18371 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18372 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18374 # Is the header compilable?
18375 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18376 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18377 cat >conftest.
$ac_ext <<_ACEOF
18380 cat confdefs.h
>>conftest.
$ac_ext
18381 cat >>conftest.
$ac_ext <<_ACEOF
18382 /* end confdefs.h. */
18383 $ac_includes_default
18384 #include <$ac_header>
18386 rm -f conftest.
$ac_objext
18387 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18388 (eval $ac_compile) 2>conftest.er1
18390 grep -v '^ *+' conftest.er1
>conftest.err
18392 cat conftest.err
>&5
18393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18394 (exit $ac_status); } &&
18395 { ac_try
='test -z "$ac_c_werror_flag"
18396 || test ! -s conftest.err'
18397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18398 (eval $ac_try) 2>&5
18400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18401 (exit $ac_status); }; } &&
18402 { ac_try
='test -s conftest.$ac_objext'
18403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18404 (eval $ac_try) 2>&5
18406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18407 (exit $ac_status); }; }; then
18408 ac_header_compiler
=yes
18410 echo "$as_me: failed program was:" >&5
18411 sed 's/^/| /' conftest.
$ac_ext >&5
18413 ac_header_compiler
=no
18415 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18416 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18417 echo "${ECHO_T}$ac_header_compiler" >&6
18419 # Is the header present?
18420 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18421 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18422 cat >conftest.
$ac_ext <<_ACEOF
18425 cat confdefs.h
>>conftest.
$ac_ext
18426 cat >>conftest.
$ac_ext <<_ACEOF
18427 /* end confdefs.h. */
18428 #include <$ac_header>
18430 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18431 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
18433 grep -v '^ *+' conftest.er1
>conftest.err
18435 cat conftest.err
>&5
18436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18437 (exit $ac_status); } >/dev
/null
; then
18438 if test -s conftest.err
; then
18439 ac_cpp_err
=$ac_c_preproc_warn_flag
18440 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
18447 if test -z "$ac_cpp_err"; then
18448 ac_header_preproc
=yes
18450 echo "$as_me: failed program was:" >&5
18451 sed 's/^/| /' conftest.
$ac_ext >&5
18453 ac_header_preproc
=no
18455 rm -f conftest.err conftest.
$ac_ext
18456 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18457 echo "${ECHO_T}$ac_header_preproc" >&6
18459 # So? What about this header?
18460 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18462 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18463 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18464 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18465 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18466 ac_header_preproc
=yes
18469 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18470 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18471 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18472 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18473 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18474 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18475 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18476 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18477 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18478 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18479 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18480 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18483 ## ------------------------------------------ ##
18484 ## Report this to the AC_PACKAGE_NAME lists. ##
18485 ## ------------------------------------------ ##
18488 sed "s/^/$as_me: WARNING: /" >&2
18491 echo "$as_me:$LINENO: checking for $ac_header" >&5
18492 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18493 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18494 echo $ECHO_N "(cached) $ECHO_C" >&6
18496 eval "$as_ac_Header=\$ac_header_preproc"
18498 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18499 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18502 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18503 cat >>confdefs.h
<<_ACEOF
18504 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18520 for ac_header
in krb.h
18522 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18523 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18524 echo "$as_me:$LINENO: checking for $ac_header" >&5
18525 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18526 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18527 echo $ECHO_N "(cached) $ECHO_C" >&6
18529 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18530 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18532 # Is the header compilable?
18533 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18534 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18535 cat >conftest.
$ac_ext <<_ACEOF
18538 cat confdefs.h
>>conftest.
$ac_ext
18539 cat >>conftest.
$ac_ext <<_ACEOF
18540 /* end confdefs.h. */
18541 $ac_includes_default
18542 #include <$ac_header>
18544 rm -f conftest.
$ac_objext
18545 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18546 (eval $ac_compile) 2>conftest.er1
18548 grep -v '^ *+' conftest.er1
>conftest.err
18550 cat conftest.err
>&5
18551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18552 (exit $ac_status); } &&
18553 { ac_try
='test -z "$ac_c_werror_flag"
18554 || test ! -s conftest.err'
18555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18556 (eval $ac_try) 2>&5
18558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18559 (exit $ac_status); }; } &&
18560 { ac_try
='test -s conftest.$ac_objext'
18561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18562 (eval $ac_try) 2>&5
18564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18565 (exit $ac_status); }; }; then
18566 ac_header_compiler
=yes
18568 echo "$as_me: failed program was:" >&5
18569 sed 's/^/| /' conftest.
$ac_ext >&5
18571 ac_header_compiler
=no
18573 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18574 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18575 echo "${ECHO_T}$ac_header_compiler" >&6
18577 # Is the header present?
18578 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18579 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18580 cat >conftest.
$ac_ext <<_ACEOF
18583 cat confdefs.h
>>conftest.
$ac_ext
18584 cat >>conftest.
$ac_ext <<_ACEOF
18585 /* end confdefs.h. */
18586 #include <$ac_header>
18588 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18589 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
18591 grep -v '^ *+' conftest.er1
>conftest.err
18593 cat conftest.err
>&5
18594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18595 (exit $ac_status); } >/dev
/null
; then
18596 if test -s conftest.err
; then
18597 ac_cpp_err
=$ac_c_preproc_warn_flag
18598 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
18605 if test -z "$ac_cpp_err"; then
18606 ac_header_preproc
=yes
18608 echo "$as_me: failed program was:" >&5
18609 sed 's/^/| /' conftest.
$ac_ext >&5
18611 ac_header_preproc
=no
18613 rm -f conftest.err conftest.
$ac_ext
18614 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18615 echo "${ECHO_T}$ac_header_preproc" >&6
18617 # So? What about this header?
18618 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18620 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18621 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18622 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18623 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18624 ac_header_preproc
=yes
18627 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18628 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18629 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18630 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18631 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18632 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18633 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18634 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18635 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18636 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18637 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18638 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18641 ## ------------------------------------------ ##
18642 ## Report this to the AC_PACKAGE_NAME lists. ##
18643 ## ------------------------------------------ ##
18646 sed "s/^/$as_me: WARNING: /" >&2
18649 echo "$as_me:$LINENO: checking for $ac_header" >&5
18650 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18651 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18652 echo $ECHO_N "(cached) $ECHO_C" >&6
18654 eval "$as_ac_Header=\$ac_header_preproc"
18656 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18657 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18660 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18661 cat >>confdefs.h
<<_ACEOF
18662 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18667 for ac_header
in kerberosIV
/krb.h
18669 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18670 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18671 echo "$as_me:$LINENO: checking for $ac_header" >&5
18672 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18673 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18674 echo $ECHO_N "(cached) $ECHO_C" >&6
18676 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18677 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18679 # Is the header compilable?
18680 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18681 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18682 cat >conftest.
$ac_ext <<_ACEOF
18685 cat confdefs.h
>>conftest.
$ac_ext
18686 cat >>conftest.
$ac_ext <<_ACEOF
18687 /* end confdefs.h. */
18688 $ac_includes_default
18689 #include <$ac_header>
18691 rm -f conftest.
$ac_objext
18692 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18693 (eval $ac_compile) 2>conftest.er1
18695 grep -v '^ *+' conftest.er1
>conftest.err
18697 cat conftest.err
>&5
18698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18699 (exit $ac_status); } &&
18700 { ac_try
='test -z "$ac_c_werror_flag"
18701 || test ! -s conftest.err'
18702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18703 (eval $ac_try) 2>&5
18705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18706 (exit $ac_status); }; } &&
18707 { ac_try
='test -s conftest.$ac_objext'
18708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18709 (eval $ac_try) 2>&5
18711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18712 (exit $ac_status); }; }; then
18713 ac_header_compiler
=yes
18715 echo "$as_me: failed program was:" >&5
18716 sed 's/^/| /' conftest.
$ac_ext >&5
18718 ac_header_compiler
=no
18720 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18721 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18722 echo "${ECHO_T}$ac_header_compiler" >&6
18724 # Is the header present?
18725 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18726 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18727 cat >conftest.
$ac_ext <<_ACEOF
18730 cat confdefs.h
>>conftest.
$ac_ext
18731 cat >>conftest.
$ac_ext <<_ACEOF
18732 /* end confdefs.h. */
18733 #include <$ac_header>
18735 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18736 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
18738 grep -v '^ *+' conftest.er1
>conftest.err
18740 cat conftest.err
>&5
18741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18742 (exit $ac_status); } >/dev
/null
; then
18743 if test -s conftest.err
; then
18744 ac_cpp_err
=$ac_c_preproc_warn_flag
18745 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
18752 if test -z "$ac_cpp_err"; then
18753 ac_header_preproc
=yes
18755 echo "$as_me: failed program was:" >&5
18756 sed 's/^/| /' conftest.
$ac_ext >&5
18758 ac_header_preproc
=no
18760 rm -f conftest.err conftest.
$ac_ext
18761 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18762 echo "${ECHO_T}$ac_header_preproc" >&6
18764 # So? What about this header?
18765 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18767 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18768 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18769 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18770 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18771 ac_header_preproc
=yes
18774 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18775 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18776 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18777 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18778 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18779 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18780 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18781 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18782 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18783 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18784 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18785 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18788 ## ------------------------------------------ ##
18789 ## Report this to the AC_PACKAGE_NAME lists. ##
18790 ## ------------------------------------------ ##
18793 sed "s/^/$as_me: WARNING: /" >&2
18796 echo "$as_me:$LINENO: checking for $ac_header" >&5
18797 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18798 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18799 echo $ECHO_N "(cached) $ECHO_C" >&6
18801 eval "$as_ac_Header=\$ac_header_preproc"
18803 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18804 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18807 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18808 cat >>confdefs.h
<<_ACEOF
18809 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18814 for ac_header
in kerberos
/krb.h
18816 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18817 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18818 echo "$as_me:$LINENO: checking for $ac_header" >&5
18819 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18820 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18821 echo $ECHO_N "(cached) $ECHO_C" >&6
18823 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18824 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18826 # Is the header compilable?
18827 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18828 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18829 cat >conftest.
$ac_ext <<_ACEOF
18832 cat confdefs.h
>>conftest.
$ac_ext
18833 cat >>conftest.
$ac_ext <<_ACEOF
18834 /* end confdefs.h. */
18835 $ac_includes_default
18836 #include <$ac_header>
18838 rm -f conftest.
$ac_objext
18839 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18840 (eval $ac_compile) 2>conftest.er1
18842 grep -v '^ *+' conftest.er1
>conftest.err
18844 cat conftest.err
>&5
18845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18846 (exit $ac_status); } &&
18847 { ac_try
='test -z "$ac_c_werror_flag"
18848 || test ! -s conftest.err'
18849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18850 (eval $ac_try) 2>&5
18852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18853 (exit $ac_status); }; } &&
18854 { ac_try
='test -s conftest.$ac_objext'
18855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18856 (eval $ac_try) 2>&5
18858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18859 (exit $ac_status); }; }; then
18860 ac_header_compiler
=yes
18862 echo "$as_me: failed program was:" >&5
18863 sed 's/^/| /' conftest.
$ac_ext >&5
18865 ac_header_compiler
=no
18867 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18868 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18869 echo "${ECHO_T}$ac_header_compiler" >&6
18871 # Is the header present?
18872 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18873 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18874 cat >conftest.
$ac_ext <<_ACEOF
18877 cat confdefs.h
>>conftest.
$ac_ext
18878 cat >>conftest.
$ac_ext <<_ACEOF
18879 /* end confdefs.h. */
18880 #include <$ac_header>
18882 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18883 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
18885 grep -v '^ *+' conftest.er1
>conftest.err
18887 cat conftest.err
>&5
18888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18889 (exit $ac_status); } >/dev
/null
; then
18890 if test -s conftest.err
; then
18891 ac_cpp_err
=$ac_c_preproc_warn_flag
18892 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
18899 if test -z "$ac_cpp_err"; then
18900 ac_header_preproc
=yes
18902 echo "$as_me: failed program was:" >&5
18903 sed 's/^/| /' conftest.
$ac_ext >&5
18905 ac_header_preproc
=no
18907 rm -f conftest.err conftest.
$ac_ext
18908 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18909 echo "${ECHO_T}$ac_header_preproc" >&6
18911 # So? What about this header?
18912 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18914 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18915 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18916 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18917 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18918 ac_header_preproc
=yes
18921 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18922 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18923 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18924 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18925 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18926 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18927 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18928 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18929 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18930 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18931 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18932 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18935 ## ------------------------------------------ ##
18936 ## Report this to the AC_PACKAGE_NAME lists. ##
18937 ## ------------------------------------------ ##
18940 sed "s/^/$as_me: WARNING: /" >&2
18943 echo "$as_me:$LINENO: checking for $ac_header" >&5
18944 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18945 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18946 echo $ECHO_N "(cached) $ECHO_C" >&6
18948 eval "$as_ac_Header=\$ac_header_preproc"
18950 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18951 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18954 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18955 cat >>confdefs.h
<<_ACEOF
18956 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18973 for ac_header
in com_err.h
18975 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18976 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18977 echo "$as_me:$LINENO: checking for $ac_header" >&5
18978 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18979 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18980 echo $ECHO_N "(cached) $ECHO_C" >&6
18982 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18983 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18985 # Is the header compilable?
18986 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18987 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18988 cat >conftest.
$ac_ext <<_ACEOF
18991 cat confdefs.h
>>conftest.
$ac_ext
18992 cat >>conftest.
$ac_ext <<_ACEOF
18993 /* end confdefs.h. */
18994 $ac_includes_default
18995 #include <$ac_header>
18997 rm -f conftest.
$ac_objext
18998 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18999 (eval $ac_compile) 2>conftest.er1
19001 grep -v '^ *+' conftest.er1
>conftest.err
19003 cat conftest.err
>&5
19004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19005 (exit $ac_status); } &&
19006 { ac_try
='test -z "$ac_c_werror_flag"
19007 || test ! -s conftest.err'
19008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19009 (eval $ac_try) 2>&5
19011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19012 (exit $ac_status); }; } &&
19013 { ac_try
='test -s conftest.$ac_objext'
19014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19015 (eval $ac_try) 2>&5
19017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19018 (exit $ac_status); }; }; then
19019 ac_header_compiler
=yes
19021 echo "$as_me: failed program was:" >&5
19022 sed 's/^/| /' conftest.
$ac_ext >&5
19024 ac_header_compiler
=no
19026 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19027 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19028 echo "${ECHO_T}$ac_header_compiler" >&6
19030 # Is the header present?
19031 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19032 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19033 cat >conftest.
$ac_ext <<_ACEOF
19036 cat confdefs.h
>>conftest.
$ac_ext
19037 cat >>conftest.
$ac_ext <<_ACEOF
19038 /* end confdefs.h. */
19039 #include <$ac_header>
19041 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19042 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
19044 grep -v '^ *+' conftest.er1
>conftest.err
19046 cat conftest.err
>&5
19047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19048 (exit $ac_status); } >/dev
/null
; then
19049 if test -s conftest.err
; then
19050 ac_cpp_err
=$ac_c_preproc_warn_flag
19051 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
19058 if test -z "$ac_cpp_err"; then
19059 ac_header_preproc
=yes
19061 echo "$as_me: failed program was:" >&5
19062 sed 's/^/| /' conftest.
$ac_ext >&5
19064 ac_header_preproc
=no
19066 rm -f conftest.err conftest.
$ac_ext
19067 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19068 echo "${ECHO_T}$ac_header_preproc" >&6
19070 # So? What about this header?
19071 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19073 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19074 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19075 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19076 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19077 ac_header_preproc
=yes
19080 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19081 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19082 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19083 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19084 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19085 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19086 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19087 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19088 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19089 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19090 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19091 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19094 ## ------------------------------------------ ##
19095 ## Report this to the AC_PACKAGE_NAME lists. ##
19096 ## ------------------------------------------ ##
19099 sed "s/^/$as_me: WARNING: /" >&2
19102 echo "$as_me:$LINENO: checking for $ac_header" >&5
19103 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19104 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19105 echo $ECHO_N "(cached) $ECHO_C" >&6
19107 eval "$as_ac_Header=\$ac_header_preproc"
19109 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19110 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19113 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19114 cat >>confdefs.h
<<_ACEOF
19115 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19124 # Solaris requires -lintl if you want strerror (which calls dgettext)
19125 # to return localized messages.
19127 echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
19128 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6
19129 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
19130 echo $ECHO_N "(cached) $ECHO_C" >&6
19132 ac_check_lib_save_LIBS
=$LIBS
19133 LIBS
="-lintl $LIBS"
19134 cat >conftest.
$ac_ext <<_ACEOF
19137 cat confdefs.h
>>conftest.
$ac_ext
19138 cat >>conftest.
$ac_ext <<_ACEOF
19139 /* end confdefs.h. */
19141 /* Override any gcc2 internal prototype to avoid an error. */
19145 /* We use char because int might match the return type of a gcc2
19146 builtin and then its argument prototype would still apply. */
19156 rm -f conftest.
$ac_objext conftest
$ac_exeext
19157 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19158 (eval $ac_link) 2>conftest.er1
19160 grep -v '^ *+' conftest.er1
>conftest.err
19162 cat conftest.err
>&5
19163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19164 (exit $ac_status); } &&
19165 { ac_try
='test -z "$ac_c_werror_flag"
19166 || test ! -s conftest.err'
19167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19168 (eval $ac_try) 2>&5
19170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19171 (exit $ac_status); }; } &&
19172 { ac_try
='test -s conftest$ac_exeext'
19173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19174 (eval $ac_try) 2>&5
19176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19177 (exit $ac_status); }; }; then
19178 ac_cv_lib_intl_dgettext
=yes
19180 echo "$as_me: failed program was:" >&5
19181 sed 's/^/| /' conftest.
$ac_ext >&5
19183 ac_cv_lib_intl_dgettext
=no
19185 rm -f conftest.err conftest.
$ac_objext \
19186 conftest
$ac_exeext conftest.
$ac_ext
19187 LIBS
=$ac_check_lib_save_LIBS
19189 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
19190 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6
19191 if test $ac_cv_lib_intl_dgettext = yes; then
19192 cat >>confdefs.h
<<_ACEOF
19193 #define HAVE_LIBINTL 1
19196 LIBS
="-lintl $LIBS"
19201 echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
19202 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6
19203 if test "${emacs_cv_localtime_cache+set}" = set; then
19204 echo $ECHO_N "(cached) $ECHO_C" >&6
19206 if test x
$ac_cv_func_tzset = xyes
; then
19207 if test "$cross_compiling" = yes; then
19208 # If we have tzset, assume the worst when cross-compiling.
19209 emacs_cv_localtime_cache
=yes
19211 cat >conftest.
$ac_ext <<_ACEOF
19214 cat confdefs.h
>>conftest.
$ac_ext
19215 cat >>conftest.
$ac_ext <<_ACEOF
19216 /* end confdefs.h. */
19218 extern char **environ;
19222 for (to = from = environ; (*to = *from); from++)
19223 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
19226 char TZ_GMT0[] = "TZ=GMT0";
19227 char TZ_PST8[] = "TZ=PST8";
19230 time_t now = time ((time_t *) 0);
19231 int hour_GMT0, hour_unset;
19232 if (putenv (TZ_GMT0) != 0)
19234 hour_GMT0 = localtime (&now)->tm_hour;
19236 hour_unset = localtime (&now)->tm_hour;
19237 if (putenv (TZ_PST8) != 0)
19239 if (localtime (&now)->tm_hour == hour_GMT0)
19242 if (localtime (&now)->tm_hour != hour_unset)
19247 rm -f conftest
$ac_exeext
19248 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19249 (eval $ac_link) 2>&5
19251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19252 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
19253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19254 (eval $ac_try) 2>&5
19256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19257 (exit $ac_status); }; }; then
19258 emacs_cv_localtime_cache
=no
19260 echo "$as_me: program exited with status $ac_status" >&5
19261 echo "$as_me: failed program was:" >&5
19262 sed 's/^/| /' conftest.
$ac_ext >&5
19264 ( exit $ac_status )
19265 emacs_cv_localtime_cache
=yes
19267 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
19270 # If we lack tzset, report that localtime does not cache TZ,
19271 # since we can't invalidate the cache if we don't have tzset.
19272 emacs_cv_localtime_cache
=no
19275 echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
19276 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6
19277 if test $emacs_cv_localtime_cache = yes; then
19279 cat >>confdefs.h
<<\_ACEOF
19280 #define LOCALTIME_CACHE 1
19285 if test "x$HAVE_TIMEVAL" = xyes
; then
19287 for ac_func
in gettimeofday
19289 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19290 echo "$as_me:$LINENO: checking for $ac_func" >&5
19291 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19292 if eval "test \"\${$as_ac_var+set}\" = set"; then
19293 echo $ECHO_N "(cached) $ECHO_C" >&6
19295 cat >conftest.
$ac_ext <<_ACEOF
19298 cat confdefs.h
>>conftest.
$ac_ext
19299 cat >>conftest.
$ac_ext <<_ACEOF
19300 /* end confdefs.h. */
19301 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19302 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19303 #define $ac_func innocuous_$ac_func
19305 /* System header to define __stub macros and hopefully few prototypes,
19306 which can conflict with char $ac_func (); below.
19307 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19308 <limits.h> exists even on freestanding compilers. */
19311 # include <limits.h>
19313 # include <assert.h>
19318 /* Override any gcc2 internal prototype to avoid an error. */
19323 /* We use char because int might match the return type of a gcc2
19324 builtin and then its argument prototype would still apply. */
19326 /* The GNU C library defines this for functions which it implements
19327 to always fail with ENOSYS. Some functions are actually named
19328 something starting with __ and the normal name is an alias. */
19329 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19332 char (*f) () = $ac_func;
19341 return f != $ac_func;
19346 rm -f conftest.
$ac_objext conftest
$ac_exeext
19347 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19348 (eval $ac_link) 2>conftest.er1
19350 grep -v '^ *+' conftest.er1
>conftest.err
19352 cat conftest.err
>&5
19353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19354 (exit $ac_status); } &&
19355 { ac_try
='test -z "$ac_c_werror_flag"
19356 || test ! -s conftest.err'
19357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19358 (eval $ac_try) 2>&5
19360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19361 (exit $ac_status); }; } &&
19362 { ac_try
='test -s conftest$ac_exeext'
19363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19364 (eval $ac_try) 2>&5
19366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19367 (exit $ac_status); }; }; then
19368 eval "$as_ac_var=yes"
19370 echo "$as_me: failed program was:" >&5
19371 sed 's/^/| /' conftest.
$ac_ext >&5
19373 eval "$as_ac_var=no"
19375 rm -f conftest.err conftest.
$ac_objext \
19376 conftest
$ac_exeext conftest.
$ac_ext
19378 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19379 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19380 if test `eval echo '${'$as_ac_var'}'` = yes; then
19381 cat >>confdefs.h
<<_ACEOF
19382 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19388 if test $ac_cv_func_gettimeofday = yes; then
19389 echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
19390 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6
19391 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
19392 echo $ECHO_N "(cached) $ECHO_C" >&6
19394 cat >conftest.
$ac_ext <<_ACEOF
19397 cat confdefs.h
>>conftest.
$ac_ext
19398 cat >>conftest.
$ac_ext <<_ACEOF
19399 /* end confdefs.h. */
19401 #ifdef TIME_WITH_SYS_TIME
19402 #include <sys/time.h>
19405 #ifdef HAVE_SYS_TIME_H
19406 #include <sys/time.h>
19414 struct timeval time;
19415 gettimeofday (&time, 0);
19420 rm -f conftest.
$ac_objext
19421 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19422 (eval $ac_compile) 2>conftest.er1
19424 grep -v '^ *+' conftest.er1
>conftest.err
19426 cat conftest.err
>&5
19427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19428 (exit $ac_status); } &&
19429 { ac_try
='test -z "$ac_c_werror_flag"
19430 || test ! -s conftest.err'
19431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19432 (eval $ac_try) 2>&5
19434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19435 (exit $ac_status); }; } &&
19436 { ac_try
='test -s conftest.$ac_objext'
19437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19438 (eval $ac_try) 2>&5
19440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19441 (exit $ac_status); }; }; then
19442 emacs_cv_gettimeofday_two_arguments
=yes
19444 echo "$as_me: failed program was:" >&5
19445 sed 's/^/| /' conftest.
$ac_ext >&5
19447 emacs_cv_gettimeofday_two_arguments
=no
19449 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19451 echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
19452 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6
19453 if test $emacs_cv_gettimeofday_two_arguments = no
; then
19455 cat >>confdefs.h
<<\_ACEOF
19456 #define GETTIMEOFDAY_ONE_ARGUMENT 1
19463 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
19464 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
19465 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
19466 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
19467 echo $ECHO_N "(cached) $ECHO_C" >&6
19469 cat >conftest.
$ac_ext <<_ACEOF
19472 cat confdefs.h
>>conftest.
$ac_ext
19473 cat >>conftest.
$ac_ext <<_ACEOF
19474 /* end confdefs.h. */
19475 #include <sys/types.h>
19476 #include <$ac_cv_struct_tm>
19482 static struct tm ac_aggr;
19483 if (ac_aggr.tm_zone)
19489 rm -f conftest.
$ac_objext
19490 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19491 (eval $ac_compile) 2>conftest.er1
19493 grep -v '^ *+' conftest.er1
>conftest.err
19495 cat conftest.err
>&5
19496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19497 (exit $ac_status); } &&
19498 { ac_try
='test -z "$ac_c_werror_flag"
19499 || test ! -s conftest.err'
19500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19501 (eval $ac_try) 2>&5
19503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19504 (exit $ac_status); }; } &&
19505 { ac_try
='test -s conftest.$ac_objext'
19506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19507 (eval $ac_try) 2>&5
19509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19510 (exit $ac_status); }; }; then
19511 ac_cv_member_struct_tm_tm_zone
=yes
19513 echo "$as_me: failed program was:" >&5
19514 sed 's/^/| /' conftest.
$ac_ext >&5
19516 cat >conftest.
$ac_ext <<_ACEOF
19519 cat confdefs.h
>>conftest.
$ac_ext
19520 cat >>conftest.
$ac_ext <<_ACEOF
19521 /* end confdefs.h. */
19522 #include <sys/types.h>
19523 #include <$ac_cv_struct_tm>
19529 static struct tm ac_aggr;
19530 if (sizeof ac_aggr.tm_zone)
19536 rm -f conftest.
$ac_objext
19537 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19538 (eval $ac_compile) 2>conftest.er1
19540 grep -v '^ *+' conftest.er1
>conftest.err
19542 cat conftest.err
>&5
19543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19544 (exit $ac_status); } &&
19545 { ac_try
='test -z "$ac_c_werror_flag"
19546 || test ! -s conftest.err'
19547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19548 (eval $ac_try) 2>&5
19550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19551 (exit $ac_status); }; } &&
19552 { ac_try
='test -s conftest.$ac_objext'
19553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19554 (eval $ac_try) 2>&5
19556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19557 (exit $ac_status); }; }; then
19558 ac_cv_member_struct_tm_tm_zone
=yes
19560 echo "$as_me: failed program was:" >&5
19561 sed 's/^/| /' conftest.
$ac_ext >&5
19563 ac_cv_member_struct_tm_tm_zone
=no
19565 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19567 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19569 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
19570 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
19571 if test $ac_cv_member_struct_tm_tm_zone = yes; then
19573 cat >>confdefs.h
<<_ACEOF
19574 #define HAVE_STRUCT_TM_TM_ZONE 1
19580 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
19582 cat >>confdefs.h
<<\_ACEOF
19583 #define HAVE_TM_ZONE 1
19587 echo "$as_me:$LINENO: checking for tzname" >&5
19588 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
19589 if test "${ac_cv_var_tzname+set}" = set; then
19590 echo $ECHO_N "(cached) $ECHO_C" >&6
19592 cat >conftest.
$ac_ext <<_ACEOF
19595 cat confdefs.h
>>conftest.
$ac_ext
19596 cat >>conftest.
$ac_ext <<_ACEOF
19597 /* end confdefs.h. */
19599 #ifndef tzname /* For SGI. */
19600 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
19611 rm -f conftest.
$ac_objext conftest
$ac_exeext
19612 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19613 (eval $ac_link) 2>conftest.er1
19615 grep -v '^ *+' conftest.er1
>conftest.err
19617 cat conftest.err
>&5
19618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19619 (exit $ac_status); } &&
19620 { ac_try
='test -z "$ac_c_werror_flag"
19621 || test ! -s conftest.err'
19622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19623 (eval $ac_try) 2>&5
19625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19626 (exit $ac_status); }; } &&
19627 { ac_try
='test -s conftest$ac_exeext'
19628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19629 (eval $ac_try) 2>&5
19631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19632 (exit $ac_status); }; }; then
19633 ac_cv_var_tzname
=yes
19635 echo "$as_me: failed program was:" >&5
19636 sed 's/^/| /' conftest.
$ac_ext >&5
19638 ac_cv_var_tzname
=no
19640 rm -f conftest.err conftest.
$ac_objext \
19641 conftest
$ac_exeext conftest.
$ac_ext
19643 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
19644 echo "${ECHO_T}$ac_cv_var_tzname" >&6
19645 if test $ac_cv_var_tzname = yes; then
19647 cat >>confdefs.h
<<\_ACEOF
19648 #define HAVE_TZNAME 1
19655 if test "$ac_cv_func_gettimeofday" = yes; then
19656 echo "$as_me:$LINENO: checking for struct timezone" >&5
19657 echo $ECHO_N "checking for struct timezone... $ECHO_C" >&6
19658 if test "${emacs_cv_struct_timezone+set}" = set; then
19659 echo $ECHO_N "(cached) $ECHO_C" >&6
19661 cat >conftest.
$ac_ext <<_ACEOF
19664 cat confdefs.h
>>conftest.
$ac_ext
19665 cat >>conftest.
$ac_ext <<_ACEOF
19666 /* end confdefs.h. */
19667 #include <sys/time.h>
19671 struct timezone tz;
19676 rm -f conftest.
$ac_objext
19677 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19678 (eval $ac_compile) 2>conftest.er1
19680 grep -v '^ *+' conftest.er1
>conftest.err
19682 cat conftest.err
>&5
19683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19684 (exit $ac_status); } &&
19685 { ac_try
='test -z "$ac_c_werror_flag"
19686 || test ! -s conftest.err'
19687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19688 (eval $ac_try) 2>&5
19690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19691 (exit $ac_status); }; } &&
19692 { ac_try
='test -s conftest.$ac_objext'
19693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19694 (eval $ac_try) 2>&5
19696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19697 (exit $ac_status); }; }; then
19698 if test "$cross_compiling" = yes; then
19699 emacs_cv_struct_timezone
=yes
19701 cat >conftest.
$ac_ext <<_ACEOF
19704 cat confdefs.h
>>conftest.
$ac_ext
19705 cat >>conftest.
$ac_ext <<_ACEOF
19706 /* end confdefs.h. */
19708 #ifdef TIME_WITH_SYS_TIME
19709 #include <sys/time.h>
19712 #ifdef HAVE_SYS_TIME_H
19713 #include <sys/time.h>
19719 struct timeval time;
19720 struct timezone dummy;
19721 exit (gettimeofday (&time, &dummy));
19724 rm -f conftest
$ac_exeext
19725 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19726 (eval $ac_link) 2>&5
19728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19729 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
19730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19731 (eval $ac_try) 2>&5
19733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19734 (exit $ac_status); }; }; then
19735 emacs_cv_struct_timezone
=yes
19737 echo "$as_me: program exited with status $ac_status" >&5
19738 echo "$as_me: failed program was:" >&5
19739 sed 's/^/| /' conftest.
$ac_ext >&5
19741 ( exit $ac_status )
19742 emacs_cv_struct_timezone
=no
19744 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
19747 echo "$as_me: failed program was:" >&5
19748 sed 's/^/| /' conftest.
$ac_ext >&5
19750 emacs_cv_struct_timezone
=no
19752 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19754 echo "$as_me:$LINENO: result: $emacs_cv_struct_timezone" >&5
19755 echo "${ECHO_T}$emacs_cv_struct_timezone" >&6
19759 echo "$as_me:$LINENO: checking for socket" >&5
19760 echo $ECHO_N "checking for socket... $ECHO_C" >&6
19761 if test "${ac_cv_func_socket+set}" = set; then
19762 echo $ECHO_N "(cached) $ECHO_C" >&6
19764 cat >conftest.
$ac_ext <<_ACEOF
19767 cat confdefs.h
>>conftest.
$ac_ext
19768 cat >>conftest.
$ac_ext <<_ACEOF
19769 /* end confdefs.h. */
19770 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
19771 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19772 #define socket innocuous_socket
19774 /* System header to define __stub macros and hopefully few prototypes,
19775 which can conflict with char socket (); below.
19776 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19777 <limits.h> exists even on freestanding compilers. */
19780 # include <limits.h>
19782 # include <assert.h>
19787 /* Override any gcc2 internal prototype to avoid an error. */
19792 /* We use char because int might match the return type of a gcc2
19793 builtin and then its argument prototype would still apply. */
19795 /* The GNU C library defines this for functions which it implements
19796 to always fail with ENOSYS. Some functions are actually named
19797 something starting with __ and the normal name is an alias. */
19798 #if defined (__stub_socket) || defined (__stub___socket)
19801 char (*f) () = socket;
19810 return f != socket;
19815 rm -f conftest.
$ac_objext conftest
$ac_exeext
19816 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19817 (eval $ac_link) 2>conftest.er1
19819 grep -v '^ *+' conftest.er1
>conftest.err
19821 cat conftest.err
>&5
19822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19823 (exit $ac_status); } &&
19824 { ac_try
='test -z "$ac_c_werror_flag"
19825 || test ! -s conftest.err'
19826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19827 (eval $ac_try) 2>&5
19829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19830 (exit $ac_status); }; } &&
19831 { ac_try
='test -s conftest$ac_exeext'
19832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19833 (eval $ac_try) 2>&5
19835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19836 (exit $ac_status); }; }; then
19837 ac_cv_func_socket
=yes
19839 echo "$as_me: failed program was:" >&5
19840 sed 's/^/| /' conftest.
$ac_ext >&5
19842 ac_cv_func_socket
=no
19844 rm -f conftest.err conftest.
$ac_objext \
19845 conftest
$ac_exeext conftest.
$ac_ext
19847 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
19848 echo "${ECHO_T}$ac_cv_func_socket" >&6
19849 if test $ac_cv_func_socket = yes; then
19855 if test $ok_so_far = yes; then
19856 if test "${ac_cv_header_netinet_in_h+set}" = set; then
19857 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
19858 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
19859 if test "${ac_cv_header_netinet_in_h+set}" = set; then
19860 echo $ECHO_N "(cached) $ECHO_C" >&6
19862 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
19863 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
19865 # Is the header compilable?
19866 echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
19867 echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6
19868 cat >conftest.
$ac_ext <<_ACEOF
19871 cat confdefs.h
>>conftest.
$ac_ext
19872 cat >>conftest.
$ac_ext <<_ACEOF
19873 /* end confdefs.h. */
19874 $ac_includes_default
19875 #include <netinet/in.h>
19877 rm -f conftest.
$ac_objext
19878 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19879 (eval $ac_compile) 2>conftest.er1
19881 grep -v '^ *+' conftest.er1
>conftest.err
19883 cat conftest.err
>&5
19884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19885 (exit $ac_status); } &&
19886 { ac_try
='test -z "$ac_c_werror_flag"
19887 || test ! -s conftest.err'
19888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19889 (eval $ac_try) 2>&5
19891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19892 (exit $ac_status); }; } &&
19893 { ac_try
='test -s conftest.$ac_objext'
19894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19895 (eval $ac_try) 2>&5
19897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19898 (exit $ac_status); }; }; then
19899 ac_header_compiler
=yes
19901 echo "$as_me: failed program was:" >&5
19902 sed 's/^/| /' conftest.
$ac_ext >&5
19904 ac_header_compiler
=no
19906 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19907 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19908 echo "${ECHO_T}$ac_header_compiler" >&6
19910 # Is the header present?
19911 echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
19912 echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6
19913 cat >conftest.
$ac_ext <<_ACEOF
19916 cat confdefs.h
>>conftest.
$ac_ext
19917 cat >>conftest.
$ac_ext <<_ACEOF
19918 /* end confdefs.h. */
19919 #include <netinet/in.h>
19921 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19922 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
19924 grep -v '^ *+' conftest.er1
>conftest.err
19926 cat conftest.err
>&5
19927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19928 (exit $ac_status); } >/dev
/null
; then
19929 if test -s conftest.err
; then
19930 ac_cpp_err
=$ac_c_preproc_warn_flag
19931 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
19938 if test -z "$ac_cpp_err"; then
19939 ac_header_preproc
=yes
19941 echo "$as_me: failed program was:" >&5
19942 sed 's/^/| /' conftest.
$ac_ext >&5
19944 ac_header_preproc
=no
19946 rm -f conftest.err conftest.
$ac_ext
19947 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19948 echo "${ECHO_T}$ac_header_preproc" >&6
19950 # So? What about this header?
19951 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19953 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
19954 echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19955 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
19956 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
19957 ac_header_preproc
=yes
19960 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
19961 echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
19962 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
19963 echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
19964 { echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
19965 echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
19966 { echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
19967 echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
19968 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
19969 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
19970 { echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
19971 echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
19974 ## ------------------------------------------ ##
19975 ## Report this to the AC_PACKAGE_NAME lists. ##
19976 ## ------------------------------------------ ##
19979 sed "s/^/$as_me: WARNING: /" >&2
19982 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
19983 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
19984 if test "${ac_cv_header_netinet_in_h+set}" = set; then
19985 echo $ECHO_N "(cached) $ECHO_C" >&6
19987 ac_cv_header_netinet_in_h
=$ac_header_preproc
19989 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
19990 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
19993 if test $ac_cv_header_netinet_in_h = yes; then
20001 if test $ok_so_far = yes; then
20002 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
20003 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
20004 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
20005 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
20006 echo $ECHO_N "(cached) $ECHO_C" >&6
20008 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
20009 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
20011 # Is the header compilable?
20012 echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
20013 echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6
20014 cat >conftest.
$ac_ext <<_ACEOF
20017 cat confdefs.h
>>conftest.
$ac_ext
20018 cat >>conftest.
$ac_ext <<_ACEOF
20019 /* end confdefs.h. */
20020 $ac_includes_default
20021 #include <arpa/inet.h>
20023 rm -f conftest.
$ac_objext
20024 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20025 (eval $ac_compile) 2>conftest.er1
20027 grep -v '^ *+' conftest.er1
>conftest.err
20029 cat conftest.err
>&5
20030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20031 (exit $ac_status); } &&
20032 { ac_try
='test -z "$ac_c_werror_flag"
20033 || test ! -s conftest.err'
20034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20035 (eval $ac_try) 2>&5
20037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20038 (exit $ac_status); }; } &&
20039 { ac_try
='test -s conftest.$ac_objext'
20040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20041 (eval $ac_try) 2>&5
20043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20044 (exit $ac_status); }; }; then
20045 ac_header_compiler
=yes
20047 echo "$as_me: failed program was:" >&5
20048 sed 's/^/| /' conftest.
$ac_ext >&5
20050 ac_header_compiler
=no
20052 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20053 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20054 echo "${ECHO_T}$ac_header_compiler" >&6
20056 # Is the header present?
20057 echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
20058 echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6
20059 cat >conftest.
$ac_ext <<_ACEOF
20062 cat confdefs.h
>>conftest.
$ac_ext
20063 cat >>conftest.
$ac_ext <<_ACEOF
20064 /* end confdefs.h. */
20065 #include <arpa/inet.h>
20067 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20068 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
20070 grep -v '^ *+' conftest.er1
>conftest.err
20072 cat conftest.err
>&5
20073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20074 (exit $ac_status); } >/dev
/null
; then
20075 if test -s conftest.err
; then
20076 ac_cpp_err
=$ac_c_preproc_warn_flag
20077 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
20084 if test -z "$ac_cpp_err"; then
20085 ac_header_preproc
=yes
20087 echo "$as_me: failed program was:" >&5
20088 sed 's/^/| /' conftest.
$ac_ext >&5
20090 ac_header_preproc
=no
20092 rm -f conftest.err conftest.
$ac_ext
20093 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20094 echo "${ECHO_T}$ac_header_preproc" >&6
20096 # So? What about this header?
20097 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20099 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
20100 echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20101 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
20102 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
20103 ac_header_preproc
=yes
20106 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
20107 echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
20108 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
20109 echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
20110 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
20111 echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
20112 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
20113 echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
20114 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
20115 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
20116 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
20117 echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
20120 ## ------------------------------------------ ##
20121 ## Report this to the AC_PACKAGE_NAME lists. ##
20122 ## ------------------------------------------ ##
20125 sed "s/^/$as_me: WARNING: /" >&2
20128 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
20129 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
20130 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
20131 echo $ECHO_N "(cached) $ECHO_C" >&6
20133 ac_cv_header_arpa_inet_h
=$ac_header_preproc
20135 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
20136 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
20139 if test $ac_cv_header_arpa_inet_h = yes; then
20147 if test $ok_so_far = yes; then
20149 cat >>confdefs.h
<<\_ACEOF
20150 #define HAVE_INET_SOCKETS 1
20156 for ac_header
in sys
/ioctl.h
20158 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20159 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20160 echo "$as_me:$LINENO: checking for $ac_header" >&5
20161 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20162 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20163 echo $ECHO_N "(cached) $ECHO_C" >&6
20165 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20166 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20168 # Is the header compilable?
20169 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20170 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20171 cat >conftest.
$ac_ext <<_ACEOF
20174 cat confdefs.h
>>conftest.
$ac_ext
20175 cat >>conftest.
$ac_ext <<_ACEOF
20176 /* end confdefs.h. */
20177 $ac_includes_default
20178 #include <$ac_header>
20180 rm -f conftest.
$ac_objext
20181 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20182 (eval $ac_compile) 2>conftest.er1
20184 grep -v '^ *+' conftest.er1
>conftest.err
20186 cat conftest.err
>&5
20187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20188 (exit $ac_status); } &&
20189 { ac_try
='test -z "$ac_c_werror_flag"
20190 || test ! -s conftest.err'
20191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20192 (eval $ac_try) 2>&5
20194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20195 (exit $ac_status); }; } &&
20196 { ac_try
='test -s conftest.$ac_objext'
20197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20198 (eval $ac_try) 2>&5
20200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20201 (exit $ac_status); }; }; then
20202 ac_header_compiler
=yes
20204 echo "$as_me: failed program was:" >&5
20205 sed 's/^/| /' conftest.
$ac_ext >&5
20207 ac_header_compiler
=no
20209 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20210 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20211 echo "${ECHO_T}$ac_header_compiler" >&6
20213 # Is the header present?
20214 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20215 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20216 cat >conftest.
$ac_ext <<_ACEOF
20219 cat confdefs.h
>>conftest.
$ac_ext
20220 cat >>conftest.
$ac_ext <<_ACEOF
20221 /* end confdefs.h. */
20222 #include <$ac_header>
20224 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20225 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
20227 grep -v '^ *+' conftest.er1
>conftest.err
20229 cat conftest.err
>&5
20230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20231 (exit $ac_status); } >/dev
/null
; then
20232 if test -s conftest.err
; then
20233 ac_cpp_err
=$ac_c_preproc_warn_flag
20234 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
20241 if test -z "$ac_cpp_err"; then
20242 ac_header_preproc
=yes
20244 echo "$as_me: failed program was:" >&5
20245 sed 's/^/| /' conftest.
$ac_ext >&5
20247 ac_header_preproc
=no
20249 rm -f conftest.err conftest.
$ac_ext
20250 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20251 echo "${ECHO_T}$ac_header_preproc" >&6
20253 # So? What about this header?
20254 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20256 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20257 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20258 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20259 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20260 ac_header_preproc
=yes
20263 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20264 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20265 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20266 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20267 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20268 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20269 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20270 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20271 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20272 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20273 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20274 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20277 ## ------------------------------------------ ##
20278 ## Report this to the AC_PACKAGE_NAME lists. ##
20279 ## ------------------------------------------ ##
20282 sed "s/^/$as_me: WARNING: /" >&2
20285 echo "$as_me:$LINENO: checking for $ac_header" >&5
20286 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20287 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20288 echo $ECHO_N "(cached) $ECHO_C" >&6
20290 eval "$as_ac_Header=\$ac_header_preproc"
20292 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20293 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20296 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20297 cat >>confdefs.h
<<_ACEOF
20298 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20306 if test -f /usr
/lpp
/X11
/bin
/smt.exp
; then
20308 cat >>confdefs.h
<<\_ACEOF
20309 #define HAVE_AIX_SMT_EXP 1
20314 echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
20315 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6
20316 if test -d /dev
/pts
&& ls -d /dev
/ptmx
> /dev
/null
2>&1 ; then
20317 echo "$as_me:$LINENO: result: yes" >&5
20318 echo "${ECHO_T}yes" >&6
20320 cat >>confdefs.h
<<\_ACEOF
20321 #define HAVE_DEV_PTMX 1
20325 echo "$as_me:$LINENO: result: no" >&5
20326 echo "${ECHO_T}no" >&6
20329 echo "$as_me:$LINENO: checking for pid_t" >&5
20330 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
20331 if test "${ac_cv_type_pid_t+set}" = set; then
20332 echo $ECHO_N "(cached) $ECHO_C" >&6
20334 cat >conftest.
$ac_ext <<_ACEOF
20337 cat confdefs.h
>>conftest.
$ac_ext
20338 cat >>conftest.
$ac_ext <<_ACEOF
20339 /* end confdefs.h. */
20340 $ac_includes_default
20346 if (sizeof (pid_t))
20352 rm -f conftest.
$ac_objext
20353 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20354 (eval $ac_compile) 2>conftest.er1
20356 grep -v '^ *+' conftest.er1
>conftest.err
20358 cat conftest.err
>&5
20359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20360 (exit $ac_status); } &&
20361 { ac_try
='test -z "$ac_c_werror_flag"
20362 || test ! -s conftest.err'
20363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20364 (eval $ac_try) 2>&5
20366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20367 (exit $ac_status); }; } &&
20368 { ac_try
='test -s conftest.$ac_objext'
20369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20370 (eval $ac_try) 2>&5
20372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20373 (exit $ac_status); }; }; then
20374 ac_cv_type_pid_t
=yes
20376 echo "$as_me: failed program was:" >&5
20377 sed 's/^/| /' conftest.
$ac_ext >&5
20379 ac_cv_type_pid_t
=no
20381 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20383 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
20384 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
20385 if test $ac_cv_type_pid_t = yes; then
20389 cat >>confdefs.h
<<_ACEOF
20397 for ac_header
in unistd.h vfork.h
20399 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20400 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20401 echo "$as_me:$LINENO: checking for $ac_header" >&5
20402 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20403 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20404 echo $ECHO_N "(cached) $ECHO_C" >&6
20406 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20407 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20409 # Is the header compilable?
20410 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20411 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20412 cat >conftest.
$ac_ext <<_ACEOF
20415 cat confdefs.h
>>conftest.
$ac_ext
20416 cat >>conftest.
$ac_ext <<_ACEOF
20417 /* end confdefs.h. */
20418 $ac_includes_default
20419 #include <$ac_header>
20421 rm -f conftest.
$ac_objext
20422 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20423 (eval $ac_compile) 2>conftest.er1
20425 grep -v '^ *+' conftest.er1
>conftest.err
20427 cat conftest.err
>&5
20428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20429 (exit $ac_status); } &&
20430 { ac_try
='test -z "$ac_c_werror_flag"
20431 || test ! -s conftest.err'
20432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20433 (eval $ac_try) 2>&5
20435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20436 (exit $ac_status); }; } &&
20437 { ac_try
='test -s conftest.$ac_objext'
20438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20439 (eval $ac_try) 2>&5
20441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20442 (exit $ac_status); }; }; then
20443 ac_header_compiler
=yes
20445 echo "$as_me: failed program was:" >&5
20446 sed 's/^/| /' conftest.
$ac_ext >&5
20448 ac_header_compiler
=no
20450 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20451 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20452 echo "${ECHO_T}$ac_header_compiler" >&6
20454 # Is the header present?
20455 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20456 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20457 cat >conftest.
$ac_ext <<_ACEOF
20460 cat confdefs.h
>>conftest.
$ac_ext
20461 cat >>conftest.
$ac_ext <<_ACEOF
20462 /* end confdefs.h. */
20463 #include <$ac_header>
20465 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20466 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
20468 grep -v '^ *+' conftest.er1
>conftest.err
20470 cat conftest.err
>&5
20471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20472 (exit $ac_status); } >/dev
/null
; then
20473 if test -s conftest.err
; then
20474 ac_cpp_err
=$ac_c_preproc_warn_flag
20475 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
20482 if test -z "$ac_cpp_err"; then
20483 ac_header_preproc
=yes
20485 echo "$as_me: failed program was:" >&5
20486 sed 's/^/| /' conftest.
$ac_ext >&5
20488 ac_header_preproc
=no
20490 rm -f conftest.err conftest.
$ac_ext
20491 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20492 echo "${ECHO_T}$ac_header_preproc" >&6
20494 # So? What about this header?
20495 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20497 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20498 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20499 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20500 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20501 ac_header_preproc
=yes
20504 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20505 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20506 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20507 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20508 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20509 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20510 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20511 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20512 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20513 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20514 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20515 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20518 ## ------------------------------------------ ##
20519 ## Report this to the AC_PACKAGE_NAME lists. ##
20520 ## ------------------------------------------ ##
20523 sed "s/^/$as_me: WARNING: /" >&2
20526 echo "$as_me:$LINENO: checking for $ac_header" >&5
20527 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20528 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20529 echo $ECHO_N "(cached) $ECHO_C" >&6
20531 eval "$as_ac_Header=\$ac_header_preproc"
20533 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20534 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20537 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20538 cat >>confdefs.h
<<_ACEOF
20539 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20548 for ac_func
in fork vfork
20550 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20551 echo "$as_me:$LINENO: checking for $ac_func" >&5
20552 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20553 if eval "test \"\${$as_ac_var+set}\" = set"; then
20554 echo $ECHO_N "(cached) $ECHO_C" >&6
20556 cat >conftest.
$ac_ext <<_ACEOF
20559 cat confdefs.h
>>conftest.
$ac_ext
20560 cat >>conftest.
$ac_ext <<_ACEOF
20561 /* end confdefs.h. */
20562 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20563 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20564 #define $ac_func innocuous_$ac_func
20566 /* System header to define __stub macros and hopefully few prototypes,
20567 which can conflict with char $ac_func (); below.
20568 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20569 <limits.h> exists even on freestanding compilers. */
20572 # include <limits.h>
20574 # include <assert.h>
20579 /* Override any gcc2 internal prototype to avoid an error. */
20584 /* We use char because int might match the return type of a gcc2
20585 builtin and then its argument prototype would still apply. */
20587 /* The GNU C library defines this for functions which it implements
20588 to always fail with ENOSYS. Some functions are actually named
20589 something starting with __ and the normal name is an alias. */
20590 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20593 char (*f) () = $ac_func;
20602 return f != $ac_func;
20607 rm -f conftest.
$ac_objext conftest
$ac_exeext
20608 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20609 (eval $ac_link) 2>conftest.er1
20611 grep -v '^ *+' conftest.er1
>conftest.err
20613 cat conftest.err
>&5
20614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20615 (exit $ac_status); } &&
20616 { ac_try
='test -z "$ac_c_werror_flag"
20617 || test ! -s conftest.err'
20618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20619 (eval $ac_try) 2>&5
20621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20622 (exit $ac_status); }; } &&
20623 { ac_try
='test -s conftest$ac_exeext'
20624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20625 (eval $ac_try) 2>&5
20627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20628 (exit $ac_status); }; }; then
20629 eval "$as_ac_var=yes"
20631 echo "$as_me: failed program was:" >&5
20632 sed 's/^/| /' conftest.
$ac_ext >&5
20634 eval "$as_ac_var=no"
20636 rm -f conftest.err conftest.
$ac_objext \
20637 conftest
$ac_exeext conftest.
$ac_ext
20639 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20640 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20641 if test `eval echo '${'$as_ac_var'}'` = yes; then
20642 cat >>confdefs.h
<<_ACEOF
20643 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20649 if test "x$ac_cv_func_fork" = xyes
; then
20650 echo "$as_me:$LINENO: checking for working fork" >&5
20651 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
20652 if test "${ac_cv_func_fork_works+set}" = set; then
20653 echo $ECHO_N "(cached) $ECHO_C" >&6
20655 if test "$cross_compiling" = yes; then
20656 ac_cv_func_fork_works
=cross
20658 cat >conftest.
$ac_ext <<_ACEOF
20659 /* By Ruediger Kuhlmann. */
20660 #include <sys/types.h>
20662 # include <unistd.h>
20664 /* Some systems only have a dummy stub for fork() */
20672 rm -f conftest
$ac_exeext
20673 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20674 (eval $ac_link) 2>&5
20676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20677 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
20678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20679 (eval $ac_try) 2>&5
20681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20682 (exit $ac_status); }; }; then
20683 ac_cv_func_fork_works
=yes
20685 echo "$as_me: program exited with status $ac_status" >&5
20686 echo "$as_me: failed program was:" >&5
20687 sed 's/^/| /' conftest.
$ac_ext >&5
20689 ( exit $ac_status )
20690 ac_cv_func_fork_works
=no
20692 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
20695 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
20696 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
20699 ac_cv_func_fork_works
=$ac_cv_func_fork
20701 if test "x$ac_cv_func_fork_works" = xcross
; then
20703 *-*-amigaos* |
*-*-msdosdjgpp*)
20704 # Override, as these systems have only a dummy fork() stub
20705 ac_cv_func_fork_works
=no
20708 ac_cv_func_fork_works
=yes
20711 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
20712 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
20714 ac_cv_func_vfork_works
=$ac_cv_func_vfork
20715 if test "x$ac_cv_func_vfork" = xyes
; then
20716 echo "$as_me:$LINENO: checking for working vfork" >&5
20717 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
20718 if test "${ac_cv_func_vfork_works+set}" = set; then
20719 echo $ECHO_N "(cached) $ECHO_C" >&6
20721 if test "$cross_compiling" = yes; then
20722 ac_cv_func_vfork_works
=cross
20724 cat >conftest.
$ac_ext <<_ACEOF
20727 cat confdefs.h
>>conftest.
$ac_ext
20728 cat >>conftest.
$ac_ext <<_ACEOF
20729 /* end confdefs.h. */
20730 /* Thanks to Paul Eggert for this test. */
20732 #include <stdlib.h>
20733 #include <sys/types.h>
20734 #include <sys/stat.h>
20735 #include <sys/wait.h>
20737 # include <unistd.h>
20740 # include <vfork.h>
20742 /* On some sparc systems, changes by the child to local and incoming
20743 argument registers are propagated back to the parent. The compiler
20744 is told about this with #include <vfork.h>, but some compilers
20745 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
20746 static variable whose address is put into a register that is
20747 clobbered by the vfork. */
20750 sparc_address_test (int arg)
20752 sparc_address_test (arg) int arg;
20755 static pid_t child;
20773 pid_t parent = getpid ();
20776 sparc_address_test (0);
20781 /* Here is another test for sparc vfork register problems. This
20782 test uses lots of local variables, at least as many local
20783 variables as main has allocated so far including compiler
20784 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
20785 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
20786 reuse the register of parent for one of the local variables,
20787 since it will think that parent can't possibly be used any more
20788 in this routine. Assigning to the local variable will thus
20789 munge parent in the parent process. */
20791 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
20792 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
20793 /* Convince the compiler that p..p7 are live; otherwise, it might
20794 use the same hardware register for all 8 local variables. */
20795 if (p != p1 || p != p2 || p != p3 || p != p4
20796 || p != p5 || p != p6 || p != p7)
20799 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
20800 from child file descriptors. If the child closes a descriptor
20801 before it execs or exits, this munges the parent's descriptor
20802 as well. Test for this by closing stdout in the child. */
20803 _exit(close(fileno(stdout)) != 0);
20808 while (wait(&status) != child)
20811 /* Was there some problem with vforking? */
20814 /* Did the child fail? (This shouldn't happen.) */
20817 /* Did the vfork/compiler bug occur? */
20818 || parent != getpid()
20820 /* Did the file descriptor bug occur? */
20821 || fstat(fileno(stdout), &st) != 0
20826 rm -f conftest
$ac_exeext
20827 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20828 (eval $ac_link) 2>&5
20830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20831 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
20832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20833 (eval $ac_try) 2>&5
20835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20836 (exit $ac_status); }; }; then
20837 ac_cv_func_vfork_works
=yes
20839 echo "$as_me: program exited with status $ac_status" >&5
20840 echo "$as_me: failed program was:" >&5
20841 sed 's/^/| /' conftest.
$ac_ext >&5
20843 ( exit $ac_status )
20844 ac_cv_func_vfork_works
=no
20846 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
20849 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
20850 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
20853 if test "x$ac_cv_func_fork_works" = xcross
; then
20854 ac_cv_func_vfork_works
=$ac_cv_func_vfork
20855 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
20856 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
20859 if test "x$ac_cv_func_vfork_works" = xyes
; then
20861 cat >>confdefs.h
<<\_ACEOF
20862 #define HAVE_WORKING_VFORK 1
20867 cat >>confdefs.h
<<\_ACEOF
20872 if test "x$ac_cv_func_fork_works" = xyes
; then
20874 cat >>confdefs.h
<<\_ACEOF
20875 #define HAVE_WORKING_FORK 1
20881 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
20882 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
20883 if test "${emacs_cv_langinfo_codeset+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 #include <langinfo.h>
20896 char* cs = nl_langinfo(CODESET);
20901 rm -f conftest.
$ac_objext conftest
$ac_exeext
20902 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20903 (eval $ac_link) 2>conftest.er1
20905 grep -v '^ *+' conftest.er1
>conftest.err
20907 cat conftest.err
>&5
20908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20909 (exit $ac_status); } &&
20910 { ac_try
='test -z "$ac_c_werror_flag"
20911 || test ! -s conftest.err'
20912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20913 (eval $ac_try) 2>&5
20915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20916 (exit $ac_status); }; } &&
20917 { ac_try
='test -s conftest$ac_exeext'
20918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20919 (eval $ac_try) 2>&5
20921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20922 (exit $ac_status); }; }; then
20923 emacs_cv_langinfo_codeset
=yes
20925 echo "$as_me: failed program was:" >&5
20926 sed 's/^/| /' conftest.
$ac_ext >&5
20928 emacs_cv_langinfo_codeset
=no
20930 rm -f conftest.err conftest.
$ac_objext \
20931 conftest
$ac_exeext conftest.
$ac_ext
20934 echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
20935 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6
20936 if test $emacs_cv_langinfo_codeset = yes; then
20938 cat >>confdefs.h
<<\_ACEOF
20939 #define HAVE_LANGINFO_CODESET 1
20944 echo "$as_me:$LINENO: checking for size_t" >&5
20945 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
20946 if test "${ac_cv_type_size_t+set}" = set; then
20947 echo $ECHO_N "(cached) $ECHO_C" >&6
20949 cat >conftest.
$ac_ext <<_ACEOF
20952 cat confdefs.h
>>conftest.
$ac_ext
20953 cat >>conftest.
$ac_ext <<_ACEOF
20954 /* end confdefs.h. */
20955 $ac_includes_default
20961 if (sizeof (size_t))
20967 rm -f conftest.
$ac_objext
20968 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20969 (eval $ac_compile) 2>conftest.er1
20971 grep -v '^ *+' conftest.er1
>conftest.err
20973 cat conftest.err
>&5
20974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20975 (exit $ac_status); } &&
20976 { ac_try
='test -z "$ac_c_werror_flag"
20977 || test ! -s conftest.err'
20978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20979 (eval $ac_try) 2>&5
20981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20982 (exit $ac_status); }; } &&
20983 { ac_try
='test -s conftest.$ac_objext'
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); }; }; then
20989 ac_cv_type_size_t
=yes
20991 echo "$as_me: failed program was:" >&5
20992 sed 's/^/| /' conftest.
$ac_ext >&5
20994 ac_cv_type_size_t
=no
20996 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20998 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20999 echo "${ECHO_T}$ac_cv_type_size_t" >&6
21000 if test $ac_cv_type_size_t = yes; then
21002 cat >>confdefs.h
<<_ACEOF
21003 #define HAVE_SIZE_T 1
21010 echo "$as_me:$LINENO: checking for mbstate_t" >&5
21011 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
21012 if test "${ac_cv_type_mbstate_t+set}" = set; then
21013 echo $ECHO_N "(cached) $ECHO_C" >&6
21015 cat >conftest.
$ac_ext <<_ACEOF
21018 cat confdefs.h
>>conftest.
$ac_ext
21019 cat >>conftest.
$ac_ext <<_ACEOF
21020 /* end confdefs.h. */
21021 $ac_includes_default
21022 # include <wchar.h>
21026 mbstate_t x; return sizeof x;
21031 rm -f conftest.
$ac_objext
21032 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21033 (eval $ac_compile) 2>conftest.er1
21035 grep -v '^ *+' conftest.er1
>conftest.err
21037 cat conftest.err
>&5
21038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21039 (exit $ac_status); } &&
21040 { ac_try
='test -z "$ac_c_werror_flag"
21041 || test ! -s conftest.err'
21042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21043 (eval $ac_try) 2>&5
21045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21046 (exit $ac_status); }; } &&
21047 { ac_try
='test -s conftest.$ac_objext'
21048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21049 (eval $ac_try) 2>&5
21051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21052 (exit $ac_status); }; }; then
21053 ac_cv_type_mbstate_t
=yes
21055 echo "$as_me: failed program was:" >&5
21056 sed 's/^/| /' conftest.
$ac_ext >&5
21058 ac_cv_type_mbstate_t
=no
21060 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21062 echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
21063 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
21064 if test $ac_cv_type_mbstate_t = yes; then
21066 cat >>confdefs.h
<<\_ACEOF
21067 #define HAVE_MBSTATE_T 1
21072 cat >>confdefs.h
<<\_ACEOF
21073 #define mbstate_t int
21078 echo "$as_me:$LINENO: checking for C restrict keyword" >&5
21079 echo $ECHO_N "checking for C restrict keyword... $ECHO_C" >&6
21080 if test "${emacs_cv_c_restrict+set}" = set; then
21081 echo $ECHO_N "(cached) $ECHO_C" >&6
21083 cat >conftest.
$ac_ext <<_ACEOF
21086 cat confdefs.h
>>conftest.
$ac_ext
21087 cat >>conftest.
$ac_ext <<_ACEOF
21088 /* end confdefs.h. */
21089 void fred (int *restrict x);
21098 rm -f conftest.
$ac_objext
21099 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21100 (eval $ac_compile) 2>conftest.er1
21102 grep -v '^ *+' conftest.er1
>conftest.err
21104 cat conftest.err
>&5
21105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21106 (exit $ac_status); } &&
21107 { ac_try
='test -z "$ac_c_werror_flag"
21108 || test ! -s conftest.err'
21109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21110 (eval $ac_try) 2>&5
21112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21113 (exit $ac_status); }; } &&
21114 { ac_try
='test -s conftest.$ac_objext'
21115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21116 (eval $ac_try) 2>&5
21118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21119 (exit $ac_status); }; }; then
21120 emacs_cv_c_restrict
=yes
21122 echo "$as_me: failed program was:" >&5
21123 sed 's/^/| /' conftest.
$ac_ext >&5
21125 cat >conftest.
$ac_ext <<_ACEOF
21128 cat confdefs.h
>>conftest.
$ac_ext
21129 cat >>conftest.
$ac_ext <<_ACEOF
21130 /* end confdefs.h. */
21131 void fred (int *__restrict x);
21140 rm -f conftest.
$ac_objext
21141 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21142 (eval $ac_compile) 2>conftest.er1
21144 grep -v '^ *+' conftest.er1
>conftest.err
21146 cat conftest.err
>&5
21147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21148 (exit $ac_status); } &&
21149 { ac_try
='test -z "$ac_c_werror_flag"
21150 || test ! -s conftest.err'
21151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21152 (eval $ac_try) 2>&5
21154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21155 (exit $ac_status); }; } &&
21156 { ac_try
='test -s conftest.$ac_objext'
21157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21158 (eval $ac_try) 2>&5
21160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21161 (exit $ac_status); }; }; then
21162 emacs_cv_c_restrict
=__restrict
21164 echo "$as_me: failed program was:" >&5
21165 sed 's/^/| /' conftest.
$ac_ext >&5
21167 emacs_cv_c_restrict
=no
21169 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21171 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21173 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
21174 echo "${ECHO_T}$emacs_cv_c_restrict" >&6
21175 case "$emacs_cv_c_restrict" in
21176 yes) emacs_restrict
=restrict
;;
21177 no
) emacs_restrict
="";;
21178 *) emacs_restrict
="$emacs_cv_c_restrict";;
21180 if test "$emacs_restrict" != __restrict
; then
21182 cat >>confdefs.h
<<_ACEOF
21183 #define __restrict $emacs_restrict
21188 echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
21189 echo $ECHO_N "checking for C restricted array declarations... $ECHO_C" >&6
21190 if test "${emacs_cv_c_restrict_arr+set}" = set; then
21191 echo $ECHO_N "(cached) $ECHO_C" >&6
21193 cat >conftest.
$ac_ext <<_ACEOF
21196 cat confdefs.h
>>conftest.
$ac_ext
21197 cat >>conftest.
$ac_ext <<_ACEOF
21198 /* end confdefs.h. */
21199 void fred (int x[__restrict]);
21208 rm -f conftest.
$ac_objext
21209 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21210 (eval $ac_compile) 2>conftest.er1
21212 grep -v '^ *+' conftest.er1
>conftest.err
21214 cat conftest.err
>&5
21215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21216 (exit $ac_status); } &&
21217 { ac_try
='test -z "$ac_c_werror_flag"
21218 || test ! -s conftest.err'
21219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21220 (eval $ac_try) 2>&5
21222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21223 (exit $ac_status); }; } &&
21224 { ac_try
='test -s conftest.$ac_objext'
21225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21226 (eval $ac_try) 2>&5
21228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21229 (exit $ac_status); }; }; then
21230 emacs_cv_c_restrict_arr
=yes
21232 echo "$as_me: failed program was:" >&5
21233 sed 's/^/| /' conftest.
$ac_ext >&5
21235 emacs_cv_c_restrict_arr
=no
21237 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21239 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
21240 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6
21241 if test "$emacs_cv_c_restrict_arr" = yes; then
21243 cat >>confdefs.h
<<\_ACEOF
21244 #define __restrict_arr __restrict
21251 # Set up the CFLAGS for real compilation, so we can substitute it.
21252 CFLAGS
="$REAL_CFLAGS"
21253 CPPFLAGS
="$REAL_CPPFLAGS"
21255 #### Find out which version of Emacs this is.
21256 version
=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
21257 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
21258 if test x
"${version}" = x
; then
21259 { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
21260 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
21261 { (exit 1); exit 1; }; }
21264 ### Specify what sort of things we'll be editing into Makefile and config.h.
21265 ### Use configuration here uncanonicalized to avoid exceeding size limits.
21301 cat >>confdefs.h
<<_ACEOF
21302 #define EMACS_CONFIGURATION "${canonical}"
21306 cat >>confdefs.h
<<_ACEOF
21307 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
21311 cat >>confdefs.h
<<_ACEOF
21312 #define config_machfile "${machfile}"
21316 cat >>confdefs.h
<<_ACEOF
21317 #define config_opsysfile "${opsysfile}"
21321 cat >>confdefs.h
<<_ACEOF
21322 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
21326 cat >>confdefs.h
<<_ACEOF
21327 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
21331 cat >>confdefs.h
<<_ACEOF
21332 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
21336 cat >>confdefs.h
<<_ACEOF
21337 #define UNEXEC_SRC ${UNEXEC_SRC}
21341 if test "${HAVE_X_WINDOWS}" = "yes" ; then
21343 cat >>confdefs.h
<<\_ACEOF
21344 #define HAVE_X_WINDOWS 1
21348 if test "${USE_X_TOOLKIT}" != "none" ; then
21350 cat >>confdefs.h
<<\_ACEOF
21351 #define USE_X_TOOLKIT 1
21355 if test "${HAVE_X11}" = "yes" ; then
21357 cat >>confdefs.h
<<\_ACEOF
21362 if test "${HAVE_XFREE386}" = "yes" ; then
21364 cat >>confdefs.h
<<\_ACEOF
21365 #define HAVE_XFREE386 1
21369 if test "${HAVE_MENUS}" = "yes" ; then
21371 cat >>confdefs.h
<<\_ACEOF
21372 #define HAVE_MENUS 1
21376 if test "${GNU_MALLOC}" = "yes" ; then
21378 cat >>confdefs.h
<<\_ACEOF
21379 #define GNU_MALLOC 1
21383 if test "${REL_ALLOC}" = "yes" ; then
21385 cat >>confdefs.h
<<\_ACEOF
21386 #define REL_ALLOC 1
21395 #### Report on what we decided to do.
21396 #### Report GTK as a toolkit, even if it doesn't use Xt.
21397 #### It makes printing result more understandable as using GTK sets
21398 #### toolkit_scroll_bars to yes by default.
21399 if test "${HAVE_GTK}" = "yes"; then
21404 Configured for \`${canonical}'.
21406 Where should the build process find the source code? ${srcdir}
21407 What operating system and machine description files should Emacs use?
21408 \`${opsysfile}' and \`${machfile}'
21409 What compiler should emacs be built with? ${CC} ${CFLAGS}
21410 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
21411 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
21412 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
21413 What window system should Emacs use? ${window_system}
21414 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
21416 if test -n "${x_includes}"; then
21417 echo " Where do we find X Windows header files? ${x_includes}"
21419 echo " Where do we find X Windows header files? Standard dirs"
21421 if test -n "${x_libraries}"; then
21422 echo " Where do we find X Windows libraries? ${x_libraries}"
21424 echo " Where do we find X Windows libraries? Standard dirs"
21427 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
21428 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
21429 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
21430 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
21431 echo " Does Emacs use -lungif? ${HAVE_GIF}"
21432 echo " Does Emacs use -lpng? ${HAVE_PNG}"
21433 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
21436 if test "$emacs_cv_randomheap" = warn
; then
21437 { echo "$as_me:$LINENO: WARNING:
21438 **********************************************************************
21440 Heap start address is randomized and no workaround is known.
21441 Emacs will probably dump core when temacs is run in the build phase.
21442 Maybe exec-shield is turned on. Read about exec-shield in \`etc/PROBLEMS'
21443 for further information.
21445 **********************************************************************
21447 echo "$as_me: WARNING:
21448 **********************************************************************
21450 Heap start address is randomized and no workaround is known.
21451 Emacs will probably dump core when temacs is run in the build phase.
21452 Maybe exec-shield is turned on. Read about exec-shield in \`etc/PROBLEMS'
21453 for further information.
21455 **********************************************************************
21459 # Remove any trailing slashes in these variables.
21460 test "${prefix}" != NONE
&&
21461 prefix
=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
21462 test "${exec_prefix}" != NONE
&&
21463 exec_prefix
=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
21465 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
21466 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
21467 ## from Makefile.c can correctly provide the arg `-traditional' to the
21470 cat >conftest.
$ac_ext <<_ACEOF
21473 cat confdefs.h
>>conftest.
$ac_ext
21474 cat >>conftest.
$ac_ext <<_ACEOF
21475 /* end confdefs.h. */
21478 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21479 $EGREP "yes..yes" >/dev
/null
2>&1; then
21480 CPP_NEED_TRADITIONAL
=no
21482 CPP_NEED_TRADITIONAL
=yes
21487 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"
21488 ac_config_commands
="$ac_config_commands default"
21489 cat >confcache
<<\_ACEOF
21490 # This file is a shell script that caches the results of configure
21491 # tests run on this system so they can be shared between configure
21492 # scripts and configure runs, see configure's option --config-cache.
21493 # It is not useful on other systems. If it contains results you don't
21494 # want to keep, you may remove or edit it.
21496 # config.status only pays attention to the cache file if you give it
21497 # the --recheck option to rerun configure.
21499 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21500 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21501 # following values.
21505 # The following way of writing the cache mishandles newlines in values,
21506 # but we know of no workaround that is simple, portable, and efficient.
21507 # So, don't put newlines in cache variables' values.
21508 # Ultrix sh set writes to stderr and can't be redirected directly,
21509 # and sets the high bit in the cache file unless we assign to the vars.
21512 case `(ac_space=' '; set | grep ac_space) 2>&1` in
21514 # `set' does not quote correctly, so add quotes (double-quote
21515 # substitution turns \\\\ into \\, and sed turns \\ into \).
21518 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21521 # `set' quotes correctly as required by POSIX, so do not add quotes.
21523 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
21530 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21532 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21534 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
21535 if test -w $cache_file; then
21536 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
21537 cat confcache
>$cache_file
21539 echo "not updating unwritable cache $cache_file"
21544 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
21545 # Let make expand exec_prefix.
21546 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
21548 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21549 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21550 # trailing colons and then remove the whole line if VPATH becomes empty
21551 # (actually we leave an empty line to preserve line numbers).
21552 if test "x$srcdir" = x.
; then
21553 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
21554 s/:*\$(srcdir):*/:/;
21555 s/:*\${srcdir}:*/:/;
21557 s/^\([^=]*=[ ]*\):*/\1/;
21563 DEFS
=-DHAVE_CONFIG_H
21567 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
21568 # 1. Remove the extension, and $U if already installed.
21569 ac_i
=`echo "$ac_i" |
21570 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
21572 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
21573 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
21575 LIBOBJS
=$ac_libobjs
21577 LTLIBOBJS
=$ac_ltlibobjs
21581 : ${CONFIG_STATUS=./config.status}
21582 ac_clean_files_save
=$ac_clean_files
21583 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
21584 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21585 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21586 cat >$CONFIG_STATUS <<_ACEOF
21588 # Generated by $as_me.
21589 # Run this file to recreate the current configuration.
21590 # Compiler output produced by configure, useful for debugging
21591 # configure, is in config.log if it exists.
21594 ac_cs_recheck=false
21596 SHELL=\${CONFIG_SHELL-$SHELL}
21599 cat >>$CONFIG_STATUS <<\_ACEOF
21600 ## --------------------- ##
21601 ## M4sh Initialization. ##
21602 ## --------------------- ##
21604 # Be Bourne compatible
21605 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
21608 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21609 # is contrary to our usage. Disable this feature.
21610 alias -g '${1+"$@"}'='"$@"'
21611 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
21614 DUALCASE
=1; export DUALCASE
# for MKS sh
21616 # Support unset when possible.
21617 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
21624 # Work around bugs in pre-3.0 UWIN ksh.
21625 $as_unset ENV MAIL MAILPATH
21632 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21633 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21634 LC_TELEPHONE LC_TIME
21636 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21637 eval $as_var=C
; export $as_var
21643 # Required to use basename.
21644 if expr a
: '\(a\)' >/dev
/null
2>&1; then
21650 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
21651 as_basename
=basename
21657 # Name of the executable.
21658 as_me
=`$as_basename "$0" ||
21659 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21660 X"$0" : 'X\(//\)$' \| \
21661 X"$0" : 'X\(/\)$' \| \
21662 . : '\(.\)' 2>/dev/null ||
21664 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
21665 /^X\/\(\/\/\)$/{ s//\1/; q; }
21666 /^X\/\(\/\).*/{ s//\1/; q; }
21670 # PATH needs CR, and LINENO needs CR and PATH.
21671 # Avoid depending upon Character Ranges.
21672 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
21673 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21674 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
21675 as_cr_digits
='0123456789'
21676 as_cr_alnum
=$as_cr_Letters$as_cr_digits
21678 # The user is always right.
21679 if test "${PATH_SEPARATOR+set}" != set; then
21680 echo "#! /bin/sh" >conf$$.sh
21681 echo "exit 0" >>conf$$.sh
21683 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
21692 as_lineno_1
=$LINENO
21693 as_lineno_2
=$LINENO
21694 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
21695 test "x$as_lineno_1" != "x$as_lineno_2" &&
21696 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
21697 # Find who we are. Look in the path if we contain no path at all
21700 *[\\/]* ) as_myself
=$0 ;;
21701 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21702 for as_dir
in $PATH
21705 test -z "$as_dir" && as_dir
=.
21706 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
21711 # We did not find ourselves, most probably we were run as `sh COMMAND'
21712 # in which case we are not to be found in the path.
21713 if test "x$as_myself" = x
; then
21716 if test ! -f "$as_myself"; then
21717 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
21718 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
21719 { (exit 1); exit 1; }; }
21721 case $CONFIG_SHELL in
21723 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21724 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
21727 test -z "$as_dir" && as_dir
=.
21728 for as_base
in sh bash ksh sh5
; do
21731 if ("$as_dir/$as_base" -c '
21732 as_lineno_1=$LINENO
21733 as_lineno_2=$LINENO
21734 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21735 test "x$as_lineno_1" != "x$as_lineno_2" &&
21736 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
21737 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
21738 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
21739 CONFIG_SHELL
=$as_dir/$as_base
21740 export CONFIG_SHELL
21741 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
21749 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21750 # uniformly replaced by the line number. The first 'sed' inserts a
21751 # line-number line before each line; the second 'sed' does the real
21752 # work. The second script uses 'N' to pair each line-number line
21753 # with the numbered line, and appends trailing '-' during
21754 # substitution so that $LINENO is not a special case at line end.
21755 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21756 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
21757 sed '=' <$as_myself |
21762 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
21765 s,^['$as_cr_digits']*\n,,
21766 ' >$as_me.lineno
&&
21767 chmod +x
$as_me.lineno ||
21768 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
21769 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
21770 { (exit 1); exit 1; }; }
21772 # Don't try to exec as it changes $[0], causing all sort of problems
21773 # (the dirname of $[0] is not the place where we might find the
21774 # original and so on. Autoconf is especially sensible to this).
21776 # Exit status is that of the last command.
21781 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
21782 *c
*,-n*) ECHO_N
= ECHO_C
='
21784 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
21785 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
21788 if expr a
: '\(a\)' >/dev
/null
2>&1; then
21794 rm -f conf$$ conf$$.exe conf$$.
file
21796 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
21797 # We could just check for DJGPP; but this test a) works b) is more generic
21798 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
21799 if test -f conf$$.exe
; then
21800 # Don't use ln at all; we don't have any links
21805 elif ln conf$$.
file conf$$
2>/dev
/null
; then
21810 rm -f conf$$ conf$$.exe conf$$.
file
21812 if mkdir
-p .
2>/dev
/null
; then
21815 test -d .
/-p && rmdir .
/-p
21819 as_executable_p
="test -f"
21821 # Sed expression to map a string onto a valid CPP name.
21822 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21824 # Sed expression to map a string onto a valid variable name.
21825 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21829 # We need space, tab and new line, in precisely that order.
21839 # Open the log real soon, to keep \$[0] and so on meaningful, and to
21840 # report actual input values of CONFIG_FILES etc. instead of their
21841 # values after options handling. Logging --version etc. is OK.
21845 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21846 ## Running $as_me. ##
21851 This file was extended by $as_me, which was
21852 generated by GNU Autoconf 2.59. Invocation command line was
21854 CONFIG_FILES = $CONFIG_FILES
21855 CONFIG_HEADERS = $CONFIG_HEADERS
21856 CONFIG_LINKS = $CONFIG_LINKS
21857 CONFIG_COMMANDS = $CONFIG_COMMANDS
21861 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
21865 # Files that config.status was made for.
21866 if test -n "$ac_config_files"; then
21867 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
21870 if test -n "$ac_config_headers"; then
21871 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
21874 if test -n "$ac_config_links"; then
21875 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
21878 if test -n "$ac_config_commands"; then
21879 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
21882 cat >>$CONFIG_STATUS <<\_ACEOF
21885 \`$as_me' instantiates files from templates according to the
21886 current configuration.
21888 Usage: $0 [OPTIONS] [FILE]...
21890 -h, --help print this help, then exit
21891 -V, --version print version number, then exit
21892 -q, --quiet do not print progress messages
21893 -d, --debug don't remove temporary files
21894 --recheck update $as_me by reconfiguring in the same conditions
21895 --file=FILE[:TEMPLATE]
21896 instantiate the configuration file FILE
21897 --header=FILE[:TEMPLATE]
21898 instantiate the configuration header FILE
21900 Configuration files:
21903 Configuration headers:
21906 Configuration commands:
21909 Report bugs to <bug-autoconf@gnu.org>."
21912 cat >>$CONFIG_STATUS <<_ACEOF
21915 configured by $0, generated by GNU Autoconf 2.59,
21916 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
21918 Copyright (C) 2003 Free Software Foundation, Inc.
21919 This config.status script is free software; the Free Software Foundation
21920 gives unlimited permission to copy, distribute and modify it."
21925 cat >>$CONFIG_STATUS <<\_ACEOF
21926 # If no file are specified by the user, then we need to provide default
21927 # value. By we need to know if files were specified by the user.
21933 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
21934 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
21942 *) # This is not an option, so the user has probably given explicit
21945 ac_need_defaults
=false
;;
21949 # Handling of the options.
21951 cat >>$CONFIG_STATUS <<\_ACEOF
21952 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
21954 --version |
--vers* |
-V )
21955 echo "$ac_cs_version"; exit 0 ;;
21957 # Conflict between --help and --header
21958 { { echo "$as_me:$LINENO: error: ambiguous option: $1
21959 Try \`$0 --help' for more information." >&5
21960 echo "$as_me: error: ambiguous option: $1
21961 Try \`$0 --help' for more information." >&2;}
21962 { (exit 1); exit 1; }; };;
21963 --help |
--hel |
-h )
21964 echo "$ac_cs_usage"; exit 0 ;;
21965 --debug |
--d* |
-d )
21967 --file |
--fil |
--fi |
--f )
21969 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
21970 ac_need_defaults
=false
;;
21971 --header |
--heade |
--head |
--hea )
21973 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
21974 ac_need_defaults
=false
;;
21975 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
21976 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
21979 # This is an error.
21980 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
21981 Try \`$0 --help' for more information." >&5
21982 echo "$as_me: error: unrecognized option: $1
21983 Try \`$0 --help' for more information." >&2;}
21984 { (exit 1); exit 1; }; } ;;
21986 *) ac_config_targets
="$ac_config_targets $1" ;;
21992 ac_configure_extra_args
=
21994 if $ac_cs_silent; then
21996 ac_configure_extra_args
="$ac_configure_extra_args --silent"
22000 cat >>$CONFIG_STATUS <<_ACEOF
22001 if \$ac_cs_recheck; then
22002 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22003 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22008 cat >>$CONFIG_STATUS <<_ACEOF
22010 # INIT-COMMANDS section.
22013 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
22019 cat >>$CONFIG_STATUS <<\_ACEOF
22020 for ac_config_target
in $ac_config_targets
22022 case "$ac_config_target" in
22023 # Handling of arguments.
22024 "Makefile" ) CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
22025 "lib-src/Makefile.c" ) CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
22026 "oldXMenu/Makefile" ) CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
22027 "man/Makefile" ) CONFIG_FILES
="$CONFIG_FILES man/Makefile" ;;
22028 "lwlib/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
22029 "src/Makefile.c" ) CONFIG_FILES
="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
22030 "lisp/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
22031 "lispref/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lispref/Makefile" ;;
22032 "lispintro/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lispintro/Makefile" ;;
22033 "leim/Makefile" ) CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
22034 "default" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
22035 "src/config.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
22036 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22037 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22038 { (exit 1); exit 1; }; };;
22042 # If the user did not use the arguments to specify the items to instantiate,
22043 # then the envvar interface is used. Set only those that are not.
22044 # We use the long form for the default assignment because of an extremely
22045 # bizarre bug on SunOS 4.1.3.
22046 if $ac_need_defaults; then
22047 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
22048 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
22049 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
22052 # Have a temporary directory for convenience. Make it in the build tree
22053 # simply because there is no reason to put it here, and in addition,
22054 # creating and moving files from /tmp can sometimes cause problems.
22055 # Create a temporary directory, and hook for its removal unless debugging.
22058 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
22059 trap '{ (exit 1); exit 1; }' 1 2 13 15
22062 # Create a (secure) tmp directory for tmp files.
22065 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
22066 test -n "$tmp" && test -d "$tmp"
22069 tmp
=.
/confstat$$
-$RANDOM
22070 (umask 077 && mkdir
$tmp)
22073 echo "$me: cannot create a temporary directory in ." >&2
22074 { (exit 1); exit 1; }
22079 cat >>$CONFIG_STATUS <<_ACEOF
22082 # CONFIG_FILES section.
22085 # No need to generate the scripts if there are no CONFIG_FILES.
22086 # This happens for instance when ./config.status config.h
22087 if test -n "\$CONFIG_FILES"; then
22088 # Protect against being on the right side of a sed subst in config.status.
22089 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
22090 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
22091 s,@SHELL@,$SHELL,;t t
22092 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
22093 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
22094 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
22095 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
22096 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
22097 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
22098 s,@exec_prefix@,$exec_prefix,;t t
22099 s,@prefix@,$prefix,;t t
22100 s,@program_transform_name@,$program_transform_name,;t t
22101 s,@bindir@,$bindir,;t t
22102 s,@sbindir@,$sbindir,;t t
22103 s,@libexecdir@,$libexecdir,;t t
22104 s,@datadir@,$datadir,;t t
22105 s,@sysconfdir@,$sysconfdir,;t t
22106 s,@sharedstatedir@,$sharedstatedir,;t t
22107 s,@localstatedir@,$localstatedir,;t t
22108 s,@libdir@,$libdir,;t t
22109 s,@includedir@,$includedir,;t t
22110 s,@oldincludedir@,$oldincludedir,;t t
22111 s,@infodir@,$infodir,;t t
22112 s,@mandir@,$mandir,;t t
22113 s,@build_alias@,$build_alias,;t t
22114 s,@host_alias@,$host_alias,;t t
22115 s,@target_alias@,$target_alias,;t t
22116 s,@DEFS@,$DEFS,;t t
22117 s,@ECHO_C@,$ECHO_C,;t t
22118 s,@ECHO_N@,$ECHO_N,;t t
22119 s,@ECHO_T@,$ECHO_T,;t t
22120 s,@LIBS@,$LIBS,;t t
22121 s,@MAINT@,$MAINT,;t t
22122 s,@build@,$build,;t t
22123 s,@build_cpu@,$build_cpu,;t t
22124 s,@build_vendor@,$build_vendor,;t t
22125 s,@build_os@,$build_os,;t t
22126 s,@host@,$host,;t t
22127 s,@host_cpu@,$host_cpu,;t t
22128 s,@host_vendor@,$host_vendor,;t t
22129 s,@host_os@,$host_os,;t t
22131 s,@CFLAGS@,$CFLAGS,;t t
22132 s,@LDFLAGS@,$LDFLAGS,;t t
22133 s,@CPPFLAGS@,$CPPFLAGS,;t t
22134 s,@ac_ct_CC@,$ac_ct_CC,;t t
22135 s,@EXEEXT@,$EXEEXT,;t t
22136 s,@OBJEXT@,$OBJEXT,;t t
22137 s,@LN_S@,$LN_S,;t t
22139 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
22140 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
22141 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
22142 s,@RANLIB@,$RANLIB,;t t
22143 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
22144 s,@INSTALL_INFO@,$INSTALL_INFO,;t t
22145 s,@EGREP@,$EGREP,;t t
22146 s,@LIBSOUND@,$LIBSOUND,;t t
22147 s,@SETARCH@,$SETARCH,;t t
22148 s,@SET_MAKE@,$SET_MAKE,;t t
22149 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
22150 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
22151 s,@GTK_LIBS@,$GTK_LIBS,;t t
22152 s,@ALLOCA@,$ALLOCA,;t t
22153 s,@liblockfile@,$liblockfile,;t t
22154 s,@LIBOBJS@,$LIBOBJS,;t t
22155 s,@NEED_SETGID@,$NEED_SETGID,;t t
22156 s,@KMEM_GROUP@,$KMEM_GROUP,;t t
22157 s,@GETLOADAVG_LIBS@,$GETLOADAVG_LIBS,;t t
22158 s,@version@,$version,;t t
22159 s,@configuration@,$configuration,;t t
22160 s,@canonical@,$canonical,;t t
22161 s,@srcdir@,$srcdir,;t t
22162 s,@lispdir@,$lispdir,;t t
22163 s,@locallisppath@,$locallisppath,;t t
22164 s,@lisppath@,$lisppath,;t t
22165 s,@x_default_search_path@,$x_default_search_path,;t t
22166 s,@etcdir@,$etcdir,;t t
22167 s,@archlibdir@,$archlibdir,;t t
22168 s,@docdir@,$docdir,;t t
22169 s,@bitmapdir@,$bitmapdir,;t t
22170 s,@gamedir@,$gamedir,;t t
22171 s,@gameuser@,$gameuser,;t t
22172 s,@c_switch_system@,$c_switch_system,;t t
22173 s,@c_switch_machine@,$c_switch_machine,;t t
22174 s,@LD_SWITCH_X_SITE@,$LD_SWITCH_X_SITE,;t t
22175 s,@LD_SWITCH_X_SITE_AUX@,$LD_SWITCH_X_SITE_AUX,;t t
22176 s,@C_SWITCH_X_SITE@,$C_SWITCH_X_SITE,;t t
22177 s,@X_TOOLKIT_TYPE@,$X_TOOLKIT_TYPE,;t t
22178 s,@machfile@,$machfile,;t t
22179 s,@opsysfile@,$opsysfile,;t t
22180 s,@carbon_appdir@,$carbon_appdir,;t t
22181 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
22186 cat >>$CONFIG_STATUS <<\_ACEOF
22187 # Split the substitutions into bite-sized pieces for seds with
22188 # small command number limits, like on Digital OSF/1 and HP-UX.
22189 ac_max_sed_lines
=48
22190 ac_sed_frag
=1 # Number of current file.
22191 ac_beg
=1 # First line for current file.
22192 ac_end
=$ac_max_sed_lines # Line after last line for current file.
22195 while $ac_more_lines; do
22196 if test $ac_beg -gt 1; then
22197 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
22199 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
22201 if test ! -s $tmp/subs.frag
; then
22202 ac_more_lines
=false
22204 # The purpose of the label and of the branching condition is to
22205 # speed up the sed processing (if there are no `@' at all, there
22206 # is no need to browse any of the substitutions).
22207 # These are the two extra sed commands mentioned above.
22209 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
22210 if test -z "$ac_sed_cmds"; then
22211 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
22213 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
22215 ac_sed_frag
=`expr $ac_sed_frag + 1`
22217 ac_end
=`expr $ac_end + $ac_max_sed_lines`
22220 if test -z "$ac_sed_cmds"; then
22223 fi # test -n "$CONFIG_FILES"
22226 cat >>$CONFIG_STATUS <<\_ACEOF
22227 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
22228 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22230 - |
*:- |
*:-:* ) # input from stdin
22232 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
22233 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
22234 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
22235 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
22236 * ) ac_file_in
=$ac_file.
in ;;
22239 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
22240 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
22241 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22242 X"$ac_file" : 'X\(//\)[^/]' \| \
22243 X"$ac_file" : 'X\(//\)$' \| \
22244 X"$ac_file" : 'X\(/\)' \| \
22245 . : '\(.\)' 2>/dev/null ||
22247 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22248 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22249 /^X\(\/\/\)$/{ s//\1/; q; }
22250 /^X\(\/\).*/{ s//\1/; q; }
22252 { if $as_mkdir_p; then
22257 while test ! -d "$as_dir"; do
22258 as_dirs
="$as_dir $as_dirs"
22259 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
22260 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22261 X"$as_dir" : 'X\(//\)[^/]' \| \
22262 X"$as_dir" : 'X\(//\)$' \| \
22263 X"$as_dir" : 'X\(/\)' \| \
22264 . : '\(.\)' 2>/dev/null ||
22266 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22267 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22268 /^X\(\/\/\)$/{ s//\1/; q; }
22269 /^X\(\/\).*/{ s//\1/; q; }
22272 test ! -n "$as_dirs" || mkdir
$as_dirs
22273 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22274 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22275 { (exit 1); exit 1; }; }; }
22279 if test "$ac_dir" != .
; then
22280 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22281 # A "../" for each directory in $ac_dir_suffix.
22282 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22284 ac_dir_suffix
= ac_top_builddir
=
22288 .
) # No --srcdir option. We are building in place.
22290 if test -z "$ac_top_builddir"; then
22293 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
22295 [\\/]* | ?
:[\\/]* ) # Absolute path.
22296 ac_srcdir
=$srcdir$ac_dir_suffix;
22297 ac_top_srcdir
=$srcdir ;;
22298 *) # Relative path.
22299 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
22300 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
22303 # Do not use `cd foo && pwd` to compute absolute paths, because
22304 # the directories may not exist.
22306 .
) ac_abs_builddir
="$ac_dir";;
22309 .
) ac_abs_builddir
=`pwd`;;
22310 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
22311 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
22314 case $ac_abs_builddir in
22315 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
22317 case ${ac_top_builddir}.
in
22318 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
22319 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
22320 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
22323 case $ac_abs_builddir in
22324 .
) ac_abs_srcdir
=$ac_srcdir;;
22327 .
) ac_abs_srcdir
=$ac_abs_builddir;;
22328 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
22329 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
22332 case $ac_abs_builddir in
22333 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
22335 case $ac_top_srcdir in
22336 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
22337 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
22338 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
22344 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
22345 *) ac_INSTALL
=$ac_top_builddir$INSTALL ;;
22348 if test x
"$ac_file" != x-
; then
22349 { echo "$as_me:$LINENO: creating $ac_file" >&5
22350 echo "$as_me: creating $ac_file" >&6;}
22353 # Let's still pretend it is `configure' which instantiates (i.e., don't
22354 # use $as_me), people would be surprised to read:
22355 # /* config.h. Generated by config.status. */
22356 if test x
"$ac_file" = x-
; then
22359 configure_input
="$ac_file. "
22361 configure_input
=$configure_input"Generated from `echo $ac_file_in |
22362 sed 's,.*/,,'` by configure."
22364 # First look for the input files in the build tree, otherwise in the
22366 ac_file_inputs
=`IFS=:
22367 for f in $ac_file_in; do
22369 -) echo $tmp/stdin ;;
22371 # Absolute (can't be DOS-style, as IFS=:)
22372 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22373 echo "$as_me: error: cannot find input file: $f" >&2;}
22374 { (exit 1); exit 1; }; }
22377 if test -f "$f"; then
22380 elif test -f "$srcdir/$f"; then
22385 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22386 echo "$as_me: error: cannot find input file: $f" >&2;}
22387 { (exit 1); exit 1; }; }
22390 done` ||
{ (exit 1); exit 1; }
22392 cat >>$CONFIG_STATUS <<_ACEOF
22396 cat >>$CONFIG_STATUS <<\_ACEOF
22398 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
22399 s
,@configure_input@
,$configure_input,;t t
22400 s
,@srcdir@
,$ac_srcdir,;t t
22401 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
22402 s
,@top_srcdir@
,$ac_top_srcdir,;t t
22403 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
22404 s
,@builddir@
,$ac_builddir,;t t
22405 s
,@abs_builddir@
,$ac_abs_builddir,;t t
22406 s
,@top_builddir@
,$ac_top_builddir,;t t
22407 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
22408 s
,@INSTALL@
,$ac_INSTALL,;t t
22409 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
22411 if test x"$ac_file" != x-; then
22412 mv $tmp/out $ac_file
22420 cat >>$CONFIG_STATUS <<\_ACEOF
22423 # CONFIG_HEADER section.
22426 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
22427 # NAME is the cpp macro being defined and VALUE is the value it is being given.
22429 # ac_d sets the value in "#define NAME VALUE" lines.
22430 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
22431 ac_dB
='[ ].*$,\1#\2'
22434 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22435 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
22436 ac_uB
='$,\1#\2define\3'
22440 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
22441 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22443 - |
*:- |
*:-:* ) # input from stdin
22445 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
22446 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
22447 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
22448 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
22449 * ) ac_file_in
=$ac_file.
in ;;
22452 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
22453 echo "$as_me: creating $ac_file" >&6;}
22455 # First look for the input files in the build tree, otherwise in the
22457 ac_file_inputs
=`IFS=:
22458 for f in $ac_file_in; do
22460 -) echo $tmp/stdin ;;
22462 # Absolute (can't be DOS-style, as IFS=:)
22463 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22464 echo "$as_me: error: cannot find input file: $f" >&2;}
22465 { (exit 1); exit 1; }; }
22466 # Do quote $f, to prevent DOS paths from being IFS'd.
22469 if test -f "$f"; then
22472 elif test -f "$srcdir/$f"; then
22477 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22478 echo "$as_me: error: cannot find input file: $f" >&2;}
22479 { (exit 1); exit 1; }; }
22482 done` ||
{ (exit 1); exit 1; }
22483 # Remove the trailing spaces.
22484 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
22488 # Transform confdefs.h into two sed scripts, `conftest.defines' and
22489 # `conftest.undefs', that substitutes the proper values into
22490 # config.h.in to produce config.h. The first handles `#define'
22491 # templates, and the second `#undef' templates.
22492 # And first: Protect against being on the right side of a sed subst in
22493 # config.status. Protect against being in an unquoted here document
22494 # in config.status.
22495 rm -f conftest.defines conftest.undefs
22496 # Using a here document instead of a string reduces the quoting nightmare.
22497 # Putting comments in sed scripts is not portable.
22499 # `end' is used to avoid that the second main sed command (meant for
22500 # 0-ary CPP macros) applies to n-ary macro definitions.
22501 # See the Autoconf documentation for `clear'.
22502 cat >confdef2sed.
sed <<\_ACEOF
22507 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
22509 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
22512 # If some macros were called several times there might be several times
22513 # the same #defines, which is useless. Nevertheless, we may not want to
22514 # sort them, since we want the *last* AC-DEFINE to be honored.
22515 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
22516 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
22517 rm -f confdef2sed.sed
22519 # This sed command replaces #undef with comments. This is necessary, for
22520 # example, in the case of _POSIX_SOURCE, which is predefined and required
22521 # on some systems where configure will not decide to define it.
22522 cat >>conftest.undefs <<\_ACEOF
22523 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
22526 # Break up conftest.defines because some shells have a limit on the size
22527 # of here documents, and old seds have small limits too (100 cmds).
22528 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
22529 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
22530 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
22531 echo ' :' >>$CONFIG_STATUS
22532 rm -f conftest.tail
22533 while grep . conftest.defines >/dev/null
22535 # Write a limited-size here document to $tmp/defines.sed.
22536 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
22537 # Speed up: don't consider the non `#define' lines.
22538 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
22539 # Work around the forget-to-reset-the-flag bug.
22540 echo 't clr' >>$CONFIG_STATUS
22541 echo ': clr' >>$CONFIG_STATUS
22542 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
22544 sed -f $tmp/defines.sed $tmp/in >$tmp/out
22546 mv $tmp/out $tmp/in
22548 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
22549 rm -f conftest.defines
22550 mv conftest.
tail conftest.defines
22552 rm -f conftest.defines
22553 echo ' fi # grep' >>$CONFIG_STATUS
22554 echo >>$CONFIG_STATUS
22556 # Break up conftest.undefs because some shells have a limit on the size
22557 # of here documents, and old seds have small limits too (100 cmds).
22558 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
22559 rm -f conftest.
tail
22560 while grep . conftest.undefs
>/dev
/null
22562 # Write a limited-size here document to $tmp/undefs.sed.
22563 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
22564 # Speed up: don't consider the non
`#undef'
22565 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
22566 # Work around the forget-to-reset-the-flag bug.
22567 echo 't clr' >>$CONFIG_STATUS
22568 echo ': clr' >>$CONFIG_STATUS
22569 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
22571 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
22573 mv $tmp/out $tmp/in
22575 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
22576 rm -f conftest.undefs
22577 mv conftest.tail conftest.undefs
22579 rm -f conftest.undefs
22581 cat >>$CONFIG_STATUS <<\_ACEOF
22582 # Let's still pretend it is `configure
' which instantiates (i.e., don't
22583 # use $as_me), people would be surprised to read:
22584 # /* config.h. Generated by config.status. */
22585 if test x
"$ac_file" = x-
; then
22586 echo "/* Generated by configure. */" >$tmp/config.h
22588 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
22590 cat $tmp/in >>$tmp/config.h
22592 if test x
"$ac_file" != x-
; then
22593 if diff $ac_file $tmp/config.h
>/dev
/null
2>&1; then
22594 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22595 echo "$as_me: $ac_file is unchanged" >&6;}
22597 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
22598 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22599 X"$ac_file" : 'X\(//\)[^/]' \| \
22600 X"$ac_file" : 'X\(//\)$' \| \
22601 X"$ac_file" : 'X\(/\)' \| \
22602 . : '\(.\)' 2>/dev/null ||
22604 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22605 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22606 /^X\(\/\/\)$/{ s//\1/; q; }
22607 /^X\(\/\).*/{ s//\1/; q; }
22609 { if $as_mkdir_p; then
22614 while test ! -d "$as_dir"; do
22615 as_dirs
="$as_dir $as_dirs"
22616 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
22617 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22618 X"$as_dir" : 'X\(//\)[^/]' \| \
22619 X"$as_dir" : 'X\(//\)$' \| \
22620 X"$as_dir" : 'X\(/\)' \| \
22621 . : '\(.\)' 2>/dev/null ||
22623 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22624 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22625 /^X\(\/\/\)$/{ s//\1/; q; }
22626 /^X\(\/\).*/{ s//\1/; q; }
22629 test ! -n "$as_dirs" || mkdir
$as_dirs
22630 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22631 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22632 { (exit 1); exit 1; }; }; }
22635 mv $tmp/config.h
$ac_file
22639 rm -f $tmp/config.h
22643 cat >>$CONFIG_STATUS <<\_ACEOF
22646 # CONFIG_COMMANDS section.
22648 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
22649 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
22650 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
22651 ac_dir
=`(dirname "$ac_dest") 2>/dev/null ||
22652 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22653 X"$ac_dest" : 'X\(//\)[^/]' \| \
22654 X"$ac_dest" : 'X\(//\)$' \| \
22655 X"$ac_dest" : 'X\(/\)' \| \
22656 . : '\(.\)' 2>/dev/null ||
22658 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22659 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22660 /^X\(\/\/\)$/{ s//\1/; q; }
22661 /^X\(\/\).*/{ s//\1/; q; }
22663 { if $as_mkdir_p; then
22668 while test ! -d "$as_dir"; do
22669 as_dirs
="$as_dir $as_dirs"
22670 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
22671 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22672 X"$as_dir" : 'X\(//\)[^/]' \| \
22673 X"$as_dir" : 'X\(//\)$' \| \
22674 X"$as_dir" : 'X\(/\)' \| \
22675 . : '\(.\)' 2>/dev/null ||
22677 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22678 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22679 /^X\(\/\/\)$/{ s//\1/; q; }
22680 /^X\(\/\).*/{ s//\1/; q; }
22683 test ! -n "$as_dirs" || mkdir
$as_dirs
22684 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22685 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22686 { (exit 1); exit 1; }; }; }
22690 if test "$ac_dir" != .
; then
22691 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22692 # A "../" for each directory in $ac_dir_suffix.
22693 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22695 ac_dir_suffix
= ac_top_builddir
=
22699 .
) # No --srcdir option. We are building in place.
22701 if test -z "$ac_top_builddir"; then
22704 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
22706 [\\/]* | ?
:[\\/]* ) # Absolute path.
22707 ac_srcdir
=$srcdir$ac_dir_suffix;
22708 ac_top_srcdir
=$srcdir ;;
22709 *) # Relative path.
22710 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
22711 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
22714 # Do not use `cd foo && pwd` to compute absolute paths, because
22715 # the directories may not exist.
22717 .
) ac_abs_builddir
="$ac_dir";;
22720 .
) ac_abs_builddir
=`pwd`;;
22721 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
22722 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
22725 case $ac_abs_builddir in
22726 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
22728 case ${ac_top_builddir}.
in
22729 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
22730 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
22731 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
22734 case $ac_abs_builddir in
22735 .
) ac_abs_srcdir
=$ac_srcdir;;
22738 .
) ac_abs_srcdir
=$ac_abs_builddir;;
22739 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
22740 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
22743 case $ac_abs_builddir in
22744 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
22746 case $ac_top_srcdir in
22747 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
22748 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
22749 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
22754 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
22755 echo "$as_me: executing $ac_dest commands" >&6;}
22759 ### Make the necessary directories, if they don't exist.
22760 for dir
in etc lisp
; do
22761 test -d ${dir} || mkdir
${dir}
22764 # Build src/Makefile from ${srcdir}/src/Makefile.c
22765 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
22766 # This must be done after src/config.h is built, since we rely on that file.
22768 # Now get this: Some word that is part of the ${srcdir} directory name
22769 # or the ${configuration} value might, just might, happen to be an
22770 # identifier like `sun4' or `i386' or something, and be predefined by
22771 # the C preprocessor to some helpful value like 1, or maybe the empty
22772 # string. Needless to say consequent macro substitutions are less
22773 # than conducive to the makefile finding the correct directory.
22774 undefs
="`echo $top_srcdir $configuration $canonical |
22775 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
22776 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
22779 echo creating src
/epaths.h
22780 ${MAKE-make} epaths-force
22782 # As of 2000-11-19, newest development versions of GNU cpp preprocess
22783 # `..' to `. .' unless invoked with -traditional
22785 if test "x$GCC" = xyes
&& test "x$CPP_NEED_TRADITIONAL" = xyes
; then
22786 CPPFLAGS
="$CPPFLAGS -traditional"
22789 echo creating lib-src
/Makefile
22791 rm -f junk.c junk1.c junk2.c
22792 sed -e '/start of cpp stuff/q' \
22793 < Makefile.c
> junk1.c
22794 sed -e '1,/start of cpp stuff/d'\
22795 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
22796 < Makefile.c
> junk.c
22797 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
22798 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
22799 cat junk1.c junk2.c
> Makefile.new
22800 rm -f junk.c junk1.c junk2.c
22801 chmod 444 Makefile.new
22802 mv -f Makefile.new Makefile
22805 echo creating src
/Makefile
22807 rm -f junk.c junk1.c junk2.c
22808 sed -e '/start of cpp stuff/q' \
22809 < Makefile.c
> junk1.c
22810 sed -e '1,/start of cpp stuff/d'\
22811 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
22812 < Makefile.c
> junk.c
22813 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
22814 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
22815 cat junk1.c junk2.c
> Makefile.new
22816 rm -f junk.c junk1.c junk2.c
22817 chmod 444 Makefile.new
22818 mv -f Makefile.new Makefile
22821 if test ! -f src
/.gdbinit
&& test -f $srcdir/src
/.gdbinit
; then
22822 echo creating src
/.gdbinit
22823 echo source $srcdir/src
/.gdbinit
> src
/.gdbinit
22826 # This is how we know whether to re-run configure in certain cases.
22827 touch src
/config.stamp
22834 cat >>$CONFIG_STATUS <<\_ACEOF
22836 { (exit 0); exit 0; }
22838 chmod +x
$CONFIG_STATUS
22839 ac_clean_files
=$ac_clean_files_save
22842 # configure is writing to config.log, and then calls config.status.
22843 # config.status does its own redirection, appending to config.log.
22844 # Unfortunately, on DOS this fails, as config.log is still kept open
22845 # by configure, so config.status won't be able to write to it; its
22846 # output is simply discarded. So we exec the FD to /dev/null,
22847 # effectively closing config.log, so it can be properly (re)opened and
22848 # appended to by config.status. When coming back to configure, we
22849 # need to make the FD available again.
22850 if test "$no_create" != yes; then
22852 ac_config_status_args
=
22853 test "$silent" = yes &&
22854 ac_config_status_args
="$ac_config_status_args --quiet"
22856 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
22858 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22859 # would make configure fail if this is the last instruction.
22860 $ac_cs_success ||
{ (exit 1); exit 1; }