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 SETARCH LIBSOUND SET_MAKE PKG_CONFIG GTK_CFLAGS GTK_LIBS ALLOCA liblockfile LIBOBJS NEED_SETGID KMEM_GROUP GETLOADAVG_LIBS version configuration canonical srcdir lispdir locallisppath lisppath x_default_search_path etcdir archlibdir docdir bitmapdir gamedir gameuser c_switch_system c_switch_machine LD_SWITCH_X_SITE LD_SWITCH_X_SITE_AUX C_SWITCH_X_SITE X_TOOLKIT_TYPE machfile opsysfile carbon_appdir LTLIBOBJS'
316 # Initialize some variables set by options.
318 ac_init_version
=false
319 # The variables have the same names as the options, with
320 # dashes changed to underlines.
328 program_transform_name
=s
,x
,x
,
336 # Installation directory options.
337 # These are left unexpanded so users can "make install exec_prefix=/foo"
338 # and all the variables that are supposed to be based on exec_prefix
339 # by default will actually change.
340 # Use braces instead of parens because sh, perl, etc. also accept them.
341 bindir
='${exec_prefix}/bin'
342 sbindir
='${exec_prefix}/sbin'
343 libexecdir
='${exec_prefix}/libexec'
344 datadir
='${prefix}/share'
345 sysconfdir
='${prefix}/etc'
346 sharedstatedir
='${prefix}/com'
347 localstatedir
='${prefix}/var'
348 libdir
='${exec_prefix}/lib'
349 includedir
='${prefix}/include'
350 oldincludedir
='/usr/include'
351 infodir
='${prefix}/info'
352 mandir
='${prefix}/man'
357 # If the previous option needs an argument, assign it.
358 if test -n "$ac_prev"; then
359 eval "$ac_prev=\$ac_option"
364 ac_optarg
=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
366 # Accept the important Cygnus configure options, so we can diagnose typos.
370 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
372 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
375 -build |
--build |
--buil |
--bui |
--bu)
376 ac_prev
=build_alias
;;
377 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
378 build_alias
=$ac_optarg ;;
380 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
381 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
382 ac_prev
=cache_file
;;
383 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
384 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
385 cache_file
=$ac_optarg ;;
388 cache_file
=config.cache
;;
390 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
392 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
394 datadir
=$ac_optarg ;;
396 -disable-* |
--disable-*)
397 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
398 # Reject names that are not valid shell variable names.
399 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
400 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
401 { (exit 1); exit 1; }; }
402 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
403 eval "enable_$ac_feature=no" ;;
405 -enable-* |
--enable-*)
406 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
407 # Reject names that are not valid shell variable names.
408 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
409 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
410 { (exit 1); exit 1; }; }
411 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
413 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
416 eval "enable_$ac_feature='$ac_optarg'" ;;
418 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
419 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
420 |
--exec |
--exe |
--ex)
421 ac_prev
=exec_prefix
;;
422 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
423 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
424 |
--exec=* |
--exe=* |
--ex=*)
425 exec_prefix
=$ac_optarg ;;
427 -gas |
--gas |
--ga |
--g)
428 # Obsolete; use --with-gas.
431 -help |
--help |
--hel |
--he |
-h)
433 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
434 ac_init_help
=recursive
;;
435 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
436 ac_init_help
=short
;;
438 -host |
--host |
--hos |
--ho)
439 ac_prev
=host_alias
;;
440 -host=* |
--host=* |
--hos=* |
--ho=*)
441 host_alias
=$ac_optarg ;;
443 -includedir |
--includedir |
--includedi |
--included |
--include \
444 |
--includ |
--inclu |
--incl |
--inc)
445 ac_prev
=includedir
;;
446 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
447 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
448 includedir
=$ac_optarg ;;
450 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
452 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
453 infodir
=$ac_optarg ;;
455 -libdir |
--libdir |
--libdi |
--libd)
457 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
460 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
461 |
--libexe |
--libex |
--libe)
462 ac_prev
=libexecdir
;;
463 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
464 |
--libexe=* |
--libex=* |
--libe=*)
465 libexecdir
=$ac_optarg ;;
467 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
468 |
--localstate |
--localstat |
--localsta |
--localst \
469 |
--locals |
--local |
--loca |
--loc |
--lo)
470 ac_prev
=localstatedir
;;
471 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
472 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
473 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
474 localstatedir
=$ac_optarg ;;
476 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
478 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
482 # Obsolete; use --without-fp.
485 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
486 |
--no-cr |
--no-c |
-n)
489 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
490 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
493 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
494 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
495 |
--oldin |
--oldi |
--old |
--ol |
--o)
496 ac_prev
=oldincludedir
;;
497 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
498 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
499 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
500 oldincludedir
=$ac_optarg ;;
502 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
504 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
507 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
508 |
--program-pre |
--program-pr |
--program-p)
509 ac_prev
=program_prefix
;;
510 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
511 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
512 program_prefix
=$ac_optarg ;;
514 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
515 |
--program-suf |
--program-su |
--program-s)
516 ac_prev
=program_suffix
;;
517 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
518 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
519 program_suffix
=$ac_optarg ;;
521 -program-transform-name |
--program-transform-name \
522 |
--program-transform-nam |
--program-transform-na \
523 |
--program-transform-n |
--program-transform- \
524 |
--program-transform |
--program-transfor \
525 |
--program-transfo |
--program-transf \
526 |
--program-trans |
--program-tran \
527 |
--progr-tra |
--program-tr |
--program-t)
528 ac_prev
=program_transform_name
;;
529 -program-transform-name=* |
--program-transform-name=* \
530 |
--program-transform-nam=* |
--program-transform-na=* \
531 |
--program-transform-n=* |
--program-transform-=* \
532 |
--program-transform=* |
--program-transfor=* \
533 |
--program-transfo=* |
--program-transf=* \
534 |
--program-trans=* |
--program-tran=* \
535 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
536 program_transform_name
=$ac_optarg ;;
538 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
539 |
-silent |
--silent |
--silen |
--sile |
--sil)
542 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
544 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
546 sbindir
=$ac_optarg ;;
548 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
549 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
550 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
552 ac_prev
=sharedstatedir
;;
553 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
554 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
555 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
557 sharedstatedir
=$ac_optarg ;;
559 -site |
--site |
--sit)
561 -site=* |
--site=* |
--sit=*)
564 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
566 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
569 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
570 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
571 ac_prev
=sysconfdir
;;
572 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
573 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
574 sysconfdir
=$ac_optarg ;;
576 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
577 ac_prev
=target_alias
;;
578 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
579 target_alias
=$ac_optarg ;;
581 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
584 -version |
--version |
--versio |
--versi |
--vers |
-V)
588 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
589 # Reject names that are not valid shell variable names.
590 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
591 { echo "$as_me: error: invalid package name: $ac_package" >&2
592 { (exit 1); exit 1; }; }
593 ac_package
=`echo $ac_package| sed 's/-/_/g'`
595 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
598 eval "with_$ac_package='$ac_optarg'" ;;
600 -without-* |
--without-*)
601 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
602 # Reject names that are not valid shell variable names.
603 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
604 { echo "$as_me: error: invalid package name: $ac_package" >&2
605 { (exit 1); exit 1; }; }
606 ac_package
=`echo $ac_package | sed 's/-/_/g'`
607 eval "with_$ac_package=no" ;;
610 # Obsolete; use --with-x.
613 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
614 |
--x-incl |
--x-inc |
--x-in |
--x-i)
615 ac_prev
=x_includes
;;
616 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
617 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
618 x_includes
=$ac_optarg ;;
620 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
621 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
622 ac_prev
=x_libraries
;;
623 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
624 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
625 x_libraries
=$ac_optarg ;;
627 -*) { echo "$as_me: error: unrecognized option: $ac_option
628 Try \`$0 --help' for more information." >&2
629 { (exit 1); exit 1; }; }
633 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
634 # Reject names that are not valid shell variable names.
635 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
636 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
637 { (exit 1); exit 1; }; }
638 ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
639 eval "$ac_envvar='$ac_optarg'"
643 # FIXME: should be removed in autoconf 3.0.
644 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
645 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
646 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
647 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
653 if test -n "$ac_prev"; then
654 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
655 { echo "$as_me: error: missing argument to $ac_option" >&2
656 { (exit 1); exit 1; }; }
659 # Be sure to have absolute paths.
660 for ac_var
in exec_prefix prefix
662 eval ac_val
=$
`echo $ac_var`
664 [\\/$
]* | ?
:[\\/]* | NONE |
'' ) ;;
665 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
666 { (exit 1); exit 1; }; };;
670 # Be sure to have absolute paths.
671 for ac_var
in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
672 localstatedir libdir includedir oldincludedir infodir mandir
674 eval ac_val
=$
`echo $ac_var`
676 [\\/$
]* | ?
:[\\/]* ) ;;
677 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
678 { (exit 1); exit 1; }; };;
682 # There might be people who depend on the old broken behavior: `$host'
683 # used to hold the argument of --host etc.
684 # FIXME: To remove some day.
689 # FIXME: To remove some day.
690 if test "x$host_alias" != x
; then
691 if test "x$build_alias" = x
; then
692 cross_compiling
=maybe
693 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
694 If a cross compiler is detected then cross compile mode will be used." >&2
695 elif test "x$build_alias" != "x$host_alias"; then
701 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
703 test "$silent" = yes && exec 6>/dev
/null
706 # Find the source files, if location was not specified.
707 if test -z "$srcdir"; then
708 ac_srcdir_defaulted
=yes
709 # Try the directory containing this script, then its parent.
710 ac_confdir
=`(dirname "$0") 2>/dev/null ||
711 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
712 X"$0" : 'X\(//\)[^/]' \| \
713 X"$0" : 'X\(//\)$' \| \
714 X"$0" : 'X\(/\)' \| \
715 . : '\(.\)' 2>/dev/null ||
717 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
718 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
719 /^X\(\/\/\)$/{ s//\1/; q; }
720 /^X\(\/\).*/{ s//\1/; q; }
723 if test ! -r $srcdir/$ac_unique_file; then
727 ac_srcdir_defaulted
=no
729 if test ! -r $srcdir/$ac_unique_file; then
730 if test "$ac_srcdir_defaulted" = yes; then
731 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
732 { (exit 1); exit 1; }; }
734 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
735 { (exit 1); exit 1; }; }
738 (cd $srcdir && test -r .
/$ac_unique_file) 2>/dev
/null ||
739 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
740 { (exit 1); exit 1; }; }
741 srcdir
=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
742 ac_env_build_alias_set
=${build_alias+set}
743 ac_env_build_alias_value
=$build_alias
744 ac_cv_env_build_alias_set
=${build_alias+set}
745 ac_cv_env_build_alias_value
=$build_alias
746 ac_env_host_alias_set
=${host_alias+set}
747 ac_env_host_alias_value
=$host_alias
748 ac_cv_env_host_alias_set
=${host_alias+set}
749 ac_cv_env_host_alias_value
=$host_alias
750 ac_env_target_alias_set
=${target_alias+set}
751 ac_env_target_alias_value
=$target_alias
752 ac_cv_env_target_alias_set
=${target_alias+set}
753 ac_cv_env_target_alias_value
=$target_alias
754 ac_env_CC_set
=${CC+set}
756 ac_cv_env_CC_set
=${CC+set}
757 ac_cv_env_CC_value
=$CC
758 ac_env_CFLAGS_set
=${CFLAGS+set}
759 ac_env_CFLAGS_value
=$CFLAGS
760 ac_cv_env_CFLAGS_set
=${CFLAGS+set}
761 ac_cv_env_CFLAGS_value
=$CFLAGS
762 ac_env_LDFLAGS_set
=${LDFLAGS+set}
763 ac_env_LDFLAGS_value
=$LDFLAGS
764 ac_cv_env_LDFLAGS_set
=${LDFLAGS+set}
765 ac_cv_env_LDFLAGS_value
=$LDFLAGS
766 ac_env_CPPFLAGS_set
=${CPPFLAGS+set}
767 ac_env_CPPFLAGS_value
=$CPPFLAGS
768 ac_cv_env_CPPFLAGS_set
=${CPPFLAGS+set}
769 ac_cv_env_CPPFLAGS_value
=$CPPFLAGS
770 ac_env_CPP_set
=${CPP+set}
771 ac_env_CPP_value
=$CPP
772 ac_cv_env_CPP_set
=${CPP+set}
773 ac_cv_env_CPP_value
=$CPP
776 # Report the --help message.
778 if test "$ac_init_help" = "long"; then
779 # Omit some internal or obsolete options to make the list less imposing.
780 # This message is too long to be a string in the A/UX 3.1 sh.
782 \`configure' configures this package to adapt to many kinds of systems.
784 Usage: $0 [OPTION]... [VAR=VALUE]...
786 To assign environment variables (e.g., CC, CFLAGS...), specify them as
787 VAR=VALUE. See below for descriptions of some of the useful variables.
789 Defaults for the options are specified in brackets.
792 -h, --help display this help and exit
793 --help=short display options specific to this package
794 --help=recursive display the short help of all the included packages
795 -V, --version display version information and exit
796 -q, --quiet, --silent do not print \`checking...' messages
797 --cache-file=FILE cache test results in FILE [disabled]
798 -C, --config-cache alias for \`--cache-file=config.cache'
799 -n, --no-create do not create output files
800 --srcdir=DIR find the sources in DIR [configure dir or \`..']
805 Installation directories:
806 --prefix=PREFIX install architecture-independent files in PREFIX
808 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
811 By default, \`make install' will install all the files in
812 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
813 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
814 for instance \`--prefix=\$HOME'.
816 For better control, use the options below.
818 Fine tuning of the installation directories:
819 --bindir=DIR user executables [EPREFIX/bin]
820 --sbindir=DIR system admin executables [EPREFIX/sbin]
821 --libexecdir=DIR program executables [EPREFIX/libexec]
822 --datadir=DIR read-only architecture-independent data [PREFIX/share]
823 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
824 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
825 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
826 --libdir=DIR object code libraries [EPREFIX/lib]
827 --includedir=DIR C header files [PREFIX/include]
828 --oldincludedir=DIR C header files for non-gcc [/usr/include]
829 --infodir=DIR info documentation [PREFIX/info]
830 --mandir=DIR man documentation [PREFIX/man]
836 --program-prefix=PREFIX prepend PREFIX to installed program names
837 --program-suffix=SUFFIX append SUFFIX to installed program names
838 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
841 --x-includes=DIR X include files are
in DIR
842 --x-libraries=DIR X library files are
in DIR
845 --build=BUILD configure
for building on BUILD
[guessed
]
846 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
850 if test -n "$ac_init_help"; then
855 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
856 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
857 --enable-carbon-app[=DIR
] [DIR
=/Application
]
858 specify
install directory
for Emacs.app on Mac OS X
859 --enable-maintainer-mode enable make rules and dependencies not useful
860 (and sometimes confusing
) to the casual installer
861 --disable-largefile omit support
for large files
864 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
865 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
866 --without-gcc don
't use GCC to compile Emacs if GCC is found
867 --without-pop don't support POP
mail retrieval with movemail
868 --with-kerberos support Kerberos-authenticated POP
869 --with-kerberos5 support Kerberos version
5 authenticated POP
870 --with-hesiod support Hesiod to get the POP server
host
871 --without-sound don
't compile with sound support
872 --with-x-toolkit=KIT use an X toolkit
873 (KIT = yes/lucid/athena/motif/gtk/no)
874 --with-xpm use -lXpm for displaying XPM images
875 --with-jpeg use -ljpeg for displaying JPEG images
876 --with-tiff use -ltiff for displaying TIFF images
877 --with-gif use -lungif for displaying GIF images
878 --with-png use -lpng for displaying PNG images
879 --with-gtk use GTK (same as --with-x-toolkit=gtk)
880 --with-pkg-config-prog Path to pkg-config to use for finding GTK
881 --without-toolkit-scroll-bars
882 don't use Motif or Xaw3d scroll bars
883 --without-xim don
't use X11 XIM
884 --without-carbon don't use Carbon GUI on Mac OS X
885 --with-x use the X Window System
887 Some influential environment variables
:
888 CC C compiler
command
889 CFLAGS C compiler flags
890 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
891 nonstandard directory
<lib dir
>
892 CPPFLAGS C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if you have
893 headers
in a nonstandard directory
<include dir
>
896 Use these variables to override the choices made by
`configure' or to help
897 it to find libraries and programs with nonstandard names/locations.
902 if test "$ac_init_help" = "recursive"; then
903 # If there are subdirs, report their specific --help.
905 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
906 test -d $ac_dir || continue
909 if test "$ac_dir" != .; then
910 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
911 # A "../" for each directory in $ac_dir_suffix.
912 ac_top_builddir=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,../,g'`
914 ac_dir_suffix= ac_top_builddir=
918 .) # No --srcdir option. We are building in place.
920 if test -z "$ac_top_builddir"; then
923 ac_top_srcdir=`echo $ac_top_builddir |
sed 's,/$,,'`
925 [\\/]* | ?:[\\/]* ) # Absolute path.
926 ac_srcdir=$srcdir$ac_dir_suffix;
927 ac_top_srcdir=$srcdir ;;
929 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
930 ac_top_srcdir=$ac_top_builddir$srcdir ;;
933 # Do not use `cd foo
&& pwd` to compute absolute paths, because
934 # the directories may not exist.
936 .) ac_abs_builddir="$ac_dir";;
939 .) ac_abs_builddir=`pwd`;;
940 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
941 *) ac_abs_builddir=`pwd`/"$ac_dir";;
944 case $ac_abs_builddir in
945 .) ac_abs_top_builddir=${ac_top_builddir}.;;
947 case ${ac_top_builddir}. in
948 .) ac_abs_top_builddir=$ac_abs_builddir;;
949 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
950 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
953 case $ac_abs_builddir in
954 .) ac_abs_srcdir=$ac_srcdir;;
957 .) ac_abs_srcdir=$ac_abs_builddir;;
958 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
959 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
962 case $ac_abs_builddir in
963 .) ac_abs_top_srcdir=$ac_top_srcdir;;
965 case $ac_top_srcdir in
966 .) ac_abs_top_srcdir=$ac_abs_builddir;;
967 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
968 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
973 # Check for guested configure; otherwise get Cygnus style configure.
974 if test -f $ac_srcdir/configure.gnu; then
976 $SHELL $ac_srcdir/configure.gnu --help=recursive
977 elif test -f $ac_srcdir/configure; then
979 $SHELL $ac_srcdir/configure --help=recursive
980 elif test -f $ac_srcdir/configure.ac ||
981 test -f $ac_srcdir/configure.in; then
985 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
991 test -n "$ac_init_help" && exit 0
992 if $ac_init_version; then
995 Copyright (C) 2003 Free Software Foundation, Inc.
996 This configure script is free software; the Free Software Foundation
997 gives unlimited permission to copy, distribute and modify it.
1003 This file contains any messages produced by compilers while
1004 running configure, to aid debugging if configure makes a mistake.
1006 It was created by $as_me, which was
1007 generated by GNU Autoconf 2.59. Invocation command line was
1018 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1019 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1020 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1021 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1022 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1024 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1025 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1027 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1028 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1029 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1030 hostinfo = `(hostinfo
) 2>/dev
/null ||
echo unknown
`
1031 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1032 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1033 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1041 test -z "$as_dir" && as_dir=.
1042 echo "PATH: $as_dir"
1057 # Keep a trace of the command line.
1058 # Strip out --no-create and --no-recursion so they do not pile up.
1059 # Strip out --silent because we don't want to record it for future runs.
1060 # Also quote any args containing shell meta-characters.
1061 # Make two passes to allow for proper duplicate-argument suppression.
1066 ac_must_keep_next=false
1072 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1073 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1074 | -silent | --silent | --silen | --sile | --sil)
1076 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1077 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1080 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1082 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1083 if test $ac_must_keep_next = true; then
1084 ac_must_keep_next=false # Got value, back to normal.
1087 *=* | --config-cache | -C | -disable-* | --disable-* \
1088 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1089 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1090 | -with-* | --with-* | -without-* | --without-* | --x)
1091 case "$ac_configure_args0 " in
1092 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1095 -* ) ac_must_keep_next=true ;;
1098 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1099 # Get rid of the leading space.
1105 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1106 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1108 # When interrupted or exit'd, cleanup temporary files, and complete
1109 # config.log. We remove comments because anyway the quotes in there
1110 # would cause problems or look ugly.
1111 # WARNING: Be sure not to use single quotes in there, as some shells,
1112 # such as our DU 5.0 friend, will then `close
' the trap.
1113 trap 'exit_status
=$?
1114 # Save into config.log some information that might help in debugging.
1119 ## ---------------- ##
1120 ## Cache variables. ##
1121 ## ---------------- ##
1124 # The following way of writing the cache mishandles newlines in values,
1127 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1130 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1131 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1135 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1142 ## ----------------- ##
1143 ## Output variables. ##
1144 ## ----------------- ##
1147 for ac_var
in $ac_subst_vars
1149 eval ac_val
=$
`echo $ac_var`
1150 echo "$ac_var='"'"'$ac_val'"'"'"
1154 if test -n "$ac_subst_files"; then
1161 for ac_var
in $ac_subst_files
1163 eval ac_val
=$
`echo $ac_var`
1164 echo "$ac_var='"'"'$ac_val'"'"'"
1169 if test -s confdefs.h
; then
1176 sed "/^$/d" confdefs.h |
sort
1179 test "$ac_signal" != 0 &&
1180 echo "$as_me: caught signal $ac_signal"
1181 echo "$as_me: exit $exit_status"
1183 rm -f core
*.core
&&
1184 rm -rf conftest
* confdefs
* conf$$
* $ac_clean_files &&
1187 for ac_signal in 1 2 13 15; do
1188 trap 'ac_signal
='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1192 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1193 rm -rf conftest* confdefs.h
1194 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1197 # Predefined preprocessor variables.
1199 cat >>confdefs.h <<_ACEOF
1200 #define PACKAGE_NAME "$PACKAGE_NAME"
1204 cat >>confdefs.h <<_ACEOF
1205 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1209 cat >>confdefs.h <<_ACEOF
1210 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1214 cat >>confdefs.h <<_ACEOF
1215 #define PACKAGE_STRING "$PACKAGE_STRING"
1219 cat >>confdefs.h <<_ACEOF
1220 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1224 # Let the site file select an alternate cache file if it wants to.
1225 # Prefer explicitly selected file to automatically selected ones.
1226 if test -z "$CONFIG_SITE"; then
1227 if test "x$prefix" != xNONE; then
1228 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1230 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1233 for ac_site_file in $CONFIG_SITE; do
1234 if test -r "$ac_site_file"; then
1235 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1236 echo "$as_me: loading site script $ac_site_file" >&6;}
1237 sed 's
/^
/|
/' "$ac_site_file" >&5
1242 if test -r "$cache_file"; then
1243 # Some versions of bash will fail to source /dev/null (special
1244 # files actually), so we avoid doing that.
1245 if test -f "$cache_file"; then
1246 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1247 echo "$as_me: loading cache $cache_file" >&6;}
1249 [\\/]* | ?:[\\/]* ) . $cache_file;;
1250 *) . ./$cache_file;;
1254 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1255 echo "$as_me: creating cache $cache_file" >&6;}
1259 # Check that the precious variables saved in the cache have kept the same
1261 ac_cache_corrupted=false
1262 for ac_var in `(set) 2>&1 |
1263 sed -n 's
/^ac_env_\
([a-zA-Z_0-9
]*\
)_set
=.
*/\
1/p
'`; do
1264 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1265 eval ac_new_set=\$ac_env_${ac_var}_set
1266 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1267 eval ac_new_val="\$ac_env_${ac_var}_value"
1268 case $ac_old_set,$ac_new_set in
1270 { echo "$as_me:$LINENO: error: \`$ac_var' was
set to \
`$ac_old_val' in the previous run" >&5
1271 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&2;}
1272 ac_cache_corrupted=: ;;
1274 { echo "$as_me:$LINENO: error
: \
`$ac_var' was not set in the previous run" >&5
1275 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1276 ac_cache_corrupted=: ;;
1279 if test "x$ac_old_val" != "x$ac_new_val"; then
1280 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run
:" >&5
1281 echo "$as_me: error
: \
`$ac_var' has changed since the previous run:" >&2;}
1282 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1283 echo "$as_me: former value: $ac_old_val" >&2;}
1284 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1285 echo "$as_me: current value: $ac_new_val" >&2;}
1286 ac_cache_corrupted=:
1289 # Pass precious variables to config.status.
1290 if test "$ac_new_set" = set; then
1292 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1293 ac_arg=$ac_var=`echo "$ac_new_val" |
sed "s/'/'\\\\\\\\''/g"` ;;
1294 *) ac_arg=$ac_var=$ac_new_val ;;
1296 case " $ac_configure_args " in
1297 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1298 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1302 if $ac_cache_corrupted; then
1303 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1304 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1305 { { echo "$as_me:$LINENO: error: run \`make distclean
' and/or \`rm $cache_file' and start over
" >&5
1306 echo "$as_me: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1307 { (exit 1); exit 1; }; }
1311 ac_cpp='$CPP $CPPFLAGS'
1312 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
1313 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
1314 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1334 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
1337 test "$program_prefix" != NONE &&
1338 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1339 # Use a double $ so make ignores it.
1340 test "$program_suffix" != NONE &&
1341 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1342 # Double any \ or $. echo might interpret backslashes.
1343 # By default was `s,x,x', remove it
if useless.
1344 cat <<\_ACEOF
>conftest.
sed
1345 s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//
1347 program_transform_name
=`echo $program_transform_name | sed -f conftest.sed`
1351 lispdir
='${datadir}/emacs/${version}/lisp'
1352 locallisppath
='${datadir}/emacs/${version}/site-lisp:'\
1353 '${datadir}/emacs/site-lisp:${datadir}/emacs/${version}/leim'
1354 lisppath
='${locallisppath}:${lispdir}'
1355 etcdir
='${datadir}/emacs/${version}/etc'
1356 archlibdir
='${libexecdir}/emacs/${version}/${configuration}'
1357 docdir
='${datadir}/emacs/${version}/etc'
1358 gamedir
='${localstatedir}/games/emacs'
1363 # Check whether --with-gcc or --without-gcc was given.
1364 if test "${with_gcc+set}" = set; then
1369 # Check whether --with-pop or --without-pop was given.
1370 if test "${with_pop+set}" = set; then
1372 if test "$withval" = yes; then
1373 cat >>confdefs.h
<<\_ACEOF
1374 #define MAIL_USE_POP 1
1380 cat >>confdefs.h
<<\_ACEOF
1381 #define MAIL_USE_POP 1
1387 # Check whether --with-kerberos or --without-kerberos was given.
1388 if test "${with_kerberos+set}" = set; then
1389 withval
="$with_kerberos"
1390 cat >>confdefs.h
<<\_ACEOF
1397 # Check whether --with-kerberos5 or --without-kerberos5 was given.
1398 if test "${with_kerberos5+set}" = set; then
1399 withval
="$with_kerberos5"
1400 if test "${with_kerberos5+set}" = set; then
1401 if test "${with_kerberos+set}" != set; then
1403 cat >>confdefs.h
<<\_ACEOF
1410 cat >>confdefs.h
<<\_ACEOF
1416 # Check whether --with-hesiod or --without-hesiod was given.
1417 if test "${with_hesiod+set}" = set; then
1418 withval
="$with_hesiod"
1420 cat >>confdefs.h
<<\_ACEOF
1427 # Check whether --with-sound or --without-sound was given.
1428 if test "${with_sound+set}" = set; then
1429 withval
="$with_sound"
1434 # Check whether --with-x-toolkit or --without-x-toolkit was given.
1435 if test "${with_x_toolkit+set}" = set; then
1436 withval
="$with_x_toolkit"
1437 case "${withval}" in
1438 y | ye |
yes ) val
=athena
;;
1440 l | lu | luc | luci | lucid
) val
=lucid
;;
1441 a |
at | ath | athe | athen | athena
) val
=athena
;;
1442 m | mo | mot | moti | motif
) val
=motif
;;
1443 g | gt | gtk
) val
=gtk
;;
1445 { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid\;
1446 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1447 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&5
1448 echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid\;
1449 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1450 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&2;}
1451 { (exit 1); exit 1; }; }
1458 # Check whether --with-xpm or --without-xpm was given.
1459 if test "${with_xpm+set}" = set; then
1464 # Check whether --with-jpeg or --without-jpeg was given.
1465 if test "${with_jpeg+set}" = set; then
1466 withval
="$with_jpeg"
1470 # Check whether --with-tiff or --without-tiff was given.
1471 if test "${with_tiff+set}" = set; then
1472 withval
="$with_tiff"
1476 # Check whether --with-gif or --without-gif was given.
1477 if test "${with_gif+set}" = set; then
1482 # Check whether --with-png or --without-png was given.
1483 if test "${with_png+set}" = set; then
1488 # Check whether --with-gtk or --without-gtk was given.
1489 if test "${with_gtk+set}" = set; then
1494 # Check whether --with-pkg-config-prog or --without-pkg-config-prog was given.
1495 if test "${with_pkg_config_prog+set}" = set; then
1496 withval
="$with_pkg_config_prog"
1500 # Check whether --with-toolkit-scroll-bars or --without-toolkit-scroll-bars was given.
1501 if test "${with_toolkit_scroll_bars+set}" = set; then
1502 withval
="$with_toolkit_scroll_bars"
1506 # Check whether --with-xim or --without-xim was given.
1507 if test "${with_xim+set}" = set; then
1512 # Check whether --with-carbon or --without-carbon was given.
1513 if test "${with_carbon+set}" = set; then
1514 withval
="$with_carbon"
1517 # Check whether --enable-carbon-app or --disable-carbon-app was given.
1518 if test "${enable_carbon_app+set}" = set; then
1519 enableval
="$enable_carbon_app"
1520 carbon_appdir_x
=${enableval}
1523 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1524 if test "${enable_maintainer_mode+set}" = set; then
1525 enableval
="$enable_maintainer_mode"
1526 USE_MAINTAINER_MODE
=$enableval
1528 USE_MAINTAINER_MODE
=no
1530 if test $USE_MAINTAINER_MODE = yes; then
1537 #### Make srcdir absolute, if it isn't already. It's important to
1538 #### avoid running the path through pwd unnecessarily, since pwd can
1539 #### give you automounter prefixes, which can go away. We do all this
1540 #### so Emacs can find its files when run uninstalled.
1541 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
1546 ## We may be able to use the $PWD environment variable to make this
1547 ## absolute. But sometimes PWD is inaccurate.
1548 ## Note: we used to use ${PWD} at the end instead of `pwd`,
1549 ## but that tested only for a well-formed and valid PWD,
1550 ## it did not object when PWD was well-formed and valid but just wrong.
1551 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
1555 srcdir
="`(cd ${srcdir}; pwd)`"
1558 * ) srcdir
="`(cd ${srcdir}; pwd)`" ;;
1561 #### Check if the source directory already has a configured system in it.
1562 if test `pwd` != `(cd ${srcdir} && pwd)` \
1563 && test -f "${srcdir}/src/config.h" ; then
1564 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
1565 as a build directory right now; it has been configured in its own
1566 right. To configure in another directory as well, you MUST
1567 use GNU make. If you do not have GNU make, then you must
1568 now do \`make distclean' in ${srcdir},
1569 and then run $0 again." >&5
1570 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
1571 as a build directory right now; it has been configured in its own
1572 right. To configure in another directory as well, you MUST
1573 use GNU make. If you do not have GNU make, then you must
1574 now do \`make distclean' in ${srcdir},
1575 and then run $0 again." >&2;}
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
4281 echo "$as_me:$LINENO: checking for /proc/sys/kernel/exec-shield" >&5
4282 echo $ECHO_N "checking for /proc/sys/kernel/exec-shield... $ECHO_C" >&6
4283 if test "${ac_cv_file__proc_sys_kernel_exec_shield+set}" = set; then
4284 echo $ECHO_N "(cached) $ECHO_C" >&6
4286 test "$cross_compiling" = yes &&
4287 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
4288 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
4289 { (exit 1); exit 1; }; }
4290 if test -r "/proc/sys/kernel/exec-shield"; then
4291 ac_cv_file__proc_sys_kernel_exec_shield
=yes
4293 ac_cv_file__proc_sys_kernel_exec_shield
=no
4296 echo "$as_me:$LINENO: result: $ac_cv_file__proc_sys_kernel_exec_shield" >&5
4297 echo "${ECHO_T}$ac_cv_file__proc_sys_kernel_exec_shield" >&6
4298 if test $ac_cv_file__proc_sys_kernel_exec_shield = yes; then
4299 emacs_cv_execshield
=1
4301 emacs_cv_execshield
=0
4304 if test "$emacs_cv_execshield" = 1; then
4305 # Extract the first word of "setarch", so it can be a program name with args.
4306 set dummy setarch
; ac_word
=$2
4307 echo "$as_me:$LINENO: checking for $ac_word" >&5
4308 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4309 if test "${ac_cv_path_SETARCH+set}" = set; then
4310 echo $ECHO_N "(cached) $ECHO_C" >&6
4314 ac_cv_path_SETARCH
="$SETARCH" # Let the user override the test with a path.
4317 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4321 test -z "$as_dir" && as_dir
=.
4322 for ac_exec_ext
in '' $ac_executable_extensions; do
4323 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4324 ac_cv_path_SETARCH
="$as_dir/$ac_word$ac_exec_ext"
4325 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4331 test -z "$ac_cv_path_SETARCH" && ac_cv_path_SETARCH
="no"
4335 SETARCH
=$ac_cv_path_SETARCH
4337 if test -n "$SETARCH"; then
4338 echo "$as_me:$LINENO: result: $SETARCH" >&5
4339 echo "${ECHO_T}$SETARCH" >&6
4341 echo "$as_me:$LINENO: result: no" >&5
4342 echo "${ECHO_T}no" >&6
4346 if test "$setarch" != no
; then
4348 cat >>confdefs.h
<<\_ACEOF
4349 #define HAVE_EXECSHIELD 1
4355 #### Extract some information from the operating system and machine files.
4357 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
4358 - which libraries the lib-src programs will want, and
4359 - whether the GNU malloc routines are usable..." >&5
4360 echo "$as_me: checking the machine- and system-dependent files to find out
4361 - which libraries the lib-src programs will want, and
4362 - whether the GNU malloc routines are usable..." >&6;}
4364 ### First figure out CFLAGS (which we use for running the compiler here)
4365 ### and REAL_CFLAGS (which we use for real compilation).
4366 ### The two are the same except on a few systems, where they are made
4367 ### different to work around various lossages. For example,
4368 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
4369 ### as implying static linking.
4371 ### If the CFLAGS env var is specified, we use that value
4372 ### instead of the default.
4374 ### It's not important that this name contain the PID; you can't run
4375 ### two configures in the same directory and have anything work
4377 tempcname
="conftest.c"
4380 #include "'${srcdir}'/src/'${opsysfile}'"
4381 #include "'${srcdir}'/src/'${machfile}'"
4382 #ifndef LIBS_MACHINE
4383 #define LIBS_MACHINE
4388 #ifndef C_SWITCH_SYSTEM
4389 #define C_SWITCH_SYSTEM
4391 #ifndef C_SWITCH_MACHINE
4392 #define C_SWITCH_MACHINE
4394 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
4395 configure___ c_switch_system=C_SWITCH_SYSTEM
4396 configure___ c_switch_machine=C_SWITCH_MACHINE
4399 #define LIB_X11_LIB -lX11
4402 #ifndef LIBX11_MACHINE
4403 #define LIBX11_MACHINE
4406 #ifndef LIBX11_SYSTEM
4407 #define LIBX11_SYSTEM
4409 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
4412 configure___ unexec=UNEXEC
4414 configure___ unexec=unexec.o
4417 #ifdef SYSTEM_MALLOC
4418 configure___ system_malloc=yes
4420 configure___ system_malloc=no
4423 #ifdef USE_MMAP_FOR_BUFFERS
4424 configure___ use_mmap_for_buffers=yes
4426 configure___ use_mmap_for_buffers=no
4429 #ifndef C_DEBUG_SWITCH
4430 #define C_DEBUG_SWITCH -g
4433 #ifndef C_OPTIMIZE_SWITCH
4435 #define C_OPTIMIZE_SWITCH -O2
4437 #define C_OPTIMIZE_SWITCH -O
4441 #ifndef LD_SWITCH_MACHINE
4442 #define LD_SWITCH_MACHINE
4445 #ifndef LD_SWITCH_SYSTEM
4446 #define LD_SWITCH_SYSTEM
4449 #ifndef LD_SWITCH_X_SITE_AUX
4450 #define LD_SWITCH_X_SITE_AUX
4453 configure___ ld_switch_system=LD_SWITCH_SYSTEM
4454 configure___ ld_switch_machine=LD_SWITCH_MACHINE
4456 #ifdef THIS_IS_CONFIGURE
4458 /* Get the CFLAGS for tests in configure. */
4460 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
4462 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4465 #else /* not THIS_IS_CONFIGURE */
4467 /* Get the CFLAGS for real compilation. */
4469 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
4471 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4474 #endif /* not THIS_IS_CONFIGURE */
4477 # The value of CPP is a quoted variable reference, so we need to do this
4478 # to get its actual value...
4479 CPP
=`eval "echo $CPP"`
4480 eval `${CPP} -Isrc ${tempcname} \
4481 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4482 if test "x$SPECIFIED_CFLAGS" = x
; then
4483 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
4484 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4486 REAL_CFLAGS
="$CFLAGS"
4490 ac_link
="$ac_link $ld_switch_machine $ld_switch_system"
4492 ### Make sure subsequent tests use flags consistent with the build flags.
4494 if test x
"${OVERRIDE_CPPFLAGS}" != x
; then
4495 CPPFLAGS
="${OVERRIDE_CPPFLAGS}"
4497 CPPFLAGS
="$c_switch_system $c_switch_machine $CPPFLAGS"
4503 cat >>confdefs.h
<<\_ACEOF
4504 #define _GNU_SOURCE 1
4509 # Check whether --enable-largefile or --disable-largefile was given.
4510 if test "${enable_largefile+set}" = set; then
4511 enableval
="$enable_largefile"
4514 if test "$enable_largefile" != no
; then
4516 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4517 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
4518 if test "${ac_cv_sys_largefile_CC+set}" = set; then
4519 echo $ECHO_N "(cached) $ECHO_C" >&6
4521 ac_cv_sys_largefile_CC
=no
4522 if test "$GCC" != yes; then
4525 # IRIX 6.2 and later do not support large files by default,
4526 # so use the C compiler's -n32 option if that helps.
4527 cat >conftest.
$ac_ext <<_ACEOF
4530 cat confdefs.h
>>conftest.
$ac_ext
4531 cat >>conftest.
$ac_ext <<_ACEOF
4532 /* end confdefs.h. */
4533 #include <sys/types.h>
4534 /* Check that off_t can represent 2**63 - 1 correctly.
4535 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4536 since some C++ compilers masquerading as C compilers
4537 incorrectly reject 9223372036854775807. */
4538 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4539 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4540 && LARGE_OFF_T % 2147483647 == 1)
4550 rm -f conftest.
$ac_objext
4551 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4552 (eval $ac_compile) 2>conftest.er1
4554 grep -v '^ *+' conftest.er1
>conftest.err
4556 cat conftest.err
>&5
4557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4558 (exit $ac_status); } &&
4559 { ac_try
='test -z "$ac_c_werror_flag"
4560 || test ! -s conftest.err'
4561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4565 (exit $ac_status); }; } &&
4566 { ac_try
='test -s conftest.$ac_objext'
4567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4571 (exit $ac_status); }; }; then
4574 echo "$as_me: failed program was:" >&5
4575 sed 's/^/| /' conftest.
$ac_ext >&5
4578 rm -f conftest.err conftest.
$ac_objext
4580 rm -f conftest.
$ac_objext
4581 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4582 (eval $ac_compile) 2>conftest.er1
4584 grep -v '^ *+' conftest.er1
>conftest.err
4586 cat conftest.err
>&5
4587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4588 (exit $ac_status); } &&
4589 { ac_try
='test -z "$ac_c_werror_flag"
4590 || test ! -s conftest.err'
4591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4595 (exit $ac_status); }; } &&
4596 { ac_try
='test -s conftest.$ac_objext'
4597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4601 (exit $ac_status); }; }; then
4602 ac_cv_sys_largefile_CC
=' -n32'; break
4604 echo "$as_me: failed program was:" >&5
4605 sed 's/^/| /' conftest.
$ac_ext >&5
4608 rm -f conftest.err conftest.
$ac_objext
4612 rm -f conftest.
$ac_ext
4615 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4616 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
4617 if test "$ac_cv_sys_largefile_CC" != no
; then
4618 CC
=$CC$ac_cv_sys_largefile_CC
4621 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4622 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
4623 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4624 echo $ECHO_N "(cached) $ECHO_C" >&6
4627 ac_cv_sys_file_offset_bits
=no
4628 cat >conftest.
$ac_ext <<_ACEOF
4631 cat confdefs.h
>>conftest.
$ac_ext
4632 cat >>conftest.
$ac_ext <<_ACEOF
4633 /* end confdefs.h. */
4634 #include <sys/types.h>
4635 /* Check that off_t can represent 2**63 - 1 correctly.
4636 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4637 since some C++ compilers masquerading as C compilers
4638 incorrectly reject 9223372036854775807. */
4639 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4640 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4641 && LARGE_OFF_T % 2147483647 == 1)
4651 rm -f conftest.
$ac_objext
4652 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4653 (eval $ac_compile) 2>conftest.er1
4655 grep -v '^ *+' conftest.er1
>conftest.err
4657 cat conftest.err
>&5
4658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4659 (exit $ac_status); } &&
4660 { ac_try
='test -z "$ac_c_werror_flag"
4661 || test ! -s conftest.err'
4662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4666 (exit $ac_status); }; } &&
4667 { ac_try
='test -s conftest.$ac_objext'
4668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4672 (exit $ac_status); }; }; then
4675 echo "$as_me: failed program was:" >&5
4676 sed 's/^/| /' conftest.
$ac_ext >&5
4679 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4680 cat >conftest.
$ac_ext <<_ACEOF
4683 cat confdefs.h
>>conftest.
$ac_ext
4684 cat >>conftest.
$ac_ext <<_ACEOF
4685 /* end confdefs.h. */
4686 #define _FILE_OFFSET_BITS 64
4687 #include <sys/types.h>
4688 /* Check that off_t can represent 2**63 - 1 correctly.
4689 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4690 since some C++ compilers masquerading as C compilers
4691 incorrectly reject 9223372036854775807. */
4692 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4693 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4694 && LARGE_OFF_T % 2147483647 == 1)
4704 rm -f conftest.
$ac_objext
4705 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4706 (eval $ac_compile) 2>conftest.er1
4708 grep -v '^ *+' conftest.er1
>conftest.err
4710 cat conftest.err
>&5
4711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4712 (exit $ac_status); } &&
4713 { ac_try
='test -z "$ac_c_werror_flag"
4714 || test ! -s conftest.err'
4715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4719 (exit $ac_status); }; } &&
4720 { ac_try
='test -s conftest.$ac_objext'
4721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4725 (exit $ac_status); }; }; then
4726 ac_cv_sys_file_offset_bits
=64; break
4728 echo "$as_me: failed program was:" >&5
4729 sed 's/^/| /' conftest.
$ac_ext >&5
4732 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4736 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
4737 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
4738 if test "$ac_cv_sys_file_offset_bits" != no
; then
4740 cat >>confdefs.h
<<_ACEOF
4741 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4746 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
4747 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
4748 if test "${ac_cv_sys_large_files+set}" = set; then
4749 echo $ECHO_N "(cached) $ECHO_C" >&6
4752 ac_cv_sys_large_files
=no
4753 cat >conftest.
$ac_ext <<_ACEOF
4756 cat confdefs.h
>>conftest.
$ac_ext
4757 cat >>conftest.
$ac_ext <<_ACEOF
4758 /* end confdefs.h. */
4759 #include <sys/types.h>
4760 /* Check that off_t can represent 2**63 - 1 correctly.
4761 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4762 since some C++ compilers masquerading as C compilers
4763 incorrectly reject 9223372036854775807. */
4764 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4765 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4766 && LARGE_OFF_T % 2147483647 == 1)
4776 rm -f conftest.
$ac_objext
4777 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4778 (eval $ac_compile) 2>conftest.er1
4780 grep -v '^ *+' conftest.er1
>conftest.err
4782 cat conftest.err
>&5
4783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4784 (exit $ac_status); } &&
4785 { ac_try
='test -z "$ac_c_werror_flag"
4786 || test ! -s conftest.err'
4787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4791 (exit $ac_status); }; } &&
4792 { ac_try
='test -s conftest.$ac_objext'
4793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4797 (exit $ac_status); }; }; then
4800 echo "$as_me: failed program was:" >&5
4801 sed 's/^/| /' conftest.
$ac_ext >&5
4804 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4805 cat >conftest.
$ac_ext <<_ACEOF
4808 cat confdefs.h
>>conftest.
$ac_ext
4809 cat >>conftest.
$ac_ext <<_ACEOF
4810 /* end confdefs.h. */
4811 #define _LARGE_FILES 1
4812 #include <sys/types.h>
4813 /* Check that off_t can represent 2**63 - 1 correctly.
4814 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4815 since some C++ compilers masquerading as C compilers
4816 incorrectly reject 9223372036854775807. */
4817 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4818 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4819 && LARGE_OFF_T % 2147483647 == 1)
4829 rm -f conftest.
$ac_objext
4830 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4831 (eval $ac_compile) 2>conftest.er1
4833 grep -v '^ *+' conftest.er1
>conftest.err
4835 cat conftest.err
>&5
4836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4837 (exit $ac_status); } &&
4838 { ac_try
='test -z "$ac_c_werror_flag"
4839 || test ! -s conftest.err'
4840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4844 (exit $ac_status); }; } &&
4845 { ac_try
='test -s conftest.$ac_objext'
4846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4850 (exit $ac_status); }; }; then
4851 ac_cv_sys_large_files
=1; break
4853 echo "$as_me: failed program was:" >&5
4854 sed 's/^/| /' conftest.
$ac_ext >&5
4857 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4861 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
4862 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
4863 if test "$ac_cv_sys_large_files" != no
; then
4865 cat >>confdefs.h
<<_ACEOF
4866 #define _LARGE_FILES $ac_cv_sys_large_files
4874 if test "${with_sound}" != "no"; then
4875 # Sound support for GNU/Linux and the free BSDs.
4876 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4877 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4878 if test "${ac_cv_header_stdc+set}" = set; then
4879 echo $ECHO_N "(cached) $ECHO_C" >&6
4881 cat >conftest.
$ac_ext <<_ACEOF
4884 cat confdefs.h
>>conftest.
$ac_ext
4885 cat >>conftest.
$ac_ext <<_ACEOF
4886 /* end confdefs.h. */
4900 rm -f conftest.
$ac_objext
4901 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4902 (eval $ac_compile) 2>conftest.er1
4904 grep -v '^ *+' conftest.er1
>conftest.err
4906 cat conftest.err
>&5
4907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4908 (exit $ac_status); } &&
4909 { ac_try
='test -z "$ac_c_werror_flag"
4910 || test ! -s conftest.err'
4911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4915 (exit $ac_status); }; } &&
4916 { ac_try
='test -s conftest.$ac_objext'
4917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4921 (exit $ac_status); }; }; then
4922 ac_cv_header_stdc
=yes
4924 echo "$as_me: failed program was:" >&5
4925 sed 's/^/| /' conftest.
$ac_ext >&5
4927 ac_cv_header_stdc
=no
4929 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4931 if test $ac_cv_header_stdc = yes; then
4932 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4933 cat >conftest.
$ac_ext <<_ACEOF
4936 cat confdefs.h
>>conftest.
$ac_ext
4937 cat >>conftest.
$ac_ext <<_ACEOF
4938 /* end confdefs.h. */
4942 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4943 $EGREP "memchr" >/dev
/null
2>&1; then
4946 ac_cv_header_stdc
=no
4952 if test $ac_cv_header_stdc = yes; then
4953 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4954 cat >conftest.
$ac_ext <<_ACEOF
4957 cat confdefs.h
>>conftest.
$ac_ext
4958 cat >>conftest.
$ac_ext <<_ACEOF
4959 /* end confdefs.h. */
4963 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4964 $EGREP "free" >/dev
/null
2>&1; then
4967 ac_cv_header_stdc
=no
4973 if test $ac_cv_header_stdc = yes; then
4974 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4975 if test "$cross_compiling" = yes; then
4978 cat >conftest.
$ac_ext <<_ACEOF
4981 cat confdefs.h
>>conftest.
$ac_ext
4982 cat >>conftest.
$ac_ext <<_ACEOF
4983 /* end confdefs.h. */
4985 #if ((' ' & 0x0FF) == 0x020)
4986 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4987 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4989 # define ISLOWER(c) \
4990 (('a' <= (c) && (c) <= 'i') \
4991 || ('j' <= (c) && (c) <= 'r') \
4992 || ('s' <= (c) && (c) <= 'z'))
4993 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4996 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5001 for (i = 0; i < 256; i++)
5002 if (XOR (islower (i), ISLOWER (i))
5003 || toupper (i) != TOUPPER (i))
5008 rm -f conftest
$ac_exeext
5009 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5010 (eval $ac_link) 2>&5
5012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5013 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5018 (exit $ac_status); }; }; then
5021 echo "$as_me: program exited with status $ac_status" >&5
5022 echo "$as_me: failed program was:" >&5
5023 sed 's/^/| /' conftest.
$ac_ext >&5
5026 ac_cv_header_stdc
=no
5028 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5032 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5033 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5034 if test $ac_cv_header_stdc = yes; then
5036 cat >>confdefs.h
<<\_ACEOF
5037 #define STDC_HEADERS 1
5042 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5052 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5053 inttypes.h stdint.h unistd.h
5055 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5056 echo "$as_me:$LINENO: checking for $ac_header" >&5
5057 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5058 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5059 echo $ECHO_N "(cached) $ECHO_C" >&6
5061 cat >conftest.
$ac_ext <<_ACEOF
5064 cat confdefs.h
>>conftest.
$ac_ext
5065 cat >>conftest.
$ac_ext <<_ACEOF
5066 /* end confdefs.h. */
5067 $ac_includes_default
5069 #include <$ac_header>
5071 rm -f conftest.
$ac_objext
5072 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5073 (eval $ac_compile) 2>conftest.er1
5075 grep -v '^ *+' conftest.er1
>conftest.err
5077 cat conftest.err
>&5
5078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5079 (exit $ac_status); } &&
5080 { ac_try
='test -z "$ac_c_werror_flag"
5081 || test ! -s conftest.err'
5082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5086 (exit $ac_status); }; } &&
5087 { ac_try
='test -s conftest.$ac_objext'
5088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5092 (exit $ac_status); }; }; then
5093 eval "$as_ac_Header=yes"
5095 echo "$as_me: failed program was:" >&5
5096 sed 's/^/| /' conftest.
$ac_ext >&5
5098 eval "$as_ac_Header=no"
5100 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5102 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5103 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5104 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5105 cat >>confdefs.h
<<_ACEOF
5106 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5117 for ac_header
in machine
/soundcard.h sys
/soundcard.h soundcard.h
5119 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5120 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5121 echo "$as_me:$LINENO: checking for $ac_header" >&5
5122 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5123 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5124 echo $ECHO_N "(cached) $ECHO_C" >&6
5126 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5127 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5129 # Is the header compilable?
5130 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5131 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5132 cat >conftest.
$ac_ext <<_ACEOF
5135 cat confdefs.h
>>conftest.
$ac_ext
5136 cat >>conftest.
$ac_ext <<_ACEOF
5137 /* end confdefs.h. */
5138 $ac_includes_default
5139 #include <$ac_header>
5141 rm -f conftest.
$ac_objext
5142 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5143 (eval $ac_compile) 2>conftest.er1
5145 grep -v '^ *+' conftest.er1
>conftest.err
5147 cat conftest.err
>&5
5148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5149 (exit $ac_status); } &&
5150 { ac_try
='test -z "$ac_c_werror_flag"
5151 || test ! -s conftest.err'
5152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5156 (exit $ac_status); }; } &&
5157 { ac_try
='test -s conftest.$ac_objext'
5158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5162 (exit $ac_status); }; }; then
5163 ac_header_compiler
=yes
5165 echo "$as_me: failed program was:" >&5
5166 sed 's/^/| /' conftest.
$ac_ext >&5
5168 ac_header_compiler
=no
5170 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5171 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5172 echo "${ECHO_T}$ac_header_compiler" >&6
5174 # Is the header present?
5175 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5176 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5177 cat >conftest.
$ac_ext <<_ACEOF
5180 cat confdefs.h
>>conftest.
$ac_ext
5181 cat >>conftest.
$ac_ext <<_ACEOF
5182 /* end confdefs.h. */
5183 #include <$ac_header>
5185 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5186 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5188 grep -v '^ *+' conftest.er1
>conftest.err
5190 cat conftest.err
>&5
5191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5192 (exit $ac_status); } >/dev
/null
; then
5193 if test -s conftest.err
; then
5194 ac_cpp_err
=$ac_c_preproc_warn_flag
5195 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
5202 if test -z "$ac_cpp_err"; then
5203 ac_header_preproc
=yes
5205 echo "$as_me: failed program was:" >&5
5206 sed 's/^/| /' conftest.
$ac_ext >&5
5208 ac_header_preproc
=no
5210 rm -f conftest.err conftest.
$ac_ext
5211 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5212 echo "${ECHO_T}$ac_header_preproc" >&6
5214 # So? What about this header?
5215 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5217 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5218 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5219 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5220 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5221 ac_header_preproc
=yes
5224 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5225 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5226 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5227 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5228 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5229 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5230 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5231 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5232 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5233 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5234 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5235 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5238 ## ------------------------------------------ ##
5239 ## Report this to the AC_PACKAGE_NAME lists. ##
5240 ## ------------------------------------------ ##
5243 sed "s/^/$as_me: WARNING: /" >&2
5246 echo "$as_me:$LINENO: checking for $ac_header" >&5
5247 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5248 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5249 echo $ECHO_N "(cached) $ECHO_C" >&6
5251 eval "$as_ac_Header=\$ac_header_preproc"
5253 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5254 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5257 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5258 cat >>confdefs.h
<<_ACEOF
5259 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5266 # Emulation library used on NetBSD.
5267 echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
5268 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
5269 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
5270 echo $ECHO_N "(cached) $ECHO_C" >&6
5272 ac_check_lib_save_LIBS
=$LIBS
5273 LIBS
="-lossaudio $LIBS"
5274 cat >conftest.
$ac_ext <<_ACEOF
5277 cat confdefs.h
>>conftest.
$ac_ext
5278 cat >>conftest.
$ac_ext <<_ACEOF
5279 /* end confdefs.h. */
5281 /* Override any gcc2 internal prototype to avoid an error. */
5285 /* We use char because int might match the return type of a gcc2
5286 builtin and then its argument prototype would still apply. */
5296 rm -f conftest.
$ac_objext conftest
$ac_exeext
5297 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5298 (eval $ac_link) 2>conftest.er1
5300 grep -v '^ *+' conftest.er1
>conftest.err
5302 cat conftest.err
>&5
5303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5304 (exit $ac_status); } &&
5305 { ac_try
='test -z "$ac_c_werror_flag"
5306 || test ! -s conftest.err'
5307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5311 (exit $ac_status); }; } &&
5312 { ac_try
='test -s conftest$ac_exeext'
5313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5317 (exit $ac_status); }; }; then
5318 ac_cv_lib_ossaudio__oss_ioctl
=yes
5320 echo "$as_me: failed program was:" >&5
5321 sed 's/^/| /' conftest.
$ac_ext >&5
5323 ac_cv_lib_ossaudio__oss_ioctl
=no
5325 rm -f conftest.err conftest.
$ac_objext \
5326 conftest
$ac_exeext conftest.
$ac_ext
5327 LIBS
=$ac_check_lib_save_LIBS
5329 echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
5330 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
5331 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
5363 for ac_header
in sys
/select.h sys
/timeb.h sys
/time.h unistd.h utime.h \
5364 linux
/version.h sys
/systeminfo.h termios.h limits.h string.h stdlib.h \
5365 termcap.h stdio_ext.h fcntl.h
strings.h coff.h pty.h sys
/mman.h \
5366 sys
/param.h sys
/vlimit.h sys
/resource.h locale.h sys
/_mbstate_t.h
5368 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5369 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5370 echo "$as_me:$LINENO: checking for $ac_header" >&5
5371 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5372 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5373 echo $ECHO_N "(cached) $ECHO_C" >&6
5375 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5376 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5378 # Is the header compilable?
5379 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5380 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5381 cat >conftest.
$ac_ext <<_ACEOF
5384 cat confdefs.h
>>conftest.
$ac_ext
5385 cat >>conftest.
$ac_ext <<_ACEOF
5386 /* end confdefs.h. */
5387 $ac_includes_default
5388 #include <$ac_header>
5390 rm -f conftest.
$ac_objext
5391 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5392 (eval $ac_compile) 2>conftest.er1
5394 grep -v '^ *+' conftest.er1
>conftest.err
5396 cat conftest.err
>&5
5397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5398 (exit $ac_status); } &&
5399 { ac_try
='test -z "$ac_c_werror_flag"
5400 || test ! -s conftest.err'
5401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5405 (exit $ac_status); }; } &&
5406 { ac_try
='test -s conftest.$ac_objext'
5407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5411 (exit $ac_status); }; }; then
5412 ac_header_compiler
=yes
5414 echo "$as_me: failed program was:" >&5
5415 sed 's/^/| /' conftest.
$ac_ext >&5
5417 ac_header_compiler
=no
5419 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5420 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5421 echo "${ECHO_T}$ac_header_compiler" >&6
5423 # Is the header present?
5424 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5425 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5426 cat >conftest.
$ac_ext <<_ACEOF
5429 cat confdefs.h
>>conftest.
$ac_ext
5430 cat >>conftest.
$ac_ext <<_ACEOF
5431 /* end confdefs.h. */
5432 #include <$ac_header>
5434 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5435 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5437 grep -v '^ *+' conftest.er1
>conftest.err
5439 cat conftest.err
>&5
5440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5441 (exit $ac_status); } >/dev
/null
; then
5442 if test -s conftest.err
; then
5443 ac_cpp_err
=$ac_c_preproc_warn_flag
5444 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
5451 if test -z "$ac_cpp_err"; then
5452 ac_header_preproc
=yes
5454 echo "$as_me: failed program was:" >&5
5455 sed 's/^/| /' conftest.
$ac_ext >&5
5457 ac_header_preproc
=no
5459 rm -f conftest.err conftest.
$ac_ext
5460 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5461 echo "${ECHO_T}$ac_header_preproc" >&6
5463 # So? What about this header?
5464 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5466 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5467 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5468 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5469 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5470 ac_header_preproc
=yes
5473 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5474 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5475 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5476 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5477 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5478 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5479 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5480 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5481 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5482 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5483 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5484 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5487 ## ------------------------------------------ ##
5488 ## Report this to the AC_PACKAGE_NAME lists. ##
5489 ## ------------------------------------------ ##
5492 sed "s/^/$as_me: WARNING: /" >&2
5495 echo "$as_me:$LINENO: checking for $ac_header" >&5
5496 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5497 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5498 echo $ECHO_N "(cached) $ECHO_C" >&6
5500 eval "$as_ac_Header=\$ac_header_preproc"
5502 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5503 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5506 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5507 cat >>confdefs.h
<<_ACEOF
5508 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5516 for ac_header
in term.h
5518 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5519 echo "$as_me:$LINENO: checking for $ac_header" >&5
5520 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5521 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5522 echo $ECHO_N "(cached) $ECHO_C" >&6
5524 cat >conftest.
$ac_ext <<_ACEOF
5527 cat confdefs.h
>>conftest.
$ac_ext
5528 cat >>conftest.
$ac_ext <<_ACEOF
5529 /* end confdefs.h. */
5530 #include <$ac_header>
5532 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5533 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5535 grep -v '^ *+' conftest.er1
>conftest.err
5537 cat conftest.err
>&5
5538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5539 (exit $ac_status); } >/dev
/null
; then
5540 if test -s conftest.err
; then
5541 ac_cpp_err
=$ac_c_preproc_warn_flag
5542 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
5549 if test -z "$ac_cpp_err"; then
5550 eval "$as_ac_Header=yes"
5552 echo "$as_me: failed program was:" >&5
5553 sed 's/^/| /' conftest.
$ac_ext >&5
5555 eval "$as_ac_Header=no"
5557 rm -f conftest.err conftest.
$ac_ext
5559 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5560 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5561 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5562 cat >>confdefs.h
<<_ACEOF
5563 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5570 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5571 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5572 if test "${ac_cv_header_stdc+set}" = set; then
5573 echo $ECHO_N "(cached) $ECHO_C" >&6
5575 cat >conftest.
$ac_ext <<_ACEOF
5578 cat confdefs.h
>>conftest.
$ac_ext
5579 cat >>conftest.
$ac_ext <<_ACEOF
5580 /* end confdefs.h. */
5594 rm -f conftest.
$ac_objext
5595 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5596 (eval $ac_compile) 2>conftest.er1
5598 grep -v '^ *+' conftest.er1
>conftest.err
5600 cat conftest.err
>&5
5601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5602 (exit $ac_status); } &&
5603 { ac_try
='test -z "$ac_c_werror_flag"
5604 || test ! -s conftest.err'
5605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5609 (exit $ac_status); }; } &&
5610 { ac_try
='test -s conftest.$ac_objext'
5611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5615 (exit $ac_status); }; }; then
5616 ac_cv_header_stdc
=yes
5618 echo "$as_me: failed program was:" >&5
5619 sed 's/^/| /' conftest.
$ac_ext >&5
5621 ac_cv_header_stdc
=no
5623 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5625 if test $ac_cv_header_stdc = yes; then
5626 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5627 cat >conftest.
$ac_ext <<_ACEOF
5630 cat confdefs.h
>>conftest.
$ac_ext
5631 cat >>conftest.
$ac_ext <<_ACEOF
5632 /* end confdefs.h. */
5636 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5637 $EGREP "memchr" >/dev
/null
2>&1; then
5640 ac_cv_header_stdc
=no
5646 if test $ac_cv_header_stdc = yes; then
5647 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5648 cat >conftest.
$ac_ext <<_ACEOF
5651 cat confdefs.h
>>conftest.
$ac_ext
5652 cat >>conftest.
$ac_ext <<_ACEOF
5653 /* end confdefs.h. */
5657 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5658 $EGREP "free" >/dev
/null
2>&1; then
5661 ac_cv_header_stdc
=no
5667 if test $ac_cv_header_stdc = yes; then
5668 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5669 if test "$cross_compiling" = yes; then
5672 cat >conftest.
$ac_ext <<_ACEOF
5675 cat confdefs.h
>>conftest.
$ac_ext
5676 cat >>conftest.
$ac_ext <<_ACEOF
5677 /* end confdefs.h. */
5679 #if ((' ' & 0x0FF) == 0x020)
5680 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5681 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5683 # define ISLOWER(c) \
5684 (('a' <= (c) && (c) <= 'i') \
5685 || ('j' <= (c) && (c) <= 'r') \
5686 || ('s' <= (c) && (c) <= 'z'))
5687 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5690 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5695 for (i = 0; i < 256; i++)
5696 if (XOR (islower (i), ISLOWER (i))
5697 || toupper (i) != TOUPPER (i))
5702 rm -f conftest
$ac_exeext
5703 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5704 (eval $ac_link) 2>&5
5706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5707 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5712 (exit $ac_status); }; }; then
5715 echo "$as_me: program exited with status $ac_status" >&5
5716 echo "$as_me: failed program was:" >&5
5717 sed 's/^/| /' conftest.
$ac_ext >&5
5720 ac_cv_header_stdc
=no
5722 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5726 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5727 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5728 if test $ac_cv_header_stdc = yes; then
5730 cat >>confdefs.h
<<\_ACEOF
5731 #define STDC_HEADERS 1
5736 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
5737 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
5738 if test "${ac_cv_header_time+set}" = set; then
5739 echo $ECHO_N "(cached) $ECHO_C" >&6
5741 cat >conftest.
$ac_ext <<_ACEOF
5744 cat confdefs.h
>>conftest.
$ac_ext
5745 cat >>conftest.
$ac_ext <<_ACEOF
5746 /* end confdefs.h. */
5747 #include <sys/types.h>
5748 #include <sys/time.h>
5754 if ((struct tm *) 0)
5760 rm -f conftest.
$ac_objext
5761 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5762 (eval $ac_compile) 2>conftest.er1
5764 grep -v '^ *+' conftest.er1
>conftest.err
5766 cat conftest.err
>&5
5767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5768 (exit $ac_status); } &&
5769 { ac_try
='test -z "$ac_c_werror_flag"
5770 || test ! -s conftest.err'
5771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5775 (exit $ac_status); }; } &&
5776 { ac_try
='test -s conftest.$ac_objext'
5777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5781 (exit $ac_status); }; }; then
5782 ac_cv_header_time
=yes
5784 echo "$as_me: failed program was:" >&5
5785 sed 's/^/| /' conftest.
$ac_ext >&5
5787 ac_cv_header_time
=no
5789 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5791 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
5792 echo "${ECHO_T}$ac_cv_header_time" >&6
5793 if test $ac_cv_header_time = yes; then
5795 cat >>confdefs.h
<<\_ACEOF
5796 #define TIME_WITH_SYS_TIME 1
5801 echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
5802 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6
5803 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
5804 echo $ECHO_N "(cached) $ECHO_C" >&6
5806 cat >conftest.
$ac_ext <<_ACEOF
5809 cat confdefs.h
>>conftest.
$ac_ext
5810 cat >>conftest.
$ac_ext <<_ACEOF
5811 /* end confdefs.h. */
5812 $ac_includes_default
5817 char *p = (char *) sys_siglist;
5824 rm -f conftest.
$ac_objext
5825 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5826 (eval $ac_compile) 2>conftest.er1
5828 grep -v '^ *+' conftest.er1
>conftest.err
5830 cat conftest.err
>&5
5831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5832 (exit $ac_status); } &&
5833 { ac_try
='test -z "$ac_c_werror_flag"
5834 || test ! -s conftest.err'
5835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5839 (exit $ac_status); }; } &&
5840 { ac_try
='test -s conftest.$ac_objext'
5841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5845 (exit $ac_status); }; }; then
5846 ac_cv_have_decl_sys_siglist
=yes
5848 echo "$as_me: failed program was:" >&5
5849 sed 's/^/| /' conftest.
$ac_ext >&5
5851 ac_cv_have_decl_sys_siglist
=no
5853 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5855 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
5856 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6
5857 if test $ac_cv_have_decl_sys_siglist = yes; then
5859 cat >>confdefs.h
<<_ACEOF
5860 #define HAVE_DECL_SYS_SIGLIST 1
5865 cat >>confdefs.h
<<_ACEOF
5866 #define HAVE_DECL_SYS_SIGLIST 0
5873 if test $ac_cv_have_decl_sys_siglist != yes; then
5874 # For Tru64, at least:
5875 echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
5876 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6
5877 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
5878 echo $ECHO_N "(cached) $ECHO_C" >&6
5880 cat >conftest.
$ac_ext <<_ACEOF
5883 cat confdefs.h
>>conftest.
$ac_ext
5884 cat >>conftest.
$ac_ext <<_ACEOF
5885 /* end confdefs.h. */
5886 $ac_includes_default
5890 #ifndef __sys_siglist
5891 char *p = (char *) __sys_siglist;
5898 rm -f conftest.
$ac_objext
5899 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5900 (eval $ac_compile) 2>conftest.er1
5902 grep -v '^ *+' conftest.er1
>conftest.err
5904 cat conftest.err
>&5
5905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5906 (exit $ac_status); } &&
5907 { ac_try
='test -z "$ac_c_werror_flag"
5908 || test ! -s conftest.err'
5909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5913 (exit $ac_status); }; } &&
5914 { ac_try
='test -s conftest.$ac_objext'
5915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5919 (exit $ac_status); }; }; then
5920 ac_cv_have_decl___sys_siglist
=yes
5922 echo "$as_me: failed program was:" >&5
5923 sed 's/^/| /' conftest.
$ac_ext >&5
5925 ac_cv_have_decl___sys_siglist
=no
5927 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5929 echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
5930 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6
5931 if test $ac_cv_have_decl___sys_siglist = yes; then
5933 cat >>confdefs.h
<<_ACEOF
5934 #define HAVE_DECL___SYS_SIGLIST 1
5939 cat >>confdefs.h
<<_ACEOF
5940 #define HAVE_DECL___SYS_SIGLIST 0
5947 if test $ac_cv_have_decl___sys_siglist = yes; then
5949 cat >>confdefs.h
<<\_ACEOF
5950 #define sys_siglist __sys_siglist
5955 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
5956 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
5957 if test "${ac_cv_header_sys_wait_h+set}" = set; then
5958 echo $ECHO_N "(cached) $ECHO_C" >&6
5960 cat >conftest.
$ac_ext <<_ACEOF
5963 cat confdefs.h
>>conftest.
$ac_ext
5964 cat >>conftest.
$ac_ext <<_ACEOF
5965 /* end confdefs.h. */
5966 #include <sys/types.h>
5967 #include <sys/wait.h>
5969 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
5972 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5980 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5985 rm -f conftest.
$ac_objext
5986 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5987 (eval $ac_compile) 2>conftest.er1
5989 grep -v '^ *+' conftest.er1
>conftest.err
5991 cat conftest.err
>&5
5992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5993 (exit $ac_status); } &&
5994 { ac_try
='test -z "$ac_c_werror_flag"
5995 || test ! -s conftest.err'
5996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6000 (exit $ac_status); }; } &&
6001 { ac_try
='test -s conftest.$ac_objext'
6002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6006 (exit $ac_status); }; }; then
6007 ac_cv_header_sys_wait_h
=yes
6009 echo "$as_me: failed program was:" >&5
6010 sed 's/^/| /' conftest.
$ac_ext >&5
6012 ac_cv_header_sys_wait_h
=no
6014 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6016 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
6017 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
6018 if test $ac_cv_header_sys_wait_h = yes; then
6020 cat >>confdefs.h
<<\_ACEOF
6021 #define HAVE_SYS_WAIT_H 1
6027 echo "$as_me:$LINENO: checking for struct utimbuf" >&5
6028 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6
6029 if test "${emacs_cv_struct_utimbuf+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 #ifdef TIME_WITH_SYS_TIME
6039 #include <sys/time.h>
6042 #ifdef HAVE_SYS_TIME_H
6043 #include <sys/time.h>
6054 static struct utimbuf x; x.actime = x.modtime;
6059 rm -f conftest.
$ac_objext
6060 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6061 (eval $ac_compile) 2>conftest.er1
6063 grep -v '^ *+' conftest.er1
>conftest.err
6065 cat conftest.err
>&5
6066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6067 (exit $ac_status); } &&
6068 { ac_try
='test -z "$ac_c_werror_flag"
6069 || test ! -s conftest.err'
6070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6074 (exit $ac_status); }; } &&
6075 { ac_try
='test -s conftest.$ac_objext'
6076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6080 (exit $ac_status); }; }; then
6081 emacs_cv_struct_utimbuf
=yes
6083 echo "$as_me: failed program was:" >&5
6084 sed 's/^/| /' conftest.
$ac_ext >&5
6086 emacs_cv_struct_utimbuf
=no
6088 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6090 echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
6091 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6
6092 if test $emacs_cv_struct_utimbuf = yes; then
6094 cat >>confdefs.h
<<\_ACEOF
6095 #define HAVE_STRUCT_UTIMBUF 1
6100 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6101 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
6102 if test "${ac_cv_type_signal+set}" = set; then
6103 echo $ECHO_N "(cached) $ECHO_C" >&6
6105 cat >conftest.
$ac_ext <<_ACEOF
6108 cat confdefs.h
>>conftest.
$ac_ext
6109 cat >>conftest.
$ac_ext <<_ACEOF
6110 /* end confdefs.h. */
6111 #include <sys/types.h>
6117 extern "C" void (*signal (int, void (*)(int)))(int);
6119 void (*signal ()) ();
6130 rm -f conftest.
$ac_objext
6131 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6132 (eval $ac_compile) 2>conftest.er1
6134 grep -v '^ *+' conftest.er1
>conftest.err
6136 cat conftest.err
>&5
6137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6138 (exit $ac_status); } &&
6139 { ac_try
='test -z "$ac_c_werror_flag"
6140 || test ! -s conftest.err'
6141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6145 (exit $ac_status); }; } &&
6146 { ac_try
='test -s conftest.$ac_objext'
6147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6151 (exit $ac_status); }; }; then
6152 ac_cv_type_signal
=void
6154 echo "$as_me: failed program was:" >&5
6155 sed 's/^/| /' conftest.
$ac_ext >&5
6157 ac_cv_type_signal
=int
6159 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6161 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6162 echo "${ECHO_T}$ac_cv_type_signal" >&6
6164 cat >>confdefs.h
<<_ACEOF
6165 #define RETSIGTYPE $ac_cv_type_signal
6170 echo "$as_me:$LINENO: checking for speed_t" >&5
6171 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6
6172 if test "${emacs_cv_speed_t+set}" = set; then
6173 echo $ECHO_N "(cached) $ECHO_C" >&6
6175 cat >conftest.
$ac_ext <<_ACEOF
6178 cat confdefs.h
>>conftest.
$ac_ext
6179 cat >>conftest.
$ac_ext <<_ACEOF
6180 /* end confdefs.h. */
6181 #include <termios.h>
6190 rm -f conftest.
$ac_objext
6191 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6192 (eval $ac_compile) 2>conftest.er1
6194 grep -v '^ *+' conftest.er1
>conftest.err
6196 cat conftest.err
>&5
6197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6198 (exit $ac_status); } &&
6199 { ac_try
='test -z "$ac_c_werror_flag"
6200 || test ! -s conftest.err'
6201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6205 (exit $ac_status); }; } &&
6206 { ac_try
='test -s conftest.$ac_objext'
6207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6211 (exit $ac_status); }; }; then
6212 emacs_cv_speed_t
=yes
6214 echo "$as_me: failed program was:" >&5
6215 sed 's/^/| /' conftest.
$ac_ext >&5
6219 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6221 echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
6222 echo "${ECHO_T}$emacs_cv_speed_t" >&6
6223 if test $emacs_cv_speed_t = yes; then
6225 cat >>confdefs.h
<<\_ACEOF
6226 #define HAVE_SPEED_T 1
6231 echo "$as_me:$LINENO: checking for struct timeval" >&5
6232 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6
6233 if test "${emacs_cv_struct_timeval+set}" = set; then
6234 echo $ECHO_N "(cached) $ECHO_C" >&6
6236 cat >conftest.
$ac_ext <<_ACEOF
6239 cat confdefs.h
>>conftest.
$ac_ext
6240 cat >>conftest.
$ac_ext <<_ACEOF
6241 /* end confdefs.h. */
6242 #ifdef TIME_WITH_SYS_TIME
6243 #include <sys/time.h>
6246 #ifdef HAVE_SYS_TIME_H
6247 #include <sys/time.h>
6255 static struct timeval x; x.tv_sec = x.tv_usec;
6260 rm -f conftest.
$ac_objext
6261 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6262 (eval $ac_compile) 2>conftest.er1
6264 grep -v '^ *+' conftest.er1
>conftest.err
6266 cat conftest.err
>&5
6267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6268 (exit $ac_status); } &&
6269 { ac_try
='test -z "$ac_c_werror_flag"
6270 || test ! -s conftest.err'
6271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6275 (exit $ac_status); }; } &&
6276 { ac_try
='test -s conftest.$ac_objext'
6277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6281 (exit $ac_status); }; }; then
6282 emacs_cv_struct_timeval
=yes
6284 echo "$as_me: failed program was:" >&5
6285 sed 's/^/| /' conftest.
$ac_ext >&5
6287 emacs_cv_struct_timeval
=no
6289 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6291 echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
6292 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6
6293 HAVE_TIMEVAL
=$emacs_cv_struct_timeval
6294 if test $emacs_cv_struct_timeval = yes; then
6296 cat >>confdefs.h
<<\_ACEOF
6297 #define HAVE_TIMEVAL 1
6302 echo "$as_me:$LINENO: checking for struct exception" >&5
6303 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6
6304 if test "${emacs_cv_struct_exception+set}" = set; then
6305 echo $ECHO_N "(cached) $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. */
6317 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
6322 rm -f conftest.
$ac_objext
6323 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6324 (eval $ac_compile) 2>conftest.er1
6326 grep -v '^ *+' conftest.er1
>conftest.err
6328 cat conftest.err
>&5
6329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6330 (exit $ac_status); } &&
6331 { ac_try
='test -z "$ac_c_werror_flag"
6332 || test ! -s conftest.err'
6333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6337 (exit $ac_status); }; } &&
6338 { ac_try
='test -s conftest.$ac_objext'
6339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6343 (exit $ac_status); }; }; then
6344 emacs_cv_struct_exception
=yes
6346 echo "$as_me: failed program was:" >&5
6347 sed 's/^/| /' conftest.
$ac_ext >&5
6349 emacs_cv_struct_exception
=no
6351 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6353 echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
6354 echo "${ECHO_T}$emacs_cv_struct_exception" >&6
6355 HAVE_EXCEPTION
=$emacs_cv_struct_exception
6356 if test $emacs_cv_struct_exception != yes; then
6358 cat >>confdefs.h
<<\_ACEOF
6359 #define NO_MATHERR 1
6365 for ac_header
in sys
/socket.h
6367 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6368 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6369 echo "$as_me:$LINENO: checking for $ac_header" >&5
6370 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6371 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6372 echo $ECHO_N "(cached) $ECHO_C" >&6
6374 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6375 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6377 # Is the header compilable?
6378 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6379 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6380 cat >conftest.
$ac_ext <<_ACEOF
6383 cat confdefs.h
>>conftest.
$ac_ext
6384 cat >>conftest.
$ac_ext <<_ACEOF
6385 /* end confdefs.h. */
6386 $ac_includes_default
6387 #include <$ac_header>
6389 rm -f conftest.
$ac_objext
6390 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6391 (eval $ac_compile) 2>conftest.er1
6393 grep -v '^ *+' conftest.er1
>conftest.err
6395 cat conftest.err
>&5
6396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6397 (exit $ac_status); } &&
6398 { ac_try
='test -z "$ac_c_werror_flag"
6399 || test ! -s conftest.err'
6400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6404 (exit $ac_status); }; } &&
6405 { ac_try
='test -s conftest.$ac_objext'
6406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6410 (exit $ac_status); }; }; then
6411 ac_header_compiler
=yes
6413 echo "$as_me: failed program was:" >&5
6414 sed 's/^/| /' conftest.
$ac_ext >&5
6416 ac_header_compiler
=no
6418 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6419 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6420 echo "${ECHO_T}$ac_header_compiler" >&6
6422 # Is the header present?
6423 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6424 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6425 cat >conftest.
$ac_ext <<_ACEOF
6428 cat confdefs.h
>>conftest.
$ac_ext
6429 cat >>conftest.
$ac_ext <<_ACEOF
6430 /* end confdefs.h. */
6431 #include <$ac_header>
6433 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6434 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6436 grep -v '^ *+' conftest.er1
>conftest.err
6438 cat conftest.err
>&5
6439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6440 (exit $ac_status); } >/dev
/null
; then
6441 if test -s conftest.err
; then
6442 ac_cpp_err
=$ac_c_preproc_warn_flag
6443 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6450 if test -z "$ac_cpp_err"; then
6451 ac_header_preproc
=yes
6453 echo "$as_me: failed program was:" >&5
6454 sed 's/^/| /' conftest.
$ac_ext >&5
6456 ac_header_preproc
=no
6458 rm -f conftest.err conftest.
$ac_ext
6459 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6460 echo "${ECHO_T}$ac_header_preproc" >&6
6462 # So? What about this header?
6463 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6465 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6466 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6467 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6468 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6469 ac_header_preproc
=yes
6472 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6473 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6474 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6475 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6476 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6477 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6478 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6479 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6480 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6481 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6482 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6483 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6486 ## ------------------------------------------ ##
6487 ## Report this to the AC_PACKAGE_NAME lists. ##
6488 ## ------------------------------------------ ##
6491 sed "s/^/$as_me: WARNING: /" >&2
6494 echo "$as_me:$LINENO: checking for $ac_header" >&5
6495 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6496 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6497 echo $ECHO_N "(cached) $ECHO_C" >&6
6499 eval "$as_ac_Header=\$ac_header_preproc"
6501 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6502 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6505 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6506 cat >>confdefs.h
<<_ACEOF
6507 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6515 for ac_header
in net
/if.h
6517 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6518 echo "$as_me:$LINENO: checking for $ac_header" >&5
6519 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6520 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6521 echo $ECHO_N "(cached) $ECHO_C" >&6
6523 cat >conftest.
$ac_ext <<_ACEOF
6526 cat confdefs.h
>>conftest.
$ac_ext
6527 cat >>conftest.
$ac_ext <<_ACEOF
6528 /* end confdefs.h. */
6529 $ac_includes_default
6530 #if HAVE_SYS_SOCKET_H
6531 #include <sys/socket.h>
6534 #include <$ac_header>
6536 rm -f conftest.
$ac_objext
6537 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6538 (eval $ac_compile) 2>conftest.er1
6540 grep -v '^ *+' conftest.er1
>conftest.err
6542 cat conftest.err
>&5
6543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6544 (exit $ac_status); } &&
6545 { ac_try
='test -z "$ac_c_werror_flag"
6546 || test ! -s conftest.err'
6547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6551 (exit $ac_status); }; } &&
6552 { ac_try
='test -s conftest.$ac_objext'
6553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6557 (exit $ac_status); }; }; then
6558 eval "$as_ac_Header=yes"
6560 echo "$as_me: failed program was:" >&5
6561 sed 's/^/| /' conftest.
$ac_ext >&5
6563 eval "$as_ac_Header=no"
6565 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6567 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6568 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6569 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6570 cat >>confdefs.h
<<_ACEOF
6571 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6579 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
6580 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
6581 if test "${ac_cv_struct_tm+set}" = set; then
6582 echo $ECHO_N "(cached) $ECHO_C" >&6
6584 cat >conftest.
$ac_ext <<_ACEOF
6587 cat confdefs.h
>>conftest.
$ac_ext
6588 cat >>conftest.
$ac_ext <<_ACEOF
6589 /* end confdefs.h. */
6590 #include <sys/types.h>
6596 struct tm *tp; tp->tm_sec;
6601 rm -f conftest.
$ac_objext
6602 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6603 (eval $ac_compile) 2>conftest.er1
6605 grep -v '^ *+' conftest.er1
>conftest.err
6607 cat conftest.err
>&5
6608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6609 (exit $ac_status); } &&
6610 { ac_try
='test -z "$ac_c_werror_flag"
6611 || test ! -s conftest.err'
6612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6616 (exit $ac_status); }; } &&
6617 { ac_try
='test -s conftest.$ac_objext'
6618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6622 (exit $ac_status); }; }; then
6623 ac_cv_struct_tm
=time.h
6625 echo "$as_me: failed program was:" >&5
6626 sed 's/^/| /' conftest.
$ac_ext >&5
6628 ac_cv_struct_tm
=sys
/time.h
6630 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6632 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
6633 echo "${ECHO_T}$ac_cv_struct_tm" >&6
6634 if test $ac_cv_struct_tm = sys
/time.h
; then
6636 cat >>confdefs.h
<<\_ACEOF
6637 #define TM_IN_SYS_TIME 1
6642 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
6643 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
6644 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
6645 echo $ECHO_N "(cached) $ECHO_C" >&6
6647 cat >conftest.
$ac_ext <<_ACEOF
6650 cat confdefs.h
>>conftest.
$ac_ext
6651 cat >>conftest.
$ac_ext <<_ACEOF
6652 /* end confdefs.h. */
6653 #include <sys/types.h>
6654 #include <$ac_cv_struct_tm>
6660 static struct tm ac_aggr;
6661 if (ac_aggr.tm_zone)
6667 rm -f conftest.
$ac_objext
6668 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6669 (eval $ac_compile) 2>conftest.er1
6671 grep -v '^ *+' conftest.er1
>conftest.err
6673 cat conftest.err
>&5
6674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6675 (exit $ac_status); } &&
6676 { ac_try
='test -z "$ac_c_werror_flag"
6677 || test ! -s conftest.err'
6678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6682 (exit $ac_status); }; } &&
6683 { ac_try
='test -s conftest.$ac_objext'
6684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6688 (exit $ac_status); }; }; then
6689 ac_cv_member_struct_tm_tm_zone
=yes
6691 echo "$as_me: failed program was:" >&5
6692 sed 's/^/| /' conftest.
$ac_ext >&5
6694 cat >conftest.
$ac_ext <<_ACEOF
6697 cat confdefs.h
>>conftest.
$ac_ext
6698 cat >>conftest.
$ac_ext <<_ACEOF
6699 /* end confdefs.h. */
6700 #include <sys/types.h>
6701 #include <$ac_cv_struct_tm>
6707 static struct tm ac_aggr;
6708 if (sizeof ac_aggr.tm_zone)
6714 rm -f conftest.
$ac_objext
6715 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6716 (eval $ac_compile) 2>conftest.er1
6718 grep -v '^ *+' conftest.er1
>conftest.err
6720 cat conftest.err
>&5
6721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6722 (exit $ac_status); } &&
6723 { ac_try
='test -z "$ac_c_werror_flag"
6724 || test ! -s conftest.err'
6725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6729 (exit $ac_status); }; } &&
6730 { ac_try
='test -s conftest.$ac_objext'
6731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6735 (exit $ac_status); }; }; then
6736 ac_cv_member_struct_tm_tm_zone
=yes
6738 echo "$as_me: failed program was:" >&5
6739 sed 's/^/| /' conftest.
$ac_ext >&5
6741 ac_cv_member_struct_tm_tm_zone
=no
6743 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6745 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6747 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
6748 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
6749 if test $ac_cv_member_struct_tm_tm_zone = yes; then
6751 cat >>confdefs.h
<<_ACEOF
6752 #define HAVE_STRUCT_TM_TM_ZONE 1
6758 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6760 cat >>confdefs.h
<<\_ACEOF
6761 #define HAVE_TM_ZONE 1
6765 echo "$as_me:$LINENO: checking for tzname" >&5
6766 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
6767 if test "${ac_cv_var_tzname+set}" = set; then
6768 echo $ECHO_N "(cached) $ECHO_C" >&6
6770 cat >conftest.
$ac_ext <<_ACEOF
6773 cat confdefs.h
>>conftest.
$ac_ext
6774 cat >>conftest.
$ac_ext <<_ACEOF
6775 /* end confdefs.h. */
6777 #ifndef tzname /* For SGI. */
6778 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
6789 rm -f conftest.
$ac_objext conftest
$ac_exeext
6790 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6791 (eval $ac_link) 2>conftest.er1
6793 grep -v '^ *+' conftest.er1
>conftest.err
6795 cat conftest.err
>&5
6796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6797 (exit $ac_status); } &&
6798 { ac_try
='test -z "$ac_c_werror_flag"
6799 || test ! -s conftest.err'
6800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6804 (exit $ac_status); }; } &&
6805 { ac_try
='test -s conftest$ac_exeext'
6806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6810 (exit $ac_status); }; }; then
6811 ac_cv_var_tzname
=yes
6813 echo "$as_me: failed program was:" >&5
6814 sed 's/^/| /' conftest.
$ac_ext >&5
6818 rm -f conftest.err conftest.
$ac_objext \
6819 conftest
$ac_exeext conftest.
$ac_ext
6821 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
6822 echo "${ECHO_T}$ac_cv_var_tzname" >&6
6823 if test $ac_cv_var_tzname = yes; then
6825 cat >>confdefs.h
<<\_ACEOF
6826 #define HAVE_TZNAME 1
6832 echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
6833 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6
6834 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
6835 echo $ECHO_N "(cached) $ECHO_C" >&6
6837 cat >conftest.
$ac_ext <<_ACEOF
6840 cat confdefs.h
>>conftest.
$ac_ext
6841 cat >>conftest.
$ac_ext <<_ACEOF
6842 /* end confdefs.h. */
6848 static struct tm ac_aggr;
6849 if (ac_aggr.tm_gmtoff)
6855 rm -f conftest.
$ac_objext
6856 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6857 (eval $ac_compile) 2>conftest.er1
6859 grep -v '^ *+' conftest.er1
>conftest.err
6861 cat conftest.err
>&5
6862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6863 (exit $ac_status); } &&
6864 { ac_try
='test -z "$ac_c_werror_flag"
6865 || test ! -s conftest.err'
6866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6870 (exit $ac_status); }; } &&
6871 { ac_try
='test -s conftest.$ac_objext'
6872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6876 (exit $ac_status); }; }; then
6877 ac_cv_member_struct_tm_tm_gmtoff
=yes
6879 echo "$as_me: failed program was:" >&5
6880 sed 's/^/| /' conftest.
$ac_ext >&5
6882 cat >conftest.
$ac_ext <<_ACEOF
6885 cat confdefs.h
>>conftest.
$ac_ext
6886 cat >>conftest.
$ac_ext <<_ACEOF
6887 /* end confdefs.h. */
6893 static struct tm ac_aggr;
6894 if (sizeof ac_aggr.tm_gmtoff)
6900 rm -f conftest.
$ac_objext
6901 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6902 (eval $ac_compile) 2>conftest.er1
6904 grep -v '^ *+' conftest.er1
>conftest.err
6906 cat conftest.err
>&5
6907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6908 (exit $ac_status); } &&
6909 { ac_try
='test -z "$ac_c_werror_flag"
6910 || test ! -s conftest.err'
6911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6915 (exit $ac_status); }; } &&
6916 { ac_try
='test -s conftest.$ac_objext'
6917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6921 (exit $ac_status); }; }; then
6922 ac_cv_member_struct_tm_tm_gmtoff
=yes
6924 echo "$as_me: failed program was:" >&5
6925 sed 's/^/| /' conftest.
$ac_ext >&5
6927 ac_cv_member_struct_tm_tm_gmtoff
=no
6929 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6931 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6933 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
6934 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6
6935 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
6937 cat >>confdefs.h
<<\_ACEOF
6938 #define HAVE_TM_GMTOFF 1
6943 echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
6944 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6
6945 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
6946 echo $ECHO_N "(cached) $ECHO_C" >&6
6948 cat >conftest.
$ac_ext <<_ACEOF
6951 cat confdefs.h
>>conftest.
$ac_ext
6952 cat >>conftest.
$ac_ext <<_ACEOF
6953 /* end confdefs.h. */
6954 $ac_includes_default
6955 #if HAVE_SYS_SOCKET_H
6956 #include <sys/socket.h>
6965 static struct ifreq ac_aggr;
6966 if (ac_aggr.ifr_flags)
6972 rm -f conftest.
$ac_objext
6973 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6974 (eval $ac_compile) 2>conftest.er1
6976 grep -v '^ *+' conftest.er1
>conftest.err
6978 cat conftest.err
>&5
6979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6980 (exit $ac_status); } &&
6981 { ac_try
='test -z "$ac_c_werror_flag"
6982 || test ! -s conftest.err'
6983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6987 (exit $ac_status); }; } &&
6988 { ac_try
='test -s conftest.$ac_objext'
6989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6993 (exit $ac_status); }; }; then
6994 ac_cv_member_struct_ifreq_ifr_flags
=yes
6996 echo "$as_me: failed program was:" >&5
6997 sed 's/^/| /' conftest.
$ac_ext >&5
6999 cat >conftest.
$ac_ext <<_ACEOF
7002 cat confdefs.h
>>conftest.
$ac_ext
7003 cat >>conftest.
$ac_ext <<_ACEOF
7004 /* end confdefs.h. */
7005 $ac_includes_default
7006 #if HAVE_SYS_SOCKET_H
7007 #include <sys/socket.h>
7016 static struct ifreq ac_aggr;
7017 if (sizeof ac_aggr.ifr_flags)
7023 rm -f conftest.
$ac_objext
7024 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7025 (eval $ac_compile) 2>conftest.er1
7027 grep -v '^ *+' conftest.er1
>conftest.err
7029 cat conftest.err
>&5
7030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7031 (exit $ac_status); } &&
7032 { ac_try
='test -z "$ac_c_werror_flag"
7033 || test ! -s conftest.err'
7034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7038 (exit $ac_status); }; } &&
7039 { ac_try
='test -s conftest.$ac_objext'
7040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7044 (exit $ac_status); }; }; then
7045 ac_cv_member_struct_ifreq_ifr_flags
=yes
7047 echo "$as_me: failed program was:" >&5
7048 sed 's/^/| /' conftest.
$ac_ext >&5
7050 ac_cv_member_struct_ifreq_ifr_flags
=no
7052 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7054 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7056 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
7057 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6
7058 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
7060 cat >>confdefs.h
<<_ACEOF
7061 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
7066 echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
7067 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6
7068 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
7069 echo $ECHO_N "(cached) $ECHO_C" >&6
7071 cat >conftest.
$ac_ext <<_ACEOF
7074 cat confdefs.h
>>conftest.
$ac_ext
7075 cat >>conftest.
$ac_ext <<_ACEOF
7076 /* end confdefs.h. */
7077 $ac_includes_default
7078 #if HAVE_SYS_SOCKET_H
7079 #include <sys/socket.h>
7088 static struct ifreq ac_aggr;
7089 if (ac_aggr.ifr_hwaddr)
7095 rm -f conftest.
$ac_objext
7096 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7097 (eval $ac_compile) 2>conftest.er1
7099 grep -v '^ *+' conftest.er1
>conftest.err
7101 cat conftest.err
>&5
7102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7103 (exit $ac_status); } &&
7104 { ac_try
='test -z "$ac_c_werror_flag"
7105 || test ! -s conftest.err'
7106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7110 (exit $ac_status); }; } &&
7111 { ac_try
='test -s conftest.$ac_objext'
7112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7116 (exit $ac_status); }; }; then
7117 ac_cv_member_struct_ifreq_ifr_hwaddr
=yes
7119 echo "$as_me: failed program was:" >&5
7120 sed 's/^/| /' conftest.
$ac_ext >&5
7122 cat >conftest.
$ac_ext <<_ACEOF
7125 cat confdefs.h
>>conftest.
$ac_ext
7126 cat >>conftest.
$ac_ext <<_ACEOF
7127 /* end confdefs.h. */
7128 $ac_includes_default
7129 #if HAVE_SYS_SOCKET_H
7130 #include <sys/socket.h>
7139 static struct ifreq ac_aggr;
7140 if (sizeof ac_aggr.ifr_hwaddr)
7146 rm -f conftest.
$ac_objext
7147 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7148 (eval $ac_compile) 2>conftest.er1
7150 grep -v '^ *+' conftest.er1
>conftest.err
7152 cat conftest.err
>&5
7153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7154 (exit $ac_status); } &&
7155 { ac_try
='test -z "$ac_c_werror_flag"
7156 || test ! -s conftest.err'
7157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7161 (exit $ac_status); }; } &&
7162 { ac_try
='test -s conftest.$ac_objext'
7163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7167 (exit $ac_status); }; }; then
7168 ac_cv_member_struct_ifreq_ifr_hwaddr
=yes
7170 echo "$as_me: failed program was:" >&5
7171 sed 's/^/| /' conftest.
$ac_ext >&5
7173 ac_cv_member_struct_ifreq_ifr_hwaddr
=no
7175 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7177 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7179 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
7180 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6
7181 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
7183 cat >>confdefs.h
<<_ACEOF
7184 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
7189 echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
7190 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6
7191 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
7192 echo $ECHO_N "(cached) $ECHO_C" >&6
7194 cat >conftest.
$ac_ext <<_ACEOF
7197 cat confdefs.h
>>conftest.
$ac_ext
7198 cat >>conftest.
$ac_ext <<_ACEOF
7199 /* end confdefs.h. */
7200 $ac_includes_default
7201 #if HAVE_SYS_SOCKET_H
7202 #include <sys/socket.h>
7211 static struct ifreq ac_aggr;
7212 if (ac_aggr.ifr_netmask)
7218 rm -f conftest.
$ac_objext
7219 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7220 (eval $ac_compile) 2>conftest.er1
7222 grep -v '^ *+' conftest.er1
>conftest.err
7224 cat conftest.err
>&5
7225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7226 (exit $ac_status); } &&
7227 { ac_try
='test -z "$ac_c_werror_flag"
7228 || test ! -s conftest.err'
7229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7233 (exit $ac_status); }; } &&
7234 { ac_try
='test -s conftest.$ac_objext'
7235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7239 (exit $ac_status); }; }; then
7240 ac_cv_member_struct_ifreq_ifr_netmask
=yes
7242 echo "$as_me: failed program was:" >&5
7243 sed 's/^/| /' conftest.
$ac_ext >&5
7245 cat >conftest.
$ac_ext <<_ACEOF
7248 cat confdefs.h
>>conftest.
$ac_ext
7249 cat >>conftest.
$ac_ext <<_ACEOF
7250 /* end confdefs.h. */
7251 $ac_includes_default
7252 #if HAVE_SYS_SOCKET_H
7253 #include <sys/socket.h>
7262 static struct ifreq ac_aggr;
7263 if (sizeof ac_aggr.ifr_netmask)
7269 rm -f conftest.
$ac_objext
7270 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7271 (eval $ac_compile) 2>conftest.er1
7273 grep -v '^ *+' conftest.er1
>conftest.err
7275 cat conftest.err
>&5
7276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7277 (exit $ac_status); } &&
7278 { ac_try
='test -z "$ac_c_werror_flag"
7279 || test ! -s conftest.err'
7280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7284 (exit $ac_status); }; } &&
7285 { ac_try
='test -s conftest.$ac_objext'
7286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7290 (exit $ac_status); }; }; then
7291 ac_cv_member_struct_ifreq_ifr_netmask
=yes
7293 echo "$as_me: failed program was:" >&5
7294 sed 's/^/| /' conftest.
$ac_ext >&5
7296 ac_cv_member_struct_ifreq_ifr_netmask
=no
7298 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7300 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7302 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
7303 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6
7304 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
7306 cat >>confdefs.h
<<_ACEOF
7307 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
7312 echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
7313 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6
7314 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
7315 echo $ECHO_N "(cached) $ECHO_C" >&6
7317 cat >conftest.
$ac_ext <<_ACEOF
7320 cat confdefs.h
>>conftest.
$ac_ext
7321 cat >>conftest.
$ac_ext <<_ACEOF
7322 /* end confdefs.h. */
7323 $ac_includes_default
7324 #if HAVE_SYS_SOCKET_H
7325 #include <sys/socket.h>
7334 static struct ifreq ac_aggr;
7335 if (ac_aggr.ifr_broadaddr)
7341 rm -f conftest.
$ac_objext
7342 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7343 (eval $ac_compile) 2>conftest.er1
7345 grep -v '^ *+' conftest.er1
>conftest.err
7347 cat conftest.err
>&5
7348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7349 (exit $ac_status); } &&
7350 { ac_try
='test -z "$ac_c_werror_flag"
7351 || test ! -s conftest.err'
7352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7356 (exit $ac_status); }; } &&
7357 { ac_try
='test -s conftest.$ac_objext'
7358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7362 (exit $ac_status); }; }; then
7363 ac_cv_member_struct_ifreq_ifr_broadaddr
=yes
7365 echo "$as_me: failed program was:" >&5
7366 sed 's/^/| /' conftest.
$ac_ext >&5
7368 cat >conftest.
$ac_ext <<_ACEOF
7371 cat confdefs.h
>>conftest.
$ac_ext
7372 cat >>conftest.
$ac_ext <<_ACEOF
7373 /* end confdefs.h. */
7374 $ac_includes_default
7375 #if HAVE_SYS_SOCKET_H
7376 #include <sys/socket.h>
7385 static struct ifreq ac_aggr;
7386 if (sizeof ac_aggr.ifr_broadaddr)
7392 rm -f conftest.
$ac_objext
7393 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7394 (eval $ac_compile) 2>conftest.er1
7396 grep -v '^ *+' conftest.er1
>conftest.err
7398 cat conftest.err
>&5
7399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7400 (exit $ac_status); } &&
7401 { ac_try
='test -z "$ac_c_werror_flag"
7402 || test ! -s conftest.err'
7403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7407 (exit $ac_status); }; } &&
7408 { ac_try
='test -s conftest.$ac_objext'
7409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7413 (exit $ac_status); }; }; then
7414 ac_cv_member_struct_ifreq_ifr_broadaddr
=yes
7416 echo "$as_me: failed program was:" >&5
7417 sed 's/^/| /' conftest.
$ac_ext >&5
7419 ac_cv_member_struct_ifreq_ifr_broadaddr
=no
7421 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7423 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7425 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
7426 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6
7427 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
7429 cat >>confdefs.h
<<_ACEOF
7430 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
7435 echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
7436 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6
7437 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
7438 echo $ECHO_N "(cached) $ECHO_C" >&6
7440 cat >conftest.
$ac_ext <<_ACEOF
7443 cat confdefs.h
>>conftest.
$ac_ext
7444 cat >>conftest.
$ac_ext <<_ACEOF
7445 /* end confdefs.h. */
7446 $ac_includes_default
7447 #if HAVE_SYS_SOCKET_H
7448 #include <sys/socket.h>
7457 static struct ifreq ac_aggr;
7458 if (ac_aggr.ifr_addr)
7464 rm -f conftest.
$ac_objext
7465 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7466 (eval $ac_compile) 2>conftest.er1
7468 grep -v '^ *+' conftest.er1
>conftest.err
7470 cat conftest.err
>&5
7471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7472 (exit $ac_status); } &&
7473 { ac_try
='test -z "$ac_c_werror_flag"
7474 || test ! -s conftest.err'
7475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7479 (exit $ac_status); }; } &&
7480 { ac_try
='test -s conftest.$ac_objext'
7481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7485 (exit $ac_status); }; }; then
7486 ac_cv_member_struct_ifreq_ifr_addr
=yes
7488 echo "$as_me: failed program was:" >&5
7489 sed 's/^/| /' conftest.
$ac_ext >&5
7491 cat >conftest.
$ac_ext <<_ACEOF
7494 cat confdefs.h
>>conftest.
$ac_ext
7495 cat >>conftest.
$ac_ext <<_ACEOF
7496 /* end confdefs.h. */
7497 $ac_includes_default
7498 #if HAVE_SYS_SOCKET_H
7499 #include <sys/socket.h>
7508 static struct ifreq ac_aggr;
7509 if (sizeof ac_aggr.ifr_addr)
7515 rm -f conftest.
$ac_objext
7516 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7517 (eval $ac_compile) 2>conftest.er1
7519 grep -v '^ *+' conftest.er1
>conftest.err
7521 cat conftest.err
>&5
7522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7523 (exit $ac_status); } &&
7524 { ac_try
='test -z "$ac_c_werror_flag"
7525 || test ! -s conftest.err'
7526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7530 (exit $ac_status); }; } &&
7531 { ac_try
='test -s conftest.$ac_objext'
7532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7536 (exit $ac_status); }; }; then
7537 ac_cv_member_struct_ifreq_ifr_addr
=yes
7539 echo "$as_me: failed program was:" >&5
7540 sed 's/^/| /' conftest.
$ac_ext >&5
7542 ac_cv_member_struct_ifreq_ifr_addr
=no
7544 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7546 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7548 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
7549 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6
7550 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
7552 cat >>confdefs.h
<<_ACEOF
7553 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
7561 echo "$as_me:$LINENO: checking for function prototypes" >&5
7562 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
7563 if test "$ac_cv_prog_cc_stdc" != no
; then
7564 echo "$as_me:$LINENO: result: yes" >&5
7565 echo "${ECHO_T}yes" >&6
7567 cat >>confdefs.h
<<\_ACEOF
7568 #define PROTOTYPES 1
7572 cat >>confdefs.h
<<\_ACEOF
7573 #define __PROTOTYPES 1
7577 echo "$as_me:$LINENO: result: no" >&5
7578 echo "${ECHO_T}no" >&6
7581 echo "$as_me:$LINENO: checking for working volatile" >&5
7582 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
7583 if test "${ac_cv_c_volatile+set}" = set; then
7584 echo $ECHO_N "(cached) $ECHO_C" >&6
7586 cat >conftest.
$ac_ext <<_ACEOF
7589 cat confdefs.h
>>conftest.
$ac_ext
7590 cat >>conftest.
$ac_ext <<_ACEOF
7591 /* end confdefs.h. */
7603 rm -f conftest.
$ac_objext
7604 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7605 (eval $ac_compile) 2>conftest.er1
7607 grep -v '^ *+' conftest.er1
>conftest.err
7609 cat conftest.err
>&5
7610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7611 (exit $ac_status); } &&
7612 { ac_try
='test -z "$ac_c_werror_flag"
7613 || test ! -s conftest.err'
7614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7618 (exit $ac_status); }; } &&
7619 { ac_try
='test -s conftest.$ac_objext'
7620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7624 (exit $ac_status); }; }; then
7625 ac_cv_c_volatile
=yes
7627 echo "$as_me: failed program was:" >&5
7628 sed 's/^/| /' conftest.
$ac_ext >&5
7632 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7634 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
7635 echo "${ECHO_T}$ac_cv_c_volatile" >&6
7636 if test $ac_cv_c_volatile = no
; then
7638 cat >>confdefs.h
<<\_ACEOF
7644 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7645 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
7646 if test "${ac_cv_c_const+set}" = set; then
7647 echo $ECHO_N "(cached) $ECHO_C" >&6
7649 cat >conftest.
$ac_ext <<_ACEOF
7652 cat confdefs.h
>>conftest.
$ac_ext
7653 cat >>conftest.
$ac_ext <<_ACEOF
7654 /* end confdefs.h. */
7659 /* FIXME: Include the comments suggested by Paul. */
7661 /* Ultrix mips cc rejects this. */
7662 typedef int charset[2];
7664 /* SunOS 4.1.1 cc rejects this. */
7665 char const *const *ccp;
7667 /* NEC SVR4.0.2 mips cc rejects this. */
7668 struct point {int x, y;};
7669 static struct point const zero = {0,0};
7670 /* AIX XL C 1.02.0.0 rejects this.
7671 It does not let you subtract one const X* pointer from another in
7672 an arm of an if-expression whose if-part is not a constant
7674 const char *g = "string";
7675 ccp = &g + (g ? g-g : 0);
7676 /* HPUX 7.0 cc rejects these. */
7679 ccp = (char const *const *) p;
7680 { /* SCO 3.2v4 cc rejects this. */
7682 char const *s = 0 ? (char *) 0 : (char const *) 0;
7686 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7688 const int *foo = &x[0];
7691 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7692 typedef const int *iptr;
7696 { /* AIX XL C 1.02.0.0 rejects this saying
7697 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7698 struct s { int j; const int *ap[3]; };
7699 struct s *b; b->j = 5;
7701 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7710 rm -f conftest.
$ac_objext
7711 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7712 (eval $ac_compile) 2>conftest.er1
7714 grep -v '^ *+' conftest.er1
>conftest.err
7716 cat conftest.err
>&5
7717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7718 (exit $ac_status); } &&
7719 { ac_try
='test -z "$ac_c_werror_flag"
7720 || test ! -s conftest.err'
7721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7725 (exit $ac_status); }; } &&
7726 { ac_try
='test -s conftest.$ac_objext'
7727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7731 (exit $ac_status); }; }; then
7734 echo "$as_me: failed program was:" >&5
7735 sed 's/^/| /' conftest.
$ac_ext >&5
7739 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7741 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7742 echo "${ECHO_T}$ac_cv_c_const" >&6
7743 if test $ac_cv_c_const = no
; then
7745 cat >>confdefs.h
<<\_ACEOF
7751 echo "$as_me:$LINENO: checking for void * support" >&5
7752 echo $ECHO_N "checking for void * support... $ECHO_C" >&6
7753 if test "${emacs_cv_void_star+set}" = set; then
7754 echo $ECHO_N "(cached) $ECHO_C" >&6
7756 cat >conftest.
$ac_ext <<_ACEOF
7759 cat confdefs.h
>>conftest.
$ac_ext
7760 cat >>conftest.
$ac_ext <<_ACEOF
7761 /* end confdefs.h. */
7771 rm -f conftest.
$ac_objext
7772 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7773 (eval $ac_compile) 2>conftest.er1
7775 grep -v '^ *+' conftest.er1
>conftest.err
7777 cat conftest.err
>&5
7778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7779 (exit $ac_status); } &&
7780 { ac_try
='test -z "$ac_c_werror_flag"
7781 || test ! -s conftest.err'
7782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7786 (exit $ac_status); }; } &&
7787 { ac_try
='test -s conftest.$ac_objext'
7788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7792 (exit $ac_status); }; }; then
7793 emacs_cv_void_star
=yes
7795 echo "$as_me: failed program was:" >&5
7796 sed 's/^/| /' conftest.
$ac_ext >&5
7798 emacs_cv_void_star
=no
7800 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7802 echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
7803 echo "${ECHO_T}$emacs_cv_void_star" >&6
7804 if test $emacs_cv_void_star = yes; then
7805 cat >>confdefs.h
<<\_ACEOF
7806 #define POINTER_TYPE void
7810 cat >>confdefs.h
<<\_ACEOF
7811 #define POINTER_TYPE char
7818 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7819 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
7820 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y,:./+-,___p_,'`
7821 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
7822 echo $ECHO_N "(cached) $ECHO_C" >&6
7824 cat >conftest.
make <<\_ACEOF
7826 @
echo 'ac_maketemp="$(MAKE)"'
7828 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7829 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
7830 if test -n "$ac_maketemp"; then
7831 eval ac_cv_prog_make_
${ac_make}_set
=yes
7833 eval ac_cv_prog_make_
${ac_make}_set
=no
7837 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
7838 echo "$as_me:$LINENO: result: yes" >&5
7839 echo "${ECHO_T}yes" >&6
7842 echo "$as_me:$LINENO: result: no" >&5
7843 echo "${ECHO_T}no" >&6
7844 SET_MAKE
="MAKE=${MAKE-make}"
7848 echo "$as_me:$LINENO: checking for long file names" >&5
7849 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
7850 if test "${ac_cv_sys_long_file_names+set}" = set; then
7851 echo $ECHO_N "(cached) $ECHO_C" >&6
7853 ac_cv_sys_long_file_names
=yes
7854 # Test for long file names in all the places we know might matter:
7855 # . the current directory, where building will happen
7856 # $prefix/lib where we will be installing things
7857 # $exec_prefix/lib likewise
7858 # eval it to expand exec_prefix.
7859 # $TMPDIR if set, where it might want to write temporary files
7860 # if $TMPDIR is not set:
7861 # /tmp where it might want to write temporary files
7864 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
7867 ac_tmpdirs
='/tmp /var/tmp /usr/tmp'
7869 for ac_dir
in .
$ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
7870 test -d $ac_dir ||
continue
7871 test -w $ac_dir ||
continue # It is less confusing to not echo anything here.
7872 ac_xdir
=$ac_dir/cf$$
7873 (umask 077 && mkdir
$ac_xdir 2>/dev
/null
) ||
continue
7874 ac_tf1
=$ac_xdir/conftest9012345
7875 ac_tf2
=$ac_xdir/conftest9012346
7876 (echo 1 >$ac_tf1) 2>/dev
/null
7877 (echo 2 >$ac_tf2) 2>/dev
/null
7878 ac_val
=`cat $ac_tf1 2>/dev/null`
7879 if test ! -f $ac_tf1 ||
test "$ac_val" != 1; then
7880 ac_cv_sys_long_file_names
=no
7881 rm -rf $ac_xdir 2>/dev
/null
7884 rm -rf $ac_xdir 2>/dev
/null
7887 echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
7888 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
7889 if test $ac_cv_sys_long_file_names = yes; then
7891 cat >>confdefs.h
<<\_ACEOF
7892 #define HAVE_LONG_FILE_NAMES 1
7898 #### Choose a window system.
7900 echo "$as_me:$LINENO: checking for X" >&5
7901 echo $ECHO_N "checking for X... $ECHO_C" >&6
7904 # Check whether --with-x or --without-x was given.
7905 if test "${with_x+set}" = set; then
7909 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7910 if test "x$with_x" = xno
; then
7911 # The user explicitly disabled X.
7914 if test "x$x_includes" != xNONE
&& test "x$x_libraries" != xNONE
; then
7915 # Both variables are already set.
7918 if test "${ac_cv_have_x+set}" = set; then
7919 echo $ECHO_N "(cached) $ECHO_C" >&6
7921 # One or both of the vars are not set, and there is no cached value.
7922 ac_x_includes
=no ac_x_libraries
=no
7924 if mkdir conftest.dir
; then
7926 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
7927 cat >Imakefile
<<'_ACEOF'
7929 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
7931 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
7932 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7933 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
7934 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7935 for ac_extension
in a so sl
; do
7936 if test ! -f $ac_im_usrlibdir/libX11.
$ac_extension &&
7937 test -f $ac_im_libdir/libX11.
$ac_extension; then
7938 ac_im_usrlibdir
=$ac_im_libdir; break
7941 # Screen out bogus values from the imake configuration. They are
7942 # bogus both because they are the default anyway, and because
7943 # using them would break gcc on systems where it needs fixed includes.
7944 case $ac_im_incroot in
7946 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
7948 case $ac_im_usrlibdir in
7950 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
7957 # Standard set of common directories for X headers.
7958 # Check X11 before X11Rn because it is often a symlink to the current release.
7970 /usr/local/X11/include
7971 /usr/local/X11R6/include
7972 /usr/local/X11R5/include
7973 /usr/local/X11R4/include
7975 /usr/local/include/X11
7976 /usr/local/include/X11R6
7977 /usr/local/include/X11R5
7978 /usr/local/include/X11R4
7982 /usr/XFree86/include/X11
7986 /usr/unsupported/include
7988 /usr/local/x11r5/include
7989 /usr/lpp/Xamples/include
7991 /usr/openwin/include
7992 /usr/openwin/share/include'
7994 if test "$ac_x_includes" = no
; then
7995 # Guess where to find include files, by looking for Intrinsic.h.
7996 # First, try using that file with no special directory specified.
7997 cat >conftest.
$ac_ext <<_ACEOF
8000 cat confdefs.h
>>conftest.
$ac_ext
8001 cat >>conftest.
$ac_ext <<_ACEOF
8002 /* end confdefs.h. */
8003 #include <X11/Intrinsic.h>
8005 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8006 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8008 grep -v '^ *+' conftest.er1
>conftest.err
8010 cat conftest.err
>&5
8011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8012 (exit $ac_status); } >/dev
/null
; then
8013 if test -s conftest.err
; then
8014 ac_cpp_err
=$ac_c_preproc_warn_flag
8015 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
8022 if test -z "$ac_cpp_err"; then
8023 # We can compile using X headers with no special include directory.
8026 echo "$as_me: failed program was:" >&5
8027 sed 's/^/| /' conftest.
$ac_ext >&5
8029 for ac_dir
in $ac_x_header_dirs; do
8030 if test -r "$ac_dir/X11/Intrinsic.h"; then
8031 ac_x_includes
=$ac_dir
8036 rm -f conftest.err conftest.
$ac_ext
8037 fi # $ac_x_includes = no
8039 if test "$ac_x_libraries" = no
; then
8040 # Check for the libraries.
8041 # See if we find them without any special options.
8042 # Don't add to $LIBS permanently.
8045 cat >conftest.
$ac_ext <<_ACEOF
8048 cat confdefs.h
>>conftest.
$ac_ext
8049 cat >>conftest.
$ac_ext <<_ACEOF
8050 /* end confdefs.h. */
8051 #include <X11/Intrinsic.h>
8060 rm -f conftest.
$ac_objext conftest
$ac_exeext
8061 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8062 (eval $ac_link) 2>conftest.er1
8064 grep -v '^ *+' conftest.er1
>conftest.err
8066 cat conftest.err
>&5
8067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8068 (exit $ac_status); } &&
8069 { ac_try
='test -z "$ac_c_werror_flag"
8070 || test ! -s conftest.err'
8071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8075 (exit $ac_status); }; } &&
8076 { ac_try
='test -s conftest$ac_exeext'
8077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8081 (exit $ac_status); }; }; then
8083 # We can link X programs with no special library path.
8086 echo "$as_me: failed program was:" >&5
8087 sed 's/^/| /' conftest.
$ac_ext >&5
8090 for ac_dir
in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8092 # Don't even attempt the hair of trying to link an X program!
8093 for ac_extension
in a so sl
; do
8094 if test -r $ac_dir/libXt.
$ac_extension; then
8095 ac_x_libraries
=$ac_dir
8101 rm -f conftest.err conftest.
$ac_objext \
8102 conftest
$ac_exeext conftest.
$ac_ext
8103 fi # $ac_x_libraries = no
8105 if test "$ac_x_includes" = no ||
test "$ac_x_libraries" = no
; then
8106 # Didn't find X anywhere. Cache the known absence of X.
8107 ac_cv_have_x
="have_x=no"
8109 # Record where we found X for the cache.
8110 ac_cv_have_x
="have_x=yes \
8111 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
8116 eval "$ac_cv_have_x"
8119 if test "$have_x" != yes; then
8120 echo "$as_me:$LINENO: result: $have_x" >&5
8121 echo "${ECHO_T}$have_x" >&6
8124 # If each of the values was on the command line, it overrides each guess.
8125 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
8126 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
8127 # Update the cache value to reflect the command line values.
8128 ac_cv_have_x
="have_x=yes \
8129 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
8130 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
8131 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
8134 if test "$no_x" = yes; then
8140 if test "${x_libraries}" != NONE
&& test -n "${x_libraries}"; then
8141 LD_SWITCH_X_SITE
=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
8142 LD_SWITCH_X_SITE_AUX
=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
8143 x_default_search_path
=""
8144 for x_library
in `echo ${x_libraries} | sed -e "s/:/ /g"`; do
8146 ${x_library}/X11/%L/%T/%N%C%S:\
8147 ${x_library}/X11/%l/%T/%N%C%S:\
8148 ${x_library}/X11/%T/%N%C%S:\
8149 ${x_library}/X11/%L/%T/%N%S:\
8150 ${x_library}/X11/%l/%T/%N%S:\
8151 ${x_library}/X11/%T/%N%S"
8152 if test x
"${x_default_search_path}" = x
; then
8153 x_default_search_path
=${x_search_path}
8155 x_default_search_path
="${x_search_path}:${x_default_search_path}"
8159 if test "${x_includes}" != NONE
&& test -n "${x_includes}"; then
8160 C_SWITCH_X_SITE
=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
8163 if test x
"${x_includes}" = x
; then
8164 bitmapdir
=/usr
/include
/X11
/bitmaps
8166 # accumulate include directories that have X11 bitmap subdirectories
8168 for bmd
in `echo ${x_includes} | sed -e "s/:/ /g"`; do
8169 if test -d "${bmd}/X11/bitmaps"; then
8170 bmd_acc
="${bmd_acc}:${bmd}/X11/bitmaps"
8172 if test -d "${bmd}/bitmaps"; then
8173 bmd_acc
="${bmd_acc}:${bmd}/bitmaps"
8176 if test ${bmd_acc} != "dummyval"; then
8177 bitmapdir
=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
8181 case "${window_system}" in
8185 case "${with_x_toolkit}" in
8186 athena | lucid
) USE_X_TOOLKIT
=LUCID
;;
8187 motif
) USE_X_TOOLKIT
=MOTIF
;;
8189 USE_X_TOOLKIT
=none
;;
8190 no
) USE_X_TOOLKIT
=none
;;
8191 * ) USE_X_TOOLKIT
=maybe
;;
8201 ### If we're using X11, we should use the X menu package.
8204 yes ) HAVE_MENUS
=yes ;;
8207 if test "${opsys}" = "hpux9"; then
8208 case "${x_libraries}" in
8210 opsysfile
="s/hpux9-x11r4.h"
8215 if test "${opsys}" = "hpux9shr"; then
8216 case "${x_libraries}" in
8218 opsysfile
="s/hpux9shxr4.h"
8223 ### Compute the unexec source name from the object name.
8224 UNEXEC_SRC
="`echo ${unexec} | sed 's/\.o/.c/'`"
8226 # Do the opsystem or machine files prohibit the use of the GNU malloc?
8227 # Assume not, until told otherwise.
8230 echo "$as_me:$LINENO: checking for malloc_get_state" >&5
8231 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6
8232 if test "${ac_cv_func_malloc_get_state+set}" = set; then
8233 echo $ECHO_N "(cached) $ECHO_C" >&6
8235 cat >conftest.
$ac_ext <<_ACEOF
8238 cat confdefs.h
>>conftest.
$ac_ext
8239 cat >>conftest.
$ac_ext <<_ACEOF
8240 /* end confdefs.h. */
8241 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
8242 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8243 #define malloc_get_state innocuous_malloc_get_state
8245 /* System header to define __stub macros and hopefully few prototypes,
8246 which can conflict with char malloc_get_state (); below.
8247 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8248 <limits.h> exists even on freestanding compilers. */
8251 # include <limits.h>
8253 # include <assert.h>
8256 #undef malloc_get_state
8258 /* Override any gcc2 internal prototype to avoid an error. */
8263 /* We use char because int might match the return type of a gcc2
8264 builtin and then its argument prototype would still apply. */
8265 char malloc_get_state ();
8266 /* The GNU C library defines this for functions which it implements
8267 to always fail with ENOSYS. Some functions are actually named
8268 something starting with __ and the normal name is an alias. */
8269 #if defined (__stub_malloc_get_state) || defined (__stub___malloc_get_state)
8272 char (*f) () = malloc_get_state;
8281 return f != malloc_get_state;
8286 rm -f conftest.
$ac_objext conftest
$ac_exeext
8287 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8288 (eval $ac_link) 2>conftest.er1
8290 grep -v '^ *+' conftest.er1
>conftest.err
8292 cat conftest.err
>&5
8293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8294 (exit $ac_status); } &&
8295 { ac_try
='test -z "$ac_c_werror_flag"
8296 || test ! -s conftest.err'
8297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8301 (exit $ac_status); }; } &&
8302 { ac_try
='test -s conftest$ac_exeext'
8303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8307 (exit $ac_status); }; }; then
8308 ac_cv_func_malloc_get_state
=yes
8310 echo "$as_me: failed program was:" >&5
8311 sed 's/^/| /' conftest.
$ac_ext >&5
8313 ac_cv_func_malloc_get_state
=no
8315 rm -f conftest.err conftest.
$ac_objext \
8316 conftest
$ac_exeext conftest.
$ac_ext
8318 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
8319 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6
8320 if test $ac_cv_func_malloc_get_state = yes; then
8326 echo "$as_me:$LINENO: checking for malloc_set_state" >&5
8327 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6
8328 if test "${ac_cv_func_malloc_set_state+set}" = set; then
8329 echo $ECHO_N "(cached) $ECHO_C" >&6
8331 cat >conftest.
$ac_ext <<_ACEOF
8334 cat confdefs.h
>>conftest.
$ac_ext
8335 cat >>conftest.
$ac_ext <<_ACEOF
8336 /* end confdefs.h. */
8337 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
8338 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8339 #define malloc_set_state innocuous_malloc_set_state
8341 /* System header to define __stub macros and hopefully few prototypes,
8342 which can conflict with char malloc_set_state (); below.
8343 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8344 <limits.h> exists even on freestanding compilers. */
8347 # include <limits.h>
8349 # include <assert.h>
8352 #undef malloc_set_state
8354 /* Override any gcc2 internal prototype to avoid an error. */
8359 /* We use char because int might match the return type of a gcc2
8360 builtin and then its argument prototype would still apply. */
8361 char malloc_set_state ();
8362 /* The GNU C library defines this for functions which it implements
8363 to always fail with ENOSYS. Some functions are actually named
8364 something starting with __ and the normal name is an alias. */
8365 #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state)
8368 char (*f) () = malloc_set_state;
8377 return f != malloc_set_state;
8382 rm -f conftest.
$ac_objext conftest
$ac_exeext
8383 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8384 (eval $ac_link) 2>conftest.er1
8386 grep -v '^ *+' conftest.er1
>conftest.err
8388 cat conftest.err
>&5
8389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8390 (exit $ac_status); } &&
8391 { ac_try
='test -z "$ac_c_werror_flag"
8392 || test ! -s conftest.err'
8393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8397 (exit $ac_status); }; } &&
8398 { ac_try
='test -s conftest$ac_exeext'
8399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8403 (exit $ac_status); }; }; then
8404 ac_cv_func_malloc_set_state
=yes
8406 echo "$as_me: failed program was:" >&5
8407 sed 's/^/| /' conftest.
$ac_ext >&5
8409 ac_cv_func_malloc_set_state
=no
8411 rm -f conftest.err conftest.
$ac_objext \
8412 conftest
$ac_exeext conftest.
$ac_ext
8414 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
8415 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6
8416 if test $ac_cv_func_malloc_set_state = yes; then
8422 echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
8423 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6
8424 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
8425 echo $ECHO_N "(cached) $ECHO_C" >&6
8427 cat >conftest.
$ac_ext <<_ACEOF
8430 cat confdefs.h
>>conftest.
$ac_ext
8431 cat >>conftest.
$ac_ext <<_ACEOF
8432 /* end confdefs.h. */
8433 extern void (* __after_morecore_hook)();
8437 __after_morecore_hook = 0
8442 rm -f conftest.
$ac_objext conftest
$ac_exeext
8443 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8444 (eval $ac_link) 2>conftest.er1
8446 grep -v '^ *+' conftest.er1
>conftest.err
8448 cat conftest.err
>&5
8449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8450 (exit $ac_status); } &&
8451 { ac_try
='test -z "$ac_c_werror_flag"
8452 || test ! -s conftest.err'
8453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8457 (exit $ac_status); }; } &&
8458 { ac_try
='test -s conftest$ac_exeext'
8459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8463 (exit $ac_status); }; }; then
8464 emacs_cv_var___after_morecore_hook
=yes
8466 echo "$as_me: failed program was:" >&5
8467 sed 's/^/| /' conftest.
$ac_ext >&5
8469 emacs_cv_var___after_morecore_hook
=no
8471 rm -f conftest.err conftest.
$ac_objext \
8472 conftest
$ac_exeext conftest.
$ac_ext
8474 echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
8475 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6
8476 if test $emacs_cv_var___after_morecore_hook = no
; then
8479 if test "${system_malloc}" = "yes"; then
8482 (The GNU allocators don't work with this system configuration.)"
8484 if test "$doug_lea_malloc" = "yes" ; then
8485 if test "$GNU_MALLOC" = yes ; then
8487 (Using Doug Lea's new malloc from the GNU C Library.)"
8490 cat >>confdefs.h
<<\_ACEOF
8491 #define DOUG_LEA_MALLOC 1
8496 if test x
"${REL_ALLOC}" = x
; then
8497 REL_ALLOC
=${GNU_MALLOC}
8503 for ac_header
in stdlib.h unistd.h
8505 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8506 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8507 echo "$as_me:$LINENO: checking for $ac_header" >&5
8508 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8509 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8510 echo $ECHO_N "(cached) $ECHO_C" >&6
8512 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8513 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8515 # Is the header compilable?
8516 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8517 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8518 cat >conftest.
$ac_ext <<_ACEOF
8521 cat confdefs.h
>>conftest.
$ac_ext
8522 cat >>conftest.
$ac_ext <<_ACEOF
8523 /* end confdefs.h. */
8524 $ac_includes_default
8525 #include <$ac_header>
8527 rm -f conftest.
$ac_objext
8528 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8529 (eval $ac_compile) 2>conftest.er1
8531 grep -v '^ *+' conftest.er1
>conftest.err
8533 cat conftest.err
>&5
8534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8535 (exit $ac_status); } &&
8536 { ac_try
='test -z "$ac_c_werror_flag"
8537 || test ! -s conftest.err'
8538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8542 (exit $ac_status); }; } &&
8543 { ac_try
='test -s conftest.$ac_objext'
8544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8548 (exit $ac_status); }; }; then
8549 ac_header_compiler
=yes
8551 echo "$as_me: failed program was:" >&5
8552 sed 's/^/| /' conftest.
$ac_ext >&5
8554 ac_header_compiler
=no
8556 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8557 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8558 echo "${ECHO_T}$ac_header_compiler" >&6
8560 # Is the header present?
8561 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8562 echo $ECHO_N "checking $ac_header presence... $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 #include <$ac_header>
8571 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8572 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8574 grep -v '^ *+' conftest.er1
>conftest.err
8576 cat conftest.err
>&5
8577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8578 (exit $ac_status); } >/dev
/null
; then
8579 if test -s conftest.err
; then
8580 ac_cpp_err
=$ac_c_preproc_warn_flag
8581 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
8588 if test -z "$ac_cpp_err"; then
8589 ac_header_preproc
=yes
8591 echo "$as_me: failed program was:" >&5
8592 sed 's/^/| /' conftest.
$ac_ext >&5
8594 ac_header_preproc
=no
8596 rm -f conftest.err conftest.
$ac_ext
8597 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8598 echo "${ECHO_T}$ac_header_preproc" >&6
8600 # So? What about this header?
8601 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8603 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8604 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8605 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8606 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8607 ac_header_preproc
=yes
8610 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8611 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8612 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8613 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8614 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8615 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8616 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8617 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8618 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8619 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8620 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8621 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8624 ## ------------------------------------------ ##
8625 ## Report this to the AC_PACKAGE_NAME lists. ##
8626 ## ------------------------------------------ ##
8629 sed "s/^/$as_me: WARNING: /" >&2
8632 echo "$as_me:$LINENO: checking for $ac_header" >&5
8633 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8634 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8635 echo $ECHO_N "(cached) $ECHO_C" >&6
8637 eval "$as_ac_Header=\$ac_header_preproc"
8639 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8640 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8643 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8644 cat >>confdefs.h
<<_ACEOF
8645 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8653 for ac_func
in getpagesize
8655 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8656 echo "$as_me:$LINENO: checking for $ac_func" >&5
8657 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8658 if eval "test \"\${$as_ac_var+set}\" = set"; then
8659 echo $ECHO_N "(cached) $ECHO_C" >&6
8661 cat >conftest.
$ac_ext <<_ACEOF
8664 cat confdefs.h
>>conftest.
$ac_ext
8665 cat >>conftest.
$ac_ext <<_ACEOF
8666 /* end confdefs.h. */
8667 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8668 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8669 #define $ac_func innocuous_$ac_func
8671 /* System header to define __stub macros and hopefully few prototypes,
8672 which can conflict with char $ac_func (); below.
8673 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8674 <limits.h> exists even on freestanding compilers. */
8677 # include <limits.h>
8679 # include <assert.h>
8684 /* Override any gcc2 internal prototype to avoid an error. */
8689 /* We use char because int might match the return type of a gcc2
8690 builtin and then its argument prototype would still apply. */
8692 /* The GNU C library defines this for functions which it implements
8693 to always fail with ENOSYS. Some functions are actually named
8694 something starting with __ and the normal name is an alias. */
8695 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8698 char (*f) () = $ac_func;
8707 return f != $ac_func;
8712 rm -f conftest.
$ac_objext conftest
$ac_exeext
8713 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8714 (eval $ac_link) 2>conftest.er1
8716 grep -v '^ *+' conftest.er1
>conftest.err
8718 cat conftest.err
>&5
8719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8720 (exit $ac_status); } &&
8721 { ac_try
='test -z "$ac_c_werror_flag"
8722 || test ! -s conftest.err'
8723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8727 (exit $ac_status); }; } &&
8728 { ac_try
='test -s conftest$ac_exeext'
8729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8733 (exit $ac_status); }; }; then
8734 eval "$as_ac_var=yes"
8736 echo "$as_me: failed program was:" >&5
8737 sed 's/^/| /' conftest.
$ac_ext >&5
8739 eval "$as_ac_var=no"
8741 rm -f conftest.err conftest.
$ac_objext \
8742 conftest
$ac_exeext conftest.
$ac_ext
8744 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8745 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8746 if test `eval echo '${'$as_ac_var'}'` = yes; then
8747 cat >>confdefs.h
<<_ACEOF
8748 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8754 echo "$as_me:$LINENO: checking for working mmap" >&5
8755 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
8756 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
8757 echo $ECHO_N "(cached) $ECHO_C" >&6
8759 if test "$cross_compiling" = yes; then
8760 ac_cv_func_mmap_fixed_mapped
=no
8762 cat >conftest.
$ac_ext <<_ACEOF
8765 cat confdefs.h
>>conftest.
$ac_ext
8766 cat >>conftest.
$ac_ext <<_ACEOF
8767 /* end confdefs.h. */
8768 $ac_includes_default
8769 /* malloc might have been renamed as rpl_malloc. */
8772 /* Thanks to Mike Haertel and Jim Avera for this test.
8773 Here is a matrix of mmap possibilities:
8774 mmap private not fixed
8775 mmap private fixed at somewhere currently unmapped
8776 mmap private fixed at somewhere already mapped
8777 mmap shared not fixed
8778 mmap shared fixed at somewhere currently unmapped
8779 mmap shared fixed at somewhere already mapped
8780 For private mappings, we should verify that changes cannot be read()
8781 back from the file, nor mmap's back from the file at a different
8782 address. (There have been systems where private was not correctly
8783 implemented like the infamous i386 svr4.0, and systems where the
8784 VM page cache was not coherent with the file system buffer cache
8785 like early versions of FreeBSD and possibly contemporary NetBSD.)
8786 For shared mappings, we should conversely verify that changes get
8787 propagated back to all the places they're supposed to be.
8789 Grep wants private fixed already mapped.
8790 The main things grep needs to know about mmap are:
8791 * does it exist and is it safe to write into the mmap'd area
8792 * how to use it (BSD variants) */
8795 #include <sys/mman.h>
8797 #if !STDC_HEADERS && !HAVE_STDLIB_H
8801 /* This mess was copied from the GNU getpagesize.h. */
8802 #if !HAVE_GETPAGESIZE
8803 /* Assume that all systems that can run configure have sys/param.h. */
8804 # if !HAVE_SYS_PARAM_H
8805 # define HAVE_SYS_PARAM_H 1
8808 # ifdef _SC_PAGESIZE
8809 # define getpagesize() sysconf(_SC_PAGESIZE)
8810 # else /* no _SC_PAGESIZE */
8811 # if HAVE_SYS_PARAM_H
8812 # include <sys/param.h>
8813 # ifdef EXEC_PAGESIZE
8814 # define getpagesize() EXEC_PAGESIZE
8815 # else /* no EXEC_PAGESIZE */
8817 # define getpagesize() NBPG * CLSIZE
8820 # endif /* no CLSIZE */
8821 # else /* no NBPG */
8823 # define getpagesize() NBPC
8824 # else /* no NBPC */
8826 # define getpagesize() PAGESIZE
8827 # endif /* PAGESIZE */
8828 # endif /* no NBPC */
8829 # endif /* no NBPG */
8830 # endif /* no EXEC_PAGESIZE */
8831 # else /* no HAVE_SYS_PARAM_H */
8832 # define getpagesize() 8192 /* punt totally */
8833 # endif /* no HAVE_SYS_PARAM_H */
8834 # endif /* no _SC_PAGESIZE */
8836 #endif /* no HAVE_GETPAGESIZE */
8841 char *data, *data2, *data3;
8845 pagesize = getpagesize ();
8847 /* First, make a file with some known garbage in it. */
8848 data = (char *) malloc (pagesize);
8851 for (i = 0; i < pagesize; ++i)
8852 *(data + i) = rand ();
8854 fd = creat ("conftest.mmap", 0600);
8857 if (write (fd, data, pagesize) != pagesize)
8861 /* Next, try to mmap the file at a fixed address which already has
8862 something else allocated at it. If we can, also make sure that
8863 we see the same garbage. */
8864 fd = open ("conftest.mmap", O_RDWR);
8867 data2 = (char *) malloc (2 * pagesize);
8870 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
8871 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8872 MAP_PRIVATE | MAP_FIXED, fd, 0L))
8874 for (i = 0; i < pagesize; ++i)
8875 if (*(data + i) != *(data2 + i))
8878 /* Finally, make sure that changes to the mapped area do not
8879 percolate back to the file as seen by read(). (This is a bug on
8880 some variants of i386 svr4.0.) */
8881 for (i = 0; i < pagesize; ++i)
8882 *(data2 + i) = *(data2 + i) + 1;
8883 data3 = (char *) malloc (pagesize);
8886 if (read (fd, data3, pagesize) != pagesize)
8888 for (i = 0; i < pagesize; ++i)
8889 if (*(data + i) != *(data3 + i))
8895 rm -f conftest
$ac_exeext
8896 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8897 (eval $ac_link) 2>&5
8899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8900 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
8901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8905 (exit $ac_status); }; }; then
8906 ac_cv_func_mmap_fixed_mapped
=yes
8908 echo "$as_me: program exited with status $ac_status" >&5
8909 echo "$as_me: failed program was:" >&5
8910 sed 's/^/| /' conftest.
$ac_ext >&5
8913 ac_cv_func_mmap_fixed_mapped
=no
8915 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
8918 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
8919 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
8920 if test $ac_cv_func_mmap_fixed_mapped = yes; then
8922 cat >>confdefs.h
<<\_ACEOF
8929 if test $use_mmap_for_buffers = yes; then
8933 LIBS
="$libsrc_libs $LIBS"
8936 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
8937 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
8938 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
8939 echo $ECHO_N "(cached) $ECHO_C" >&6
8941 ac_check_lib_save_LIBS
=$LIBS
8943 cat >conftest.
$ac_ext <<_ACEOF
8946 cat confdefs.h
>>conftest.
$ac_ext
8947 cat >>conftest.
$ac_ext <<_ACEOF
8948 /* end confdefs.h. */
8950 /* Override any gcc2 internal prototype to avoid an error. */
8954 /* We use char because int might match the return type of a gcc2
8955 builtin and then its argument prototype would still apply. */
8965 rm -f conftest.
$ac_objext conftest
$ac_exeext
8966 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8967 (eval $ac_link) 2>conftest.er1
8969 grep -v '^ *+' conftest.er1
>conftest.err
8971 cat conftest.err
>&5
8972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8973 (exit $ac_status); } &&
8974 { ac_try
='test -z "$ac_c_werror_flag"
8975 || test ! -s conftest.err'
8976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8980 (exit $ac_status); }; } &&
8981 { ac_try
='test -s conftest$ac_exeext'
8982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8986 (exit $ac_status); }; }; then
8987 ac_cv_lib_dnet_dnet_ntoa
=yes
8989 echo "$as_me: failed program was:" >&5
8990 sed 's/^/| /' conftest.
$ac_ext >&5
8992 ac_cv_lib_dnet_dnet_ntoa
=no
8994 rm -f conftest.err conftest.
$ac_objext \
8995 conftest
$ac_exeext conftest.
$ac_ext
8996 LIBS
=$ac_check_lib_save_LIBS
8998 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
8999 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
9000 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
9001 cat >>confdefs.h
<<_ACEOF
9002 #define HAVE_LIBDNET 1
9010 echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
9011 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6
9012 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
9013 echo $ECHO_N "(cached) $ECHO_C" >&6
9015 ac_check_lib_save_LIBS
=$LIBS
9017 cat >conftest.
$ac_ext <<_ACEOF
9020 cat confdefs.h
>>conftest.
$ac_ext
9021 cat >>conftest.
$ac_ext <<_ACEOF
9022 /* end confdefs.h. */
9033 rm -f conftest.
$ac_objext conftest
$ac_exeext
9034 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9035 (eval $ac_link) 2>conftest.er1
9037 grep -v '^ *+' conftest.er1
>conftest.err
9039 cat conftest.err
>&5
9040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9041 (exit $ac_status); } &&
9042 { ac_try
='test -z "$ac_c_werror_flag"
9043 || test ! -s conftest.err'
9044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9048 (exit $ac_status); }; } &&
9049 { ac_try
='test -s conftest$ac_exeext'
9050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9054 (exit $ac_status); }; }; then
9055 ac_cv_lib_Xbsd_main
=yes
9057 echo "$as_me: failed program was:" >&5
9058 sed 's/^/| /' conftest.
$ac_ext >&5
9060 ac_cv_lib_Xbsd_main
=no
9062 rm -f conftest.err conftest.
$ac_objext \
9063 conftest
$ac_exeext conftest.
$ac_ext
9064 LIBS
=$ac_check_lib_save_LIBS
9066 echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
9067 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6
9068 if test $ac_cv_lib_Xbsd_main = yes; then
9069 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -lXbsd"
9074 echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
9075 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6
9076 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
9077 echo $ECHO_N "(cached) $ECHO_C" >&6
9079 ac_check_lib_save_LIBS
=$LIBS
9080 LIBS
="-lpthreads $LIBS"
9081 cat >conftest.
$ac_ext <<_ACEOF
9084 cat confdefs.h
>>conftest.
$ac_ext
9085 cat >>conftest.
$ac_ext <<_ACEOF
9086 /* end confdefs.h. */
9088 /* Override any gcc2 internal prototype to avoid an error. */
9092 /* We use char because int might match the return type of a gcc2
9093 builtin and then its argument prototype would still apply. */
9103 rm -f conftest.
$ac_objext conftest
$ac_exeext
9104 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9105 (eval $ac_link) 2>conftest.er1
9107 grep -v '^ *+' conftest.er1
>conftest.err
9109 cat conftest.err
>&5
9110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9111 (exit $ac_status); } &&
9112 { ac_try
='test -z "$ac_c_werror_flag"
9113 || test ! -s conftest.err'
9114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9118 (exit $ac_status); }; } &&
9119 { ac_try
='test -s conftest$ac_exeext'
9120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9124 (exit $ac_status); }; }; then
9125 ac_cv_lib_pthreads_cma_open
=yes
9127 echo "$as_me: failed program was:" >&5
9128 sed 's/^/| /' conftest.
$ac_ext >&5
9130 ac_cv_lib_pthreads_cma_open
=no
9132 rm -f conftest.err conftest.
$ac_objext \
9133 conftest
$ac_exeext conftest.
$ac_ext
9134 LIBS
=$ac_check_lib_save_LIBS
9136 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
9137 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6
9138 if test $ac_cv_lib_pthreads_cma_open = yes; then
9139 cat >>confdefs.h
<<_ACEOF
9140 #define HAVE_LIBPTHREADS 1
9143 LIBS
="-lpthreads $LIBS"
9148 echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
9149 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6
9150 if test -d /usr
/X386
/include
; then
9152 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
9156 echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
9157 echo "${ECHO_T}$HAVE_XFREE386" >&6
9162 echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
9163 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6
9164 if test "${gdb_cv_bigtoc+set}" = set; then
9165 echo $ECHO_N "(cached) $ECHO_C" >&6
9169 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
9170 *) gdb_cv_bigtoc
=-bbigtoc ;;
9173 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
9174 cat >conftest.
$ac_ext <<_ACEOF
9177 cat confdefs.h
>>conftest.
$ac_ext
9178 cat >>conftest.
$ac_ext <<_ACEOF
9179 /* end confdefs.h. */
9189 rm -f conftest.
$ac_objext conftest
$ac_exeext
9190 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9191 (eval $ac_link) 2>conftest.er1
9193 grep -v '^ *+' conftest.er1
>conftest.err
9195 cat conftest.err
>&5
9196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9197 (exit $ac_status); } &&
9198 { ac_try
='test -z "$ac_c_werror_flag"
9199 || test ! -s conftest.err'
9200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9204 (exit $ac_status); }; } &&
9205 { ac_try
='test -s conftest$ac_exeext'
9206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9210 (exit $ac_status); }; }; then
9213 echo "$as_me: failed program was:" >&5
9214 sed 's/^/| /' conftest.
$ac_ext >&5
9218 rm -f conftest.err conftest.
$ac_objext \
9219 conftest
$ac_exeext conftest.
$ac_ext
9222 echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
9223 echo "${ECHO_T}$gdb_cv_bigtoc" >&6
9227 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
9228 # used for the tests that follow. We set them back to REAL_CFLAGS and
9229 # REAL_CPPFLAGS later on.
9231 REAL_CPPFLAGS
="$CPPFLAGS"
9233 if test "${HAVE_X11}" = "yes"; then
9234 DEFS
="$C_SWITCH_X_SITE $DEFS"
9235 LDFLAGS
="$LDFLAGS $LD_SWITCH_X_SITE"
9237 CFLAGS
="$C_SWITCH_X_SITE $CFLAGS"
9238 CPPFLAGS
="$C_SWITCH_X_SITE $CPPFLAGS"
9240 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
9241 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
9242 # but it's more convenient here to set LD_RUN_PATH
9243 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
9244 if test "${x_libraries}" != NONE
&& test -n "${x_libraries}"; then
9245 LD_RUN_PATH
=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
9249 if test "${opsys}" = "gnu-linux"; then
9250 echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
9251 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6
9252 cat >conftest.
$ac_ext <<_ACEOF
9255 cat confdefs.h
>>conftest.
$ac_ext
9256 cat >>conftest.
$ac_ext <<_ACEOF
9257 /* end confdefs.h. */
9262 XOpenDisplay ("foo");
9267 rm -f conftest.
$ac_objext conftest
$ac_exeext
9268 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9269 (eval $ac_link) 2>conftest.er1
9271 grep -v '^ *+' conftest.er1
>conftest.err
9273 cat conftest.err
>&5
9274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9275 (exit $ac_status); } &&
9276 { ac_try
='test -z "$ac_c_werror_flag"
9277 || test ! -s conftest.err'
9278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9282 (exit $ac_status); }; } &&
9283 { ac_try
='test -s conftest$ac_exeext'
9284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9288 (exit $ac_status); }; }; then
9289 xlinux_first_failure
=no
9291 echo "$as_me: failed program was:" >&5
9292 sed 's/^/| /' conftest.
$ac_ext >&5
9294 xlinux_first_failure
=yes
9296 rm -f conftest.err conftest.
$ac_objext \
9297 conftest
$ac_exeext conftest.
$ac_ext
9298 if test "${xlinux_first_failure}" = "yes"; then
9299 OLD_LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE"
9300 OLD_C_SWITCH_X_SITE
="$C_SWITCH_X_SITE"
9301 OLD_CPPFLAGS
="$CPPFLAGS"
9303 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -b i486-linuxaout"
9304 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE -b i486-linuxaout"
9305 CPPFLAGS
="$CPPFLAGS -b i486-linuxaout"
9306 LIBS
="$LIBS -b i486-linuxaout"
9307 cat >conftest.
$ac_ext <<_ACEOF
9310 cat confdefs.h
>>conftest.
$ac_ext
9311 cat >>conftest.
$ac_ext <<_ACEOF
9312 /* end confdefs.h. */
9317 XOpenDisplay ("foo");
9322 rm -f conftest.
$ac_objext conftest
$ac_exeext
9323 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9324 (eval $ac_link) 2>conftest.er1
9326 grep -v '^ *+' conftest.er1
>conftest.err
9328 cat conftest.err
>&5
9329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9330 (exit $ac_status); } &&
9331 { ac_try
='test -z "$ac_c_werror_flag"
9332 || test ! -s conftest.err'
9333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9337 (exit $ac_status); }; } &&
9338 { ac_try
='test -s conftest$ac_exeext'
9339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9343 (exit $ac_status); }; }; then
9344 xlinux_second_failure
=no
9346 echo "$as_me: failed program was:" >&5
9347 sed 's/^/| /' conftest.
$ac_ext >&5
9349 xlinux_second_failure
=yes
9351 rm -f conftest.err conftest.
$ac_objext \
9352 conftest
$ac_exeext conftest.
$ac_ext
9353 if test "${xlinux_second_failure}" = "yes"; then
9354 # If we get the same failure with -b, there is no use adding -b.
9355 # So take it out. This plays safe.
9356 LD_SWITCH_X_SITE
="$OLD_LD_SWITCH_X_SITE"
9357 C_SWITCH_X_SITE
="$OLD_C_SWITCH_X_SITE"
9358 CPPFLAGS
="$OLD_CPPFLAGS"
9360 echo "$as_me:$LINENO: result: no" >&5
9361 echo "${ECHO_T}no" >&6
9363 echo "$as_me:$LINENO: result: yes" >&5
9364 echo "${ECHO_T}yes" >&6
9367 echo "$as_me:$LINENO: result: no" >&5
9368 echo "${ECHO_T}no" >&6
9372 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
9373 # header files included from there.
9374 echo "$as_me:$LINENO: checking for Xkb" >&5
9375 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6
9376 cat >conftest.
$ac_ext <<_ACEOF
9379 cat confdefs.h
>>conftest.
$ac_ext
9380 cat >>conftest.
$ac_ext <<_ACEOF
9381 /* end confdefs.h. */
9382 #include <X11/Xlib.h>
9383 #include <X11/XKBlib.h>
9387 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
9392 rm -f conftest.
$ac_objext conftest
$ac_exeext
9393 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9394 (eval $ac_link) 2>conftest.er1
9396 grep -v '^ *+' conftest.er1
>conftest.err
9398 cat conftest.err
>&5
9399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9400 (exit $ac_status); } &&
9401 { ac_try
='test -z "$ac_c_werror_flag"
9402 || test ! -s conftest.err'
9403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9407 (exit $ac_status); }; } &&
9408 { ac_try
='test -s conftest$ac_exeext'
9409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9413 (exit $ac_status); }; }; then
9416 echo "$as_me: failed program was:" >&5
9417 sed 's/^/| /' conftest.
$ac_ext >&5
9421 rm -f conftest.err conftest.
$ac_objext \
9422 conftest
$ac_exeext conftest.
$ac_ext
9423 echo "$as_me:$LINENO: result: $emacs_xkb" >&5
9424 echo "${ECHO_T}$emacs_xkb" >&6
9425 if test $emacs_xkb = yes; then
9427 cat >>confdefs.h
<<\_ACEOF
9428 #define HAVE_XKBGETKEYBOARD 1
9437 for ac_func
in XrmSetDatabase XScreenResourceString \
9438 XScreenNumberOfScreen XSetWMProtocols
9440 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9441 echo "$as_me:$LINENO: checking for $ac_func" >&5
9442 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9443 if eval "test \"\${$as_ac_var+set}\" = set"; then
9444 echo $ECHO_N "(cached) $ECHO_C" >&6
9446 cat >conftest.
$ac_ext <<_ACEOF
9449 cat confdefs.h
>>conftest.
$ac_ext
9450 cat >>conftest.
$ac_ext <<_ACEOF
9451 /* end confdefs.h. */
9452 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9453 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9454 #define $ac_func innocuous_$ac_func
9456 /* System header to define __stub macros and hopefully few prototypes,
9457 which can conflict with char $ac_func (); below.
9458 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9459 <limits.h> exists even on freestanding compilers. */
9462 # include <limits.h>
9464 # include <assert.h>
9469 /* Override any gcc2 internal prototype to avoid an error. */
9474 /* We use char because int might match the return type of a gcc2
9475 builtin and then its argument prototype would still apply. */
9477 /* The GNU C library defines this for functions which it implements
9478 to always fail with ENOSYS. Some functions are actually named
9479 something starting with __ and the normal name is an alias. */
9480 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9483 char (*f) () = $ac_func;
9492 return f != $ac_func;
9497 rm -f conftest.
$ac_objext conftest
$ac_exeext
9498 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9499 (eval $ac_link) 2>conftest.er1
9501 grep -v '^ *+' conftest.er1
>conftest.err
9503 cat conftest.err
>&5
9504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9505 (exit $ac_status); } &&
9506 { ac_try
='test -z "$ac_c_werror_flag"
9507 || test ! -s conftest.err'
9508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9512 (exit $ac_status); }; } &&
9513 { ac_try
='test -s conftest$ac_exeext'
9514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9518 (exit $ac_status); }; }; then
9519 eval "$as_ac_var=yes"
9521 echo "$as_me: failed program was:" >&5
9522 sed 's/^/| /' conftest.
$ac_ext >&5
9524 eval "$as_ac_var=no"
9526 rm -f conftest.err conftest.
$ac_objext \
9527 conftest
$ac_exeext conftest.
$ac_ext
9529 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9530 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9531 if test `eval echo '${'$as_ac_var'}'` = yes; then
9532 cat >>confdefs.h
<<_ACEOF
9533 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9541 if test "${window_system}" = "x11"; then
9542 echo "$as_me:$LINENO: checking X11 version 6" >&5
9543 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6
9544 if test "${emacs_cv_x11_version_6+set}" = set; then
9545 echo $ECHO_N "(cached) $ECHO_C" >&6
9547 cat >conftest.
$ac_ext <<_ACEOF
9550 cat confdefs.h
>>conftest.
$ac_ext
9551 cat >>conftest.
$ac_ext <<_ACEOF
9552 /* end confdefs.h. */
9553 #include <X11/Xlib.h>
9557 #if XlibSpecificationRelease < 6
9565 rm -f conftest.
$ac_objext conftest
$ac_exeext
9566 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9567 (eval $ac_link) 2>conftest.er1
9569 grep -v '^ *+' conftest.er1
>conftest.err
9571 cat conftest.err
>&5
9572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9573 (exit $ac_status); } &&
9574 { ac_try
='test -z "$ac_c_werror_flag"
9575 || test ! -s conftest.err'
9576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9580 (exit $ac_status); }; } &&
9581 { ac_try
='test -s conftest$ac_exeext'
9582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9586 (exit $ac_status); }; }; then
9587 emacs_cv_x11_version_6
=yes
9589 echo "$as_me: failed program was:" >&5
9590 sed 's/^/| /' conftest.
$ac_ext >&5
9592 emacs_cv_x11_version_6
=no
9594 rm -f conftest.err conftest.
$ac_objext \
9595 conftest
$ac_exeext conftest.
$ac_ext
9598 if test $emacs_cv_x11_version_6 = yes; then
9599 echo "$as_me:$LINENO: result: 6 or newer" >&5
9600 echo "${ECHO_T}6 or newer" >&6
9602 cat >>confdefs.h
<<\_ACEOF
9603 #define HAVE_X11R6 1
9607 echo "$as_me:$LINENO: result: before 6" >&5
9608 echo "${ECHO_T}before 6" >&6
9612 if test "${window_system}" = "x11"; then
9613 echo "$as_me:$LINENO: checking X11 version 5" >&5
9614 echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6
9615 if test "${emacs_cv_x11_version_5+set}" = set; then
9616 echo $ECHO_N "(cached) $ECHO_C" >&6
9618 cat >conftest.
$ac_ext <<_ACEOF
9621 cat confdefs.h
>>conftest.
$ac_ext
9622 cat >>conftest.
$ac_ext <<_ACEOF
9623 /* end confdefs.h. */
9624 #include <X11/Xlib.h>
9628 #if XlibSpecificationRelease < 5
9636 rm -f conftest.
$ac_objext conftest
$ac_exeext
9637 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9638 (eval $ac_link) 2>conftest.er1
9640 grep -v '^ *+' conftest.er1
>conftest.err
9642 cat conftest.err
>&5
9643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9644 (exit $ac_status); } &&
9645 { ac_try
='test -z "$ac_c_werror_flag"
9646 || test ! -s conftest.err'
9647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9651 (exit $ac_status); }; } &&
9652 { ac_try
='test -s conftest$ac_exeext'
9653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9657 (exit $ac_status); }; }; then
9658 emacs_cv_x11_version_5
=yes
9660 echo "$as_me: failed program was:" >&5
9661 sed 's/^/| /' conftest.
$ac_ext >&5
9663 emacs_cv_x11_version_5
=no
9665 rm -f conftest.err conftest.
$ac_objext \
9666 conftest
$ac_exeext conftest.
$ac_ext
9669 if test $emacs_cv_x11_version_5 = yes; then
9670 echo "$as_me:$LINENO: result: 5 or newer" >&5
9671 echo "${ECHO_T}5 or newer" >&6
9674 cat >>confdefs.h
<<\_ACEOF
9675 #define HAVE_X11R5 1
9680 echo "$as_me:$LINENO: result: before 5" >&5
9681 echo "${ECHO_T}before 5" >&6
9688 if test "${with_gtk}" = "yes" ||
test "$USE_X_TOOLKIT" = "gtk"; then
9689 if test "$USE_X_TOOLKIT" != "none" && test "$USE_X_TOOLKIT" != "maybe"; then
9690 { { echo "$as_me:$LINENO: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&5
9691 echo "$as_me: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&2;}
9692 { (exit 1); exit 1; }; };
9696 GTK_MODULES
="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
9698 if test "X${with_pkg_config_prog}" != X
; then
9699 PKG_CONFIG
="${with_pkg_config_prog}"
9704 if test -z "$PKG_CONFIG"; then
9705 # Extract the first word of "pkg-config", so it can be a program name with args.
9706 set dummy pkg-config
; ac_word
=$2
9707 echo "$as_me:$LINENO: checking for $ac_word" >&5
9708 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9709 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
9710 echo $ECHO_N "(cached) $ECHO_C" >&6
9714 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
9717 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9721 test -z "$as_dir" && as_dir
=.
9722 for ac_exec_ext
in '' $ac_executable_extensions; do
9723 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9724 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
9725 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9731 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
9735 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
9737 if test -n "$PKG_CONFIG"; then
9738 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
9739 echo "${ECHO_T}$PKG_CONFIG" >&6
9741 echo "$as_me:$LINENO: result: no" >&5
9742 echo "${ECHO_T}no" >&6
9747 if test "$PKG_CONFIG" = "no" ; then
9748 echo "*** The pkg-config script could not be found. Make sure it is"
9749 echo "*** in your path, or give the full path to pkg-config with"
9750 echo "*** the PKG_CONFIG environment variable or --with-pkg-config-prog."
9751 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
9753 PKG_CONFIG_MIN_VERSION
=0.9.0
9754 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9755 echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
9756 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6
9758 if $PKG_CONFIG --exists "$GTK_MODULES" ; then
9759 echo "$as_me:$LINENO: result: yes" >&5
9760 echo "${ECHO_T}yes" >&6
9763 echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
9764 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6
9765 GTK_CFLAGS
=`$PKG_CONFIG --cflags "$GTK_MODULES"`
9766 echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
9767 echo "${ECHO_T}$GTK_CFLAGS" >&6
9769 echo "$as_me:$LINENO: checking GTK_LIBS" >&5
9770 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6
9771 GTK_LIBS
=`$PKG_CONFIG --libs "$GTK_MODULES"`
9772 echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
9773 echo "${ECHO_T}$GTK_LIBS" >&6
9777 ## If we have a custom action on failure, don't print errors, but
9778 ## do set a variable so people can do so.
9779 GTK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
9780 echo $GTK_PKG_ERRORS
9786 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9787 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9791 if test $succeeded = yes; then
9794 { { 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
9795 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;}
9796 { (exit 1); exit 1; }; }
9801 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $GTK_CFLAGS"
9802 CFLAGS
="$CFLAGS $GTK_CFLAGS"
9803 LIBS
="$GTK_LIBS $LIBS"
9806 cat >>confdefs.h
<<\_ACEOF
9812 with_toolkit_scroll_bars
=yes
9814 HAVE_GTK_MULTIDISPLAY
=no
9816 for ac_func
in gdk_display_open
9818 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9819 echo "$as_me:$LINENO: checking for $ac_func" >&5
9820 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9821 if eval "test \"\${$as_ac_var+set}\" = set"; then
9822 echo $ECHO_N "(cached) $ECHO_C" >&6
9824 cat >conftest.
$ac_ext <<_ACEOF
9827 cat confdefs.h
>>conftest.
$ac_ext
9828 cat >>conftest.
$ac_ext <<_ACEOF
9829 /* end confdefs.h. */
9830 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9831 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9832 #define $ac_func innocuous_$ac_func
9834 /* System header to define __stub macros and hopefully few prototypes,
9835 which can conflict with char $ac_func (); below.
9836 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9837 <limits.h> exists even on freestanding compilers. */
9840 # include <limits.h>
9842 # include <assert.h>
9847 /* Override any gcc2 internal prototype to avoid an error. */
9852 /* We use char because int might match the return type of a gcc2
9853 builtin and then its argument prototype would still apply. */
9855 /* The GNU C library defines this for functions which it implements
9856 to always fail with ENOSYS. Some functions are actually named
9857 something starting with __ and the normal name is an alias. */
9858 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9861 char (*f) () = $ac_func;
9870 return f != $ac_func;
9875 rm -f conftest.
$ac_objext conftest
$ac_exeext
9876 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9877 (eval $ac_link) 2>conftest.er1
9879 grep -v '^ *+' conftest.er1
>conftest.err
9881 cat conftest.err
>&5
9882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9883 (exit $ac_status); } &&
9884 { ac_try
='test -z "$ac_c_werror_flag"
9885 || test ! -s conftest.err'
9886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9890 (exit $ac_status); }; } &&
9891 { ac_try
='test -s conftest$ac_exeext'
9892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9896 (exit $ac_status); }; }; then
9897 eval "$as_ac_var=yes"
9899 echo "$as_me: failed program was:" >&5
9900 sed 's/^/| /' conftest.
$ac_ext >&5
9902 eval "$as_ac_var=no"
9904 rm -f conftest.err conftest.
$ac_objext \
9905 conftest
$ac_exeext conftest.
$ac_ext
9907 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9908 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9909 if test `eval echo '${'$as_ac_var'}'` = yes; then
9910 cat >>confdefs.h
<<_ACEOF
9911 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9913 HAVE_GTK_MULTIDISPLAY
=yes
9917 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
9919 cat >>confdefs.h
<<\_ACEOF
9920 #define HAVE_GTK_MULTIDISPLAY 1
9926 if test x
"${USE_X_TOOLKIT}" = xmaybe
; then
9927 if test x
"${HAVE_X11R5}" = xyes
; then
9928 echo "$as_me:$LINENO: checking X11 version 5 with Xaw" >&5
9929 echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6
9930 if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then
9931 echo $ECHO_N "(cached) $ECHO_C" >&6
9933 cat >conftest.
$ac_ext <<_ACEOF
9936 cat confdefs.h
>>conftest.
$ac_ext
9937 cat >>conftest.
$ac_ext <<_ACEOF
9938 /* end confdefs.h. */
9940 #include <X11/Intrinsic.h>
9941 #include <X11/Xaw/Simple.h>
9950 rm -f conftest.
$ac_objext conftest
$ac_exeext
9951 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9952 (eval $ac_link) 2>conftest.er1
9954 grep -v '^ *+' conftest.er1
>conftest.err
9956 cat conftest.err
>&5
9957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9958 (exit $ac_status); } &&
9959 { ac_try
='test -z "$ac_c_werror_flag"
9960 || test ! -s conftest.err'
9961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9965 (exit $ac_status); }; } &&
9966 { ac_try
='test -s conftest$ac_exeext'
9967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9971 (exit $ac_status); }; }; then
9972 emacs_cv_x11_version_5_with_xaw
=yes
9974 echo "$as_me: failed program was:" >&5
9975 sed 's/^/| /' conftest.
$ac_ext >&5
9977 emacs_cv_x11_version_5_with_xaw
=no
9979 rm -f conftest.err conftest.
$ac_objext \
9980 conftest
$ac_exeext conftest.
$ac_ext
9983 if test $emacs_cv_x11_version_5_with_xaw = yes; then
9984 echo "$as_me:$LINENO: result: 5 or newer, with Xaw; use toolkit by default" >&5
9985 echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6
9988 echo "$as_me:$LINENO: result: before 5 or no Xaw; do not use toolkit by default" >&5
9989 echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6
9997 X_TOOLKIT_TYPE
=$USE_X_TOOLKIT
9999 if test "${USE_X_TOOLKIT}" != "none"; then
10000 echo "$as_me:$LINENO: checking X11 toolkit version" >&5
10001 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6
10002 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
10003 echo $ECHO_N "(cached) $ECHO_C" >&6
10005 cat >conftest.
$ac_ext <<_ACEOF
10008 cat confdefs.h
>>conftest.
$ac_ext
10009 cat >>conftest.
$ac_ext <<_ACEOF
10010 /* end confdefs.h. */
10011 #include <X11/Intrinsic.h>
10015 #if XtSpecificationRelease < 6
10023 rm -f conftest.
$ac_objext conftest
$ac_exeext
10024 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10025 (eval $ac_link) 2>conftest.er1
10027 grep -v '^ *+' conftest.er1
>conftest.err
10029 cat conftest.err
>&5
10030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10031 (exit $ac_status); } &&
10032 { ac_try
='test -z "$ac_c_werror_flag"
10033 || test ! -s conftest.err'
10034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10035 (eval $ac_try) 2>&5
10037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10038 (exit $ac_status); }; } &&
10039 { ac_try
='test -s conftest$ac_exeext'
10040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10041 (eval $ac_try) 2>&5
10043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10044 (exit $ac_status); }; }; then
10045 emacs_cv_x11_toolkit_version_6
=yes
10047 echo "$as_me: failed program was:" >&5
10048 sed 's/^/| /' conftest.
$ac_ext >&5
10050 emacs_cv_x11_toolkit_version_6
=no
10052 rm -f conftest.err conftest.
$ac_objext \
10053 conftest
$ac_exeext conftest.
$ac_ext
10056 HAVE_X11XTR6
=$emacs_cv_x11_toolkit_version_6
10057 if test $emacs_cv_x11_toolkit_version_6 = yes; then
10058 echo "$as_me:$LINENO: result: 6 or newer" >&5
10059 echo "${ECHO_T}6 or newer" >&6
10061 cat >>confdefs.h
<<\_ACEOF
10062 #define HAVE_X11XTR6 1
10066 echo "$as_me:$LINENO: result: before 6" >&5
10067 echo "${ECHO_T}before 6" >&6
10071 if test x
$HAVE_X11XTR6 = xyes
; then
10072 LIBS
="-lXt -lSM -lICE $LIBS"
10077 echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
10078 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6
10079 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
10080 echo $ECHO_N "(cached) $ECHO_C" >&6
10082 ac_check_lib_save_LIBS
=$LIBS
10084 cat >conftest.
$ac_ext <<_ACEOF
10087 cat confdefs.h
>>conftest.
$ac_ext
10088 cat >>conftest.
$ac_ext <<_ACEOF
10089 /* end confdefs.h. */
10091 /* Override any gcc2 internal prototype to avoid an error. */
10095 /* We use char because int might match the return type of a gcc2
10096 builtin and then its argument prototype would still apply. */
10097 char XmuConvertStandardSelection ();
10101 XmuConvertStandardSelection ();
10106 rm -f conftest.
$ac_objext conftest
$ac_exeext
10107 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10108 (eval $ac_link) 2>conftest.er1
10110 grep -v '^ *+' conftest.er1
>conftest.err
10112 cat conftest.err
>&5
10113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10114 (exit $ac_status); } &&
10115 { ac_try
='test -z "$ac_c_werror_flag"
10116 || test ! -s conftest.err'
10117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10118 (eval $ac_try) 2>&5
10120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10121 (exit $ac_status); }; } &&
10122 { ac_try
='test -s conftest$ac_exeext'
10123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10124 (eval $ac_try) 2>&5
10126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10127 (exit $ac_status); }; }; then
10128 ac_cv_lib_Xmu_XmuConvertStandardSelection
=yes
10130 echo "$as_me: failed program was:" >&5
10131 sed 's/^/| /' conftest.
$ac_ext >&5
10133 ac_cv_lib_Xmu_XmuConvertStandardSelection
=no
10135 rm -f conftest.err conftest.
$ac_objext \
10136 conftest
$ac_exeext conftest.
$ac_ext
10137 LIBS
=$ac_check_lib_save_LIBS
10139 echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
10140 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6
10141 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
10142 cat >>confdefs.h
<<_ACEOF
10143 #define HAVE_LIBXMU 1
10150 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no
&& LIBS
="$OLDLIBS"
10153 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
10154 if test "${HAVE_X11}" = "yes"; then
10155 if test "${USE_X_TOOLKIT}" != "none"; then
10157 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
10158 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
10159 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
10160 echo $ECHO_N "(cached) $ECHO_C" >&6
10162 ac_check_lib_save_LIBS
=$LIBS
10163 LIBS
="-lXext $LIBS"
10164 cat >conftest.
$ac_ext <<_ACEOF
10167 cat confdefs.h
>>conftest.
$ac_ext
10168 cat >>conftest.
$ac_ext <<_ACEOF
10169 /* end confdefs.h. */
10171 /* Override any gcc2 internal prototype to avoid an error. */
10175 /* We use char because int might match the return type of a gcc2
10176 builtin and then its argument prototype would still apply. */
10177 char XShapeQueryExtension ();
10181 XShapeQueryExtension ();
10186 rm -f conftest.
$ac_objext conftest
$ac_exeext
10187 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10188 (eval $ac_link) 2>conftest.er1
10190 grep -v '^ *+' conftest.er1
>conftest.err
10192 cat conftest.err
>&5
10193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10194 (exit $ac_status); } &&
10195 { ac_try
='test -z "$ac_c_werror_flag"
10196 || test ! -s conftest.err'
10197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10198 (eval $ac_try) 2>&5
10200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10201 (exit $ac_status); }; } &&
10202 { ac_try
='test -s conftest$ac_exeext'
10203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10204 (eval $ac_try) 2>&5
10206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10207 (exit $ac_status); }; }; then
10208 ac_cv_lib_Xext_XShapeQueryExtension
=yes
10210 echo "$as_me: failed program was:" >&5
10211 sed 's/^/| /' conftest.
$ac_ext >&5
10213 ac_cv_lib_Xext_XShapeQueryExtension
=no
10215 rm -f conftest.err conftest.
$ac_objext \
10216 conftest
$ac_exeext conftest.
$ac_ext
10217 LIBS
=$ac_check_lib_save_LIBS
10219 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
10220 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
10221 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
10222 cat >>confdefs.h
<<_ACEOF
10223 #define HAVE_LIBXEXT 1
10226 LIBS
="-lXext $LIBS"
10233 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
10234 echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
10235 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6
10236 if test "${emacs_cv_lesstif+set}" = set; then
10237 echo $ECHO_N "(cached) $ECHO_C" >&6
10239 # We put this in CFLAGS temporarily to precede other -I options
10240 # that might be in CFLAGS temporarily.
10241 # We put this in CPPFLAGS where it precedes the other -I options.
10242 OLD_CPPFLAGS
=$CPPFLAGS
10244 CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
10245 CFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
10246 cat >conftest.
$ac_ext <<_ACEOF
10249 cat confdefs.h
>>conftest.
$ac_ext
10250 cat >>conftest.
$ac_ext <<_ACEOF
10251 /* end confdefs.h. */
10252 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
10261 rm -f conftest.
$ac_objext
10262 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10263 (eval $ac_compile) 2>conftest.er1
10265 grep -v '^ *+' conftest.er1
>conftest.err
10267 cat conftest.err
>&5
10268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10269 (exit $ac_status); } &&
10270 { ac_try
='test -z "$ac_c_werror_flag"
10271 || test ! -s conftest.err'
10272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10273 (eval $ac_try) 2>&5
10275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10276 (exit $ac_status); }; } &&
10277 { ac_try
='test -s conftest.$ac_objext'
10278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10279 (eval $ac_try) 2>&5
10281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10282 (exit $ac_status); }; }; then
10283 emacs_cv_lesstif
=yes
10285 echo "$as_me: failed program was:" >&5
10286 sed 's/^/| /' conftest.
$ac_ext >&5
10288 emacs_cv_lesstif
=no
10290 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10292 echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
10293 echo "${ECHO_T}$emacs_cv_lesstif" >&6
10294 if test $emacs_cv_lesstif = yes; then
10295 # Make sure this -I option remains in CPPFLAGS after it is set
10296 # back to REAL_CPPFLAGS.
10297 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
10298 # have those other -I options anyway. Ultimately, having this
10299 # directory ultimately in CPPFLAGS will be enough.
10300 REAL_CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
10301 LDFLAGS
="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
10304 CPPFLAGS
=$OLD_CPPFLAGS
10306 echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
10307 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6
10308 if test "${emacs_cv_motif_version_2_1+set}" = set; then
10309 echo $ECHO_N "(cached) $ECHO_C" >&6
10311 cat >conftest.
$ac_ext <<_ACEOF
10314 cat confdefs.h
>>conftest.
$ac_ext
10315 cat >>conftest.
$ac_ext <<_ACEOF
10316 /* end confdefs.h. */
10321 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
10324 Motif version prior to 2.1.
10330 rm -f conftest.
$ac_objext
10331 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10332 (eval $ac_compile) 2>conftest.er1
10334 grep -v '^ *+' conftest.er1
>conftest.err
10336 cat conftest.err
>&5
10337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10338 (exit $ac_status); } &&
10339 { ac_try
='test -z "$ac_c_werror_flag"
10340 || test ! -s conftest.err'
10341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10342 (eval $ac_try) 2>&5
10344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10345 (exit $ac_status); }; } &&
10346 { ac_try
='test -s conftest.$ac_objext'
10347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10348 (eval $ac_try) 2>&5
10350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10351 (exit $ac_status); }; }; then
10352 emacs_cv_motif_version_2_1
=yes
10354 echo "$as_me: failed program was:" >&5
10355 sed 's/^/| /' conftest.
$ac_ext >&5
10357 emacs_cv_motif_version_2_1
=no
10359 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10361 echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
10362 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6
10363 HAVE_MOTIF_2_1
=$emacs_cv_motif_version_2_1
10364 if test $emacs_cv_motif_version_2_1 = yes; then
10367 cat >>confdefs.h
<<\_ACEOF
10368 #define HAVE_MOTIF_2_1 1
10371 echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
10372 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6
10373 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
10374 echo $ECHO_N "(cached) $ECHO_C" >&6
10376 ac_check_lib_save_LIBS
=$LIBS
10378 cat >conftest.
$ac_ext <<_ACEOF
10381 cat confdefs.h
>>conftest.
$ac_ext
10382 cat >>conftest.
$ac_ext <<_ACEOF
10383 /* end confdefs.h. */
10385 /* Override any gcc2 internal prototype to avoid an error. */
10389 /* We use char because int might match the return type of a gcc2
10390 builtin and then its argument prototype would still apply. */
10391 char XpCreateContext ();
10395 XpCreateContext ();
10400 rm -f conftest.
$ac_objext conftest
$ac_exeext
10401 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10402 (eval $ac_link) 2>conftest.er1
10404 grep -v '^ *+' conftest.er1
>conftest.err
10406 cat conftest.err
>&5
10407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10408 (exit $ac_status); } &&
10409 { ac_try
='test -z "$ac_c_werror_flag"
10410 || test ! -s conftest.err'
10411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10412 (eval $ac_try) 2>&5
10414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10415 (exit $ac_status); }; } &&
10416 { ac_try
='test -s conftest$ac_exeext'
10417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10418 (eval $ac_try) 2>&5
10420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10421 (exit $ac_status); }; }; then
10422 ac_cv_lib_Xp_XpCreateContext
=yes
10424 echo "$as_me: failed program was:" >&5
10425 sed 's/^/| /' conftest.
$ac_ext >&5
10427 ac_cv_lib_Xp_XpCreateContext
=no
10429 rm -f conftest.err conftest.
$ac_objext \
10430 conftest
$ac_exeext conftest.
$ac_ext
10431 LIBS
=$ac_check_lib_save_LIBS
10433 echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
10434 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6
10435 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
10439 if test ${HAVE_LIBXP} = yes; then
10441 cat >>confdefs.h
<<\_ACEOF
10442 #define HAVE_LIBXP 1
10449 ### Is -lXaw3d available?
10451 if test "${HAVE_X11}" = "yes"; then
10452 if test "${USE_X_TOOLKIT}" != "none"; then
10453 echo "$as_me:$LINENO: checking for X11/Xaw3d/Scrollbar.h" >&5
10454 echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6
10455 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
10456 echo $ECHO_N "(cached) $ECHO_C" >&6
10458 cat >conftest.
$ac_ext <<_ACEOF
10461 cat confdefs.h
>>conftest.
$ac_ext
10462 cat >>conftest.
$ac_ext <<_ACEOF
10463 /* end confdefs.h. */
10464 #include <X11/Xaw3d/Scrollbar.h>
10466 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10467 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
10469 grep -v '^ *+' conftest.er1
>conftest.err
10471 cat conftest.err
>&5
10472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10473 (exit $ac_status); } >/dev
/null
; then
10474 if test -s conftest.err
; then
10475 ac_cpp_err
=$ac_c_preproc_warn_flag
10476 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
10483 if test -z "$ac_cpp_err"; then
10484 ac_cv_header_X11_Xaw3d_Scrollbar_h
=yes
10486 echo "$as_me: failed program was:" >&5
10487 sed 's/^/| /' conftest.
$ac_ext >&5
10489 ac_cv_header_X11_Xaw3d_Scrollbar_h
=no
10491 rm -f conftest.err conftest.
$ac_ext
10493 echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
10494 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6
10495 if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then
10496 echo "$as_me:$LINENO: checking for XawScrollbarSetThumb in -lXaw3d" >&5
10497 echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6
10498 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then
10499 echo $ECHO_N "(cached) $ECHO_C" >&6
10501 ac_check_lib_save_LIBS
=$LIBS
10502 LIBS
="-lXaw3d $LIBS"
10503 cat >conftest.
$ac_ext <<_ACEOF
10506 cat confdefs.h
>>conftest.
$ac_ext
10507 cat >>conftest.
$ac_ext <<_ACEOF
10508 /* end confdefs.h. */
10510 /* Override any gcc2 internal prototype to avoid an error. */
10514 /* We use char because int might match the return type of a gcc2
10515 builtin and then its argument prototype would still apply. */
10516 char XawScrollbarSetThumb ();
10520 XawScrollbarSetThumb ();
10525 rm -f conftest.
$ac_objext conftest
$ac_exeext
10526 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10527 (eval $ac_link) 2>conftest.er1
10529 grep -v '^ *+' conftest.er1
>conftest.err
10531 cat conftest.err
>&5
10532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10533 (exit $ac_status); } &&
10534 { ac_try
='test -z "$ac_c_werror_flag"
10535 || test ! -s conftest.err'
10536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10537 (eval $ac_try) 2>&5
10539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10540 (exit $ac_status); }; } &&
10541 { ac_try
='test -s conftest$ac_exeext'
10542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10543 (eval $ac_try) 2>&5
10545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10546 (exit $ac_status); }; }; then
10547 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=yes
10549 echo "$as_me: failed program was:" >&5
10550 sed 's/^/| /' conftest.
$ac_ext >&5
10552 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=no
10554 rm -f conftest.err conftest.
$ac_objext \
10555 conftest
$ac_exeext conftest.
$ac_ext
10556 LIBS
=$ac_check_lib_save_LIBS
10558 echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
10559 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6
10560 if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then
10567 if test "${HAVE_XAW3D}" = "yes"; then
10569 cat >>confdefs.h
<<\_ACEOF
10570 #define HAVE_XAW3D 1
10579 USE_TOOLKIT_SCROLL_BARS
=no
10580 if test "${with_toolkit_scroll_bars}" != "no"; then
10581 if test "${USE_X_TOOLKIT}" != "none"; then
10582 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
10583 cat >>confdefs.h
<<\_ACEOF
10584 #define USE_TOOLKIT_SCROLL_BARS 1
10588 USE_TOOLKIT_SCROLL_BARS
=yes
10589 elif test "${HAVE_XAW3D}" = "yes"; then
10590 cat >>confdefs.h
<<\_ACEOF
10591 #define USE_TOOLKIT_SCROLL_BARS 1
10594 USE_TOOLKIT_SCROLL_BARS
=yes
10596 elif test "${HAVE_GTK}" = "yes"; then
10597 cat >>confdefs.h
<<\_ACEOF
10598 #define USE_TOOLKIT_SCROLL_BARS 1
10601 USE_TOOLKIT_SCROLL_BARS
=yes
10605 cat >conftest.
$ac_ext <<_ACEOF
10608 cat confdefs.h
>>conftest.
$ac_ext
10609 cat >>conftest.
$ac_ext <<_ACEOF
10610 /* end confdefs.h. */
10612 #include <X11/Xlib.h>
10613 #include <X11/Xresource.h>
10622 rm -f conftest.
$ac_objext
10623 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10624 (eval $ac_compile) 2>conftest.er1
10626 grep -v '^ *+' conftest.er1
>conftest.err
10628 cat conftest.err
>&5
10629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10630 (exit $ac_status); } &&
10631 { ac_try
='test -z "$ac_c_werror_flag"
10632 || test ! -s conftest.err'
10633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10634 (eval $ac_try) 2>&5
10636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10637 (exit $ac_status); }; } &&
10638 { ac_try
='test -s conftest.$ac_objext'
10639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10640 (eval $ac_try) 2>&5
10642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10643 (exit $ac_status); }; }; then
10646 cat >>confdefs.h
<<\_ACEOF
10651 echo "$as_me: failed program was:" >&5
10652 sed 's/^/| /' conftest.
$ac_ext >&5
10656 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10659 if test "${with_xim}" != "no"; then
10661 cat >>confdefs.h
<<\_ACEOF
10668 if test "${HAVE_XIM}" != "no"; then
10669 late_CFLAGS
=$CFLAGS
10670 if test "$GCC" = yes; then
10671 CFLAGS
="$CFLAGS --pedantic-errors"
10673 cat >conftest.
$ac_ext <<_ACEOF
10676 cat confdefs.h
>>conftest.
$ac_ext
10677 cat >>conftest.
$ac_ext <<_ACEOF
10678 /* end confdefs.h. */
10680 #include <X11/Xlib.h>
10681 #include <X11/Xresource.h>
10690 XPointer *client_data;
10692 /* If we're not using GCC, it's probably not XFree86, and this is
10693 probably right, but we can't use something like --pedantic-errors. */
10694 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
10695 char*, XIMProc, XPointer*);
10697 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
10703 rm -f conftest.
$ac_objext
10704 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10705 (eval $ac_compile) 2>conftest.er1
10707 grep -v '^ *+' conftest.er1
>conftest.err
10709 cat conftest.err
>&5
10710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10711 (exit $ac_status); } &&
10712 { ac_try
='test -z "$ac_c_werror_flag"
10713 || test ! -s conftest.err'
10714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10715 (eval $ac_try) 2>&5
10717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10718 (exit $ac_status); }; } &&
10719 { ac_try
='test -s conftest.$ac_objext'
10720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10721 (eval $ac_try) 2>&5
10723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10724 (exit $ac_status); }; }; then
10725 emacs_cv_arg6_star
=yes
10727 echo "$as_me: failed program was:" >&5
10728 sed 's/^/| /' conftest.
$ac_ext >&5
10731 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10733 if test "$emacs_cv_arg6_star" = yes; then
10734 cat >>confdefs.h
<<\_ACEOF
10735 #define XRegisterIMInstantiateCallback_arg6 XPointer*
10739 cat >>confdefs.h
<<\_ACEOF
10740 #define XRegisterIMInstantiateCallback_arg6 XPointer
10744 CFLAGS
=$late_CFLAGS
10747 ### Use -lXpm if available, unless `--with-xpm=no'.
10749 if test "${HAVE_X11}" = "yes"; then
10750 if test "${with_xpm}" != "no"; then
10751 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
10752 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
10753 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
10754 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
10755 echo $ECHO_N "(cached) $ECHO_C" >&6
10757 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
10758 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
10760 # Is the header compilable?
10761 echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
10762 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6
10763 cat >conftest.
$ac_ext <<_ACEOF
10766 cat confdefs.h
>>conftest.
$ac_ext
10767 cat >>conftest.
$ac_ext <<_ACEOF
10768 /* end confdefs.h. */
10769 $ac_includes_default
10770 #include <X11/xpm.h>
10772 rm -f conftest.
$ac_objext
10773 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10774 (eval $ac_compile) 2>conftest.er1
10776 grep -v '^ *+' conftest.er1
>conftest.err
10778 cat conftest.err
>&5
10779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10780 (exit $ac_status); } &&
10781 { ac_try
='test -z "$ac_c_werror_flag"
10782 || test ! -s conftest.err'
10783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10784 (eval $ac_try) 2>&5
10786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10787 (exit $ac_status); }; } &&
10788 { ac_try
='test -s conftest.$ac_objext'
10789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10790 (eval $ac_try) 2>&5
10792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10793 (exit $ac_status); }; }; then
10794 ac_header_compiler
=yes
10796 echo "$as_me: failed program was:" >&5
10797 sed 's/^/| /' conftest.
$ac_ext >&5
10799 ac_header_compiler
=no
10801 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10802 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10803 echo "${ECHO_T}$ac_header_compiler" >&6
10805 # Is the header present?
10806 echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
10807 echo $ECHO_N "checking X11/xpm.h presence... $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 #include <X11/xpm.h>
10816 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10817 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
10819 grep -v '^ *+' conftest.er1
>conftest.err
10821 cat conftest.err
>&5
10822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10823 (exit $ac_status); } >/dev
/null
; then
10824 if test -s conftest.err
; then
10825 ac_cpp_err
=$ac_c_preproc_warn_flag
10826 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
10833 if test -z "$ac_cpp_err"; then
10834 ac_header_preproc
=yes
10836 echo "$as_me: failed program was:" >&5
10837 sed 's/^/| /' conftest.
$ac_ext >&5
10839 ac_header_preproc
=no
10841 rm -f conftest.err conftest.
$ac_ext
10842 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10843 echo "${ECHO_T}$ac_header_preproc" >&6
10845 # So? What about this header?
10846 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10848 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
10849 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10850 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
10851 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
10852 ac_header_preproc
=yes
10855 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
10856 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
10857 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
10858 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
10859 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
10860 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
10861 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
10862 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
10863 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
10864 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
10865 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
10866 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
10869 ## ------------------------------------------ ##
10870 ## Report this to the AC_PACKAGE_NAME lists. ##
10871 ## ------------------------------------------ ##
10874 sed "s/^/$as_me: WARNING: /" >&2
10877 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
10878 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
10879 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
10880 echo $ECHO_N "(cached) $ECHO_C" >&6
10882 ac_cv_header_X11_xpm_h
=$ac_header_preproc
10884 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
10885 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
10888 if test $ac_cv_header_X11_xpm_h = yes; then
10889 echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
10890 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6
10891 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
10892 echo $ECHO_N "(cached) $ECHO_C" >&6
10894 ac_check_lib_save_LIBS
=$LIBS
10895 LIBS
="-lXpm -lX11 $LIBS"
10896 cat >conftest.
$ac_ext <<_ACEOF
10899 cat confdefs.h
>>conftest.
$ac_ext
10900 cat >>conftest.
$ac_ext <<_ACEOF
10901 /* end confdefs.h. */
10903 /* Override any gcc2 internal prototype to avoid an error. */
10907 /* We use char because int might match the return type of a gcc2
10908 builtin and then its argument prototype would still apply. */
10909 char XpmReadFileToPixmap ();
10913 XpmReadFileToPixmap ();
10918 rm -f conftest.
$ac_objext conftest
$ac_exeext
10919 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10920 (eval $ac_link) 2>conftest.er1
10922 grep -v '^ *+' conftest.er1
>conftest.err
10924 cat conftest.err
>&5
10925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10926 (exit $ac_status); } &&
10927 { ac_try
='test -z "$ac_c_werror_flag"
10928 || test ! -s conftest.err'
10929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10930 (eval $ac_try) 2>&5
10932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10933 (exit $ac_status); }; } &&
10934 { ac_try
='test -s conftest$ac_exeext'
10935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10936 (eval $ac_try) 2>&5
10938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10939 (exit $ac_status); }; }; then
10940 ac_cv_lib_Xpm_XpmReadFileToPixmap
=yes
10942 echo "$as_me: failed program was:" >&5
10943 sed 's/^/| /' conftest.
$ac_ext >&5
10945 ac_cv_lib_Xpm_XpmReadFileToPixmap
=no
10947 rm -f conftest.err conftest.
$ac_objext \
10948 conftest
$ac_exeext conftest.
$ac_ext
10949 LIBS
=$ac_check_lib_save_LIBS
10951 echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
10952 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6
10953 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
10960 if test "${HAVE_XPM}" = "yes"; then
10961 echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
10962 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6
10963 cat >conftest.
$ac_ext <<_ACEOF
10966 cat confdefs.h
>>conftest.
$ac_ext
10967 cat >>conftest.
$ac_ext <<_ACEOF
10968 /* end confdefs.h. */
10969 #include "X11/xpm.h"
10970 #ifndef XpmReturnAllocPixels
10971 no_return_alloc_pixels
10975 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10976 $EGREP "no_return_alloc_pixels" >/dev
/null
2>&1; then
10984 if test "${HAVE_XPM}" = "yes"; then
10985 echo "$as_me:$LINENO: result: yes" >&5
10986 echo "${ECHO_T}yes" >&6
10988 echo "$as_me:$LINENO: result: no" >&5
10989 echo "${ECHO_T}no" >&6
10994 if test "${HAVE_XPM}" = "yes"; then
10996 cat >>confdefs.h
<<\_ACEOF
11003 ### Use -ljpeg if available, unless `--with-jpeg=no'.
11005 if test "${HAVE_X11}" = "yes"; then
11006 if test "${with_jpeg}" != "no"; then
11007 if test "${ac_cv_header_jerror_h+set}" = set; then
11008 echo "$as_me:$LINENO: checking for jerror.h" >&5
11009 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
11010 if test "${ac_cv_header_jerror_h+set}" = set; then
11011 echo $ECHO_N "(cached) $ECHO_C" >&6
11013 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
11014 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
11016 # Is the header compilable?
11017 echo "$as_me:$LINENO: checking jerror.h usability" >&5
11018 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6
11019 cat >conftest.
$ac_ext <<_ACEOF
11022 cat confdefs.h
>>conftest.
$ac_ext
11023 cat >>conftest.
$ac_ext <<_ACEOF
11024 /* end confdefs.h. */
11025 $ac_includes_default
11026 #include <jerror.h>
11028 rm -f conftest.
$ac_objext
11029 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11030 (eval $ac_compile) 2>conftest.er1
11032 grep -v '^ *+' conftest.er1
>conftest.err
11034 cat conftest.err
>&5
11035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11036 (exit $ac_status); } &&
11037 { ac_try
='test -z "$ac_c_werror_flag"
11038 || test ! -s conftest.err'
11039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11040 (eval $ac_try) 2>&5
11042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11043 (exit $ac_status); }; } &&
11044 { ac_try
='test -s conftest.$ac_objext'
11045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11046 (eval $ac_try) 2>&5
11048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11049 (exit $ac_status); }; }; then
11050 ac_header_compiler
=yes
11052 echo "$as_me: failed program was:" >&5
11053 sed 's/^/| /' conftest.
$ac_ext >&5
11055 ac_header_compiler
=no
11057 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11058 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11059 echo "${ECHO_T}$ac_header_compiler" >&6
11061 # Is the header present?
11062 echo "$as_me:$LINENO: checking jerror.h presence" >&5
11063 echo $ECHO_N "checking jerror.h presence... $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 #include <jerror.h>
11072 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11073 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11075 grep -v '^ *+' conftest.er1
>conftest.err
11077 cat conftest.err
>&5
11078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11079 (exit $ac_status); } >/dev
/null
; then
11080 if test -s conftest.err
; then
11081 ac_cpp_err
=$ac_c_preproc_warn_flag
11082 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
11089 if test -z "$ac_cpp_err"; then
11090 ac_header_preproc
=yes
11092 echo "$as_me: failed program was:" >&5
11093 sed 's/^/| /' conftest.
$ac_ext >&5
11095 ac_header_preproc
=no
11097 rm -f conftest.err conftest.
$ac_ext
11098 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11099 echo "${ECHO_T}$ac_header_preproc" >&6
11101 # So? What about this header?
11102 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11104 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
11105 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11106 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
11107 echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
11108 ac_header_preproc
=yes
11111 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
11112 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
11113 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
11114 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
11115 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
11116 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
11117 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
11118 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
11119 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
11120 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
11121 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
11122 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
11125 ## ------------------------------------------ ##
11126 ## Report this to the AC_PACKAGE_NAME lists. ##
11127 ## ------------------------------------------ ##
11130 sed "s/^/$as_me: WARNING: /" >&2
11133 echo "$as_me:$LINENO: checking for jerror.h" >&5
11134 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
11135 if test "${ac_cv_header_jerror_h+set}" = set; then
11136 echo $ECHO_N "(cached) $ECHO_C" >&6
11138 ac_cv_header_jerror_h
=$ac_header_preproc
11140 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
11141 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
11144 if test $ac_cv_header_jerror_h = yes; then
11145 echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
11146 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6
11147 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
11148 echo $ECHO_N "(cached) $ECHO_C" >&6
11150 ac_check_lib_save_LIBS
=$LIBS
11151 LIBS
="-ljpeg $LIBS"
11152 cat >conftest.
$ac_ext <<_ACEOF
11155 cat confdefs.h
>>conftest.
$ac_ext
11156 cat >>conftest.
$ac_ext <<_ACEOF
11157 /* end confdefs.h. */
11159 /* Override any gcc2 internal prototype to avoid an error. */
11163 /* We use char because int might match the return type of a gcc2
11164 builtin and then its argument prototype would still apply. */
11165 char jpeg_destroy_compress ();
11169 jpeg_destroy_compress ();
11174 rm -f conftest.
$ac_objext conftest
$ac_exeext
11175 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11176 (eval $ac_link) 2>conftest.er1
11178 grep -v '^ *+' conftest.er1
>conftest.err
11180 cat conftest.err
>&5
11181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11182 (exit $ac_status); } &&
11183 { ac_try
='test -z "$ac_c_werror_flag"
11184 || test ! -s conftest.err'
11185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11186 (eval $ac_try) 2>&5
11188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11189 (exit $ac_status); }; } &&
11190 { ac_try
='test -s conftest$ac_exeext'
11191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11192 (eval $ac_try) 2>&5
11194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11195 (exit $ac_status); }; }; then
11196 ac_cv_lib_jpeg_jpeg_destroy_compress
=yes
11198 echo "$as_me: failed program was:" >&5
11199 sed 's/^/| /' conftest.
$ac_ext >&5
11201 ac_cv_lib_jpeg_jpeg_destroy_compress
=no
11203 rm -f conftest.err conftest.
$ac_objext \
11204 conftest
$ac_exeext conftest.
$ac_ext
11205 LIBS
=$ac_check_lib_save_LIBS
11207 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
11208 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6
11209 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
11219 if test "${HAVE_JPEG}" = "yes"; then
11220 cat >>confdefs.h
<<\_ACEOF
11221 #define HAVE_JPEG 1
11224 cat >conftest.
$ac_ext <<_ACEOF
11227 cat confdefs.h
>>conftest.
$ac_ext
11228 cat >>conftest.
$ac_ext <<_ACEOF
11229 /* end confdefs.h. */
11230 #include <jpeglib.h>
11231 version=JPEG_LIB_VERSION
11234 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11235 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev
/null
2>&1; then
11236 cat >>confdefs.h
<<\_ACEOF
11237 #define HAVE_JPEG 1
11241 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
11242 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
11250 ### Use -lpng if available, unless `--with-png=no'.
11252 if test "${HAVE_X11}" = "yes"; then
11253 if test "${with_png}" != "no"; then
11254 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
11255 # in /usr/include/libpng.
11258 for ac_header
in png.h libpng
/png.h
11260 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11261 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11262 echo "$as_me:$LINENO: checking for $ac_header" >&5
11263 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11264 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11265 echo $ECHO_N "(cached) $ECHO_C" >&6
11267 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11268 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11270 # Is the header compilable?
11271 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11272 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11273 cat >conftest.
$ac_ext <<_ACEOF
11276 cat confdefs.h
>>conftest.
$ac_ext
11277 cat >>conftest.
$ac_ext <<_ACEOF
11278 /* end confdefs.h. */
11279 $ac_includes_default
11280 #include <$ac_header>
11282 rm -f conftest.
$ac_objext
11283 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11284 (eval $ac_compile) 2>conftest.er1
11286 grep -v '^ *+' conftest.er1
>conftest.err
11288 cat conftest.err
>&5
11289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11290 (exit $ac_status); } &&
11291 { ac_try
='test -z "$ac_c_werror_flag"
11292 || test ! -s conftest.err'
11293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11294 (eval $ac_try) 2>&5
11296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11297 (exit $ac_status); }; } &&
11298 { ac_try
='test -s conftest.$ac_objext'
11299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11300 (eval $ac_try) 2>&5
11302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11303 (exit $ac_status); }; }; then
11304 ac_header_compiler
=yes
11306 echo "$as_me: failed program was:" >&5
11307 sed 's/^/| /' conftest.
$ac_ext >&5
11309 ac_header_compiler
=no
11311 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11312 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11313 echo "${ECHO_T}$ac_header_compiler" >&6
11315 # Is the header present?
11316 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11317 echo $ECHO_N "checking $ac_header presence... $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 #include <$ac_header>
11326 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11327 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11329 grep -v '^ *+' conftest.er1
>conftest.err
11331 cat conftest.err
>&5
11332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11333 (exit $ac_status); } >/dev
/null
; then
11334 if test -s conftest.err
; then
11335 ac_cpp_err
=$ac_c_preproc_warn_flag
11336 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
11343 if test -z "$ac_cpp_err"; then
11344 ac_header_preproc
=yes
11346 echo "$as_me: failed program was:" >&5
11347 sed 's/^/| /' conftest.
$ac_ext >&5
11349 ac_header_preproc
=no
11351 rm -f conftest.err conftest.
$ac_ext
11352 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11353 echo "${ECHO_T}$ac_header_preproc" >&6
11355 # So? What about this header?
11356 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11358 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11359 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11360 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11361 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11362 ac_header_preproc
=yes
11365 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11366 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11367 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11368 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11369 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11370 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11371 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11372 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11373 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11374 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11375 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11376 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11379 ## ------------------------------------------ ##
11380 ## Report this to the AC_PACKAGE_NAME lists. ##
11381 ## ------------------------------------------ ##
11384 sed "s/^/$as_me: WARNING: /" >&2
11387 echo "$as_me:$LINENO: checking for $ac_header" >&5
11388 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11389 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11390 echo $ECHO_N "(cached) $ECHO_C" >&6
11392 eval "$as_ac_Header=\$ac_header_preproc"
11394 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11395 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11398 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11399 cat >>confdefs.h
<<_ACEOF
11400 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11407 if test "$ac_cv_header_png_h" = yes ||
test "$ac_cv_header_libpng_png_h" = yes ; then
11408 echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
11409 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6
11410 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
11411 echo $ECHO_N "(cached) $ECHO_C" >&6
11413 ac_check_lib_save_LIBS
=$LIBS
11414 LIBS
="-lpng -lz -lm $LIBS"
11415 cat >conftest.
$ac_ext <<_ACEOF
11418 cat confdefs.h
>>conftest.
$ac_ext
11419 cat >>conftest.
$ac_ext <<_ACEOF
11420 /* end confdefs.h. */
11422 /* Override any gcc2 internal prototype to avoid an error. */
11426 /* We use char because int might match the return type of a gcc2
11427 builtin and then its argument prototype would still apply. */
11428 char png_get_channels ();
11432 png_get_channels ();
11437 rm -f conftest.
$ac_objext conftest
$ac_exeext
11438 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11439 (eval $ac_link) 2>conftest.er1
11441 grep -v '^ *+' conftest.er1
>conftest.err
11443 cat conftest.err
>&5
11444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11445 (exit $ac_status); } &&
11446 { ac_try
='test -z "$ac_c_werror_flag"
11447 || test ! -s conftest.err'
11448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11449 (eval $ac_try) 2>&5
11451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11452 (exit $ac_status); }; } &&
11453 { ac_try
='test -s conftest$ac_exeext'
11454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11455 (eval $ac_try) 2>&5
11457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11458 (exit $ac_status); }; }; then
11459 ac_cv_lib_png_png_get_channels
=yes
11461 echo "$as_me: failed program was:" >&5
11462 sed 's/^/| /' conftest.
$ac_ext >&5
11464 ac_cv_lib_png_png_get_channels
=no
11466 rm -f conftest.err conftest.
$ac_objext \
11467 conftest
$ac_exeext conftest.
$ac_ext
11468 LIBS
=$ac_check_lib_save_LIBS
11470 echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
11471 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6
11472 if test $ac_cv_lib_png_png_get_channels = yes; then
11479 if test "${HAVE_PNG}" = "yes"; then
11481 cat >>confdefs.h
<<\_ACEOF
11488 ### Use -ltiff if available, unless `--with-tiff=no'.
11490 if test "${HAVE_X11}" = "yes"; then
11491 if test "${with_tiff}" != "no"; then
11492 if test "${ac_cv_header_tiffio_h+set}" = set; then
11493 echo "$as_me:$LINENO: checking for tiffio.h" >&5
11494 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
11495 if test "${ac_cv_header_tiffio_h+set}" = set; then
11496 echo $ECHO_N "(cached) $ECHO_C" >&6
11498 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
11499 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
11501 # Is the header compilable?
11502 echo "$as_me:$LINENO: checking tiffio.h usability" >&5
11503 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
11504 cat >conftest.
$ac_ext <<_ACEOF
11507 cat confdefs.h
>>conftest.
$ac_ext
11508 cat >>conftest.
$ac_ext <<_ACEOF
11509 /* end confdefs.h. */
11510 $ac_includes_default
11511 #include <tiffio.h>
11513 rm -f conftest.
$ac_objext
11514 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11515 (eval $ac_compile) 2>conftest.er1
11517 grep -v '^ *+' conftest.er1
>conftest.err
11519 cat conftest.err
>&5
11520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11521 (exit $ac_status); } &&
11522 { ac_try
='test -z "$ac_c_werror_flag"
11523 || test ! -s conftest.err'
11524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11525 (eval $ac_try) 2>&5
11527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11528 (exit $ac_status); }; } &&
11529 { ac_try
='test -s conftest.$ac_objext'
11530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11531 (eval $ac_try) 2>&5
11533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11534 (exit $ac_status); }; }; then
11535 ac_header_compiler
=yes
11537 echo "$as_me: failed program was:" >&5
11538 sed 's/^/| /' conftest.
$ac_ext >&5
11540 ac_header_compiler
=no
11542 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11543 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11544 echo "${ECHO_T}$ac_header_compiler" >&6
11546 # Is the header present?
11547 echo "$as_me:$LINENO: checking tiffio.h presence" >&5
11548 echo $ECHO_N "checking tiffio.h presence... $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 #include <tiffio.h>
11557 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11558 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11560 grep -v '^ *+' conftest.er1
>conftest.err
11562 cat conftest.err
>&5
11563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11564 (exit $ac_status); } >/dev
/null
; then
11565 if test -s conftest.err
; then
11566 ac_cpp_err
=$ac_c_preproc_warn_flag
11567 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
11574 if test -z "$ac_cpp_err"; then
11575 ac_header_preproc
=yes
11577 echo "$as_me: failed program was:" >&5
11578 sed 's/^/| /' conftest.
$ac_ext >&5
11580 ac_header_preproc
=no
11582 rm -f conftest.err conftest.
$ac_ext
11583 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11584 echo "${ECHO_T}$ac_header_preproc" >&6
11586 # So? What about this header?
11587 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11589 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
11590 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11591 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
11592 echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
11593 ac_header_preproc
=yes
11596 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
11597 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
11598 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
11599 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
11600 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
11601 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
11602 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
11603 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
11604 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
11605 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
11606 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
11607 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
11610 ## ------------------------------------------ ##
11611 ## Report this to the AC_PACKAGE_NAME lists. ##
11612 ## ------------------------------------------ ##
11615 sed "s/^/$as_me: WARNING: /" >&2
11618 echo "$as_me:$LINENO: checking for tiffio.h" >&5
11619 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
11620 if test "${ac_cv_header_tiffio_h+set}" = set; then
11621 echo $ECHO_N "(cached) $ECHO_C" >&6
11623 ac_cv_header_tiffio_h
=$ac_header_preproc
11625 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
11626 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
11629 if test $ac_cv_header_tiffio_h = yes; then
11631 # At least one tiff package requires the jpeg library.
11632 if test "${HAVE_JPEG}" = yes; then tifflibs
="-ljpeg $tifflibs"; fi
11633 echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
11634 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6
11635 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
11636 echo $ECHO_N "(cached) $ECHO_C" >&6
11638 ac_check_lib_save_LIBS
=$LIBS
11639 LIBS
="-ltiff $tifflibs $LIBS"
11640 cat >conftest.
$ac_ext <<_ACEOF
11643 cat confdefs.h
>>conftest.
$ac_ext
11644 cat >>conftest.
$ac_ext <<_ACEOF
11645 /* end confdefs.h. */
11647 /* Override any gcc2 internal prototype to avoid an error. */
11651 /* We use char because int might match the return type of a gcc2
11652 builtin and then its argument prototype would still apply. */
11653 char TIFFGetVersion ();
11662 rm -f conftest.
$ac_objext conftest
$ac_exeext
11663 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11664 (eval $ac_link) 2>conftest.er1
11666 grep -v '^ *+' conftest.er1
>conftest.err
11668 cat conftest.err
>&5
11669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11670 (exit $ac_status); } &&
11671 { ac_try
='test -z "$ac_c_werror_flag"
11672 || test ! -s conftest.err'
11673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11674 (eval $ac_try) 2>&5
11676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11677 (exit $ac_status); }; } &&
11678 { ac_try
='test -s conftest$ac_exeext'
11679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11680 (eval $ac_try) 2>&5
11682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11683 (exit $ac_status); }; }; then
11684 ac_cv_lib_tiff_TIFFGetVersion
=yes
11686 echo "$as_me: failed program was:" >&5
11687 sed 's/^/| /' conftest.
$ac_ext >&5
11689 ac_cv_lib_tiff_TIFFGetVersion
=no
11691 rm -f conftest.err conftest.
$ac_objext \
11692 conftest
$ac_exeext conftest.
$ac_ext
11693 LIBS
=$ac_check_lib_save_LIBS
11695 echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
11696 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6
11697 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
11706 if test "${HAVE_TIFF}" = "yes"; then
11708 cat >>confdefs.h
<<\_ACEOF
11709 #define HAVE_TIFF 1
11715 ### Use -lgif if available, unless `--with-gif=no'.
11717 if test "${HAVE_X11}" = "yes"; then
11718 if test "${with_gif}" != "no"; then
11719 if test "${ac_cv_header_gif_lib_h+set}" = set; then
11720 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
11721 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
11722 if test "${ac_cv_header_gif_lib_h+set}" = set; then
11723 echo $ECHO_N "(cached) $ECHO_C" >&6
11725 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
11726 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
11728 # Is the header compilable?
11729 echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
11730 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6
11731 cat >conftest.
$ac_ext <<_ACEOF
11734 cat confdefs.h
>>conftest.
$ac_ext
11735 cat >>conftest.
$ac_ext <<_ACEOF
11736 /* end confdefs.h. */
11737 $ac_includes_default
11738 #include <gif_lib.h>
11740 rm -f conftest.
$ac_objext
11741 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11742 (eval $ac_compile) 2>conftest.er1
11744 grep -v '^ *+' conftest.er1
>conftest.err
11746 cat conftest.err
>&5
11747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11748 (exit $ac_status); } &&
11749 { ac_try
='test -z "$ac_c_werror_flag"
11750 || test ! -s conftest.err'
11751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11752 (eval $ac_try) 2>&5
11754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11755 (exit $ac_status); }; } &&
11756 { ac_try
='test -s conftest.$ac_objext'
11757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11758 (eval $ac_try) 2>&5
11760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11761 (exit $ac_status); }; }; then
11762 ac_header_compiler
=yes
11764 echo "$as_me: failed program was:" >&5
11765 sed 's/^/| /' conftest.
$ac_ext >&5
11767 ac_header_compiler
=no
11769 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11770 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11771 echo "${ECHO_T}$ac_header_compiler" >&6
11773 # Is the header present?
11774 echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
11775 echo $ECHO_N "checking gif_lib.h presence... $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 #include <gif_lib.h>
11784 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11785 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11787 grep -v '^ *+' conftest.er1
>conftest.err
11789 cat conftest.err
>&5
11790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11791 (exit $ac_status); } >/dev
/null
; then
11792 if test -s conftest.err
; then
11793 ac_cpp_err
=$ac_c_preproc_warn_flag
11794 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
11801 if test -z "$ac_cpp_err"; then
11802 ac_header_preproc
=yes
11804 echo "$as_me: failed program was:" >&5
11805 sed 's/^/| /' conftest.
$ac_ext >&5
11807 ac_header_preproc
=no
11809 rm -f conftest.err conftest.
$ac_ext
11810 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11811 echo "${ECHO_T}$ac_header_preproc" >&6
11813 # So? What about this header?
11814 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11816 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
11817 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11818 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
11819 echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
11820 ac_header_preproc
=yes
11823 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
11824 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
11825 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
11826 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
11827 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
11828 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
11829 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
11830 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
11831 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
11832 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
11833 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
11834 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
11837 ## ------------------------------------------ ##
11838 ## Report this to the AC_PACKAGE_NAME lists. ##
11839 ## ------------------------------------------ ##
11842 sed "s/^/$as_me: WARNING: /" >&2
11845 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
11846 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
11847 if test "${ac_cv_header_gif_lib_h+set}" = set; then
11848 echo $ECHO_N "(cached) $ECHO_C" >&6
11850 ac_cv_header_gif_lib_h
=$ac_header_preproc
11852 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
11853 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
11856 if test $ac_cv_header_gif_lib_h = yes; then
11857 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
11858 # Earlier versions can crash Emacs.
11859 echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
11860 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6
11861 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
11862 echo $ECHO_N "(cached) $ECHO_C" >&6
11864 ac_check_lib_save_LIBS
=$LIBS
11865 LIBS
="-lungif $LIBS"
11866 cat >conftest.
$ac_ext <<_ACEOF
11869 cat confdefs.h
>>conftest.
$ac_ext
11870 cat >>conftest.
$ac_ext <<_ACEOF
11871 /* end confdefs.h. */
11873 /* Override any gcc2 internal prototype to avoid an error. */
11877 /* We use char because int might match the return type of a gcc2
11878 builtin and then its argument prototype would still apply. */
11879 char EGifPutExtensionLast ();
11883 EGifPutExtensionLast ();
11888 rm -f conftest.
$ac_objext conftest
$ac_exeext
11889 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11890 (eval $ac_link) 2>conftest.er1
11892 grep -v '^ *+' conftest.er1
>conftest.err
11894 cat conftest.err
>&5
11895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11896 (exit $ac_status); } &&
11897 { ac_try
='test -z "$ac_c_werror_flag"
11898 || test ! -s conftest.err'
11899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11900 (eval $ac_try) 2>&5
11902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11903 (exit $ac_status); }; } &&
11904 { ac_try
='test -s conftest$ac_exeext'
11905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11906 (eval $ac_try) 2>&5
11908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11909 (exit $ac_status); }; }; then
11910 ac_cv_lib_ungif_EGifPutExtensionLast
=yes
11912 echo "$as_me: failed program was:" >&5
11913 sed 's/^/| /' conftest.
$ac_ext >&5
11915 ac_cv_lib_ungif_EGifPutExtensionLast
=no
11917 rm -f conftest.err conftest.
$ac_objext \
11918 conftest
$ac_exeext conftest.
$ac_ext
11919 LIBS
=$ac_check_lib_save_LIBS
11921 echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
11922 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6
11923 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
11932 if test "${HAVE_GIF}" = "yes"; then
11934 cat >>confdefs.h
<<\_ACEOF
11941 ### Use Mac OS X Carbon API to implement GUI.
11943 if test "${with_carbon}" != "no"; then
11944 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
11945 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
11946 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
11947 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
11948 echo $ECHO_N "(cached) $ECHO_C" >&6
11950 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
11951 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
11953 # Is the header compilable?
11954 echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
11955 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6
11956 cat >conftest.
$ac_ext <<_ACEOF
11959 cat confdefs.h
>>conftest.
$ac_ext
11960 cat >>conftest.
$ac_ext <<_ACEOF
11961 /* end confdefs.h. */
11962 $ac_includes_default
11963 #include <Carbon/Carbon.h>
11965 rm -f conftest.
$ac_objext
11966 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11967 (eval $ac_compile) 2>conftest.er1
11969 grep -v '^ *+' conftest.er1
>conftest.err
11971 cat conftest.err
>&5
11972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11973 (exit $ac_status); } &&
11974 { ac_try
='test -z "$ac_c_werror_flag"
11975 || test ! -s conftest.err'
11976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11977 (eval $ac_try) 2>&5
11979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11980 (exit $ac_status); }; } &&
11981 { ac_try
='test -s conftest.$ac_objext'
11982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11983 (eval $ac_try) 2>&5
11985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11986 (exit $ac_status); }; }; then
11987 ac_header_compiler
=yes
11989 echo "$as_me: failed program was:" >&5
11990 sed 's/^/| /' conftest.
$ac_ext >&5
11992 ac_header_compiler
=no
11994 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11995 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11996 echo "${ECHO_T}$ac_header_compiler" >&6
11998 # Is the header present?
11999 echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
12000 echo $ECHO_N "checking Carbon/Carbon.h presence... $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 #include <Carbon/Carbon.h>
12009 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12010 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12012 grep -v '^ *+' conftest.er1
>conftest.err
12014 cat conftest.err
>&5
12015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12016 (exit $ac_status); } >/dev
/null
; then
12017 if test -s conftest.err
; then
12018 ac_cpp_err
=$ac_c_preproc_warn_flag
12019 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12026 if test -z "$ac_cpp_err"; then
12027 ac_header_preproc
=yes
12029 echo "$as_me: failed program was:" >&5
12030 sed 's/^/| /' conftest.
$ac_ext >&5
12032 ac_header_preproc
=no
12034 rm -f conftest.err conftest.
$ac_ext
12035 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12036 echo "${ECHO_T}$ac_header_preproc" >&6
12038 # So? What about this header?
12039 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12041 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
12042 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12043 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
12044 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
12045 ac_header_preproc
=yes
12048 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
12049 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
12050 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
12051 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
12052 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
12053 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
12054 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
12055 echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
12056 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
12057 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
12058 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
12059 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
12062 ## ------------------------------------------ ##
12063 ## Report this to the AC_PACKAGE_NAME lists. ##
12064 ## ------------------------------------------ ##
12067 sed "s/^/$as_me: WARNING: /" >&2
12070 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
12071 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
12072 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
12073 echo $ECHO_N "(cached) $ECHO_C" >&6
12075 ac_cv_header_Carbon_Carbon_h
=$ac_header_preproc
12077 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
12078 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
12081 if test $ac_cv_header_Carbon_Carbon_h = yes; then
12088 if test "${HAVE_CARBON}" = "yes"; then
12090 cat >>confdefs.h
<<\_ACEOF
12091 #define HAVE_CARBON 1
12095 ## Specify the install directory
12097 if test "${carbon_appdir_x}" != ""; then
12098 case ${carbon_appdir_x} in
12099 y | ye |
yes) carbon_appdir
=/Applications
;;
12100 * ) carbon_appdir
=${carbon_appdir_x} ;;
12103 # We also have mouse menus.
12107 ### Use session management (-lSM -lICE) if available
12109 if test "${HAVE_X11}" = "yes"; then
12110 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
12111 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
12112 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
12113 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
12114 echo $ECHO_N "(cached) $ECHO_C" >&6
12116 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
12117 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
12119 # Is the header compilable?
12120 echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
12121 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6
12122 cat >conftest.
$ac_ext <<_ACEOF
12125 cat confdefs.h
>>conftest.
$ac_ext
12126 cat >>conftest.
$ac_ext <<_ACEOF
12127 /* end confdefs.h. */
12128 $ac_includes_default
12129 #include <X11/SM/SMlib.h>
12131 rm -f conftest.
$ac_objext
12132 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12133 (eval $ac_compile) 2>conftest.er1
12135 grep -v '^ *+' conftest.er1
>conftest.err
12137 cat conftest.err
>&5
12138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12139 (exit $ac_status); } &&
12140 { ac_try
='test -z "$ac_c_werror_flag"
12141 || test ! -s conftest.err'
12142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12143 (eval $ac_try) 2>&5
12145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12146 (exit $ac_status); }; } &&
12147 { ac_try
='test -s conftest.$ac_objext'
12148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12149 (eval $ac_try) 2>&5
12151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12152 (exit $ac_status); }; }; then
12153 ac_header_compiler
=yes
12155 echo "$as_me: failed program was:" >&5
12156 sed 's/^/| /' conftest.
$ac_ext >&5
12158 ac_header_compiler
=no
12160 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12161 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12162 echo "${ECHO_T}$ac_header_compiler" >&6
12164 # Is the header present?
12165 echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
12166 echo $ECHO_N "checking X11/SM/SMlib.h presence... $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 #include <X11/SM/SMlib.h>
12175 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12176 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12178 grep -v '^ *+' conftest.er1
>conftest.err
12180 cat conftest.err
>&5
12181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12182 (exit $ac_status); } >/dev
/null
; then
12183 if test -s conftest.err
; then
12184 ac_cpp_err
=$ac_c_preproc_warn_flag
12185 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12192 if test -z "$ac_cpp_err"; then
12193 ac_header_preproc
=yes
12195 echo "$as_me: failed program was:" >&5
12196 sed 's/^/| /' conftest.
$ac_ext >&5
12198 ac_header_preproc
=no
12200 rm -f conftest.err conftest.
$ac_ext
12201 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12202 echo "${ECHO_T}$ac_header_preproc" >&6
12204 # So? What about this header?
12205 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12207 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
12208 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12209 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
12210 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
12211 ac_header_preproc
=yes
12214 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
12215 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
12216 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
12217 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
12218 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
12219 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
12220 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
12221 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
12222 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
12223 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
12224 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
12225 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
12228 ## ------------------------------------------ ##
12229 ## Report this to the AC_PACKAGE_NAME lists. ##
12230 ## ------------------------------------------ ##
12233 sed "s/^/$as_me: WARNING: /" >&2
12236 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
12237 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
12238 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
12239 echo $ECHO_N "(cached) $ECHO_C" >&6
12241 ac_cv_header_X11_SM_SMlib_h
=$ac_header_preproc
12243 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
12244 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
12247 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
12248 echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
12249 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6
12250 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
12251 echo $ECHO_N "(cached) $ECHO_C" >&6
12253 ac_check_lib_save_LIBS
=$LIBS
12254 LIBS
="-lSM -lICE $LIBS"
12255 cat >conftest.
$ac_ext <<_ACEOF
12258 cat confdefs.h
>>conftest.
$ac_ext
12259 cat >>conftest.
$ac_ext <<_ACEOF
12260 /* end confdefs.h. */
12262 /* Override any gcc2 internal prototype to avoid an error. */
12266 /* We use char because int might match the return type of a gcc2
12267 builtin and then its argument prototype would still apply. */
12268 char SmcOpenConnection ();
12272 SmcOpenConnection ();
12277 rm -f conftest.
$ac_objext conftest
$ac_exeext
12278 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12279 (eval $ac_link) 2>conftest.er1
12281 grep -v '^ *+' conftest.er1
>conftest.err
12283 cat conftest.err
>&5
12284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12285 (exit $ac_status); } &&
12286 { ac_try
='test -z "$ac_c_werror_flag"
12287 || test ! -s conftest.err'
12288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12289 (eval $ac_try) 2>&5
12291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12292 (exit $ac_status); }; } &&
12293 { ac_try
='test -s conftest$ac_exeext'
12294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12295 (eval $ac_try) 2>&5
12297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12298 (exit $ac_status); }; }; then
12299 ac_cv_lib_SM_SmcOpenConnection
=yes
12301 echo "$as_me: failed program was:" >&5
12302 sed 's/^/| /' conftest.
$ac_ext >&5
12304 ac_cv_lib_SM_SmcOpenConnection
=no
12306 rm -f conftest.err conftest.
$ac_objext \
12307 conftest
$ac_exeext conftest.
$ac_ext
12308 LIBS
=$ac_check_lib_save_LIBS
12310 echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
12311 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6
12312 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
12320 if test "${HAVE_X_SM}" = "yes"; then
12322 cat >>confdefs.h
<<\_ACEOF
12323 #define HAVE_X_SM 1
12328 *) LIBS
="-lSM -lICE $LIBS" ;;
12333 # If netdb.h doesn't declare h_errno, we must declare it by hand.
12334 echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
12335 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6
12336 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
12337 echo $ECHO_N "(cached) $ECHO_C" >&6
12339 cat >conftest.
$ac_ext <<_ACEOF
12342 cat confdefs.h
>>conftest.
$ac_ext
12343 cat >>conftest.
$ac_ext <<_ACEOF
12344 /* end confdefs.h. */
12354 rm -f conftest.
$ac_objext conftest
$ac_exeext
12355 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12356 (eval $ac_link) 2>conftest.er1
12358 grep -v '^ *+' conftest.er1
>conftest.err
12360 cat conftest.err
>&5
12361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12362 (exit $ac_status); } &&
12363 { ac_try
='test -z "$ac_c_werror_flag"
12364 || test ! -s conftest.err'
12365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12366 (eval $ac_try) 2>&5
12368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12369 (exit $ac_status); }; } &&
12370 { ac_try
='test -s conftest$ac_exeext'
12371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12372 (eval $ac_try) 2>&5
12374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12375 (exit $ac_status); }; }; then
12376 emacs_cv_netdb_declares_h_errno
=yes
12378 echo "$as_me: failed program was:" >&5
12379 sed 's/^/| /' conftest.
$ac_ext >&5
12381 emacs_cv_netdb_declares_h_errno
=no
12383 rm -f conftest.err conftest.
$ac_objext \
12384 conftest
$ac_exeext conftest.
$ac_ext
12386 echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
12387 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6
12388 if test $emacs_cv_netdb_declares_h_errno = yes; then
12390 cat >>confdefs.h
<<\_ACEOF
12391 #define HAVE_H_ERRNO 1
12396 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
12397 # for constant arguments. Useless!
12398 echo "$as_me:$LINENO: checking for working alloca.h" >&5
12399 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
12400 if test "${ac_cv_working_alloca_h+set}" = set; then
12401 echo $ECHO_N "(cached) $ECHO_C" >&6
12403 cat >conftest.
$ac_ext <<_ACEOF
12406 cat confdefs.h
>>conftest.
$ac_ext
12407 cat >>conftest.
$ac_ext <<_ACEOF
12408 /* end confdefs.h. */
12409 #include <alloca.h>
12413 char *p = (char *) alloca (2 * sizeof (int));
12418 rm -f conftest.
$ac_objext conftest
$ac_exeext
12419 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12420 (eval $ac_link) 2>conftest.er1
12422 grep -v '^ *+' conftest.er1
>conftest.err
12424 cat conftest.err
>&5
12425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12426 (exit $ac_status); } &&
12427 { ac_try
='test -z "$ac_c_werror_flag"
12428 || test ! -s conftest.err'
12429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12430 (eval $ac_try) 2>&5
12432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12433 (exit $ac_status); }; } &&
12434 { ac_try
='test -s conftest$ac_exeext'
12435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12436 (eval $ac_try) 2>&5
12438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12439 (exit $ac_status); }; }; then
12440 ac_cv_working_alloca_h
=yes
12442 echo "$as_me: failed program was:" >&5
12443 sed 's/^/| /' conftest.
$ac_ext >&5
12445 ac_cv_working_alloca_h
=no
12447 rm -f conftest.err conftest.
$ac_objext \
12448 conftest
$ac_exeext conftest.
$ac_ext
12450 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
12451 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
12452 if test $ac_cv_working_alloca_h = yes; then
12454 cat >>confdefs.h
<<\_ACEOF
12455 #define HAVE_ALLOCA_H 1
12460 echo "$as_me:$LINENO: checking for alloca" >&5
12461 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
12462 if test "${ac_cv_func_alloca_works+set}" = set; then
12463 echo $ECHO_N "(cached) $ECHO_C" >&6
12465 cat >conftest.
$ac_ext <<_ACEOF
12468 cat confdefs.h
>>conftest.
$ac_ext
12469 cat >>conftest.
$ac_ext <<_ACEOF
12470 /* end confdefs.h. */
12472 # define alloca __builtin_alloca
12475 # include <malloc.h>
12476 # define alloca _alloca
12479 # include <alloca.h>
12484 # ifndef alloca /* predefined by HP cc +Olibcalls */
12495 char *p = (char *) alloca (1);
12500 rm -f conftest.
$ac_objext conftest
$ac_exeext
12501 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12502 (eval $ac_link) 2>conftest.er1
12504 grep -v '^ *+' conftest.er1
>conftest.err
12506 cat conftest.err
>&5
12507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12508 (exit $ac_status); } &&
12509 { ac_try
='test -z "$ac_c_werror_flag"
12510 || test ! -s conftest.err'
12511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12512 (eval $ac_try) 2>&5
12514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12515 (exit $ac_status); }; } &&
12516 { ac_try
='test -s conftest$ac_exeext'
12517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12518 (eval $ac_try) 2>&5
12520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12521 (exit $ac_status); }; }; then
12522 ac_cv_func_alloca_works
=yes
12524 echo "$as_me: failed program was:" >&5
12525 sed 's/^/| /' conftest.
$ac_ext >&5
12527 ac_cv_func_alloca_works
=no
12529 rm -f conftest.err conftest.
$ac_objext \
12530 conftest
$ac_exeext conftest.
$ac_ext
12532 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
12533 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
12535 if test $ac_cv_func_alloca_works = yes; then
12537 cat >>confdefs.h
<<\_ACEOF
12538 #define HAVE_ALLOCA 1
12542 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
12543 # that cause trouble. Some versions do not even contain alloca or
12544 # contain a buggy version. If you still want to use their alloca,
12545 # use ar to extract alloca.o from them instead of compiling alloca.c.
12547 ALLOCA
=alloca.
$ac_objext
12549 cat >>confdefs.h
<<\_ACEOF
12554 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
12555 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
12556 if test "${ac_cv_os_cray+set}" = set; then
12557 echo $ECHO_N "(cached) $ECHO_C" >&6
12559 cat >conftest.
$ac_ext <<_ACEOF
12562 cat confdefs.h
>>conftest.
$ac_ext
12563 cat >>conftest.
$ac_ext <<_ACEOF
12564 /* end confdefs.h. */
12565 #if defined(CRAY) && ! defined(CRAY2)
12572 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12573 $EGREP "webecray" >/dev
/null
2>&1; then
12581 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
12582 echo "${ECHO_T}$ac_cv_os_cray" >&6
12583 if test $ac_cv_os_cray = yes; then
12584 for ac_func
in _getb67 GETB67 getb67
; do
12585 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12586 echo "$as_me:$LINENO: checking for $ac_func" >&5
12587 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12588 if eval "test \"\${$as_ac_var+set}\" = set"; then
12589 echo $ECHO_N "(cached) $ECHO_C" >&6
12591 cat >conftest.
$ac_ext <<_ACEOF
12594 cat confdefs.h
>>conftest.
$ac_ext
12595 cat >>conftest.
$ac_ext <<_ACEOF
12596 /* end confdefs.h. */
12597 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12598 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12599 #define $ac_func innocuous_$ac_func
12601 /* System header to define __stub macros and hopefully few prototypes,
12602 which can conflict with char $ac_func (); below.
12603 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12604 <limits.h> exists even on freestanding compilers. */
12607 # include <limits.h>
12609 # include <assert.h>
12614 /* Override any gcc2 internal prototype to avoid an error. */
12619 /* We use char because int might match the return type of a gcc2
12620 builtin and then its argument prototype would still apply. */
12622 /* The GNU C library defines this for functions which it implements
12623 to always fail with ENOSYS. Some functions are actually named
12624 something starting with __ and the normal name is an alias. */
12625 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12628 char (*f) () = $ac_func;
12637 return f != $ac_func;
12642 rm -f conftest.
$ac_objext conftest
$ac_exeext
12643 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12644 (eval $ac_link) 2>conftest.er1
12646 grep -v '^ *+' conftest.er1
>conftest.err
12648 cat conftest.err
>&5
12649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12650 (exit $ac_status); } &&
12651 { ac_try
='test -z "$ac_c_werror_flag"
12652 || test ! -s conftest.err'
12653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12654 (eval $ac_try) 2>&5
12656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12657 (exit $ac_status); }; } &&
12658 { ac_try
='test -s conftest$ac_exeext'
12659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12660 (eval $ac_try) 2>&5
12662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12663 (exit $ac_status); }; }; then
12664 eval "$as_ac_var=yes"
12666 echo "$as_me: failed program was:" >&5
12667 sed 's/^/| /' conftest.
$ac_ext >&5
12669 eval "$as_ac_var=no"
12671 rm -f conftest.err conftest.
$ac_objext \
12672 conftest
$ac_exeext conftest.
$ac_ext
12674 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12675 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12676 if test `eval echo '${'$as_ac_var'}'` = yes; then
12678 cat >>confdefs.h
<<_ACEOF
12679 #define CRAY_STACKSEG_END $ac_func
12688 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
12689 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
12690 if test "${ac_cv_c_stack_direction+set}" = set; then
12691 echo $ECHO_N "(cached) $ECHO_C" >&6
12693 if test "$cross_compiling" = yes; then
12694 ac_cv_c_stack_direction
=0
12696 cat >conftest.
$ac_ext <<_ACEOF
12699 cat confdefs.h
>>conftest.
$ac_ext
12700 cat >>conftest.
$ac_ext <<_ACEOF
12701 /* end confdefs.h. */
12703 find_stack_direction ()
12705 static char *addr = 0;
12710 return find_stack_direction ();
12713 return (&dummy > addr) ? 1 : -1;
12719 exit (find_stack_direction () < 0);
12722 rm -f conftest
$ac_exeext
12723 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12724 (eval $ac_link) 2>&5
12726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12727 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
12728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12729 (eval $ac_try) 2>&5
12731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12732 (exit $ac_status); }; }; then
12733 ac_cv_c_stack_direction
=1
12735 echo "$as_me: program exited with status $ac_status" >&5
12736 echo "$as_me: failed program was:" >&5
12737 sed 's/^/| /' conftest.
$ac_ext >&5
12739 ( exit $ac_status )
12740 ac_cv_c_stack_direction
=-1
12742 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
12745 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
12746 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
12748 cat >>confdefs.h
<<_ACEOF
12749 #define STACK_DIRECTION $ac_cv_c_stack_direction
12756 # fmod, logb, and frexp are found in -lm on most systems.
12757 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
12759 echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
12760 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
12761 if test "${ac_cv_lib_m_sqrt+set}" = set; then
12762 echo $ECHO_N "(cached) $ECHO_C" >&6
12764 ac_check_lib_save_LIBS
=$LIBS
12766 cat >conftest.
$ac_ext <<_ACEOF
12769 cat confdefs.h
>>conftest.
$ac_ext
12770 cat >>conftest.
$ac_ext <<_ACEOF
12771 /* end confdefs.h. */
12773 /* Override any gcc2 internal prototype to avoid an error. */
12777 /* We use char because int might match the return type of a gcc2
12778 builtin and then its argument prototype would still apply. */
12788 rm -f conftest.
$ac_objext conftest
$ac_exeext
12789 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12790 (eval $ac_link) 2>conftest.er1
12792 grep -v '^ *+' conftest.er1
>conftest.err
12794 cat conftest.err
>&5
12795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12796 (exit $ac_status); } &&
12797 { ac_try
='test -z "$ac_c_werror_flag"
12798 || test ! -s conftest.err'
12799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12800 (eval $ac_try) 2>&5
12802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12803 (exit $ac_status); }; } &&
12804 { ac_try
='test -s conftest$ac_exeext'
12805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12806 (eval $ac_try) 2>&5
12808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12809 (exit $ac_status); }; }; then
12810 ac_cv_lib_m_sqrt
=yes
12812 echo "$as_me: failed program was:" >&5
12813 sed 's/^/| /' conftest.
$ac_ext >&5
12815 ac_cv_lib_m_sqrt
=no
12817 rm -f conftest.err conftest.
$ac_objext \
12818 conftest
$ac_exeext conftest.
$ac_ext
12819 LIBS
=$ac_check_lib_save_LIBS
12821 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
12822 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
12823 if test $ac_cv_lib_m_sqrt = yes; then
12824 cat >>confdefs.h
<<_ACEOF
12825 #define HAVE_LIBM 1
12833 # Check for mail-locking functions in a "mail" library. Probably this should
12834 # have the same check as for liblockfile below.
12836 echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
12837 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6
12838 if test "${ac_cv_lib_mail_maillock+set}" = set; then
12839 echo $ECHO_N "(cached) $ECHO_C" >&6
12841 ac_check_lib_save_LIBS
=$LIBS
12842 LIBS
="-lmail $LIBS"
12843 cat >conftest.
$ac_ext <<_ACEOF
12846 cat confdefs.h
>>conftest.
$ac_ext
12847 cat >>conftest.
$ac_ext <<_ACEOF
12848 /* end confdefs.h. */
12850 /* Override any gcc2 internal prototype to avoid an error. */
12854 /* We use char because int might match the return type of a gcc2
12855 builtin and then its argument prototype would still apply. */
12865 rm -f conftest.
$ac_objext conftest
$ac_exeext
12866 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12867 (eval $ac_link) 2>conftest.er1
12869 grep -v '^ *+' conftest.er1
>conftest.err
12871 cat conftest.err
>&5
12872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12873 (exit $ac_status); } &&
12874 { ac_try
='test -z "$ac_c_werror_flag"
12875 || test ! -s conftest.err'
12876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12877 (eval $ac_try) 2>&5
12879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12880 (exit $ac_status); }; } &&
12881 { ac_try
='test -s conftest$ac_exeext'
12882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12883 (eval $ac_try) 2>&5
12885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12886 (exit $ac_status); }; }; then
12887 ac_cv_lib_mail_maillock
=yes
12889 echo "$as_me: failed program was:" >&5
12890 sed 's/^/| /' conftest.
$ac_ext >&5
12892 ac_cv_lib_mail_maillock
=no
12894 rm -f conftest.err conftest.
$ac_objext \
12895 conftest
$ac_exeext conftest.
$ac_ext
12896 LIBS
=$ac_check_lib_save_LIBS
12898 echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
12899 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6
12900 if test $ac_cv_lib_mail_maillock = yes; then
12901 cat >>confdefs.h
<<_ACEOF
12902 #define HAVE_LIBMAIL 1
12905 LIBS
="-lmail $LIBS"
12910 echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
12911 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6
12912 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
12913 echo $ECHO_N "(cached) $ECHO_C" >&6
12915 ac_check_lib_save_LIBS
=$LIBS
12916 LIBS
="-llockfile $LIBS"
12917 cat >conftest.
$ac_ext <<_ACEOF
12920 cat confdefs.h
>>conftest.
$ac_ext
12921 cat >>conftest.
$ac_ext <<_ACEOF
12922 /* end confdefs.h. */
12924 /* Override any gcc2 internal prototype to avoid an error. */
12928 /* We use char because int might match the return type of a gcc2
12929 builtin and then its argument prototype would still apply. */
12939 rm -f conftest.
$ac_objext conftest
$ac_exeext
12940 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12941 (eval $ac_link) 2>conftest.er1
12943 grep -v '^ *+' conftest.er1
>conftest.err
12945 cat conftest.err
>&5
12946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12947 (exit $ac_status); } &&
12948 { ac_try
='test -z "$ac_c_werror_flag"
12949 || test ! -s conftest.err'
12950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12951 (eval $ac_try) 2>&5
12953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12954 (exit $ac_status); }; } &&
12955 { ac_try
='test -s conftest$ac_exeext'
12956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12957 (eval $ac_try) 2>&5
12959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12960 (exit $ac_status); }; }; then
12961 ac_cv_lib_lockfile_maillock
=yes
12963 echo "$as_me: failed program was:" >&5
12964 sed 's/^/| /' conftest.
$ac_ext >&5
12966 ac_cv_lib_lockfile_maillock
=no
12968 rm -f conftest.err conftest.
$ac_objext \
12969 conftest
$ac_exeext conftest.
$ac_ext
12970 LIBS
=$ac_check_lib_save_LIBS
12972 echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
12973 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6
12974 if test $ac_cv_lib_lockfile_maillock = yes; then
12975 cat >>confdefs.h
<<_ACEOF
12976 #define HAVE_LIBLOCKFILE 1
12979 LIBS
="-llockfile $LIBS"
12983 # If we have the shared liblockfile, assume we must use it for mail
12984 # locking (e.g. Debian). If we couldn't link against liblockfile
12985 # (no liblockfile.a installed), ensure that we don't need to.
12986 if test "$ac_cv_lib_lockfile_maillock" = no
; then
12987 # Extract the first word of "liblockfile.so", so it can be a program name with args.
12988 set dummy liblockfile.so
; ac_word
=$2
12989 echo "$as_me:$LINENO: checking for $ac_word" >&5
12990 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12991 if test "${ac_cv_prog_liblockfile+set}" = set; then
12992 echo $ECHO_N "(cached) $ECHO_C" >&6
12994 if test -n "$liblockfile"; then
12995 ac_cv_prog_liblockfile
="$liblockfile" # Let the user override the test.
12997 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12998 as_dummy
="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
12999 for as_dir
in $as_dummy
13002 test -z "$as_dir" && as_dir
=.
13003 for ac_exec_ext
in '' $ac_executable_extensions; do
13004 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13005 ac_cv_prog_liblockfile
="yes"
13006 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13012 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile
="no"
13015 liblockfile
=$ac_cv_prog_liblockfile
13016 if test -n "$liblockfile"; then
13017 echo "$as_me:$LINENO: result: $liblockfile" >&5
13018 echo "${ECHO_T}$liblockfile" >&6
13020 echo "$as_me:$LINENO: result: no" >&5
13021 echo "${ECHO_T}no" >&6
13024 if test $ac_cv_prog_liblockfile = yes; then
13025 { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
13026 This probably means that movemail could lose mail.
13027 There may be a \`development' package to install containing liblockfile." >&5
13028 echo "$as_me: error: Shared liblockfile found but can't link against it.
13029 This probably means that movemail could lose mail.
13030 There may be a \`development' package to install containing liblockfile." >&2;}
13031 { (exit 1); exit 1; }; }
13036 for ac_func
in touchlock
13038 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13039 echo "$as_me:$LINENO: checking for $ac_func" >&5
13040 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13041 if eval "test \"\${$as_ac_var+set}\" = set"; then
13042 echo $ECHO_N "(cached) $ECHO_C" >&6
13044 cat >conftest.
$ac_ext <<_ACEOF
13047 cat confdefs.h
>>conftest.
$ac_ext
13048 cat >>conftest.
$ac_ext <<_ACEOF
13049 /* end confdefs.h. */
13050 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13051 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13052 #define $ac_func innocuous_$ac_func
13054 /* System header to define __stub macros and hopefully few prototypes,
13055 which can conflict with char $ac_func (); below.
13056 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13057 <limits.h> exists even on freestanding compilers. */
13060 # include <limits.h>
13062 # include <assert.h>
13067 /* Override any gcc2 internal prototype to avoid an error. */
13072 /* We use char because int might match the return type of a gcc2
13073 builtin and then its argument prototype would still apply. */
13075 /* The GNU C library defines this for functions which it implements
13076 to always fail with ENOSYS. Some functions are actually named
13077 something starting with __ and the normal name is an alias. */
13078 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13081 char (*f) () = $ac_func;
13090 return f != $ac_func;
13095 rm -f conftest.
$ac_objext conftest
$ac_exeext
13096 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13097 (eval $ac_link) 2>conftest.er1
13099 grep -v '^ *+' conftest.er1
>conftest.err
13101 cat conftest.err
>&5
13102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13103 (exit $ac_status); } &&
13104 { ac_try
='test -z "$ac_c_werror_flag"
13105 || test ! -s conftest.err'
13106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13107 (eval $ac_try) 2>&5
13109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13110 (exit $ac_status); }; } &&
13111 { ac_try
='test -s conftest$ac_exeext'
13112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13113 (eval $ac_try) 2>&5
13115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13116 (exit $ac_status); }; }; then
13117 eval "$as_ac_var=yes"
13119 echo "$as_me: failed program was:" >&5
13120 sed 's/^/| /' conftest.
$ac_ext >&5
13122 eval "$as_ac_var=no"
13124 rm -f conftest.err conftest.
$ac_objext \
13125 conftest
$ac_exeext conftest.
$ac_ext
13127 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13128 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13129 if test `eval echo '${'$as_ac_var'}'` = yes; then
13130 cat >>confdefs.h
<<_ACEOF
13131 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13138 for ac_header
in maillock.h
13140 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13141 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13142 echo "$as_me:$LINENO: checking for $ac_header" >&5
13143 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13144 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13145 echo $ECHO_N "(cached) $ECHO_C" >&6
13147 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13148 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13150 # Is the header compilable?
13151 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13152 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13153 cat >conftest.
$ac_ext <<_ACEOF
13156 cat confdefs.h
>>conftest.
$ac_ext
13157 cat >>conftest.
$ac_ext <<_ACEOF
13158 /* end confdefs.h. */
13159 $ac_includes_default
13160 #include <$ac_header>
13162 rm -f conftest.
$ac_objext
13163 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13164 (eval $ac_compile) 2>conftest.er1
13166 grep -v '^ *+' conftest.er1
>conftest.err
13168 cat conftest.err
>&5
13169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13170 (exit $ac_status); } &&
13171 { ac_try
='test -z "$ac_c_werror_flag"
13172 || test ! -s conftest.err'
13173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13174 (eval $ac_try) 2>&5
13176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13177 (exit $ac_status); }; } &&
13178 { ac_try
='test -s conftest.$ac_objext'
13179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13180 (eval $ac_try) 2>&5
13182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13183 (exit $ac_status); }; }; then
13184 ac_header_compiler
=yes
13186 echo "$as_me: failed program was:" >&5
13187 sed 's/^/| /' conftest.
$ac_ext >&5
13189 ac_header_compiler
=no
13191 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13192 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13193 echo "${ECHO_T}$ac_header_compiler" >&6
13195 # Is the header present?
13196 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13197 echo $ECHO_N "checking $ac_header presence... $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 #include <$ac_header>
13206 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13207 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
13209 grep -v '^ *+' conftest.er1
>conftest.err
13211 cat conftest.err
>&5
13212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13213 (exit $ac_status); } >/dev
/null
; then
13214 if test -s conftest.err
; then
13215 ac_cpp_err
=$ac_c_preproc_warn_flag
13216 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
13223 if test -z "$ac_cpp_err"; then
13224 ac_header_preproc
=yes
13226 echo "$as_me: failed program was:" >&5
13227 sed 's/^/| /' conftest.
$ac_ext >&5
13229 ac_header_preproc
=no
13231 rm -f conftest.err conftest.
$ac_ext
13232 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13233 echo "${ECHO_T}$ac_header_preproc" >&6
13235 # So? What about this header?
13236 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13238 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13239 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13240 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13241 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13242 ac_header_preproc
=yes
13245 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13246 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13247 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13248 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13249 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13250 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13251 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13252 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13253 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13254 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13255 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13256 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13259 ## ------------------------------------------ ##
13260 ## Report this to the AC_PACKAGE_NAME lists. ##
13261 ## ------------------------------------------ ##
13264 sed "s/^/$as_me: WARNING: /" >&2
13267 echo "$as_me:$LINENO: checking for $ac_header" >&5
13268 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13269 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13270 echo $ECHO_N "(cached) $ECHO_C" >&6
13272 eval "$as_ac_Header=\$ac_header_preproc"
13274 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13275 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13278 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13279 cat >>confdefs.h
<<_ACEOF
13280 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13354 for ac_func
in gethostname getdomainname dup2 \
13355 rename closedir mkdir
rmdir sysinfo \
13356 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
13357 strerror fpathconf
select mktime euidaccess getpagesize tzset setlocale \
13358 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
13359 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
13360 sendto recvfrom getsockopt setsockopt getsockname getpeername \
13361 gai_strerror mkstemp getline getdelim mremap memmove fsync bzero \
13362 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign
13364 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13365 echo "$as_me:$LINENO: checking for $ac_func" >&5
13366 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13367 if eval "test \"\${$as_ac_var+set}\" = set"; then
13368 echo $ECHO_N "(cached) $ECHO_C" >&6
13370 cat >conftest.
$ac_ext <<_ACEOF
13373 cat confdefs.h
>>conftest.
$ac_ext
13374 cat >>conftest.
$ac_ext <<_ACEOF
13375 /* end confdefs.h. */
13376 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13377 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13378 #define $ac_func innocuous_$ac_func
13380 /* System header to define __stub macros and hopefully few prototypes,
13381 which can conflict with char $ac_func (); below.
13382 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13383 <limits.h> exists even on freestanding compilers. */
13386 # include <limits.h>
13388 # include <assert.h>
13393 /* Override any gcc2 internal prototype to avoid an error. */
13398 /* We use char because int might match the return type of a gcc2
13399 builtin and then its argument prototype would still apply. */
13401 /* The GNU C library defines this for functions which it implements
13402 to always fail with ENOSYS. Some functions are actually named
13403 something starting with __ and the normal name is an alias. */
13404 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13407 char (*f) () = $ac_func;
13416 return f != $ac_func;
13421 rm -f conftest.
$ac_objext conftest
$ac_exeext
13422 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13423 (eval $ac_link) 2>conftest.er1
13425 grep -v '^ *+' conftest.er1
>conftest.err
13427 cat conftest.err
>&5
13428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13429 (exit $ac_status); } &&
13430 { ac_try
='test -z "$ac_c_werror_flag"
13431 || test ! -s conftest.err'
13432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13433 (eval $ac_try) 2>&5
13435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13436 (exit $ac_status); }; } &&
13437 { ac_try
='test -s conftest$ac_exeext'
13438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13439 (eval $ac_try) 2>&5
13441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13442 (exit $ac_status); }; }; then
13443 eval "$as_ac_var=yes"
13445 echo "$as_me: failed program was:" >&5
13446 sed 's/^/| /' conftest.
$ac_ext >&5
13448 eval "$as_ac_var=no"
13450 rm -f conftest.err conftest.
$ac_objext \
13451 conftest
$ac_exeext conftest.
$ac_ext
13453 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13454 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13455 if test `eval echo '${'$as_ac_var'}'` = yes; then
13456 cat >>confdefs.h
<<_ACEOF
13457 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13465 for ac_header
in sys
/un.h
13467 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13468 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13469 echo "$as_me:$LINENO: checking for $ac_header" >&5
13470 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13471 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13472 echo $ECHO_N "(cached) $ECHO_C" >&6
13474 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13475 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13477 # Is the header compilable?
13478 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13479 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13480 cat >conftest.
$ac_ext <<_ACEOF
13483 cat confdefs.h
>>conftest.
$ac_ext
13484 cat >>conftest.
$ac_ext <<_ACEOF
13485 /* end confdefs.h. */
13486 $ac_includes_default
13487 #include <$ac_header>
13489 rm -f conftest.
$ac_objext
13490 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13491 (eval $ac_compile) 2>conftest.er1
13493 grep -v '^ *+' conftest.er1
>conftest.err
13495 cat conftest.err
>&5
13496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13497 (exit $ac_status); } &&
13498 { ac_try
='test -z "$ac_c_werror_flag"
13499 || test ! -s conftest.err'
13500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13501 (eval $ac_try) 2>&5
13503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13504 (exit $ac_status); }; } &&
13505 { ac_try
='test -s conftest.$ac_objext'
13506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13507 (eval $ac_try) 2>&5
13509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13510 (exit $ac_status); }; }; then
13511 ac_header_compiler
=yes
13513 echo "$as_me: failed program was:" >&5
13514 sed 's/^/| /' conftest.
$ac_ext >&5
13516 ac_header_compiler
=no
13518 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13519 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13520 echo "${ECHO_T}$ac_header_compiler" >&6
13522 # Is the header present?
13523 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13524 echo $ECHO_N "checking $ac_header presence... $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 #include <$ac_header>
13533 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13534 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
13536 grep -v '^ *+' conftest.er1
>conftest.err
13538 cat conftest.err
>&5
13539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13540 (exit $ac_status); } >/dev
/null
; then
13541 if test -s conftest.err
; then
13542 ac_cpp_err
=$ac_c_preproc_warn_flag
13543 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
13550 if test -z "$ac_cpp_err"; then
13551 ac_header_preproc
=yes
13553 echo "$as_me: failed program was:" >&5
13554 sed 's/^/| /' conftest.
$ac_ext >&5
13556 ac_header_preproc
=no
13558 rm -f conftest.err conftest.
$ac_ext
13559 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13560 echo "${ECHO_T}$ac_header_preproc" >&6
13562 # So? What about this header?
13563 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13565 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13566 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13567 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13568 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13569 ac_header_preproc
=yes
13572 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13573 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13574 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13575 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13576 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13577 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13578 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13579 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13580 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13581 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13582 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13583 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13586 ## ------------------------------------------ ##
13587 ## Report this to the AC_PACKAGE_NAME lists. ##
13588 ## ------------------------------------------ ##
13591 sed "s/^/$as_me: WARNING: /" >&2
13594 echo "$as_me:$LINENO: checking for $ac_header" >&5
13595 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13596 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13597 echo $ECHO_N "(cached) $ECHO_C" >&6
13599 eval "$as_ac_Header=\$ac_header_preproc"
13601 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13602 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13605 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13606 cat >>confdefs.h
<<_ACEOF
13607 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13618 for ac_header
in stdlib.h sys
/time.h unistd.h
13620 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13621 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13622 echo "$as_me:$LINENO: checking for $ac_header" >&5
13623 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13624 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13625 echo $ECHO_N "(cached) $ECHO_C" >&6
13627 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13628 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13630 # Is the header compilable?
13631 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13632 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13633 cat >conftest.
$ac_ext <<_ACEOF
13636 cat confdefs.h
>>conftest.
$ac_ext
13637 cat >>conftest.
$ac_ext <<_ACEOF
13638 /* end confdefs.h. */
13639 $ac_includes_default
13640 #include <$ac_header>
13642 rm -f conftest.
$ac_objext
13643 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13644 (eval $ac_compile) 2>conftest.er1
13646 grep -v '^ *+' conftest.er1
>conftest.err
13648 cat conftest.err
>&5
13649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13650 (exit $ac_status); } &&
13651 { ac_try
='test -z "$ac_c_werror_flag"
13652 || test ! -s conftest.err'
13653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13654 (eval $ac_try) 2>&5
13656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13657 (exit $ac_status); }; } &&
13658 { ac_try
='test -s conftest.$ac_objext'
13659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13660 (eval $ac_try) 2>&5
13662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13663 (exit $ac_status); }; }; then
13664 ac_header_compiler
=yes
13666 echo "$as_me: failed program was:" >&5
13667 sed 's/^/| /' conftest.
$ac_ext >&5
13669 ac_header_compiler
=no
13671 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13672 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13673 echo "${ECHO_T}$ac_header_compiler" >&6
13675 # Is the header present?
13676 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13677 echo $ECHO_N "checking $ac_header presence... $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 #include <$ac_header>
13686 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13687 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
13689 grep -v '^ *+' conftest.er1
>conftest.err
13691 cat conftest.err
>&5
13692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13693 (exit $ac_status); } >/dev
/null
; then
13694 if test -s conftest.err
; then
13695 ac_cpp_err
=$ac_c_preproc_warn_flag
13696 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
13703 if test -z "$ac_cpp_err"; then
13704 ac_header_preproc
=yes
13706 echo "$as_me: failed program was:" >&5
13707 sed 's/^/| /' conftest.
$ac_ext >&5
13709 ac_header_preproc
=no
13711 rm -f conftest.err conftest.
$ac_ext
13712 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13713 echo "${ECHO_T}$ac_header_preproc" >&6
13715 # So? What about this header?
13716 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13718 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13719 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13720 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13721 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13722 ac_header_preproc
=yes
13725 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13726 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13727 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13728 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13729 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13730 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13731 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13732 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13733 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13734 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13735 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13736 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13739 ## ------------------------------------------ ##
13740 ## Report this to the AC_PACKAGE_NAME lists. ##
13741 ## ------------------------------------------ ##
13744 sed "s/^/$as_me: WARNING: /" >&2
13747 echo "$as_me:$LINENO: checking for $ac_header" >&5
13748 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13749 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13750 echo $ECHO_N "(cached) $ECHO_C" >&6
13752 eval "$as_ac_Header=\$ac_header_preproc"
13754 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13755 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13758 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13759 cat >>confdefs.h
<<_ACEOF
13760 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13768 for ac_func
in alarm
13770 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13771 echo "$as_me:$LINENO: checking for $ac_func" >&5
13772 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13773 if eval "test \"\${$as_ac_var+set}\" = set"; then
13774 echo $ECHO_N "(cached) $ECHO_C" >&6
13776 cat >conftest.
$ac_ext <<_ACEOF
13779 cat confdefs.h
>>conftest.
$ac_ext
13780 cat >>conftest.
$ac_ext <<_ACEOF
13781 /* end confdefs.h. */
13782 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13783 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13784 #define $ac_func innocuous_$ac_func
13786 /* System header to define __stub macros and hopefully few prototypes,
13787 which can conflict with char $ac_func (); below.
13788 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13789 <limits.h> exists even on freestanding compilers. */
13792 # include <limits.h>
13794 # include <assert.h>
13799 /* Override any gcc2 internal prototype to avoid an error. */
13804 /* We use char because int might match the return type of a gcc2
13805 builtin and then its argument prototype would still apply. */
13807 /* The GNU C library defines this for functions which it implements
13808 to always fail with ENOSYS. Some functions are actually named
13809 something starting with __ and the normal name is an alias. */
13810 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13813 char (*f) () = $ac_func;
13822 return f != $ac_func;
13827 rm -f conftest.
$ac_objext conftest
$ac_exeext
13828 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13829 (eval $ac_link) 2>conftest.er1
13831 grep -v '^ *+' conftest.er1
>conftest.err
13833 cat conftest.err
>&5
13834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13835 (exit $ac_status); } &&
13836 { ac_try
='test -z "$ac_c_werror_flag"
13837 || test ! -s conftest.err'
13838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13839 (eval $ac_try) 2>&5
13841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13842 (exit $ac_status); }; } &&
13843 { ac_try
='test -s conftest$ac_exeext'
13844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13845 (eval $ac_try) 2>&5
13847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13848 (exit $ac_status); }; }; then
13849 eval "$as_ac_var=yes"
13851 echo "$as_me: failed program was:" >&5
13852 sed 's/^/| /' conftest.
$ac_ext >&5
13854 eval "$as_ac_var=no"
13856 rm -f conftest.err conftest.
$ac_objext \
13857 conftest
$ac_exeext conftest.
$ac_ext
13859 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13860 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13861 if test `eval echo '${'$as_ac_var'}'` = yes; then
13862 cat >>confdefs.h
<<_ACEOF
13863 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13869 echo "$as_me:$LINENO: checking for working mktime" >&5
13870 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
13871 if test "${ac_cv_func_working_mktime+set}" = set; then
13872 echo $ECHO_N "(cached) $ECHO_C" >&6
13874 if test "$cross_compiling" = yes; then
13875 ac_cv_func_working_mktime
=no
13877 cat >conftest.
$ac_ext <<_ACEOF
13880 cat confdefs.h
>>conftest.
$ac_ext
13881 cat >>conftest.
$ac_ext <<_ACEOF
13882 /* end confdefs.h. */
13883 /* Test program from Paul Eggert and Tony Leneis. */
13884 #if TIME_WITH_SYS_TIME
13885 # include <sys/time.h>
13888 # if HAVE_SYS_TIME_H
13889 # include <sys/time.h>
13896 # include <stdlib.h>
13900 # include <unistd.h>
13904 # define alarm(X) /* empty */
13907 /* Work around redefinition to rpl_putenv by other config tests. */
13910 static time_t time_t_max;
13911 static time_t time_t_min;
13913 /* Values we'll use to set the TZ environment variable. */
13914 static char *tz_strings[] = {
13915 (char *) 0, "TZ=GMT0", "TZ=JST-9",
13916 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
13918 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
13920 /* Fail if mktime fails to convert a date in the spring-forward gap.
13921 Based on a problem report from Andreas Jaeger. */
13923 spring_forward_gap ()
13925 /* glibc (up to about 1998-10-07) failed this test. */
13928 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
13929 instead of "TZ=America/Vancouver" in order to detect the bug even
13930 on systems that don't support the Olson extension, or don't have the
13931 full zoneinfo tables installed. */
13932 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
13941 if (mktime (&tm) == (time_t)-1)
13950 if ((lt = localtime (&now)) && mktime (lt) != now)
13958 mktime_test1 (now);
13959 mktime_test1 ((time_t) (time_t_max - now));
13960 mktime_test1 ((time_t) (time_t_min + now));
13966 /* Based on code from Ariel Faigon. */
13976 if (tm.tm_mon != 2 || tm.tm_mday != 31)
13986 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
13987 now = mktime (&tm);
13988 if (now != (time_t) -1)
13990 struct tm *lt = localtime (&now);
13992 && lt->tm_year == tm.tm_year
13993 && lt->tm_mon == tm.tm_mon
13994 && lt->tm_mday == tm.tm_mday
13995 && lt->tm_hour == tm.tm_hour
13996 && lt->tm_min == tm.tm_min
13997 && lt->tm_sec == tm.tm_sec
13998 && lt->tm_yday == tm.tm_yday
13999 && lt->tm_wday == tm.tm_wday
14000 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
14001 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
14012 /* This test makes some buggy mktime implementations loop.
14013 Give up after 60 seconds; a mktime slower than that
14014 isn't worth using anyway. */
14017 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
14020 if ((time_t) -1 < 0)
14021 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
14023 delta = time_t_max / 997; /* a suitable prime number */
14024 for (i = 0; i < N_STRINGS; i++)
14027 putenv (tz_strings[i]);
14029 for (t = 0; t <= time_t_max - delta; t += delta)
14031 mktime_test ((time_t) 1);
14032 mktime_test ((time_t) (60 * 60));
14033 mktime_test ((time_t) (60 * 60 * 24));
14035 for (j = 1; 0 < j; j *= 2)
14037 bigtime_test (j - 1);
14040 spring_forward_gap ();
14044 rm -f conftest
$ac_exeext
14045 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14046 (eval $ac_link) 2>&5
14048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14049 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
14050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14051 (eval $ac_try) 2>&5
14053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14054 (exit $ac_status); }; }; then
14055 ac_cv_func_working_mktime
=yes
14057 echo "$as_me: program exited with status $ac_status" >&5
14058 echo "$as_me: failed program was:" >&5
14059 sed 's/^/| /' conftest.
$ac_ext >&5
14061 ( exit $ac_status )
14062 ac_cv_func_working_mktime
=no
14064 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
14067 echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
14068 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
14069 if test $ac_cv_func_working_mktime = no
; then
14071 "mktime.$ac_objext" | \
14072 *" mktime.$ac_objext" | \
14073 "mktime.$ac_objext "* | \
14074 *" mktime.$ac_objext "* ) ;;
14075 *) LIBOBJS
="$LIBOBJS mktime.$ac_objext" ;;
14080 if test "$ac_cv_func_working_mktime" = no
; then
14082 cat >>confdefs.h
<<\_ACEOF
14083 #define BROKEN_MKTIME 1
14088 ac_have_func
=no
# yes means we've found a way to get the load average.
14090 # Make sure getloadavg.c is where it belongs, at configure-time.
14091 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
14092 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
14093 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
14094 { (exit 1); exit 1; }; }
14098 # Check for getloadavg, but be sure not to touch the cache variable.
14099 (echo "$as_me:$LINENO: checking for getloadavg" >&5
14100 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6
14101 if test "${ac_cv_func_getloadavg+set}" = set; then
14102 echo $ECHO_N "(cached) $ECHO_C" >&6
14104 cat >conftest.
$ac_ext <<_ACEOF
14107 cat confdefs.h
>>conftest.
$ac_ext
14108 cat >>conftest.
$ac_ext <<_ACEOF
14109 /* end confdefs.h. */
14110 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
14111 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14112 #define getloadavg innocuous_getloadavg
14114 /* System header to define __stub macros and hopefully few prototypes,
14115 which can conflict with char getloadavg (); below.
14116 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14117 <limits.h> exists even on freestanding compilers. */
14120 # include <limits.h>
14122 # include <assert.h>
14127 /* Override any gcc2 internal prototype to avoid an error. */
14132 /* We use char because int might match the return type of a gcc2
14133 builtin and then its argument prototype would still apply. */
14134 char getloadavg ();
14135 /* The GNU C library defines this for functions which it implements
14136 to always fail with ENOSYS. Some functions are actually named
14137 something starting with __ and the normal name is an alias. */
14138 #if defined (__stub_getloadavg) || defined (__stub___getloadavg)
14141 char (*f) () = getloadavg;
14150 return f != getloadavg;
14155 rm -f conftest.
$ac_objext conftest
$ac_exeext
14156 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14157 (eval $ac_link) 2>conftest.er1
14159 grep -v '^ *+' conftest.er1
>conftest.err
14161 cat conftest.err
>&5
14162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14163 (exit $ac_status); } &&
14164 { ac_try
='test -z "$ac_c_werror_flag"
14165 || test ! -s conftest.err'
14166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14167 (eval $ac_try) 2>&5
14169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14170 (exit $ac_status); }; } &&
14171 { ac_try
='test -s conftest$ac_exeext'
14172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14173 (eval $ac_try) 2>&5
14175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14176 (exit $ac_status); }; }; then
14177 ac_cv_func_getloadavg
=yes
14179 echo "$as_me: failed program was:" >&5
14180 sed 's/^/| /' conftest.
$ac_ext >&5
14182 ac_cv_func_getloadavg
=no
14184 rm -f conftest.err conftest.
$ac_objext \
14185 conftest
$ac_exeext conftest.
$ac_ext
14187 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
14188 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6
14189 if test $ac_cv_func_getloadavg = yes; then
14194 ) && ac_have_func
=yes
14196 # On HPUX9, an unprivileged user can get load averages through this function.
14198 for ac_func
in pstat_getdynamic
14200 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14201 echo "$as_me:$LINENO: checking for $ac_func" >&5
14202 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14203 if eval "test \"\${$as_ac_var+set}\" = set"; then
14204 echo $ECHO_N "(cached) $ECHO_C" >&6
14206 cat >conftest.
$ac_ext <<_ACEOF
14209 cat confdefs.h
>>conftest.
$ac_ext
14210 cat >>conftest.
$ac_ext <<_ACEOF
14211 /* end confdefs.h. */
14212 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14213 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14214 #define $ac_func innocuous_$ac_func
14216 /* System header to define __stub macros and hopefully few prototypes,
14217 which can conflict with char $ac_func (); below.
14218 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14219 <limits.h> exists even on freestanding compilers. */
14222 # include <limits.h>
14224 # include <assert.h>
14229 /* Override any gcc2 internal prototype to avoid an error. */
14234 /* We use char because int might match the return type of a gcc2
14235 builtin and then its argument prototype would still apply. */
14237 /* The GNU C library defines this for functions which it implements
14238 to always fail with ENOSYS. Some functions are actually named
14239 something starting with __ and the normal name is an alias. */
14240 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14243 char (*f) () = $ac_func;
14252 return f != $ac_func;
14257 rm -f conftest.
$ac_objext conftest
$ac_exeext
14258 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14259 (eval $ac_link) 2>conftest.er1
14261 grep -v '^ *+' conftest.er1
>conftest.err
14263 cat conftest.err
>&5
14264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14265 (exit $ac_status); } &&
14266 { ac_try
='test -z "$ac_c_werror_flag"
14267 || test ! -s conftest.err'
14268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14269 (eval $ac_try) 2>&5
14271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14272 (exit $ac_status); }; } &&
14273 { ac_try
='test -s conftest$ac_exeext'
14274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14275 (eval $ac_try) 2>&5
14277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14278 (exit $ac_status); }; }; then
14279 eval "$as_ac_var=yes"
14281 echo "$as_me: failed program was:" >&5
14282 sed 's/^/| /' conftest.
$ac_ext >&5
14284 eval "$as_ac_var=no"
14286 rm -f conftest.err conftest.
$ac_objext \
14287 conftest
$ac_exeext conftest.
$ac_ext
14289 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14290 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14291 if test `eval echo '${'$as_ac_var'}'` = yes; then
14292 cat >>confdefs.h
<<_ACEOF
14293 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14300 # Solaris has libkstat which does not require root.
14302 echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
14303 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6
14304 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
14305 echo $ECHO_N "(cached) $ECHO_C" >&6
14307 ac_check_lib_save_LIBS
=$LIBS
14308 LIBS
="-lkstat $LIBS"
14309 cat >conftest.
$ac_ext <<_ACEOF
14312 cat confdefs.h
>>conftest.
$ac_ext
14313 cat >>conftest.
$ac_ext <<_ACEOF
14314 /* end confdefs.h. */
14316 /* Override any gcc2 internal prototype to avoid an error. */
14320 /* We use char because int might match the return type of a gcc2
14321 builtin and then its argument prototype would still apply. */
14322 char kstat_open ();
14331 rm -f conftest.
$ac_objext conftest
$ac_exeext
14332 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14333 (eval $ac_link) 2>conftest.er1
14335 grep -v '^ *+' conftest.er1
>conftest.err
14337 cat conftest.err
>&5
14338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14339 (exit $ac_status); } &&
14340 { ac_try
='test -z "$ac_c_werror_flag"
14341 || test ! -s conftest.err'
14342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14343 (eval $ac_try) 2>&5
14345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14346 (exit $ac_status); }; } &&
14347 { ac_try
='test -s conftest$ac_exeext'
14348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14349 (eval $ac_try) 2>&5
14351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14352 (exit $ac_status); }; }; then
14353 ac_cv_lib_kstat_kstat_open
=yes
14355 echo "$as_me: failed program was:" >&5
14356 sed 's/^/| /' conftest.
$ac_ext >&5
14358 ac_cv_lib_kstat_kstat_open
=no
14360 rm -f conftest.err conftest.
$ac_objext \
14361 conftest
$ac_exeext conftest.
$ac_ext
14362 LIBS
=$ac_check_lib_save_LIBS
14364 echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
14365 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6
14366 if test $ac_cv_lib_kstat_kstat_open = yes; then
14367 cat >>confdefs.h
<<_ACEOF
14368 #define HAVE_LIBKSTAT 1
14371 LIBS
="-lkstat $LIBS"
14375 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func
=yes
14377 # Some systems with -lutil have (and need) -lkvm as well, some do not.
14378 # On Solaris, -lkvm requires nlist from -lelf, so check that first
14379 # to get the right answer into the cache.
14380 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
14381 if test $ac_have_func = no
; then
14382 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
14383 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
14384 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
14385 echo $ECHO_N "(cached) $ECHO_C" >&6
14387 ac_check_lib_save_LIBS
=$LIBS
14389 cat >conftest.
$ac_ext <<_ACEOF
14392 cat confdefs.h
>>conftest.
$ac_ext
14393 cat >>conftest.
$ac_ext <<_ACEOF
14394 /* end confdefs.h. */
14396 /* Override any gcc2 internal prototype to avoid an error. */
14400 /* We use char because int might match the return type of a gcc2
14401 builtin and then its argument prototype would still apply. */
14411 rm -f conftest.
$ac_objext conftest
$ac_exeext
14412 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14413 (eval $ac_link) 2>conftest.er1
14415 grep -v '^ *+' conftest.er1
>conftest.err
14417 cat conftest.err
>&5
14418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14419 (exit $ac_status); } &&
14420 { ac_try
='test -z "$ac_c_werror_flag"
14421 || test ! -s conftest.err'
14422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14423 (eval $ac_try) 2>&5
14425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14426 (exit $ac_status); }; } &&
14427 { ac_try
='test -s conftest$ac_exeext'
14428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14429 (eval $ac_try) 2>&5
14431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14432 (exit $ac_status); }; }; then
14433 ac_cv_lib_elf_elf_begin
=yes
14435 echo "$as_me: failed program was:" >&5
14436 sed 's/^/| /' conftest.
$ac_ext >&5
14438 ac_cv_lib_elf_elf_begin
=no
14440 rm -f conftest.err conftest.
$ac_objext \
14441 conftest
$ac_exeext conftest.
$ac_ext
14442 LIBS
=$ac_check_lib_save_LIBS
14444 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
14445 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
14446 if test $ac_cv_lib_elf_elf_begin = yes; then
14451 if test $ac_have_func = no
; then
14452 echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
14453 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6
14454 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
14455 echo $ECHO_N "(cached) $ECHO_C" >&6
14457 ac_check_lib_save_LIBS
=$LIBS
14459 cat >conftest.
$ac_ext <<_ACEOF
14462 cat confdefs.h
>>conftest.
$ac_ext
14463 cat >>conftest.
$ac_ext <<_ACEOF
14464 /* end confdefs.h. */
14466 /* Override any gcc2 internal prototype to avoid an error. */
14470 /* We use char because int might match the return type of a gcc2
14471 builtin and then its argument prototype would still apply. */
14481 rm -f conftest.
$ac_objext conftest
$ac_exeext
14482 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14483 (eval $ac_link) 2>conftest.er1
14485 grep -v '^ *+' conftest.er1
>conftest.err
14487 cat conftest.err
>&5
14488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14489 (exit $ac_status); } &&
14490 { ac_try
='test -z "$ac_c_werror_flag"
14491 || test ! -s conftest.err'
14492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14493 (eval $ac_try) 2>&5
14495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14496 (exit $ac_status); }; } &&
14497 { ac_try
='test -s conftest$ac_exeext'
14498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14499 (eval $ac_try) 2>&5
14501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14502 (exit $ac_status); }; }; then
14503 ac_cv_lib_kvm_kvm_open
=yes
14505 echo "$as_me: failed program was:" >&5
14506 sed 's/^/| /' conftest.
$ac_ext >&5
14508 ac_cv_lib_kvm_kvm_open
=no
14510 rm -f conftest.err conftest.
$ac_objext \
14511 conftest
$ac_exeext conftest.
$ac_ext
14512 LIBS
=$ac_check_lib_save_LIBS
14514 echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
14515 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6
14516 if test $ac_cv_lib_kvm_kvm_open = yes; then
14520 # Check for the 4.4BSD definition of getloadavg.
14521 echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
14522 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6
14523 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
14524 echo $ECHO_N "(cached) $ECHO_C" >&6
14526 ac_check_lib_save_LIBS
=$LIBS
14527 LIBS
="-lutil $LIBS"
14528 cat >conftest.
$ac_ext <<_ACEOF
14531 cat confdefs.h
>>conftest.
$ac_ext
14532 cat >>conftest.
$ac_ext <<_ACEOF
14533 /* end confdefs.h. */
14535 /* Override any gcc2 internal prototype to avoid an error. */
14539 /* We use char because int might match the return type of a gcc2
14540 builtin and then its argument prototype would still apply. */
14541 char getloadavg ();
14550 rm -f conftest.
$ac_objext conftest
$ac_exeext
14551 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14552 (eval $ac_link) 2>conftest.er1
14554 grep -v '^ *+' conftest.er1
>conftest.err
14556 cat conftest.err
>&5
14557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14558 (exit $ac_status); } &&
14559 { ac_try
='test -z "$ac_c_werror_flag"
14560 || test ! -s conftest.err'
14561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14562 (eval $ac_try) 2>&5
14564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14565 (exit $ac_status); }; } &&
14566 { ac_try
='test -s conftest$ac_exeext'
14567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14568 (eval $ac_try) 2>&5
14570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14571 (exit $ac_status); }; }; then
14572 ac_cv_lib_util_getloadavg
=yes
14574 echo "$as_me: failed program was:" >&5
14575 sed 's/^/| /' conftest.
$ac_ext >&5
14577 ac_cv_lib_util_getloadavg
=no
14579 rm -f conftest.err conftest.
$ac_objext \
14580 conftest
$ac_exeext conftest.
$ac_ext
14581 LIBS
=$ac_check_lib_save_LIBS
14583 echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
14584 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6
14585 if test $ac_cv_lib_util_getloadavg = yes; then
14586 LIBS
="-lutil $LIBS" ac_have_func
=yes ac_cv_func_getloadavg_setgid
=yes
14591 if test $ac_have_func = no
; then
14592 # There is a commonly available library for RS/6000 AIX.
14593 # Since it is not a standard part of AIX, it might be installed locally.
14594 ac_getloadavg_LIBS
=$LIBS
14595 LIBS
="-L/usr/local/lib $LIBS"
14596 echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
14597 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6
14598 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
14599 echo $ECHO_N "(cached) $ECHO_C" >&6
14601 ac_check_lib_save_LIBS
=$LIBS
14602 LIBS
="-lgetloadavg $LIBS"
14603 cat >conftest.
$ac_ext <<_ACEOF
14606 cat confdefs.h
>>conftest.
$ac_ext
14607 cat >>conftest.
$ac_ext <<_ACEOF
14608 /* end confdefs.h. */
14610 /* Override any gcc2 internal prototype to avoid an error. */
14614 /* We use char because int might match the return type of a gcc2
14615 builtin and then its argument prototype would still apply. */
14616 char getloadavg ();
14625 rm -f conftest.
$ac_objext conftest
$ac_exeext
14626 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14627 (eval $ac_link) 2>conftest.er1
14629 grep -v '^ *+' conftest.er1
>conftest.err
14631 cat conftest.err
>&5
14632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14633 (exit $ac_status); } &&
14634 { ac_try
='test -z "$ac_c_werror_flag"
14635 || test ! -s conftest.err'
14636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14637 (eval $ac_try) 2>&5
14639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14640 (exit $ac_status); }; } &&
14641 { ac_try
='test -s conftest$ac_exeext'
14642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14643 (eval $ac_try) 2>&5
14645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14646 (exit $ac_status); }; }; then
14647 ac_cv_lib_getloadavg_getloadavg
=yes
14649 echo "$as_me: failed program was:" >&5
14650 sed 's/^/| /' conftest.
$ac_ext >&5
14652 ac_cv_lib_getloadavg_getloadavg
=no
14654 rm -f conftest.err conftest.
$ac_objext \
14655 conftest
$ac_exeext conftest.
$ac_ext
14656 LIBS
=$ac_check_lib_save_LIBS
14658 echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
14659 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6
14660 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
14661 LIBS
="-lgetloadavg $LIBS"
14663 LIBS
=$ac_getloadavg_LIBS
14668 # Make sure it is really in the library, if we think we found it,
14669 # otherwise set up the replacement function.
14671 for ac_func
in getloadavg
14673 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14674 echo "$as_me:$LINENO: checking for $ac_func" >&5
14675 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14676 if eval "test \"\${$as_ac_var+set}\" = set"; then
14677 echo $ECHO_N "(cached) $ECHO_C" >&6
14679 cat >conftest.
$ac_ext <<_ACEOF
14682 cat confdefs.h
>>conftest.
$ac_ext
14683 cat >>conftest.
$ac_ext <<_ACEOF
14684 /* end confdefs.h. */
14685 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14686 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14687 #define $ac_func innocuous_$ac_func
14689 /* System header to define __stub macros and hopefully few prototypes,
14690 which can conflict with char $ac_func (); below.
14691 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14692 <limits.h> exists even on freestanding compilers. */
14695 # include <limits.h>
14697 # include <assert.h>
14702 /* Override any gcc2 internal prototype to avoid an error. */
14707 /* We use char because int might match the return type of a gcc2
14708 builtin and then its argument prototype would still apply. */
14710 /* The GNU C library defines this for functions which it implements
14711 to always fail with ENOSYS. Some functions are actually named
14712 something starting with __ and the normal name is an alias. */
14713 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14716 char (*f) () = $ac_func;
14725 return f != $ac_func;
14730 rm -f conftest.
$ac_objext conftest
$ac_exeext
14731 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14732 (eval $ac_link) 2>conftest.er1
14734 grep -v '^ *+' conftest.er1
>conftest.err
14736 cat conftest.err
>&5
14737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14738 (exit $ac_status); } &&
14739 { ac_try
='test -z "$ac_c_werror_flag"
14740 || test ! -s conftest.err'
14741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14742 (eval $ac_try) 2>&5
14744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14745 (exit $ac_status); }; } &&
14746 { ac_try
='test -s conftest$ac_exeext'
14747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14748 (eval $ac_try) 2>&5
14750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14751 (exit $ac_status); }; }; then
14752 eval "$as_ac_var=yes"
14754 echo "$as_me: failed program was:" >&5
14755 sed 's/^/| /' conftest.
$ac_ext >&5
14757 eval "$as_ac_var=no"
14759 rm -f conftest.err conftest.
$ac_objext \
14760 conftest
$ac_exeext conftest.
$ac_ext
14762 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14763 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14764 if test `eval echo '${'$as_ac_var'}'` = yes; then
14765 cat >>confdefs.h
<<_ACEOF
14766 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14771 "getloadavg.$ac_objext" | \
14772 *" getloadavg.$ac_objext" | \
14773 "getloadavg.$ac_objext "* | \
14774 *" getloadavg.$ac_objext "* ) ;;
14775 *) LIBOBJS
="$LIBOBJS getloadavg.$ac_objext" ;;
14779 cat >>confdefs.h
<<\_ACEOF
14780 #define C_GETLOADAVG 1
14783 # Figure out what our getloadavg.c needs.
14785 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
14786 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
14787 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
14788 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
14789 echo $ECHO_N "(cached) $ECHO_C" >&6
14791 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
14792 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
14794 # Is the header compilable?
14795 echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
14796 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6
14797 cat >conftest.
$ac_ext <<_ACEOF
14800 cat confdefs.h
>>conftest.
$ac_ext
14801 cat >>conftest.
$ac_ext <<_ACEOF
14802 /* end confdefs.h. */
14803 $ac_includes_default
14804 #include <sys/dg_sys_info.h>
14806 rm -f conftest.
$ac_objext
14807 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14808 (eval $ac_compile) 2>conftest.er1
14810 grep -v '^ *+' conftest.er1
>conftest.err
14812 cat conftest.err
>&5
14813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14814 (exit $ac_status); } &&
14815 { ac_try
='test -z "$ac_c_werror_flag"
14816 || test ! -s conftest.err'
14817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14818 (eval $ac_try) 2>&5
14820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14821 (exit $ac_status); }; } &&
14822 { ac_try
='test -s conftest.$ac_objext'
14823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14824 (eval $ac_try) 2>&5
14826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14827 (exit $ac_status); }; }; then
14828 ac_header_compiler
=yes
14830 echo "$as_me: failed program was:" >&5
14831 sed 's/^/| /' conftest.
$ac_ext >&5
14833 ac_header_compiler
=no
14835 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14836 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14837 echo "${ECHO_T}$ac_header_compiler" >&6
14839 # Is the header present?
14840 echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
14841 echo $ECHO_N "checking sys/dg_sys_info.h presence... $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 #include <sys/dg_sys_info.h>
14850 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14851 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
14853 grep -v '^ *+' conftest.er1
>conftest.err
14855 cat conftest.err
>&5
14856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14857 (exit $ac_status); } >/dev
/null
; then
14858 if test -s conftest.err
; then
14859 ac_cpp_err
=$ac_c_preproc_warn_flag
14860 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
14867 if test -z "$ac_cpp_err"; then
14868 ac_header_preproc
=yes
14870 echo "$as_me: failed program was:" >&5
14871 sed 's/^/| /' conftest.
$ac_ext >&5
14873 ac_header_preproc
=no
14875 rm -f conftest.err conftest.
$ac_ext
14876 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14877 echo "${ECHO_T}$ac_header_preproc" >&6
14879 # So? What about this header?
14880 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14882 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
14883 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14884 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
14885 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
14886 ac_header_preproc
=yes
14889 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
14890 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
14891 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
14892 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
14893 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
14894 echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
14895 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
14896 echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
14897 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
14898 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
14899 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
14900 echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
14903 ## ------------------------------------------ ##
14904 ## Report this to the AC_PACKAGE_NAME lists. ##
14905 ## ------------------------------------------ ##
14908 sed "s/^/$as_me: WARNING: /" >&2
14911 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
14912 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
14913 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
14914 echo $ECHO_N "(cached) $ECHO_C" >&6
14916 ac_cv_header_sys_dg_sys_info_h
=$ac_header_preproc
14918 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
14919 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
14922 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
14925 cat >>confdefs.h
<<\_ACEOF
14930 echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
14931 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6
14932 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
14933 echo $ECHO_N "(cached) $ECHO_C" >&6
14935 ac_check_lib_save_LIBS
=$LIBS
14937 cat >conftest.
$ac_ext <<_ACEOF
14940 cat confdefs.h
>>conftest.
$ac_ext
14941 cat >>conftest.
$ac_ext <<_ACEOF
14942 /* end confdefs.h. */
14944 /* Override any gcc2 internal prototype to avoid an error. */
14948 /* We use char because int might match the return type of a gcc2
14949 builtin and then its argument prototype would still apply. */
14950 char dg_sys_info ();
14959 rm -f conftest.
$ac_objext conftest
$ac_exeext
14960 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14961 (eval $ac_link) 2>conftest.er1
14963 grep -v '^ *+' conftest.er1
>conftest.err
14965 cat conftest.err
>&5
14966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14967 (exit $ac_status); } &&
14968 { ac_try
='test -z "$ac_c_werror_flag"
14969 || test ! -s conftest.err'
14970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14971 (eval $ac_try) 2>&5
14973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14974 (exit $ac_status); }; } &&
14975 { ac_try
='test -s conftest$ac_exeext'
14976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14977 (eval $ac_try) 2>&5
14979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14980 (exit $ac_status); }; }; then
14981 ac_cv_lib_dgc_dg_sys_info
=yes
14983 echo "$as_me: failed program was:" >&5
14984 sed 's/^/| /' conftest.
$ac_ext >&5
14986 ac_cv_lib_dgc_dg_sys_info
=no
14988 rm -f conftest.err conftest.
$ac_objext \
14989 conftest
$ac_exeext conftest.
$ac_ext
14990 LIBS
=$ac_check_lib_save_LIBS
14992 echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
14993 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6
14994 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
14995 cat >>confdefs.h
<<_ACEOF
14996 #define HAVE_LIBDGC 1
15007 if test "${ac_cv_header_locale_h+set}" = set; then
15008 echo "$as_me:$LINENO: checking for locale.h" >&5
15009 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
15010 if test "${ac_cv_header_locale_h+set}" = set; then
15011 echo $ECHO_N "(cached) $ECHO_C" >&6
15013 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
15014 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
15016 # Is the header compilable?
15017 echo "$as_me:$LINENO: checking locale.h usability" >&5
15018 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6
15019 cat >conftest.
$ac_ext <<_ACEOF
15022 cat confdefs.h
>>conftest.
$ac_ext
15023 cat >>conftest.
$ac_ext <<_ACEOF
15024 /* end confdefs.h. */
15025 $ac_includes_default
15026 #include <locale.h>
15028 rm -f conftest.
$ac_objext
15029 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15030 (eval $ac_compile) 2>conftest.er1
15032 grep -v '^ *+' conftest.er1
>conftest.err
15034 cat conftest.err
>&5
15035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15036 (exit $ac_status); } &&
15037 { ac_try
='test -z "$ac_c_werror_flag"
15038 || test ! -s conftest.err'
15039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15040 (eval $ac_try) 2>&5
15042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15043 (exit $ac_status); }; } &&
15044 { ac_try
='test -s conftest.$ac_objext'
15045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15046 (eval $ac_try) 2>&5
15048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15049 (exit $ac_status); }; }; then
15050 ac_header_compiler
=yes
15052 echo "$as_me: failed program was:" >&5
15053 sed 's/^/| /' conftest.
$ac_ext >&5
15055 ac_header_compiler
=no
15057 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15058 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15059 echo "${ECHO_T}$ac_header_compiler" >&6
15061 # Is the header present?
15062 echo "$as_me:$LINENO: checking locale.h presence" >&5
15063 echo $ECHO_N "checking locale.h presence... $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 #include <locale.h>
15072 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15073 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
15075 grep -v '^ *+' conftest.er1
>conftest.err
15077 cat conftest.err
>&5
15078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15079 (exit $ac_status); } >/dev
/null
; then
15080 if test -s conftest.err
; then
15081 ac_cpp_err
=$ac_c_preproc_warn_flag
15082 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
15089 if test -z "$ac_cpp_err"; then
15090 ac_header_preproc
=yes
15092 echo "$as_me: failed program was:" >&5
15093 sed 's/^/| /' conftest.
$ac_ext >&5
15095 ac_header_preproc
=no
15097 rm -f conftest.err conftest.
$ac_ext
15098 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15099 echo "${ECHO_T}$ac_header_preproc" >&6
15101 # So? What about this header?
15102 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15104 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
15105 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15106 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
15107 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
15108 ac_header_preproc
=yes
15111 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
15112 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
15113 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
15114 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
15115 { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
15116 echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
15117 { echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
15118 echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
15119 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
15120 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
15121 { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
15122 echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
15125 ## ------------------------------------------ ##
15126 ## Report this to the AC_PACKAGE_NAME lists. ##
15127 ## ------------------------------------------ ##
15130 sed "s/^/$as_me: WARNING: /" >&2
15133 echo "$as_me:$LINENO: checking for locale.h" >&5
15134 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
15135 if test "${ac_cv_header_locale_h+set}" = set; then
15136 echo $ECHO_N "(cached) $ECHO_C" >&6
15138 ac_cv_header_locale_h
=$ac_header_preproc
15140 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
15141 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
15147 for ac_func
in setlocale
15149 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15150 echo "$as_me:$LINENO: checking for $ac_func" >&5
15151 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15152 if eval "test \"\${$as_ac_var+set}\" = set"; then
15153 echo $ECHO_N "(cached) $ECHO_C" >&6
15155 cat >conftest.
$ac_ext <<_ACEOF
15158 cat confdefs.h
>>conftest.
$ac_ext
15159 cat >>conftest.
$ac_ext <<_ACEOF
15160 /* end confdefs.h. */
15161 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15162 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15163 #define $ac_func innocuous_$ac_func
15165 /* System header to define __stub macros and hopefully few prototypes,
15166 which can conflict with char $ac_func (); below.
15167 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15168 <limits.h> exists even on freestanding compilers. */
15171 # include <limits.h>
15173 # include <assert.h>
15178 /* Override any gcc2 internal prototype to avoid an error. */
15183 /* We use char because int might match the return type of a gcc2
15184 builtin and then its argument prototype would still apply. */
15186 /* The GNU C library defines this for functions which it implements
15187 to always fail with ENOSYS. Some functions are actually named
15188 something starting with __ and the normal name is an alias. */
15189 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15192 char (*f) () = $ac_func;
15201 return f != $ac_func;
15206 rm -f conftest.
$ac_objext conftest
$ac_exeext
15207 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15208 (eval $ac_link) 2>conftest.er1
15210 grep -v '^ *+' conftest.er1
>conftest.err
15212 cat conftest.err
>&5
15213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15214 (exit $ac_status); } &&
15215 { ac_try
='test -z "$ac_c_werror_flag"
15216 || test ! -s conftest.err'
15217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15218 (eval $ac_try) 2>&5
15220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15221 (exit $ac_status); }; } &&
15222 { ac_try
='test -s conftest$ac_exeext'
15223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15224 (eval $ac_try) 2>&5
15226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15227 (exit $ac_status); }; }; then
15228 eval "$as_ac_var=yes"
15230 echo "$as_me: failed program was:" >&5
15231 sed 's/^/| /' conftest.
$ac_ext >&5
15233 eval "$as_ac_var=no"
15235 rm -f conftest.err conftest.
$ac_objext \
15236 conftest
$ac_exeext conftest.
$ac_ext
15238 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15239 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15240 if test `eval echo '${'$as_ac_var'}'` = yes; then
15241 cat >>confdefs.h
<<_ACEOF
15242 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15249 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
15250 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
15251 # Irix 4.0.5F has the header but not the library.
15252 if test $ac_have_func = no
&& test "$ac_cv_lib_elf_elf_begin" = yes; then
15255 cat >>confdefs.h
<<\_ACEOF
15261 if test $ac_have_func = no
; then
15262 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
15263 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
15264 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
15265 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
15266 echo $ECHO_N "(cached) $ECHO_C" >&6
15268 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
15269 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
15271 # Is the header compilable?
15272 echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
15273 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6
15274 cat >conftest.
$ac_ext <<_ACEOF
15277 cat confdefs.h
>>conftest.
$ac_ext
15278 cat >>conftest.
$ac_ext <<_ACEOF
15279 /* end confdefs.h. */
15280 $ac_includes_default
15281 #include <inq_stats/cpustats.h>
15283 rm -f conftest.
$ac_objext
15284 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15285 (eval $ac_compile) 2>conftest.er1
15287 grep -v '^ *+' conftest.er1
>conftest.err
15289 cat conftest.err
>&5
15290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15291 (exit $ac_status); } &&
15292 { ac_try
='test -z "$ac_c_werror_flag"
15293 || test ! -s conftest.err'
15294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15295 (eval $ac_try) 2>&5
15297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15298 (exit $ac_status); }; } &&
15299 { ac_try
='test -s conftest.$ac_objext'
15300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15301 (eval $ac_try) 2>&5
15303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15304 (exit $ac_status); }; }; then
15305 ac_header_compiler
=yes
15307 echo "$as_me: failed program was:" >&5
15308 sed 's/^/| /' conftest.
$ac_ext >&5
15310 ac_header_compiler
=no
15312 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15313 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15314 echo "${ECHO_T}$ac_header_compiler" >&6
15316 # Is the header present?
15317 echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
15318 echo $ECHO_N "checking inq_stats/cpustats.h presence... $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 #include <inq_stats/cpustats.h>
15327 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15328 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
15330 grep -v '^ *+' conftest.er1
>conftest.err
15332 cat conftest.err
>&5
15333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15334 (exit $ac_status); } >/dev
/null
; then
15335 if test -s conftest.err
; then
15336 ac_cpp_err
=$ac_c_preproc_warn_flag
15337 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
15344 if test -z "$ac_cpp_err"; then
15345 ac_header_preproc
=yes
15347 echo "$as_me: failed program was:" >&5
15348 sed 's/^/| /' conftest.
$ac_ext >&5
15350 ac_header_preproc
=no
15352 rm -f conftest.err conftest.
$ac_ext
15353 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15354 echo "${ECHO_T}$ac_header_preproc" >&6
15356 # So? What about this header?
15357 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15359 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
15360 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15361 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
15362 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
15363 ac_header_preproc
=yes
15366 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
15367 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
15368 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
15369 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
15370 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
15371 echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
15372 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
15373 echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
15374 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
15375 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
15376 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
15377 echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
15380 ## ------------------------------------------ ##
15381 ## Report this to the AC_PACKAGE_NAME lists. ##
15382 ## ------------------------------------------ ##
15385 sed "s/^/$as_me: WARNING: /" >&2
15388 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
15389 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
15390 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
15391 echo $ECHO_N "(cached) $ECHO_C" >&6
15393 ac_cv_header_inq_stats_cpustats_h
=$ac_header_preproc
15395 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
15396 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
15399 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
15402 cat >>confdefs.h
<<\_ACEOF
15407 cat >>confdefs.h
<<\_ACEOF
15416 if test $ac_have_func = no
; then
15417 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
15418 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
15419 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
15420 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
15421 echo $ECHO_N "(cached) $ECHO_C" >&6
15423 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
15424 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
15426 # Is the header compilable?
15427 echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
15428 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6
15429 cat >conftest.
$ac_ext <<_ACEOF
15432 cat confdefs.h
>>conftest.
$ac_ext
15433 cat >>conftest.
$ac_ext <<_ACEOF
15434 /* end confdefs.h. */
15435 $ac_includes_default
15436 #include <sys/cpustats.h>
15438 rm -f conftest.
$ac_objext
15439 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15440 (eval $ac_compile) 2>conftest.er1
15442 grep -v '^ *+' conftest.er1
>conftest.err
15444 cat conftest.err
>&5
15445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15446 (exit $ac_status); } &&
15447 { ac_try
='test -z "$ac_c_werror_flag"
15448 || test ! -s conftest.err'
15449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15450 (eval $ac_try) 2>&5
15452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15453 (exit $ac_status); }; } &&
15454 { ac_try
='test -s conftest.$ac_objext'
15455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15456 (eval $ac_try) 2>&5
15458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15459 (exit $ac_status); }; }; then
15460 ac_header_compiler
=yes
15462 echo "$as_me: failed program was:" >&5
15463 sed 's/^/| /' conftest.
$ac_ext >&5
15465 ac_header_compiler
=no
15467 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15468 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15469 echo "${ECHO_T}$ac_header_compiler" >&6
15471 # Is the header present?
15472 echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
15473 echo $ECHO_N "checking sys/cpustats.h presence... $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 #include <sys/cpustats.h>
15482 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15483 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
15485 grep -v '^ *+' conftest.er1
>conftest.err
15487 cat conftest.err
>&5
15488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15489 (exit $ac_status); } >/dev
/null
; then
15490 if test -s conftest.err
; then
15491 ac_cpp_err
=$ac_c_preproc_warn_flag
15492 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
15499 if test -z "$ac_cpp_err"; then
15500 ac_header_preproc
=yes
15502 echo "$as_me: failed program was:" >&5
15503 sed 's/^/| /' conftest.
$ac_ext >&5
15505 ac_header_preproc
=no
15507 rm -f conftest.err conftest.
$ac_ext
15508 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15509 echo "${ECHO_T}$ac_header_preproc" >&6
15511 # So? What about this header?
15512 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15514 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
15515 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15516 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
15517 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
15518 ac_header_preproc
=yes
15521 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
15522 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
15523 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
15524 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
15525 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
15526 echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
15527 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
15528 echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
15529 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
15530 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
15531 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
15532 echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
15535 ## ------------------------------------------ ##
15536 ## Report this to the AC_PACKAGE_NAME lists. ##
15537 ## ------------------------------------------ ##
15540 sed "s/^/$as_me: WARNING: /" >&2
15543 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
15544 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
15545 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
15546 echo $ECHO_N "(cached) $ECHO_C" >&6
15548 ac_cv_header_sys_cpustats_h
=$ac_header_preproc
15550 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
15551 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
15554 if test $ac_cv_header_sys_cpustats_h = yes; then
15555 ac_have_func
=yes; cat >>confdefs.h
<<\_ACEOF
15564 if test $ac_have_func = no
; then
15566 for ac_header
in mach
/mach.h
15568 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15569 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15570 echo "$as_me:$LINENO: checking for $ac_header" >&5
15571 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15572 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15573 echo $ECHO_N "(cached) $ECHO_C" >&6
15575 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15576 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15578 # Is the header compilable?
15579 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15580 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15581 cat >conftest.
$ac_ext <<_ACEOF
15584 cat confdefs.h
>>conftest.
$ac_ext
15585 cat >>conftest.
$ac_ext <<_ACEOF
15586 /* end confdefs.h. */
15587 $ac_includes_default
15588 #include <$ac_header>
15590 rm -f conftest.
$ac_objext
15591 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15592 (eval $ac_compile) 2>conftest.er1
15594 grep -v '^ *+' conftest.er1
>conftest.err
15596 cat conftest.err
>&5
15597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15598 (exit $ac_status); } &&
15599 { ac_try
='test -z "$ac_c_werror_flag"
15600 || test ! -s conftest.err'
15601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15602 (eval $ac_try) 2>&5
15604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15605 (exit $ac_status); }; } &&
15606 { ac_try
='test -s conftest.$ac_objext'
15607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15608 (eval $ac_try) 2>&5
15610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15611 (exit $ac_status); }; }; then
15612 ac_header_compiler
=yes
15614 echo "$as_me: failed program was:" >&5
15615 sed 's/^/| /' conftest.
$ac_ext >&5
15617 ac_header_compiler
=no
15619 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15620 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15621 echo "${ECHO_T}$ac_header_compiler" >&6
15623 # Is the header present?
15624 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15625 echo $ECHO_N "checking $ac_header presence... $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 #include <$ac_header>
15634 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15635 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
15637 grep -v '^ *+' conftest.er1
>conftest.err
15639 cat conftest.err
>&5
15640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15641 (exit $ac_status); } >/dev
/null
; then
15642 if test -s conftest.err
; then
15643 ac_cpp_err
=$ac_c_preproc_warn_flag
15644 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
15651 if test -z "$ac_cpp_err"; then
15652 ac_header_preproc
=yes
15654 echo "$as_me: failed program was:" >&5
15655 sed 's/^/| /' conftest.
$ac_ext >&5
15657 ac_header_preproc
=no
15659 rm -f conftest.err conftest.
$ac_ext
15660 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15661 echo "${ECHO_T}$ac_header_preproc" >&6
15663 # So? What about this header?
15664 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15666 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15667 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15668 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15669 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15670 ac_header_preproc
=yes
15673 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15674 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15675 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15676 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15677 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15678 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15679 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15680 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15681 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15682 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15683 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15684 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15687 ## ------------------------------------------ ##
15688 ## Report this to the AC_PACKAGE_NAME lists. ##
15689 ## ------------------------------------------ ##
15692 sed "s/^/$as_me: WARNING: /" >&2
15695 echo "$as_me:$LINENO: checking for $ac_header" >&5
15696 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15697 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15698 echo $ECHO_N "(cached) $ECHO_C" >&6
15700 eval "$as_ac_Header=\$ac_header_preproc"
15702 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15703 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15706 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15707 cat >>confdefs.h
<<_ACEOF
15708 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15718 for ac_header
in nlist.h
15720 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15721 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15722 echo "$as_me:$LINENO: checking for $ac_header" >&5
15723 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15724 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15725 echo $ECHO_N "(cached) $ECHO_C" >&6
15727 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15728 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15730 # Is the header compilable?
15731 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15732 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15733 cat >conftest.
$ac_ext <<_ACEOF
15736 cat confdefs.h
>>conftest.
$ac_ext
15737 cat >>conftest.
$ac_ext <<_ACEOF
15738 /* end confdefs.h. */
15739 $ac_includes_default
15740 #include <$ac_header>
15742 rm -f conftest.
$ac_objext
15743 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15744 (eval $ac_compile) 2>conftest.er1
15746 grep -v '^ *+' conftest.er1
>conftest.err
15748 cat conftest.err
>&5
15749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15750 (exit $ac_status); } &&
15751 { ac_try
='test -z "$ac_c_werror_flag"
15752 || test ! -s conftest.err'
15753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15754 (eval $ac_try) 2>&5
15756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15757 (exit $ac_status); }; } &&
15758 { ac_try
='test -s conftest.$ac_objext'
15759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15760 (eval $ac_try) 2>&5
15762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15763 (exit $ac_status); }; }; then
15764 ac_header_compiler
=yes
15766 echo "$as_me: failed program was:" >&5
15767 sed 's/^/| /' conftest.
$ac_ext >&5
15769 ac_header_compiler
=no
15771 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15772 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15773 echo "${ECHO_T}$ac_header_compiler" >&6
15775 # Is the header present?
15776 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15777 echo $ECHO_N "checking $ac_header presence... $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 #include <$ac_header>
15786 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15787 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
15789 grep -v '^ *+' conftest.er1
>conftest.err
15791 cat conftest.err
>&5
15792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15793 (exit $ac_status); } >/dev
/null
; then
15794 if test -s conftest.err
; then
15795 ac_cpp_err
=$ac_c_preproc_warn_flag
15796 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
15803 if test -z "$ac_cpp_err"; then
15804 ac_header_preproc
=yes
15806 echo "$as_me: failed program was:" >&5
15807 sed 's/^/| /' conftest.
$ac_ext >&5
15809 ac_header_preproc
=no
15811 rm -f conftest.err conftest.
$ac_ext
15812 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15813 echo "${ECHO_T}$ac_header_preproc" >&6
15815 # So? What about this header?
15816 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15818 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15819 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15820 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15821 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15822 ac_header_preproc
=yes
15825 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15826 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15827 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15828 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15829 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15830 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15831 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15832 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15833 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15834 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15835 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15836 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15839 ## ------------------------------------------ ##
15840 ## Report this to the AC_PACKAGE_NAME lists. ##
15841 ## ------------------------------------------ ##
15844 sed "s/^/$as_me: WARNING: /" >&2
15847 echo "$as_me:$LINENO: checking for $ac_header" >&5
15848 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15849 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15850 echo $ECHO_N "(cached) $ECHO_C" >&6
15852 eval "$as_ac_Header=\$ac_header_preproc"
15854 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15855 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15858 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15859 cat >>confdefs.h
<<_ACEOF
15860 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15862 echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
15863 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6
15864 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
15865 echo $ECHO_N "(cached) $ECHO_C" >&6
15867 cat >conftest.
$ac_ext <<_ACEOF
15870 cat confdefs.h
>>conftest.
$ac_ext
15871 cat >>conftest.
$ac_ext <<_ACEOF
15872 /* end confdefs.h. */
15878 static struct nlist ac_aggr;
15879 if (ac_aggr.n_un.n_name)
15885 rm -f conftest.
$ac_objext
15886 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15887 (eval $ac_compile) 2>conftest.er1
15889 grep -v '^ *+' conftest.er1
>conftest.err
15891 cat conftest.err
>&5
15892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15893 (exit $ac_status); } &&
15894 { ac_try
='test -z "$ac_c_werror_flag"
15895 || test ! -s conftest.err'
15896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15897 (eval $ac_try) 2>&5
15899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15900 (exit $ac_status); }; } &&
15901 { ac_try
='test -s conftest.$ac_objext'
15902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15903 (eval $ac_try) 2>&5
15905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15906 (exit $ac_status); }; }; then
15907 ac_cv_member_struct_nlist_n_un_n_name
=yes
15909 echo "$as_me: failed program was:" >&5
15910 sed 's/^/| /' conftest.
$ac_ext >&5
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 (sizeof 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 ac_cv_member_struct_nlist_n_un_n_name
=no
15959 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15961 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15963 echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
15964 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6
15965 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
15967 cat >>confdefs.h
<<_ACEOF
15968 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
15972 cat >>confdefs.h
<<\_ACEOF
15973 #define NLIST_NAME_UNION 1
15987 # Some definitions of getloadavg require that the program be installed setgid.
15988 echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
15989 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6
15990 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
15991 echo $ECHO_N "(cached) $ECHO_C" >&6
15993 cat >conftest.
$ac_ext <<_ACEOF
15996 cat confdefs.h
>>conftest.
$ac_ext
15997 cat >>conftest.
$ac_ext <<_ACEOF
15998 /* end confdefs.h. */
15999 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
16000 #ifdef LDAV_PRIVILEGED
16001 Yowza Am I SETGID yet
16004 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16005 $EGREP "Yowza Am I SETGID yet" >/dev
/null
2>&1; then
16006 ac_cv_func_getloadavg_setgid
=yes
16008 ac_cv_func_getloadavg_setgid
=no
16013 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
16014 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6
16015 if test $ac_cv_func_getloadavg_setgid = yes; then
16018 cat >>confdefs.h
<<\_ACEOF
16019 #define GETLOADAVG_PRIVILEGED 1
16026 if test $ac_cv_func_getloadavg_setgid = yes; then
16027 echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
16028 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6
16029 if test "${ac_cv_group_kmem+set}" = set; then
16030 echo $ECHO_N "(cached) $ECHO_C" >&6
16032 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
16033 ac_ls_output
=`ls -lgL /dev/kmem 2>/dev/null`
16034 # If we got an error (system does not support symlinks), try without -L.
16035 test -z "$ac_ls_output" && ac_ls_output
=`ls -lg /dev/kmem`
16036 ac_cv_group_kmem
=`echo $ac_ls_output \
16037 | sed -ne 's/[ ][ ]*/ /g;
16038 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
16042 echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
16043 echo "${ECHO_T}$ac_cv_group_kmem" >&6
16044 KMEM_GROUP
=$ac_cv_group_kmem
16046 if test "x$ac_save_LIBS" = x
; then
16047 GETLOADAVG_LIBS
=$LIBS
16049 GETLOADAVG_LIBS
=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
16055 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
16056 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
16057 if test "${ac_cv_sys_largefile_source+set}" = set; then
16058 echo $ECHO_N "(cached) $ECHO_C" >&6
16061 ac_cv_sys_largefile_source
=no
16062 cat >conftest.
$ac_ext <<_ACEOF
16065 cat confdefs.h
>>conftest.
$ac_ext
16066 cat >>conftest.
$ac_ext <<_ACEOF
16067 /* end confdefs.h. */
16077 rm -f conftest.
$ac_objext
16078 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16079 (eval $ac_compile) 2>conftest.er1
16081 grep -v '^ *+' conftest.er1
>conftest.err
16083 cat conftest.err
>&5
16084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16085 (exit $ac_status); } &&
16086 { ac_try
='test -z "$ac_c_werror_flag"
16087 || test ! -s conftest.err'
16088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16089 (eval $ac_try) 2>&5
16091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16092 (exit $ac_status); }; } &&
16093 { ac_try
='test -s conftest.$ac_objext'
16094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16095 (eval $ac_try) 2>&5
16097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16098 (exit $ac_status); }; }; then
16101 echo "$as_me: failed program was:" >&5
16102 sed 's/^/| /' conftest.
$ac_ext >&5
16105 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16106 cat >conftest.
$ac_ext <<_ACEOF
16109 cat confdefs.h
>>conftest.
$ac_ext
16110 cat >>conftest.
$ac_ext <<_ACEOF
16111 /* end confdefs.h. */
16112 #define _LARGEFILE_SOURCE 1
16122 rm -f conftest.
$ac_objext
16123 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16124 (eval $ac_compile) 2>conftest.er1
16126 grep -v '^ *+' conftest.er1
>conftest.err
16128 cat conftest.err
>&5
16129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16130 (exit $ac_status); } &&
16131 { ac_try
='test -z "$ac_c_werror_flag"
16132 || test ! -s conftest.err'
16133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16134 (eval $ac_try) 2>&5
16136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16137 (exit $ac_status); }; } &&
16138 { ac_try
='test -s conftest.$ac_objext'
16139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16140 (eval $ac_try) 2>&5
16142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16143 (exit $ac_status); }; }; then
16144 ac_cv_sys_largefile_source
=1; break
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
16154 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
16155 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
16156 if test "$ac_cv_sys_largefile_source" != no
; then
16158 cat >>confdefs.h
<<_ACEOF
16159 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
16165 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
16166 # in glibc 2.1.3, but that breaks too many other things.
16167 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
16168 echo "$as_me:$LINENO: checking for fseeko" >&5
16169 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
16170 if test "${ac_cv_func_fseeko+set}" = set; then
16171 echo $ECHO_N "(cached) $ECHO_C" >&6
16173 cat >conftest.
$ac_ext <<_ACEOF
16176 cat confdefs.h
>>conftest.
$ac_ext
16177 cat >>conftest.
$ac_ext <<_ACEOF
16178 /* end confdefs.h. */
16183 return fseeko && fseeko (stdin, 0, 0);
16188 rm -f conftest.
$ac_objext conftest
$ac_exeext
16189 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16190 (eval $ac_link) 2>conftest.er1
16192 grep -v '^ *+' conftest.er1
>conftest.err
16194 cat conftest.err
>&5
16195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16196 (exit $ac_status); } &&
16197 { ac_try
='test -z "$ac_c_werror_flag"
16198 || test ! -s conftest.err'
16199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16200 (eval $ac_try) 2>&5
16202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16203 (exit $ac_status); }; } &&
16204 { ac_try
='test -s conftest$ac_exeext'
16205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16206 (eval $ac_try) 2>&5
16208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16209 (exit $ac_status); }; }; then
16210 ac_cv_func_fseeko
=yes
16212 echo "$as_me: failed program was:" >&5
16213 sed 's/^/| /' conftest.
$ac_ext >&5
16215 ac_cv_func_fseeko
=no
16217 rm -f conftest.err conftest.
$ac_objext \
16218 conftest
$ac_exeext conftest.
$ac_ext
16220 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
16221 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
16222 if test $ac_cv_func_fseeko = yes; then
16224 cat >>confdefs.h
<<\_ACEOF
16225 #define HAVE_FSEEKO 1
16231 echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
16232 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6
16233 if test "${ac_cv_func_getpgrp_void+set}" = set; then
16234 echo $ECHO_N "(cached) $ECHO_C" >&6
16236 # Use it with a single arg.
16237 cat >conftest.
$ac_ext <<_ACEOF
16240 cat confdefs.h
>>conftest.
$ac_ext
16241 cat >>conftest.
$ac_ext <<_ACEOF
16242 /* end confdefs.h. */
16243 $ac_includes_default
16252 rm -f conftest.
$ac_objext
16253 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16254 (eval $ac_compile) 2>conftest.er1
16256 grep -v '^ *+' conftest.er1
>conftest.err
16258 cat conftest.err
>&5
16259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16260 (exit $ac_status); } &&
16261 { ac_try
='test -z "$ac_c_werror_flag"
16262 || test ! -s conftest.err'
16263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16264 (eval $ac_try) 2>&5
16266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16267 (exit $ac_status); }; } &&
16268 { ac_try
='test -s conftest.$ac_objext'
16269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16270 (eval $ac_try) 2>&5
16272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16273 (exit $ac_status); }; }; then
16274 ac_cv_func_getpgrp_void
=no
16276 echo "$as_me: failed program was:" >&5
16277 sed 's/^/| /' conftest.
$ac_ext >&5
16279 ac_cv_func_getpgrp_void
=yes
16281 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16284 echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
16285 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6
16286 if test $ac_cv_func_getpgrp_void = yes; then
16288 cat >>confdefs.h
<<\_ACEOF
16289 #define GETPGRP_VOID 1
16296 for ac_func
in strftime
16298 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16299 echo "$as_me:$LINENO: checking for $ac_func" >&5
16300 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16301 if eval "test \"\${$as_ac_var+set}\" = set"; then
16302 echo $ECHO_N "(cached) $ECHO_C" >&6
16304 cat >conftest.
$ac_ext <<_ACEOF
16307 cat confdefs.h
>>conftest.
$ac_ext
16308 cat >>conftest.
$ac_ext <<_ACEOF
16309 /* end confdefs.h. */
16310 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16311 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16312 #define $ac_func innocuous_$ac_func
16314 /* System header to define __stub macros and hopefully few prototypes,
16315 which can conflict with char $ac_func (); below.
16316 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16317 <limits.h> exists even on freestanding compilers. */
16320 # include <limits.h>
16322 # include <assert.h>
16327 /* Override any gcc2 internal prototype to avoid an error. */
16332 /* We use char because int might match the return type of a gcc2
16333 builtin and then its argument prototype would still apply. */
16335 /* The GNU C library defines this for functions which it implements
16336 to always fail with ENOSYS. Some functions are actually named
16337 something starting with __ and the normal name is an alias. */
16338 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16341 char (*f) () = $ac_func;
16350 return f != $ac_func;
16355 rm -f conftest.
$ac_objext conftest
$ac_exeext
16356 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16357 (eval $ac_link) 2>conftest.er1
16359 grep -v '^ *+' conftest.er1
>conftest.err
16361 cat conftest.err
>&5
16362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16363 (exit $ac_status); } &&
16364 { ac_try
='test -z "$ac_c_werror_flag"
16365 || test ! -s conftest.err'
16366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16367 (eval $ac_try) 2>&5
16369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16370 (exit $ac_status); }; } &&
16371 { ac_try
='test -s conftest$ac_exeext'
16372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16373 (eval $ac_try) 2>&5
16375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16376 (exit $ac_status); }; }; then
16377 eval "$as_ac_var=yes"
16379 echo "$as_me: failed program was:" >&5
16380 sed 's/^/| /' conftest.
$ac_ext >&5
16382 eval "$as_ac_var=no"
16384 rm -f conftest.err conftest.
$ac_objext \
16385 conftest
$ac_exeext conftest.
$ac_ext
16387 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16388 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16389 if test `eval echo '${'$as_ac_var'}'` = yes; then
16390 cat >>confdefs.h
<<_ACEOF
16391 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16395 # strftime is in -lintl on SCO UNIX.
16396 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
16397 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
16398 if test "${ac_cv_lib_intl_strftime+set}" = set; then
16399 echo $ECHO_N "(cached) $ECHO_C" >&6
16401 ac_check_lib_save_LIBS
=$LIBS
16402 LIBS
="-lintl $LIBS"
16403 cat >conftest.
$ac_ext <<_ACEOF
16406 cat confdefs.h
>>conftest.
$ac_ext
16407 cat >>conftest.
$ac_ext <<_ACEOF
16408 /* end confdefs.h. */
16410 /* Override any gcc2 internal prototype to avoid an error. */
16414 /* We use char because int might match the return type of a gcc2
16415 builtin and then its argument prototype would still apply. */
16425 rm -f conftest.
$ac_objext conftest
$ac_exeext
16426 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16427 (eval $ac_link) 2>conftest.er1
16429 grep -v '^ *+' conftest.er1
>conftest.err
16431 cat conftest.err
>&5
16432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16433 (exit $ac_status); } &&
16434 { ac_try
='test -z "$ac_c_werror_flag"
16435 || test ! -s conftest.err'
16436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16437 (eval $ac_try) 2>&5
16439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16440 (exit $ac_status); }; } &&
16441 { ac_try
='test -s conftest$ac_exeext'
16442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16443 (eval $ac_try) 2>&5
16445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16446 (exit $ac_status); }; }; then
16447 ac_cv_lib_intl_strftime
=yes
16449 echo "$as_me: failed program was:" >&5
16450 sed 's/^/| /' conftest.
$ac_ext >&5
16452 ac_cv_lib_intl_strftime
=no
16454 rm -f conftest.err conftest.
$ac_objext \
16455 conftest
$ac_exeext conftest.
$ac_ext
16456 LIBS
=$ac_check_lib_save_LIBS
16458 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
16459 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
16460 if test $ac_cv_lib_intl_strftime = yes; then
16461 cat >>confdefs.h
<<\_ACEOF
16462 #define HAVE_STRFTIME 1
16465 LIBS
="-lintl $LIBS"
16474 for ac_func
in grantpt
16476 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16477 echo "$as_me:$LINENO: checking for $ac_func" >&5
16478 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16479 if eval "test \"\${$as_ac_var+set}\" = set"; then
16480 echo $ECHO_N "(cached) $ECHO_C" >&6
16482 cat >conftest.
$ac_ext <<_ACEOF
16485 cat confdefs.h
>>conftest.
$ac_ext
16486 cat >>conftest.
$ac_ext <<_ACEOF
16487 /* end confdefs.h. */
16488 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16489 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16490 #define $ac_func innocuous_$ac_func
16492 /* System header to define __stub macros and hopefully few prototypes,
16493 which can conflict with char $ac_func (); below.
16494 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16495 <limits.h> exists even on freestanding compilers. */
16498 # include <limits.h>
16500 # include <assert.h>
16505 /* Override any gcc2 internal prototype to avoid an error. */
16510 /* We use char because int might match the return type of a gcc2
16511 builtin and then its argument prototype would still apply. */
16513 /* The GNU C library defines this for functions which it implements
16514 to always fail with ENOSYS. Some functions are actually named
16515 something starting with __ and the normal name is an alias. */
16516 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16519 char (*f) () = $ac_func;
16528 return f != $ac_func;
16533 rm -f conftest.
$ac_objext conftest
$ac_exeext
16534 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16535 (eval $ac_link) 2>conftest.er1
16537 grep -v '^ *+' conftest.er1
>conftest.err
16539 cat conftest.err
>&5
16540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16541 (exit $ac_status); } &&
16542 { ac_try
='test -z "$ac_c_werror_flag"
16543 || test ! -s conftest.err'
16544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16545 (eval $ac_try) 2>&5
16547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16548 (exit $ac_status); }; } &&
16549 { ac_try
='test -s conftest$ac_exeext'
16550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16551 (eval $ac_try) 2>&5
16553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16554 (exit $ac_status); }; }; then
16555 eval "$as_ac_var=yes"
16557 echo "$as_me: failed program was:" >&5
16558 sed 's/^/| /' conftest.
$ac_ext >&5
16560 eval "$as_ac_var=no"
16562 rm -f conftest.err conftest.
$ac_objext \
16563 conftest
$ac_exeext conftest.
$ac_ext
16565 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16566 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16567 if test `eval echo '${'$as_ac_var'}'` = yes; then
16568 cat >>confdefs.h
<<_ACEOF
16569 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16576 # PTY-related GNU extensions.
16578 for ac_func
in getpt
16580 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16581 echo "$as_me:$LINENO: checking for $ac_func" >&5
16582 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16583 if eval "test \"\${$as_ac_var+set}\" = set"; then
16584 echo $ECHO_N "(cached) $ECHO_C" >&6
16586 cat >conftest.
$ac_ext <<_ACEOF
16589 cat confdefs.h
>>conftest.
$ac_ext
16590 cat >>conftest.
$ac_ext <<_ACEOF
16591 /* end confdefs.h. */
16592 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16593 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16594 #define $ac_func innocuous_$ac_func
16596 /* System header to define __stub macros and hopefully few prototypes,
16597 which can conflict with char $ac_func (); below.
16598 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16599 <limits.h> exists even on freestanding compilers. */
16602 # include <limits.h>
16604 # include <assert.h>
16609 /* Override any gcc2 internal prototype to avoid an error. */
16614 /* We use char because int might match the return type of a gcc2
16615 builtin and then its argument prototype would still apply. */
16617 /* The GNU C library defines this for functions which it implements
16618 to always fail with ENOSYS. Some functions are actually named
16619 something starting with __ and the normal name is an alias. */
16620 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16623 char (*f) () = $ac_func;
16632 return f != $ac_func;
16637 rm -f conftest.
$ac_objext conftest
$ac_exeext
16638 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16639 (eval $ac_link) 2>conftest.er1
16641 grep -v '^ *+' conftest.er1
>conftest.err
16643 cat conftest.err
>&5
16644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16645 (exit $ac_status); } &&
16646 { ac_try
='test -z "$ac_c_werror_flag"
16647 || test ! -s conftest.err'
16648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16649 (eval $ac_try) 2>&5
16651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16652 (exit $ac_status); }; } &&
16653 { ac_try
='test -s conftest$ac_exeext'
16654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16655 (eval $ac_try) 2>&5
16657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16658 (exit $ac_status); }; }; then
16659 eval "$as_ac_var=yes"
16661 echo "$as_me: failed program was:" >&5
16662 sed 's/^/| /' conftest.
$ac_ext >&5
16664 eval "$as_ac_var=no"
16666 rm -f conftest.err conftest.
$ac_objext \
16667 conftest
$ac_exeext conftest.
$ac_ext
16669 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16670 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16671 if test `eval echo '${'$as_ac_var'}'` = yes; then
16672 cat >>confdefs.h
<<_ACEOF
16673 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16680 # Check this now, so that we will NOT find the above functions in ncurses.
16681 # That is because we have not set up to link ncurses in lib-src.
16682 # It's better to believe a function is not available
16683 # than to expect to find it in ncurses.
16685 echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
16686 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6
16687 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
16688 echo $ECHO_N "(cached) $ECHO_C" >&6
16690 ac_check_lib_save_LIBS
=$LIBS
16691 LIBS
="-lncurses $LIBS"
16692 cat >conftest.
$ac_ext <<_ACEOF
16695 cat confdefs.h
>>conftest.
$ac_ext
16696 cat >>conftest.
$ac_ext <<_ACEOF
16697 /* end confdefs.h. */
16699 /* Override any gcc2 internal prototype to avoid an error. */
16703 /* We use char because int might match the return type of a gcc2
16704 builtin and then its argument prototype would still apply. */
16714 rm -f conftest.
$ac_objext conftest
$ac_exeext
16715 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16716 (eval $ac_link) 2>conftest.er1
16718 grep -v '^ *+' conftest.er1
>conftest.err
16720 cat conftest.err
>&5
16721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16722 (exit $ac_status); } &&
16723 { ac_try
='test -z "$ac_c_werror_flag"
16724 || test ! -s conftest.err'
16725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16726 (eval $ac_try) 2>&5
16728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16729 (exit $ac_status); }; } &&
16730 { ac_try
='test -s conftest$ac_exeext'
16731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16732 (eval $ac_try) 2>&5
16734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16735 (exit $ac_status); }; }; then
16736 ac_cv_lib_ncurses_tparm
=yes
16738 echo "$as_me: failed program was:" >&5
16739 sed 's/^/| /' conftest.
$ac_ext >&5
16741 ac_cv_lib_ncurses_tparm
=no
16743 rm -f conftest.err conftest.
$ac_objext \
16744 conftest
$ac_exeext conftest.
$ac_ext
16745 LIBS
=$ac_check_lib_save_LIBS
16747 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
16748 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6
16749 if test $ac_cv_lib_ncurses_tparm = yes; then
16750 cat >>confdefs.h
<<_ACEOF
16751 #define HAVE_LIBNCURSES 1
16754 LIBS
="-lncurses $LIBS"
16759 # Do we need the Hesiod library to provide the support routines?
16760 if test "$with_hesiod" = yes ; then
16761 # Don't set $LIBS here -- see comments above.
16763 echo "$as_me:$LINENO: checking for res_send" >&5
16764 echo $ECHO_N "checking for res_send... $ECHO_C" >&6
16765 if test "${ac_cv_func_res_send+set}" = set; then
16766 echo $ECHO_N "(cached) $ECHO_C" >&6
16768 cat >conftest.
$ac_ext <<_ACEOF
16771 cat confdefs.h
>>conftest.
$ac_ext
16772 cat >>conftest.
$ac_ext <<_ACEOF
16773 /* end confdefs.h. */
16774 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
16775 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16776 #define res_send innocuous_res_send
16778 /* System header to define __stub macros and hopefully few prototypes,
16779 which can conflict with char res_send (); below.
16780 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16781 <limits.h> exists even on freestanding compilers. */
16784 # include <limits.h>
16786 # include <assert.h>
16791 /* Override any gcc2 internal prototype to avoid an error. */
16796 /* We use char because int might match the return type of a gcc2
16797 builtin and then its argument prototype would still apply. */
16799 /* The GNU C library defines this for functions which it implements
16800 to always fail with ENOSYS. Some functions are actually named
16801 something starting with __ and the normal name is an alias. */
16802 #if defined (__stub_res_send) || defined (__stub___res_send)
16805 char (*f) () = res_send;
16814 return f != res_send;
16819 rm -f conftest.
$ac_objext conftest
$ac_exeext
16820 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16821 (eval $ac_link) 2>conftest.er1
16823 grep -v '^ *+' conftest.er1
>conftest.err
16825 cat conftest.err
>&5
16826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16827 (exit $ac_status); } &&
16828 { ac_try
='test -z "$ac_c_werror_flag"
16829 || test ! -s conftest.err'
16830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16831 (eval $ac_try) 2>&5
16833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16834 (exit $ac_status); }; } &&
16835 { ac_try
='test -s conftest$ac_exeext'
16836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16837 (eval $ac_try) 2>&5
16839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16840 (exit $ac_status); }; }; then
16841 ac_cv_func_res_send
=yes
16843 echo "$as_me: failed program was:" >&5
16844 sed 's/^/| /' conftest.
$ac_ext >&5
16846 ac_cv_func_res_send
=no
16848 rm -f conftest.err conftest.
$ac_objext \
16849 conftest
$ac_exeext conftest.
$ac_ext
16851 echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
16852 echo "${ECHO_T}$ac_cv_func_res_send" >&6
16853 if test $ac_cv_func_res_send = yes; then
16856 echo "$as_me:$LINENO: checking for __res_send" >&5
16857 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6
16858 if test "${ac_cv_func___res_send+set}" = set; then
16859 echo $ECHO_N "(cached) $ECHO_C" >&6
16861 cat >conftest.
$ac_ext <<_ACEOF
16864 cat confdefs.h
>>conftest.
$ac_ext
16865 cat >>conftest.
$ac_ext <<_ACEOF
16866 /* end confdefs.h. */
16867 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
16868 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16869 #define __res_send innocuous___res_send
16871 /* System header to define __stub macros and hopefully few prototypes,
16872 which can conflict with char __res_send (); below.
16873 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16874 <limits.h> exists even on freestanding compilers. */
16877 # include <limits.h>
16879 # include <assert.h>
16884 /* Override any gcc2 internal prototype to avoid an error. */
16889 /* We use char because int might match the return type of a gcc2
16890 builtin and then its argument prototype would still apply. */
16891 char __res_send ();
16892 /* The GNU C library defines this for functions which it implements
16893 to always fail with ENOSYS. Some functions are actually named
16894 something starting with __ and the normal name is an alias. */
16895 #if defined (__stub___res_send) || defined (__stub_____res_send)
16898 char (*f) () = __res_send;
16907 return f != __res_send;
16912 rm -f conftest.
$ac_objext conftest
$ac_exeext
16913 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16914 (eval $ac_link) 2>conftest.er1
16916 grep -v '^ *+' conftest.er1
>conftest.err
16918 cat conftest.err
>&5
16919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16920 (exit $ac_status); } &&
16921 { ac_try
='test -z "$ac_c_werror_flag"
16922 || test ! -s conftest.err'
16923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16924 (eval $ac_try) 2>&5
16926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16927 (exit $ac_status); }; } &&
16928 { ac_try
='test -s conftest$ac_exeext'
16929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16930 (eval $ac_try) 2>&5
16932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16933 (exit $ac_status); }; }; then
16934 ac_cv_func___res_send
=yes
16936 echo "$as_me: failed program was:" >&5
16937 sed 's/^/| /' conftest.
$ac_ext >&5
16939 ac_cv_func___res_send
=no
16941 rm -f conftest.err conftest.
$ac_objext \
16942 conftest
$ac_exeext conftest.
$ac_ext
16944 echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
16945 echo "${ECHO_T}$ac_cv_func___res_send" >&6
16946 if test $ac_cv_func___res_send = yes; then
16949 echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
16950 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6
16951 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
16952 echo $ECHO_N "(cached) $ECHO_C" >&6
16954 ac_check_lib_save_LIBS
=$LIBS
16955 LIBS
="-lresolv $LIBS"
16956 cat >conftest.
$ac_ext <<_ACEOF
16959 cat confdefs.h
>>conftest.
$ac_ext
16960 cat >>conftest.
$ac_ext <<_ACEOF
16961 /* end confdefs.h. */
16963 /* Override any gcc2 internal prototype to avoid an error. */
16967 /* We use char because int might match the return type of a gcc2
16968 builtin and then its argument prototype would still apply. */
16978 rm -f conftest.
$ac_objext conftest
$ac_exeext
16979 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16980 (eval $ac_link) 2>conftest.er1
16982 grep -v '^ *+' conftest.er1
>conftest.err
16984 cat conftest.err
>&5
16985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16986 (exit $ac_status); } &&
16987 { ac_try
='test -z "$ac_c_werror_flag"
16988 || test ! -s conftest.err'
16989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16990 (eval $ac_try) 2>&5
16992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16993 (exit $ac_status); }; } &&
16994 { ac_try
='test -s conftest$ac_exeext'
16995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16996 (eval $ac_try) 2>&5
16998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16999 (exit $ac_status); }; }; then
17000 ac_cv_lib_resolv_res_send
=yes
17002 echo "$as_me: failed program was:" >&5
17003 sed 's/^/| /' conftest.
$ac_ext >&5
17005 ac_cv_lib_resolv_res_send
=no
17007 rm -f conftest.err conftest.
$ac_objext \
17008 conftest
$ac_exeext conftest.
$ac_ext
17009 LIBS
=$ac_check_lib_save_LIBS
17011 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
17012 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6
17013 if test $ac_cv_lib_resolv_res_send = yes; then
17016 echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
17017 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6
17018 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
17019 echo $ECHO_N "(cached) $ECHO_C" >&6
17021 ac_check_lib_save_LIBS
=$LIBS
17022 LIBS
="-lresolv $LIBS"
17023 cat >conftest.
$ac_ext <<_ACEOF
17026 cat confdefs.h
>>conftest.
$ac_ext
17027 cat >>conftest.
$ac_ext <<_ACEOF
17028 /* end confdefs.h. */
17030 /* Override any gcc2 internal prototype to avoid an error. */
17034 /* We use char because int might match the return type of a gcc2
17035 builtin and then its argument prototype would still apply. */
17036 char __res_send ();
17045 rm -f conftest.
$ac_objext conftest
$ac_exeext
17046 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17047 (eval $ac_link) 2>conftest.er1
17049 grep -v '^ *+' conftest.er1
>conftest.err
17051 cat conftest.err
>&5
17052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17053 (exit $ac_status); } &&
17054 { ac_try
='test -z "$ac_c_werror_flag"
17055 || test ! -s conftest.err'
17056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17057 (eval $ac_try) 2>&5
17059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17060 (exit $ac_status); }; } &&
17061 { ac_try
='test -s conftest$ac_exeext'
17062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17063 (eval $ac_try) 2>&5
17065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17066 (exit $ac_status); }; }; then
17067 ac_cv_lib_resolv___res_send
=yes
17069 echo "$as_me: failed program was:" >&5
17070 sed 's/^/| /' conftest.
$ac_ext >&5
17072 ac_cv_lib_resolv___res_send
=no
17074 rm -f conftest.err conftest.
$ac_objext \
17075 conftest
$ac_exeext conftest.
$ac_ext
17076 LIBS
=$ac_check_lib_save_LIBS
17078 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
17079 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6
17080 if test $ac_cv_lib_resolv___res_send = yes; then
17090 if test "$resolv" = yes ; then
17093 cat >>confdefs.h
<<\_ACEOF
17094 #define HAVE_LIBRESOLV 1
17100 echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
17101 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6
17102 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
17103 echo $ECHO_N "(cached) $ECHO_C" >&6
17105 cat >conftest.
$ac_ext <<_ACEOF
17108 cat confdefs.h
>>conftest.
$ac_ext
17109 cat >>conftest.
$ac_ext <<_ACEOF
17110 /* end confdefs.h. */
17111 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
17112 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17113 #define hes_getmailhost innocuous_hes_getmailhost
17115 /* System header to define __stub macros and hopefully few prototypes,
17116 which can conflict with char hes_getmailhost (); below.
17117 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17118 <limits.h> exists even on freestanding compilers. */
17121 # include <limits.h>
17123 # include <assert.h>
17126 #undef hes_getmailhost
17128 /* Override any gcc2 internal prototype to avoid an error. */
17133 /* We use char because int might match the return type of a gcc2
17134 builtin and then its argument prototype would still apply. */
17135 char hes_getmailhost ();
17136 /* The GNU C library defines this for functions which it implements
17137 to always fail with ENOSYS. Some functions are actually named
17138 something starting with __ and the normal name is an alias. */
17139 #if defined (__stub_hes_getmailhost) || defined (__stub___hes_getmailhost)
17142 char (*f) () = hes_getmailhost;
17151 return f != hes_getmailhost;
17156 rm -f conftest.
$ac_objext conftest
$ac_exeext
17157 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17158 (eval $ac_link) 2>conftest.er1
17160 grep -v '^ *+' conftest.er1
>conftest.err
17162 cat conftest.err
>&5
17163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17164 (exit $ac_status); } &&
17165 { ac_try
='test -z "$ac_c_werror_flag"
17166 || test ! -s conftest.err'
17167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17168 (eval $ac_try) 2>&5
17170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17171 (exit $ac_status); }; } &&
17172 { ac_try
='test -s conftest$ac_exeext'
17173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17174 (eval $ac_try) 2>&5
17176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17177 (exit $ac_status); }; }; then
17178 ac_cv_func_hes_getmailhost
=yes
17180 echo "$as_me: failed program was:" >&5
17181 sed 's/^/| /' conftest.
$ac_ext >&5
17183 ac_cv_func_hes_getmailhost
=no
17185 rm -f conftest.err conftest.
$ac_objext \
17186 conftest
$ac_exeext conftest.
$ac_ext
17188 echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
17189 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6
17190 if test $ac_cv_func_hes_getmailhost = yes; then
17193 echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
17194 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6
17195 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
17196 echo $ECHO_N "(cached) $ECHO_C" >&6
17198 ac_check_lib_save_LIBS
=$LIBS
17199 LIBS
="-lhesiod $RESOLVLIB $LIBS"
17200 cat >conftest.
$ac_ext <<_ACEOF
17203 cat confdefs.h
>>conftest.
$ac_ext
17204 cat >>conftest.
$ac_ext <<_ACEOF
17205 /* end confdefs.h. */
17207 /* Override any gcc2 internal prototype to avoid an error. */
17211 /* We use char because int might match the return type of a gcc2
17212 builtin and then its argument prototype would still apply. */
17213 char hes_getmailhost ();
17217 hes_getmailhost ();
17222 rm -f conftest.
$ac_objext conftest
$ac_exeext
17223 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17224 (eval $ac_link) 2>conftest.er1
17226 grep -v '^ *+' conftest.er1
>conftest.err
17228 cat conftest.err
>&5
17229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17230 (exit $ac_status); } &&
17231 { ac_try
='test -z "$ac_c_werror_flag"
17232 || test ! -s conftest.err'
17233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17234 (eval $ac_try) 2>&5
17236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17237 (exit $ac_status); }; } &&
17238 { ac_try
='test -s conftest$ac_exeext'
17239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17240 (eval $ac_try) 2>&5
17242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17243 (exit $ac_status); }; }; then
17244 ac_cv_lib_hesiod_hes_getmailhost
=yes
17246 echo "$as_me: failed program was:" >&5
17247 sed 's/^/| /' conftest.
$ac_ext >&5
17249 ac_cv_lib_hesiod_hes_getmailhost
=no
17251 rm -f conftest.err conftest.
$ac_objext \
17252 conftest
$ac_exeext conftest.
$ac_ext
17253 LIBS
=$ac_check_lib_save_LIBS
17255 echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
17256 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6
17257 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
17259 cat >>confdefs.h
<<\_ACEOF
17260 #define HAVE_LIBHESIOD 1
17271 # These tell us which Kerberos-related libraries to use.
17272 if test "${with_kerberos+set}" = set; then
17274 echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
17275 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6
17276 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
17277 echo $ECHO_N "(cached) $ECHO_C" >&6
17279 ac_check_lib_save_LIBS
=$LIBS
17280 LIBS
="-lcom_err $LIBS"
17281 cat >conftest.
$ac_ext <<_ACEOF
17284 cat confdefs.h
>>conftest.
$ac_ext
17285 cat >>conftest.
$ac_ext <<_ACEOF
17286 /* end confdefs.h. */
17288 /* Override any gcc2 internal prototype to avoid an error. */
17292 /* We use char because int might match the return type of a gcc2
17293 builtin and then its argument prototype would still apply. */
17303 rm -f conftest.
$ac_objext conftest
$ac_exeext
17304 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17305 (eval $ac_link) 2>conftest.er1
17307 grep -v '^ *+' conftest.er1
>conftest.err
17309 cat conftest.err
>&5
17310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17311 (exit $ac_status); } &&
17312 { ac_try
='test -z "$ac_c_werror_flag"
17313 || test ! -s conftest.err'
17314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17315 (eval $ac_try) 2>&5
17317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17318 (exit $ac_status); }; } &&
17319 { ac_try
='test -s conftest$ac_exeext'
17320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17321 (eval $ac_try) 2>&5
17323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17324 (exit $ac_status); }; }; then
17325 ac_cv_lib_com_err_com_err
=yes
17327 echo "$as_me: failed program was:" >&5
17328 sed 's/^/| /' conftest.
$ac_ext >&5
17330 ac_cv_lib_com_err_com_err
=no
17332 rm -f conftest.err conftest.
$ac_objext \
17333 conftest
$ac_exeext conftest.
$ac_ext
17334 LIBS
=$ac_check_lib_save_LIBS
17336 echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
17337 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6
17338 if test $ac_cv_lib_com_err_com_err = yes; then
17339 cat >>confdefs.h
<<_ACEOF
17340 #define HAVE_LIBCOM_ERR 1
17343 LIBS
="-lcom_err $LIBS"
17348 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
17349 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6
17350 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
17351 echo $ECHO_N "(cached) $ECHO_C" >&6
17353 ac_check_lib_save_LIBS
=$LIBS
17354 LIBS
="-lk5crypto $LIBS"
17355 cat >conftest.
$ac_ext <<_ACEOF
17358 cat confdefs.h
>>conftest.
$ac_ext
17359 cat >>conftest.
$ac_ext <<_ACEOF
17360 /* end confdefs.h. */
17362 /* Override any gcc2 internal prototype to avoid an error. */
17366 /* We use char because int might match the return type of a gcc2
17367 builtin and then its argument prototype would still apply. */
17368 char mit_des_cbc_encrypt ();
17372 mit_des_cbc_encrypt ();
17377 rm -f conftest.
$ac_objext conftest
$ac_exeext
17378 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17379 (eval $ac_link) 2>conftest.er1
17381 grep -v '^ *+' conftest.er1
>conftest.err
17383 cat conftest.err
>&5
17384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17385 (exit $ac_status); } &&
17386 { ac_try
='test -z "$ac_c_werror_flag"
17387 || test ! -s conftest.err'
17388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17389 (eval $ac_try) 2>&5
17391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17392 (exit $ac_status); }; } &&
17393 { ac_try
='test -s conftest$ac_exeext'
17394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17395 (eval $ac_try) 2>&5
17397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17398 (exit $ac_status); }; }; then
17399 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=yes
17401 echo "$as_me: failed program was:" >&5
17402 sed 's/^/| /' conftest.
$ac_ext >&5
17404 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=no
17406 rm -f conftest.err conftest.
$ac_objext \
17407 conftest
$ac_exeext conftest.
$ac_ext
17408 LIBS
=$ac_check_lib_save_LIBS
17410 echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
17411 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6
17412 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
17413 cat >>confdefs.h
<<_ACEOF
17414 #define HAVE_LIBK5CRYPTO 1
17417 LIBS
="-lk5crypto $LIBS"
17422 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
17423 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6
17424 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
17425 echo $ECHO_N "(cached) $ECHO_C" >&6
17427 ac_check_lib_save_LIBS
=$LIBS
17428 LIBS
="-lcrypto $LIBS"
17429 cat >conftest.
$ac_ext <<_ACEOF
17432 cat confdefs.h
>>conftest.
$ac_ext
17433 cat >>conftest.
$ac_ext <<_ACEOF
17434 /* end confdefs.h. */
17436 /* Override any gcc2 internal prototype to avoid an error. */
17440 /* We use char because int might match the return type of a gcc2
17441 builtin and then its argument prototype would still apply. */
17442 char mit_des_cbc_encrypt ();
17446 mit_des_cbc_encrypt ();
17451 rm -f conftest.
$ac_objext conftest
$ac_exeext
17452 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17453 (eval $ac_link) 2>conftest.er1
17455 grep -v '^ *+' conftest.er1
>conftest.err
17457 cat conftest.err
>&5
17458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17459 (exit $ac_status); } &&
17460 { ac_try
='test -z "$ac_c_werror_flag"
17461 || test ! -s conftest.err'
17462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17463 (eval $ac_try) 2>&5
17465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17466 (exit $ac_status); }; } &&
17467 { ac_try
='test -s conftest$ac_exeext'
17468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17469 (eval $ac_try) 2>&5
17471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17472 (exit $ac_status); }; }; then
17473 ac_cv_lib_crypto_mit_des_cbc_encrypt
=yes
17475 echo "$as_me: failed program was:" >&5
17476 sed 's/^/| /' conftest.
$ac_ext >&5
17478 ac_cv_lib_crypto_mit_des_cbc_encrypt
=no
17480 rm -f conftest.err conftest.
$ac_objext \
17481 conftest
$ac_exeext conftest.
$ac_ext
17482 LIBS
=$ac_check_lib_save_LIBS
17484 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
17485 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6
17486 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
17487 cat >>confdefs.h
<<_ACEOF
17488 #define HAVE_LIBCRYPTO 1
17491 LIBS
="-lcrypto $LIBS"
17496 echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
17497 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6
17498 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
17499 echo $ECHO_N "(cached) $ECHO_C" >&6
17501 ac_check_lib_save_LIBS
=$LIBS
17502 LIBS
="-lkrb5 $LIBS"
17503 cat >conftest.
$ac_ext <<_ACEOF
17506 cat confdefs.h
>>conftest.
$ac_ext
17507 cat >>conftest.
$ac_ext <<_ACEOF
17508 /* end confdefs.h. */
17510 /* Override any gcc2 internal prototype to avoid an error. */
17514 /* We use char because int might match the return type of a gcc2
17515 builtin and then its argument prototype would still apply. */
17516 char krb5_init_context ();
17520 krb5_init_context ();
17525 rm -f conftest.
$ac_objext conftest
$ac_exeext
17526 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17527 (eval $ac_link) 2>conftest.er1
17529 grep -v '^ *+' conftest.er1
>conftest.err
17531 cat conftest.err
>&5
17532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17533 (exit $ac_status); } &&
17534 { ac_try
='test -z "$ac_c_werror_flag"
17535 || test ! -s conftest.err'
17536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17537 (eval $ac_try) 2>&5
17539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17540 (exit $ac_status); }; } &&
17541 { ac_try
='test -s conftest$ac_exeext'
17542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17543 (eval $ac_try) 2>&5
17545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17546 (exit $ac_status); }; }; then
17547 ac_cv_lib_krb5_krb5_init_context
=yes
17549 echo "$as_me: failed program was:" >&5
17550 sed 's/^/| /' conftest.
$ac_ext >&5
17552 ac_cv_lib_krb5_krb5_init_context
=no
17554 rm -f conftest.err conftest.
$ac_objext \
17555 conftest
$ac_exeext conftest.
$ac_ext
17556 LIBS
=$ac_check_lib_save_LIBS
17558 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
17559 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6
17560 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
17561 cat >>confdefs.h
<<_ACEOF
17562 #define HAVE_LIBKRB5 1
17565 LIBS
="-lkrb5 $LIBS"
17569 if test "${with_kerberos5+set}" != set; then
17571 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
17572 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6
17573 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
17574 echo $ECHO_N "(cached) $ECHO_C" >&6
17576 ac_check_lib_save_LIBS
=$LIBS
17577 LIBS
="-ldes425 $LIBS"
17578 cat >conftest.
$ac_ext <<_ACEOF
17581 cat confdefs.h
>>conftest.
$ac_ext
17582 cat >>conftest.
$ac_ext <<_ACEOF
17583 /* end confdefs.h. */
17585 /* Override any gcc2 internal prototype to avoid an error. */
17589 /* We use char because int might match the return type of a gcc2
17590 builtin and then its argument prototype would still apply. */
17591 char des_cbc_encrypt ();
17595 des_cbc_encrypt ();
17600 rm -f conftest.
$ac_objext conftest
$ac_exeext
17601 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17602 (eval $ac_link) 2>conftest.er1
17604 grep -v '^ *+' conftest.er1
>conftest.err
17606 cat conftest.err
>&5
17607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17608 (exit $ac_status); } &&
17609 { ac_try
='test -z "$ac_c_werror_flag"
17610 || test ! -s conftest.err'
17611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17612 (eval $ac_try) 2>&5
17614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17615 (exit $ac_status); }; } &&
17616 { ac_try
='test -s conftest$ac_exeext'
17617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17618 (eval $ac_try) 2>&5
17620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17621 (exit $ac_status); }; }; then
17622 ac_cv_lib_des425_des_cbc_encrypt
=yes
17624 echo "$as_me: failed program was:" >&5
17625 sed 's/^/| /' conftest.
$ac_ext >&5
17627 ac_cv_lib_des425_des_cbc_encrypt
=no
17629 rm -f conftest.err conftest.
$ac_objext \
17630 conftest
$ac_exeext conftest.
$ac_ext
17631 LIBS
=$ac_check_lib_save_LIBS
17633 echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
17634 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6
17635 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
17636 cat >>confdefs.h
<<_ACEOF
17637 #define HAVE_LIBDES425 1
17640 LIBS
="-ldes425 $LIBS"
17644 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
17645 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6
17646 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
17647 echo $ECHO_N "(cached) $ECHO_C" >&6
17649 ac_check_lib_save_LIBS
=$LIBS
17651 cat >conftest.
$ac_ext <<_ACEOF
17654 cat confdefs.h
>>conftest.
$ac_ext
17655 cat >>conftest.
$ac_ext <<_ACEOF
17656 /* end confdefs.h. */
17658 /* Override any gcc2 internal prototype to avoid an error. */
17662 /* We use char because int might match the return type of a gcc2
17663 builtin and then its argument prototype would still apply. */
17664 char des_cbc_encrypt ();
17668 des_cbc_encrypt ();
17673 rm -f conftest.
$ac_objext conftest
$ac_exeext
17674 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17675 (eval $ac_link) 2>conftest.er1
17677 grep -v '^ *+' conftest.er1
>conftest.err
17679 cat conftest.err
>&5
17680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17681 (exit $ac_status); } &&
17682 { ac_try
='test -z "$ac_c_werror_flag"
17683 || test ! -s conftest.err'
17684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17685 (eval $ac_try) 2>&5
17687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17688 (exit $ac_status); }; } &&
17689 { ac_try
='test -s conftest$ac_exeext'
17690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17691 (eval $ac_try) 2>&5
17693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17694 (exit $ac_status); }; }; then
17695 ac_cv_lib_des_des_cbc_encrypt
=yes
17697 echo "$as_me: failed program was:" >&5
17698 sed 's/^/| /' conftest.
$ac_ext >&5
17700 ac_cv_lib_des_des_cbc_encrypt
=no
17702 rm -f conftest.err conftest.
$ac_objext \
17703 conftest
$ac_exeext conftest.
$ac_ext
17704 LIBS
=$ac_check_lib_save_LIBS
17706 echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
17707 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6
17708 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
17709 cat >>confdefs.h
<<_ACEOF
17710 #define HAVE_LIBDES 1
17720 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
17721 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6
17722 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
17723 echo $ECHO_N "(cached) $ECHO_C" >&6
17725 ac_check_lib_save_LIBS
=$LIBS
17726 LIBS
="-lkrb4 $LIBS"
17727 cat >conftest.
$ac_ext <<_ACEOF
17730 cat confdefs.h
>>conftest.
$ac_ext
17731 cat >>conftest.
$ac_ext <<_ACEOF
17732 /* end confdefs.h. */
17734 /* Override any gcc2 internal prototype to avoid an error. */
17738 /* We use char because int might match the return type of a gcc2
17739 builtin and then its argument prototype would still apply. */
17740 char krb_get_cred ();
17749 rm -f conftest.
$ac_objext conftest
$ac_exeext
17750 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17751 (eval $ac_link) 2>conftest.er1
17753 grep -v '^ *+' conftest.er1
>conftest.err
17755 cat conftest.err
>&5
17756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17757 (exit $ac_status); } &&
17758 { ac_try
='test -z "$ac_c_werror_flag"
17759 || test ! -s conftest.err'
17760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17761 (eval $ac_try) 2>&5
17763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17764 (exit $ac_status); }; } &&
17765 { ac_try
='test -s conftest$ac_exeext'
17766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17767 (eval $ac_try) 2>&5
17769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17770 (exit $ac_status); }; }; then
17771 ac_cv_lib_krb4_krb_get_cred
=yes
17773 echo "$as_me: failed program was:" >&5
17774 sed 's/^/| /' conftest.
$ac_ext >&5
17776 ac_cv_lib_krb4_krb_get_cred
=no
17778 rm -f conftest.err conftest.
$ac_objext \
17779 conftest
$ac_exeext conftest.
$ac_ext
17780 LIBS
=$ac_check_lib_save_LIBS
17782 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
17783 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6
17784 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
17785 cat >>confdefs.h
<<_ACEOF
17786 #define HAVE_LIBKRB4 1
17789 LIBS
="-lkrb4 $LIBS"
17793 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
17794 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6
17795 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
17796 echo $ECHO_N "(cached) $ECHO_C" >&6
17798 ac_check_lib_save_LIBS
=$LIBS
17800 cat >conftest.
$ac_ext <<_ACEOF
17803 cat confdefs.h
>>conftest.
$ac_ext
17804 cat >>conftest.
$ac_ext <<_ACEOF
17805 /* end confdefs.h. */
17807 /* Override any gcc2 internal prototype to avoid an error. */
17811 /* We use char because int might match the return type of a gcc2
17812 builtin and then its argument prototype would still apply. */
17813 char krb_get_cred ();
17822 rm -f conftest.
$ac_objext conftest
$ac_exeext
17823 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17824 (eval $ac_link) 2>conftest.er1
17826 grep -v '^ *+' conftest.er1
>conftest.err
17828 cat conftest.err
>&5
17829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17830 (exit $ac_status); } &&
17831 { ac_try
='test -z "$ac_c_werror_flag"
17832 || test ! -s conftest.err'
17833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17834 (eval $ac_try) 2>&5
17836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17837 (exit $ac_status); }; } &&
17838 { ac_try
='test -s conftest$ac_exeext'
17839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17840 (eval $ac_try) 2>&5
17842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17843 (exit $ac_status); }; }; then
17844 ac_cv_lib_krb_krb_get_cred
=yes
17846 echo "$as_me: failed program was:" >&5
17847 sed 's/^/| /' conftest.
$ac_ext >&5
17849 ac_cv_lib_krb_krb_get_cred
=no
17851 rm -f conftest.err conftest.
$ac_objext \
17852 conftest
$ac_exeext conftest.
$ac_ext
17853 LIBS
=$ac_check_lib_save_LIBS
17855 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
17856 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6
17857 if test $ac_cv_lib_krb_krb_get_cred = yes; then
17858 cat >>confdefs.h
<<_ACEOF
17859 #define HAVE_LIBKRB 1
17870 if test "${with_kerberos5+set}" = set; then
17872 for ac_header
in krb5.h
17874 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17875 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17876 echo "$as_me:$LINENO: checking for $ac_header" >&5
17877 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17878 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17879 echo $ECHO_N "(cached) $ECHO_C" >&6
17881 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17882 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17884 # Is the header compilable?
17885 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17886 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17887 cat >conftest.
$ac_ext <<_ACEOF
17890 cat confdefs.h
>>conftest.
$ac_ext
17891 cat >>conftest.
$ac_ext <<_ACEOF
17892 /* end confdefs.h. */
17893 $ac_includes_default
17894 #include <$ac_header>
17896 rm -f conftest.
$ac_objext
17897 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17898 (eval $ac_compile) 2>conftest.er1
17900 grep -v '^ *+' conftest.er1
>conftest.err
17902 cat conftest.err
>&5
17903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17904 (exit $ac_status); } &&
17905 { ac_try
='test -z "$ac_c_werror_flag"
17906 || test ! -s conftest.err'
17907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17908 (eval $ac_try) 2>&5
17910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17911 (exit $ac_status); }; } &&
17912 { ac_try
='test -s conftest.$ac_objext'
17913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17914 (eval $ac_try) 2>&5
17916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17917 (exit $ac_status); }; }; then
17918 ac_header_compiler
=yes
17920 echo "$as_me: failed program was:" >&5
17921 sed 's/^/| /' conftest.
$ac_ext >&5
17923 ac_header_compiler
=no
17925 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17926 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17927 echo "${ECHO_T}$ac_header_compiler" >&6
17929 # Is the header present?
17930 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17931 echo $ECHO_N "checking $ac_header presence... $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 #include <$ac_header>
17940 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17941 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
17943 grep -v '^ *+' conftest.er1
>conftest.err
17945 cat conftest.err
>&5
17946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17947 (exit $ac_status); } >/dev
/null
; then
17948 if test -s conftest.err
; then
17949 ac_cpp_err
=$ac_c_preproc_warn_flag
17950 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
17957 if test -z "$ac_cpp_err"; then
17958 ac_header_preproc
=yes
17960 echo "$as_me: failed program was:" >&5
17961 sed 's/^/| /' conftest.
$ac_ext >&5
17963 ac_header_preproc
=no
17965 rm -f conftest.err conftest.
$ac_ext
17966 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17967 echo "${ECHO_T}$ac_header_preproc" >&6
17969 # So? What about this header?
17970 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17972 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17973 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17974 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17975 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17976 ac_header_preproc
=yes
17979 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17980 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17981 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17982 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17983 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17984 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17985 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17986 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17987 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17988 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17989 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17990 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17993 ## ------------------------------------------ ##
17994 ## Report this to the AC_PACKAGE_NAME lists. ##
17995 ## ------------------------------------------ ##
17998 sed "s/^/$as_me: WARNING: /" >&2
18001 echo "$as_me:$LINENO: checking for $ac_header" >&5
18002 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18003 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18004 echo $ECHO_N "(cached) $ECHO_C" >&6
18006 eval "$as_ac_Header=\$ac_header_preproc"
18008 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18009 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18012 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18013 cat >>confdefs.h
<<_ACEOF
18014 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18023 for ac_header
in des.h
18025 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18026 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18027 echo "$as_me:$LINENO: checking for $ac_header" >&5
18028 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18029 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18030 echo $ECHO_N "(cached) $ECHO_C" >&6
18032 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18033 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18035 # Is the header compilable?
18036 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18037 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18038 cat >conftest.
$ac_ext <<_ACEOF
18041 cat confdefs.h
>>conftest.
$ac_ext
18042 cat >>conftest.
$ac_ext <<_ACEOF
18043 /* end confdefs.h. */
18044 $ac_includes_default
18045 #include <$ac_header>
18047 rm -f conftest.
$ac_objext
18048 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18049 (eval $ac_compile) 2>conftest.er1
18051 grep -v '^ *+' conftest.er1
>conftest.err
18053 cat conftest.err
>&5
18054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18055 (exit $ac_status); } &&
18056 { ac_try
='test -z "$ac_c_werror_flag"
18057 || test ! -s conftest.err'
18058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18059 (eval $ac_try) 2>&5
18061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18062 (exit $ac_status); }; } &&
18063 { ac_try
='test -s conftest.$ac_objext'
18064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18065 (eval $ac_try) 2>&5
18067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18068 (exit $ac_status); }; }; then
18069 ac_header_compiler
=yes
18071 echo "$as_me: failed program was:" >&5
18072 sed 's/^/| /' conftest.
$ac_ext >&5
18074 ac_header_compiler
=no
18076 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18077 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18078 echo "${ECHO_T}$ac_header_compiler" >&6
18080 # Is the header present?
18081 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18082 echo $ECHO_N "checking $ac_header presence... $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 #include <$ac_header>
18091 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18092 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
18094 grep -v '^ *+' conftest.er1
>conftest.err
18096 cat conftest.err
>&5
18097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18098 (exit $ac_status); } >/dev
/null
; then
18099 if test -s conftest.err
; then
18100 ac_cpp_err
=$ac_c_preproc_warn_flag
18101 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
18108 if test -z "$ac_cpp_err"; then
18109 ac_header_preproc
=yes
18111 echo "$as_me: failed program was:" >&5
18112 sed 's/^/| /' conftest.
$ac_ext >&5
18114 ac_header_preproc
=no
18116 rm -f conftest.err conftest.
$ac_ext
18117 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18118 echo "${ECHO_T}$ac_header_preproc" >&6
18120 # So? What about this header?
18121 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18123 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18124 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18125 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18126 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18127 ac_header_preproc
=yes
18130 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18131 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18132 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18133 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18134 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18135 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18136 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18137 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18138 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18139 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18140 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18141 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18144 ## ------------------------------------------ ##
18145 ## Report this to the AC_PACKAGE_NAME lists. ##
18146 ## ------------------------------------------ ##
18149 sed "s/^/$as_me: WARNING: /" >&2
18152 echo "$as_me:$LINENO: checking for $ac_header" >&5
18153 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18154 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18155 echo $ECHO_N "(cached) $ECHO_C" >&6
18157 eval "$as_ac_Header=\$ac_header_preproc"
18159 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18160 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18163 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18164 cat >>confdefs.h
<<_ACEOF
18165 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18170 for ac_header
in kerberosIV
/des.h
18172 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18173 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18174 echo "$as_me:$LINENO: checking for $ac_header" >&5
18175 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18176 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18177 echo $ECHO_N "(cached) $ECHO_C" >&6
18179 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18180 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18182 # Is the header compilable?
18183 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18184 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18185 cat >conftest.
$ac_ext <<_ACEOF
18188 cat confdefs.h
>>conftest.
$ac_ext
18189 cat >>conftest.
$ac_ext <<_ACEOF
18190 /* end confdefs.h. */
18191 $ac_includes_default
18192 #include <$ac_header>
18194 rm -f conftest.
$ac_objext
18195 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18196 (eval $ac_compile) 2>conftest.er1
18198 grep -v '^ *+' conftest.er1
>conftest.err
18200 cat conftest.err
>&5
18201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18202 (exit $ac_status); } &&
18203 { ac_try
='test -z "$ac_c_werror_flag"
18204 || test ! -s conftest.err'
18205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18206 (eval $ac_try) 2>&5
18208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18209 (exit $ac_status); }; } &&
18210 { ac_try
='test -s conftest.$ac_objext'
18211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18212 (eval $ac_try) 2>&5
18214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18215 (exit $ac_status); }; }; then
18216 ac_header_compiler
=yes
18218 echo "$as_me: failed program was:" >&5
18219 sed 's/^/| /' conftest.
$ac_ext >&5
18221 ac_header_compiler
=no
18223 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18224 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18225 echo "${ECHO_T}$ac_header_compiler" >&6
18227 # Is the header present?
18228 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18229 echo $ECHO_N "checking $ac_header presence... $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 #include <$ac_header>
18238 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18239 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
18241 grep -v '^ *+' conftest.er1
>conftest.err
18243 cat conftest.err
>&5
18244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18245 (exit $ac_status); } >/dev
/null
; then
18246 if test -s conftest.err
; then
18247 ac_cpp_err
=$ac_c_preproc_warn_flag
18248 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
18255 if test -z "$ac_cpp_err"; then
18256 ac_header_preproc
=yes
18258 echo "$as_me: failed program was:" >&5
18259 sed 's/^/| /' conftest.
$ac_ext >&5
18261 ac_header_preproc
=no
18263 rm -f conftest.err conftest.
$ac_ext
18264 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18265 echo "${ECHO_T}$ac_header_preproc" >&6
18267 # So? What about this header?
18268 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18270 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18271 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18272 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18273 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18274 ac_header_preproc
=yes
18277 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18278 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18279 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18280 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18281 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18282 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18283 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18284 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18285 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18286 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18287 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18288 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18291 ## ------------------------------------------ ##
18292 ## Report this to the AC_PACKAGE_NAME lists. ##
18293 ## ------------------------------------------ ##
18296 sed "s/^/$as_me: WARNING: /" >&2
18299 echo "$as_me:$LINENO: checking for $ac_header" >&5
18300 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18301 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18302 echo $ECHO_N "(cached) $ECHO_C" >&6
18304 eval "$as_ac_Header=\$ac_header_preproc"
18306 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18307 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18310 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18311 cat >>confdefs.h
<<_ACEOF
18312 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18317 for ac_header
in kerberos
/des.h
18319 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18320 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18321 echo "$as_me:$LINENO: checking for $ac_header" >&5
18322 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18323 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18324 echo $ECHO_N "(cached) $ECHO_C" >&6
18326 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18327 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18329 # Is the header compilable?
18330 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18331 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18332 cat >conftest.
$ac_ext <<_ACEOF
18335 cat confdefs.h
>>conftest.
$ac_ext
18336 cat >>conftest.
$ac_ext <<_ACEOF
18337 /* end confdefs.h. */
18338 $ac_includes_default
18339 #include <$ac_header>
18341 rm -f conftest.
$ac_objext
18342 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18343 (eval $ac_compile) 2>conftest.er1
18345 grep -v '^ *+' conftest.er1
>conftest.err
18347 cat conftest.err
>&5
18348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18349 (exit $ac_status); } &&
18350 { ac_try
='test -z "$ac_c_werror_flag"
18351 || test ! -s conftest.err'
18352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18353 (eval $ac_try) 2>&5
18355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18356 (exit $ac_status); }; } &&
18357 { ac_try
='test -s conftest.$ac_objext'
18358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18359 (eval $ac_try) 2>&5
18361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18362 (exit $ac_status); }; }; then
18363 ac_header_compiler
=yes
18365 echo "$as_me: failed program was:" >&5
18366 sed 's/^/| /' conftest.
$ac_ext >&5
18368 ac_header_compiler
=no
18370 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18371 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18372 echo "${ECHO_T}$ac_header_compiler" >&6
18374 # Is the header present?
18375 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18376 echo $ECHO_N "checking $ac_header presence... $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 #include <$ac_header>
18385 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18386 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
18388 grep -v '^ *+' conftest.er1
>conftest.err
18390 cat conftest.err
>&5
18391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18392 (exit $ac_status); } >/dev
/null
; then
18393 if test -s conftest.err
; then
18394 ac_cpp_err
=$ac_c_preproc_warn_flag
18395 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
18402 if test -z "$ac_cpp_err"; then
18403 ac_header_preproc
=yes
18405 echo "$as_me: failed program was:" >&5
18406 sed 's/^/| /' conftest.
$ac_ext >&5
18408 ac_header_preproc
=no
18410 rm -f conftest.err conftest.
$ac_ext
18411 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18412 echo "${ECHO_T}$ac_header_preproc" >&6
18414 # So? What about this header?
18415 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18417 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18418 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18419 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18420 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18421 ac_header_preproc
=yes
18424 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18425 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18426 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18427 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18428 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18429 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18430 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18431 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18432 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18433 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18434 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18435 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18438 ## ------------------------------------------ ##
18439 ## Report this to the AC_PACKAGE_NAME lists. ##
18440 ## ------------------------------------------ ##
18443 sed "s/^/$as_me: WARNING: /" >&2
18446 echo "$as_me:$LINENO: checking for $ac_header" >&5
18447 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18448 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18449 echo $ECHO_N "(cached) $ECHO_C" >&6
18451 eval "$as_ac_Header=\$ac_header_preproc"
18453 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18454 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18457 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18458 cat >>confdefs.h
<<_ACEOF
18459 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18475 for ac_header
in krb.h
18477 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18478 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18479 echo "$as_me:$LINENO: checking for $ac_header" >&5
18480 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18481 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18482 echo $ECHO_N "(cached) $ECHO_C" >&6
18484 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18485 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18487 # Is the header compilable?
18488 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18489 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18490 cat >conftest.
$ac_ext <<_ACEOF
18493 cat confdefs.h
>>conftest.
$ac_ext
18494 cat >>conftest.
$ac_ext <<_ACEOF
18495 /* end confdefs.h. */
18496 $ac_includes_default
18497 #include <$ac_header>
18499 rm -f conftest.
$ac_objext
18500 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18501 (eval $ac_compile) 2>conftest.er1
18503 grep -v '^ *+' conftest.er1
>conftest.err
18505 cat conftest.err
>&5
18506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18507 (exit $ac_status); } &&
18508 { ac_try
='test -z "$ac_c_werror_flag"
18509 || test ! -s conftest.err'
18510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18511 (eval $ac_try) 2>&5
18513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18514 (exit $ac_status); }; } &&
18515 { ac_try
='test -s conftest.$ac_objext'
18516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18517 (eval $ac_try) 2>&5
18519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18520 (exit $ac_status); }; }; then
18521 ac_header_compiler
=yes
18523 echo "$as_me: failed program was:" >&5
18524 sed 's/^/| /' conftest.
$ac_ext >&5
18526 ac_header_compiler
=no
18528 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18529 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18530 echo "${ECHO_T}$ac_header_compiler" >&6
18532 # Is the header present?
18533 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18534 echo $ECHO_N "checking $ac_header presence... $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 #include <$ac_header>
18543 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18544 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
18546 grep -v '^ *+' conftest.er1
>conftest.err
18548 cat conftest.err
>&5
18549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18550 (exit $ac_status); } >/dev
/null
; then
18551 if test -s conftest.err
; then
18552 ac_cpp_err
=$ac_c_preproc_warn_flag
18553 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
18560 if test -z "$ac_cpp_err"; then
18561 ac_header_preproc
=yes
18563 echo "$as_me: failed program was:" >&5
18564 sed 's/^/| /' conftest.
$ac_ext >&5
18566 ac_header_preproc
=no
18568 rm -f conftest.err conftest.
$ac_ext
18569 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18570 echo "${ECHO_T}$ac_header_preproc" >&6
18572 # So? What about this header?
18573 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18575 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18576 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18577 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18578 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18579 ac_header_preproc
=yes
18582 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18583 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18584 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18585 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18586 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18587 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18588 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18589 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18590 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18591 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18592 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18593 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18596 ## ------------------------------------------ ##
18597 ## Report this to the AC_PACKAGE_NAME lists. ##
18598 ## ------------------------------------------ ##
18601 sed "s/^/$as_me: WARNING: /" >&2
18604 echo "$as_me:$LINENO: checking for $ac_header" >&5
18605 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18606 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18607 echo $ECHO_N "(cached) $ECHO_C" >&6
18609 eval "$as_ac_Header=\$ac_header_preproc"
18611 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18612 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18615 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18616 cat >>confdefs.h
<<_ACEOF
18617 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18622 for ac_header
in kerberosIV
/krb.h
18624 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18625 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18626 echo "$as_me:$LINENO: checking for $ac_header" >&5
18627 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18628 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18629 echo $ECHO_N "(cached) $ECHO_C" >&6
18631 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18632 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18634 # Is the header compilable?
18635 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18636 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18637 cat >conftest.
$ac_ext <<_ACEOF
18640 cat confdefs.h
>>conftest.
$ac_ext
18641 cat >>conftest.
$ac_ext <<_ACEOF
18642 /* end confdefs.h. */
18643 $ac_includes_default
18644 #include <$ac_header>
18646 rm -f conftest.
$ac_objext
18647 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18648 (eval $ac_compile) 2>conftest.er1
18650 grep -v '^ *+' conftest.er1
>conftest.err
18652 cat conftest.err
>&5
18653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18654 (exit $ac_status); } &&
18655 { ac_try
='test -z "$ac_c_werror_flag"
18656 || test ! -s conftest.err'
18657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18658 (eval $ac_try) 2>&5
18660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18661 (exit $ac_status); }; } &&
18662 { ac_try
='test -s conftest.$ac_objext'
18663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18664 (eval $ac_try) 2>&5
18666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18667 (exit $ac_status); }; }; then
18668 ac_header_compiler
=yes
18670 echo "$as_me: failed program was:" >&5
18671 sed 's/^/| /' conftest.
$ac_ext >&5
18673 ac_header_compiler
=no
18675 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18676 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18677 echo "${ECHO_T}$ac_header_compiler" >&6
18679 # Is the header present?
18680 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18681 echo $ECHO_N "checking $ac_header presence... $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 #include <$ac_header>
18690 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18691 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
18693 grep -v '^ *+' conftest.er1
>conftest.err
18695 cat conftest.err
>&5
18696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18697 (exit $ac_status); } >/dev
/null
; then
18698 if test -s conftest.err
; then
18699 ac_cpp_err
=$ac_c_preproc_warn_flag
18700 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
18707 if test -z "$ac_cpp_err"; then
18708 ac_header_preproc
=yes
18710 echo "$as_me: failed program was:" >&5
18711 sed 's/^/| /' conftest.
$ac_ext >&5
18713 ac_header_preproc
=no
18715 rm -f conftest.err conftest.
$ac_ext
18716 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18717 echo "${ECHO_T}$ac_header_preproc" >&6
18719 # So? What about this header?
18720 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18722 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18723 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18724 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18725 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18726 ac_header_preproc
=yes
18729 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18730 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18731 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18732 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18733 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18734 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18735 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18736 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18737 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18738 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18739 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18740 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18743 ## ------------------------------------------ ##
18744 ## Report this to the AC_PACKAGE_NAME lists. ##
18745 ## ------------------------------------------ ##
18748 sed "s/^/$as_me: WARNING: /" >&2
18751 echo "$as_me:$LINENO: checking for $ac_header" >&5
18752 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18753 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18754 echo $ECHO_N "(cached) $ECHO_C" >&6
18756 eval "$as_ac_Header=\$ac_header_preproc"
18758 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18759 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18762 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18763 cat >>confdefs.h
<<_ACEOF
18764 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18769 for ac_header
in kerberos
/krb.h
18771 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18772 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18773 echo "$as_me:$LINENO: checking for $ac_header" >&5
18774 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18775 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18776 echo $ECHO_N "(cached) $ECHO_C" >&6
18778 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18779 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18781 # Is the header compilable?
18782 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18783 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18784 cat >conftest.
$ac_ext <<_ACEOF
18787 cat confdefs.h
>>conftest.
$ac_ext
18788 cat >>conftest.
$ac_ext <<_ACEOF
18789 /* end confdefs.h. */
18790 $ac_includes_default
18791 #include <$ac_header>
18793 rm -f conftest.
$ac_objext
18794 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18795 (eval $ac_compile) 2>conftest.er1
18797 grep -v '^ *+' conftest.er1
>conftest.err
18799 cat conftest.err
>&5
18800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18801 (exit $ac_status); } &&
18802 { ac_try
='test -z "$ac_c_werror_flag"
18803 || test ! -s conftest.err'
18804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18805 (eval $ac_try) 2>&5
18807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18808 (exit $ac_status); }; } &&
18809 { ac_try
='test -s conftest.$ac_objext'
18810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18811 (eval $ac_try) 2>&5
18813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18814 (exit $ac_status); }; }; then
18815 ac_header_compiler
=yes
18817 echo "$as_me: failed program was:" >&5
18818 sed 's/^/| /' conftest.
$ac_ext >&5
18820 ac_header_compiler
=no
18822 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18823 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18824 echo "${ECHO_T}$ac_header_compiler" >&6
18826 # Is the header present?
18827 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18828 echo $ECHO_N "checking $ac_header presence... $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 #include <$ac_header>
18837 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18838 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
18840 grep -v '^ *+' conftest.er1
>conftest.err
18842 cat conftest.err
>&5
18843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18844 (exit $ac_status); } >/dev
/null
; then
18845 if test -s conftest.err
; then
18846 ac_cpp_err
=$ac_c_preproc_warn_flag
18847 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
18854 if test -z "$ac_cpp_err"; then
18855 ac_header_preproc
=yes
18857 echo "$as_me: failed program was:" >&5
18858 sed 's/^/| /' conftest.
$ac_ext >&5
18860 ac_header_preproc
=no
18862 rm -f conftest.err conftest.
$ac_ext
18863 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18864 echo "${ECHO_T}$ac_header_preproc" >&6
18866 # So? What about this header?
18867 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18869 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18870 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18871 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18872 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18873 ac_header_preproc
=yes
18876 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18877 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18878 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18879 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18880 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18881 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18882 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18883 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18884 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18885 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18886 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18887 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18890 ## ------------------------------------------ ##
18891 ## Report this to the AC_PACKAGE_NAME lists. ##
18892 ## ------------------------------------------ ##
18895 sed "s/^/$as_me: WARNING: /" >&2
18898 echo "$as_me:$LINENO: checking for $ac_header" >&5
18899 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18900 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18901 echo $ECHO_N "(cached) $ECHO_C" >&6
18903 eval "$as_ac_Header=\$ac_header_preproc"
18905 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18906 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18909 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18910 cat >>confdefs.h
<<_ACEOF
18911 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18928 for ac_header
in com_err.h
18930 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18931 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18932 echo "$as_me:$LINENO: checking for $ac_header" >&5
18933 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18934 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18935 echo $ECHO_N "(cached) $ECHO_C" >&6
18937 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18938 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18940 # Is the header compilable?
18941 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18942 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18943 cat >conftest.
$ac_ext <<_ACEOF
18946 cat confdefs.h
>>conftest.
$ac_ext
18947 cat >>conftest.
$ac_ext <<_ACEOF
18948 /* end confdefs.h. */
18949 $ac_includes_default
18950 #include <$ac_header>
18952 rm -f conftest.
$ac_objext
18953 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18954 (eval $ac_compile) 2>conftest.er1
18956 grep -v '^ *+' conftest.er1
>conftest.err
18958 cat conftest.err
>&5
18959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18960 (exit $ac_status); } &&
18961 { ac_try
='test -z "$ac_c_werror_flag"
18962 || test ! -s conftest.err'
18963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18964 (eval $ac_try) 2>&5
18966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18967 (exit $ac_status); }; } &&
18968 { ac_try
='test -s conftest.$ac_objext'
18969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18970 (eval $ac_try) 2>&5
18972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18973 (exit $ac_status); }; }; then
18974 ac_header_compiler
=yes
18976 echo "$as_me: failed program was:" >&5
18977 sed 's/^/| /' conftest.
$ac_ext >&5
18979 ac_header_compiler
=no
18981 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18982 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18983 echo "${ECHO_T}$ac_header_compiler" >&6
18985 # Is the header present?
18986 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18987 echo $ECHO_N "checking $ac_header presence... $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 #include <$ac_header>
18996 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18997 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
18999 grep -v '^ *+' conftest.er1
>conftest.err
19001 cat conftest.err
>&5
19002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19003 (exit $ac_status); } >/dev
/null
; then
19004 if test -s conftest.err
; then
19005 ac_cpp_err
=$ac_c_preproc_warn_flag
19006 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
19013 if test -z "$ac_cpp_err"; then
19014 ac_header_preproc
=yes
19016 echo "$as_me: failed program was:" >&5
19017 sed 's/^/| /' conftest.
$ac_ext >&5
19019 ac_header_preproc
=no
19021 rm -f conftest.err conftest.
$ac_ext
19022 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19023 echo "${ECHO_T}$ac_header_preproc" >&6
19025 # So? What about this header?
19026 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19028 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19029 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19030 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19031 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19032 ac_header_preproc
=yes
19035 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19036 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19037 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19038 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19039 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19040 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19041 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19042 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19043 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19044 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19045 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19046 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19049 ## ------------------------------------------ ##
19050 ## Report this to the AC_PACKAGE_NAME lists. ##
19051 ## ------------------------------------------ ##
19054 sed "s/^/$as_me: WARNING: /" >&2
19057 echo "$as_me:$LINENO: checking for $ac_header" >&5
19058 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19059 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19060 echo $ECHO_N "(cached) $ECHO_C" >&6
19062 eval "$as_ac_Header=\$ac_header_preproc"
19064 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19065 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19068 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19069 cat >>confdefs.h
<<_ACEOF
19070 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19079 # Solaris requires -lintl if you want strerror (which calls dgettext)
19080 # to return localized messages.
19082 echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
19083 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6
19084 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
19085 echo $ECHO_N "(cached) $ECHO_C" >&6
19087 ac_check_lib_save_LIBS
=$LIBS
19088 LIBS
="-lintl $LIBS"
19089 cat >conftest.
$ac_ext <<_ACEOF
19092 cat confdefs.h
>>conftest.
$ac_ext
19093 cat >>conftest.
$ac_ext <<_ACEOF
19094 /* end confdefs.h. */
19096 /* Override any gcc2 internal prototype to avoid an error. */
19100 /* We use char because int might match the return type of a gcc2
19101 builtin and then its argument prototype would still apply. */
19111 rm -f conftest.
$ac_objext conftest
$ac_exeext
19112 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19113 (eval $ac_link) 2>conftest.er1
19115 grep -v '^ *+' conftest.er1
>conftest.err
19117 cat conftest.err
>&5
19118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19119 (exit $ac_status); } &&
19120 { ac_try
='test -z "$ac_c_werror_flag"
19121 || test ! -s conftest.err'
19122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19123 (eval $ac_try) 2>&5
19125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19126 (exit $ac_status); }; } &&
19127 { ac_try
='test -s conftest$ac_exeext'
19128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19129 (eval $ac_try) 2>&5
19131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19132 (exit $ac_status); }; }; then
19133 ac_cv_lib_intl_dgettext
=yes
19135 echo "$as_me: failed program was:" >&5
19136 sed 's/^/| /' conftest.
$ac_ext >&5
19138 ac_cv_lib_intl_dgettext
=no
19140 rm -f conftest.err conftest.
$ac_objext \
19141 conftest
$ac_exeext conftest.
$ac_ext
19142 LIBS
=$ac_check_lib_save_LIBS
19144 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
19145 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6
19146 if test $ac_cv_lib_intl_dgettext = yes; then
19147 cat >>confdefs.h
<<_ACEOF
19148 #define HAVE_LIBINTL 1
19151 LIBS
="-lintl $LIBS"
19156 echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
19157 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6
19158 if test "${emacs_cv_localtime_cache+set}" = set; then
19159 echo $ECHO_N "(cached) $ECHO_C" >&6
19161 if test x
$ac_cv_func_tzset = xyes
; then
19162 if test "$cross_compiling" = yes; then
19163 # If we have tzset, assume the worst when cross-compiling.
19164 emacs_cv_localtime_cache
=yes
19166 cat >conftest.
$ac_ext <<_ACEOF
19169 cat confdefs.h
>>conftest.
$ac_ext
19170 cat >>conftest.
$ac_ext <<_ACEOF
19171 /* end confdefs.h. */
19173 extern char **environ;
19177 for (to = from = environ; (*to = *from); from++)
19178 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
19181 char TZ_GMT0[] = "TZ=GMT0";
19182 char TZ_PST8[] = "TZ=PST8";
19185 time_t now = time ((time_t *) 0);
19186 int hour_GMT0, hour_unset;
19187 if (putenv (TZ_GMT0) != 0)
19189 hour_GMT0 = localtime (&now)->tm_hour;
19191 hour_unset = localtime (&now)->tm_hour;
19192 if (putenv (TZ_PST8) != 0)
19194 if (localtime (&now)->tm_hour == hour_GMT0)
19197 if (localtime (&now)->tm_hour != hour_unset)
19202 rm -f conftest
$ac_exeext
19203 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19204 (eval $ac_link) 2>&5
19206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19207 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
19208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19209 (eval $ac_try) 2>&5
19211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19212 (exit $ac_status); }; }; then
19213 emacs_cv_localtime_cache
=no
19215 echo "$as_me: program exited with status $ac_status" >&5
19216 echo "$as_me: failed program was:" >&5
19217 sed 's/^/| /' conftest.
$ac_ext >&5
19219 ( exit $ac_status )
19220 emacs_cv_localtime_cache
=yes
19222 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
19225 # If we lack tzset, report that localtime does not cache TZ,
19226 # since we can't invalidate the cache if we don't have tzset.
19227 emacs_cv_localtime_cache
=no
19230 echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
19231 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6
19232 if test $emacs_cv_localtime_cache = yes; then
19234 cat >>confdefs.h
<<\_ACEOF
19235 #define LOCALTIME_CACHE 1
19240 if test "x$HAVE_TIMEVAL" = xyes
; then
19242 for ac_func
in gettimeofday
19244 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19245 echo "$as_me:$LINENO: checking for $ac_func" >&5
19246 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19247 if eval "test \"\${$as_ac_var+set}\" = set"; then
19248 echo $ECHO_N "(cached) $ECHO_C" >&6
19250 cat >conftest.
$ac_ext <<_ACEOF
19253 cat confdefs.h
>>conftest.
$ac_ext
19254 cat >>conftest.
$ac_ext <<_ACEOF
19255 /* end confdefs.h. */
19256 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19257 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19258 #define $ac_func innocuous_$ac_func
19260 /* System header to define __stub macros and hopefully few prototypes,
19261 which can conflict with char $ac_func (); below.
19262 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19263 <limits.h> exists even on freestanding compilers. */
19266 # include <limits.h>
19268 # include <assert.h>
19273 /* Override any gcc2 internal prototype to avoid an error. */
19278 /* We use char because int might match the return type of a gcc2
19279 builtin and then its argument prototype would still apply. */
19281 /* The GNU C library defines this for functions which it implements
19282 to always fail with ENOSYS. Some functions are actually named
19283 something starting with __ and the normal name is an alias. */
19284 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19287 char (*f) () = $ac_func;
19296 return f != $ac_func;
19301 rm -f conftest.
$ac_objext conftest
$ac_exeext
19302 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19303 (eval $ac_link) 2>conftest.er1
19305 grep -v '^ *+' conftest.er1
>conftest.err
19307 cat conftest.err
>&5
19308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19309 (exit $ac_status); } &&
19310 { ac_try
='test -z "$ac_c_werror_flag"
19311 || test ! -s conftest.err'
19312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19313 (eval $ac_try) 2>&5
19315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19316 (exit $ac_status); }; } &&
19317 { ac_try
='test -s conftest$ac_exeext'
19318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19319 (eval $ac_try) 2>&5
19321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19322 (exit $ac_status); }; }; then
19323 eval "$as_ac_var=yes"
19325 echo "$as_me: failed program was:" >&5
19326 sed 's/^/| /' conftest.
$ac_ext >&5
19328 eval "$as_ac_var=no"
19330 rm -f conftest.err conftest.
$ac_objext \
19331 conftest
$ac_exeext conftest.
$ac_ext
19333 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19334 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19335 if test `eval echo '${'$as_ac_var'}'` = yes; then
19336 cat >>confdefs.h
<<_ACEOF
19337 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19343 if test $ac_cv_func_gettimeofday = yes; then
19344 echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
19345 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6
19346 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
19347 echo $ECHO_N "(cached) $ECHO_C" >&6
19349 cat >conftest.
$ac_ext <<_ACEOF
19352 cat confdefs.h
>>conftest.
$ac_ext
19353 cat >>conftest.
$ac_ext <<_ACEOF
19354 /* end confdefs.h. */
19356 #ifdef TIME_WITH_SYS_TIME
19357 #include <sys/time.h>
19360 #ifdef HAVE_SYS_TIME_H
19361 #include <sys/time.h>
19369 struct timeval time;
19370 gettimeofday (&time, 0);
19375 rm -f conftest.
$ac_objext
19376 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19377 (eval $ac_compile) 2>conftest.er1
19379 grep -v '^ *+' conftest.er1
>conftest.err
19381 cat conftest.err
>&5
19382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19383 (exit $ac_status); } &&
19384 { ac_try
='test -z "$ac_c_werror_flag"
19385 || test ! -s conftest.err'
19386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19387 (eval $ac_try) 2>&5
19389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19390 (exit $ac_status); }; } &&
19391 { ac_try
='test -s conftest.$ac_objext'
19392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19393 (eval $ac_try) 2>&5
19395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19396 (exit $ac_status); }; }; then
19397 emacs_cv_gettimeofday_two_arguments
=yes
19399 echo "$as_me: failed program was:" >&5
19400 sed 's/^/| /' conftest.
$ac_ext >&5
19402 emacs_cv_gettimeofday_two_arguments
=no
19404 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19406 echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
19407 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6
19408 if test $emacs_cv_gettimeofday_two_arguments = no
; then
19410 cat >>confdefs.h
<<\_ACEOF
19411 #define GETTIMEOFDAY_ONE_ARGUMENT 1
19418 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
19419 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
19420 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
19421 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
19422 echo $ECHO_N "(cached) $ECHO_C" >&6
19424 cat >conftest.
$ac_ext <<_ACEOF
19427 cat confdefs.h
>>conftest.
$ac_ext
19428 cat >>conftest.
$ac_ext <<_ACEOF
19429 /* end confdefs.h. */
19430 #include <sys/types.h>
19431 #include <$ac_cv_struct_tm>
19437 static struct tm ac_aggr;
19438 if (ac_aggr.tm_zone)
19444 rm -f conftest.
$ac_objext
19445 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19446 (eval $ac_compile) 2>conftest.er1
19448 grep -v '^ *+' conftest.er1
>conftest.err
19450 cat conftest.err
>&5
19451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19452 (exit $ac_status); } &&
19453 { ac_try
='test -z "$ac_c_werror_flag"
19454 || test ! -s conftest.err'
19455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19456 (eval $ac_try) 2>&5
19458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19459 (exit $ac_status); }; } &&
19460 { ac_try
='test -s conftest.$ac_objext'
19461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19462 (eval $ac_try) 2>&5
19464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19465 (exit $ac_status); }; }; then
19466 ac_cv_member_struct_tm_tm_zone
=yes
19468 echo "$as_me: failed program was:" >&5
19469 sed 's/^/| /' conftest.
$ac_ext >&5
19471 cat >conftest.
$ac_ext <<_ACEOF
19474 cat confdefs.h
>>conftest.
$ac_ext
19475 cat >>conftest.
$ac_ext <<_ACEOF
19476 /* end confdefs.h. */
19477 #include <sys/types.h>
19478 #include <$ac_cv_struct_tm>
19484 static struct tm ac_aggr;
19485 if (sizeof ac_aggr.tm_zone)
19491 rm -f conftest.
$ac_objext
19492 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19493 (eval $ac_compile) 2>conftest.er1
19495 grep -v '^ *+' conftest.er1
>conftest.err
19497 cat conftest.err
>&5
19498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19499 (exit $ac_status); } &&
19500 { ac_try
='test -z "$ac_c_werror_flag"
19501 || test ! -s conftest.err'
19502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19503 (eval $ac_try) 2>&5
19505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19506 (exit $ac_status); }; } &&
19507 { ac_try
='test -s conftest.$ac_objext'
19508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19509 (eval $ac_try) 2>&5
19511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19512 (exit $ac_status); }; }; then
19513 ac_cv_member_struct_tm_tm_zone
=yes
19515 echo "$as_me: failed program was:" >&5
19516 sed 's/^/| /' conftest.
$ac_ext >&5
19518 ac_cv_member_struct_tm_tm_zone
=no
19520 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19522 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19524 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
19525 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
19526 if test $ac_cv_member_struct_tm_tm_zone = yes; then
19528 cat >>confdefs.h
<<_ACEOF
19529 #define HAVE_STRUCT_TM_TM_ZONE 1
19535 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
19537 cat >>confdefs.h
<<\_ACEOF
19538 #define HAVE_TM_ZONE 1
19542 echo "$as_me:$LINENO: checking for tzname" >&5
19543 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
19544 if test "${ac_cv_var_tzname+set}" = set; then
19545 echo $ECHO_N "(cached) $ECHO_C" >&6
19547 cat >conftest.
$ac_ext <<_ACEOF
19550 cat confdefs.h
>>conftest.
$ac_ext
19551 cat >>conftest.
$ac_ext <<_ACEOF
19552 /* end confdefs.h. */
19554 #ifndef tzname /* For SGI. */
19555 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
19566 rm -f conftest.
$ac_objext conftest
$ac_exeext
19567 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19568 (eval $ac_link) 2>conftest.er1
19570 grep -v '^ *+' conftest.er1
>conftest.err
19572 cat conftest.err
>&5
19573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19574 (exit $ac_status); } &&
19575 { ac_try
='test -z "$ac_c_werror_flag"
19576 || test ! -s conftest.err'
19577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19578 (eval $ac_try) 2>&5
19580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19581 (exit $ac_status); }; } &&
19582 { ac_try
='test -s conftest$ac_exeext'
19583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19584 (eval $ac_try) 2>&5
19586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19587 (exit $ac_status); }; }; then
19588 ac_cv_var_tzname
=yes
19590 echo "$as_me: failed program was:" >&5
19591 sed 's/^/| /' conftest.
$ac_ext >&5
19593 ac_cv_var_tzname
=no
19595 rm -f conftest.err conftest.
$ac_objext \
19596 conftest
$ac_exeext conftest.
$ac_ext
19598 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
19599 echo "${ECHO_T}$ac_cv_var_tzname" >&6
19600 if test $ac_cv_var_tzname = yes; then
19602 cat >>confdefs.h
<<\_ACEOF
19603 #define HAVE_TZNAME 1
19610 if test "$ac_cv_func_gettimeofday" = yes; then
19611 echo "$as_me:$LINENO: checking for struct timezone" >&5
19612 echo $ECHO_N "checking for struct timezone... $ECHO_C" >&6
19613 if test "${emacs_cv_struct_timezone+set}" = set; then
19614 echo $ECHO_N "(cached) $ECHO_C" >&6
19616 cat >conftest.
$ac_ext <<_ACEOF
19619 cat confdefs.h
>>conftest.
$ac_ext
19620 cat >>conftest.
$ac_ext <<_ACEOF
19621 /* end confdefs.h. */
19622 #include <sys/time.h>
19626 struct timezone tz;
19631 rm -f conftest.
$ac_objext
19632 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19633 (eval $ac_compile) 2>conftest.er1
19635 grep -v '^ *+' conftest.er1
>conftest.err
19637 cat conftest.err
>&5
19638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19639 (exit $ac_status); } &&
19640 { ac_try
='test -z "$ac_c_werror_flag"
19641 || test ! -s conftest.err'
19642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19643 (eval $ac_try) 2>&5
19645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19646 (exit $ac_status); }; } &&
19647 { ac_try
='test -s conftest.$ac_objext'
19648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19649 (eval $ac_try) 2>&5
19651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19652 (exit $ac_status); }; }; then
19653 if test "$cross_compiling" = yes; then
19654 emacs_cv_struct_timezone
=yes
19656 cat >conftest.
$ac_ext <<_ACEOF
19659 cat confdefs.h
>>conftest.
$ac_ext
19660 cat >>conftest.
$ac_ext <<_ACEOF
19661 /* end confdefs.h. */
19663 #ifdef TIME_WITH_SYS_TIME
19664 #include <sys/time.h>
19667 #ifdef HAVE_SYS_TIME_H
19668 #include <sys/time.h>
19674 struct timeval time;
19675 struct timezone dummy;
19676 exit (gettimeofday (&time, &dummy));
19679 rm -f conftest
$ac_exeext
19680 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19681 (eval $ac_link) 2>&5
19683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19684 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
19685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19686 (eval $ac_try) 2>&5
19688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19689 (exit $ac_status); }; }; then
19690 emacs_cv_struct_timezone
=yes
19692 echo "$as_me: program exited with status $ac_status" >&5
19693 echo "$as_me: failed program was:" >&5
19694 sed 's/^/| /' conftest.
$ac_ext >&5
19696 ( exit $ac_status )
19697 emacs_cv_struct_timezone
=no
19699 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
19702 echo "$as_me: failed program was:" >&5
19703 sed 's/^/| /' conftest.
$ac_ext >&5
19705 emacs_cv_struct_timezone
=no
19707 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19709 echo "$as_me:$LINENO: result: $emacs_cv_struct_timezone" >&5
19710 echo "${ECHO_T}$emacs_cv_struct_timezone" >&6
19714 echo "$as_me:$LINENO: checking for socket" >&5
19715 echo $ECHO_N "checking for socket... $ECHO_C" >&6
19716 if test "${ac_cv_func_socket+set}" = set; then
19717 echo $ECHO_N "(cached) $ECHO_C" >&6
19719 cat >conftest.
$ac_ext <<_ACEOF
19722 cat confdefs.h
>>conftest.
$ac_ext
19723 cat >>conftest.
$ac_ext <<_ACEOF
19724 /* end confdefs.h. */
19725 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
19726 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19727 #define socket innocuous_socket
19729 /* System header to define __stub macros and hopefully few prototypes,
19730 which can conflict with char socket (); below.
19731 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19732 <limits.h> exists even on freestanding compilers. */
19735 # include <limits.h>
19737 # include <assert.h>
19742 /* Override any gcc2 internal prototype to avoid an error. */
19747 /* We use char because int might match the return type of a gcc2
19748 builtin and then its argument prototype would still apply. */
19750 /* The GNU C library defines this for functions which it implements
19751 to always fail with ENOSYS. Some functions are actually named
19752 something starting with __ and the normal name is an alias. */
19753 #if defined (__stub_socket) || defined (__stub___socket)
19756 char (*f) () = socket;
19765 return f != socket;
19770 rm -f conftest.
$ac_objext conftest
$ac_exeext
19771 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19772 (eval $ac_link) 2>conftest.er1
19774 grep -v '^ *+' conftest.er1
>conftest.err
19776 cat conftest.err
>&5
19777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19778 (exit $ac_status); } &&
19779 { ac_try
='test -z "$ac_c_werror_flag"
19780 || test ! -s conftest.err'
19781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19782 (eval $ac_try) 2>&5
19784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19785 (exit $ac_status); }; } &&
19786 { ac_try
='test -s conftest$ac_exeext'
19787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19788 (eval $ac_try) 2>&5
19790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19791 (exit $ac_status); }; }; then
19792 ac_cv_func_socket
=yes
19794 echo "$as_me: failed program was:" >&5
19795 sed 's/^/| /' conftest.
$ac_ext >&5
19797 ac_cv_func_socket
=no
19799 rm -f conftest.err conftest.
$ac_objext \
19800 conftest
$ac_exeext conftest.
$ac_ext
19802 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
19803 echo "${ECHO_T}$ac_cv_func_socket" >&6
19804 if test $ac_cv_func_socket = yes; then
19810 if test $ok_so_far = yes; then
19811 if test "${ac_cv_header_netinet_in_h+set}" = set; then
19812 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
19813 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
19814 if test "${ac_cv_header_netinet_in_h+set}" = set; then
19815 echo $ECHO_N "(cached) $ECHO_C" >&6
19817 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
19818 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
19820 # Is the header compilable?
19821 echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
19822 echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6
19823 cat >conftest.
$ac_ext <<_ACEOF
19826 cat confdefs.h
>>conftest.
$ac_ext
19827 cat >>conftest.
$ac_ext <<_ACEOF
19828 /* end confdefs.h. */
19829 $ac_includes_default
19830 #include <netinet/in.h>
19832 rm -f conftest.
$ac_objext
19833 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19834 (eval $ac_compile) 2>conftest.er1
19836 grep -v '^ *+' conftest.er1
>conftest.err
19838 cat conftest.err
>&5
19839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19840 (exit $ac_status); } &&
19841 { ac_try
='test -z "$ac_c_werror_flag"
19842 || test ! -s conftest.err'
19843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19844 (eval $ac_try) 2>&5
19846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19847 (exit $ac_status); }; } &&
19848 { ac_try
='test -s conftest.$ac_objext'
19849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19850 (eval $ac_try) 2>&5
19852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19853 (exit $ac_status); }; }; then
19854 ac_header_compiler
=yes
19856 echo "$as_me: failed program was:" >&5
19857 sed 's/^/| /' conftest.
$ac_ext >&5
19859 ac_header_compiler
=no
19861 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19862 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19863 echo "${ECHO_T}$ac_header_compiler" >&6
19865 # Is the header present?
19866 echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
19867 echo $ECHO_N "checking netinet/in.h presence... $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 #include <netinet/in.h>
19876 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19877 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
19879 grep -v '^ *+' conftest.er1
>conftest.err
19881 cat conftest.err
>&5
19882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19883 (exit $ac_status); } >/dev
/null
; then
19884 if test -s conftest.err
; then
19885 ac_cpp_err
=$ac_c_preproc_warn_flag
19886 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
19893 if test -z "$ac_cpp_err"; then
19894 ac_header_preproc
=yes
19896 echo "$as_me: failed program was:" >&5
19897 sed 's/^/| /' conftest.
$ac_ext >&5
19899 ac_header_preproc
=no
19901 rm -f conftest.err conftest.
$ac_ext
19902 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19903 echo "${ECHO_T}$ac_header_preproc" >&6
19905 # So? What about this header?
19906 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19908 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
19909 echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19910 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
19911 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
19912 ac_header_preproc
=yes
19915 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
19916 echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
19917 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
19918 echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
19919 { echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
19920 echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
19921 { echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
19922 echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
19923 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
19924 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
19925 { echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
19926 echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
19929 ## ------------------------------------------ ##
19930 ## Report this to the AC_PACKAGE_NAME lists. ##
19931 ## ------------------------------------------ ##
19934 sed "s/^/$as_me: WARNING: /" >&2
19937 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
19938 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
19939 if test "${ac_cv_header_netinet_in_h+set}" = set; then
19940 echo $ECHO_N "(cached) $ECHO_C" >&6
19942 ac_cv_header_netinet_in_h
=$ac_header_preproc
19944 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
19945 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
19948 if test $ac_cv_header_netinet_in_h = yes; then
19956 if test $ok_so_far = yes; then
19957 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
19958 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
19959 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
19960 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
19961 echo $ECHO_N "(cached) $ECHO_C" >&6
19963 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
19964 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
19966 # Is the header compilable?
19967 echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
19968 echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6
19969 cat >conftest.
$ac_ext <<_ACEOF
19972 cat confdefs.h
>>conftest.
$ac_ext
19973 cat >>conftest.
$ac_ext <<_ACEOF
19974 /* end confdefs.h. */
19975 $ac_includes_default
19976 #include <arpa/inet.h>
19978 rm -f conftest.
$ac_objext
19979 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19980 (eval $ac_compile) 2>conftest.er1
19982 grep -v '^ *+' conftest.er1
>conftest.err
19984 cat conftest.err
>&5
19985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19986 (exit $ac_status); } &&
19987 { ac_try
='test -z "$ac_c_werror_flag"
19988 || test ! -s conftest.err'
19989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19990 (eval $ac_try) 2>&5
19992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19993 (exit $ac_status); }; } &&
19994 { ac_try
='test -s conftest.$ac_objext'
19995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19996 (eval $ac_try) 2>&5
19998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19999 (exit $ac_status); }; }; then
20000 ac_header_compiler
=yes
20002 echo "$as_me: failed program was:" >&5
20003 sed 's/^/| /' conftest.
$ac_ext >&5
20005 ac_header_compiler
=no
20007 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20008 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20009 echo "${ECHO_T}$ac_header_compiler" >&6
20011 # Is the header present?
20012 echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
20013 echo $ECHO_N "checking arpa/inet.h presence... $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 #include <arpa/inet.h>
20022 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20023 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
20025 grep -v '^ *+' conftest.er1
>conftest.err
20027 cat conftest.err
>&5
20028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20029 (exit $ac_status); } >/dev
/null
; then
20030 if test -s conftest.err
; then
20031 ac_cpp_err
=$ac_c_preproc_warn_flag
20032 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
20039 if test -z "$ac_cpp_err"; then
20040 ac_header_preproc
=yes
20042 echo "$as_me: failed program was:" >&5
20043 sed 's/^/| /' conftest.
$ac_ext >&5
20045 ac_header_preproc
=no
20047 rm -f conftest.err conftest.
$ac_ext
20048 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20049 echo "${ECHO_T}$ac_header_preproc" >&6
20051 # So? What about this header?
20052 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20054 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
20055 echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20056 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
20057 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
20058 ac_header_preproc
=yes
20061 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
20062 echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
20063 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
20064 echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
20065 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
20066 echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
20067 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
20068 echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
20069 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
20070 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
20071 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
20072 echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
20075 ## ------------------------------------------ ##
20076 ## Report this to the AC_PACKAGE_NAME lists. ##
20077 ## ------------------------------------------ ##
20080 sed "s/^/$as_me: WARNING: /" >&2
20083 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
20084 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
20085 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
20086 echo $ECHO_N "(cached) $ECHO_C" >&6
20088 ac_cv_header_arpa_inet_h
=$ac_header_preproc
20090 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
20091 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
20094 if test $ac_cv_header_arpa_inet_h = yes; then
20102 if test $ok_so_far = yes; then
20104 cat >>confdefs.h
<<\_ACEOF
20105 #define HAVE_INET_SOCKETS 1
20111 for ac_header
in sys
/ioctl.h
20113 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20114 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20115 echo "$as_me:$LINENO: checking for $ac_header" >&5
20116 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20117 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20118 echo $ECHO_N "(cached) $ECHO_C" >&6
20120 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20121 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20123 # Is the header compilable?
20124 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20125 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20126 cat >conftest.
$ac_ext <<_ACEOF
20129 cat confdefs.h
>>conftest.
$ac_ext
20130 cat >>conftest.
$ac_ext <<_ACEOF
20131 /* end confdefs.h. */
20132 $ac_includes_default
20133 #include <$ac_header>
20135 rm -f conftest.
$ac_objext
20136 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20137 (eval $ac_compile) 2>conftest.er1
20139 grep -v '^ *+' conftest.er1
>conftest.err
20141 cat conftest.err
>&5
20142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20143 (exit $ac_status); } &&
20144 { ac_try
='test -z "$ac_c_werror_flag"
20145 || test ! -s conftest.err'
20146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20147 (eval $ac_try) 2>&5
20149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20150 (exit $ac_status); }; } &&
20151 { ac_try
='test -s conftest.$ac_objext'
20152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20153 (eval $ac_try) 2>&5
20155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20156 (exit $ac_status); }; }; then
20157 ac_header_compiler
=yes
20159 echo "$as_me: failed program was:" >&5
20160 sed 's/^/| /' conftest.
$ac_ext >&5
20162 ac_header_compiler
=no
20164 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20165 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20166 echo "${ECHO_T}$ac_header_compiler" >&6
20168 # Is the header present?
20169 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20170 echo $ECHO_N "checking $ac_header presence... $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 #include <$ac_header>
20179 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20180 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
20182 grep -v '^ *+' conftest.er1
>conftest.err
20184 cat conftest.err
>&5
20185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20186 (exit $ac_status); } >/dev
/null
; then
20187 if test -s conftest.err
; then
20188 ac_cpp_err
=$ac_c_preproc_warn_flag
20189 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
20196 if test -z "$ac_cpp_err"; then
20197 ac_header_preproc
=yes
20199 echo "$as_me: failed program was:" >&5
20200 sed 's/^/| /' conftest.
$ac_ext >&5
20202 ac_header_preproc
=no
20204 rm -f conftest.err conftest.
$ac_ext
20205 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20206 echo "${ECHO_T}$ac_header_preproc" >&6
20208 # So? What about this header?
20209 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20211 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20212 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20213 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20214 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20215 ac_header_preproc
=yes
20218 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20219 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20220 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20221 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20222 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20223 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20224 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20225 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20226 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20227 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20228 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20229 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20232 ## ------------------------------------------ ##
20233 ## Report this to the AC_PACKAGE_NAME lists. ##
20234 ## ------------------------------------------ ##
20237 sed "s/^/$as_me: WARNING: /" >&2
20240 echo "$as_me:$LINENO: checking for $ac_header" >&5
20241 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20242 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20243 echo $ECHO_N "(cached) $ECHO_C" >&6
20245 eval "$as_ac_Header=\$ac_header_preproc"
20247 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20248 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20251 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20252 cat >>confdefs.h
<<_ACEOF
20253 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20261 if test -f /usr
/lpp
/X11
/bin
/smt.exp
; then
20263 cat >>confdefs.h
<<\_ACEOF
20264 #define HAVE_AIX_SMT_EXP 1
20269 echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
20270 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6
20271 if test -d /dev
/pts
&& ls -d /dev
/ptmx
> /dev
/null
2>&1 ; then
20272 echo "$as_me:$LINENO: result: yes" >&5
20273 echo "${ECHO_T}yes" >&6
20275 cat >>confdefs.h
<<\_ACEOF
20276 #define HAVE_DEV_PTMX 1
20280 echo "$as_me:$LINENO: result: no" >&5
20281 echo "${ECHO_T}no" >&6
20284 echo "$as_me:$LINENO: checking for pid_t" >&5
20285 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
20286 if test "${ac_cv_type_pid_t+set}" = set; then
20287 echo $ECHO_N "(cached) $ECHO_C" >&6
20289 cat >conftest.
$ac_ext <<_ACEOF
20292 cat confdefs.h
>>conftest.
$ac_ext
20293 cat >>conftest.
$ac_ext <<_ACEOF
20294 /* end confdefs.h. */
20295 $ac_includes_default
20301 if (sizeof (pid_t))
20307 rm -f conftest.
$ac_objext
20308 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20309 (eval $ac_compile) 2>conftest.er1
20311 grep -v '^ *+' conftest.er1
>conftest.err
20313 cat conftest.err
>&5
20314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20315 (exit $ac_status); } &&
20316 { ac_try
='test -z "$ac_c_werror_flag"
20317 || test ! -s conftest.err'
20318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20319 (eval $ac_try) 2>&5
20321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20322 (exit $ac_status); }; } &&
20323 { ac_try
='test -s conftest.$ac_objext'
20324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20325 (eval $ac_try) 2>&5
20327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20328 (exit $ac_status); }; }; then
20329 ac_cv_type_pid_t
=yes
20331 echo "$as_me: failed program was:" >&5
20332 sed 's/^/| /' conftest.
$ac_ext >&5
20334 ac_cv_type_pid_t
=no
20336 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20338 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
20339 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
20340 if test $ac_cv_type_pid_t = yes; then
20344 cat >>confdefs.h
<<_ACEOF
20352 for ac_header
in unistd.h vfork.h
20354 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20355 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20356 echo "$as_me:$LINENO: checking for $ac_header" >&5
20357 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20358 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20359 echo $ECHO_N "(cached) $ECHO_C" >&6
20361 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20362 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20364 # Is the header compilable?
20365 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20366 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20367 cat >conftest.
$ac_ext <<_ACEOF
20370 cat confdefs.h
>>conftest.
$ac_ext
20371 cat >>conftest.
$ac_ext <<_ACEOF
20372 /* end confdefs.h. */
20373 $ac_includes_default
20374 #include <$ac_header>
20376 rm -f conftest.
$ac_objext
20377 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20378 (eval $ac_compile) 2>conftest.er1
20380 grep -v '^ *+' conftest.er1
>conftest.err
20382 cat conftest.err
>&5
20383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20384 (exit $ac_status); } &&
20385 { ac_try
='test -z "$ac_c_werror_flag"
20386 || test ! -s conftest.err'
20387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20388 (eval $ac_try) 2>&5
20390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20391 (exit $ac_status); }; } &&
20392 { ac_try
='test -s conftest.$ac_objext'
20393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20394 (eval $ac_try) 2>&5
20396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20397 (exit $ac_status); }; }; then
20398 ac_header_compiler
=yes
20400 echo "$as_me: failed program was:" >&5
20401 sed 's/^/| /' conftest.
$ac_ext >&5
20403 ac_header_compiler
=no
20405 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20406 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20407 echo "${ECHO_T}$ac_header_compiler" >&6
20409 # Is the header present?
20410 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20411 echo $ECHO_N "checking $ac_header presence... $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 #include <$ac_header>
20420 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20421 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
20423 grep -v '^ *+' conftest.er1
>conftest.err
20425 cat conftest.err
>&5
20426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20427 (exit $ac_status); } >/dev
/null
; then
20428 if test -s conftest.err
; then
20429 ac_cpp_err
=$ac_c_preproc_warn_flag
20430 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
20437 if test -z "$ac_cpp_err"; then
20438 ac_header_preproc
=yes
20440 echo "$as_me: failed program was:" >&5
20441 sed 's/^/| /' conftest.
$ac_ext >&5
20443 ac_header_preproc
=no
20445 rm -f conftest.err conftest.
$ac_ext
20446 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20447 echo "${ECHO_T}$ac_header_preproc" >&6
20449 # So? What about this header?
20450 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20452 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20453 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20454 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20455 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20456 ac_header_preproc
=yes
20459 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20460 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20461 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20462 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20463 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20464 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20465 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20466 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20467 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20468 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20469 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20470 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20473 ## ------------------------------------------ ##
20474 ## Report this to the AC_PACKAGE_NAME lists. ##
20475 ## ------------------------------------------ ##
20478 sed "s/^/$as_me: WARNING: /" >&2
20481 echo "$as_me:$LINENO: checking for $ac_header" >&5
20482 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20483 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20484 echo $ECHO_N "(cached) $ECHO_C" >&6
20486 eval "$as_ac_Header=\$ac_header_preproc"
20488 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20489 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20492 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20493 cat >>confdefs.h
<<_ACEOF
20494 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20503 for ac_func
in fork vfork
20505 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20506 echo "$as_me:$LINENO: checking for $ac_func" >&5
20507 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20508 if eval "test \"\${$as_ac_var+set}\" = set"; then
20509 echo $ECHO_N "(cached) $ECHO_C" >&6
20511 cat >conftest.
$ac_ext <<_ACEOF
20514 cat confdefs.h
>>conftest.
$ac_ext
20515 cat >>conftest.
$ac_ext <<_ACEOF
20516 /* end confdefs.h. */
20517 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20518 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20519 #define $ac_func innocuous_$ac_func
20521 /* System header to define __stub macros and hopefully few prototypes,
20522 which can conflict with char $ac_func (); below.
20523 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20524 <limits.h> exists even on freestanding compilers. */
20527 # include <limits.h>
20529 # include <assert.h>
20534 /* Override any gcc2 internal prototype to avoid an error. */
20539 /* We use char because int might match the return type of a gcc2
20540 builtin and then its argument prototype would still apply. */
20542 /* The GNU C library defines this for functions which it implements
20543 to always fail with ENOSYS. Some functions are actually named
20544 something starting with __ and the normal name is an alias. */
20545 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20548 char (*f) () = $ac_func;
20557 return f != $ac_func;
20562 rm -f conftest.
$ac_objext conftest
$ac_exeext
20563 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20564 (eval $ac_link) 2>conftest.er1
20566 grep -v '^ *+' conftest.er1
>conftest.err
20568 cat conftest.err
>&5
20569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20570 (exit $ac_status); } &&
20571 { ac_try
='test -z "$ac_c_werror_flag"
20572 || test ! -s conftest.err'
20573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20574 (eval $ac_try) 2>&5
20576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20577 (exit $ac_status); }; } &&
20578 { ac_try
='test -s conftest$ac_exeext'
20579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20580 (eval $ac_try) 2>&5
20582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20583 (exit $ac_status); }; }; then
20584 eval "$as_ac_var=yes"
20586 echo "$as_me: failed program was:" >&5
20587 sed 's/^/| /' conftest.
$ac_ext >&5
20589 eval "$as_ac_var=no"
20591 rm -f conftest.err conftest.
$ac_objext \
20592 conftest
$ac_exeext conftest.
$ac_ext
20594 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20595 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20596 if test `eval echo '${'$as_ac_var'}'` = yes; then
20597 cat >>confdefs.h
<<_ACEOF
20598 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20604 if test "x$ac_cv_func_fork" = xyes
; then
20605 echo "$as_me:$LINENO: checking for working fork" >&5
20606 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
20607 if test "${ac_cv_func_fork_works+set}" = set; then
20608 echo $ECHO_N "(cached) $ECHO_C" >&6
20610 if test "$cross_compiling" = yes; then
20611 ac_cv_func_fork_works
=cross
20613 cat >conftest.
$ac_ext <<_ACEOF
20614 /* By Ruediger Kuhlmann. */
20615 #include <sys/types.h>
20617 # include <unistd.h>
20619 /* Some systems only have a dummy stub for fork() */
20627 rm -f conftest
$ac_exeext
20628 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20629 (eval $ac_link) 2>&5
20631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20632 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
20633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20634 (eval $ac_try) 2>&5
20636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20637 (exit $ac_status); }; }; then
20638 ac_cv_func_fork_works
=yes
20640 echo "$as_me: program exited with status $ac_status" >&5
20641 echo "$as_me: failed program was:" >&5
20642 sed 's/^/| /' conftest.
$ac_ext >&5
20644 ( exit $ac_status )
20645 ac_cv_func_fork_works
=no
20647 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
20650 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
20651 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
20654 ac_cv_func_fork_works
=$ac_cv_func_fork
20656 if test "x$ac_cv_func_fork_works" = xcross
; then
20658 *-*-amigaos* |
*-*-msdosdjgpp*)
20659 # Override, as these systems have only a dummy fork() stub
20660 ac_cv_func_fork_works
=no
20663 ac_cv_func_fork_works
=yes
20666 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
20667 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
20669 ac_cv_func_vfork_works
=$ac_cv_func_vfork
20670 if test "x$ac_cv_func_vfork" = xyes
; then
20671 echo "$as_me:$LINENO: checking for working vfork" >&5
20672 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
20673 if test "${ac_cv_func_vfork_works+set}" = set; then
20674 echo $ECHO_N "(cached) $ECHO_C" >&6
20676 if test "$cross_compiling" = yes; then
20677 ac_cv_func_vfork_works
=cross
20679 cat >conftest.
$ac_ext <<_ACEOF
20682 cat confdefs.h
>>conftest.
$ac_ext
20683 cat >>conftest.
$ac_ext <<_ACEOF
20684 /* end confdefs.h. */
20685 /* Thanks to Paul Eggert for this test. */
20687 #include <stdlib.h>
20688 #include <sys/types.h>
20689 #include <sys/stat.h>
20690 #include <sys/wait.h>
20692 # include <unistd.h>
20695 # include <vfork.h>
20697 /* On some sparc systems, changes by the child to local and incoming
20698 argument registers are propagated back to the parent. The compiler
20699 is told about this with #include <vfork.h>, but some compilers
20700 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
20701 static variable whose address is put into a register that is
20702 clobbered by the vfork. */
20705 sparc_address_test (int arg)
20707 sparc_address_test (arg) int arg;
20710 static pid_t child;
20728 pid_t parent = getpid ();
20731 sparc_address_test (0);
20736 /* Here is another test for sparc vfork register problems. This
20737 test uses lots of local variables, at least as many local
20738 variables as main has allocated so far including compiler
20739 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
20740 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
20741 reuse the register of parent for one of the local variables,
20742 since it will think that parent can't possibly be used any more
20743 in this routine. Assigning to the local variable will thus
20744 munge parent in the parent process. */
20746 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
20747 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
20748 /* Convince the compiler that p..p7 are live; otherwise, it might
20749 use the same hardware register for all 8 local variables. */
20750 if (p != p1 || p != p2 || p != p3 || p != p4
20751 || p != p5 || p != p6 || p != p7)
20754 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
20755 from child file descriptors. If the child closes a descriptor
20756 before it execs or exits, this munges the parent's descriptor
20757 as well. Test for this by closing stdout in the child. */
20758 _exit(close(fileno(stdout)) != 0);
20763 while (wait(&status) != child)
20766 /* Was there some problem with vforking? */
20769 /* Did the child fail? (This shouldn't happen.) */
20772 /* Did the vfork/compiler bug occur? */
20773 || parent != getpid()
20775 /* Did the file descriptor bug occur? */
20776 || fstat(fileno(stdout), &st) != 0
20781 rm -f conftest
$ac_exeext
20782 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20783 (eval $ac_link) 2>&5
20785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20786 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
20787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20788 (eval $ac_try) 2>&5
20790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20791 (exit $ac_status); }; }; then
20792 ac_cv_func_vfork_works
=yes
20794 echo "$as_me: program exited with status $ac_status" >&5
20795 echo "$as_me: failed program was:" >&5
20796 sed 's/^/| /' conftest.
$ac_ext >&5
20798 ( exit $ac_status )
20799 ac_cv_func_vfork_works
=no
20801 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
20804 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
20805 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
20808 if test "x$ac_cv_func_fork_works" = xcross
; then
20809 ac_cv_func_vfork_works
=$ac_cv_func_vfork
20810 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
20811 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
20814 if test "x$ac_cv_func_vfork_works" = xyes
; then
20816 cat >>confdefs.h
<<\_ACEOF
20817 #define HAVE_WORKING_VFORK 1
20822 cat >>confdefs.h
<<\_ACEOF
20827 if test "x$ac_cv_func_fork_works" = xyes
; then
20829 cat >>confdefs.h
<<\_ACEOF
20830 #define HAVE_WORKING_FORK 1
20836 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
20837 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
20838 if test "${emacs_cv_langinfo_codeset+set}" = set; then
20839 echo $ECHO_N "(cached) $ECHO_C" >&6
20841 cat >conftest.
$ac_ext <<_ACEOF
20844 cat confdefs.h
>>conftest.
$ac_ext
20845 cat >>conftest.
$ac_ext <<_ACEOF
20846 /* end confdefs.h. */
20847 #include <langinfo.h>
20851 char* cs = nl_langinfo(CODESET);
20856 rm -f conftest.
$ac_objext conftest
$ac_exeext
20857 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20858 (eval $ac_link) 2>conftest.er1
20860 grep -v '^ *+' conftest.er1
>conftest.err
20862 cat conftest.err
>&5
20863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20864 (exit $ac_status); } &&
20865 { ac_try
='test -z "$ac_c_werror_flag"
20866 || test ! -s conftest.err'
20867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20868 (eval $ac_try) 2>&5
20870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20871 (exit $ac_status); }; } &&
20872 { ac_try
='test -s conftest$ac_exeext'
20873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20874 (eval $ac_try) 2>&5
20876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20877 (exit $ac_status); }; }; then
20878 emacs_cv_langinfo_codeset
=yes
20880 echo "$as_me: failed program was:" >&5
20881 sed 's/^/| /' conftest.
$ac_ext >&5
20883 emacs_cv_langinfo_codeset
=no
20885 rm -f conftest.err conftest.
$ac_objext \
20886 conftest
$ac_exeext conftest.
$ac_ext
20889 echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
20890 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6
20891 if test $emacs_cv_langinfo_codeset = yes; then
20893 cat >>confdefs.h
<<\_ACEOF
20894 #define HAVE_LANGINFO_CODESET 1
20899 echo "$as_me:$LINENO: checking for size_t" >&5
20900 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
20901 if test "${ac_cv_type_size_t+set}" = set; then
20902 echo $ECHO_N "(cached) $ECHO_C" >&6
20904 cat >conftest.
$ac_ext <<_ACEOF
20907 cat confdefs.h
>>conftest.
$ac_ext
20908 cat >>conftest.
$ac_ext <<_ACEOF
20909 /* end confdefs.h. */
20910 $ac_includes_default
20916 if (sizeof (size_t))
20922 rm -f conftest.
$ac_objext
20923 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20924 (eval $ac_compile) 2>conftest.er1
20926 grep -v '^ *+' conftest.er1
>conftest.err
20928 cat conftest.err
>&5
20929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20930 (exit $ac_status); } &&
20931 { ac_try
='test -z "$ac_c_werror_flag"
20932 || test ! -s conftest.err'
20933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20934 (eval $ac_try) 2>&5
20936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20937 (exit $ac_status); }; } &&
20938 { ac_try
='test -s conftest.$ac_objext'
20939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20940 (eval $ac_try) 2>&5
20942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20943 (exit $ac_status); }; }; then
20944 ac_cv_type_size_t
=yes
20946 echo "$as_me: failed program was:" >&5
20947 sed 's/^/| /' conftest.
$ac_ext >&5
20949 ac_cv_type_size_t
=no
20951 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20953 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20954 echo "${ECHO_T}$ac_cv_type_size_t" >&6
20955 if test $ac_cv_type_size_t = yes; then
20957 cat >>confdefs.h
<<_ACEOF
20958 #define HAVE_SIZE_T 1
20965 echo "$as_me:$LINENO: checking for mbstate_t" >&5
20966 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
20967 if test "${ac_cv_type_mbstate_t+set}" = set; then
20968 echo $ECHO_N "(cached) $ECHO_C" >&6
20970 cat >conftest.
$ac_ext <<_ACEOF
20973 cat confdefs.h
>>conftest.
$ac_ext
20974 cat >>conftest.
$ac_ext <<_ACEOF
20975 /* end confdefs.h. */
20976 $ac_includes_default
20977 # include <wchar.h>
20981 mbstate_t x; return sizeof x;
20986 rm -f conftest.
$ac_objext
20987 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20988 (eval $ac_compile) 2>conftest.er1
20990 grep -v '^ *+' conftest.er1
>conftest.err
20992 cat conftest.err
>&5
20993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20994 (exit $ac_status); } &&
20995 { ac_try
='test -z "$ac_c_werror_flag"
20996 || test ! -s conftest.err'
20997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20998 (eval $ac_try) 2>&5
21000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21001 (exit $ac_status); }; } &&
21002 { ac_try
='test -s conftest.$ac_objext'
21003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21004 (eval $ac_try) 2>&5
21006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21007 (exit $ac_status); }; }; then
21008 ac_cv_type_mbstate_t
=yes
21010 echo "$as_me: failed program was:" >&5
21011 sed 's/^/| /' conftest.
$ac_ext >&5
21013 ac_cv_type_mbstate_t
=no
21015 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21017 echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
21018 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
21019 if test $ac_cv_type_mbstate_t = yes; then
21021 cat >>confdefs.h
<<\_ACEOF
21022 #define HAVE_MBSTATE_T 1
21027 cat >>confdefs.h
<<\_ACEOF
21028 #define mbstate_t int
21033 echo "$as_me:$LINENO: checking for C restrict keyword" >&5
21034 echo $ECHO_N "checking for C restrict keyword... $ECHO_C" >&6
21035 if test "${emacs_cv_c_restrict+set}" = set; then
21036 echo $ECHO_N "(cached) $ECHO_C" >&6
21038 cat >conftest.
$ac_ext <<_ACEOF
21041 cat confdefs.h
>>conftest.
$ac_ext
21042 cat >>conftest.
$ac_ext <<_ACEOF
21043 /* end confdefs.h. */
21044 void fred (int *restrict x);
21053 rm -f conftest.
$ac_objext
21054 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21055 (eval $ac_compile) 2>conftest.er1
21057 grep -v '^ *+' conftest.er1
>conftest.err
21059 cat conftest.err
>&5
21060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21061 (exit $ac_status); } &&
21062 { ac_try
='test -z "$ac_c_werror_flag"
21063 || test ! -s conftest.err'
21064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21065 (eval $ac_try) 2>&5
21067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21068 (exit $ac_status); }; } &&
21069 { ac_try
='test -s conftest.$ac_objext'
21070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21071 (eval $ac_try) 2>&5
21073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21074 (exit $ac_status); }; }; then
21075 emacs_cv_c_restrict
=yes
21077 echo "$as_me: failed program was:" >&5
21078 sed 's/^/| /' conftest.
$ac_ext >&5
21080 cat >conftest.
$ac_ext <<_ACEOF
21083 cat confdefs.h
>>conftest.
$ac_ext
21084 cat >>conftest.
$ac_ext <<_ACEOF
21085 /* end confdefs.h. */
21086 void fred (int *__restrict x);
21095 rm -f conftest.
$ac_objext
21096 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21097 (eval $ac_compile) 2>conftest.er1
21099 grep -v '^ *+' conftest.er1
>conftest.err
21101 cat conftest.err
>&5
21102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21103 (exit $ac_status); } &&
21104 { ac_try
='test -z "$ac_c_werror_flag"
21105 || test ! -s conftest.err'
21106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21107 (eval $ac_try) 2>&5
21109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21110 (exit $ac_status); }; } &&
21111 { ac_try
='test -s conftest.$ac_objext'
21112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21113 (eval $ac_try) 2>&5
21115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21116 (exit $ac_status); }; }; then
21117 emacs_cv_c_restrict
=__restrict
21119 echo "$as_me: failed program was:" >&5
21120 sed 's/^/| /' conftest.
$ac_ext >&5
21122 emacs_cv_c_restrict
=no
21124 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21126 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21128 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
21129 echo "${ECHO_T}$emacs_cv_c_restrict" >&6
21130 case "$emacs_cv_c_restrict" in
21131 yes) emacs_restrict
=restrict
;;
21132 no
) emacs_restrict
="";;
21133 *) emacs_restrict
="$emacs_cv_c_restrict";;
21135 if test "$emacs_restrict" != __restrict
; then
21137 cat >>confdefs.h
<<_ACEOF
21138 #define __restrict $emacs_restrict
21143 echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
21144 echo $ECHO_N "checking for C restricted array declarations... $ECHO_C" >&6
21145 if test "${emacs_cv_c_restrict_arr+set}" = set; then
21146 echo $ECHO_N "(cached) $ECHO_C" >&6
21148 cat >conftest.
$ac_ext <<_ACEOF
21151 cat confdefs.h
>>conftest.
$ac_ext
21152 cat >>conftest.
$ac_ext <<_ACEOF
21153 /* end confdefs.h. */
21154 void fred (int x[__restrict]);
21163 rm -f conftest.
$ac_objext
21164 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21165 (eval $ac_compile) 2>conftest.er1
21167 grep -v '^ *+' conftest.er1
>conftest.err
21169 cat conftest.err
>&5
21170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21171 (exit $ac_status); } &&
21172 { ac_try
='test -z "$ac_c_werror_flag"
21173 || test ! -s conftest.err'
21174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21175 (eval $ac_try) 2>&5
21177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21178 (exit $ac_status); }; } &&
21179 { ac_try
='test -s conftest.$ac_objext'
21180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21181 (eval $ac_try) 2>&5
21183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21184 (exit $ac_status); }; }; then
21185 emacs_cv_c_restrict_arr
=yes
21187 echo "$as_me: failed program was:" >&5
21188 sed 's/^/| /' conftest.
$ac_ext >&5
21190 emacs_cv_c_restrict_arr
=no
21192 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21194 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
21195 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6
21196 if test "$emacs_cv_c_restrict_arr" = yes; then
21198 cat >>confdefs.h
<<\_ACEOF
21199 #define __restrict_arr __restrict
21206 # Set up the CFLAGS for real compilation, so we can substitute it.
21207 CFLAGS
="$REAL_CFLAGS"
21208 CPPFLAGS
="$REAL_CPPFLAGS"
21210 #### Find out which version of Emacs this is.
21211 version
=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
21212 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
21213 if test x
"${version}" = x
; then
21214 { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
21215 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
21216 { (exit 1); exit 1; }; }
21219 ### Specify what sort of things we'll be editing into Makefile and config.h.
21220 ### Use configuration here uncanonicalized to avoid exceeding size limits.
21256 cat >>confdefs.h
<<_ACEOF
21257 #define EMACS_CONFIGURATION "${canonical}"
21261 cat >>confdefs.h
<<_ACEOF
21262 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
21266 cat >>confdefs.h
<<_ACEOF
21267 #define config_machfile "${machfile}"
21271 cat >>confdefs.h
<<_ACEOF
21272 #define config_opsysfile "${opsysfile}"
21276 cat >>confdefs.h
<<_ACEOF
21277 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
21281 cat >>confdefs.h
<<_ACEOF
21282 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
21286 cat >>confdefs.h
<<_ACEOF
21287 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
21291 cat >>confdefs.h
<<_ACEOF
21292 #define UNEXEC_SRC ${UNEXEC_SRC}
21296 if test "${HAVE_X_WINDOWS}" = "yes" ; then
21298 cat >>confdefs.h
<<\_ACEOF
21299 #define HAVE_X_WINDOWS 1
21303 if test "${USE_X_TOOLKIT}" != "none" ; then
21305 cat >>confdefs.h
<<\_ACEOF
21306 #define USE_X_TOOLKIT 1
21310 if test "${HAVE_X11}" = "yes" ; then
21312 cat >>confdefs.h
<<\_ACEOF
21317 if test "${HAVE_XFREE386}" = "yes" ; then
21319 cat >>confdefs.h
<<\_ACEOF
21320 #define HAVE_XFREE386 1
21324 if test "${HAVE_MENUS}" = "yes" ; then
21326 cat >>confdefs.h
<<\_ACEOF
21327 #define HAVE_MENUS 1
21331 if test "${GNU_MALLOC}" = "yes" ; then
21333 cat >>confdefs.h
<<\_ACEOF
21334 #define GNU_MALLOC 1
21338 if test "${REL_ALLOC}" = "yes" ; then
21340 cat >>confdefs.h
<<\_ACEOF
21341 #define REL_ALLOC 1
21350 #### Report on what we decided to do.
21351 #### Report GTK as a toolkit, even if it doesn't use Xt.
21352 #### It makes printing result more understandable as using GTK sets
21353 #### toolkit_scroll_bars to yes by default.
21354 if test "${HAVE_GTK}" = "yes"; then
21359 Configured for \`${canonical}'.
21361 Where should the build process find the source code? ${srcdir}
21362 What operating system and machine description files should Emacs use?
21363 \`${opsysfile}' and \`${machfile}'
21364 What compiler should emacs be built with? ${CC} ${CFLAGS}
21365 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
21366 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
21367 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
21368 What window system should Emacs use? ${window_system}
21369 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
21371 if test -n "${x_includes}"; then
21372 echo " Where do we find X Windows header files? ${x_includes}"
21374 echo " Where do we find X Windows header files? Standard dirs"
21376 if test -n "${x_libraries}"; then
21377 echo " Where do we find X Windows libraries? ${x_libraries}"
21379 echo " Where do we find X Windows libraries? Standard dirs"
21382 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
21383 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
21384 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
21385 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
21386 echo " Does Emacs use -lungif? ${HAVE_GIF}"
21387 echo " Does Emacs use -lpng? ${HAVE_PNG}"
21388 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
21391 # Remove any trailing slashes in these variables.
21392 test "${prefix}" != NONE
&&
21393 prefix
=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
21394 test "${exec_prefix}" != NONE
&&
21395 exec_prefix
=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
21397 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
21398 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
21399 ## from Makefile.c can correctly provide the arg `-traditional' to the
21402 cat >conftest.
$ac_ext <<_ACEOF
21405 cat confdefs.h
>>conftest.
$ac_ext
21406 cat >>conftest.
$ac_ext <<_ACEOF
21407 /* end confdefs.h. */
21410 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21411 $EGREP "yes..yes" >/dev
/null
2>&1; then
21412 CPP_NEED_TRADITIONAL
=no
21414 CPP_NEED_TRADITIONAL
=yes
21419 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"
21420 ac_config_commands
="$ac_config_commands default"
21421 cat >confcache
<<\_ACEOF
21422 # This file is a shell script that caches the results of configure
21423 # tests run on this system so they can be shared between configure
21424 # scripts and configure runs, see configure's option --config-cache.
21425 # It is not useful on other systems. If it contains results you don't
21426 # want to keep, you may remove or edit it.
21428 # config.status only pays attention to the cache file if you give it
21429 # the --recheck option to rerun configure.
21431 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21432 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21433 # following values.
21437 # The following way of writing the cache mishandles newlines in values,
21438 # but we know of no workaround that is simple, portable, and efficient.
21439 # So, don't put newlines in cache variables' values.
21440 # Ultrix sh set writes to stderr and can't be redirected directly,
21441 # and sets the high bit in the cache file unless we assign to the vars.
21444 case `(ac_space=' '; set | grep ac_space) 2>&1` in
21446 # `set' does not quote correctly, so add quotes (double-quote
21447 # substitution turns \\\\ into \\, and sed turns \\ into \).
21450 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21453 # `set' quotes correctly as required by POSIX, so do not add quotes.
21455 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
21462 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21464 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21466 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
21467 if test -w $cache_file; then
21468 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
21469 cat confcache
>$cache_file
21471 echo "not updating unwritable cache $cache_file"
21476 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
21477 # Let make expand exec_prefix.
21478 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
21480 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21481 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21482 # trailing colons and then remove the whole line if VPATH becomes empty
21483 # (actually we leave an empty line to preserve line numbers).
21484 if test "x$srcdir" = x.
; then
21485 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
21486 s/:*\$(srcdir):*/:/;
21487 s/:*\${srcdir}:*/:/;
21489 s/^\([^=]*=[ ]*\):*/\1/;
21495 DEFS
=-DHAVE_CONFIG_H
21499 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
21500 # 1. Remove the extension, and $U if already installed.
21501 ac_i
=`echo "$ac_i" |
21502 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
21504 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
21505 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
21507 LIBOBJS
=$ac_libobjs
21509 LTLIBOBJS
=$ac_ltlibobjs
21513 : ${CONFIG_STATUS=./config.status}
21514 ac_clean_files_save
=$ac_clean_files
21515 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
21516 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21517 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21518 cat >$CONFIG_STATUS <<_ACEOF
21520 # Generated by $as_me.
21521 # Run this file to recreate the current configuration.
21522 # Compiler output produced by configure, useful for debugging
21523 # configure, is in config.log if it exists.
21526 ac_cs_recheck=false
21528 SHELL=\${CONFIG_SHELL-$SHELL}
21531 cat >>$CONFIG_STATUS <<\_ACEOF
21532 ## --------------------- ##
21533 ## M4sh Initialization. ##
21534 ## --------------------- ##
21536 # Be Bourne compatible
21537 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
21540 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21541 # is contrary to our usage. Disable this feature.
21542 alias -g '${1+"$@"}'='"$@"'
21543 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
21546 DUALCASE
=1; export DUALCASE
# for MKS sh
21548 # Support unset when possible.
21549 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
21556 # Work around bugs in pre-3.0 UWIN ksh.
21557 $as_unset ENV MAIL MAILPATH
21564 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21565 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21566 LC_TELEPHONE LC_TIME
21568 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21569 eval $as_var=C
; export $as_var
21575 # Required to use basename.
21576 if expr a
: '\(a\)' >/dev
/null
2>&1; then
21582 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
21583 as_basename
=basename
21589 # Name of the executable.
21590 as_me
=`$as_basename "$0" ||
21591 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21592 X"$0" : 'X\(//\)$' \| \
21593 X"$0" : 'X\(/\)$' \| \
21594 . : '\(.\)' 2>/dev/null ||
21596 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
21597 /^X\/\(\/\/\)$/{ s//\1/; q; }
21598 /^X\/\(\/\).*/{ s//\1/; q; }
21602 # PATH needs CR, and LINENO needs CR and PATH.
21603 # Avoid depending upon Character Ranges.
21604 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
21605 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21606 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
21607 as_cr_digits
='0123456789'
21608 as_cr_alnum
=$as_cr_Letters$as_cr_digits
21610 # The user is always right.
21611 if test "${PATH_SEPARATOR+set}" != set; then
21612 echo "#! /bin/sh" >conf$$.sh
21613 echo "exit 0" >>conf$$.sh
21615 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
21624 as_lineno_1
=$LINENO
21625 as_lineno_2
=$LINENO
21626 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
21627 test "x$as_lineno_1" != "x$as_lineno_2" &&
21628 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
21629 # Find who we are. Look in the path if we contain no path at all
21632 *[\\/]* ) as_myself
=$0 ;;
21633 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21634 for as_dir
in $PATH
21637 test -z "$as_dir" && as_dir
=.
21638 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
21643 # We did not find ourselves, most probably we were run as `sh COMMAND'
21644 # in which case we are not to be found in the path.
21645 if test "x$as_myself" = x
; then
21648 if test ! -f "$as_myself"; then
21649 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
21650 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
21651 { (exit 1); exit 1; }; }
21653 case $CONFIG_SHELL in
21655 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21656 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
21659 test -z "$as_dir" && as_dir
=.
21660 for as_base
in sh bash ksh sh5
; do
21663 if ("$as_dir/$as_base" -c '
21664 as_lineno_1=$LINENO
21665 as_lineno_2=$LINENO
21666 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21667 test "x$as_lineno_1" != "x$as_lineno_2" &&
21668 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
21669 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
21670 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
21671 CONFIG_SHELL
=$as_dir/$as_base
21672 export CONFIG_SHELL
21673 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
21681 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21682 # uniformly replaced by the line number. The first 'sed' inserts a
21683 # line-number line before each line; the second 'sed' does the real
21684 # work. The second script uses 'N' to pair each line-number line
21685 # with the numbered line, and appends trailing '-' during
21686 # substitution so that $LINENO is not a special case at line end.
21687 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21688 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
21689 sed '=' <$as_myself |
21694 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
21697 s,^['$as_cr_digits']*\n,,
21698 ' >$as_me.lineno
&&
21699 chmod +x
$as_me.lineno ||
21700 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
21701 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
21702 { (exit 1); exit 1; }; }
21704 # Don't try to exec as it changes $[0], causing all sort of problems
21705 # (the dirname of $[0] is not the place where we might find the
21706 # original and so on. Autoconf is especially sensible to this).
21708 # Exit status is that of the last command.
21713 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
21714 *c
*,-n*) ECHO_N
= ECHO_C
='
21716 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
21717 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
21720 if expr a
: '\(a\)' >/dev
/null
2>&1; then
21726 rm -f conf$$ conf$$.exe conf$$.
file
21728 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
21729 # We could just check for DJGPP; but this test a) works b) is more generic
21730 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
21731 if test -f conf$$.exe
; then
21732 # Don't use ln at all; we don't have any links
21737 elif ln conf$$.
file conf$$
2>/dev
/null
; then
21742 rm -f conf$$ conf$$.exe conf$$.
file
21744 if mkdir
-p .
2>/dev
/null
; then
21747 test -d .
/-p && rmdir .
/-p
21751 as_executable_p
="test -f"
21753 # Sed expression to map a string onto a valid CPP name.
21754 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21756 # Sed expression to map a string onto a valid variable name.
21757 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21761 # We need space, tab and new line, in precisely that order.
21771 # Open the log real soon, to keep \$[0] and so on meaningful, and to
21772 # report actual input values of CONFIG_FILES etc. instead of their
21773 # values after options handling. Logging --version etc. is OK.
21777 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21778 ## Running $as_me. ##
21783 This file was extended by $as_me, which was
21784 generated by GNU Autoconf 2.59. Invocation command line was
21786 CONFIG_FILES = $CONFIG_FILES
21787 CONFIG_HEADERS = $CONFIG_HEADERS
21788 CONFIG_LINKS = $CONFIG_LINKS
21789 CONFIG_COMMANDS = $CONFIG_COMMANDS
21793 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
21797 # Files that config.status was made for.
21798 if test -n "$ac_config_files"; then
21799 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
21802 if test -n "$ac_config_headers"; then
21803 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
21806 if test -n "$ac_config_links"; then
21807 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
21810 if test -n "$ac_config_commands"; then
21811 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
21814 cat >>$CONFIG_STATUS <<\_ACEOF
21817 \`$as_me' instantiates files from templates according to the
21818 current configuration.
21820 Usage: $0 [OPTIONS] [FILE]...
21822 -h, --help print this help, then exit
21823 -V, --version print version number, then exit
21824 -q, --quiet do not print progress messages
21825 -d, --debug don't remove temporary files
21826 --recheck update $as_me by reconfiguring in the same conditions
21827 --file=FILE[:TEMPLATE]
21828 instantiate the configuration file FILE
21829 --header=FILE[:TEMPLATE]
21830 instantiate the configuration header FILE
21832 Configuration files:
21835 Configuration headers:
21838 Configuration commands:
21841 Report bugs to <bug-autoconf@gnu.org>."
21844 cat >>$CONFIG_STATUS <<_ACEOF
21847 configured by $0, generated by GNU Autoconf 2.59,
21848 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
21850 Copyright (C) 2003 Free Software Foundation, Inc.
21851 This config.status script is free software; the Free Software Foundation
21852 gives unlimited permission to copy, distribute and modify it."
21857 cat >>$CONFIG_STATUS <<\_ACEOF
21858 # If no file are specified by the user, then we need to provide default
21859 # value. By we need to know if files were specified by the user.
21865 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
21866 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
21874 *) # This is not an option, so the user has probably given explicit
21877 ac_need_defaults
=false
;;
21881 # Handling of the options.
21883 cat >>$CONFIG_STATUS <<\_ACEOF
21884 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
21886 --version |
--vers* |
-V )
21887 echo "$ac_cs_version"; exit 0 ;;
21889 # Conflict between --help and --header
21890 { { echo "$as_me:$LINENO: error: ambiguous option: $1
21891 Try \`$0 --help' for more information." >&5
21892 echo "$as_me: error: ambiguous option: $1
21893 Try \`$0 --help' for more information." >&2;}
21894 { (exit 1); exit 1; }; };;
21895 --help |
--hel |
-h )
21896 echo "$ac_cs_usage"; exit 0 ;;
21897 --debug |
--d* |
-d )
21899 --file |
--fil |
--fi |
--f )
21901 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
21902 ac_need_defaults
=false
;;
21903 --header |
--heade |
--head |
--hea )
21905 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
21906 ac_need_defaults
=false
;;
21907 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
21908 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
21911 # This is an error.
21912 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
21913 Try \`$0 --help' for more information." >&5
21914 echo "$as_me: error: unrecognized option: $1
21915 Try \`$0 --help' for more information." >&2;}
21916 { (exit 1); exit 1; }; } ;;
21918 *) ac_config_targets
="$ac_config_targets $1" ;;
21924 ac_configure_extra_args
=
21926 if $ac_cs_silent; then
21928 ac_configure_extra_args
="$ac_configure_extra_args --silent"
21932 cat >>$CONFIG_STATUS <<_ACEOF
21933 if \$ac_cs_recheck; then
21934 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21935 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21940 cat >>$CONFIG_STATUS <<_ACEOF
21942 # INIT-COMMANDS section.
21945 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
21951 cat >>$CONFIG_STATUS <<\_ACEOF
21952 for ac_config_target
in $ac_config_targets
21954 case "$ac_config_target" in
21955 # Handling of arguments.
21956 "Makefile" ) CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
21957 "lib-src/Makefile.c" ) CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
21958 "oldXMenu/Makefile" ) CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
21959 "man/Makefile" ) CONFIG_FILES
="$CONFIG_FILES man/Makefile" ;;
21960 "lwlib/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
21961 "src/Makefile.c" ) CONFIG_FILES
="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
21962 "lisp/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
21963 "lispref/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lispref/Makefile" ;;
21964 "lispintro/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lispintro/Makefile" ;;
21965 "leim/Makefile" ) CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
21966 "default" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
21967 "src/config.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
21968 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21969 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21970 { (exit 1); exit 1; }; };;
21974 # If the user did not use the arguments to specify the items to instantiate,
21975 # then the envvar interface is used. Set only those that are not.
21976 # We use the long form for the default assignment because of an extremely
21977 # bizarre bug on SunOS 4.1.3.
21978 if $ac_need_defaults; then
21979 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
21980 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
21981 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
21984 # Have a temporary directory for convenience. Make it in the build tree
21985 # simply because there is no reason to put it here, and in addition,
21986 # creating and moving files from /tmp can sometimes cause problems.
21987 # Create a temporary directory, and hook for its removal unless debugging.
21990 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
21991 trap '{ (exit 1); exit 1; }' 1 2 13 15
21994 # Create a (secure) tmp directory for tmp files.
21997 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
21998 test -n "$tmp" && test -d "$tmp"
22001 tmp
=.
/confstat$$
-$RANDOM
22002 (umask 077 && mkdir
$tmp)
22005 echo "$me: cannot create a temporary directory in ." >&2
22006 { (exit 1); exit 1; }
22011 cat >>$CONFIG_STATUS <<_ACEOF
22014 # CONFIG_FILES section.
22017 # No need to generate the scripts if there are no CONFIG_FILES.
22018 # This happens for instance when ./config.status config.h
22019 if test -n "\$CONFIG_FILES"; then
22020 # Protect against being on the right side of a sed subst in config.status.
22021 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
22022 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
22023 s,@SHELL@,$SHELL,;t t
22024 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
22025 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
22026 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
22027 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
22028 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
22029 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
22030 s,@exec_prefix@,$exec_prefix,;t t
22031 s,@prefix@,$prefix,;t t
22032 s,@program_transform_name@,$program_transform_name,;t t
22033 s,@bindir@,$bindir,;t t
22034 s,@sbindir@,$sbindir,;t t
22035 s,@libexecdir@,$libexecdir,;t t
22036 s,@datadir@,$datadir,;t t
22037 s,@sysconfdir@,$sysconfdir,;t t
22038 s,@sharedstatedir@,$sharedstatedir,;t t
22039 s,@localstatedir@,$localstatedir,;t t
22040 s,@libdir@,$libdir,;t t
22041 s,@includedir@,$includedir,;t t
22042 s,@oldincludedir@,$oldincludedir,;t t
22043 s,@infodir@,$infodir,;t t
22044 s,@mandir@,$mandir,;t t
22045 s,@build_alias@,$build_alias,;t t
22046 s,@host_alias@,$host_alias,;t t
22047 s,@target_alias@,$target_alias,;t t
22048 s,@DEFS@,$DEFS,;t t
22049 s,@ECHO_C@,$ECHO_C,;t t
22050 s,@ECHO_N@,$ECHO_N,;t t
22051 s,@ECHO_T@,$ECHO_T,;t t
22052 s,@LIBS@,$LIBS,;t t
22053 s,@MAINT@,$MAINT,;t t
22054 s,@build@,$build,;t t
22055 s,@build_cpu@,$build_cpu,;t t
22056 s,@build_vendor@,$build_vendor,;t t
22057 s,@build_os@,$build_os,;t t
22058 s,@host@,$host,;t t
22059 s,@host_cpu@,$host_cpu,;t t
22060 s,@host_vendor@,$host_vendor,;t t
22061 s,@host_os@,$host_os,;t t
22063 s,@CFLAGS@,$CFLAGS,;t t
22064 s,@LDFLAGS@,$LDFLAGS,;t t
22065 s,@CPPFLAGS@,$CPPFLAGS,;t t
22066 s,@ac_ct_CC@,$ac_ct_CC,;t t
22067 s,@EXEEXT@,$EXEEXT,;t t
22068 s,@OBJEXT@,$OBJEXT,;t t
22069 s,@LN_S@,$LN_S,;t t
22071 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
22072 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
22073 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
22074 s,@RANLIB@,$RANLIB,;t t
22075 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
22076 s,@INSTALL_INFO@,$INSTALL_INFO,;t t
22077 s,@EGREP@,$EGREP,;t t
22078 s,@SETARCH@,$SETARCH,;t t
22079 s,@LIBSOUND@,$LIBSOUND,;t t
22080 s,@SET_MAKE@,$SET_MAKE,;t t
22081 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
22082 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
22083 s,@GTK_LIBS@,$GTK_LIBS,;t t
22084 s,@ALLOCA@,$ALLOCA,;t t
22085 s,@liblockfile@,$liblockfile,;t t
22086 s,@LIBOBJS@,$LIBOBJS,;t t
22087 s,@NEED_SETGID@,$NEED_SETGID,;t t
22088 s,@KMEM_GROUP@,$KMEM_GROUP,;t t
22089 s,@GETLOADAVG_LIBS@,$GETLOADAVG_LIBS,;t t
22090 s,@version@,$version,;t t
22091 s,@configuration@,$configuration,;t t
22092 s,@canonical@,$canonical,;t t
22093 s,@srcdir@,$srcdir,;t t
22094 s,@lispdir@,$lispdir,;t t
22095 s,@locallisppath@,$locallisppath,;t t
22096 s,@lisppath@,$lisppath,;t t
22097 s,@x_default_search_path@,$x_default_search_path,;t t
22098 s,@etcdir@,$etcdir,;t t
22099 s,@archlibdir@,$archlibdir,;t t
22100 s,@docdir@,$docdir,;t t
22101 s,@bitmapdir@,$bitmapdir,;t t
22102 s,@gamedir@,$gamedir,;t t
22103 s,@gameuser@,$gameuser,;t t
22104 s,@c_switch_system@,$c_switch_system,;t t
22105 s,@c_switch_machine@,$c_switch_machine,;t t
22106 s,@LD_SWITCH_X_SITE@,$LD_SWITCH_X_SITE,;t t
22107 s,@LD_SWITCH_X_SITE_AUX@,$LD_SWITCH_X_SITE_AUX,;t t
22108 s,@C_SWITCH_X_SITE@,$C_SWITCH_X_SITE,;t t
22109 s,@X_TOOLKIT_TYPE@,$X_TOOLKIT_TYPE,;t t
22110 s,@machfile@,$machfile,;t t
22111 s,@opsysfile@,$opsysfile,;t t
22112 s,@carbon_appdir@,$carbon_appdir,;t t
22113 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
22118 cat >>$CONFIG_STATUS <<\_ACEOF
22119 # Split the substitutions into bite-sized pieces for seds with
22120 # small command number limits, like on Digital OSF/1 and HP-UX.
22121 ac_max_sed_lines
=48
22122 ac_sed_frag
=1 # Number of current file.
22123 ac_beg
=1 # First line for current file.
22124 ac_end
=$ac_max_sed_lines # Line after last line for current file.
22127 while $ac_more_lines; do
22128 if test $ac_beg -gt 1; then
22129 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
22131 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
22133 if test ! -s $tmp/subs.frag
; then
22134 ac_more_lines
=false
22136 # The purpose of the label and of the branching condition is to
22137 # speed up the sed processing (if there are no `@' at all, there
22138 # is no need to browse any of the substitutions).
22139 # These are the two extra sed commands mentioned above.
22141 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
22142 if test -z "$ac_sed_cmds"; then
22143 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
22145 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
22147 ac_sed_frag
=`expr $ac_sed_frag + 1`
22149 ac_end
=`expr $ac_end + $ac_max_sed_lines`
22152 if test -z "$ac_sed_cmds"; then
22155 fi # test -n "$CONFIG_FILES"
22158 cat >>$CONFIG_STATUS <<\_ACEOF
22159 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
22160 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22162 - |
*:- |
*:-:* ) # input from stdin
22164 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
22165 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
22166 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
22167 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
22168 * ) ac_file_in
=$ac_file.
in ;;
22171 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
22172 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
22173 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22174 X"$ac_file" : 'X\(//\)[^/]' \| \
22175 X"$ac_file" : 'X\(//\)$' \| \
22176 X"$ac_file" : 'X\(/\)' \| \
22177 . : '\(.\)' 2>/dev/null ||
22179 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22180 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22181 /^X\(\/\/\)$/{ s//\1/; q; }
22182 /^X\(\/\).*/{ s//\1/; q; }
22184 { if $as_mkdir_p; then
22189 while test ! -d "$as_dir"; do
22190 as_dirs
="$as_dir $as_dirs"
22191 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
22192 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22193 X"$as_dir" : 'X\(//\)[^/]' \| \
22194 X"$as_dir" : 'X\(//\)$' \| \
22195 X"$as_dir" : 'X\(/\)' \| \
22196 . : '\(.\)' 2>/dev/null ||
22198 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22199 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22200 /^X\(\/\/\)$/{ s//\1/; q; }
22201 /^X\(\/\).*/{ s//\1/; q; }
22204 test ! -n "$as_dirs" || mkdir
$as_dirs
22205 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22206 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22207 { (exit 1); exit 1; }; }; }
22211 if test "$ac_dir" != .
; then
22212 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22213 # A "../" for each directory in $ac_dir_suffix.
22214 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22216 ac_dir_suffix
= ac_top_builddir
=
22220 .
) # No --srcdir option. We are building in place.
22222 if test -z "$ac_top_builddir"; then
22225 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
22227 [\\/]* | ?
:[\\/]* ) # Absolute path.
22228 ac_srcdir
=$srcdir$ac_dir_suffix;
22229 ac_top_srcdir
=$srcdir ;;
22230 *) # Relative path.
22231 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
22232 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
22235 # Do not use `cd foo && pwd` to compute absolute paths, because
22236 # the directories may not exist.
22238 .
) ac_abs_builddir
="$ac_dir";;
22241 .
) ac_abs_builddir
=`pwd`;;
22242 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
22243 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
22246 case $ac_abs_builddir in
22247 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
22249 case ${ac_top_builddir}.
in
22250 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
22251 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
22252 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
22255 case $ac_abs_builddir in
22256 .
) ac_abs_srcdir
=$ac_srcdir;;
22259 .
) ac_abs_srcdir
=$ac_abs_builddir;;
22260 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
22261 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
22264 case $ac_abs_builddir in
22265 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
22267 case $ac_top_srcdir in
22268 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
22269 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
22270 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
22276 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
22277 *) ac_INSTALL
=$ac_top_builddir$INSTALL ;;
22280 if test x
"$ac_file" != x-
; then
22281 { echo "$as_me:$LINENO: creating $ac_file" >&5
22282 echo "$as_me: creating $ac_file" >&6;}
22285 # Let's still pretend it is `configure' which instantiates (i.e., don't
22286 # use $as_me), people would be surprised to read:
22287 # /* config.h. Generated by config.status. */
22288 if test x
"$ac_file" = x-
; then
22291 configure_input
="$ac_file. "
22293 configure_input
=$configure_input"Generated from `echo $ac_file_in |
22294 sed 's,.*/,,'` by configure."
22296 # First look for the input files in the build tree, otherwise in the
22298 ac_file_inputs
=`IFS=:
22299 for f in $ac_file_in; do
22301 -) echo $tmp/stdin ;;
22303 # Absolute (can't be DOS-style, as IFS=:)
22304 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22305 echo "$as_me: error: cannot find input file: $f" >&2;}
22306 { (exit 1); exit 1; }; }
22309 if test -f "$f"; then
22312 elif test -f "$srcdir/$f"; then
22317 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22318 echo "$as_me: error: cannot find input file: $f" >&2;}
22319 { (exit 1); exit 1; }; }
22322 done` ||
{ (exit 1); exit 1; }
22324 cat >>$CONFIG_STATUS <<_ACEOF
22328 cat >>$CONFIG_STATUS <<\_ACEOF
22330 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
22331 s
,@configure_input@
,$configure_input,;t t
22332 s
,@srcdir@
,$ac_srcdir,;t t
22333 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
22334 s
,@top_srcdir@
,$ac_top_srcdir,;t t
22335 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
22336 s
,@builddir@
,$ac_builddir,;t t
22337 s
,@abs_builddir@
,$ac_abs_builddir,;t t
22338 s
,@top_builddir@
,$ac_top_builddir,;t t
22339 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
22340 s
,@INSTALL@
,$ac_INSTALL,;t t
22341 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
22343 if test x"$ac_file" != x-; then
22344 mv $tmp/out $ac_file
22352 cat >>$CONFIG_STATUS <<\_ACEOF
22355 # CONFIG_HEADER section.
22358 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
22359 # NAME is the cpp macro being defined and VALUE is the value it is being given.
22361 # ac_d sets the value in "#define NAME VALUE" lines.
22362 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
22363 ac_dB
='[ ].*$,\1#\2'
22366 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22367 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
22368 ac_uB
='$,\1#\2define\3'
22372 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
22373 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22375 - |
*:- |
*:-:* ) # input from stdin
22377 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
22378 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
22379 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
22380 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
22381 * ) ac_file_in
=$ac_file.
in ;;
22384 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
22385 echo "$as_me: creating $ac_file" >&6;}
22387 # First look for the input files in the build tree, otherwise in the
22389 ac_file_inputs
=`IFS=:
22390 for f in $ac_file_in; do
22392 -) echo $tmp/stdin ;;
22394 # Absolute (can't be DOS-style, as IFS=:)
22395 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22396 echo "$as_me: error: cannot find input file: $f" >&2;}
22397 { (exit 1); exit 1; }; }
22398 # Do quote $f, to prevent DOS paths from being IFS'd.
22401 if test -f "$f"; then
22404 elif test -f "$srcdir/$f"; then
22409 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22410 echo "$as_me: error: cannot find input file: $f" >&2;}
22411 { (exit 1); exit 1; }; }
22414 done` ||
{ (exit 1); exit 1; }
22415 # Remove the trailing spaces.
22416 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
22420 # Transform confdefs.h into two sed scripts, `conftest.defines' and
22421 # `conftest.undefs', that substitutes the proper values into
22422 # config.h.in to produce config.h. The first handles `#define'
22423 # templates, and the second `#undef' templates.
22424 # And first: Protect against being on the right side of a sed subst in
22425 # config.status. Protect against being in an unquoted here document
22426 # in config.status.
22427 rm -f conftest.defines conftest.undefs
22428 # Using a here document instead of a string reduces the quoting nightmare.
22429 # Putting comments in sed scripts is not portable.
22431 # `end' is used to avoid that the second main sed command (meant for
22432 # 0-ary CPP macros) applies to n-ary macro definitions.
22433 # See the Autoconf documentation for `clear'.
22434 cat >confdef2sed.
sed <<\_ACEOF
22439 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
22441 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
22444 # If some macros were called several times there might be several times
22445 # the same #defines, which is useless. Nevertheless, we may not want to
22446 # sort them, since we want the *last* AC-DEFINE to be honored.
22447 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
22448 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
22449 rm -f confdef2sed.sed
22451 # This sed command replaces #undef with comments. This is necessary, for
22452 # example, in the case of _POSIX_SOURCE, which is predefined and required
22453 # on some systems where configure will not decide to define it.
22454 cat >>conftest.undefs <<\_ACEOF
22455 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
22458 # Break up conftest.defines because some shells have a limit on the size
22459 # of here documents, and old seds have small limits too (100 cmds).
22460 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
22461 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
22462 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
22463 echo ' :' >>$CONFIG_STATUS
22464 rm -f conftest.tail
22465 while grep . conftest.defines >/dev/null
22467 # Write a limited-size here document to $tmp/defines.sed.
22468 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
22469 # Speed up: don't consider the non `#define' lines.
22470 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
22471 # Work around the forget-to-reset-the-flag bug.
22472 echo 't clr' >>$CONFIG_STATUS
22473 echo ': clr' >>$CONFIG_STATUS
22474 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
22476 sed -f $tmp/defines.sed $tmp/in >$tmp/out
22478 mv $tmp/out $tmp/in
22480 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
22481 rm -f conftest.defines
22482 mv conftest.
tail conftest.defines
22484 rm -f conftest.defines
22485 echo ' fi # grep' >>$CONFIG_STATUS
22486 echo >>$CONFIG_STATUS
22488 # Break up conftest.undefs because some shells have a limit on the size
22489 # of here documents, and old seds have small limits too (100 cmds).
22490 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
22491 rm -f conftest.
tail
22492 while grep . conftest.undefs
>/dev
/null
22494 # Write a limited-size here document to $tmp/undefs.sed.
22495 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
22496 # Speed up: don't consider the non
`#undef'
22497 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
22498 # Work around the forget-to-reset-the-flag bug.
22499 echo 't clr' >>$CONFIG_STATUS
22500 echo ': clr' >>$CONFIG_STATUS
22501 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
22503 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
22505 mv $tmp/out $tmp/in
22507 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
22508 rm -f conftest.undefs
22509 mv conftest.tail conftest.undefs
22511 rm -f conftest.undefs
22513 cat >>$CONFIG_STATUS <<\_ACEOF
22514 # Let's still pretend it is `configure
' which instantiates (i.e., don't
22515 # use $as_me), people would be surprised to read:
22516 # /* config.h. Generated by config.status. */
22517 if test x
"$ac_file" = x-
; then
22518 echo "/* Generated by configure. */" >$tmp/config.h
22520 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
22522 cat $tmp/in >>$tmp/config.h
22524 if test x
"$ac_file" != x-
; then
22525 if diff $ac_file $tmp/config.h
>/dev
/null
2>&1; then
22526 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22527 echo "$as_me: $ac_file is unchanged" >&6;}
22529 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
22530 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22531 X"$ac_file" : 'X\(//\)[^/]' \| \
22532 X"$ac_file" : 'X\(//\)$' \| \
22533 X"$ac_file" : 'X\(/\)' \| \
22534 . : '\(.\)' 2>/dev/null ||
22536 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22537 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22538 /^X\(\/\/\)$/{ s//\1/; q; }
22539 /^X\(\/\).*/{ s//\1/; q; }
22541 { if $as_mkdir_p; then
22546 while test ! -d "$as_dir"; do
22547 as_dirs
="$as_dir $as_dirs"
22548 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
22549 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22550 X"$as_dir" : 'X\(//\)[^/]' \| \
22551 X"$as_dir" : 'X\(//\)$' \| \
22552 X"$as_dir" : 'X\(/\)' \| \
22553 . : '\(.\)' 2>/dev/null ||
22555 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22556 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22557 /^X\(\/\/\)$/{ s//\1/; q; }
22558 /^X\(\/\).*/{ s//\1/; q; }
22561 test ! -n "$as_dirs" || mkdir
$as_dirs
22562 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22563 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22564 { (exit 1); exit 1; }; }; }
22567 mv $tmp/config.h
$ac_file
22571 rm -f $tmp/config.h
22575 cat >>$CONFIG_STATUS <<\_ACEOF
22578 # CONFIG_COMMANDS section.
22580 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
22581 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
22582 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
22583 ac_dir
=`(dirname "$ac_dest") 2>/dev/null ||
22584 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22585 X"$ac_dest" : 'X\(//\)[^/]' \| \
22586 X"$ac_dest" : 'X\(//\)$' \| \
22587 X"$ac_dest" : 'X\(/\)' \| \
22588 . : '\(.\)' 2>/dev/null ||
22590 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22591 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22592 /^X\(\/\/\)$/{ s//\1/; q; }
22593 /^X\(\/\).*/{ s//\1/; q; }
22595 { if $as_mkdir_p; then
22600 while test ! -d "$as_dir"; do
22601 as_dirs
="$as_dir $as_dirs"
22602 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
22603 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22604 X"$as_dir" : 'X\(//\)[^/]' \| \
22605 X"$as_dir" : 'X\(//\)$' \| \
22606 X"$as_dir" : 'X\(/\)' \| \
22607 . : '\(.\)' 2>/dev/null ||
22609 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22610 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22611 /^X\(\/\/\)$/{ s//\1/; q; }
22612 /^X\(\/\).*/{ s//\1/; q; }
22615 test ! -n "$as_dirs" || mkdir
$as_dirs
22616 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22617 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22618 { (exit 1); exit 1; }; }; }
22622 if test "$ac_dir" != .
; then
22623 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22624 # A "../" for each directory in $ac_dir_suffix.
22625 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22627 ac_dir_suffix
= ac_top_builddir
=
22631 .
) # No --srcdir option. We are building in place.
22633 if test -z "$ac_top_builddir"; then
22636 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
22638 [\\/]* | ?
:[\\/]* ) # Absolute path.
22639 ac_srcdir
=$srcdir$ac_dir_suffix;
22640 ac_top_srcdir
=$srcdir ;;
22641 *) # Relative path.
22642 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
22643 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
22646 # Do not use `cd foo && pwd` to compute absolute paths, because
22647 # the directories may not exist.
22649 .
) ac_abs_builddir
="$ac_dir";;
22652 .
) ac_abs_builddir
=`pwd`;;
22653 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
22654 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
22657 case $ac_abs_builddir in
22658 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
22660 case ${ac_top_builddir}.
in
22661 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
22662 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
22663 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
22666 case $ac_abs_builddir in
22667 .
) ac_abs_srcdir
=$ac_srcdir;;
22670 .
) ac_abs_srcdir
=$ac_abs_builddir;;
22671 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
22672 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
22675 case $ac_abs_builddir in
22676 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
22678 case $ac_top_srcdir in
22679 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
22680 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
22681 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
22686 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
22687 echo "$as_me: executing $ac_dest commands" >&6;}
22691 ### Make the necessary directories, if they don't exist.
22692 for dir
in etc lisp
; do
22693 test -d ${dir} || mkdir
${dir}
22696 # Build src/Makefile from ${srcdir}/src/Makefile.c
22697 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
22698 # This must be done after src/config.h is built, since we rely on that file.
22700 # Now get this: Some word that is part of the ${srcdir} directory name
22701 # or the ${configuration} value might, just might, happen to be an
22702 # identifier like `sun4' or `i386' or something, and be predefined by
22703 # the C preprocessor to some helpful value like 1, or maybe the empty
22704 # string. Needless to say consequent macro substitutions are less
22705 # than conducive to the makefile finding the correct directory.
22706 undefs
="`echo $top_srcdir $configuration $canonical |
22707 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
22708 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
22711 echo creating src
/epaths.h
22712 ${MAKE-make} epaths-force
22714 # As of 2000-11-19, newest development versions of GNU cpp preprocess
22715 # `..' to `. .' unless invoked with -traditional
22717 if test "x$GCC" = xyes
&& test "x$CPP_NEED_TRADITIONAL" = xyes
; then
22718 CPPFLAGS
="$CPPFLAGS -traditional"
22721 echo creating lib-src
/Makefile
22723 rm -f junk.c junk1.c junk2.c
22724 sed -e '/start of cpp stuff/q' \
22725 < Makefile.c
> junk1.c
22726 sed -e '1,/start of cpp stuff/d'\
22727 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
22728 < Makefile.c
> junk.c
22729 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
22730 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
22731 cat junk1.c junk2.c
> Makefile.new
22732 rm -f junk.c junk1.c junk2.c
22733 chmod 444 Makefile.new
22734 mv -f Makefile.new Makefile
22737 echo creating src
/Makefile
22739 rm -f junk.c junk1.c junk2.c
22740 sed -e '/start of cpp stuff/q' \
22741 < Makefile.c
> junk1.c
22742 sed -e '1,/start of cpp stuff/d'\
22743 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
22744 < Makefile.c
> junk.c
22745 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
22746 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
22747 cat junk1.c junk2.c
> Makefile.new
22748 rm -f junk.c junk1.c junk2.c
22749 chmod 444 Makefile.new
22750 mv -f Makefile.new Makefile
22753 if test ! -f src
/.gdbinit
&& test -f $srcdir/src
/.gdbinit
; then
22754 echo creating src
/.gdbinit
22755 echo source $srcdir/src
/.gdbinit
> src
/.gdbinit
22758 # This is how we know whether to re-run configure in certain cases.
22759 touch src
/config.stamp
22766 cat >>$CONFIG_STATUS <<\_ACEOF
22768 { (exit 0); exit 0; }
22770 chmod +x
$CONFIG_STATUS
22771 ac_clean_files
=$ac_clean_files_save
22774 # configure is writing to config.log, and then calls config.status.
22775 # config.status does its own redirection, appending to config.log.
22776 # Unfortunately, on DOS this fails, as config.log is still kept open
22777 # by configure, so config.status won't be able to write to it; its
22778 # output is simply discarded. So we exec the FD to /dev/null,
22779 # effectively closing config.log, so it can be properly (re)opened and
22780 # appended to by config.status. When coming back to configure, we
22781 # need to make the FD available again.
22782 if test "$no_create" != yes; then
22784 ac_config_status_args
=
22785 test "$silent" = yes &&
22786 ac_config_status_args
="$ac_config_status_args --quiet"
22788 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
22790 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22791 # would make configure fail if this is the last instruction.
22792 $ac_cs_success ||
{ (exit 1); exit 1; }